/* DaTa Boot — панель. Темы: dark (по умолчанию), ocean, light */
:root, [data-theme="dark"] {
  --bg: #0b0f14; --bg2: #121821; --bg3: #19212c; --bg4: #212b38; --line: #263140;
  --text: #e6edf3; --muted: #8b98a8; --accent: #22c55e; --accent2: #16a34a; --accent-ink: #06210f;
  --ok: #22c55e; --warn: #f59e0b; --err: #ef4444; --off: #5b6676; --row: #141b24; --rowh: #1b2430; --sel: #10301c;
}
[data-theme="ocean"] {
  --bg: #07121f; --bg2: #0c1b2c; --bg3: #11243a; --bg4: #173049; --line: #1e3a57;
  --text: #e3f0ff; --muted: #8aa4c2; --accent: #38bdf8; --accent2: #0ea5e9; --accent-ink: #032033;
  --row: #0b1a2a; --rowh: #10243a; --sel: #0b2f49; --off: #577090;
}
[data-theme="light"] {
  --bg: #eef1f5; --bg2: #ffffff; --bg3: #f3f5f8; --bg4: #e6eaf0; --line: #d5dbe3;
  --text: #1b2430; --muted: #5d6b7c; --accent: #16a34a; --accent2: #15803d; --accent-ink: #ffffff;
  --row: #ffffff; --rowh: #f2f7f3; --sel: #dcf3e3; --off: #9aa5b3;
}
/* Сине-серая (по умолчанию): стальной фон, спокойный синий акцент */
[data-theme="steel"] {
  --bg: #121a24; --bg2: #18222f; --bg3: #1f2b3a; --bg4: #283648; --line: #2d3c50;
  --text: #e4ebf3; --muted: #93a3b8; --accent: #5ea8ff; --accent2: #3b82f6; --accent-ink: #ffffff;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --off: #64748b; --row: #16202c; --rowh: #1d2a39; --sel: #1b3354;
  --shadow: 0 1px 2px #0005, 0 8px 24px #0003;
}
[data-theme="steel-light"] {
  --bg: #e9eef4; --bg2: #f8fafc; --bg3: #eef2f7; --bg4: #dfe6ef; --line: #cfd8e3;
  --text: #1e293b; --muted: #5b6b80; --accent: #2563eb; --accent2: #1d4ed8; --accent-ink: #ffffff;
  --ok: #059669; --warn: #b45309; --err: #dc2626; --off: #94a3b8; --row: #ffffff; --rowh: #f1f5fb; --sel: #dbe7fb;
  --shadow: 0 1px 2px #0f172a14, 0 8px 24px #0f172a10;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pad { padding: 0 16px; }
code { background: var(--bg4); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
h3 { margin: 0 0 12px; font-size: 16px; }
h4 { margin: 4px 0 12px; font-size: 14px; }

/* логотип DaTa */
.logo { display: flex; align-items: baseline; justify-content: center; font-weight: 900; font-size: 22px; letter-spacing: -.5px; user-select: none; padding: 14px 0 10px; }
.logo-da { color: var(--text); }
.logo-ta { color: var(--accent); }
.logo-sub { margin-left: 8px; font-weight: 600; font-size: .55em; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.logo.big { font-size: 44px; padding: 0 0 4px; }

/* каркас */
#app { display: flex; height: 100vh; }
.side { width: 92px; flex: none; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side nav { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.side nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 11.5px; text-decoration: none; }
.side nav a .ico { font-style: normal; font-size: 20px; line-height: 1; }
.side nav a:hover { background: var(--bg3); color: var(--text); }
.side nav a.active { background: var(--bg3); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; padding: 10px; text-align: center; color: var(--muted); font-size: 11px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top select { width: auto; margin: 0; padding: 4px 8px; }
.sect { flex: 1; overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 2px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); background: var(--bg2); }
.tabs a { padding: 8px 18px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.tools.left { margin-left: 0; }
.counters { display: flex; gap: 14px; font-size: 15px; font-weight: 700; }
.counters span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.counters .on { color: var(--ok); } .counters .offc { color: var(--text); } .counters .dis { color: var(--off); }
.counters .act { text-decoration: underline; text-underline-offset: 4px; }
.status { display: flex; gap: 18px; align-items: center; padding: 5px 16px; background: var(--bg2); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.status b { color: var(--text); font-weight: 600; }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--off); margin-right: 5px; vertical-align: 0; }
.led.ok { background: var(--ok); } .led.err { background: var(--err); } .led.warn { background: var(--warn); }

/* кнопки и поля */
.btn { background: var(--bg3); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg4); }
.btn.primary { background: var(--accent2); border-color: var(--accent2); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent); }
.btn.warn { background: #7a4d06; border-color: #a16207; color: #fff1d0; }
.btn.danger { background: #8e1f1a; border-color: #b62324; color: #fff; }
.btn.ghost { background: none; }
.btn.wide { width: 100%; }
.ibtn { width: 34px; height: 32px; display: inline-grid; place-items: center; background: var(--bg4); border: 1px solid var(--line); color: var(--text); border-radius: 6px; cursor: pointer; font-size: 16px; }
.ibtn:hover { border-color: var(--accent); color: var(--accent); }
.ibtn.danger:hover { border-color: var(--err); color: var(--err); }
.ibtn:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--text); }
input, select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; font: inherit; margin-top: 4px; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
input:disabled { opacity: .7; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0; accent-color: var(--accent); }
.tools select { width: 150px; margin: 0; }
.search { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding-left: 8px; }
.search span { color: var(--muted); }
.search input { border: 0; margin: 0; width: 190px; background: transparent; }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1 1 150px; }
.chk { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; margin-bottom: 8px; }
.checks { margin: 4px 0 10px; }
.radios { display: grid; gap: 6px; margin-bottom: 12px; }
.radio { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; align-items: center; color: var(--text); font-size: 13px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0; cursor: pointer; }
.radio span { grid-column: 2; color: var(--muted); font-size: 12px; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--sel); }

