:root {
  --bg: #f4f6f6;
  --surface: #fff;
  --soft: #f8faf9;
  --ink: #0b1110;
  --muted: #66716e;
  --faint: #9ca7a3;
  --line: #dde5e2;
  --line-strong: #c8d2ce;
  --accent: #0c7c69;
  --accent-soft: #e7f5f2;
  --dark: #07100f;
  --danger: #c74435;
  --shadow: 0 1px 2px rgba(7, 16, 15, 0.05), 0 16px 42px rgba(7, 16, 15, 0.06);
  --radius: 14px;
  --phone-canvas: 430px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  opacity: 1;
  transition: opacity 160ms ease;
}

body.is-route-leaving {
  opacity: 0;
}

body[data-current-view="assessment"] .top-nav {
  display: none;
}

body[data-current-view="assessment"] .workspace {
  width: min(calc(100% - 24px), var(--phone-canvas));
  margin: 0 auto;
  padding: 0 0 72px;
}

body[data-current-view="assessment"] .advance-fab,
body[data-current-view="assessment"] .advance-drawer {
  display: none !important;
}

body[data-view-locked] .workspace .view.active,
body[data-view-locked] .top-nav {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  min-height: 58px;
  margin: 12px auto 0;
  padding: 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--dark);
  color: #d8fff2;
  font-size: 17px;
  font-weight: 900;
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand em {
  margin-top: 3px;
  color: var(--faint);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-tabs {
  justify-self: center;
  display: flex;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-tabs button,
.mobile-tabbar button,
.mobile-tabbar a {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.nav-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-tabs button:hover {
  color: var(--ink);
}

.nav-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(7, 16, 15, 0.1);
}

.mobile-tabbar button.active,
.mobile-tabbar a.active,
.mobile-tabbar a[aria-current="page"] {
  color: var(--accent);
}

.nav-tabs button.locked-nav {
  color: var(--faint);
}

.nav-actions,
.toolbar,
.filter-group,
.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  justify-content: end;
}

.primary-button,
.ghost-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 860;
}

.primary-button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
}

.primary-button.large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
}

.ghost-button,
.chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.chip.active {
  border-color: rgba(12, 124, 105, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.cert-badge .level-badge {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

body[data-user-state="passed"] .cert-badge {
  border-color: rgba(12, 124, 105, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
}

.workspace {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 84px;
}

.assessment-view.active {
  display: block;
  animation: viewIn 180ms ease both;
}

.assessment-embed {
  display: block;
  width: 100%;
  height: calc(100svh - 72px);
  border: 0;
  background: var(--bg);
}

.view,
.home-state,
.profile-state {
  display: none;
}

.view.active,
.home-state.active,
.profile-state.active {
  display: block;
  animation: viewIn 180ms ease both;
}

#profileView .profile-state.active:first-child {
  margin-top: 4px;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.challenge-kicker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 26px;
}

.challenge-kicker .eyebrow {
  margin: 0;
}

.module-lock {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(7, 16, 15, 0.06);
}

.module-lock svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.challenge-kicker .module-lock {
  margin-left: auto;
}

.challenge-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(201, 214, 208, 0.7);
}

.challenge-date-trigger span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.challenge-date-trigger strong {
  font-size: 11px;
  font-weight: 900;
}

.challenge-date-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}

.season-filter {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.season-trigger {
  min-width: 156px;
}

.season-popover {
  right: 0;
  width: 168px;
  height: 142px;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(7, 16, 15, 0.16);
}

.season-popover::before {
  right: 9px;
  left: 9px;
  height: 38px;
  border-radius: 14px;
}

.season-popover .date-wheel {
  height: 142px;
  padding: 52px 8px;
}

.season-popover .date-wheel-item {
  min-height: 38px;
  padding: 0 8px;
}

.season-popover .date-wheel-item span {
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

.identity-hero,
.result-hero,
.task-layout,
.dashboard-head,
.profile-grid,
.works-grid,
.arena-hero {
  display: grid;
  gap: 14px;
}

.arena-hero {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.identity-hero,
.result-hero {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.identity-hero > div,
.result-hero > div,
.challenge-card,
.passport-card,
.score-gate,
.result-score,
.daily-task,
.live-stats,
.submission-panel,
.retry-panel,
.featured-work,
.ranking-table,
.identity-chip,
.identity-card,
.metrics-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.challenge-card {
  min-height: 380px;
  padding: clamp(26px, 4vw, 38px);
}

.challenge-card h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  font-weight: 920;
}

.challenge-card h1::before {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.challenge-card h2 {
  max-width: 840px;
  margin-top: 4px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.03;
  font-weight: 950;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.challenge-card h2.is-title-long {
  max-width: 760px;
  font-size: clamp(28px, 3.45vw, 42px);
  line-height: 1.08;
}

.challenge-card h2.is-title-xlong {
  max-width: 720px;
  font-size: clamp(22px, 2.55vw, 31px);
  line-height: 1.12;
}

.challenge-card:has(h2.is-title-long) .requirement-list,
.challenge-card:has(h2.is-title-xlong) .requirement-list {
  margin-top: 18px;
}

.requirement-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-top: 24px;
}

.requirement-list > strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 920;
}

.requirement-list span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  white-space: nowrap;
}

.requirement-list span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.requirement-list .level-requirement {
  color: var(--ink);
  font-weight: 900;
}

.requirement-list b {
  display: none;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}

.season-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(210, 222, 217, 0.9);
  border-radius: 999px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.season-strip span {
  color: var(--accent);
  font-weight: 950;
}

.season-strip b {
  color: var(--ink);
  font-weight: 900;
}

.season-strip em {
  color: var(--muted);
  font-style: normal;
}

.top-season {
  margin-top: 0;
}

.season-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0;
  white-space: nowrap;
}

.season-status::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  box-shadow: 0 0 0 4px rgba(12, 124, 105, 0.08);
}

.season-status span {
  color: var(--accent);
  font-weight: 950;
}

.season-status em {
  color: var(--muted);
  font-style: normal;
}

.challenge-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.challenge-meta span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.challenge-meta b {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.challenge-meta .score-highlight,
.challenge-meta .star-highlight {
  background: #fbfdfc;
}

.challenge-meta .score-highlight {
  background: #f5f7f8;
  color: #3f4c56;
}

.challenge-meta .score-highlight b {
  color: #3f4c56;
}

.challenge-meta .star-highlight {
  background: #f7f5f1;
  color: #6e6253;
}

.challenge-meta .star-highlight b {
  color: #6e6253;
}

.challenge-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.challenge-actions .primary-button {
  margin-top: 0;
}

.home-advance-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(7, 16, 15, 0.05);
}

.home-advance-strip div {
  display: grid;
  gap: 2px;
}

.home-advance-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.home-advance-strip strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 950;
}

.home-advance-strip p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-advance-strip i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f1;
}

.home-advance-strip i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.24s ease;
}

.advance-fab {
  --advance-progress: 0deg;
  position: fixed;
  right: max(12px, calc((100vw - 1180px) / 2 + 12px));
  top: 47%;
  z-index: 42;
  display: grid;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(7, 16, 15, 0.075);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.advance-fab::before {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: conic-gradient(var(--accent) 0deg var(--advance-progress), rgba(224, 231, 228, 0.78) var(--advance-progress) 360deg);
  content: "";
  transition: inset 0.28s ease, opacity 0.2s ease;
}

.advance-fab::after {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
  content: "";
  transition: inset 0.28s ease, background 0.28s ease;
}

.advance-fab-tab {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #66756f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: opacity 0.2s ease;
}

.advance-fab-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.advance-fab-icon strong {
  display: block;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.advance-fab-icon strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.advance-fab.is-collapsed {
  width: 28px;
  height: 78px;
  border-radius: 18px 0 0 18px;
  background: rgba(244, 249, 247, 0.92);
  box-shadow: 0 8px 22px rgba(7, 16, 15, 0.055);
  transform: translate(12px, -50%);
}

.advance-fab.is-collapsed::before,
.advance-fab.is-collapsed::after,
.advance-fab.is-collapsed .advance-fab-icon {
  opacity: 0;
}

.advance-fab.is-collapsed::before,
.advance-fab.is-collapsed::after {
  display: none;
}

.advance-fab.is-collapsed .advance-fab-tab {
  opacity: 1;
}

.advance-drawer {
  position: fixed;
  right: max(82px, calc((100vw - 1180px) / 2 + 82px));
  top: 47%;
  z-index: 43;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 56px rgba(7, 16, 15, 0.14);
  opacity: 0;
  transform: translateY(-50%) scale(0.88);
  transform-origin: right center;
  backdrop-filter: blur(18px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.advance-drawer.is-open {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.advance-drawer[hidden] {
  display: none;
}

.advance-drawer .today-advance-list {
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.advance-drawer .today-advance-list div {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: #f6f8f7;
}

.advance-drawer p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.35;
}

.passport-card {
  display: grid;
  align-content: center;
  padding: 20px;
  background: var(--dark);
  color: #fff;
}

.passport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.passport-card span,
.passport-card em {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-weight: 800;
}

.passport-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 44px;
  line-height: 0.92;
}

.passport-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.passport-icon svg {
  width: 19px;
  height: 19px;
  fill: rgba(216, 255, 242, 0.82);
  display: block;
  transform: translate(1px, 1px);
}

.passport-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.passport-progress span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.passport-progress small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
}

.passport-progress b {
  color: #fff;
  font-size: 16px;
  line-height: 1.08;
}

.advance-mini {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 255, 242, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
}

.advance-mini span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.advance-mini b {
  color: #fff;
  font-size: 13px;
  font-weight: 920;
}

.advance-mini em {
  overflow: hidden;
  max-width: 58%;
  color: rgba(216, 255, 242, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advance-mini i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.advance-mini i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d8fff2;
  transition: width 0.24s ease;
}

.passport-card .ghost-button {
  width: max-content;
  margin-top: 20px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.preview-board {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.locked-preview {
  width: 100%;
  border: 0;
  background: var(--surface);
  text-align: left;
}

.work-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.work-preview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 170px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 10px 28px rgba(7, 16, 15, 0.075);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.work-preview-card:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 16, 15, 0.1);
}

.work-shot,
.work-product-shot {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 150px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(7, 16, 15, 0.06), rgba(23, 116, 84, 0.12)),
    #eef4f1;
}

.work-recommend-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(7, 16, 15, 0.8);
  color: #f6fffb;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.work-shot.has-image,
.work-product-shot.has-image,
.work-detail-shot.has-image {
  background-color: #f5f8f6;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.work-shot.has-image::before,
.work-shot.has-image::after,
.work-product-shot.has-image::before,
.work-product-shot.has-image::after,
.work-detail-shot.has-image::before,
.work-detail-shot.has-image::after {
  display: none;
}

.work-shot::before,
.work-product-shot::before,
.work-detail-shot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(190, 207, 200, 0.72);
}

.work-shot::after,
.work-product-shot::after,
.work-detail-shot::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 -18px 0 rgba(23, 116, 84, 0.14), 0 -36px 0 rgba(23, 116, 84, 0.22);
}

.shot-table::after {
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(255,255,255,0.74) 32% 35%, transparent 35% 66%, rgba(255,255,255,0.74) 66% 69%, transparent 69%),
    linear-gradient(180deg, var(--accent) 0 28%, rgba(23, 116, 84, 0.16) 28% 31%, var(--accent) 31% 58%, rgba(23, 116, 84, 0.16) 58% 61%, var(--accent) 61%);
  box-shadow: none;
}

.shot-agent::after {
  left: 34px;
  right: 34px;
  bottom: 23px;
  width: auto;
  height: 42px;
  border-radius: 999px 999px 16px 16px;
  background: var(--accent);
  box-shadow: 0 -10px 0 rgba(23, 116, 84, 0.16);
}

.shot-flow::after {
  left: 28px;
  right: 28px;
  bottom: 30px;
  height: 12px;
  background: linear-gradient(90deg, var(--accent) 0 25%, rgba(23, 116, 84, 0.18) 25% 37%, var(--accent) 37% 62%, rgba(23, 116, 84, 0.18) 62% 74%, var(--accent) 74%);
  box-shadow: 0 -26px 0 rgba(23, 116, 84, 0.2);
}

.work-card-body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.work-card-body .work-name {
  overflow: hidden;
  color: var(--ink);
  display: -webkit-box;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-card-body em {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.2;
}

.work-card-body em .author-name,
.work-product-copy .author-badge,
.work-product-copy .author-badge b {
  color: var(--accent);
}

.work-card-body em .author-name,
.work-product-copy .author-badge b {
  font-weight: 900;
}

.work-card-body em .author-level {
  flex: 0 0 auto;
  color: inherit;
}

.work-card-body em .level-badge,
.work-product-copy .author-badge .level-badge {
  min-height: 20px;
  padding: 0 7px;
  border: 0;
  font-size: 10px;
}

.work-card-body em .level-badge svg,
.work-product-copy .author-badge .level-badge svg {
  width: 10px;
  height: 10px;
}

.work-product-copy .author-badge i {
  color: rgba(12, 124, 105, 0.45);
}

.work-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 3px;
}

.work-card-stats > span {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f4f7f6;
  white-space: nowrap;
}

.work-card-stats .score-chip {
  background: #f4f6f7;
  color: #3f4c56;
}

.work-card-stats .star-chip {
  background: #f7f5f1;
  color: #6e6253;
}

.work-card-stats b {
  color: currentColor;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.work-card-stats small {
  color: currentColor;
  font-size: 10px;
  font-weight: 820;
  opacity: 0.72;
}

.work-card-action {
  justify-self: start;
  align-self: end;
  padding: 5px 9px;
  border: 1px solid rgba(23, 116, 84, 0.18);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.author-name,
.author-badge,
.author-level,
.leader-level {
  --tier-bg: #eef2f1;
  --tier-ink: #6a7471;
  --tier-border: rgba(106, 116, 113, 0.18);
}

.tier-p3 {
  --tier-bg: #eef6f3;
  --tier-ink: #237566;
  --tier-border: rgba(35, 117, 102, 0.2);
}

.tier-p4 {
  --tier-bg: #eef4fb;
  --tier-ink: #3e6f93;
  --tier-border: rgba(62, 111, 147, 0.22);
}

.tier-p5 {
  --tier-bg: #f1f4ec;
  --tier-ink: #637735;
  --tier-border: rgba(99, 119, 53, 0.22);
}

.tier-p6 {
  --tier-bg: #f2eff9;
  --tier-ink: #705a9f;
  --tier-border: rgba(112, 90, 159, 0.22);
}

.tier-p7 {
  --tier-bg: #edf7f1;
  --tier-ink: #0d7f62;
  --tier-border: rgba(13, 127, 98, 0.24);
}

.tier-p8 {
  --tier-bg: #f7f3e8;
  --tier-ink: #9a6b16;
  --tier-border: rgba(154, 107, 22, 0.26);
}

.tier-p9 {
  --tier-bg: #07100f;
  --tier-ink: #d8fff2;
  --tier-border: rgba(216, 255, 242, 0.28);
}

.tier-locked {
  --tier-bg: #f1f3f2;
  --tier-ink: #6a7471;
  --tier-border: rgba(106, 116, 113, 0.18);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--tier-border);
  border-radius: 999px;
  background: var(--tier-bg);
  color: var(--tier-ink);
  font-size: 12px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.level-badge.compact {
  min-height: 23px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.level-badge svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: currentColor;
  fill: currentColor;
}

.level-badge.compact svg {
  width: 12px;
  height: 12px;
}

.level-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.level-badge-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-style: normal;
}

.level-prefix {
  color: var(--muted);
  font-size: inherit;
  font-weight: 850;
  white-space: nowrap;
}

.author-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  color: var(--tier-ink);
  font-weight: 940;
}

.author-level {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--tier-ink);
  font-weight: 860;
}

