/* ═══ SV3 · BATCH DOWN skins (#6882) — the DH #682 tdn-* family, ported.
   Tokens are the shipped tokens.css vars; nothing is authored here that the
   board did not draw. The overlay/veil are the app-side addition: the board
   demos the panel in place, the app floats it over the drawer. */

.sv3-bd-overlay { position: fixed; inset: 0; z-index: 340; display: flex;
  align-items: center; justify-content: center; }
.sv3-bd-overlay[hidden] { display: none; }
.sv3-bd-overlay .tdn-veil { position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg, #0c0d0c) 62%, transparent); }

.sv3-bd-overlay .tdn-pop { position: relative; display: flex; flex-direction: column;
  width: min(560px, calc(100vw - 32px)); max-height: min(78vh, 640px); min-height: 0;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden; font-family: var(--ui); font-size: 12px; color: var(--fg); }
.sv3-bd-overlay .tdn-pop * { box-sizing: border-box; }

.tdn-head { flex-shrink: 0; display: flex; align-items: center; gap: 9px; height: 30px;
  padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.tdn-head .ti { font-family: var(--mono); font-size: 9px; letter-spacing: .19em;
  text-transform: uppercase; color: var(--fg-strong); }
.tdn-head .sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-dim); }
.tdn-head .esc { margin-left: auto; font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; color: var(--fg-faint); white-space: nowrap; }
.tdn-head .tdn-x { background: none; border: 0; color: var(--fg-dim); font-size: 14px;
  cursor: pointer; padding: 0 2px; }
.tdn-head .tdn-x:hover { color: var(--fg-strong); }

.tdn-filt { flex-shrink: 0; background: var(--bg-sub); border-bottom: 1px solid var(--line);
  padding: 8px 12px 9px; display: flex; flex-direction: column; gap: 6px; }
.tdn-f { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.tdn-f .k { flex: 0 0 58px; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.tdn-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tdn-rad { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-panel); color: var(--fg-dim); cursor: pointer; }
.tdn-rad.on { border-color: var(--line-strong); color: var(--fg-strong);
  background: var(--bg-row-multi, var(--bg-sub)); }
.tdn-rad:disabled { opacity: .45; cursor: default; }
.tdn-sel, .tdn-in { font-family: var(--ui); font-size: 11.5px; color: var(--fg);
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 6px; min-width: 0; }
.tdn-in { width: 200px; max-width: 100%; }
.tdn-tgt { font-size: 11.5px; color: var(--fg); }
.tdn-tgt .nm { font-family: var(--mono); font-size: 10.5px; color: var(--fg-strong); }
.tdn-tgt .fix { margin-left: 8px; font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.tdn-collapse { margin: 0; font-size: 11px; line-height: 1.45; color: var(--fg-mute); }

.tdn-count { flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 0 12px;
  height: 28px; border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.tdn-count .n { font-family: var(--mono); font-size: 11px; font-feature-settings: "tnum" 1;
  color: var(--fg); white-space: nowrap; }
.tdn-count .miss { font-family: var(--mono); font-size: 11px; font-feature-settings: "tnum" 1;
  color: var(--fg-mute); white-space: nowrap; }
.tdn-count .sep { color: var(--fg-dim); }
.tdn-count .st { margin-left: auto; font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); flex-shrink: 0; }

.tdn-list { flex: 1 1 auto; min-height: 96px; overflow-y: auto; background: var(--bg-panel);
  outline: none; }
.tdn-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 30px;
  border-bottom: 1px solid var(--line-soft, var(--line)); }
.tdn-row .tc { flex: 0 0 84px; font-family: var(--mono); font-size: 10px;
  font-feature-settings: "tnum" 1; color: var(--fg-dim); }
.tdn-row .ttl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 11.5px; color: var(--fg); }
.tdn-row .ed { flex: 0 0 66px; font-family: var(--mono); font-size: 10px;
  color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; }
.tdn-row .ver { flex: 0 0 48px; font-family: var(--mono); font-size: 10px; color: var(--fg-mute); }
.tdn-row .cl { flex: 0 0 30px; text-align: right; font-family: var(--mono); font-size: 10.5px;
  font-feature-settings: "tnum" 1; color: var(--fg); }
.tdn-row .res { flex: 0 0 158px; text-align: right; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* resolution / outcome inks — facts, never danger colour; refused is the one
   red the DH allows and it stays a diagnostic line, not a fill */
.tdn-row .res.ok { color: var(--st-resolved, var(--fg-strong)); }
.tdn-row .res.dlv { color: var(--st-resolved, var(--fg-strong)); }
.tdn-row .res.fact { color: var(--fg-mute); }
.tdn-row .res.skip { color: var(--fg-dim); }
.tdn-row .res.gone { color: var(--fg-faint); }
.tdn-row .res.land { color: var(--fg-strong); }

.tdn-none { padding: 22px 16px; }
.tdn-none .t { font-size: 12.5px; color: var(--fg-strong); margin-bottom: 6px; }
.tdn-none .d { font-size: 11.5px; line-height: 1.5; color: var(--fg-mute); }

.tdn-pager { display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 6px 12px; }
.tdn-pager .pg { font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  color: var(--fg-dim); }

.tdn-foot { flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-top: 1px solid var(--line); background: var(--bg-sub); }
.tdn-foot .rule { flex: 1 1 auto; min-width: 0; font-size: 10.5px; line-height: 1.4;
  color: var(--fg-mute); }
.tdn-btn { font-family: var(--ui); font-size: 11.5px; padding: 5px 14px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg-panel);
  color: var(--fg); cursor: pointer; white-space: nowrap; }
.tdn-btn.pri { background: var(--lime, #b7e05f); border-color: var(--lime, #b7e05f);
  color: var(--bg, #101210); font-weight: 600; }
.tdn-btn.ok { border-color: var(--st-resolved, var(--line-strong));
  color: var(--st-resolved, var(--fg-strong)); }
.tdn-btn.busy { color: var(--fg-dim); }
.tdn-btn.busy .ct { margin-left: 6px; font-family: var(--mono); font-size: 10px;
  font-feature-settings: "tnum" 1; }
.tdn-btn:disabled { opacity: .45; cursor: default; }
.tdn-quiet { background: none; border: 0; padding: 5px 4px; font-size: 11px;
  color: var(--fg-dim); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px; white-space: nowrap; }
.tdn-quiet:hover { color: var(--fg-strong); }
.tdn-quiet:disabled { opacity: .45; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .sv3-bd-overlay * { transition: none !important; animation: none !important; }
}
