/* The docket-check ticket (specs/141 §3, INV-1268). Three steps on a rail, the
   current one open, a finished one folded to its receipt, one primary door in
   the footer. Bennett 2026-09-21: "as simple as trading a stock on Robinhood …
   Google level perfection". House tokens only; the sheet is a fixed-height
   panel whose body scrolls; every fold is a row in one list; the decision
   chips are tinted outlines, never a solid fill (INV-1170). */

/* ── The sheet ─────────────────────────────────────────────────────────── */
.dk-root { padding: 6vh 16px 4vh; }
.dk-ticket {
  --dk-line: color-mix(in srgb, var(--text-primary) 14%, transparent);
  --dk-hair: color-mix(in srgb, var(--border-default) 70%, transparent);
  width: min(720px, 100%);
  max-height: min(88vh, 960px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dk-head { flex: none; padding: 16px 22px 14px; border-bottom: 1px solid var(--border-default); }
.dk-head__row { display: flex; align-items: center; gap: 10px; }
.dk-head__title { flex: 1; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.dk-head__close { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; color: var(--text-muted); }
@media (hover: hover) {
  .dk-head__close:hover { background: color-mix(in srgb, var(--text-primary) 8%, var(--bg-surface)); color: var(--text-primary); }
}
.dk-head__lead { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.dk-head__meta { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); max-width: 70ch; }
.dk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 8px; }
.dk-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 22px 14px; border-top: 1px solid var(--border-default); background: var(--bg-surface); }
.dk-foot__hint { margin-right: auto; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.dk-foot__form { display: contents; }
.dk-foot__discard { margin-right: 0; }
.dk-foot .cl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dk-btn--danger { color: var(--status-error); border-color: color-mix(in srgb, var(--status-error) 55%, var(--border-default)); }
@media (hover: hover) {
  .dk-btn--danger:hover { border-color: var(--status-error); background: color-mix(in srgb, var(--status-error) 10%, var(--bg-surface)); }
}

/* ── The rail ──────────────────────────────────────────────────────────── */
.dk-rail { list-style: none; margin: 0; padding: 0; }
.dk-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 14px; padding: 0 0 22px; }
.dk-step:last-child { padding-bottom: 6px; }
.dk-step:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--dk-line); }
.dk-step[data-state="done"]:not(:last-child)::before { background: color-mix(in srgb, var(--status-verified) 55%, var(--dk-line)); }
.dk-node { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--dk-line); background: var(--bg-surface); font-size: 11.5px; font-weight: 600; color: var(--text-muted); transition: border-color 200ms ease, background-color 200ms ease; }
.dk-node svg { display: block; }
.dk-step[data-state="now"] .dk-node, .dk-step[data-state="next"] .dk-node { border-color: var(--accent-brief); color: var(--accent-brief); }
.dk-step[data-state="now"] .dk-node { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-brief) 14%, transparent); }
.dk-step[data-state="done"] .dk-node { border-color: var(--status-verified); background: var(--status-verified); color: #fff; }
.dk-step[data-state="failed"] .dk-node { border-color: var(--status-error); background: var(--status-error); color: #fff; }
.dk-step__body { min-width: 0; padding-top: 2px; }
.dk-step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 22px; }
.dk-step__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.dk-step[data-state="todo"] .dk-step__title { color: var(--text-muted); font-weight: 500; }
.dk-receipt { margin-left: auto; font-size: 12px; color: var(--status-verified); text-align: right; }
.dk-step[data-state="failed"] .dk-receipt { color: var(--status-error); }
.dk-step__lead, .dk-step__todo { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); max-width: 70ch; }
.dk-step__todo { color: var(--text-muted); }
.dk-step__lead .cl-live-dot { margin-right: 5px; vertical-align: 1px; }
.dk-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); max-width: 70ch; }

/* ── Step 1: the searches ──────────────────────────────────────────────── */
.dk-queries { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--border-default); border-radius: 12px; overflow: hidden; }
.dk-query { display: grid; grid-template-columns: 22px 122px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; font-size: 12.5px; border-top: 1px solid var(--dk-hair); }
.dk-query:first-child { border-top: 0; }
.dk-query--empty { grid-template-columns: 1fr; color: var(--text-muted); }
.dk-query__on { display: inline-flex; }
.dk-query__on input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent-brief); }
.dk-query__label { font-weight: 500; color: var(--text-primary); }
.dk-query__q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; color: var(--text-secondary); }
.dk-query__pages { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dk-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--text-muted); padding: 0 8px 6px 0; }
.dk-table td { padding: 6px 8px 6px 0; vertical-align: top; border-top: 1px solid var(--dk-hair); }
.dk-table__label { font-weight: 500; color: var(--text-primary); }
.dk-table__why { font-size: 11px; color: var(--text-muted); }

