/* DarkControl Forensics: evidence sheet, black and white. One file, no build step. */
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/HostGrotesk.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/IBMPlexMono-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/IBMPlexMono-latin-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  color-scheme: dark;
  --bg: #000; --raise: #0a0a0a; --sel: #161616;
  --fg: #f4f4f4; --fg-2: #a3a3a3; --fg-3: #8a8a8a;
  --line: #2a2a2a; --line-2: #4a4a4a; --line-strong: rgba(255,255,255,.6);
  --inv-bg: #fff; --inv-fg: #000; --focus: #fff;
  --sans: "Host Grotesk", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Liberation Mono", monospace;
  --pad: 32px; --margin: 96px; --head: 57px; --tabs: 45px;
}
[data-sheet=white] {
  color-scheme: light;
  --bg: #fff; --raise: #fff; --sel: #f0f0f0;
  --fg: #000; --fg-2: #333; --fg-3: #595959;
  --line: rgba(0,0,0,.18); --line-2: rgba(0,0,0,.4); --line-strong: #000;
  --inv-bg: #000; --inv-fg: #fff; --focus: #000;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { background: var(--bg); color: var(--fg); font: 400 15px/24px var(--sans); font-variant-numeric: tabular-nums slashed-zero; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
h1, h2, h3 { font-weight: 400; }
h1 { font: 300 30px/38px var(--sans); letter-spacing: -.015em; overflow-wrap: anywhere; }
h2 { font: 400 19px/28px var(--sans); letter-spacing: -.005em; }
h3 { font: 500 15px/24px var(--sans); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
ol, ul { padding: 0; list-style: none; }
pre { font: 400 13px/22px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--bg); }
main:focus-visible, h1:focus-visible, h2:focus-visible { outline: none; box-shadow: none; }
::selection { background: var(--inv-bg); color: var(--inv-fg); }
.fx-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fx-skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--inv-bg); color: var(--inv-fg); padding: 8px 16px; }
.fx-skip:focus { top: 8px; }

