/* Пульт v2 (28.10.2026): поверх app.css. Телефон — нижняя панель, как было; от 1000px — левая панель
   со всеми экранами и сетка на всю ширину. Экраны показателей на широком — как у board.css. */
:root {
  --bg: #f5f6f8; --card: #ffffff; --text: #101318; --muted: #6a7282; --line: #e4e7ec; --line2: #eef0f3;
  --accent: #2f6bff; --accent-bg: #eaf0ff; --ok: #12a150; --warn: #d98a00; --bad: #e0352b; --info: #2f6bff; --chip: #f0f2f5;
  --tab: rgba(255,255,255,.92); --side: #fbfbfc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e12; --card: #14171d; --text: #e8ebf0; --muted: #8b93a3; --line: #232834; --line2: #1b1f28;
    --accent: #6b95ff; --accent-bg: #1a2440; --ok: #2fc26b; --warn: #f0a52a; --bad: #ff6159; --info: #6b95ff; --chip: #1d212a;
    --tab: rgba(16,18,23,.92); --side: #101318;
  }
}
body.v2 { font-size: 15px; }
.v2 h1 { font-size: 24px; }
.v2 .dot.info { background: var(--info); }
.v2 .top { align-items: center; gap: 10px; }
.v2 .top #updated { white-space: nowrap; }
.kbtn { display: none; }
.side { display: none; }

