/* ============================================================
   Shitty Situations · DOCKET WALKER
   INK on PAPER · single monospace · box-drawing primitives
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600&display=swap");

:root {
  /* INK on PAPER · five steps, nothing else. No accent. No semantic color. */
  --paper:   #0A0908;
  --ink:     #F5F1E8;
  --ink-80:  rgba(245, 241, 232, 0.80);
  --ink-60:  rgba(245, 241, 232, 0.60);
  --ink-30:  rgba(245, 241, 232, 0.28);
  --ink-12:  rgba(245, 241, 232, 0.12);
  --paper-90: rgba(10, 9, 8, 0.90);

  /* Single typeface. Pick one and stick to it. */
  --mono: "Berkeley Mono", "IBM Plex Mono", "JetBrains Mono", "iA Writer Mono", ui-monospace, monospace;

  /* Baseline = 4px. All vertical rhythm snaps to this. */
  --cell-w: 8px;   /* approx em-width at 13px IBM Plex Mono */
  --cell-h: 16px;  /* line-height for body */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum", "zero", "ss05";
}

/* ============================================================
   ARTBOARD FRAME — 1440 × 900, fixed, never scrolls
   ============================================================ */
.dw-frame {
  width: 1440px;
  height: 900px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  /* a faint baseline grid hint, off by default */
}

/* ============================================================
   TYPE — one face, six sizes
   ============================================================ */