.author-level.has-level-badge {
  color: inherit;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--tier-ink);
  font-weight: 900;
}

.author-badge b,
.author-badge i,
.author-badge em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-badge b {
  color: var(--tier-ink);
}

.author-badge em {
  color: var(--tier-ink);
  opacity: 0.76;
  font-style: normal;
  font-weight: 820;
}

.author-badge i {
  color: #b2bbb8;
  font-style: normal;
  font-weight: 900;
}

.identity-hero > div,
.result-hero > div {
  min-height: 420px;
  padding: clamp(28px, 5vw, 56px);
}

.identity-hero h1,
.result-hero h1,
.dashboard-head h1,
.page-head h1 {
  max-width: 800px;
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.94;
  font-weight: 950;
}

.page-head h1,
.dashboard-head h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.identity-hero p:not(.eyebrow),
.result-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 720;
}

.score-gate,
.result-score {
  display: grid;
  align-content: center;
  padding: 28px;
  background: var(--dark);
  color: #fff;
}

.result-score {
  background: #201413;
}

.score-gate span,
.score-gate em,
.result-score span,
.result-score em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-weight: 800;
}

.score-gate strong,
.result-score strong {
  display: block;
  margin: 8px 0;
  font-size: 122px;
  line-height: 0.86;
  font-weight: 950;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.locked-card {
  position: relative;
  min-height: 126px;
  padding: 20px 50px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.lock-mark {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.locked-card strong,
.locked-card em {
  display: block;
}

.locked-card strong {
  font-size: 21px;
}

.locked-card em {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
}

.retry-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--line);
}

.retry-panel span {
  display: grid;
  gap: 8px;
  min-height: 90px;
  padding: 18px;
  background: var(--surface);
}

.retry-panel b,
.panel-head span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 820;
}

.retry-panel strong {
  font-size: 20px;
}

.dashboard-head,
.page-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 16px;
}

.identity-chip {
  min-width: 230px;
  padding: 16px;
  background: var(--dark);
  color: #fff;
}

.identity-chip span,
.identity-chip em {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-weight: 760;
}

.identity-chip strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 34px;
}

.task-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.daily-task {
  min-height: 260px;
  padding: 20px;
}

.task-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.task-top em {
  font-style: normal;
}

.daily-task h2 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.deliverables,
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliverables {
  margin-top: 14px;
}

.deliverables span,
.submission-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  white-space: nowrap;
}

.task-actions {
  margin-top: 26px;
}

.live-stats {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.live-stats span {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 16px;
  background: var(--soft);
}

.live-stats b {
  font-size: 30px;
  line-height: 1;
}

.live-stats em,
.metrics-card em,
.featured-work em {
  color: var(--muted);
  font-style: normal;
  font-weight: 780;
}

.submission-panel {
  margin-top: 14px;
  overflow: hidden;
}

.panel-head {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 14px 56px 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head .module-lock {
  position: absolute;
  top: 14px;
  right: 16px;
}

.panel-head strong {
  font-size: 18px;
}

.submission-list {
  display: grid;
}

.submission-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 60px 96px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.submission-row:last-child {
  border-bottom: 0;
}

.submission-row:hover,
.rank-row.you {
  background: var(--soft);
}

.work-name {
  color: var(--ink);
  font-weight: 860;
}

.submission-row strong {
  color: var(--ink);
  font-size: 17px;
}

.page-head {
  display: grid;
}

.toolbar {
  flex-wrap: wrap;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-left: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.toolbar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

select {
  min-height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.works-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.works-market {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.works-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.work-date-filter {
  position: relative;
}

.challenge-date-trigger.compact {
  min-height: 36px;
  padding: 0 11px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.challenge-date-trigger.compact span,
.sort-select span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.challenge-date-trigger.compact strong {
  font-size: 13px;
}

.date-picker-sheet.work-date-popover {
  width: 202px;
  height: 166px;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(7, 16, 15, 0.14);
}

.date-picker-sheet.work-date-popover::before {
  right: 9px;
  left: 9px;
  height: 42px;
  border-radius: 15px;
}

.work-date-popover .date-wheel {
  height: 166px;
  padding: 60px 10px;
}

.work-date-popover .date-wheel-item {
  min-height: 42px;
}

.work-date-popover .date-wheel-item span {
  font-size: 13px;
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.sort-select select {
  min-height: 30px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 2px 0 9px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.works-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.works-market-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.works-market-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0.08em;
}

.works-market-head span b {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.works-market-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 940;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.works-task-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 0;
}

.works-task-summary span,
.works-task-summary strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f4f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.works-task-summary strong {
  background: #eef5f3;
  color: var(--accent);
}

.ghost-button.compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.work-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.work-product-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 150px auto auto 34px;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%);
  box-shadow: 0 10px 28px rgba(7, 16, 15, 0.075);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.work-product-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 15px 36px rgba(7, 16, 15, 0.105);
}

.work-product-shot {
  grid-column: 1 / -1;
  min-height: 0;
}

.work-product-copy {
  display: contents;
  min-width: 0;
}

.work-product-copy h2 {
  grid-column: 1 / -1;
  overflow: hidden;
  display: -webkit-box;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 940;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-product-copy p {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-product-copy div {
  grid-column: 1;
  align-self: center;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.work-product-copy div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f7f3ea;
  color: #8a651d;
  font-size: 11px;
  font-weight: 900;
}

.work-product-copy .product-score {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 58px;
  justify-content: center;
  border: 0;
  background: #f7f3ea;
  color: #8a651d;
}

.work-product-copy .product-score b {
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
}

.work-product-copy .product-score em {
  color: currentColor;
  margin-top: 1px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  opacity: 0.78;
}

.work-product-copy .product-score.muted b {
  color: #7b8783;
  font-size: 11px;
}

.work-product-card > button {
  grid-column: 2;
  align-self: center;
  justify-self: stretch;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 820;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.work-product-card > button:hover {
  background: #000;
  opacity: 0.92;
}

.featured-work {
  min-height: 260px;
  padding: 20px;
}

.featured-work span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.featured-work h2 {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.05;
}

.featured-work strong {
  display: block;
  margin-top: 34px;
  font-size: 68px;
  line-height: 0.9;
}

.ranking-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rank-row {
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: 70px minmax(180px, 1fr) 160px 90px 110px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.rank-row.head {
  min-height: 46px;
  background: var(--soft);
  color: var(--faint);
  font-size: 12px;
}

.rank-row strong,
.rank-row b {
  color: var(--ink);
}

.rank-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 880;
}

.rank-separator {
  min-height: 36px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--faint);
  font-size: 12px;
  font-weight: 820;
}

.rank-row.out-rank {
  background: #f8faf9;
}

.rank-row.out-rank span:first-child {
  color: var(--accent);
  font-weight: 920;
}

.challenge-ranking .rank-row {
  grid-template-columns: 58px minmax(160px, 1fr) 150px minmax(180px, 1.1fr);
}

.season-rank-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.season-rank-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.season-rank-summary b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.season-rank-summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.podium-board {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 116, 84, 0.08), rgba(255, 255, 255, 0) 72%),
    var(--surface);
}

.podium-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  justify-items: center;
  min-height: 132px;
  align-content: center;
  padding: 14px 10px;
  border: 0;
  border-radius: 22px 22px 14px 14px;
  background: #f7faf8;
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(210, 222, 217, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.podium-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(23, 116, 84, 0.22), 0 12px 28px rgba(7, 16, 15, 0.1);
}

.podium-card.first {
  min-height: 160px;
  background: linear-gradient(160deg, #10231f 0%, #1f5a4c 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(7, 16, 15, 0.14);
}

.podium-card.second {
  min-height: 140px;
  background:
    linear-gradient(180deg, rgba(82, 111, 152, 0.12), rgba(255, 255, 255, 0) 74%),
    #f6f9fd;
  box-shadow: inset 0 0 0 1px rgba(168, 188, 214, 0.38);
}

.podium-card.third {
  min-height: 124px;
  background:
    linear-gradient(180deg, rgba(155, 104, 118, 0.1), rgba(255, 255, 255, 0) 74%),
    #fbf7f8;
  box-shadow: inset 0 0 0 1px rgba(211, 186, 193, 0.36);
}

.podium-card .medal {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #d8fff2;
  color: var(--accent);
  font-size: 17px;
  font-weight: 950;
}

.podium-card.first .medal {
  width: 44px;
  height: 44px;
  background: #d8fff2;
  color: #10231f;
  font-size: 22px;
}

.podium-card.second .medal {
  background: #e8f0fb;
  color: #476888;
}

.podium-card.third .medal {
  background: #f4e9ec;
  color: #875968;
}

.podium-card strong {
  display: block;
  justify-self: center;
  overflow: hidden;
  width: 100%;
  max-width: calc(100% - 8px);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card.first strong {
  max-width: calc(100% - 14px);
  color: #effff8;
  font-size: 21px;
}

.podium-card em,
.podium-card b {
  overflow: hidden;
  max-width: 100%;
  font-style: normal;
  text-overflow: ellipsis;
}

.podium-card b {
  display: -webkit-box;
  min-height: 2.3em;
  line-height: 1.15;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.podium-card em {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.podium-card .author-level {
  color: var(--tier-ink);
}

.podium-card.first em {
  color: #d8fff2;
}

.podium-card.first .author-level {
  color: var(--tier-ink);
}

.podium-card b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.podium-card.first b {
  color: rgba(255, 255, 255, 0.68);
}

.challenge-ranking .leader-row {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.challenge-ranking .leader-row.compact {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 52px;
  padding: 7px 14px;
}

.challenge-ranking .leader-row:hover {
  background: #f7faf8;
  transform: translateX(2px);
}

.leader-rank {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 920;
}

.leader-row strong {
  align-self: center;
  display: grid;
  gap: 2px;
  align-content: center;
  justify-content: start;
  min-height: 34px;
  min-width: 0;
}

.leader-row strong b {
  display: block;
  overflow: hidden;
  max-width: 100%;
  font-size: 16px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row strong em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.leader-level {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--tier-ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.leader-level:not(:has(.level-badge)) {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--tier-bg);
}

.challenge-ranking .level-badge {
  border: 0;
  box-shadow: none;
}

.challenge-ranking .level-badge.compact {
  min-height: 24px;
  padding: 0 8px;
}

.leader-row > em {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-page-head {
  align-items: center;
}

.creator-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.creator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--dark);
  color: #d9ffe8;
  font-size: 20px;
  font-weight: 920;
}

.creator-profile-card strong,
.creator-profile-card em {
  display: block;
}

.creator-profile-card strong {
  font-size: 20px;
}

.creator-profile-card em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.creator-work-list {
  display: grid;
  gap: 12px;
}

.creator-work-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.work-snapshot {
  position: relative;
  display: grid;
  align-content: end;
  background-size: cover;
  background-position: top center;
  min-height: 128px;
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14, 26, 23, 0.08), rgba(23, 116, 84, 0.18)),
    linear-gradient(135deg, #0a1110 0%, #15231f 100%);
  color: #fff;
}

.work-snapshot.has-image {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.work-snapshot.has-image::before,
.work-snapshot.has-image::after {
  display: none;
}

.work-snapshot::before,
.work-snapshot::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(218, 255, 230, 0.14);
}

.work-snapshot::before {
  top: 18px;
  right: 18px;
  width: 68px;
  height: 68px;
}

.work-snapshot::after {
  bottom: 18px;
  left: 16px;
  width: 120px;
  height: 8px;
}

.work-snapshot span,
.work-snapshot strong {
  position: relative;
  z-index: 1;
}

.work-snapshot span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 820;
}

.work-snapshot strong {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.15;
}

.work-info {
  display: grid;
  gap: 7px;
}

.work-info span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.work-info strong {
  font-size: 17px;
}

.work-info em,
.work-info small {
  color: var(--muted);
  font-style: normal;
  font-weight: 740;
}

.work-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-empty-card {
  display: grid;
  gap: 6px;
  min-height: 120px;
  align-content: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
}

.creator-empty-card strong {
  color: var(--ink);
  font-size: 20px;
}

.profile-grid {
  grid-template-columns: 360px minmax(0, 1fr);
}

.member-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(7, 16, 15, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, #111917 0%, #27332f 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(7, 16, 15, 0.14);
}

.member-card.warning {
  background: linear-gradient(135deg, #201715 0%, #43342d 100%);
}

.member-card.verified {
  background: linear-gradient(135deg, #07100f 0%, #17483d 100%);
}

.member-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 255, 242, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8fff2;
  font-size: 14px;
  font-weight: 950;
}

.member-top small,
.member-level span,
.member-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 820;
}

.member-top strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-top > a,
.member-top > button,
.member-top > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #d8fff2;
  color: #07100f;
  font-size: 12px;
  font-weight: 920;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.member-top > button:hover,
.member-top > a:hover {
  transform: translateY(-1px);
}

.member-level {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
}

.member-level b {
  font-size: 28px;
  line-height: 0.9;
  font-weight: 950;
}

.member-level b.level-badge-host,
.member-level strong.level-badge-host,
.member-top strong.level-badge-host {
  font-size: inherit;
  line-height: 1;
}

.member-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.member-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d8fff2;
}

.member-card p {
  margin: -2px 0 0;
}

.season-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 16, 15, 0.06);
}

.season-profile-card > div:first-child {
  display: grid;
  gap: 4px;
}

.season-profile-card > div:first-child span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0.04em;
}

.season-profile-card > div:first-child strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 950;
}

.season-profile-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-profile-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f3f6f5;
}

.season-profile-metrics b {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.season-profile-metrics em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-advance-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(7, 16, 15, 0.07);
}

.today-advance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-advance-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.today-advance-head strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.today-advance-head b {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 920;
}

.today-advance-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f1;
}

.today-advance-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.24s ease;
}

.today-advance-list {
  display: grid;
  gap: 6px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.today-advance-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: 14px;
  background: #f6f8f7;
  color: inherit;
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.today-advance-list button:hover {
  background: #f1f6f4;
  transform: translateX(-1px);
}

.today-advance-list span {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-advance-list b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 920;
}

.today-advance-list em {
  min-width: 54px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f6f5;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 860;
  text-align: center;
  white-space: nowrap;
}

.today-advance-list em.is-active {
  background: var(--soft);
  color: var(--accent);
}

.today-advance-list em.is-done {
  background: #07100f;
  color: #d8fff2;
}

.today-advance-list em.is-locked {
  color: var(--faint);
}

.today-advance-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.today-advance-card.compact-profile-plan {
  gap: 9px;
  padding: 11px 12px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(7, 16, 15, 0.05);
}

.compact-profile-plan .today-advance-head strong {
  font-size: 16px;
}

.compact-profile-plan .today-advance-head b {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 12px;
}

.compact-profile-plan .today-advance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 12px;
}

