/* ProctorKit site. Jade palette from the design system; Instrument Sans for everything, JetBrains Mono for code only. */
:root {
  --surface: #f3f7f5; --surface-raised: #ffffff; --surface-sunken: #e6eeea;
  --line: #d6e2dc; --line-strong: #74897f;
  --ink: #0a1f17; --ink-muted: #46594f;
  --brand: #007a52; --on-brand: #ffffff; --brand-soft: #dcf3ea;
  --clear: #087443; --info: #46594f; --info-soft: #e6eeea;
  --warn: #8f5200; --warn-soft: #ffefd2; --high: #c0271d; --high-soft: #fde4e1; --on-high: #ffffff;
  --focus: #005c3e;
  --shadow-raised: 0 1px 2px rgba(10, 31, 23, 0.06), 0 6px 16px rgba(10, 31, 23, 0.08);
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/27px var(--font-sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; display: block; }
code, pre, kbd { font-family: var(--font-mono); font-size: 14px; }
:not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--surface-sunken); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 23px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.mark__icon { width: 28px; height: 28px; color: var(--brand); flex: none; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--brand); }
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--ink-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot a { color: var(--ink-muted); }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; background: var(--brand); color: var(--on-brand); font: 600 17px/22px var(--font-sans); text-align: center; padding-block: 8px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(0.93); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--surface-raised); filter: none; }
.btn[disabled] { background: var(--surface-sunken); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; filter: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-sans); }
.field textarea { min-height: 96px; resize: vertical; }

/* Answer-sheet bubbles: empty = clear, dot = logged, half = needs review, full = strong evidence */
.bub { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); vertical-align: -3px; }
.bub--info { border-color: var(--info); background: radial-gradient(circle, var(--info) 0 3px, transparent 3.5px); }
.bub--warn { border-color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.bub--high { border-color: var(--high); background: var(--high); }
.bub--clear { border-color: var(--clear); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 8px; border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 22px; white-space: nowrap; }
.chip--high { background: var(--high-soft); color: var(--high); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--info { background: var(--info-soft); color: var(--info); }
.chip--clear { background: var(--brand-soft); color: var(--clear); }
.chip .bub { width: 14px; height: 14px; }

/* Landing */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 12ch; }
.hero__sub { margin-top: 22px; font-size: 20px; line-height: 31px; color: var(--ink-muted); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }

/* The answer sheet: a candidate's run down the questions, with the doubtful ones filled in */
.sheet { background: var(--surface-raised); border-radius: 18px; box-shadow: var(--shadow-raised); padding: 24px 24px 20px; }
.sheet__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sheet__name { font-weight: 700; }

.sheet__rows { list-style: none; padding: 0; }
.sheet__rows li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet__rows li:last-child { border-bottom: 0; }
.sheet__q { font-weight: 600; color: var(--ink-muted); }
.sheet__what { color: var(--ink-muted); }
.sheet__rows li.is-flag .sheet__what { color: var(--ink); font-weight: 600; }
.sheet__frames { display: flex; gap: 8px; margin-top: 6px; grid-column: 2 / 4; }
.sheet__frames span { flex: 1; height: 56px; white-space: nowrap; font-size: 12px; border-radius: 8px; background: var(--surface-sunken); display: grid; place-items: center; font-size: 13px; color: var(--ink-muted); }

.section { padding: 64px 0 0; }
.section h2 { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; font-weight: 700; max-width: 22ch; }
.section__lead { margin-top: 14px; max-width: 40em; color: var(--ink-muted); font-size: 19px; line-height: 29px; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.promises h3 { font-size: 21px; line-height: 28px; font-weight: 700; margin-bottom: 8px; }
.promises p { color: var(--ink-muted); }
.steps { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 0; counter-reset: s; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps strong { display: block; }
.limits { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; max-width: 900px; padding: 0; list-style: none; }
.limits li { display: flex; gap: 12px; align-items: baseline; }
.limits li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); transform: translateY(1px); }
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; max-width: 900px; }
.price__card { background: var(--surface-raised); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-raised); }
.price__card h3 { font-size: 20px; font-weight: 700; }
.price__amount { margin-top: 12px; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
.price__amount small { font-size: 17px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.price__card ul { margin-top: 18px; padding-left: 20px; color: var(--ink-muted); }
.price__card li + li { margin-top: 6px; }
.prompt { position: relative; margin-top: 28px; max-width: 820px; background: var(--ink); color: #e8f4ee; border-radius: 14px; padding: 56px 24px 22px; font: 400 15px/25px var(--font-mono); white-space: pre-wrap; }
.prompt__copy { position: absolute; top: 12px; right: 12px; min-height: 36px; padding: 0 14px; font-size: 14px; background: #1f3a2f; color: #e8f4ee; border-radius: 9px; border: 0; cursor: pointer; font-family: var(--font-sans); font-weight: 600; }
.access { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.access form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface-raised); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-raised); }
.access .field--wide { grid-column: 1 / -1; }
.form-msg { grid-column: 1 / -1; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.form-msg.is-ok { background: var(--brand-soft); color: var(--clear); }
.form-msg.is-err { background: var(--high-soft); color: var(--high); }
.trap { position: absolute; left: -9999px; }

/* Prose pages: docs and privacy */
.prose { max-width: 760px; padding: 56px 0 0; }
.prose h1 { font-size: 44px; line-height: 50px; letter-spacing: -0.025em; }
.prose h2 { margin-top: 48px; font-size: 28px; line-height: 34px; letter-spacing: -0.015em; }
.prose h3 { margin-top: 28px; font-size: 20px; line-height: 28px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose dl { margin-top: 14px; }
.prose li + li { margin-top: 6px; }
.prose pre { background: var(--ink); color: #e8f4ee; border-radius: 12px; padding: 18px 20px; overflow-x: auto; line-height: 23px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.note { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); }

/* Demo quiz */
.quiz { max-width: 720px; padding: 48px 0 0; }
.quiz h1 { font-size: 40px; line-height: 46px; letter-spacing: -0.025em; }
.quiz__try { margin-top: 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.quiz__try li { display: flex; gap: 12px; align-items: baseline; }
.quiz__try li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); transform: translateY(2px); }
.card { margin-top: 28px; background: var(--surface-raised); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-raised); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--ink-muted); }
.qdots { display: flex; gap: 6px; }
.qdots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); }
.qdots i.is-done { background: var(--brand); border-color: var(--brand); }
.qdots i.is-now { border-color: var(--brand); }
.qtext { margin-top: 16px; font-size: 22px; line-height: 31px; font-weight: 600; }
.opts { margin-top: 20px; display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.opt:hover { background: var(--surface); }
.opt input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 2px solid var(--line-strong); }
.opt input:checked { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, transparent 5.5px); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.qfoot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qfree { margin-top: 20px; width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 400 16px/24px var(--font-sans); resize: vertical; }
.wait { display: flex; gap: 16px; align-items: center; }
.wait__dots { display: inline-flex; gap: 6px; }
.wait__dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); animation: fill 1.2s infinite; }
.wait__dots i:nth-child(2) { animation-delay: .2s; } .wait__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes fill { 50% { background: var(--brand); } }
@media (prefers-reduced-motion: reduce) { .wait__dots i { animation: none; background: var(--brand-soft); } }

