/* Page-area styles on top of console.css (design.md).
   Owner: Agent 3: the schedule form and detail, the interview report page, and the sign-in pages.
   Only this area's own patterns belong here; shared components live in console.css.
   Prefixes: sx- (shared by these pages), sch- (schedule form and detail),
   rep- (interview report). Colours come from the console tokens only, so
   every rule follows the theme. */

/* ============================================================
   Shared by the schedule and report pages
   ============================================================ */

/* A skeleton card head: a title line over a description line. */
.sx-skel-head{display:flex;flex-direction:column;gap:9px;padding-top:3px;min-width:0}

/* Fact tiles: the KPI box (design.md 4.5) holding a short fact instead of a
   count -- a name, a date, a mode. Same box, label and icon tile; the value is
   body-sized so a sentence fits. */
.sx-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sx-facts.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.sx-facts.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sx-fact{display:flex;flex-direction:column;gap:8px;min-width:0;padding:13px 14px 14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.sx-fact .kpi-top{min-height:30px}
.sx-fact-value{min-width:0;margin:0;color:var(--text);font-size:15.5px;font-weight:600;line-height:1.35;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.sx-fact-sub{min-width:0;margin:-4px 0 0;color:var(--text-3);font-size:12.5px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-fact .badge{align-self:flex-start}

/* An icon tile beside a title (the KPI icon tile, design.md 4.5). */
.sx-ico{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--tone-soft,var(--neutral-soft));color:var(--tone,var(--neutral))}
.sx-ico .i{width:16px;height:16px}
.sx-ico.lg{width:40px;height:40px;border-radius:12px}
.sx-ico.lg .i{width:19px;height:19px}
.sx-title-row{display:flex;align-items:center;gap:10px;min-width:0}
.sx-title-row .card-title{min-width:0}

/* Credits used (credits-used.js, organisation only): what one interview cost.
   The headline is the net credits in the KPI count's style; the facts under the
   rule say how it was worked out; a note explains any refund or wait. */
.sx-credits{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.sx-credits-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;min-width:0}
.sx-credits-text{display:flex;flex:1 1 auto;flex-direction:column;gap:4px;min-width:0}
.sx-credits-label{color:var(--text-2);font-size:13px;font-weight:500}
.sx-credits-value{margin:0;color:var(--text);font-size:22px;font-weight:600;line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sx-credits-value small{color:var(--text-3);font-size:13px;font-weight:500;letter-spacing:0}
.sx-credits-value.is-text{font-size:15.5px;letter-spacing:-.01em}
.sx-credits-head .badge{flex:none}
.sx-credits-facts{display:flex;flex-wrap:wrap;gap:10px 32px;margin:0;padding-top:12px;border-top:1px solid var(--line)}
.sx-credits-facts > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.sx-credits-facts dt{color:var(--text-3);font-size:12.5px}
.sx-credits-facts dd{margin:0;color:var(--text);font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.sx-credits-note{margin:0;color:var(--text-2);font-size:13px;line-height:1.5}

/* ============================================================
   Create schedule (schedule_form.html)
   ============================================================ */
/* Not a .field: that would give the picker's search box the form-input look. */
.sch-cands{display:flex;flex-direction:column;gap:7px;min-width:0}
.sch-cand-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sch-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:32px}
.sch-chips-empty{color:var(--text-3);font-size:13px}
.sch-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:32px;padding:0 9px 0 12px;border:1px solid var(--brand-line);border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:13px;font-weight:500;cursor:pointer;transition:border-color .15s var(--ease),transform .25s var(--spring)}
.sch-chip:hover{border-color:var(--brand)}
.sch-chip:active{transform:scale(.97)}
.sch-chip .i{width:14px;height:14px;stroke-width:2}
.sch-chip-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.sch-picker{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);transition:border-color .15s var(--ease)}
.sch-picker:has(#candidateOptions[aria-invalid="true"]){border-color:var(--danger)}
.sch-picker-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.sch-picker-bar .check-row{font-weight:500}
.sch-picker-search{flex:0 1 320px}
.sch-picker-sub{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
/* The candidate list keeps its layout utilities (flex wrap, bounded height);
   this adds the room its cards' focus rings need. */
.sch-options{padding:2px}
.sch-opt{display:flex;align-items:center;gap:10px;flex:0 1 auto;min-width:12rem;max-width:20rem;padding:8px 14px 8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer;transition:background .15s var(--ease),border-color .15s var(--ease)}
.sch-opt:hover{background:var(--hover);border-color:var(--line-2)}
.sch-opt .avatar{flex:none}
.sch-opt-text{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.sch-opt-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:14px;font-weight:500}
.sch-opt-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-3);font-size:12.5px}
.sch-opt-skel{display:inline-block;height:52px;border-radius:14px}
.sch-options-empty{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:22px 16px;border:1px dashed var(--line-2);border-radius:14px;color:var(--text-2);font-size:13.5px;text-align:center}
.sch-options-empty .i{width:16px;height:16px;color:var(--text-3)}

.sch-fieldset{margin:0;padding:0;min-width:0}
.sch-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sch-types > .note{grid-column:1/-1}
.sch-type{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px 16px;border:1px solid var(--line-2);border-radius:16px;background:var(--surface);cursor:pointer;transition:border-color .15s var(--ease),background .15s var(--ease),box-shadow .15s var(--ease)}
.sch-type:hover{background:var(--hover)}
.sch-type:has(.rb:checked){border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.sch-type-head{display:flex;align-items:center;gap:10px}
.sch-type-name{color:var(--text);font-size:14px;font-weight:600;line-height:1.35}
.sch-type-tags{display:flex;flex-wrap:wrap;gap:6px}
.sch-type-rate{display:inline-flex;align-items:center;gap:7px;color:var(--text-2);font-size:13px;font-variant-numeric:tabular-nums}
.sch-type-rate .i{width:15px;height:15px;color:var(--text-3)}
.sch-type-rate b{color:var(--text);font-weight:600}
.sch-type-skel{display:block;height:112px;border-radius:16px}

.sch-field-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.sch-orch{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px;border-radius:14px;background:var(--sunk);color:var(--text-2);font-size:13.5px;line-height:1.5}
.sch-orch-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--text)}
.sch-orch-line{margin:0}

