/* Рабочий инструмент: тёмное боковое меню слева, рабочее поле до 1200px; на узком экране меню становится верхней полосой. */
:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f8f9f8;
  --ink: #15181c;
  --ink-2: #4b525b;
  --muted: #646b75;
  --line: #dfe2e5;
  --grid: #eceef0;
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4;
  --band: rgba(42, 120, 214, 0.14);
  --good: #0c8a0c; --critical: #c73535; --warn-bg: #fff5dc; --err-bg: #fdecec;
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 12px;
  --side: #14202e; --side-2: #1d2d41; --side-ink: #c9d3df; --side-muted: #7d8da1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315; --surface: #1a1d20; --surface-2: #202428; --ink: #eef0f2; --ink-2: #b9bfc7; --muted: #8b929b;
    --line: #2d3237; --grid: #25292d; --accent: #3987e5; --accent-ink: #ffffff;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181;
    --band: rgba(57, 135, 229, 0.22); --good: #2fb52f; --critical: #e66767; --warn-bg: #3a3014; --err-bg: #3d1d1d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1a1d20; --surface-2: #202428; --ink: #eef0f2; --ink-2: #b9bfc7; --muted: #8b929b;
  --line: #2d3237; --grid: #25292d; --accent: #3987e5; --accent-ink: #ffffff;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181;
  --band: rgba(57, 135, 229, 0.22); --good: #2fb52f; --critical: #e66767; --warn-bg: #3a3014; --err-bg: #3d1d1d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 12px; display: flex; gap: 8px 28px; align-items: center; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.brand small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.top nav { order: 3; flex-basis: 100%; display: flex; gap: 2px 4px; flex-wrap: wrap; margin: 0 -10px; }
