/* Панель «Гонка» — «жидкое стекло» (редизайн 06.11.2026, вторая версия: спокойнее, монохром).
   Подключается после app.css: раскладка там, здесь — внешний вид.
   Как у Apple: стекло прозрачное (без размытия, тонировки, затемнения), его видно по линзе на кромке
   (фон под ребром преломляется — карты считает js/glass.js под размер каждой плашки) и по блику на ребре.
   Стекло — только у элементов управления и плашек; область содержимого стеклом не накрыта, иначе
   вложенное стекло не видит сцену и выглядит плоским. Цвет — только по делу: фиолетовый у главного действия,
   статусы ПК — точкой. Всё остальное — белый на графите. */

:root {
  --scene: #070708;
  --text: #f2f2f4;
  --text-2: rgba(242, 242, 244, .72);
  --text-3: rgba(242, 242, 244, .46);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --hover: rgba(255, 255, 255, .05);
  --sel: rgba(255, 255, 255, .11);

  --violet: #a61cff;
  --violet-hi: #c58bff;
  --red: #ff5a63;

  --free: #4ade80;
  --busy: #5cc8f2;
  --interrupted: #f5b544;
  --offline: #6f6f76;

  /* Стекло: заливки почти нет, видна кромка, блик сверху и мягкая тень на сцене */
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 50%, rgba(255, 255, 255, .02));
  --g-rim: linear-gradient(135deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 20%, rgba(255, 255, 255, .03) 50%, rgba(255, 255, 255, .07) 78%, rgba(255, 255, 255, .26) 100%);
  --g-depth: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .04);
  --g-drop: 0 18px 40px -24px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .35);

  /* Главное действие — фиолетовый гель (одно место цвета на экране) */
  --gel: linear-gradient(180deg, #b24dff 0%, #8f1fe6 55%, #7414c4 100%);
  --gel-depth: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(0, 0, 0, .22);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.2, .4, 1);

  /* Переменные app.css — под тёмную сцену */
  --page: var(--scene);
  --frame: transparent;
  --frame-edge: transparent;
  --glow: var(--violet);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --plate: rgba(255, 255, 255, .05);
  --plate-2: rgba(255, 255, 255, .035);
  --plate-text: var(--text);
  --muted: var(--text-3);
  --danger: var(--red);
}

html, body { background: var(--scene); color: var(--text); }
body { color-scheme: dark; }
::selection { background: rgba(166, 28, 255, .4); color: #fff; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- сцена ---------- */

.scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% -12%, rgba(255, 255, 255, .075), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgba(255, 255, 255, .03), transparent 70%),
    var(--scene);
}
.scene i { position: absolute; display: block; }
/* Одно тусклое фирменное свечение, плывёт очень медленно */
.scene .glow {
  width: 64vmax; height: 64vmax; left: 18vw; top: -10vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 40, 255, .2), rgba(150, 40, 255, .06) 55%, transparent 75%);
  animation: glow-drift 60s var(--ease) infinite alternate; will-change: transform;
}
/* glass.js calm(): на переходах и прокрутке свечение стоит — стеклу не надо пересчитывать преломление каждый кадр */
.calm .scene .glow { animation-play-state: paused; }
@keyframes glow-drift { to { transform: translate(-14vw, 22vh) scale(1.1); } }
/* Сетка точек: тихая фактура, на кромках стекла видно, как она изгибается */
.scene .dots {
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .13) 1px, transparent 1.6px);
  background-size: 22px 22px; background-position: 11px 11px;
  -webkit-mask: radial-gradient(120% 90% at 50% 30%, #000 30%, rgba(0, 0, 0, .35) 75%, transparent 100%);
  mask: radial-gradient(120% 90% at 50% 30%, #000 30%, rgba(0, 0, 0, .35) 75%, transparent 100%);
}
.scene .grain {
  inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#app { position: relative; z-index: 1; }
.toast-wrap { z-index: 80; }

/* ---------- стекло: общий рецепт ---------- */

.top, .nav, .box, .card, .stat, .cc-stat, .pc-tile, .sheet, .booking-row, .tour-row, .game-tile, .upd-pc, .gallery-item,
.bulk-bar, .alert, .search, .role-pill, .btn, .icon-btn, .pill, .pc-pick-btn, .seg, .tl-chip, .chip, .cover-pick-item, .total {
  position: relative;
  background: var(--g-fill);
  border: 0;
  box-shadow: var(--g-depth), var(--g-drop);
  color: var(--text);
}
/* Кромка: тонкий градиентный ободок (ярче сверху-слева и снизу-справа, как у толстого стекла) */
.top::before, .nav::before, .box::before, .card::before, .stat::before, .cc-stat::before, .pc-tile::before, .sheet::before,
.booking-row::before, .tour-row::before, .game-tile::before, .upd-pc::before, .gallery-item::before, .bulk-bar::before,
.alert::before, .search::before, .role-pill::before, .btn::before, .icon-btn::before, .pill::before, .pc-pick-btn::before,
.seg::before, .tl-chip::before, .chip::before, .cover-pick-item::before, .total::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: var(--g-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Там, где работает настоящее преломление (Chromium), блик на ребре рисует фильтр — CSS-кромку делаем тише */
.lg .lg-on::before { opacity: .55; }
.lg .lg-on { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .006) 50%, rgba(255, 255, 255, .012)); }

/* Блик за курсором (координаты ставит js/app.js) */
.btn::after, .pc-tile::after, .card::after, .stat::after, .booking-row::after, .tour-row::after, .upd-pc::after, .cc-stat::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, .08), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn:hover::after, .pc-tile:hover::after, .card:hover::after, .stat:hover::after, .booking-row:hover::after,
.tour-row:hover::after, .upd-pc:hover::after, .cc-stat:hover::after { opacity: 1; }
.btn > *, .card > *, .pc-tile > *, .stat > *, .box > * { position: relative; z-index: 2; }
.pc-tile > .pc-check, .pc-tile > .booking-badge { position: absolute; }

