/* 大锤测测（projects/test）V4 · 1:1 大锤同步极简交互与视觉语言（纯白 + 48px 微网格 + 钴蓝 #2350dc + 曜石黑 + #0b0f19 深色星夜 · 零系统 Emoji） */

:root {
  --t-bg: #ffffff;
  --t-surface: #ffffff;
  --t-tint: #f5f7fb;
  --t-stage: #f3f5f9;
  --t-ink: #0f172a;
  --t-ink-2: #475569;
  --t-muted: #64748b;
  --t-faint: #94a3b8;
  --t-rule: rgba(15, 23, 42, 0.08);
  --t-rule-strong: rgba(15, 23, 42, 0.14);
  --t-cobalt: #2350dc;
  --t-cobalt-hover: #1a3fb8;
  --t-cobalt-soft: #eef3ff;
  --t-obsidian: #111827;
  --t-obsidian-hover: #1f2937;
  --t-ok: #0f766e;
  --t-ok-soft: #ecfdf5;
  --t-warn: #b45309;
  --t-warn-soft: #fffbeb;
  --t-danger: #dc2626;
  --t-danger-soft: #fef2f2;
  --t-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 34px -16px rgba(15, 23, 42, 0.09);
  --t-shadow-pop: 0 14px 34px -8px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
  --t-grid-line: rgba(15, 23, 42, 0.032);
  --t-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --t-bg: #0b0f19;
  --t-surface: #111827;
  --t-tint: #161f32;
  --t-stage: #0f172a;
  --t-ink: #f1f5f9;
  --t-ink-2: #cbd5e1;
  --t-muted: #94a3b8;
  --t-faint: #64748b;
  --t-rule: rgba(148, 163, 184, 0.14);
  --t-rule-strong: rgba(148, 163, 184, 0.24);
  --t-cobalt: #5c8aff;
  --t-cobalt-hover: #7aa0ff;
  --t-cobalt-soft: rgba(92, 138, 255, 0.15);
  --t-obsidian: #f8fafc;
  --t-obsidian-hover: #e2e8f0;
  --t-ok: #34d399;
  --t-ok-soft: rgba(52, 211, 153, 0.14);
  --t-warn: #fbbf24;
  --t-warn-soft: rgba(251, 191, 36, 0.14);
  --t-danger: #f87171;
  --t-danger-soft: rgba(248, 113, 113, 0.14);
  --t-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.5);
  --t-shadow-pop: 0 18px 42px -10px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.35);
  --t-grid-line: rgba(148, 163, 184, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }

body.test-body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: "XinHammer Sans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.test-main { flex: 1 0 auto; }

.test-body .wrap {
  width: min(74rem, calc(100% - 2.25rem));
  max-width: none;
  margin-inline: auto;
}

/* =========================================================================
   1. 60px 大锤同步同款极简磨砂顶栏（全端严格单行）
   ========================================================================= */
.test-header-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--t-rule);
}
html[data-theme="dark"] .test-header-wrap { background: rgba(11, 15, 25, 0.86); }

.site-header.studio-nav.test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  border-bottom: 0;
  padding-block: 6px;
}

.test-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-width: 0;
}

.site-header.studio-nav.test-header .test-brand-group .identity {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
}

.test-brand-group .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}

.test-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}

.site-header.studio-nav.test-header .test-brand-text .wordmark {
  font-family: "XinHammer Logo EN", var(--sans);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.03em;
  color: var(--t-cobalt);
  line-height: 1.05;
}

.site-header.studio-nav.test-header .test-brand-text .brand-name {
  padding-left: 0;
  border-left: 0;
  font-family: "XinHammer Logo CN", var(--sans);
  font-size: 1.06rem;
  font-weight: 840;
  letter-spacing: 0.015em;
  color: var(--t-ink);
  white-space: nowrap;
}

.test-back-link {
  font-size: 0.78rem;
  font-weight: 520;
  color: var(--t-muted);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  transition: color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}
.test-back-link:hover { color: var(--t-cobalt); border-color: var(--t-cobalt); }

.test-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.t-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  flex: none;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.t-icon-btn:hover { color: var(--t-cobalt); border-color: var(--t-cobalt); }
.t-icon-btn-sm { width: 32px; height: 32px; }
.t-icon-btn.is-open { color: var(--t-cobalt); border-color: var(--t-cobalt); background: var(--t-cobalt-soft); }

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.test-header .site-account-pill {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink);
  max-width: min(19rem, 48vw);
}
.test-header .site-account-pill:hover {
  border-color: var(--t-cobalt);
  background: var(--t-surface);
  color: var(--t-cobalt);
}

/* =========================================================================
   2. 48px 珠光微网格首屏 + 右上同位锁定折叠（0 闪屏回访自动收起）
   ========================================================================= */
.test-hero-band {
  position: relative;
  border-bottom: 1px solid var(--t-rule);
  background-color: var(--t-bg);
  background-image:
    linear-gradient(to right, var(--t-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--t-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.test-hero-compact {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding-block: 8px;
}
.test-hero-full { padding-block: 10px 26px; }

html[data-hero-collapsed="true"] .test-hero-compact { display: flex; }
html[data-hero-collapsed="true"] .test-hero-full { display: none; }

.test-compact-meta {
  font-size: 0.82rem;
  color: var(--t-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.test-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-bottom: 14px;
}

.test-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t-cobalt);
  letter-spacing: 0.02em;
}

.test-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}

.test-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--t-ink);
}
.test-hero-copy h1 span { color: var(--t-cobalt); }

.test-hero-lead {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--t-ink-2);
  max-width: 35rem;
}