.t-display { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.t-h1      { font-size: 18px; line-height: 24px; font-weight: 500; }
.t-h2      { font-size: 14px; line-height: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.t-body    { font-size: 13px; line-height: 18px; font-weight: 400; }
.t-tab     { font-size: 13px; line-height: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.t-cap     { font-size: 11px; line-height: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; }
.t-strong  { font-weight: 600; }
.t-soft    { color: var(--ink-60); }
.t-hint    { color: var(--ink-30); }
.t-under   { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ============================================================
   BOX-DRAWING PRIMITIVES — every interior boundary
   ============================================================ */
/* Single-line rules drawn with characters, NOT CSS borders. */
.bx {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0;
  white-space: pre;
  color: var(--ink);
}
.bx-soft { color: var(--ink-30); }

/* Wrap content with a box drawing border. Use --w and --h in ch. */
.bx-box {
  position: relative;
  white-space: pre;
}
/* CSS border helpers (used only where we need fluid sizes — still ink hairlines) */
.rule-b { border-bottom: 1px solid var(--ink); }
.rule-t { border-top: 1px solid var(--ink); }
.rule-l { border-left: 1px solid var(--ink); }
.rule-r { border-right: 1px solid var(--ink); }
.rule-soft-b { border-bottom: 1px solid var(--ink-30); }
.rule-soft-t { border-top: 1px solid var(--ink-30); }
.rule-soft-r { border-right: 1px solid var(--ink-30); }
.rule-soft-l { border-left: 1px solid var(--ink-30); }
.rule-double-b { border-bottom: 3px double var(--ink); }
.rule-double-t { border-top: 3px double var(--ink); }

/* "Inked stroke" sweep on selected nodes */
@keyframes sweep {
  0%   { clip-path: inset(0 100% 100% 0); }
  25%  { clip-path: inset(0 0 100% 0); }
  50%  { clip-path: inset(0 0 100% 100%); }
  75%  { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Pulse for live block ▌ */
@keyframes pulse-block {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.pulse-block { animation: pulse-block 1.6s ease-in-out infinite; display: inline-block; }

/* Caret blink */
@keyframes caret-blink { 50% { opacity: 0; } }
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--ink);
  vertical-align: -2px;
  animation: caret-blink 1s steps(2) infinite;
}

/* Braille spark — 6-step braille animation */
@keyframes spark {
  0%   { content: "⠁"; }
  16%  { content: "⠃"; }
  33%  { content: "⠇"; }
  50%  { content: "⠧"; }
  66%  { content: "⠷"; }
  83%  { content: "⠿"; }
  100% { content: "⠁"; }
}
.spark::before {
  content: "⠿";
  animation: spark 0.48s steps(6) infinite;
}

/* Reduced motion stripping */
.no-motion .pulse-block,
.no-motion .caret,
.no-motion .spark::before { animation: none !important; }
.no-motion .pulse-block { opacity: 0.6; }

/* ============================================================
   HEADER — 44px tall
   ============================================================ */
.dw-header {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  border-bottom: 1px solid var(--ink-30);
  gap: 12px;
  background: var(--paper);
  position: relative;
}
.dw-header > * { display: flex; align-items: center; }
.dw-header .left { gap: 12px; }
.dw-header .center { gap: 12px; flex: 1; justify-content: flex-start; overflow: hidden; }
.dw-header .right { gap: 8px; margin-left: auto; }

.dw-divider {
  width: 1px;
  align-self: stretch;
  background: var(--ink-30);
  margin: 8px 0;
}

.dw-wordmark { font-weight: 600; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }
.dw-wordmark .dot { color: var(--ink-30); margin: 0 6px; }

.dw-case-title { font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }

/* ============================================================
   LOGO MARK — paper-on-ink PNG, inverted to render as ink-on-paper
   ============================================================ */
.dw-logo {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  margin-right: 10px;
  align-self: center;
  flex-shrink: 0;
  display: block;
}
.dw-case-title .num { color: var(--ink-60); margin-right: 6px; }

/* ============================================================
   ASCII SEGMENTED TOGGLE
   ============================================================ */
.dw-seg {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  align-self: center;
  height: 24px;
}
.dw-seg-item {
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  user-select: none;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  white-space: nowrap;
}
.dw-seg-item:last-child { border-right: none; }
.dw-seg-item.on {
  background: var(--ink);
  color: var(--paper);
}
.dw-seg-item.on::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -3px;
  height: 2px;
  background: var(--ink);
}

/* compact variant for inline filters */
.dw-seg.s { height: 20px; font-size: 10px; }
.dw-seg.s .dw-seg-item { padding: 0 8px; }

/* ============================================================
   ASCII BUTTON
   ============================================================ */
.dw-btn {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  user-select: none;
}
.dw-btn:hover { background: var(--ink); color: var(--paper); }
.dw-btn.on    { background: var(--ink); color: var(--paper); }
.dw-btn.ghost { border-color: var(--ink-30); color: var(--ink-60); }
.dw-btn-key {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 500;
}

/* ============================================================
   SEARCH INPUT (inline mono, no fill)
   ============================================================ */
.dw-search {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border: 1px solid var(--ink);
  padding: 0 8px;
  width: 240px;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper);
}
.dw-search .slash { color: var(--ink-60); margin-right: 6px; }
.dw-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
}
.dw-search input::placeholder { color: var(--ink-30); }

/* ============================================================
   COMMAND BAR — 32px footer
   ============================================================ */
.dw-cmd {
  height: 32px;
  border-top: 1px solid var(--ink-30);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: var(--paper);
  flex-shrink: 0;
}
.dw-cmd .prompt { font-weight: 600; }
.dw-cmd .text { color: var(--ink-60); flex: 1; }
.dw-cmd .text strong { color: var(--ink); font-weight: 500; }
.dw-cmd .hint { color: var(--ink-30); font-size: 11px; letter-spacing: 0.04em; }

/* ============================================================
   CANVAS (main body)
   ============================================================ */
.dw-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}
.dw-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--ink-12) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

/* ============================================================
   ASCII NODE CARD (filing)
   ============================================================ */
/* ============================================================
   FILING NODE — rendered as a real ASCII <pre>, no CSS border
   ============================================================ */
