.oj-auth-shell {
  align-items: center;
  padding-top: 30px;
}

.oj-auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.oj-auth-title {
  color: var(--oj-heading);
  font-size: 32px;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.oj-solved-item,
.oj-compact-list-item {
  border-radius: 0;
}

.oj-solved-item:hover,
.oj-compact-list-item:hover {
  background: transparent;
}

.oj-profile-content-grid,
.oj-profile-activity-grid {
  gap: 32px;
}

.oj-profile-content-grid > .oj-panel,
.oj-profile-activity-grid > .oj-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.oj-profile-content-grid > section.oj-panel,
.oj-profile-activity-grid > section.oj-panel {
  border: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.oj-profile-meta > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.oj-settings-stack {
  gap: 0;
  max-width: 760px;
}

.oj-settings-stack > .oj-settings-section {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--oj-border);
  padding: 28px 0 32px;
}

.oj-avatar-settings-layout {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: auto minmax(0, 1fr);
}

.oj-avatar-settings-preview {
  align-items: center;
  background: var(--oj-panel-muted);
  border: 1px solid var(--oj-border);
  display: flex;
  justify-content: center;
  min-height: 156px;
  min-width: 156px;
  padding: 20px;
}

.oj-avatar-settings-controls {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.oj-avatar-crop-modal {
  border: 1px solid var(--oj-border);
  border-radius: 8px;
}

.oj-avatar-crop-stage {
  aspect-ratio: 1;
  background:
    linear-gradient(45deg, #222 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(45deg, transparent 75%, #222 75%) 0 0 / 20px 20px,
    linear-gradient(45deg, transparent 75%, #222 75%) 10px -10px / 20px 20px,
    linear-gradient(45deg, #222 25%, #171717 25%) 10px -10px / 20px 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--oj-border-strong);
  cursor: grab;
  margin: 0 auto;
  max-width: 360px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
  width: 100%;
}

.oj-avatar-crop-stage:active {
  cursor: grabbing;
}

.oj-avatar-crop-stage img {
  left: 50%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform-origin: center;
  user-select: none;
}

.oj-public-profile-shell {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.oj-public-profile-card,
.oj-public-profile-activity {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.oj-public-profile-card {
  border-right: 1px solid var(--oj-border);
  padding: 24px 32px 24px 0;
  position: sticky;
  top: 92px;
}

.oj-public-profile-activity {
  padding: 24px 0 24px 32px;
}

.oj-public-profile-name {
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 840;
  line-height: 1.12;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.oj-public-profile-meta {
  color: var(--oj-muted);
  display: grid;
  font-size: 14px;
  gap: 3px;
  margin-top: 9px;
}

.oj-public-profile-metrics {
  border-bottom: 1px solid var(--oj-border);
  border-top: 1px solid var(--oj-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 0;
}

.oj-public-profile-metrics > div {
  padding: 18px 12px 16px 0;
}

.oj-public-profile-metrics > div + div {
  border-left: 1px solid var(--oj-border);
  padding-left: 18px;
}

.oj-public-profile-metrics dt {
  color: var(--oj-muted);
  font-size: 13px;
  font-weight: 700;
}

.oj-public-profile-metrics dd {
  color: var(--oj-heading);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 830;
  line-height: 1.1;
  margin: 5px 0 0;
}

.oj-public-solved-list {
  border-top: 1px solid var(--oj-border);
  margin-top: 22px;
}

.oj-public-solved-item {
  align-items: center;
  border-bottom: 1px solid var(--oj-border);
  color: inherit;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 17px 2px;
  text-decoration: none;
}

.oj-public-solved-item:hover {
  color: inherit;
}

.oj-public-solved-main {
  align-items: baseline;
  display: flex;
  flex: 1 1 auto;
  gap: 11px;
  min-width: 0;
  overflow: hidden;
}

.oj-public-solved-code {
  color: var(--oj-primary-dark);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.oj-public-solved-title {
  color: var(--oj-heading);
  display: block;
  font-weight: 740;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oj-public-solved-item time {
  color: var(--oj-muted);
  flex: 0 0 auto;
  font-size: 13px;
}

.oj-public-profile-empty {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--oj-border);
  border-top: 1px solid var(--oj-border);
  margin-top: 22px;
  padding: 28px 0;
}

@media (min-width: 992px) {
  .oj-profile-content-grid > aside.oj-panel,
  .oj-profile-activity-grid > aside.oj-panel {
    border: 0;
    border-left: 1px solid var(--oj-border);
    padding: 24px 0 24px 32px !important;
  }
}

@media (max-width: 991.98px) {
  .oj-profile-content-grid,
  .oj-profile-activity-grid {
    gap: 0;
  }

  .oj-profile-content-grid > aside.oj-panel,
  .oj-profile-activity-grid > aside.oj-panel {
    border: 0;
    border-top: 1px solid var(--oj-border);
    margin-top: 28px;
    padding: 28px 0 24px !important;
  }

  .oj-public-profile-shell {
    grid-template-columns: 1fr;
  }

  .oj-public-profile-card {
    border: 0;
    border-bottom: 1px solid var(--oj-border);
    padding: 0 0 28px;
    position: static;
  }

  .oj-public-profile-activity {
    padding: 28px 0 0;
  }
}

@media (max-width: 575.98px) {
  .oj-avatar-settings-layout {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .oj-avatar-settings-preview {
    justify-self: start;
    min-width: 156px;
  }

  .oj-public-solved-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .oj-public-solved-main {
    max-width: 100%;
  }

  .oj-public-solved-title {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