.sch-gen{margin:14px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}
.sch-gen-item{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,2fr) auto;align-items:center;gap:12px 24px;padding:14px 22px;border-bottom:1px solid var(--line)}
.sch-gen-item:last-child{border-bottom:0}
.sch-gen-who{min-width:0}
.sch-gen-facts{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
.sch-gen-facts > div{display:flex;align-items:baseline;gap:12px;min-width:0}
.sch-gen-facts dt{flex:none;width:68px;color:var(--text-3);font-size:13px}
.sch-gen-facts dd{min-width:0;margin:0;color:var(--text)}
.sch-gen-link{overflow-wrap:anywhere}
.sch-gen-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.sch-gen-empty{padding:28px 22px;color:var(--text-2);text-align:center}

/* ============================================================
   Schedule detail (schedule_detail.html)
   ============================================================ */
.sch-hero{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px}
.sch-hero-who{display:flex;align-items:center;gap:16px;min-width:0}
.sch-hero-text{display:flex;flex-direction:column;gap:5px;min-width:0}
.sch-hero-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0}
.sch-hero-title h2{margin:0;color:var(--text);font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.018em;overflow-wrap:anywhere}
.sch-hero-sub{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;color:var(--text-2)}
.sch-hero-actions{display:flex;flex-wrap:wrap;gap:8px}

