/* Маржа — оформление. Цвета графиков: проверенная палитра (светлая и тёмная темы отдельно). */
:root {
  color-scheme: light;
  --plane: #f4f3ef;
  --surface: #fcfcfb;
  --surface-2: #f6f5f2;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --line: rgba(11, 11, 11, 0.10);
  --line-2: rgba(11, 11, 11, 0.16);
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-wash: #e8f1fc;
  --good: #006300;
  --bad: #d03b3b;
  --warn: #fab219;
  --st-good: #0ca30c;
  --st-crit: #d03b3b;
  --st-serious: #ec835a;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --prev: #b9b7ae;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04), 0 4px 16px rgba(11, 11, 11, .04);
  --radius: 10px;
  --side: 232px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --plane: #0d0d0d; --surface: #1a1a19; --surface-2: #222220; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .16);
    --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: #16263a; --good: #0ca30c; --bad: #e66767;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --prev: #57564f; --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane: #0d0d0d; --surface: #1a1a19; --surface-2: #222220; --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .16);
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: #16263a; --good: #0ca30c; --bad: #e66767;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --prev: #57564f; --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--plane); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ===== Каркас ===== */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; border-right: 1px solid var(--line);
  background: var(--plane); display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 6px; }
.nav a, .nav span.soon { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.nav a .ic, .nav span .ic { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav .sub { padding-left: 38px; font-size: 13px; }
.nav span.soon { color: var(--muted); cursor: default; }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px;
  background: color-mix(in srgb, var(--plane) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .title { font-size: 15px; font-weight: 600; }
.top .grow { flex: 1; }
.content { padding: 22px 28px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin-right: auto; }

/* ===== Элементы ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; white-space: nowrap; font-size: 13px; }
.btn:hover { border-color: var(--axis); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.danger { color: var(--bad); }
.btn svg { width: 15px; height: 15px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 0 11px; height: 30px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.seg button:disabled { color: var(--muted); cursor: default; }
.mp-switch button { display: inline-flex; align-items: center; gap: 6px; }
input.in, select.in, textarea.in { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); padding: 0 10px; min-width: 0; }
textarea.in { height: auto; padding: 8px 10px; }
input.in:focus, select.in:focus, textarea.in:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=date].in { width: 140px; }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
.badge.demo { background: #fff4d6; color: #6b4b00; border-color: #f2d27a; }
:root[data-theme="dark"] .badge.demo { background: #3a2e0e; color: #f2d27a; border-color: #5a4610; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .badge.demo { background: #3a2e0e; color: #f2d27a; border-color: #5a4610; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.chip b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip.on b { color: var(--surface); }
.chip:disabled { opacity: .5; cursor: default; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.toolbar .grow { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 4px; }
.tabs button { border: 0; background: none; padding: 9px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button .badge { margin-left: 6px; }

/* ===== Период ===== */
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period .dates { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Карточки ===== */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card.pad0 { padding: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-h h2, .card-h h3 { margin-right: auto; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (min-width: 1760px) { .wide-half { grid-column: span 6; } }
@media (max-width: 1200px) { .span-3 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-8 { grid-column: span 12; } }
@media (max-width: 760px) { .span-3, .span-4, .span-6 { grid-column: span 12; } }
.kpi .label { color: var(--ink-2); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; }
.kpi .value.hero { font-size: 34px; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.kpi .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.kpi .row3 .value { font-size: 20px; }
.kpi .spark { margin-top: 10px; display: block; }
.kpi-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .kpi-mini { grid-template-columns: repeat(2, 1fr); } }
.kpi-mini .card { padding: 14px 16px; }
.kpi-mini .value { font-size: 22px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.delta svg { width: 10px; height: 10px; }
.split { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.split b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stub { color: var(--muted); font-size: 13px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }

/* ===== Подсказки ===== */
.ins-list { display: flex; flex-direction: column; }
.ins { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.ins:first-child { border-top: 0; }
.ins .t { font-weight: 600; }
.ins .p { color: var(--ink-2); font-size: 13px; }
.ins .who { color: var(--muted); font-size: 12.5px; }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.kind i { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; }
.kind.action i { background: var(--st-crit); } .kind.watch i { background: var(--warn); color: #0b0b0b; } .kind.chance i { background: var(--st-good); }
.counters { display: flex; gap: 16px; }
.counters .c { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.counters .c b { font-size: 18px; color: var(--ink); font-weight: 600; }

/* ===== Первые шаги ===== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); align-items: flex-start; }
.step .mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--axis); flex: none; display: grid; place-items: center; }
.step.done .mark { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.step.done .s-t { color: var(--muted); text-decoration: line-through; }
.step .s-t { font-weight: 600; }
.step .s-p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* ===== Таблицы ===== */
.tbl-wrap { overflow: auto; border-radius: var(--radius); }
.card.pad0 .tbl-wrap { border-radius: var(--radius); }
table.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-2); font-weight: 500; text-align: left;
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
table.t th.sort { cursor: pointer; user-select: none; }
table.t th.sort:hover { color: var(--ink); }
table.t th .arr { opacity: .35; margin-left: 3px; }
table.t th.sorted .arr { opacity: 1; color: var(--accent-ink); }
table.t thead tr.grp th { top: 0; text-align: center; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
table.t thead tr.grp + tr th { top: 31px; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; background: var(--surface); }
table.t tbody tr:hover td { background: var(--surface-2); }
table.t tr.total td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line-2); position: sticky; bottom: 0; z-index: 1; }
table.t tr.grp-row td { background: var(--surface-2); font-weight: 600; cursor: pointer; }
table.t tr.child td:first-child { padding-left: 28px; }
table.t tr.arch td { color: var(--muted); }
table.t .stick { position: sticky; left: 0; z-index: 1; }
table.t th.stick { z-index: 3; }
table.t td.stick { box-shadow: 1px 0 0 var(--line); }
table.t td.bl, table.t th.bl { border-left: 1px solid var(--line); }
.prod { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px; }
.prod.compact { min-width: 170px; max-width: 230px; }
.prod.compact .ph { width: 28px; height: 28px; }
.card .t.compact td, .card .t.compact th { padding: 7px 8px; }
.prod .ph { width: 36px; height: 36px; border-radius: 6px; flex: none; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 11px; color: var(--muted); font-weight: 600; overflow: hidden; }
.prod .nm { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prod .of { color: var(--muted); font-size: 12px; }
.two { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.two small { color: var(--muted); font-size: 11.5px; }
.note-in { width: 160px; height: 28px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 0 6px; }
.note-in:hover { border-color: var(--line-2); }
.note-in:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.flag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; cursor: help; }
.flag.action { background: var(--st-crit); } .flag.watch { background: var(--warn); color: #0b0b0b; } .flag.chance { background: var(--st-good); }
.hi-bad { color: var(--bad); font-weight: 600; }
.hi-good { color: var(--good); }
.cell-warn::before { content: "▲ "; font-size: 9px; }

/* ===== Графики ===== */
.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; overflow: visible; }
.chart-box .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-box .gl { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .bl { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart-box .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .ln.prev { stroke: var(--prev); stroke-width: 1.5; }
.chart-box .xh { stroke: var(--axis); stroke-width: 1; }
.chart-box .pt { stroke: var(--surface); stroke-width: 2; }
.panel-t { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.panel-t b { color: var(--ink); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); align-items: center; flex-wrap: wrap; }
.legend .k { display: inline-flex; align-items: center; gap: 6px; }
.legend .k i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); min-width: 160px; }
.tip .d { color: var(--muted); margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tip .r span:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tip .r i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.metric-pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Окна ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 10, 10, .35); z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.modal.wide { width: min(900px, 100%); }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h2 { margin-right: auto; }
.modal-b { padding: 16px 20px; overflow: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.drawer-bg { position: fixed; inset: 0; background: rgba(10, 10, 10, .25); z-index: 150; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--surface); z-index: 151; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.drawer .modal-b { flex: 1; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.form.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form .f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form .f.wide { grid-column: 1 / -1; }
.form label { font-size: 12.5px; color: var(--ink-2); }
.form .hint { font-size: 12px; color: var(--muted); }
.fs { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.fs:first-child { margin-top: 0; }
.calc-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 8px; border: 1px solid var(--line); }
.calc-box .l { font-size: 12px; color: var(--ink-2); }
.calc-box .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sum-line:last-child { border-bottom: 0; }
.sum-line b { font-variant-numeric: tabular-nums; }
.layout-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.layout-row span { flex: 1; }

/* ===== Настройки ===== */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } }
.settings .toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.settings .toc a { padding: 6px 10px; border-radius: 6px; color: var(--ink-2); }
.settings .toc a:hover { background: var(--surface-2); text-decoration: none; }
.settings .card { margin-bottom: 16px; }
.settings .card > p { color: var(--ink-2); margin: 4px 0 14px; font-size: 13px; }
.diag td.st { white-space: nowrap; font-weight: 600; }
.diag pre { margin: 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; max-height: 120px; overflow: auto; color: var(--ink-2); }
.keyrow { display: flex; gap: 8px; }
.keyrow .in { flex: 1; }

/* ===== Вход ===== */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(380px, 100%); padding: 28px; }
.login h1 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.login .in { height: 40px; }
.login .btn { height: 40px; justify-content: center; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ===== Уведомления ===== */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; font-size: 13px; max-width: 380px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.toast.bad { background: var(--bad); color: #fff; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { padding: 60px; display: grid; place-items: center; color: var(--muted); }
.foot-note { margin-top: 18px; color: var(--muted); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.soon-page { max-width: 720px; }
.soon-page ul { color: var(--ink-2); padding-left: 18px; }
.cov { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cov .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.cov .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .store-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-h, .side-foot { display: none; }
  .content, .top { padding-left: 14px; padding-right: 14px; }
}
@media print { .side, .top, .toolbar, .btn { display: none !important; } .app { display: block; } }
