
:root{
  --bg:#f3f5f8;--surface:#fff;--text:#172033;--muted:#657085;
  --border:#d9dee8;--accent:#6d1024;--shadow:0 12px 30px rgba(20,31,50,.08)
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
.topbar{min-height:150px;padding:28px 36px;color:#fff;background:linear-gradient(135deg,#172c3d,#365f68 56%,#72533f);display:flex;align-items:center;justify-content:space-between;gap:24px}
.eyebrow{margin:0 0 6px;font-size:.78rem;text-transform:uppercase;letter-spacing:.13em;opacity:.82}
h1{margin:0;font-size:clamp(1.8rem,4vw,3rem)}
.subtitle{margin:8px 0 0;max-width:850px;line-height:1.45;opacity:.92}
.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
button{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:700}
button:hover{background:rgba(255,255,255,.22)}
.app-shell{min-height:calc(100vh - 210px);padding:20px;display:grid;grid-template-columns:310px minmax(0,1fr);gap:20px}
.sidebar{display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 205px);overflow:auto}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow)}
.panel h2{margin:0 0 12px;font-size:1rem}
label{display:block;font-weight:700;margin-bottom:8px}
input[type="search"]{width:100%;border:1px solid var(--border);border-radius:10px;padding:11px 12px;font:inherit}
.filters{display:grid;gap:8px}.filter-row{display:flex;align-items:center;gap:9px;font-size:.9rem}
.swatch{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.details-panel p,.details-panel li{line-height:1.5;color:var(--muted)}
.details-title{margin:0 0 8px;color:var(--text);font-weight:800}
.detail-badge{display:inline-block;margin-top:8px;padding:4px 8px;border-radius:999px;background:#f0e7ea;color:var(--accent);font-size:.78rem;font-weight:800}
.legend-item{display:flex;align-items:center;gap:8px;margin:7px 0;font-size:.86rem}
.graph-wrap{position:relative;min-height:760px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
#cy{width:100%;height:100%;min-height:760px}
.hint{position:absolute;left:16px;bottom:14px;background:rgba(255,255,255,.93);border:1px solid var(--border);border-radius:999px;padding:8px 12px;font-size:.8rem;color:var(--muted);pointer-events:none}
footer{padding:16px 24px 24px;color:var(--muted);font-size:.83rem;text-align:center}
@media(max-width:900px){.topbar{align-items:flex-start;flex-direction:column;padding:24px}.actions{justify-content:flex-start}.app-shell{grid-template-columns:1fr}.sidebar{max-height:none}.graph-wrap,#cy{min-height:650px}}