.dw-node {
  position: absolute;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  white-space: pre;
  color: var(--ink);
  cursor: pointer;
  user-select: text;
  /* Lock width — every node is exactly 28 character cells, no font-metric drift */
  width: 224px;
  font-variant-ligatures: none;
  font-kerning: none;
  font-feature-settings: "kern" 0, "liga" 0, "calt" 0;
  font-variant-numeric: tabular-nums;
}
.dw-node:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  background: rgba(245,241,232,0.06);
}
.dw-node.sel {
  z-index: 5;
  background: rgba(245,241,232,0.06);
}
.dw-node.dim { color: var(--ink-30); }

/* Phase cluster — rendered as a real ASCII double-line <pre> */
.dw-cluster {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  white-space: pre;
  color: var(--ink);
  pointer-events: none;
}
.dw-cluster .lbl-overlay {
  position: absolute;
  background: var(--paper);
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  top: -1px;
}
.dw-cluster .lbl-overlay.l { left: 16px; }
.dw-cluster .lbl-overlay.r { right: 16px; color: var(--ink-60); font-weight: 400; }

/* Edges (SVG layer above canvas, below nodes) */
.dw-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dw-edges path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}
.dw-edges path.soft { stroke: var(--ink-30); stroke-dasharray: 3 3; }

/* ============================================================
   FLOATING CANVAS CHROME
   ============================================================ */
.dw-breadcrumb {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-60);
  background: var(--paper-90);
  padding: 4px 8px;
  border: 1px solid var(--ink-30);
}
.dw-breadcrumb .sep { color: var(--ink-30); margin: 0 6px; }
.dw-breadcrumb .cur { color: var(--ink); font-weight: 500; }

.dw-phase-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 6px 10px;
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dw-phase-legend .item { color: var(--ink-60); }
.dw-phase-legend .item.cur { color: var(--ink); font-weight: 600; }
.dw-phase-legend .item.cur::before { content: "▌ "; }

.dw-minimap {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 120px;
  height: 80px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 8px;
  letter-spacing: 0;
  color: var(--ink);
  padding: 4px;
  white-space: pre;
  overflow: hidden;
}
.dw-minimap .viewport {
  position: absolute;
  border: 1px solid var(--ink);
  pointer-events: none;
}

.dw-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 0;
}
.dw-zoom .dw-btn { border-right: none; }
.dw-zoom .dw-btn:last-child { border-right: 1px solid var(--ink); }

/* ============================================================
   RIGHT SIDEBAR
   ============================================================ */
.dw-sidebar {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.dw-tabs {
  display: flex;
  height: 32px;
  border-bottom: 1px solid var(--ink);
}
.dw-tabs .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  background: var(--paper);
  color: var(--ink-60);
  border-right: 1px solid var(--ink-30);
}
.dw-tabs .tab:last-child { border-right: none; }
.dw-tabs .tab.on {
  background: var(--ink);
  color: var(--paper);
}
.dw-tabs .tab.on::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -3px;
  height: 2px;
  background: var(--ink);
}

.dw-sb-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 12px;
  line-height: 16px;
  padding: 12px;
  position: relative;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-30) transparent;
}
.dw-sb-body::-webkit-scrollbar { width: 6px; }
.dw-sb-body::-webkit-scrollbar-thumb { background: var(--ink-30); }
.dw-sb-body::-webkit-scrollbar-track { background: transparent; }

.dw-section {
  border: 1px solid var(--ink);
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
}
.dw-section > .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink-30);
}
  font-weight: 600;
}
.dw-section .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  min-height: 18px;
}
.dw-section .row .k { color: var(--ink-60); flex-shrink: 0; white-space: nowrap; }
.dw-section .row .v { text-align: right; min-width: 0; word-break: break-word; }
.dw-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 12px 0 6px;
  font-weight: 600;
  border-top: 1px dashed var(--ink-30);
  padding-top: 8px;
}
.dw-section h4:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.dw-tour-list { font-size: 12px; }
.dw-tour-list .item {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  cursor: pointer;
}
.dw-tour-list .item.cur { font-weight: 600; }
.dw-tour-list .item.cur::before { content: "▸ "; }
.dw-tour-list .item:not(.cur) { padding-left: 14px; }