/* ── Disclosure rows (every fold on the ticket): a right chevron closed, down
   open (Bennett 2026-09-21: never a down arrow on a collapsed box); no box,
   one hairline between rows, the body indented under a left rule ─────────── */
.dk-list { margin-top: 10px; }
.dk-list > * + * { border-top: 1px solid var(--dk-hair); }
.dk-row > summary { display: flex; align-items: center; gap: 8px; padding: 9px 6px 9px 2px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; color: var(--text-primary); border-radius: 8px; }
.dk-row > summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .dk-row > summary:hover { background: color-mix(in srgb, var(--text-primary) 5%, var(--bg-surface)); }
}
.dk-row > summary:focus-visible { outline: 2px solid var(--accent-brief); outline-offset: -2px; }
/* ▸ closed → ▾ open (Bennett's chevron rule): the icon is chevron-down, turned to ▸ while closed. */
.dk-row__chev { flex: none; order: -1; display: inline-flex; color: var(--text-faint); transform: none; transition: transform 160ms ease; }
.dk-row[open] > summary .dk-row__chev { transform: rotate(90deg); color: var(--text-secondary); }

/* THE DOCKET THE DECISION RESTS ON (INV-1755): one card per docket that takes the lane or
   needs a read — the caption, the court as a lawyer says it, the allegation the AI quoted */
.dk-take { --dk-take: var(--status-warning); margin: 12px 0 0; padding: 10px 12px 10px 14px; border-radius: 10px; border-left: 3px solid var(--dk-take); background: color-mix(in srgb, var(--dk-take) 7%, var(--bg-surface)); }
.dk-take[data-tone="red"] { --dk-take: var(--status-error); }
.dk-take__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.dk-take__state { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dk-take); }
.dk-take__name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.dk-take__name a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .dk-take__name a:hover { text-decoration: underline; }
}
.dk-take__meta { font-size: 11.5px; color: var(--text-muted); }
.dk-take__quote { display: block; margin: 8px 0 0; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--dk-take) 55%, transparent); font-size: 12.5px; line-height: 1.5; color: var(--text-primary); font-style: italic; }
.dk-take__quote::before { content: open-quote; } .dk-take__quote::after { content: close-quote; }
.dk-take__line, .dk-take__why { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.dk-take__why { color: var(--text-muted); }
.dk-row__title { flex: 1 1 auto; min-width: 0; }
.dk-row__meta { font-size: 12px; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.dk-row__meta--needed { color: var(--status-warning); font-weight: 600; }
.dk-row__meta--done { color: var(--status-verified); }
/* Containers animate with fill-mode BACKWARDS, never both/forwards: a held final keyframe — even
   `transform: none` — leaves an identity transform on the box, which becomes the containing block
   for every position:fixed descendant (the styled select's list, a popover). The channel list in
   step 3 landed 400px from its trigger that way (Bennett 2026-09-22). Leaves (dots, marks) may pop. */
.dk-row__body { margin: 2px 0 10px 8px; padding: 4px 0 4px 14px; border-left: 2px solid var(--dk-hair); animation: dk-rise 180ms ease-out backwards; }
.dk-row__body > .dk-note:first-child { margin-top: 0; }
.dk-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }

/* ── Step 2: the decision ──────────────────────────────────────────────── */
.dk-decision { --dk-tone: var(--text-muted); margin-top: 10px; padding: 16px 18px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--dk-tone) 40%, var(--border-default)); background: color-mix(in srgb, var(--dk-tone) 7%, var(--bg-surface)); }
.dk-decision[data-tone="green"] { --dk-tone: var(--status-verified); }
.dk-decision[data-tone="red"] { --dk-tone: var(--status-error); }
.dk-decision[data-tone="yellow"] { --dk-tone: var(--status-warning); }
.dk-decision__top { display: flex; align-items: center; gap: 10px; }
.dk-decision__dot { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--dk-tone); }
.dk-decision__word { font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--dk-tone); }
.dk-decision__who { margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.dk-decision__reason { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-primary); max-width: 68ch; }
.dk-decision__error { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere; }
.dk-decision__note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); max-width: 68ch; }

.dk-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dk-choice { --dk-tone: var(--text-secondary); position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); font-size: 12.5px; font-weight: 500; color: var(--text-secondary); cursor: pointer; user-select: none; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.dk-choice[data-tone="clear"] { --dk-tone: var(--status-verified); }
.dk-choice[data-tone="crowded"] { --dk-tone: var(--status-error); }
.dk-choice[data-tone="review"] { --dk-tone: var(--status-warning); }
@media (hover: hover) {
  .dk-choice:hover { background: color-mix(in srgb, var(--text-primary) 6%, var(--bg-surface)); border-color: var(--text-faint); }
}
/* flex:none (2026-09-24): without it the dot is a shrinkable flex item, so a
   choice whose label wraps — "Accept case <long room name>" in the partner's
   answer dialog — squeezed the radio into a vertical oval. A radio is round. */