.test-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.test-hero-media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--t-rule);
  background: var(--t-stage);
  box-shadow: var(--t-shadow);
}
.test-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* =========================================================================
   3. 按钮原子体系 & 极简浮层菜单 (`···`)
   ========================================================================= */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease, transform 120ms ease;
}
.t-btn:active:not(:disabled) { transform: scale(0.98); }
.t-btn:disabled { opacity: 0.48; cursor: not-allowed; }
.t-btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.82rem; }
.t-btn-xs { min-height: 32px; padding: 0 12px; font-size: 0.78rem; }

.t-btn-primary {
  background: var(--t-obsidian);
  border-color: var(--t-obsidian);
  color: #ffffff;
}
html[data-theme="dark"] .t-btn-primary { color: #0b0f19; }
.t-btn-primary:hover:not(:disabled) { background: var(--t-obsidian-hover); border-color: var(--t-obsidian-hover); }

.t-btn-cobalt {
  background: var(--t-cobalt);
  border-color: var(--t-cobalt);
  color: #ffffff;
}
.t-btn-cobalt:hover:not(:disabled) { background: var(--t-cobalt-hover); border-color: var(--t-cobalt-hover); }

.t-btn-outline {
  background: var(--t-surface);
  border-color: var(--t-rule-strong);
  color: var(--t-ink);
}
.t-btn-outline:hover:not(:disabled) { border-color: var(--t-cobalt); color: var(--t-cobalt); }

.t-btn-soft {
  background: var(--t-cobalt-soft);
  border-color: transparent;
  color: var(--t-cobalt);
}
.t-btn-soft:hover:not(:disabled) { filter: brightness(0.96); }

.t-btn-ghost {
  background: transparent;
  color: var(--t-ink-2);
  padding: 0 10px;
}
.t-btn-ghost:hover:not(:disabled) { background: var(--t-tint); color: var(--t-ink); }

.t-btn-danger-outline {
  background: var(--t-danger-soft);
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--t-danger);
}
.t-btn-danger-outline:hover:not(:disabled) { background: var(--t-danger); color: #ffffff; }

.t-btn.is-copied,
.t-copy-btn.is-copied {
  border-color: rgba(15, 118, 110, 0.35) !important;
  background: var(--t-ok-soft) !important;
  color: var(--t-ok) !important;
}

.t-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--t-muted);
  font-size: 0.8rem;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}
.t-ghost-link:hover { color: var(--t-cobalt); background: var(--t-cobalt-soft); }

/* 极简悬浮菜单 `···`（1:1 大锤同步：实底不透字、优先下展、分组清晰、高危红字二段确认） */
.t-menu-anchor {
  position: relative;
  display: inline-flex;
}
.t-menu-anchor.is-open { z-index: 48; }

.t-popover-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 196px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  box-shadow: var(--t-shadow-pop);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-popover-menu[hidden] { display: none; }
.t-popover-menu.is-up { top: auto; bottom: calc(100% + 6px); }

.t-menu-label {
  padding: 6px 10px 3px;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--t-faint);
  letter-spacing: 0.03em;
}
.t-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--t-rule);
}
.t-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--t-ink);
  font-size: 0.84rem;
  font-weight: 540;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.t-menu-item:hover { background: var(--t-tint); color: var(--t-cobalt); }
.t-menu-item .t-menu-meta { font-size: 0.74rem; color: var(--t-muted); font-weight: 600; }
.t-menu-item.is-danger { color: var(--t-danger); }
.t-menu-item.is-danger:hover { background: var(--t-danger-soft); color: var(--t-danger); }
.t-menu-item.is-armed {
  background: var(--t-danger);
  color: #ffffff;
  font-weight: 680;
}
.t-menu-item.is-armed:hover { background: var(--t-danger); color: #ffffff; }

/* =========================================================================
   4. 纯净工作台 + 大锤同步同款单行总控卡片条 (`.test-bar`)
   ========================================================================= */
.test-workspace {
  padding-block: 18px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#test-stage-anchor {
  scroll-margin-top: 76px;
}

.test-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
  scroll-margin-top: 72px;
}
.test-bar-left,
.test-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.test-bar-right { flex: none; }

/* 极简三段切换胶囊（测评 | 合盘 | 档案） */
.t-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.t-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--t-ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.t-seg-btn:hover:not(.is-active) { color: var(--t-ink); }
.t-seg-btn.is-active {
  background: var(--t-obsidian);
  color: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.28);
}
html[data-theme="dark"] .t-seg-btn.is-active { color: #0b0f19; }

.t-seg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--t-cobalt-soft);
  color: var(--t-cobalt);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.t-seg-btn.is-active .t-seg-badge {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
html[data-theme="dark"] .t-seg-btn.is-active .t-seg-badge {
  background: rgba(11, 15, 25, 0.14);
}

.t-bar-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.t-bar-back:hover { border-color: var(--t-cobalt); color: var(--t-cobalt); }

.t-bar-suite-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
}
.t-bar-cute-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.12));
}

.t-bar-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--t-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.t-bar-meta {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--t-tint);
  color: var(--t-muted);
  font-size: 0.74rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}

.t-bar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.t-bar-toggle:hover { border-color: var(--t-cobalt); color: var(--t-cobalt); }
.t-bar-toggle.is-active {
  border-color: var(--t-cobalt);
  background: var(--t-cobalt-soft);
  color: var(--t-cobalt);
}

/* =========================================================================
   5. Lobby (`测评`) — 纯净 6 卡矩阵 + 按需展开「帮我挑」 + 按需领币条
   ========================================================================= */
.lobby-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.suite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
  cursor: pointer;
  transition: border-color 160ms ease, transform 180ms var(--t-ease), box-shadow 180ms var(--t-ease);
}
.suite-card:hover {
  transform: translateY(-2px);
  border-color: var(--t-cobalt);
}
.suite-card:focus-visible {
  outline: 2px solid var(--t-cobalt);
  outline-offset: 2px;
}