.compact-profile-plan .today-advance-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 34px;
  padding: 7px 9px;
  border-right: 1px solid rgba(216, 225, 221, 0.82);
}

.compact-profile-plan .today-advance-list div:nth-child(2n) {
  border-right: 0;
}

.compact-profile-plan .today-advance-list b {
  display: none;
}

.compact-profile-plan .today-advance-list span {
  font-size: 11px;
}

.compact-profile-plan .today-advance-list em {
  min-width: 0;
  padding: 4px 6px;
  font-size: 10px;
}

.rules-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rules-panel article {
  display: grid;
  grid-template-columns: 38px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.rules-panel article:last-child {
  border-bottom: 0;
}

.rules-panel span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.rules-panel strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.rules-panel p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.identity-card {
  padding: 20px;
  background: var(--dark);
  color: #fff;
}

.identity-card span,
.identity-card em {
  color: rgba(255, 255, 255, 0.64);
  font-style: normal;
  font-weight: 760;
}

.identity-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 42px;
  line-height: 0.95;
}

.profile-feature-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(7, 16, 15, 0.08);
}

.profile-feature-grid button {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 50px;
  padding: 8px 38px 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(216, 225, 221, 0.8);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 860;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.profile-feature-grid button:hover {
  background: rgba(247, 250, 248, 0.92);
  transform: translateY(-1px);
}

.profile-feature-grid button:last-child {
  border-bottom: 0;
}

.profile-feature-grid button::after {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  content: "🔒";
  font-size: 10px;
  transform: translateY(-50%);
}

body[data-user-state="passed"] .profile-feature-grid button::after {
  display: none;
}

.profile-feature-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--accent);
}

.profile-feature-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.profile-feature-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  align-items: center;
}

.profile-feature-copy b {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-feature-grid strong {
  justify-self: end;
  max-width: 110px;
  overflow: hidden;
  padding-right: 0;
  font-size: 15px;
  font-weight: 920;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.metrics-card span {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
}

.metrics-card b {
  font-size: 30px;
}

.prototype-switcher {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 35;
  display: none; /* 原型状态切换条隐藏（仅保留在 DOM 中便于演示/调试切换） */
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.prototype-switcher button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 820;
}

.prototype-switcher button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.unlock-mask,
.review-mask,
.work-detail-mask,
.wechat-auth-mask,
.submit-work-mask {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 16, 15, 0.16);
  backdrop-filter: blur(4px);
}

.view-lock-gate {
  position: fixed;
  top: 48%;
  left: 50%;
  z-index: 48;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 92px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  transform: translate(-50%, -50%);
  backdrop-filter: none;
}

.view-lock-gate span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--dark);
  color: #d8fff2;
}

.view-lock-gate svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.view-lock-gate strong {
  color: #fff;
  font-size: 17px;
  line-height: 1;
  mix-blend-mode: difference;
  text-shadow: none;
}

.view-lock-gate em {
  color: #fff;
  opacity: 0.72;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  mix-blend-mode: difference;
  text-shadow: none;
}

body[data-current-view="works"] .view-lock-gate strong,
body[data-current-view="ranking"] .view-lock-gate strong {
  color: var(--ink);
  mix-blend-mode: normal;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.76);
}

body[data-current-view="works"] .view-lock-gate em,
body[data-current-view="ranking"] .view-lock-gate em {
  color: var(--muted);
  opacity: 1;
  mix-blend-mode: normal;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.76);
}

.unlock-popover,
.review-sheet,
.wechat-auth-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 55;
  width: min(430px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(7, 16, 15, 0.22);
  transform: translate(-50%, -50%);
}

.popover-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 18px;
}

.popover-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(12, 124, 105, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.unlock-popover h2 {
  margin-top: 16px;
  padding-right: 34px;
  font-size: 28px;
  line-height: 1.08;
}

.unlock-popover p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 720;
}

.wechat-auth-sheet {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px 12px;
  align-items: start;
  width: min(396px, calc(100% - 28px));
  padding: 14px;
  border-color: rgba(200, 211, 202, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(7, 16, 15, 0.12);
  backdrop-filter: blur(20px);
}

.wechat-auth-sheet .popover-close {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-color: rgba(200, 211, 202, 0.9);
  background: rgba(246, 249, 247, 0.96);
  color: rgba(96, 112, 105, 0.92);
  font-size: 17px;
}

.wechat-auth-sheet .popover-kicker {
  min-height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 860;
}

.wechat-auth-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 100, 72, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #f5fbf8, #edf6f1);
  color: var(--accent);
}

.wechat-auth-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wechat-auth-sheet h2 {
  margin-top: 6px;
  padding-right: 34px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.14;
}

.wechat-auth-sheet p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.46;
  font-weight: 740;
}

.phone-auth-fieldset {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.phone-auth-field {
  display: grid;
  gap: 6px;
}

.phone-auth-field > span {
  color: rgba(17, 23, 21, 0.58);
  font-size: 11px;
  font-weight: 780;
}

.phone-auth-field input {
  min-height: 42px;
  border: 1px solid rgba(200, 211, 202, 0.94);
  border-radius: 14px;
  background: rgba(249, 251, 250, 0.98);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  padding: 0 14px;
}

.phone-auth-field input:focus {
  outline: none;
  border-color: rgba(23, 100, 72, 0.34);
  box-shadow: 0 0 0 3px rgba(23, 100, 72, 0.08);
}

.phone-auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
  align-items: end;
}

.phone-auth-send {
  min-height: 42px;
  border: 1px solid rgba(23, 100, 72, 0.16);
  border-radius: 14px;
  background: rgba(245, 251, 248, 0.98);
  color: var(--accent);
  font-size: 12px;
  font-weight: 880;
}

.phone-auth-send:disabled {
  color: rgba(17, 23, 21, 0.36);
  border-color: rgba(200, 211, 202, 0.9);
  background: rgba(246, 249, 247, 0.96);
}

.phone-auth-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: -1px 0 0;
  color: rgba(17, 23, 21, 0.5);
  font-size: 11px;
  font-weight: 760;
}

.phone-auth-status.is-error {
  color: #ad5c4f;
}

.phone-auth-status.is-success {
  color: var(--accent);
}

.wechat-auth-button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 100, 72, 0.16);
  font-size: 13px;
  font-weight: 920;
}

.wechat-auth-sheet > em {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: rgba(17, 23, 21, 0.46);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 760;
}

.review-sheet {
  display: grid;
  gap: 14px;
}

.review-sheet h2 {
  padding-right: 34px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.review-score-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.review-score-row button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  font-weight: 940;
}

.review-score-row button.active {
  border-color: rgba(23, 116, 84, 0.24);
  background: var(--soft);
  color: var(--accent);
}

.review-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-criteria span {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f7faf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
}

.unlock-actions {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.unlock-actions span {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 780;
}

.unlock-actions b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
}

.date-picker-mask {
  position: fixed;
  inset: 0;
  z-index: 46;
  background: rgba(7, 16, 15, 0.18);
  backdrop-filter: blur(5px);
}

.challenge-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 44;
  width: 198px;
  height: 176px;
  border-radius: 20px;
  transform: none;
}

.challenge-date-popover .date-wheel {
  height: 176px;
  max-height: none;
  padding: 65px 10px;
}

.challenge-date-popover .date-wheel::before,
.challenge-date-popover .date-wheel::after {
  display: none;
}

.challenge-date-popover .date-wheel-item {
  min-height: 46px;
  padding: 0 8px;
  align-content: center;
}

.challenge-date-popover .date-wheel-item span {
  font-size: 13px;
  font-weight: 900;
}