.dw-sb-actions {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   FILES TAB (DocketIndex)
   ============================================================ */
.dw-files {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  height: calc(100% - 0px);
}
.dw-files .phases {
  border-right: 1px solid var(--ink);
  font-size: 11px;
}
.dw-files .phases .ph {
  padding: 5px 8px;
  border-bottom: 1px solid var(--ink-30);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dw-files .phases .ph.on { background: var(--ink); color: var(--paper); }
.dw-files .phases .ph .ct { color: var(--ink-30); margin-left: 4px; }
.dw-files .phases .ph.on .ct { color: var(--paper); opacity: 0.7; }

.dw-files .filings {
  font-size: 11px;
  overflow-y: hidden;
}
.dw-files .filings .f-head {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.dw-files .filings .f-row {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--ink-30);
  cursor: pointer;
}
.dw-files .filings .f-row.sel { background: var(--ink); color: var(--paper); }

/* ============================================================
   OVERLAYS
   ============================================================ */
/* Modal scrim */
.dw-scrim {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(245,241,232,0.06) 0,
      rgba(245,241,232,0.06) 1px,
      transparent 1px,
      transparent 4px
    ),
    rgba(10, 9, 8, 0.86);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center modal */
.dw-modal {
  background: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
}
.dw-modal-head {
  height: 28px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  padding: 0 12px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dw-modal-head .close {
  font-size: 14px;
  cursor: pointer;
  margin-left: 12px;
}

/* FilingViewer — right side slide-over */
.dw-viewer {
  position: absolute;
  top: 0; right: 0; bottom: 32px;
  width: 720px;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.dw-viewer .v-head {
  height: 36px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.dw-viewer .v-head .ti { font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.dw-viewer .v-head .meta { font-size: 11px; color: var(--ink-60); }
.dw-viewer .v-body {
  flex: 1;
  overflow: hidden;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 12px;
  position: relative;
}
.dw-viewer .v-body .ln {
  color: var(--ink-30);
  text-align: right;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.dw-viewer .v-body .ln .hi { color: var(--ink); }
.dw-viewer .v-body .tx {
  white-space: pre-wrap;
}
.dw-viewer .v-body .tx u { text-decoration: underline; text-underline-offset: 3px; }
.dw-viewer .v-body .tx em { font-style: italic; }
.dw-viewer .v-body .tx .money::before { content: "▌ "; color: var(--ink); }
.dw-viewer .v-body .tx mark { background: var(--ink); color: var(--paper); padding: 0 2px; }

/* FilterPanel — right side drawer 280px */
.dw-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 32px;
  width: 280px;
  background: var(--paper);
  border-left: 1px solid var(--ink);
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  gap: 12px;
}
.dw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.dw-check .box {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  width: 14px;
  text-align: center;
  display: inline-block;
}

/* ExportMenu — anchored dropdown */
.dw-dropdown {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: 12px;
  line-height: 16px;
  min-width: 280px;
  z-index: 60;
}
.dw-dropdown .opt {
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}
.dw-dropdown .opt:hover { background: var(--ink); color: var(--paper); }
.dw-dropdown .opt.sel::before { content: "▸ "; }
.dw-dropdown .opt:not(.sel) { padding-left: 24px; }
.dw-dropdown .opt .ext { color: var(--ink-30); font-size: 11px; }
.dw-dropdown .opt:hover .ext { color: var(--paper); opacity: 0.7; }

/* Warning banner — top, ink fill */
.dw-warn {
  background: var(--ink);
  color: var(--paper);
  padding: 6px 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}
.dw-warn .action { text-decoration: underline; cursor: pointer; }
.dw-warn .dismiss { margin-left: auto; cursor: pointer; }

/* Keyboard help — center modal, two-column grid */
.dw-help {
  width: 720px;
  max-width: 90%;
}
.dw-help .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 20px;
}
.dw-help h5 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  font-weight: 600;
}
.dw-help h5:not(:first-child) { margin-top: 14px; }
.dw-help .kb {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}
.dw-help .kb .k {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   CASE BROWSER (screen 1)
   ============================================================ */
.dw-cb {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 16px;
  font-family: var(--mono);
  overflow: hidden;
}
.dw-cb .filter-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dw-cb .filter-row .lbl {
  width: 64px;
  color: var(--ink-60);
}
.dw-cb .filter-row .group {
  display: flex;
  gap: 4px;
}
.dw-cb .filter-row .opt {
  border: 1px solid var(--ink-30);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  height: 22px;
  display: flex;
  align-items: center;
  user-select: none;
}
.dw-cb .filter-row .opt.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.dw-cb .filter-row .grow { flex: 1; }

.dw-cb .head-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--ink);
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.dw-cb .head-row .count { color: var(--ink-60); margin-left: auto; font-weight: 400; }

.dw-cb .case-list {
  flex: 1;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
}
.dw-cb .case-row {
  display: grid;
  grid-template-columns: 24px 110px 1fr 80px 90px 200px;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--ink-30);
  cursor: pointer;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.dw-cb .case-row:hover { background: rgba(245,241,232,0.06); }
.dw-cb .case-row.sel {
  background: var(--ink);
  color: var(--paper);
}
.dw-cb .case-row.sel .sub { color: rgba(10,9,8,0.7); }
.dw-cb .case-row .arrow { font-weight: 600; }
.dw-cb .case-row .num { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dw-cb .case-row.sel .num { text-decoration: underline; }
.dw-cb .case-row .deb { font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.dw-cb .case-row .ch { color: var(--ink-60); }
.dw-cb .case-row.sel .ch { color: rgba(10,9,8,0.7); }
.dw-cb .case-row .court { color: var(--ink-60); }
.dw-cb .case-row.sel .court { color: rgba(10,9,8,0.7); }
.dw-cb .case-row .since { color: var(--ink-60); }
.dw-cb .case-row.sel .since { color: rgba(10,9,8,0.85); }
.dw-cb .case-row .sub {
  grid-column: 3 / -1;
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 2px;
}
.dw-cb .case-row .meter {
  letter-spacing: 0;
  font-family: var(--mono);
}

/* Empty/loading/error frames */
.dw-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.dw-empty .ascii {
  white-space: pre;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink);
}
.dw-empty .msg { font-size: 13px; color: var(--ink-60); max-width: 60ch; }

/* OnboardingOverlay spotlight */
.dw-spotlight {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.dw-spot-box {
  position: absolute;
  border: 2px solid var(--ink);
  outline: 4000px solid rgba(245,241,232,0.18);
}
.dw-spot-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 14px;
  width: 280px;
  font-size: 12px;
  line-height: 16px;
}
.dw-spot-card h6 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}
.dw-spot-card .nav {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-60);
}

/* Token gate */
.dw-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dw-gate-card {
  border: 1px solid var(--ink);
  width: 480px;
  padding: 28px;
}
.dw-gate-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dw-gate-card .ascii {
  white-space: pre;
  font-size: 11px;
  line-height: 13px;
  margin: 14px 0;
}
.dw-gate-card .ti {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 0 10px;
  height: 32px;
  margin: 16px 0 10px;
}
.dw-gate-card .ti input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.dw-gate-card .row-actions { display: flex; gap: 8px; }

/* The "▌▌▌░" urgency meter — uses real chars */
.meter { font-family: var(--mono); letter-spacing: 0; }
.meter .f { color: var(--ink); }
.meter .e { color: var(--ink-30); }

/* Tag list */
.dw-tags { display: inline-flex; gap: 0; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.04em; }
.dw-tags .t { color: var(--ink); }
.dw-tags .t::after { content: " · "; color: var(--ink-30); }
.dw-tags .t:last-child::after { content: ""; }

/* ============================================================
   ARTBOARD HEADER CHIP (used outside frame, on canvas)
   ============================================================ */
.dw-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--paper);
  font-family: var(--mono);
}