.dk-choice__dot { flex: none; width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--dk-tone) 70%, var(--border-default)); background: transparent; display: grid; place-items: center; transition: background-color 120ms ease, border-color 120ms ease; }
.dk-choice__dot::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #fff; opacity: 0; transition: opacity 120ms ease; }
.dk-choice:has(> input:checked) { border-color: var(--dk-tone); background: color-mix(in srgb, var(--dk-tone) 10%, var(--bg-surface)); color: var(--dk-tone); font-weight: 600; }
.dk-choice:has(> input:checked) .dk-choice__dot { border-color: var(--dk-tone); background: var(--dk-tone); }
.dk-choice:has(> input:checked) .dk-choice__dot::after { opacity: 1; }
.dk-choice:has(> input:focus-visible) { outline: 2px solid var(--accent-brief); outline-offset: 2px; }
.dk-choices__help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); max-width: 68ch; min-height: 18px; }
.dk-field { display: block; margin-top: 14px; }
.dk-field__label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-primary); }
.dk-field__help { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-muted); }
.dk-field textarea { margin-top: 6px; width: 100%; font-size: 13px; line-height: 1.5; resize: vertical; }

.dk-hits { list-style: none; margin: 0; padding: 0; }
.dk-hit { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--dk-hair); font-size: 12.5px; }
.dk-hit:first-child { border-top: 0; }
.dk-hit__mark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--status-verified); background: color-mix(in srgb, var(--status-verified) 14%, var(--bg-surface)); margin-top: 1px; }
.dk-hit[data-on-theory="1"] .dk-hit__mark { color: var(--status-error); background: color-mix(in srgb, var(--status-error) 14%, var(--bg-surface)); }
.dk-hit__block { display: inline-flex; margin-top: 2px; }
.dk-hit__block input { width: 15px; height: 15px; margin: 0; accent-color: var(--status-error); }
.dk-hit__name { color: var(--text-primary); font-weight: 500; }
.dk-hit__name a { color: inherit; text-decoration: none; }
@media (hover: hover) {
  .dk-hit__name a:hover { text-decoration: underline; }
}
.dk-hit__meta, .dk-hit__why { grid-column: 2; font-size: 11.5px; line-height: 1.45; color: var(--text-muted); }
.dk-hit__why { color: var(--text-secondary); }
.dk-hit[data-on-theory="1"] .dk-hit__why { color: var(--status-error); }
/* INV-1755: the allegation the AI quoted from the complaint, and whether it read one */
.dk-hit__quote { grid-column: 2; display: block; margin: 2px 0 0; padding-left: 8px; border-left: 2px solid var(--border-strong); font-size: 11.5px; line-height: 1.45; color: var(--text-secondary); quotes: "\201C" "\201D"; }
.dk-hit__quote::before { content: open-quote; } .dk-hit__quote::after { content: close-quote; }
.dk-hit__read { grid-column: 2; font-size: 10.5px; color: var(--text-faint); }
.dk-finding__read { margin: 6px 0 2px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--text-primary) 4%, transparent); font-size: 12px; line-height: 1.5; }
.dk-finding__read[data-ruling="distinct"] b { color: var(--status-verified); }
.dk-finding__read[data-ruling="crowded"] b { color: var(--status-error); }
.dk-finding__read .dk-hit__quote { grid-column: auto; margin-top: 4px; }
.dk-finding__why { margin: 6px 0; color: var(--text-secondary); }
.dk-finding__note { font-size: 11.5px; color: var(--text-muted); }

.dk-preview { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: 12.5px; line-height: 1.5; }
.dk-preview > div { display: contents; }
.dk-preview dt { color: var(--text-muted); }
.dk-preview dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.dk-preview code { font-size: 11.5px; }
.dk-forums { display: flex; flex-direction: column; gap: 10px; }

/* ── Step 3: the proof ─────────────────────────────────────────────────── */
.dk-proof { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-primary); }
.dk-proof li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.dk-proof code { font-size: 11.5px; overflow-wrap: anywhere; }
.dk-proof__ok { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 999px; background: var(--status-verified); color: #fff; margin-top: 1px; }
.dk-proof__pill { width: 18px; text-align: center; margin-top: 1px; }

/* ── Alerts, the history, small screens ────────────────────────────────── */
.dk-alert { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--status-error); background: var(--status-error-soft); color: var(--status-error); font-size: 13px; line-height: 1.5; }
.dk-alert--warn { margin-top: 10px; border-color: var(--status-warning); background: var(--status-warning-soft); color: var(--status-warning); }
.dk-alert__detail { margin-top: 4px; font-size: 11.5px; }
/* The room's PDFs kept a version from a firm (INV-1797/1798): the file as a chip, the word, the PDF's
   reading beside the room's, the door to the room. */