.suite-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suite-icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ic-bg-l, var(--t-tint));
  color: var(--t-ink);
  border: 1px solid var(--t-rule);
  transition: transform 200ms var(--t-ease), border-color 160ms ease, box-shadow 160ms ease;
}
html[data-theme="dark"] .suite-icon {
  background: var(--ic-bg-d, var(--t-tint));
}
.suite-cute-img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.12));
  transition: transform 220ms var(--t-ease);
}
.suite-card:hover .suite-icon {
  border-color: color-mix(in srgb, var(--t-cobalt) 32%, transparent);
}
.suite-card:hover .suite-cute-img {
  transform: scale(1.09) rotate(-4deg);
}
.suite-card.is-completed .suite-icon {
  border-color: color-mix(in srgb, var(--t-ok) 32%, transparent);
}
.suite-done-dot {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--t-ok);
  color: #ffffff;
  border: 2px solid var(--t-surface);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.16);
}
.suite-done-dot svg { width: 10px; height: 10px; }
html[data-theme="dark"] .suite-done-dot { color: #0b0f19; }

.suite-meta { min-width: 0; flex: 1; }
.suite-meta h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--t-ink);
}
.suite-num {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--t-muted);
}

.suite-status {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--t-tint);
  color: var(--t-muted);
  font-size: 0.73rem;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.suite-status.is-done { background: var(--t-ok-soft); color: var(--t-ok); }
.suite-status.is-draft { background: var(--t-warn-soft); color: var(--t-warn); }

.suite-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.56;
  color: var(--t-ink-2);
  flex: 1;
}

.suite-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--t-rule);
}
.suite-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.suite-foot-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t-muted);
  transition: color 140ms ease;
}
.suite-card:hover .suite-foot-cta { color: var(--t-cobalt); }
.suite-card.is-completed .suite-foot-cta { color: var(--t-cobalt); }

.suite-retake-chip {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-muted);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}
.suite-retake-chip:hover { border-color: var(--t-cobalt); color: var(--t-cobalt); }

.suite-arrow {
  color: var(--t-faint);
  display: inline-flex;
  transition: transform 160ms var(--t-ease), color 140ms ease;
}
.suite-card:hover .suite-arrow { color: var(--t-cobalt); transform: translateX(3px); }

/* 按需提示条（仅可领大锤币时显露） */
.lobby-claim-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--t-rule);
  background: var(--t-warn-soft);
  color: var(--t-warn);
  font-size: 0.85rem;
  font-weight: 600;
}

/* 按需展开的「帮我挑」3 秒盲测白卡（再点按钮或 Esc 即收起） */
.hero-spark-widget {
  border-radius: 16px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  padding: 16px 18px;
  box-shadow: var(--t-shadow);
}
.spark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.spark-head-left { display: inline-flex; align-items: center; gap: 8px; }
.spark-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--t-cobalt);
  background: var(--t-cobalt-soft);
  padding: 2px 9px;
  border-radius: 999px;
}
.spark-head-actions { display: inline-flex; align-items: center; gap: 4px; }
.spark-q { margin: 0 0 12px; font-size: 0.94rem; font-weight: 650; color: var(--t-ink); }
.spark-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spark-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink);
  font-size: 0.84rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.spark-opt:hover { border-color: var(--t-cobalt); background: var(--t-tint); }
.spark-opt.is-picked { border-color: var(--t-cobalt); background: var(--t-cobalt-soft); }
.spark-opt-key {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--t-tint);
  color: var(--t-ink-2);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.spark-opt.is-picked .spark-opt-key { background: var(--t-cobalt); color: #ffffff; }
.spark-reply {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.spark-reply img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.spark-reply-body p { margin: 0 0 8px; font-size: 0.84rem; line-height: 1.55; color: var(--t-ink-2); }

/* =========================================================================
   6. Quiz Stage — 专注无干扰作答画布
   ========================================================================= */
.quiz-stage {
  max-width: 54rem;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quiz-mode-bar,
.result-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 16px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
  width: fit-content;
  max-width: 100%;
}

.mode-pill {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--t-ink-2);
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.mode-pill:hover:not(.is-active) { color: var(--t-ink); }
.mode-pill.has-cute-ic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px 0 8px;
}
.mode-pill-ic {
  width: 19px;
  height: 19px;
  display: block;
  flex: none;
  object-fit: contain;
}
.mode-pill.is-active {
  background: var(--t-obsidian);
  color: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.25);
}
html[data-theme="dark"] .mode-pill.is-active { color: #0b0f19; }

.quiz-progress-box { display: flex; flex-direction: column; gap: 5px; }
.quiz-progress-track { height: 6px; border-radius: 999px; background: var(--t-tint); overflow: hidden; }
.quiz-progress-fill { height: 100%; border-radius: 999px; background: var(--t-cobalt); transition: width 220ms var(--t-ease); }
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--t-muted);
  font-variant-numeric: tabular-nums;
}

.companion-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.companion-bar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.companion-bar p { margin: 0; font-size: 0.83rem; line-height: 1.5; color: var(--t-ink-2); }

