/* RecMark Interviews
   Two surfaces, one system:
   - body.public  — the candidate interview, a pre-recorded studio session in the employer's brand
                    (brand-bluebird / brand-recmark / brand-neutral set the tokens below).
   - body.admin   — RecMark's working screens: navy rail, light ground, dense ruled modules. */

/* ---------- admin tokens (RecMark) ---------- */
:root {
  --ground: #F0F4F7;
  --surface: #FFFFFF;
  --ink: #151B34;
  --ink-2: #34495E;
  --muted: #5F6E86;
  --rule: #D0DDE6;
  --rule-2: #E4ECF1;
  --navy: #151B34;
  --navy-3: #27315A;
  --on-navy: #C9D4E3;
  --orange: #FD5234;
  --orange-deep: #C2361C;
  --link: #1863DC;
  --good: #1D6B45; --good-soft: #E1F1E8;
  --warn: #8A5A00; --warn-soft: #FBF0D9;
  --bad: #B42318;  --bad-soft: #FBE7E5;
  --radius: 6px;
  --head: "Jost", "Inter", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video, svg { max-width: 100%; }
p { margin: 0 0 .75em; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
code { font-size: .88em; padding: .1em .35em; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wrap-any { word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; justify-content: center; }
.num, .clock, .stat b, .ir-stats dd, .ro-len, .strip-label { font-variant-numeric: tabular-nums; }

/* =====================================================================
   ADMIN
   ===================================================================== */
body.admin, body.public.brand-recmark .login, .login { font-family: var(--ui); }
body.admin { background: var(--ground); color: var(--ink); font: 15px/1.5 var(--ui); }
body.admin ::selection { background: #FFD6CC; color: var(--ink); }
body.admin * { scrollbar-color: #A9B8C6 transparent; }
body.admin h1, body.admin h2, body.admin h3, body.admin h4 { font-family: var(--head); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
body.admin h1 { font-size: 1.9rem; letter-spacing: -0.01em; } body.admin h2 { font-size: 1.2rem; } body.admin h3 { font-size: 1.05rem; } body.admin h4 { font-size: .95rem; margin-top: 1.1em; }
body.admin a { color: var(--link); text-underline-offset: 2px; }
body.admin code { background: var(--rule-2); color: var(--ink); }
body.admin :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.topbar { display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 56px; background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 22px; width: auto; }
.brand span { font: 500 .95rem var(--head); color: var(--on-navy); padding-left: 10px; border-left: 1px solid var(--navy-3); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.tabs { display: flex; gap: 2px; flex: 1; align-self: stretch; }
.tab { display: flex; align-items: center; padding: 0 14px; color: var(--on-navy); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
body.admin .tab { color: var(--on-navy); text-decoration: none; }
.tab:hover { color: #fff; }
.tab.on, body.admin .tab.on { color: #fff; border-bottom-color: var(--orange); }
button.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.signout { color: var(--on-navy); } .signout:hover { color: #fff; }
.who { display: flex; align-items: center; gap: 16px; }
.who form { margin: 0; }
body.admin .who-name { color: var(--on-navy); text-decoration: none; font-weight: 500; }
body.admin .who-name:hover, body.admin .who-name.on { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.user-table td, .user-table th { vertical-align: middle; }
.user-table form { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 0 8px; }
body.admin .user-table select { width: auto; padding: 5px 8px; }
.user-table .row-actions { white-space: nowrap; text-align: right; }
.role-note { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.role-note legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.setup-link { display: grid; gap: 8px; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 8px 16px; }
  .tabs { order: 3; flex-basis: 100%; height: 44px; }
  .brand span { display: none; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1, .head h2 { margin: 0 0 4px; }
.head p { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form, .actions p { margin: 0; }
.stack { display: grid; gap: 16px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
.section-title { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--rule); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */

/* a module: white, one ruled edge, no shadow */ /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.card.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.notice { background: var(--rule-2); border-radius: var(--radius); padding: 10px 14px; color: var(--ink-2); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.notice.inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice.ok { background: var(--good-soft); color: var(--good); }
.clone-card { margin-bottom: 4px; }
.clone-form { display: grid; gap: 14px; }
.clone-form h2 { margin: 0 0 4px; }
.clone-form p { margin: 0; }
.clone-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.clone-row label { flex: 1 1 320px; display: grid; gap: 6px; }
.clone-row select { width: 100%; }
.or-rule { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 18px 0; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; border-top: 1px solid var(--rule); } /* taste-skill-ignore: ruled divider, the chosen admin language */
.error-text { color: var(--bad); min-height: 1em; }

body.admin label, .login label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-weight: 500; font-size: .9rem; color: var(--ink); }
body.admin label > input:not([type="checkbox"]):not([type="radio"]), body.admin label > textarea, body.admin label > select, body.admin label > .copy-row, .login label > input { flex-basis: 100%; }
body.admin label > .muted { font-weight: 400; }
label.short { max-width: 320px; }
body.admin input, body.admin textarea, body.admin select, .login input {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 9px 11px; width: 100%; caret-color: var(--orange-deep);
}
body.admin input::placeholder, body.admin textarea::placeholder { color: #75849A; }
body.admin textarea { resize: vertical; }
body.admin input:focus, body.admin textarea:focus, body.admin select:focus, .login input:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
body.admin input[readonly], body.admin textarea[readonly] { background: var(--ground); color: var(--ink-2); }
body.admin label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0; }
body.admin label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--orange-deep); }

body.admin .btn, .login .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 500 .9rem var(--ui); padding: 8px 14px;
  border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; /* taste-skill-ignore: ruled module or form field, the chosen admin language */
  transition: border-color .15s, background-color .15s;
}
body.admin .btn:hover { border-color: var(--ink-2); }
body.admin .btn.primary, .login .btn.primary { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
body.admin .btn.primary:hover, .login .btn.primary:hover { background: #A82D15; border-color: #A82D15; }
body.admin .btn.ghost { background: transparent; }
body.admin .btn.danger { color: var(--bad); border-color: #E7B4AE; background: transparent; }
body.admin .btn.danger:hover { background: var(--bad-soft); }
body.admin .btn.small { padding: 5px 10px; font-size: .84rem; }
body.admin .btn:disabled { opacity: .5; cursor: not-allowed; }
button.icon { display: inline-grid; place-items: center; background: none; border: 1px solid var(--rule); border-radius: var(--radius); width: 32px; height: 32px; cursor: pointer; color: var(--muted); } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
button.icon:hover { color: var(--ink); border-color: var(--ink-2); }
button.icon.danger:hover { color: var(--bad); border-color: var(--bad); }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.pill-muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.state { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.state i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; /* taste-skill-ignore: drawn status ring */ }
.state-completed { color: var(--ink); } .state-completed i { background: var(--navy); box-shadow: none; } /* taste-skill-ignore: drawn status ring / mark, not depth */
.state-started i { background: linear-gradient(90deg, var(--navy) 50%, transparent 50%); /* taste-skill-ignore: half-filled mark = in progress */ }
.state-invited { color: var(--muted); }
.state-expired, .state-purged { color: var(--muted); } .state-expired i, .state-purged i { box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(135deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%); /* taste-skill-ignore: struck mark = closed */ }
.state-d-shortlist { color: var(--orange-deep); font-weight: 600; } .state-d-shortlist i { background: var(--orange-deep); box-shadow: none; } /* taste-skill-ignore: drawn status ring / mark, not depth */
.state-d-hold i { background: linear-gradient(90deg, var(--ink-2) 50%, transparent 50%); /* taste-skill-ignore: half mark = on hold */ }
.state-d-reject { color: var(--muted); }
.empty-cell { color: var(--muted); }
.ai-script { font-size: .74rem; font-weight: 600; color: var(--orange-deep); letter-spacing: .01em; white-space: nowrap; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 16px; } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: #F7FAFB; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #F7FAFB; }
.table .num { text-align: right; }
.table a { color: var(--ink); text-decoration: none; }
.table a:hover { color: var(--link); text-decoration: underline; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 4px; }

/* dashboard: the interview list as dense ruled rows */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.subtabs a { padding: 8px 14px; color: var(--muted) !important; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a.on { color: var(--ink) !important; border-bottom-color: var(--orange); }
.subtabs .count { font-weight: 400; color: var(--muted); margin-left: 4px; }
.interview-list { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.interview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: center; padding: 16px 22px; color: inherit !important; text-decoration: none !important; border-bottom: 1px solid var(--rule-2); position: relative; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.interview-row:last-child { border-bottom: 0; }
.interview-row:hover { background: #F7FAFB; }
.interview-row h2 { margin: 0 0 2px; font-size: 1.15rem; }
.interview-row p { margin: 0; }
.ir-tags { margin-top: 8px !important; display: flex; gap: 6px; flex-wrap: wrap; }
.ir-stats { display: grid; grid-template-columns: repeat(4, 76px); margin: 0; }
.ir-stats div { text-align: right; padding-left: 12px; border-left: 1px solid var(--rule-2); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.ir-stats dt { font-size: .74rem; color: var(--muted); }
.ir-stats dd { margin: 2px 0 0; font: 500 1.35rem var(--head); }
.ir-stats .attn dd { color: var(--orange-deep); }
.ir-last { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.ir-go { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 500; font-size: .875rem; }
.interview-row.needs .ir-go { color: var(--orange-deep); }
@media (max-width: 760px) { .interview-row { grid-template-columns: 1fr; } .ir-stats { grid-template-columns: repeat(4, 1fr); } .ir-stats div { padding: 0 8px; } .ir-stats div:first-child { border-left: 0; padding-left: 0; text-align: left; } .ir-stats dt { font-size: .7rem; } }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 20px; } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.stat { padding: 14px 18px; border-left: 1px solid var(--rule-2); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 500 1.6rem var(--head); }
.stat span { color: var(--muted); font-size: .84rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(4) { border-left: 0; } }

details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2 { display: inline; margin: 0; }
details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details[open] > summary::before { transform: rotate(45deg); }
details[open] > summary { margin-bottom: 14px; }
.added { border-color: #9CCBB2; background: #F6FBF8; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.links code { word-break: break-all; background: var(--surface); }

/* question editor */
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: q; border-top: 1px solid var(--rule); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.q-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); counter-increment: q; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.q-row .q-num::before { content: counter(q); }
.q-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: .84rem; flex: none; }
.q-fields { display: grid; gap: 12px; }
.q-settings { display: flex; gap: 14px; flex-wrap: wrap; }
.q-settings label { font-weight: 400; font-size: .84rem; color: var(--muted); }
.q-settings select { width: auto; padding: 5px 8px; }
body.admin .q-settings label > select { flex-basis: auto; }
.q-actions { display: flex; gap: 4px; }
@media (max-width: 640px) { .q-row { grid-template-columns: 1fr; } .q-actions { justify-content: flex-end; } }

/* presenter videos + GoHighLevel */
.pv-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; }
.pv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--rule-2); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.pv-label { grid-column: 1; grid-row: 1; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-script { grid-column: 1; grid-row: 2; margin: 0; font-size: .9rem; color: var(--ink-2); max-width: 72ch; }
.pv-media { grid-column: 1; grid-row: 3; }
.pv-actions { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pv-thumb { width: 100%; max-width: 160px; max-height: 200px; background: var(--navy); border-radius: var(--radius); display: block; margin-top: 4px; }
@media (max-width: 640px) { .pv-row { grid-template-columns: 1fr; } .pv-actions { grid-column: 1; grid-row: 4; flex-direction: row; align-items: center; flex-wrap: wrap; } }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
#ghl ol.steps li { margin-bottom: 6px; }

/* candidate review: answers in running order, a sticky side panel */
.admin-ro { margin-bottom: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.admin-ro { overflow-x: auto; }
.admin-ro ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); }
.admin-ro .ro-seg a { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 10px 12px; white-space: nowrap; color: var(--ink); text-decoration: none; border-left: 1px solid var(--rule-2); font-size: .84rem; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.admin-ro .ro-seg:first-child a { border-left: 0; }
.admin-ro .ro-seg a:hover { background: #F7FAFB; }
.admin-ro .ro-mark { grid-row: 1 / span 2; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; margin-top: 2px; }
.admin-ro .done .ro-mark { background: var(--good); border-color: var(--good); color: #fff; }
.admin-ro .ro-mark .ic { width: 11px; height: 11px; }
.admin-ro .ro-label { font-weight: 600; }
.admin-ro .ro-len { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.admin-ro .ro-bar { display: block; width: 30px; height: 4px; border-radius: 2px; background: var(--rule-2); position: relative; overflow: hidden; }
.admin-ro .ro-bar::after { content: ""; position: absolute; inset: 0; background: var(--navy-3); transform-origin: left; transform: scaleX(var(--len)); }
.admin-ro .ro-rating { grid-column: 2; display: inline-flex; align-items: center; gap: 2px; color: var(--orange-deep); font-weight: 600; }
.admin-ro .ro-rating .ic { width: 12px; height: 12px; fill: currentColor; }
/* Narrow strips: the length sits under its bar so "1½ min" stays inside its cell. */
@media (max-width: 1000px) { .admin-ro .ro-len { flex-direction: column; align-items: flex-start; gap: 3px; } }

.review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.answers { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.answer { padding: 22px; border-bottom: 1px solid var(--rule); scroll-margin-top: 72px; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.answer:last-child { border-bottom: 0; }
.answer h3 { display: flex; gap: 10px; align-items: flex-start; }
.answer video { width: 100%; max-height: 460px; background: var(--navy); border-radius: var(--radius); display: block; margin: 8px 0; }
.guidance { color: var(--muted); }
.transcript { background: var(--ground); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0 14px; font-size: .95rem; max-width: 75ch; }
.transcript p:last-child { margin: 0; }
.rate { display: grid; gap: 8px; }
.stars { display: flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; color: #B8C4CF; line-height: 0; }
.stars button .ic { width: 22px; height: 22px; }
.stars button.on { color: var(--orange); }
.stars button.on .ic { fill: currentColor; }
.stars button:hover { color: var(--orange-deep); }
.side { position: sticky; top: 72px; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.side > .card { margin: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.side > .card:last-child { border-bottom: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
body.admin .seg label { display: block; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px 4px; font-size: .84rem; cursor: pointer; border-left: 1px solid var(--rule); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: -2px; }
.summary { font-size: .92rem; }
.summary h4 { font-family: var(--head); color: var(--ink); }
.summary ul { padding-left: 1.1em; margin: 0 0 .6em; }
.danger-zone h2 { color: var(--bad); }
@media (max-width: 960px) { .review { grid-template-columns: 1fr; } .side { position: static; } }

/* sign in (shares the RecMark look) */
.login { max-width: 380px; margin: 12vh auto 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; color: var(--ink); display: grid; gap: 16px; } /* taste-skill-ignore: ruled module or form field, the chosen admin language */
.login h1 { font: 500 1.5rem var(--head); margin: 0; color: var(--ink); }
.login-logo { height: 27px; width: auto; }
.login form { display: grid; gap: 14px; }

/* =====================================================================
   CANDIDATE: the studio session, in the employer's brand
   ===================================================================== */
body.public {
  /* Bluebird Care (the default palette shape; other brands override below) */
  --field: #141B4D;      /* Dark Blue: owns the screen */
  --deep: #006980;       /* Dark Teal: the lifted segment, length bars */
  --live: #59BEC9;       /* Teal: the action, filled marks */
  --live-ink: #141B4D;
  --text: #F2EBE7;       /* Mid White */
  --text-2: #C4C6D3;     /* Dark Blue at 25% */
  --text-3: #9C9FB5;     /* Dark Blue between 50% and 25% */
  --line: #4F5479;       /* Dark Blue at 75% */
  --rec: #C8323A;        /* the recording lamp, nothing else */
  --body-font: "Plus Jakarta Sans", Arial, sans-serif;
  --hi-font: "Libre Baskerville", "Times New Roman", serif;
  background: var(--field); color: var(--text);
  font: 500 17px/1.5 var(--body-font);
  min-height: 100vh; min-height: 100dvh; /* taste-skill-ignore: 100vh fallback for older phones; dvh follows */
}
body.public.brand-recmark {
  --field: #151B34; --deep: #27315A; --live: #FD5234; --live-ink: #151B34; --text: #FFFFFF; --text-2: #C9D4E3; --text-3: #93A1BA; --line: #435076;
  --body-font: "Inter", system-ui, sans-serif; --hi-font: "Jost", "Inter", sans-serif;
}
body.public.brand-neutral {
  --field: #1E2430; --deep: #2F3A4C; --live: #8FD0C5; --live-ink: #1E2430; --text: #F4F5F7; --text-2: #C9CED8; --text-3: #9AA3B2; --line: #475164;
  --body-font: "Inter", system-ui, sans-serif; --hi-font: "Source Serif 4", Georgia, serif;
}
body.public ::selection { background: var(--live); color: var(--live-ink); }
body.public :focus-visible { outline: 3px solid var(--live); outline-offset: 3px; border-radius: 6px; }
body.public h1:focus, body.public h2:focus { outline: none; }
body.public a { color: var(--live); text-underline-offset: 3px; }
body.public code { background: var(--deep); color: var(--text); }
body.public * { scrollbar-color: var(--line) transparent; }

body.public main { max-width: 520px; margin: 0 auto; padding: 0 20px 28px; }
@media (min-width: 900px) { body.public main { max-width: 580px; padding-top: 3vh; } }
#app { display: flex; flex-direction: column; gap: 18px; min-height: 100vh; min-height: 100dvh; } /* taste-skill-ignore: 100vh fallback for older phones; dvh follows */
.loading { color: var(--text-2); padding-top: 40vh; text-align: center; }

body.public h1 { font: 700 1.7rem/1.18 var(--body-font); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
body.public h1 em, body.public h2 em { font-family: var(--hi-font); font-style: italic; font-weight: 400; color: var(--live); letter-spacing: 0; }
body.public.brand-recmark h1 em { font-style: normal; font-weight: 500; }
body.public h2 { font: 700 1.05rem/1.3 var(--body-font); margin: 0; }
.meta { color: var(--text-2); font-size: .94rem; margin: 6px 0 0; }
.lede-text, .intro p { color: var(--text-2); }
.intro { margin-top: 12px; }
.intro p:last-child { margin: 0; }
.hint { color: var(--text-3); font-size: .9rem; margin: 0; text-align: center; }
.error-text:empty { display: none; }
body.public .error-text { color: #FFB4B0; font-size: .94rem; margin: 0; }
body.public .notice.error { background: #3A1F3A; color: #FFD9D6; padding: 14px; border-radius: 10px; }

/* the bar: employer's mark, the lamp */
.cand-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-top: 6px; }
.brand-logo { height: 36px; width: auto; }
.brand-name { font: 700 1.05rem var(--body-font); }
.preview-tag { font-size: .82rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--deep); color: var(--text); margin-right: auto; }
.lamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.lamp-light { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background-color .25s, box-shadow .25s; }
.lamp[data-state="standby"] { color: var(--text); }
.lamp[data-state="standby"] .lamp-light { background: var(--live); }
.lamp[data-state="rec"] { background: #C8323A; color: #fff; box-shadow: none; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.lamp[data-state="rec"] .lamp-light { background: #fff; animation: rec 1.6s ease-in-out infinite; }
.lamp[data-state="saving"] .lamp-light { background: var(--live); animation: rec 1s ease-in-out infinite; }
.lamp[data-state="off"] .lamp-light { background: var(--live); }
@keyframes rec { 50% { opacity: .35; } }

/* the monitor: every video lives in one */
.monitor { position: relative; border-radius: 16px; overflow: hidden; background: var(--field); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, .6); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.monitor video { display: block; width: 100%; max-height: 58vh; object-fit: contain; background: var(--field); aspect-ratio: 3 / 4; }
.monitor .live { object-fit: cover; transform: scaleX(-1); }
.monitor.short video { max-height: 36vh; max-height: 36dvh; }
.monitor.fitted { --h: 58vh; width: min(100%, calc(var(--h) * var(--ratio))); margin-inline: auto; }
.monitor.fitted.short { --h: 36dvh; } .monitor.fitted.prompt { --h: 44dvh; } .monitor.fitted.live-monitor { --h: 42dvh; }
.monitor.fitted video { aspect-ratio: var(--ratio); max-height: none; height: auto; object-fit: cover; }
.play-over { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--live); color: var(--live-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); /* taste-skill-ignore: a real floating control over video */ }
.play-over .ic { width: 28px; height: 28px; margin-left: 3px; }
.play-over[hidden] { display: none; }
.play-over:hover { background: color-mix(in srgb, var(--live) 86%, var(--text)); }
.live-monitor video { max-height: 42vh; max-height: 42dvh; }
.monitor.prompt video { max-height: 44vh; max-height: 44dvh; }
.monitor-wrap { margin: 0; display: grid; gap: 8px; }
.monitor-caption { margin: 0; text-align: center; color: var(--text-2); font-size: .86rem; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.monitor-caption b { color: var(--text); font-weight: 700; }
.overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); } /* taste-skill-ignore: scrim over the live camera so the countdown stays readable */
.status { font-weight: 700; font-size: .95rem; }
.clock { font: 700 2.4rem/1 var(--body-font); }
.clock.low { color: #FFD9A8; }

/* the running order */
.running-order { border-top: 1px solid var(--line); } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.ro-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 8px; }
.ro-head span { color: var(--text-3); font-size: .82rem; }
.running-order ol { list-style: none; margin: 0; padding: 0; }
body.public .ro-seg { display: grid; grid-template-columns: 22px 1fr 72px 7.2ch; gap: 12px; align-items: center; padding: 11px 12px; margin: 0 -12px; border-radius: 0; color: var(--text-2); font-size: .95rem; transition: background-color .3s, padding .3s; }
body.public .ro-seg + .ro-seg { box-shadow: 0 -1px 0 color-mix(in srgb, var(--line) 55%, transparent); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .ro-mark { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--live); display: grid; place-items: center; color: var(--live-ink); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .ro-mark .ic { width: 12px; height: 12px; stroke-width: 3; }
body.public .ro-seg.done .ro-mark { background: var(--live); }
body.public .ro-seg.on { background: var(--deep); color: var(--text); font-weight: 700; padding: 14px 12px; box-shadow: none; border-radius: 10px; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .ro-seg.on + .ro-seg { box-shadow: none; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .ro-seg.on .ro-mark { box-shadow: inset 0 0 0 2px var(--text); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .ro-len { color: var(--text-3); font-size: .84rem; font-weight: 500; text-align: right; white-space: nowrap; }
body.public .ro-seg.on .ro-len { color: var(--text); }
body.public .ro-bar { display: block; width: 72px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); position: relative; overflow: hidden; }
body.public .ro-bar::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--live); transform-origin: left; transform: scaleX(var(--len)); }

/* the strip: running order compressed above each question */
.strip { display: grid; gap: 8px; }
.strip-track { display: flex; gap: 4px; align-items: flex-end; height: 14px; }
.strip-seg { height: 6px; border-radius: 3px; background: var(--line); }
.strip-seg.done { background: var(--live); }
.strip-seg.on { height: 14px; background: var(--text); animation: lift .5s cubic-bezier(.16, 1, .3, 1); transform-origin: bottom; }
@keyframes lift { from { transform: scaleY(.43); } }
.strip-label { margin: 0; color: var(--text-2); font-size: .88rem; font-weight: 700; }

/* the question as asked */
.asked { display: grid; gap: 10px; }
.question { font: 700 1.3rem/1.3 var(--body-font); margin: 0; text-wrap: pretty; }
.asked.compact .question { font-size: 1.12rem; }
body.public .guidance { margin: 0; color: var(--text-2); font-size: .95rem; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--deep) 55%, var(--field)); }
body.public .guidance strong { display: block; color: var(--live); font-size: .82rem; margin-bottom: 2px; }
.time-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: color-mix(in srgb, var(--field) 60%, transparent); overflow: hidden; }
.time-bar span { display: block; height: 100%; background: var(--live); transform-origin: left; transform: scaleX(1); transition: transform .2s linear; }

/* lists of points with icons */
.points, .tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.points .ic { color: var(--live); width: 22px; height: 22px; }
.tips li { padding-left: 34px; position: relative; color: var(--text-2); }
.tips li::before { content: ""; position: absolute; left: 8px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

/* privacy + consent */
.privacy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: .93rem; } /* taste-skill-ignore: ruled modules are the direction (admin) / segment rules (studio) */
.privacy summary { font-weight: 700; color: var(--text); }
.privacy summary::before { border-color: var(--live) !important; }
body.public details > summary::before { border-right-color: var(--live); border-bottom-color: var(--live); }
.privacy div { color: var(--text-2); padding-top: 4px; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .94rem; color: var(--text); }
.consent input { appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--live); background: transparent; display: grid; place-items: center; cursor: pointer; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.consent input:checked { background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141B4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* the sound check as a VU meter */
.vu-row { display: grid; gap: 10px; }
.vu-row p { margin: 0; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.vu-row .ic { color: var(--live); }
.best-results { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); } /* taste-skill-ignore: segment rules are the studio direction */
.best-results h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.best-results p { margin: 0; color: var(--text-2); }
.best-results b { color: var(--text); }
.vu { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; height: 22px; }
.vu-seg { border-radius: 2px; background: color-mix(in srgb, var(--line) 60%, transparent); transition: background-color .08s; }
.vu-seg.lit { background: var(--live); }
.vu-seg:nth-child(n+14).lit { background: var(--text); }
.vu.mini { grid-template-columns: repeat(8, 6px); gap: 2px; height: 10px; }
.vu.mini .vu-seg { background: rgba(255, 255, 255, .25); } .vu.mini .vu-seg.lit { background: var(--text); }
.overlay-left { display: grid; gap: 6px; }

/* buttons, docked at the thumb */
.dock { position: sticky; bottom: 0; margin-top: auto; margin-inline: -12px; padding: 14px 12px max(14px, env(safe-area-inset-bottom)); background: var(--field); display: grid; gap: 10px; box-shadow: 0 -1px 0 var(--line); } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
.dock.two { grid-template-columns: 1fr; }
@media (min-width: 420px) { .dock.two:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
body.public .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1.02rem var(--body-font); min-height: 56px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; color: var(--text); background: transparent; box-shadow: inset 0 0 0 2px var(--live); transition: background-color .15s, transform .15s; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .btn:hover { background: color-mix(in srgb, var(--live) 14%, transparent); }
body.public .btn:active { transform: scale(.985); }
body.public .btn.primary { background: var(--live); color: var(--live-ink); box-shadow: none; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .btn.primary:hover { background: color-mix(in srgb, var(--live) 86%, var(--text)); }
body.public .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
body.public .btn.quiet { min-height: 40px; padding: 6px 4px; box-shadow: none; color: var(--text-2); align-self: flex-start; font-weight: 500; } /* taste-skill-ignore: inset ring drawing an outline, or the monitor frame */
body.public .btn.back { margin-bottom: -6px; }

/* upload progress */
.upload { display: none; gap: 6px; }
.upload.on { display: grid; }
.upload-track { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.upload-track span { display: block; height: 100%; background: var(--live); transform-origin: left; transform: scaleX(0); transition: transform .2s; }
.upload-label { margin: 0; font-size: .88rem; color: var(--text-2); text-align: center; }

/* that's a wrap, and the closed pages */
.wrap-up, .closed { display: grid; gap: 12px; justify-items: start; padding-top: 6vh; }
.closed p, .wrap-up p { color: var(--text-2); margin: 0; }
.closed-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--live); color: var(--live-ink); display: grid; place-items: center; }
.closed-mark .ic { width: 28px; height: 28px; stroke-width: 2.5; }

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