/* таблица в стиле «сетки» */
.grid-wrap { margin: 0 16px 14px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: var(--row); }
.grid { width: 100%; border-collapse: collapse; white-space: nowrap; }
.grid th { position: sticky; top: 0; background: var(--bg3); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); user-select: none; }
.grid th[data-sort] { cursor: pointer; }
.grid th[data-sort]:hover { color: var(--text); }
.grid th.sorted::after { content: " ▲"; color: var(--accent); }
.grid th.sorted.desc::after { content: " ▼"; }
.grid td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.grid tbody tr:hover { background: var(--rowh); }
.grid tbody tr.sel { background: var(--sel); }
.grid tbody tr.disabled td { color: var(--off); }
.grid .r { text-align: right; }
.grid .c-menu { width: 30px; text-align: center; }
.grid .c-chk { width: 30px; }
.dots { cursor: pointer; color: var(--muted); font-weight: 900; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; }
.dots:hover { background: var(--bg4); color: var(--text); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; }
.pill { display: inline-block; min-width: 72px; text-align: center; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--bg4); color: var(--muted); }
.pill.online { background: #12361f; color: #7ee2a0; }
.pill.ping { background: #3d2f0c; color: #fcd679; }
.pill.super { background: #6b3d06; color: #ffd9a0; }
.pill.disabled { background: transparent; border: 1px dashed var(--off); color: var(--off); }
[data-theme="light"] .pill.online { background: #d5f5df; color: #14692f; }
[data-theme="light"] .pill.ping { background: #fdf0cc; color: #7a5300; }
.empty { padding: 26px; text-align: center; color: var(--muted); white-space: normal; }
.selinfo { margin: 0 16px 8px; padding: 6px 12px; background: var(--sel); border: 1px solid var(--accent2); border-radius: 6px; }
.unknown { margin: 0 16px 10px; border: 1px solid #a16207; border-radius: 8px; padding: 10px 12px; background: color-mix(in srgb, #a16207 10%, var(--bg2)); }
.unknown table td { padding: 4px 10px 4px 0; }

.form-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 14px 16px; max-width: 760px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.bar-fill { height: 8px; background: var(--bg4); border-radius: 5px; overflow: hidden; }
.bar-fill i { display: block; height: 100%; background: var(--accent); }
.bar-fill i.hi { background: var(--err); }
#jobBox .form-card { max-width: none; }

/* мониторинг ПК (агент) */
.link { display: inline-block; min-width: 64px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--bg4); color: var(--muted); }
.link.g1 { background: #12361f; color: #7ee2a0; }
.link.m100 { background: #4a1414; color: #ffb4b4; }
.link.g25 { background: #0c2f45; color: #8fd3ff; }
[data-theme="light"] .link.g1 { background: #d5f5df; color: #14692f; }
[data-theme="light"] .link.m100 { background: #fde2e2; color: #9b1c1c; }
.mini { display: inline-block; width: 44px; height: 6px; background: var(--bg4); border-radius: 4px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.mini i { display: block; height: 100%; background: var(--accent); }
.mini i.hi { background: var(--err); }
#monDlg { width: min(980px, 96vw); }
.mon-tabs { padding: 0; background: transparent; margin-bottom: 12px; }
.mon-body { min-height: 360px; max-height: 64vh; overflow: auto; }
.mon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mon-card { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mon-card .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; }
.mon-card .v { font-size: 20px; font-weight: 700; margin: 4px 0 6px; }
.mon-sec { margin: 14px 0 6px; font-weight: 700; color: var(--accent); }
.speed-big { font-size: 26px; font-weight: 800; }
.grid.compact td, .grid.compact th { padding: 5px 8px; }
#superOnDlg { width: min(760px, 96vw); }
.job-banner { padding: 8px 16px; background: color-mix(in srgb, var(--accent) 12%, var(--bg2)); border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.job-banner .bar-fill { flex: 1; max-width: 520px; height: 10px; }
.job-banner.err { background: color-mix(in srgb, var(--err) 14%, var(--bg2)); }
.super-disks td { white-space: normal; }
.t-warn { color: var(--warn); font-weight: 700; }
.t-err { color: var(--err); font-weight: 700; }

.log { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; padding: 6px 0; min-height: 300px; }
.log div { padding: 2px 12px; white-space: pre-wrap; }
.log .t { color: var(--muted); margin-right: 10px; }
.log .WARN { color: var(--warn); } .log .ERROR { color: var(--err); }
#sect-log .grid-wrap { flex: 1; }

/* контекстное меню */
.ctx { position: fixed; z-index: 60; min-width: 220px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px #0009; padding: 4px; }
.ctx a { display: block; padding: 7px 12px; border-radius: 5px; cursor: pointer; color: var(--text); }
.ctx a:hover { background: var(--bg4); }
.ctx a.danger { color: var(--err); }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

dialog { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 0; width: min(580px, 94vw); }
dialog::backdrop { background: #000a; }
dialog.wide { width: min(820px, 96vw); }
.scan-wrap { margin: 0 0 12px; max-height: 340px; }
.scan-wrap input[type=text] { margin: 0; padding: 3px 6px; width: 130px; }
.dlg { padding: 18px 20px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
#cfText { white-space: pre-line; }
.err { color: var(--err); min-height: 16px; font-size: 12.5px; margin: 6px 0; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--bg4); color: var(--muted); white-space: nowrap; }
.badge.warn { background: #6b3d06; color: #ffd9a0; }
.badge.ok { background: #12361f; color: #7ee2a0; }
.badge.err { background: #4a1714; color: #ffa198; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(360px, 100%); text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.login-card label { text-align: left; margin-top: 18px; }
#toasts { position: fixed; right: 18px; bottom: 36px; display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--bg3); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 9px 14px; border-radius: 6px; max-width: 440px; box-shadow: 0 6px 24px #0007; }
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- современный вид (все темы) ---------- */
html, body { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.btn, .ibtn, .side nav a, .tabs a, .grid tbody tr, .ctx a, input, select, .dots { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.side { background: linear-gradient(180deg, var(--bg2), color-mix(in srgb, var(--bg2) 85%, var(--bg))); }
.side nav a { border-radius: 10px; }
.side nav a.active { background: color-mix(in srgb, var(--accent) 16%, var(--bg3)); box-shadow: none; }
.top { background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(6px); }
.tabs a { border-radius: 8px 8px 0 0; }
.btn { border-radius: 8px; padding: 7px 14px; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 1px 2px #0003; }
.btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, var(--accent), var(--accent2)); }
.ibtn { border-radius: 8px; }
input, select { border-radius: 8px; padding: 7px 10px; }
input:focus, select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.search { border-radius: 8px; }
.grid-wrap { border-radius: 12px; box-shadow: var(--shadow, none); }
.grid th { background: color-mix(in srgb, var(--bg3) 90%, var(--accent) 4%); }
.grid tbody tr:hover { background: var(--rowh); }
.pill, .link, .badge { border-radius: 999px; }
.form-card, .mon-card { border-radius: 12px; box-shadow: var(--shadow, none); }
dialog { border-radius: 14px; box-shadow: 0 20px 60px #0008; }
dialog::backdrop { background: color-mix(in srgb, #0b1220 70%, transparent); backdrop-filter: blur(2px); }
.ctx { border-radius: 10px; }
.toast { border-radius: 10px; }
.login-card { border-radius: 16px; box-shadow: var(--shadow, none); }
[data-theme="steel-light"] .pill.online, [data-theme="steel-light"] .link.g1, [data-theme="steel-light"] .badge.ok { background: #d1fae5; color: #065f46; }
[data-theme="steel-light"] .pill.ping { background: #fef3c7; color: #92400e; }
[data-theme="steel-light"] .link.m100, [data-theme="steel-light"] .badge.err { background: #fee2e2; color: #991b1b; }
[data-theme="steel-light"] .link.g25 { background: #dbeafe; color: #1e40af; }
[data-theme="steel"] .pill.online, [data-theme="steel"] .link.g1, [data-theme="steel"] .badge.ok { background: #0f3a33; color: #6ee7b7; }
[data-theme="steel"] .link.g25 { background: #13325a; color: #93c5fd; }

@media (max-width: 760px) {
  #app { flex-direction: column; height: auto; min-height: 100vh; }
  .side { width: 100%; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { flex-direction: row; }
  .side-foot { display: none; }
  .logo { padding: 0 12px; font-size: 18px; }
  .tabs { overflow-x: auto; }
  .tools { margin-left: 0; }
  .search input { width: 140px; }
}

#cfText { white-space: pre-line; }

/* ---------- дашборд ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; padding: 14px; }
.dash-card { background: var(--panel, rgba(255,255,255,.04)); border: 1px solid var(--border, rgba(255,255,255,.08)); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.dash-card.wide { grid-column: 1 / -1; }
.dash-h { font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dash-log { height: 340px; overflow: auto; font-family: Consolas, monospace; font-size: 12px; line-height: 1.45; }
.dash-log div { white-space: pre-wrap; word-break: break-word; }
.dash-log .WARN { color: #e0b252; } .dash-log .ERROR { color: #ef6b6b; } .dash-log .t { opacity: .55; margin-right: 6px; }
.dash-tools { display: flex; gap: 10px; align-items: center; margin: 6px 0; } .dash-tools input[type=search] { flex: 1; }
.dash-task { margin: 6px 0; } .dash-task .bar { height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; margin-top: 3px; }
.dash-task .bar i { display: block; height: 100%; background: #4ea1ff; }
.dash-kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; } .dash-kv b { font-weight: 500; opacity: .7; }
.dash-vols { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; } .dash-vols span { padding: 4px 10px; border-radius: 999px; background: rgba(127,127,127,.15); }
.hp-good { color: #4cc38a; } .hp-warn { color: #e0b252; } .hp-bad { color: #ef6b6b; font-weight: 600; }
.net-links a, .net-links button { margin-right: 6px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-top { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 14px 0; } .dash-top #dashHint { margin-right: auto; }
.dash-h { cursor: pointer; user-select: none; } .dash-tg { width: 14px; display: inline-block; opacity: .6; }
.dash-ctl { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dash-card.closed .dash-body { display: none; } .dash-card.closed .dash-h { margin-bottom: 0; }
.dash-card.off { opacity: .45; } .dash-grid.editing .dash-card { outline: 1px dashed rgba(127,127,127,.5); cursor: grab; } .dash-card.dragging { opacity: .3; }
.dash-grip { cursor: grab; font-size: 18px; opacity: .7; }
.dash-cnt { font-weight: 400; font-size: 12px; opacity: .7; }
.dash-sub { font-weight: 600; margin: 12px 0 6px; font-size: 13px; opacity: .85; }
.dpc { border-top: 1px solid rgba(127,127,127,.15); } .dpc-row { display: flex; gap: 10px; align-items: center; padding: 8px 4px; cursor: pointer; }
.dpc-row:hover { background: rgba(127,127,127,.08); } .dpc-r { margin-left: auto; font-size: 12px; } .dpc-body { padding: 4px 8px 12px 24px; }

#sect-club .tabs { padding: 10px 14px 0; } #sect-club .ctab .bar { padding: 10px 14px; } #tfTable input, #rlTable input, #rlTable select, #apTable input, #apTable select { padding: 5px 8px; } .row-btns { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0; }

/* ---------- контент: библиотека игр ---------- */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 6px 14px 20px; }
.lib-card { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; background: rgba(127,127,127,.12); border: 1px solid rgba(127,127,127,.2); transition: transform .12s, box-shadow .12s; }
.lib-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.lib-card.off .lib-img { filter: grayscale(1) brightness(.5); }
.lib-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lib-letters { display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; opacity: .35; }
.lib-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-weight: 600; font-size: 13px; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.lib-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-style: dashed; }
.lib-add .plus { font-size: 44px; opacity: .7; }
.sw { position: absolute; top: 8px; right: 8px; width: 38px; height: 22px; z-index: 2; }
.sw input { display: none; } .sw i { position: absolute; inset: 0; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #bbb; transition: left .15s; }
.sw input:checked + i { background: #2f7de1; } .sw input:checked + i::after { left: 19px; background: #fff; }
.cover-box { aspect-ratio: 2 / 3; border-radius: 10px; border: 1px dashed rgba(127,127,127,.5); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---------- карта клуба ---------- */
#sect-map .bar { padding: 12px 14px; }
.map-legend { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; opacity: .8; margin-left: 14px; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.map-load { margin-right: 10px; } .map-load b { font-size: 18px; }
.map-wrap { overflow: auto; padding: 0 14px 20px; }
.map { position: relative; min-width: 100%; min-height: 300px; border-radius: 12px; background: rgba(127,127,127,.06); }
.map.editing { background-image: linear-gradient(rgba(127,127,127,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(127,127,127,.12) 1px, transparent 1px); background-size: 88px 74px; background-position: 10px 10px; }
.mpc { position: absolute; width: 76px; height: 62px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border: 2px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,.25); user-select: none; transition: transform .1s; }
.mpc:hover { transform: translateY(-2px); } .mpc.sel { border-color: #fff; box-shadow: 0 0 0 3px rgba(78,161,255,.6); }
.map.editing .mpc { cursor: grab; } .mpc.drag { cursor: grabbing; z-index: 5; opacity: .85; transition: none; }
.mpc-n { font-size: 20px; font-weight: 700; line-height: 1; } .mpc-s { font-size: 10px; opacity: .85; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.mpc-t { position: absolute; top: -8px; right: -8px; font-size: 10px; padding: 1px 5px; border-radius: 999px; background: #1d2b40; border: 1px solid rgba(255,255,255,.3); } .mpc-t.low { background: #b23b3b; }
.st-busy { background: linear-gradient(160deg, #2e9a5b, #1f7443); } .st-free { background: linear-gradient(160deg, #56657e, #3d4a5f); }
.st-booting { background: linear-gradient(160deg, #3d7fd1, #2a5ea3); } .st-off { background: #222b38; color: #8592a6 !important; }
.st-super { background: linear-gradient(160deg, #d18a2e, #a8661a); } .st-disabled { background: #3a2a2a; color: #a88 !important; }
.map-legend i.st-busy, .map-legend i.st-free, .map-legend i.st-booting, .map-legend i.st-off, .map-legend i.st-super { border: 1px solid rgba(255,255,255,.2); }
.map-card { position: fixed; right: 18px; top: 120px; width: 330px; max-height: calc(100vh - 160px); overflow: auto; z-index: 20; padding: 14px 16px; border-radius: 14px; background: var(--panel, #182235); border: 1px solid rgba(127,127,127,.3); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.mc-h { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 8px; } .mc-x { cursor: pointer; opacity: .7; }
.mc-kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13px; } .mc-kv span { opacity: .65; } .mc-kv b { font-weight: 500; }
.mc-ses { margin: 10px 0; padding: 10px; border-radius: 10px; background: rgba(46,154,91,.12); } .mc-player { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .pill.st-busy, .pill.st-free, .pill.st-off, .pill.st-booting, .pill.st-super { color: #fff; }

/* ---------- сворачиваемое левое меню ---------- */
.side { width: 66px; transition: width .18s; }
.side nav a { flex-direction: row; justify-content: center; padding: 11px 6px; font-size: 14px; }
.side nav a span { display: none; white-space: nowrap; }
.side-toggle { display: block; text-align: center; padding: 6px; margin: 2px 8px 4px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 18px; user-select: none; }
.side-toggle:hover { background: var(--bg3); color: var(--text); }
.side.wide { width: 210px; }
.side.wide nav a { justify-content: flex-start; gap: 12px; padding: 10px 14px; }
.side.wide nav a span { display: inline; }
.side.wide .side-toggle { text-align: right; }

/* логотип DaTa: D и T — один цвет, a и a — другой */
.logo-dt { color: var(--accent); } .logo-a { color: var(--text); }

.bg-prev { width: 240px; height: 135px; border-radius: 10px; border: 1px dashed rgba(127,127,127,.5); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden; } .bg-box { width: 100%; height: 100%; background-size: cover; background-position: center; }

/* ---------- настройки клуба ---------- */
.set-wrap { display: flex; gap: 18px; padding: 14px; align-items: flex-start; }
.set-nav { display: flex; flex-direction: column; gap: 4px; min-width: 210px; position: sticky; top: 0; }
.set-nav a { padding: 10px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.set-nav a:hover { background: var(--bg3); color: var(--text); } .set-nav a.active { background: color-mix(in srgb, var(--accent) 16%, var(--bg3)); color: var(--accent); }
.set-body { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 18px; }
.set-h { margin: 18px 0 6px; font-size: 15px; } .set-h:first-child { margin-top: 8px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row > span { flex: 1; } .set-row input:not([type=checkbox]):not([type=number]), .set-row select { min-width: 260px; }
.set-bool { justify-content: flex-start; cursor: pointer; }
.sw2 { position: relative; width: 42px; height: 24px; flex: none; } .sw2 input { display: none; }
.sw2 i { position: absolute; inset: 0; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); transition: background .15s; }
.sw2 i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #999; transition: left .15s; }
.sw2 input:checked + i { background: var(--accent); } .sw2 input:checked + i::after { left: 21px; background: #fff; }
.set-file { display: flex; align-items: center; gap: 8px; }
.set-img { width: 140px; height: 70px; border-radius: 8px; border: 1px dashed var(--line); background-size: contain; background-repeat: no-repeat; background-position: center; display: flex; align-items: center; justify-content: center; }
.set-img.sm { width: 60px; height: 34px; display: inline-block; vertical-align: middle; background-size: cover; }
.set-zone { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; } .theme-dot { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.theme-dot i { width: 16px; height: 16px; border-radius: 50%; } .theme-dot.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.set-save { margin-top: 16px; display: flex; gap: 10px; align-items: center; }

/* ---------- карта v2: иконка «монитор + кресло», план зала ---------- */
.mpc { background: none !important; box-shadow: none; border: 0; width: 76px; height: 66px; justify-content: flex-start; }
.mpc .pc-ico { width: 64px; height: 56px; display: block; }
.mpc .scr { stroke: rgba(255,255,255,.25); stroke-width: 1.5; } .mpc .leg { fill: #8592a6; } .mpc .chair { fill: #56657e; }
.mpc .num { fill: #fff; font-size: 15px; font-weight: 700; font-family: inherit; }
.mpc.st-busy .scr { fill: #2e9a5b; } .mpc.st-busy .chair { fill: #2e9a5b; }
.mpc.st-free .scr { fill: #4a5a73; } .mpc.st-booting .scr { fill: #3d7fd1; } .mpc.st-super .scr { fill: #d18a2e; }
.mpc.st-off .scr { fill: #1c2430; } .mpc.st-off .num { fill: #6b778a; } .mpc.st-off .chair, .mpc.st-off .leg { fill: #2d3644; }
.mpc.st-disabled .scr { fill: #3a2a2a; }
.mpc.sel .scr { stroke: #fff; stroke-width: 3; } .mpc.sel { box-shadow: none; }
.mpc .mpc-s { color: var(--text); margin-top: 0; font-size: 10px; } .mpc-t { top: -6px; right: -2px; }
.mz { position: absolute; width: 88px; height: 74px; margin: -6px 0 0 -6px; border: 1px dashed; border-radius: 4px; pointer-events: none; }
.mi { position: absolute; width: 76px; height: 62px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); border-radius: 6px; pointer-events: none; }
.mi-wall { background: #6b778a; width: 88px; height: 74px; margin: -6px 0 0 -6px; border-radius: 0; }
.mi-door { border: 2px dashed #8592a6; font-size: 22px; } .mi-cash { background: rgba(224,178,82,.18); border: 1px solid #e0b252; color: #e0b252; font-size: 22px; }
.mi-wc { background: rgba(78,161,255,.12); border: 1px solid #4ea1ff; color: #4ea1ff; } .mi-text { color: var(--text); font-size: 13px; text-align: center; font-weight: 600; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 14px 10px; }
.map-tools a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; } .map-tools a.on { border-color: var(--accent); color: var(--accent); }
.map-rubber { position: absolute; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); pointer-events: none; z-index: 6; }
.map.editing .mi, .map.editing .mz { pointer-events: none; }
.mpc .pc-ico { width: 72px; height: 58px; }
.mpc .part { fill: #56657e; } .mpc .sys { fill: #3c4759; } .mpc .kb, .mpc .ms { fill: #6b778a; } .mpc .head { fill: #6b778a; }
.mpc.st-busy .chair { fill: #2e9a5b; } .mpc.st-off .part { fill: #2d3644; }
.mpc .part.bad { fill: #e5484d !important; } .mpc .scr.part.bad { fill: #b8333a !important; stroke: #ff6b70; }
.mpc.repair .num { fill: #fff; } .mpc.repair::after { content: '🔧'; position: absolute; left: -6px; top: -8px; font-size: 13px; }
.map-legend i.st-repair { background: #e5484d; }
.mc-rep { margin: 10px 0; padding: 10px; border-radius: 10px; background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.5); }
.mc-rep button { margin-top: 6px; }
.rp-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }

/* ---------- конструктор экрана входа ---------- */
.lw-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lw-wrap { display: flex; gap: 16px; align-items: flex-start; }
.lw-stage { position: relative; flex: 1; aspect-ratio: 16 / 9; max-width: 860px; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #0e1724, #16243a) center / cover; border: 1px solid var(--line); user-select: none; }
.lw { position: absolute; border: 1px dashed rgba(255,255,255,.45); border-radius: 8px; background-size: cover; background-position: center; cursor: move; display: flex; align-items: flex-start; justify-content: flex-start; overflow: hidden; }
.lw span { font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 0 0 6px 0; position: relative; z-index: 1; }
.lw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.lw.sel { border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.lw.off { opacity: .35; }
.lw .rs { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: var(--accent); cursor: nwse-resize; border-radius: 4px 0 6px 0; z-index: 2; }
.lw-props { width: 300px; flex: none; }
.lw-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .lw-imgs .set-img { position: relative; } .lw-imgs a { position: absolute; right: 2px; top: 0; cursor: pointer; color: #fff; text-shadow: 0 0 3px #000; }
.nw-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .nw-row input { flex: 1; min-width: 0; }

/* предпросмотр экрана входа — как в лаунчере (размеры в em от ширины экрана) */
.lw-stage { color: #e8eef7; font-family: "Segoe UI Variable", "Segoe UI", sans-serif; }
.lw { border-color: transparent; } .lw:hover, .lw.sel { border: 1px dashed rgba(255,255,255,.6); } .lw.sel { border: 2px solid var(--accent); }
.lw .lw-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .15s; z-index: 3; } .lw:hover .lw-label, .lw.sel .lw-label { opacity: 1; }
.lw .pv { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pv-clock { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; } .pv-clock b { font-size: 5em; font-weight: 300; line-height: 1; } .pv-clock small { font-size: 1.1em; color: #93a4bd; margin-top: .3em; }
.pv-panel { border-radius: 1em; }
.pv-form { height: 100%; padding: 1.4em 1.6em; display: flex; flex-direction: column; justify-content: center; gap: .6em; box-sizing: border-box; }
.pv-club { font-size: 1.6em; font-weight: 700; } .pv-h { font-size: 1.15em; font-weight: 600; }
.pv-in { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: .5em; padding: .6em .7em; font-size: .85em; color: #93a4bd; }
.pv-btn { background: linear-gradient(135deg, #3d8bf2, #2a6bd1); border-radius: .5em; padding: .6em; text-align: center; font-weight: 600; font-size: .9em; }
.pv-note { font-size: .7em; color: #93a4bd; }
.pv-logo { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2em; font-weight: 800; text-align: center; } .pv-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-news { height: 100%; padding: 1em; display: flex; flex-direction: column; gap: .4em; box-sizing: border-box; } .pv-news img { width: 100%; max-height: 50%; object-fit: cover; border-radius: .5em; }
.pv-news b { font-size: 1.1em; } .pv-news p { margin: 0; color: #93a4bd; font-size: .85em; } .pv-ttl { font-size: .65em; color: #4ea1ff; text-transform: uppercase; letter-spacing: .1em; }
.pv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .pv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6em .8em; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; }
.pv-empty { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .9em; color: #93a4bd; border: 1px dashed rgba(255,255,255,.25); border-radius: .6em; box-sizing: border-box; }
.pv-text { height: 100%; padding: .8em; font-size: 1.2em; white-space: pre-wrap; display: flex; align-items: center; box-sizing: border-box; }
.pv-rep { height: 100%; padding: .8em 1em; border-radius: .8em; background: linear-gradient(135deg, rgba(229,72,77,.22), rgba(229,72,77,.08)); border: 1px solid rgba(239,107,107,.6); font-size: .9em; display: flex; flex-direction: column; gap: .3em; box-sizing: border-box; }
.pv-rep small { color: #93a4bd; font-size: .75em; }
.lw-wrap { flex-wrap: wrap; } .lw-stage { flex: 1 1 560px; min-width: 340px; } .lw-props { flex: 1 1 260px; max-width: 340px; }

/* ===== касса и магазин ===== */
.cs-wrap { display: flex; gap: 14px; padding: 0 16px 16px; flex-wrap: wrap; align-items: flex-start; }
.cs-left { flex: 0 1 460px; min-width: 340px; }
.cs-right { flex: 1 1 520px; min-width: 360px; }
.cs-right .grid-wrap { max-height: 46vh; overflow: auto; margin-bottom: 10px; }
.cs-card { margin: 10px 0 0; max-width: none; }
.cs-card.cs-off { opacity: .45; pointer-events: none; }
.cs-kpi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cs-kpi .kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.cs-kpi .kpi small { display: block; color: var(--muted); font-size: 11.5px; }
.cs-kpi .kpi b { font-size: 17px; }
.cs-kpi .kpi:first-child { border-color: var(--accent); }
.cs-pay { display: flex; gap: 14px; margin: 8px 0; flex-wrap: wrap; }
#tpQuick { display: flex; gap: 6px; flex-wrap: wrap; margin: -2px 0 6px; }
#tpQuick .chip { padding: 3px 10px; border-radius: 999px; background: var(--bg4); cursor: pointer; font-size: 12.5px; }
#tpQuick .chip:hover { background: var(--accent); color: var(--accent-ink); }
.cs-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; margin: 8px 0; }
.cs-good { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; text-align: center; font-size: 12px; background: var(--bg3); }
.cs-good:hover { border-color: var(--accent); }
.cs-good.off { opacity: .4; }
.cs-good img, .cs-good i { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg4); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; }
.cs-good small { color: var(--muted); font-size: 11px; }
.cs-cart { border-top: 1px solid var(--line); padding-top: 6px; margin-bottom: 6px; }
.cs-line { display: grid; grid-template-columns: 1fr 22px 28px 22px 90px 20px; align-items: center; gap: 4px; padding: 3px 0; font-size: 13px; }
.cs-line a { cursor: pointer; text-align: center; border-radius: 4px; background: var(--bg4); user-select: none; }
.cs-line b { text-align: center; }
.cs-line .r { text-align: right; }
.cs-total { text-align: right; font-size: 15px; padding: 6px 0; border-top: 1px dashed var(--line); }
.cs-total b { font-size: 18px; margin-left: 8px; }
#csRc tr.off td, #shTable tr.off td { opacity: .5; }
.sh-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 5px; }
.lnk { cursor: pointer; color: var(--accent); }
.lnk:hover { text-decoration: underline; }
#cfText { white-space: pre-line; max-height: 50vh; overflow: auto; }

/* ===== обзор файлов (контент) ===== */
.br-path { display: flex; gap: 6px; margin-bottom: 8px; }
.br-path input { flex: 1; }
.br-list { height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); }
.br-it { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; user-select: none; font-size: 13px; }
.br-it:hover { background: var(--bg4); }
.br-it.sel { background: var(--accent); color: var(--accent-ink); }
.br-it i { font-style: normal; width: 18px; text-align: center; }
.br-it span { flex: 1; }
.br-it small { color: var(--muted); }
.br-it.file span { font-weight: 600; }

/* метки на карточках контента */
.ap-tags { position: absolute; left: 6px; top: 6px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.ap-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.ap-tag.new { background: var(--accent); color: var(--accent-ink); }
.ap-tag.miss { background: #b91c1c; }

/* трансляция и удалённое управление */
.rv-dlg { width: 96vw; max-width: 96vw; height: 94vh; max-height: 94vh; padding: 0; border-radius: 12px; overflow: hidden; }
.rv-wrap { display: flex; flex-direction: column; height: 100%; }
.rv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-bar select { width: auto; margin: 0; }
.rv-box { flex: 1; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.rv-box img, .rv-box video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; display: block; }
.rv-box img.hidden, .rv-box video.hidden { display: none; }
.rv-box.ctl img, .rv-box.ctl video { cursor: default; outline: 2px solid var(--accent); }
.rv-box.ctl img, .rv-box.ctl video { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; }
.rv-kbin { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; font-size: 16px; }
/* лицензии клубов (subslic.go) */
.lk-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.lk-new label { display: flex; flex-direction: column; gap: 3px; min-width: 130px; flex: 1; }
.lk-new label:has(#lkPcs) { flex: 0 0 80px; min-width: 80px; }
.lk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.lk-row { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr 1fr 1fr auto; gap: 8px 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.lk-row .mono { font-family: monospace; user-select: all; }
.lk-row .lk-btns { display: flex; gap: 6px; }
@media (max-width: 900px) { .lk-row { grid-template-columns: 1fr 1fr; } }
/* ход обновления DaTa Boot */
.upd-sec { margin: 10px 0 16px; }
.upd-sec h4 { margin: 0 0 6px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.upd-sec h4 b { color: var(--accent); }
.upd-bar { height: 10px; border-radius: 6px; background: var(--bg4); overflow: hidden; }
.upd-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.upd-bar.err i { background: var(--err); }
.upd-note { color: var(--muted); font-size: 12.5px; margin: 5px 0; }
.upd-steps { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.upd-steps li { padding: 2px 0; color: var(--muted); }
.upd-steps li.done { color: var(--text); } .upd-steps li.done::before { content: '✓ '; color: var(--ok); }
.upd-steps li.run { color: var(--text); font-weight: 600; } .upd-steps li.run::before { content: '⏳ '; }
.upd-steps li.wait::before { content: '○ '; }
.upd-pcs { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; font-size: 12.5px; max-height: 220px; overflow: auto; margin-top: 6px; }
.upd-pcs .ok { color: var(--ok); }
.rv-box:fullscreen img, .rv-box:fullscreen video { max-height: 100vh; }
.rv-wait { position: absolute; color: #aaa; font-size: 15px; }
.pv-pcno { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; line-height: 1.1; }
.pv-pcno b { font-size: 3.2em; font-weight: 800; letter-spacing: .05em; }
.pv-pcno small { font-size: 1.2em; opacity: .75; }

/* пользователи */
.lnk-cell { cursor: pointer; }
.lnk-cell:hover b { color: var(--accent); text-decoration: underline; }
.uc-ava { width: 56px; height: 56px; border-radius: 50%; background: var(--bg4) center/cover; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.uc-kpi { grid-template-columns: repeat(6, 1fr); margin: 12px 0; }
#uhTable tr.off td, #ucTable tr.off td { opacity: .5; }

/* сервисный врач */
.dr-sum { display: flex; gap: 10px; padding: 0 16px; }
.dr-k { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; display: flex; align-items: baseline; gap: 8px; }
.dr-k b { font-size: 24px; } .dr-k.bad b { color: #ef4444; } .dr-k.warn b { color: #f59e0b; } .dr-k.ok b { color: var(--accent); }
.dr-wrap { display: flex; gap: 16px; padding: 0 16px 16px; flex-wrap: wrap; align-items: flex-start; }
.dr-checks { flex: 1 1 560px; } .dr-side { flex: 0 1 380px; min-width: 300px; }
.dr-c { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--bg2); }
.dr-c i { font-style: normal; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.dr-c.ok i { background: rgba(34,197,94,.2); color: #22c55e; } .dr-c.warn i { background: rgba(245,158,11,.2); color: #f59e0b; } .dr-c.bad i { background: rgba(239,68,68,.2); color: #ef4444; }
.dr-c.bad { border-color: rgba(239,68,68,.5); } .dr-c.warn { border-color: rgba(245,158,11,.4); }
.dr-acts, .dr-reps { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow: auto; margin-bottom: 12px; font-size: 13px; }
.dr-text { white-space: pre-wrap; font: 12.5px/1.45 Consolas, monospace; max-height: 65vh; overflow: auto; background: var(--bg3); padding: 12px; border-radius: 8px; }

/* заказы с ПК */
.ord-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ord-col { background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 80px; }
.ord-h { font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ord { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; font-size: 13px; }
.ord.new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ord-f { margin: 4px 0; } .ord-b { display: flex; gap: 4px; flex-wrap: wrap; } .ord-b .btn { padding: 4px 8px; font-size: 12px; }

/* касса из блоков (конструктор кассы) */
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; align-items: start; }
.cs-b.wide { grid-column: 1 / -1; }
.cs-b .cs-card { margin: 0; }
.cs-b .grid-wrap { max-height: 46vh; overflow: auto; }
@media (max-width: 1100px) { .cs-grid { grid-template-columns: 1fr; } }
/* редактор кассы в настройках */
.cx-wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.cx-list { flex: 1 1 380px; }
.cx-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--bg2); cursor: grab; }
.cx-row.drag { opacity: .5; } .cx-row.off { opacity: .55; } .cx-row b { flex: 1; }
.cx-prev { flex: 1 1 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.cx-prev div { background: var(--bg2); border: 1px dashed var(--line); border-radius: 6px; padding: 14px 8px; text-align: center; font-size: 12.5px; }
.cx-prev div.wide { grid-column: 1 / -1; }
.cx-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; margin-top: 8px; }

/* предпросмотр экрана входа: текст подстраивается под размер блока (как в лаунчере) */
.lw .pv { container-type: size; }
.pv-clock b { font-size: min(55cqh, 26cqw); }
.pv-clock small { font-size: min(12cqh, 5.5cqw); white-space: nowrap; }
.pv-logo { font-size: min(40cqh, 12cqw); }
.pv-pcno b { font-size: min(55cqh, 30cqw); }
.pv-pcno small { font-size: min(16cqh, 10cqw); }

/* ---------- карта v3: масштаб, тонкие стены, значки ---------- */
.map-zoom { display: inline-flex; align-items: center; gap: 4px; }
.map-zoom .btn { padding: 4px 10px; } .map-zoom b { min-width: 46px; text-align: center; font-size: 13px; }
#mapIconSet { width: auto; margin: 0; }
.map-wrap { max-height: calc(100vh - 170px); }
.map-wrap.panning, .map-wrap.panning * { cursor: grabbing !important; }
.map.editing { background-image: linear-gradient(rgba(127,127,127,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(127,127,127,.10) 1px, transparent 1px); background-size: 88px 74px; background-position: 4px 4px; }
.mi3 { position: absolute; pointer-events: none; }
.mi3-wallish { overflow: visible; }
.mi3-wall { fill: none; stroke: #8c99ad; stroke-width: 5; stroke-linecap: round; }
.mi3-glass { fill: none; stroke: #7cc4ff; stroke-width: 3; stroke-linecap: round; }
.mi3-gap { fill: var(--bg); }
.mi3-ico { fill: none; stroke: #c9d3e0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mi3-ico .f { fill: #c9d3e0; stroke: none; }
.mi3-obj { width: 76px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; }
.mi3-obj svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mi3-obj svg .f { fill: currentColor; stroke: none; }
.mi3-obj span { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.mi3-text { width: 76px; height: 62px; display: flex; align-items: center; justify-content: center; }
.mi3-text span { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mi3-cash { color: #f0b84a; } .mi3-bar { color: #f472b6; } .mi3-wc { color: #5ea8ff; } .mi3-stairs { color: #a3b1c6; } .mi3-console { color: #a78bfa; }
/* вид «контур» (по умолчанию) */
.map[data-icons="line"] .mi3-obj { border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent); background: color-mix(in srgb, currentColor 7%, transparent); }
/* вид «заливка» */
.map[data-icons="solid"] .mi3-obj { background: currentColor; }
.map[data-icons="solid"] .mi3-obj svg { stroke: #0b1220; } .map[data-icons="solid"] .mi3-obj svg .f { fill: #0b1220; }
.map[data-icons="solid"] .mi3-obj span { color: #0b1220; }
.map[data-icons="solid"] .mi3-wall { stroke: #a9b5c7; stroke-width: 7; }
/* вид «неон» */
.map[data-icons="neon"] .mi3-obj { border: 1.5px solid currentColor; box-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent), inset 0 0 8px color-mix(in srgb, currentColor 30%, transparent); background: transparent; }
.map[data-icons="neon"] .mi3-obj svg { filter: drop-shadow(0 0 3px currentColor); }
.map[data-icons="neon"] .mi3-wall { stroke: #4ea1ff; stroke-width: 3; filter: drop-shadow(0 0 4px #4ea1ff); }
.map[data-icons="neon"] .mi3-ico { stroke: #9fd0ff; }

/* ещё темы панели — каждый сотрудник выбирает свою (запоминается за его логином) */
[data-theme="graphite"] {
  --bg: #111214; --bg2: #18191c; --bg3: #1f2024; --bg4: #2a2c31; --line: #2f3137;
  --text: #ececee; --muted: #9a9ca3; --accent: #e5e7eb; --accent2: #cbd5e1; --accent-ink: #111214;
  --ok: #4ade80; --warn: #fbbf24; --err: #f87171; --off: #6b6e76; --row: #16171a; --rowh: #1e2024; --sel: #2a2d33;
}
[data-theme="violet"] {
  --bg: #13101e; --bg2: #1a1529; --bg3: #221c35; --bg4: #2c2444; --line: #352b52;
  --text: #ece8f7; --muted: #a69cc2; --accent: #a78bfa; --accent2: #8b5cf6; --accent-ink: #ffffff;
  --ok: #34d399; --warn: #fbbf24; --err: #fb7185; --off: #6e6390; --row: #171226; --rowh: #201a33; --sel: #2e2450;
}
[data-theme="rose"] {
  --bg: #1a1016; --bg2: #22141d; --bg3: #2b1a25; --bg4: #37212f; --line: #432838;
  --text: #f8e8f0; --muted: #c39bb0; --accent: #f472b6; --accent2: #ec4899; --accent-ink: #ffffff;
  --ok: #34d399; --warn: #fbbf24; --err: #fb7185; --off: #8a6276; --row: #1e1219; --rowh: #2a1822; --sel: #4a1f37;
}
[data-theme="emerald"] {
  --bg: #0c1714; --bg2: #11201c; --bg3: #172a25; --bg4: #1e3630; --line: #24423a;
  --text: #e3f4ee; --muted: #8fb5a8; --accent: #34d399; --accent2: #10b981; --accent-ink: #052e22;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --off: #5b7d72; --row: #0f1d19; --rowh: #152823; --sel: #134235;
}
[data-theme="sand"] {
  --bg: #f4efe8; --bg2: #fffdf9; --bg3: #f8f3ec; --bg4: #ece4d8; --line: #ddd2c2;
  --text: #2b2520; --muted: #7a6d60; --accent: #c2410c; --accent2: #9a3412; --accent-ink: #ffffff;
  --ok: #15803d; --warn: #b45309; --err: #b91c1c; --off: #a8998a; --row: #fffdf9; --rowh: #f6efe5; --sel: #fde4d3;
}
/* вкладки разделов в шапке, кнопки «обновить» и «в отдельном окне» */
.tab-strip { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip .tab { display: flex; flex-direction: row; flex: 0 1 auto; min-height: 0; align-items: center; gap: 6px; max-width: 190px; padding: 5px 8px 5px 12px; border-radius: 9px; background: color-mix(in srgb, var(--bg3) 70%, transparent); border: 1px solid transparent; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; font-size: 12.5px; }
.tab-strip .tab span { overflow: hidden; text-overflow: ellipsis; }
.tab-strip .tab:hover { color: var(--text); background: var(--bg3); }
.tab-strip .tab.on { color: var(--text); background: var(--bg4); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-strip .tab-x { font-weight: 400; width: 18px; height: 18px; line-height: 17px; text-align: center; border-radius: 6px; color: var(--muted); }
.tab-strip .tab-x:hover { background: color-mix(in srgb, var(--err) 25%, transparent); color: var(--text); }
.tab-strip .tab-add, .tb-btn { flex: none; width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.tab-strip .tab-add:hover, .tb-btn:hover { color: var(--text); background: var(--bg3); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tab-tools { display: flex; gap: 6px; }
.tb-btn.spin { animation: tbspin .6s linear; }
@keyframes tbspin { to { transform: rotate(360deg); } }
.top .crumbs { flex: none; }
body.rv-solo .tab-strip, body.rv-solo .tab-tools { display: none; }
@media (max-width: 760px) { .tab-strip { display: none; } }
/* НЕОН: чёрно-красный — чёрный фон, красное свечение акцента, тёмно-алые подсветки */
[data-theme="neon"] {
  --bg: #060505; --bg2: #0d0a0a; --bg3: #170e0f; --bg4: #221314; --line: #3a1a1d;
  --text: #f6ecec; --muted: #a88a8c; --accent: #ff2a3a; --accent2: #d4142a; --accent-ink: #120002;
  --ok: #39ff9f; --warn: #ffb020; --err: #ff6b6b; --off: #6b5052; --row: #0b0808; --rowh: #1a0f10; --sel: #2a1013;
  --neon2: #ff5a1f;
  --shadow: 0 0 0 1px #ff2a3a22, 0 8px 28px #ff2a3a14;
}
[data-theme="neon"] body { background: radial-gradient(1200px 600px at 85% -10%, #ff5a1f14, transparent 60%), radial-gradient(900px 500px at -10% 110%, #ff2a3a12, transparent 60%), var(--bg); }
[data-theme="neon"] .side { border-right-color: #ff2a3a33; box-shadow: 1px 0 18px #ff2a3a12; }
[data-theme="neon"] .top { border-bottom-color: #ff2a3a33; box-shadow: 0 1px 18px #ff2a3a10; }
[data-theme="neon"] .side nav a.active { color: var(--accent); background: #ff2a3a14; box-shadow: inset 0 0 0 1px #ff2a3a55, 0 0 14px #ff2a3a33; text-shadow: 0 0 8px #ff2a3aaa; }
[data-theme="neon"] .side nav a:hover { color: var(--neon2); text-shadow: 0 0 8px #ff5a1f88; }
[data-theme="neon"] .btn.primary { background: transparent; color: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 10px #ff2a3a55, inset 0 0 10px #ff2a3a22; text-shadow: 0 0 6px #ff2a3aaa; }
[data-theme="neon"] .btn.primary:hover { background: #ff2a3a1a; filter: none; box-shadow: 0 0 16px #ff2a3a88, inset 0 0 12px #ff2a3a33; }
[data-theme="neon"] .btn.danger { border-color: var(--err); color: var(--err); box-shadow: 0 0 10px #ff6b6b44; }
[data-theme="neon"] .logo-dt { color: var(--accent); text-shadow: 0 0 10px #ff2a3acc; }
[data-theme="neon"] .logo-a { color: #ffffff; text-shadow: 0 0 10px #ff2a3a99; }
[data-theme="neon"] h3, [data-theme="neon"] h4 { text-shadow: 0 0 10px #ff2a3a40; }
[data-theme="neon"] input:focus, [data-theme="neon"] select:focus, [data-theme="neon"] textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 12px #ff2a3a55; outline: none; }
[data-theme="neon"] .badge.ok { box-shadow: 0 0 8px #39ff9f55; }
[data-theme="neon"] .badge.warn { box-shadow: 0 0 8px #ffd23f55; }
[data-theme="neon"] ::selection { background: #ff5a1f55; }
.mc-net-r { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.mc-net-r small { text-align: right; }

/* ---------- чат с игроками ---------- */
#chFab { position:fixed; right:18px; bottom:18px; width:52px; height:52px; border-radius:50%; border:1px solid var(--line); background:var(--bg3); color:var(--text); font-size:22px; cursor:pointer; z-index:60; box-shadow:0 6px 20px rgba(0,0,0,.35); }
#chFab.pulse { background:var(--accent); color:var(--accent-ink); animation:chPulse 1.4s infinite; }
#chFab i { position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#ef4444; color:#fff; font:700 12px/20px sans-serif; font-style:normal; }
@keyframes chPulse { 0%,100% { box-shadow:0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow:0 0 0 10px rgba(239,68,68,0); } }
#chWin { position:fixed; right:18px; bottom:80px; width:min(620px, calc(100vw - 32px)); height:min(520px, calc(100vh - 110px)); display:flex; flex-direction:column; background:var(--bg2); border:1px solid var(--line); border-radius:12px; box-shadow:0 16px 50px rgba(0,0,0,.45); z-index:61; overflow:hidden; }
#chWin .ch-h { display:flex; gap:8px; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); }
#chWin .ch-h a { cursor:pointer; padding:0 4px; }
#chWin .ch-body { flex:1; display:flex; min-height:0; }
#chWin .ch-pcs { width:190px; border-right:1px solid var(--line); overflow:auto; }
#chWin .ch-pc { display:block; padding:8px 10px; border-bottom:1px solid var(--line); cursor:pointer; position:relative; color:var(--text); text-decoration:none; }
#chWin .ch-pc.on { background:var(--bg4); }
#chWin .ch-pc i { position:absolute; right:8px; top:8px; background:#ef4444; color:#fff; border-radius:9px; padding:0 6px; font:700 11px/18px sans-serif; font-style:normal; }
#chWin .ch-pc .small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#chWin .ch-conv { flex:1; display:flex; flex-direction:column; min-width:0; }
#chWin .ch-title { padding:8px 12px; font-weight:600; border-bottom:1px solid var(--line); }
#chWin .ch-list { flex:1; overflow:auto; padding:10px; display:flex; flex-direction:column; gap:6px; }
#chWin .ch-m { max-width:80%; padding:7px 10px; border-radius:10px; background:var(--bg3); align-self:flex-start; overflow-wrap:anywhere; }
#chWin .ch-m.staff { align-self:flex-end; background:var(--accent); color:var(--accent-ink); }
#chWin .ch-m.staff .muted { color:inherit; opacity:.75; }
#chWin .ch-in { display:flex; gap:6px; padding:8px; border-top:1px solid var(--line); }
#chWin .ch-in input { flex:1; }
#chWin .err { padding:0 10px 6px; }
@media (max-width:600px) { #chWin .ch-pcs { width:110px; } }

/* экран ПК в отдельном окне (?rv=ПК) */
body.rv-solo #app, body.rv-solo #chFab, body.rv-solo #chWin { display: none !important; }
body.rv-solo .rv-dlg { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: 0; margin: 0; }
body.rv-solo .rv-dlg::backdrop { background: #000; }

#cfText { white-space: pre-line; }

/* DataFix: кнопки и настройки */
.dr-c .btn { flex: none; align-self: center; }
.dr-set { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.dr-opt { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.dr-opt input { width: auto; margin-top: 3px; }
.dr-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dr-row select { width: auto; margin: 0; }
.dr-btns { display: flex; gap: 6px; flex: none; align-self: center; flex-wrap: wrap; justify-content: flex-end; }
.dr-hid { margin-top: 10px; } .dr-hid summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
.dr-hid .dr-c { opacity: .7; }

/* абонементы: массовое редактирование */
.pk-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; border: 1px dashed var(--line, #444); border-radius: 8px; position: sticky; top: 0; z-index: 2; background: var(--bg2, #1b1f27); }
.pk-bulk b { font-weight: 600; color: var(--muted); }
.pk-bulk .pk-bulk-acts { display: none; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-bulk.on { border-style: solid; border-color: var(--accent, #4c8dff); }
.pk-bulk.on b { color: var(--text); }
.pk-bulk.on .pk-bulk-acts { display: flex; }
.btn.ghost.danger { background: transparent; color: #ff6b6b; border-color: #b62324; }
#pkTable tr.pk-sel td { background: color-mix(in srgb, var(--accent, #4c8dff) 12%, transparent); }
.pk-img { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; border: 1px dashed var(--line, #555); background: center/cover no-repeat; cursor: pointer; color: var(--muted); font-size: 18px; text-decoration: none; }
.pk-img:hover { border-color: var(--accent, #4c8dff); }
.pk-dirty { color: #f5b041; font-size: 13px; margin-left: 8px; }

/* ===== Зоны и тарифы (10.11.2026) ===== */
.side nav a .ico svg { display: block; }
.zt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .zt-cols { grid-template-columns: 1fr; } }
.zt-block { max-width: none; }
.zn-list { margin: 10px 0; }
.zn-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.zn-row:hover { background: var(--rowh); }
.zn-lvl { font-size: 11px; letter-spacing: .06em; color: var(--muted); min-width: 78px; }
.zn-name { flex: 1; min-width: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; vertical-align: middle; }
.icon-btn { padding: 4px 6px; line-height: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.csw { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--bg2); }
.csw.on { border-color: var(--text); } #pkPage a, #zt-zones a { color: var(--accent); text-decoration: none; }
.stepper { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { padding: 4px 10px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; user-select: none; font-size: 13px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ta-per { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.ta-per select { width: auto; }
.tg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1200px) { .tg-wrap { grid-template-columns: 1fr; } }
.tg-main, .tg-side { max-width: none; }
.tg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tg-head h4 { margin: 0; }
.tg-scroll { overflow: auto; max-height: calc(100vh - 230px); border: 1px solid var(--line); border-radius: 8px; }
table.tg { border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.tg th { position: sticky; background: var(--bg3); z-index: 2; padding: 4px 6px; font-weight: 600; white-space: nowrap; }
table.tg thead tr:first-child th { top: 0; }
table.tg thead tr:nth-child(2) th { top: 27px; }
table.tg th.tg-type { font-weight: 400; color: var(--muted); min-width: 56px; border-left: 1px solid var(--line); }
table.tg th.tg-zone { border-left: 1px solid var(--line); }
table.tg td.tg-hour, table.tg th.tg-hour { position: sticky; left: 0; background: var(--bg3); z-index: 1; color: var(--muted); padding: 0 8px; white-space: nowrap; }
table.tg th.tg-hour { z-index: 3; }
table.tg tr.tg-day td { background: var(--bg4); font-weight: 600; padding: 4px 8px; text-transform: capitalize; position: sticky; left: 0; }
table.tg td.tg-c { height: 18px; border-left: 1px solid var(--line); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); cursor: pointer; }
table.tg td.tg-c:hover { outline: 2px solid var(--text); outline-offset: -2px; }
.tf-card { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.tf-card.tf-def input { width: 90px; }
.dlg a { color: var(--accent); text-decoration: none; } .dlg a:hover { text-decoration: underline; }

/* ===== Пользователи (как в Senet) ===== */
.us-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 16px 0; }
.us-stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 150px; }
.us-stat small { display: block; color: var(--muted); font-size: 12px; }
.us-stat b { font-size: 20px; }
#usAll .bar select { width: auto; }
tr.us-row { cursor: pointer; }
.us-pager { padding: 10px 16px; display: flex; gap: 8px; align-items: center; }
.up-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.up-head a { color: var(--accent); text-decoration: none; }
.up-title { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.up-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.up-tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.up-tile small { color: var(--muted); }
.up-tile b { font-size: 20px; }
.up-tile a { color: var(--accent); text-decoration: none; font-size: 13px; margin-top: 4px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; }
.pill.err { background: color-mix(in srgb, var(--err) 20%, transparent); color: var(--err); }
#usTabs, #ztTabs { flex-wrap: nowrap; overflow-x: auto; } #usTabs a, #ztTabs a { white-space: nowrap; }
.pk-card, .pk-colh { cursor: pointer; } .pk-card:hover { background: var(--rowh); } th.pk-colh { max-width: 90px; overflow: hidden; text-overflow: ellipsis; } #pkPage .zt-block label { display: block; margin-top: 6px; }

/* ===== Настройки как в Senet: дерево слева, страница подраздела справа ===== */
.set-nav { min-width: 250px; max-width: 270px; gap: 1px; max-height: calc(100vh - 90px); overflow-y: auto; top: 10px; }
.set-search { margin: 0 0 8px; }
.set-grp { font-size: 12px; color: var(--muted); padding: 12px 10px 4px; letter-spacing: .02em; }
.set-nav a { padding: 7px 14px 7px 22px; font-size: 13.5px; border-radius: 8px; }
.set-body { padding: 16px 24px 0; min-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.set-title { padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.set-title h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 24px; align-items: center; padding: 14px 0; }
.set-row.set-wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.set-l b { font-weight: 500; display: block; margin-bottom: 2px; }
.set-c { display: flex; justify-content: flex-end; align-items: center; }
.set-c > input, .set-c > select { width: 100%; min-width: 0 !important; }
label.sw2 { display: inline-block !important; margin: 0 !important; cursor: pointer; }
.set-step { display: inline-flex; align-items: center; gap: 4px; }
.set-step input { width: 80px !important; text-align: center; }
.set-step .btn { padding: 4px 10px; font-size: 16px; line-height: 1; }
.set-money { display: flex; width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.set-money input { flex: 1; border: 0 !important; border-radius: 0 !important; min-width: 0; }
.set-money span { padding: 0 12px; display: flex; align-items: center; background: var(--bg3); color: var(--muted); }
.set-save { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0; background: var(--bg2); border-top: 1px solid var(--line); justify-content: center; }
@media (max-width: 900px) { .set-wrap { flex-direction: column; } .set-nav { max-width: none; width: 100%; max-height: 260px; } .set-row { grid-template-columns: 1fr; } .set-c { justify-content: flex-start; } }

/* ===== Статистика ===== */
#sect-stats .bar select { width: auto; }
.sx-kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-kpis small { font-size: 12px; color: var(--muted); font-weight: 400; }
.sx-chart { width: 100%; }
.sx-svg { width: 100%; height: 260px; display: block; overflow: visible; }
.sx-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx-lbl { fill: var(--muted); font-size: 11px; }
.sx-area { fill: color-mix(in srgb, var(--accent) 28%, transparent); }
.sx-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sx-bar { fill: var(--accent); opacity: .85; } .sx-bar:hover { opacity: 1; }
.sx-ico { display: inline-block; width: 28px; height: 40px; border-radius: 4px; background-size: cover; background-position: center; vertical-align: middle; }

/* ===== Dashboard ===== */
.db-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 16px 16px; }
@media (max-width: 1100px) { .db-grid { grid-template-columns: 1fr; } }
.db-card { max-width: none; margin: 0; }
.db-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.db-bar { display: grid; grid-template-columns: 22px minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; }
.db-n { color: var(--muted); font-size: 12px; text-align: right; }
.db-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-track { height: 10px; background: var(--bg3); border-radius: 6px; overflow: hidden; }
.db-track i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.db-dot { fill: var(--bg2); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.db-svg { height: auto !important; max-height: 280px; } .db-svg .sx-lbl { font-size: 12px; }

/* ===== Карта как в Senet ===== */
.map-modes { display: inline-flex; margin: 0 0 0 14px; border: 0; }
.map-modes a { padding: 6px 14px; }
.map-load { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.05; margin: 0 6px; }
.map-load small { font-size: 11px; color: var(--muted); }
.map-load b { font-size: 22px; font-weight: 500; } .map-load b span { color: var(--muted); font-weight: 400; }
#mapArea.senet .mpc { background: none !important; border: 0 !important; box-shadow: none !important; width: 68px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; cursor: pointer; border-radius: 10px; }
#mapArea.senet .mpc.sel { outline: 2px solid var(--accent); outline-offset: 2px; }
.smt { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.smt-scr { width: 50px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #fff; background: #3a4352; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); transition: filter .15s; }
.mpc:hover .smt-scr { filter: brightness(1.15); }
.smt-bar { width: 30px; height: 3px; border-radius: 2px; background: transparent; }
.st-free .smt-scr { background: #2f9e44; }
.st-busy .smt-scr { background: #6b7a99; }
.st-off .smt-scr, .st-disabled .smt-scr { background: #262c36; color: #7d8796; }
.st-booting .smt-scr { background: #2f9e44; opacity: .55; animation: smtBlink 1.4s infinite; }
.st-super .smt-scr { background: #c27c0e; }
.mpc.repair .smt-scr { background: repeating-linear-gradient(135deg, #7a2b2b 0 6px, #5c2222 6px 12px); }
@keyframes smtBlink { 50% { opacity: .9; } }
.smt-dot { position: absolute; top: 2px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.smt-low { position: absolute; top: 2px; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.smt-fix { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 8px; background: #0ea5e9; animation: smtFix 1.4s ease-in-out infinite; }
@keyframes smtFix { 50% { opacity: .45; } }
#mapArea.senet .mpc-s { font-size: 11px; color: var(--muted); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.map-legend i.st-free { background: #2f9e44 !important; } .map-legend i.st-busy { background: #6b7a99 !important; } .map-legend i.st-off { background: #262c36 !important; }
.map-pop { position: fixed; z-index: 60; width: 300px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px #0008; pointer-events: none; }
.mp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.mp-login { font-size: 18px; font-weight: 600; } .mp-name { color: var(--muted); }
.mp-zone { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mp-zone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zc); }
.mp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.mp-g small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.mp-bal { display: inline-block; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.mp-bon { color: #f2b134; }
.mp-rep { margin-top: 10px; padding: 6px 8px; border-radius: 6px; background: #7a2b2b55; font-size: 12.5px; }

/* ===== Касса как в Senet ===== */
.cs-senet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 14px; padding: 0 16px 16px; align-items: start; }
@media (max-width: 1100px) { .cs-senet { grid-template-columns: 1fr; } }
.cs-left, .cs-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cs-senet .cs-b { margin: 0; } .cs-senet .form-card { max-width: none; margin: 0; }
.cs-ltabs { margin: 0; }
.cs-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg3); margin-bottom: 12px; }
.cs-modes a { text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.cs-modes a.on { background: var(--accent); color: var(--accent-ink); }
.cs-who { margin: 8px 0; }
.cs-who-n { margin-bottom: 6px; } .cs-who-b { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); } .cs-who-b b { color: var(--text); }
.cs-paybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cs-paybtns .btn { padding: 12px; font-size: 15px; }
.cs-sale-top { display: flex; gap: 8px; } .cs-sale-top .search { flex: 1; } .cs-sale-top select { width: auto; }
.cs-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cs-foot .btn { padding: 10px 26px; }
.cs-rev { display: flex; flex-direction: column; gap: 10px; }
.cs-rev-h { display: flex; justify-content: space-between; align-items: baseline; } .cs-rev-h small { color: var(--muted); } .cs-rev-h b { font-size: 24px; }
.cs-rev .cs-kpi { grid-template-columns: repeat(2, 1fr); }
.cs-feed { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.cs-rc { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--bg3); }
.cs-rc.off { opacity: .55; }
.cs-rc-t { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.cs-rc-d { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; } .cs-rc-d b { white-space: nowrap; }
.cs-rc-a { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.cs-feed-card h4 { margin-top: 0; }

/* ===== Сеть клуба ===== */
.nw-devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding: 0 16px 14px; }
.nw-dev { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.nw-dev.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.nw-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .nw-h b { font-size: 16px; }
.nw-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; margin-top: 4px; } .nw-kv span { color: var(--muted); }
.nw-help { font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.nw-help.err { background: color-mix(in srgb, var(--err) 14%, transparent); }
.nw-btns { display: flex; gap: 8px; margin-top: 4px; }
.pill.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.nw-grp td { background: var(--bg3); font-weight: 600; font-size: 12px; color: var(--muted); }
tr.nw-bad td { background: color-mix(in srgb, var(--err) 10%, transparent); }
.nw-spark .sp-ok { fill: var(--accent); } .nw-spark .sp-loss { fill: var(--err); opacity: .7; }
.nw-evs { display: flex; flex-direction: column; gap: 4px; }
.nw-ev { display: grid; grid-template-columns: 150px 80px 1fr; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--bg2); border-left: 3px solid var(--line); font-size: 13px; }
.nw-ev.bad { border-left-color: var(--err); } .nw-ev.warn { border-left-color: var(--warn); } .nw-ev.info { border-left-color: var(--ok); }
.nw-evt { color: var(--muted); } .nw-ev.bad .nw-evl { color: var(--err); } .nw-ev.warn .nw-evl { color: var(--warn); } .nw-ev.info .nw-evl { color: var(--muted); }
/* показать пароль (pwreveal.js) */
.pw-wrap { position: relative; display: block; } .pw-wrap.inl { display: inline-block; vertical-align: middle; }
.pw-wrap > input { width: 100%; box-sizing: border-box; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: none; min-width: 0; }
.pw-eye:hover { color: var(--text, inherit); background: var(--bg2); } .pw-eye svg { width: 18px; height: 18px; }
.hq-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 10px; }
.hq-bar span { height: 100%; transition: width .6s; }
.hq-iscsi { background: var(--accent); } .hq-hyb { background: var(--warn); } .hq-free { background: transparent; }
.hq-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.hq-kv { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: 4px 12px; font-size: 13px; }
.hq-kv span { color: var(--muted); }
.hq-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.hq-set label span { display: block; }
@media (max-width: 700px) { .hq-kv { grid-template-columns: auto 1fr; } }
.nw-pr { padding: 10px 12px; border-radius: 10px; background: var(--bg2); border-left: 3px solid var(--line); margin-bottom: 6px; }
.nw-pr.bad { border-left-color: var(--err); } .nw-pr.warn { border-left-color: var(--warn); } .nw-pr.ok { border-left-color: var(--ok); }
.nw-kb { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; }
.nw-kb summary { cursor: pointer; } .nw-kb ul, .nw-kb ol { margin: 4px 0 8px 18px; padding: 0; } .nw-kb p { margin: 8px 0 2px; }
.nu-info { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--bg3); }

/* ===== Полосы прокрутки в стиле интерфейса (вся панель, все темы) ===== */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 35%, transparent); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.dr-grp { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.smt-acc { position: absolute; bottom: 14px; right: 4px; font-style: normal; font-size: 12px; line-height: 1; filter: drop-shadow(0 0 2px #000); }
.mp-acc { margin-top: 10px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.mp-acc.engineer { background: color-mix(in srgb, var(--warn) 22%, transparent); }

/* ===== Цвета карты (свои у клуба: «Карта» → «🎨 Цвета») ===== */
#sect-map { --c-free: #2f9e44; --c-busy: #6b7a99; --c-off: #262c36; --c-booting: #2f9e44; --c-super: #c27c0e; --c-repair: #b33a3a; --c-staff: #3b82f6; --c-engineer: #f59e0b; }
#mapArea.senet .st-free .smt-scr { background: var(--c-free); }
#mapArea.senet .st-busy .smt-scr { background: var(--c-busy); }
#mapArea.senet .st-off .smt-scr, #mapArea.senet .st-disabled .smt-scr { background: var(--c-off); }
#mapArea.senet .st-booting .smt-scr { background: var(--c-booting); }
#mapArea.senet .st-super .smt-scr { background: var(--c-super); }
#mapArea.senet .mpc.repair .smt-scr { background: repeating-linear-gradient(135deg, var(--c-repair) 0 6px, color-mix(in srgb, var(--c-repair) 70%, #000) 6px 12px); }
#mapArea.senet .mpc.acc-staff .smt-scr { box-shadow: 0 0 0 2px var(--c-staff), inset 0 -3px 0 rgba(0,0,0,.25); }
#mapArea.senet .mpc.acc-engineer .smt-scr { box-shadow: 0 0 0 2px var(--c-engineer), inset 0 -3px 0 rgba(0,0,0,.25); }
.map-legend i.st-free { background: var(--c-free) !important; } .map-legend i.st-busy { background: var(--c-busy) !important; }
.map-legend i.st-off { background: var(--c-off) !important; } .map-legend i.st-booting { background: var(--c-booting) !important; }
.map-legend i.st-super { background: var(--c-super) !important; } .map-legend i.st-repair { background: var(--c-repair) !important; }
.map-legend i.acc-staff { background: var(--c-staff) !important; } .map-legend i.acc-engineer { background: var(--c-engineer) !important; }
.mc-colors { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; margin: 10px 0; }
.mc-colors input[type=color] { width: 48px; height: 30px; padding: 0; border-radius: 6px; cursor: pointer; }
#sect-map { --c-booked: #0ea5e9; }
#mapArea.senet .mpc.booked .smt-scr { background: repeating-linear-gradient(45deg, var(--c-booked) 0 7px, color-mix(in srgb, var(--c-booked) 75%, #000) 7px 14px); }
.map-legend i.booked { background: var(--c-booked) !important; }
.smt-bk { position: absolute; top: 0; left: 4px; font-style: normal; font-size: 12px; filter: drop-shadow(0 0 2px #000); }
.mp-bk { margin-top: 10px; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; background: color-mix(in srgb, var(--c-booked, #0ea5e9) 22%, transparent); }
.mp-rp { margin-top: 6px; font-size: 12px; }
/* уведомления персоналу */
#noticeBox { position: fixed; top: 60px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(380px, 92vw); }
.ntc { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px #0007; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.ntc b { display: block; margin-bottom: 2px; } .ntc .x { cursor: pointer; color: var(--muted); margin-left: auto; }

/* подписка клуба и вкладка «Клубы» (subs.js) */
.subs-bar { padding: 9px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.subs-bar.warn { background: color-mix(in srgb, var(--warn) 16%, var(--bg2)); color: var(--warn); }
.subs-bar.err { background: color-mix(in srgb, var(--err) 18%, var(--bg2)); color: var(--err); }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.hb-card { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hb-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .hb-h b { font-size: 16px; }
.hb-ed { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; } .hb-ed label { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 600px) { .hb-grid { grid-template-columns: 1fr; } .hb-ed { grid-template-columns: 1fr; } }
/* 04.12.2026: планшет/ноутбук с маленькой высотой экрана — левое меню выше экрана: прокручивается само,
   панель ровно на видимую высоту (100dvh: без адресной строки и панели Android), низ не обрезается */
#app { height: 100vh; height: 100dvh; }
.side { min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.side nav { flex: none; }
.main { min-height: 0; }
@media (min-width: 761px) and (max-height: 820px) {
  .side nav { gap: 1px; padding: 4px 6px; }
  .side nav a { padding: 7px 6px; }
  .side .logo { padding-top: 6px; padding-bottom: 2px; }
}
@media (max-width: 760px) {
  #app { height: auto; min-height: 100dvh; }
  .side { overflow-x: auto; overflow-y: hidden; }
}
