/* Eisen Arms Intelligence — dark, quiet, dense. */
:root {
  --bg: #0b0b0c;
  --side: #0e0e10;
  --panel: #111113;
  --panel-2: #161618;
  --line: #232326;
  --line-2: #2e2e32;
  --text: #ededee;
  --muted: #9a9aa0;
  --dim: #6c6c72;
  --accent: #d42a1c;
  --s-flagged: #e0873a;
  --s-watch: #e2b93b;
  --s-confirmed: #e5432f;
  --s-banned: #a66ee6;
  --s-cleared: #4fbf6a;
  --good: #4fbf6a;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.boot { height: 100vh; display: grid; place-items: center; opacity: .5; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 10px 14px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-top: -2px; }
.nav-h { font-size: 12px; color: var(--dim); padding: 18px 10px 6px; }
.nav a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14.5px; border: 1px solid transparent; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.nav a .cnt { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; display: grid; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .av { width: 30px; height: 30px; border-radius: 50%; }
.who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--dim); text-transform: capitalize; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 28px; background: rgba(11,11,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.content { padding: 28px 28px 80px; max-width: 1320px; margin: 0 auto; }
.menu-btn { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none; font-size: 13.5px; font-weight: 500; }
.btn:hover { border-color: #44444a; background: var(--panel-2); }
.btn.primary { background: #f2f2f3; color: #0b0b0c; border-color: #f2f2f3; }
.btn.primary:hover { background: #fff; }
.btn.danger { color: #ff8a7d; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn .chev::after { content: '›'; font-size: 16px; line-height: 1; margin-left: 2px; }
.ico { width: 15px; height: 15px; flex: none; }
.search { position: relative; flex: 0 1 360px; }
.search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); outline: none; }
.search input:focus { border-color: #55555b; }
.search .ico { position: absolute; left: 11px; top: 10px; color: var(--dim); }
.search-res { position: absolute; top: 42px; left: 0; width: min(460px, 92vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.5); padding: 6px; z-index: 40; }
.search-res .row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; }
.search-res .row:hover, .search-res .row.on { background: var(--panel-2); }
.search-res .row .av { width: 34px; height: 34px; border-radius: 6px; }
.search-res .meta { min-width: 0; flex: 1; }
.search-res .meta b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-res .meta small { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.search-res .empty { padding: 14px; color: var(--muted); }
.lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.select { height: 34px; padding: 0 30px 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%239a9aa0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--panel-2); color: var(--text); border-color: #4a4a50; }
.chip .n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; color: var(--muted); }
.fld input, .fld textarea, .fld select { width: 100%; padding: 9px 11px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); outline: none; }
.fld select { appearance: auto; }
.fld textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: #5a5a60; }
.hint { font-size: 12.5px; color: var(--dim); margin: 0; }

/* ---------- headings, panels ---------- */
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.sec-h a, .sec-h .aside { font-size: 13px; color: var(--muted); }
.sec-h a { text-decoration: underline; text-underline-offset: 4px; color: var(--text); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 20px 22px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.stack { display: grid; gap: 28px; }
.empty-note { padding: 40px 20px; text-align: center; color: var(--muted); }

/* needs-you rows */
.rows > .r { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); }
.rows > .r:first-child { border-top: 0; }
.r-t b { display: block; font-weight: 500; font-size: 15px; }
.r-t small { color: #e0a24a; font-size: 13px; }
.r-n { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.r-n.clear { color: var(--good); font-size: 16px; font-weight: 500; }
.rows .btn { justify-content: center; }

.big { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.statbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 18px 0 16px; gap: 2px; }
.statbar span { display: block; height: 100%; min-width: 3px; }
.legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 18px; }
.legend div { display: grid; gap: 2px; }
.legend .k { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.legend .v { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.legend .v small { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.c-flagged { background: var(--s-flagged); } .c-watch { background: var(--s-watch); } .c-confirmed { background: var(--s-confirmed); } .c-banned { background: var(--s-banned); } .c-cleared { background: var(--s-cleared); }

.bars { display: grid; gap: 10px; }
.bars .b { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.bars .track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bars .track span { display: block; height: 100%; background: #8d8d93; }
.bars .b b { text-align: right; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: start; }
.feed li:first-child { border-top: 0; }
.feed .av { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); }
.feed p { margin: 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.feed p b { color: var(--text); font-weight: 500; }
.feed p a { color: var(--text); text-decoration: none; font-weight: 500; }
.feed p a:hover { text-decoration: underline; }
.feed .note { margin-top: 6px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: #d4d4d6; white-space: pre-wrap; }
.feed time { font-size: 12px; color: var(--dim); white-space: nowrap; }

/* status pill */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 500; text-transform: lowercase; }
.p-flagged { color: var(--s-flagged); background: rgba(224,135,58,.13); }
.p-watch { color: var(--s-watch); background: rgba(226,185,59,.13); }
.p-confirmed { color: var(--s-confirmed); background: rgba(229,67,47,.14); }
.p-banned { color: var(--s-banned); background: rgba(166,110,230,.15); }
.p-cleared { color: var(--s-cleared); background: rgba(79,191,106,.13); }
.sev { display: inline-flex; gap: 2px; vertical-align: middle; }
.sev i { width: 4px; height: 12px; border-radius: 1px; background: var(--line-2); }
.sev.s1 i:nth-child(-n+1), .sev.s2 i:nth-child(-n+2) { background: var(--s-watch); }
.sev.s3 i:nth-child(-n+3) { background: var(--s-flagged); }
.sev.s4 i { background: var(--s-confirmed); }

/* ---------- cases list ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.cases { width: 100%; border-collapse: collapse; }
.cases th { text-align: left; font-weight: 400; font-size: 12px; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cases td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cases tr:last-child td { border-bottom: 0; }
.cases tbody tr { cursor: pointer; }
.cases tbody tr:hover td { background: rgba(255,255,255,.02); }
.acct { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct .av { width: 38px; height: 38px; border-radius: 6px; background: var(--panel-2); flex: none; object-fit: cover; }
.acct b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.acct small { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.plat { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- case page ---------- */
.case { display: grid; grid-template-columns: 400px minmax(0, 1fr); min-height: calc(100vh - 65px); }
.case-left { border-right: 1px solid var(--line); padding: 26px 26px 60px; display: grid; gap: 22px; align-content: start; }
.case-right { padding: 18px 26px 60px; min-width: 0; }
.id-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
.id-card .av { width: 112px; height: 112px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); object-fit: cover; }
.id-card h1 { margin: 2px 0 2px; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.id-card .mono { font-size: 12.5px; color: var(--muted); display: block; }
.id-card .mono a { color: var(--muted); }
.id-card .pill { margin-top: 8px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 500; }
.kv .mono { font-size: 12.5px; color: var(--text); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 6px 9px; text-align: center; background: transparent; cursor: pointer; position: relative; overflow: hidden; }
.tile b { display: block; font-family: var(--mono); font-weight: 500; font-size: 16px; }
.tile span { font-size: 12px; color: var(--muted); }
.tile.hot::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--s-confirmed); }
.facts { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.facts b { font-family: var(--mono); font-weight: 400; color: var(--text); }
.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 14px 16px; }
.box p { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #d6d6d8; }
.box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: rgba(90,140,230,.15); color: #8fb2f0; font-size: 12px; }
.h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.actbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 65px; z-index: 10; background: rgba(11,11,12,.95); }
.actbar .left, .actbar .right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px 11px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .n { font-family: var(--mono); font-size: 11px; color: var(--dim); background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.person { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; position: relative; text-decoration: none; display: block; }
.person img, .person .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #1b1b1e; }
.person .ph { display: grid; place-items: center; color: var(--dim); }
.person div { padding: 8px 10px 9px; }
.person b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { display: block; font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .flag { position: absolute; top: 8px; right: 8px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(0,0,0,.55); }
.person.tracked { border-color: #3a3a40; }
.person:hover { border-color: #4a4a50; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.item img, .item .ph { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; color: var(--dim); }
.item b { font-weight: 500; overflow-wrap: anywhere; }
.item small { display: block; color: var(--dim); font-size: 12.5px; }
.item p { margin: 6px 0 0; color: #cfcfd2; white-space: pre-wrap; font-size: 13.5px; }
.item a { color: var(--text); }
.ev-img { max-width: 100%; max-height: 360px; border-radius: 6px; border: 1px solid var(--line); margin-top: 10px; cursor: zoom-in; }
.form { display: grid; gap: 14px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.form-row > .fld { flex: 1 1 180px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 7px 12px; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }

/* ---------- staff ---------- */
.staff-av { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); object-fit: cover; }
.role { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.role.admin { color: #f0a08f; }

/* ---------- modal, toast, login ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.modal .body { padding: 18px 20px; display: grid; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px; }
.err { color: #ff8a7d; font-size: 13px; margin: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 110; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #f2f2f3; color: #0b0b0c; padding: 10px 16px; border-radius: 6px; font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 120; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at top, rgba(212,42,28,.08), transparent 60%), var(--bg); }
.login .card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px 28px; display: grid; gap: 18px; text-align: center; }
.login .card img { margin: 0 auto; width: 56px; height: 56px; }
.login h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.login p { margin: 0; color: var(--muted); }
.login .btn { justify-content: center; height: 42px; }
.login .idbox { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; user-select: all; }
.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.discord:hover { background: #4752c4; border-color: #4752c4; }

@media (max-width: 1100px) {
  .grid-2, .case { grid-template-columns: 1fr; }
  .case-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .actbar { padding: 10px 16px; top: 65px; }
  .case-left, .case-right { padding-left: 16px; padding-right: 16px; }
  .rows > .r { grid-template-columns: minmax(0, 1fr) auto; }
  .rows > .r .btn { grid-column: 1 / -1; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases .hide-sm { display: none; }
  .search { flex: 1 1 auto; }
  .topbar .new-label { display: none; }
  .id-card { grid-template-columns: 84px minmax(0, 1fr); } .id-card .av { width: 84px; height: 84px; }
}

/* ---------- cases ---------- */
:root { --k-open: #6aa0f0; --k-investigating: #e0873a; --k-pending: #e2b93b; --k-resolved: #4fbf6a; --k-closed: #7c7c82; }
.c-open { background: var(--k-open); } .c-investigating { background: var(--k-investigating); } .c-pending { background: var(--k-pending); } .c-resolved { background: var(--k-resolved); } .c-closed { background: var(--k-closed); }
.p-open { color: var(--k-open); background: rgba(106,160,240,.14); }
.p-investigating { color: var(--k-investigating); background: rgba(224,135,58,.13); }
.p-pending { color: var(--k-pending); background: rgba(226,185,59,.13); }
.p-resolved { color: var(--k-resolved); background: rgba(79,191,106,.13); }
.p-closed { color: #a4a4aa; background: rgba(124,124,130,.16); }
.case-ico { display: grid !important; place-items: center; background: var(--panel-2); color: var(--muted); border-radius: 6px; }
.search-res .case-ico { width: 34px; height: 34px; }
.case-t { display: grid; gap: 1px; min-width: 0; }
.case-t .mono { font-size: 11.5px; }
.case-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.case-t small { color: var(--dim); font-size: 12.5px; }
.stack-av { display: flex; align-items: center; }
.stack-av img, .stack-av > span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -8px; background: var(--panel-2); object-fit: cover; display: block; }
.stack-av > :first-child { margin-left: 0; }
.stack-av .r-suspect { box-shadow: 0 0 0 1.5px var(--s-confirmed); }
.stack-av i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.role-tag { position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; background: rgba(0,0,0,.7); color: #ddd; }
.role-tag.r-suspect { background: rgba(229,67,47,.92); color: #fff; }
.role-tag.r-victim { background: rgba(70,120,220,.92); color: #fff; }
.role-tag.r-reporter { background: rgba(60,150,90,.92); color: #fff; }
.person .p-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); white-space: normal; }
.person .p-acts { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.person .p-acts .select { height: 28px; font-size: 12.5px; padding: 0 24px 0 8px; flex: 1; min-width: 0; background-position: right 8px center; }
.case-right .people { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.item.pick { cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; }
.item.pick:hover { border-color: #4a4a50; }
.item.pick.on { border-color: #8a8a90; background: var(--panel-2); }
a.item { color: inherit; }
a.item:hover { border-color: #4a4a50; }
.p-untracked { color: var(--muted); background: rgba(255,255,255,.06); }
.lookup { display: flex; gap: 10px; max-width: 720px; }
.big-search { flex: 1 1 auto; }
.big-search input { height: 44px; font-size: 15px; padding-left: 38px; }
.big-search .ico { top: 14px; left: 13px; }
.lookup .btn { height: 44px; padding: 0 20px; }
.person small + small { margin-top: 1px; }
.badge-box { display: grid; gap: 12px; }
.badge-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.badge-top .big { font-size: 26px; }
.badge-meta { display: grid; gap: 1px; font-size: 12px; color: var(--muted); text-align: right; }
.badge-meta b { font-family: var(--mono); font-weight: 400; color: var(--text); }
.bchart { width: 100%; height: 110px; display: block; }
.bchart rect { fill: #6d6d74; }
.bchart rect.cur { fill: var(--accent); }
.bchart rect:hover { fill: #b8b8be; }
.bchart .axis { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bchart-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: -10px; }
.new-join { color: #e0a24a; }
.left-at { color: #ff8a7d; }
.item small + small { margin-top: 2px; }