.quiz-focus-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 18px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.quiz-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--t-muted);
  font-variant-numeric: tabular-nums;
}
.quiz-q-step strong { color: var(--t-cobalt); font-size: 1.02rem; }
.quiz-q-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--t-tint);
  color: var(--t-muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.quiz-q-text {
  margin: 0 0 24px;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 680;
  line-height: 1.55;
  color: var(--t-ink);
}

/* 7-Point Graduated MBTI Circles */
.mbti-scale-wrap { padding-block: 6px 10px; }
.mbti-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 12px;
}
.end-disagree { color: #be123c; }
.end-mid { color: var(--t-muted); }
.end-agree { color: var(--t-cobalt); }
html[data-theme="dark"] .end-disagree { color: #fb7185; }

.mbti-circles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.3rem, 1.5vw, 0.9rem);
  max-width: 34rem;
  margin-inline: auto;
}
.mbti-circle {
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--t-surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms var(--t-ease), background 140ms ease, box-shadow 140ms ease;
}
.mbti-circle.size-3 { width: 54px; height: 54px; font-size: 0.92rem; }
.mbti-circle.size-2 { width: 46px; height: 46px; font-size: 0.86rem; }
.mbti-circle.size-1 { width: 40px; height: 40px; font-size: 0.8rem; }
.mbti-circle.size-0 { width: 36px; height: 36px; font-size: 0.76rem; }
.mbti-circle.tone-neg { color: #e11d48; }
.mbti-circle.tone-mid { color: var(--t-muted); }
.mbti-circle.tone-pos { color: var(--t-cobalt); }
html[data-theme="dark"] .mbti-circle.tone-neg { color: #fb7185; }
.mbti-circle:hover { transform: scale(1.08); }
.mbti-circle.is-selected { color: #ffffff; transform: scale(1.1); }
.mbti-circle.tone-neg.is-selected { background: #e11d48; border-color: #e11d48; }
.mbti-circle.tone-mid.is-selected { background: #475569; border-color: #475569; }
.mbti-circle.tone-pos.is-selected { background: var(--t-cobalt); border-color: var(--t-cobalt); }
.mbti-scale-hint { margin-top: 12px; text-align: center; font-size: 0.78rem; color: var(--t-faint); }

/* 5-Point Likert */
.likert5-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.likert5-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 74px;
  padding: 10px 6px;
  border-radius: 13px;
  border: 1.5px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}
.likert5-btn:hover { border-color: var(--t-cobalt); background: var(--t-tint); transform: translateY(-1px); }
.likert5-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--t-tint);
  font-size: 0.82rem;
  font-weight: 700;
}
.likert5-lbl { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.3; }
.likert5-btn.is-selected { border-color: var(--t-cobalt); background: var(--t-cobalt-soft); color: var(--t-ink); }
.likert5-btn.is-selected .likert5-num { background: var(--t-cobalt); color: #ffffff; }

/* Fun Options */
.fun-options { display: grid; gap: 9px; }
.fun-opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 16px;
  min-height: 52px;
  border-radius: 13px;
  border: 1.5px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}
.fun-opt-card:hover { border-color: var(--t-cobalt); background: var(--t-tint); transform: translateX(2px); }
.fun-opt-card.is-selected { border-color: var(--t-cobalt); background: var(--t-cobalt-soft); }
.fun-opt-letter {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--t-tint);
  color: var(--t-ink-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.fun-opt-card.is-selected .fun-opt-letter { background: var(--t-cobalt); color: #ffffff; }

.quiz-focus-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--t-rule);
}
.quiz-focus-right { display: flex; flex-wrap: wrap; gap: 8px; }

/* List Quiz Layout */
.quiz-list-wrap { display: grid; gap: 12px; }
.quiz-list-item {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.quiz-list-item.is-answered { border-color: color-mix(in srgb, var(--t-cobalt) 35%, transparent); }
.quiz-list-q { display: flex; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.quiz-list-num { font-size: 0.8rem; font-weight: 800; color: var(--t-cobalt); font-variant-numeric: tabular-nums; }
.quiz-list-q p { margin: 0; font-size: 0.94rem; font-weight: 620; line-height: 1.55; }
.quiz-list-footer {
  position: sticky;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-rule-strong);
  box-shadow: var(--t-shadow-pop);
}
html[data-theme="dark"] .quiz-list-footer { background: rgba(17, 24, 39, 0.94); }

/* =========================================================================
   7. Result Stage — 纯净报告画布
   ========================================================================= */
.result-stage { display: grid; gap: 14px; }

.result-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(1.3rem, 2.8vw, 2rem);
  border-radius: 18px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.result-suite-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--t-cobalt-soft);
  color: var(--t-cobalt);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.result-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.result-universe-role { margin: 6px 0 0; font-size: 0.9rem; color: var(--t-ink-2); }
.result-universe-role strong { color: var(--t-cobalt); }
.result-motto {
  margin: 12px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--t-cobalt);
  background: var(--t-tint);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t-ink);
}
.result-summary { margin: 0; color: var(--t-ink-2); font-size: 0.91rem; line-height: 1.7; max-width: 48rem; }
.result-hero-badge {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
  display: grid;
  place-items: center;
}
.result-hero-badge img { width: 82px; height: 82px; border-radius: 16px; object-fit: cover; }

.result-callout {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--t-warn-soft);
  border: 1px solid color-mix(in srgb, var(--t-warn) 26%, transparent);
  color: var(--t-warn);
  font-size: 0.86rem;
  line-height: 1.58;
}

.result-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-grid-viz { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 14px; }

.report-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.report-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: var(--t-ink); }
.report-card-sub { margin: 0 0 14px; font-size: 0.82rem; color: var(--t-muted); line-height: 1.5; }
.report-p { margin: 0 0 12px; font-size: 0.89rem; line-height: 1.68; color: var(--t-ink-2); }

.viz-card { display: flex; flex-direction: column; align-items: center; }
.viz-card h3, .viz-card .report-card-sub { align-self: flex-start; }

