/* 大锤测测（projects/test）专属样式 — 映射路径 /products/test/test-studio.css */

.test-body {
  --t-bg: #f8f6f1;
  --t-surface: #ffffff;
  --t-ink: #0f172a;
  --t-muted: #475569;
  --t-subtle: #64748b;
  --t-border: rgba(15, 23, 42, 0.09);
  --t-cobalt: #2350dc;
  --t-indigo: #4f46e5;
  --t-amber: #d97706;
  --t-shadow-sm: 0 2px 10px -4px rgba(15, 23, 42, 0.08);
  --t-shadow-md: 0 14px 34px -16px rgba(15, 23, 42, 0.14);
  --t-radius: 1.25rem;
  --t-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--t-bg);
  color: var(--t-ink);
  overflow-x: clip;
}

.test-body .site-account-pill {
  max-width: min(20rem, 52vw);
}

.test-main {
  padding-bottom: 4.5rem;
}

/* ===== Hero Stage ===== */
.test-hero-wrap {
  padding-block: clamp(1.25rem, 2.8vw, 2.15rem) clamp(1rem, 2.2vw, 1.65rem);
}

.test-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.35rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.25rem, 2.8vw, 2.1rem);
  border-radius: 1.65rem;
  border: 1px solid rgba(35, 80, 220, 0.11);
  background:
    radial-gradient(ellipse 60% 70% at 92% 14%, rgba(99, 102, 241, 0.12), transparent 64%),
    radial-gradient(ellipse 52% 60% at 8% 92%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f5f7ff 56%, #fffcf5 100%);
  box-shadow: var(--t-shadow-md);
  overflow: hidden;
}

.test-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.78rem 0.28rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 80, 220, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #1e40af;
  font-size: 0.83rem;
  font-weight: 600;
}
.test-eyebrow img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: block;
}