.sch-access{display:flex;flex-direction:column;gap:7px;min-width:0}
.sch-passcode{display:flex;align-items:center;gap:6px;min-height:48px;padding:0 6px 0 16px;border-radius:12px;background:var(--sunk)}
.sch-passcode-code{flex:1;min-width:0;color:var(--text);font-size:20px;font-weight:600;line-height:1;letter-spacing:.14em;font-variant-numeric:tabular-nums}
.sch-linkbox{min-height:48px;transition:box-shadow .15s var(--ease)}
.sch-linkbox input{flex:1;min-width:0;height:40px;padding:0;border:0;background:transparent;color:var(--text-2);font-size:13px;outline:none;text-overflow:ellipsis}
.sch-linkbox:focus-within{box-shadow:inset 0 0 0 1px var(--brand)}
.btn.is-copied .i,.icon-btn.is-copied,.icon-btn.is-copied .i{color:var(--ok)}
.sch-email-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:12px 14px 12px 12px;border:1px solid var(--line);border-radius:14px}
.sch-email-status{display:flex;align-items:center;gap:12px;min-width:0}
.sch-email-text{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.sch-email-label{color:var(--text);font-weight:500}

.sch-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.sch-step{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 16px 15px;border:1px solid var(--line);border-radius:16px}
.sch-step-n{display:grid;place-items:center;width:28px;height:28px;margin-bottom:6px;border-radius:50%;background:var(--sunk);color:var(--text-2);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.sch-step-n .i{width:15px;height:15px;stroke-width:2.2}
.sch-step.is-done .sch-step-n{background:var(--ok-soft);color:var(--ok)}
.sch-step-label{color:var(--text-2);font-size:13px;font-weight:500}
.sch-step-value{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sch-step-sub{color:var(--text-3);font-size:12.5px;overflow-wrap:anywhere}

.sch-grace{align-items:center;flex-wrap:wrap}
.sch-grace-text{flex:1 1 280px}
.sch-grace-text b{display:block;color:var(--text);font-weight:600}
.sch-grace-text p{margin:2px 0 0}

.sch-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sch-tile{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:16px}
.sch-tile .sx-ico{margin-bottom:5px}
.sch-tile-label{color:var(--text-2);font-size:13px;font-weight:500}
.sch-tile-value{color:var(--text);font-weight:600;overflow-wrap:anywhere}
.sch-tile-desc{margin:0;color:var(--text-2);font-size:13px;line-height:1.5}
.sch-tile-desc strong{color:var(--text);font-weight:600}

/* The credits panel already sits in its own card here: no second frame. */
.sch-credits > .sx-credits{padding:0;border:0;border-radius:0;background:none}

.sch-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding-top:14px;padding-bottom:14px}
.sch-meta-list{display:flex;flex-wrap:wrap;gap:6px 28px;margin:0}
.sch-meta-list > div{display:flex;align-items:baseline;gap:8px;min-width:0}
.sch-meta-list dt{color:var(--text-3);font-size:13px}
.sch-meta-list dd{margin:0;color:var(--text);font-weight:500;font-variant-numeric:tabular-nums}

/* ============================================================
   Interview report (report_detail.html)
   ============================================================ */
.rep-head-body{display:flex;flex-direction:column;gap:18px}
.rep-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px}
.rep-head-who{display:flex;align-items:center;gap:14px;min-width:0}
.rep-head-text{min-width:0}
.rep-title{margin:0;color:var(--text);font-size:20px;font-weight:600;line-height:1.3;letter-spacing:-.018em;overflow-wrap:anywhere}
.rep-sub{margin:3px 0 0;color:var(--text-2);font-size:13.5px;line-height:1.45}
.rep-head-actions{display:flex;flex-wrap:wrap;gap:8px}
.rep-tabs{align-self:flex-start}
.rep-tabs .tab .i{width:16px;height:16px}
.rep-panel{min-width:0}

.rep-share{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px}
.rep-share-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 16px}
.rep-share-title{margin:0;color:var(--text);font-size:14.5px;font-weight:600}
.rep-share-desc{margin:2px 0 0;color:var(--text-2);font-size:13px}
/* One grid for every link row (each row's cells join it), so the status,
   link, expiry and action line up in columns. */
/* Any number of links can be made: about five rows show, the rest scroll inside
   the card (the padding keeps focus rings clear of the scroll edge). */
