/* TraceMend review screen, layouts A and B (2026-11-19 night, design stage 2; plan 3.5). Read after style.css.
   Every rule here is scoped to body.lay (both layouts), body.lay-a or body.lay-b, so the page without ?layout keeps its current
   layout. A: a range bar over the whole width, the video with its time bar, one right panel of 400px (flagged items | results |
   people). B: three columns as in the current screen, the flagged items and people on the left (264px), the range bar over the
   video column, the decision and the results on the right (360px).
   Sizes from the app scale in tm/tokens.css (14px body, 13px notes, 12px the smallest), two greys only (--text, --muted), blocks
   divided by space and 1px lines, no boxes inside panels. The video and its marks keep the --vid-* colours; time bar segments are
   --tb-*; the flagged-item mark is a thin --accent tick; no diamonds, no navy bar, no bright blue, no yellow. */

body.lay { font-size: var(--fs-body); }
html body.lay .layout { padding: 12px 16px; gap: 12px 16px; }
html body.lay-a .layout { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr); }
html body.lay-b .layout { grid-template-columns: 264px minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); }
body.lay #col-left { display: none !important; }
body.lay-a #rangebar { grid-column: 1 / -1; grid-row: 1; }
body.lay-a #viewer { grid-column: 1; grid-row: 2; }
body.lay-a #detail { grid-column: 2; grid-row: 2; }
body.lay-b #lpanel { grid-column: 1; grid-row: 1; }
body.lay-b #viewer { grid-column: 2; grid-row: 1; }
body.lay-b #detail { grid-column: 3; grid-row: 1; }
body.lay .detail, body.lay .lpanel { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.lay h2, body.lay h3, body.lay h4 { font-weight: 600; }

/* ---------- range bar: range, place, the answer, download and undo in one row ---------- */
.rangebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 44px; padding: 4px 4px 4px 2px; }
.rangebar .rb-group { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rangebar .rb-key { font-size: var(--fs-aux); color: var(--muted); }
.rangebar .time-in { width: 76px; min-height: 32px; font-size: var(--fs-aux); border-radius: var(--r-btn); }
.rangebar .dash { color: var(--muted); }
.rangebar .num-in { width: 60px; min-height: 32px; border-radius: var(--r-btn); }
.rangebar .unit { font-size: var(--fs-aux); color: var(--muted); }
.rangebar .seg button, .rangebar button.quiet, .rangebar .rb-btn { min-height: 32px; font-size: var(--fs-aux); }
.rangebar .seg button { padding: 0 12px; background: var(--bg); color: var(--muted); }
.rangebar .seg button.on { color: var(--text); font-weight: 600; background: var(--bg); }
.rangebar .seg button:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); }
.rangebar .seg button:last-child { border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.rangebar .answer { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--line); gap: 8px; align-items: baseline; flex-wrap: nowrap; }
.rangebar .answer-line { font-size: var(--fs-body); font-weight: 600; white-space: nowrap; }
.rangebar .answer-before { font-size: var(--fs-aux); color: var(--muted); white-space: nowrap; }
.rangebar .answer-sub { font-size: var(--fs-aux); color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.rangebar .rb-spacer { flex: 1; min-width: 0; }
.rangebar button { border-radius: var(--r-btn); background: var(--bg); }
.rangebar .undo { min-height: 32px; font-size: var(--fs-aux); padding: 0 10px; gap: 8px; }
.rangebar .undo kbd { font-size: var(--fs-min); }
body.lay-b .rangebar { flex: none; padding: 0 0 8px; }

/* the small (i): a button that shows its sentence on hover (title) and on press (the box under it) */
.info { width: 24px; height: 24px; min-height: 24px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle; flex: none; }
.info:hover:not(:disabled) { background: var(--face); color: var(--text); border: 0; }
.info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.info-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.info-pop { display: none; position: absolute; left: -8px; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(300px, 70vw); padding: 10px 12px; background: var(--text); color: var(--bg); border-radius: var(--r-btn); font-size: var(--fs-aux); line-height: 1.55; font-weight: 400; white-space: normal; text-align: left; box-shadow: 0 6px 18px rgb(0 0 0 / 0.16); }
.info-pop.to-left { left: auto; right: -8px; }
.info-wrap:hover .info-pop, .info-wrap.open .info-pop, .info:focus-visible + .info-pop { display: block; }

/* the download menu: one button, its two files under it */
.dl { position: relative; }
.dl > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: var(--fs-aux); cursor: pointer; white-space: nowrap; }
.dl > summary::-webkit-details-marker { display: none; }
.dl > summary:hover { border-color: var(--line-strong); }
.dl > summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 260px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: 0 8px 20px rgb(0 0 0 / 0.10); display: flex; flex-direction: column; }
.dl-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; min-height: 0; font-size: var(--fs-body); }
.dl-menu button:hover:not(:disabled) { background: var(--face); border: 0; }
.dl-menu button small { font-size: var(--fs-min); color: var(--muted); }