.dk-pdfs { display: grid; gap: 10px; }
.dk-pdfs__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dk-pdfs__word { font-size: 13.5px; font-weight: 650; }
.dk-pdfs__diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dk-pdfs__diff > div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.dk-pdfs__diff dt { font-size: 12px; font-weight: 650; color: var(--text-secondary); }
.dk-pdfs__diff dd { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-primary); overflow-wrap: anywhere; }
.dk-pdfs__why { margin: 0; font-size: 13px; color: var(--text-primary); }
.dk-pdfs__doors { display: flex; gap: 8px; }
@media (max-width: 560px) { .dk-pdfs__diff { grid-template-columns: 1fr; } }
.dk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dk-check { display: grid; grid-template-columns: 8px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 0; }
.dk-check__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--text-faint); }
.dk-check[data-tone="green"] .dk-check__dot { background: var(--status-verified); }
.dk-check[data-tone="red"] .dk-check__dot { background: var(--status-error); }
.dk-check[data-tone="yellow"] .dk-check__dot { background: var(--status-warning); }
.dk-check[data-tone="blue"] .dk-check__dot { background: var(--accent-brief); animation: cl-na-pulse 1.6s ease-in-out infinite; }
.dk-check__word { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
.dk-check__meta { color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-check__here { font-size: 11px; color: var(--text-faint); }
.dk-check--empty { grid-template-columns: 1fr; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .dk-check[data-tone="blue"] .dk-check__dot { animation: none; } .dk-row__chev, .dk-node, .dk-choice { transition: none; } }
@media (max-width: 640px) {
  .dk-root { padding: 3vh 8px 2vh; }
  .dk-head, .dk-body, .dk-foot { padding-left: 14px; padding-right: 14px; }
  .dk-query { grid-template-columns: 22px minmax(0, 1fr); }
  .dk-query__q, .dk-query__pages { grid-column: 2; }
  .dk-receipt { margin-left: 0; text-align: left; flex-basis: 100%; }
  .dk-preview { grid-template-columns: 1fr; gap: 2px 0; }
  .dk-preview dd { margin-bottom: 6px; }
  .dk-foot__hint { flex-basis: 100%; margin-right: 0; }
}

/* ── Step 3: the readiness list and the one door (Bennett 2026-09-21: "the
   record clear should be at the END of the process, and you shouldn't be able
   to click it until you've completed every required thing") ──────────────── */
.dk-ready { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.dk-ready li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; }
.dk-ready__mark { width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; margin-top: 1px; font-size: 11px; font-weight: 700; border: 1.5px solid var(--dk-line); color: transparent; }
.dk-ready li[data-ok="1"] .dk-ready__mark { border-color: var(--status-verified); background: var(--status-verified); color: #fff; }
.dk-ready li[data-ok="1"] .dk-ready__mark::before { content: "✓"; }
.dk-ready li[data-ok="0"] .dk-ready__mark { border-color: var(--status-warning); color: var(--status-warning); }
.dk-ready li[data-ok="0"] .dk-ready__mark::before { content: "!"; }
.dk-ready li[data-ok="opt"] .dk-ready__mark { border-style: dashed; border-color: var(--text-faint); }
/* A court the record will leave OWED (INV-1667): not a block on recording what was
   searched, and never quiet — the lead stays held on it. */
.dk-ready li[data-ok="owed"] .dk-ready__mark { border-color: var(--status-warning); color: var(--status-warning); }
.dk-ready li[data-ok="owed"] .dk-ready__mark::before { content: "◌"; font-size: 12px; }
.dk-ready li[data-ok="owed"] .dk-ready__detail { color: var(--status-warning); }
.dk-outcome { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--dk-line); background: var(--bg-surface-2, var(--bg-surface)); font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.dk-outcome b { color: var(--text-primary); font-weight: 600; margin-right: 4px; }
.dk-outcome[data-complete="1"] { border-color: color-mix(in srgb, var(--status-verified) 45%, transparent); background: var(--status-verified-soft); }
.dk-outcome[data-complete="0"] { border-color: color-mix(in srgb, var(--status-warning) 45%, transparent); background: var(--status-warning-soft); }

/* ── The legs of a clearance (INV-1665): one row per court, the same grammar on the
   ticket, the lead page's card, the popup's Docket box and the doors that refuse. ── */
.dk-legs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.45; }
.dk-legs li { display: grid; grid-template-columns: 16px auto minmax(0, 1fr); column-gap: 7px; align-items: baseline; color: var(--text-secondary); }
.dk-legs li b { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.dk-legs__mark { font-size: 12px; font-weight: 700; text-align: center; color: var(--text-faint); }
.dk-legs li[data-state="searched"] .dk-legs__mark { color: var(--status-verified); }
.dk-legs li[data-state="owed"] .dk-legs__mark, .dk-legs li[data-state="stale"] .dk-legs__mark { color: var(--status-warning); }
.dk-legs li[data-state="owed"] > span:last-child, .dk-legs li[data-state="stale"] > span:last-child { color: var(--status-warning); }
.dk-alert .dk-legs li, .dk-alert .dk-legs li b { color: inherit; }
.dk-legsbox { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--dk-line); border-radius: 12px; background: var(--bg-surface-2, var(--bg-surface)); }
.dk-legsbox__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.dk-legsbox__head b { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text-secondary); }
.dk-legsbox__head b[data-tone="green"] { color: var(--status-verified); }
.dk-legsbox__head b[data-tone="yellow"] { color: var(--status-warning); }
.dk-legsbox__head b[data-tone="red"] { color: var(--status-error); }
.dk-legsbox .dk-note { margin-top: 8px; }
/* The clearance card's verdict hero and a finding beside a Clear — plain rules here, never
   Tailwind utilities: the prebuilt stylesheet purges the ones no page used before. */
.dk-hero { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; background: var(--bg-surface-2, var(--bg-surface)); color: var(--text-primary); }
.dk-hero[data-tone="green"] { background: var(--status-verified-soft); color: var(--status-verified); }
.dk-hero[data-tone="yellow"] { background: var(--status-warning-soft); color: var(--status-warning); }
.dk-hero[data-tone="red"] { background: var(--status-error-soft); color: var(--status-error); }
.dk-finding { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--status-error); font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); }
.dk-finding--box { margin: 0 0 10px; }
.dk-finding--box > b { display: block; color: var(--text-primary); font-weight: 600; }
.dk-finding--box > p { margin: 4px 0 0; }
.dk-ruled { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--border-default); font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); }
.dk-ready__text { display: block; min-width: 0; }
.dk-ready__text b { font-weight: 600; color: var(--text-primary); margin-right: 6px; }
.dk-ready__detail { color: var(--text-secondary); }
.dk-ready li[data-ok="0"] .dk-ready__detail { color: var(--status-warning); }
.dk-record { display: flex; width: 100%; height: 40px; margin-top: 14px; font-size: 13.5px; }
/* in the footer (2026-10-03): the one primary door on the sticky line, its hint beside it */
.dk-foot .dk-record { width: auto; height: 34px; margin: 0; padding: 0 14px; font-size: 12.5px; }
.dk-foot .dk-foot__discard { order: -2; }
.dk-foot .dk-note[data-test-id="docket-foot-hint"] { order: -1; flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--text-faint); }
.dk-foot .dk-record { order: 2; }  /* the primary last; Close before it */
.dk-record:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) {
  .dk-record:disabled:hover { background: var(--bg-surface); border-color: var(--text-faint); }
}

