/* Interview pages: the domain home's question trees and each root question's page
   (tools/templates/v3/interviews.mjs). Theme tokens only (assets/v3/tokens.css), so every theme applies. */

/* Follow-up moves (the 360° axes): one colour each, from the diagram and status tokens. */
[data-axis="why"] { --axis: var(--flow-call); }
[data-axis="what-if"] { --axis: var(--flow-resource); }
[data-axis="prove-it"] { --axis: var(--good); }
[data-axis="break-it"] { --axis: var(--bad); }
[data-axis="compare"] { --axis: var(--flow-return); }
[data-axis="scale-it"] { --axis: var(--accent); }

.iv-axis { display: inline-flex; align-items: center; flex: none; min-height: 22px; padding: 0 9px; border-radius: var(--r-pill); font: 650 11.5px/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--axis); background: color-mix(in srgb, var(--axis) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--axis) 45%, transparent); }
.iv-levels { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.iv-level { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); font: 500 12px/1.2 var(--sans); white-space: nowrap; }
.iv-level b { font: 650 11.5px/1 var(--mono); color: var(--ink); }
.iv-style { display: inline-flex; padding: 3px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--ink); font: 600 12px/1.2 var(--sans); }
.iv-companies { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.iv-company { padding: 4px 11px; border-radius: var(--r-pill); font: 600 13px/1.3 var(--sans); color: var(--ink); border: 1px solid var(--rule-strong); }
.iv-company[data-label="asked"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.iv-company[data-label="likely"] { border-style: dashed; background: transparent; }

/* ---------- question page ---------- */
.iv-page { max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) 88px; min-width: 0; }
.iv-back { margin: 0 0 18px; font-size: var(--fs-sm); }
.iv-back a { color: var(--ink-2); text-decoration: none; }
.iv-back a:hover { color: var(--link); text-decoration: underline; }
.iv-head h1 { margin: 6px 0 14px; font: 650 var(--fs-3xl)/1.08 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.iv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.iv-topics { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font: 500 13px/1.4 var(--mono); }
.iv-topics span::before { content: '#'; opacity: .6; }

.iv-prompt-card { margin: 28px 0 0; padding: clamp(20px, 4vw, 34px); border: 1px solid var(--rule); border-radius: var(--r-case); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--card)), var(--card) 55%); box-shadow: var(--shadow-case); }
.iv-prompt { margin: 0; font: 600 clamp(21px, 2.6vw, 28px)/1.35 var(--display); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.iv-prompt code, .iv-node-prompt code, .iv-card-prompt code { font: 550 .9em/1 var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--paper-2); }
.iv-practice { margin-top: 22px; min-width: 0; overflow-wrap: anywhere; }
.iv-practice [hidden] { display: none; }
.iv-practice *, .iv-practice *::before, .iv-practice *::after { box-sizing: border-box; }
.iv-practice :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.iv-speech-controls { padding: 16px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper-2); }
.iv-speech-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iv-speech-actions .btn { white-space: normal; min-height: 44px; }
.iv-countdown { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; font: 600 12px/1 var(--mono); color: var(--ink); }
.iv-countdown svg, .iv-countdown span { grid-area: 1 / 1; }
.iv-countdown svg { transform: rotate(-90deg); fill: none; stroke: var(--accent); stroke-width: 3; }
.iv-countdown .iv-clock-track { stroke: var(--rule-strong); }
.iv-speech-privacy, .iv-speech-note { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.iv-practice-level { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.iv-practice-level select { min-width: 0; max-width: 100%; min-height: 44px; padding: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); font: inherit; }
.iv-practice-comparison { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 16px; }
.iv-practice-comparison > * { min-width: 0; margin: 0; }
/* Your answer stays above the model answer, never beside it: side by side, the answer and its
   figures were squeezed into half the card (owner, 2026-11-09). */
.iv-transcript { padding: 16px; border: 1px solid var(--rule); background: var(--card); border-radius: var(--r-ctl); align-self: start; }
.iv-transcript h3, .iv-self-check h3 { margin-top: 0; font: 600 var(--fs-base)/1.4 var(--sans); }
.iv-transcript p { white-space: pre-wrap; }
.iv-self-check { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.iv-self-check fieldset { min-width: 0; padding: 0; border: 0; }
.iv-self-check legend { font-weight: 600; margin-bottom: 8px; }
.iv-self-check label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.iv-self-check input { flex: none; margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.iv-reveal { margin: 18px 0 0; }
.iv-reveal > summary { list-style: none; display: inline-block; cursor: pointer; }
.iv-reveal > summary::-webkit-details-marker { display: none; }
.iv-reveal > summary .btn { pointer-events: none; }
.iv-reveal[open] > summary .btn { background: transparent; color: var(--ink); border-color: var(--rule-strong); box-shadow: none; }
.iv-answer { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--rule); font-size: var(--fs-base); line-height: 1.7; color: var(--ink); }
.iv-answer > p:first-child { margin-top: 0; }

.iv-section { margin: 52px 0 0; }
.iv-section h2, .iv-bank-head h2 { margin: 0; font: 650 var(--fs-xl)/1.2 var(--display); letter-spacing: -.01em; }
.iv-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.iv-section-lead { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-sm); }
.iv-tree-tools { display: flex; gap: 6px; }
.iv-tree-tools[hidden] { display: none; }
.btn.iv-small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.iv-axis-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

/* The tree: each row draws its own elbow and dot; rails continue through open nodes. */
.iv-tree { list-style: none; margin: 18px 0 0; padding: 14px 12px 6px; border: 1px solid var(--rule); border-radius: var(--r-case); background: var(--card); }
.iv-row { position: relative; }
.iv-rails { position: absolute; inset: 0; pointer-events: none; }
.iv-rail { position: absolute; top: 0; bottom: 0; left: var(--x); border-left: 2px solid var(--rule-strong); transform: translateX(-1px); }
.iv-rail-down { top: 22px; }
.iv-elbow { flex: none; display: block; overflow: visible; }
.iv-elbow path { fill: none; stroke: var(--rule-strong); stroke-width: 2; }
.iv-elbow circle { fill: var(--axis, var(--ink-2)); stroke: var(--card); stroke-width: 2.5; }
.iv-elbow .iv-dot-root { fill: var(--ink); }
.iv-root-node { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; position: relative; }
.iv-root-node .iv-node-title { padding: 11px 0 9px; font-weight: 700; }
.iv-node > summary { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; position: relative; border-radius: var(--r-ctl); }
.iv-node > summary::-webkit-details-marker { display: none; }
.iv-node-label { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; padding: 11px 0 9px; }
.iv-node-title { flex: 1 1 14ch; min-width: 0; font: 600 15.5px/1.4 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.iv-node > summary:hover .iv-node-title { color: var(--link); }
.iv-node > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.iv-node[open] > summary .iv-node-title { color: var(--link); }
.iv-node[open] > summary .iv-elbow circle { r: 7.5; }
.iv-graded { padding: 3px 9px; border-radius: var(--r-pill); background: var(--good-soft); color: var(--good); font: 650 11.5px/1.2 var(--sans); white-space: nowrap; }
.iv-node-body { position: relative; padding: 2px 4px 22px calc((var(--d) + 1) * 22px + 6px); }
.iv-when { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-style: italic; }
.iv-node-prompt { margin: 0; font: 600 17px/1.5 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.iv-mini-reveal { margin: 10px 0 0; }
.iv-mini-reveal > summary { cursor: pointer; color: var(--link); font: 600 14px/1.4 var(--sans); }
.iv-node-answer { margin: 8px 0 0; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--paper-2); font-size: 15.5px; line-height: 1.65; }
.iv-node-answer > p:first-child { margin-top: 0; }
.iv-node-answer > p:last-child { margin-bottom: 0; }
.iv-node-body .iv-pitfalls { margin-top: 14px; grid-template-columns: 1fr; }
.iv-node-body .iv-links { margin-top: 12px; }
.iv-problem-btn { margin-top: 10px; }

/* Pitfalls: red cards. */
.iv-pitfalls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 18px 0 0; }
.iv-pitfall { min-width: 0; padding: 16px 18px; border-radius: var(--r-ctl); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); border-left: 4px solid var(--bad); color: var(--ink); }
.iv-pitfall-tag { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--bad); font: 700 11.5px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.iv-pitfall-tag svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.iv-pitfall-wrong { margin: 0; font: 600 16px/1.45 var(--sans); overflow-wrap: anywhere; }
.iv-pitfall-why { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.iv-pitfall-source { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.iv-pitfall-source span { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; margin-right: 4px; }
.iv-pitfall p code { font: 550 .9em/1 var(--mono); padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.iv-twin { margin: 12px 0 0; }
.iv-pitfall:has(> .iv-twin[open]) { grid-column: 1 / -1; }
.iv-run-it { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 15px; border-radius: var(--r-pill); background: var(--bad); color: var(--card); font: 650 14px/1 var(--sans); cursor: pointer; list-style: none; }
.iv-run-it::-webkit-details-marker { display: none; }
.iv-run-it svg { fill: currentColor; }
.iv-twin[open] > .iv-run-it { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.iv-twin-body { margin-top: 12px; }
.iv-twin-caption { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.iv-twin-body .example, .iv-answer .example, .iv-node-answer .example { margin: 12px 0 0; padding: 12px; }
.iv-fix { margin: 12px 0 0; }
.iv-fix > summary { cursor: pointer; font: 600 14px/1.4 var(--sans); color: var(--good); }
.iv-expected { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.iv-pitfall pre.code, .iv-node-body pre.code { max-width: 100%; overflow-x: auto; }

/* Level signals: two columns, Fresher pass vs Senior pass. */
.iv-signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 18px 0 0; }
.iv-signal { min-width: 0; padding: 18px 20px; border-radius: var(--r-ctl); border: 1px solid var(--rule); background: var(--card); border-top: 4px solid var(--flow-call); }
.iv-signal[data-rank="high"] { border-top-color: var(--accent); }
.iv-signal[data-rank="mid"] { border-top-color: var(--flow-return); }
.iv-signal-band { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; font: 700 13px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.iv-signal-band span { font: 600 12px/1 var(--mono); color: var(--muted); }
.iv-signal p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Lesson and problem links. */
.iv-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.iv-link { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--rule); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.iv-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.iv-link-kind { font: 650 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.iv-link[data-kind="problem"] .iv-link-kind { color: var(--good); }
.iv-link-title { font: 600 15px/1.35 var(--sans); }

/* ---------- domain home: question trees ---------- */
.iv-bank, .iv-quick { margin: 8px var(--gutter) 56px; }
.iv-bank-head { margin: 0 0 18px; }
.iv-bank-head p { margin: 8px 0 0; max-width: 70ch; color: var(--ink-2); }
.iv-quick .interview-layout { margin: 0 0 40px; }
.iv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-case); background: var(--card); }
.iv-filters[hidden] { display: none; }
.iv-filter { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.iv-filter > span, .iv-filter legend { padding: 0; font: 650 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.iv-filter select { min-height: 38px; max-width: 100%; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); font: 500 14px var(--sans); }
.iv-filter-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-filter-levels legend { width: 100%; margin-bottom: 6px; }
.iv-level-toggle { min-height: 34px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.iv-level-toggle b { font: 650 12px var(--mono); color: var(--ink); margin-right: 3px; }
.iv-level-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.iv-level-toggle[aria-pressed="true"] b { color: var(--on-accent); }
.iv-filter-count { margin: 0 0 0 auto; align-self: center; color: var(--ink-2); font-size: var(--fs-sm); }
.iv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.iv-card[hidden] { display: none; }
.iv-card > a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border-radius: var(--r-case); border: 1px solid var(--rule); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-case); transition: border-color .15s, transform .15s; }
.iv-card > a:hover { border-color: var(--accent); transform: translateY(-2px); }
.iv-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-card-title { margin: 0; font: 650 var(--fs-lg)/1.2 var(--display); letter-spacing: -.01em; }
.iv-card-prompt { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.iv-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.iv-card-axes { display: inline-flex; gap: 4px; }
.iv-card-axes i { width: 10px; height: 10px; border-radius: 50%; background: var(--axis); }
.iv-card .iv-companies { margin: 0; }
.iv-empty { color: var(--ink-2); }
.iv-linkish { border: 0; background: none; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .iv-tree { padding: 10px 6px 4px; }
  .iv-node-body { padding-right: 0; padding-left: 10px; }
  .iv-practice-comparison:has([data-speech-answer][open]):has(.iv-transcript:not([hidden])) { grid-template-columns: minmax(0,1fr); }
  .iv-filter-count { margin-left: 0; width: 100%; }
}

/* Literal prompt excerpts wrap even long identifiers at phone widths, in every theme. */
.iv-snippet { min-width: 0; max-width: 100%; margin: 18px 0 0; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper-2); color: var(--ink); }
.iv-snippet figcaption { padding: 8px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font: 500 var(--fs-sm)/1.4 var(--mono); }
.iv-snippet pre { min-width: 0; max-width: 100%; margin: 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.iv-snippet code { white-space: inherit; overflow-wrap: inherit; font: 400 13px/1.6 var(--mono); }

/* Interview chrome: small circuit-like trees, using the active theme's existing palette. */
.iv-track-browse { margin: 16px var(--gutter) 32px; }
.iv-track-browse h2 { font: 650 var(--fs-xl)/1.2 var(--display); }
.iv-track-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 10px; list-style: none; padding: 0; }
.iv-track-cards li { min-width: 0; }
.iv-track-cards a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-ctl); color: var(--ink); background: var(--card); text-decoration: none; overflow-wrap: anywhere; }
.iv-track-cards a:hover { border-color: var(--accent); }
.iv-track-cards small { display: block; margin-top: 4px; color: var(--ink-2); }
.iv-track-cards a:focus-visible, .iv-card > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.iv-style-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.iv-card-graphic { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.iv-sparkline { max-width: 60%; color: var(--accent); }
.iv-sparkline path { stroke: var(--rule-strong); stroke-width: 1.2; fill: none; }
.iv-sparkline circle { fill: currentColor; }
.iv-transcript textarea { display: block; resize: vertical; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 130px; padding: 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); font: 400 var(--fs-base)/1.6 var(--sans); }
.iv-self-check label + label { margin-top: 12px; }
.iv-self-check strong { display: block; font-size: var(--fs-sm); }
.iv-listening { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.iv-listening h3 { font: 600 var(--fs-base)/1.4 var(--sans); }
.iv-feedback { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 16px; }
.iv-feedback h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.iv-feedback h4 { margin: 18px 0 6px; }
.iv-feedback ul { padding-left: 20px; }
.iv-verdict { display: inline-block; padding: 5px 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink); font: 650 var(--fs-sm)/1.2 var(--sans); }
.iv-verdict[data-verdict="strong"], .iv-verdict[data-verdict="pass"] { background: var(--good-soft); color: var(--good); }
.iv-verdict[data-verdict="miss"] { background: var(--bad-soft); color: var(--bad); }
@media (prefers-reduced-motion: no-preference) {
  .iv-in-view .iv-rail { transform-origin: top; animation: iv-rail-draw .35s ease-out both; animation-delay: calc(min(var(--iv-order,0),12) * 45ms); }
  .iv-in-view .iv-elbow path { stroke-dasharray: 70; animation: iv-elbow-draw .4s ease-out both; animation-delay: calc(min(var(--iv-order,0),12) * 45ms); }
  .iv-in-view .iv-elbow circle { transform-box: fill-box; transform-origin: center; animation: iv-dot-in .25s ease-out both; animation-delay: calc(min(var(--iv-order,0),12) * 45ms + 140ms); }
  .iv-pitfall.iv-in-view { animation: iv-rise .3s ease-out both; animation-delay: calc(min(var(--iv-order,0),5) * 65ms); }
  .iv-verdict { animation: iv-dot-in .22s ease-out; }
  [data-speech-ring] { transition: stroke-dashoffset .25s linear; }
}
@keyframes iv-rail-draw { from { transform: translateX(-1px) scaleY(0); } to { transform: translateX(-1px) scaleY(1); } }
@keyframes iv-elbow-draw { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 0; } }
@keyframes iv-dot-in { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: scale(1); } }
@keyframes iv-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .iv-page *, .iv-bank *, .iv-track-browse * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .iv-card > a:hover, .iv-link:hover { transform: none; }
}
@media (max-width: 640px) {
  .iv-track-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .iv-track-cards a { align-items: flex-start; padding: 12px 10px; gap: 8px; }
  .iv-track-cards .iv-style-icon { width: 20px; height: 20px; }
  .iv-feedback { font-size: var(--fs-sm); }
  .iv-node > summary { flex-wrap: wrap; }
  .iv-node-label { flex-basis: 140px; }
}

