:root {
  --ink: #241f3a;
  --ink-soft: #4d4666;
  --muted: #78708f;
  --pearl: #f6f3fb;
  --lilac: #b9a7e6;
  --lilac-deep: #7c63c4;
  --sage: #9fc9b8;
  --peach: #f0bfa8;
  --rose: #e6a8bd;
  --butter: #ecd39a;
  --sky: #a8c4e8;
  --line: rgba(255, 255, 255, .62);
  --glass: rgba(255, 255, 255, .48);
  --glass-strong: rgba(255, 255, 255, .7);
  --shadow: 0 24px 60px -24px rgba(58, 40, 105, .35), 0 2px 10px rgba(58, 40, 105, .06);
  --shadow-soft: 0 10px 30px -14px rgba(58, 40, 105, .28);
  --radius: 30px;
  --radius-sm: 18px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(1200px 700px at 12% -8%, #efe7fc 0%, transparent 60%),
    radial-gradient(900px 600px at 92% 4%, #e6f4ee 0%, transparent 55%),
    radial-gradient(800px 800px at 50% 110%, #fdeee6 0%, transparent 60%),
    linear-gradient(160deg, #f7f4fc 0%, #f3f2f8 50%, #f7f5f2 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(185, 167, 230, .45); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--lilac-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, #cdb8f2, transparent 65%); animation: drift 26s ease-in-out infinite; }
.b2 { width: 38vw; height: 38vw; right: -10vw; top: 8vh; background: radial-gradient(circle, #b7e3d2, transparent 65%); animation: drift 32s ease-in-out infinite reverse; }
.b3 { width: 42vw; height: 42vw; left: 28vw; bottom: -20vh; background: radial-gradient(circle, #f8d3c2, transparent 65%); animation: drift 38s ease-in-out infinite; }
.b4 { width: 24vw; height: 24vw; right: 12vw; bottom: 6vh; background: radial-gradient(circle, #e7d7a6, transparent 65%); animation: drift 22s ease-in-out infinite reverse; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  66% { transform: translate3d(-3vw, -2vh, 0) scale(.96); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow-soft);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- navigation ---------- */
.nav-shell { position: sticky; top: 14px; z-index: 40; padding-top: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 12px 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; letter-spacing: .04em; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, #cfbdf4, #9fc9b8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 16px -8px #7c63c4;
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a, .nav-links button {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  transition: background .25s ease, color .25s ease;
}
.nav-links a:hover, .nav-links button:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.nav-links #account-trigger.signed-in { color: var(--lilac-deep); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, background .25s ease, opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8f77d3, #6f58b8 55%, #5d7f9d);
  box-shadow: 0 16px 34px -16px rgba(111, 88, 184, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 20px 40px -16px rgba(111, 88, 184, .95), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { background: rgba(255, 255, 255, .55); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { background: rgba(255, 255, 255, .82); }
.btn-quiet { background: transparent; border-color: rgba(124, 99, 196, .22); color: var(--lilac-deep); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.view { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 64px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.eyebrow i {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(140deg, #d8c9f6, #a9d6c4);
  font-style: normal;
  font-size: 11px;
}
.hero h1 {
  margin-top: 22px;
  white-space: pre-line;
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, #7c63c4 10%, #8c7bb0 45%, #5f9d89 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--sage); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.orb {
  position: absolute;
  width: min(370px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 120deg, rgba(207,189,244,.75), rgba(159,201,184,.7), rgba(240,191,168,.62), rgba(207,189,244,.75));
  filter: blur(2px);
  opacity: .55;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.hero-card {
  position: relative;
  z-index: 2;
  width: min(330px, 86%);
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.hero-card-top b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(185,167,230,.3); letter-spacing: 0; }
.hero-card h3 { margin-top: 26px; font-family: var(--serif); font-size: 25px; }
.hero-card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.bars { display: grid; gap: 13px; margin-top: 26px; }
.bar-row span { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }
.bar { height: 7px; border-radius: 99px; background: rgba(120, 112, 143, .14); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c3b0ee, #8fbfae); width: 0; transition: width 1.2s cubic-bezier(.2,.8,.3,1); }
.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  animation: float 7s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--lilac-deep); }
.chip-a { top: 8%; left: 2%; }
.chip-b { bottom: 10%; right: 0; animation-delay: -3.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- section heading ---------- */
.section { padding: clamp(30px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--muted); font-size: 14px; max-width: 30em; }
.kicker { display: block; margin-bottom: 10px; color: var(--lilac-deep); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.42);
  color: var(--ink-soft);
  font-size: 13.5px;
  transition: all .25s ease;
}
.chip:hover { background: rgba(255,255,255,.75); }
.chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #8f77d3, #6f58b8);
  border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(111,88,184,.9);
}

/* ---------- catalog ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 20px; }
.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, background .35s;
  text-align: left;
}
.test-card::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent, #cfbdf4);
  opacity: .3;
  filter: blur(38px);
  transition: opacity .35s ease, transform .5s ease;
}
.test-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 32px 60px -28px rgba(58,40,105,.5); }
.test-card:hover::after { opacity: .55; transform: scale(1.15); }
.test-card > * { position: relative; z-index: 1; }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(58,40,105,.6);
}
.tc-icon svg { width: 24px; height: 24px; stroke: var(--accent-ink, #6f58b8); }
.tc-cat { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-soft); background: rgba(255,255,255,.55); padding: 5px 11px; border-radius: 99px; }
.test-card h3 { font-family: var(--serif); font-size: 22px; }
.test-card p { font-size: 13.5px; color: var(--ink-soft); min-height: 3.2em; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(120,112,143,.12); }
.tc-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.tc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--accent-ink, #6f58b8); }
.tc-go svg { width: 15px; height: 15px; transition: transform .3s ease; }
.test-card:hover .tc-go svg { transform: translateX(4px); }
.hero h1, .hero-sub, .manifesto p, .step h3, .step p,
.test-card h3, .test-card p, .tc-cat, .history-item b,
.result-headline, .result-sub, .result-eyebrow, .panel p,
.ai-copy, .ai-output, .disclaimer, .q-text, .option > span:last-child { overflow-wrap: anywhere; }
.accent-peach { --accent: #f3b9a0; --accent-ink: #b06a4c; }
.accent-mint { --accent: #a7d8c4; --accent-ink: #3f8770; }
.accent-lavender { --accent: #cdb8f2; --accent-ink: #6f58b8; }
.accent-rose { --accent: #efb6c9; --accent-ink: #ab5f7c; }
.accent-butter { --accent: #efd79c; --accent-ink: #9a7b2c; }
.accent-blue { --accent: #b3cbec; --accent-ink: #4f74a4; }

.skeleton-card { height: 250px; border-radius: 26px; background: linear-gradient(100deg, rgba(255,255,255,.35), rgba(255,255,255,.7), rgba(255,255,255,.35)); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- history ---------- */
.history-band { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 24px; flex-wrap: wrap; }
.history-band h3 { font-family: var(--serif); font-size: 17px; margin-right: 4px; }
.history-list { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.history-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.64); border: 1px solid rgba(255,255,255,.85); font-size: 12.5px; color: var(--ink-soft); transition: background .25s, transform .25s; }
.history-item:hover { background: #fff; transform: translateY(-2px); }
.history-item b { font-weight: 600; color: var(--ink); }
.history-item i { font-style: normal; color: var(--lilac-deep); font-weight: 600; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: 24px; }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.7); font-family: var(--serif); font-size: 15px; color: var(--lilac-deep); margin-bottom: 16px; box-shadow: inset 0 1px 0 #fff; }
.step h3 { font-size: 17px; }
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.manifesto { position: relative; overflow: hidden; margin: 30px 0 10px; padding: clamp(30px, 5vw, 54px); border-radius: 34px; text-align: center; }
.manifesto::before { content: "❞"; position: absolute; top: -30px; left: 28px; font-family: var(--serif); font-size: 160px; color: rgba(124,99,196,.1); line-height: 1; }
.manifesto p { position: relative; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 27px); line-height: 1.7; max-width: 30em; margin-inline: auto; }
.manifesto small { display: block; margin-top: 16px; color: var(--muted); letter-spacing: .12em; font-size: 12px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 34px 0 42px; border-top: 1px solid rgba(120,112,143,.14); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links button { border: 0; background: none; color: var(--muted); padding: 0; text-decoration: underline; text-decoration-color: rgba(120,112,143,.35); text-underline-offset: 3px; }
.footer-links button:hover { color: var(--lilac-deep); }

/* ---------- test runner ---------- */
.runner { min-height: calc(100vh - 200px); padding: clamp(24px, 4vw, 48px) 0 60px; }
.runner-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.6); box-shadow: var(--shadow-soft); transition: transform .25s, background .25s; }
.icon-btn:hover { transform: translateX(-2px); background: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.runner-title { flex: 1; min-width: 0; }
.runner-title h2 { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.runner-title p { font-size: 12.5px; color: var(--muted); }
.progress { margin-bottom: 22px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.progress-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.6); overflow: hidden; box-shadow: inset 0 1px 2px rgba(58,40,105,.08); }
.progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #c9b8ef, #8fbfae); transition: width .45s cubic-bezier(.2,.8,.3,1); }

.question-card { max-width: 780px; margin-inline: auto; padding: clamp(26px, 4.5vw, 46px); border-radius: 32px; }
.q-index { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.q-index b { font-family: var(--serif); font-size: 30px; letter-spacing: 0; color: var(--lilac-deep); font-weight: 500; }
.q-text { margin-top: 16px; font-family: var(--serif); font-size: clamp(21px, 2.9vw, 29px); line-height: 1.55; min-height: 2.6em; }
.q-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.options { display: grid; gap: 10px; margin-top: 28px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.46);
  text-align: left;
  font-size: 15px;
  transition: transform .2s ease, background .2s, border-color .2s, box-shadow .2s;
}
.option:hover { background: rgba(255,255,255,.8); transform: translateX(3px); }
.option .key { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(185,167,230,.22); font-size: 12px; color: var(--lilac-deep); }
.option[aria-checked="true"] { background: linear-gradient(135deg, rgba(214,200,245,.75), rgba(196,231,217,.7)); border-color: rgba(124,99,196,.35); box-shadow: 0 12px 26px -16px rgba(111,88,184,.8); }
.option[aria-checked="true"] .key { background: var(--lilac-deep); color: #fff; }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(120,112,143,.12); }
.q-nav .spacer { flex: 1; }
.q-nav small { color: var(--muted); font-size: 12px; }

/* ---------- report ---------- */
.report { padding: clamp(24px, 4vw, 46px) 0 64px; }
.report-card { padding: clamp(26px, 4vw, 50px); border-radius: 36px; position: relative; overflow: hidden; }
.report-card::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(185,167,230,.35), transparent 65%); }
.report-top { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ring-wrap { position: relative; display: grid; place-items: center; width: 190px; height: 190px; }
.ring { transform: rotate(-90deg); width: 190px; height: 190px; }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .bg { stroke: rgba(255,255,255,.7); }
.ring .fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.3,1); }
.ring-center { position: absolute; text-align: center; }
.ring-center b { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 500; }
.ring-center b span { font-size: 18px; color: var(--muted); }
.ring-center small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.result-eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--lilac-deep); text-transform: uppercase; }
.result-headline { margin-top: 8px; font-family: var(--serif); font-size: clamp(28px, 3.8vw, 42px); }
.result-sub { margin-top: 14px; color: var(--ink-soft); font-size: 15px; max-width: 36em; }
.result-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { padding: 6px 13px; border-radius: 99px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); font-size: 12px; color: var(--ink-soft); }

.report-grid { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-top: 30px; }
.panel { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.44); border: 1px solid rgba(255,255,255,.8); }
.panel h3 { display: flex; align-items: center; gap: 9px; font-size: 14px; letter-spacing: .04em; color: var(--ink-soft); }
.panel h3 svg { width: 16px; height: 16px; color: var(--lilac-deep); }
.panel p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.dim-list { display: grid; gap: 16px; margin-top: 18px; }
.dim-row span { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--ink-soft); }
.dim-row span b { font-weight: 600; color: var(--ink); }
.dim-row .bar i { background: linear-gradient(90deg, #b7a2e8, #86bfa9); }

.ai-panel { margin-top: 18px; padding: clamp(22px, 3vw, 30px); border-radius: 26px; background: linear-gradient(150deg, rgba(240,235,252,.75), rgba(240,250,246,.65)); border: 1px solid rgba(255,255,255,.9); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ai-head h3 { font-family: var(--serif); font-size: 20px; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-soft); background: rgba(255,255,255,.7); padding: 5px 11px; border-radius: 99px; border: 1px solid rgba(255,255,255,.9); }
.ai-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(159,201,184,.2); }
.ai-tag.local i { background: var(--butter); box-shadow: 0 0 0 4px rgba(236,211,154,.25); }
.ai-copy { margin-top: 10px; font-size: 13px; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--lilac-deep); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.ai-output { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(120,112,143,.14); font-size: 14.5px; line-height: 1.9; white-space: pre-wrap; color: var(--ink-soft); }
.ai-output:empty { display: none; }
.ai-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.disclaimer { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- toast / dialog ---------- */
.toasts { position: fixed; z-index: 90; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; background: rgba(38, 32, 60, .9); color: #fff; font-size: 13.5px; box-shadow: 0 18px 40px -18px rgba(20,15,40,.9); animation: toastin .3s ease both; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.toast.ok { background: rgba(47, 92, 76, .92); }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }

dialog { border: 1px solid rgba(255,255,255,.8); border-radius: 26px; padding: 0; background: rgba(250,248,255,.92); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(30,20,60,.5); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); width: min(480px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(36, 28, 58, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog-body { padding: 26px; }
.dialog-body h3 { font-family: var(--serif); font-size: 21px; }
.dialog-body p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.field { margin-top: 18px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid rgba(120,112,143,.22); background: rgba(255,255,255,.75); font-size: 14px; }
.field input:focus { outline: none; border-color: var(--lilac-deep); box-shadow: 0 0 0 4px rgba(185,167,230,.22); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-close { border: 0; background: rgba(124, 99, 196, .1); color: var(--lilac-deep); width: 32px; height: 32px; border-radius: 10px; font-size: 20px; line-height: 1; }
.account-tabs { display: flex; gap: 4px; padding: 4px; margin-top: 16px; border-radius: 999px; background: rgba(124, 99, 196, .09); }
.account-tab { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-size: 13px; color: var(--ink-soft); }
.account-tab.active { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(60, 45, 90, .35); }
.account-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.account-form { margin-top: 4px; }
.account-form .field { margin-top: 14px; }
.account-form .field label { margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; white-space: nowrap; }
.account-form .btn.full { width: 100%; margin-top: 18px; }
.account-error { margin-top: 14px; padding: 10px 13px; border-radius: 12px; background: rgba(191, 116, 139, .12); color: #9b4561; font-size: 12.5px; }
.account-links { margin-top: 14px; text-align: center; }
.account-link { border: 0; background: transparent; color: var(--lilac-deep); font-size: 12.5px; padding: 4px 6px; }
.account-link:hover { text-decoration: underline; }
.account-user { display: grid; gap: 4px; margin-top: 18px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); }
.account-label { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-bottom: 0; }
.account-user strong { font-size: 15px; word-break: break-all; }
.account-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.account-actions .btn { flex: 1; }

.loading-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(124,99,196,.25); border-top-color: var(--lilac-deep); animation: spin .8s linear infinite; }

.notice-bar { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }
.notice-bar svg { width: 18px; height: 18px; flex: none; color: var(--lilac-deep); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-art { min-height: 320px; order: -1; }
  .orb { width: min(300px, 70%); }
  .report-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .report-top { grid-template-columns: 1fr; justify-items: start; }
  .ring-wrap, .ring { width: 150px; height: 150px; }
  .ring-center b { font-size: 38px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 9px 10px 9px 14px; gap: 8px; }
  .nav-links a, .nav-links button { padding: 7px 10px; font-size: 13px; }
  .brand span:not(.brand-mark) { display: none; }
  .brand { gap: 0; }
  .nav-links a.hide-xs { display: none; }
  .hero-art { order: 0; min-height: 260px; }
  .hero-card { width: min(300px, 84%); padding: 20px; }
  .hero-card h3 { margin-top: 16px; font-size: 21px; }
  .hero-card .bars { margin-top: 18px; }
  .float-chip { display: none; }
  .steps { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .question-card { padding: 24px 20px; }
  .q-text { min-height: 0; }
  .runner-head { gap: 10px; }
  .runner-title h2 { font-size: 17px; }
  .runner-cat { display: none; }
  .toasts { bottom: 14px; }
  .report-card { padding: 22px 18px; }
  .panel { padding: 18px; }
  .q-nav { flex-wrap: wrap; gap: 8px; }
  .q-nav .spacer { display: none; }
  #q-status { order: 3; width: 100%; text-align: center; }
  #q-prev, #q-next { flex: 1; }
  .report-actions .btn { flex: 1; }
  .ai-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .nav-links a, .nav-links button { padding: 7px 8px; font-size: 12.5px; }
  .hero-cta .btn { flex: 1; }
  .option { font-size: 14px; padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}