/* evidence text */
.fx-ev { unicode-bidi: isolate; overflow-wrap: anywhere; }
.fx-m { font-family: var(--mono); font-size: 13px; font-variant-ligatures: none; unicode-bidi: isolate-override; direction: ltr; overflow-wrap: anywhere; }
.fx-ctl { font: 400 .82em/1 var(--mono); border: 1px solid var(--line-2); padding: 0 2px; margin: 0 1px; color: var(--fg); background: var(--raise); unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.fx-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-note { font-size: 12.5px; line-height: 18px; color: var(--fg-2); }
.fx-2 { color: var(--fg-2); }
.fx-3 { color: var(--fg-3); }
.fx-b { font-weight: 500; }
.fx-strike { text-decoration: line-through; color: var(--fg-3); }
.fx-num { text-align: right; }

/* masthead and tabs */
.fx-mast { display: flex; align-items: center; gap: 16px; height: var(--head); padding: 0 var(--pad); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; background: var(--bg); }
.fx-mast a { text-decoration: none; }
.fx-mast a:hover { text-decoration: underline; }
.fx-mark { font-size: 15px; white-space: nowrap; }
.fx-mast .fx-m { white-space: nowrap; }
.fx-mast .ref::before { content: "/"; color: var(--fg-3); margin-right: 16px; font-family: var(--sans); }
.fx-mast .right { margin-left: auto; display: flex; gap: 24px; align-items: center; white-space: nowrap; color: var(--fg-2); }
.fx-mast .right a { color: var(--fg); }
.fx-tabs { display: flex; gap: 28px; height: var(--tabs); padding: 0 var(--pad); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; font-size: 14px; background: var(--bg); position: sticky; top: 0; z-index: 10; }
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tabs a { flex: none; display: flex; align-items: center; text-decoration: none; color: var(--fg-2); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.fx-tabs a:hover { color: var(--fg); }
.fx-tabs a[aria-current] { color: var(--fg); font-weight: 500; border-bottom-color: var(--fg); }
.fx-tabs a:focus-visible { outline-offset: -2px; }

/* sheets */
.fx-main { display: block; padding: 56px var(--pad) 96px; max-width: calc(1180px + 2 * var(--pad)); }
.fx-main.wide { max-width: none; padding: 0; }
.fx-top { padding-left: var(--margin); margin-bottom: 48px; display: grid; gap: 8px; }
.fx-top .act { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.fx-top > p { max-width: 68ch; color: var(--fg-2); }
.fx-sec { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); border-top: 1px solid var(--line); padding: 23px 0 48px; }
.fx-sec > .m { font: 400 13px/28px var(--mono); color: var(--fg-3); padding-right: 12px; overflow-wrap: anywhere; }
.fx-sec > .c { min-width: 0; display: grid; gap: 16px; align-content: start; }
.fx-sec > .c > h2 { margin-bottom: 4px; }
.fx-sechead { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.fx-prose { max-width: 68ch; }

.fx-kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); font-size: 14px; line-height: 22px; }
.fx-kv > dt { color: var(--fg-2); padding: 8px 16px 8px 0; border-top: 1px solid var(--line); }
.fx-kv > dd { padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.fx-kv > dt:first-of-type, .fx-kv > dt:first-of-type + dd { border-top: 0; }
.fx-sec .fx-kv > dt:first-of-type, .fx-sec .fx-kv > dt:first-of-type + dd { padding-top: 0; }

/* tables */
.fx-tw { min-width: 0; }
.fx-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.fx-table th { text-align: left; font-weight: 400; font-size: 12.5px; line-height: 18px; color: var(--fg-2); padding: 0 16px 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.fx-table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fx-table th:last-child, .fx-table td:last-child { padding-right: 0; }
.fx-table .fx-num { text-align: right; overflow-wrap: normal; white-space: nowrap; }
.fx-table .nw { white-space: nowrap; overflow-wrap: normal; }
.fx-table tr.link { cursor: pointer; }
.fx-table tr.link:hover td, .fx-table tr[aria-selected=true] td { background: var(--sel); }
.fx-table tr.link a { text-decoration: none; }
.fx-table tr.link:hover a.main { text-decoration: underline; }
.fx-empty { padding: 8px 0; color: var(--fg-2); display: grid; gap: 16px; justify-items: start; }

/* controls */
.fx-btn { appearance: none; background: transparent; color: var(--fg); border: 1px solid var(--line-2); padding: 7px 16px; font-size: 14px; line-height: 22px; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity 80ms; white-space: nowrap; }
.fx-btn:hover { border-color: var(--fg); }
.fx-btn.pri { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.fx-btn.pri:hover { opacity: .86; }
.fx-btn:disabled, .fx-btn[aria-disabled=true] { color: var(--fg-3); border-color: var(--line); background: transparent; cursor: not-allowed; opacity: 1; }
.fx-btn.sm { padding: 3px 10px; font-size: 13px; }
.fx-link { appearance: none; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-align: left; font-size: inherit; line-height: inherit; }
.fx-link:hover { text-decoration-color: currentColor; }
.fx-link:disabled { color: var(--fg-3); cursor: default; text-decoration: none; }
.fx-form { display: grid; gap: 24px; max-width: 620px; }
.fx-f { display: grid; gap: 6px; min-width: 0; }
.fx-f > label, .fx-f > .lab { font-size: 14px; line-height: 22px; }
.fx-f .fx-note.err { color: var(--fg); font-weight: 500; }
.fx-input, .fx-select, .fx-area { width: 100%; background: var(--bg); border: 1px solid var(--line-2); padding: 8px 12px; font-size: 15px; line-height: 22px; min-width: 0; }
.fx-input, .fx-select { height: 40px; }
.fx-area { min-height: 112px; resize: vertical; }
.fx-input:hover, .fx-select:hover, .fx-area:hover { border-color: var(--fg-3); }
.fx-input[aria-invalid=true], .fx-area[aria-invalid=true], .fx-select[aria-invalid=true] { border: 2px solid var(--fg); }
.fx-input::placeholder { color: var(--fg-3); opacity: 1; }
.fx-input.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.fx-select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a8a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; text-overflow: ellipsis; }
.fx-select option { background: #000; color: #f4f4f4; }
[data-sheet=white] .fx-select option { background: #fff; color: #000; }
.fx-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 22px; cursor: pointer; }
.fx-check input { appearance: none; flex: none; width: 16px; height: 16px; margin: 3px 0 0; border: 1px solid var(--fg-3); background: var(--bg); cursor: pointer; }
.fx-check input[type=radio] { border-radius: 50%; }
.fx-check input:checked { background: var(--inv-bg); border-color: var(--inv-bg); box-shadow: inset 0 0 0 3px var(--bg); }
.fx-check input:checked:focus-visible { box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px var(--bg); }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; line-height: 22px; margin-bottom: 8px; }
.fx-notice { border: 1px solid var(--line-2); padding: 12px 16px; font-size: 14px; line-height: 22px; max-width: 760px; }
.fx-notice b { font-weight: 500; margin-right: 8px; }
.fx-notice.strong { border-color: var(--fg); }

/* marks */
.fx-sev { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fx-sev svg, .fx-conf svg { flex: none; display: block; }
.fx-sev.critical { background: var(--inv-bg); color: var(--inv-fg); padding: 0 8px; font-weight: 500; }
.fx-conf { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fx-time { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.fx-time .z { color: var(--fg-3); }
.fx-x { font: 400 13px/22px var(--mono); background: none; border: 0; padding: 0; cursor: copy; color: var(--fg-2); white-space: nowrap; }
.fx-x:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.fx-hash { font: 400 13px/20px var(--mono); display: inline-grid; grid-template-columns: auto auto; gap: 0 12px; background: none; border: 0; padding: 0; cursor: copy; text-align: left; color: inherit; justify-content: start; }
.fx-hash:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-mono { font: 400 13px/22px var(--mono); border: 1px solid var(--line); padding: 12px 16px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; unicode-bidi: isolate-override; direction: ltr; font-variant-ligatures: none; }
.fx-mono.flat { border: 0; padding: 0; max-height: none; }
.fx-diff .add { font-weight: 700; } .fx-diff .del { color: var(--fg-3); text-decoration: line-through; }
.fx-bar { height: 1px; background: var(--line-2); position: relative; width: 100%; margin: 10px 0; }
.fx-bar svg { position: absolute; left: 0; top: -2px; width: 100%; height: 5px; }
.fx-gap { border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 8px 0; color: var(--fg-2); font-size: 14px; line-height: 22px; }

/* sign in */
.fx-sign { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(24px, 4.5vw, 64px); }
.fx-sign .body { align-self: center; padding: 40px 0; width: 100%; max-width: 420px; display: grid; gap: 32px; }
.fx-sign .body.wider { max-width: 760px; }
.fx-sign h1 { font: 300 30px/38px var(--sans); }
.fx-sign .sub { color: var(--fg-2); margin-top: 4px; }
.fx-sign .foot { color: var(--fg-3); }
.fx-qr { background: #fff; width: 212px; padding: 12px; }
.fx-qr svg { display: block; width: 188px; height: 188px; }
.fx-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; font: 400 15px/28px var(--mono); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 420px; }
.fx-steps { counter-reset: s; display: grid; gap: 0; }
.fx-steps > li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 16px 0; border-top: 1px solid var(--line); }
.fx-steps > li::before { content: counter(s) "."; color: var(--fg-2); }
.fx-steps > li > div { display: grid; gap: 10px; min-width: 0; }
.fx-cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--line-2); }
.fx-cmd pre { padding: 10px 14px; }
.fx-cmd button { border: 0; border-left: 1px solid var(--line-2); background: none; padding: 0 16px; cursor: pointer; font-size: 13px; align-self: stretch; }
.fx-cmd button:hover { background: var(--sel); }
.fx-cmd button:focus-visible { outline-offset: -3px; box-shadow: none; }

/* timeline workspace */
.fx-work { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--head) - var(--tabs)); min-height: 460px; }
.fx-work.open { grid-template-columns: minmax(0, 1fr) minmax(420px, 34vw); }
.fx-tl { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.fx-filters { display: grid; gap: 12px; padding: 16px var(--pad) 12px; border-bottom: 1px solid var(--line); }
.fx-filters .line { display: flex; gap: 8px; align-items: center; min-width: 0; }
.fx-filters .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.fx-filters .grid.two { grid-template-columns: repeat(2, minmax(0, 220px)) auto 1fr; align-items: end; }
.fx-filters .fx-input, .fx-filters .fx-select { height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 14px; }
.fx-filters .fx-select { border-color: var(--line); color: var(--fg-2); }
.fx-filters .fx-select.on { border-color: var(--fg); color: var(--fg); }
.fx-filters label.mini { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 18px; color: var(--fg-2); min-width: 0; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; line-height: 20px; color: var(--fg-2); }
.fx-histo { padding: 12px var(--pad) 8px; border-bottom: 1px solid var(--line); }
.fx-histo svg { display: block; width: 100%; height: 56px; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.fx-histo .bar { fill: none; stroke: var(--fg-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fx-histo .bar.hi { fill: var(--fg); stroke: none; }
.fx-histo .base { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.fx-histo .cur { stroke: var(--fg); vector-effect: non-scaling-stroke; stroke-dasharray: 2 2; }
.fx-histo .brush { fill: var(--fg); opacity: .16; }
.fx-histo .ax { display: flex; justify-content: space-between; gap: 16px; font: 400 12px/18px var(--mono); color: var(--fg-3); padding-top: 4px; }
.fx-status { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 8px var(--pad); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--fg-2); }
.fx-status .fx-row { gap: 4px 20px; }
.fx-list { overflow-y: auto; overflow-x: hidden; min-height: 0; position: relative; contain: strict; overflow-anchor: none; scrollbar-color: var(--line-2) var(--bg); height: 100%; }
.fx-canvas { position: relative; }
.fx-ev-row { position: absolute; left: 0; right: 0; height: 37px; display: grid; gap: 0 14px; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; cursor: default; }
.fx-ev-row:hover { background: var(--raise); }
.fx-ev-row[aria-selected=true] { background: var(--sel); }
.fx-ev-row:focus-visible { outline-offset: -2px; box-shadow: none; }
.fx-ev-row .s { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fx-ev-row.key .t { font-weight: 500; }
.fx-ev-row.dup .t, .fx-ev-row.rsn .t { font-weight: 400; color: var(--fg-2); }
.fx-ev-row .e { display: flex; gap: 14px; font: 400 12px/22px var(--mono); color: var(--fg-3); white-space: nowrap; }
.fx-ev-row .bm { font: 400 12px/22px var(--sans); color: var(--fg); }
.fx-daybreak { position: absolute; left: 0; right: 0; pointer-events: none; }
.fx-load { position: absolute; left: var(--pad); color: var(--fg-3); font-size: 13px; line-height: 37px; }
.fx-list .fx-empty { padding: 40px var(--pad); }

/* panel */
.fx-panel { border-left: 1px solid var(--line-2); overflow: auto; min-height: 0; padding: 20px 28px 48px; display: grid; gap: 24px; align-content: start; background: var(--bg); scrollbar-color: var(--line-2) var(--bg); }
.fx-panel .ph { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.fx-panel h2 { overflow-wrap: anywhere; }
.fx-panel h3 { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 8px; }
.fx-panel .fx-kv { grid-template-columns: 128px minmax(0, 1fr); font-size: 13px; line-height: 20px; }
.fx-panel .fx-kv > dt, .fx-panel .fx-kv > dd { padding-top: 5px; padding-bottom: 5px; border-top: 0; }
.fx-panel .blk { display: grid; gap: 12px; min-width: 0; }
.fx-piv { display: grid; gap: 0; }
.fx-piv li { border-bottom: 1px solid var(--line); }
.fx-piv li button { width: 100%; display: flex; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 8px 0; cursor: pointer; text-align: left; font-size: 14px; line-height: 20px; }
.fx-piv li button:hover { background: var(--sel); }
.fx-piv li button:disabled { color: var(--fg-3); cursor: default; background: none; }

/* sessions */
.fx-turns { display: grid; }
.fx-turn { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr) auto; gap: 0; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.fx-turn:target, .fx-turn.hit { background: var(--sel); }
.fx-turn > .w { font-size: 14px; line-height: 24px; color: var(--fg-2); padding-right: 12px; }
.fx-turn > .w .fx-time { display: block; font-size: 12px; line-height: 18px; color: var(--fg-3); }
.fx-turn > .b { min-width: 0; max-width: 78ch; overflow-wrap: anywhere; white-space: pre-wrap; unicode-bidi: isolate; }
.fx-turn > .x { padding-left: 16px; text-align: right; }
.fx-turn.user > .b { font-weight: 500; }
.fx-turn.user > .w { color: var(--fg); font-weight: 500; }
.fx-turn.thin { padding: 6px 0; font-size: 13px; color: var(--fg-2); }
.fx-turn.thin > .b { line-height: 22px; }
.fx-turn.sub { padding-left: 40px; }
.fx-turn.reasoning > .b { color: var(--fg-2); font-weight: 300; }
.fx-tool > summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.fx-tool > summary::-webkit-details-marker { display: none; }
.fx-tool > summary::before { content: "+"; font-family: var(--mono); color: var(--fg-2); flex: none; width: 10px; }
.fx-tool[open] > summary::before { content: "\2212"; }
.fx-tool .in { display: grid; gap: 10px; padding: 12px 0 4px 22px; }
.fx-turn > .b:has(.fx-tool) { max-width: none; white-space: normal; }

/* evidence browser */
.fx-evb { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.fx-tree { font-size: 14px; line-height: 22px; position: sticky; top: 69px; max-height: calc(100dvh - 100px); overflow: auto; padding: 2px; }
.fx-tree ul ul { padding-left: 16px; border-left: 1px solid var(--line); margin-left: 4px; }
.fx-tree button { width: 100%; display: flex; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 4px 8px; cursor: pointer; text-align: left; min-width: 0; }
.fx-tree button:hover, .fx-tree button[aria-current] { background: var(--sel); }
.fx-tree button[aria-current] { font-weight: 500; }
.fx-tree button > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tree button > span:last-child { color: var(--fg-3); font-weight: 400; }

/* custody chain, coverage */
.fx-cov td { text-align: left; }
.fx-cov .st { display: inline-flex; gap: 8px; align-items: center; }
.fx-help { display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; font-size: 14px; }
kbd { font: 400 13px/20px var(--mono); border: 1px solid var(--line-2); padding: 0 6px; justify-self: start; }
.fx-foot { padding: 24px var(--pad); border-top: 1px solid var(--line); display: flex; gap: 8px 32px; flex-wrap: wrap; }

/* printed sheets (also shown on screen as white sheets) */
.fx-sheets { background: #fff; color: #000; min-height: 100dvh; }
.fx-sheetbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 32px; background: #000; color: #f4f4f4; position: sticky; top: 0; z-index: 5; }
.fx-sheetbar .fx-btn { --fg: #f4f4f4; --line-2: #4a4a4a; --inv-bg: #fff; --inv-fg: #000; }
.fx-sheetbar .fx-btn:focus-visible { outline-color: #fff; box-shadow: none; }
.fx-page { max-width: 900px; margin: 0 auto; padding: 48px 56px; color: var(--fg); background: var(--bg); }
.fx-page .sh { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid #000; padding-bottom: 6px; margin-bottom: 24px; font: 400 11px/16px var(--mono); }
.fx-page + .fx-page { border-top: 1px solid var(--line); }
.fx-page h1 { margin-bottom: 8px; }
.fx-page h2 { margin: 28px 0 10px; }
.fx-page h2:first-of-type { margin-top: 0; }
.fx-page .fx-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-page .fx-table, .fx-page .fx-kv { font-size: 12.5px; line-height: 18px; }
.fx-page .fx-table td { padding: 6px 12px 6px 0; }
.fx-page .fx-m, .fx-page .fx-time { font-size: 11.5px; }
.fx-page .fx-kv > dt, .fx-page .fx-kv > dd { padding: 5px 0; }
.fx-page .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.fx-page .sign > div { border-top: 1px solid #000; padding-top: 6px; font-size: 12.5px; }

/* narrower */
@media (max-width: 1239px) {
  :root { --margin: 72px; --pad: 24px; }
  .fx-filters .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .fx-work.open { grid-template-columns: minmax(0, 1fr); }
  .fx-work.open .fx-tl { display: none; }
  .fx-panel { border-left: 0; padding: 20px var(--pad) 64px; }
  .fx-panel > * { max-width: 860px; }
  .fx-evb { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 767px) {
  :root { --margin: 0px; --pad: 16px; }
  body { font-size: 15px; }
  h1 { font-size: 26px; line-height: 34px; }
  .fx-mast { gap: 10px; }
  .fx-mast .right { gap: 16px; }
  .fx-mast .clock, .fx-mast .mk-long { display: none; }
  .fx-mast .ref::before { margin-right: 10px; }
  .fx-tabs { gap: 22px; }
  .fx-main { padding-top: 32px; padding-bottom: 64px; }
  .fx-top { margin-bottom: 32px; }
  .fx-sec { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
  .fx-sec > .m { line-height: 20px; padding-bottom: 4px; }
  .fx-sec > .m:empty { display: none; }
  .fx-kv, .fx-panel .fx-kv { grid-template-columns: minmax(0, 1fr); }
  .fx-kv > dt { padding-bottom: 0; }
  .fx-kv > dd { border-top: 0; padding-top: 0; }
  .fx-panel .fx-kv > dt { padding-bottom: 0; }
  .fx-panel .fx-kv > dd { padding-top: 0; }
  .fx-two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fx-btn { padding-top: 10px; padding-bottom: 10px; }
  .fx-btn.sm { padding-top: 8px; padding-bottom: 8px; }
  .fx-input, .fx-select { height: 46px; font-size: 16px; }
  .fx-area { font-size: 16px; }
  .fx-cmd { grid-template-columns: minmax(0, 1fr); }
  .fx-cmd button { border-left: 0; border-top: 1px solid var(--line-2); padding: 10px; }
  .fx-codes { gap: 0 16px; font-size: 14px; }
  /* tables become cards */
  .fx-table:not(.keep) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fx-table:not(.keep), .fx-table:not(.keep) tbody, .fx-table:not(.keep) tr { display: block; }
  .fx-table:not(.keep) tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .fx-table:not(.keep) tr:first-child { border-top: 1px solid var(--line); }
  .fx-table:not(.keep) td { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; border: 0; padding: 2px 0; text-align: left; white-space: normal; }
  .fx-table:not(.keep) td::before { content: attr(data-l); color: var(--fg-2); font-size: 13px; }
  .fx-table:not(.keep) td > .cell { min-width: 0; }
  .fx-table:not(.keep) td.wide { grid-template-columns: minmax(0, 1fr); padding-bottom: 6px; }
  .fx-table:not(.keep) td.wide::before { content: none; }
  .fx-table:not(.keep) td:empty { display: none; }
  .fx-work { height: auto; min-height: calc(100dvh - var(--head) - var(--tabs)); }
  .fx-tl { grid-template-rows: auto auto auto auto; }
  .fx-list { height: calc(100dvh - var(--tabs) - 8px); min-height: 420px; }
  .fx-filters .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-filters .grid.two { grid-template-columns: minmax(0, 1fr); }
  .fx-filters .fx-input, .fx-filters .fx-select { height: 44px; font-size: 16px; }
  .fx-ev-row { height: 92px; grid-template-columns: auto auto 1fr; grid-template-rows: 22px 46px; gap: 2px 10px; align-content: center; align-items: start; }
  .fx-ev-row .s { grid-column: 1 / -1; grid-row: 2; align-items: flex-start; }
  .fx-ev-row .s .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fx-ev-row .s .fx-sev { line-height: 22px; }
  .fx-ev-row .a, .fx-ev-row .e { display: none; }
  .fx-ev-row .tl { text-align: right; }
  .fx-load { line-height: 92px; }
  .fx-turn { grid-template-columns: minmax(0, 1fr) auto; }
  .fx-turn > .w { grid-column: 1; display: flex; gap: 12px; align-items: baseline; }
  .fx-turn > .w .fx-time { display: inline; }
  .fx-turn > .b { grid-column: 1 / -1; grid-row: 2; }
  .fx-turn > .x { grid-column: 2; grid-row: 1; }
  .fx-turn.sub { padding-left: 16px; }
  .fx-evb { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fx-tree { position: static; max-height: 320px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .fx-hash { grid-template-columns: auto; }
  .fx-page { padding: 24px 16px; }
  .fx-page .sh { flex-wrap: wrap; gap: 4px 16px; }
  .fx-sheetbar { padding: 8px 16px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .fx-sev svg, .fx-conf svg { forced-color-adjust: auto; } .fx-ev-row[aria-selected=true] { outline: 1px solid; } }

@page { size: A4; margin: 14mm 12mm 16mm; }
@media print {
  :root, [data-sheet=white] {
    color-scheme: light;
    --bg: #fff; --raise: #fff; --sel: #f0f0f0; --fg: #000; --fg-2: #333; --fg-3: #595959;
    --line: rgba(0,0,0,.18); --line-2: rgba(0,0,0,.4); --line-strong: #000; --inv-bg: #000; --inv-fg: #fff;
    --pad: 0px; --margin: 84px;
  }
  html, body { background: #fff; font-size: 10.5pt; line-height: 1.45; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .fx-mast .right, .fx-tabs, .fx-skip, .fx-btn, .fx-sheetbar, .fx-filters, .fx-top .act, .no-print { display: none !important; }
  .fx-mast { border-bottom: 1px solid #000; height: auto; padding: 0 0 4mm; }
  .fx-main { padding: 6mm 0 0; max-width: none; }
  .fx-page { padding: 0; max-width: none; border: 0 !important; break-after: page; }
  .fx-page:last-child { break-after: auto; }
  .fx-table { break-inside: auto; } .fx-table tr, .fx-kv > *, .fx-turn { break-inside: avoid; }
  .fx-table thead { display: table-header-group; }
  h2, h3 { break-after: avoid; }
  .fx-mono { max-height: none; overflow: visible; }
  .fx-list, .fx-work, .fx-panel { height: auto; overflow: visible; contain: none; }
  a { text-decoration: none; }
}
.fx-helpbox { position: fixed; right: 24px; bottom: 24px; z-index: 30; background: var(--bg); width: min(420px, calc(100vw - 32px)); display: grid; gap: 16px; }
@media (max-width: 767px) { .fx-helpbox { right: 16px; bottom: 16px; } }
.fx-gap16 { gap: 16px !important; } .fx-gap24 { gap: 24px !important; }
.fx-enrol { gap: 32px !important; align-items: flex-start !important; }
.fx-pre { white-space: pre-wrap; max-width: 78ch; } .fx-mt { margin-top: 24px; } .fx-g10 { display: grid; gap: 8px; min-width: 0; } .fx-w260 { max-width: 260px; }
input[type=file].fx-input { padding: 6px 12px; } input[type=file]::file-selector-button { background: none; color: inherit; border: 1px solid var(--line-2); margin-right: 12px; padding: 1px 10px; font: inherit; font-size: 13px; }
.fx-inlist { padding: 40px var(--pad) !important; }
.fx-wrap { flex-wrap: wrap; } .fx-end { align-self: end; min-height: 34px; } .fx-morebox { display: grid; gap: 12px; } .fx-filters label.mini .fx-input { width: 212px; }
.only-phone { display: none; } .fx-tiny { font-size: 13px; line-height: 20px; } .fx-tiny input { width: 14px; height: 14px; }
.fx-ev-row { grid-template-columns: 226px 66px 96px 148px minmax(0, 1fr) 224px; }
.fx-ev-row .cf { font-size: 12.5px; color: var(--fg-2); } .fx-ev-row .e { justify-content: flex-end; } .fx-ev-row .vn { color: var(--fg-2); }
.fx-work.open .fx-ev-row { grid-template-columns: 186px 12px 104px minmax(0, 1fr) 100px; gap: 0 12px; } .fx-work.open .fx-ev-row .cf .w, .fx-work.open .fx-ev-row .src, .fx-work.open .fx-ev-row .a, .fx-work.open .fx-ev-row .z, .fx-work.open .fx-ev-row .tl .ac { display: none; }
.fx-histact { color: var(--fg-2); font-family: var(--sans); font-size: 12.5px; }
@media (max-width: 1239px) { .fx-ev-row { grid-template-columns: 226px 14px 72px 128px minmax(0, 1fr) 124px; } .fx-ev-row .cf .w, .fx-ev-row .src { display: none; } }
@media (max-width: 767px) {
  .only-phone { display: inline-block; } .fx-morebox { display: none; } .fx-morebox.open { display: grid; } .fx-filters label.mini, .fx-filters label.mini .fx-input { width: 100%; }
  .fx-ev-row { grid-template-columns: auto auto minmax(0, 1fr); }
}
.fx-three { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; } .fx-g16 { display: grid; gap: 16px; min-width: 0; align-content: start; } .fx-mt12 { margin-top: 12px; } .fx-nowrap { flex-wrap: nowrap; }
.fx-ptr { cursor: pointer; } .fx-plain { color: var(--fg); } .fx-mono.tall { max-height: 70vh; } .fx-m.big { font-size: 26px; }
.fx-turns.noreason .reasoning { display: none; } .fx-turn.day { border-top: 0; padding: 20px 0 6px; } .fx-turn.day + .fx-turn { border-top: 1px solid var(--line); }
.fx-turn .b .fx-tool summary { flex-wrap: wrap; font-size: 14px; } .fx-turn.call { padding: 10px 0; }
.fx-panel.side { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 20; }
.fx-why { display: grid; gap: 4px; max-width: 78ch; font-size: 14px; line-height: 22px; }
.fx-lead { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 6px; scroll-margin: 80px; } .fx-lead .hd { display: flex; justify-content: space-between; gap: 16px; } .fx-lead .ex { color: var(--fg-2); } .fx-lead.done > p { color: var(--fg-3); font-weight: 400; } .fx-lead .fx-row { margin-top: 4px; }
.fx-main.evidence { max-width: 1560px; }
@media (max-width: 767px) { .fx-three { grid-template-columns: minmax(0, 1fr); } .fx-nowrap { flex-wrap: wrap; } .fx-nowrap .fx-w260 { max-width: none; } .fx-lead .hd { flex-wrap: wrap; gap: 4px 16px; } }
@media (min-width: 1500px) { body.has-side .fx-main { margin-right: 520px; } }
.fx-wideform { max-width: 820px; } .fx-fmts { border-top: 1px solid var(--line); max-width: 820px; } .fx-fmts li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 0; }
body.white { background: #fff; } .fx-page .fx-hash { font-size: 11.5px; line-height: 17px; }
@media print { @page { @bottom-left { content: "DarkControl Forensics"; font: 8pt "Host Grotesk", sans-serif; color: #595959; } @bottom-right { content: counter(page) " of " counter(pages); font: 8pt "Plex Mono", monospace; color: #595959; } } }
.fx-table.narrow { max-width: 620px; } .fx-filters .fx-select.on { font-weight: 500; }
@media (max-width: 767px) { .fx-filters label.mini { display: grid; gap: 2px; } }
.fx-main.evidence .fx-top { padding-left: 0; margin-bottom: 32px; } .fx-bm { display: block; align-self: center; flex: none; }
.fx-turn.thin > .w { display: flex; flex-direction: column; line-height: 22px; font-size: 13px; } .fx-turns .fx-gap { margin-left: var(--margin); }
.fx-turn.thin > .w .fx-time { line-height: 14px; padding-bottom: 4px; } .fx-sec.leadsec { padding-bottom: 20px; }
.fx-ev-row .t.fx-m { font-size: 13px; } .fx-panel h2 .fx-m { font-size: 15px; line-height: 24px; } .fx-panel h2 { line-height: 26px; }
.fx-panel { gap: 18px; }
.st { display: inline-flex; gap: 8px; align-items: center; } .fx-form > p:empty { height: 0; margin-top: -24px; }
.fx-page .fx-kv + h2 { margin-top: 28px; } .fx-page h3 { margin: 20px 0 4px; font-size: 13px; } .fx-page .fx-kv + .fx-kv { margin-top: 20px; } .fx-page .fx-tw + p { margin-top: 10px; } .fx-page .fx-2 + .fx-kv { margin-top: 20px; }
.fx-page .fx-tw { overflow-x: auto; }
@media (max-width: 767px) {
  .fx-mast .ref ~ .right .fx-link { display: none; } .fx-mast .right a { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  .fx-table:not(.keep) td { grid-template-columns: 96px minmax(0, 1fr); } .fx-ev-row .cf { align-self: center; } .fx-turn.thin > .w { flex-direction: row; gap: 12px; } .fx-turn.thin > .w .fx-time { padding: 0; line-height: 22px; }
  .fx-turns .fx-gap { margin-left: 0; }
}
input.fx-input:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.fx-x { min-height: 24px; line-height: 24px; }
@media print {
  .fx-status, .fx-panel, .fx-sechead .fx-check { display: none !important; } .fx-work, .fx-work.open { display: block; } .fx-work.open .fx-tl { display: block; } .fx-canvas { height: auto !important; }
  .fx-ev-row, .fx-work.open .fx-ev-row { position: static; height: auto; padding: 4px 0; grid-template-columns: 176px 12px 56px 96px minmax(0, 1fr) 84px; gap: 0 10px; font-size: 11px; line-height: 16px; align-items: start; break-inside: avoid; }
  .fx-ev-row .fx-time, .fx-ev-row .t.fx-m { font-size: 10px; } .fx-ev-row .fx-clip { white-space: normal; overflow: visible; } .fx-ev-row .s { align-items: flex-start; } .fx-ev-row .e { line-height: 16px; font-size: 10px; } .fx-ev-row .cf .w { display: none; } .fx-ev-row[aria-selected=true] { background: none; }
  .fx-page .sh { font-size: 9px; gap: 12px; } .fx-page .sh span { white-space: nowrap; } .fx-load { display: none; } .fx-page .fx-tw { overflow: visible; }
}
.st svg { flex: none; }
.fx-filters { grid-row: 1; } .fx-histo { grid-row: 2; } .fx-status { grid-row: 3; } .fx-list { grid-row: 4; } .fx-tl { grid-template-columns: minmax(0, 1fr); }
.fx-main.evidence .fx-table td:nth-child(6) { min-width: 104px; }
@media (min-width: 768px) and (max-width: 1239px) { .fx-table .opt { display: none; } }