.iv-review-queue { margin: 0 var(--gutter) 56px; }
.iv-qbank-levels { float: right; display: inline-flex; gap: 4px; margin: 0 0 4px 12px; }
.iv-qbank-levels .iv-level { font-size: var(--fs-xs, 12px); }

.iv-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 var(--gutter) 28px; max-width: 760px; }
.iv-search svg { position: absolute; left: 14px; top: 14px; stroke: var(--ink-2); stroke-width: 1.8; pointer-events: none; }
.iv-search input { flex: 1 1 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-size: var(--fs-md, 16px); }
.iv-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
.iv-search-status { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.iv-search-status:empty { display: none; }
.iv-cards > li.iv-search-miss { display: none; }

/* Collapsible Question Bank: track, then topic (owner, 2026-11-09). */
.iv-qbank-tools { display: flex; gap: 8px; margin-top: 12px; }
.iv-qbank-track { margin: 0 0 14px; border: 1px solid var(--rule); border-radius: var(--r-card, 14px); background: var(--card); }
.iv-qbank-track > summary { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; cursor: pointer; list-style: none; }
.iv-qbank-track > summary::-webkit-details-marker { display: none; }
.iv-qbank-track > summary::after { content: '+'; position: absolute; right: 22px; font: 600 22px/1 var(--sans, inherit); color: var(--ink-2); }
.iv-qbank-track { position: relative; }
.iv-qbank-track[open] > summary::after { content: '−'; }
.iv-qbank-track-title { font: 650 var(--fs-xl, 22px)/1.2 var(--display, inherit); color: var(--ink); }
.iv-qbank-track[open] { padding-bottom: 8px; }
.iv-qbank-topic { margin: 0 16px 8px; border-top: 1px solid var(--rule); }
.iv-qbank-topic > summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; cursor: pointer; font-weight: 600; color: var(--ink); }
.iv-qbank-count { flex: 0 0 auto; min-width: 2em; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font: 600 var(--fs-xs, 12px)/1.4 var(--mono, monospace); }
.iv-qbank-topic .interview-question { margin-left: 8px; }

