/* Rollcall operator console. Tokens, number forms and the site tape follow docs/DESIGN.md. No web fonts: it runs offline. */

:root {
  --paper: #F4F2EC; --sheet: #FFFFFF; --sheet-2: #FAF8F3;
  --ink: #13202E; --ink-2: #4B5768; --ink-3: #5C6571;
  --rule: #E2DDD2; --rule-3: #B9B1A0;
  --green: #61A916; --green-ink: #3D7A12; --green-wash: #EDF5E3; --on-green: #0B2203;
  --orange: #F0930D; --orange-ink: #A34F00; --orange-wash: #FDF0DC; --on-orange: #2A1700;
  --red: #B42318; --red-wash: #FBEAE7;
  --blue: #1D4F80; --blue-wash: #E7EEF6;
  --shadow: 0 14px 36px rgba(19, 32, 46, .18);
  --scrim: rgba(19, 32, 46, .38);
  --font-num: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="night"] {
  --paper: #0E141B; --sheet: #141C25; --sheet-2: #18212B;
  --ink: #E8ECEF; --ink-2: #A9B3BE; --ink-3: #8B95A1;
  --rule: rgba(255, 255, 255, .09); --rule-3: rgba(255, 255, 255, .28);
  --green: #7CC24A; --green-ink: #8BD15A; --green-wash: rgba(124, 194, 74, .12); --on-green: #0A1D03;
  --orange: #F2A33A; --orange-ink: #F2A33A; --orange-wash: rgba(242, 163, 58, .12); --on-orange: #2A1700;
  --red: #F0806F; --red-wash: rgba(240, 128, 111, .12);
  --blue: #7FB0E0; --blue-wash: rgba(127, 176, 224, .12);
  --shadow: 0 14px 36px rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font: 14px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: auto; overflow-y: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
h1 { font: 700 20px/1.2 var(--font-num); letter-spacing: -.01em; }
h2 { font: 700 15px/1.3 var(--font-body); }
h3 { font: 600 13px/1.3 var(--font-body); }
b { font-weight: 650; }
i { font-style: normal; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
code, .mono { font-family: var(--font-mono); font-size: 12.5px; }
.plain { list-style: none; }
.numf { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; }
.quiet { color: var(--ink-2); font-size: 13px; }
.warn-t { color: var(--orange-ink); }
.bad-t { color: var(--red); }
.ok-t { color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sheet); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.ic { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
kbd { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid var(--rule-3); border-bottom-width: 2px; border-radius: 5px; background: var(--sheet); color: var(--ink-2); font: 600 12px/16px var(--font-mono); text-align: center; }

/* ------------------------------------------------------------ layout */
.app { display: grid; height: 100vh; min-width: 1100px;
  grid-template-columns: clamp(280px, 21vw, 340px) minmax(0, 1fr) clamp(304px, 23.2vw, 372px);
  grid-template-rows: auto 64px minmax(0, 1fr) 44px;
  grid-template-areas: "banner banner banner" "hdr hdr hdr" "left work right" "foot foot foot"; }
.banner-slot { grid-area: banner; }
.hdr { grid-area: hdr; }
.col { overflow: auto; min-height: 0; scrollbar-gutter: stable; }
.col-left { grid-area: left; border-right: 1px solid var(--rule); }
.col-work { grid-area: work; outline: none; }
.col-right { grid-area: right; background: var(--sheet); border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.foot { grid-area: foot; position: relative; z-index: 20; }
.col-pad { padding: 16px 14px 24px; }
.col-right .col-pad { padding: 0; display: flex; flex-direction: column; min-height: 100%; }
.work-pad { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 1180px; margin: 0 auto; }

/* ------------------------------------------------------------ buttons, tags, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--rule-3); border-radius: 8px; background: var(--sheet); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--primary:hover { opacity: .92; }
.btn--primary kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .8; }
.btn--quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--danger { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 4px 10px; font-size: 13px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn .ic { width: 16px; height: 16px; vertical-align: 0; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link .ic { width: 14px; height: 14px; vertical-align: -3px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--rule-3); color: var(--ink); }
.icon-btn--sm { width: 26px; height: 26px; }
.chip { border: 1px solid var(--rule-3); border-radius: 999px; background: var(--sheet); padding: 3px 11px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--rule-3); border-radius: 999px; color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 19px; white-space: nowrap; vertical-align: middle; }
.tag--sim { border-style: dashed; border-color: var(--ink-3); background: var(--sheet-2); }
.tag--sample, .tag--private { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--rule-3); color: var(--ink-2); font: 700 12px/1 var(--font-num); vertical-align: 1px; }
.count--action { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }

.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.fld--grow { flex: 1; min-width: 0; }
.inp { width: 100%; padding: 7px 10px; border: 1px solid var(--rule-3); border-radius: 8px; background: var(--sheet); color: var(--ink); font-size: 14px; }
.inp:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea.inp { resize: vertical; min-height: 44px; line-height: 1.4; }
.inp--num { width: 92px; font: 700 18px var(--font-num); }

.notice { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: 14px; background: var(--orange-wash); color: var(--ink); border: 1px solid var(--orange); }
.notice > span { flex: 1; }
.notice .ic { color: var(--orange-ink); margin-top: 1px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; }
.banner--red { background: var(--red-wash); color: var(--ink); border-bottom: 2px solid var(--red); }
.banner--red .ic { color: var(--red); }
.banner > span { flex: 1; }

/* ------------------------------------------------------------ the four numbers (plus unidentified) */
.num { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 6px; border: 1.5px solid transparent; border-radius: 999px; font-size: 12px; line-height: 20px; white-space: nowrap; vertical-align: middle; }
.num b { font: 700 14px/20px var(--font-num); font-variant-numeric: tabular-nums; }
.num .ic { width: 15px; height: 15px; vertical-align: 0; }
.num-w { font-weight: 500; }
.num-w i { font-style: italic; }
/* confirmed: solid green, the largest. A person confirmed it. */
.num--confirmed { background: var(--green); color: var(--on-green); --seal-tick: var(--green); }
/* nobody is confirmed yet: the same form, hollow, so a zero does not read as a result */
.num--confirmed.is-zero { background: transparent; border: 1.5px solid var(--green); color: var(--green-ink); --seal-tick: var(--sheet); }
/* faces detected: thin solid outline. A machine produced it. */
.num--detected { border: 1px solid var(--ink-3); color: var(--ink-3); }
/* names suggested: dashed outline. A machine produced it. */
.num--suggested { border: 1.5px dashed var(--ink-3); color: var(--ink-3); }
/* foreman reported: blue wash, set in quotation marks. Someone outside the review said it. */
.num--reported { background: var(--blue-wash); color: var(--blue); }
.num--reported:not(.is-unknown) b::before { content: "“"; }
.num--reported:not(.is-unknown) b::after { content: "”"; }
.num--reported.is-unknown b { font: 600 12.5px/20px var(--font-body); font-style: italic; }
/* unidentified: orange outline. A reviewer could not name the face. */
.num--unidentified { border: 1.5px solid var(--orange); color: var(--orange-ink); }
.num--md { padding: 3px 12px 3px 8px; }
.num--md b { font-size: 20px; line-height: 26px; }
.num--md.is-unknown b { font-size: 14px; }
.num--md .ic { width: 18px; height: 18px; }
.num--lg { padding: 2px 13px 2px 8px; }
.num--lg b { font-size: 26px; line-height: 32px; }
.num--lg .ic { width: 20px; height: 20px; }
.num--lg .num-w { font-size: 13px; font-weight: 600; }
.num--xl { display: flex; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px; }
.num--xl b { font-size: 46px; line-height: 50px; letter-spacing: -.02em; }
.num--xl .ic { width: 30px; height: 30px; }
.num--xl .num-w { font-size: 15px; font-weight: 650; }
.nums { display: flex; flex-direction: column; gap: 8px; }
.nums-row { display: flex; flex-wrap: wrap; gap: 6px; }
.nums-extra { margin-top: -2px; }

/* ------------------------------------------------------------ the site tape */
.seg { display: block; position: relative; height: 10px; border-radius: 2px; flex: none; }
.seg--published { background: var(--green); }
.seg--published.is-corrected::after { content: ""; position: absolute; right: 3px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.seg--in_review { border: 1.5px solid var(--orange); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--orange) 55%, transparent) 0 3px, transparent 3px 7px); }
.seg--awaiting { border: 1.5px solid var(--rule-3); }
.seg--missing, .seg--no_report { border: 1.5px dashed var(--red); }
.seg--no_report::after { content: ""; position: absolute; right: 4px; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.seg--not_expected { border-bottom: 1.5px dotted var(--rule-3); border-radius: 0; }
.seg.is-pending::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 26%; border-radius: 0 2px 2px 0; background: repeating-linear-gradient(135deg, var(--orange) 0 3px, var(--sheet) 3px 6px); }

.hdr { display: flex; align-items: center; gap: 18px; padding: 0 16px; background: var(--sheet); border-bottom: 1px solid var(--rule); min-width: 0; }
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; flex: none; }
.brand-logo { height: 24px; width: auto; }
.brand-t { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.brand-t b { color: var(--ink); }
.hdr-fill { flex: 1; }
.tape { flex: 1; display: flex; gap: 4px; min-width: 0; max-width: 780px; margin: 0 auto; }
.tape-seg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 6px 4px 5px; border-radius: 6px; text-decoration: none; }
.tape-seg:hover { background: var(--sheet-2); }
.tape-seg.is-here { background: var(--blue-wash); }
.tape-name { display: flex; align-items: center; gap: 5px; font-weight: 650; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; }
.tape-need { display: inline-flex; align-items: center; gap: 1px; padding: 0 5px 0 3px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 700 12px/16px var(--font-num); }
.tape-need .ic { width: 12px; height: 12px; }
.tape-chg { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px 0 4px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange-ink); font-size: 12px; font-weight: 600; line-height: 14px; }
.tape-chg .ic { width: 12px; height: 12px; }
.tape-line { font-size: 12px; line-height: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape-line--missing, .tape-line--no_report { color: var(--red); }
.tape-line--in_review { color: var(--orange-ink); }
.tape-none { color: var(--ink-2); font-size: 13px; }
.hdr-right { display: flex; align-items: center; gap: 16px; flex: none; }
.hdr-block { display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.hdr-block b { color: var(--ink); font-size: 13px; line-height: 18px; }
.hdr-block .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.hdr-chip { padding: 4px 10px; border: 1px solid var(--rule-3); border-radius: 8px; }
.hdr-chip:hover { border-color: var(--ink-2); }
.live { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.live--off { background: transparent; border: 1.5px solid var(--red); box-shadow: none; }

/* ------------------------------------------------------------ left column */
.lsec + .lsec { margin-top: 20px; }
.lhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 13px/20px var(--font-body); letter-spacing: .02em; text-transform: none; color: var(--ink); }
.lsub { margin: 14px 0 6px; color: var(--ink-2); }
.lnote { margin-top: 8px; font-size: 12.5px; }
.exc-list { display: flex; flex-direction: column; gap: 6px; }
.exc-list + .btn { margin-top: 10px; }
.exc { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 12px 10px 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; }
.exc:hover { border-color: var(--rule-3); }
.exc.is-selected { border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.exc-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--orange-wash); color: var(--orange-ink); }
.exc--missing .exc-ic { background: var(--red-wash); color: var(--red); }
.exc--ready .exc-ic, .exc--correction .exc-ic { background: var(--sheet-2); color: var(--ink); border: 1px solid var(--rule-3); }
.exc.is-followed .exc-ic { background: var(--sheet-2); color: var(--ink-2); border: 1px dashed var(--red); }
.exc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.exc-title { font-size: 14px; line-height: 18px; }
.exc-detail { font-size: 13px; line-height: 17px; color: var(--ink-2); }
.exc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.exc-age { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.exc-age .ic { width: 13px; height: 13px; }
.calm { display: flex; gap: 10px; padding: 14px 12px; border: 1px dashed var(--rule-3); border-radius: 10px; color: var(--ink-2); font-size: 13px; }
.calm b { color: var(--ink); font-size: 14px; }
.calm .ic { color: var(--green-ink); margin-top: 1px; }
.site-list { display: flex; flex-direction: column; }
.site-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--rule); text-decoration: none; border-radius: 6px; }
.site-row:first-child { border-top: 0; }
.site-row:hover { background: var(--sheet); }
.site-row.is-selected { background: var(--blue-wash); }
.site-row-t { display: flex; flex-direction: column; min-width: 0; }
.site-row-t b { font-size: 14px; line-height: 18px; }
.site-row-t span { font-size: 12.5px; line-height: 16px; color: var(--ink-2); }
.site-row .exc-ic { width: 26px; height: 26px; }