.rep-links{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px 12px;max-height:284px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 6px 2px 2px;margin:-2px -6px -2px -2px}
.rep-link{display:contents}
.rep-link > .badge{justify-self:start}
.rep-links > .note,.rep-links-empty{grid-column:1/-1}
.rep-link-url{min-width:0}
.rep-link-exp{color:var(--text-3);font-size:12.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-links-empty{display:flex;align-items:center;gap:8px;margin:0;color:var(--text-2);font-size:13px}
.rep-links-empty .i{width:16px;height:16px;color:var(--text-3)}

.rep-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rep-span-2{grid-column:span 2}
.rep-card-label{display:flex;align-items:center;gap:10px;min-width:0;color:var(--text-2);font-size:13px;font-weight:500}
.rep-verdict{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.rep-verdict-value{margin:2px 0 0;color:var(--text);font-size:22px;font-weight:600;line-height:1.25;letter-spacing:-.02em}
.rep-score-badge{font-variant-numeric:tabular-nums}
.rep-hint{margin:0;color:var(--text-3);font-size:12.5px}
.rep-text{margin:12px 0 0;color:var(--text);line-height:1.6;overflow-wrap:anywhere}
.card-body > .rep-text:first-child{margin-top:0}
.sx-fact .meter{height:6px;margin-top:2px}

.rep-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rep-metric{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 16px;border-radius:14px;background:var(--sunk)}
.rep-metric-label{color:var(--text-2);font-size:13px;font-weight:500}
.rep-metric-value{color:var(--text);font-size:22px;font-weight:600;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rep-metric-value small{color:var(--text-3);font-size:13px;font-weight:500;letter-spacing:0}
.rep-metric-value.is-text{color:var(--tone,var(--text));font-size:15.5px;letter-spacing:-.01em}
.rep-metric-hint{margin:0;color:var(--text-3);font-size:12.5px;line-height:1.45}

.rep-qa-list{display:flex;flex-direction:column;margin:0;list-style:none}
.rep-qa{padding:14px 0;border-bottom:1px solid var(--line)}
.rep-qa:first-child{padding-top:0}
.rep-qa:last-child{padding-bottom:0;border-bottom:0}
.rep-qa-q{margin:0;color:var(--text);font-weight:600;line-height:1.45}
.rep-qa-n{color:var(--brand)}
.rep-qa-a{margin:6px 0 0;color:var(--text);line-height:1.6}
.rep-qa-x{margin:4px 0 0;color:var(--text-2);line-height:1.6}
.rep-qa-key{color:var(--text-3);font-weight:500}
.rep-empty-line{color:var(--text-2);font-size:13.5px;list-style:none}

.rep-list{display:flex;flex-direction:column;gap:10px;margin:0;list-style:none}
.rep-item{display:flex;align-items:baseline;gap:10px;color:var(--text);line-height:1.55}
.rep-item .dot{position:relative;top:-2px}
.rep-skills{display:flex;flex-direction:column;gap:16px;margin:0;list-style:none}
.rep-skill{display:flex;flex-direction:column;gap:7px}
.rep-skill-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.rep-skill-name{color:var(--text);font-weight:500}
.rep-skill-score{color:var(--text-2);font-size:13px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-skill .meter{height:6px}
.rep-skill-note{margin:0;color:var(--text-2);font-size:13.5px;line-height:1.55}

/* A note with a bold lead and a paragraph (connection quality, guidance). */
.rep-note b{display:block}
.rep-note p{margin:2px 0 0;color:var(--text-2);line-height:1.55}
.rep-note p strong{color:var(--text)}

.rep-section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:14px}
.rep-scoring{position:relative}
.rep-scoring-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(340px,calc(100vw - 32px));max-height:min(70vh,460px);overflow-y:auto;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--pop);box-shadow:var(--shadow-pop);text-align:left;animation:pop-in .18s var(--ease)}
.rep-pop-title{margin:0;color:var(--text);font-size:14px;font-weight:600}
.rep-pop-text{margin:6px 0 0;color:var(--text-2);font-size:13px;line-height:1.5}
.rep-pop-label{margin:14px 0 8px;color:var(--text-2);font-size:12.5px;font-weight:500}
.rep-weights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.rep-weight{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:9px;color:var(--text-2);font-size:12.5px}
.rep-weight b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.rep-levels{display:flex;flex-wrap:wrap;gap:6px}

.rep-risk .badge{align-self:flex-start}
.rep-big{margin:0;color:var(--tone,var(--text));font-size:26px;font-weight:600;line-height:1.05;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.rep-big small{color:var(--text-3);font-size:13px;font-weight:500;letter-spacing:0}
.rep-big.is-text{font-size:20px}
.rep-chips{display:flex;flex-wrap:wrap;gap:6px}
.rep-wrap{white-space:normal}
.rep-detections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rep-detection{display:flex;flex-direction:column;gap:12px;padding:16px}
.rep-detection-top{display:flex;align-items:flex-start;gap:12px}
.rep-detection-text{flex:1;min-width:0}
.rep-detection-text h3{margin:0;color:var(--text);font-size:14.5px;font-weight:600}
.rep-detection-text p{margin:3px 0 0;color:var(--text-2);font-size:13px;line-height:1.5}
.rep-detection-when{display:flex;flex:none;flex-direction:column;align-items:flex-end;text-align:right}
.rep-detection-when span{color:var(--text-3);font-size:12px}
.rep-detection-when b{color:var(--text);font-size:13px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}

.rep-rec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.rep-rec-title{display:flex;align-items:center;gap:8px;margin:0;color:var(--text);font-size:15.5px;font-weight:600}
.rep-rec-title .i{width:17px;height:17px;color:var(--text-3)}
.rep-player-skel{display:block;width:100%;max-width:calc(min(62vh,40rem) * 16 / 9);margin-inline:auto;aspect-ratio:16/9;border-radius:16px}
.rep-empty{padding:48px 20px}
.rep-empty-boxed{border:1px dashed var(--line-2);border-radius:16px}
.rep-empty .spinner{width:20px;height:20px}
.rep-dl{display:inline-flex;align-items:center;gap:8px}

/* Transcript: chat bubbles (design.md 4.24). Interviewer on the left, candidate on the
   right, each bubble with a tail at its top outer corner and the time tucked into its
   bottom-right corner. A run of turns by the same speaker keeps the tail on the first. */
.rep-transcript{display:flex;flex-direction:column;gap:10px}
.rep-turn{display:flex;justify-content:flex-start;padding:0 10px}
.rep-turn.is-candidate{justify-content:flex-end}
.rep-turn.is-candidate + .rep-turn.is-candidate,.rep-turn:not(.is-candidate) + .rep-turn:not(.is-candidate){margin-top:-6px}
.rep-bubble{position:relative;max-width:min(720px,85%);padding:8px 12px 6px;border-radius:0 12px 12px 12px;background:var(--sunk);box-shadow:0 1px .5px rgba(11,20,26,.1)}
.rep-bubble::before{content:"";position:absolute;top:0;left:-8px;width:8px;height:13px;background:inherit;clip-path:polygon(100% 0,0 0,100% 100%)}
.rep-turn.is-candidate .rep-bubble{border-radius:12px 0 12px 12px;background:var(--brand-soft)}
.rep-turn.is-candidate .rep-bubble::before{left:auto;right:-8px;clip-path:polygon(0 0,100% 0,0 100%)}
.rep-turn:not(.is-candidate) + .rep-turn:not(.is-candidate) .rep-bubble{border-top-left-radius:12px}
.rep-turn.is-candidate + .rep-turn.is-candidate .rep-bubble{border-top-right-radius:12px}
.rep-turn:not(.is-candidate) + .rep-turn:not(.is-candidate) .rep-bubble::before,.rep-turn.is-candidate + .rep-turn.is-candidate .rep-bubble::before{display:none}
.rep-bubble-skel{display:flex;flex-direction:column;gap:9px;width:min(520px,80%);background:transparent;border:1px solid var(--line);box-shadow:none}
.rep-bubble-skel::before{display:none}
.rep-turn.is-candidate .rep-bubble-skel{background:transparent}
.rep-speaker{display:flex;align-items:center;gap:6px;color:var(--text-2);font-size:12.5px;font-weight:500}
.rep-speaker .i{width:14px;height:14px}
.rep-turn.is-candidate .rep-speaker{color:var(--brand)}
.rep-said{margin:3px 0 0;color:var(--text);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.rep-meta{display:flex;justify-content:flex-end;margin:2px -2px 0 16px;color:var(--text-3);font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}

/* The review player (shared/css/player.css), on the dashboard report (.app)
   and the public report (body.pr-body): it reads the console tokens, so it
   follows the theme and wears the design's radii, pills and type. */
:is(.app,.pr-body) .rp{
  --rp-surface:var(--surface); --rp-ink:var(--text); --rp-muted:var(--text-2); --rp-line:var(--line);
  --rp-hover:var(--hover); --rp-track:var(--line); --rp-buffered:var(--line-2); --rp-played:var(--brand);
  --rp-mark-question:var(--ok); --rp-mark-integrity:var(--danger); --rp-mark-tab-switch:var(--warn);
  --rp-mark-multiple-faces:var(--rose); --rp-mark-gaze-aversion:var(--violet);
  border-radius:16px;font-family:var(--font)
}
:is(.app,.pr-body) .rp__controls{gap:8px;padding:12px 14px 14px}
:is(.app,.pr-body) .rp__btn{height:34px;min-width:34px;border-radius:10px;color:var(--text-2);font-size:12.5px;font-weight:500}
:is(.app,.pr-body) .rp__btn:hover{background:var(--hover);color:var(--text)}
:is(.app,.pr-body) .rp__btn svg{width:17px;height:17px}
:is(.app,.pr-body) .rp__center-play{background:var(--brand);color:var(--on-brand);box-shadow:var(--shadow-pop)}
:is(.app,.pr-body) .rp__time{color:var(--text-3);font-size:12.5px}
:is(.app,.pr-body) .rp__time strong{color:var(--text);font-weight:500}
:is(.app,.pr-body) .rp__toggle,:is(.app,.pr-body) .rp__select-btn{height:28px;padding:0 10px;border-color:var(--line-2);border-radius:999px;background:var(--surface);color:var(--text-2);font-size:12.5px;font-weight:500}
:is(.app,.pr-body) .rp__toggle:hover,:is(.app,.pr-body) .rp__select-btn:hover{border-color:var(--line-2);background:var(--hover);color:var(--text)}
:is(.app,.pr-body) .rp__toggle[aria-pressed="true"]{border-color:var(--line-2);background:var(--sunk);color:var(--text)}
:is(.app,.pr-body) .rp__select-btn[aria-expanded="true"]{border-color:var(--text-3);background:var(--surface)}
:is(.app,.pr-body) .rp__select-menu{padding:6px;border-color:var(--line);border-radius:14px;background:var(--pop);box-shadow:var(--shadow-pop)}
:is(.app,.pr-body) .rp__select-opt{min-height:32px;padding:6px 10px;border-radius:8px;color:var(--text);font-size:13px;font-weight:500}
:is(.app,.pr-body) .rp__select-opt:hover,:is(.app,.pr-body) .rp__select-opt:focus-visible{background:var(--hover)}
:root[data-theme="dark"] :is(.app,.pr-body) .rp__select-opt:hover{background:var(--press)}
:is(.app,.pr-body) .rp__select-opt[aria-selected="true"]{color:var(--brand)}
:is(.app,.pr-body) .rp__trust{border-color:transparent;font-size:12px;font-weight:500}
:is(.app,.pr-body) .rp__trust-label{color:inherit;font-size:12px;text-transform:none;letter-spacing:0;opacity:.85}
:is(.app,.pr-body) .rp__trust--high{background:var(--ok-soft);color:var(--ok)}
:is(.app,.pr-body) .rp__trust--high .rp__trust-dot{background:var(--ok)}
:is(.app,.pr-body) .rp__trust--medium{background:var(--warn-soft);color:var(--warn)}
:is(.app,.pr-body) .rp__trust--medium .rp__trust-dot{background:var(--warn)}
:is(.app,.pr-body) .rp__trust--low{background:var(--danger-soft);color:var(--danger)}
:is(.app,.pr-body) .rp__trust--low .rp__trust-dot{background:var(--danger)}
:is(.app,.pr-body) .rp__tip{border-color:var(--line);border-radius:12px;background:var(--pop);box-shadow:var(--shadow-pop)}
:is(.app,.pr-body) .rp__tip-badge{border-radius:6px;font-size:11px;font-weight:500;text-transform:none;letter-spacing:0}
:is(.app,.pr-body) .rp__tip-badge--tab-switch{background:var(--warn-soft);color:var(--warn)}
:is(.app,.pr-body) .rp__tip-badge--multiple-faces{background:var(--danger-soft);color:var(--danger)}
:is(.app,.pr-body) .rp__tip-badge--gaze-aversion{background:var(--violet-soft);color:var(--violet)}
:is(.app,.pr-body) .rp__skeleton,:is(.app,.pr-body) .rp__error{color:var(--text-2)}
:is(.app,.pr-body) .rp__meta{gap:8px 18px;padding:12px 14px;color:var(--text-2);font-size:12.5px}
:is(.app,.pr-body) .rp__meta a{display:inline-flex;align-items:center;gap:5px;border-bottom:0;color:var(--brand);font-weight:500}
:is(.app,.pr-body) .rp__meta a:hover{text-decoration:underline;text-underline-offset:3px}
:is(.app,.pr-body) .rp__meta a .i{width:14px;height:14px}

/* ============================================================
   Responsive (design.md 9)
   ============================================================ */
@media (max-width:1100px){
  .sx-facts.cols-5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rep-grid-3{grid-template-columns:minmax(0,1fr)}
  .rep-span-2{grid-column:auto}
  .rep-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-detections{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:960px){
  .sch-gen-item{grid-template-columns:minmax(0,1fr)}
  .sch-gen-actions{justify-content:flex-start}
  .sch-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sch-tiles{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .sx-facts,.sx-facts.cols-3,.sx-facts.cols-5{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sx-fact{padding:11px 12px 12px;gap:6px;border-radius:14px}
  .sch-types{grid-template-columns:minmax(0,1fr)}
  .sch-opt{min-width:0;max-width:100%;flex:1 1 100%}
  .sch-picker-search{flex:1 1 100%}
  .sch-gen-item{padding:14px 16px}
  .sch-hero-who{align-items:flex-start}
  .sch-hero-title h2{font-size:18px}
  .sch-hero-actions,.sch-hero-actions .btn{width:100%}
  .rep-head-who{align-items:flex-start}
  .rep-title{font-size:18px}
  .rep-head-actions,.rep-head-actions .btn{flex:1 1 auto}
  .rep-tabs{align-self:stretch}
  .rep-bubble{max-width:94%}
  .rep-detection-top{flex-wrap:wrap}
  .rep-detection-when{align-items:flex-start;text-align:left;flex-basis:100%;padding-left:52px}
  .rep-links{display:flex;flex-direction:column;gap:14px;max-height:430px}
  .rep-link{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
  .rep-link-url{flex:1 1 100%;order:1}
  .rep-link > .badge{order:0}
  .rep-link-exp{order:0;margin-right:auto}
  .rep-link > .btn{order:0}
}
@media (max-width:560px){
  .sch-steps{grid-template-columns:minmax(0,1fr)}
  .rep-metrics{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){
  /* The schedule's facts carry long values (a job title); the report's are short. */
  .sx-facts{grid-template-columns:minmax(0,1fr)}
}
