:root { --bg: #f6f7f9; --panel: #fff; --fg: #1c2330; --muted: #667085; --line: #dfe3ea; --acc: #1f5f8b; --soft: #e9eef4; --on: #eaf2f8; --err: #b42318; }
@media (prefers-color-scheme: dark) { :root { --bg: #12161c; --panel: #1a2029; --fg: #e8ecf2; --muted: #98a2b3; --line: #2c3542; --acc: #6bb0dc; --soft: #252d39; --on: #223344; --err: #f97066; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { font-size: 22px; margin: 0; } h2, section { scroll-margin-top: 84px; }
h2 { font-size: 19px; margin: 36px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); } h3 { font-size: 15px; margin: 0 0 6px; }
.muted { color: var(--muted); margin: 2px 0 0; } .small { font-size: 12.5px; margin-bottom: 10px; }
.top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px clamp(14px, 4vw, 40px); background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top nav { display: flex; gap: 16px; } a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
main { max-width: 1240px; margin: 0 auto; padding: 8px clamp(14px, 4vw, 40px) 60px; }
.lead { font-size: 16px; max-width: 78ch; margin: 22px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; margin-bottom: 14px; }
.card, .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0; }
.kpi b { display: block; font-size: 19px; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .kpi span { color: var(--muted); font-size: 12.5px; } .kpi small { display: block; color: var(--muted); margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bars { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.bar { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; width: 100%; }
button.bar { cursor: pointer; } button.bar:hover, .bar.on { background: var(--on); }
.bar .lab { color: var(--muted); overflow-wrap: anywhere; } .bar .trk { height: 14px; background: var(--soft); border-radius: 4px; overflow: hidden; } .bar .fil { display: block; height: 100%; background: var(--acc); border-radius: 4px; min-width: 2px; }
.bar .val { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; } .bar .val small { color: var(--muted); margin-left: 6px; }
.block { margin: 22px 0; } .block-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .tools label { color: var(--muted); font-size: 13px; }
input[type=search], select, input[type=password] { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; max-width: 100%; }
.chip { background: var(--on); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.scroll { overflow: auto; max-height: 480px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--panel); text-align: left; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.sort { cursor: pointer; } th.sort:hover { color: var(--fg); }
td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .num { text-align: right; white-space: nowrap; }
tr.pick { cursor: pointer; } tr.pick:hover td, tr.on td { background: var(--on); } tr.on td { font-weight: 600; }
.name { font-size: 16px; font-weight: 600; margin: 10px 0 0; } .warn { color: var(--err); }
.notes { color: var(--muted); font-size: 13px; margin-top: 30px; } .notes summary { cursor: pointer; color: var(--fg); }
.status { text-align: center; color: var(--muted); padding: 40px; }
.lg { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.lg-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(380px, 100%); }
.lg-box form { display: grid; gap: 8px; margin-top: 18px; } .lg-box label { font-size: 13px; color: var(--muted); }
.lg-box button { font: inherit; font-weight: 600; color: #fff; background: #1f5f8b; border: 0; border-radius: 8px; padding: 9px; cursor: pointer; margin-top: 6px; }
.lg-err { color: var(--err); margin: 14px 0 0; }
@media print { .top { position: static; } .top nav, .tools, .status { display: none; } .scroll { max-height: none; overflow: visible; } }
