:root { --bg:#0f1320; --panel:#171c2c; --panel2:#1e2438; --text:#e6e9f2; --muted:#9aa3ba; --accent:#4dabf7; --border:#2a3148; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:var(--bg); color:var(--text); font:14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.app { display:grid; grid-template-columns:340px 1fr; height:100vh; }
.sidebar { background:var(--panel); border-right:1px solid var(--border); overflow-y:auto; padding:14px 16px 30px; }
.sidebar h1 { font-size:18px; margin:0 0 6px; }
.sidebar h2 { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:18px 0 8px; }
.blurb { color:var(--muted); font-size:12.5px; margin:0 0 6px; }
.row { display:flex; flex-direction:column; gap:3px; margin:7px 0; }
.row > span { font-size:12.5px; color:var(--muted); display:flex; justify-content:space-between; }
.row > span b { color:var(--text); font-weight:600; }
.row.check { flex-direction:row; align-items:center; gap:8px; }
.row.check span { color:var(--text); }
input[type=range] { width:100%; accent-color:var(--accent); }
select, input[type=number] { background:var(--panel2); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:5px 7px; font-size:13px; }
button { background:var(--panel2); color:var(--text); border:1px solid var(--border); border-radius:6px; padding:6px 10px; font-size:13px; cursor:pointer; }
button:hover { border-color:var(--accent); }
button.primary { background:var(--accent); color:#04101f; border-color:var(--accent); font-weight:600; }
button:disabled { opacity:.5; cursor:default; }
.model { border:1px solid var(--border); border-left:4px solid var(--mc, var(--accent)); border-radius:6px; padding:6px 10px 4px; margin:8px 0; }
.model .row.check { margin:2px 0 4px; font-weight:600; }
.model .row { margin:3px 0; }
.model .sub { color:var(--muted); font-size:11.5px; margin:0 0 4px; }
.notes { color:var(--muted); font-size:12.5px; }
.notes li { margin:5px 0; }
.notes b { color:var(--text); }
footer { color:var(--muted); font-size:11.5px; margin-top:26px; border-top:1px solid var(--border); padding-top:10px; }
.main { display:grid; grid-template-rows:auto minmax(260px, 1fr) auto auto; min-width:0; min-height:0; overflow-y:auto; }
.toolbar { display:flex; align-items:center; gap:14px; padding:8px 14px; border-bottom:1px solid var(--border); background:var(--panel); font-size:12.5px; color:var(--muted); flex-wrap:wrap; }
.toolbar b { color:var(--text); }
.status { margin-left:auto; white-space:nowrap; }
.fitwrap { position:relative; min-height:260px; }
#fit { width:100%; height:100%; display:block; }
.tablewrap { padding:8px 14px; border-top:1px solid var(--border); background:var(--panel); }
table { border-collapse:collapse; font-size:13px; width:100%; }
th, td { text-align:right; padding:4px 10px; border-bottom:1px solid var(--border); font-variant-numeric:tabular-nums; }
th:first-child, td:first-child { text-align:left; }
th { color:var(--muted); font-weight:500; font-size:12px; }
td .sw { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px; vertical-align:middle; }
td.floor { color:var(--muted); }
.sweep { border-top:1px solid var(--border); padding:8px 14px 14px; }
.sweepbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; font-size:12.5px; color:var(--muted); }
.sweepbar .prog { flex:1; min-width:120px; height:6px; background:var(--panel2); border-radius:3px; overflow:hidden; }
.sweepbar .prog i { display:block; height:100%; width:0; background:var(--accent); transition:width .15s; }
.charts { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.charts canvas { width:100%; height:240px; display:block; background:var(--panel2); border-radius:6px; }
.legend { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-top:6px; }
.legend .sw { display:inline-block; width:14px; height:3px; margin-right:5px; vertical-align:middle; }
.hidden { display:none !important; }
@media (max-width: 900px) { .app { grid-template-columns:1fr; height:auto; } .main { overflow:visible; } .charts { grid-template-columns:1fr; } }