.date-picker-sheet {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 56;
  width: min(430px, calc(100% - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 86px rgba(7, 16, 15, 0.22);
  transform: translateX(-50%);
}

.date-picker-sheet.challenge-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 44;
  width: 198px;
  height: 176px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 52px rgba(7, 16, 15, 0.15);
  transform: none;
  backdrop-filter: blur(18px);
}

.date-picker-sheet.challenge-date-popover::before {
  position: absolute;
  top: 50%;
  right: 10px;
  left: 10px;
  z-index: 0;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(205, 217, 212, 0.86);
  content: "";
  transform: translateY(-50%);
}

.date-picker-sheet.challenge-date-popover.season-popover {
  width: 168px;
  height: 142px;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(7, 16, 15, 0.16);
}

.date-picker-sheet.challenge-date-popover.season-popover::before {
  right: 9px;
  left: 9px;
  height: 38px;
  border-radius: 14px;
}

.challenge-date-popover.season-popover .date-wheel {
  height: 142px;
  padding: 52px 8px;
}

.challenge-date-popover.season-popover .date-wheel-item {
  min-height: 38px;
  padding: 0 8px;
}

.challenge-date-popover.season-popover .date-wheel-item span {
  font-size: 12px;
}

.sheet-head {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.sheet-head strong {
  text-align: center;
  font-size: 15px;
}

.sheet-head .ghost-button,
.sheet-head .primary-button {
  min-height: 34px;
  padding-inline: 10px;
  border-radius: 999px;
}

.date-wheel {
  position: relative;
  display: grid;
  gap: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 56px 18px;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

.date-wheel::-webkit-scrollbar {
  display: none;
}

.date-wheel::before,
.date-wheel::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  z-index: 1;
  height: 58px;
  pointer-events: none;
}

.date-wheel::before {
  top: 0;
  margin-top: -56px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
}

.date-wheel::after {
  bottom: 0;
  margin-bottom: -56px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.date-wheel-item {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--faint);
  text-align: center;
  scroll-snap-align: center;
  transition: color 160ms ease, transform 160ms ease, opacity 160ms ease;
  position: relative;
  z-index: 1;
}

.date-wheel-item span {
  font-size: 13px;
  font-weight: 820;
}

.date-wheel-item strong {
  font-size: 16px;
  font-weight: 920;
}

.date-wheel-item.active {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: scale(1.08);
}

.date-wheel-item:not(.active) {
  opacity: 0.56;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 560px) {
  .top-nav {
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(calc(100% - 24px), var(--phone-canvas));
    min-height: 48px;
    margin-top: 10px;
  }

  .nav-tabs,
  .nav-actions .cert-badge {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(7, 16, 15, 0.12);
    border-radius: 10px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand em {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1;
  }

  .nav-actions {
    display: flex;
    justify-content: end;
  }

  .nav-actions .primary-button {
    min-height: 36px;
    padding-inline: 13px;
    border-radius: 999px;
    font-size: 12px;
  }

  .workspace {
    width: min(calc(100% - 24px), var(--phone-canvas));
    padding-top: 12px;
  }

  .identity-hero,
  .result-hero,
  .arena-hero,
  .task-layout,
  .dashboard-head,
  .page-head,
  .works-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .identity-hero > div,
  .result-hero > div {
    min-height: 330px;
    padding: 26px;
  }

  .identity-hero h1,
  .result-hero h1,
  .dashboard-head h1,
  .page-head h1 {
    font-size: 34px;
    line-height: 1;
  }

  .season-filter {
    justify-self: end;
  }

  .season-trigger {
    min-width: 128px;
  }

  .challenge-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .challenge-card .eyebrow {
    margin-bottom: 8px;
  }

  .challenge-kicker {
    margin-bottom: 14px;
  }

  .challenge-date-trigger {
    min-height: 30px;
    padding: 0 9px;
  }

  .challenge-date-trigger span {
    font-size: 10px;
  }

  .challenge-date-trigger strong {
    font-size: 11px;
  }

  .challenge-card h2 {
    margin-top: 12px;
    font-size: 34px;
    line-height: 1.04;
  }

  .deliverables {
    gap: 6px;
    margin-top: 12px;
  }

  .challenge-card .deliverables {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .requirement-list {
    gap: 6px 9px;
    margin-top: 18px;
  }

  .requirement-list span {
    font-size: 11px;
  }

  .requirement-list .level-requirement {
    flex-basis: auto;
  }

  .season-strip {
    gap: 6px;
    margin-top: 10px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .deliverables span,
  .submission-row em {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .challenge-card .deliverables span {
    padding: 0 4px;
  }

  .challenge-meta {
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .challenge-meta span {
    min-height: 52px;
    padding: 9px 7px;
    font-size: 10px;
  }

  .challenge-meta b {
    font-size: 18px;
  }

  .season-rank-summary {
    min-height: 34px;
    padding: 0 12px;
  }

  .season-rank-summary span {
    min-height: 0;
    padding: 0;
  }

  .season-rank-summary b {
    font-size: 12px;
  }

  .season-rank-summary em {
    font-size: 10px;
  }

  .challenge-card .primary-button {
    margin-top: 20px;
  }

  .primary-button.large {
    min-height: 42px;
    font-size: 13px;
  }

  .passport-card {
    min-height: 112px;
    grid-template-columns: 1fr;
    gap: 6px;
    align-content: center;
    padding: 14px 16px;
  }

  .passport-progress {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    margin: 4px 0 0;
  }

  .passport-progress span {
    grid-template-columns: 86px 1fr;
    align-items: center;
    padding: 10px 9px;
  }

  .passport-progress b {
    font-size: 16px;
  }

  .passport-card em {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .passport-card .ghost-button {
    display: none;
  }

  .season-profile-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px 12px;
  }

  .season-profile-card > div:first-child strong {
    font-size: 16px;
  }

  .season-profile-metrics span {
    min-height: 28px;
    padding: 5px 7px;
  }

  .season-profile-metrics b {
    font-size: 12px;
  }

  .season-profile-metrics em {
    font-size: 10px;
  }

  .locked-grid,
  .retry-panel,
  .metrics-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-board {
    margin-top: 10px;
  }

  .panel-head {
    min-height: 48px;
    padding: 10px 46px 10px 12px;
  }

  .panel-head .module-lock {
    top: 9px;
    right: 12px;
  }

  .panel-head strong {
    font-size: 15px;
  }

  .submission-row,
  .rank-row {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    min-height: 56px;
    padding: 10px 12px;
  }

  .preview-board .submission-row:nth-child(n + 3) {
    display: none;
  }

  .work-preview-list {
    gap: 10px;
    padding: 12px;
  }

  .work-preview-card {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 0;
    padding: 9px;
    border-radius: 16px;
  }

  .work-shot {
    min-height: 120px;
    border-radius: 12px;
  }

  .work-card-body {
    gap: 6px;
  }

  .work-card-body .work-name {
    font-size: 13px;
    line-height: 1.22;
  }

  .work-card-body em,
  .work-card-stats small,
  .work-card-action {
    font-size: 10px;
  }

  .work-card-stats {
    gap: 4px;
  }

  .work-card-stats > span {
    min-height: 22px;
    padding: 3px 6px;
  }

  .work-card-stats b {
    font-size: 16px;
  }

  .work-card-action {
    display: none;
  }

  .submission-row em {
    justify-self: end;
  }

  .works-market-head {
    align-items: flex-start;
    padding: 12px;
  }

  .works-controls {
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
  }

  .work-date-filter {
    flex: 1 1 auto;
    min-width: 0;
  }

  .challenge-date-trigger.compact {
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .challenge-date-trigger.compact span,
  .sort-select > span {
    white-space: nowrap;
  }

  .sort-select {
    flex: 0 0 auto;
    min-height: 38px;
    padding-left: 11px;
  }

  .sort-select select {
    max-width: 92px;
    font-size: 12px;
  }

  .works-market-head strong {
    font-size: 15px;
    white-space: normal;
  }

  .works-task-summary {
    gap: 6px;
    padding: 9px 12px 0;
  }

  .works-task-summary span,
  .works-task-summary strong {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .work-product-grid {
    gap: 10px;
    padding: 12px;
  }

  .work-product-card {
    grid-template-rows: 120px auto auto 34px;
    gap: 9px;
    padding: 9px;
    border-radius: 16px;
  }

  .work-product-copy h2 {
    font-size: 14px;
  }

  .work-product-copy p,
  .work-product-copy span {
    font-size: 10px;
  }

  .work-product-card > button {
    min-height: 34px;
    font-size: 12px;
  }

  .home-advance-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .home-advance-strip p {
    text-align: right;
    font-size: 11px;
  }

  .home-advance-strip i {
    grid-column: 1 / -1;
  }

  .challenge-actions {
    gap: 10px;
    margin-top: 12px;
  }

  .challenge-actions .primary-button.large {
    min-width: 146px;
    height: 42px;
    padding: 0 20px;
  }

  .advance-fab {
    right: max(10px, calc((100vw - var(--phone-canvas)) / 2 + 10px));
    top: 47%;
    width: 48px;
    height: 48px;
    border-radius: 999px;
  }

  .advance-fab-icon {
    width: 32px;
    height: 32px;
  }

  .advance-fab-icon strong {
    font-size: 12px;
  }

  .advance-fab.is-collapsed {
    width: 27px;
    height: 76px;
    transform: translate(10px, -50%);
  }

  .advance-fab-tab {
    font-size: 9px;
  }

  .advance-drawer {
    right: max(76px, calc((100vw - var(--phone-canvas)) / 2 + 76px));
    top: 47%;
    width: min(306px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 18px;
  }

  .rules-panel article {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 10px;
    min-height: 0;
    padding: 12px;
  }

  .rules-panel p {
    grid-column: 2;
    font-size: 12px;
  }

  .rank-row.head {
    display: none;
  }

  .podium-board {
    grid-template-columns: 0.9fr 1.1fr 0.9fr;
    gap: 7px;
    padding: 12px;
  }

  .podium-card {
    min-height: 116px;
    padding: 12px 7px;
    border-radius: 18px 18px 12px 12px;
  }

  .podium-card.first {
    min-height: 142px;
  }

  .podium-card.second {
    min-height: 126px;
  }

  .podium-card.third {
    min-height: 110px;
  }

  .podium-card .medal {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .podium-card.first .medal {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .podium-card strong {
    font-size: 15px;
  }

  .podium-card.first strong {
    font-size: 19px;
  }

  .podium-card em,
  .podium-card b {
    font-size: 10.5px;
  }

  .rank-row span:nth-child(3),
  .rank-row em {
    grid-column: 1;
  }

  .challenge-ranking .rank-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .challenge-ranking .challenge-rank-head {
    display: none;
  }

  .challenge-ranking .leader-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 68px;
  }

  .challenge-ranking .leader-row.compact {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 7px 12px;
  }

  .challenge-ranking .leader-row .leader-rank {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
  }

  .challenge-ranking .leader-row strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    align-content: center;
    justify-content: start;
    min-height: 34px;
  }

  .challenge-ranking .leader-row .leader-level {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    min-height: 24px;
    padding: 0;
    font-size: 11px;
  }

  .challenge-ranking .leader-row.compact .leader-level {
    min-height: 24px;
    padding: 0;
    font-size: 10.5px;
  }

  .challenge-ranking .leader-row.compact strong b {
    font-size: 16px;
  }

  .challenge-ranking .leader-row.compact strong em {
    font-size: 11px;
    line-height: 1.18;
    -webkit-line-clamp: 1;
  }

  .challenge-ranking .leader-row > em {
    grid-column: 2 / -1;
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
  }

  .rank-separator {
    min-height: 32px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .creator-page-head {
    grid-template-columns: 1fr;
  }

  .creator-profile-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .creator-avatar {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 17px;
  }

  .creator-profile-card strong {
    font-size: 17px;
  }

  .creator-work-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-snapshot {
    min-height: 150px;
  }

  .authority-profile,
  .profile-feature-grid {
    grid-template-columns: 1fr;
  }

  .identity-card {
    padding: 18px;
  }

  .identity-card strong {
    font-size: 34px;
  }

  .level-roadmap {
    padding: 18px;
  }

  .level-head strong {
    font-size: 28px;
  }

  .profile-feature-grid button {
    min-height: 54px;
  }

  .mobile-tabbar {
    --tab-padding-x: 7px;
    --tab-padding-y: 4px;
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 8px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: min(calc(100% - 48px), var(--phone-canvas));
    min-height: 54px;
    padding: var(--tab-padding-y) var(--tab-padding-x) calc(var(--tab-padding-y) + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(7, 16, 15, 0.12);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
  }

  .mobile-tabbar .tab-indicator {
    position: absolute;
    top: var(--tab-padding-y);
    bottom: calc(var(--tab-padding-y) + env(safe-area-inset-bottom));
    left: var(--tab-padding-x);
    z-index: 0;
    width: calc((100% - (var(--tab-padding-x) * 2)) / 5);
    border-radius: 999px;
    background: #eef1f0;
    box-shadow: inset 0 0 0 1px rgba(221, 229, 226, 0.44);
    transform: translateX(calc((var(--active-tab-index, 0)) * 100%));
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s ease;
    will-change: transform;
  }

  body[data-current-view="challenge"] .mobile-tabbar .tab-indicator,
  body[data-current-view="creator"] .mobile-tabbar .tab-indicator {
    opacity: 0;
  }

  .prototype-switcher {
    display: none;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    border-radius: 999px;
    color: #8b9290;
    font-size: 10px;
    font-weight: 820;
    line-height: 1;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--accent);
    transform: translateY(-1px);
    background: transparent;
    box-shadow: none;
  }

  .mobile-tabbar [data-view-link="challenge"] {
    position: relative;
    font-size: 11.5px;
    font-weight: 920;
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 46px;
    height: 46px;
    margin-bottom: 1px;
    border: 4px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #d8fff2;
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(7, 16, 15, 0.12);
    transform: translateX(-50%);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 23px;
    height: 23px;
  }

  .mobile-tabbar [data-view-link="challenge"].active {
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: var(--dark);
    color: #d8fff2;
    box-shadow: 0 8px 18px rgba(7, 16, 15, 0.12);
    transform: translateX(-50%) scale(1.05);
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
  }

  .tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
  }

  .tab-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  .tab-icon i {
    display: none;
    position: absolute;
    top: -2px;
    right: -4px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    background: #ef4056;
  }

  .tab-icon.has-dot i {
    display: block;
  }

  .mobile-tabbar .locked-nav .tab-icon::after {
    position: absolute;
    right: -7px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 13px;
    height: 13px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #eef1f0;
    color: #8b9290;
    content: "🔒";
    font-size: 8px;
  }

  .prototype-switcher {
    bottom: 66px;
  }
}

/* Operational data states and compact qualified-home summary. */
.aic-passed-level {
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.aic-passed-level .level-badge {
  border-color: rgba(196, 229, 220, 0.32);
  background: rgba(241, 255, 250, 0.1);
  color: #d9fff3;
}

.platform-empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}

.platform-empty-state strong,
.platform-empty-state span {
  display: block;
}

.platform-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.platform-empty-state span {
  margin-top: 7px;
  font-size: 13px;
}

.platform-empty-state .aic-cta {
  margin: 18px auto 0;
}

.list-load-more {
  display: block;
  min-width: 180px;
  min-height: 42px;
  margin: 22px auto 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.list-load-more:hover {
  background: rgba(12, 124, 105, 0.14);
}

body.assessment-testing .mobile-tabbar,
body.assessment-testing .advance-fab,
body.assessment-testing .advance-drawer {
  display: none !important;
}

/* Keep the primary navigation persistent on wide screens as well. */
@media (min-width: 561px) {
  @keyframes desktop-tabbar-icon-pop {
    0%, 100% {
      transform: scale(1);
    }

    42% {
      transform: scale(1.08);
    }
  }

  .mobile-tabbar {
    --tab-active: #0a6658;
    --tab-muted: #8a968f;
    --tab-padding-x: 10px;
    position: fixed;
    left: 50%;
    bottom: 8px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: min(398px, calc(100% - 32px));
    min-height: 54px;
    padding: 4px var(--tab-padding-x);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(248, 252, 250, 0.68);
    box-shadow:
      0 18px 38px rgba(14, 27, 24, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(1.7);
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
    transform: translateX(-50%);
  }

  .mobile-tabbar::before {
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: 27px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
    content: "";
    pointer-events: none;
  }

  .mobile-tabbar .tab-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: var(--tab-padding-x);
    z-index: 0;
    display: block;
    width: calc((100% - (var(--tab-padding-x) * 2)) / 5);
    border-radius: 23px;
    background: radial-gradient(
      ellipse at center,
      rgba(10, 102, 88, 0.16) 0%,
      rgba(10, 102, 88, 0.09) 42%,
      rgba(10, 102, 88, 0.03) 68%,
      rgba(10, 102, 88, 0) 100%
    );
    opacity: 0.96;
    transform: translateX(calc(var(--active-tab-index, 0) * 100%));
    transition:
      transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1),
      opacity 190ms ease;
    will-change: transform;
  }

  body[data-current-view="challenge"] .mobile-tabbar .tab-indicator,
  body[data-current-view="creator"] .mobile-tabbar .tab-indicator {
    opacity: 0;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tab-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
      color 210ms ease,
      transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    background: transparent;
    color: var(--tab-active);
    box-shadow: none;
    transform: translateY(-1px);
  }

  .mobile-tabbar .tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: currentColor;
  }

  .mobile-tabbar .tab-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
  }

  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon svg,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon svg,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon svg {
    animation: desktop-tabbar-icon-pop 220ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }

  .mobile-tabbar [data-view-link="challenge"] {
    position: relative;
    font-size: 10.5px;
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(230, 250, 242, 0.96);
    color: var(--tab-active);
    box-shadow:
      0 10px 22px rgba(10, 102, 88, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transform: translateX(-50%);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 24px;
    height: 24px;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: var(--tab-active);
    color: #fff;
    box-shadow:
      0 12px 24px rgba(10, 102, 88, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    text-align: center;
  }

  .mobile-tabbar .locked-nav .tab-icon::after {
    position: absolute;
    right: -4px;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(238, 244, 242, 0.92);
    color: #7a8480;
    content: "锁";
    font-size: 7px;
  }
}

@media (max-width: 560px) {
  .aic-hero.is-passed {
    padding: 16px 18px;
  }

  .aic-hero.is-passed .aic-id {
    align-items: center;
  }

  .aic-passed-level {
    margin-top: 10px;
  }

  .platform-empty-state {
    padding: 34px 16px;
  }

  .platform-empty-state strong {
    font-size: 16px;
  }

  .advance-fab {
    right: max(0px, env(safe-area-inset-right));
  }
}

@media (max-width: 560px) {
  .top-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-actions {
    display: flex;
  }

  .locked-grid,
  .retry-panel,
  .metrics-card {
    grid-template-columns: 1fr;
  }

  .score-gate strong,
  .result-score strong {
    font-size: 96px;
  }

  .challenge-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolbar label,
  select {
    width: 100%;
  }

  .toolbar .primary-button,
  .toolbar .ghost-button {
    flex: 1;
  }
}

/* ============================================================
   AIC 重设计 · 首页/作品广场/点评/等级卡（真实 token 对齐）
   2026 redesign — 可整段删除以回退
   ============================================================ */
.aic-hero {
  margin-top: 16px;
  padding: 30px 30px 28px;
  border-radius: 20px;
  color: #eaf3f0;
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(12, 124, 105, 0.2), transparent 56%),
    linear-gradient(180deg, #0b1413, var(--dark));
}
.aic-hero-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #d8fff2;
  background: rgba(12, 124, 105, 0.26);
}
.aic-hero h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #fff;
}
.aic-hero h1 .hl { color: #d8fff2; }
.aic-hero p {
  margin: 0 0 20px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.62;
  font-weight: 760;
  color: #9fb1ab;
}
.aic-hint { display: block; margin-top: 13px; font-size: 12px; font-weight: 780; color: #8aa099; }
.aic-hint b { color: #d3e2dc; font-weight: 900; }

.aic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}
.aic-cta:hover { background: #0a6a59; }
.aic-cta.block { display: flex; width: 100%; }
.aic-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.aic-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.aic-step { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.aic-step b { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 900; color: var(--accent); }
.aic-step span { font-size: 12px; font-weight: 780; color: var(--muted); }

.aic-task { margin-top: 24px; }
.aic-task-head { margin-bottom: 13px; }
.aic-task-head h2 { margin: 0; font-size: 18px; font-weight: 950; letter-spacing: -0.01em; }
.aic-task-head .sub { margin-top: 5px; font-size: 12px; font-weight: 780; color: var(--muted); }
.aic-task-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.aic-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.aic-chip { padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.aic-chip.season { color: var(--accent); background: var(--accent-soft); }
.aic-chip.time { color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.aic-chip.reward { color: #9a6b16; background: #fbf1da; margin-left: auto; }
.aic-task-card h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.32; font-weight: 950; letter-spacing: -0.01em; }
.aic-deliver { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.aic-deliver span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 820;
  color: var(--muted);
  background: var(--soft);
}
.aic-stats-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.aic-stats { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aic-stats div { text-align: center; }
.aic-stats div b { display: block; font-size: 22px; font-weight: 950; letter-spacing: -0.02em; }
.aic-stats div em { font-style: normal; font-size: 11px; font-weight: 820; color: var(--muted); }
.aic-stats .hl b { color: var(--accent); }
.aic-task-cta { flex: 0 0 auto; width: auto; min-height: 40px; margin: 0; padding: 0 18px; font-size: 13px; white-space: nowrap; }

.aic-hero.is-passed { padding: 24px 26px; }
.aic-id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.aic-id-av {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 950;
  color: #d8fff2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.aic-id-meta b { display: block; font-size: 17px; font-weight: 950; color: #fff; }
.aic-id-meta em { font-style: normal; font-size: 12px; font-weight: 780; color: #8aa099; }
.aic-id-rank { margin-left: auto; text-align: right; }
.aic-id-rank b { display: block; font-size: 22px; font-weight: 950; line-height: 1; color: #d8fff2; }
.aic-id-rank em { font-style: normal; font-size: 11px; font-weight: 780; color: #8aa099; }
.aic-progress { margin-bottom: 18px; }
.aic-progress .pl { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 820; color: #9fb1ab; }
.aic-progress .track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); overflow: hidden; }
.aic-progress .track span { display: block; height: 100%; width: 34%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #d8fff2); }
.aic-actions { display: flex; gap: 10px; }
.aic-actions .aic-cta,
.aic-actions .aic-cta-ghost { flex: 1; }

.aic-hero.is-passed .aic-actions .aic-cta {
  flex: 1.25;
}

.aic-hero.is-passed .aic-actions .aic-cta-ghost {
  flex: 0.85;
}

.aic-invite { margin-top: 24px; padding: 24px 26px; border: 1px solid #bfe0d8; border-radius: 20px; background: var(--accent-soft); }
.aic-invite h3 { margin: 0 0 8px; font-size: 19px; font-weight: 950; color: var(--accent); }
.aic-invite p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; font-weight: 760; color: #3c5b53; }

/* hero 双栏：左内容 + 右 Top5 */
.aic-cta-row { display: flex; flex-direction: column; gap: 12px; }
.aic-cta-row .aic-cta { width: 100%; }
.aic-hero-main .aic-steps { margin-top: 20px; }
.aic-hero .aic-step { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.aic-hero .aic-step b { color: #d8fff2; }
.aic-hero .aic-step span { color: #9fb1ab; }

/* Top5：PC 在 hero 内右栏显示（原样）；移动端用 .aic-top5-mobile 置于高分作品上方 */
.aic-top5 { display: none; }
.aic-top5-mobile { display: none; }
/* 移动端 Top5 行可点击查看主页 */
.aic-top5-mobile li { padding: 0; }
.aic-top5-mobile li button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; transition: opacity 0.15s ease; }
.aic-top5-mobile li button:active { opacity: 0.6; }
.aic-top5-mobile li button > div { flex: 1; min-width: 0; }
.aic-top5-mobile li button > strong { justify-self: end; margin-left: 0; flex: 0 0 auto; }
/* 步骤卡 / 任务卡按钮：PC 用完整文案，移动端用精简文案 */
.step-short,
.aic-task-cta .cta-short,
.taskbanner-cta .cta-short { display: none; }
.aic-top5-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.aic-top5-head b { font-size: 14px; font-weight: 950; color: #fff; }
.aic-top5-head em { font-style: normal; font-size: 11px; font-weight: 800; color: #7e948d; }
.aic-top5 ol { list-style: none; margin: 0; padding: 0; }
.aic-top5 li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.aic-top5 li > div { flex: 1; min-width: 0; }
.aic-top5 li .rk {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #7e948d;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}
.aic-top5 li .rk svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.92;
}
.aic-top5 li.top-rank .rk::after {
  position: absolute;
  left: 50%;
  top: 48%;
  color: #07100f;
  content: attr(data-rank);
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  transform: translate(-50%, -50%);
}
.aic-top5 li.rank-first .rk {
  background: rgba(255, 214, 124, 0.16);
  color: #f4c96b;
}
.aic-top5 li.rank-second .rk {
  background: rgba(190, 208, 222, 0.14);
  color: #c7d8e2;
}
.aic-top5 li.rank-third .rk {
  background: rgba(196, 142, 91, 0.14);
  color: #d3a06a;
}
.aic-top5 li b { display: block; font-size: 14px; font-weight: 900; color: #f1f6f4; }
.aic-top5 li em { display: block; font-style: normal; font-size: 12px; font-weight: 760; color: #8aa099; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aic-top5 li strong { font-size: 17px; font-weight: 950; color: #d8fff2; }
.aic-top5 li.top-rank strong,
.aic-top5-mobile li.top-rank button > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 255, 242, 0.1);
  color: #d8fff2;
  font-size: 17px;
  line-height: 1;
  box-shadow: none;
}
.aic-top5 li.rank-first strong,
.aic-top5-mobile li.rank-first button > strong {
  background: rgba(244, 201, 107, 0.15);
  color: #f5d484;
}
.aic-top5 li.rank-second strong,
.aic-top5-mobile li.rank-second button > strong {
  background: rgba(199, 216, 226, 0.12);
  color: #d5e3ea;
}
.aic-top5 li.rank-third strong,
.aic-top5-mobile li.rank-third button > strong {
  background: rgba(211, 160, 106, 0.13);
  color: #e0b783;
}
.aic-top5-foot { margin-top: 12px; font-size: 12px; font-weight: 780; color: #8aa099; }

/* 作品广场 · 深色本周任务模块 */
.aic-taskbanner { margin-bottom: 14px; padding: 20px 22px; border-radius: 18px; color: #eaf3f0; background: linear-gradient(180deg, #0b1413, var(--dark)); }
.aic-taskbanner small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 900; letter-spacing: 0.04em; color: #d8fff2; }
.aic-taskbanner b { display: block; margin-bottom: 14px; font-size: 19px; line-height: 1.3; font-weight: 950; color: #fff; }
.aic-taskbanner .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aic-taskbanner .tags > span { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; font-size: 12px; font-weight: 820; color: #c6d4cf; }
.aic-taskbanner .tags .level-badge-host { gap: 6px; }
.aic-taskbanner .tags .level-prefix { color: #c6d4cf; }
.aic-taskbanner .tags .level-badge {
  min-height: 22px;
  padding: 0 8px;
  border-color: rgba(216, 255, 242, 0.24);
  background: rgba(216, 255, 242, 0.08);
  color: #d8fff2;
}

/* 顶栏徽章：达标后醒目绿渐变 */
body[data-user-state="passed"] .cert-badge {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), #14a386);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(12, 124, 105, 0.28);
}

/* 已认证等级卡：醒目薄荷绿 + 等级图标 */
.member-card.verified { --mint: #4fd6b4; --mint-strong: #063b30; }
.member-card.verified .member-top > span:last-child {
  background: var(--mint);
  color: var(--mint-strong);
  box-shadow: 0 8px 22px rgba(79, 214, 180, 0.28);
}
.member-card.verified .member-level { align-items: center; }
.member-card.verified .member-level b { font-size: 14px; line-height: 1.2; font-weight: 900; color: rgba(255, 255, 255, 0.82); }
.member-card.verified .member-track span { background: linear-gradient(90deg, var(--accent), var(--mint)); }
.member-card.verified .member-top strong .lvl-star { color: var(--mint); }
.member-card.verified .member-avatar { color: var(--mint); border-color: rgba(79, 214, 180, 0.32); }

/* 点评弹层 → 底部抽屉 */
.review-sheet {
  left: 50%;
  bottom: 0;
  top: auto;
  width: min(520px, 100%);
  padding: 30px 26px calc(26px + env(safe-area-inset-bottom, 0px));
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -24px 80px rgba(7, 16, 15, 0.24);
  transform: translateX(-50%);
}

.submit-work-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 56;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  max-height: min(90svh, 760px);
  padding: 28px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background: #fbfcfb;
  box-shadow: 0 -24px 80px rgba(7, 16, 15, 0.2);
  transform: translateX(-50%);
}

.submit-work-sheet::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translateX(-50%);
}

.submit-work-sheet .popover-close {
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(238, 243, 240, 0.94);
  box-shadow: none;
}

.submit-work-head {
  display: grid;
  gap: 8px;
  padding-right: 38px;
}

.submit-work-head h2 {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.08;
  font-weight: 960;
}

.submit-work-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 760;
}

.submit-work-form {
  display: grid;
  gap: 10px;
}

.submit-work-form label {
  display: grid;
  gap: 7px;
}

.submit-work-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.submit-work-form input,
.submit-work-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
}

.submit-work-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.submit-work-form input:focus,
.submit-work-form textarea:focus {
  border-color: rgba(14, 139, 116, 0.42);
  box-shadow: 0 0 0 3px rgba(14, 139, 116, 0.1);
}

.submit-homepage-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f3f8f5;
}

.submit-homepage-toggle input {
  position: relative;
  width: 42px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #dfe8e3;
  cursor: pointer;
  transition: background 180ms ease;
}

.submit-homepage-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 16, 15, 0.14);
  transition: transform 180ms ease;
}

.submit-homepage-toggle input:checked {
  background: var(--accent);
}

.submit-homepage-toggle input:checked::after {
  transform: translateX(18px);
}

.submit-homepage-toggle span {
  display: grid;
  gap: 2px;
}

.submit-homepage-toggle b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.submit-homepage-toggle em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 720;
}

.submit-image-field {
  display: grid;
  gap: 8px;
}

.submit-image-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.submit-image-upload {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  border: 1px dashed rgba(14, 139, 116, 0.34);
  border-radius: 16px;
  background: #f2faf6;
  cursor: pointer;
}

.submit-image-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.submit-image-upload b {
  color: var(--accent);
  font-size: 15px;
  font-weight: 940;
}

.submit-image-upload em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.submit-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.submit-image-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.22;
  margin: 0;
  border-radius: 14px;
  background: #eef3f0;
}

.submit-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-image-thumb figcaption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(7, 16, 15, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.submit-image-thumb.is-main {
  box-shadow: inset 0 0 0 2px rgba(14, 139, 116, 0.48);
}

.submit-image-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.submit-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 760;
}

.submit-form-note.is-error {
  color: #b42318;
}

.submit-work-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.submit-success-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(7, 16, 15, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  transform: translateX(-50%);
}

.work-detail-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 52;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: min(440px, 100%);
  max-height: min(88svh, 760px);
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  border-radius: 30px 30px 0 0;
  background: #fbfcfb;
  box-shadow: 0 -22px 70px rgba(7, 16, 15, 0.18);
  transform: translateX(-50%);
}

.work-detail-sheet::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translateX(-50%);
}

.work-detail-sheet .popover-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 243, 240, 0.94);
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.work-detail-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 24px;
}

.work-detail-strip {
  display: grid;
  grid-auto-columns: 112px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 2px 4px;
  scrollbar-width: none;
}

.work-detail-strip::-webkit-scrollbar {
  display: none;
}

.work-detail-thumb {
  overflow: hidden;
  width: 112px;
  height: 112px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(210, 222, 217, 0.82);
  border-radius: 18px;
  background: #fff;
  cursor: zoom-in;
}

.work-detail-thumb.active {
  border-color: rgba(14, 139, 116, 0.5);
  box-shadow: inset 0 0 0 2px rgba(14, 139, 116, 0.16);
}

.work-detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-detail-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.work-detail-main h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 950;
}

.work-detail-main p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.work-detail-main [data-work-detail-author] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.work-detail-author-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.work-detail-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(14, 139, 116, 0.18);
  border-radius: 999px;
  background: #e8f5f0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.work-detail-level-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: currentColor;
  fill: currentColor;
}

.work-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.work-detail-metrics span {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: #eef6f2;
}

.work-detail-metrics b,
.work-detail-metrics em {
  display: block;
}

.work-detail-metrics b {
  overflow: hidden;
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
  font-weight: 940;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-detail-metrics em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.work-detail-info {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-detail-info div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.work-detail-info div:first-child {
  border-top: 0;
}

.work-detail-info dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.work-detail-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 760;
}

.work-detail-info a {
  color: var(--accent);
  font-weight: 900;
}

.work-detail-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  margin-top: 0;
}

.image-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 16, 15, 0.54);
  backdrop-filter: blur(10px);
}

.image-preview-sheet {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-preview-sheet img {
  display: block;
  max-width: min(92vw, 780px);
  max-height: 86svh;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.image-preview-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.image-preview-close::before {
  content: "×";
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
}

.image-preview-nav {
  position: fixed;
  top: 50%;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.image-preview-nav::before {
  font-size: 34px;
  line-height: 1;
  transform: translateY(-2px);
}

.image-preview-nav.prev::before {
  content: "‹";
}

.image-preview-nav.next::before {
  content: "›";
}

.image-preview-nav.prev {
  left: max(14px, env(safe-area-inset-left, 0px));
}

.image-preview-nav.next {
  right: max(14px, env(safe-area-inset-right, 0px));
}

.image-preview-nav:disabled {
  opacity: 0.35;
}

.image-preview-count {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 92;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(7, 16, 15, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
}

.work-product-card {
  cursor: pointer;
}

.work-product-card a,
.work-product-card button {
  cursor: pointer;
}

.review-score-control {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.review-score-control output {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.review-score-control input {
  width: 100%;
  accent-color: var(--accent);
}

.review-score-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.review-sheet::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.review-sheet .popover-close { display: none; }
.review-sheet .popover-kicker {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.review-author { margin: -8px 0 0; color: var(--muted); font-size: 13px; font-weight: 840; }
.review-label { margin-bottom: -6px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.02em; }
.review-score-row button.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.review-criteria { gap: 10px; }
.review-criteria span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
}
.review-criteria span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
}

@media (max-width: 560px) {
  /* 移动端 Top5：置于高分作品上方，保留深色；与上方实战任务拉开间距 */
  .aic-top5-mobile {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 26px 0 14px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #0b1413, var(--dark));
  }
  .aic-top5-mobile li {
    display: block;
    width: 100%;
  }
  .aic-top5-mobile li button {
    position: static;
    display: flex;
    align-items: center;
    padding-right: 0;
  }
  .aic-top5-mobile li button > strong {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    transform: none;
  }
  .aic-top5-mobile li button > div {
    flex: 1 1 auto;
    min-width: 0;
  }
  .aic-hero { margin-top: 12px; padding: 24px 22px; }
  .aic-hero h1 { font-size: 26px; }
  /* 步骤卡：移动端用精简文案 */
  .aic-step .step-full { display: none; }
  .aic-step .step-short { display: inline; }
  .aic-step { padding: 12px 12px; }
  .aic-task-card { padding: 18px; }
  .aic-task-card h3 { font-size: 18px; }
  /* 任务卡按钮：Do it，放在统计行最高星右侧 */
  .aic-stats-bar { gap: 10px; }
  .aic-stats { gap: 6px; }
  .aic-task-cta { min-height: 34px; padding: 0 16px; font-size: 13px; }
  .aic-task-cta .cta-full { display: none; }
  .aic-task-cta .cta-short { display: inline; }
  .aic-stats div b { font-size: 19px; }
  /* 作品广场本周任务：Do it 按钮在标签行右侧 */
  .taskbanner-bottom { gap: 10px; }
  .taskbanner-cta { min-height: 34px; padding: 0 16px; font-size: 13px; }
  .taskbanner-cta .cta-full { display: none; }
  .taskbanner-cta .cta-short { display: inline; }
  .aic-invite { padding: 22px; }
  .aic-invite h3 { font-size: 17px; }
}

/* PC：hero 铺满双栏（左内容 + 右 Top5），整页宽度与导航条一致（沿用 workspace 1180） */
@media (min-width: 561px) {
  .aic-hero { padding: 44px 48px; }
  .aic-hero h1 { font-size: 40px; }
  .aic-hero p { font-size: 14px; }
  .aic-hero.is-passed { padding: 30px 34px; }
  .aic-task-head h2 { font-size: 20px; }
  .aic-task-card h3 { font-size: 22px; }
  /* PC：hero 内左内容 + 右 Top5（原样） */
  .aic-hero.has-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
  }
  .aic-hero.has-side .aic-hero-main p { max-width: 52ch; }
  .aic-cta-row { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
  .aic-cta-row .aic-cta { width: auto; }
  .aic-hero .aic-top5 {
    display: block;
    margin-top: 0;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
  }
  .aic-taskbanner { padding: 24px 26px; }
  .aic-taskbanner b { font-size: 21px; }
}

/* 紧凑型 CTA */
.aic-cta.compact { min-height: 40px; width: auto; padding: 0 18px; font-size: 13px; }

/* 作品广场任务横幅：标签 + 去提交按钮 */
.taskbanner-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap; }
.taskbanner-bottom .tags { flex: 1 1 auto; min-width: 0; }
.taskbanner-cta { flex: 0 0 auto; white-space: nowrap; }

/* 天梯页：我的名次/等级沉底常驻条 */
.my-ladder-bar {
  position: sticky;
  bottom: 16px;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(7, 16, 15, 0.11);
  backdrop-filter: blur(12px);
}
.my-ladder-bar .mlb-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mlb-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6f8f7;
}
.mlb-cell small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
  white-space: nowrap;
}
.mlb-cell b {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
.mlb-cell b .level-badge {
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  background: #edf2f0;
  color: var(--muted);
  font-size: 11px;
}
.my-ladder-bar .aic-cta.compact {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
}

/* 仅天梯页显示该常驻条（其它 view 内不存在该元素，无需额外处理） */
@media (max-width: 560px) {
  .my-ladder-bar {
    bottom: 74px;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 20px;
  }
  .my-ladder-bar .mlb-info {
    flex: 1 1 auto;
    gap: 6px;
  }
  .mlb-cell {
    gap: 5px;
    min-height: 32px;
    padding: 0 8px;
  }
  .mlb-cell small {
    font-size: 10px;
  }
  .mlb-cell b {
    font-size: 13px;
  }
  .mlb-cell b .level-badge {
    min-height: 21px;
    padding: 0 6px;
    font-size: 10.5px;
  }
  .my-ladder-bar .aic-cta.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11.5px;
  }
}

/* 天梯页：压缩顶部标题区，并把结算信息收进卡片头部。 */
#challengeView .page-head {
  align-items: end;
  gap: 16px;
  margin-top: -4px;
  margin-bottom: 8px;
}

#challengeView .page-head > div:first-child {
  display: grid;
  gap: 8px;
}

#challengeView .page-head .eyebrow {
  margin: 0;
}

#challengeView .page-head h1 {
  line-height: 0.9;
}

#challengeView .season-filter {
  align-self: end;
  padding-bottom: 2px;
  transform: translateY(8px);
}

.challenge-ranking .panel-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 14px;
  min-height: 66px;
  padding: 14px 16px;
}

.challenge-ranking .panel-head span {
  grid-column: 1;
  grid-row: 1;
}

.challenge-ranking .panel-head strong {
  grid-column: 1 / -1;
  grid-row: 2;
}

.challenge-ranking .panel-head .panel-meta {
  grid-column: 2;
  grid-row: 1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 560px) {
  #challengeView .page-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: -8px;
    margin-bottom: 8px;
  }

  #challengeView .page-head > div:first-child {
    gap: 6px;
  }

  #challengeView .page-head h1 {
    font-size: 46px;
    line-height: 0.9;
  }

  #challengeView .season-filter {
    width: auto;
    justify-self: end;
    padding-bottom: 1px;
    transform: translateY(7px);
  }

  #challengeView .season-filter .challenge-date-trigger {
    min-height: 30px;
    gap: 6px;
  }

  #challengeView .season-filter .challenge-date-trigger span {
    font-size: 11px;
  }

  #challengeView .season-filter .challenge-date-trigger strong {
    font-size: 14px;
  }

  .challenge-ranking .panel-head {
    min-height: 60px;
    padding: 12px 14px;
  }

  .challenge-ranking .panel-head strong {
    font-size: 16px;
  }

  .challenge-ranking .panel-head .panel-meta {
    font-size: 11px;
  }
}

/* PC：作品网格保持手机端卡片比例，自适应每行个数（最多约 6 个，窗口缩小则减少） */
@media (min-width: 561px) {
  .work-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 14px;
  }
  .work-product-card { grid-template-rows: 128px auto auto 34px; gap: 10px; padding: 10px; }
  /* 首页高分作品预览：与作品广场一致，竖排小卡，自适应每行最多约 6 个 */
  .work-preview-list {
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 14px;
  }
  .work-preview-card {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    min-height: 0;
    gap: 9px;
  }
  .work-product-copy h2 {
    display: block;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
  }
  .work-product-copy p { font-size: 11px; }
  .work-product-copy > div { flex-wrap: nowrap; }
  .work-product-copy > div span { font-size: 11px; white-space: nowrap; }

  /* 作品广场筛选：弱化为文字 + 轻交互（去掉胶囊按钮样式） */
  .works-controls { gap: 22px; }
  .works-controls .challenge-date-trigger.compact {
    min-height: auto;
    padding: 4px 0;
    background: transparent;
    box-shadow: none;
  }
  .works-controls .challenge-date-trigger.compact:hover { background: transparent; }
  .works-controls .challenge-date-trigger.compact:hover strong { color: var(--accent); }
  .works-controls .sort-select {
    min-height: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .works-controls .sort-select select {
    min-height: auto;
    border-left: 0;
    padding-left: 6px;
    color: var(--ink);
    cursor: pointer;
  }
  .works-controls .challenge-date-trigger.compact span,
  .works-controls .sort-select > span { color: var(--faint); font-weight: 760; }
  .works-controls .challenge-date-trigger.compact strong { color: var(--ink); font-weight: 860; }
  .works-controls .challenge-date-trigger::after { opacity: 0.45; }
}

/* 2026-06-11 polish: unify task blocks, filters, ladder controls and profile card. */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

#challengeView .page-head,
#worksView .page-head {
  align-items: end;
}