/* SVG Charts */
.test-radar-svg, .test-quad-svg { width: 100%; max-width: 350px; height: auto; display: block; }
.radar-svg-label { font-size: 11.5px; font-weight: 600; fill: var(--t-ink); }
.radar-svg-pct { font-weight: 700; fill: var(--t-cobalt); }
.quad-lbl { font-size: 11px; font-weight: 600; fill: var(--t-ink-2); }
.quad-axis, .curve-axis-lbl { font-size: 10.5px; font-weight: 600; fill: var(--t-muted); }
.test-curve-svg { width: 100%; height: auto; display: block; margin-block: 6px 14px; }
.curve-peak-lbl { font-size: 11.5px; fill: var(--t-ink); font-weight: 700; }
html[data-theme="dark"] .test-radar-svg polygon[fill="none"],
html[data-theme="dark"] .test-radar-svg line,
html[data-theme="dark"] .test-quad-svg rect[fill="none"],
html[data-theme="dark"] .test-quad-svg line,
html[data-theme="dark"] .test-curve-svg line { stroke: rgba(148, 163, 184, 0.22); }

/* Bars & Metrics */
.mbti-bars, .dim-bars, .cog-stack-list { display: grid; gap: 12px; }
.mbti-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--t-muted);
  margin-bottom: 5px;
}
.mbti-bar-labels .is-win { color: var(--t-ink); font-weight: 650; }
.balance-chip { padding: 1px 7px; border-radius: 999px; background: var(--t-warn-soft); color: var(--t-warn); font-size: 0.7rem; font-weight: 700; }
.mbti-bar-track { position: relative; height: 10px; border-radius: 999px; background: var(--t-tint); overflow: hidden; }
.mbti-bar-fill { height: 100%; border-radius: 999px; }
.mbti-bar-mid { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--t-surface); transform: translateX(-50%); }

.cog-head, .dim-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.86rem; margin-bottom: 4px; }
.cog-role { font-size: 0.75rem; color: var(--t-muted); }
.cog-item p { margin: 4px 0 0; font-size: 0.81rem; color: var(--t-ink-2); line-height: 1.5; }
.mini-track { height: 7px; border-radius: 999px; background: var(--t-tint); overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; }
.dim-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--t-tint);
  color: var(--t-ink-2);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.rank-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--t-obsidian);
  color: #ffffff;
  font-size: 0.68rem;
  vertical-align: middle;
}
html[data-theme="dark"] .rank-pill { color: #0b0f19; }

.bullet-list { margin: 0 0 12px; padding-left: 1.15rem; display: grid; gap: 6px; font-size: 0.88rem; line-height: 1.6; color: var(--t-ink-2); }
.bullet-list.is-warn li::marker { color: var(--t-warn); }

.truth-box, .facet-tip, .script-item, .sched-box, .rx-block, .history-row {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--t-ink-2);
}
.muted-small { margin: 4px 0 0; font-size: 0.79rem; color: var(--t-muted); line-height: 1.5; }
.energy-split { display: grid; gap: 6px; font-size: 0.84rem; line-height: 1.55; color: var(--t-ink-2); padding-top: 4px; }

.match-rows { display: grid; gap: 8px; }
.match-lbl { font-size: 0.8rem; font-weight: 700; color: var(--t-muted); margin-right: 6px; }
.match-chip {
  display: inline-flex;
  align-items: center;
  margin: 2px 5px 2px 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--t-cobalt) 26%, transparent);
  background: var(--t-cobalt-soft);
  color: var(--t-cobalt);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
}
.match-chip:hover { background: var(--t-cobalt); color: #ffffff; }
.match-chip.is-soft { background: var(--t-surface); color: var(--t-ink-2); border-color: var(--t-rule-strong); }
.match-chip.is-soft:hover { background: var(--t-obsidian); color: #ffffff; border-color: var(--t-obsidian); }
html[data-theme="dark"] .match-chip.is-soft:hover { color: #0b0f19; }

.eco-links { display: flex; flex-wrap: wrap; gap: 8px; }

.ocean-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 14px; }
.facet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.facet-code {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--t-tint);
  color: var(--facet-c, var(--t-cobalt));
  border: 1px solid var(--t-rule);
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex: none;
}
.facet-head h4 { margin: 0; font-size: 0.95rem; }
.facet-headline { font-size: 0.8rem; font-weight: 650; color: var(--facet-c, var(--t-cobalt)); }

.chuimei-rx {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.chuimei-rx img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.chuimei-rx p { margin: 0; font-size: 0.84rem; line-height: 1.6; color: var(--t-ink-2); }

.card-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head-inline h3 { margin: 0; }
.scripts-list { display: grid; gap: 8px; }
.script-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 0.8rem; color: var(--t-ink); }
.script-copy {
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-cobalt);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.script-item p { margin: 0; font-size: 0.84rem; line-height: 1.55; }

.schedule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sched-box { display: flex; flex-direction: column; gap: 3px; }
.sched-box span { font-size: 0.74rem; color: var(--t-muted); font-weight: 600; }
.sched-box strong { font-size: 0.84rem; color: var(--t-ink); line-height: 1.4; }
.rx-block { border-left: 3px solid var(--rx-c, var(--t-cobalt)); margin-bottom: 10px; }
.rx-block:last-of-type { margin-bottom: 0; }
.rx-block h4 { margin: 0 0 4px; font-size: 0.9rem; color: var(--t-ink); }
.rx-block p { margin: 0; color: var(--t-ink-2); }

.fortune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fortune-box { padding: 12px 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--t-rule); }
.fortune-box span { font-size: 0.74rem; font-weight: 700; }
.fortune-box strong { font-size: 0.86rem; line-height: 1.5; }
.fortune-box.is-good { background: var(--t-ok-soft); color: var(--t-ok); }
.fortune-box.is-avoid { background: var(--t-danger-soft); color: var(--t-danger); }
.fortune-box.is-care { background: var(--t-cobalt-soft); color: var(--t-cobalt); }

