/* Контроль размещений — дружелюбная панель: белые карточки с крупным скруглением на лавандовом фоне,
   приветствие-облачко, пастельные плитки-действия, синяя нижняя панель разделов.
   Статусы — отдельной семантической шкалой (вышел / ждёт / просрочен / вручную). */
:root {
  --page: #e8ecfb;
  --panel: #fbfcff;
  --surface: #ffffff;
  --surface-2: #f3f5fc;
  --fg: #23263b;
  --muted: #868ca5;
  --line: #e6e9f4;
  --accent: #4a5bd4;
  --accent-2: #7aa2f2;
  --accent-soft: #e7ecfd;
  --accent-fg: #ffffff;
  --bubble: #a9c4f8;
  --bubble-fg: #1b2550;
  --pink: #f5b3be; --pink-ink: #c23a52;
  --orange: #f6b26b; --orange-ink: #8a4a07;
  --blue: #8db2f5; --blue-ink: #1f4fb8;
  --indigo: #5a69dd; --indigo-ink: #ffffff;
  --ok: #1f8a57; --ok-soft: #def3e8;
  --warn: #a8700a; --warn-soft: #fbf0d8;
  --bad: #d63f55; --bad-soft: #fde7ea;
  --info: #7246b8; --info-soft: #efe6fa;
  --wait: #6b7390; --wait-soft: #eef0f6;
  --shadow: 0 1px 2px rgba(35, 38, 59, .04), 0 10px 30px rgba(74, 91, 212, .08);
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Manrope", system-ui, sans-serif;
  --r-lg: 22px; --r: 16px; --r-sm: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0e1222; --panel: #141a2d; --surface: #1b2238; --surface-2: #212943; --fg: #e9ebf7; --muted: #9aa2c0; --line: #2a3352;
    --accent: #8090f6; --accent-2: #5d7fd6; --accent-soft: #252f57; --accent-fg: #0e1222; --bubble: #2c3c74; --bubble-fg: #e9eefd;
    --pink: #5a2a37; --pink-ink: #ffadbc; --orange: #5a3b18; --orange-ink: #ffc589; --blue: #22396b; --blue-ink: #a9c4ff; --indigo: #4351c4; --indigo-ink: #ffffff;
    --ok: #6fd6a0; --ok-soft: #14301f; --warn: #f0c060; --warn-soft: #362a10; --bad: #ff8a98; --bad-soft: #3b1a22;
    --info: #c4a2f2; --info-soft: #2c1f42; --wait: #a7aec8; --wait-soft: #252c44;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0e1222; --panel: #141a2d; --surface: #1b2238; --surface-2: #212943; --fg: #e9ebf7; --muted: #9aa2c0; --line: #2a3352;
  --accent: #8090f6; --accent-2: #5d7fd6; --accent-soft: #252f57; --accent-fg: #0e1222; --bubble: #2c3c74; --bubble-fg: #e9eefd;
  --pink: #5a2a37; --pink-ink: #ffadbc; --orange: #5a3b18; --orange-ink: #ffc589; --blue: #22396b; --blue-ink: #a9c4ff; --indigo: #4351c4; --indigo-ink: #ffffff;
  --ok: #6fd6a0; --ok-soft: #14301f; --warn: #f0c060; --warn-soft: #362a10; --bad: #ff8a98; --bad-soft: #3b1a22;
  --info: #c4a2f2; --info-soft: #2c1f42; --wait: #a7aec8; --wait-soft: #252c44;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--fg); font: 500 14px/1.5 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px calc(104px + env(safe-area-inset-bottom, 0px));
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1320px; margin: 0 auto; background: var(--panel); border-radius: 30px; padding: 22px 24px 28px; box-shadow: var(--shadow); }