/* ── Chips in the header, the record stamp, the receipt grid ─────────────── */
.dk-head__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dk-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border-default); font-size: 11.5px; color: var(--text-secondary); background: var(--bg-surface); }
.dk-chip--live { color: var(--status-verified); border-color: color-mix(in srgb, var(--status-verified) 40%, var(--border-default)); }
.dk-chip__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--status-verified); animation: dk-breathe-dot 2.4s ease-in-out infinite; }
.dk-stamp { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--status-verified) 40%, var(--border-default)); background: color-mix(in srgb, var(--status-verified) 7%, var(--bg-surface)); animation: dk-rise 260ms cubic-bezier(.2,.7,.2,1) both; }
.dk-stamp__mark { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--status-verified); color: #fff; animation: dk-pop 420ms cubic-bezier(.2,.9,.3,1.4) both 120ms; }
.dk-stamp__word { font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--status-verified); }
.dk-stamp__who { font-family: inherit; font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; margin-top: 2px; }
.dk-receipts { margin: 10px 0 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 9px 14px; font-size: 12.5px; line-height: 1.5; }
.dk-receipts > div { display: contents; }
.dk-receipts dt { color: var(--text-muted); }
.dk-receipts dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.dk-receipts dd > * + * { margin-left: 8px; }
.dk-receipts code { font-size: 11.5px; }
.dk-receipts__note { color: var(--text-muted); font-size: 12px; }
.dk-receipts__link { font-size: 12px; color: var(--accent-brief); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-brief) 40%, transparent); }
@media (hover: hover) {
  .dk-receipts__link:hover { border-bottom-color: var(--accent-brief); }
}
.dk-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 6px; vertical-align: -1px; }
.dk-swatch[data-tone="green"] { background: var(--status-verified); }
.dk-swatch[data-tone="yellow"] { background: var(--status-warning); }
.dk-swatch[data-tone="red"] { background: var(--status-error); }
.dk-receipts > div { animation: dk-rise 240ms ease-out backwards; }
.dk-receipts > div:nth-child(1) { animation-delay: 120ms; }
.dk-receipts > div:nth-child(2) { animation-delay: 180ms; }
.dk-receipts > div:nth-child(3) { animation-delay: 240ms; }
.dk-receipts > div:nth-child(4) { animation-delay: 300ms; }