/* ---------- the video column ---------- */
body.lay .viewer { gap: 8px; }
body.lay .video-shell { flex: 0 1 auto; border-radius: var(--r-panel); background: var(--face); }
body.lay .viewer-top { display: none; }
body.lay .stage-wrap { flex: 0 1 auto; aspect-ratio: 16 / 9; width: 100%; min-height: 120px; }
body.lay.ar-43 .stage-wrap { aspect-ratio: 4 / 3; }
body.lay .vt-label { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 300px); padding: 4px 10px; border-radius: var(--r-photo); font-size: var(--fs-aux); color: var(--vid-ink); background: color-mix(in srgb, var(--vid-shade) 62%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; font-variant-numeric: tabular-nums; }
body.lay .vt-label:empty { display: none; }
body.lay .vt-boxes { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; padding: 2px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--vid-shade) 62%, transparent); }
body.lay .vt-boxes button { border: 1px solid transparent; background: transparent; color: color-mix(in srgb, var(--vid-ink) 78%, transparent); min-height: 26px; padding: 0 10px; font-size: var(--fs-min); border-radius: 6px; margin: 0; }
body.lay .vt-boxes button:hover:not(:disabled) { background: transparent; border-color: color-mix(in srgb, var(--vid-ink) 40%, transparent); }
body.lay .vt-boxes button.on { border-color: var(--vid-ink); color: var(--vid-ink); font-weight: 600; background: transparent; }
body.lay .draw-tip { top: 48px; }
body.lay .transport { height: 44px; padding: 0 8px 0 4px; gap: 8px; background: var(--bg); border-top: 1px solid var(--line); font-size: var(--fs-aux); }
body.lay .transport button { min-height: 32px; border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-aux); }
body.lay .transport .play { min-width: 36px; width: 36px; padding: 0; display: inline-grid; place-items: center; }
body.lay .transport .play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
body.lay #prev, body.lay #next { width: 32px; padding: 0; }
body.lay #seek { display: none; }
body.lay #frame-label { font-size: var(--fs-aux); color: var(--text); margin-right: auto; }
body.lay .stop-at { font-size: var(--fs-aux); color: var(--muted); }
body.lay .seg button.on, body.lay #zoom.on { border-color: var(--text); background: var(--bg); font-weight: 600; }

/* the time bar takes the height the video leaves (at least 112px, 72px on low screens); the playhead is the seek control */
body.lay .timeline { flex: 1 0 auto; height: auto; min-height: 112px; padding: 6px 12px 4px; border-radius: var(--r-panel); position: relative; display: flex; flex-direction: column; }
body.lay .timeline-head { position: absolute; right: 12px; top: 4px; z-index: 1; pointer-events: none; }
body.lay .timeline-head h2 { display: none; }
body.lay .legend { font-size: var(--fs-min); color: var(--muted); gap: 4px; }
body.lay #timeline { flex: 1; height: auto; min-height: 60px; touch-action: none; }
body.lay #timeline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-height: 819px) { body.lay .timeline { min-height: 72px; padding-top: 2px; } body.lay #timeline { min-height: 56px; } }
body.lay .tl-time { font-size: 12px; fill: var(--muted); }
.tl-mline { fill: var(--line); }
body.lay .legend i.lg-done { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--muted); margin-left: 10px; }
body.lay .legend i.lg-auto { width: 6px; height: 6px; border: 1.4px solid var(--accent); border-radius: 50%; background: none; margin-left: 10px; }
body.lay .legend i.lg-cand { background: var(--tb-cand); }
body.lay .legend i.lg-series { width: 12px; }
.tab-n { font-weight: inherit; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.tab-n:empty { display: none; }
body.lay #log-list li.auto #auto-toggle { display: none; }
body.lay .info-wrap + .primary, body.lay .lv-head .info-wrap { margin-left: 0; }
.dl.lv-amt > summary { min-height: 28px; padding: 0 10px; color: var(--muted); }
.dl.lv-amt > summary b { color: var(--text); font-weight: 600; }
.dl.lv-amt .dl-menu { left: 0; right: auto; min-width: 160px; }
.dl-menu button.on { font-weight: 600; }
.tl-outside { fill: var(--bg); fill-opacity: .62; pointer-events: none; }
.tl-edge { fill: var(--text); }
.tl-edge-hit { fill: transparent; cursor: ew-resize; }
.tl-knob { fill: var(--text); stroke: var(--bg); stroke-width: 2; cursor: grab; }
.tl-gap { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.tl-gap.now { stroke: var(--accent); }
.tl-cand { fill: var(--tb-cand); }
.tl-row-label { font: 500 12px var(--font); fill: var(--text); }
.tl-row-label.cand { fill: var(--muted); }
.tl-mark-label { font: 12px var(--font); fill: var(--text); }
.tl-assoc { stroke: var(--tb-target); stroke-width: 2; }
.tl-auto-mark { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.tl-done-mark { fill: var(--muted); }
.tick-mark { fill: var(--accent); }
.tl-check.open .tick-mark { fill: var(--accent); }

/* ---------- panels: tabs, list view, decision view, results, people ---------- */
body.lay .detail-tabs, .lpanel .lp-tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
body.lay .detail-tabs button, .lpanel .lp-tabs button { flex: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); min-height: 44px; padding: 0; font-size: var(--fs-body); margin-bottom: -1px; }
body.lay .detail-tabs button.on, .lpanel .lp-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
body.lay .detail-tabs button:hover:not(:disabled), .lpanel .lp-tabs button:hover:not(:disabled) { background: transparent; color: var(--text); }
body.lay .detail-body, .lpanel .lp-body { padding: 16px; overflow-y: auto; flex: 1; min-height: 0; font-size: var(--fs-body); line-height: 1.5; }
body.lay #detail-now { padding-bottom: 0; }

/* list view */
.lv-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.lv-title { font-size: var(--fs-panel); margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.lv-title b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-head .primary { margin-left: auto; min-height: 32px; padding: 0 14px; font-size: var(--fs-aux); }
.lv-amount { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: var(--fs-aux); color: var(--muted); }
.lv-amount .seg button { min-height: 28px; padding: 0 10px; font-size: var(--fs-aux); background: var(--bg); color: var(--muted); }
.lv-amount .seg button.on { color: var(--text); font-weight: 600; }
.lv-amount .seg button:first-child { border-radius: 6px 0 0 6px; } .lv-amount .seg button:last-child { border-radius: 0 6px 6px 0; }
.lv-auto { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-aux); color: var(--text); line-height: 1.55; }
.lv-auto summary { cursor: pointer; list-style: none; }
.lv-auto summary::-webkit-details-marker { display: none; }
.lv-auto summary .more-word { color: var(--accent); margin-left: 6px; white-space: nowrap; }
.lv-auto ol { list-style: none; margin: 8px 0 0; padding: 0; }
.lv-auto li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); }
.lv-filter { display: flex; gap: 16px; margin: 0 0 8px; font-size: var(--fs-aux); }
.lv-filter button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 2px 0; min-height: 26px; color: var(--muted); font-size: var(--fs-aux); }
.lv-filter button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
.lv-filter button:hover:not(:disabled) { background: transparent; color: var(--text); }
.lv-filter b { font-weight: inherit; margin-left: 4px; font-variant-numeric: tabular-nums; }
body.lay .work-list { border-top: 1px solid var(--line); margin: 0; }
body.lay .work-list li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 6px 2px; min-height: 52px; font-size: var(--fs-body); }
body.lay .work-list li img { width: 24px; height: 40px; border-radius: 4px; }
body.lay .work-list .w-main { gap: 0; }
body.lay .work-list .w-main > span { font-weight: 600; }
body.lay .work-list .w-main small { font-size: var(--fs-aux); color: var(--muted); }
body.lay .work-list .w-time { font-size: var(--fs-aux); color: var(--muted); }
body.lay .work-list li.on { background: var(--face); }
body.lay .work-list li.pair { grid-template-columns: 52px minmax(0, 1fr) auto; }
body.lay .more { color: var(--accent); background: transparent; border: 0; padding: 6px 0; min-height: 0; font-size: var(--fs-aux); }
.lv-pairs { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--fs-aux); }
.lv-pairs > summary { cursor: pointer; color: var(--text); font-weight: 600; }
.lv-pairs .work-list { margin-top: 8px; }