/* ---------- Шапка ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-bottom: 6px; }
.brand { font-weight: 800; font-size: 16px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.topbar .page-title { font-size: 13px; color: var(--muted); font-weight: 600; }
.topbar .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.me .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.who-name { font-weight: 700; }
.role { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.nav { display: none; }

/* Нижняя панель разделов */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; pointer-events: none;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px)); }
.dock nav { pointer-events: auto; max-width: 1320px; margin: 0 auto; height: 72px; background: var(--accent-2); border-radius: 28px 28px 0 0;
  display: flex; align-items: center; gap: 4px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
.dock .home { height: 100%; padding: 0 26px; background: var(--accent); border-radius: 28px 40px 40px 0; display: grid; place-items: center; flex: none; border: 0; cursor: pointer; }
.dock .home span { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.dock .items { flex: 1; display: flex; justify-content: space-around; gap: 2px; min-width: 0; }
.dock button.it { position: relative; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 700; padding: 8px 10px; border-radius: 14px; cursor: pointer; opacity: .9; white-space: nowrap; }
.dock button.it:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.dock button.it[aria-current="page"] { background: rgba(255, 255, 255, .24); opacity: 1; }
.dock .badge { position: absolute; top: 2px; right: 4px; }

.demo-bar { margin: 12px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--r); background: var(--info-soft); font-size: 13px; }
.demo-bar b { color: var(--info); }

/* ---------- Приветствие ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 18px; margin-top: 14px; }
.bubble { position: relative; background: var(--bubble); color: var(--bubble-fg); border-radius: 20px; padding: 20px 22px; align-self: start; }
.bubble::after { content: ""; position: absolute; left: 30px; bottom: -12px; border: 12px solid transparent; border-top-color: var(--bubble); border-bottom: 0; }
.bubble h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bubble p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.bubble b { font-weight: 800; }
.hero-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.dial-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.dial-card .head { display: flex; justify-content: space-between; width: 100%; align-items: baseline; }
.dial-card .head span { font-size: 12px; color: var(--muted); }
.dial { position: relative; width: 150px; height: 150px; }
.dial svg { display: block; }
.dial .center { position: absolute; inset: 0; display: grid; place-items: center; }
.dial .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.dial .small { font-size: 11.5px; color: var(--muted); }
.dial-foot { font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { border: 0; border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px;
  cursor: pointer; text-align: left; min-height: 104px; transition: transform .15s ease; font-weight: 700; }
.tile:hover { transform: translateY(-2px); }
.tile[disabled] { opacity: .6; cursor: default; transform: none; }
.tile .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.tile .tl { font-size: 13.5px; line-height: 1.25; display: block; }
.tile .ts { font-size: 11.5px; font-weight: 500; opacity: .85; display: block; }
.tile.pink { background: var(--pink); color: var(--pink-ink); }
.tile.orange { background: var(--orange); color: var(--orange-ink); }
.tile.blue { background: var(--blue); color: var(--blue-ink); }
.tile.indigo { background: var(--indigo); color: var(--indigo-ink); }
.tile.indigo .ic { background: rgba(255, 255, 255, .18); }

/* ---------- Фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 14px; padding: 16px 18px; margin: 18px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters.bare { background: none; border: 0; padding: 0; margin: 0 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.input, select.input, textarea.input { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; font-weight: 600; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; font-weight: 500; }
.input:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.input.invalid { border-color: var(--bad); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(35, 38, 59, .12); }

.btn { height: 38px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--surface-2); cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 4px 14px rgba(74, 91, 212, .25); }
.btn.primary:hover { color: var(--accent-fg); filter: brightness(1.07); }
.btn.danger { color: var(--bad); background: var(--bad-soft); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }
.spacer { flex: 1; }

/* ---------- Показатели ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .top { display: flex; align-items: center; gap: 10px; }
.kpi .bulb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.kpi .bulb.pink { background: var(--bad-soft); color: var(--bad); } .kpi .bulb.orange { background: var(--warn-soft); color: var(--warn); }
.kpi .bulb.green { background: var(--ok-soft); color: var(--ok); } .kpi .bulb.violet { background: var(--info-soft); color: var(--info); }
.kpi .label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); line-height: 1.25; }
.kpi .value { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi.alert .value { color: var(--bad); }
.kpi.good .value { color: var(--ok); }

h2 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 30px 4px 12px; letter-spacing: -.02em; text-wrap: balance; }
h2 .muted { font-weight: 500; font-size: 13px; margin-left: 8px; letter-spacing: 0; }

/* ---------- Таблицы ---------- */
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
td.r, th.r { text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface-2); }
tfoot td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }
.cell-link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; font-weight: 700; text-decoration: none; background: var(--accent-soft); border-radius: 8px; padding: 2px 9px; }
.cell-link:hover { text-decoration: underline; }
.who { white-space: nowrap; font-weight: 700; }
.sub-line { font-size: 12px; color: var(--muted); font-weight: 500; }
.bar { height: 8px; border-radius: 4px; background: var(--wait-soft); overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent-2); }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* ---------- Статусы ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.published { color: var(--ok); background: var(--ok-soft); }
.chip.planned { color: var(--wait); background: var(--wait-soft); }
.chip.overdue { color: var(--bad); background: var(--bad-soft); }
.chip.not_found { color: var(--warn); background: var(--warn-soft); }
.chip.manual { color: var(--info); background: var(--info-soft); }
.chip.error { color: var(--bad); background: var(--bad-soft); }
.chip.plain::before { display: none; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; }
.tick { color: var(--ok); font-weight: 800; }

