/* Candora — design tokens */
:root {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: #f3f4fa;
  --border: rgba(20, 24, 48, 0.10);
  --border-strong: rgba(20, 24, 48, 0.18);
  --text: #12142a;
  --text-2: #4a4f6a;
  --text-3: #7a7f98;
  --accent: #6a4dff;
  --accent-2: #0ea5c6;
  --accent-soft: rgba(106, 77, 255, 0.10);
  --on-accent: #ffffff;
  --good: #12805c;
  --warn: #b26a00;
  --bad: #c0352b;
  --good-soft: rgba(18, 128, 92, 0.12);
  --warn-soft: rgba(178, 106, 0, 0.12);
  --bad-soft: rgba(192, 53, 43, 0.12);
  --shadow: 0 1px 2px rgba(18, 20, 42, 0.06), 0 12px 32px -12px rgba(18, 20, 42, 0.18);
  --aurora-a: rgba(124, 92, 255, 0.22);
  --aurora-b: rgba(34, 211, 238, 0.18);
  --aurora-c: rgba(244, 114, 182, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d17;
    --bg-2: #10132a;
    --surface: rgba(22, 25, 46, 0.72);
    --surface-solid: #161a30;
    --surface-2: #1c2040;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef0ff;
    --text-2: #b4b8d4;
    --text-3: #868ba8;
    --accent: #8b74ff;
    --accent-2: #22d3ee;
    --accent-soft: rgba(139, 116, 255, 0.16);
    --good: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --good-soft: rgba(52, 211, 153, 0.14);
    --warn-soft: rgba(251, 191, 36, 0.14);
    --bad-soft: rgba(248, 113, 113, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --aurora-a: rgba(124, 92, 255, 0.28);
    --aurora-b: rgba(34, 211, 238, 0.16);
    --aurora-c: rgba(244, 114, 182, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d17;
  --bg-2: #10132a;
  --surface: rgba(22, 25, 46, 0.72);
  --surface-solid: #161a30;
  --surface-2: #1c2040;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --text-2: #b4b8d4;
  --text-3: #868ba8;
  --accent: #8b74ff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 116, 255, 0.16);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --good-soft: rgba(52, 211, 153, 0.14);
  --warn-soft: rgba(251, 191, 36, 0.14);
  --bad-soft: rgba(248, 113, 113, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --aurora-a: rgba(124, 92, 255, 0.28);
  --aurora-b: rgba(34, 211, 238, 0.16);
  --aurora-c: rgba(244, 114, 182, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* background aurora */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); animation: drift 28s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { background: var(--aurora-a); top: -25vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: var(--aurora-b); top: -10vmax; right: -25vmax; animation-delay: -8s; }
.aurora span:nth-child(3) { background: var(--aurora-c); bottom: -35vmax; left: 20vmax; animation-delay: -16s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aurora span, .pulse, .wave i, .spinner { animation: none !important; } }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; }
.topnav { display: flex; align-items: center; gap: 10px; }
.link { background: none; border: 0; color: var(--text-2); padding: 8px 10px; border-radius: 10px; font-weight: 500; }
.link:hover { color: var(--text); background: var(--surface-2); }
.menu { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.menu-pop { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu-pop button { background: none; border: 0; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text-2); }
.menu-pop button:hover { background: var(--surface-2); color: var(--text); }
.menu-pop .danger { color: var(--bad); }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
.menu-head { padding: 8px 10px 10px; display: flex; flex-direction: column; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu-head span { color: var(--text-3); font-size: .85rem; word-break: break-all; }

main { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) 80px; outline: none; }

/* primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px;
  font-weight: 600; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
  box-shadow: 0 8px 24px -10px var(--accent); transition: transform .15s, box-shadow .15s, opacity .15s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }
.btn-danger { background: var(--bad); box-shadow: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: clamp(18px, 3vw, 28px); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .88rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.chip button { background: none; border: 0; padding: 0 0 0 2px; line-height: 1; color: var(--text-3); font-size: 1.05rem; }
.chip button:hover { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: .92rem; }
.input, .textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-solid); }
.input:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.b-good { background: var(--good-soft); color: var(--good); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-acc { background: var(--accent-soft); color: var(--accent); }

/* landing */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 56px); align-items: center; min-height: 70vh; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.feature .ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feature strong { display: block; font-size: .95rem; }
.feature span { font-size: .86rem; color: var(--text-2); }
.tabs { display: flex; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--text-2); }
.tabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }

/* stepper */
.stepper { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.step.on { color: var(--text); border-color: var(--accent); }
.step.on i { background: var(--accent); color: #fff; }
.step.done i { background: var(--good); color: #fff; }

/* dropzone */
.drop { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: clamp(28px, 6vw, 56px) 20px; text-align: center; cursor: pointer;
  background: var(--surface); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .big-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* loading */
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 20px; text-align: center; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* roles */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.role { text-align: left; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.role:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.role[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.role h4 { font-size: 1.05rem; margin: 0; }
.fit { display: flex; align-items: center; gap: 10px; }
.fitbar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fitbar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }

/* topics */
.cat { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.cat.off { opacity: .5; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cat-head input.cat-name { font-weight: 600; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; border: 0; background: none; padding: 4px 6px; border-radius: 8px; min-width: 0; flex: 1; }
.cat-head input.cat-name:focus { background: var(--surface-2); outline: none; }
.add-topic { display: flex; gap: 8px; margin-top: 10px; }
.add-topic input { flex: 1; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); background: transparent; min-width: 0; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--border-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

/* setup options */
.opt-group { margin-bottom: 26px; }
.opt-group > h3 { margin-bottom: 4px; }
.opts { display: grid; gap: 10px; margin-top: 12px; }
.opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.opt { text-align: left; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.opt:hover { border-color: var(--border-strong); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt strong { font-size: .98rem; }
.opt span { font-size: .82rem; color: var(--text-2); }
.opt.big { padding: 20px; flex-direction: row; gap: 14px; align-items: flex-start; }
.opt.big .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* interview */
.iv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.progress { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; min-width: 120px; }
.progress .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }

.chat { display: flex; flex-direction: column; gap: 14px; min-height: 46vh; max-height: 62vh; overflow-y: auto; padding: 4px 2px 10px; }
.msg { display: flex; gap: 10px; max-width: 86%; }
.msg .who { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.msg .bubble { padding: 12px 15px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border); white-space: pre-wrap; }
.msg .name { font-size: .78rem; color: var(--text-3); margin-bottom: 3px; font-weight: 600; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .who { background: var(--text-2); }
.msg.me .bubble { background: var(--accent); color: #fff; border-color: transparent; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; }
.composer .textarea { min-height: 56px; max-height: 220px; }
.icon-btn { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-solid); display: grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { color: var(--text); }
.icon-btn.rec { background: var(--bad); color: #fff; border-color: transparent; }

/* panel */
.panel-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.panelist { position: relative; padding: 22px 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s; }
.panelist.speaking { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.face { position: relative; width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; font-weight: 700; color: #fff; }
.face::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.panelist.speaking .face::after { animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.25); } }
.panelist .t { font-size: .84rem; color: var(--text-2); }
.wave { display: flex; justify-content: center; gap: 3px; height: 16px; margin-top: 10px; visibility: hidden; }
.panelist.speaking .wave { visibility: visible; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); animation: wv 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; } .wave i:nth-child(3) { animation-delay: .2s; } .wave i:nth-child(4) { animation-delay: .3s; } .wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wv { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.caption { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; min-height: 3.2em; }
.caption .by { display: block; font-size: .82rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; letter-spacing: .02em; }
.answer-box { margin-top: 16px; }
.mic-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.mic { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px -10px var(--accent); }
.mic.rec { background: var(--bad); box-shadow: 0 0 0 0 var(--bad-soft); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } 100% { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); } }
.pulse { animation: pulse 1.4s infinite; }
.transcript-toggle { margin-top: 18px; }
details.tx summary { cursor: pointer; color: var(--text-2); font-weight: 500; }
details.tx .chat { max-height: 40vh; min-height: 0; margin-top: 12px; }

/* results */
.res-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 156px; height: 156px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val strong { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; line-height: 1; }
.ring .val span { font-size: .8rem; color: var(--text-3); }
.dims { display: grid; gap: 12px; }
.dim .spread { margin-bottom: 4px; font-size: .92rem; }
.dim .fitbar { height: 8px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: .55em; background: var(--good); }
.list.warn li::before { background: var(--warn); }
.list.acc li::before { background: var(--accent); }
.imp { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--warn); }
.imp p { margin: 4px 0 0; font-size: .92rem; color: var(--text-2); }
details.q { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 16px; }
details.q summary { cursor: pointer; padding: 14px 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; list-style: none; }
details.q summary::-webkit-details-marker { display: none; }
details.q .qbody { padding-bottom: 16px; }
.better { padding: 12px 14px; border-radius: 10px; background: var(--good-soft); font-size: .93rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* dashboard */
.history { display: grid; gap: 10px; }
.h-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); text-align: left; width: 100%; }
.h-item:hover { border-color: var(--border-strong); }
.h-score { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; }
.h-main { flex: 1; min-width: 0; }
.h-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100vw - 32px); font-size: .93rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .opts.c4, .opts.c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts.c3 { grid-template-columns: 1fr; }
  .res-top, .two { grid-template-columns: 1fr; }
  .res-top { justify-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .feature-list, .opts.c2 { grid-template-columns: 1fr; }
  .panel-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .panelist { padding: 14px 6px; }
  .face { width: 56px; height: 56px; font-size: 1.1rem; }
  .panelist .t { font-size: .72rem; }
  .panelist strong { font-size: .82rem; }
  .msg { max-width: 96%; }
  .topnav .link { display: none; }
}
@media print {
  .topbar, .aurora, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; backdrop-filter: none; border-color: #ddd; }
  details.q { break-inside: avoid; }
}

/* fixes */
main:focus, main:focus-visible { outline: none; }
.hero > *, .two > *, .grid > *, .res-top > * { min-width: 0; }
h1, h2 { overflow-wrap: anywhere; }