/* Report */
.rep { padding-top: 40px; }
.rep__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.rep__top h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
.rep__meta { margin-top: 8px; color: var(--ink-muted); font-size: 15px; }
.score { display: flex; align-items: center; gap: 18px; background: var(--surface-raised); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-raised); }
.score__num { font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.03em; }
.score__label { font-size: 15px; line-height: 21px; color: var(--ink-muted); max-width: 15em; }
.score.is-high .score__num { color: var(--high); }
.score.is-warn .score__num { color: var(--warn); }
.score.is-clear .score__num { color: var(--clear); }
.rep__notice { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--info-soft); font-size: 15px; }
.rep__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; margin-top: 36px; align-items: start; }
.rep h2 { font-size: 20px; line-height: 28px; font-weight: 700; }
.summary { list-style: none; padding: 0; margin-top: 12px; }
.summary li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.summary .count { display: block; color: var(--ink-muted); font-size: 14px; }
.qlist { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 14px; }
.qitem { background: var(--surface-raised); border-radius: 16px; box-shadow: var(--shadow-raised); padding: 18px 20px; }
.qitem__head { display: flex; align-items: center; gap: 12px; }
.qitem__head h3 { font-size: 17px; font-weight: 700; }
.qitem__head .chip { margin-left: auto; }
.qevents { list-style: none; padding: 0; margin-top: 10px; }
.qevents li { display: grid; grid-template-columns: 54px 22px 1fr; gap: 8px; padding: 6px 0; font-size: 15px; line-height: 22px; align-items: baseline; }
.qevents time { color: var(--ink-muted); font-size: 14px; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.frame { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-sunken); aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.frame figcaption { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(10, 31, 23, 0.72); color: #fff; font-size: 12px; line-height: 20px; }
.frame.is-flagged { outline: 3px solid var(--high); outline-offset: -3px; }
.more { margin-top: 10px; font-size: 15px; }
.more summary { cursor: pointer; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.more[open] summary::before { transform: rotate(-135deg) translateY(-1px); }
.more summary:hover, .more summary:focus-visible { border-color: var(--brand); }
.more .more__hide, .more[open] .more__show { display: none; }
.more[open] .more__hide { display: inline; }
.clip { margin-top: 12px; max-width: 560px; }
.clip__screen { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-sunken); aspect-ratio: 16 / 9; outline: 3px solid var(--high); outline-offset: -3px; }
.clip__screen img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.clip__time { position: absolute; left: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(10, 31, 23, 0.72); color: #fff; font-size: 13px; line-height: 20px; }
.clip figcaption { display: grid; grid-template-columns: 40px 1fr; gap: 6px 10px; align-items: center; margin-top: 8px; }
.clip__play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.clip__play:focus-visible, .clip__seek:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.clip__seek { width: 100%; accent-color: var(--high); }
.clip__label { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.zoom { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(1, 6, 4, 0.82); cursor: zoom-out; }
.zoom img { max-height: 90vh; border-radius: 10px; }
.share { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--brand-soft); border-radius: 18px; padding: 24px; }
.share canvas { width: 300px; height: auto; border-radius: 10px; box-shadow: var(--shadow-raised); }
.share__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 860px) {
  .hero .wrap, .access, .rep__grid, .rep__top, .share { grid-template-columns: 1fr; }
  .promises, .price, .limits { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .access form { grid-template-columns: 1fr; }
}

/* docs page: an "On this page" list and reference tables that scroll sideways on a phone */
.doc-toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; }
.doc-toc p { margin: 0; font-weight: 600; }
.doc-toc ul { margin-top: 8px; columns: 2; column-gap: 32px; padding-left: 18px; }
.doc-toc li { break-inside: avoid; }
.doc table { display: block; overflow-x: auto; }
.doc td code { white-space: normal; overflow-wrap: anywhere; }
.doc td:first-child code { white-space: nowrap; }
.doc h3 { margin-top: 36px; }
@media (max-width: 640px) { .doc-toc ul { columns: 1; } }
.prose.doc { max-width: 880px; }
.doc pre { overflow-x: auto; }

figcaption { line-height: 1.45; }
.doc p code, .doc li code { overflow-wrap: anywhere; }

/* report: who, the whole session, the reviewer's decision */
.rep__who { margin-top: 4px; color: var(--ink-muted); font-size: 15px; }
.whole { margin-bottom: 32px; }
.whole__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.whole .clip { max-width: none; }
.decide { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.decide > .muted { margin-top: 6px; font-size: 14px; }
.decide__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.decide__btns .btn.is-on[data-v="clear"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.decide__btns .btn.is-on[data-v="concern"] { background: var(--high-soft); border-color: var(--high); color: var(--high); }
.decide__note { display: grid; gap: 4px; margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.decide__note textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.decide__status { margin-top: 8px; font-size: 14px; }
.decide__now { margin-top: 8px; font-weight: 600; }
.decide__now--clear { color: var(--brand); }
.decide__now--concern { color: var(--high); }
.linkbtn { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rep__delete { margin-top: 28px; font-size: 14px; }
.rep__delete .linkbtn { color: var(--high); text-align: left; }
.whole .clip__screen { outline: 1px solid var(--line); }
.whole .clip__seek { accent-color: var(--brand); }

/* report: Video / Photos switch for sessions without AI review */
.viewswitch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.viewswitch button { font: inherit; font-size: 15px; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.viewswitch button + button { border-left: 1px solid var(--line-strong); }
.viewswitch button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.viewswitch button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ---- waiting. One motif everywhere: answer-sheet bubbles filling in turn, as a candidate marks a sheet.
   Skeletons take the shape of what is coming, with the bubbles filling down the column and a soft sweep
   across the text bars. Buttons that are working show three small bubbles. Reduced motion: still shapes only. */
.sk { position: relative; overflow: hidden; background: var(--surface-sunken); border-radius: 6px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: sk-sweep 1.6s ease-in-out infinite; }
@keyframes sk-sweep { to { transform: translateX(100%); } }
.sk-line { height: 12px; }
.sk-line--lg { height: 22px; border-radius: 8px; }
.sk-bub { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); animation: sk-fill 2.4s infinite; }
@keyframes sk-fill { 0%, 15% { background: transparent; border-color: var(--line-strong); } 30%, 60% { background: var(--brand); border-color: var(--brand); } 80%, 100% { background: transparent; border-color: var(--line-strong); } }
.sk-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: 0; }
.sk-row:nth-child(2) .sk-bub { animation-delay: .3s; } .sk-row:nth-child(3) .sk-bub { animation-delay: .6s; }
.sk-row:nth-child(4) .sk-bub { animation-delay: .9s; } .sk-row:nth-child(5) .sk-bub { animation-delay: 1.2s; } .sk-row:nth-child(6) .sk-bub { animation-delay: 1.5s; }
.sk-cols { flex: 1; display: grid; grid-template-columns: 2fr 1.2fr 0.8fr 1fr; gap: 18px; }
.sk-stack { display: grid; gap: 8px; }
.sk-title { display: flex; align-items: center; gap: 14px; }
.sk-caption { font-size: 14px; color: var(--ink-muted); }
.sk-block { border-radius: 10px; }
@media (max-width: 640px) { .sk-cols { grid-template-columns: 1fr 1fr; } .sk-cols > :nth-child(n+3) { display: none; } }

/* a button that is working */
.bdots { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.bdots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; animation: bfill 1.2s infinite; }
.bdots i:nth-child(2) { animation-delay: .2s; } .bdots i:nth-child(3) { animation-delay: .4s; }
@keyframes bfill { 50% { background: currentColor; } }
.btn[aria-busy="true"], .btn[aria-busy="true"][disabled] { cursor: progress; background: var(--surface-sunken); color: var(--ink); border-color: transparent; }
.linkbtn[aria-busy="true"] { cursor: progress; text-decoration: none; }

/* a clip that is still downloading */
.clip__screen.is-loading { outline-color: var(--line); }
.clip__screen.is-loading img { visibility: hidden; }
.clip__screen.is-loading::before { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); animation: sk-sweep 1.6s ease-in-out infinite; }
.clip__wait { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.clip__screen.is-loading .clip__wait { display: grid; }

/* inline note while something finishes in the background */
.inline-wait { display: inline-flex; align-items: center; gap: 10px; }
.inline-wait .bdots { margin-left: 0; color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .sk::after, .clip__screen.is-loading::before { animation: none; display: none; }
  .sk-bub, .bdots i { animation: none; }
  .sk-row:first-child .sk-bub { background: var(--brand-soft); }
  .bdots i { background: currentColor; opacity: .5; }
}
.clip__wait .bdots { margin-left: 0; gap: 6px; color: var(--brand); }
.clip__wait .bdots i { width: 11px; height: 11px; border-width: 2px; }
/* report: share link */
.share { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.share h3 { font-size: 16px; line-height: 24px; }
.share .muted { margin-top: 4px; font-size: 14px; }
.share > button { margin-top: 10px; }
.share__row { display: flex; gap: 8px; margin: 10px 0 8px; }
.share__url { flex: 1; min-width: 0; font: 13px/1.4 'JetBrains Mono', monospace; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-sunken); color: var(--ink); }

/* report: one block per recording inside a question, with the flag's picture beside it */
.qstream { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.qstream h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.qstream h4 .ic { color: var(--brand); width: 16px; height: 16px; flex: none; }
.qstream .qevents { margin-top: 6px; }
.qevents li.has-pic { grid-template-columns: 54px 22px 1fr 132px; align-items: start; }
.evpic { padding: 0; border: 2px solid var(--high); border-radius: 8px; overflow: hidden; background: var(--surface-sunken); cursor: zoom-in; width: 132px; aspect-ratio: 16 / 10; }
.evpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qlist__note { margin: 4px 0 12px; font-size: 14px; }
.qevents time { cursor: help; }
@media (max-width: 600px) { .qevents li.has-pic { grid-template-columns: 48px 22px 1fr; } .evpic { grid-column: 3; width: 100%; max-width: 240px; } }
/* report sidebar: the decision and the share link as two calm cards */
.rep__grid aside .card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.rep__grid aside .card h2 { font-size: 17px; line-height: 1.3; }
.decide__now { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; }
.decide__status { margin-top: 6px; font-size: 14px; }
.decide__note { display: grid; gap: 4px; margin-top: 12px; font-size: 14px; }
.decide__note textarea { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
.decide__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.decide__btns .btn { width: 100%; justify-content: center; padding-inline: 8px; }
.rshare .muted { margin-top: 4px; font-size: 14px; }
.rshare > .btn { margin-top: 12px; }
.rshare__row { display: flex; gap: 8px; margin: 10px 0 8px; }
.rshare__url { flex: 1; min-width: 0; font: 13px/1.4 'JetBrains Mono', monospace; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }

/* dashboard: the account switcher in the header, billing figures, optional extras */
header.top nav { display: flex; align-items: center; gap: 18px; }
.bill { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bill > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-sunken, var(--surface)); display: grid; gap: 2px; }
.bill strong { font-size: 28px; line-height: 1.1; }
.bill span { font-size: 14px; color: var(--ink-muted); }
details.adv > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand); padding: 4px 0; }
details.adv[open] > summary { margin-bottom: 8px; }
.secret__note { flex-basis: 100%; }
@media (max-width: 600px) { .dd--acct .dd__btn { max-width: 160px; } header.top nav { gap: 12px; } }

/* every dropdown: flat, a clear chevron, the same radius as inputs */
select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--ink); background-color: var(--surface-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6f66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 34px 7px 12px; min-height: 38px; cursor: pointer; }
select:hover { border-color: var(--ink-muted); }
select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
select:disabled { opacity: .6; cursor: default; }

/* plan cards: what you get, then the price on its own line */
.kinds .kprice { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-muted); }
.kinds .kprice b { font-size: 17px; color: var(--ink); }

/* account page */
.bill-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bill-head h2 { margin: 0 0 6px; }
.bill-big { font-size: 44px; line-height: 1; font-weight: 700; margin: 0; }
.bill-big span { font-size: 20px; font-weight: 600; color: var(--ink-muted); }
.bill-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.bill-split > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.bill-split__t { margin: 0; }
.bill-split__t b { font-size: 20px; }
.freedots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 3px; max-width: 380px; }
.freedots span { aspect-ratio: 1; border-radius: 3px; background: var(--line); }
.freedots span.on { background: var(--brand); }
.freedots span.half { background: linear-gradient(90deg, var(--brand) 50%, var(--line) 50%); }
.bill-sub { font-size: 15px; margin: 8px 0 0; color: var(--ink-muted); font-weight: 600; }
.btiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btile { background: var(--surface-sunken, #eef4f1); border-radius: 12px; padding: 14px 16px; }
.btile p { margin: 0; }
.btile__big { font-size: 28px; font-weight: 700; line-height: 1.1; }
.btile__lbl { font-weight: 600; }
.btile__sub { color: var(--ink-muted); font-size: 14px; margin-top: 2px !important; }
.howbill { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.howbill__step { flex: 1 1 140px; display: grid; gap: 2px; align-content: center; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; }
.howbill__step b { font-size: 18px; }
.howbill__step span { font-size: 13px; color: var(--ink-muted); }
.howbill__step--price { background: var(--brand-soft); border-color: transparent; }
.howbill__eq { align-self: center; font-size: 20px; color: var(--ink-muted); }
ul.billnotes { margin: 4px 0 0; padding-left: 18px; color: var(--ink-muted); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 640px) { .bill-split, .btiles { grid-template-columns: 1fr; } .howbill__eq { display: none; } }

/* key form: the recommended way, and the plain warning on the page-key choice */
.kinds .ktag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; }
.kinds .kwarn { display: block; margin-top: 8px; font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 4px 0 0; }
dl.facts dt { color: var(--ink-muted); font-size: 14px; padding-top: 2px; }
dl.facts dd { margin: 0; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 2px 0; } dl.facts dd { margin-bottom: 10px; } }

/* report: the decision as two clear choices */
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.verdict { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.verdict svg { width: 22px; height: 22px; }
.verdict small { font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.verdict--clear svg { color: var(--brand); }
.verdict--concern svg { color: var(--high); }
.verdict--clear:hover, .verdict--clear.is-on { border-color: var(--brand); background: var(--brand-soft); }
.verdict--concern:hover, .verdict--concern.is-on { border-color: var(--high); background: var(--high-soft, #fde8e6); }
.verdict.is-on { box-shadow: inset 0 0 0 1px currentColor; }

/* report: a flag's clip, folded under its picture */
details.clipbox { margin-top: 10px; }
details.clipbox > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--surface-raised); }
details.clipbox > summary::-webkit-details-marker { display: none; }
details.clipbox > summary .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
details.clipbox[open] > summary { margin-bottom: 10px; }
.kinds strong .ktag { margin: 0 0 0 8px; vertical-align: 2px; }
details.edit .field.replace { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* keys page: the account's server key, then page keys */
.keysec { margin-top: 28px; }
.keysec__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.keysec__head h2 { margin: 0; font-size: 20px; }
.keysec__head p { margin: 0; }
.keysec__empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.keysec__empty p { margin: 0; }
form > .kwarn { margin: 0; font-size: 14px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; }

/* dropdown: one look on every system */
.dd { position: relative; display: inline-block; }
.dd__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: 280px; padding: 6px 12px 6px 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 40, 30, .06);
  transition: border-color .15s, box-shadow .15s, background .15s; }
.dd__btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface-raised)); }
.dd__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.dd.is-open .dd__btn { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.dd__btn:disabled { opacity: .6; cursor: default; }
.dd__face { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dd__face .dd__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__btn:not(:has(.dd__lead)) { padding-left: 14px; }
.dd__chev { display: inline-flex; color: var(--ink-muted); transition: transform .18s ease; margin-left: auto; }
.dd__chev svg, .dd__tick svg { display: block; }
.dd__chev svg { width: 12px; height: 8px; }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__lead { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: var(--brand-soft); color: var(--brand); }
.dd__list { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 320px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 40, 30, .16), 0 2px 6px rgba(16, 40, 30, .08); outline: none;
  animation: dd-in .14s ease-out; }
.dd--acct .dd__list { left: auto; right: 0; min-width: 240px; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dd__list { animation: none; } .dd__chev { transition: none; } }
.dd__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: var(--ink); font-size: 15px; }
.dd__opt.is-active { background: var(--surface-sunken); }
.dd__opt[aria-selected="true"] .dd__label { font-weight: 700; }
.dd__text { display: grid; min-width: 0; }
.dd__text .dd__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__sub { font-size: 12px; color: var(--ink-muted); }
.dd__tick { margin-left: auto; color: var(--brand); padding-left: 12px; }
.dd__tick svg { width: 16px; height: 16px; }
.dd__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dd__opt--action { color: var(--brand); font-weight: 600; }
.dd__opt--action .dd__lead { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--brand) 50%, transparent); font-size: 16px; }
.dd--small .dd__btn { min-height: 36px; font-size: 14px; border-radius: 10px; }

