/* unusable.css — the side panel, the reason colours and the timeline chips of
   the unusable-footage labeler. Everything about the video, the source rows and
   the transport row comes from ../punch/punch.css (same ids). */

.nav-sub { font-size: 12px; color: var(--ink-dim); }
.nav-link { font-size: 12px; color: var(--accent); text-decoration: none; }
.sync-chip { font-size: 12px; color: var(--ink-dim); }
.sync-chip.err { color: var(--no-on-wash); }
.sync-chip[hidden] { display: none; }

/* ── the left panel ─────────────────────────────────────────────────────── */
#unusable-panel {
  flex: none; width: 340px; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
#unusable-panel .card { padding: 14px; }
.count { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-dim); }
.hint { font-size: 12px; color: var(--ink-dim); line-height: 1.45; margin: 8px 0 0; }
.muted { color: var(--ink-dim); }
#unusable-panel kbd {
  display: inline-block; min-width: 14px; padding: 0 4px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--fill); font: 11px ui-monospace, Menlo, monospace;
  color: var(--ink-dim); vertical-align: middle;
}

.draft-row { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 8px; align-items: center; }
.draft-btn, .reason-btn, #btn-retire, #btn-next-video {
  border: 1px solid var(--line); border-radius: 8px; background: var(--fill); color: var(--ink);
  padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.draft-btn:hover, .reason-btn:hover, #btn-next-video:hover { border-color: var(--ink-dim); }

/* The picker button at the end of the link row: punch.css makes it a 22px
   icon-only chevron; here it carries a label, so it becomes a small pill. */
.src-field #btn-pick-video {
  width: auto; height: 24px; padding: 0 10px; gap: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 12px; opacity: 1; white-space: nowrap; cursor: pointer;
}
.src-field #btn-pick-video:hover, .src-field #btn-pick-video.open { background: var(--fill-2); }
.src-field #btn-pick-video.open svg { transform: none; }
.draft-btn.set { background: var(--yes-wash); color: var(--yes-on-wash); border-color: transparent; }
.draft-time { font: 13px ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }

#reason-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reason-btn { display: flex; align-items: center; gap: 6px; }
.reason-btn .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--reason); }
.reason-btn.armed { outline: 2px solid var(--reason); outline-offset: 1px; }
.reason-btn:disabled { opacity: .45; cursor: default; }

