:root { color-scheme: light; --ink: #19211c; --muted: #535f57; --paper: #f3f5f0; --line: #d5ddd2; --green: #dcfa9e; --deep: #214f38; --danger: #a12c31; font: 16px/1.5 'Noto Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.mast { min-height: 67px; background: var(--ink); color: white; padding: 10px max(22px, calc((100% - 1260px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.mast > div { display: flex; align-items: center; gap: 15px; }
.mast strong { color: var(--green); font-size: 24px; letter-spacing: -0.05em; }
.mast span { border-left: 1px solid #68756a; padding-left: 15px; }
.mast button { background: transparent; color: white; border-color: #77877a; }
main { max-width: 1300px; margin: 0 auto; padding: 30px 20px 60px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.045em; line-height: 1.13; }
h2 { font-size: 20px; letter-spacing: -0.02em; }
p { color: var(--muted); }
nav, .toolbar, .actions, .topline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
nav { margin-bottom: 24px; }
.topline { justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.title p { margin-top: 6px; }
.toolbar label { display: flex; align-items: center; gap: 7px; }
button, input, select { font: inherit; color: inherit; }
button, input, select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; background: white; }
button { cursor: pointer; font-weight: 650; }
button:hover { border-color: var(--deep); }
button[aria-current="page"], .primary { background: var(--green); border-color: #a3c95d; color: var(--ink); }
button:disabled { opacity: 0.6; cursor: wait; }
:focus-visible { outline: 3px solid #387c54; outline-offset: 2px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric, .panel, .auth { background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.metric { padding: 15px; }
.metric strong { display: block; font-size: clamp(19px, 2.2vw, 27px); letter-spacing: -0.04em; white-space: nowrap; }
.metric.accent { background: var(--green); border-color: #a3c95d; }
.panel { padding: 18px; margin: 16px 0; }
.panel h2 { margin-bottom: 6px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
td, th { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 650; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td:first-child { min-width: 125px; }
td:last-child button { white-space: nowrap; }
.status, .error { margin: 8px 0; }
.error, .negative { color: var(--danger); }
.hint, small { color: var(--muted); }
.auth { max-width: 480px; margin: 45px auto; padding: 24px; }
.auth h1 { font-size: 30px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }
.auth .fields { grid-template-columns: minmax(0, 1fr); }
.fields label { display: grid; align-content: start; gap: 4px; }
.fields input, .fields select { width: 100%; }
.auth code { overflow-wrap: anywhere; font-size: 18px; user-select: all; }
dialog { border: 1px solid var(--line); border-radius: 15px; padding: 20px; max-width: min(640px, 94vw); width: 100%; }
dialog::backdrop { background: #19211c99; }
.actions { justify-content: flex-end; }
.scenario { width: 92px; text-align: right; }
@media (max-width: 540px) { .fields { grid-template-columns: 1fr; } .mast { padding: 10px 16px; } .mast > div { gap: 8px; } }