.test-disclaimer {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--t-faint);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.retest-diff-card {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--t-rule);
  background: var(--t-tint);
  display: grid;
  gap: 8px;
}
.retest-diff-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.84rem; }
.retest-diff-head strong { color: var(--t-cobalt); }
.retest-diff-head span { font-size: 0.76rem; color: var(--t-muted); }
.retest-diff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.diff-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--t-surface);
  border: 1px solid var(--t-rule);
  font-size: 0.78rem;
  color: var(--t-ink);
}
.diff-delta { font-weight: 700; font-style: normal; font-variant-numeric: tabular-nums; }
.diff-delta.is-up { color: var(--t-ok); }
.diff-delta.is-down { color: var(--t-danger); }
.diff-delta.is-flat { color: var(--t-muted); }

.report-reward-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--t-warn) 28%, transparent);
  background: var(--t-warn-soft);
}
.report-reward-banner.is-done {
  border-color: color-mix(in srgb, var(--t-ok) 26%, transparent);
  background: var(--t-ok-soft);
}
.report-reward-copy strong { font-size: 0.86rem; color: var(--t-warn); }
.report-reward-banner.is-done .report-reward-copy strong { color: var(--t-ok); }

/* =========================================================================
   8. Dual Compatibility Arena (`合盘`) + 单框智能识码条
   ========================================================================= */
.compat-stage { display: grid; gap: 14px; }

.compat-invite-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--t-cobalt) 26%, transparent);
  background: var(--t-cobalt-soft);
}
.compat-invite-banner strong { font-size: 0.94rem; color: var(--t-cobalt); display: block; margin-bottom: 2px; }
.compat-invite-banner p { margin: 0; font-size: 0.84rem; color: var(--t-ink-2); }

.compat-control-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
  display: grid;
  gap: 14px;
}
.compat-picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.compat-field { display: flex; flex-direction: column; gap: 6px; }
.compat-field label { font-size: 0.78rem; font-weight: 650; color: var(--t-muted); }
.compat-select, .compat-input, .vault-nick-row input, .poster-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 140ms ease;
}
.compat-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  cursor: pointer;
}
html[data-theme="dark"] .compat-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.compat-select:focus, .compat-input:focus, .vault-nick-row input:focus, .poster-field input:focus {
  border-color: var(--t-cobalt);
  outline: none;
}
.compat-vs-pill {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--t-tint);
  color: var(--t-cobalt);
  font-weight: 800;
  font-size: 0.82rem;
}

/* 大锤同步同款「单框智能识码」直达条（粘贴好友邀请链接或输入 MBTI 秒匹配） */
.compat-smart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.compat-smart-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compat-smart-copy strong { font-size: 0.86rem; color: var(--t-ink); }
.compat-smart-copy span { font-size: 0.76rem; color: var(--t-muted); }
.compat-smart-input-row { display: flex; align-items: center; gap: 8px; flex: 0 1 360px; min-width: 0; }
.compat-smart-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink);
  font-family: inherit;
  font-size: 16px;
}
.compat-smart-input::placeholder { font-size: 0.84rem; color: var(--t-faint); }
.compat-smart-input:focus { border-color: var(--t-cobalt); outline: none; }

.compat-arena-card {
  padding: clamp(1.25rem, 2.8vw, 1.9rem);
  border-radius: 18px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
  display: grid;
  gap: 18px;
}
.compat-pair-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.compat-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.compat-person strong { font-size: 1.18rem; color: var(--t-ink); }
.compat-person-role { font-size: 0.84rem; font-weight: 650; color: var(--t-cobalt); }
.compat-person-who { font-size: 0.76rem; color: var(--t-muted); }
.compat-center-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compat-ring-svg { width: 126px; height: 126px; display: block; }
.compat-tier-pill {
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--t-cobalt-soft);
  color: var(--t-cobalt);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.compat-headline { text-align: center; margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 740; }
.compat-comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compat-comment-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
}
.compat-comment-box img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.compat-comment-box p { margin: 0; font-size: 0.84rem; line-height: 1.58; color: var(--t-ink-2); }
.compat-invite-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* =========================================================================
   9. Archive Stage (`档案`) — 克制清爽档案工作台
   ========================================================================= */
.archive-stage { display: grid; gap: 14px; }

.cloud-pass-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
  display: grid;
  gap: 12px;
}
.cloud-pass-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cloud-pass-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.cloud-pass-meta { margin: 3px 0 0; font-size: 0.82rem; color: var(--t-muted); }
.cloud-pass-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.reward-chips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 8px; }
.reward-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px dashed var(--t-rule-strong);
  background: var(--t-tint);
  font-size: 0.79rem;
}
.reward-chip.is-claimable { border-style: solid; border-color: color-mix(in srgb, var(--t-warn) 42%, transparent); background: var(--t-warn-soft); }
.reward-chip.is-claimed { border-style: solid; border-color: color-mix(in srgb, var(--t-ok) 30%, transparent); background: var(--t-ok-soft); }
.reward-chip-lbl { font-weight: 620; color: var(--t-ink); }
.reward-chip-amt { font-weight: 740; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.reward-chip.is-claimable .reward-chip-amt { color: var(--t-warn); }
.reward-chip.is-claimed .reward-chip-amt { color: var(--t-ok); }
.reward-mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--t-warn);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
html[data-theme="dark"] .reward-mini-btn { color: #0b0f19; }

.synthesis-card {
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border-radius: 18px;
  border: 1px solid var(--t-rule);
  background: var(--t-surface);
  box-shadow: var(--t-shadow);
}
.synthesis-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.synth-kicker { font-size: 0.76rem; font-weight: 700; color: var(--t-cobalt); }
.synthesis-head h3 { margin: 2px 0 0; font-size: clamp(1.3rem, 2.3vw, 1.7rem); font-weight: 740; }
.synthesis-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.synth-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.synth-tags span { padding: 3px 10px; border-radius: 999px; background: var(--t-tint); border: 1px solid var(--t-rule); color: var(--t-ink-2); font-size: 0.79rem; font-weight: 600; }
.synth-body p { margin: 0 0 8px; font-size: 0.89rem; line-height: 1.68; color: var(--t-ink-2); }
.synth-body p:last-child { margin-bottom: 0; }

.synthesis-locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--t-rule-strong);
  background: var(--t-tint);
}
.synthesis-locked h3 { margin: 0 0 2px; font-size: 0.96rem; }
.synthesis-locked p { margin: 0; font-size: 0.83rem; color: var(--t-muted); }