/* the spans list */
#span-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.span-row {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center;
  padding: 5px 8px; border-radius: 8px; background: var(--fill); font-size: 12px; cursor: pointer;
}
.span-row:hover, .span-row.current { background: var(--fill-2); }
.span-row .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--reason); }
.span-row .times { font: 12px ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.span-row .who { color: var(--ink-dim); }
.span-row select { font: inherit; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.span-row .del { border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; font-size: 14px; padding: 0 4px; }
.span-row .del:hover { color: var(--no-on-wash); }
.span-row.foreign { opacity: .75; cursor: pointer; }
.span-row.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.span-row .row-btns { display: flex; gap: 2px; }
.span-row .edit { border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; font-size: 13px; padding: 0 4px; }
.span-row .edit:hover { color: var(--ink); }
.span-edit { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 6px 8px 8px 26px; font-size: 12px; }
.span-edit input { width: 76px; font: 12px ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; background: var(--card); color: var(--ink); }
.span-edit button { border: 1px solid var(--line); border-radius: 6px; background: var(--fill); color: var(--ink); font-size: 11px; padding: 2px 6px; cursor: pointer; }
.seg-lane .span-chip.own.selected { outline: 2px solid var(--ink); outline-offset: 0; opacity: 1; z-index: 2; }

/* review */
.review-actions { display: flex; gap: 8px; margin-top: 8px; }
.review-actions button { flex: 1; white-space: nowrap; }
#review-card hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
#btn-retire { width: 100%; background: var(--no-wash); color: var(--no-on-wash); border-color: transparent; }
#review-status.reviewing { color: var(--accent); }
#review-status.retired { color: var(--no-on-wash); }

/* the picker's extra controls */
.vp-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.vp-head input[type=search] { flex: 1; min-width: 0; }
.vp-filter { font-size: 12px; color: var(--ink-dim); white-space: nowrap; }
#vp-count { font-size: 11px; white-space: nowrap; }
.vp-refresh { border: 0; background: transparent; cursor: pointer; color: var(--ink-dim); font-size: 15px; padding: 0 4px; }
.vp-refresh:hover { color: var(--ink); }
.vp-row .vp-tag { margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.vp-row .vp-tag.reviewing { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.vp-row .vp-tag.retired { background: var(--no-wash); color: var(--no-on-wash); }
.vp-row .vp-tag.noskel { background: var(--fill-2); color: var(--ink-dim); }
.vp-row.current { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── timeline lanes ─────────────────────────────────────────────────────── */
.seg-lane.lane-skeleton { height: 8px; background: var(--fill); }
.seg-lane.lane-skeleton .skel-band { position: absolute; top: 0; height: 100%; background: color-mix(in srgb, var(--accent) 35%, transparent); }
/* the detectors' hints (app.js detectorHints): a thin lane under the skeleton
   lane — red bands where there is no skeleton, yellow ticks where it jumps —
   and the same marks, fainter, in the minimap */
:root { --hint-missing: #e85a5a; --hint-jump: #ffcc4d; }
.seg-lane.lane-hints { height: 10px; background: var(--fill); }
.seg-lane.lane-hints .hint-chip { position: absolute; top: 0; height: 100%; pointer-events: auto; cursor: pointer; }
.seg-lane.lane-hints .hint-chip.missing { background: var(--hint-missing); min-width: 2px; border-radius: 2px; }
.seg-lane.lane-hints .hint-chip.jump { width: 3px; margin-left: -1.5px; background: var(--hint-jump); border-radius: 1px; box-shadow: 0 0 0 1px var(--card); z-index: 1; }
.seg-lane.lane-hints .hint-chip:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
#minimap-segments .hint-chip { position: absolute; top: 0; height: 100%; opacity: .75; }
#minimap-segments .hint-chip.missing { background: var(--hint-missing); min-width: 1px; }
#minimap-segments .hint-chip.jump { width: 2px; margin-left: -1px; background: var(--hint-jump); }
/* the moments to check (app.js checkMoments): the lane (both modes), the
   minimap in labeling mode, and the To check card's list */
.seg-lane.lane-check { height: 14px; background: var(--fill); }
.seg-lane.lane-check .check-chip { position: absolute; top: 0; height: 100%; min-width: 3px; border-radius: 2px; background: var(--hint-jump); pointer-events: auto; cursor: pointer; }
.seg-lane.lane-check .check-chip.checked { background: var(--line); }
.seg-lane.lane-check .check-chip:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
#minimap-segments .check-chip { position: absolute; top: 0; height: 100%; min-width: 2px; background: var(--hint-jump); }
#minimap-segments .check-chip.checked { background: var(--line); opacity: .6; }
.check-filter { display: flex; gap: 6px; align-items: center; font-size: 13px; margin: 2px 0 8px; cursor: pointer; }
#check-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.check-row { display: grid; grid-template-columns: 16px 72px 1fr; gap: 6px; align-items: center; text-align: left;
  border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); padding: 3px 6px; font: inherit; font-size: 12px; cursor: pointer; }
.check-row:hover { background: var(--fill); }
.check-row.current { border-color: var(--accent); }
.check-row.checked { color: var(--ink-dim); }
.check-row .check-time { font: 12px ui-monospace, Menlo, monospace; }
.check-row .check-mark { color: var(--accent); }
/* the framing lane (app.js framingHints): where the picture cuts the boxer, in
   its own colours (FRAMING_STYLE) — red out of frame, pink partly out, tan legs cut off */
.seg-lane.lane-framing { height: 10px; background: var(--fill); }
.seg-lane.lane-framing .framing-chip { position: absolute; top: 0; height: 100%; min-width: 2px; border-radius: 2px; background: var(--reason); pointer-events: auto; cursor: pointer; }
.seg-lane.lane-framing .framing-chip:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
.seg-lane .span-chip {
  position: absolute; top: 1px; height: 12px; border-radius: 3px;
  background: var(--reason); opacity: .9; cursor: pointer; pointer-events: auto; min-width: 2px;
}
.seg-lane .span-chip:hover, .seg-lane .span-chip.current { outline: 2px solid var(--ink); outline-offset: -1px; opacity: 1; }
.seg-lane .span-chip.draft { background: transparent; border: 2px dashed var(--reason, var(--ink)); opacity: 1; box-sizing: border-box; }
.seg-lane .span-chip.foreign { opacity: .5; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px); }
#minimap-segments .span-chip { top: 0; height: 100%; border-radius: 0; opacity: .8; pointer-events: none; }

/* the shortcuts sheet is punch.css's #sc-dialog; only its prose and the
   detected-lane legend swatches are this page's */
.sc-body .sc-note { font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.sc-body .sc-note.muted { color: var(--ink-dim); }
.sc-body .hint-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin: 0 2px 0 4px; }
.sc-body .hint-key.missing { background: var(--hint-missing); }
.sc-body .hint-key.jump { width: 3px; background: var(--hint-jump); }
.sc-body .hint-key.framing { background: var(--reason); }