/* radios: a clean ring with a filled dot */
input[type=radio] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--line-strong, #9fb3aa); border-radius: 50%;
  background: var(--surface-raised); display: inline-grid; place-content: center; cursor: pointer; transition: border-color .15s; }
input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .14s ease-out; }
input[type=radio]:checked { border-color: var(--brand); }
input[type=radio]:checked::before { transform: scale(1); }
input[type=radio]:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
[hidden] { display: none !important; }
header.top { position: relative; z-index: 40; }
.fresh { grid-column: 1 / -1; gap: 8px; padding: 14px; border-radius: 12px; background: var(--brand-soft); }
.fresh__note { margin: 0; font-size: 14px; }

/* Sign in: a button, not one more link */
.top nav a.nav-signin { margin-left: 6px; padding: 7px 16px; border: 1.5px solid var(--brand); border-radius: 999px; color: var(--brand); font-weight: 600; line-height: 1.2; transition: background .15s, color .15s; }
.top nav a.nav-signin:hover { background: var(--brand); color: var(--on-brand); }
@media (max-width: 860px) { .top nav:has(.nav-signin) { display: flex; } .top nav:has(.nav-signin) a:not(.nav-signin) { display: none; } }

/* a recording, opened large: the same player in a dialog, still playing */
dialog.clipzoom { border: 0; padding: 52px 20px 12px; border-radius: 16px; background: var(--surface-raised); width: min(1200px, 94vw); max-height: 94vh; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
dialog.clipzoom::backdrop { background: rgba(8, 20, 15, .72); }
dialog.clipzoom .clip { max-width: none; margin: 0; }
dialog.clipzoom .clip__screen { aspect-ratio: 16 / 9; max-height: calc(94vh - 110px); }
dialog.clipzoom .clip__screen img { cursor: pointer; }
.clipzoom__x { position: absolute; top: 6px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-sunken); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.standing-rec { display: inline-grid; justify-items: end; gap: 4px; }

/* report opened from the dashboard: the dashboard's sections in the header, and where this report sits */
#dashnav a { font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.chip--rec { background: var(--surface-sunken); color: var(--ink); border: 1px dashed var(--line-strong, var(--line)); }

/* report header: labelled facts, and a callout that cannot be missed when AI did not review */
.rep__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; }
.rep__facts div { display: grid; gap: 2px; }
.rep__facts dt { font-size: 12px; color: var(--ink-muted); }
.rep__facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.rep__notice--rec { display: flex; gap: 14px; align-items: flex-start; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-left: 5px solid var(--warn); padding: 16px 18px; }
.rep__notice--rec .ic { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--warn); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.rep__notice--rec p { margin: 0; }
.rep__notice-title { font-weight: 700; font-size: 17px; color: var(--warn); margin-bottom: 4px !important; }