/* ---------- общие блоки ---------- */
.p2 { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; min-width: 0; }
.p-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-h h3 { margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.p-more { font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.p-more:hover { text-decoration: underline; }
.sub-h { font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.tiles2 { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t2 { display: block; background: var(--chip); border-radius: 10px; padding: 10px 12px; color: inherit; text-decoration: none; min-width: 0; }
a.t2:hover { background: var(--accent-bg); }
.t2 .l { font-size: 12.5px; color: var(--muted); line-height: 1.25; }
.t2 .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t2 .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.t2 .d { font-size: 12.5px; }
.top-t .t2 { background: var(--card); border: 1px solid var(--line); }
.stk { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.stk i { display: block; min-width: 3px; }
.stk-l { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.stk-l span { display: inline-flex; align-items: center; gap: 5px; } .stk-l b { color: var(--text); font-variant-numeric: tabular-nums; }
.stk-l i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.hb { display: grid; gap: 7px; }
.hb-r { display: grid; grid-template-columns: minmax(0, 40%) 1fr 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.hb-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb-k small { display: block; color: var(--muted); font-size: 11.5px; }
.hb-t { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; } .hb-t i { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.hb-r b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mt-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); } .mt-h b { color: var(--text); font-variant-numeric: tabular-nums; }
.mt-b { height: 6px; border-radius: 3px; background: var(--chip); margin-top: 5px; overflow: hidden; }
.mt-b i { display: block; height: 100%; background: var(--accent); }
.mt-b.ok i { background: var(--ok); } .mt-b.warn i { background: var(--warn); } .mt-b.bad i { background: var(--bad); }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.tag.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.foot2 { text-align: center; color: var(--muted); font-size: 12.5px; margin: 6px 0 18px; }
.tw2 { overflow-x: auto; }
.tw2 table { font-size: 13.5px; } .tw2 th { text-align: right; font-size: 12px; white-space: nowrap; } .tw2 td { white-space: nowrap; }
.tw2 td:first-child { white-space: normal; } .tw2 th:first-child { text-align: left; } .tw2 tr:hover td { background: var(--line2); }
.tw2 .dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; }
.v2 .btn.small { background: var(--chip); }
.v2 .btn.small:disabled { opacity: .45; }
.v2 .empty { padding: 28px 0; }

/* ---------- Сегодня ---------- */
.strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.sg { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--text); font-size: 13px; white-space: nowrap; }
.sg span:last-child { color: var(--muted); margin-left: auto; padding-left: 6px; }
.sg.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--card)); }
.sg.bad span:last-child { color: var(--bad); font-weight: 600; }
.sg.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); } .sg.warn span:last-child { color: var(--warn); font-weight: 600; }
.sg.info span:last-child { color: var(--info); font-weight: 600; }
.sg:hover { border-color: var(--accent); }
.at { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.at-r { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; text-decoration: none; color: inherit; }
.at-r:hover { background: var(--line2); }
.at-n { flex: 1; min-width: 0; font-size: 13.5px; } .at-n b { font-weight: 600; } .at-n small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-v { font-size: 12.5px; color: var(--muted); text-align: right; max-width: 45%; }
.ok-big { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; padding: 18px 0; }
.pk { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.pk .btn.small.primary { background: var(--accent); color: #fff; }

/* ---------- Тревоги ---------- */
.al-src { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.src-b { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.src-b b { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11.5px; }
.src-b small { color: var(--muted); }
.src-b.on { background: var(--accent); color: #fff; border-color: var(--accent); } .src-b.on b { background: #fff; color: var(--accent); } .src-b.on small { color: #fff; }
.al-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.al-bar .sp { flex: 1; }
.sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; user-select: none; }
.sw input { display: none; }
.sw span { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .15s; }
.sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw input:checked + span { background: var(--accent); } .sw input:checked + span::after { left: 16px; }
.al-dh { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 14px 2px 6px; }
.al-list { padding: 4px 6px; }
.ar { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 10px; border-radius: 10px; cursor: pointer; }
.ar + .ar { border-top: 1px solid var(--line2); }
.ar:hover { background: var(--line2); }
.ar .dot { margin-top: 5px; }
.ar-t { font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ar.flip .ar-t { font-weight: 500; }
.ar.flip .ar-b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar.flip.open .ar-b { white-space: pre-wrap; }
.ar-b { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.ar-b.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar.open .ar-b.clip { display: block; -webkit-line-clamp: unset; }
.ar-s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-s .src { background: var(--chip); border-radius: 6px; padding: 1px 7px; }
.cnt { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--chip); border-radius: 6px; padding: 1px 6px; }
/* непрочитанное — синяя черта слева, без заливки (иначе при 90+ новых синим залит весь экран) */
.ar.unread { box-shadow: inset 3px 0 0 var(--accent); border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ar:not(.unread) .ar-t { font-weight: 500; }

/* ---------- Светофор ---------- */
.st-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.st-grid .p2 { margin: 0; }
.st-c.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.st-r { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.st-r .nm small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.st-r .vl { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; max-width: 60vw; }
.st-r.bad .vl { color: var(--bad); font-weight: 600; } .st-r.warn .vl { color: var(--warn); font-weight: 600; }
.st-ch { margin-top: 12px; }

/* ---------- Продажи ---------- */
.cols { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.col i { display: block; width: 100%; max-width: 42px; background: var(--accent); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.col b { font-size: 11.5px; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.col span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.col.we i { background: color-mix(in srgb, var(--accent) 45%, var(--chip)); }
.feed { max-height: 560px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.fd { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.fd:first-child { border-top: 0; }
.fd .tag { justify-self: start; } .fd small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd .tm { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.brk td:nth-child(3) { width: 34%; }
.cell-bar { position: relative; height: 20px; background: var(--chip); border-radius: 5px; overflow: hidden; min-width: 90px; }
.cell-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cell-bar.warn i { background: color-mix(in srgb, var(--warn) 40%, transparent); } .cell-bar.bad i { background: color-mix(in srgb, var(--bad) 35%, transparent); }
.cell-bar span { position: relative; padding: 0 8px; line-height: 20px; font-size: 12.5px; font-weight: 600; display: block; text-align: right; }

/* ---------- Серверы ---------- */
.sv-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sv-top .sp { flex: 1; }
.sv-n { display: flex; align-items: baseline; gap: 6px; } .sv-n b { font-size: 24px; font-variant-numeric: tabular-nums; } .sv-n span { color: var(--muted); font-size: 13px; }
.sv-n.bad b { color: var(--bad); } .sv-n.warn b { color: var(--warn); } .sv-n.ok b { color: var(--ok); }
.hc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hc { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: inherit; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.hc:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.hc.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); } .hc.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.hc.off { background: color-mix(in srgb, var(--bad) 4%, var(--card)); }
.hc-h { display: flex; align-items: center; gap: 8px; } .hc-h b { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hc-k { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.hc-r { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.hc-off { color: var(--bad); font-size: 13.5px; font-weight: 600; padding: 10px 0; }
.mms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mm-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); } .mm-h b { color: var(--text); font-variant-numeric: tabular-nums; }
.mm-b { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin-top: 4px; } .mm-b i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.mm.warn .mm-b i { background: var(--warn); } .mm.bad .mm-b i { background: var(--bad); } .mm.bad .mm-h b { color: var(--bad); } .mm.warn .mm-h b { color: var(--warn); }
.hc-sp { min-height: 64px; } .hc-sp .ch-w svg { height: 52px; } .hc-sp .ch-y, .hc-sp .ch-t { display: none; } .hc-sp .stk-l { margin-top: 2px; font-size: 11.5px; }
.hc-al { font-size: 12.5px; font-weight: 600; } .hc-al .bad { color: var(--bad); } .hc-al .warn { color: var(--warn); }
.hc-c { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.dev summary { cursor: pointer; } .dev .tw2 { margin-top: 10px; } .dev td { white-space: nowrap; }
.sh-t { display: flex; gap: 12px; align-items: flex-start; } .sh-t .dot { margin-top: 6px; } .sh-t b { font-size: 17px; }
.sh-al { margin-top: 8px; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; background: var(--chip); }
.sh-al.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); } .sh-al.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.tiles2.c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.tiles2.c6 .t2 { background: var(--card); border: 1px solid var(--line); }
.sv-per { margin: 4px 0 8px; }
.ch-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; } .ch-grid .p2 { margin: 0; }
.ch-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.ch-h > b { font-size: 14px; } .ch-h span { color: var(--muted); font-size: 12px; text-align: right; } .ch-h span b { color: var(--text); }
.ch-w { position: relative; }
.ch-w svg { display: block; width: 100%; height: 120px; overflow: visible; }
.ch-w .g { stroke: var(--line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-y { position: absolute; left: 0; font-size: 10.5px; color: var(--muted); background: var(--card); padding: 0 4px 0 0; line-height: 1; font-variant-numeric: tabular-nums; }
.ch-y.t { top: 2px; } .ch-y.b { bottom: 2px; }
.ch-t { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.ch-x { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); display: none; pointer-events: none; }
.ch-tip { position: absolute; top: -8px; transform: translateY(-100%); display: none; pointer-events: none; z-index: 4; min-width: 140px;
  background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.ch-tip small { color: var(--muted); display: block; margin-bottom: 2px; } .ch-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.ch-tip b { font-variant-numeric: tabular-nums; }
.sv-cols .p2 .st-r:first-of-type { border-top: 0; }
.acts-b { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .acts .hint { margin-top: 4px; }
.dk + .dk { margin-top: 12px; }

/* ---------- ⌘K ---------- */
.kpal { position: fixed; inset: 0; background: rgba(8,10,14,.45); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; }
.kbox { width: min(560px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.kbox input { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 18px; font-size: 16px; outline: none; }
#k-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.k-it { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; }
.k-it b { font-weight: 500; } .k-it small { color: var(--muted); font-size: 12px; }
.k-it.on, .k-it:hover { background: var(--accent-bg); }
.k-empty { padding: 18px; color: var(--muted); text-align: center; }

/* ---------- телефон ---------- */
@media (max-width: 999px) {
  .dash { display: flex; flex-direction: column; }
  .tiles2.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att { order: -1; }
  .mts { grid-template-columns: 1fr; gap: 10px; }
  .ar { grid-template-columns: 10px minmax(0, 1fr); } .ar-s { grid-column: 2; flex-direction: row; gap: 8px; align-items: center; }
  .st-r .vl { max-width: 45vw; }
  .brk td:nth-child(3) { width: auto; }
  .fd { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .tiles2.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .tiles2.c6 .t2 { padding: 9px 10px; } .tiles2.c6 .t2 .v { font-size: 21px; }
  .tiles2.c6 .t2 .s { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sv-top { gap: 8px 18px; } .sv-n b { font-size: 20px; }
}

/* ---------- компьютер ---------- */
@media (min-width: 1000px) {
  body.v2 { padding-top: 0; }
  #app:not(.hidden) { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "side top" "side main"; min-height: 100vh; }
  .v2 .tabs { display: none; }
  .v2 .top { grid-area: top; max-width: 1560px; width: 100%; margin: 0; padding: 22px 32px 14px; position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .v2 .top .back { display: none; }
  .v2 main { grid-area: main; max-width: 1560px; width: 100%; margin: 0; padding: 0 32px 40px; }
  .kbtn { display: inline-block; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 12.5px; cursor: pointer; }
  .kbtn:hover { color: var(--text); border-color: var(--accent); }
  .toast { bottom: 28px; }

  .side { display: flex; flex-direction: column; grid-area: side; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px 14px; scrollbar-width: thin; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 12px; text-decoration: none; color: var(--text); font-size: 17px; }
  .logo2 { color: var(--accent); font-size: 22px; line-height: 1; }
  .s-pill { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none;
    color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
  .s-pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
  .s-pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
  .side nav { flex: 1; }
  .s-h { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 14px 10px 4px; font-weight: 600; display: flex; justify-content: space-between; }
  .s-h a { color: var(--muted); text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 500; } .s-h a:hover { color: var(--accent); }
  .side .it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font: inherit; font-size: 14px;
    background: none; border: 0; cursor: pointer; text-align: left; }
  .side .it .ic { width: 20px; text-align: center; font-size: 15px; filter: grayscale(.4); }
  .side .it .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .it:hover { background: var(--chip); }
  .side .it.on { background: var(--accent-bg); color: var(--accent); font-weight: 600; } .side .it.on .ic { filter: none; }
  .side .it.sub { padding: 5px 10px 5px 30px; font-size: 13.5px; color: var(--muted); } .side .it.sub.on { color: var(--accent); }
  .side .it.sub:hover { color: var(--text); }
  .s-badge { background: var(--bad); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
  .s-fold summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
  .s-fold summary::-webkit-details-marker { display: none; }
  .s-fold summary::before { content: "›"; display: inline-block; width: 20px; text-align: center; color: var(--muted); transition: transform .15s; }
  .s-fold[open] summary::before { transform: rotate(90deg); }
  .s-fold summary:hover { background: var(--chip); }
  .s-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
  .k-hint kbd { font: inherit; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }

  /* сетка дашборда на 12 колонок */
  .dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
  .dash > * { margin: 0; }
  .w4 { grid-column: span 4; } .w5 { grid-column: span 5; } .w6 { grid-column: span 6; } .w7 { grid-column: span 7; } .w8 { grid-column: span 8; } .w12 { grid-column: 1 / -1; }
  .tiles2.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .att { align-self: stretch; }
  .p2 { padding: 16px 18px; }
  .t2 .v { font-size: 30px; }

  .al2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1180px; }
  .al-src { flex-direction: column; gap: 2px; position: sticky; top: 80px; overflow: visible; }
  .src-b { border: 0; background: none; border-radius: 8px; padding: 7px 10px; justify-content: space-between; }
  .src-b:hover { background: var(--chip); }
  .src-b.on { background: var(--accent-bg); color: var(--accent); font-weight: 600; } .src-b.on small { color: var(--accent); } .src-b.on b { background: var(--accent); color: #fff; }
  .al-dh:first-of-type { margin-top: 4px; }

  .st-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; }
  .st-r .vl { max-width: 260px; }
  .tiles2.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .sv-cols { columns: 2 460px; column-gap: 14px; } .sv-cols > .p2 { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 14px; }
  .sv-cols .st-r .vl { max-width: 220px; }

  /* экраны показателей: как board.css */
  .bi-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
  .bi-home section h2 { margin-top: 6px; }
  .bi-home + .hint, .bi-home ~ .btn { max-width: 420px; margin-left: auto; margin-right: auto; }
  .bi-filters { flex-wrap: wrap; gap: 12px; } .bi-f { flex: 0 1 260px; }
  .bi-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .bi-body > .grid { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
  .bi-body > .grid > .card { margin: 0; }
  .bi-body > .grid .v { font-size: 24px; white-space: nowrap; }
  .bi-body > .bi-card { margin: 0; padding: 16px 18px; }
  .bi-body > .bi-card.bi-wide, .bi-body > .bi-card[data-type="table"], .bi-body > .bi-card[data-type="text"] { grid-column: 1 / -1; }
  .bi-h { font-size: 16px; }
  .bi-tw table { font-size: 14px; } .bi-tw td, .bi-tw th { padding: 8px 5px; }
  .bi-tw th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
  .bi-tw td.wrap { white-space: normal; min-width: 96px; } .bi-tw td:first-child { min-width: 0; max-width: none; }
  .bi-tw tr:hover td { background: var(--chip); }
  /* старые экраны (серверы, радар, калькулятор, ещё) — карточки с рамкой, колонка пошире */
  .v2 main > .card, .v2 main > h2, .v2 main > .tiles, .v2 main > .btn, .v2 main > .chips, .v2 main > div:not(.dash):not(.al2):not(.st-grid):not(.strip):not(.bi-root):not(.bi-home):not(.p2):not(.hc-grid):not(.ch-grid):not(.sv-cols):not(.tiles2):not(.al-dh) { max-width: 980px; }
}
.v2 .card { border: 1px solid var(--line); }
.v2 .card.row { padding: 10px 16px; }
.v2 .card.kpi, .v2 .bi-card { border-radius: 14px; }