/* ---------- Контроль выходов ---------- */
.lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.lane-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.lane-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.lane-head .count { margin-left: auto; font-size: 20px; font-weight: 800; }
.lane-desc { padding: 0 16px 8px; font-size: 12.5px; color: var(--muted); }
.lane-list { list-style: none; margin: 0; padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 4px; max-height: 460px; overflow-y: auto; }
.lane-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; background: var(--surface-2); }
.lane-item:hover { background: var(--accent-soft); }
.lane-item .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lane-item .m { font-size: 12px; color: var(--muted); grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stripe-bad { box-shadow: inset 4px 0 0 var(--bad); }
.stripe-warn { box-shadow: inset 4px 0 0 var(--warn); }
.stripe-info { box-shadow: inset 4px 0 0 var(--info); }
.stripe-ok { box-shadow: inset 4px 0 0 var(--ok); }

/* ---------- Окна ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(20, 24, 48, .4); z-index: 20; display: flex; justify-content: flex-end; }
.modal { width: min(580px, 100%); height: 100%; background: var(--panel); box-shadow: var(--shadow); overflow-y: auto; border-radius: 28px 0 0 28px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) 22px;
  display: flex; flex-direction: column; gap: 16px; }
.modal h3 { margin: 0; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.modal-head { display: flex; align-items: center; gap: 12px; }
.modal-head .close { margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid2 > .full, .grid3 > .full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--surface); }
legend { padding: 0 6px; font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.hint { font-size: 12.5px; color: var(--muted); }
.hint.bad { color: var(--bad); font-weight: 700; }
.hint.warn { color: var(--warn); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.regions-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: center; font-size: 13px; }
.regions-grid .h { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--fg); color: var(--panel); padding: 11px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.progress-note { font-size: 13px; color: var(--muted); }

/* ---------- Вход ---------- */
.login { max-width: 400px; margin: 10vh auto 0; background: var(--panel); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.login h1 { font-weight: 800; font-size: 22px; margin: 0; letter-spacing: -.02em; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .tiles { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { padding: 14px; border-radius: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .me .who-name, .me .role { display: none; }
  .kpi .value { font-size: 20px; }
  .modal { border-radius: 0; }
  .dock .home { padding: 0 14px; } .dock button.it { padding: 8px 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Доступы к регионам ---------- */
.access table { width: auto; min-width: 100%; }
.access th.rot { vertical-align: bottom; height: 120px; padding: 6px 4px; text-align: center; }
.access th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 11.5px; text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 700; }
.access td.who { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 210px; }
.access td.acc { padding: 6px 4px; text-align: center; white-space: nowrap; }
.acc-btn { border: 1px dashed var(--line); background: none; color: var(--muted); font-size: 10.5px; font-weight: 800; height: 24px; min-width: 34px; padding: 0 5px; border-radius: 8px; cursor: pointer; margin: 1px; }
.acc-btn:hover { border-color: var(--accent-2); color: var(--accent); }
.acc-btn.on { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); }
.acc-btn[disabled] { opacity: .5; }

/* Вход: ссылки «Регистрация» и «Забыли пароль?» */
.btn.link { background: none; box-shadow: none; padding: 0; height: auto; color: var(--accent); font-weight: 700; }
.btn.link:hover { text-decoration: underline; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login p { margin: 0; line-height: 1.5; }
@media (max-width: 480px) { .login { margin: 4vh 16px 0; padding: 22px; } }

/* Заявки на регистрацию и смену пароля */
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; margin: 0 0 16px; padding: 14px 18px; border: 0; border-radius: var(--r); background: var(--warn-soft); color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.notice b { color: var(--warn); }
.notice span { color: var(--muted); font-size: 13px; }
.notice:hover span { color: var(--accent); }
.req-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px; }
.req { background: var(--panel); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.req-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.req-name { font-weight: 800; font-size: 16px; }
.req .actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.req .hint { margin-top: 6px; }
@media (max-width: 480px) { .req-list { grid-template-columns: 1fr; } }

/* Заголовок раздела с кнопкой справа */
.h2-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.h2-row h2 { margin-right: auto; }

/* ---------- Площадки ---------- */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav b { min-width: 128px; text-align: center; font-weight: 800; }
.check-line { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ch-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 12px; }
.ch-kpi { background: var(--panel); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.ch-kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ch-kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ch-kpi .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.rates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rate { background: var(--accent-soft); color: var(--fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.rate b { color: var(--accent); margin-right: 4px; }
.modal.wide { max-width: min(1080px, calc(100vw - 32px)); width: 100%; }
.week-grid { overflow-x: auto; }
.week-grid input.cell { width: 76px; min-width: 64px; height: 32px; padding: 0 8px; text-align: right; }
.week-grid td { padding: 6px 6px; }
table.trend td:first-child { white-space: nowrap; font-weight: 600; }
table.trend sup { color: var(--muted); font-size: 9px; margin-left: 2px; }
.table-box.scroll-x { overflow-x: auto; }
.table-box.scroll-x table { min-width: max-content; }

/* План по регионам */
.bar.over > i { background: var(--bad); }
tr.total td { font-weight: 800; border-top: 2px solid var(--line); }
.week-grid input.cell.wide { width: 110px; }