.works-controls,
.season-filter {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.works-controls .challenge-date-trigger.compact,
.season-filter .challenge-date-trigger,
.works-controls .sort-select {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.works-controls .challenge-date-trigger.compact,
.season-filter .challenge-date-trigger {
  gap: 8px;
}

.works-controls .challenge-date-trigger.compact span,
.season-filter .challenge-date-trigger span,
.works-controls .sort-select > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.works-controls .challenge-date-trigger.compact strong,
.season-filter .challenge-date-trigger strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.works-controls .sort-select {
  position: relative;
  gap: 10px;
  padding-right: 20px;
}

.works-controls .sort-select select {
  position: absolute;
  inset: -8px -6px -8px 0;
  z-index: 2;
  min-height: 34px;
  padding: 0 24px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  opacity: 0;
  cursor: pointer;
}

.works-controls .sort-select strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.works-controls .challenge-date-trigger::after,
.season-filter .challenge-date-trigger::after {
  margin-left: 0;
  opacity: 0.7;
}

.aic-task-card,
.aic-taskbanner {
  border-radius: 22px;
  background:
    radial-gradient(115% 120% at 94% -18%, rgba(16, 132, 111, 0.18), transparent 58%),
    linear-gradient(180deg, #0b1413, #07100f);
  color: #eef8f4;
  box-shadow: 0 12px 34px rgba(7, 16, 15, 0.1);
}

.aic-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "chips chips"
    "title title"
    "deliver action"
    "stats stats";
  gap: 0 18px;
  padding: 22px 24px;
  border: 0;
}

.aic-task-card .aic-chips {
  grid-area: chips;
  margin-bottom: 14px;
}

.aic-task-card .aic-chip {
  color: #d8fff2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.aic-task-card .aic-chip.reward {
  color: #f5d494;
  background: rgba(183, 134, 35, 0.14);
}

.aic-task-card h3 {
  grid-area: title;
  max-width: 780px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 23px;
}

.aic-deliver {
  grid-area: deliver;
  align-self: center;
  margin: 0;
}

.aic-deliver span,
.aic-taskbanner .tags span {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #c8d6d1;
}

.aic-task-card .aic-stats-bar {
  display: contents;
}

.aic-task-card .aic-stats {
  grid-area: stats;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aic-task-card .aic-stats div b {
  color: #f3fbf8;
}

.aic-task-card .aic-stats div em {
  color: #859a93;
}

.aic-task-card .aic-stats .hl b {
  color: #d8fff2;
}

.aic-task-card .aic-task-cta {
  grid-area: action;
  align-self: center;
  min-height: 42px;
  padding: 0 22px;
  background: var(--accent);
}

.aic-taskbanner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "title title"
    "tags action";
  gap: 0 18px;
  padding: 22px 24px;
}

.aic-taskbanner small {
  grid-area: label;
  margin-bottom: 12px;
  color: #d8fff2;
}

.aic-taskbanner b {
  grid-area: title;
  max-width: 720px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 23px;
  line-height: 1.22;
}

.taskbanner-bottom {
  display: contents;
}

.aic-taskbanner .tags {
  grid-area: tags;
  align-self: center;
}

.taskbanner-cta {
  grid-area: action;
  align-self: center;
  min-height: 42px;
  padding: 0 22px;
  background: var(--accent);
}

.aic-top5-head {
  margin-bottom: 3px;
}

.aic-top5 li,
.aic-top5-mobile li button {
  gap: 10px;
  padding: 8px 0;
}

.aic-top5 li .rk {
  width: 22px;
  height: 22px;
}

.aic-top5 li b {
  font-size: 13px;
}

.aic-top5 li em {
  font-size: 11px;
}

.aic-top5 li strong {
  font-size: 15px;
}

.aic-top5-foot {
  margin-top: 8px;
  font-size: 11px;
}

.member-card.unverified,
.member-card.warning {
  background:
    radial-gradient(115% 120% at 92% -16%, rgba(16, 132, 111, 0.18), transparent 58%),
    linear-gradient(180deg, #0b1413, #07100f);
  color: #eef8f4;
}

.member-card.unverified .member-avatar,
.member-card.warning .member-avatar {
  color: #d8fff2;
  border-color: rgba(216, 255, 242, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.member-card.unverified .member-top small,
.member-card.warning .member-top small,
.member-card.unverified .member-level span,
.member-card.warning .member-level span,
.member-card.unverified p,
.member-card.warning p {
  color: #8fa59e;
}

.member-card.unverified .member-top strong,
.member-card.warning .member-top strong,
.member-card.unverified .member-level b,
.member-card.warning .member-level b {
  color: #fff;
}

.member-card.unverified .member-top > button {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.member-card.warning .member-top > span:last-child {
  border: 1px solid rgba(245, 212, 148, 0.2);
  background: rgba(183, 134, 35, 0.14);
  color: #f5d494;
}

.member-card.unverified .member-track,
.member-card.warning .member-track {
  background: rgba(255, 255, 255, 0.12);
}

.member-card.warning .member-track span {
  background: linear-gradient(90deg, var(--accent), #d8fff2);
}

@media (min-width: 561px) {
  .aic-hero .aic-top5 {
    padding: 16px 18px;
  }
}

@media (max-width: 560px) {
  .page-head {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .works-controls,
  .season-filter {
    width: 100%;
    justify-content: flex-end;
    gap: 20px;
  }

  .works-controls .challenge-date-trigger.compact,
  .season-filter .challenge-date-trigger,
  .works-controls .sort-select {
    width: auto;
    min-width: 0;
  }

  #worksView .page-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: -8px;
    margin-bottom: 10px;
  }

  #worksView .page-head .eyebrow {
    margin-bottom: 3px;
  }

  #worksView .page-head h1 {
    font-size: 36px;
    line-height: 0.92;
    white-space: nowrap;
  }

  #worksView .works-controls {
    width: auto;
    align-self: center;
    justify-content: flex-end;
    gap: 0;
    transform: translateY(13.5625px);
  }

  #worksView .works-controls .sort-select {
    position: relative;
    min-height: 22px;
    align-items: flex-end;
    gap: 9px;
    padding-right: 18px;
  }

  #worksView .works-controls .sort-select > span {
    color: rgba(83, 94, 90, 0.86);
    font-size: 11px;
    line-height: 1;
    font-weight: 760;
  }

  #worksView .works-controls .sort-select select {
    position: absolute;
    inset: -8px -6px -8px 0;
    z-index: 2;
    min-height: 22px;
    opacity: 0;
    font-size: 11px;
    font-weight: 760;
    cursor: pointer;
  }

  #worksView .works-controls .sort-select strong {
    color: rgba(83, 94, 90, 0.86);
    font-size: 11px;
    line-height: 1;
    font-weight: 760;
    white-space: nowrap;
  }

  #worksView .works-controls .sort-select::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(83, 94, 90, 0.86);
    border-bottom: 2px solid rgba(83, 94, 90, 0.86);
    transform: rotate(45deg);
  }

  .aic-task-card,
  .aic-taskbanner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px 22px;
    border-radius: 22px;
  }

  .aic-task-card h3,
  .aic-taskbanner b {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
    font-size: 21px;
  }

  .aic-deliver,
  .aic-taskbanner .tags {
    gap: 8px;
  }

  .aic-deliver span,
  .aic-taskbanner .tags span {
    padding: 7px 11px;
    font-size: 12px;
  }

  .aic-task-card .aic-stats {
    display: none;
  }
}