.stamps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stamp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--t-rule-strong);
  background: var(--t-surface);
}
.stamp-card.is-unlocked { border-style: solid; border-color: var(--t-rule); box-shadow: var(--t-shadow); }
.stamp-visual {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--t-tint);
  border: 1px solid var(--t-rule);
  color: var(--t-muted);
  font-size: 0.8rem;
  font-weight: 750;
  display: grid;
  place-items: center;
  flex: none;
}
.stamp-cute-img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  opacity: 0.44;
  filter: grayscale(0.75);
  transition: opacity 180ms ease, filter 180ms ease, transform 200ms var(--t-ease);
}
.stamp-card.is-unlocked .stamp-visual {
  background: var(--ic-bg-l, var(--t-ok-soft));
  border-color: color-mix(in srgb, var(--t-ok) 28%, transparent);
}
html[data-theme="dark"] .stamp-card.is-unlocked .stamp-visual {
  background: var(--ic-bg-d, var(--t-ok-soft));
}
.stamp-card.is-unlocked .stamp-cute-img {
  opacity: 1;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.12));
}
.stamp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stamp-suite { font-size: 0.72rem; font-weight: 650; color: var(--t-muted); }
.stamp-info strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t-ink); }

.history-list { display: grid; gap: 8px; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.history-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.history-main strong { font-size: 0.85rem; color: var(--t-ink); }
.history-main span { font-size: 0.74rem; color: var(--t-muted); }

.vault-nick-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vault-nick-row label { font-size: 0.8rem; font-weight: 650; color: var(--t-ink-2); }
.vault-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vault-import-lbl { cursor: pointer; }

/* =========================================================================
   10. 弹窗、开箱动效、非阻塞轻提示 & 1:1 大锤同步极轻贴底页脚
   ========================================================================= */
.test-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.test-reveal-overlay[hidden] { display: none; }
.reveal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 34px;
  border-radius: 20px;
  background: var(--t-surface);
  border: 1px solid var(--t-rule-strong);
  box-shadow: var(--t-shadow-pop);
  text-align: center;
  animation: revealPop 0.24s var(--t-ease) both;
}
.reveal-lens-wrap { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.reveal-lens-wrap img { width: 98px; height: 98px; border-radius: 50%; object-fit: cover; position: relative; z-index: 2; }
.reveal-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--t-rule-strong); border-top-color: var(--t-cobalt); animation: revealSpin 0.8s linear infinite; }
.reveal-card strong { font-size: 1rem; color: var(--t-ink); }
.reveal-card span { font-size: 0.82rem; color: var(--t-cobalt); font-weight: 650; }
@keyframes revealPop { from { opacity: 0; transform: scale(0.94) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes revealSpin { to { transform: rotate(360deg); } }

.test-dialog {
  width: min(94vw, 54rem);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--t-rule-strong);
  border-radius: 20px;
  background: var(--t-surface);
  color: var(--t-ink);
  box-shadow: var(--t-shadow-pop);
  overflow: hidden;
}
.test-dialog::backdrop { background: rgba(15, 23, 42, 0.54); backdrop-filter: blur(4px); }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--t-rule);
}
.dialog-head h3 { margin: 0; font-size: 1.02rem; font-weight: 720; }
.dialog-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--t-cobalt); color: var(--t-cobalt); }

.poster-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 18px;
  padding: 18px 20px;
  max-height: calc(90dvh - 66px);
  overflow-y: auto;
}
.poster-preview-pane { display: grid; place-items: center; padding: 12px; border-radius: 14px; background: var(--t-stage); }
.poster-preview-pane canvas { width: 100%; max-width: 340px; height: auto; border-radius: 10px; box-shadow: var(--t-shadow); display: block; }
.poster-controls { display: flex; flex-direction: column; gap: 14px; }
.poster-field { display: flex; flex-direction: column; gap: 6px; }
.poster-field > label, .poster-field-lbl { font-size: 0.8rem; font-weight: 650; color: var(--t-ink-2); }
.poster-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.poster-theme-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--t-rule-strong);
  background: var(--t-surface);
  color: var(--t-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.poster-theme-btn.is-active { background: var(--t-obsidian); border-color: var(--t-obsidian); color: #ffffff; }
html[data-theme="dark"] .poster-theme-btn.is-active { color: #0b0f19; }
.poster-pass-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--t-cobalt);
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--t-cobalt-soft);
  cursor: pointer;
}
.poster-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.poster-tip { margin: 0; font-size: 0.76rem; color: var(--t-muted); }

