/* TRACE workspace. Brand tokens match coinforensics.com (styles.css). */
:root {
  --navy: #0b1f3a; --navy-2: #13294b; --on-navy: #ffffff; --on-navy-muted: #b6c2d4;
  --ink: #1e293b; --muted: #475569; --faint: #94a3b8; --line: #e2e8f0;
  --bg: #ffffff; --bg-alt: #f5f7fa; --grid-dot: #cbd5e1; --hover: #f1f5f9;
  --accent: #4f46e5; --accent-dark: #4338ca; --accent-soft: #eef2ff; --logo-accent: #6366f1;
  --c-sanctioned: #b91c1c; --c-sanctioned-soft: #fee2e2;
  --c-exchange: #2563eb; --c-exchange-soft: #dbeafe;
  --c-high: #d97706; --c-high-soft: #fef3c7;
  --c-unidentified: #64748b; --c-unidentified-soft: #f1f5f9;
  --ok: #166534; --ok-soft: #dcfce7; --warn: #92400e; --warn-soft: #fef3c7; --bad: #991b1b; --bad-soft: #fee2e2;
  --shadow: 0 4px 14px rgba(15, 23, 42, .08);
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e2e8f0; --muted: #a3b1c6; --faint: #64748b; --line: #26334d;
  --bg: #111a2e; --bg-alt: #0b1324; --grid-dot: #26334d; --hover: #1a2540;
  --accent: #818cf8; --accent-dark: #a5b4fc; --accent-soft: #1e2350;
  --c-sanctioned: #f87171; --c-sanctioned-soft: #3b1219;
  --c-exchange: #60a5fa; --c-exchange-soft: #10284d;
  --c-high: #fbbf24; --c-high-soft: #3a2a0a;
  --c-unidentified: #94a3b8; --c-unidentified-soft: #1e293b;
  --ok: #4ade80; --ok-soft: #0f2a1a; --warn: #fbbf24; --warn-soft: #3a2a0a; --bad: #f87171; --bad-soft: #3b1219;
  --shadow: 0 4px 14px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg-alt); display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 14px; height: 14px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:focus-visible, .toolbar button:focus-visible, .link:focus-visible { outline: 2px solid var(--logo-accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: #4f46e5; }
.btn-primary:hover { background: var(--accent-dark); }
:root[data-theme="dark"] .btn-primary:hover { background: #4338ca; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); height: 34px; padding: 0 12px; font-weight: 500; font-size: 13px; }
.btn-ghost:hover { background: var(--hover); }
.btn-ghost .i { width: 16px; height: 16px; color: var(--muted); }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Top bar */
.topbar { background: var(--navy); color: var(--on-navy); height: 60px; display: flex; align-items: center; padding: 0 20px; gap: 24px; flex: none; position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.logo { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.05em; text-transform: uppercase; color: #fff; }
.logo span { color: var(--logo-accent); }
.product { font-weight: 600; font-size: 15px; color: var(--on-navy-muted); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); letter-spacing: .02em; }
.search { flex: 1; display: flex; justify-content: center; gap: 8px; max-width: 720px; margin: 0 auto; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; color: #475569; border-radius: var(--radius); padding: 0 8px 0 12px; height: 40px; border: 2px solid transparent; min-width: 0; }
.search-field:focus-within { border-color: var(--logo-accent); }
.search-field.invalid { border-color: #f87171; }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; color: #1e293b; background: transparent; min-width: 0; }
.search-field input.is-addr { font-family: var(--mono); font-size: 13px; }
.net-tag { font-size: 12px; font-weight: 600; color: #4338ca; background: #eef2ff; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.net-tag.bad { color: #991b1b; background: #fee2e2; }
.progress { position: absolute; top: 60px; left: 0; right: 0; height: 3px; overflow: hidden; z-index: 40; background: transparent; }
.progress span { position: absolute; height: 100%; width: 30%; background: var(--logo-accent); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }

/* Case bar */
.casebar { height: 52px; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 16px; flex: none; }
.case-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; margin-left: -6px; cursor: text; }
.case-title:hover { border-color: var(--line); }
.case-title .i { color: var(--muted); }
.case-meta { color: var(--muted); font-size: 13px; }
.case-actions { margin-left: auto; display: flex; gap: 8px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; min-width: 220px; z-index: 50; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }

/* Workspace */
.main { flex: 1; display: flex; min-height: 0; }
.canvas { flex: 1; position: relative; min-width: 0; background-color: var(--bg-alt); background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 22px 22px; }
#graph { position: absolute; inset: 0; }
.toolbar { position: absolute; left: 16px; top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; padding: 4px; z-index: 10; }
.toolbar button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 6px; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.toolbar button:hover, .toolbar button[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.toolbar hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.popover { position: absolute; left: 62px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; z-index: 20; min-width: 240px; font-size: 13.5px; }
#pop-display { top: 140px; }
#pop-find { top: 210px; }
.popover label { display: flex; gap: 8px; align-items: center; padding: 5px 0; cursor: pointer; }
.popover input[type="text"] { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; font: inherit; background: var(--bg); color: var(--ink); }
.popover input[type="text"]:focus { outline: 2px solid var(--logo-accent); border-color: transparent; }
.pop-title { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pop-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pop-note:empty { display: none; }

.legend { position: absolute; left: 16px; bottom: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; box-shadow: var(--shadow); z-index: 10; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.c-sanctioned { background: var(--c-sanctioned); } .c-exchange { background: var(--c-exchange); }
.c-high { background: var(--c-high); } .c-unidentified { background: var(--c-unidentified); }

.notice { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px 10px 14px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; z-index: 25; max-width: min(560px, calc(100% - 140px)); }
.notice.error { border-left-color: var(--c-sanctioned); }
.notice.warn { border-left-color: var(--c-high); }
.notice.ok { border-left-color: var(--ok); }
.notice .spinner { width: 16px; height: 16px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice .actions { display: flex; gap: 6px; margin-left: auto; }
.notice .actions button { height: 30px; font-size: 12.5px; }

/* Empty state */
.empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 5; }
.empty-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 32px 36px; width: 100%; max-width: 520px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.empty-card h1 { font-size: 22px; margin: 0 0 6px; }
.empty-card .lead { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.steps b { display: block; }
.steps span:not(.num) { color: var(--muted); font-size: 13.5px; }
.try { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.k { font-size: 12.5px; color: var(--muted); }
.right { margin-left: auto; }

/* Side panel */
.panel { width: 380px; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; flex: none; }
.p-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.p-kicker { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.p-title { font-size: 17px; font-weight: 700; margin: 6px 0 8px; overflow-wrap: anywhere; }
.addr { display: flex; align-items: center; gap: 8px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px 6px 10px; }
.addr .mono { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; padding: 3px; border-radius: 4px; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chip-net { background: var(--accent-soft); color: var(--accent-dark); }
.chip-sanctioned { background: var(--c-sanctioned-soft); color: var(--c-sanctioned); }
.chip-high { background: var(--c-high-soft); color: var(--warn); }
.chip-medium { background: var(--c-high-soft); color: var(--warn); }
.chip-low, .chip-none { background: var(--c-unidentified-soft); color: var(--muted); }
.chip-exchange { background: var(--c-exchange-soft); color: var(--c-exchange); }
.section { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.s-title { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.reason { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; line-height: 1.5; font-size: 13.5px; }
.reason p { margin: 0; }
.reason p + p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.label-row { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.label-row + .label-row { border-top: 1px dashed var(--line); }
.label-name { font-weight: 600; }
.label-src { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.conf { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; border-radius: 999px; padding: 2px 9px; cursor: help; }
.conf-confirmed { background: var(--ok-soft); color: var(--ok); }
.conf-inferred { background: var(--accent-soft); color: var(--accent-dark); }
.conf-unverified { background: var(--c-high-soft); color: var(--warn); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.v { font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.v.in { color: var(--ok); } .v.out { color: var(--bad); }
.v small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.foot-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.cp { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.cp .who { min-width: 0; }
.cp .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp .dir { font-size: 11.5px; color: var(--muted); }
.cp .amt { margin-left: auto; font-weight: 600; white-space: nowrap; text-align: right; }
.tx { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.tx + .tx { border-top: 1px dashed var(--line); }
.tx .badge { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; flex: none; }
.badge-in { background: var(--ok-soft); color: var(--ok); }
.badge-out { background: var(--bad-soft); color: var(--bad); }
.tx .body { min-width: 0; flex: 1; }
.tx .line2 { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx .add { flex: none; }
.p-foot { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.p-links { display: flex; justify-content: space-between; font-size: 13px; }
.danger-link { color: var(--c-sanctioned); }
.skeleton { background: linear-gradient(90deg, var(--hover) 25%, var(--line) 50%, var(--hover) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 4px; height: 12px; margin: 8px 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.state { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.state.error { color: var(--bad); }
.state button { margin-top: 6px; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(11, 31, 58, .45); display: grid; place-items: center; z-index: 900; padding: 16px; }
.modal { background: var(--bg); border-radius: 12px; padding: 22px 24px; width: 100%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal h2 { font-size: 17px; margin: 0 0 8px; }
.modal p { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.modal input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; font: inherit; margin-bottom: 16px; background: var(--bg); color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions .btn { height: 36px; }

@media (max-width: 900px) {
  .brand .product, .case-meta { display: none; }
  .case-actions .btn-ghost { font-size: 0; gap: 0; padding: 0 9px; }
  .case-actions .btn-ghost .i { width: 18px; height: 18px; }
  .panel { position: absolute; right: 0; top: 112px; bottom: 0; width: min(380px, 100%); z-index: 35; box-shadow: var(--shadow); }
  .legend { flex-wrap: wrap; gap: 8px 12px; right: 16px; }
}
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .logo { font-size: 1rem; }
  .search .btn { padding: 0 12px; }
  .net-tag { display: none; }
}

/* Analyst label (case-only) */
.analyst-label { display: inline-block; font-weight: 600; background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 4px 10px; overflow-wrap: anywhere; }

/* Right-click menu */
.ctx { position: absolute; z-index: 45; width: 264px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 6px; font-size: 13.5px; }
.ctx-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.ctx-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-head .mono { color: var(--muted); font-size: 11.5px; }
.ctx-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.ctx-item:hover, .ctx-item:focus-visible { background: var(--hover); outline: none; }
.ctx-group { padding: 6px 10px; }
.ctx-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { min-width: 34px; height: 30px; padding: 0 6px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; cursor: pointer; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button img { width: 18px; height: 18px; }
.seg button[aria-pressed="true"], .swatches button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--accent); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatches .sw-default { width: auto; border-radius: 999px; padding: 0 8px; font-size: 11.5px; font-weight: 600; background: var(--bg); color: var(--muted); }
.ctx-sep { border-top: 1px solid var(--line); margin: 6px 0; }
.ctx-note { font-size: 11.5px; color: var(--muted); padding: 6px 10px 4px; }

/* All-assets activity (2026-10-09) */
.to-verify { margin-top: 10px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.to-verify ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.hold { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13.5px; }
.hold .amt { margin-left: auto; white-space: nowrap; }
.act-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.act-controls select, .act-controls input[type="date"] { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--bg); color: var(--ink); }
.act-controls .range { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-controls .btn { height: 32px; }
.usd { font-weight: 600; color: var(--ink); margin-left: 4px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 10px; cursor: pointer; }
.txc { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.txc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12.5px; }
.txc-head .right { margin-left: auto; font-weight: 600; }
.kind { font-size: 11.5px; font-weight: 600; border-radius: 4px; padding: 1px 7px; background: var(--hover); color: var(--muted); }
.kind-token_transfer, .kind-native_transfer { background: var(--accent-soft); color: var(--accent-dark); }
.kind-nft_transfer { background: var(--c-exchange-soft); color: var(--c-exchange); }
.kind-approval { background: var(--c-high-soft); color: var(--warn); }
.kind-spam, .kind-failed { background: var(--bad-soft); color: var(--bad); }
.mv { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 13px; }
.mv .body { flex: 1; min-width: 0; }
.mv.is-spam { opacity: .7; }
.mv .badge { font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; flex: none; margin-top: 1px; }
.badge-other { background: var(--hover); color: var(--muted); }
.txc .line2 { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-unavailable { background: var(--c-high-soft); color: var(--warn); }
.soon { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--hover); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.btn:disabled { cursor: not-allowed; }
.btn-ghost:disabled { opacity: .75; }
.notice span:not(.spinner):not(.actions) { white-space: pre-line; }

/* My investigations (first screen after sign-in) */
.main { position: relative; }
.home { position: absolute; inset: 0; z-index: 40; background: var(--bg-alt); overflow-y: auto; }
/* On My investigations the investigation toolbar is hidden; the page has its own "New investigation" button.
   The top bar (with the profile menu) stays above the page so the whole menu is visible. */
body.home-open .casebar { display: none; }
.topbar { z-index: 70; }
.home-inner { max-width: 1160px; margin: 0 auto; padding: 28px 20px 48px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-head h1 { font-size: 22px; margin: 0 0 4px; }
.home-head p { color: var(--muted); margin: 0; }
.home-import { background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.home-card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.home-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.home-table th, .home-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.home-table tr:last-child td { border-bottom: 0; }
.home-table th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-alt); white-space: nowrap; }
.home-table .home-open { font-weight: 600; text-align: left; }
.home-actions { text-align: right; white-space: nowrap; }
.home-actions .btn { height: 30px; font-size: 12.5px; padding: 0 10px; margin-left: 4px; }
.home-empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.case-ref { background: none; border: 1px solid transparent; border-radius: 6px; padding: 3px 8px; font-size: 13px; color: var(--muted); cursor: text; }
.case-ref:hover { border-color: var(--line); }
.case-ref.empty-ref { font-style: italic; }