/* ------------------------------------------------------------ workspace: shared */
.work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-head .quiet { margin-top: 2px; }
.next-item { max-width: 46%; white-space: normal; text-align: left; flex: none; font-weight: 600; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.card--quiet { background: transparent; border-style: dashed; border-color: var(--rule-3); color: var(--ink-2); }
.rlabel { display: flex; align-items: center; gap: 6px; font: 650 12.5px/18px var(--font-body); color: var(--ink-2); letter-spacing: .01em; }
.rlabel .ic { width: 15px; height: 15px; }
.callout { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--rule-3); background: var(--sheet); }
.callout h2 { display: flex; align-items: center; gap: 8px; }
.callout--warn { background: var(--orange-wash); border-color: var(--orange); }
.callout--warn h2 .ic { color: var(--orange-ink); }
.callout--ok { background: var(--green-wash); border-color: var(--green); }
.callout--ok h2 .ic { color: var(--green-ink); }
.callout--quiet { background: var(--sheet); }
.callout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px dashed var(--rule-3); border-radius: 12px; }
.empty h2 { margin-bottom: 4px; }
.empty p { color: var(--ink-2); max-width: 62ch; }
.empty p + p { margin-top: 10px; }
.empty-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); color: var(--ink-2); flex: none; }
.empty-ic .ic { width: 24px; height: 24px; }
.empty--sm { padding: 14px; }
.quote { padding: 6px 10px; border-left: 3px solid var(--blue); background: var(--blue-wash); border-radius: 0 8px 8px 0; font-style: italic; }
.quote-i { font-style: italic; quotes: "“" "”"; color: var(--blue); }