/* 2026-06-11 visual correction: light task surface, stable horizontal actions, calmer nav. */
.aic-task-card,
.aic-taskbanner {
  border: 1px solid rgba(210, 222, 217, 0.86);
  background:
    linear-gradient(135deg, rgba(12, 124, 105, 0.045), transparent 44%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(7, 16, 15, 0.055);
}

.aic-task-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "chips chips"
    "title title"
    "deliver action"
    "stats stats";
  padding: 20px 22px;
}

.aic-taskbanner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "title title"
    "tags action";
  gap: 0 12px;
  padding: 16px 18px;
}

.aic-task-card .aic-chip {
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid var(--line);
}

.aic-task-card .aic-chip.season {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(12, 124, 105, 0.18);
}

.aic-task-card .aic-chip.reward {
  color: #8a681f;
  background: #fbf2dd;
  border-color: rgba(154, 111, 37, 0.16);
}

.aic-task-card h3,
.aic-taskbanner b {
  color: var(--ink);
}

.aic-task-card h3 {
  margin-bottom: 15px;
  font-size: 21px;
}

.aic-taskbanner b {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: 18px;
}

.aic-taskbanner small {
  margin-bottom: 8px;
  color: var(--accent);
}

.aic-deliver,
.aic-taskbanner .tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.aic-deliver::-webkit-scrollbar,
.aic-taskbanner .tags::-webkit-scrollbar {
  display: none;
}

