:root { --ink:#17212f; --muted:#667386; --line:#e2e7ee; --bg:#f5f7fa; --brand:#0f766e; --bad:#c2410c; --row:38px; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.4 system-ui, sans-serif; color:var(--ink); background:var(--bg); }
button, input, select, textarea { font:inherit; color:inherit; }
button { border:1px solid var(--line); background:#fff; border-radius:7px; padding:7px 12px; cursor:pointer; }
button.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
button.danger { color:var(--bad); }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:7px; padding:7px 9px; background:#fff; }
label { display:block; margin-bottom:10px; color:var(--muted); }
label > * { margin-top:3px; color:var(--ink); }
header { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:10px 16px; background:#fff; border-bottom:1px solid var(--line); }
header strong { font-size:18px; color:var(--brand); }
header select { width:auto; min-width:200px; }
.spacer { flex:1; }
.login { max-width:340px; margin:12vh auto; background:#fff; padding:24px; border-radius:12px; border:1px solid var(--line); }
.stats { display:flex; gap:12px; flex-wrap:wrap; padding:12px 16px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 14px; min-width:150px; }
.stat span { display:block; color:var(--muted); font-size:12px; }
.stat b { font-size:17px; }
.bad { color:var(--bad); }
.toolbar { display:flex; gap:8px; padding:0 16px 10px; flex-wrap:wrap; }
.board { display:flex; margin:0 16px 16px; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.grid { flex:0 0 470px; border-right:2px solid var(--line); }
.row { display:grid; grid-template-columns:1fr 110px 50px 55px; height:var(--row); align-items:center; border-bottom:1px solid var(--line); padding:0 10px; gap:8px; cursor:pointer; }
.row > * { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.row.head { height:48px; font-weight:600; color:var(--muted); cursor:default; }
.chart { flex:1; overflow-x:auto; }
.chart svg { display:block; user-select:none; }
.bar { cursor:grab; touch-action:none; }
.handle { cursor:ew-resize; fill:transparent; touch-action:none; }
.empty { padding:30px; text-align:center; color:var(--muted); }
dialog { border:1px solid var(--line); border-radius:12px; width:min(480px, 94vw); padding:20px; }
dialog::backdrop { background:#0006; }
dialog h2 { margin:0 0 14px; font-size:18px; }
.actions { display:flex; gap:8px; justify-content:flex-end; margin-top:14px; flex-wrap:wrap; }
.checks { max-height:130px; overflow:auto; border:1px solid var(--line); border-radius:7px; padding:6px 9px; }
.checks label { display:flex; gap:7px; margin:2px 0; color:var(--ink); }
.checks input { width:auto; }
table { width:100%; border-collapse:collapse; }
td { padding:5px 0; border-bottom:1px solid var(--line); }
#toast { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; padding:9px 16px; border-radius:8px; display:none; z-index:9; }
dialog #toast { position:static; transform:none; margin-top:10px; }
@media (max-width:800px) { .board { flex-direction:column; } .grid { flex:none; border-right:0; } }
