:root { color-scheme: dark; --bg:#09111f; --card:#111c2e; --muted:#92a4bd; --text:#eef5ff; --accent:#77e0a8; --warn:#ffd166; --bad:#ff7b7b; --line:#243349; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; background: radial-gradient(circle at top left, #152846, #09111f 52%); color:var(--text); }
.shell { width:min(1440px, 96vw); margin:0 auto; padding:28px 0 48px; }
.hero { display:flex; justify-content:space-between; gap:18px; align-items:stretch; margin-bottom:20px; }
.eyebrow { color:var(--accent); font-weight:800; letter-spacing:.08em; text-transform:uppercase; font-size:12px; }
h1 { margin:.15rem 0 .35rem; font-size:clamp(28px, 4vw, 54px); line-height:1; }
p { margin:0; color:var(--muted); }
.card, .auth-card { background:rgba(17,28,46,.88); border:1px solid var(--line); border-radius:18px; box-shadow:0 18px 60px rgba(0,0,0,.22); }
.auth-card { padding:16px; display:flex; gap:10px; align-items:center; min-width:340px; }
input, button { border-radius:12px; border:1px solid var(--line); padding:11px 13px; background:#0c1626; color:var(--text); }
input { width:100%; }
button { cursor:pointer; background:linear-gradient(135deg, #3ddc84, #77e0a8); color:#06101d; font-weight:800; }
button.secondary { background:#17243a; color:var(--text); }
.grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.stats .card { padding:15px; }
.stats span { display:block; color:var(--muted); font-size:12px; }
.stats strong { display:block; margin-top:6px; font-size:22px; }
.actions { padding:14px; margin:14px 0; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.blocked { color:var(--warn); margin-left:auto; }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
h2 { margin:0 0 12px; font-size:18px; }
.two-col .card, section.card { padding:16px; }
.table-wrap { overflow:auto; max-height:520px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); position:sticky; top:0; background:#111c2e; }
pre { max-height:380px; overflow:auto; white-space:pre-wrap; color:#c9d7ea; font-size:13px; }
.tier-SS, .tier-S { color:#77e0a8; font-weight:900; }
.tier-A { color:#a8d8ff; font-weight:800; }
.tier-B { color:#ffd166; font-weight:800; }
.tier-C { color:#f8a8ff; font-weight:800; }
@media (max-width: 980px) { .hero, .two-col { grid-template-columns:1fr; display:grid; } .grid { grid-template-columns:repeat(2, 1fr); } .auth-card { min-width:0; } }

a { color: var(--accent); text-decoration:none; }
.headline { min-width:220px; max-width:420px; }
.risk-high { color: var(--bad); font-weight:900; }
.risk-low { color: var(--muted); }
.wide-left { grid-template-columns: 1.35fr .95fr; }
@media (max-width: 1180px) { .wide-left { grid-template-columns:1fr; } }
button.danger { background: #9f1239; color: #fff; border-color: #be123c; }
button.danger:hover { background: #be123c; }
.muted { color: #64748b; font-size: 0.9rem; margin-top: -0.35rem; }
.research-card { margin:14px 0; }
.research-head { display:flex; gap:14px; align-items:flex-start; justify-content:space-between; margin-bottom:14px; }
.research-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; max-width:760px; }
.research-actions input[type="date"] { width:160px; }
.research-actions input[type="text"] { width:160px; }
.mini-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin:10px 0 14px; }
.mini-grid > div { background:#0c1626; border:1px solid var(--line); border-radius:14px; padding:12px; }
.mini-grid span { display:block; color:var(--muted); font-size:12px; }
.mini-grid strong { display:block; margin-top:5px; font-size:20px; }
.inner-two { margin-top:16px; }
h3 { margin:16px 0 10px; font-size:15px; color:#cfe5ff; }
.recommendations { margin:0; padding-left:18px; color:#d9e7fb; }
.recommendations li { margin:6px 0; }
.replay-result { max-height:260px; background:#0c1626; border:1px solid var(--line); border-radius:14px; padding:12px; }
@media (max-width: 980px) { .research-head { display:block; } .research-actions { justify-content:flex-start; margin-top:12px; } .mini-grid { grid-template-columns:repeat(2, 1fr); } }
