:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#18211f;background:#f7f8f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent-focus);outline-offset:2px}.shell{--page: #f7f8f5;--surface: #ffffff;--text: #18211f;--row-text: #26302c;--muted: #68736e;--border: #d9ded7;--border-strong: #cbd4cf;--accent: #21766d;--accent-strong: #123c37;--accent-soft: #eef5f2;--accent-outline: #c8d7d2;--accent-focus: #21766d40;--success: #17a067;--warning: #c78420;--danger: #a13131;--danger-soft: #fff4f4;--danger-border: #e7bcbc;--grid: #e5e9e4;--table-line: #edf0ec;display:grid;grid-template-columns:320px minmax(0,1fr);min-height:100vh;color:var(--text);background:var(--page)}.theme-night{--page: #101716;--surface: #172320;--text: #e8f3ef;--row-text: #d9e6e1;--muted: #9baca5;--border: #33433e;--border-strong: #465952;--accent: #3db5b0;--accent-strong: #226a68;--accent-soft: #193734;--accent-outline: #2f605c;--accent-focus: #3db5b055;--success: #45c889;--warning: #e0a53a;--danger: #f27f7f;--danger-soft: #332122;--danger-border: #7e4949;--grid: #2d3d37;--table-line: #26352f}.theme-dawn{--page: #fffaf2;--surface: #fffefd;--text: #2c261e;--row-text: #393126;--muted: #7c6f60;--border: #e1d8ca;--border-strong: #d2c5b2;--accent: #b56d20;--accent-strong: #7e4914;--accent-soft: #f8eedf;--accent-outline: #dfc8aa;--accent-focus: #b56d2040;--success: #259766;--warning: #b77613;--danger: #b33e3e;--danger-soft: #fff2f1;--danger-border: #e8bebb;--grid: #eee4d7;--table-line: #f2ebe2}.sidebar{padding:24px;border-right:1px solid var(--border);background:var(--surface)}.brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:6px;background:var(--accent-strong);color:#fff;font-weight:760}.brand-mark svg{width:23px;height:23px}.brand h1,.brand p,.toolbar h2,.toolbar p,.section-head h3,.section-head p{margin:0}.brand h1{font-size:17px;line-height:1.2}.brand p,.toolbar-label,.section-head p,.metric-strip span{color:var(--muted);font-size:12px;line-height:1.4}.add-form{display:grid;grid-template-columns:1fr 64px;gap:8px;margin-bottom:20px}.add-form input{min-width:0;height:38px;padding:0 10px;border:1px solid var(--border-strong);border-radius:6px;color:var(--text);background:var(--surface)}.add-form input:focus{border-color:var(--accent)}.add-form button,.empty button{border:0;border-radius:6px;color:#fff;background:var(--accent);font-weight:650}.domain-list{display:grid;gap:6px}.domain-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:42px;border:1px solid transparent;border-radius:6px;color:var(--row-text)}.domain-row.active{border-color:var(--accent-outline);background:var(--accent-soft)}.domain-select{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;min-height:40px;padding:0 0 0 10px;border:0;color:inherit;background:transparent;text-align:left}.domain-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.domain-percent{color:var(--muted);font-size:12px}.drag-handle{display:grid;width:34px;height:40px;place-items:center;color:var(--muted);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.drag-handle:hover{color:var(--accent-strong)}.drag-handle:active{cursor:grabbing}.drag-handle svg{width:18px;height:18px}.domain-row-chosen{border-color:var(--accent-outline)}.domain-row-ghost{opacity:.42;background:var(--accent-soft)}.domain-row-dragging{background:var(--surface);box-shadow:0 6px 14px #18211f24}.status{width:8px;height:8px;border-radius:999px;background:#a0aaa5}.status-ok{background:var(--success)}.status-running{background:var(--warning)}.status-error{background:var(--danger)}.content{min-width:0;padding:28px 34px 40px}.toolbar{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:22px}.toolbar h2{margin-top:3px;font-size:28px;line-height:1.15;letter-spacing:0}.toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.theme-picker,.chart-actions label,.pager-tools label{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap}.theme-picker select,.chart-actions input,.pager-tools select{height:30px;border:1px solid var(--border-strong);border-radius:6px;outline:none;color:var(--row-text);background:var(--surface)}.theme-picker select,.pager-tools select{padding:0 8px}.theme-picker input[type=color]{width:34px;height:30px;padding:2px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface)}.ghost{height:36px;padding:0 13px;border:1px solid var(--border-strong);border-radius:6px;color:var(--row-text);background:var(--surface);font-weight:620}.ghost:not(:disabled):hover,.pagination button:not(:disabled):hover{border-color:var(--accent-outline);color:var(--accent-strong);background:var(--accent-soft)}.ghost.danger{color:var(--danger)}.error{margin-bottom:14px;padding:10px 12px;border:1px solid var(--danger-border);border-radius:6px;color:var(--danger);background:var(--danger-soft);font-size:13px}.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;overflow:hidden;margin-bottom:18px;border:1px solid var(--border);border-radius:6px;background:var(--border)}.metric-strip>div{min-width:0;padding:16px;background:var(--surface)}.metric-strip strong{display:block;overflow:hidden;margin-top:6px;text-overflow:ellipsis;white-space:nowrap;font-size:21px;line-height:1.2}.chart-panel,.table-section{border:1px solid var(--border);border-radius:6px;background:var(--surface)}.chart-panel{margin-bottom:18px}.section-head{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border)}.section-head h3{font-size:16px;line-height:1.2}.section-head span{color:var(--accent);font-size:12px;font-weight:700}.chart-actions,.pager-tools,.pagination{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.range-selector{display:inline-flex;overflow:hidden;border:1px solid var(--border-strong);border-radius:6px}.range-selector button{min-width:50px;height:30px;padding:0 8px;border:0;border-right:1px solid var(--border-strong);color:var(--muted);background:var(--surface);font-size:12px}.range-selector button:last-child{border-right:0}.range-selector button.active{color:#fff;background:var(--accent)}.chart-actions input{width:64px;padding:0 8px}.pager-tools select{width:76px}.chart-wrap{padding:16px 18px 20px}svg{display:block;width:100%;height:auto}.grid line{stroke:var(--grid);stroke-width:1}.axis-labels{fill:var(--muted);font-size:11px}.trend-line{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.threshold-line{stroke:#e95b5b;stroke-width:2.5;stroke-dasharray:8 8}.threshold-label{fill:#d74b4b;font-size:12px;font-weight:700}.trend-dot{fill:var(--surface);stroke:var(--accent);stroke-width:2}.empty{display:grid;min-height:260px;gap:12px;place-items:center;color:var(--muted)}.empty button{height:36px;padding:0 14px}.table-wrap{overflow-x:auto}table{width:100%;min-width:620px;border-collapse:collapse;font-size:13px}th,td{height:42px;padding:0 18px;border-bottom:1px solid var(--table-line);text-align:left}th{color:var(--muted);font-size:12px;font-weight:700}td{color:var(--row-text)}.table-empty{color:var(--muted);text-align:center}.mono{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.pagination{justify-content:flex-end;padding:12px 18px}.pagination button{height:32px;padding:0 12px;border:1px solid var(--border-strong);border-radius:6px;color:var(--row-text);background:var(--surface);font-weight:620}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--border)}.content{padding:22px 18px 32px}.toolbar,.section-head{align-items:flex-start;flex-direction:column}.toolbar-actions,.chart-actions,.pager-tools,.pagination{flex-wrap:wrap}.metric-strip{grid-template-columns:1fr 1fr}}@media(max-width:560px){.sidebar{padding:18px}.content{padding:18px 12px 26px}.toolbar h2{font-size:24px;overflow-wrap:anywhere}.toolbar-actions{width:100%;justify-content:flex-start}.ghost{flex:1}.metric-strip{grid-template-columns:1fr}.section-head,.chart-wrap{padding-right:12px;padding-left:12px}.chart-actions{gap:8px}}
