/*
 * The interview page, in the identity of diagnosit.com: white ground under soft teal daylight, ink
 * type in Plus Jakarta Sans, the coral square as the only accent, teal for actions. No cards.
 * Tokens and the ray fans are the website's own (site/app/globals.css).
 */
:root {
  --ink: #0a2f36; --ink-2: #4a5f64; --ink-3: #5f7479;
  --primary: #1d5c68; --primary-hover: #174b55; --primary-soft: #eef5f6; --primary-tint: #d9e9ec;
  --teal-300: #86b5bd; --teal-500: #2e7280;
  --accent: #ee5a44; --coral-100: #ffe9e3;
  --line: #d2dddf; --line-soft: #e5edee; --line-strong: #b6c4c7;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100dvh; position: relative; overflow-x: hidden; background: #fff; color: var(--ink); font: 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
[hidden] { display: none !important; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }

/* Daylight: two fans of soft teal rays from above the page, swaying against each other. */
.rays { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, black 0, black 30%, transparent 100%); mask-image: linear-gradient(to bottom, black 0, black 30%, transparent 100%); }
.rays span { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: radial-gradient(130% 100% at 50% 0, black 12%, transparent 80%); mask-image: radial-gradient(130% 100% at 50% 0, black 12%, transparent 80%); }
.rays span::before, .rays span::after { content: ""; position: absolute; inset: -12% -30% auto; height: 135%; transform-origin: 50% 0; }
.rays span::before { animation: sway 26s ease-in-out infinite alternate; background: conic-gradient(from 116deg at 50% 0, transparent 0deg, rgb(46 114 128 / .2) 7deg, transparent 15deg, rgb(134 181 189 / .3) 24deg, transparent 31deg, rgb(46 114 128 / .14) 38deg, transparent 47deg, rgb(134 181 189 / .28) 56deg, transparent 66deg, rgb(46 114 128 / .18) 75deg, transparent 84deg, rgb(134 181 189 / .26) 95deg, transparent 104deg, rgb(46 114 128 / .16) 114deg, transparent 128deg); }
.rays span::after { animation: sway 34s ease-in-out infinite alternate-reverse; background: radial-gradient(34% 26% at 50% 0, #fff, transparent 100%), conic-gradient(from 122deg at 50% 0, transparent 0deg, rgb(134 181 189 / .22) 10deg, transparent 19deg, rgb(46 114 128 / .12) 29deg, transparent 40deg, rgb(134 181 189 / .24) 52deg, transparent 63deg, rgb(46 114 128 / .13) 73deg, transparent 86deg, rgb(134 181 189 / .2) 99deg, transparent 116deg); }
@keyframes sway { from { rotate: -3deg; } to { rotate: 3deg; } }

.top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; }
.top a { display: flex; }
.top img { height: 29px; width: auto; }
.top-note { font-size: 13px; font-weight: 600; color: var(--ink-3); }
main { max-width: 656px; margin: 0 auto; padding: 0 20px 96px; }
.fold { padding-top: clamp(28px, 9vh, 88px); }

/* The coral square marks a label, as on the website. During a call it is the live light. */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow i { flex: none; width: 8px; height: 8px; background: var(--accent); }

h1 { margin: 18px 0 0; font-size: clamp(34px, 6.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.lede { margin: 16px 0 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.choice { margin: 36px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.choice legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 500; transition: border-color .15s, background .15s; }
.choice label:hover span { border-color: var(--line-strong); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:focus-visible + span { outline: 2px solid var(--teal-500); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; margin-top: 20px; padding: 0 22px; border: 0; border-radius: var(--radius); background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--primary-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate .15s; }
.btn:hover svg { translate: 3px 0; }
.btn.ghost { height: 44px; margin-top: 40px; padding: 0 16px; background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--primary-soft); color: var(--ink); border-color: var(--line-strong); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.alert { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--coral-100); color: #8f2d1d; font-size: 14px; font-weight: 500; }

/* The call: what Elif is saying is the page. */
.live { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.clock { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
body[data-status="speaking"] .live i { animation: beat 1s ease-in-out infinite; }
body[data-status="listening"] .live i { background: var(--teal-500); }
body[data-status="thinking"] .live i { background: var(--teal-300); animation: beat .6s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; scale: .7; } }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 24px; align-items: start; margin-top: 22px; }
.cam { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--primary-soft); border: 1px solid var(--line-soft); }
.cam video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: #0a2f36b3; color: #fff; font-size: 12px; font-weight: 600; }
@media (max-width: 560px) { .scene { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; } .cam figcaption { display: none; } }
.caption { margin: 0; min-height: 3.4em; font-size: clamp(24px, 4.6vw, 32px); line-height: 1.28; font-weight: 600; letter-spacing: -.018em; text-wrap: pretty; }
.caption:empty::before { content: "…"; color: var(--line-strong); }
body[data-status="listening"] .caption { color: var(--ink-3); transition: color .4s; }

.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 56px; margin-top: 28px; }
.wave b { flex: 0 1 5px; min-width: 2px; height: 3px; border-radius: 1px; background: var(--line-strong); transition: height .12s ease-out, background .3s; }
body[data-status="listening"] .wave b { background: var(--teal-500); }
body[data-status="speaking"] .wave b { background: var(--accent); }
.hearing { margin: 12px 0 0; min-height: 1.6em; font-size: 15px; color: var(--ink-3); }

/* The record under the call: an editorial list, not chat bubbles. */
.record { margin-top: 64px; }
#log { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
#log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
#log b { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
#log .ai b { color: var(--primary); }
#log span { color: var(--ink); }
.scroll { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-size: 13px; font-weight: 600; color: var(--ink-3); border-top: 1px solid var(--line-soft); }
td { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .rays span::before, .rays span::after, .live i { animation: none !important; } .wave b { transition: none; } }

/* ---------- candidate steps ---------- */
.facts { list-style: none; margin: 28px 0 8px; padding: 0; border-top: 1px solid var(--line-soft); }
.facts li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.facts b { font-weight: 600; }
.facts span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 620px) { .facts li { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-weight: 500; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.check { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
@media (min-width: 620px) { .check { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.cam.big { aspect-ratio: 4 / 3; max-width: 360px; }
.label { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.meter { height: 8px; border-radius: 4px; background: var(--primary-tint); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: var(--primary); transition: width .08s linear; }
.tips { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.tips li { position: relative; padding: 4px 0 4px 18px; }
.tips li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--teal-300); }
.rec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: beat 1.6s ease-in-out infinite; }
.rec .clock { color: inherit; }

/* ---------- admin ---------- */
.wide { max-width: 1040px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; flex: 1 1 200px; }
.field input, .field select { height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; min-width: 0; }
.field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; min-width: 0; resize: vertical; }
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.row .btn { margin-top: 0; }
.btn.small { height: 40px; padding: 0 14px; font-size: 14px; margin-top: 0; }
.btn.danger { background: transparent; color: #b23a26; border: 1px solid #f3c4ba; }
.btn.danger:hover { background: var(--coral-100); }
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); font-size: 14px; }
.linkbox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.list tr[data-token] { cursor: pointer; }
.list tr[data-token]:hover td { background: var(--primary-soft); }
.list td:first-child { font-weight: 600; white-space: normal; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.badge.yes { background: #e7f5ee; color: #1a774f; }
.badge.maybe { background: #fdf4e3; color: #9a6206; }
.badge.no, .badge.incomplete { background: var(--coral-100); color: #8f2d1d; }
.muted { color: var(--ink-3); }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.back:hover { color: var(--ink); }
.headline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.big-score { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-score small { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 28px; }
@media (min-width: 860px) { .two { grid-template-columns: 360px minmax(0, 1fr); } }
.two video { display: block; width: 100%; border-radius: var(--radius); background: var(--ink); aspect-ratio: 4 / 3; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.stills img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--primary-soft); }
.topics { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.topics li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.topics .t-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.pips { display: inline-flex; gap: 3px; align-items: center; }
.pips i { width: 14px; height: 6px; background: var(--primary-tint); }
.pips i.on { background: var(--primary); }
.topics p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.topics q { display: block; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--teal-300); font-size: 14px; color: var(--ink-3); quotes: none; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 600; font-size: 13px; padding-top: 2px; }
.kv dd { margin: 0; }
.summary { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