/* Three ways in on the interview home (owner, 2026-11-10): trees are the flagship. */
.iv-modes { margin: 8px var(--gutter) 28px; }
.iv-modes ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.iv-modes li { min-width: 0; }
.iv-modes a { display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-card, 16px); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.iv-modes a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -16px var(--accent); }
.iv-modes a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.iv-mode-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iv-mode-tag { padding: 3px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; font: 600 var(--fs-xs, 12px)/1.4 var(--sans); color: var(--ink-2); white-space: nowrap; }
.iv-modes strong { font: 650 var(--fs-lg)/1.25 var(--display); letter-spacing: -.01em; }
.iv-mode-text { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.iv-mode-cta { margin-top: auto; padding-top: 6px; font: 600 var(--fs-sm)/1.4 var(--sans); color: var(--accent); }
.iv-mode-flagship a { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card) 70%); }
.iv-mode-flagship .iv-mode-tag { border-color: var(--accent); background: var(--accent); color: var(--on-accent, #fff); }
.iv-question-bank { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--rule); }
.iv-bank-head .eyebrow { margin: 0 0 6px; }
/* Send and stop sit under the answer box, where the eye already is. */
.iv-answer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.iv-answer-actions:not(:has(> :not([hidden]))) { display: none; }
.iv-answer-actions .btn { min-height: 44px; }

/* ================= Premium pass (owner, 2026-11-10) =================
   One idea: the question tree is the product, so the hero shows a real one. Depth comes from
   layered glow and soft shadows in the theme's own accent; motion is entry and hover only. */
.iv-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin: clamp(18px, 3vw, 34px) var(--gutter) 28px; padding: clamp(24px, 4.4vw, 56px); border: 1px solid var(--rule); border-radius: 28px; box-shadow: var(--shadow-case);
  background: radial-gradient(720px 400px at 92% -6%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), radial-gradient(560px 340px at -4% 108%, color-mix(in srgb, var(--flow-return, var(--accent)) 12%, transparent), transparent 70%), var(--card); }