/* review priority: the number, what it means, and where it sits on the scale */
.score { display: grid; gap: 8px; align-items: stretch; min-width: 300px; padding: 16px 20px 14px; }
.score__cap { margin: 0; font-size: 13px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.score__src { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line-strong, var(--line)); color: var(--ink); background: var(--surface-sunken); }
.score__row { display: flex; align-items: baseline; gap: 6px; }
.score__of { font-size: 16px; color: var(--ink-muted); margin-right: 10px; }
.score__row .chip { align-self: center; margin-left: auto; }
.score__bar { position: relative; display: grid; grid-template-columns: 15fr 25fr 60fr; gap: 3px; height: 8px; margin-top: 4px; }
.score__bar i { border-radius: 4px; opacity: .35; }
.score__bar .z1 { background: var(--clear); } .score__bar .z2 { background: var(--warn); } .score__bar .z3 { background: var(--high); }
.score.is-clear .z1, .score.is-warn .z2, .score.is-high .z3 { opacity: 1; }
.score__bar b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--surface-raised); border: 3px solid var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.score__ticks { display: grid; grid-template-columns: 15fr 25fr 60fr; font-size: 11px; color: var(--ink-muted); }
.score__ticks span:nth-child(2) { padding-left: 2px; } .score__ticks span:nth-child(3) { text-align: right; }
.score__ticks span:first-child { white-space: nowrap; }