/* ── Done: three marked lines under the stamp ──────────────────────────── */
.dk-done { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.dk-done li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; animation: dk-rise 220ms ease-out both; }
.dk-done li:nth-child(1) { animation-delay: 140ms; } .dk-done li:nth-child(2) { animation-delay: 200ms; } .dk-done li:nth-child(3) { animation-delay: 260ms; }
.dk-done__icon { display: grid; place-items: center; width: 18px; height: 18px; color: var(--text-muted); font-size: 12px; margin-top: 1px; }
.dk-done__text { min-width: 0; overflow-wrap: anywhere; }
.dk-done__text b { font-weight: 600; color: var(--text-primary); }
.dk-done__text code { font-size: 11.5px; }
.dk-done__link { margin-left: 10px; font-size: 12px; color: var(--accent-brief); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-brief) 40%, transparent); white-space: nowrap; }
@media (hover: hover) {
  .dk-done__link:hover { border-bottom-color: var(--accent-brief); }
}
.dk-earlier { margin: 6px 0 4px; padding-top: 12px; border-top: 1px solid var(--dk-hair); }
.dk-earlier__title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.dk-earlier__count { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border-default); color: var(--text-muted); }

/* ── Every check on the lead, as cards (INV-1267) ───────────────────────── */
.dk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.dk-card__slot { display: contents; }
.dk-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 8px; align-items: start; width: 100%; padding: 10px 12px 10px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--bg-surface); text-align: left; font: inherit; color: inherit; cursor: pointer; animation: dk-rise 220ms ease-out both; animation-delay: calc(var(--dk-i, 0) * 40ms); transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
@media (hover: hover) {
  button.dk-card:hover { border-color: var(--text-faint); box-shadow: 0 2px 10px color-mix(in srgb, var(--text-primary) 8%, transparent); transform: translateY(-1px); }
}
button.dk-card:focus-visible { outline: 2px solid var(--accent-brief); outline-offset: 2px; }
.dk-card--here { cursor: default; border-color: color-mix(in srgb, var(--accent-brief) 45%, var(--border-default)); background: color-mix(in srgb, var(--accent-brief) 5%, var(--bg-surface)); }
.dk-card[data-tone="green"] { border-top: 3px solid var(--status-verified); }
.dk-card[data-tone="red"] { border-top: 3px solid var(--status-error); }
.dk-card[data-tone="yellow"] { border-top: 3px solid var(--status-warning); }
.dk-card[data-tone="blue"] { border-top: 3px solid var(--accent-brief); }
.dk-card[data-tone="grey"] { border-top: 3px solid var(--text-faint); opacity: .85; }
.dk-card__top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dk-card__dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--text-faint); }
.dk-card[data-tone="green"] .dk-card__dot { background: var(--status-verified); }
.dk-card[data-tone="red"] .dk-card__dot { background: var(--status-error); }
.dk-card[data-tone="yellow"] .dk-card__dot { background: var(--status-warning); }
.dk-card[data-tone="blue"] .dk-card__dot { background: var(--accent-brief); animation: cl-na-pulse 1.6s ease-in-out infinite; }
.dk-card__word { font-size: 13.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-card[data-tone="green"] .dk-card__word { color: var(--status-verified); }
.dk-card[data-tone="red"] .dk-card__word { color: var(--status-error); }
.dk-card[data-tone="yellow"] .dk-card__word { color: var(--status-warning); }
.dk-card__tag { font-size: 10.5px; font-weight: 500; line-height: 16px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border-default); color: var(--text-muted); white-space: nowrap; }
.dk-card__when { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; font-weight: 500; color: var(--text-secondary); line-height: 1.2; white-space: nowrap; }
.dk-card__when small { font-size: 10.5px; font-weight: 400; color: var(--text-muted); }
.dk-card__marks { grid-column: 1 / span 2; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.dk-mark { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.dk-mark svg { flex: none; opacity: .8; }
.dk-mark code { font-size: 10.5px; color: var(--text-secondary); }
.dk-mark[data-mark="ai"] { color: var(--accent-brief); }
.dk-mark[data-mark="scope"] { color: var(--text-secondary); }
.dk-mark[data-mark="error"] { color: var(--status-error); }
.dk-card__go { position: absolute; right: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--text-faint); transition: color 120ms ease, transform 120ms ease; }
@media (hover: hover) {
  button.dk-card:hover .dk-card__go { color: var(--text-primary); transform: translateX(2px); }
}
.dk-card--here .dk-card__go { color: var(--accent-brief); }
.dk-card:has(.dk-card__marks:not(:empty)) .dk-card__go { bottom: 10px; }
.dk-cards__more { grid-column: 1 / -1; justify-self: start; }
.dk-cards__empty { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--text-muted); }
@media (max-width: 640px) { .dk-cards { grid-template-columns: 1fr 1fr; } }