.iv-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%); }
.iv-hero-copy { min-width: 0; }
.iv-hero .eyebrow { margin: 0; }
.iv-hero h1 { margin: 10px 0 16px; font: 650 clamp(34px, 4.6vw, 60px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.iv-hero-lead { margin: 0; max-width: 44ch; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.iv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.iv-hero-cta .btn { min-height: 48px; padding-inline: 22px; }
.iv-hero-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.iv-hero-stats div { min-width: 0; }
.iv-hero-stats dd { margin: 0; font: 650 clamp(24px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.iv-hero-stats dt { margin-top: 7px; font-size: var(--fs-xs); color: var(--muted); }

.iv-hero-tree { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 14px 18px 18px; border: 1px solid var(--rule-strong); border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); text-decoration: none;
  box-shadow: 0 50px 90px -54px color-mix(in srgb, var(--accent) 80%, transparent), var(--shadow-pop); transform: perspective(1600px) rotateY(-4deg); transition: transform .6s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.iv-hero-tree:hover, .iv-hero-tree:focus-visible { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px); border-color: var(--accent); }
.iv-hero-tree:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.iv-hero-bar { display: flex; align-items: center; gap: 6px; }
.iv-hero-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.iv-hero-bar b { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.iv-hero-q { padding: 14px 16px; border-radius: 14px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, var(--paper-2)), var(--paper-2) 70%); font: 600 clamp(15px, 1.4vw, 18px)/1.4 var(--display); letter-spacing: -.01em; }
.iv-hero-q small { display: block; margin-bottom: 7px; font: 650 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.iv-hero-q code { font: 550 .9em/1 var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--card); }
.iv-hero-rows { position: relative; display: grid; gap: 8px; padding-left: 20px; }
.iv-hero-rows::before { content: ''; position: absolute; left: 7px; top: -14px; bottom: 21px; width: 1.5px; background: var(--rule-strong); }
.iv-hero-row { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: calc(var(--d) * 22px); padding: 9px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); font-size: 14.5px; opacity: 0; animation: iv-row-in .55s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .14s); }
.iv-hero-row::before { content: ''; position: absolute; right: 100%; top: 50%; width: calc(13px + var(--d) * 22px); height: 1.5px; background: var(--rule-strong); }
.iv-hero-row::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--axis); box-shadow: 0 0 0 4px color-mix(in srgb, var(--axis) 18%, transparent); opacity: 0; pointer-events: none; animation: iv-row-ask 10s var(--ease) infinite; animation-delay: calc(1.4s + var(--i) * 2s); }
.iv-hero-row em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-weight: 550; }
.iv-hero-more { font: 600 13px/1.4 var(--sans); color: var(--accent); }
@keyframes iv-row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes iv-row-ask { 0%, 20%, 100% { opacity: 0; } 3%, 15% { opacity: 1; } }