/* list: Recording only and the browser-flag result as one two-part badge */
.duo { display: inline-flex; flex-direction: column; align-items: stretch; border-radius: 12px; overflow: hidden; font-size: 14px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; }
.duo__rec { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 600; font-size: 12px; padding: 3px 10px; border-bottom: 1px solid var(--line); justify-content: center; }
.duo__ic { width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.7 5.1A11 11 0 0 1 12 5c7 0 10 7 10 7a13 13 0 0 1-1.7 2.7M6.6 6.6A13.5 13.5 0 0 0 2 12s3 7 10 7a9.7 9.7 0 0 0 5.4-1.6M2 2l20 20M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.7 5.1A11 11 0 0 1 12 5c7 0 10 7 10 7a13 13 0 0 1-1.7 2.7M6.6 6.6A13.5 13.5 0 0 0 2 12s3 7 10 7a9.7 9.7 0 0 0 5.4-1.6M2 2l20 20M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.duo__lv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; }
.clipbox--rec .clip__screen { outline: 1px solid var(--line); }

/* line icons */
.ico { display: inline-flex; flex: none; width: 1.05em; height: 1.05em; vertical-align: -0.15em; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* small stats with icons (test cards, keys) */
.tstats { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.tstat { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.tstat .ico { color: var(--ink-muted); opacity: .8; }
.tstat b { color: var(--ink); font-weight: 700; }
a.tstat:hover { color: var(--brand); }
.chip--done { background: var(--surface-sunken); color: var(--ink-muted); gap: 6px; }
.chip--done .ico { color: var(--clear); }

/* key card: labelled rows of tags */
dl.kfacts { grid-column: 1 / -1; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 2px 0 0; align-items: start; }
dl.kfacts dt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); padding-top: 4px; }
dl.kfacts dd { margin: 0; }
.ktags { display: flex; flex-wrap: wrap; gap: 6px; }
.ktag2 { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink); border: 0; font-family: inherit; text-decoration: none; }
.ktag2--link:hover { background: var(--brand-soft); color: var(--brand); }
.ktag2--more { cursor: pointer; background: transparent; border: 1px dashed var(--line-strong, var(--line)); color: var(--ink-muted); }