.aic-deliver span,
.aic-taskbanner .tags span {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.aic-task-card .aic-stats {
  border-top-color: var(--line);
}

.aic-task-card .aic-stats div b {
  color: var(--ink);
}

.aic-task-card .aic-stats div em {
  color: var(--muted);
}

.aic-task-card .aic-stats .hl b {
  color: var(--accent);
}

.aic-task-card .aic-task-cta,
.taskbanner-cta {
  min-width: 88px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: none;
}

.aic-taskbanner .taskbanner-cta {
  align-self: center;
}

.work-product-card > button {
  min-height: 34px;
  background: var(--accent);
  font-weight: 900;
}

.works-market-head .ghost-button.compact {
  min-width: 92px;
  white-space: nowrap;
}

.mobile-tabbar {
  box-shadow: 0 7px 18px rgba(7, 16, 15, 0.085);
}

@media (max-width: 560px) {
  .aic-task-card,
  .aic-taskbanner {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 0 8px;
    padding: 16px;
  }

  .aic-task-card h3,
  .aic-taskbanner b {
    font-size: 18px;
    line-height: 1.25;
  }

  .aic-task-card .aic-chips {
    margin-bottom: 11px;
  }

  .aic-chip {
    padding: 5px 9px;
    font-size: 10.5px;
  }

  .aic-deliver span,
  .aic-taskbanner .tags span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .aic-task-card .aic-task-cta,
  .taskbanner-cta {
    min-width: 70px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .aic-task-card .aic-stats {
    display: none;
  }

  .mobile-tabbar {
    min-height: 52px;
    box-shadow: 0 6px 18px rgba(7, 16, 15, 0.08);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon {
    top: -16px;
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 14px rgba(7, 16, 15, 0.1);
  }
}

/* 2026-06-11 request pass: home task = full card, works task = dark strip. */
#homeView .aic-task-card {
  grid-template-columns: 1fr;
  grid-template-areas:
    "chips"
    "title"
    "deliver"
    "stats"
    "action";
  gap: 0;
  padding: 20px 22px 22px;
  border-radius: 22px;
}

#homeView .aic-task-card .aic-chips {
  margin-bottom: 20px;
}

#homeView .aic-task-card h3 {
  margin-bottom: 18px;
}

#homeView .aic-task-card .aic-stats-bar {
  display: contents;
}

#homeView .aic-task-card .aic-stats {
  display: grid;
  grid-area: stats;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#homeView .aic-task-card .aic-stats div {
  text-align: center;
}

#homeView .aic-task-card .aic-stats div b {
  font-size: 28px;
}

#homeView .aic-task-card .aic-stats div em {
  margin-top: 4px;
  font-size: 12px;
}

#homeView .aic-task-card .aic-task-cta {
  grid-area: action;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  font-size: 16px;
}

#worksView .aic-taskbanner {
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(115% 120% at 94% -18%, rgba(16, 132, 111, 0.18), transparent 58%),
    linear-gradient(180deg, #0b1413, #07100f);
  color: #eef8f4;
}

#worksView .aic-taskbanner small {
  color: #d8fff2;
}

#worksView .aic-taskbanner b {
  color: #fff;
}

#worksView .aic-taskbanner .tags span {
  min-height: 30px;
  padding: 0 7px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: #c8d6d1;
  font-size: 10px;
}

#worksView .taskbanner-cta {
  min-width: 72px;
  padding: 0 12px;
}

@media (max-width: 560px) {
  #homeView .aic-task-card {
    padding: 18px 18px 20px;
  }

  #homeView .aic-task-card .aic-chips {
    margin-bottom: 18px;
  }

  #homeView .aic-task-card .aic-deliver {
    overflow: visible;
  }

  #homeView .aic-task-card .aic-stats {
    margin-top: 18px;
    padding-top: 16px;
  }

  #homeView .aic-task-card .aic-stats div b {
    font-size: 24px;
  }

  #homeView .aic-task-card .aic-task-cta {
    min-height: 50px;
    margin-top: 18px;
    font-size: 15px;
  }

  #worksView .aic-taskbanner {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

/* 2026-06-11 hero copy polish. */
.aic-hero h1 {
  font-size: 32px;
}

.aic-cta-row {
  width: min(100%, 520px);
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.aic-cta-row .aic-cta {
  width: 100%;
}

.aic-hint {
  margin-top: 0;
  text-align: center;
}

@media (min-width: 561px) {
  .aic-hero h1 {
    font-size: 44px;
  }

  .aic-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .aic-cta-row .aic-cta {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .aic-hero h1 {
    font-size: 29px;
  }
}

/* 2026-06-11 compact home task polish. */
#homeView .aic-task-card {
  padding: 16px 18px 18px;
}

#homeView .aic-task-card .aic-chips {
  margin-bottom: 14px;
}

#homeView .aic-task-card h3 {
  margin-bottom: 14px;
}

#homeView .aic-task-card .aic-deliver {
  align-items: center;
}

#homeView .aic-task-card .aic-deliver span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  line-height: 1;
}

#homeView .aic-task-card .aic-stats {
  margin-top: 15px;
  padding-top: 14px;
}

#homeView .aic-task-card .aic-stats div b {
  font-size: 25px;
}

#homeView .aic-task-card .aic-stats div em {
  margin-top: 2px;
}

#homeView .aic-task-card .aic-task-cta {
  min-height: 48px;
  margin-top: 16px;
}

.aic-hero h1 {
  font-size: 34px;
}

@media (min-width: 561px) {
  .aic-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 560px) {
  .aic-hero h1 {
    font-size: 33px;
  }

  #homeView .aic-task-card {
    padding: 13px 16px 15px;
  }

  #homeView .aic-task-card .aic-chips {
    margin-bottom: 11px;
  }

  #homeView .aic-task-card h3 {
    margin-bottom: 12px;
  }

  #homeView .aic-task-card .aic-deliver {
    gap: 7px;
    margin-bottom: 0;
  }

  #homeView .aic-task-card .aic-deliver span {
    height: 30px;
    min-height: 0;
    padding: 0 11px;
    line-height: 1;
  }

  #homeView .aic-task-card .aic-stats {
    margin-top: 13px;
    padding-top: 12px;
  }

  #homeView .aic-task-card .aic-stats div b {
    font-size: 22px;
  }

  #homeView .aic-task-card .aic-stats div em {
    font-size: 11px;
  }

  #homeView .aic-task-card .aic-task-cta {
    min-height: 44px;
    margin-top: 13px;
  }
}

/* 2026-06-11 works task banner polish: top-right submit action + centered requirement chips. */
#worksView .aic-taskbanner {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "title"
    "tags";
  padding: 20px 22px 22px;
}

#worksView .aic-taskbanner small {
  padding-right: 92px;
}

#worksView .aic-taskbanner b {
  max-width: calc(100% - 94px);
  margin-bottom: 18px;
}

#worksView .aic-taskbanner .tags {
  align-items: center;
  gap: 10px;
}

#worksView .aic-taskbanner .tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-height: 0;
  padding: 0 12px;
  line-height: 1;
}

#worksView .taskbanner-cta {
  position: absolute;
  top: 20px;
  right: 22px;
  min-width: 76px;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

@media (max-width: 560px) {
  #worksView .aic-taskbanner {
    padding: 18px 18px 20px;
  }

  #worksView .aic-taskbanner small {
    padding-right: 84px;
  }

  #worksView .aic-taskbanner b {
    max-width: calc(100% - 88px);
    margin-bottom: 16px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #worksView .aic-taskbanner .tags {
    gap: 8px;
  }

  #worksView .aic-taskbanner .tags span {
    height: 30px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  #worksView .taskbanner-cta {
    top: 18px;
    right: 18px;
    min-width: 68px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* 2026-06-11 works banner layout correction: keep action in the header row, let title breathe. */
#worksView .aic-taskbanner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "title title"
    "tags tags";
  align-items: center;
  row-gap: 16px;
  column-gap: 14px;
}

#worksView .aic-taskbanner small {
  padding-right: 0;
  margin-bottom: 0;
}

#worksView .aic-taskbanner b {
  max-width: 100%;
  margin-bottom: 0;
}

#worksView .taskbanner-cta {
  position: static;
  justify-self: end;
  min-width: 78px;
  min-height: 36px;
}

#worksView .aic-taskbanner .tags {
  align-self: start;
}

@media (max-width: 560px) {
  #worksView .aic-taskbanner {
    row-gap: 15px;
  }

  #worksView .aic-taskbanner b {
    max-width: 100%;
  }

  #worksView .taskbanner-cta {
    min-width: 70px;
    min-height: 34px;
  }
}

/* 天梯页：筛选器需要始终浮在榜单卡片之上。 */
#challengeView .page-head {
  position: relative;
  z-index: 80;
}

#challengeView .season-filter {
  position: relative;
  z-index: 90;
}

#challengeView .season-filter .season-popover,
#challengeView .season-filter .date-picker-sheet.challenge-date-popover.season-popover {
  z-index: 140;
}

#challengeView .challenge-ranking {
  position: relative;
  z-index: 1;
}

.podium-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 920;
}

/* Bottom navigation refresh: inspired by XiaoJia's soft tabbar motion. */
@media (max-width: 560px) {
  .mobile-tabbar {
    --tab-padding-x: 6px;
    --tab-padding-y: 5px;
    bottom: 0;
    width: min(100%, var(--phone-canvas));
    min-height: 56px;
    padding: var(--tab-padding-y) var(--tab-padding-x) calc(var(--tab-padding-y) + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 18px rgba(18, 32, 29, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar .tab-indicator {
    top: 7px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    border-radius: 18px;
    background: #f2f5f4;
    box-shadow: none;
    opacity: 1;
    transition:
      transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.2s ease;
  }

  body[data-current-view="challenge"] .mobile-tabbar .tab-indicator,
  body[data-current-view="creator"] .mobile-tabbar .tab-indicator {
    opacity: 1;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    gap: 3px;
    min-height: 45px;
    color: #909895;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0;
    transition:
      color 0.2s ease,
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--accent);
    transform: translateY(-2px);
  }

  .tab-icon {
    width: 23px;
    height: 23px;
    border-radius: 999px;
    transition:
      background 0.24s ease,
      color 0.24s ease,
      transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tab-icon svg {
    width: 18px;
    height: 18px;
  }

  .mobile-tabbar button.active .tab-icon,
  .mobile-tabbar a.active .tab-icon,
  .mobile-tabbar a[aria-current="page"] .tab-icon {
    background: rgba(17, 137, 116, 0.1);
    transform: translateY(-1px) scale(1.04);
  }

  .mobile-tabbar [data-view-link="challenge"] {
    font-size: 10.5px;
    font-weight: 840;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon {
    top: -12px;
    width: 42px;
    height: 42px;
    border: 4px solid #fff;
    background: #ecf8f4;
    color: var(--accent);
    box-shadow: 0 5px 14px rgba(18, 32, 29, 0.08);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 21px;
    height: 21px;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 7px 16px rgba(17, 137, 116, 0.2);
    transform: translateX(-50%) translateY(-1px) scale(1.04);
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    bottom: 3px;
    font-size: 10px;
  }

  .mobile-tabbar .locked-nav .tab-icon::after {
    right: -5px;
    bottom: -2px;
    background: #eef2f1;
    color: #7f8885;
    content: "锁";
    font-size: 7px;
    font-weight: 900;
  }

  .prototype-switcher {
    bottom: 62px;
  }
}

/* Challenge page type pass 2: reduce poster feel, improve data-dashboard precision. */
#challengeView .page-head .eyebrow {
  font-size: 10.5px;
  font-weight: 860;
}

#challengeView .page-head h1 {
  font-size: clamp(36px, 5.2vw, 48px);
  line-height: 1.02;
  font-weight: 860;
}

#challengeView .season-filter .challenge-date-trigger span {
  font-size: 11px;
}

#challengeView .season-filter .challenge-date-trigger strong {
  font-size: 14px;
  font-weight: 820;
}

#challengeView .challenge-ranking .panel-head span {
  font-size: 12px;
  font-weight: 760;
}

#challengeView .challenge-ranking .panel-head .panel-meta {
  font-size: 10.5px;
  font-weight: 720;
}

#challengeView .challenge-ranking .panel-head strong {
  font-size: 15px;
  font-weight: 820;
}

#challengeView .podium-card strong {
  font-size: 15px;
  font-weight: 820;
}

#challengeView .podium-card.first strong {
  font-size: 17px;
  font-weight: 850;
}

#challengeView .podium-card .level-badge,
#challengeView .podium-card .author-level {
  font-size: 10.5px;
  font-weight: 760;
}

#challengeView .challenge-ranking .leader-row.compact strong b {
  font-size: 14px;
  font-weight: 780;
}

#challengeView .challenge-ranking .leader-row.compact strong em {
  font-size: 10px;
  font-weight: 680;
}

#challengeView .challenge-ranking .leader-row.compact .leader-level {
  font-size: 10px;
  font-weight: 760;
}

@media (max-width: 560px) {
  #challengeView .page-head h1 {
    font-size: 38px;
    font-weight: 860;
  }

  #challengeView .challenge-ranking .panel-head strong {
    font-size: 15px;
  }

  #challengeView .podium-card.first strong {
    font-size: 17px;
  }
}

/* Challenge page type pass 3: refined mobile-first scale. */
#challengeView .page-head h1 {
  font-size: clamp(32px, 4.6vw, 42px) !important;
  line-height: 1.06 !important;
  font-weight: 780 !important;
}

#challengeView .page-head .eyebrow {
  font-size: 10px !important;
  font-weight: 820 !important;
}

#challengeView .challenge-ranking .panel-head strong {
  font-size: 14px !important;
  font-weight: 760 !important;
}

#challengeView .challenge-ranking .panel-head span {
  font-size: 11.5px !important;
  font-weight: 720 !important;
}

#challengeView .podium-card.first strong {
  font-size: 16px !important;
  font-weight: 800 !important;
}

#challengeView .podium-card strong {
  font-size: 14px !important;
  font-weight: 760 !important;
}

#challengeView .challenge-ranking .leader-row.compact strong b {
  font-size: 13.5px !important;
  font-weight: 740 !important;
}

@media (max-width: 560px) {
  #challengeView .page-head h1 {
    font-size: 34px !important;
  }
}

