:root {
  --bg: #0f1115;
  --panel: #181b22;
  --panel-2: #20242d;
  --border: #2a2f3a;
  --text: #e6e8ec;
  --muted: #8b94a3;
  --accent: #4f8cff;
  --good: #2ecc71;
  --bad: #ff5d5d;
  --warn: #ffb454;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}
header h1 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.logout-btn {
  position: absolute; top: 14px; right: 22px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.logout-btn:hover { border-color: var(--accent); }

/* Login gate — a full-screen overlay shown when auth is required and no valid token. */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.login-card {
  display: flex; flex-direction: column; gap: 12px; width: min(360px, 90vw);
  padding: 28px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border);
}
.login-card h2 { margin: 0; font-size: 18px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.login-card input {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 9px 11px; font-size: 14px;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card button.primary { margin-top: 4px; padding: 10px; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.hidden { display: none !important; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.tab.active { color: var(--text); background: var(--panel-2); border-color: var(--accent); }

main { padding: 18px 22px; max-width: 1500px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr; } }
.col { display: flex; flex-direction: column; gap: 18px; }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 15px; }
.card h3 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
label.check { display: flex; align-items: center; gap: 6px; }
input, select {
  width: 100%; margin-top: 4px; padding: 7px 9px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; font-size: 13px;
}
label.check input { width: auto; margin-top: 0; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; }

button.primary {
  background: var(--accent); color: #fff; border: none;
  padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
}
button.primary:disabled { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12px; }

.warn { color: var(--warn); font-size: 12px; }
.meta { font-size: 12px; margin-bottom: 10px; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.badge.running { color: var(--warn); border-color: var(--warn); }
.badge.done { color: var(--good); border-color: var(--good); }
.badge.failed { color: var(--bad); border-color: var(--bad); }

.log {
  background: #0a0c10; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px; height: 280px; overflow: auto; font-family: var(--mono);
  font-size: 12px; white-space: pre-wrap; color: #c8d0db; margin: 0;
}

.runs-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.runs-list li {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  margin-bottom: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px;
}
.runs-list li:hover { background: var(--panel-2); }
.runs-list .rid { font-family: var(--mono); font-size: 11px; }

.gallery { display: flex; flex-wrap: wrap; gap: 6px; max-height: 320px; overflow: auto; }
.gallery img { height: 96px; border-radius: 4px; border: 1px solid var(--border); cursor: pointer; }

.links a { display: inline-block; margin-right: 12px; color: var(--accent); font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.stat { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.stat .n { font-size: 22px; font-weight: 700; }
.stat .l { font-size: 11px; color: var(--muted); }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 92vh; }

/* Bulk / backend-videos delta table */
.bulk-table td, .bulk-table th { white-space: nowrap; }
.bulk-table { display: block; max-height: 60vh; overflow: auto; }
.td-delta { font-weight: 700; }
.delta-zero { color: var(--good); }
.delta-pos { color: var(--warn); }   /* txn > inferred → likely a miss */
.delta-neg { color: var(--bad); }    /* inferred > txn → likely overcount */
.cnt { font-weight: 600; }           /* inferred item count, next to its Δ */
/* "What Gemini saw" review — scene_notes + per-person reasons */
.gem-review { margin-top: 14px; }
.gem-review details { margin: 4px 0; padding: 4px 0; border-bottom: 1px solid var(--border); }
.gem-review summary { cursor: pointer; font-family: var(--mono, monospace); font-size: 12px; }
.clip-video { max-width: 100%; display: block; margin: 6px 0; border-radius: 4px; background: #000; }
/* Eval final score + totals row */
.eval-score { font-size: 14px; margin: 2px 0 8px; }
.eval-score strong { color: var(--text); }
tr.eval-totals td { border-top: 2px solid var(--border); font-weight: 700; }
.flag-underring { color: var(--warn); font-weight: 600; font-size: 12px; }
.txn-void strong, .txn-void { text-decoration: line-through; opacity: .8; }
.txn-detail { margin: 4px 0 8px; padding-left: 8px; border-left: 2px solid var(--border); font-size: 12px; }
/* Per-clip inspection panel (log + per-person + frames/crops) inside the eval table */
.clip-inspect { padding: 8px 4px; border-left: 2px solid var(--accent); }
.clip-inspect .log { height: 200px; margin: 6px 0; }
.clip-inspect h3 { margin: 10px 0 6px; }
select[multiple] { padding: 4px; }
/* Clip reused from the local cache (no re-download) */
.cache-hit { color: var(--good); font-weight: 600; }

/* Secondary button + the "run on baseline videos" affordance */
button.secondary {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--accent);
  padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600;
}
button.secondary:hover { background: var(--accent); color: #fff; }
button.secondary:disabled { opacity: .5; cursor: not-allowed; }
.baseline-run { display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.baseline-run .or-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#preview-eval { margin-right: 8px; }
#preview-panel { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.preview-headline { font-size: 13px; margin: 0 0 8px; }
.preview-legend { font-size: 11px; margin: 0 0 10px; }
.preview-legend .cache-hit, .preview-legend .warn { font-weight: 600; }
.preview-table td, .preview-table th { white-space: nowrap; }
.preview-table td.pick, .preview-table th.pick { width: 1.4em; text-align: center; }
.preview-table .sale-pick { margin: 0; cursor: pointer; }
/* A sale with no footage is shown (it stays in the denominator) but is unwatchable. */
.preview-table tr.row-nofootage { opacity: .45; }
.preview-table tr.row-nofootage .sale-pick { cursor: not-allowed; }
.preview-vids { white-space: normal; }
.preview-vids .vid-name {
  font-size: 11px; line-height: 1.5; max-width: 22ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Video-first preview: each row is one video (left) and the transactions in it (right). */
.preview-timeline { width: 100%; }
.preview-timeline th { text-align: left; font-size: 12px; }
.preview-timeline .sel-all-lbl { cursor: pointer; user-select: none; }
.preview-timeline .sel-all-lbl .sale-pick { margin-right: 4px; vertical-align: middle; }
.tl-row td { vertical-align: top; padding: 7px 10px; border-top: 1px solid var(--border); }
.tl-video { white-space: nowrap; }
.tl-video strong { font-size: 13px; }
.tl-vtime { font-size: 11px; margin-top: 2px; }
.tl-txns { white-space: normal; }
/* Transaction-first preview: sale on the left, its camera-angle chips on the right. */
.tl-txn { white-space: nowrap; }
.tl-txntime { font-size: 13px; font-weight: 600; }
.tl-angles { white-space: normal; }

/* Camera-column preview: one row per sale, one column per camera; the header checkbox
   toggles that whole camera on/off for the run. An off column's cells grey out. */
.preview-cams { width: 100%; }
.preview-cams th, .preview-cams td { border-top: 1px solid var(--border); padding: 6px 10px; vertical-align: top; }
.preview-cams th { text-align: left; font-size: 12px; white-space: nowrap; }
.preview-cams th.cam-col label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text); }
.preview-cams .cam-col-toggle { margin: 0; cursor: pointer; }
.preview-cams .cam-cell { font-size: 12px; white-space: nowrap; }
.preview-cams .cam-cell.col-off { opacity: .3; }
.txn-chip {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  font-size: 12px; padding: 2px 8px; margin: 2px 6px 2px 0;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2);
}
.txn-chip .sale-pick { margin: 0; cursor: pointer; }
.txn-chip.txn-void { border-color: var(--bad); }
.txn-chip .spans-badge { margin-left: 2px; cursor: help; }
.preview-nofootage { font-size: 12px; margin: 8px 0 0; }
.preview-multiangle {
  font-size: 12px; margin: 8px 0 0; padding: 6px 10px; border-radius: 4px;
  border-left: 3px solid var(--accent); background: var(--panel-2);
}
.vid-cam { font-size: 11px; margin-bottom: 2px; opacity: 0.85; }
.cam-fallback {
  font-size: 10px; font-weight: 600; color: #92400e; background: #fef3c7;
  border-radius: 3px; padding: 0 5px; margin-left: 6px; white-space: nowrap;
}
.vid-joined {
  font-size: 11px; font-weight: 600; margin-bottom: 4px;
  color: #1e40af; background: #dbeafe; border-radius: 3px;
  padding: 1px 6px; display: inline-block;
}
/* Transaction-list badge: a boundary-spanning sale. "needs-rerun" is the actionable
   amber state (analyzed before the clips were joined); "joined" is the settled blue one. */
.spans-badge {
  display: inline-block; font-size: 10px; font-weight: 600; white-space: nowrap;
  border-radius: 3px; padding: 0 5px; margin-top: 2px; margin-left: 6px; cursor: help;
}
.spans-badge.needs-rerun { color: #92400e; background: #fef3c7; }
.spans-badge.joined { color: #1e40af; background: #dbeafe; }
.spans-note { color: #92400e; }
/* The classified under-ring type — a purple chip so it reads as a distinct dimension
   from the amber flag/void badges. `inline` sits after the receipt line in the detail. */
.type-badge {
  display: inline-block; font-size: 10px; font-weight: 600; white-space: nowrap;
  color: #5b21b6; background: #ede9fe; border-radius: 3px; padding: 0 5px;
  margin-top: 3px; margin-left: 6px;
}
.type-badge.inline { margin: 0 6px; vertical-align: middle; }
@media (prefers-color-scheme: dark) {
  .cam-fallback { color: #fde68a; background: #78350f; }
  .vid-joined { color: #bfdbfe; background: #1e3a8a; }
  .spans-badge.needs-rerun { color: #fde68a; background: #78350f; }
  .spans-badge.joined { color: #bfdbfe; background: #1e3a8a; }
  .spans-note { color: #fbbf77; }
  .type-badge { color: #ddd6fe; background: #4c1d95; }
}

/* ── "Analyzing…" scan animation (repurposed from arms-market-viewer) ── */
@keyframes analyze-scan { 0% { left: -35%; } 100% { left: 100%; } }
@keyframes pulse-fade { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.analyzing-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--accent);
}
.analyzing-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 35%; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(79, 140, 255, .35), transparent);
  animation: analyze-scan 1.3s ease-in-out infinite;
}
.analyzing-banner .spark { animation: pulse-fade 1.2s ease-in-out infinite; }
.analyzing-inline { color: var(--accent); font-weight: 600; white-space: nowrap; }
.analyzing-inline .scan-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px;
  background: var(--accent); vertical-align: middle; animation: pulse-fade 1s ease-in-out infinite;
}
.review-row.row-analyzing { opacity: .8; }
.badge.running { animation: pulse-fade 1.4s ease-in-out infinite; }

/* ── Evaluations accordion ── */
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.eval-list { display: flex; flex-direction: column; gap: 8px; }
.eval-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.eval-item.open { border-color: var(--accent); }
.eval-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
}
.eval-head:hover { background: rgba(255,255,255,.03); }
.eval-head .caret { color: var(--muted); width: 1em; flex: none; }
.eval-headmain { flex: 1; min-width: 0; }
.eval-title { font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eval-store { color: var(--text); }
.eval-window { color: var(--muted); font-weight: 500; margin-left: 6px; }
.eval-when { font-size: 13px; font-weight: 600; }  /* legacy, unused */
.eval-sub { font-size: 11px; display: block; }
.eval-flag { font-size: 11px; font-weight: 600; white-space: nowrap; }
.eval-del {
  background: none; border: none; cursor: pointer; font-size: 13px; opacity: .35;
  padding: 2px 4px; border-radius: 4px; flex: none;
}
.eval-del:hover { opacity: 1; background: rgba(255,93,93,.18); }
.eval-body { padding: 4px 12px 14px; border-top: 1px solid var(--border); }
.eval-review { margin-top: 8px; }
.review-headline { margin: 4px 0 10px; font-size: 12px; }
/* Re-run controls (retry the clips an expired presigned URL killed) */
.rerun-actions { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.rerun-actions button { font-size: 11px; padding: 4px 8px; }
.rerun-msg { font-size: 11px; }
.run-status-block { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 8px; }
.run-status-block .log { margin-top: 8px; height: 180px; }

/* ── Reviewer view ── */
.review-table td.caret { cursor: pointer; color: var(--muted); width: 1.4em; }
.review-row { cursor: pointer; }
.review-row:hover { background: var(--panel-2); }
.review-row.row-flagged { background: rgba(255, 180, 84, .08); }
/* Scan-and-void rows: cancelled at the POS, so they read red rather than amber */
.review-row.row-void { background: rgba(255, 92, 92, .10); box-shadow: inset 3px 0 0 var(--bad); }
.void-badge {
  margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; color: var(--bad); border: 1px solid var(--bad);
}
.void-banner { border-left: 3px solid var(--bad); padding: 6px 10px; background: rgba(255, 92, 92, .07); font-size: 12px; }
/* Grab-and-go: the incident banner + the knobs the scan was decided under */
.grab-banner { border-left: 3px solid var(--bad); padding: 6px 10px; background: rgba(255, 92, 92, .07); font-size: 12px; }
.grab-knobs { margin-top: -6px; font-size: 11px; }
.review-detail > td { background: #14171d; padding: 14px; }
.clip-review { display: flex; flex-direction: column; gap: 14px; }
.review-stage { max-width: 720px; }
.clip-video { max-width: 100%; display: block; border-radius: 6px; background: #000; }

/* Scrubber timeline */
.timeline { margin-top: 8px; max-width: 720px; }
.tl-track {
  position: relative; height: 26px; border-radius: 5px; cursor: pointer;
  background: linear-gradient(var(--panel-2), var(--panel-2));
  border: 1px solid var(--border); touch-action: none;
}
.tl-mark {
  position: absolute; top: -3px; width: 3px; height: 32px; margin-left: -1px;
  border-radius: 2px; cursor: pointer;
}
/* Camera-angle switcher (multi-angle sales): a tab per analyzed angle, above the video. */
.angle-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.angle-tab {
  padding: 3px 10px; border-radius: 5px; cursor: pointer; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
}
.angle-tab:hover { border-color: var(--accent); }
.angle-tab.active { border-color: var(--accent); background: var(--panel); font-weight: 600; }
.angle-tab .angle-badge { color: var(--good); font-weight: 700; }
.angle-tab .angle-flag { color: var(--bad); }

/* Play/pause + running clock for the custom timeline (native <video> controls removed). */
.tl-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tl-play {
  width: 30px; height: 26px; border-radius: 5px; cursor: pointer; padding: 0;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; line-height: 1;
}
.tl-play:hover { border-color: var(--accent); }
.tl-time { font-variant-numeric: tabular-nums; font-size: 12px; }
/* The playhead — current playback position, on the same clock as the marks; on top. */
.tl-playhead {
  position: absolute; top: -3px; height: 32px; width: 2px; margin-left: -1px; z-index: 3;
  background: var(--text); box-shadow: 0 0 3px rgba(0, 0, 0, .6); pointer-events: none;
}
.tl-mark:hover { width: 5px; margin-left: -2px; }
/* Marker + legend-key colors by type (kept in one place) */
.tl-mark.m-item,    .tl-key.m-item    { background: var(--accent); }   /* AI item taken */
.tl-mark.m-txn,     .tl-key.m-txn     { background: var(--good); }     /* POS transaction */
.tl-mark.m-void,    .tl-key.m-void    { background: var(--bad); }      /* POS void */
.tl-mark.m-approach,.tl-key.m-approach{ background: #8b94a3; }         /* approach */
.tl-mark.m-scan,    .tl-key.m-scan    { background: #3bc9db; }         /* scan */
.tl-mark.m-scanfail,.tl-key.m-scanfail{ background: #ff922b; }         /* scan failed */
.tl-mark.m-pay,     .tl-key.m-pay     { background: #b197fc; }         /* pay */
.tl-mark.m-cancel,  .tl-key.m-cancel  { background: #f783ac; }         /* cancel */
.tl-mark.m-leave,   .tl-key.m-leave   { background: #4d5666; }         /* leave */
/* The flagged person's unexplained takes (grab-and-go) — brighter than a plain take */
.tl-mark.m-grab,    .tl-key.m-grab    { background: var(--bad); }
.tl-mark.m-grab { width: 5px; margin-left: -2px; box-shadow: 0 0 0 1px rgba(255, 92, 92, .35); }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; align-items: center; }
.tl-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.tl-legend-key { cursor: pointer; user-select: none; }
.tl-legend-key:hover { color: var(--text); }
.tl-legend-key.off { opacity: .4; text-decoration: line-through; }

/* Joined-video timeline: faint bands mark each underlying original clip, with a dashed
   divider at every boundary, so a reviewer can see which clip an event falls in. Painted
   behind the event marks (they're appended after). */
.tl-seg { position: absolute; top: 0; bottom: 0; pointer-events: auto; }
.tl-seg.alt { background: rgba(127, 127, 127, .16); }
.tl-bound {
  position: absolute; top: -2px; bottom: -2px; width: 0;
  border-left: 2px dashed rgba(0, 0, 0, .45); pointer-events: none;
}
.tl-key.tl-bound-key {
  width: 0; height: 13px; border-radius: 0; background: none;
  border-left: 2px dashed currentColor;
}
@media (prefers-color-scheme: dark) {
  .tl-bound { border-left-color: rgba(255, 255, 255, .55); }
}

/* Transaction ↔ footage-time connection, above the video */
.ringup-conn { font-size: 13px; margin: 2px 0 4px; }
.ringup-conn strong { color: var(--text); }
.ringup-note { font-size: 11px; margin-bottom: 8px; }

.ai-notes h3, .txn-panel h3, .rec-panel h3 { margin: 0 0 8px; }

/* ── Second angle: what each camera saw, and what the pair decided ──
   The left border + badge color carry the decision, so a CLEARED flag can never be
   mistaken for a CONFIRMED one at a glance. */
.rec-panel { padding: 8px 10px; border-left: 3px solid var(--border); background: var(--panel-2); border-radius: 4px; }
.rec-panel.rec-confirmed, .rec-panel.rec-raised { border-left-color: var(--bad); }
.rec-panel.rec-cleared { border-left-color: var(--good); }
.rec-badge {
  margin-left: 6px; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
  color: var(--muted); border: 1px solid var(--border);
}
.rec-badge.rec-confirmed, .rec-badge.rec-raised { color: var(--bad); border-color: var(--bad); }
.rec-badge.rec-cleared { color: var(--good); border-color: var(--good); }
.rec-rationale { font-size: 12px; margin: 0 0 8px; }
.rec-angles { display: flex; gap: 14px; flex-wrap: wrap; }
.rec-angle { flex: 1 1 260px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.rec-angle-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rec-angle-head .vid-cam { margin-bottom: 0; }
.rec-meta { font-size: 11px; margin-top: 8px; }
.ai-person { margin: 3px 0; font-size: 12px; }
.txn-panel .txn-head { cursor: pointer; margin-top: 6px; }
.txn-panel .txn-head:hover { color: var(--accent); }
.txn-items { padding-left: 10px; }
.txn-void strong { text-decoration: line-through; opacity: .8; }
/* Controls greyed out because the on-prem pipeline is gated off (no GPU) */
.opt-disabled { opacity: .45; }
input:disabled, select:disabled { cursor: not-allowed; }
/* Re-run selection column in the reviewer (transaction-first batches) */
.review-table .sel-col { width: 22px; text-align: center; padding-right: 0; }
.review-table .sel-col input { width: auto; margin: 0; cursor: pointer; }

/* The matched camera among a multi-angle sale's candidate angles. */
.rec-angle.rec-matched { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