/* ── Motion: one reveal per step change, the way the pipeline page and the
   documents tab land their changes (rise + pop), never a hover flourish ──── */
@keyframes dk-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dk-pop { 0% { transform: scale(.5); opacity: 0; } 65% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dk-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dk-breathe { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-brief) 10%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-brief) 18%, transparent); } }
@keyframes dk-breathe-dot { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.dk-step[data-state="now"] .dk-node { animation: dk-breathe 2.4s ease-in-out infinite; }
.dk-step[data-state="done"] .dk-node { animation: dk-pop 360ms cubic-bezier(.2,.9,.3,1.4) both; }
.dk-step[data-state="done"]:not(:last-child)::before { transform-origin: top; animation: dk-draw 420ms ease-out both 160ms; }
.dk-receipt { animation: dk-rise 240ms ease-out backwards 200ms; }
.dk-decision, .dk-list, .dk-queries, .dk-ready { animation: dk-rise 240ms cubic-bezier(.2,.7,.2,1) backwards; }
.dk-list { animation-delay: 60ms; }
.dk-ready li { animation: dk-rise 220ms ease-out backwards; }
.dk-ready li:nth-child(1) { animation-delay: 40ms; } .dk-ready li:nth-child(2) { animation-delay: 90ms; } .dk-ready li:nth-child(3) { animation-delay: 140ms; } .dk-ready li:nth-child(4) { animation-delay: 190ms; } .dk-ready li:nth-child(5) { animation-delay: 240ms; }
.dk-ready li[data-ok="1"] .dk-ready__mark { animation: dk-pop 320ms cubic-bezier(.2,.9,.3,1.4) both; }
.dk-record { transition: box-shadow 200ms ease, opacity 200ms ease, border-color 200ms ease; }
.dk-record:not(:disabled) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-brief) 10%, transparent); }
@media (hover: hover) {
  .dk-record:not(:disabled):hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-brief) 16%, transparent); }
}
.dk-choice:has(> input:checked) { animation: dk-pop 240ms cubic-bezier(.2,.9,.3,1.2) backwards; }
@media (prefers-reduced-motion: reduce) {
  .dk-step .dk-node, .dk-step::before, .dk-receipt, .dk-decision, .dk-list, .dk-queries, .dk-ready, .dk-ready li, .dk-ready__mark, .dk-record, .dk-choice, .dk-stamp, .dk-stamp__mark, .dk-receipts > div, .dk-card, .dk-card__dot, .dk-chip__dot { animation: none !important; transition: none !important; }
}

/* ── Record a Westlaw search… (specs/153 §10, INV-1922) ──────────────────────
   The ticket's sheet for a hand search with no CourtListener run: the federal leg as one fact
   line (carried with its date, or owed), each court a quiet card (its Westlaw steps folded, the
   party names to copy, the inputs on one wrapping row), and the batch's rows — one lead each,
   a court per line. House tokens only; nothing moves on hover (INV-1874). */