/* decision view */
.dv-nav { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; font-size: var(--fs-aux); }
.dv-nav button { min-height: 28px; padding: 0 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: var(--fs-aux); border-radius: 6px; }
.dv-nav button:hover:not(:disabled) { color: var(--text); border-color: var(--line); background: transparent; }
.dv-nav .dv-pos { margin-left: auto; }
.dv-nav kbd, .dv-actions kbd, .dv-key { font: 500 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.dv-head { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; }
.dv-head h3 { font-size: var(--fs-panel); margin: 0; line-height: 1.4; }
.dv-head .dv-meta { margin: 2px 0 0; font-size: var(--fs-aux); color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-head > div { flex: 1; min-width: 0; }
.dv-head > button { min-height: 32px; padding: 0 10px; border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-aux); flex: none; }
.dv-sit { margin: 0 0 4px; font-size: var(--fs-body); line-height: 1.5; }
.dv-ctx { margin: 0 0 8px; font-size: var(--fs-aux); color: var(--muted); line-height: 1.5; }
.dv-replay { display: flex; gap: 8px; margin: 8px 0 12px; }
.dv-replay button { min-height: 32px; padding: 0 12px; border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-aux); }
body.lay .scene-bar { margin: 0 0 8px; }
body.lay .scene-bar button { border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-aux); min-height: 28px; }
.dv-refs { display: flex; gap: 12px; margin: 0 0 16px; }
.dv-refs figure { margin: 0; }
.dv-refs img { width: 60px; height: 120px; object-fit: contain; background: var(--face); border-radius: var(--r-photo); display: block; }
.dv-refs figcaption { font-size: var(--fs-min); color: var(--muted); margin-top: 4px; white-space: nowrap; }
.dv-cands-head { display: flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: var(--fs-aux); font-weight: 600; }
.dv-cands-head .dv-key { font-weight: 500; margin-left: auto; }
.dv-advice { margin: 0 0 4px; font-size: var(--fs-body); display: flex; align-items: center; gap: 2px; }
.dv-note { margin: 0 0 8px; font-size: var(--fs-aux); color: var(--muted); }
body.lay #cands { border-top: 1px solid var(--line); }
body.lay .list-item { grid-template-columns: 16px 44px minmax(0, 1fr); gap: 12px; padding: 8px 6px; min-height: 72px; border-bottom: 1px solid var(--line); border-radius: 0; }
body.lay .list-item img { width: 44px; height: 88px; border-radius: var(--r-photo); }
body.lay .list-item.rec img { outline: 2px solid var(--cand); outline-offset: 0; }
body.lay .list-rank { font: 500 13px var(--font); color: var(--muted); }
body.lay .list-words strong { font-size: 15px; font-weight: 600; }
body.lay .list-words small { font-size: var(--fs-aux); color: var(--muted); }
body.lay .list-words small.read { color: var(--text); }
body.lay .list-words small.orig { display: inline; margin-left: 6px; font-size: var(--fs-min); }
body.lay .list-item.picked, body.lay .list-item.picked:hover:not(:disabled) { background: var(--bg); outline: 1px solid var(--text); outline-offset: -1px; border-radius: var(--r-btn); }
body.lay .list-item:hover:not(:disabled), body.lay .list-item.hover { background: var(--face); }
.dv-actions { position: sticky; bottom: 0; z-index: 2; background: var(--bg); margin: 12px -16px 0; padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.dv-actions .dv-picked { margin: 0; font-size: var(--fs-aux); color: var(--muted); line-height: 1.5; }
.dv-actions .dv-picked:empty { display: none; }
.dv-actions .row { display: flex; gap: 8px; }
.dv-actions button { flex: 1; min-height: 36px; border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-body); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.dv-actions button.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.dv-actions button.primary kbd { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.dv-actions button.primary:disabled { background: var(--face); border-color: var(--line); color: var(--muted); }
.dv-actions button.primary:disabled kbd { color: var(--muted); border-color: var(--line); }
.dv-pair { display: flex; align-items: center; gap: 16px; margin: 4px 0 16px; }
.dv-pair figure { margin: 0; }
.dv-pair img { width: 60px; height: 120px; object-fit: contain; background: var(--face); border-radius: var(--r-photo); display: block; }
.dv-pair figcaption { font-size: var(--fs-min); color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.dv-pair .gap { font-size: var(--fs-aux); color: var(--muted); text-align: center; }

/* results */
.rs h4 { font-size: var(--fs-aux); color: var(--text); margin: 24px 0 8px; display: flex; align-items: center; gap: 4px; }
.rs h4:first-child { margin-top: 0; }
.rs .props { border-top: 1px solid var(--line); }
.rs .prop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.rs .prop span { color: var(--text); }
.rs .prop b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.rs .prop small { grid-column: 1 / -1; font-size: var(--fs-aux); color: var(--muted); margin-top: -6px; }
.rs .rs-sent { margin: 0 0 8px; font-size: var(--fs-body); line-height: 1.55; }
.rs .rs-link { display: inline-block; margin-top: 8px; color: var(--accent); font-size: var(--fs-aux); text-underline-offset: 3px; }
.rs .amount { margin: 0 0 8px; }
.rs .amount-k { font-size: var(--fs-body); display: inline-flex; align-items: center; gap: 2px; }
.rs .amount .seg button { background: var(--bg); color: var(--muted); font-size: var(--fs-aux); min-height: 28px; }
.rs .amount .seg button.on { color: var(--text); font-weight: 600; }
.rs .amount .seg button:first-child { border-radius: 6px 0 0 6px; } .rs .amount .seg button:last-child { border-radius: 0 6px 6px 0; }
.rs button.wide { border-radius: var(--r-btn); background: var(--bg); font-size: var(--fs-aux); min-height: 36px; }
body.lay .rs .log { border: 0; display: block; }
body.lay .rs .log .list-head { display: none; }
body.lay .rs #log-list { padding: 0; max-height: none; overflow: visible; border-top: 1px solid var(--line); }
body.lay .rs #log-list li { padding: 8px 0; font-size: var(--fs-aux); grid-template-columns: 96px minmax(0, 1fr) auto; }
body.lay .rs #log-list .log-tag { display: none; }
body.lay .rs #log-list .log-what { color: var(--text); }
body.lay .rs #log-list li.auto .log-what small { display: none; }
body.lay .rs .ledger { margin: 12px 0 0; font-size: var(--fs-aux); }
body.lay .rs .log-prev { margin: 0 0 8px; }

/* people */
.pp-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.pp-head h3 { font-size: var(--fs-panel); margin: 0; white-space: nowrap; }
.pp-head input { flex: 1; min-width: 0; min-height: 32px; padding: 0 10px; font-size: var(--fs-aux); }
body.lay .people { display: flex; flex-direction: column; border: 0; min-height: 0; }
body.lay .people .list-head { display: none; }
body.lay #track-list { border-top: 1px solid var(--line); overflow: visible; }
body.lay #track-list li { padding: 8px 2px; }
body.lay #track-list li.divider { padding: 12px 2px 4px; font-size: var(--fs-aux); }
body.lay .t-name { font-size: var(--fs-body); font-weight: 600; }
body.lay .t-status, body.lay .t-time, body.lay .t-chip { font-size: var(--fs-aux); }
body.lay #track-list li.filtered-out { display: none; }

/* summary of one track */
.sm-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.sm-head img { width: 44px; height: 88px; object-fit: contain; background: var(--face); border-radius: var(--r-photo); flex: none; }
.sm-head h3 { font-size: var(--fs-panel); margin: 0; }
.sm-head p { margin: 2px 0 0; font-size: var(--fs-aux); color: var(--muted); font-variant-numeric: tabular-nums; }
body.lay .check-list li { font-size: var(--fs-aux); }
body.lay .check-list button { border-radius: 6px; background: var(--bg); font-size: var(--fs-aux); }
.sm-sec { margin: 16px 0 6px; font-size: var(--fs-aux); font-weight: 600; }
.sm-rec > summary { cursor: pointer; margin: 16px 0 6px; font-size: var(--fs-aux); font-weight: 600; }
body.lay .memo input { background: var(--bg); border-radius: var(--r-btn); min-height: 32px; }
body.lay .memo button { border-radius: var(--r-btn); background: var(--bg); }
body.lay .hint { font-size: var(--fs-aux); color: var(--muted); }

/* B: the left panel */
.lpanel { min-width: 0; }
body.lay-b #detail-list .lv-head .primary { padding: 0 10px; }
body.lay-b .lv-amount { flex-wrap: wrap; }
body.lay-b .lv-filter { gap: 12px; flex-wrap: wrap; }

/* English: longer words in the same widths */
html[lang="en"] body.lay .lv-filter { gap: 12px; }
html[lang="en"] body.lay .dv-actions button { font-size: var(--fs-aux); }

@media (prefers-reduced-motion: reduce) { body.lay * { transition: none !important; } }

/* small fixes after the first look */
body.lay .disclosure { display: none; }
.rangebar .undo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dv-head kbd { font: 500 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; }
.tl-edge { fill: var(--line-strong); }
.tl-edge-g:hover .tl-edge { fill: var(--text); }
/* people rows at the list height of the plan (photo 28x56) */
body.lay #track-list li { grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; padding: 6px 2px; min-height: 68px; align-content: center; }
body.lay .t-pic { width: 28px; height: 56px; border-radius: 4px; grid-row: span 2; }
body.lay .t-time { line-height: 1.5; }
body.lay #track-list li.more-row { min-height: 0; padding: 8px 2px; }
/* the header's detector and tracker choices without their small names (the choices say what they are; aria-label keeps the name) */
body.lay .param > span { display: none; }
body.lay .params { gap: 8px; }
/* B: the range bar fits the video column */
body.lay-b .rangebar { gap: 8px 10px; }
body.lay-b .rangebar .time-in { width: 68px; }
body.lay-b .rangebar .seg button { padding: 0 9px; }
body.lay-b .rangebar .answer { padding-left: 10px; }
body.lay-b .work-list li { grid-template-columns: 24px minmax(0, 1fr) 0; }
.rs .lv-auto { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; }
.rs .amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rs .amount:first-of-type { border-top: 1px solid var(--line); }
.rs-ref .dl-menu, .rs .lv-amt .dl-menu { left: auto; right: 0; }
/* the box choice on the video: one plate with the current choice, its three choices under it */
body.lay .vt-menu { position: absolute; right: 12px; top: 12px; z-index: 3; }
body.lay .vt-menu > summary { border: 0; min-height: 28px; padding: 0 10px; color: var(--vid-ink); background: color-mix(in srgb, var(--vid-shade) 62%, transparent); border-radius: var(--r-btn); font-size: var(--fs-min); }
body.lay .vt-menu > summary:hover { border: 0; background: color-mix(in srgb, var(--vid-shade) 78%, transparent); }
body.lay .vt-menu .dl-menu { min-width: 150px; top: calc(100% + 4px); }
body.lay .vt-menu .dl-menu button { border: 0; border-radius: 6px; margin: 0; font-size: var(--fs-aux); padding: 8px 10px; color: var(--text); background: transparent; }
body.lay .vt-menu .dl-menu button.on { font-weight: 600; background: var(--face); }
/* icon buttons of the transport and the decision view */
body.lay #zoom { width: 36px; padding: 0; display: inline-grid; place-items: center; }
body.lay #zoom svg, .dv-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dv-nav .dv-icon { width: 28px; padding: 0; display: inline-grid; place-items: center; }
.dv-nav .dv-step { font-size: var(--fs-body); }
.rs .rs-set { margin-top: 24px; }
/* B: the range bar over the video and the right panel; the left panel from the top */
html body.lay-b .layout { grid-template-rows: auto minmax(0, 1fr); }
body.lay-b #lpanel { grid-column: 1; grid-row: 1 / 3; }
body.lay-b #rangebar { grid-column: 2 / 4; grid-row: 1; padding: 0; }
body.lay-b #viewer { grid-column: 2; grid-row: 2; }
body.lay-b #detail { grid-column: 3; grid-row: 2; }
#rs-log h4 { margin-top: 24px; }
body.lay .legend i.lg-done { width: 2px; height: 8px; border: 0; border-radius: 0; background: var(--muted); margin-left: 10px; }
/* the time bar's height comes from the space the video leaves, never from the SVG's own 150px default */
body.lay .timeline { flex: 1 0 112px; }
body.lay #timeline { flex: 1 1 0; height: 0; min-height: 40px; }
@media (max-height: 819px) { body.lay .timeline { flex-basis: 72px; } }
@media (max-height: 819px) {
  .dv-refs img, .dv-pair img { width: 48px; height: 96px; }
  body.lay .list-item { min-height: 60px; padding: 6px; }
  body.lay .list-item img { width: 36px; height: 72px; }
  .dv-replay { margin: 6px 0 8px; }
  .dv-refs { margin-bottom: 10px; }
}
.dl-menu .dl-note { margin: 4px 10px 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-min); color: var(--muted); }
.rs .rs-corr { margin-top: 16px; }

/* ---------- D3a (2026-11-19 night): fixes from the blind comparison, layout A first ----------
   the download button with its name, the box choice as an icon plate, the flagged items' boxes, the kind on the list rows, the
   decision view that fits three candidates and one row of answers above the fold, rank numbers on the candidate photos, the
   time bar that folds while deciding (candidate rows instead of the people line). Tokens only; no new colour. */
/* range bar: the TraceMend output button, the small menu of the other file, the (i) of the format */
.rangebar .rb-dl { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.rangebar .rb-main { min-height: 32px; padding: 0 12px; font-size: var(--fs-aux); border-radius: var(--r-btn) 0 0 var(--r-btn); }
.rangebar .rb-more > summary { min-height: 32px; padding: 0 8px; border-left: 0; border-radius: 0 var(--r-btn) var(--r-btn) 0; }
.rangebar .rb-more .dl-menu { right: 0; min-width: 220px; }
.rangebar .rb-dl .info-wrap { margin-left: 2px; }
/* the box choice on the video: an icon, its choice in the title */
body.lay .vt-menu > summary { gap: 4px; padding: 0 8px; }
body.lay .vt-menu > summary svg:first-child { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
body.lay .vt-mode { display: none; }
/* the boxes of the tracks with a flagged item (the default choice): the target colour, thin */
body.lay .box.flag { stroke: var(--vid-accent); stroke-width: 1.8; stroke-opacity: .95; }
/* A list rows: the kind instead of the time (the time in the row's title) */
body.lay .work-list .w-kind { font-size: var(--fs-aux); color: var(--muted); white-space: nowrap; }

/* decision view */
.dv-nav { margin: 0 0 8px; }
.dv-nav .dv-pos { font-size: var(--fs-aux); color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; }
.dv-head { align-items: center; gap: 10px; }
.dv-head > h3 { flex: none; }
.dv-head > .dv-meta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; font-size: var(--fs-aux); color: var(--muted); font-variant-numeric: tabular-nums; }
.dv-sit { margin: 0 0 2px; }
.dv-ctx { margin: 0 0 6px; }
.dv-ref-row { display: flex; align-items: flex-start; gap: 16px; margin: 8px 0 12px; }
.dv-ref-row .dv-refs { margin: 0; gap: 10px; flex: none; }
.dv-refs img { width: 48px; height: 96px; }
.dv-ref-row .dv-replay { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.dv-replay button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; white-space: nowrap; }
.dv-replay button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dv-replay-row { flex-direction: row; }
/* candidate rows: the photo carries its rank number as on the video (raspberry with the white ring) */
body.lay .list-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 6px; min-height: 0; }
body.lay .cand-pic { position: relative; display: block; width: 44px; }
body.lay .list-item .cand-pic img { width: 44px; height: 88px; object-fit: contain; background: var(--face); border-radius: var(--r-photo); }
body.lay .list-item.rec .cand-pic img { outline: 2px solid var(--cand); outline-offset: 0; }
body.lay .cand-no { position: absolute; left: 3px; top: 2px; font: 700 16px/1 var(--font); color: var(--vid-cand); font-variant-numeric: tabular-nums; pointer-events: none;
  text-shadow: -1px -1px 0 var(--vid-ring), 1px -1px 0 var(--vid-ring), -1px 1px 0 var(--vid-ring), 1px 1px 0 var(--vid-ring), 0 0 3px var(--vid-ring); }
body.lay .list-words { gap: 2px; }
/* one row of answers: accept (the main one when a candidate is picked), split, reject; pinned to the bottom of the panel */
body.lay #detail-now:not([hidden]) { display: flex; flex-direction: column; }
body.lay #detail-now > * { flex: none; }
.dv-actions { padding: 12px 16px 14px; gap: 0; margin-top: auto; }
.dv-actions .row { display: flex; gap: 8px; }
.dv-actions .row #ans-pick { flex: 1.5 1 0; }
.dv-actions .row #ans-none, .dv-actions .row #ans-keep { flex: 1 1 0; }
.dv-actions button { min-width: 0; padding: 0 10px; }
.dv-actions button.primary kbd + kbd { margin-left: 4px; }
.dv-actions button:disabled { background: transparent; border-color: var(--line); color: color-mix(in srgb, var(--muted) 60%, transparent); }
.dv-actions button:disabled kbd { color: inherit; border-color: var(--line); }
/* the pair view keeps two answers in the same row */
.dv-actions .row #pair-same { flex: 1.5 1 0; } .dv-actions .row #pair-diff { flex: 1 1 0; }

/* the time bar while deciding: only the track's rows (its output, its candidates); the video takes the height it can use */
body.lay.judging .timeline { flex: 1 0 56px; min-height: 56px; }
@media (max-height: 819px) { body.lay.judging .timeline { flex-basis: 56px; min-height: 56px; } }
.tl-cand { fill: var(--tb-cand); fill-opacity: .55; }
.tl-cand-row.on .tl-cand { fill-opacity: 1; }
.tl-cand-row.on .tl-row-label.cand { fill: var(--text); }
.tl-cand-no { font: 700 12px var(--font); fill: var(--cand); }

/* low screens: smaller photos so the three candidates and the answers stay above the fold */
@media (max-height: 819px) {
  .dv-refs img, .dv-pair img { width: 40px; height: 80px; }
  .dv-ref-row { margin: 6px 0 8px; }
  body.lay .list-item { padding: 4px 6px; }
  body.lay .list-item .cand-pic img { width: 36px; height: 72px; }
  body.lay .cand-pic { width: 36px; }
  body.lay .list-item { grid-template-columns: 36px minmax(0, 1fr); }
  .dv-actions { padding: 10px 16px 12px; }
  .dv-actions button { min-height: 32px; }
}
html[lang="en"] body.lay .dv-replay button { font-size: var(--fs-aux); }
/* B: the range inputs hold 00:00.00 */
body.lay-b .rangebar .time-in { width: 76px; }
/* the frame steps and the item steps as icons (D3a) */
body.lay #prev svg, body.lay #next svg, .dv-nav .dv-step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
body.lay #prev, body.lay #next { display: inline-grid; place-items: center; }
.dv-nav .dv-step { width: 28px; padding: 0; display: inline-grid; place-items: center; }
/* the "how the result changed" heading keeps its space under the link above (the older #detail-analysis h4:first-child rule won) */
body.lay #detail-analysis #rs-log > h4 { margin-top: 24px; }
/* lower still (1536x730): smaller photos so the third candidate stays above the answer row */
@media (max-height: 759px) {
  .dv-refs img { width: 34px; height: 68px; }
  body.lay .list-item { grid-template-columns: 32px minmax(0, 1fr); padding: 3px 6px; }
  body.lay .cand-pic { width: 32px; }
  body.lay .list-item .cand-pic img { width: 32px; height: 64px; }
  body.lay .cand-no { font-size: 14px; left: 2px; }
  .dv-nav { margin-bottom: 4px; }
}

/* coordinating session 11-19: same order as the other screens, tracker output first, then TraceMend output */
body.lay .rangebar .answer { display: flex; }
body.lay .rangebar .answer-before { order: -1; }
body.lay .rangebar .answer-before:not(:empty)::after { content: " \2192"; margin-left: 8px; }

/* ---------- D6 (2026-11-20): layout A draws the review on the video (concept 가1, the stops route) ----------
   no time panel: the video takes the column's height, one progress line sits in the transport row. On the video (--vid-* in both
   themes): routes of the open track (target) and its candidates (raspberry) with a white halo, stops by shape (filled dot, hollow
   circle, ring, cross), rank numbers, label plates in the app's bubble colours; the legend, the camera note and the small map as
   plates in the corners. Tokens only; no new colour. */
html body.lay-a .timeline { display: none; }
html body.lay-a .video-shell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html body.lay-a .stage-wrap { flex: 1 1 0; aspect-ratio: auto; width: 100%; height: auto; min-height: 160px; background: var(--vid-shade); overflow: hidden; }
html body.lay-a .stage { width: 100%; height: 100%; }
html body.lay-a #frame-label { margin-right: 0; min-width: 62px; font-variant-numeric: tabular-nums; }
body.lay-a .transport { gap: 6px; }
body.lay-a .prog { flex: 1 1 auto; min-width: 120px; height: 40px; display: block; touch-action: none; cursor: pointer; overflow: visible; }
body.lay-a .prog:focus { outline: none; }
body.lay-a .prog:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
body.lay-a .pg-info { display: inline-flex; margin-right: 2px; }
.info-wrap.up .info-pop { top: auto; bottom: calc(100% + 8px); }
/* the progress line */
.pg-base { fill: var(--tb-base); }
.pg-run { fill: var(--tb-target); }
.pg-cand { fill: var(--tb-cand); }
.prog.accept .pg-cand-g.focus .pg-cand { fill: var(--tb-target); }
.pg-gap { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.pg-gap.now { stroke: var(--accent); }
.pg-wave { fill: var(--tb-target); fill-opacity: .26; pointer-events: none; }
.pg-wave-l { fill: none; stroke: var(--tb-target); stroke-width: 1.2; stroke-linejoin: round; pointer-events: none; }
.pg-grid { fill: var(--line-strong); pointer-events: none; }
.pg-pairgap { fill: var(--accent); fill-opacity: .35; }
.pg-tick .tick-mark { fill: var(--accent); fill-opacity: .5; }
.pg-tick.near .tick-mark { fill-opacity: 1; }
.pg-tick.open .tick-mark { fill-opacity: 1; }
.pg-knob { fill: var(--text); stroke: var(--bg); stroke-width: 2; cursor: grab; }
.pg-outside { fill: var(--bg); fill-opacity: .68; pointer-events: none; }
.pg-edge { fill: var(--line-strong); }
.pg-edge-g:hover .pg-edge { fill: var(--text); }
.pg-edge-hit { fill: transparent; cursor: ew-resize; }
.pg-brush { fill: var(--accent); fill-opacity: .12; }
.pg-band { fill: var(--line-strong); }
.pg-band.stop { fill: var(--muted); }
.pg-mk .c { stroke: var(--bg); stroke-width: 1.4; }
.pg-mk.start .c { fill: var(--accent); }
.pg-mk.cstart .c { fill: var(--cand); }
.prog.accept .pg-mk.cstart .c { fill: var(--accent); }
.pg-mk.break .c { fill: var(--bg); stroke: var(--accent); stroke-width: 1.8; }
.pg-mk.over .x { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; }
.pg-mk .hit { fill: transparent; }
/* the people line beside the count in the range bar */
.rangebar .rb-spark { width: 112px; height: 26px; flex: none; cursor: pointer; margin-left: 4px; }
.rb-spark .sp-area { fill: var(--tb-target); fill-opacity: .16; }
.rb-spark .sp-now { fill: none; stroke: var(--tb-target); stroke-width: 1.4; stroke-linejoin: round; }
.rb-spark .sp-before { fill: none; stroke: var(--line-strong); stroke-width: 1.1; stroke-dasharray: 3 2; }
.rb-spark .sp-cur { fill: var(--text); fill-opacity: .55; }
/* plates in the video's corners */
body.lay-a .ov-legend, body.lay-a .ov-cam { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 3px 10px; border-radius: var(--r-photo);
  font-size: var(--fs-min); line-height: 18px; color: var(--vid-text); background: var(--vid-bub); border: 1px solid var(--vid-bub-line); white-space: nowrap; }
body.lay-a .ov-legend { left: 12px; bottom: 12px; }
body.lay-a .ov-cam { left: 12px; top: 12px; }
body.lay-a .ov-legend span { display: inline-flex; align-items: center; gap: 6px; }
body.lay-a .ov-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; flex: none; box-shadow: 0 0 0 1px var(--vid-ring); }
body.lay-a .ov-legend i.lg-sw { background: var(--vid-accent); }
body.lay-a .ov-legend i.lg-fr { background: var(--vid-ring); border: 2.4px solid var(--vid-accent); }
body.lay-a .ov-legend i.lg-start { background: var(--vid-accent); }
body.lay-a .ov-legend i.lg-cstart { background: var(--vid-cand); }
body.lay-a .ov-legend i.lg-start.two { position: relative; margin-right: 7px; }
body.lay-a .ov-legend i.lg-start.two::after { content: ""; position: absolute; left: 6px; top: -1.5px; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; background: var(--vid-cand); box-shadow: 0 0 0 1px var(--vid-ring); }
body.lay-a .ov-legend i.lg-brk { background: var(--vid-ring); border: 2.4px solid var(--vid-accent); }
body.lay-a .ov-legend i.lg-now { width: 12px; height: 12px; background: transparent; border: 2px solid var(--vid-text); box-shadow: none; }
body.lay-a .ov-legend i.lg-over { border-radius: 0; box-shadow: none; background: linear-gradient(45deg, transparent 40%, var(--vid-text) 40%, var(--vid-text) 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, var(--vid-text) 40%, var(--vid-text) 60%, transparent 60%); }
body.lay-a .ov-mini { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 132px; height: auto; border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vid-ring) 70%, transparent), 0 4px 14px rgb(0 0 0 / 0.35); }
/* routes and stops on the video (source coordinates; strokes in screen pixels) */
.ov-trk path, .ov-arc, .ov-arc-h, .ov-lead { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.ov-ln-h { stroke: var(--vid-ring); stroke-opacity: .85; stroke-width: 6.5; }
.ov-ln { stroke-width: 3.5; transition: stroke 240ms ease-out; }
.ov-trk.tgt .ov-ln { stroke: var(--vid-accent); }
.ov-trk.cand .ov-ln { stroke: var(--vid-cand); }
.ov-gap { stroke-width: 2.2; stroke-dasharray: 0.1 6; }
.ov-trk.tgt .ov-gap { stroke: var(--vid-accent); }
.ov-trk.cand .ov-gap { stroke: var(--vid-cand); }
.ov-trk.dim { opacity: .35; }
.ov-arc-h { stroke: var(--vid-shade); stroke-opacity: .45; stroke-width: 4.2; stroke-dasharray: 0.1 6.5; }
.ov-arc { stroke: var(--vid-ring); stroke-width: 2.4; stroke-dasharray: 0.1 6.5; transition: stroke 240ms ease-out; }
#overlay.accept .ov-trk.cand.focus .ov-ln, #overlay.accept .ov-trk.cand.focus .ov-gap, #overlay.accept .ov-arc { stroke: var(--vid-accent); }
.ov-st .c, .ov-ring, .ov-ring-h { vector-effect: non-scaling-stroke; }
.ov-st .c { stroke: var(--vid-ring); stroke-width: 2; transition: fill 240ms ease-out; }
.ov-st.start .c { fill: var(--vid-accent); }
.ov-st.cstart .c { fill: var(--vid-cand); }
#overlay.accept .ov-st.cstart.focus .c { fill: var(--vid-accent); }
.ov-st.break .c { fill: var(--vid-ring); fill-opacity: .92; stroke: var(--vid-accent); stroke-width: 2.6; }
.ov-st .hit { fill: transparent; stroke: none; cursor: help; }
.ov-st.over .xh { fill: none; stroke: var(--vid-shade); stroke-opacity: .55; stroke-width: 5.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-st.over .x { fill: none; stroke: var(--vid-ring); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-ring-h { fill: none; stroke: var(--vid-shade); stroke-opacity: .4; stroke-width: 5; pointer-events: none; }
.ov-ring { fill: none; stroke: var(--vid-ring); stroke-width: 2.4; pointer-events: none; }
.ov-num { fill: var(--vid-cand); font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: var(--vid-ring); pointer-events: none; font-variant-numeric: tabular-nums; }
.ov-num.faint { fill-opacity: .6; stroke-opacity: .6; }
.ov-cbox { fill: none; stroke: var(--vid-cand); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
#overlay.accept .ov-cbox.focus { stroke: var(--vid-accent); }
body.lay-a .box.candidate.ghost { stroke-opacity: 0; fill: transparent; }
body.lay-a .box.candidate.ghost:hover { stroke-opacity: .7; }
body.lay-a .box.chosen { stroke-width: 2; fill: none; }
#overlay.accept .box.chosen { stroke: var(--vid-accent); }
.ov-lead { stroke: var(--vid-ring); stroke-width: 1.4; stroke-opacity: .9; }
.ov-pill { pointer-events: none; }
.ov-pill .bg { fill: var(--vid-bub); stroke: var(--vid-bub-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ov-pill .tx { font-family: var(--font); font-weight: 500; fill: var(--vid-text); dominant-baseline: central; font-variant-numeric: tabular-nums; }
.ov-pill .tx .cand { fill: var(--cand); font-weight: 600; }
.ov-pill .tx .acc { fill: var(--accent); font-weight: 600; }
.ov-pill.gapline .tx { font-weight: 600; }
/* the flagged places with nothing open */
.ov-spot { vector-effect: non-scaling-stroke; pointer-events: none; }
.ov-spot.switch { fill: var(--vid-accent); fill-opacity: .58; stroke: var(--vid-ring); stroke-opacity: .55; stroke-width: 1; }
.ov-spot.frag { fill: var(--vid-ring); fill-opacity: .55; stroke: var(--vid-accent); stroke-opacity: .7; stroke-width: 2.2; }
.ov-spot.switch.on { fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; }
.ov-spot.frag.on { fill-opacity: .92; stroke-opacity: 1; stroke-width: 2.6; }
.ov-spot-hit { fill: transparent; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ov-ln, .ov-arc, .ov-st .c { transition: none; } }
html[lang="en"] body.lay-a .ov-legend { gap: 10px; }