/* Bottom navigation glass v2: closer to XiaoJia-style rounded icon selection. */
@media (max-width: 560px) {
  .mobile-tabbar {
    --tab-padding-x: 8px;
    --tab-padding-y: 6px;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(calc(100% - 34px), calc(var(--phone-canvas) - 34px));
    min-height: 66px;
    padding: var(--tab-padding-y) var(--tab-padding-x);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(233, 244, 240, 0.58));
    box-shadow:
      0 20px 44px rgba(14, 27, 24, 0.18),
      0 3px 10px rgba(14, 27, 24, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(28px) saturate(1.85);
    -webkit-backdrop-filter: blur(28px) saturate(1.85);
  }

  .mobile-tabbar::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: 29px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(17, 137, 116, 0.06), rgba(255, 255, 255, 0.2));
    pointer-events: none;
  }

  .mobile-tabbar .tab-indicator {
    top: 8px;
    bottom: 8px;
    left: var(--tab-padding-x);
    width: calc((100% - (var(--tab-padding-x) * 2)) / 5);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.64),
      0 8px 18px rgba(17, 137, 116, 0.1);
    opacity: 1;
    transition:
      transform 0.42s cubic-bezier(0.18, 0.9, 0.22, 1),
      background 0.24s ease,
      box-shadow 0.24s ease;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    gap: 4px;
    min-height: 54px;
    color: rgba(62, 74, 70, 0.62);
    font-size: 10.5px;
    font-weight: 820;
    transform: translateY(0);
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--accent);
    transform: translateY(-2px);
  }

  .mobile-tabbar .tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    color: currentColor;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
    transition:
      width 0.26s cubic-bezier(0.18, 0.9, 0.22, 1),
      height 0.26s cubic-bezier(0.18, 0.9, 0.22, 1),
      border-radius 0.26s cubic-bezier(0.18, 0.9, 0.22, 1),
      background 0.22s ease,
      color 0.22s ease,
      transform 0.3s cubic-bezier(0.18, 0.9, 0.22, 1),
      box-shadow 0.22s ease;
  }

  .mobile-tabbar .tab-icon svg {
    width: 18px;
    height: 18px;
  }

  .mobile-tabbar button.active .tab-icon,
  .mobile-tabbar a.active .tab-icon,
  .mobile-tabbar a[aria-current="page"] .tab-icon {
    background: var(--accent);
    color: #fff;
    box-shadow:
      0 8px 16px rgba(17, 137, 116, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-3px) scale(1.05);
  }

  .mobile-tabbar [data-view-link="challenge"] {
    transform: translateY(0);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon {
    position: relative;
    top: -9px;
    left: auto;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    background: rgba(17, 137, 116, 0.12);
    color: var(--accent);
    box-shadow:
      0 12px 26px rgba(17, 137, 116, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 22px;
    height: 22px;
  }

  .mobile-tabbar [data-view-link="challenge"].active {
    transform: translateY(-2px);
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    border-radius: 19px;
    background: var(--accent);
    color: #fff;
    box-shadow:
      0 15px 30px rgba(17, 137, 116, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.04);
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    position: static;
    margin-top: -8px;
    font-size: 10.5px;
    line-height: 1;
  }

  .mobile-tabbar .locked-nav .tab-icon::after {
    right: -4px;
    bottom: -4px;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    background: rgba(238, 244, 242, 0.95);
    color: #7a8480;
    content: "锁";
    font-size: 7px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(7, 16, 15, 0.08);
  }

  .prototype-switcher {
    bottom: 84px;
  }
}

/* Bottom navigation glass v3: clean icons, consistent radius, color-only active state. */
@media (max-width: 560px) {
  .mobile-tabbar {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(calc(100% - 32px), calc(var(--phone-canvas) - 32px));
    min-height: 62px;
    padding: 7px 10px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(248, 252, 250, 0.68);
    box-shadow:
      0 18px 38px rgba(14, 27, 24, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(1.7);
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
  }

  .mobile-tabbar::before {
    inset: 1px;
    border-radius: 27px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08));
  }

  .mobile-tabbar .tab-indicator {
    display: none;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    gap: 3px;
    min-height: 48px;
    color: rgba(78, 89, 85, 0.58);
    font-size: 10.5px;
    font-weight: 820;
    transform: none;
    transition: color 0.2s ease, transform 0.22s ease;
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--accent);
    transform: translateY(-1px);
  }

  .mobile-tabbar .tab-icon,
  .mobile-tabbar button.active .tab-icon,
  .mobile-tabbar a.active .tab-icon,
  .mobile-tabbar a[aria-current="page"] .tab-icon {
    position: relative;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    box-shadow: none;
    transform: none;
  }

  .mobile-tabbar .tab-icon svg {
    width: 20px;
    height: 20px;
  }

  .mobile-tabbar [data-view-link="challenge"] {
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    position: absolute;
    top: -19px;
    left: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    box-shadow: none;
    transform: translateX(-50%);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 30px;
    height: 30px;
  }

  .mobile-tabbar [data-view-link="challenge"].active {
    color: var(--accent);
    transform: none;
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    margin-top: 0;
    text-align: center;
  }

  .mobile-tabbar .locked-nav .tab-icon::after {
    right: -4px;
    bottom: 0;
    width: 12px;
    height: 12px;
    border: 0;
    background: rgba(238, 244, 242, 0.92);
    color: #7a8480;
    box-shadow: none;
  }
}

/* Bottom navigation final rule: normal tabs keep active icon block; ladder keeps elevated icon only. */
@media (max-width: 560px) {
  .mobile-tabbar .tab-indicator {
    display: block;
    top: 8px;
    bottom: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.44);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.58),
      0 8px 18px rgba(14, 27, 24, 0.06);
    opacity: 1;
  }

  body[data-current-view="challenge"] .mobile-tabbar .tab-indicator,
  body[data-current-view="creator"] .mobile-tabbar .tab-indicator {
    opacity: 0;
  }

  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon {
    width: 25px;
    height: 25px;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    box-shadow: none;
    transform: translateY(-2px) scale(1.06);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(230, 250, 242, 0.96);
    color: var(--accent);
    box-shadow:
      0 10px 22px rgba(17, 137, 116, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transform: translateX(-50%);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon svg {
    width: 24px;
    height: 24px;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: rgba(230, 250, 242, 0.96);
    color: var(--accent);
    box-shadow:
      0 10px 22px rgba(17, 137, 116, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }
}

/* Bottom navigation position tune: lower and slimmer, keep the same radius and icon states. */
@media (max-width: 560px) {
  .mobile-tabbar {
    bottom: max(4px, env(safe-area-inset-bottom));
    min-height: 58px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 28px;
  }

  .mobile-tabbar::before {
    border-radius: 27px;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    min-height: 46px;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    top: -20px;
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    bottom: 0;
  }

  .prototype-switcher {
    bottom: 76px;
  }
}

/* Bottom navigation line icons and tighter label spacing. */
@media (max-width: 560px) {
  .mobile-tabbar button,
  .mobile-tabbar a {
    gap: 1px;
    font-weight: 700;
  }

  .mobile-tabbar .tab-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    transform: translateY(-1px);
  }

  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon {
    transform: translateY(-1px) scale(1.06);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    top: -20px;
    transition:
      background 0.22s ease,
      color 0.22s ease,
      transform 0.28s cubic-bezier(0.18, 0.9, 0.22, 1),
      box-shadow 0.22s ease;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: var(--accent);
    color: #fff;
    transform: translateX(-50%) translateY(-1px) scale(1.04);
    box-shadow:
      0 12px 24px rgba(17, 137, 116, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .mobile-tabbar [data-view-link="challenge"] > span:last-child {
    bottom: 2px;
  }
}

/* Challenge page typography refinement: quieter and more precise. */
#challengeView .page-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
}

#challengeView .page-head h1 {
  font-size: clamp(46px, 8vw, 68px);
  line-height: 0.94;
}

#challengeView .season-filter {
  font-size: 14px;
}

#challengeView .season-filter button {
  font-size: 16px;
}

#challengeView .challenge-ranking .panel-head span,
#challengeView .challenge-ranking .panel-head small {
  font-size: 13px;
}

#challengeView .challenge-ranking .panel-head strong {
  font-size: 18px;
  line-height: 1.25;
}

#challengeView .podium-rank {
  font-size: 19px;
}

#challengeView .podium-card h3,
#challengeView .podium-name {
  font-size: 21px;
  line-height: 1.08;
}

#challengeView .podium-card p,
#challengeView .podium-work {
  font-size: 12px;
}

#challengeView .rank-row strong {
  font-size: 17px;
  line-height: 1.08;
}

#challengeView .rank-row span,
#challengeView .rank-row small,
#challengeView .rank-row em {
  font-size: 12px;
}

@media (max-width: 560px) {
  #challengeView .page-head h1 {
    font-size: 50px;
  }

  #challengeView .season-filter button {
    font-size: 15px;
  }

  #challengeView .challenge-ranking .panel-head strong {
    font-size: 17px;
  }

  #challengeView .podium-card h3,
  #challengeView .podium-name {
    font-size: 20px;
  }

  #challengeView .rank-row strong {
    font-size: 16px;
  }
}

/* Challenge page final typography system: compact competitive leaderboard. */
#challengeView {
  --ladder-accent: #0a6658;
  --ladder-accent-soft: rgba(10, 102, 88, 0.1);
}

#challengeView .page-head {
  align-items: end;
  gap: 14px;
  margin-top: -2px;
  margin-bottom: 10px;
}

#challengeView .page-head > div:first-child {
  gap: 5px;
}

#challengeView .page-head .eyebrow {
  color: var(--ladder-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

#challengeView .page-head h1 {
  max-width: 360px;
  font-size: clamp(40px, 6.2vw, 58px);
  line-height: 0.98;
  font-weight: 920;
}

#challengeView .season-filter {
  transform: translateY(3px);
}

#challengeView .season-filter .challenge-date-trigger {
  min-height: 34px;
  gap: 7px;
}

#challengeView .season-filter .challenge-date-trigger span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

#challengeView .season-filter .challenge-date-trigger strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 880;
}

#challengeView .challenge-ranking .panel-head {
  min-height: 58px;
  padding: 12px 14px;
}

#challengeView .challenge-ranking .panel-head span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 820;
}

#challengeView .challenge-ranking .panel-head strong {
  font-size: 16px;
  line-height: 1.22;
  font-weight: 860;
}

#challengeView .challenge-ranking .panel-head .panel-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

#challengeView .podium-board {
  gap: 8px;
  padding: 14px;
}

#challengeView .podium-card {
  gap: 5px;
  min-height: 124px;
  padding: 12px 8px;
}

#challengeView .podium-card.first {
  min-height: 150px;
}

#challengeView .podium-card.second {
  min-height: 132px;
}

#challengeView .podium-card.third {
  min-height: 118px;
}

#challengeView .podium-card .medal {
  width: 32px;
  height: 32px;
  font-size: 15px;
  font-weight: 900;
}

#challengeView .podium-card.first .medal {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

#challengeView .podium-card strong {
  font-size: 16px;
  line-height: 1.06;
  font-weight: 880;
}

#challengeView .podium-card.first strong {
  font-size: 20px;
  font-weight: 900;
}

#challengeView .podium-card b {
  font-size: 11px;
  line-height: 1.16;
  font-weight: 760;
}

#challengeView .podium-card .level-badge,
#challengeView .podium-card .author-level {
  font-size: 11px;
  font-weight: 820;
}

#challengeView .challenge-ranking .leader-row.compact {
  min-height: 48px;
  padding: 6px 12px;
}

#challengeView .challenge-ranking .leader-row .leader-rank {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 880;
}

#challengeView .challenge-ranking .leader-row.compact strong b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.06;
  font-weight: 850;
}

#challengeView .challenge-ranking .leader-row.compact strong em {
  margin-top: 2px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 720;
}

#challengeView .challenge-ranking .leader-row.compact .leader-level {
  font-size: 10.5px;
  font-weight: 820;
}

#challengeView .my-rank-card {
  font-size: 12px;
}

@media (max-width: 560px) {
  #challengeView .page-head {
    gap: 8px;
    margin-top: -6px;
    margin-bottom: 9px;
  }

  #challengeView .page-head h1 {
    max-width: 230px;
    font-size: 42px;
    line-height: 0.98;
  }

  #challengeView .season-filter {
    transform: translateY(2px);
  }

  #challengeView .season-filter .challenge-date-trigger strong {
    font-size: 14px;
  }

  #challengeView .challenge-ranking .panel-head strong {
    font-size: 15px;
  }

  #challengeView .podium-card strong {
    font-size: 15px;
  }

  #challengeView .podium-card.first strong {
    font-size: 18px;
  }

  #challengeView .challenge-ranking .leader-row.compact strong b {
    font-size: 14px;
  }
}

/* Bottom navigation color tune: closer to the product's deep green system. */
@media (max-width: 560px) {
  .mobile-tabbar {
    --tab-active: #0a6658;
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--tab-active);
  }

  .mobile-tabbar .tab-indicator {
    background: rgba(10, 102, 88, 0.08);
    box-shadow: 0 8px 18px rgba(14, 27, 24, 0.05);
  }

  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon {
    color: var(--tab-active);
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon {
    color: var(--tab-active);
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    background: var(--tab-active);
    color: #fff;
    box-shadow:
      0 12px 24px rgba(10, 102, 88, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

/* Bottom navigation selected glass needs more vertical room. */
@media (max-width: 560px) {
  .mobile-tabbar .tab-indicator {
    top: 4px;
    bottom: 4px;
    border-radius: 23px;
  }

  .mobile-tabbar button:not([data-view-link="challenge"]),
  .mobile-tabbar a:not([data-view-link="challenge"]) {
    min-height: 48px;
  }
}

/* Bottom navigation compact height pass. */
@media (max-width: 560px) {
  .mobile-tabbar {
    min-height: 54px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    min-height: 46px;
  }

  .mobile-tabbar [data-view-link="challenge"] .tab-icon,
  .mobile-tabbar [data-view-link="challenge"].active .tab-icon {
    top: -18px;
  }

  .prototype-switcher {
    bottom: 70px;
  }
}

/* Bottom navigation final glow pass: softer green halo and restrained motion. */
@media (max-width: 560px) {
  @keyframes tabbar-icon-pop {
    0% {
      transform: scale(1);
    }

    38% {
      transform: scale(1.1);
    }

    100% {
      transform: scale(1);
    }
  }

  @keyframes tabbar-icon-pop-challenge {
    0% {
      transform: scale(1);
    }

    38% {
      transform: scale(1.07);
    }

    100% {
      transform: scale(1);
    }
  }

  .mobile-tabbar {
    --tab-active: #0a6658;
    --tab-muted: #8a968f;
  }

  .mobile-tabbar button,
  .mobile-tabbar a {
    color: var(--tab-muted);
    transition:
      color 210ms ease,
      transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }

  .mobile-tabbar button.active,
  .mobile-tabbar a.active,
  .mobile-tabbar a[aria-current="page"] {
    color: var(--tab-active);
  }

  .mobile-tabbar .tab-icon,
  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon {
    transition:
      color 210ms ease,
      transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }

  .mobile-tabbar .tab-icon svg {
    transform-origin: center;
    transition: transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1);
    will-change: transform;
  }

  .mobile-tabbar button.active:not([data-view-link="challenge"]) .tab-icon svg,
  .mobile-tabbar a.active:not([data-view-link="challenge"]) .tab-icon svg,
  .mobile-tabbar a[aria-current="page"]:not([data-view-link="challenge"]) .tab-icon svg {
    animation: tabbar-icon-pop 220ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }

  .mobile-tabbar .tab-indicator {
    background:
      radial-gradient(
        ellipse at center,
        rgba(10, 102, 88, 0.16) 0%,
        rgba(10, 102, 88, 0.09) 42%,
        rgba(10, 102, 88, 0.03) 68%,
        rgba(10, 102, 88, 0) 100%
      );
    box-shadow: none;
    opacity: 0.96;
    transition:
      transform 210ms cubic-bezier(0.22, 0.84, 0.24, 1),
      opacity 190ms ease,
      background 210ms ease;
  }

  body[data-current-view="challenge"] .mobile-tabbar .tab-indicator,
  body[data-current-view="creator"] .mobile-tabbar .tab-indicator {
    opacity: 0;
  }

  .mobile-tabbar [data-view-link="challenge"].active .tab-icon svg {
    animation: tabbar-icon-pop-challenge 220ms cubic-bezier(0.22, 0.84, 0.24, 1);
  }
}

/* Final responsive behavior for the optimized operational flow. */
body.assessment-testing .mobile-tabbar,
body.assessment-testing .advance-fab,
body.assessment-testing .advance-drawer {
  display: none !important;
}

@media (max-width: 560px) {
  .aic-hero.is-passed {
    padding: 16px 18px;
  }

  .aic-hero.is-passed .aic-id {
    align-items: center;
  }

  .aic-passed-level {
    margin-top: 10px;
  }

  .advance-fab {
    right: max(0px, env(safe-area-inset-right));
  }
}

/* Wide screens use the existing top navigation only. */
@media (min-width: 561px) {
  .mobile-tabbar {
    display: none;
  }
}
