/* Output comparison (D3, 2026-11-19 night; D2 the same evening; first form 2026-11-17). Full width with 16px sides. The count row (text, other ranges,
   the number of items, the undo of this screen's joins, the download) over two 16:9 video panes; under them one track ID record:
   an axis row that is the seek bar, then one row per item with three columns (track IDs and kind; the two bars on the time axis, the
   tracker output above the TraceMend output; the change of the count and the buttons). A chosen row opens its photos and reasons.
   Colours are tokens; on the video the --vid-* tokens (same in both themes). No pills, no tinted boxes; 1px lines.
   D9 (2026-11-21): rows carry tags instead of photos and count lines; the opened row a line of facts; a plate on each pane during a clip. */
:root{--panel:var(--bg);--ink:var(--text);--sub:var(--muted);--weak:var(--muted);font-family:var(--font);font-synthesis:none;color:var(--ink);background:var(--bg);font-size:14px}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;height:100%}
body{display:flex;flex-direction:column;overflow:hidden;background:var(--bg);line-height:1.5;word-break:keep-all}
a{color:inherit;text-decoration:none}
button{font:inherit;font-size:var(--fs-aux);color:var(--text);border:1px solid var(--line);border-radius:var(--r-btn);background:var(--bg);height:var(--btn-h-sm);padding:0 12px;cursor:pointer;line-height:1;white-space:nowrap}
button:hover:not(:disabled){border-color:var(--line-strong)}button:disabled{opacity:.45;cursor:default}
button.main{background:var(--text);border-color:var(--text);color:var(--bg);font-weight:600}button.main:hover:not(:disabled){border-color:var(--text);opacity:.88}
.rec{color:var(--muted);font-size:var(--fs-aux);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;padding:12px 16px}