/* ---------- оболочка ---------- */

.frame { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; min-height: 100dvh; }
.top { border-radius: 24px; margin: 12px 12px 0; padding: 12px 14px; z-index: 40; } /* выше страницы: иначе список поиска клиентов уходил под содержимое (09.11) */
.logo { color: #fff; background: none; filter: none; letter-spacing: .02em; }
.search { border-radius: 999px; padding: 0 16px; color: var(--text-2); }
.search input { color: var(--text); font: 500 13px/1 var(--font-text); }
.search input::placeholder { color: var(--text-3); text-transform: none; }
.search-results { background: rgba(18, 18, 21, .97); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px -20px #000; }
.search-results button { color: var(--text); border-bottom: 1px solid var(--line); }
.search-results button:hover, .search-results button:focus-visible { background: var(--hover); }
.role-pill { border-radius: 999px; color: var(--text); }

.nav { margin: 0 10px 10px; border-radius: 22px; padding: 6px; }
.nav a, .nav-more { color: var(--text-3); border-radius: 16px; transition: color .25s var(--ease), background .35s var(--ease); position: relative; z-index: 2; }
.nav a:hover, .nav-more:hover { color: var(--text); background: var(--hover); }
.nav a[aria-current='page'], .nav-more.on { color: #fff; background: var(--sel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.main { padding: 10px 12px 14px; }

/* Область содержимого — не стекло: всё лежит прямо на сцене, стеклянные только плашки внутри */
.main > .box { background: none; box-shadow: none; }
.main > .box::before { display: none; }

/* ---------- плашки ---------- */

.box { border-radius: 28px; padding: 18px; }
.card { border-radius: 22px; padding: 18px; }
h1, h2, h3 { color: var(--text); letter-spacing: .005em; }
h1 { font-size: 22px; font-weight: 700; }
a { color: var(--text); }
.muted, .small.muted { color: var(--text-3); }
.card a:not(.btn), .link-like { color: var(--text); text-decoration-color: rgba(255, 255, 255, .35); }

/* ---------- кнопки ---------- */

.btn {
  border-radius: 999px; color: var(--text); font-weight: 600; letter-spacing: .01em; overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s var(--ease), color .2s;
}
.btn:hover { filter: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }
.btn:disabled { opacity: .36; transform: none; }
.btn-dark, .btn[aria-pressed='true'].btn-dark {
  background: var(--gel); color: #fff;
  box-shadow: var(--gel-depth), 0 8px 22px -12px rgba(166, 28, 255, .75);
}
.btn-dark:hover { box-shadow: var(--gel-depth), 0 12px 28px -12px rgba(166, 28, 255, .85); }
.btn-dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .18)); }
/* Опасное — не красная заливка, а стекло с красным текстом: спокойно, но однозначно */
.btn-danger { color: var(--red); }
.btn-danger:hover { color: #ff7c84; box-shadow: var(--g-depth), var(--g-drop), inset 0 0 0 1px rgba(255, 90, 99, .35); }
.btn-ghost { background: none; box-shadow: none; color: var(--text-2); }
.btn-ghost::before { opacity: 0; }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.main .btn-block { display: flex; width: min(100%, 360px); margin-inline: auto; }
.icon-btn { border-radius: 50%; color: var(--text); transition: transform .3s var(--spring); }
.icon-btn:hover { transform: rotate(90deg); }

/* Пилюли, сегменты: выбранное — светлее, без цвета */
.pill { border-radius: 999px; color: var(--text-2); }
.pill b { color: var(--text); }
.pill.on, a.pill[aria-current='page'] { background: var(--sel); color: #fff; }
.pill .n-free { color: var(--free); } .pill .n-busy { color: var(--busy); } .pill .n-interrupted { color: var(--interrupted); }
.pill .n-offline { color: var(--text-3); } .pill .n-maintenance { color: #f39a5b; } .pill .n-sleep { color: #a9bdf5; }
.seg { border-radius: 999px; padding: 3px; gap: 3px; overflow: visible; }
.seg button { border: 0 !important; border-radius: 999px; background: none; color: var(--text-2); transition: background .3s var(--ease), color .2s; position: relative; z-index: 2; }
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button[aria-pressed='true'] { background: var(--sel); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.pc-pick-btn { border-radius: 16px; color: var(--text-2); transition: transform .35s var(--spring), color .2s, background .3s; }
.pc-pick-btn:hover { transform: translateY(-1px); color: var(--text); filter: none; }
.pc-pick-btn[aria-selected='true'] { background: var(--sel); color: #fff; }

/* ---------- поля: короткие — по содержимому ---------- */

.input, select.input, textarea.input, .cs-btn {
  width: min(100%, 340px);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover, .cs-btn:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus, .cs-btn:focus-visible, .cs-btn.open {
  border-color: rgba(197, 139, 255, .8); background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 4px rgba(166, 28, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
textarea.input { width: min(100%, 640px); }
.input[type=number], .opt-num .input { width: 120px; }
.input[inputmode=decimal] { width: 180px; }
.input[type=date] { width: 190px; }
.input[type=time] { width: 140px; }
.input[type=search] { width: min(100%, 440px); }
.input[type=date]::-webkit-calendar-picker-indicator, .input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
.field > span, .opt-label { color: var(--text-3); letter-spacing: .02em; }
.cs-caret { border-color: var(--text-2); }
.cs-pop { background: rgba(18, 18, 21, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -18px #000; }
.cs-opt { color: var(--text-2); }
.cs-opt.active { background: rgba(255, 255, 255, .07); color: #fff; }
.check { color: var(--text); }
.switch span { background: rgba(255, 255, 255, .14); }
.switch input:checked + span { background: var(--gel); }
.pass-eye { min-height: 32px; }
.secret { background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); color: var(--text); }

/* Галочки — стеклянные; отмеченная — фиолетовый гель с белой галкой */
input[type=checkbox]:not(.switch input) {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 7px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  display: inline-grid; place-items: center; vertical-align: -5px;
  transition: background .25s var(--ease), border-color .25s, box-shadow .3s var(--ease), transform .35s var(--spring);
}
input[type=checkbox]:not(.switch input):hover { border-color: rgba(197, 139, 255, .8); }
input[type=checkbox]:not(.switch input):checked { background: var(--gel); border-color: rgba(255, 255, 255, .45); box-shadow: var(--gel-depth); }
input[type=checkbox]:not(.switch input):checked::after {
  content: ''; width: 8px; height: 4px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
input[type=checkbox]:not(.switch input):focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
.check input[type=checkbox] { margin-top: 1px; }
.pc-tile .pc-check { z-index: 3; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 8px; background: rgba(16, 16, 19, .92); }
.pc-tile .pc-check:hover { transform: scale(1.08); }

/* ---------- цифры ---------- */

.stat { border-radius: 20px; padding: 16px 18px; }
.stat .k { color: var(--text-3); opacity: 1; letter-spacing: .03em; }
.stat .v { font-size: 22px; font-weight: 700; color: #fff; }
.cc-stat { border-radius: 18px; color: var(--text); }
.cc-stat .opt-label { color: var(--text-3); }
.cc-stat.ok b { color: var(--free); } .cc-stat.warn b { color: var(--interrupted); }
.total { color: #fff; border-radius: 18px; padding: 14px 18px; }
.total .sub { opacity: 1; color: var(--text-2); }

/* ---------- сообщения ---------- */

.alert, .alert.warn, .alert.err, .alert.ok { background: var(--g-fill); border: 0; border-radius: 18px; color: var(--text); }
.alert.warn { box-shadow: var(--g-depth), var(--g-drop), inset 3px 0 0 var(--interrupted); }
.alert.err { box-shadow: var(--g-depth), var(--g-drop), inset 3px 0 0 var(--red); }
.alert.ok { box-shadow: var(--g-depth), var(--g-drop), inset 3px 0 0 var(--free); }
.hint { background: rgba(245, 181, 68, .06); border: 1px solid rgba(245, 181, 68, .25); color: var(--text); border-radius: 14px; }
.warn-text, td.warn { color: #ff858c; }
.tag { background: rgba(255, 255, 255, .09); color: var(--text); }
.tag.ok { background: rgba(74, 222, 128, .14); color: var(--free); } .tag.warn { background: rgba(245, 181, 68, .14); color: var(--interrupted); }
.verdict { background: rgba(255, 255, 255, .07); color: var(--text-2); }
.verdict.ok { background: rgba(74, 222, 128, .13); color: var(--free); } .verdict.bad { background: rgba(255, 90, 99, .13); color: #ff858c; }

/* ---------- таблицы и списки ---------- */

table.data th { color: var(--text-3); border-bottom: 1px solid var(--line-2); }
table.data td { border-bottom: 1px solid var(--line); color: var(--text); }
table.data tr.click:hover td, table.data.clickable tbody tr:hover { background: var(--hover); }
.charges td { border-bottom: 1px solid var(--line); }
.list-item, button.pick, .pkg-edit { border-bottom: 1px solid var(--line); color: var(--text); }
button.pick:hover, a.list-item:hover { background: var(--hover); }
.kv dt { color: var(--text-3); }
.cc-foot { border-top: 1px solid var(--line); }
.cc-divider { color: var(--text-3); }
.cc-divider::before, .cc-divider::after { background: linear-gradient(90deg, transparent, var(--line-2), transparent); height: 1px; }

/* ---------- плитки ПК: стекло, статус — точкой и словом, без цветных ореолов ---------- */

.pc-tile { border-radius: 24px; padding: 0; transition: transform .45s var(--spring), box-shadow .4s var(--ease); }
.pc-tile .inner { border: 0; background: none; border-radius: inherit; padding: 14px 16px; color: var(--text); }
.pc-tile:hover { transform: translateY(-3px); }
.pc-tile:active { transform: translateY(-1px) scale(.985); }
.pc-tile[aria-pressed='true'] { box-shadow: var(--g-depth), var(--g-drop), 0 0 0 1.5px rgba(255, 255, 255, .7); }
.pc-tile.picked { box-shadow: var(--g-depth), var(--g-drop), 0 0 0 1.5px var(--violet-hi); }
.pc-tile .name { color: var(--text-2); font-weight: 600; letter-spacing: .04em; }
.pc-tile .who { color: var(--text); }
.pc-tile .status { color: var(--text); text-shadow: none; font-size: 13px; }
.pc-tile.free .status { color: var(--free); } .pc-tile.busy .status { color: var(--busy); } .pc-tile.interrupted .status { color: var(--interrupted); }
.pc-tile .status small { color: var(--text-3); }
.pc-tile .booking-badge { background: rgba(245, 181, 68, .16); color: var(--interrupted); box-shadow: inset 0 0 0 1px rgba(245, 181, 68, .4); z-index: 3; }
.dot { box-shadow: none; }
.dot.free { background: var(--free); box-shadow: 0 0 8px rgba(74, 222, 128, .8); }
.dot.busy { background: var(--busy); box-shadow: 0 0 8px rgba(92, 200, 242, .8); animation: breathe 2.8s ease-in-out infinite; }
.dot.interrupted { background: var(--interrupted); }
@keyframes breathe { 50% { opacity: .55; } }

/* Нити между ПК и ток по ним (искру водит js/views/spark.js) */
.pc-map svg.track path { fill: none; opacity: 1; stroke-linecap: round; }
.pc-map svg.track path.wire { stroke: rgba(255, 255, 255, .13); stroke-width: 1.25; }
.pc-map svg.track .spark { filter: drop-shadow(0 0 3px rgba(80, 195, 255, .95)) drop-shadow(0 0 9px rgba(40, 150, 255, .6)); }
.pc-map svg.track .spark-tail { stroke-width: 2; stroke-linecap: round; }
.pc-map svg.track .spark-head { fill: #eefaff; }
/* Вспышка у ПК, куда пришла искра */
.pc-map svg.track .spark-zap {
  fill: rgba(120, 210, 255, .55); stroke: none;
  transform-box: fill-box; transform-origin: center;
  animation: zap .32s var(--ease) forwards;
}
/* Заряд у ПК перед вылетом после паузы: свечение нарастает и сжимается в точку старта */
.pc-map svg.track .spark-charge {
  fill: rgba(120, 210, 255, .6); stroke: none;
  transform-box: fill-box; transform-origin: center;
  animation: charge .28s ease-in forwards;
}
@keyframes charge { 0% { transform: scale(1.6); opacity: 0; } 70% { opacity: 1; } 100% { transform: scale(.35); opacity: 1; } }
@keyframes zap { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.detail .big-time { font-size: 40px; font-weight: 700; color: #fff; }
.meter-bar { background: rgba(255, 255, 255, .08); }
.meter-bar i { background: rgba(255, 255, 255, .8); box-shadow: none; }
.meter.warm .meter-bar i { background: var(--interrupted); }
.meter.hot .meter-bar i { background: var(--red); }
.spark svg { background: rgba(255, 255, 255, .02); }
.spark path.cpu { stroke: var(--violet-hi); } .spark .key.cpu::before { background: var(--violet-hi); }
.spark path.ram { stroke: var(--busy); } .spark .key.ram::before { background: var(--busy); }
.bulk-bar { border-radius: 20px; }

/* ---------- окна ---------- */

.sheet-back { background: rgba(4, 4, 5, .66); animation: fade .3s var(--ease); }
.sheet {
  border: 0; border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(30, 30, 34, .9), rgba(18, 18, 21, .94));
  box-shadow: var(--g-depth), 0 40px 80px -30px #000;
  animation: sheet-up .5s var(--spring);
}
.sheet .grab { background: rgba(255, 255, 255, .25); }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); } }
.toast {
  background: rgba(24, 24, 28, .96); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 44px -16px #000;
  animation: toast-in .45s var(--spring);
}
.toast.err { border-color: rgba(255, 90, 99, .45); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- прочее ---------- */

.booking-row, .tour-row { border-radius: 20px; transition: transform .4s var(--spring); }
.booking-row:hover, a.tour-row:hover { transform: translateY(-2px); }
.booking-row.soon { box-shadow: var(--g-depth), var(--g-drop), inset 3px 0 0 var(--interrupted); }
.booking-row.now { box-shadow: var(--g-depth), var(--g-drop), inset 3px 0 0 var(--free); }
.chip { border-radius: 999px; color: var(--text); padding: 3px 11px; }
.chip.on { background: rgba(74, 222, 128, .16); color: var(--free); }
.tl-chip { border-radius: 16px; }
.tl-chip span { color: var(--text-2); }
.tl-dur, .audit-count { background: rgba(255, 255, 255, .09); color: var(--text); }
.tl-list::before { background: var(--line-2); }
.tl-list li::before { box-shadow: 0 0 0 3px var(--scene); }
.audit-row { border-bottom: 1px solid var(--line); }
.audit-row.clickable:hover { background: var(--hover); }
.audit-day { border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.audit-row time, .audit-details, .audit-actor, .tl-list time, .tl-summary { color: var(--text-3); }
.cat-sessions .audit-mark, .tl-list li.tl-session::before { background: var(--text); }
.tone-bad .audit-title { color: #ff858c; } .tone-warn .audit-title { color: var(--interrupted); }
.game-tile, .gallery-item, .upd-pc { border-radius: 20px; overflow: hidden; }
.gallery-item .row { background: none; }
.gallery-item.on { box-shadow: var(--g-depth), 0 0 0 1.5px rgba(255, 255, 255, .7); }
.gallery-add, .tile-add { border: 1px dashed var(--line-2); color: var(--text-2); border-radius: 20px; transition: background .3s, border-color .3s, color .3s; }
.gallery-add:hover, .tile-add:hover { background: var(--hover); border-color: rgba(255, 255, 255, .4); color: #fff; }
.game-cover, .tour-noimg { background: rgba(255, 255, 255, .03); color: var(--text-3); }
.cover-pick-item { border-radius: 14px; }
.cover-pick-item:hover { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.upd-state { color: var(--text-2); } .upd-state.ok { color: var(--free); } .upd-state.warn { color: var(--interrupted); }
.empty { color: var(--text-3); }
.editor-canvas { background: #000; }
.editor-range input { accent-color: var(--violet); }
.report-settings > summary { color: var(--text-3); }

/* ---------- вход ---------- */

.login .box { padding: 28px 26px; border-radius: 32px; background: var(--g-fill); box-shadow: var(--g-depth), var(--g-drop); }
.login .box::before { display: block; }
.login .logo { font-size: 38px; }

/* ---------- появление ----------
   Только transform + opacity с fill-mode backwards: после окончания свойства не остаются на элементе —
   иначе обёртка с opacity отрезала бы стеклу сцену. */

.main > .box > * { animation: rise .6s var(--ease) backwards; }
.main > .box > *:nth-child(2) { animation-delay: .05s; } .main > .box > *:nth-child(3) { animation-delay: .1s; }
.main > .box > *:nth-child(4) { animation-delay: .15s; } .main > .box > *:nth-child(n+5) { animation-delay: .2s; }
/* Длинные списки (журнал цен, история): анимируем только первые блоки — десятки одновременных слоёв со стеклянной
   кромкой стоили 40 мс на кадр при переходе на страницу; нижние всё равно за краем экрана. */
.main > .box > *:nth-child(n+9) { animation: none; }
.pc-map .pc-tile { animation: rise .7s var(--spring) backwards; }
.pc-map .pc-tile.slot-2 { animation-delay: .06s; } .pc-map .pc-tile.slot-3 { animation-delay: .12s; } .pc-map .pc-tile.slot-4 { animation-delay: .18s; }
.pc-map .pc-tile.slot-5 { animation-delay: .24s; } .pc-map .pc-tile.slot-6 { animation-delay: .3s; }
.top, .nav { animation: rise .7s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- раскладка ---------- */

@media (max-width: 1023px) {
  .frame { height: 100%; }
  .nav { margin: 0 8px calc(8px + env(safe-area-inset-bottom)); padding: 5px; }
  .top { margin: 8px 8px 0; }
}
@media (max-width: 600px) {
  .frame { margin: 0; height: 100%; border-radius: 0; }
  .box { border-radius: 24px; padding: 14px; }
  .main > .box { padding: 6px 4px; }
  .card { padding: 14px; border-radius: 20px; }
  .pc-tile { border-radius: 20px; }
  .pc-tile .inner { padding: 12px; }
  .main { padding: 8px 8px 10px; }
  table.data tr { border-bottom: 1px solid var(--line); }
}
@media (min-width: 720px) {
  .sheet { border-radius: 30px; }
  @keyframes sheet-up { from { opacity: 0; transform: translateY(16px) scale(.96); } }
}
@media (min-width: 1024px) {
  .frame { grid-template-columns: 228px 1fr; gap: 0; }
  .top { margin: 16px 16px 14px; padding: 14px 18px; }
  .nav { margin: 0 0 16px 16px; padding: 10px; gap: 6px; border-radius: 26px; }
  .nav a { background: none; border: 0; height: 44px; padding: 0 14px; font-size: 11px; color: var(--text-2); }
  .nav a svg { width: 18px; height: 18px; }
  .nav a[aria-current='page'] { color: #fff; background: var(--sel); }
  .main { padding: 0 16px 16px 14px; }
  .main > .box { padding: 8px 10px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene i { animation: none !important; }
  .pc-map svg.track .spark { display: none; }
}

/* ---------- окно сессии (views/session.js) ---------- */

.ses-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 20px; background: var(--g-fill); box-shadow: var(--g-depth); position: relative;
}
.ses-head::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--g-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ses-place { font: 700 15px/1 var(--font-display); padding: 8px 12px; border-radius: 12px; background: var(--sel); white-space: nowrap; }
.ses-client { font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ses-total { font: 700 22px/1.1 var(--font-display); text-align: right; white-space: nowrap; }
.ses-total small { display: block; font: 500 11px/1.4 var(--font-text); color: var(--text-3); }
.ses-kv { grid-template-columns: repeat(2, auto 1fr); gap: 8px 16px; font-size: 13.5px; margin: 16px 2px 4px; }
.ses-kv dd { text-align: left; }
.ses-charges td { vertical-align: top; }
.tag-gap { margin-left: 8px; vertical-align: 1px; }
@media (max-width: 600px) {
  .ses-head { grid-template-columns: auto 1fr; }
  .ses-total { grid-column: 1 / -1; text-align: left; }
  .ses-kv { grid-template-columns: auto 1fr; }
  .ses-kv dd { text-align: right; }
}
/* Плитки цифр внутри окна (смена, клиент) — уже, чем на странице: значение мельче, слова не ломаются по буквам */
.sheet .stat .v { font-size: 17px; overflow-wrap: normal; word-break: normal; hyphens: auto; }

/* ---------- стопка выбранных мест (галочки на плитках, views/pcs.js) ----------
   Сколько мест выбрано — столько стеклянных плиток одного размера. Задние выглядывают сверху, каждая следующая
   чуть уже и бледнее; новая плитка «ложится» сверху, убранная — уходит вниз. */
.pc-stack { --k: 0; position: relative; padding-top: calc(var(--k) * 13px); transition: padding-top .45s var(--spring); }
.stack-layer {
  --i: 1;
  position: absolute; z-index: 1; left: calc(var(--i) * 14px); right: calc(var(--i) * 14px);
  top: calc((var(--k) - var(--i)) * 13px); height: calc(var(--i) * 13px + 26px);
  border-radius: 22px 22px 0 0; pointer-events: none;
  background: var(--stack-plate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 -6px 16px -10px rgba(0, 0, 0, .8);
  transition: left .45s var(--spring), right .45s var(--spring), top .45s var(--spring), height .45s var(--spring), opacity .3s var(--ease), transform .3s var(--ease);
  animation: layer-in .5s var(--spring) backwards;
}
.stack-layer::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px 1px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .06) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stack-layer.leaving { opacity: 0; transform: translateY(12px); }
@keyframes layer-in { from { opacity: 0; transform: translateY(14px) scaleX(.97); } }
/* Все плитки стопки — одно и то же стекло (как верхняя): одинаковая плотность, разница только в кромке и тени. */
.pc-stack { --stack-plate: linear-gradient(180deg, rgba(30, 30, 36, .9), rgba(17, 17, 21, .93)); }
.pc-stack .card.stack-top {
  position: relative; z-index: 2;
  background: var(--stack-plate);
  box-shadow: var(--g-depth), 0 18px 40px -20px #000;
}
.stack-top.bump { animation: stack-drop .5s var(--spring); }
@keyframes stack-drop { from { transform: translateY(-14px); opacity: .55; } }
.stack-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.stack-place {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 12px;
}
.stack-place b { font: 700 12px/1 var(--font-display); letter-spacing: .03em; }
.stack-x {
  width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--text-2);
  font-size: 14px; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.stack-x:hover { background: rgba(255, 90, 99, .2); color: #fff; }
.stack-x:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
.stack-actions { margin-top: 14px; }
.multi-start .multi-total { margin: 10px 0; }
@media (prefers-reduced-motion: reduce) { .stack-layer, .stack-top.bump { animation: none; transition: none; } }
.stack-mobile:not(:empty) { margin-top: 18px; }

/* Пакеты времени: сетка с переносом, в кнопке две строки — время и цена */
.pkg-row { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.pkg-row .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 8px 4px; border-radius: 18px; }
.pkg-row .pkg-time { font: 700 14px/1 var(--font-display); white-space: nowrap; }
.pkg-row .pkg-price { opacity: .8; font-size: 12px; white-space: nowrap; }
.pkg-row .pkg-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; opacity: .92; }

/* «подробнее» в карточке ПК: тихая текстовая кнопка со стрелкой, раскрывает техническое (нагрузка, питание, конфигурация) */
.more-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 8px 0;
  background: none; border: 0; border-top: 1px solid var(--line); color: var(--text-3);
  font: 600 11px/1 var(--font-display); letter-spacing: .04em; text-transform: lowercase; cursor: pointer;
  transition: color .2s var(--ease);
}
.more-toggle::after {
  content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--spring);
}
.more-toggle[aria-expanded='true']::after { transform: translateY(2px) rotate(-135deg); }
.more-toggle:hover { color: var(--text); }
.more-toggle:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; border-radius: 8px; }
.pc-tech.opening { animation: rise .45s var(--ease) backwards; }
.price-box:not([hidden]) { margin: 4px 0 0 30px; animation: rise .35s var(--ease) backwards; }

/* ---------- касса ---------- */

/* «Смена не открыта» — компактная плашка по содержимому, а не карточка на всю ширину */
.shift-closed-card { display: inline-flex; align-items: center; gap: 22px; padding: 16px 18px 16px 22px; max-width: 100%; }
.shift-closed-card b { display: block; font-size: 15px; margin-bottom: 3px; }

/* Сводка смены: три группы (деньги / сверка кассы / работа) вместо стены одинаковых плиток */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 12px; }
.rep-card {
  position: relative; padding: 16px 18px; border-radius: 20px; background: var(--g-fill); box-shadow: var(--g-depth);
  display: flex; flex-direction: column; gap: 6px;
}
.rep-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--g-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.rep-card .opt-label { margin-bottom: 2px; }
.rep-total { font: 700 30px/1.1 var(--font-display); color: #fff; margin-bottom: 8px; letter-spacing: -.01em; }
.rep-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rep-row span { color: var(--text-2); }
.rep-row b { font-weight: 700; color: var(--text); white-space: nowrap; }
.rep-diff.plus b { color: var(--interrupted); }
.rep-diff.minus b { color: #ff858c; }
.rep-diff.zero b { color: var(--free); }
.rep-card .small { margin-top: 4px; }
/* «Исправить кассу» — часть карточки выручки: внизу, по левому краю, отделена линией как ещё одна строка */
.rep-card .rep-fix { align-self: flex-start; margin-top: auto; }
.rep-money .rep-fix { margin-top: 10px; }
.rep-money { padding-bottom: 14px; }

/* Закрытие смены: пересчёт наличных — главный шаг, его нельзя «проскочить» глазами */
.cash-close { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.cash-count {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 16%, transparent), color-mix(in srgb, var(--violet) 6%, transparent));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--violet-hi) 70%, transparent), 0 14px 40px -22px var(--violet);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.cash-count.filled { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--free) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--free) 9%, transparent), transparent); }
.cash-count-head { display: flex; gap: 14px; align-items: flex-start; }
.cash-count-head b { display: block; font: 700 17px/1.25 var(--font-display); color: #fff; margin-bottom: 4px; }
.cash-count-step {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--font-display); color: #fff; background: var(--gel); box-shadow: var(--gel-depth);
}
.cash-count.filled .cash-count-step { background: var(--free); color: #0b0b0d; box-shadow: none; }
.cash-count-field {
  display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; padding: 8px 18px; border-radius: 16px;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line);
}
.cash-count-field:focus-within { box-shadow: inset 0 0 0 2px var(--violet-hi); }
.cash-count-input {
  width: 190px; border: 0; outline: 0; background: transparent; color: #fff; text-align: right;
  font: 700 34px/1.2 var(--font-display); letter-spacing: -.01em;
}
.cash-count-input::placeholder { color: rgba(255, 255, 255, .22); }
.cash-count-cur { font: 700 24px/1 var(--font-display); color: var(--text-2); }
.cash-note summary { cursor: pointer; color: var(--text-2); font-size: 13px; width: max-content; }
.cash-note summary:hover { color: var(--text); }
.cash-note textarea { margin-top: 8px; min-height: 0; }
.cash-close .btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .cash-count { transition: none; } }

/* Окно закрытой смены: кто работал */
.shift-people { display: flex; flex-wrap: wrap; gap: 10px; }
.shift-person {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 150px;
}
.shift-person b { font-size: 15px; }
.shift-note { margin-top: 4px; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.shift-note p { margin: 4px 0 0; }
.free-toggle { margin: 12px 0 0; color: var(--text-2); }

/* ---------- полосы прокрутки: тонкие, стеклянные, проявляются при наведении ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14); border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box; min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .28); }
::-webkit-scrollbar-thumb:active { background-color: rgba(197, 139, 255, .55); }
::-webkit-scrollbar-corner, ::-webkit-scrollbar-button { display: none; background: transparent; }
/* Исправления кассы владельцем — в окне смены */
.cash-adj { margin: 12px 0 4px; padding: 12px 16px; border-radius: 16px; background: rgba(245, 181, 68, .05); border: 1px solid rgba(245, 181, 68, .22); }
.cash-adj-row { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cash-adj-row:first-of-type { border-top: 0; }
@media (max-width: 600px) { .cash-adj-row { grid-template-columns: 1fr; } }
/* Наличные в кассе сейчас (видит владелец): крупная сумма, «забрать наличные», последние выемки */
.drawer-card { margin-bottom: 16px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.drawer-head > div { min-width: 0; flex: 1 1 280px; }
.drawer-sum { font: 700 34px/1.1 var(--font-display); color: #fff; letter-spacing: -.01em; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.drawer-head .small { margin: 0; max-width: 520px; }
.drawer-take { flex: none; }
.drawer-log { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.drawer-log-row { display: grid; grid-template-columns: minmax(150px, auto) 110px 1fr auto; gap: 6px 14px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.drawer-log-row:first-of-type { border-top: 0; }
.drawer-log-row b { color: #ff9aa0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.drawer-form .field { width: auto; }
.drawer-warn { color: var(--interrupted); margin: 0; }
@media (max-width: 600px) {
  .drawer-take { width: 100%; }
  .drawer-log-row { grid-template-columns: 1fr auto; }
  .drawer-log-row > :nth-child(even) { justify-self: end; }
}
/* Настройки → Компьютеры → MOZA Pit House: три режима руля — пресет и сила FFB у каждого */
.wheel-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; margin: 6px 0; }
.wheel-mode { display: grid; gap: 10px; justify-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.wheel-mode-name { font: 700 14px/1 var(--font-display); }
.wheel-mode .opt { display: grid; justify-items: center; gap: 6px; }

/* Поле пароля: «показать» — внутри поля справа. Общий стиль стеклянных кнопок (position: relative, подъём при
   наведении) её сбивал под поле — здесь возвращаем; встроенный «глазик» Edge (тёмный ключ) прячем: кнопка у нас своя. */
.pass-wrap .pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 32px; min-height: 32px; padding: 0 12px; margin: 0; font-size: 10.5px; border-radius: 10px;
}
.pass-wrap .pass-eye:hover { transform: translateY(-50%); }
.pass-wrap .pass-eye:active { transform: translateY(-50%) scale(.97); }
input[type=password]::-ms-reveal, input[type=password]::-ms-clear { display: none; }
/* Стопка: обычный прайс / групповой тариф */
/* Групповые пакеты в выборе времени: метка «группа», выбор мест к групповому тарифу */
.pkg-row .pkg-group { position: relative; padding-top: 18px; }
.pkg-tag { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px;
  font: 700 9px/1.4 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(166, 28, 255, .22); color: #e7c6ff; box-shadow: inset 0 0 0 1px rgba(196, 120, 255, .35); }
.pkg-group[aria-pressed=true] .pkg-tag { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.group-row .btn { min-height: 84px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.place-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font: 600 12px/1.2 var(--font-display); color: var(--text-2, var(--text)); }
.place-chip.on { background: rgba(166, 28, 255, .2); box-shadow: inset 0 0 0 1px rgba(196, 120, 255, .4); color: var(--text); }
.place-chip input { margin: 0; }

/* «Цены» → групповые пакеты: название шире, время и цена — короткие поля */
.group-edit-fields { display: grid; gap: 10px; }
.group-edit-fields .input[type=number], .group-edit-fields .field:last-child .input { width: 120px; }
@media (min-width: 720px) { .group-edit-fields { grid-template-columns: minmax(0, 320px) auto auto; justify-content: start; } }
.prices-kind { display: flex; flex-wrap: wrap; gap: 10px; }
.pkg-tag.inline { position: static; transform: none; display: inline-block; vertical-align: 1px; margin-right: 2px; }
.booking-group { margin: 2px 0; }

/* Громкость ПК — вверху «подробнее» в карточке ПК: дорожка-стекло, заполненная часть — фиолетовый гель, белый круг */
.vol-row {
  display: grid; grid-template-columns: auto auto minmax(140px, 1fr) auto; align-items: center; gap: 10px 12px;
  padding: 12px 16px; margin-top: 4px; border-radius: 18px; background: var(--g-fill); box-shadow: var(--g-depth), inset 0 0 0 1px var(--line);
}
.vol-row .opt-label { margin: 0; }
.vol-row .tag { grid-column: 1 / -1; justify-self: start; }
.vol-ic { display: grid; place-items: center; color: var(--text); }
.vol-val { font: 700 15px/1 var(--font-display); color: #fff; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.vol-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.vol-range:focus { outline: none; }
.vol-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #b24dff 0, #8f1fe6 var(--p, 50%), rgba(255, 255, 255, .09) var(--p, 50%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.vol-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vol-range::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #b24dff, #8f1fe6); }
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #f4f4f6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 3px 10px rgba(0, 0, 0, .5); transition: transform .15s var(--ease);
}
.vol-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f4f4f6; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 3px 10px rgba(0, 0, 0, .5); }
.vol-range:hover::-webkit-slider-thumb, .vol-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.vol-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet-hi) 60%, transparent), 0 3px 10px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: reduce) { .vol-range::-webkit-slider-thumb { transition: none; } }
/* Настройки → телевизор: привязанные телевизоры */
.tv-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.tv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tv-row b { font-size: 15px; }