.top nav a { color: var(--ink-2); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.top nav a[aria-current="page"] { background: var(--band); color: var(--accent); font-weight: 600; }
main { max-width: 1180px; margin: 0 auto; padding-inline: 20px; padding-block: 28px 64px; display: grid; gap: 28px; }
@media (max-width: 560px) { main, .top .in { padding-inline: 16px; } }
h1, h2 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
h2 { font-size: 18px; }
h3, .card > h2 { font: 600 15px/1.3 var(--font-body); letter-spacing: 0; margin: 0; }
p { margin: 0; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.grid2 > section { align-content: start; }
.grid2.start { align-items: start; }
.grid2 > section > .head { min-height: 42px; align-items: center; }
.head > div:not(.row) { display: grid; gap: 6px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { align-items: end; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--good); }
.dot.warn { background: var(--s4); }
.dot.bad { background: var(--critical); }
.checks { display: grid; }
.check { display: grid; grid-template-columns: 22px minmax(0, 14rem) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .n { font-weight: 600; }
.check .v { color: var(--ink); }
.check .h { grid-column: 3; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .check { grid-template-columns: 22px minmax(0, 1fr); } .check .v, .check .h { grid-column: 2; } }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2.eq { align-items: stretch; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
section { display: grid; gap: 14px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.kpi .v { font-family: var(--font-display); font-weight: 500; font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi .v.accent { color: var(--accent); }
.kpi .l { font-size: 13px; color: var(--ink-2); }
.btn { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 45%, var(--line)); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s3); }
.chip.mode::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--grid); vertical-align: middle; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
td.l { white-space: normal; }
thead th { font-weight: 600; font-size: 12px; color: var(--muted); background: var(--surface); white-space: normal; vertical-align: bottom; }
tbody tr:last-child td { border-bottom: 0; }
/* таблицы с текстом: слева, с переносом; короткие значения — класс nw, числа — r */
.tbl.text th, .tbl.text td { text-align: left; white-space: normal; vertical-align: top; padding-inline: 9px; }
.tbl.text .nw { white-space: nowrap; }
.tbl.text .r { text-align: right; }
.tbl.text td.wrap { min-width: 16rem; }
tr.hl td { font-weight: 600; }
tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
td .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--ink-2); max-width: 80ch; }
.alert { padding: 12px 14px; border-radius: 8px; background: var(--err-bg); color: var(--ink); font-size: 14px; }
.alert.warn { background: var(--warn-bg); }
.alert.ok-note { background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; width: 100%; min-width: 0; }
input:not([type=checkbox]):not([type=radio]), select { min-height: 38px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.form { display: grid; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 16px 18px 18px; margin: 0; min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-weight: 600; font-size: 15px; }
legend + * { clear: both; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; align-items: end; }
.fields.stack { align-items: start; grid-template-columns: minmax(0, 680px); }
.fields .wide { grid-column: 1 / -1; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; }
label.check .hint { display: block; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form label { min-width: 150px; }
.sticky-actions { position: sticky; bottom: 12px; z-index: 3; width: fit-content; max-width: 100%; background: var(--surface); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 20px rgba(20, 32, 46, .14); display: flex; gap: 10px; flex-wrap: wrap; }
.chart { width: 100%; min-width: 0; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font: 12px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.sw.line { height: 3px; border-radius: 2px; }
.sw.dash { height: 0; border-top: 2px dashed var(--muted); background: none !important; }
.tip { position: fixed; z-index: 10; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.12); max-width: 300px; font-variant-numeric: tabular-nums; }
.tip .r { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.tip .r span:first-child { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
pre.msg { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0; max-height: 360px; overflow: auto; }
.progress { height: 8px; border-radius: 999px; background: var(--grid); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; }
.list { display: grid; gap: 0; }
.list a.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list a.item:hover { background: var(--surface-2); }
.list a.item:last-child { border-bottom: 0; }
.list .t { font-weight: 600; }
.list .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.list .r { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
footer { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .progress i { transition: width .4s; } }
.top .who { order: 2; margin-left: auto; display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.top .who a { color: var(--ink-2); }
.orgsw select { padding: 4px 8px; font-size: 13px; width: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.authbox { max-width: 440px; width: 100%; margin: 0; padding: 26px; }

/* удаление объекта: подтверждение во всплывающей панели, а не россыпью в ряду кнопок */
.del { position: relative; }
.del > summary { list-style: none; cursor: pointer; }
.del > summary::-webkit-details-marker { display: none; }
.del > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 270px; display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.del > form p { margin: 0; color: var(--ink-2); }

/* боковое меню */
body { padding-left: 248px; }
.top { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--side); border: 0; overflow-y: auto; z-index: 5; }
.top .in { max-width: none; margin: 0; padding: 22px 14px 16px; height: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 18px; }
.brand { color: #fff; font-size: 17px; padding: 0 8px; display: block; }
.brand small { color: var(--side-muted); display: block; margin: 2px 0 0; }
.top nav { order: 0; flex-basis: auto; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; }
.top nav a { color: var(--side-ink); font-size: 14px; padding: 9px 12px; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; }
.top nav a:hover { background: var(--side-2); color: #fff; }
.top nav a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }
.top .who { order: 0; margin: auto 0 0; display: grid; gap: 6px; padding: 14px 12px 0; border-top: 1px solid var(--side-2); font-size: 13px; }
.top .who a { color: var(--side-ink); }
.top .who .chip { background: var(--side-2); border-color: transparent; color: var(--side-ink); white-space: normal; }
.top .who select { background: var(--side-2); color: var(--side-ink); border-color: transparent; }
main { max-width: 1680px; padding: 32px 36px 64px; margin: 0; }
.grid2.eq.rows > section { grid-template-rows: auto 1fr; }
h1 { font-size: clamp(24px, 3vw, 32px); }
.card, .kpi, .tbl, fieldset { border-radius: var(--r); box-shadow: 0 1px 2px rgba(20, 32, 46, .05); border-color: transparent; }
.kpi { padding: 16px 18px; }
.eyebrow { color: var(--accent); }
@media (max-width: 1180px) and (min-width: 901px) {
  body { padding-left: 216px; }
  .top { width: 216px; }
  main { padding: 26px 24px 56px; }
}
@media (max-width: 900px) {
  body { padding-left: 0; }
  .top { position: static; width: auto; }
  .top .in { height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px 20px; }
  .top { position: sticky; top: 0; }
  .brand { padding: 0; }
  .top nav { flex-direction: row; flex-wrap: nowrap; flex-basis: 100%; order: 3; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .top nav a { flex: none; white-space: nowrap; }
  .top .who { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 12px; align-items: center; }
  .top .who .chip { display: none; }
  main { padding: 20px 16px 48px; }
}

/* логотип */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { flex: none; display: block; border-radius: 11px; box-shadow: 0 0 0 1px #2f4d78; }
.brand span { display: block; line-height: 1.15; }
.brand small { margin: 2px 0 0; }

/* главная: карточки объектов */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.site-card { background: var(--surface); border-radius: var(--r); box-shadow: 0 1px 2px rgba(20, 32, 46, .05); padding: 18px; display: grid; gap: 14px; align-content: start; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.site-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(20, 32, 46, .08); }
.site-card .top-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.site-card .name { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.site-card .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-card .tile { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.site-card .tile .v { font-family: var(--font-display); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.site-card .tile .v.accent { color: var(--accent); }
.site-card .tile .l { font-size: 13px; color: var(--ink-2); }
.site-card .tile .l2 { font-size: 12px; color: var(--muted); }
.site-card .spark { width: 100%; height: 56px; display: block; }
.site-card .spark .a { fill: var(--band); stroke: none; }
.site-card .spark .l { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.site-card .spark .z { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.site-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.site-card .go { color: var(--accent); font-weight: 600; font-size: 14px; }
.brand { font-size: 15px; white-space: nowrap; }
.sites { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.site-card .top-row { flex-wrap: wrap; }
.site-card .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-card .tile .v { font-size: 18px; white-space: nowrap; }
.site-card .name { font-size: 17px; }
@media (max-width: 480px) { .sites { grid-template-columns: minmax(0, 1fr); } }

/* блок пользователя внизу меню */
.top .who .me { justify-self: start; max-width: 100%; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 14px; min-width: 0; }
.top .who .me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .who .ava { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.top .who .out { color: var(--side-muted); font-size: 13px; padding-left: 40px; justify-self: start; }
.top .who .out:hover { color: #fff; }
@media (max-width: 900px) { .top .who .out { padding-left: 0; } .top .who .me span:last-child { display: none; } }

/* сворачиваемый блок */
.fold { display: grid; gap: 14px; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: "Показать ▾"; margin-left: auto; font-size: 13px; color: var(--accent); }
.fold[open] > summary::after { content: "Скрыть ▴"; }

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list li > div { display: grid; gap: 2px; }
.steps-list .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.steps-list .done .mark { background: color-mix(in srgb, var(--good) 18%, var(--surface)); color: var(--good); }
.steps-list .todo .mark { background: var(--warn-bg); color: var(--ink); }

/* ---------- страница «Мониторинг» */
.mon-chips { align-items: center; gap: 8px; margin: 0 0 12px; }
.mon-scheme { padding: 12px 16px 8px; }
.mon-scheme svg { width: 100%; height: auto; display: block; }
.m-frame { fill: transparent; pointer-events: all; stroke: transparent; stroke-width: 1; }
.m-zone { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 7 6; }
.m-wire { fill: none; stroke: var(--ink-2); stroke-width: 3; opacity: .45; stroke-linecap: round; }
.m-bus { fill: none; stroke: var(--ink-2); stroke-width: 8; stroke-linecap: round; opacity: .8; }
.m-pcc { fill: var(--surface); stroke: var(--ink-2); stroke-width: 3; }
.ic-body { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 2.5; stroke-linejoin: round; }
.ic-nub { fill: var(--ink-2); }
.ic-line { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ic-line.thin { stroke-width: 1.6; opacity: .7; }
.ic-cells { fill: none; stroke: var(--surface-2); stroke-width: 2; opacity: .8; }
.ic-win { fill: #f5c451; opacity: .85; }
.m-sym { font-size: 30px; font-weight: 600; fill: var(--ink-2); }
.m-onic { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.m-t1 { font-size: 14px; font-weight: 500; fill: var(--ink); }
.m-t2 { font-size: 12px; fill: var(--muted); }
.m-big { font-size: 22px; font-weight: 600; fill: var(--ink); }
.m-track { fill: var(--line); }
.m-track-c { fill: none; stroke: var(--line); stroke-width: 9; }
.m-ringt { font-size: 19px; font-weight: 600; fill: var(--ink); }
.m-line { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-chim { fill: var(--line); stroke: var(--muted); stroke-width: 1; }
.m-wall { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.2; }
.fx { display: none; }
@keyframes monflow { to { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) { .fl .mv { animation: none; } }
.mon-note { margin: 4px 0 6px; min-height: 1.2em; }
.mon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 12px 0; }
.mon-card { padding: 14px 16px; }
.mon-h { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; margin-bottom: 10px; }
.mon-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: rgba(var(--c), .16); color: rgb(var(--c)); }
.mon-ic .ico { font-style: normal; }
.mon-ring { display: flex; align-items: center; gap: 14px; }
.mon-v { font-size: 28px; font-weight: 600; line-height: 1.15; }
.mon-v2 { font-size: 17px; font-weight: 600; }
.mon-ok { color: var(--good); }
.mon-bad { color: var(--critical); }
.mon-scale { position: relative; height: 8px; margin-top: 12px; background: var(--line); border-radius: 4px; }
.mon-scale i { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.mon-scale i.dis { background: var(--s2); }
.mon-scale i.chg { background: var(--s3); }
.mon-scale b { position: absolute; left: 50%; top: -3px; width: 1px; height: 14px; background: var(--muted); }
.mon-scale-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

.mon-warn { font-size: 12px; color: var(--critical); margin-top: 8px; min-height: 1.2em; }

.m-node { cursor: pointer; outline: none; }
.m-node:hover .m-frame, .m-node:focus-visible .m-frame { stroke: #1d9e75; stroke-width: 2.5; }
.mon-hint { margin: 4px 0 0; text-align: center; }
.mon-dlg { border: 0; border-radius: 16px; padding: 20px 22px; max-width: min(520px, calc(100vw - 32px)); width: 100%; background: var(--card, #fff); color: inherit; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.mon-dlg::backdrop { background: rgba(20,30,40,.45); }
.mon-dh { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mon-dh h2 { margin: 0; font-size: 20px; }
.mon-dlg dl { margin: 14px 0 0; }
.mon-dlg dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,.2); }
.mon-dlg dt { color: #6b7280; }
.mon-dlg dd { margin: 0; text-align: right; font-weight: 600; }

.bms-sec { padding: 16px 18px; margin: 12px 0; }
.bms-h { margin: 0 0 12px; font-size: 18px; }
.bms-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid rgba(128,128,128,.35); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 14px; font: inherit; cursor: pointer; color: inherit; }
.seg button.on { background: #1d9e75; color: #fff; }
.bms-clu { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bms-cl { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(128,128,128,.3); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.bms-cl.on { border-color: #1d9e75; box-shadow: 0 0 0 2px rgba(29,158,117,.2); }
.bms-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.bms-pack { margin: 0 0 14px; }
.bms-ph { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.bms-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 3px; }
.bms-cell { position: relative; display: block; font-style: normal; font-size: 11px; line-height: 1; text-align: center; padding: 8px 0; border-radius: 5px; color: #fff; cursor: default; }
.bms-w { margin: 0; padding-left: 20px; }

.bms-bus { border-top: 3px solid rgba(128,128,128,.55); margin: 4px 0 -2px; padding-top: 6px; text-align: center; font-weight: 600; }
.bms-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.bms-tile { border: 1px solid rgba(128,128,128,.3); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bms-soc { position: relative; display: block; height: 20px; border-radius: 6px; background: rgba(128,128,128,.25); overflow: hidden; margin: 4px 0; }
.bms-soc i { position: absolute; inset: 0 auto 0 0; background: #1d9e75; }
.bms-soc em { position: relative; font-style: normal; font-size: 12px; line-height: 20px; padding-left: 8px; color: #fff; }
.bms-wg { margin: 0 0 10px; }
.bms-no { position: absolute; top: 1px; left: 3px; font-size: 8px; font-weight: 400; opacity: .7; }
.bms-cell.out { outline: 2px solid #ffd43b; outline-offset: 1px; }
.bms-cell.out.lo { outline-color: #ff4d8d; }
.bms-note { margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: rgba(220,53,69,.12); color: #c0182b; font-size: 14px; }
.bms-chip { display: inline-block; margin: 3px 6px 3px 0; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: rgba(29,158,117,.14); color: #14795a; }
.bms-chip.bad { background: rgba(220,53,69,.16); color: #c0182b; font-weight: 600; }

.fl path { fill: none; stroke-linecap: round; }
.fl .gl { stroke: var(--c); stroke-width: calc(var(--w, 5) * 2.4); opacity: .16; }
.fl .mv { stroke: var(--c); stroke-width: var(--w, 5); stroke-dasharray: 12 8; animation: monflow 0.9s linear infinite; filter: drop-shadow(0 0 3px var(--c)); }
.fl[data-d="dis"] .fx-dis, .fl[data-d="chg"] .fx-chg, .fl[data-d="imp"] .fx-imp, .fl[data-d="exp"] .fx-exp, .fl[data-d="on"] .fx-on, .fl[data-d="gen"] .fx-gen { display: inline; }

.subnav { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 -10px; position: sticky; top: 0; z-index: 20; background: var(--bg, var(--surface)); padding: 8px 0; scrollbar-width: none; }
.subnav a { white-space: nowrap; }
.subnav a.back { font-weight: 600; }
.subnav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; }
.subnav a:first-child { background: transparent; }
.subnav a:hover { border-color: #1d9e75; }
.subnav a.on { background: #1d9e75; border-color: #1d9e75; color: #fff; }

.m-scene .m-frame { fill: transparent; pointer-events: all; stroke: transparent; }
.m-scene .m-node:hover .m-frame, .m-scene .m-node:focus-visible .m-frame { stroke: #1d9e75; stroke-width: 2.5; fill: rgba(29,158,117,.06); }
.m-cab { fill: none; stroke: #b3bfcc; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.m-scene .m-t1 { fill: #1f2933; }
.m-scene .m-t2 { fill: #64748b; }
.m-scene .m-big { fill: #1f2933; }
.m-scene .m-track { fill: #e3e9ef; }
.m-scene .m-t1 { font-size: 16px; }
.m-scene .m-t2 { font-size: 13px; }
.m-scene { max-width: 900px; margin-inline: auto; }
.m-scene .m-t1 { font-size: 18px; font-weight: 600; }
.m-scene .m-t2 { font-size: 14px; }
.m-scene .m-big { font-size: 30px; font-weight: 700; }
.m-scene .m-v { font-size: 22px; font-weight: 700; }
.m-cd { fill: #fff; stroke: #dbe3ea; stroke-width: 1; filter: drop-shadow(0 4px 10px rgba(30,50,70,.16)); }
.m-lead { stroke: #94a3b8; stroke-width: 1.8; stroke-dasharray: 4 4; fill: none; }
.m-scene.m-photo { max-width: 1100px; border-radius: 16px; }
.m-photo .m-t1 { font-size: 30px; font-weight: 600; }
.m-photo .m-t2 { font-size: 22px; }
.m-photo .m-big { font-size: 46px; font-weight: 700; }
.m-photo .m-v { font-size: 27px; font-weight: 700; }
.m-photo .m-cd { filter: drop-shadow(0 6px 14px rgba(30,50,70,.18)); }
.m-photo .fl .gl { stroke-width: calc(var(--w, 5) * 3.2); opacity: .22; }
.m-photo .fl .mv { stroke-width: calc(var(--w, 5) * 1.4); stroke-dasharray: 16 14; }
.m-photo .m-node:hover .m-frame, .m-photo .m-node:focus-visible .m-frame { stroke: #1d9e75; stroke-width: 4; fill: rgba(29,158,117,.05); }
.bms-dv { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--band); color: var(--accent); font-size: 14px; }

/* ===== Яркое оформление: фон с цветными пятнами, свой цвет у каждого раздела ===== */
:root { --accent-2: #7c5cff; --tint1: 42%; --tint2: 34%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint1: 26%; --tint2: 20%; } }
:root[data-theme="dark"] { --tint1: 26%; --tint2: 20%; }
body[data-sec="home"] { --accent: #2a78d6; --accent-2: #7c5cff; --band: rgba(42,120,214,.14); }
body[data-sec="site"] { --accent: #2a78d6; --accent-2: #14b8a6; --band: rgba(42,120,214,.14); }
body[data-sec="monitor"] { --accent: #12a36a; --accent-2: #2fa8e0; --band: rgba(18,163,106,.15); }
body[data-sec="bms"] { --accent: #7a4fe0; --accent-2: #d65db1; --band: rgba(122,79,224,.15); }
body[data-sec="telemetry"] { --accent: #1f7fe0; --accent-2: #18b6d9; --band: rgba(31,127,224,.15); }
body[data-sec="plan"] { --accent: #ee7d12; --accent-2: #f2564b; --band: rgba(238,125,18,.16); }
body[data-sec="settlement"] { --accent: #0fa7a0; --accent-2: #3b82f6; --band: rgba(15,167,160,.15); }
body[data-sec="passport"] { --accent: #5b6b86; --accent-2: #8b97ad; --band: rgba(91,107,134,.16); }
body[data-sec="edit"] { --accent: #e2518d; --accent-2: #f59e0b; --band: rgba(226,81,141,.15); }
body[data-sec="daily"] { --accent: #3b82f6; --accent-2: #8b5cf6; --band: rgba(59,130,246,.15); }
body[data-sec="prices"] { --accent: #e8a012; --accent-2: #f26b3a; --band: rgba(232,160,18,.18); }
body[data-sec="tariffs"] { --accent: #14a085; --accent-2: #7bc043; --band: rgba(20,160,133,.15); }
body[data-sec="team"] { --accent: #8b5cf6; --accent-2: #ec4899; --band: rgba(139,92,246,.15); }
body[data-sec="admin"], body[data-sec="status"], body[data-sec="settings"] { --accent: #475569; --accent-2: #2a78d6; --band: rgba(71,85,105,.16); }
body { min-height: 100vh; background:
  radial-gradient(900px 520px at 88% -6%, color-mix(in srgb, var(--accent) var(--tint1), transparent), transparent 70%),
  radial-gradient(800px 520px at 8% 104%, color-mix(in srgb, var(--accent-2) var(--tint2), transparent), transparent 70%),
  var(--bg); background-attachment: fixed; }
.top { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 34%, #14202e) 0%, #14202e 60%); }
.top nav a[aria-current="page"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.card, .kpi, .tbl { border-radius: 16px; border-color: color-mix(in srgb, var(--accent) 14%, var(--line)); box-shadow: 0 10px 30px -16px color-mix(in srgb, var(--accent) 45%, transparent), 0 1px 2px rgba(20,32,46,.05); }
.card { border-top: 3px solid var(--accent); }
.head h1 { background: linear-gradient(90deg, var(--ink) 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 2px; }
.eyebrow { color: var(--accent); }
.btn { border-radius: 10px; transition: transform .12s, box-shadow .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.subnav { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px); padding-inline: 4px; border-radius: 14px; }
.subnav a { border-radius: 999px; transition: transform .12s, border-color .12s; }
.subnav a:hover { border-color: var(--accent); transform: translateY(-1px); }
.subnav a.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px var(--accent); }
.site-card { position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 12px 32px -18px color-mix(in srgb, var(--accent) 55%, transparent), 0 1px 2px rgba(20,32,46,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.site-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.site-card:hover { transform: translateY(-3px); }
.site-card .tile { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.site-card .go { color: var(--accent); font-weight: 600; }
main { grid-template-columns: minmax(0, 1fr); }
main > * { min-width: 0; max-width: 100%; }
.mon-chips .chip { white-space: normal; }
@media (max-width: 700px) { .chip { white-space: normal; } .head > div, .row > * { min-width: 0; } .card { overflow-x: auto; } h1 { overflow-wrap: anywhere; } }

/* ---- Роль клиента: бейдж, чип, чек-лист продажи. Оттенок задаёт data-tone: off — продажи нет, buyback — выкуп, market — рынок, p2p — сосед */
.role-badge, .role-chip { --rc: #7a8699; }
[data-tone="off"] { --rc: #7a8699; }
[data-tone="buyback"] { --rc: #12a36a; }
[data-tone="market"] { --rc: #2a78d6; }
[data-tone="p2p"] { --rc: #8b5cf6; }
.role-badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink);
  background: color-mix(in srgb, var(--rc) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); }
.role-badge i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 25%, transparent); }
.role-badge > span { min-width: 0; overflow-wrap: anywhere; }
.role-badge.big { padding: 9px 18px; font-size: 16px; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.005em; }
.role-badge.big i { width: 12px; height: 12px; }
.role-chip { text-decoration: none; background: color-mix(in srgb, var(--rc) 14%, var(--surface)); border-color: color-mix(in srgb, var(--rc) 50%, transparent); color: var(--ink); font-weight: 600; white-space: normal; }
.role-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); flex: none; }
.role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.warn-txt { color: #b45309; font-weight: 600; }
.role-off { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, #7a8699 14%, var(--surface)); border-left: 4px solid #7a8699; color: var(--ink); }
.subnav .subnav-role { margin-left: auto; display: inline-flex; align-items: center; flex: none; }
.subnav .subnav-role .chip { padding: 5px 12px; font-size: 13px; }
.chip.legacy { background: color-mix(in srgb, #b45309 14%, var(--surface)); border-color: color-mix(in srgb, #b45309 45%, transparent); color: var(--ink); margin-left: 6px; }
.chip.verify { background: var(--warn-bg); }
.sale-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sale-steps li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.sale-steps li.done { background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
.sale-steps .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.sale-steps .check span { overflow-wrap: anywhere; }
.sale-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-left: 32px; min-width: 0; }
.sale-meta a { overflow-wrap: anywhere; }
.sale-risks ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
section.sale .progress { margin: 4px 0 10px; }
.mon-chips .role-chip { order: -1; }

/* шапка кабинета: тёмная полоса, логотип слева, язык и учётная запись справа */
body { padding-left: 0; }
.shell { background: #071B3F; color: #fff; position: sticky; top: 0; z-index: 10; }
.shell .in { max-width: 1680px; margin: 0 auto; padding: 8px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.shell .brand { display: flex; align-items: center; padding: 0; max-width: 60vw; }
.shell .brand img { height: 36px; width: auto; max-width: 100%; box-shadow: none; border-radius: 0; }
.shell .ctxrow { order: 7; flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 0 4px; border-top: 1px solid #1b3a72; color: #dbe6f8; font-size: 13px; margin: 0; }
.shell .ctxrow select { background: #12306a; color: #fff; border: 1px solid #3d5a92; border-radius: 8px; padding: 5px 8px; font-size: 14px; max-width: 70vw; width: auto; }
.shell .who { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.shell .who a, .shell .lang span { color: #fff; }
.shell .who a:hover { text-decoration: underline; }
.shell .lang { display: inline-flex; gap: 6px; align-items: center; }
.shell .lang a { color: #c9d6ee; padding: 2px 3px; border-radius: 4px; }
.shell .lang a.on { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.shell .orgsw select { background: #12306a; color: #fff; border: 1px solid #3d5a92; max-width: 100%; }
.shell .who { min-width: 0; max-width: 100%; }
.shell .orgsw { min-width: 0; max-width: 100%; }
.shell .ava { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2a5db0; color: #fff; font-size: 13px; margin-right: 6px; }
.shell .mainnav { order: 5; flex-basis: 100%; display: flex; gap: 2px 4px; flex-wrap: wrap; margin: 0 -8px; }
.shell .mainnav a { color: #fff; font-size: 14px; padding: 7px 12px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.shell .mainnav a:hover { background: #12306a; text-decoration: none; }
.shell .mainnav a[aria-current="page"] { background: #1f56a8; font-weight: 600; }
.shell .subrow { order: 6; flex-basis: 100%; display: flex; gap: 2px 14px; flex-wrap: wrap; padding: 6px 0 4px; border-top: 1px solid #1b3a72; }
.shell .subrow a { color: #dbe6f8; font-size: 13px; padding: 3px 0; }
.shell .subrow a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.shell .chip { background: #ffd24a; color: #071B3F; border-color: transparent; }
.logo-plate { background: #fff; border-radius: 10px; padding: 10px; text-align: center; margin-bottom: 14px; }
.logo-plate img { max-width: 100%; height: auto; }
@media (max-width: 900px) {
  .shell .in { padding: 8px 16px; }
  .shell .mainnav, .shell .subrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .shell .mainnav a, .shell .subrow a { flex: none; white-space: nowrap; }
  main { padding: 20px 16px 48px; }
}

/* Шапка и подменю: синяя шапка закреплена и ничем не перекрывается, подменю объекта закреплено под ней, остальное прокручивается.
   Строки компактнее, чтобы главный экран помещался целиком (высоту шапки меряет скрипт в base.html → --shell-h). */
.shell { z-index: 30; }
.shell .in { padding: 4px 20px; gap: 2px 14px; }
.shell .brand img { height: 30px; }
.shell .mainnav { margin: 0; gap: 0 2px; }
.shell .mainnav a { padding: 5px 10px; font-size: 13.5px; }
.shell .subrow { padding: 2px 0 3px; gap: 0 12px; }
.shell .subrow a { font-size: 12.5px; padding: 1px 0; }
.shell .ava { width: 22px; height: 22px; font-size: 12px; margin-right: 4px; }
@media (min-width: 1700px) {
  .shell .siteswitch { order: 1; }
  .shell .mainnav { order: 2; flex: 1 1 0; flex-basis: 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .shell .mainnav a { white-space: nowrap; }
  .shell .who { order: 3; margin-left: 0; flex-wrap: nowrap; }
}
.subnav { top: var(--shell-h, 0px); z-index: 20; padding: 4px 0; margin: 0 0 -4px; gap: 4px; }
.subnav a { padding: 4px 11px; font-size: 13px; }
.subnav .subnav-role { margin-left: auto; }

[hidden] { display: none !important; }

/* сцена «Кайрос»: крупные подписи поверх картинки */
.m-k.m-scene.m-photo { max-width: 1400px; }
.m-k .m-t1 { font-size: 27px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; fill: #1f2933; }
.m-k .m-t2 { font-size: 26px; fill: #5b6b7c; }
.m-k .m-big { font-size: 84px; font-weight: 700; fill: #12202c; }
.m-k .m-acc { fill: #1a6fe0; font-weight: 600; }
#tLoadDir { paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 9px; stroke-linejoin: round; }
.m-bat { paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 8px; stroke-linejoin: round; }
.m-bat .m-strong { fill: #12202c; font-weight: 700; }
.m-bat .m-dis { fill: #e0700b; font-weight: 700; }
.m-bat .m-chg { fill: #13916a; font-weight: 700; }

.mon-groups { padding: 14px 16px; margin: 12px 0; }
.mon-groups h2 { margin: 0 0 4px; font-size: 16px; }
.mon-glist { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; margin: 10px 0; }
.mon-g { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.mon-gh { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.mon-gsoc { font-size: 22px; }
.mon-gbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mon-gbar i { display: block; height: 100%; background: #1d9e75; }
.mon-gbat { font-weight: 600; }
.mon-gbat.g-chg { color: #13916a; }
.mon-gbat.g-dis { color: #e0700b; }
.mon-g tr.g-off td { opacity: .55; }
@media (max-width: 520px) { .mon-glist { grid-template-columns: 1fr; } }

.gsel { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gsel .btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.g-scene text { paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 8px; stroke-linejoin: round; }
.g-scene .g-chip { font-weight: 600; fill: #1f2933; }
svg.m-scene[hidden], .gsel[hidden] { display: none !important; }