/* AI-reviewed sessions left: a pill that turns amber when few are left and red when none */
.balpill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); transition: background .15s; }
.balpill b { font-size: 16px; }
.balpill span { color: var(--ink); }
.balpill:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 10%); }
.balpill--low { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.balpill--out { background: var(--high-soft); color: var(--high); border-color: color-mix(in srgb, var(--high) 30%, transparent); }

/* dashboard: refresh the page's data in place */
.refresh { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; font: 600 14px/1 var(--font-sans, inherit); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.refresh:hover { border-color: var(--brand); color: var(--brand); }
.refresh:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.refresh[hidden] { display: none; }
.refresh[aria-busy="true"] { cursor: progress; color: var(--brand); border-color: var(--brand); }
.refresh[aria-busy="true"] svg { animation: pk-spin .7s linear infinite; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .refresh[aria-busy="true"] svg { animation: none; } }
@media (max-width: 600px) { .refresh span { display: none; } .refresh { padding: 0; width: 34px; justify-content: center; } }

/* webhook deliveries: status pills, the request and the answer side by side, the delivery log */
.hpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 7px; border-radius: 999px; font: 600 14px/22px var(--font-sans, inherit); white-space: nowrap; }
.hpill .ico { width: 16px; height: 16px; }
.hpill--ok { background: var(--brand-soft); color: var(--clear); }
.hpill--bad { background: var(--high-soft); color: var(--high); }
.hpill--wait { background: var(--surface-sunken); color: var(--ink-muted); }
.hx { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hx__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hx__event, .hlog__event { font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink); }
.hx__note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 15px; line-height: 22px; }
.hx__note--bad { background: var(--high-soft); color: var(--high); }
.hx__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hx__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hx__side h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.hx__line { margin: 0; font: 400 13px/20px var(--font-mono); overflow-wrap: anywhere; }
.hx__heads { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken); font: 400 12.5px/19px var(--font-mono); overflow-wrap: anywhere; }
.hx__hk { color: var(--ink-muted); }
.hx__meta { margin: 0; }
.hx__box { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hx__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 12px; background: var(--surface-sunken); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.hx__bar .btn { min-height: 28px; padding: 0 10px; font-size: 13px; }
.hx__pre { margin: 0; max-height: 280px; overflow: auto; padding: 10px 12px; font-size: 12.5px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); }
.hx__pre--empty { color: var(--ink-muted); font-style: italic; }
.hlog { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.hlog[aria-busy="true"], .hlog:has(> .hlog__empty) { padding: 14px 16px; }
.hlog__empty { margin: 0; }
.hlog__row + .hlog__row { border-top: 1px solid var(--line); }
.hlog__row > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.hlog__row > summary::-webkit-details-marker { display: none; }
.hlog__row > summary::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.hlog__row[open] > summary::after { transform: rotate(45deg); }
.hlog__row > summary:hover { background: var(--surface-sunken); }
.hlog__row > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.hlog__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.hlog__state { font-size: 13px; color: var(--warn); white-space: nowrap; }
.hlog__when { margin-left: auto; font-size: 14px; white-space: nowrap; }
.hlog__body { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 14px; }
.hlog__body .hx { border: 0; padding: 0; }
@media (max-width: 760px) { .hx__cols { grid-template-columns: minmax(0, 1fr); } .hlog__state { display: none; } }

/* buying sessions */
.bill-mix { margin: 2px 0 0; }
.buy { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-sunken); }
.buy[hidden] { display: none; }
.buy__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.buy__packs { margin: 0; padding: 0; border: 0; min-width: 0; }
.buy__packs legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pack:hover { border-color: var(--brand); }
.pack--on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pack__radio { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; margin: 0; appearance: none; border: 2px solid var(--line-strong, var(--ink-muted)); border-radius: 50%; background: var(--surface); }
.pack__radio { display: grid; place-items: center; }
.pack__radio:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pack__n { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.pack__n--sm { font-size: 16px; line-height: 24px; padding-right: 24px; }
.pack__l { font-size: 14px; color: var(--ink-muted); }
.pack__p { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pack--other { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding-right: 44px; }
.pack--other .pack__n { padding-right: 0; white-space: nowrap; }
.pack--other .pack__radio { top: 50%; transform: translateY(-50%); }
.pack__qty { flex: 1; min-width: 0; max-width: 220px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-sans); -moz-appearance: textfield; }
.pack__qty::-webkit-outer-spin-button, .pack__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pack__qty::placeholder { color: var(--ink-muted); }
.pack__qty:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.sum { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sum h3 { margin: 0; font-size: 16px; }
.sum__rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-size: 15px; }
.sum__rows dd { padding-left: 16px; }
.sum__rows dt { color: var(--ink-muted); }
.sum__rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum__rows .sum__total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 18px; }
.sum__hint { grid-column: 1 / -1; }
.sum__pay { width: 100%; justify-content: center; }
.sum__notes { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.sum__notes li { display: flex; align-items: center; gap: 8px; }
.sum__notes .ico { width: 16px; height: 16px; flex: none; color: var(--brand); }
.buys { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.buys td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.buys td:last-child { padding-right: 0; }
.buys__amt { text-align: right; font-variant-numeric: tabular-nums; }
.buys__inv { text-align: right; padding-left: 12px !important; }
@media (max-width: 760px) { .buy__grid { grid-template-columns: minmax(0, 1fr); } .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pack__n { font-size: 22px; } }
.paynote{ display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-sunken); font-weight: 600; }
.paynote .ico { width: 20px; height: 20px; flex: none; }
.paynote--ok { background: var(--brand-soft); color: var(--clear); }
.paynote--bad { background: var(--high-soft); color: var(--high); }
.paynote__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: pk-spin .8s linear infinite; flex: none; }
@media (prefers-reduced-motion: reduce) { .paynote__spin { animation: none; } }
/* where the buyer pays from: a two-way switch, the currency on each side */
.cur { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.cur__lbl { font-weight: 600; color: var(--ink); }
.cur__track { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid var(--line); }
.cur__opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; cursor: pointer; color: var(--ink-muted); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.cur__opt:hover { color: var(--ink); }
.cur__opt--on { background: var(--surface-raised, #fff); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1.5px var(--brand); }
.cur__radio { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; border: 0; }
.cur__opt:has(.cur__radio:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.cur__sym { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink-muted); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.cur__opt--on .cur__sym { background: var(--brand); color: var(--on-brand); }
.sum__muted { color: var(--ink-muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cur__opt, .cur__sym { transition: none; } }
.sum__status { margin: -4px 0 0; font-size: 13px; color: var(--ink-muted); min-height: 0; }
.sum__status:empty { display: none; }
.buy--busy .packs, .buy--busy .cur__track { opacity: .55; pointer-events: none; }
/* the Pay button while the payment page is prepared: stays green, one line, white dots */
.sum__pay[aria-busy="true"], .sum__pay[aria-busy="true"][disabled] { background: var(--brand); color: var(--on-brand); white-space: nowrap; gap: 10px; }
.sum__status { text-align: center; }
.pack__c { font-size: 12px; line-height: 1.3; color: var(--ink-muted); white-space: nowrap; }
.sum__covers { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--ink-muted); margin-top: -2px; }
.pack__c:empty { display: none; }
.howbill--top { margin-top: -4px; }
.buy__unit { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
/* what a session is: one quiet line under the balance */
.sessdef { display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken, #f1f5f3); color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.sessdef b { color: var(--ink); font-weight: 600; }
.sessdef .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
/* the buy panel's own header, with its close button */
.buy__head { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 12px; }
.buy__head h3 { margin: 0; font-size: 18px; }
.buy__close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-muted); cursor: pointer; }
.buy__close:hover { color: var(--ink); border-color: var(--ink-muted); }
.buy__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.buy__close .ico { width: 18px; height: 18px; }

/* concierge setup offer (demo report, first-key screen) */
.concierge { margin-top: 14px; font-size: 15px; color: var(--ink-muted); }
.concierge a { color: var(--brand); font-weight: 600; }