.ency-body { padding: 16px 20px 20px; max-height: calc(90dvh - 66px); overflow-y: auto; display: grid; gap: 18px; }
.ency-group h4 { margin: 0 0 10px; font-size: 0.92rem; color: var(--t-ink); }
.ency-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ency-card { padding: 12px 14px; border-radius: 13px; border: 1px solid var(--t-rule); background: var(--t-tint); }
.ency-card.is-mine, .ency-card.is-highlight { border-color: var(--t-cobalt); background: var(--t-cobalt-soft); }
.ency-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.ency-card-top strong { display: block; font-size: 0.9rem; color: var(--t-ink); }
.ency-card-top span { display: block; font-size: 0.78rem; color: var(--t-cobalt); font-weight: 600; }
.ency-mine-tag { font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--t-cobalt); color: #ffffff; }
.ency-motto { margin: 0; font-size: 0.82rem; color: var(--t-ink-2); line-height: 1.5; }

/* 非阻塞底部轻提示（1:1 大锤同步：pointer-events: none + 内嵌可点撤销键） */
.test-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--t-obsidian);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.test-toast[hidden] { display: none; }
html[data-theme="dark"] .test-toast { color: #0b0f19; }
.test-toast-act {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.test-toast-act:hover { background: rgba(255, 255, 255, 0.28); }
html[data-theme="dark"] .test-toast-act { background: rgba(11, 15, 25, 0.14); }
.test-toast-act[hidden] { display: none; }

/* 1:1 大锤同步 V2.1.1 极轻通透弹性贴底页脚 */
.test-footer {
  margin-top: auto;
  padding-block: 0 22px;
  background: transparent;
}
.test-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--t-rule);
  font-size: 0.78rem;
  color: var(--t-muted);
}
.test-footer-brand { white-space: nowrap; }
.test-footer-links { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.test-footer-links a { color: var(--t-muted); transition: color 140ms ease; }
.test-footer-links a:hover { color: var(--t-cobalt); }

/* =========================================================================
   11. Responsive Breakpoints (平板 + 手机 390 / 360 / 320px 严格 0px 溢出)
   ========================================================================= */
@media (max-width: 56rem) {
  .test-hero-grid { grid-template-columns: 1fr; }
  .suites-grid, .stamps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compat-smart-bar { flex-direction: column; align-items: stretch; }
  .compat-smart-input-row { flex: 1 1 auto; }
}

@media (max-width: 48rem) {
  .suites-grid, .stamps-grid,
  .result-grid-2, .result-grid-viz, .poster-body, .ency-cards, .fortune-grid,
  .compat-picker-row, .compat-pair-grid, .compat-comments, .spark-options {
    grid-template-columns: 1fr;
  }
  .compat-vs-pill { margin-inline: auto; }
  .result-hero-card { flex-direction: column-reverse; align-items: flex-start; }
  .result-hero-badge { width: 78px; height: 78px; }
  .result-hero-badge img { width: 66px; height: 66px; }
  .likert5-grid { grid-template-columns: 1fr; }
  .likert5-btn { flex-direction: row; justify-content: flex-start; min-height: 46px; padding: 8px 14px; }
  .mbti-circle.size-3 { width: 44px; height: 44px; font-size: 0.84rem; }
  .mbti-circle.size-2 { width: 38px; height: 38px; font-size: 0.8rem; }
  .mbti-circle.size-1 { width: 34px; height: 34px; font-size: 0.76rem; }
  .mbti-circle.size-0 { width: 32px; height: 32px; font-size: 0.72rem; }
  .mbti-scale-hint.is-kb-only { display: none; }
  .schedule-grid { grid-template-columns: 1fr; }
  .test-bar { flex-wrap: wrap; padding: 9px 12px; gap: 8px; }
  .test-bar.is-tabs-bar .test-bar-left { width: 100%; }
  .test-bar.is-tabs-bar .t-seg { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .test-bar.is-tabs-bar .t-seg-btn { justify-content: center; padding-inline: 8px; }
  .test-bar.is-tabs-bar .test-bar-right { width: 100%; justify-content: flex-start; }
  .test-bar.is-tabs-bar .test-bar-right .t-menu-anchor { margin-left: auto; }
}

@media (pointer: coarse) {
  .mbti-scale-hint.is-kb-only { display: none; }
}

@media (max-width: 40rem) {
  .test-body .wrap { width: calc(100% - 1.5rem); }
  .test-back-link { display: none; }
  .test-brand-text .wordmark { display: none; }
  .test-brand-text .brand-name { font-size: 1rem; }
  .test-header .site-account-pill { padding: 0 9px; font-size: 0.76rem; flex: none; }
  .site-header.studio-nav.test-header { gap: 0.45rem; }
  .test-header-actions { gap: 5px; }
  .test-footer-inner { font-size: 0.75rem; }
  .test-footer-links { gap: 12px; }
  .quiz-mode-bar.is-fun-grid,
  .result-switcher.is-fun-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 16px;
  }
  .quiz-mode-bar.is-fun-grid .mode-pill,
  .result-switcher.is-fun-grid .mode-pill {
    justify-content: center;
  }
}

@media (max-width: 24rem) {
  .test-body .wrap { width: calc(100% - 1rem); }
  .test-brand-group .brand-icon { width: 28px; height: 28px; }
  .site-header.studio-nav.test-header .test-brand-text .brand-name { font-size: 0.92rem; }
  .t-icon-btn { width: 32px; height: 32px; }
  .test-header .site-account-pill { min-height: 32px; padding: 0 8px; font-size: 0.72rem; }
  .t-seg-btn { padding: 0 11px; font-size: 0.8rem; }
  .mbti-circles { gap: 0.2rem; }
  .mbti-circle.size-3 { width: 38px; height: 38px; }
  .mbti-circle.size-2 { width: 34px; height: 34px; }
  .mbti-circle.size-1 { width: 31px; height: 31px; }
  .mbti-circle.size-0 { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
