@font-face{font-family:"Cinzel";font-style:normal;font-weight:600;font-display:swap;src:url("/brand/fonts/cinzel-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Cinzel";font-style:normal;font-weight:700;font-display:swap;src:url("/brand/fonts/cinzel-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:600;font-display:swap;src:url("/brand/fonts/source-serif-4-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("/brand/fonts/source-sans-3-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:400;font-display:swap;src:url("/brand/fonts/source-sans-3-latin-400-italic.woff2") format("woff2")}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("/brand/fonts/source-sans-3-latin-600-normal.woff2") format("woff2")}

:root{
  --fe-navy:#051127;
  --fe-navy-2:#0E1C33;
  --fe-slate:#1A2433;
  --fe-gold:#C9A45C;
  --fe-gold-bright:#E3AE48;
  --fe-crimson:#8B1E2C;
  --fe-dust:#C47E3A;
  --fe-wool:#E8D5B5;
  --fe-parchment:#F4EDE0;
  --fe-steel:#8B93A3;
  --fe-danger:#C4453A;
  --fe-safe:#3F7D5A;
  --fe-display:"Cinzel","Palatino Linotype",Palatino,"Times New Roman",serif;
  --fe-heading:"Source Serif 4","Iowan Old Style","Times New Roman",serif;
  --fe-body:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --bg:var(--fe-navy);
  --panel:var(--fe-navy-2);
  --panel2:#15283F;
  --line:#2A3A52;
  --text:var(--fe-parchment);
  --muted:var(--fe-steel);
  --teal:var(--fe-gold-bright);
  --teal2:var(--fe-gold);
  --blue:#8EC5E8;
  --warn:var(--fe-gold-bright);
  --danger:#E36A62;
  --lime:var(--fe-gold-bright);
  --ok:#7EC89A;
  --radius:12px
}
*{box-sizing:border-box}
html,body{margin:0;background:radial-gradient(1200px 700px at 80% -10%,#1A2433 0,var(--bg) 58%) fixed;color:var(--text);font:14px/1.5 var(--fe-body)}
a{color:var(--fe-gold-bright)}
button,select,input,textarea{font:inherit}
h1,.wordmark,.hero h1,.casehead h1{font-family:var(--fe-display);font-weight:700;letter-spacing:.03em}
h2,h3,.card h2,.card h3{font-family:var(--fe-heading);font-weight:600}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;z-index:10;background:#fff;color:#000;padding:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.topbar{display:flex;align-items:center;gap:14px;padding:10px 18px;border-bottom:1px solid var(--line);background:var(--bg)}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none}
.brand-mark{width:36px;height:36px;border-radius:8px;flex:none;background:var(--fe-navy);box-shadow:0 0 0 1px var(--line)}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.wordmark{font-size:18px;font-weight:700}
.byline{font-family:var(--fe-body);font-size:11px;font-weight:400;letter-spacing:.04em;color:var(--muted)}
.tagline{color:var(--muted);font-style:italic;border-left:1px solid var(--line);padding-left:14px}
.demo-pill{font-size:11px;letter-spacing:.08em;color:var(--fe-navy);background:var(--fe-gold-bright);border-radius:999px;padding:2px 8px;font-weight:700}
.top-actions{margin-left:auto;display:flex;gap:10px;align-items:center}
.top-actions select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:5px}
.quick-exit{background:#3a0d17;border:1px solid var(--danger);color:#ffd5dc;border-radius:8px;padding:6px 10px;cursor:pointer}
.urgent{display:flex;gap:14px;align-items:center;margin:12px 18px 0;padding:12px 16px;border:1px solid #6b2430;background:linear-gradient(90deg,#2a0f19,var(--fe-navy-2));border-radius:var(--radius)}
.urgent-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--fe-danger);color:#fff;font-weight:800}
.urgent .btn{margin-left:auto}
.shell{display:grid;grid-template-columns:230px 1fr;gap:16px;padding:14px 18px}
.sidebar{background:rgba(14,28,51,.92);border:1px solid var(--line);border-radius:var(--radius);padding:10px;height:fit-content;position:sticky;top:10px}
.sidebar a{display:flex;gap:10px;align-items:center;color:var(--text);text-decoration:none;padding:8px 10px;border-radius:8px}
.sidebar a:hover,.sidebar a:focus{background:var(--panel2)}
.sidebar a.active{background:linear-gradient(90deg,#1a2a18,#0E1C33);border:1px solid var(--fe-gold)}
.sidebar h4{color:var(--muted);font-size:11px;letter-spacing:.1em;text-transform:uppercase;margin:16px 10px 6px}
.sidebar .dept{font-size:13px;color:var(--fe-wool)}
.sidebar .about{color:var(--muted);font-size:12px;padding:10px}
main{min-width:0}
.grid{display:grid;gap:14px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:2fr 1.3fr 1.2fr 1.4fr}
@media (max-width:1100px){.g4,.g3{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static}.g2,.g3,.g4{grid-template-columns:1fr}.tagline{display:none}.urgent{flex-wrap:wrap}}
.card{background:linear-gradient(180deg,rgba(21,40,63,.96),rgba(14,28,51,.96));border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;min-width:0}
.card h2,.card h3{margin:0 0 10px;font-size:16px;display:flex;align-items:center;gap:8px}
.card h3 .right,.card h2 .right{margin-left:auto;font-size:12px;font-weight:400;font-family:var(--fe-body)}
.crumbs{color:var(--muted);font-size:12px}
.casehead{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:6px 0 12px}
.casehead h1{margin:0;font-size:26px}
.pill{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;border:1px solid var(--line);background:var(--panel2);color:var(--fe-wool)}
.pill.draft{background:#3b2a0b;border-color:#8a6116;color:#ffd58a}.pill.ok{background:#0d3a2f;border-color:#1f7a63;color:#9ff3d6}.pill.warn{background:#3b2a0b;border-color:#8a6116;color:#ffd58a}.pill.off{background:#2a1520;border-color:#6b2a3b;color:#ffb3c2}.pill.sim{background:#1e2a0a;border-color:#6b8a16;color:#e8d48a}
.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--fe-gold);background:#1a2414;border-radius:10px;padding:6px 10px;font-size:12.5px}
.kt{font-size:11px;text-transform:uppercase;letter-spacing:.05em;border-radius:6px;padding:1px 6px;font-weight:600}
.kt.firsthand{background:#0d3a2f;color:#9ff3d6}.kt.record_supported{background:#0b2f4a;color:#9fd8ff}.kt.inference{background:#3b2a0b;color:#ffd58a}.kt.unknown{background:#2b2b3b;color:#cfcfe6}
.btn{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(180deg,var(--fe-gold-bright),var(--fe-gold));color:var(--fe-navy);border:0;border-radius:9px;padding:8px 14px;font-weight:600;cursor:pointer;text-decoration:none}
.btn.outline{background:transparent;border:1px solid var(--fe-gold);color:var(--fe-gold-bright)}.btn.ghost{background:var(--panel2);color:var(--text);border:1px solid var(--line)}.btn.danger{background:#3a0d17;color:#ffd5dc;border:1px solid var(--danger)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--fe-gold-bright);outline-offset:2px}
label{display:block;margin:8px 0 4px;color:var(--fe-wool)}
input[type=text],input[type=password],input[type=date],input[type=email],input:not([type]),select,textarea{width:100%;background:#0A1528;color:var(--text);border:1px solid var(--line);border-radius:9px;padding:8px 10px}
textarea{min-height:110px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.muted{color:var(--muted)}.small{font-size:12px}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:600;font-size:12px}
code,.mono{font-family:ui-monospace,Consolas,monospace;font-size:12px;word-break:break-all}
.list{list-style:none;margin:0;padding:0}.list li{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--line)}
.ftype{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}
.ftype.text{background:#16324f;color:#9fd8ff}.ftype.png{background:#13324a;color:#7dd3fc}.ftype.wav{background:#2a2346;color:#c4b5fd}.ftype.csv{background:#103b2a;color:#86efac}.ftype.acct{background:#3b2a0b;color:#ffd58a}
.tl{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--fe-gold)}.tl li{position:relative;padding:4px 0 8px 10px}.tl li:before{content:"";position:absolute;left:-21px;top:9px;width:10px;height:10px;border-radius:50%;background:var(--fe-gold-bright)}
.stepper{display:flex;align-items:center;gap:0;margin:8px 0 12px}.stepper .s{display:flex;flex-direction:column;align-items:center;font-size:11px;color:var(--muted);flex:1}.stepper .dot{width:16px;height:16px;border-radius:50%;border:2px solid var(--muted);background:var(--bg)}.stepper .s.done .dot{background:var(--fe-gold);border-color:var(--fe-gold)}.stepper .s.done{color:var(--text)}
.route{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px;background:#0A1528}
.route.dim{opacity:.6}
.notice{border-left:3px solid var(--warn);background:#1b1a10;padding:8px 12px;border-radius:6px;margin:8px 0;color:#f6e7b8}
.notice.info{border-color:var(--fe-gold);background:#16180f;color:var(--fe-wool)}.notice.danger{border-color:var(--danger);background:#2a0f19;color:#ffd5dc}
pre{white-space:pre-wrap;background:#040b16;border:1px solid var(--line);border-radius:8px;padding:10px;max-height:420px;overflow:auto;font-size:12px}
.toast{position:fixed;right:18px;bottom:18px;background:#0d3a2f;border:1px solid #1f7a63;color:#d4fbe9;border-radius:10px;padding:10px 14px;max-width:420px;z-index:20}
.toast.err{background:#3a0d17;border-color:var(--danger);color:#ffd5dc}
.wizard-steps{display:flex;gap:6px;margin-bottom:10px}.wizard-steps span{flex:1;height:5px;border-radius:4px;background:var(--line)}.wizard-steps span.on{background:var(--fe-gold)}
.deptpick{display:grid;gap:10px}.deptpick label{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px;background:#0A1528;cursor:pointer;margin:0}
.deptpick input{margin-top:4px}
.hero{min-height:28rem;padding:32px 28px 36px;border-radius:16px;border:1px solid var(--line);color:var(--text);background-color:var(--bg);background-image:linear-gradient(0deg,rgba(5,17,39,.92) 0%,rgba(5,17,39,.62) 42%,rgba(5,17,39,.22) 72%),url("/brand/hero-ridge.jpg");background-image:linear-gradient(0deg,rgba(5,17,39,.92) 0%,rgba(5,17,39,.62) 42%,rgba(5,17,39,.22) 72%),image-set(url("/brand/hero-ridge.webp") type("image/webp"),url("/brand/hero-ridge.jpg") type("image/jpeg"));background-size:cover;background-position:center 30%;background-repeat:no-repeat;display:flex;flex-direction:column;justify-content:flex-end}
.hero h1{margin:0 0 8px;font-size:30px;max-width:22ch;text-shadow:0 1px 12px rgba(5,17,39,.8)}
.hero p,.hero .notice,.hero .row{max-width:40rem}
.hero .notice{background:rgba(27,26,16,.88)}
.auth-stage{padding:24px;border-radius:16px;border:1px solid var(--line);background-color:var(--bg);background-image:linear-gradient(180deg,rgba(5,17,39,.78),rgba(5,17,39,.9)),url("/brand/hero-ridge.jpg");background-image:linear-gradient(180deg,rgba(5,17,39,.78),rgba(5,17,39,.9)),image-set(url("/brand/hero-ridge.webp") type("image/webp"),url("/brand/hero-ridge.jpg") type("image/jpeg"));background-size:cover;background-position:center 28%;background-repeat:no-repeat}
.auth-stage .card{background:rgba(14,28,51,.94)}
.foot{padding:8px 18px 18px;color:var(--muted)}
.flagoff{color:#ffb3c2}
dl.kv{display:grid;grid-template-columns:110px 1fr;gap:4px 10px;margin:0}dl.kv dt{color:var(--muted)}dl.kv dd{margin:0}
.access-opt{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-bottom:8px;background:#0A1528}
.access-opt .st{margin-left:auto}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
[dir=rtl] .urgent .btn,[dir=rtl] .top-actions{margin-left:0;margin-right:auto}
.mt{margin-top:14px}.mb{margin-bottom:12px}
@media (max-width:760px){.topbar{flex-wrap:wrap;gap:8px;padding:10px 12px}.top-actions{width:100%;flex-wrap:wrap;justify-content:space-between;gap:6px}#lang{max-width:9rem}#who .pill{font-size:11px}.demo-pill{font-size:10px}.shell{display:flex;flex-direction:column}.shell main{order:1}.shell .sidebar{order:2}.hero{min-height:22rem;padding:20px 16px}.hero h1{font-size:24px}.auth-stage{padding:14px}}
/* ---- crypto investigations: fund-flow graph (dark theme) ---- */
.flowwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #0a1730; padding: 6px; }
.flowsvg { min-width: 640px; display: block; }
.flowsvg .collabel { font: 600 11px var(--fe-body); fill: var(--fe-steel); text-transform: uppercase; letter-spacing: .06em; }
.flowsvg .eline { fill: none; stroke: #6f86ad; }
.flowsvg .ehit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.flowsvg .edge.ctx .eline { stroke-dasharray: 5 4; stroke: var(--fe-dust); }
.flowsvg .edge.hi .eline { stroke: var(--fe-gold-bright); }
.flowsvg .edge.dim, .flowsvg .node.dim { opacity: .3; }
.flowsvg .edge:hover .eline, .flowsvg .edge:focus .eline { stroke: var(--fe-parchment); }
.flowsvg .elabel { font: 10.5px var(--fe-body); fill: var(--fe-wool); paint-order: stroke; stroke: #0a1730; stroke-width: 3px; pointer-events: none; }
.flowsvg .arrow { fill: #6f86ad; } .flowsvg .arrow.hi { fill: var(--fe-gold-bright); } .flowsvg .arrow.ctx { fill: var(--fe-dust); }
.flowsvg .node { cursor: pointer; }
.flowsvg .node .shape { fill: #15283F; stroke: #6f86ad; stroke-width: 2; }
.flowsvg .node.seed .shape { fill: var(--fe-gold); stroke: var(--fe-wool); }
.flowsvg .node.seed .nicon { fill: var(--fe-navy); }
.flowsvg .node.entity .shape { fill: #2b2412; stroke: var(--fe-gold-bright); }
.flowsvg .node.context .shape { fill: #0a1730; stroke: var(--fe-dust); stroke-dasharray: 4 3; }
.flowsvg .node.hi .shape { stroke: var(--fe-gold-bright); stroke-width: 3.5; }
.flowsvg .node:focus .shape, .flowsvg .node:hover .shape { stroke-width: 3.5; }
.flowsvg .nicon { font: 700 13px var(--fe-body); fill: var(--fe-wool); pointer-events: none; }
.flowsvg .nlabel { font: 11px ui-monospace, monospace; fill: var(--fe-parchment); paint-order: stroke; stroke: #0a1730; stroke-width: 3px; pointer-events: none; }
.flowlegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85em; color: var(--fe-steel); margin: 6px 0; }
.flowfilters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 8px 0; }
.flowfilters label { margin: 0; }
.basis { display: inline-block; font-size: .78em; font-weight: 600; padding: 1px 7px; border-radius: 9px; margin-right: 6px; white-space: nowrap; }
.basis.v { background: #173d2a; color: #a8e6bf; } .basis.i { background: #3d2c0c; color: #f4cf86; } .basis.u { background: #2a2350; color: #cfc6ff; }
.conf { font-size: .8em; color: var(--fe-gold-bright); }
.hyp { border-left: 3px solid var(--fe-gold-bright); padding: 8px 12px; margin: 8px 0; background: #16180f; color: var(--fe-wool); border-radius: 6px; }
.contra { border-left: 3px solid var(--fe-danger); padding: 8px 12px; margin: 8px 0; background: #2a0f19; color: #ffd5dc; border-radius: 6px; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
/* casework */
.cw-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 4px;border-bottom:1px solid var(--line)}
.cw-tabs a{padding:7px 11px;border-radius:8px 8px 0 0;text-decoration:none;color:var(--muted);font-size:13px}
.cw-tabs a.on{background:var(--panel2);color:var(--text);font-weight:600;border:1px solid var(--line);border-bottom-color:transparent}
.cw-graph{overflow-x:auto;border:1px solid var(--line);border-radius:10px;margin:8px 0;background:var(--panel)}
.cw-svg{min-width:640px;width:100%;height:auto;display:block}
.cw-edge line{stroke:var(--blue);stroke-width:2}.cw-edge.sel line{stroke:var(--fe-gold-bright);stroke-width:3.5}
.cw-arrow{fill:var(--blue)}.cw-elabel{font-size:11px;fill:var(--text);text-anchor:middle}.cw-edge.sel .cw-elabel{fill:var(--fe-gold-bright);font-weight:700}
.cw-node circle{fill:var(--blue);stroke:var(--fe-navy);stroke-width:2}.cw-node.seed circle{fill:var(--ok)}.cw-node.boundary circle{fill:var(--fe-navy);stroke:var(--danger);stroke-width:3;stroke-dasharray:4 3}
.cw-nlabel{font-size:11px;fill:var(--text);text-anchor:middle;font-family:ui-monospace,monospace}
tr[data-edge]{cursor:pointer}tr[data-edge].sel{background:var(--panel2);outline:1px solid var(--fe-gold)}
.card.stat b{font-size:22px}
.cw-claim,#cwedges td{overflow-wrap:anywhere}

/* M6: Bitcoin transaction nodes are squares; heuristic edges and bridge candidates/boundaries are dashed. */
.cw-node rect{fill:var(--fe-gold-bright);stroke:var(--fe-navy);stroke-width:2}.cw-node.seed rect{fill:var(--ok)}
.cw-edge.heuristic line{stroke-dasharray:6 4}.cw-edge.uncounted line{stroke-dasharray:2 4;opacity:.7}
.cw-bridge-svg{width:100%;max-width:640px;height:auto;display:block}.cw-bridge-svg .bn{fill:var(--blue);stroke:var(--fe-navy);stroke-width:2}.cw-bridge-svg .bl{stroke:var(--ok);stroke-width:3}.cw-bridge-svg .bl.dashed{stroke:var(--danger);stroke-dasharray:8 6}
.cw-bridge.heuristic{border-left:4px dashed var(--danger)}.cw-bridge.verified{border-left:4px solid var(--ok)}