.test-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--t-ink);
}
.test-hero-copy h1 span {
  background: linear-gradient(100deg, #1d4ed8 0%, #6366f1 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.test-hero-lead {
  margin: 0.85rem 0 1.2rem;
  color: var(--t-muted);
  font-size: clamp(0.94rem, 1.1vw, 1.02rem);
  line-height: 1.72;
  max-width: 38em;
}

.test-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

/* Interactive 3s Hero Spark */
.hero-spark-widget {
  border-radius: 1.1rem;
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1rem;
  box-shadow: var(--t-shadow-sm);
}

.spark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.spark-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  padding: 0.16rem 0.56rem;
  border-radius: 999px;
}
.spark-shuffle {
  border: 0;
  background: transparent;
  color: var(--t-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.spark-shuffle:hover { color: var(--t-cobalt); background: #eff4ff; }

.spark-q {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
  color: var(--t-ink);
}

.spark-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.spark-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
  text-align: left;
  padding: 0.5rem 0.65rem;
  min-height: 44px;
  border-radius: 0.75rem;
  border: 1px solid var(--t-border);
  background: #ffffff;
  color: var(--t-ink);
  font-size: 0.82rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}
.spark-opt:hover { border-color: rgba(79, 70, 229, 0.36); background: #f8faff; }
.spark-opt.is-picked {
  border-color: #4f46e5;
  background: #eef2ff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}
.spark-opt-key {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.spark-opt.is-picked .spark-opt-key { background: #4f46e5; color: #fff; }

.spark-reply {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.7rem;
  padding: 0.68rem 0.8rem;
  border-radius: 0.85rem;
  background: linear-gradient(120deg, #eff6ff, #f5f3ff);
  border: 1px solid rgba(35, 80, 220, 0.16);
}
.spark-reply img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.spark-reply-body p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1e293b;
}
.spark-go-btn {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.34rem 0.82rem;
  cursor: pointer;
}
.spark-go-btn:hover { background: #2350dc; }

/* Right Hero Visual */
.test-hero-visual {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.test-hero-frame {
  position: relative;
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px -18px rgba(23, 45, 96, 0.24);
  background: #fdf8ee;
}
.test-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.test-hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--t-border);
  font-size: 0.82rem;
  color: var(--t-muted);
}
.test-hero-caption strong { color: var(--t-cobalt); }

/* ===== Sticky Subnav ===== */
.test-subnav-wrap {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.test-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.48rem;
}

.test-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
  padding-block: 2px;
}
.test-subnav-tabs::-webkit-scrollbar { display: none; }

.subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  flex: none;
  min-height: 38px;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.subtab-btn:hover { background: rgba(15, 23, 42, 0.05); color: #0f172a; }
.subtab-btn.is-active {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(17, 24, 39, 0.35);
}
.subtab-num {
  font-size: 0.74rem;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}
.subtab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.subtab-badge.is-lit { background: #2350dc; color: #fff; }
.subtab-btn.is-active .subtab-badge { background: rgba(255, 255, 255, 0.22); color: #fff; }

.test-sound-btn {
  flex: none;
  min-height: 36px;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--t-border);
  background: #ffffff;
  color: var(--t-muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.test-sound-btn[aria-pressed="true"] {
  border-color: rgba(35, 80, 220, 0.3);
  background: #eef4ff;
  color: var(--t-cobalt);
}

/* ===== Shared Buttons ===== */
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.48rem 1.08rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s var(--t-ease), background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.t-btn:active:not(:disabled) { transform: scale(0.97); }
.t-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.t-btn-primary { background: #111827; color: #ffffff; }
.t-btn-primary:hover:not(:disabled) { background: var(--t-cobalt); }
.t-btn-glow { background: linear-gradient(110deg, #2350dc, #6366f1); color: #fff; box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.55); }
.t-btn-glow:hover:not(:disabled) { filter: brightness(1.06); }
.t-btn-soft { background: #eef2ff; color: #1e40af; border-color: rgba(35, 80, 220, 0.14); }
.t-btn-soft:hover:not(:disabled) { background: #e0e7ff; }
.t-btn-dark { background: #0f172a; color: #fff; }
.t-btn-dark:hover:not(:disabled) { background: #1e293b; }
.t-btn-outline { background: #ffffff; color: #1e293b; border-color: rgba(15, 23, 42, 0.15); }
.t-btn-outline:hover:not(:disabled) { border-color: rgba(35, 80, 220, 0.36); color: var(--t-cobalt); background: #f8faff; }
.t-btn-ghost { background: transparent; color: #475569; padding-inline: 0.72rem; }
.t-btn-ghost:hover:not(:disabled) { background: rgba(15, 23, 42, 0.055); color: #0f172a; }
.t-btn-danger { background: #dc2626; color: #ffffff; }
.t-btn-danger:hover { background: #b91c1c; }
.is-danger-text { color: #b91c1c; }

/* ===== Section Heads & Lobby ===== */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.section-kicker {
  margin: 0 0 0.32rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--t-cobalt);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 0.45rem 0 0;
  color: var(--t-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 46rem;
}
.lobby-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.seal-progress-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.35rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(35, 80, 220, 0.14);
  background: linear-gradient(120deg, #ffffff, #f2f5ff);
  box-shadow: var(--t-shadow-sm);
}
.seal-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.seal-progress-copy strong { font-size: 0.96rem; color: var(--t-ink); }
.seal-progress-copy strong span { color: var(--t-cobalt); }
.seal-progress-copy > span { font-size: 0.84rem; color: var(--t-muted); }

.seal-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.seal-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.8);
  color: var(--t-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease;
}
.seal-dot:hover { transform: translateY(-2px); border-color: var(--t-cobalt); }
.seal-dot.is-done {
  border-style: solid;
  border-color: #2350dc;
  background: #eef2ff;
  font-size: 1.12rem;
  box-shadow: 0 4px 12px -4px rgba(35, 80, 220, 0.35);
}

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

.suite-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--t-radius);
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  box-shadow: var(--t-shadow-sm);
  transition: transform 0.2s var(--t-ease), box-shadow 0.2s var(--t-ease), border-color 0.2s ease;
}
.suite-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--suite-accent, #2350dc) 42%, transparent);
  box-shadow: var(--t-shadow-md);
}
.suite-card.is-completed {
  background: linear-gradient(165deg, #ffffff 68%, color-mix(in srgb, var(--suite-accent, #2350dc) 7%, #ffffff));
}

.suite-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.suite-emblem {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--suite-accent, #2350dc) 22%, transparent);
}
.suite-meta { min-width: 0; flex: 1; }
.suite-num {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--suite-accent, var(--t-cobalt));
  margin-bottom: 0.16rem;
}
.suite-meta h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
  color: var(--t-ink);
}
.suite-status {
  flex: none;
  padding: 0.18rem 0.54rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.suite-status.is-done { background: #ecfdf5; color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }
.suite-status.is-draft { background: #fffbeb; color: #b45309; border: 1px solid rgba(217, 119, 6, 0.25); }

.suite-desc {
  margin: 0;
  color: var(--t-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}
.suite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.lobby-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.value-card {
  padding: 1.2rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid var(--t-border);
  background: rgba(255, 255, 255, 0.72);
}
.value-icon { font-size: 1.35rem; display: inline-block; margin-bottom: 0.45rem; }
.value-card h3 { margin: 0 0 0.38rem; font-size: 0.98rem; color: var(--t-ink); }
.value-card p { margin: 0; font-size: 0.85rem; line-height: 1.65; color: var(--t-muted); }

/* ===== Quiz Stage ===== */
.quiz-stage {
  max-width: 56rem;
  margin-inline: auto;
}

.quiz-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--t-radius);
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  box-shadow: var(--t-shadow-sm);
  margin-bottom: 1rem;
}

.back-lobby-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0.68rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--t-border);
  background: #f8fafc;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.back-lobby-link:hover { color: var(--t-cobalt); border-color: rgba(35, 80, 220, 0.3); background: #eff4ff; }

.quiz-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quiz-title-emblem {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 13%, #fff);
  flex: none;
}
.quiz-kicker { margin: 0 0 0.14rem; font-size: 0.78rem; font-weight: 700; color: var(--suite-accent, var(--t-cobalt)); }
.quiz-title-row h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

.quiz-mode-bar,
.result-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.result-switcher { margin: 0 0 1rem; }

.mode-pill {
  min-height: 38px;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--t-border);
  background: #f8fafc;
  color: #475569;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.mode-pill:hover { border-color: rgba(35, 80, 220, 0.3); color: var(--t-cobalt); }
.mode-pill.is-active {
  background: var(--suite-accent, var(--t-cobalt));
  color: #ffffff;
  border-color: transparent;
}
.mode-pill-highlight { background: #fef3c7; color: #92400e; border-color: rgba(217, 119, 6, 0.3); }

.quiz-header-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quiz-progress-box {
  margin-bottom: 0.9rem;
}
.quiz-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--suite-accent, #2350dc), #8b5cf6);
  transition: width 0.24s var(--t-ease);
}
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.38rem;
  font-size: 0.8rem;
  color: var(--t-subtle);
}

.companion-bar {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.68rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, #ffffff, #f3f6ff);
  border: 1px solid rgba(35, 80, 220, 0.12);
}
.companion-bar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  flex: none;
}
.companion-bar p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #1e293b;
}

/* Focus Card Question */
.quiz-focus-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 1.5rem;
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  box-shadow: var(--t-shadow-md);
}
.quiz-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: var(--t-subtle);
}
.quiz-q-step strong { color: var(--suite-accent, var(--t-cobalt)); font-size: 1.05rem; }
.quiz-q-badge {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
}

.quiz-q-text {
  margin: 0 0 1.6rem;
  font-size: clamp(1.14rem, 2.1vw, 1.42rem);
  font-weight: 660;
  line-height: 1.55;
  color: var(--t-ink);
}

/* 7-Point Graduated MBTI Circles */
.mbti-scale-wrap {
  padding-block: 0.4rem 0.8rem;
}
.mbti-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.8rem;
}
.end-disagree { color: #be123c; }
.end-mid { color: #64748b; }
.end-agree { color: #3730a3; }

.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: 2.5px solid currentColor;
  background: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--t-ease), background-color 0.16s ease, box-shadow 0.16s ease;
}
.mbti-circle.size-3 { width: 56px; height: 56px; font-size: 0.95rem; }
.mbti-circle.size-2 { width: 48px; height: 48px; font-size: 0.88rem; }
.mbti-circle.size-1 { width: 42px; height: 42px; font-size: 0.82rem; }
.mbti-circle.size-0 { width: 38px; height: 38px; font-size: 0.78rem; }
.mbti-circle.tone-neg { color: #e11d48; }
.mbti-circle.tone-mid { color: #64748b; }
.mbti-circle.tone-pos { color: #4f46e5; }
.mbti-circle:hover { transform: scale(1.1); }
.mbti-circle.is-selected {
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 8px 20px -6px currentColor;
}
.mbti-circle.tone-neg.is-selected { background: #e11d48; border-color: #e11d48; box-shadow: 0 8px 20px -6px rgba(225, 29, 72, 0.65); }
.mbti-circle.tone-mid.is-selected { background: #475569; border-color: #475569; box-shadow: 0 8px 20px -6px rgba(71, 85, 105, 0.55); }
.mbti-circle.tone-pos.is-selected { background: #4f46e5; border-color: #4f46e5; box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.65); }

.mbti-scale-hint {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--t-subtle);
}

/* 5-Point Likert Tactile Pills */
.likert5-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.likert5-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 76px;
  padding: 0.65rem 0.45rem;
  border-radius: 1rem;
  border: 1.5px solid var(--t-border);
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: transform 0.14s var(--t-ease), border-color 0.16s ease, background-color 0.16s ease;
}
.likert5-btn:hover { border-color: var(--suite-accent, var(--t-cobalt)); background: #f8faff; transform: translateY(-2px); }
.likert5-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 700;
}
.likert5-lbl { font-size: 0.8rem; font-weight: 600; text-align: center; line-height: 1.3; }
.likert5-btn.is-selected {
  border-color: var(--suite-accent, var(--t-cobalt));
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 11%, #ffffff);
  color: var(--t-ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--suite-accent, #2350dc) 20%, transparent);
}
.likert5-btn.is-selected .likert5-num {
  background: var(--suite-accent, var(--t-cobalt));
  color: #ffffff;
}

/* Fun Scenario Cards */
.fun-options {
  display: grid;
  gap: 0.65rem;
}
.fun-opt-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  padding: 0.9rem 1.05rem;
  min-height: 54px;
  border-radius: 1rem;
  border: 1.5px solid var(--t-border);
  background: #ffffff;
  color: var(--t-ink);
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.14s var(--t-ease), border-color 0.16s ease, background-color 0.16s ease;
}
.fun-opt-card:hover { border-color: #9333ea; background: #faf5ff; transform: translateX(3px); }
.fun-opt-card.is-selected {
  border-color: #9333ea;
  background: #f3e8ff;
  box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.18);
}
.fun-opt-letter {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
}
.fun-opt-card.is-selected .fun-opt-letter { background: #9333ea; color: #fff; }

.quiz-focus-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.quiz-focus-right { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* List Quiz Layout */
.quiz-list-wrap { display: grid; gap: 0.9rem; }
.quiz-list-item {
  padding: 1.1rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid var(--t-border);
  background: #ffffff;
}
.quiz-list-item.is-answered { border-color: color-mix(in srgb, var(--suite-accent, #2350dc) 28%, transparent); }
.quiz-list-q { display: flex; gap: 0.65rem; align-items: baseline; margin-bottom: 0.85rem; }
.quiz-list-num { font-size: 0.82rem; font-weight: 800; color: var(--suite-accent, var(--t-cobalt)); font-variant-numeric: tabular-nums; }
.quiz-list-q p { margin: 0; font-size: 0.96rem; font-weight: 600; line-height: 1.55; }
.quiz-list-footer {
  position: sticky;
  bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(35, 80, 220, 0.2);
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.2);
}

/* ===== Result Stage ===== */
.result-stage {
  display: grid;
  gap: 1.1rem;
}

.result-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.result-top-bar .back-lobby-link { margin-bottom: 0; }
.result-top-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.result-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 1.55rem;
  border: 1px solid color-mix(in srgb, var(--suite-accent, #2350dc) 22%, transparent);
  background:
    radial-gradient(ellipse 50% 80% at 96% 18%, color-mix(in srgb, var(--suite-accent, #2350dc) 16%, transparent), transparent 65%),
    #ffffff;
  box-shadow: var(--t-shadow-md);
}
.result-suite-tag {
  display: inline-block;
  padding: 0.2rem 0.68rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 12%, #ffffff);
  color: var(--suite-accent, var(--t-cobalt));
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.result-hero-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.result-universe-role {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  color: var(--t-muted);
}
.result-universe-role strong { color: var(--suite-accent, var(--t-cobalt)); }
.result-motto {
  margin: 0.85rem 0;
  padding: 0.55rem 0.9rem;
  border-left: 3.5px solid var(--suite-accent, var(--t-cobalt));
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 6%, #ffffff);
  border-radius: 0 0.7rem 0.7rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--t-ink);
}
.result-summary {
  margin: 0;
  color: var(--t-muted);
  font-size: 0.94rem;
  line-height: 1.72;
  max-width: 48rem;
}
.result-hero-badge {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--suite-accent, #2350dc) 25%, transparent);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.2);
}
.result-hero-badge img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
}
.result-hero-emblem {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--t-border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.result-callout {
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.26);
  color: #78350f;
  font-size: 0.89rem;
  line-height: 1.6;
}

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

.report-card {
  padding: 1.3rem 1.35rem;
  border-radius: var(--t-radius);
  border: 1px solid var(--t-border);
  background: var(--t-surface);
  box-shadow: var(--t-shadow-sm);
}
.report-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  color: var(--t-ink);
}
.report-card-sub {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  color: var(--t-subtle);
  line-height: 1.55;
}
.report-p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--t-muted);
}

.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: 360px;
  height: auto;
  display: block;
}
.radar-svg-label { font-size: 11.5px; font-weight: 600; fill: #1e293b; }
.radar-svg-pct { font-weight: 700; fill: #2350dc; }
.quad-lbl { font-size: 11px; font-weight: 600; fill: #475569; }
.quad-axis { font-size: 10.5px; font-weight: 600; fill: #64748b; }

.test-curve-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-block: 0.4rem 1rem;
}
.curve-axis-lbl { font-size: 11.5px; fill: #64748b; font-weight: 600; }
.curve-peak-lbl { font-size: 11.5px; fill: #0f172a; font-weight: 700; }

/* Bars & Progress Tracks */
.mbti-bars, .dim-bars, .cog-stack-list { display: grid; gap: 0.85rem; }
.mbti-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--t-subtle);
  margin-bottom: 0.35rem;
}
.mbti-bar-labels .is-win { color: var(--t-ink); font-weight: 650; }
.balance-chip {
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
}
.mbti-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #e9eef7;
  overflow: hidden;
}
.mbti-bar-fill { height: 100%; border-radius: 999px; }
.mbti-bar-mid {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}

.cog-head, .dim-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.cog-head strong small, .dim-bar-head strong small { font-weight: 500; color: var(--t-subtle); font-size: 0.78rem; }
.cog-role { font-size: 0.76rem; color: var(--t-subtle); }
.cog-item p { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--t-muted); line-height: 1.5; }

.mini-track { height: 9px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; }
.dim-tag {
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.rank-pill {
  display: inline-block;
  padding: 0.06rem 0.38rem;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 0.68rem;
  vertical-align: middle;
}

.bullet-list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
}
.bullet-list.is-warn li::marker { color: #d97706; }

.truth-box {
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--t-border);
  font-size: 0.86rem;
  line-height: 1.62;
  color: #334155;
}
.muted-small { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--t-subtle); line-height: 1.55; }

.energy-split {
  display: grid;
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
  padding-top: 0.3rem;
}

.match-rows { display: grid; gap: 0.55rem; }
.match-lbl { font-size: 0.82rem; font-weight: 700; color: var(--t-subtle); margin-right: 0.35rem; }
.match-chip {
  display: inline-flex;
  align-items: center;
  margin: 0.18rem 0.3rem 0.18rem 0;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.match-chip:hover { background: #4f46e5; color: #fff; }
.match-chip.is-soft { background: #f8fafc; color: #334155; border-color: var(--t-border); }
.match-chip.is-soft:hover { background: #111827; color: #fff; }

.eco-bridge-card {
  background: linear-gradient(145deg, #ffffff, #eff4ff);
  border-color: rgba(35, 80, 220, 0.18);
}
.eco-bridge-card.is-health {
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
  border-color: rgba(16, 185, 129, 0.22);
}
.eco-links { display: flex; flex-wrap: wrap; gap: 0.55rem; }

/* OCEAN 5-Facet Cards */
.ocean-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.facet-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.facet-code {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--facet-c) 14%, #fff);
  color: var(--facet-c);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  flex: none;
}
.facet-head h4 { margin: 0; font-size: 0.98rem; }
.facet-headline { font-size: 0.82rem; font-weight: 650; color: var(--facet-c); }
.facet-tip {
  padding: 0.65rem 0.82rem;
  border-radius: 0.8rem;
  background: #f8fafc;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #334155;
}

/* Attachment Scripts & Chuimei Rx */
.chuimei-rx {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, #fff1f2, #fdf4ff);
  border: 1px solid rgba(225, 29, 72, 0.16);
}
.chuimei-rx img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; }
.chuimei-rx p { margin: 0; font-size: 0.86rem; line-height: 1.62; color: #3f1d2b; }

.card-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.card-head-inline h3 { margin: 0; }
.scripts-list { display: grid; gap: 0.65rem; }
.script-item {
  padding: 0.72rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--t-border);
}
.script-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; font-size: 0.82rem; }
.script-copy {
  border: 1px solid var(--t-border);
  background: #fff;
  color: var(--t-cobalt);
  border-radius: 999px;
  padding: 0.15rem 0.56rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.script-item p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #334155; }

/* Rhythm Schedule & Rx */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.sched-box {
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--t-border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sched-box span { font-size: 0.76rem; color: var(--t-subtle); font-weight: 600; }
.sched-box strong { font-size: 0.86rem; color: var(--t-ink); line-height: 1.4; }

.rx-block {
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border-left: 4px solid var(--rx-c, var(--t-cobalt));
  background: #f8fafc;
  margin-bottom: 0.75rem;
}
.rx-block h4 { margin: 0 0 0.35rem; font-size: 0.94rem; }
.rx-block p { margin: 0 0 0.35rem; font-size: 0.86rem; line-height: 1.6; color: var(--t-muted); }
.rx-block .rx-action { margin-bottom: 0; color: var(--t-ink); }

/* Fun Fortune */
.fortune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.85rem; }
.fortune-box {
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fortune-box span { font-size: 0.76rem; font-weight: 700; }
.fortune-box strong { font-size: 0.88rem; line-height: 1.5; }
.fortune-box.is-good { background: #ecfdf5; color: #065f46; }
.fortune-box.is-avoid { background: #fef2f2; color: #991b1b; }
.fortune-box.is-care { background: #eff6ff; color: #1e40af; }

.fun-poster-nudge {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: linear-gradient(125deg, #f5f3ff, #eff6ff);
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.fun-poster-nudge p { margin: 0 0 0.65rem; font-size: 0.88rem; color: #3b0764; }

.test-disclaimer {
  margin: 0.4rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.035);
  color: var(--t-subtle);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* ===== Archive Stage ===== */
.archive-stage { display: grid; gap: 1.15rem; }

.synthesis-card {
  padding: clamp(1.3rem, 2.8vw, 2rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(35, 80, 220, 0.22);
  background:
    radial-gradient(ellipse 55% 75% at 92% 10%, rgba(99, 102, 241, 0.16), transparent 64%),
    linear-gradient(135deg, #ffffff 0%, #f1f5ff 100%);
  box-shadow: var(--t-shadow-md);
}
.synthesis-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}
.synth-kicker { font-size: 0.8rem; font-weight: 700; color: var(--t-cobalt); }
.synthesis-head h3 { margin: 0.2rem 0 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.synthesis-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.synth-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.synth-tags span {
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: rgba(35, 80, 220, 0.09);
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 600;
}
.synth-body p { margin: 0 0 0.55rem; font-size: 0.93rem; line-height: 1.7; color: #334155; }
.synth-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.synth-action-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(35, 80, 220, 0.14);
  text-decoration: none;
  color: var(--t-ink);
}
.synth-action-item:hover { border-color: var(--t-cobalt); background: #fff; }
.synth-action-item strong { font-size: 0.88rem; color: var(--t-cobalt); }
.synth-action-item span { font-size: 0.81rem; color: var(--t-muted); line-height: 1.5; }

.synthesis-locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-radius: 1.25rem;
  border: 1.5px dashed rgba(35, 80, 220, 0.28);
  background: rgba(255, 255, 255, 0.85);
}
.synth-lock-icon { font-size: 2rem; flex: none; }
.synthesis-locked > div { flex: 1; min-width: 15rem; }
.synthesis-locked h3 { margin: 0 0 0.28rem; font-size: 1.02rem; }
.synthesis-locked p { margin: 0; font-size: 0.86rem; color: var(--t-muted); line-height: 1.6; }

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.stamp-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.7);
}
.stamp-card.is-unlocked {
  border-style: solid;
  border-color: color-mix(in srgb, var(--suite-accent, #2350dc) 30%, transparent);
  background: #ffffff;
  box-shadow: var(--t-shadow-sm);
}
.stamp-visual {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: #f1f5f9;
  color: var(--t-subtle);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.stamp-card.is-unlocked .stamp-visual {
  background: color-mix(in srgb, var(--suite-accent, #2350dc) 14%, #fff);
  font-size: 1.35rem;
}
.stamp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.stamp-suite { font-size: 0.74rem; font-weight: 700; color: var(--t-subtle); }
.stamp-info strong { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp-info small { font-size: 0.74rem; color: var(--t-subtle); }

.history-list { display: grid; gap: 0.5rem; }
.history-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.history-emblem { font-size: 1.25rem; flex: none; }
.history-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.history-main strong { font-size: 0.88rem; }
.history-main span { font-size: 0.76rem; color: var(--t-subtle); }
.empty-note { margin: 0; color: var(--t-subtle); font-size: 0.88rem; }

.vault-nick-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}
.vault-nick-row label { font-size: 0.84rem; font-weight: 600; color: var(--t-ink); }
.vault-nick-row input,
.poster-field input {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--t-ink);
  font-size: 16px;
}
.vault-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vault-import-lbl { cursor: pointer; }

/* ===== Poster Dialog & Encyclopedia Dialog ===== */
.test-dialog {
  width: min(94vw, 56rem);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.45rem;
  background: #ffffff;
  box-shadow: 0 28px 64px -16px rgba(15, 23, 42, 0.34);
  overflow: hidden;
}
.test-dialog::backdrop { background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(6px); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--t-border);
}
.dialog-head h3 { margin: 0; font-size: 1.08rem; }
.dialog-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--t-border);
  background: #f8fafc;
  color: #334155;
  font-size: 1.1rem;
  cursor: pointer;
}
.dialog-close:hover { background: #111827; color: #fff; }

.poster-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 1.25rem;
  padding: 1.2rem 1.3rem;
  max-height: calc(92dvh - 68px);
  overflow-y: auto;
}
.poster-preview-pane {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #f1f5f9;
}
.poster-preview-pane canvas {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.28);
  display: block;
}
.poster-controls { display: flex; flex-direction: column; gap: 1rem; }
.poster-field { display: flex; flex-direction: column; gap: 0.4rem; }
.poster-field > label, .poster-field-lbl { font-size: 0.84rem; font-weight: 650; color: var(--t-ink); }
.poster-themes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.poster-theme-btn {
  min-height: 38px;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--t-border);
  background: #f8fafc;
  color: #334155;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}
.poster-theme-btn.is-active { background: #111827; color: #fff; border-color: transparent; }

.poster-pass-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a8a;
  padding: 0.6rem 0.8rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  cursor: pointer;
}
.poster-actions { display: flex; flex-direction: column; gap: 0.55rem; margin-top: auto; }
.poster-tip { margin: 0; font-size: 0.78rem; color: var(--t-subtle); line-height: 1.5; }

/* Encyclopedia Grid */
.ency-body {
  padding: 1.15rem 1.3rem 1.5rem;
  max-height: calc(92dvh - 68px);
  overflow-y: auto;
  display: grid;
  gap: 1.25rem;
}
.ency-group h4 { margin: 0 0 0.65rem; font-size: 0.96rem; color: var(--t-ink); }
.ency-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.ency-card {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--t-border);
  background: #fafbfc;
}
.ency-card.is-mine, .ency-card.is-highlight {
  border-color: var(--ec, var(--t-cobalt));
  background: color-mix(in srgb, var(--ec, #2350dc) 7%, #ffffff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ec, #2350dc) 16%, transparent);
}
.ency-card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; }
.ency-emblem { font-size: 1.35rem; }
.ency-card-top strong { display: block; font-size: 0.92rem; color: var(--ec, var(--t-ink)); }
.ency-card-top span { display: block; font-size: 0.8rem; color: var(--t-muted); font-weight: 600; }
.ency-mine-tag {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--ec, var(--t-cobalt));
  color: #fff;
}
.ency-motto { margin: 0 0 0.3rem; font-size: 0.84rem; color: var(--t-ink); line-height: 1.5; }
.ency-prop { margin: 0; font-size: 0.76rem; color: var(--t-subtle); }

/* Toast */
.test-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  transform: translate(-50%, 14px);
  opacity: 0;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.4);
  transition: opacity 0.2s ease, transform 0.2s var(--t-ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.test-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive Breakpoints (Tablet 768px & Mobile 390 / 360 / 320px) ===== */
@media (max-width: 64rem) {
  .test-hero-card { grid-template-columns: 1fr; }
  .suites-grid, .lobby-values, .stamps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .test-subnav-wrap { top: 0; }
  .suites-grid, .lobby-values, .stamps-grid,
  .result-grid-2, .result-grid-viz, .poster-body, .ency-cards, .fortune-grid {
    grid-template-columns: 1fr;
  }
  .spark-options { grid-template-columns: 1fr; }
  .result-hero-card { flex-direction: column-reverse; align-items: flex-start; }
  .result-hero-badge { width: 84px; height: 84px; }
  .result-hero-badge img { width: 68px; height: 68px; }
  .likert5-grid { grid-template-columns: 1fr; }
  .likert5-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0.55rem 0.85rem;
  }
  .mbti-circle.size-3 { width: 44px; height: 44px; font-size: 0.84rem; }
  .mbti-circle.size-2 { width: 39px; height: 39px; font-size: 0.8rem; }
  .mbti-circle.size-1 { width: 35px; height: 35px; font-size: 0.76rem; }
  .mbti-circle.size-0 { width: 32px; height: 32px; font-size: 0.72rem; }
  .seal-progress-strip { flex-direction: column; align-items: flex-start; }
  .schedule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 24rem) {
  .test-hero-card, .quiz-focus-card, .report-card, .result-hero-card { padding: 1rem; }
  .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; }
  .subtab-btn { padding: 0.28rem 0.62rem; font-size: 0.82rem; }
  .test-sound-btn { padding: 0.22rem 0.52rem; font-size: 0.75rem; }
}

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