/* the count row */
.ask{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;min-height:40px} /* D9 port: the right group wraps under a long question (English with the undo button) */
.ask b{font-size:var(--fs-panel);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ask-go{display:inline-flex;gap:16px;font-size:var(--fs-aux);white-space:nowrap}
.ask-go a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ask-go a:hover{color:var(--text)}
.ask-r{margin-left:auto;display:inline-flex;align-items:center;gap:8px;flex:none}
.ask-n{font-size:var(--fs-aux);color:var(--text);margin-right:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
#reset{border-color:transparent;color:var(--muted)}#reset:hover{border-color:var(--line);color:var(--text)}

/* two video panes, 16:9; on a short window the picture keeps its shape inside a smaller frame */
.panes{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pane{margin:0;min-width:0}
.pane figcaption{display:flex;align-items:baseline;gap:16px;height:32px}
.pane figcaption>b{font-size:var(--fs-body);font-weight:600}
.big{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.big small{font-size:var(--fs-aux);color:var(--muted)}
.big b{font-size:var(--fs-body);font-weight:600;font-variant-numeric:tabular-nums}
.cv-wrap{position:relative;background:var(--face);line-height:0;border-radius:var(--r-panel);overflow:hidden}
canvas{width:100%;height:auto;aspect-ratio:16 / 9;max-height:calc(100vh - 420px);object-fit:contain;display:block}
.legend{position:absolute;left:8px;bottom:8px;display:flex;gap:14px;align-items:center;padding:4px 10px;border-radius:var(--r-photo);background:color-mix(in srgb,var(--vid-shade) 72%,transparent);color:var(--vid-ink);font-size:var(--fs-min);line-height:1.5;pointer-events:none}
.legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.legend i{display:inline-block;width:22px;height:8px;border-radius:4px}
.legend i.soft{background:color-mix(in srgb,var(--vid-ring) 30%,transparent)}.legend i.mid{background:var(--vid-ring)}.legend i.blue{background:var(--vid-accent)}.legend i.blue2{background:var(--vid-cand);margin-left:-3px}.legend i.bluesoft{background:color-mix(in srgb,var(--vid-accent) 45%,transparent)}
.legend i.ln.cand{border-top-color:var(--vid-cand)}.legend i.dash.cand{border-top:3px dashed var(--vid-cand)}
.legend i.gbox{width:11px;height:14px;border-radius:1px;background:none;border:1.5px dashed var(--vid-ring)}
.legend .lg-id{font-weight:600;font-variant-numeric:tabular-nums}.legend .lg-id s{font-weight:400;opacity:.82;margin-left:4px}
/* D9: what the output does at this moment of the clip, on the pane's top left (the plate of the review screen's event span) */
.plate{position:absolute;left:8px;top:8px;margin:0;padding:3px 10px;border-radius:var(--r-photo);background:color-mix(in srgb,var(--vid-shade) 72%,transparent);color:var(--vid-ink);font-size:var(--fs-aux);font-weight:600;line-height:1.5;word-spacing:2px;white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none}
.legend i.ln,.legend i.dash{background:none}.legend i.ln{height:0;border-radius:0;border-top:3px solid var(--vid-ring)}.legend i.ln.blue{border-top-color:var(--vid-accent)}.legend i.dash{height:0;border-radius:0;border-top:3px dashed var(--vid-accent)}.legend i.dash.pale{border-top-color:color-mix(in srgb,var(--vid-accent) 60%,transparent)}

/* the track ID record: the axis row (seek bar) and one row per item */
.lanes-box{flex:1;min-height:180px;display:flex;flex-direction:column;border-top:1px solid var(--line)}
.lanes-head{flex:none;display:flex;align-items:center;gap:12px;padding:8px 0 4px}
.lanes-head #play{min-width:72px}.lanes-head #show-all{margin-left:auto}
.clock{font-variant-numeric:tabular-nums;font-size:var(--fs-aux);white-space:nowrap;min-width:56px}
h2{font-size:var(--fs-body);font-weight:600;margin:0 0 0 8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lkey{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-min);color:var(--muted);white-space:nowrap}
.lkey i{display:inline-block;width:14px;height:12px;background:linear-gradient(var(--tb-base) 0 5px,transparent 5px 7px,var(--tb-target) 7px 12px);border-radius:2px}
.hint,.load{font-size:var(--fs-min);color:var(--muted);white-space:nowrap}
.lanes-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
.lrow{display:grid;grid-template-columns:132px minmax(0,1fr) 480px;grid-template-rows:64px auto;column-gap:16px;align-items:stretch}
.axis-row{position:sticky;top:0;z-index:2;background:var(--bg);grid-template-rows:30px}
.l-bars{display:block;width:100%;height:100%;overflow:visible}
#rows .lrow{border-bottom:1px solid var(--line);cursor:pointer}
#rows .lrow:hover .l-who b{text-decoration:underline;text-underline-offset:3px}
#rows .lrow.sel{background:var(--face)}
.l-who{display:flex;flex-direction:column;justify-content:center;padding:0 0 0 8px;min-width:0}
.l-who b{font-size:var(--fs-body);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.l-who small{font-size:var(--fs-min);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-who small.fix{color:var(--text)}
.l-txt{display:flex;align-items:center;gap:12px;padding:0 8px 0 0;min-width:0}
/* D9: one # tag (the kind; words only, no box behind it) in the text colour (muted when it is not in the TraceMend output), then the time
   and the length without #, muted, joined by a middle dot */
.tags{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;font-size:var(--fs-aux);line-height:1.55;color:var(--muted);font-variant-numeric:tabular-nums}
.tags .tg,.tags .meta{white-space:nowrap}.tags .tg.k{color:var(--text);font-weight:500}.lrow.off .tags .tg.k{color:var(--muted)}
.acts{display:flex;gap:4px;flex:none;align-items:flex-start}.acts button{height:28px;padding:0 9px;font-size:var(--fs-min)}
.acts .act{display:flex;flex-direction:column;align-items:center;gap:1px}
.acts .rec{font-size:11px;line-height:1.2;color:var(--muted)}           /* D3: the recommendation is a word, not a chosen-looking button */
.acts button.on{border-color:var(--text);background:var(--text);color:var(--bg);font-weight:600}   /* a decision the reviewer made */
/* D9: the opened row: the span the correction changes, the reason, the VLM check (no photos) */
.l-more{grid-column:2 / -1;display:flex;align-items:flex-start;padding:0 8px 12px 0;cursor:default}
.facts{display:flex;flex-wrap:wrap;gap:4px 28px;margin:0;font-size:var(--fs-aux);line-height:1.55;font-variant-numeric:tabular-nums}
.facts div{display:flex;align-items:baseline;gap:8px;min-width:0}.facts dt{color:var(--muted);white-space:nowrap}.facts dd{margin:0;color:var(--text)}
.col-h{font-size:var(--fs-min);color:var(--muted);align-self:flex-end;padding-bottom:4px;white-space:nowrap}
.axis-row .l-txt{align-items:flex-end}
/* (i): the explanation of a name, shown on hover and keyboard focus (the same as upload.css) */
.tip{position:relative;display:inline-flex;vertical-align:-3px;margin-left:4px}
.tip-b{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:0;background:none;color:var(--muted);cursor:help;border-radius:50%}
.tip-b svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.tip-b:hover{color:var(--text);border:0}
.tip [role=tooltip]{display:none;position:absolute;z-index:30;left:-8px;top:calc(100% + 6px);width:max-content;max-width:300px;padding:8px 10px;border-radius:var(--r-btn);
  background:var(--text);color:var(--bg);font-size:var(--fs-aux);font-weight:400;line-height:1.5;white-space:normal;text-align:left}
.tip:hover [role=tooltip],.tip:focus-within [role=tooltip]{display:block}
.tip.end [role=tooltip]{left:auto;right:-8px}
.dl-wrap,.ask-n{display:inline-flex;align-items:center}
.empty{padding:16px 8px;color:var(--muted);font-size:var(--fs-aux)}

#axis text{font-size:12px;fill:var(--muted);font-variant-numeric:tabular-nums}
#axis .axis{stroke:var(--line-strong);stroke-width:2;stroke-linecap:round}#axis .tick{stroke:var(--line-strong);stroke-width:1}
#axis .knob{fill:var(--text);stroke:var(--bg);stroke-width:2}#axis .axis-hit{fill:transparent;cursor:pointer}
.l-bars .bar{fill:var(--tb-base)}.l-bars .idt{fill:var(--text);font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}.l-bars .idt.fix{fill:var(--vid-ink)}
.l-bars .open{stroke:var(--line-strong);stroke-width:1.5;stroke-dasharray:4 4}
.l-bars .join{opacity:.42}
.clip-band{fill:var(--accent);fill-opacity:.08}.ev-band{fill:var(--accent);fill-opacity:.22}#rows .ev-band{fill-opacity:.14}   /* D9: the chosen row's clip and its event */
.now{stroke:var(--text);stroke-width:1.5}