/* overview */
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ov-sum { margin-top: 4px; color: var(--ink-2); }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }
.ovc { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; }
.ovc:hover { border-color: var(--rule-3); }
.ovc--missing, .ovc--no_report { background: var(--red-wash); border-color: var(--red); border-style: dashed; }
.ovc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 45px; }
.ovc-name { display: flex; flex-direction: column; min-width: 0; }
.ovc-name b { font-size: 15px; }
.ovc-name span { font-size: 12.5px; color: var(--ink-2); }
.ovc-thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 7px; flex: none; }
.ovc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.rx { display: flex; flex-direction: column; }
.rx-row { display: grid; grid-template-columns: 44px 40px 92px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 4px; border-top: 1px solid var(--rule); text-decoration: none; font-size: 13.5px; border-radius: 6px; }
.rx-row:first-child { border-top: 0; }
.rx-row:hover { background: var(--sheet-2); }
.rx-row > span:last-child { color: var(--ink-2); }
.rx-thumb { width: 40px; height: 30px; object-fit: cover; border-radius: 5px; }
.rx-row--out .rx-thumb { filter: grayscale(1); opacity: .55; }
.rx-row--wait > span:last-child { color: var(--orange-ink); }
.ovc-big { font: 700 17px/22px var(--font-num); }
.ovc-big--warn { color: var(--orange-ink); }
.ovc-big--bad { color: var(--red); }
.ovc-big--quiet { color: var(--ink-2); }
.ovc-note { font-size: 13px; color: var(--ink-2); }
.ovc-foot { font-size: 12.5px; color: var(--ink-2); margin-top: auto; }