/* Section heads, search, tracks */
.iv-bank-head h2, .iv-track-browse h2 { font: 650 clamp(24px, 2.8vw, 34px)/1.1 var(--display); letter-spacing: -.025em; }
.iv-search input { min-height: 52px; box-shadow: var(--shadow-case); transition: border-color .2s, box-shadow .2s; }
.iv-search svg { top: 16px; }
.iv-search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-case); }
.iv-track-cards a { border-radius: 16px; padding: 16px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.iv-track-cards a:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
.iv-filters { border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-case); }

/* Entry cards */
.iv-modes a { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 22px 18px; box-shadow: var(--shadow-case); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.iv-modes a::after { content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.iv-modes a:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -32px color-mix(in srgb, var(--accent) 70%, transparent), var(--shadow-case); }
.iv-modes a:hover::after, .iv-mode-flagship a::after { opacity: 1; }
.iv-mode-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.iv-mode-icon .iv-style-icon { width: 24px; height: 24px; }
.iv-mode-cta span { display: inline-block; transition: transform .2s var(--ease); }
.iv-modes a:hover .iv-mode-cta span { transform: translateX(4px); }

/* Question cards */
.iv-cards { gap: 18px; }
.iv-card > a { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.iv-card > a:hover { transform: translateY(-4px); box-shadow: 0 28px 54px -34px color-mix(in srgb, var(--accent) 70%, transparent), var(--shadow-case); }
.iv-card-graphic { min-height: 44px; padding-bottom: 0; border-bottom: 0; }
.iv-card-graphic > .iv-style-icon { box-sizing: content-box; width: 22px; height: 22px; padding: 10px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.iv-sparkline { opacity: .55; transition: opacity .25s; }
.iv-card > a:hover .iv-sparkline { opacity: 1; }
.iv-card-title { font-size: 21px; }

/* Question page: the speaking dock */
.iv-prompt-card { border-radius: 24px; }
.iv-asks { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 650 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.iv-asks span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.iv-speech-controls { padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--paper-2) 72%, transparent); transition: border-color .3s, box-shadow .3s; }
[data-speech-state="running"] > .iv-speech-controls { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 26px 54px -36px var(--accent); }
.iv-speech-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.iv-countdown { width: 72px; height: 72px; font: 650 15px/1 var(--mono); }
.iv-countdown svg { width: 72px; height: 72px; stroke-width: 3.2; stroke-linecap: round; }
[data-speech-state="running"] [data-speech-ring] { filter: drop-shadow(0 0 3px var(--accent)); }
.iv-speech-main { display: grid; gap: 10px; min-width: 0; }
.iv-speech-status { margin: 0; color: var(--ink); }
.iv-speech-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iv-speech-buttons .btn svg { margin-right: 8px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iv-voice { display: none; align-items: center; gap: 3px; height: 28px; margin-left: 6px; }
.iv-voice i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent); }
[data-speech-state="running"] .iv-voice { display: inline-flex; }
[data-speech-state="running"] .iv-voice i { animation: iv-voice 1.1s ease-in-out infinite; }
.iv-voice i:nth-child(3n) { animation-delay: -.2s; } .iv-voice i:nth-child(3n+1) { animation-delay: -.55s; } .iv-voice i:nth-child(4n) { animation-delay: -.8s; } .iv-voice i:nth-child(5n) { animation-delay: -.35s; }
@keyframes iv-voice { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.iv-practice-level { display: grid; gap: 6px; align-content: center; font: 650 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.iv-practice-level select { min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); font: 500 14px var(--sans); letter-spacing: 0; text-transform: none; }
.iv-speech-privacy { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.iv-transcript { padding: 18px 20px; border-radius: 18px; }
.iv-transcript textarea { min-height: 150px; padding: 14px 16px; border-radius: 14px; font-size: 16px; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
.iv-transcript textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.iv-answer-actions .btn { min-height: 46px; padding-inline: 22px; }

@media (max-width: 900px) {
  .iv-hero { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .iv-hero-tree, .iv-hero-tree:hover { transform: none; }
}
@media (max-width: 640px) {
  .iv-speech-actions { grid-template-columns: auto minmax(0, 1fr); }
  .iv-speech-main { display: contents; }
  .iv-speech-status { grid-column: 1 / -1; order: -1; }
  .iv-practice-level { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .iv-hero-stats { gap: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-hero *, .iv-modes *, .iv-practice * { animation: none !important; transition: none !important; }
  .iv-hero-row { opacity: 1; }
  .iv-hero-tree, .iv-hero-tree:hover { transform: none; }
}