.wl-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); max-width: 72ch; }
.wl-federal { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 4px 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.wl-federal[data-state="owed"] { border-color: color-mix(in srgb, var(--status-warning) 45%, var(--border-default)); background: color-mix(in srgb, var(--status-warning) 6%, var(--bg-surface)); }
.wl-federal__mark { font-size: 13px; line-height: 1.5; color: var(--status-verified); }
.wl-federal[data-state="owed"] .wl-federal__mark { color: var(--status-warning); }
.wl-federal__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.wl-federal__text b { font-size: 13px; color: var(--text-primary); }
.wl-legs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wl-leg { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.wl-leg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wl-leg__court { font-size: 12px; color: var(--text-muted); }
.wl-leg__how { margin-top: 8px; }
.wl-leg__how > summary { cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--text-secondary); list-style: none; }
.wl-leg__how > summary::-webkit-details-marker { display: none; }
.wl-leg__how > summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--text-faint); }
.wl-leg__how[open] > summary::before { content: "▾"; }
.wl-leg__how-body { margin: 6px 0 0 14px; }
.wl-steps { margin: 0; padding-left: 20px; list-style: decimal; font-size: 12.5px; line-height: 1.6; color: var(--text-primary); }
.wl-count { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.wl-count[data-done="1"] { color: var(--status-verified); }
.wl-pill { font-size: 11px; }
.wl-strings { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.wl-leg__inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 10px; }
.wl-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-secondary); }
.wl-field > span { white-space: nowrap; }
.wl-field i { font-style: normal; color: var(--text-faint); }
.wl-field .cl-input { height: 30px; font-size: 12.5px; }
.wl-field input[type="date"] { width: 142px; }
.wl-field--num .cl-input { width: 100px; }
.wl-field--note { flex: 1 1 200px; min-width: 0; }
.wl-field--note .cl-input { width: 100%; }
.wl-field--file input[type="file"] { max-width: 230px; font-size: 12px; color: var(--text-secondary); }
.wl-check { display: inline-flex; align-items: center; gap: 6px; height: 30px; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.wl-check i { font-style: normal; color: var(--text-faint); }
.wl-preview code { font-size: 12px; }
.wl-signer { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
/* the batch */
.wl-batch { width: min(980px, 100%); }
.wl-batch__n { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.wl-batch__head { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.wl-batch__head[data-tone="red"] { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--status-error); background: var(--status-error-soft); color: var(--status-error); }
.wl-batch__list { display: flex; flex-direction: column; gap: 8px; }
.wl-brow { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.wl-brow[data-state="committed"] { border-color: color-mix(in srgb, var(--status-verified) 40%, var(--border-default)); }
.wl-brow[data-state="refused"] { border-color: color-mix(in srgb, var(--status-error) 45%, var(--border-default)); }
.wl-brow[data-state="skipped"] { background: color-mix(in srgb, var(--text-primary) 3%, var(--bg-surface)); }
.wl-brow__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.wl-brow__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.wl-brow__state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.wl-brow__state[data-tone="green"] { color: var(--status-verified); }
.wl-brow__state[data-tone="red"] { color: var(--status-error); }
.wl-brow__state[data-tone="blue"] { color: var(--accent-brief); }
.wl-brow__state code { font-size: 12px; }
.wl-brow__line { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
.wl-brow__line[data-tone="red"] { color: var(--status-error); }
.wl-bleg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dk-hair); }
.wl-bleg__court { flex: 0 0 120px; align-self: center; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
@media (max-width: 640px) {
  .wl-federal { grid-template-columns: 18px minmax(0, 1fr); }
  .wl-federal > .cl-btn { grid-column: 2; justify-self: start; }
  .wl-bleg__court { flex-basis: 100%; }
}

/* ── THE TICKET AS A DRAWER (Lane D, specs/167 §3): ?lead=<pk>&docket=<check pk|rule> ─────────
   The same ticket beside the popup in the shell's drawer: no overlay, the drawer's own bar closes
   it, the sheet fills the drawer's body. */
.dk-root--drawer { padding: 0; }
.dk-ticket--drawer { width: 100%; max-height: none; height: auto; display: block; background: var(--bg-surface); }
.dk-ticket--drawer .dk-head__close { display: none; }
.dk-ticket--drawer .dk-body { overflow: visible; padding: 14px 18px 8px; }
.dk-ticket--drawer .dk-foot { padding: 10px 18px 14px; }

/* ── THE RULING (Lane D, INV-2486): a finding in full, its doors, the three choices ──────── */
.dk-rail--rule .dk-step__lead { margin-bottom: 10px; }
.dk-rfinding { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--status-error) 34%, var(--border-default)); background: color-mix(in srgb, var(--status-error) 5%, var(--bg-surface)); animation: dk-rise 0.24s ease both; animation-delay: calc(var(--dk-i, 0) * 40ms); }
.dk-rfinding__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-primary); }
.dk-rfinding__glyph { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; font-weight: 800; font-size: 12px; color: var(--status-error); background: var(--status-error-soft); }
.dk-rfinding__date { margin-left: auto; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dk-rfinding__text { margin: 0; padding: 0 0 0 12px; border-left: 3px solid color-mix(in srgb, var(--status-error) 45%, transparent); font-size: 13.5px; line-height: 1.55; color: var(--text-primary); overflow-wrap: anywhere; }
.dk-rfinding__text--ruled { margin: 8px 0 0; border-left-color: color-mix(in srgb, var(--status-verified) 45%, transparent); font-size: 12.5px; color: var(--text-secondary); }
.dk-rfinding__doors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dk-rfinding__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-right: 2px; }
.dk-rfinding__none { font-size: 12px; color: var(--text-muted); }
.dk-rfinding__pleading { margin: 0; display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-primary); background: color-mix(in srgb, var(--text-muted) 9%, transparent); }
.dk-rfinding__pleading > span { font-weight: 800; color: var(--text-muted); }
.dk-rfinding__read { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.dk-rhold { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--status-error) 40%, var(--border-default)); background: var(--status-error-soft); }
.dk-rhold__glyph { font-size: 16px; font-weight: 800; color: var(--status-error); }
.dk-rhold b { font-size: 13px; color: var(--status-error); }
.dk-rhold p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-primary); }
.dk-rule { display: grid; gap: 8px; margin-top: 4px; }
.dk-choice[data-refused] { opacity: 0.5; cursor: not-allowed; }
.dk-field--hold select { max-width: 200px; }
.dk-stamp--ruled .dk-stamp__who { white-space: normal; }
.dk-history { margin-top: 14px; }
.dk-history .dk-earlier { margin-top: 12px; }
@keyframes dk-rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dk-rfinding { animation: none; } }