/* ------------------------------------------------------------ photo review */
.src { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.src-grid { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 5px 10px; font-size: 13px; }
.src-grid dt { color: var(--ink-2); font-weight: 600; line-height: 22px; }
.src-grid dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 22px; }
.src-time { margin-left: auto; }
/* The photo stays put while the face list scrolls beside it. */
.work-pad.review { height: 100%; padding-bottom: 0; }
.work-pad.review > * { flex: none; }
.work-pad.review > .review-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(318px, 1fr); gap: 16px; flex: 1 1 0; min-height: 400px; }
.review-photo { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; padding: 1px 1px 16px; scrollbar-width: thin; }
.stage { position: relative; width: 100%; border-radius: 10px; background: var(--sheet-2); cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 0 0 1px var(--rule); }
.stage-img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; pointer-events: none; }
.fbox { position: absolute; padding: 0; border: 2.5px solid var(--b, #fff); border-radius: 7px; background: transparent; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.fbox--confirmed { --b: #61A916; }
.fbox--needs { --b: #F0930D; border-width: 3.5px; }
.fbox--unidentified { --b: #F0930D; }
.fbox--clear { --b: #13202E; border-width: 1.5px; }
.fbox--dismissed { --b: #5C6571; border-style: dashed; border-width: 2px; box-shadow: none; background: rgba(255, 255, 255, .28); }
.fbox.is-selected { outline: 3px solid #2F80D8; outline-offset: 3px; z-index: 2; }
.fbox:focus-visible { outline: 3px solid #2F80D8; outline-offset: 3px; }
.fbox-n { position: absolute; left: -11px; top: -11px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #fff; color: #13202E; border: 1.5px solid var(--b); font: 700 12px/1 var(--font-num); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.fbox-n .ic { width: 12px; height: 12px; }
.fbox--confirmed .fbox-n { background: #61A916; color: #0B2203; border-color: #fff; }
.fbox--needs .fbox-n { background: #F0930D; color: #2A1700; border-color: #fff; }
.fbox--dismissed .fbox-n { border-style: dashed; color: #5C6571; }
.draw { position: absolute; border: 2px dashed #2F80D8; background: rgba(47, 128, 216, .18); border-radius: 6px; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 14px; height: 12px; border-radius: 3px; border: 2px solid; }
.lg--confirmed { border-color: var(--green); }
.lg--needs { border-color: var(--orange); border-width: 3px; }
.lg--clear { border: 1.5px solid var(--ink); }
.lg--dismissed { border: 2px dashed var(--ink-3); }
.lg--selected { border-color: transparent; outline: 2px solid #2F80D8; }
.hint .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.exclude { display: flex; align-items: flex-end; gap: 8px; }
.tl { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.tl-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; font-size: 13px; padding: 2px 0; }
.tl-file { color: var(--ink-2); word-break: break-all; }

.review-faces { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.faces-head { display: flex; flex-direction: column; gap: 6px; }
.faces-sum { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.faces-scroll { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 16px; scrollbar-width: thin; }
.fc-list { display: flex; flex-direction: column; gap: 6px; }
.fc { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; scroll-margin: 60px 0 12px; }
.fc.is-selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.fc-head { display: grid; grid-template-columns: 24px 48px 48px minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.fc-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12.5px/1 var(--font-num); }
.fc-n--confirmed { background: var(--green); color: var(--on-green); }
.fc-n--needs { background: var(--orange); color: var(--on-orange); }
.fc-n--unidentified { border: 1.5px solid var(--orange); color: var(--orange-ink); }
.fc-n--clear { border: 1px solid var(--ink-3); color: var(--ink-3); }
.fc-n--dismissed { border: 1.5px dashed var(--ink-3); color: var(--ink-3); }
.crop { display: inline-block; flex: none; border-radius: 8px; background-color: var(--sheet-2); background-repeat: no-repeat; }
.crop--none { border: 1.5px dashed var(--rule-3); }
.portrait { flex: none; border-radius: 8px; object-fit: cover; background: var(--sheet-2); }
.portrait.is-machine { outline: 1.5px dashed var(--ink-3); outline-offset: -1.5px; }
.portrait--none { display: inline-grid; place-items: center; border: 1.5px dashed var(--rule-3); color: var(--ink-3); background: transparent; }
.fc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc-t b { font-size: 14px; line-height: 18px; }
.fc-t b .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.fc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; line-height: 16px; color: var(--ink-2); }
.fc--dismissed .fc-head { opacity: .72; }
.fc-flags { padding: 0 10px 8px 40px; display: flex; flex-direction: column; gap: 2px; }
.fc-flags li { display: flex; gap: 6px; font-size: 13px; line-height: 17px; color: var(--orange-ink); }
.fc-flags .ic { width: 15px; height: 15px; margin-top: 1px; }
.fc-detail { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-top: 1px solid var(--rule); }
.cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.fc-once { display: flex; gap: 6px; padding: 0 10px 8px 40px; font-size: 13px; line-height: 17px; color: var(--ink-2); }
.fc-once .ic { width: 15px; height: 15px; margin-top: 1px; }
.cmp-this, .cand { display: flex; flex-direction: column; gap: 2px; padding: 5px; border-radius: 10px; font-size: 12.5px; line-height: 16px; text-align: left; min-width: 0; }
.cmp-this { border: 1px solid transparent; }
.cmp-this .crop, .cmp-this .portrait, .cand .portrait { width: 100% !important; height: auto !important; aspect-ratio: 1; background-size: cover; }
.cmp-this b, .cand b { font-size: 13px; line-height: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.cand { border: 1px solid var(--rule-3); background: var(--sheet-2); cursor: pointer; }
.cand:hover:not(:disabled) { border-color: var(--ink); }
.cand:disabled { opacity: .5; cursor: not-allowed; }
.cand.is-suggested { border-style: dashed; border-color: var(--ink-3); }
.cand-role { color: var(--ink-2); font-size: 12px; }
.cand .score { margin-top: auto; padding-top: 3px; }
.cand-pick { margin-top: 2px; font-weight: 650; font-size: 12.5px; }
.else { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--orange); background: var(--orange-wash); border-radius: 10px; text-decoration: none; font-size: 13px; }
.else > span:last-child { display: flex; flex-direction: column; }
.else .ic { width: 14px; height: 14px; vertical-align: -3px; }
.fc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-method { font-size: 13px; }
.fc-hint kbd, .keys kbd { margin: 0 1px; }
.keys { line-height: 22px; font-size: 12.5px; }
.score { display: inline-flex; align-items: center; gap: 6px; }
.score-track { position: relative; display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.score-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); border-radius: 3px; }
.score-tick { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--sheet); }
.score-n { font: 700 12px/1 var(--font-num); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cand .score-track { flex: 1; width: auto; }

.roster { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--blue); border-radius: 10px; background: var(--sheet-2); scroll-margin: 12px; }
.roster-q { display: flex; align-items: center; gap: 6px; }
.roster-q .ic { color: var(--ink-2); }
.roster-list { max-height: 216px; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.roster-h { font-size: 12px; font-weight: 650; color: var(--ink-2); padding: 6px 4px 2px; }
.roster-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.roster-row:hover:not(:disabled), .roster-row.is-hi { background: var(--blue-wash); }
.roster-row.is-hi { box-shadow: inset 0 0 0 1.5px var(--blue); }
.roster-row:disabled { opacity: .5; cursor: not-allowed; }
.roster-t { display: flex; flex-direction: column; min-width: 0; }
.roster-t b { font-size: 13.5px; line-height: 17px; }
.roster-t span { font-size: 12px; line-height: 15px; color: var(--ink-2); }
.roster-none { padding: 8px 4px; }
.roster-foot { font-size: 12px; }

/* repeat photo, two sites */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pair-mid { align-self: center; }
.pair-one { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.pair-one img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair-one figcaption { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; font-size: 13px; color: var(--ink-2); }
.pair-one figcaption b { color: var(--ink); font-size: 14px; }
.pair-verdict { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.pair-verdict .ic { width: 15px; height: 15px; }
.pair-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12.5px; }
.pair-eq { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 24px/1 var(--font-num); }
.two-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.two-one { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; }
.two-one .btn { margin-top: auto; }
.two-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }

/* missing site */
.work-head .quiet .ic { width: 15px; height: 15px; vertical-align: -3px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 14px; }
.facts span + span::before { content: "·"; margin-right: 14px; color: var(--ink-3); }
.facts .ic { color: var(--ink-2); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week-cell { display: flex; flex-direction: column; gap: 5px; padding: 8px 8px 9px; border-radius: 8px; background: var(--sheet-2); font-size: 12px; color: var(--ink-2); }
.week-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.week-d b { color: var(--ink); font-size: 13px; }
.week-n { font: 700 20px/22px var(--font-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.week-n--missing, .week-n--no_report { color: var(--red); font-size: 15px; }
.week-n--not_expected, .week-n--awaiting, .week-n--future, .week-n--in_review { color: var(--ink-3); }
.week-sum { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
.week-sum b { color: var(--ink); font-size: 15px; }
.sent { display: flex; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--sheet-2); border: 1px solid var(--rule); }
.sent .ic { color: var(--ink-2); margin-top: 1px; }
.radio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.radio { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--rule-3); border-radius: 10px; cursor: pointer; background: var(--sheet); }
.radio.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input { margin: 3px 0 0; accent-color: var(--ink); }
.radio span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-2); }
.radio b { color: var(--ink); font-size: 14px; }
.radio--chip { padding: 5px 10px; align-items: center; }
.radio--chip input { margin: 0; }
.phrases { display: flex; flex-wrap: wrap; gap: 6px; }

/* site with photos */
.sv-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sv-photo { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.sv-photo.is-out .sv-thumb img { filter: grayscale(1); opacity: .6; }
.sv-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.sv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini { position: absolute; border: 2px solid #fff; border-radius: 4px; }
.mini--confirmed { border-color: #61A916; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.mini--needs, .mini--unidentified { border-color: #F0930D; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.mini--clear { border: 1.5px solid #13202E; box-shadow: 0 0 0 1px rgba(255, 255, 255, .8); }
.mini--dismissed { border: 1.5px dashed #5C6571; }
.sv-t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.sv-t b { color: var(--ink); font-size: 14px; }
.sv-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 6px 12px; }
.sv-person { display: flex; gap: 10px; align-items: center; padding: 4px; border-radius: 8px; text-decoration: none; min-width: 0; }
a.sv-person:hover { background: var(--sheet-2); }
.sv-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sv-person b { font-size: 14px; line-height: 18px; }
.sv-person span span { font-size: 12.5px; line-height: 16px; color: var(--ink-2); }
.sv-person--un b { color: var(--orange-ink); }

/* ------------------------------------------------------------ right column: the site day */
.rhead { padding: 16px 16px 12px; border-bottom: 1px solid var(--rule); }
.rhead h2 { font: 700 18px/1.2 var(--font-num); }
.state { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 10px 2px 7px; border-radius: 999px; font-size: 13px; font-weight: 650; border: 1px solid var(--rule-3); }
.state .ic { width: 16px; height: 16px; }
.state--ok { background: var(--green-wash); border-color: var(--green); color: var(--green-ink); }
.state--warn { background: var(--orange-wash); border-color: var(--orange); color: var(--orange-ink); }
.state--bad { background: var(--red-wash); border-color: var(--red); color: var(--red); border-style: dashed; }
.state--ready { border-color: var(--ink); }
.state--quiet { color: var(--ink-2); }
.rsec { padding: 12px 16px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; }
.rsub { font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-top: 2px; }
.rep-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-from { font-size: 13px; color: var(--ink-2); }
.rep--edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px; border: 1px solid var(--blue); border-radius: 10px; background: var(--sheet-2); }
.rep-actions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.gap { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; background: var(--sheet-2); border: 1px solid var(--rule); }
.gap .ic { margin-top: 1px; color: var(--ink-2); }
.gap--waiting { border-style: dashed; border-color: var(--rule-3); }
.nothing { font: 700 17px/22px var(--font-num); color: var(--ink-2); }
.gap--reported_more, .gap--seen_more { background: var(--orange-wash); border-color: var(--orange); }
.gap--reported_more .ic, .gap--seen_more .ic { color: var(--orange-ink); }
.blockers { display: flex; flex-direction: column; gap: 6px; }
.blockers li { display: flex; gap: 8px; font-size: 14px; }
.box { display: inline-block; width: 15px; height: 15px; margin-top: 2px; border: 1.5px solid var(--orange); border-radius: 4px; flex: none; }
.blockers .is-soft .box { border-color: var(--ink-3); border-style: dashed; }
.okline { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.okline .ic { color: var(--green-ink); }
.flags { display: flex; flex-direction: column; gap: 6px; }
.flags li { display: flex; gap: 8px; font-size: 13.5px; }
.flags .ic { color: var(--ink-2); margin-top: 1px; }
.pl { display: flex; flex-direction: column; gap: 4px; }
.pl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.pl-row:hover { background: var(--sheet-2); }
.pl-row.is-selected { border-color: var(--blue); background: var(--blue-wash); }
.pl-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.pl-row--out .pl-thumb { filter: grayscale(1); opacity: .55; }
.pl-t { display: flex; flex-direction: column; min-width: 0; }
.pl-t b { font-size: 13px; line-height: 17px; }
.pl-t span { font-size: 12.5px; line-height: 16px; color: var(--ink-2); }
.pl-row--wait .pl-t span { color: var(--orange-ink); }
.onow { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--ink-2); }
.onow .seg { margin-top: 4px; }
.onow b { color: var(--ink); }
.onow b.bad-t { color: var(--red); }
.ocard { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px solid var(--rule-3); border-radius: 14px; background: var(--paper); }
.ocard-top { display: flex; gap: 10px; align-items: center; }
.ocard-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.ocard-main { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ocard-site { font-size: 14px; }
.ocard-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.ocard-gap { font-size: 13px; }
.ocard-foot, .ocard-names { font-size: 12.5px; color: var(--ink-2); }
.ocard-names .ic { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; }
.rsec--publish { position: sticky; bottom: 0; margin-top: auto; background: var(--sheet); border-top: 1px solid var(--rule-3); border-bottom: 0; box-shadow: 0 -6px 14px -10px rgba(19, 32, 46, .25); }
.rsec--publish .fld > span { display: flex; justify-content: space-between; gap: 8px; }
.rsec--pub { font-size: 13px; gap: 4px; background: var(--sheet-2); }
.pubd-line { display: flex; gap: 8px; color: var(--ink-2); }
.pubd-line b { color: var(--ink); }
.pubd-line .ic { color: var(--green-ink); --seal-tick: var(--sheet); margin-top: 1px; }
.pubd-revs { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ohead { font-size: 14px; }
.olist { display: flex; flex-direction: column; gap: 5px; }
.olist li { display: flex; gap: 8px; font-size: 13px; }
.olist .ic { width: 16px; height: 16px; color: var(--orange-ink); margin-top: 1px; }
.olist-missing .ic, .olist-no_report .ic { color: var(--red); }

/* ------------------------------------------------------------ footer bar and drawer */
.foot-bar { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--sheet); border-top: 1px solid var(--rule-3); }
.foot-tabs { display: flex; gap: 2px; height: 100%; }
.foot-tab { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-top: 2.5px solid transparent; background: transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.foot-tab:hover { color: var(--ink); }
.foot-tab.is-on { color: var(--ink); border-top-color: var(--ink); background: var(--sheet-2); }
.foot-tab .ic { width: 16px; height: 16px; }
.foot-meta { font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.foot-fill { flex: 1; }
.foot-next { border-style: dashed; border-color: var(--ink-3); }
.drawer { position: absolute; left: 0; right: 0; bottom: 100%; height: min(524px, 64vh); overflow: auto; background: var(--sheet); border-top: 1px solid var(--rule-3); box-shadow: var(--shadow); }
.dr-pad { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 1400px; margin: 0 auto; }
.dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dr-head h2 { display: flex; align-items: center; gap: 8px; font: 700 17px/1.3 var(--font-num); }
.dr-head p { max-width: 86ch; margin-top: 2px; }
.dr-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 48px 22px minmax(0, 1fr) 92px; gap: 10px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--rule); }
.step-time { font-size: 14px; }
.step-kind { color: var(--ink-2); }
.step-t { display: flex; flex-direction: column; min-width: 0; }
.step-t b { font-size: 14px; line-height: 18px; }
.step-t span { font-size: 13px; line-height: 17px; color: var(--ink-2); }
.step.is-done { color: var(--ink-2); }
.step.is-done .step-t b { font-weight: 500; }
.step.is-next { background: var(--sheet-2); box-shadow: inset 3px 0 0 var(--ink); }
.step-done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); }
.step-done .ic { width: 15px; height: 15px; }
.step .btn { justify-self: start; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px; border-radius: 10px; background: var(--sheet-2); border: 1px solid var(--rule); }
.flow-n { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--rule-3); border-radius: 8px; background: var(--sheet); font-size: 13px; font-weight: 600; white-space: nowrap; }
.flow-n .ic { width: 15px; height: 15px; }
.flow-n--gap { border: 1.5px dashed var(--red); color: var(--red); background: var(--red-wash); }
.flow-n--sim { border-style: dashed; border-color: var(--ink-3); color: var(--ink-2); }
.flow-n--you { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.flow-or { display: inline-flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); }
.flow-a { color: var(--ink-3); font-weight: 700; }
.dr-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.dr-cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dr-cols section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.manual { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.path { display: flex; align-items: center; gap: 8px; }
.path code { padding: 5px 9px; border: 1px solid var(--rule-3); border-radius: 8px; background: var(--sheet-2); overflow-wrap: anywhere; }
.facts-list { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.al-list { display: flex; flex-direction: column; }
.al { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--rule); }
.al-time { font-size: 13px; line-height: 18px; }
.al-t { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--ink-2); }
.al-t b { color: var(--ink); font-size: 13.5px; }
.al-lock { font-size: 12.5px; }
.al-lock .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

/* What matching learned */
.learn-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.learn-stat { display: flex; flex-direction: column; min-width: 150px; flex: 1; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet-2); }
.learn-stat b { font: 700 22px/1.1 var(--font-num); }
.learn-stat > span:not(.quiet) { font-weight: 600; font-size: 13.5px; }
.learn-stat .quiet { font-size: 12.5px; }
.learn-list, .learn-people { display: flex; flex-direction: column; }
.learn-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--rule); }
.learn-row a { display: block; line-height: 0; border-radius: 8px; }
.learn-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.learn-t b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; }
.learn-t .quiet { font-size: 12.5px; }
.learn-act { display: flex; gap: 4px; }
.tag--learn-on { border-color: var(--ink); color: var(--ink); }
.tag--learn-wait { border-style: dashed; }
.tag--learn-off { color: var(--ink-3); border-color: var(--rule); }
.learn-people li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); }
.learn-people li > span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.learn-rules { color: var(--ink-2); }
.fc-learn { display: flex; gap: 6px; font-size: 13px; line-height: 17px; color: var(--ink-2); }
.fc-learn .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.fc-learn--active { color: var(--ink); }
.cand-via { color: var(--ink); }
.cand-via .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.dr-owner { flex-direction: row; gap: 28px; align-items: flex-start; }
.dr-owner-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1; max-width: 640px; }
.pair-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet-2); }
.pair-code { display: flex; align-items: baseline; gap: 12px; }
.pair-code .quiet { width: 110px; }
.pair-code b { font-size: 24px; letter-spacing: .12em; }
.phone { width: 308px; height: 484px; flex: none; border: 7px solid var(--ink); border-radius: 30px; background: var(--paper); overflow: hidden; }
.phone-screen { height: 100%; overflow: auto; padding: 10px 11px 16px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.ph-bar { display: flex; align-items: center; gap: 8px; }
.ph-bar b { flex: 1; text-align: center; font: 700 16px var(--font-num); margin-left: -20px; }
.ph-acct { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-3); }
.ph-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ph-date { font: 700 15px var(--font-num); text-align: center; }
.ph-hero { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 10px 12px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.ph-arc { position: relative; height: 138px; }
.ph-arc-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 8px; font-size: 12px; color: var(--ink-2); }
.ph-arc-c b { font-size: 25px; line-height: 28px; color: var(--ink); }
.ph-line { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.ph-quiet { font-size: 12.5px; color: var(--ink-2); }
.ph-h { font-weight: 700; font-size: 13px; }
.ph-att { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.ph-att-row { display: flex; gap: 7px; font-size: 12.5px; }
.ph-att-row .ic { width: 15px; height: 15px; color: var(--orange-ink); margin-top: 1px; }
.ph-att-row--missing .ic, .ph-att-row--no_report .ic { color: var(--red); }
.pc { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.pc--in_review { border-color: var(--orange); }
.pc--missing { background: var(--red-wash); border-color: transparent; }
.pc--no_report { border: 1.5px solid var(--red); }
.pc-top { display: flex; gap: 10px; align-items: center; }
.pc-top > div { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pc-thumb { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.pc-name { font-size: 13.5px; }
.pc-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-big { font: 700 15px/20px var(--font-num); }
.pc-gap { font-size: 12.5px; }
.pc-foot { font-size: 12px; color: var(--ink-2); }
.arc-o, .arc-i { fill: none; stroke-linecap: butt; }
.arc--published .arc-o, .arc--published .arc-i { stroke: var(--green); }
.arc--in_review .arc-o { stroke: var(--orange); }
.arc--in_review .arc-i { stroke: color-mix(in srgb, var(--orange) 40%, var(--sheet)); }
.arc--awaiting .arc-o { stroke: var(--rule-3); }
.arc--missing .arc-o, .arc--no_report .arc-o { stroke: var(--red); stroke-dasharray: 5 4; }
.arc--awaiting .arc-i, .arc--missing .arc-i, .arc--no_report .arc-i, .arc--not_expected .arc-i { stroke: var(--sheet); }
.arc--not_expected .arc-o { stroke: none; }
.arc-dot { fill: var(--ink); }
.arc--no_report .arc-dot { fill: var(--red); }

/* ------------------------------------------------------------ dialogs, drop target, toasts */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 92vw); max-height: 86vh; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule-3); border-radius: 14px; box-shadow: var(--shadow); }
.modal--sm { width: min(520px, 92vw); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.modal-head h2 { font: 700 18px/1.2 var(--font-num); }
.modal-head .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.modal-body { padding: 14px 18px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.rev-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-tabs .btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rev-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
.rev-photo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 13px; }
.rev-photo img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.nums--wide { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.up-files { display: flex; flex-direction: column; gap: 4px; }
.up-files li { display: flex; gap: 8px; align-items: center; }
.up-site { display: flex; flex-direction: column; gap: 8px; }
.up-site legend { font-weight: 650; margin-bottom: 6px; }
.dropzone { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 4px dashed var(--blue); }
.dropzone > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.dropzone b { font: 700 22px var(--font-num); color: var(--ink); }
.toasts { position: fixed; z-index: 46; left: 50%; bottom: 58px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13.5px; box-shadow: var(--shadow); }
.toast .icon-btn { color: inherit; opacity: .7; pointer-events: auto; }
.toast--bad { background: var(--red); color: #fff; }
:root[data-theme="night"] .toast--bad { color: #1B0A07; }

/* ------------------------------------------------------------ narrower windows (usable at 1100) */
@media (max-width: 1279px) {
  .hdr { gap: 12px; }
  .hdr-right { gap: 10px; }
  .hdr-who { display: none; }
  .work-pad.review { height: auto; padding-bottom: 40px; }
  .work-pad.review > .review-grid { grid-template-columns: minmax(0, 1fr); flex: none; }
  .review-photo, .faces-scroll { overflow: visible; }
  .pair, .two-grid { grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); }
  .dr-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .seg, .exc, .fc, .btn { transition: background-color .15s, border-color .15s; }
}

/* hosted: the pairing code, shown once */
.pair-big { font-size: 26px; letter-spacing: .08em; }
.pair-card .dr-actions { flex-wrap: wrap; }
