/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — 3 layers ("Reception UI — Неоновый зал")
   1. PRIMITIVE  raw values, theme-independent
   2. SEMANTIC   roles a theme overrides (default = theme B "Неоновый зал")
   3. COMPONENT  components below read ONLY semantic tokens, never primitives
   Switch themes via <html data-theme="neon|command|swiss">; adding A/C later is a
   token-set, not a CSS rewrite. Legacy names (--panel/--good/--warn/--bad/--select)
   are kept as ALIASES onto semantic tokens so every existing component re-skins
   automatically as the theme retunes them.
   ═══════════════════════════════════════════════════════════════════════════ */
.svg-sprite { position:absolute;width:0;height:0;overflow:hidden; }
:root {
  color-scheme: dark;

  /* ── PRIMITIVE ──────────────────────────────────────────────────────────── */
  --p-near-black: #0a0913;
  --p-cyan:    #3ee0f2;   /* play   */
  --p-green:   #4fe08a;   /* free   */
  --p-amber:   #ffc24d;   /* book   */
  --p-red:     #ff5a78;   /* fault  */
  --p-magenta: #ff45a0;   /* brand orbit accent */
  --p-violet:  #9d6bff;
  --p-ink:     #f2f5fb;
  --p-muted:   #a9b2c7;
  /* faint обязан оставаться читаемым и на ТОНИРОВАННЫХ поверхностях карточек:
     #727c93 давал 4.18:1 на тинте состояния (замер аудита) — ниже порога 4.5. */
  --p-faint:   #838ea6;
  --p-ink-on-light: #182130;
  --p-muted-on-light: #4b586d;

  /* shared radius scale */
  --r-1: 10px; --r-2: 14px; --r-3: 20px; --r-4: 22px; --r-pill: 999px;
  /* blur + elevation */
  --blur-glass: 16px;
  --elev-1: 0 6px 20px rgba(0,0,0,.34);
  --elev-2: 0 16px 44px rgba(0,0,0,.46);
  /* motion */
  --dur-1: 160ms; --dur-2: 230ms;
  --ease: cubic-bezier(.22,.61,.36,1); /* ease-out-quart-ish */

  /* touch control language (unchanged: finger sizes, ≥64px / 9mm) */
  --toolbar-h: 116px;
  --helper-h: 52px;
  --touch: 72px;
  --touch-lg: 96px;
  --touch-gap: 16px;
  --touch-radius: var(--r-2);
}

/* ── SEMANTIC — theme B "Неоновый зал" (default) ──────────────────────────── */
:root,
:root[data-theme="neon"] {
  /* backdrop: a vertical near-black gradient base with subtle violet, cyan and
     pink radials */
  --bg: linear-gradient(180deg, #0c0a1a, #0a0913 60%, #08070f);
  --bg-wash:
    radial-gradient(70% 55% at 18% 8%,   rgba(157,107,255,.22) 0%, transparent 60%),
    radial-gradient(60% 50% at 88% 12%,  rgba(62,224,242,.18) 0%,  transparent 60%),
    radial-gradient(80% 60% at 60% 108%, rgba(255,69,160,.14) 0%,  transparent 55%);

  /* frosted-glass surfaces */
  --surface:       rgba(255,255,255,.045);
  --surface-2:     rgba(255,255,255,.08);
  --surface-solid: #16132a;         /* opaque fallback when blur is disabled */
  --glass-line:    rgba(255,255,255,.09);
  --glass-line-2:  rgba(255,255,255,.16);
  --blur: var(--blur-glass);

  /* ink ramp */
  --ink:   var(--p-ink);
  --muted: var(--p-muted);
  --faint: var(--p-faint);
  --ink-on-light: var(--p-ink-on-light);
  --muted-on-light: var(--p-muted-on-light);

  /* status vocabulary — each: base color + glow (soft shadow of same hue) */
  --st-play:  var(--p-cyan);   --st-play-glow:  rgba(62,224,242,.32);
  --st-free:  var(--p-green);  --st-free-glow:  rgba(79,224,138,.30);
  --st-book:  var(--p-amber);  --st-book-glow:  rgba(255,194,77,.30);
  --st-fault: var(--p-red);    --st-fault-glow: rgba(255,90,120,.42);
  /* Отложенный визит — пятый статус зала; без своего токена его точка на карте
     просто не рисовалась. */
  --st-park:  var(--p-violet); --st-park-glow:  rgba(157,107,255,.30);
  --st-closed: var(--p-faint); --st-closed-glow: rgba(93,107,124,.0);

  --accent:      var(--p-cyan);
  --accent-soft: rgba(62,224,242,.14);
  --brand-ring:  var(--p-magenta);
  /* Selection is its own visual
     dimension from lane state — a dedicated hue (brand magenta, not accent
     cyan) so a selected ACTIVE (blue/cyan) card's ring can never read as
     "just a brighter active state". */
  --select-ring: var(--p-magenta);
  /* card-surface tone tint strength; themes tune independently (see
     data-theme="light" below) — the same % reads very differently mixed
     into a near-black base vs a near-white one. */
  --tone-tint: 7%;

  --radius: var(--r-3);
  --elev-1: 0 6px 20px rgba(0,0,0,.34);
  --elev-2: 0 16px 44px rgba(0,0,0,.46);

  /* ── legacy aliases → semantic (existing components re-skin for free) ── */
  --panel:   var(--surface);
  --panel-2: var(--surface-2);
  --line:    var(--glass-line);
  --accent-2: var(--st-free);
  --good: var(--st-free);
  --warn: var(--st-book);
  --bad:  var(--st-fault);
  --idle: var(--st-closed);
  --select: var(--st-play);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* the lane grid fills the screen; no page scroll */
  /* neon-hall backdrop: solid near-black; the multi-radial wash is painted by a
     fixed body::before so it can't be clipped by background-attachment quirks */
  background: var(--bg);
  color: var(--ink);
  /* touch-first: this is a touchscreen terminal — bigger base type */
  font: 18px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  /* «0» в мелком жирном бейдже читался как «8». Счётчики уже честно прячутся
     при нуле — слэш на нуле подстраховывает ЛЮБОЕ
     число сайта, включая места, которые появятся позже и забудут спрятать 0. */
  font-variant-numeric: tabular-nums slashed-zero;
}
input, textarea { user-select: text; }

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #101319;
  flex: 0 0 auto;
}
.top-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }

h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 20px; font-weight: 750; white-space: nowrap; }
h2 { font-size: 15px; font-weight: 750; }
/* The legacy header must retain the full controls when its cash total is visible. */
body:not(.review-redesign) .top-brand { min-width: 0; }
body:not(.review-redesign) .top-brand .brand-emblem { flex: 0 0 auto; }
body:not(.review-redesign) .top-brand .subline { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.subline, .section-head span, .band-note { color: var(--muted); }
.subline { font-size: 13px; white-space: nowrap; }

/* HOME | RECEPTION | POS … breadcrumb-style tab strip (our own labels) */
.top-tabs { display: flex; align-items: stretch; gap: 0; flex: 1; min-width: 0; overflow-x: auto; }
.tab {
  min-height: 0;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tab:hover { border-color: transparent; color: var(--ink); background: rgba(86,182,194,.08); }
.tab:active { background: rgba(86,182,194,.18); }
.tab.shift-on { color: var(--good); border-bottom-color: var(--good); }

.top-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 12px;
  /* finger-sized targets (operator touch screen), no double-tap zoom delay */
  min-height: 64px;
  padding: 16px 22px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover { border-color: var(--accent); }
button:active { background: rgba(86,182,194,.22); }
button:disabled { opacity: .45; cursor: not-allowed; }
.danger:hover { border-color: var(--bad); color: #ffd0d0; }
.danger:active { background: rgba(224,100,100,.22); }

/* monochrome line-icon system: SVG sized by the parent's font-size (1em), inheriting
   the parent's text color — one glyph serves banner / tile-center / toolbar / buttons */
.svgi {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: middle;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn { display: flex; align-items: center; justify-content: center; }
.icon-btn .svgi { width: 26px; height: 26px; }
.icon-tab { padding-left: 0; padding-right: 0; min-width: 44px; }
.icon-tab .svg-slot { font-size: 22px; line-height: 0; }

/* the lane grid is the whole screen; the helper row + toolbar are fixed to the
   bottom, so the scrollable workspace reserves their combined height. */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 14px 0;
  padding-bottom: calc(var(--helper-h) + var(--toolbar-h) + 8px);
}

/* license / lane summary as a slim rail UNDER the grid, not a fat band on top */
.band-rail {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}
.band-title, .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.band-main { font-weight: 750; color: var(--ink); }
.band-spacer { flex: 1; }
.band-summary { font-weight: 700; color: var(--ink); }
.band-rail.ok { border-color: rgba(85,196,122,.45); }
.band-rail.warn { border-color: rgba(217,164,65,.55); }
.band-rail.bad { border-color: rgba(224,100,100,.55); }

.panel { display: flex; flex-direction: column; min-height: 0; }
.lanes-panel { flex: 1; min-height: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }

.lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* JS sets the column count by lane total */
  grid-auto-rows: 1fr;                   /* rows stretch so tiles fill the screen */
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.lane {
  position: relative;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #11151b;
  padding: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
  /* the colored state banner sits flush at the top edge */
}
.lane > .lane-head,
.lane > .score,
.lane > .lane-icon,
.lane > .meta,
.lane > .actions { padding-left: 16px; padding-right: 16px; }
.lane .actions { margin-top: auto; } /* push actions to the bottom of the tall tile */
.lane-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
}
.lane-no { font-size: 38px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.lane-no .lane-word { font-size: 16px; font-weight: 700; color: var(--muted); margin-right: 6px; vertical-align: middle; }

/* top status BANNER: full-bleed colored strip carrying the state label */
.lane-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0b0d10;
  background: var(--idle);
}
.lane-banner .ico { font-size: 16px; line-height: 0; display: inline-flex; }
.lane.s-active  .lane-banner { background: var(--good); }
.lane.s-ready   .lane-banner { background: var(--accent); }
.lane.s-warn    .lane-banner { background: var(--warn); }
.lane.s-alarm   .lane-banner { background: var(--bad); color: #fff; }
.lane.s-idle    .lane-banner { background: var(--idle); }
.lane.s-alarm.blink .lane-banner { animation: blink 1.2s step-end infinite; }

/* color the whole tile by state (subtle tint + matching border) */
.lane.s-active  { border-color: rgba(85,196,122,.5);  background: #10180f; }
.lane.s-ready   { border-color: rgba(86,182,194,.5);  background: #0e1518; }
.lane.s-warn    { border-color: rgba(217,164,65,.5);  background: #16140d; }
.lane.s-alarm   { border-color: rgba(224,100,100,.55); background: #170f10; }

/* large centered status glyph (our own line art) — colored by lane state */
.lane-icon { font-size: 72px; text-align: center; line-height: 0; color: var(--idle); opacity: .9; }
.lane-icon .svgi { stroke-width: 1.4; }
.lane.s-idle  .lane-icon { opacity: .32; }
.lane.s-ready  .lane-icon { color: var(--accent); }
.lane.s-warn   .lane-icon { color: var(--warn); }
.lane.s-alarm  .lane-icon { color: var(--bad); }

/* selection ring (single + multi) */
.lane.selected { box-shadow: inset 0 0 0 3px var(--select); border-color: var(--select); }
.lane.multi-selected::before {
  content: "✓";
  position: absolute;
  top: 36px; left: 8px;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--select);
  color: #0b0d10;
  font-size: 17px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* legacy status pill (still used inside Lane Control header) */
.status {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.status.bowling { color: var(--good); border-color: rgba(85,196,122,.55); }
.status.ready { color: var(--accent); border-color: rgba(86,182,194,.55); }
.status.fault, .status.offline { color: var(--bad); border-color: rgba(224,100,100,.55); }
.status.trouble { color: var(--bad); border-color: var(--bad); animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: .35; } }
.warn-btn { flex: 0 0 auto !important; min-width: 52px; color: var(--warn); }
.score { font-size: 48px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; }
.meta { color: var(--muted); display: grid; gap: 3px; font-size: 15px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions button { padding: 10px 12px; min-height: 54px; font-size: 16px; flex: 1 0 auto; }

.controllers { display: grid; gap: 8px; }
.controller {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) 90px 130px minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #11151b;
}
.modal.controller-pair-modal .modal-head { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:16px; }
#modal:has(.controller-pair-modal) { z-index:54; }
.modal.controller-pair-modal .actions button.danger:hover { color:var(--ink); }
.modal.controller-pair-modal .modal-head .security-chrome { grid-column:1/-1;justify-content:flex-start;margin:0; }
.modal.controller-pair-modal .modal-head h3 { min-width:0;font-size:22px;line-height:1.2;overflow-wrap:anywhere; }
.modal.controller-pair-modal .modal-body { padding:16px;min-width:0; }
.modal.controller-pair-modal .controller,.modal.controller-pair-modal .controller > div { min-width:0;overflow-wrap:anywhere; }
@media (max-width:600px) {
  .modal.wide.controller-pair-modal { width:calc(100vw - 16px);max-height:calc(100dvh - 16px); }
  .modal.controller-pair-modal .modal-body { font-size:16px; }
  .modal.controller-pair-modal .controller .mono { font-size:14px; }
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.pill.ACTIVE { color: var(--good); border-color: rgba(85,196,122,.55); }
.pill.UNASSIGNED { color: var(--warn); border-color: rgba(217,164,65,.55); }
.pill.RETIRED, .pill.STALE { color: var(--bad); border-color: rgba(224,100,100,.55); }

.toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #202631;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.toast.error { border-color: var(--bad); }

.tp-persist-banner {
  position: relative;
  flex: 0 0 auto;
  max-width: none;
  padding: 10px 14px;
  border: 1px solid var(--warn);
  border-radius: var(--r-2);
  background: var(--surface-solid, #16132a);
  color: var(--ink);
  box-shadow: var(--elev-2);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

/* --- operator terminal: top bar, modal, bill, prices, parked ------------- */

.daybox { color: var(--muted); font-variant-numeric: tabular-nums; }
.shift-on { border-color: var(--good); color: var(--good); }
.badge {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--warn);
  color: #14181f;
  font-size: 11px;
  font-weight: 800;
}
.badge[hidden] { display: none; }
.primary { border-color: rgba(86,182,194,.7); }
.primary:hover { background: rgba(86,182,194,.18); }
.wide-btn { width: 100%; margin-bottom: 6px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,7,10,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.numpad-backdrop { z-index: 50; } /* keypad floats above the parent wizard */
/* author display:flex would defeat the [hidden] attribute (UA display:none loses) */
.modal-backdrop[hidden] { display: none; }
.modal.wide { width: min(1280px, calc(100vw - 24px)); }
.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
/* FULL-SCREEN WIZARD: owns the whole 1920x1080; three fixed rows
   [header 96 | scrolling content 1fr | action bar]. */
.modal.fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: none;
  border-radius: 0;
  display: grid;
  grid-template-rows: 96px 1fr auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.modal.fullscreen .modal-head { padding: 0 32px; }
.modal-head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.modal.fullscreen .modal-head h3 { font-size: 34px; }
.modal-close {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  min-width: 64px;
  min-height: 64px;
  padding: 0;
  border-radius: 14px;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal.fullscreen .modal-close { min-width: 88px; min-height: 88px; font-size: 38px; }
.modal-body {
  padding: 22px 24px;
  display: grid;
  gap: var(--touch-gap);
  align-content: start;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
/* deliberate whitespace, not grotesquely stretched buttons across 1920px */
.modal.fullscreen .modal-body {
  padding: 32px 40px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
/* FIT-ONE-SCREEN: forms with many sections pack into newspaper columns across the
   full width so nothing scrolls off the bottom. Long lists
   inside a section scroll internally; truly secondary stuff goes to a sub-window. */
.modal.fullscreen .modal-body.cols {
  display: block;
  max-width: none;
  columns: 460px;
  column-gap: 48px;
  overflow: hidden;
}
.modal.fullscreen .modal-body.cols > * {
  break-inside: avoid;
  margin-bottom: var(--touch-gap);
}
.modal-body.cols .seg.vertical { max-height: 30vh; overflow-y: auto; }

/* COMPACT (non-fullscreen) wide modal that still packs sections into columns —
   used by "Open · options" so the form is dense, not a sparse void. */
.modal.wide .modal-body.cols {
  display: block;
  columns: 300px;
  column-gap: 24px;
}
.modal.wide .modal-body.cols > * {
  break-inside: avoid;
  margin-bottom: var(--touch-gap);
}

/* FIXED BOTTOM ACTION BAR — the commit button is always reachable, never scrolls */
.wizard-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--touch-gap);
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #101319;
}
.wizard-bar:empty { display: none; }
.modal.fullscreen .wizard-bar { padding: 0 40px; min-height: 120px; }
.wizard-bar .spacer { flex: 1; }
.wizard-bar .primary, .wizard-bar .danger.big, .wizard-bar .primary.big {
  min-width: 320px;
  min-height: 80px;
  font-size: 28px;
  font-weight: 800;
}
/* Небольшая модалка решения (не полноэкранный визард «Начать визит») — свой
   primary не должен занимать 320×80, а вторичные — 68×24 (метрики главного
   визарта). Одна строка: вторичные слева, главное действие справа
   (design-system components/modal.html «как должно быть»). */
.modal.lane-prep-modal .wizard-bar { flex-wrap: nowrap; }
.modal.lane-prep-modal .wizard-bar button {
  min-height: 52px; font-size: 15.5px; font-weight: 700;
  padding: 0 18px; border-radius: var(--r-2, 12px); flex: none;
}
.modal.lane-prep-modal .wizard-bar .primary { min-width: 0; }
.modal.fullscreen .wizard-bar .primary,
.modal.fullscreen .wizard-bar .danger.big,
.modal.fullscreen .wizard-bar .primary.big {
  min-width: 360px;
  min-height: 88px;
  font-size: 30px;
}

/* labeled wizard section: stacked, roomy */
.wiz-section { display: grid; gap: var(--touch-gap); }
.wiz-label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-row { display: flex; align-items: center; gap: var(--touch-gap); flex-wrap: wrap; }
.form-row > label:first-child { min-width: 110px; color: var(--muted); font-size: 18px; }
.form-row.wide { flex-wrap: wrap; }
.form-row input[type="text"] { flex: 1; min-width: 180px; }
.form-actions { display: flex; justify-content: flex-end; gap: var(--touch-gap); margin-top: 4px; }
.form-actions.wrap { flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; }
.check { display: inline-flex; align-items: center; gap: 4px; }
input, select {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 14px;
  min-height: 64px;
  padding: 14px 18px;
  font-size: 20px;
}
.modal-body input[type="text"], .modal-body input[type="tel"] { width: 100%; }

/* --- touch components: segmented choices, steppers, PIN pad --------------- */

.gone { display: none !important; }
.slot { flex: 1; min-width: 0; }
.form-row.top { align-items: flex-start; }
.form-row.top > label:first-child { padding-top: 14px; }

/* SEGMENTED CHOICE -> GIANT OPTION CARDS. seg() emits .opt-grid > .opt-card.
   One edit upgrades 15+ choice groups (mode, rules, payment, method, unit…). */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.seg.vertical { grid-template-columns: 1fr; width: 100%; }
.seg-btn {
  min-height: var(--touch);
  padding: 16px 22px;
  border-radius: var(--touch-radius);
  border: 2px solid var(--line);
  background: var(--panel-2);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.seg.vertical .seg-btn {
  min-height: 84px;
  text-align: left;
  align-items: flex-start;
  flex-direction: row;
  justify-content: space-between;
}
.seg-btn.on {
  border-color: var(--accent);
  border-width: 3px;
  background: rgba(86,182,194,.2);
  font-weight: 800;
}
/* second line inside an option card (price / detail) */
.opt-sub { font-size: 17px; font-weight: 600; color: var(--muted); }
.seg-btn.on .opt-sub { color: var(--ink); }

/* STEPPER -> one solid capsule [ − | value | + ], every part 96px */
.stepper {
  display: inline-flex;
  align-items: stretch;
  height: var(--touch-lg);
  border: 2px solid var(--line);
  border-radius: var(--touch-radius);
  overflow: hidden;
}
.step-btn {
  width: var(--touch-lg);
  min-height: var(--touch-lg);
  font-size: 42px;
  font-weight: 800;
  padding: 0;
  border: none;
  border-radius: 0;
  background: var(--panel-2);
}
.step-btn:active { background: rgba(86,182,194,.3); }
.step-num {
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: none;
  border-left: 2px solid var(--line);
  border-right: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}
.step-num:active { background: rgba(86,182,194,.18); }
.stepper input { width: 120px; min-height: var(--touch-lg); text-align: center; border: none; border-radius: 0; }

/* keypad (PIN + numeric) — one shared key style */
.pinpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pin-btn { min-height: var(--touch-lg); font-size: 38px; font-weight: 800; border-radius: var(--touch-radius); }
.pin-dots {
  text-align: center;
  font-size: 34px;
  letter-spacing: .35em;
  min-height: 56px;
  color: var(--accent);
}
.num-display {
  min-height: 88px;
  font-size: 48px;
  font-weight: 850;
  text-align: right;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--line);
  border-radius: var(--touch-radius);
  background: var(--panel-2);
}
.preset-row { display: flex; gap: 12px; flex-wrap: wrap; }
.preset-row button { font-size: 22px; font-weight: 750; }

.lane-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lane-pick button { min-height: var(--touch); font-size: 22px; }

/* chips (bumpers per player, throw picker) */
.bump-row { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.chip {
  min-height: var(--touch);
  padding: 0 24px;
  border-radius: 999px;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
}
.chip.on {
  border-color: var(--warn);
  border-width: 2px;
  background: rgba(217,164,65,.22);
  font-weight: 800;
}

/* pin diagram (score correction): triangle 7-8-9-10 / 4-5-6 / 2-3 / 1 */
.pin-diagram { display: grid; gap: 16px; justify-items: center; padding: 8px 0; }
.pin-row { display: flex; gap: 16px; }
.pin {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 0;
  font-weight: 800;
  font-size: 26px;
  color: var(--muted);
  background: #11151b;
}
.pin.up {
  border-color: var(--good);
  background: rgba(85,196,122,.25);
  color: var(--ink);
}
.big { min-height: var(--touch); font-size: 22px; font-weight: 750; }
.new-pk input[type="text"] { flex: 1; min-width: 200px; }

.bill { width: 100%; border-collapse: collapse; font-size: 24px; }
.bill td { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.bill td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bill-total td { font-weight: 850; border-bottom: none; font-size: 28px; }

.pk-table { width: 100%; border-collapse: collapse; }
.pk-table th { text-align: left; color: var(--muted); font-size: 16px; padding: 6px; }
.pk-table td { padding: 6px; border-top: 1px solid var(--line); }
.pk-table button { margin-right: 8px; }

/* booking sheet: lanes × hours day grid — enlarged cells */
.day-label { flex: 1; text-align: center; font-weight: 800; font-size: 24px; }
.sheet {
  display: grid;
  grid-template-columns: 64px repeat(14, minmax(110px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.sheet-corner, .sheet-hour {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  padding: 6px 0;
}
.sheet-lane {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.sheet-cell {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1217;
  display: grid;
  gap: 4px;
  padding: 4px;
}
.sheet-cell.free { cursor: pointer; }
.sheet-cell.free:active { background: rgba(86,182,194,.15); }
.sheet-bk {
  min-height: 64px;
  padding: 8px 12px;
  font-size: 17px;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-color: rgba(86,182,194,.6);
  background: rgba(86,182,194,.16);
}
.sheet-bk.confirmed { border-color: var(--good); background: rgba(85,196,122,.18); }
.sheet-bk.arrived { border-color: var(--line); background: #161b22; color: var(--muted); }
.sheet-bk.dead { opacity: .4; text-decoration: line-through; }
.sheet-bk.late { border-color: var(--bad); animation: blink 1.2s step-end infinite; }
.sheet-bk.more { border-style: dashed; background: #11151b; color: var(--muted); font-weight: 800; }

/* parked / waitlist: each party a roomy STACKED card (no cramped single row) */
.parked-row {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.parked-row > .park-name b { font-size: 24px; }
.parked-row .actions { gap: 14px; }
.parked-row .actions button { min-height: var(--touch); font-size: 22px; }

/* === HELPER ROW (Select lane / Multi / Next free / Next pair) ============== */
.helper-row {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--toolbar-h);
  height: var(--helper-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  z-index: 30;
}
.helper-field {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.helper-field input {
  width: 90px; min-height: 40px; padding: 6px 12px; font-size: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.helper-multi { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.helper-multi input { width: 22px; height: 22px; min-height: 22px; }
.helper-btn {
  min-height: 40px; padding: 8px 16px; font-size: 15px; font-weight: 700;
}
.helper-spacer { flex: 1; }
.helper-sel { color: var(--select); font-weight: 800; font-size: 15px; }

/* === BOTTOM ICON TOOLBAR =================================================== */
.toolbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #101319;
  z-index: 31;
}
.toolbar-btn {
  position: relative;
  width: 96px;
  min-height: 92px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 14px;
}
.toolbar-btn:hover { border-color: var(--accent); }
.toolbar-icon { font-size: 32px; line-height: 0; color: var(--ink); }
.toolbar-btn.stop .toolbar-icon { color: var(--bad); }
.toolbar-label { font-size: 12px; font-weight: 700; text-align: center; color: var(--muted); }
.toolbar-btn:hover .toolbar-label { color: var(--ink); }
.toolbar-btn.stop { background: rgba(224,100,100,.16); border-color: var(--bad); }
.toolbar-btn.stop .toolbar-label { color: #ffd0d0; }
.toolbar-btn.stop:hover { border-color: var(--bad); background: rgba(224,100,100,.28); }
.toolbar-btn.is-disabled { opacity: .4; pointer-events: none; }
.tb-badge { position: absolute; top: 6px; right: 10px; margin: 0; }

/* === DENSE LANE CONTROL TABLE ============================================= */
.lc-wrap { overflow-x: auto; }
.lc {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.lc th {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.lc th.lc-name, .lc th.lc-fast { text-align: left; }
.lc td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.lc td.lc-name { text-align: left; width: 30%; }
.lc td.lc-sel { text-align: center; width: 44px; }
.lc td.lc-due { color: var(--bad); font-weight: 800; }
.lc td.lc-fast { text-align: center; }
.lc tr.lc-on td { background: rgba(232,195,74,.10); }
.lc .lc-name-btn {
  min-height: 48px; padding: 8px 12px; width: 100%;
  text-align: left; font-size: 18px; font-weight: 700;
  background: transparent; border-color: transparent;
}
.lc .lc-name-btn:hover { border-color: var(--accent); }
.lc .lc-marks { font-size: 13px; color: var(--warn); font-weight: 800; margin-left: 6px; }
.lc-selbox {
  width: 34px; height: 34px; min-height: 34px; padding: 0;
  border-radius: 8px; font-size: 18px;
}
.lc-selbox.on { background: var(--select); color: #0b0d10; border-color: var(--select); font-weight: 900; }
.lc-fast-btn {
  min-height: 44px; min-width: 44px; padding: 6px 10px; font-size: 16px;
}
.lc-price-btn {
  min-height: 48px; padding: 8px 14px; font-size: 16px; font-weight: 700;
  border-color: rgba(86,182,194,.6);
}
.lc-price-btn:hover { background: rgba(86,182,194,.18); }
.lc .lc-d { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: var(--accent); color: #0b0d10; font-size: 11px; font-weight: 800; }
.lc tr.lc-sum td { border-bottom: none; padding-top: 8px; font-weight: 750; }
.lc tr.lc-sum.grand td { font-size: 22px; font-weight: 850; border-top: 2px solid var(--line); padding-top: 12px; }
.lc-actbar { display: flex; flex-wrap: wrap; gap: 12px; }
.lc-actbar button { flex: 1 0 auto; }

.metric-event {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.metric-event.sev-warning { color: #8a5d00; }
.metric-event.sev-error { color: var(--bad); }

.lane-live-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f5f7fa;
}
.lane-live-score {
  display: grid;
  gap: 8px;
  align-content: start;
}
.lane-live-score b {
  font-size: 24px;
}
.lane-live-score span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}
.event-log {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.event-row {
  display: grid;
  grid-template-columns: 80px minmax(140px, .85fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}
.event-row.sev-warning { border-left-color: var(--warn); }
.event-row.sev-error { border-left-color: var(--bad); }
.event-row.sev-debug { opacity: .78; }
.event-row b,
.event-row span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.event-ts {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 900px) {
  .lane-live-panel { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 70px minmax(0, 1fr); }
  .event-row span:last-child { grid-column: 2; }
}

@media (max-width: 1000px) {
  .lanes { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .controller { grid-template-columns: 1fr; align-items: start; }
  .band-rail { flex-wrap: wrap; }
  .toolbar { gap: 8px; }
  .toolbar-btn { width: 78px; }
}

/* === HITRU operator surface =================================   Product-specific light operator UI: clear, airy, touch-first, and responsive.
   This final layer overrides the historical prototype skin above. */
:root {
  color-scheme: light;
  --bg: #eef1f4;
  --panel: #f8fafc;
  --panel-2: #ffffff;
  --line: #d4dae1;
  --line-strong: #a9b2bd;
  --ink: #17212b;
  --muted: #66727f;
  --accent: #2f78d4;
  --accent-soft: #e7f0ff;
  --good: #20a464;
  --warn: #f2a900;
  --bad: #e24a4a;
  --idle: #d9e0e7;
  --select: #2f78d4;
  --topbar-h: 64px;
  --helper-h: 52px;
  --toolbar-h: 96px;
  --lane-gap: clamp(10px, 1vw, 18px);
  --touch-radius: 8px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 20px/1.25 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.topbar {
  height: var(--topbar-h);
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 1px 10px rgba(20,35,52,.08);
}
.top-brand {
  min-width: 220px;
  gap: 8px;
  align-items: baseline;
}
h1 {
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
}
.subline {
  color: var(--muted);
  font-size: 16px;
}
.top-tabs {
  align-self: stretch;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: 0;
  overflow: hidden;
}
.tab {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}
.tab:hover,
.tab:active {
  color: var(--ink);
  background: var(--accent-soft);
}
.tab.shift-on {
  color: #11693f;
  background: #e5f8ef;
  border-bottom: 0;
}
.top-system {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  flex: 0 0 auto;
}
.top-system > span,
.system-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel-2);
  color: var(--muted);
  box-shadow: none;
  font-size: 29px;
}
.system-btn:hover {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--ink);
}
/* Текстовая метка (RU/EN), не иконка-глиф — 29px из .system-btn/.review-gear
   ей велик. Работает в обоих контекстах: #localeBtn переезжает из
   .top-system в .top-actions на живом redesign-экране (app.js). */
#localeBtnLabel { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.system-btn.mgr-on {
  background: rgba(36, 111, 229, 0.12);
  border-color: var(--blue, #246fe5);
  color: var(--blue, #246fe5);
}
.top-actions {
  gap: 10px;
  color: var(--muted);
}
.daybox,
.clock {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-transform: none;
}
.icon-tab {
  min-width: 44px;
  padding: 0;
}

button {
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(20,35,52,.08);
  font-weight: 750;
}
button:hover { border-color: var(--accent); }
button:active { background: var(--accent-soft); }
button:disabled { opacity: .45; }

.workspace {
  height: calc(100vh - var(--topbar-h) - var(--helper-h) - var(--toolbar-h));
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 0;
  gap: 0;
  min-height: 0;
  padding: clamp(12px, 1.1vw, 20px) clamp(18px, 2vw, 42px) 0;
  background: var(--bg);
}
.lanes-panel {
  min-height: 0;
  overflow: auto;
}
.lanes {
  --lane-cols: 4;
  --lane-rows: 2;
  height: auto;
  min-height: 0;
  display: grid;
  grid-auto-rows: 156px;
  gap: var(--lane-gap);
  align-content: start;
  align-items: start;
}
.lane {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--panel-2);
  padding: 0;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(31,47,68,.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "head"
    "metrics";
}
.lane::before,
.lane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.lane::before {
  display: none;
}
.lane::after {
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.12) 78%, rgba(255,255,255,0) 100%);
}
.lane-bg-img {
  position: absolute;
  right: -86px;
  bottom: 0;
  z-index: 2;
  width: 220px;
  height: 128px;
  object-fit: cover;
  opacity: .82;
  pointer-events: none;
  user-select: none;
}
.lane-head {
  position: relative;
  z-index: 3;
  grid-area: head;
  height: auto;
  min-height: 48px;
  padding: 8px clamp(12px, 1vw, 18px);
  border-bottom: 1px solid var(--line);
  background: rgba(245,247,250,.9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.lane-no {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}
.lane-no .lane-word {
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.lane-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
  text-transform: uppercase;
}
.lane-health {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 24px;
}
.demo-badge {
  padding: 4px 7px;
  border: 1px solid rgba(47,120,212,.38);
  border-radius: 5px;
  background: rgba(47,120,212,.09);
  color: #245f9f;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}
.lane-quick {
  display: grid;
  place-items: center;
}
.lane-quick-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  color: var(--muted);
}
.lane-quick-btn .svgi { width: 19px; height: 19px; }
.lane-quick-btn:hover { color: var(--ink); background: var(--accent-soft); }
.lane-banner {
  display: none;
  grid-area: banner;
  min-height: 0;
  height: auto;
  padding: 14px clamp(12px, 1vw, 20px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 14px;
  align-items: center;
  justify-items: center;
  color: #fff;
  background: var(--idle);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.lane-status-icon {
  display: grid;
  place-items: center;
  font-size: clamp(52px, 5vw, 86px);
  line-height: 0;
}
.lane-status-icon .svgi { stroke-width: 1.35; }
.lane-status-text {
  justify-self: stretch;
  text-align: center;
  font-size: clamp(27px, 2.6vw, 42px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.lane.s-active .lane-banner { background: #21a366; color: #fff; }
.lane.s-ready .lane-banner { background: #2f78d4; color: #fff; }
.lane.s-warn .lane-banner,
.lane.s-nocomm .lane-banner { background: #f2a900; color: #161a1f; }
.lane.s-alarm .lane-banner { background: #e24a4a; color: #fff; }
.lane.s-idle .lane-banner { background: #d9e0e7; color: #1a2632; }
.machine-badge {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 850;
}
.machine-badge.compact {
  width: auto;
  font-size: 15px;
}
.machine-badge.lamp-only {
  width: 18px;
  height: 18px;
  justify-content: center;
}
.machine-dot {
  flex: 0 0 auto;
  width: .92em;
  height: .92em;
  border-radius: 999px;
  background: #a9b5c1;
  box-shadow: 0 0 0 3px rgba(169,181,193,.18);
}
.machine-badge.lamp-only .machine-dot {
  width: 14px;
  height: 14px;
}
.machine-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.machine-green { color: #198754; }
.machine-green .machine-dot { background: #20a464; box-shadow: 0 0 0 3px rgba(32,164,100,.18); }
.machine-red { color: #c93737; }
.machine-red .machine-dot { background: #e24a4a; box-shadow: 0 0 0 3px rgba(226,74,74,.18); }
.machine-grey { color: #7d8996; }
.machine-grey .machine-dot { background: #98a4af; box-shadow: 0 0 0 3px rgba(152,164,175,.2); }
.lane.s-active,
.lane.s-ready,
.lane.s-warn,
.lane.s-nocomm,
.lane.s-alarm,
.lane.s-idle {
  background-color: var(--panel-2);
}
.lane.s-active { border-color: rgba(32,164,100,.35); }
.lane.s-ready { border-color: rgba(47,120,212,.35); }
.lane.s-warn,
.lane.s-nocomm { border-color: rgba(242,169,0,.45); }
.lane.s-alarm { border-color: rgba(226,74,74,.45); }
.lane.s-alarm.blink .lane-banner { animation: blink 1.2s step-end infinite; }
.lane.selected {
  border-color: var(--select);
  box-shadow: 0 0 0 4px rgba(47,120,212,.22), 0 8px 22px rgba(31,47,68,.13);
}
.lane.selected .lane-head { background: var(--accent-soft); }
.lane.multi-selected::before {
  top: 54px;
  left: 10px;
  border-radius: 999px;
  background: var(--select);
}
.lane-metrics {
  position: relative;
  z-index: 3;
  min-height: 0;
  grid-area: metrics;
  padding: 14px 110px 14px clamp(14px, 1.2vw, 22px) !important;
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 8px;
}
.metric-main {
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}
.metric-sub,
.metric-note {
  color: #2c3844;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 800;
}
.metric-note {
  color: var(--muted);
  font-size: 15px;
}
.tile-action {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 12px;
  margin: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}
.tile-action.blocked {
  background: #edf1f4;
  color: var(--muted);
  border: 1px solid var(--line);
  pointer-events: none;
}
.mode-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  min-width: 76px;
  min-height: 44px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(23,33,43,.12);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(31,47,68,.12);
}
.mode-badge b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}
.mode-badge span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}
.mode-badge.time { border-color: rgba(47,120,212,.26); }
.mode-badge.game { border-color: rgba(32,164,100,.28); }
.mode-badge.countdown b { color: var(--accent); }
.mode-badge.countup b { color: #11693f; }
.lane-select-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.fx-ball {
  position: absolute;
  left: -40px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, #6f7d8d 0 3px, transparent 4px),
    radial-gradient(circle at 54% 42%, #6f7d8d 0 3px, transparent 4px),
    radial-gradient(circle at 48% 70%, #6f7d8d 0 3px, transparent 4px),
    radial-gradient(circle at 35% 28%, #f8fbff, #273241 64%, #101820);
  box-shadow: 0 6px 12px rgba(0,0,0,.24);
}
.fx-pin {
  position: absolute;
  right: 42px;
  bottom: 15px;
  width: 9px;
  height: 28px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(#fff 0 40%, #e34c4c 41% 50%, #fff 51% 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
  transform-origin: 50% 90%;
}
.fx-pin.p2 { right: 55px; bottom: 13px; }
.fx-pin.p3 { right: 30px; bottom: 13px; }
.lane.selected .lane-select-fx {
  opacity: 1;
}
.lane.selected .fx-ball {
  animation: rollBall .78s cubic-bezier(.2,.7,.1,1) both;
}
.lane.selected .fx-pin.p1 { animation: pinHit1 .78s cubic-bezier(.2,.7,.1,1) both; }
.lane.selected .fx-pin.p2 { animation: pinHit2 .78s cubic-bezier(.2,.7,.1,1) both; }
.lane.selected .fx-pin.p3 { animation: pinHit3 .78s cubic-bezier(.2,.7,.1,1) both; }
@keyframes rollBall {
  0% { transform: translateX(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  82% { transform: translateX(370px) rotate(620deg); opacity: 1; }
  100% { transform: translateX(410px) rotate(760deg); opacity: 0; }
}
@keyframes pinHit1 {
  0%, 54% { transform: translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-28px,-18px) rotate(-62deg); opacity: 0; }
}
@keyframes pinHit2 {
  0%, 58% { transform: translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: translate(20px,-22px) rotate(76deg); opacity: 0; }
}
@keyframes pinHit3 {
  0%, 60% { transform: translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: translate(36px,-9px) rotate(88deg); opacity: 0; }
}
.mode-badge.time { border-color: rgba(47,120,212,.26); }
.mode-badge.game { border-color: rgba(32,164,100,.28); }
.mode-badge.countdown b { color: var(--accent); }
.mode-badge.countup b { color: #11693f; }
/* NOTE: the decorative strike-scene on the selected tile (.lane-select-fx /
   fx-ball / fx-pin + rollBall/pinHit keyframes) was removed — gratuitous motion
   that doesn't carry state (impeccable product-register), and fill-mode:both
   froze it mid-animation. Selection now reads only via the ring + head tint.
   Strike animations live on the lane-TV attract screens, not the operator UI. */
.metric-main,
.metric-sub,
.metric-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lane .actions { display: none; }
.lanes.rows-3 .lane,
.lanes.rows-many .lane {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}
.lanes.rows-3,
.lanes.rows-many {
  align-content: stretch;
  align-items: stretch;
  gap: 10px;
}
.lanes.rows-3 .lane-head,
.lanes.rows-many .lane-head {
  min-height: 38px;
  padding: 6px 14px;
}
.lanes.rows-3 .lane-no,
.lanes.rows-many .lane-no { font-size: 28px; }
.lanes.rows-3 .lane-no .lane-word,
.lanes.rows-many .lane-no .lane-word { font-size: 12px; }
.lanes.rows-3 .lane-chip,
.lanes.rows-many .lane-chip { font-size: 16px; padding: 4px 8px; }
.lanes.rows-3 .lane-banner,
.lanes.rows-many .lane-banner { padding: 10px 12px; gap: 8px; }
.lanes.rows-3 .lane-status-icon,
.lanes.rows-many .lane-status-icon { font-size: 48px; }
.lanes.rows-3 .lane-status-text,
.lanes.rows-many .lane-status-text { font-size: 24px; }
.lanes.rows-3 .lane-metrics,
.lanes.rows-many .lane-metrics {
  padding: 9px 98px 9px 16px !important;
  gap: 4px;
}
.lanes.rows-3 .metric-main,
.lanes.rows-many .metric-main { font-size: 22px; }
.lanes.rows-3 .metric-sub,
.lanes.rows-many .metric-sub { font-size: 15px; }
.lanes.rows-3 .metric-note,
.lanes.rows-many .metric-note { font-size: 14px; }
.lanes.rows-3 .tile-action,
.lanes.rows-many .tile-action {
  left: 16px;
  bottom: 9px;
  min-height: 28px;
  padding: 0 11px;
  font-size: 14px;
}
.lanes.rows-3 .mode-badge,
.lanes.rows-many .mode-badge {
  right: 9px;
  bottom: 9px;
  min-width: 68px;
  min-height: 38px;
  padding: 4px 7px;
}
.lanes.rows-3 .mode-badge b,
.lanes.rows-many .mode-badge b { font-size: 17px; }
.lanes.rows-3 .mode-badge span,
.lanes.rows-many .mode-badge span { font-size: 10px; }

.band-rail {
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.helper-row {
  height: var(--helper-h);
  padding: 0 clamp(18px, 2vw, 42px);
  gap: 14px;
  border-top: 1px solid var(--line);
  background: rgba(248,250,252,.98);
  box-shadow: 0 -1px 10px rgba(20,35,52,.06);
}
.helper-field,
.helper-multi {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: none;
}
.helper-field input {
  width: 86px;
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
}
.helper-multi input {
  width: 28px;
  height: 28px;
  min-height: 28px;
}
.helper-btn {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 17px;
}
.helper-sel {
  color: var(--accent);
  font-size: 18px;
}

.toolbar {
  height: var(--toolbar-h);
  padding: 10px clamp(18px, 2vw, 42px);
  gap: 12px;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: rgba(238,241,244,.98);
}
.toolbar-btn {
  width: clamp(112px, 7.6vw, 142px);
  min-height: 74px;
  padding: 8px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.toolbar-btn[hidden] { display: none; }
.toolbar-icon {
  color: var(--accent);
  font-size: 32px;
}
.toolbar-label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.05;
}
.toolbar-btn.stop {
  width: clamp(112px, 7.4vw, 136px);
  margin-left: 18px;
  background: var(--bad);
  border-color: #bc3030;
  color: #fff;
  border-radius: 18px;
  clip-path: none;
}
.toolbar-btn.stop .toolbar-icon,
.toolbar-btn.stop .toolbar-label { color: #fff; }

.modal-backdrop { background: rgba(14,25,38,.34); }
.modal {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(21,35,50,.28);
}
.modal-head {
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.modal.wide { width: min(980px, calc(100vw - 48px)); }
.modal-head h3 { font-size: 28px; }
.modal-close {
  border-radius: 8px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.modal-body {
  background: var(--panel);
  font-size: 22px;
}
.wizard-bar {
  border-top: 1px solid var(--line);
  background: #fff;
}
input,
select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.seg-btn,
.step-btn,
.step-num,
.num-display,
.pin-btn,
.chip,
.sheet-cell,
.sheet-bk,
.parked-row,
.controller {
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.seg-btn.on,
.lc-selbox.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.lc th {
  color: #3c4752;
  border-bottom-color: var(--line-strong);
  font-size: 19px;
}
.lc td {
  border-bottom-color: var(--line);
  font-size: 22px;
  padding: 12px 10px;
}
.lc tr.lc-on td { background: rgba(47,120,212,.1); }
.wiz-label {
  color: #42505d;
  font-size: 21px;
}
.seg { gap: 14px; }
.seg-btn { min-height: 82px; font-size: 26px; }
.seg.vertical .seg-btn { min-height: 82px; font-size: 25px; }
.opt-sub { font-size: 20px; }
.stepper { height: 96px; }
.step-btn { width: 96px; min-height: 96px; font-size: 48px; }
.step-num { min-width: 128px; font-size: 42px; }
.chip { min-height: 66px; padding: 0 24px; font-size: 25px; }
.form-row > label:first-child,
.muted { font-size: 20px; }
.wizard-bar button { min-height: 68px; font-size: 24px; }
.wizard-bar .primary,
.wizard-bar .danger.big,
.wizard-bar .primary.big {
  min-width: 300px;
  min-height: 76px;
  font-size: 30px;
}
.modal-close { min-width: 66px; min-height: 66px; font-size: 34px; }
input,
select { min-height: 66px; font-size: 26px; }
.lc .lc-name-btn { min-height: 58px; font-size: 25px; }
.lc-fast-btn,
.lc-price-btn { min-height: 58px; font-size: 22px; }
.lc-selbox { width: 50px; height: 50px; min-height: 50px; font-size: 25px; }
.lc .lc-d { font-size: 16px; }
.lc tr.lc-sum.grand td { font-size: 30px; }
.lc-actbar button { min-height: 68px; font-size: 24px; }
.toast {
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.settings-lead {
  color: var(--muted);
  font-size: 22px;
  margin-bottom: 18px;
}
.settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}
.settings-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.settings-row input {
  width: 28px;
  height: 28px;
  min-height: 28px;
}
.about-trigger {
  margin-top: 14px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
}
.about-trigger:hover, .about-trigger:focus-visible { color: var(--ink); border-color: var(--ink); }
.modal.about-modal .modal-body { min-width: min(420px, 88vw); }
.about-loading, .about-unavailable { color: var(--muted); font-size: 18px; padding: 8px 0; }
.about-brand { margin-bottom: 6px; }
.about-mark { font-size: 32px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.about-display-name { font-size: 16px; color: var(--muted); }
.about-positioning { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.about-notice { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.about-version { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--glass-line); color: var(--muted); font-size: 14px; }
.about-version-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.about-links { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.about-link { color: var(--accent); font-size: 14px; word-break: break-word; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.settings-name {
  font-size: 23px;
  font-weight: 850;
}
.settings-note {
  color: var(--muted);
  font-size: 17px;
}

/* === «Экран дорожки»: фон + заставка ======================================= */
.modal.screen-modal .modal-body > .list-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
  overflow: visible;
}
.modal.screen-modal .screen-section { margin-bottom: 0; }
.screen-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  gap: 14px;
}
/* «Что показывать на экране» — во всю ширину модалки, а не в узкой колонке
   рядом с фоном: тумблер и три режима роликов должны читаться одним взглядом,
   без переноса «Видео-тренер» на две строки и без ухода сегмента под кнопку. */
.screen-show-section {
  grid-column: 1 / -1;
}
.screen-show-section .screen-show-grid {
  display: grid;
  /* Тренеру хватает узкой колонки; трём режимам роликов нужна широкая, иначе
     третья кнопка сваливается на вторую строку и теряется под «Сохранить». */
  grid-template-columns: minmax(280px, 1fr) minmax(540px, 1.6fr);
  gap: 14px 18px;
  align-items: start;
}
.screen-show-section .settings-name { white-space: nowrap; }
/* Длинная поясняющая строка сжимается первой — имя настройки важнее. */
.screen-show-section .settings-note { min-width: 0; }
/* Подпись группы переключателей — не заголовок секции (он уже есть). */
.screen-policy-box {
  display: grid;
  gap: 8px;
  align-content: start;
}
/* Контроллер дорожки старее этих настроек. Говорим прямо и не рисуем
   переключатели, которые ничего не сделают. */
.screen-unsupported {
  padding: 14px 16px;
  border: 1px solid var(--st-book, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--st-book, var(--line)) 12%, transparent);
  color: var(--ink);
  line-height: 1.45;
}
.screen-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.screen-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: var(--touch);
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-on-light);
  font-size: 18px;
  font-weight: 700;
}
.screen-swatch.on { border-color: var(--sw, var(--accent)); background: color-mix(in srgb, var(--sw, var(--accent)) 12%, #fff); }
.screen-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw, var(--accent));
  flex: none;
}
.screen-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.screen-thumb {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-on-light);
  overflow: hidden;
}
.screen-thumb.on { border-color: var(--accent); }
.screen-thumb img, .screen-thumb video {
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.screen-thumb-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  font-size: 18px;
}
.screen-thumb-name {
  font-size: 13px;
  color: var(--muted-on-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-attract-row { grid-template-columns: 1fr auto auto; align-items: center; }
.screen-dur { display: flex; align-items: center; gap: 8px; }
.screen-attract-scroll { max-height: 40vh; }

@media (max-width: 800px) {
  .modal.screen-modal .modal-body > .list-scroll { grid-template-columns: 1fr; }
}

@media (max-width: 1400px) {
  .top-brand { min-width: 220px; }
  h1 { font-size: 25px; }
  .subline { font-size: 15px; }
  .tab { padding: 0 10px; font-size: 15px; }
  .toolbar { gap: 10px; }
  .toolbar-btn { width: 108px; }
  .toolbar-label { font-size: 16px; }
}

@media (max-width: 1000px) {
  :root { --topbar-h: 62px; --helper-h: 54px; --toolbar-h: 104px; }
  .top-brand { min-width: 0; }
  .top-tabs { display: none; }
  .workspace { padding-left: 12px; padding-right: 12px; }
  .helper-row { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .helper-btn { display: none; }
  .toolbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .toolbar-btn { width: 92px; min-height: 80px; }
  .toolbar-icon { font-size: 34px; }
  .toolbar-label { font-size: 14px; }
  .settings-list { grid-template-columns: 1fr; }
}

/* === Toolbar zones: small utilities (left) vs BIG primary Открыть/Закрыть (right) ====== */
.toolbar { justify-content: flex-start; }
.tb-group { display: flex; align-items: stretch; gap: 10px; }
.tb-spacer { flex: 1 1 auto; min-width: 12px; }
/* secondary utilities — compact, quiet */
.tb-secondary .toolbar-btn { width: clamp(84px, 5.4vw, 102px); min-height: 64px; border-radius: 10px; }
.tb-secondary .toolbar-icon { font-size: 25px; }
.tb-secondary .toolbar-label { font-size: 11px; }
/* PRIMARY actions — big, bold, colour-coded: the money buttons */
.toolbar-btn.primary {
  width: clamp(150px, 11.5vw, 200px);
  min-height: 90px;
  border-radius: 14px;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(20,35,52,.16);
}
.toolbar-btn.primary .toolbar-icon { font-size: 42px; color: #fff; }
.toolbar-btn.primary .toolbar-label { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: .3px; }
.toolbar-btn.act-open { background: var(--good, #16a05f); border-color: var(--good, #16a05f); }
.toolbar-btn.act-open:hover { filter: brightness(1.06); border-color: var(--good, #16a05f); }
.toolbar-btn.act-close { background: var(--warn, #e08a1e); border-color: var(--warn, #e08a1e); }
.toolbar-btn.act-close:hover { filter: brightness(1.06); border-color: var(--warn, #e08a1e); }
.toolbar-btn.primary.is-disabled { box-shadow: none; opacity: .45; }

/* on-screen keyboard (RU/EN) — touch name entry overlay */
.kbd-sheet { position: fixed; inset: auto 0 0; z-index: 55; max-height: 65dvh; overflow: auto; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface-solid); color: var(--ink); border-top: 1px solid var(--line-strong); box-shadow: var(--elev-2); }
.kbd-sheet[hidden] { display: none; }
.kbd-head { max-width: 1160px; margin: 0 auto 8px; }
.kbd-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.kbd-keys { display: flex; flex-direction: column; gap: 6px; max-width: 1160px; margin: auto; }
.kbd-row { display: flex; gap: 6px; justify-content: center; }
.kbd-sheet .kbd-key { flex: 1; min-width: 56px; min-height: 56px; padding: 6px; font-size: 22px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: var(--r-1); background: var(--surface-2); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.kbd-key.space { flex: 4; }
.kbd-sheet .kbd-key.primary { flex: 1.5; background: var(--p-green); color: #08070f; border-color: var(--p-green); font-weight: 800; }
.kbd-keys.is-numeric { max-width: 480px; }
.kbd-key[aria-pressed="true"] { border-color: var(--ink); background: var(--accent-soft); }
.kbd-key:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }
.kbd-key:active { background: var(--accent-soft); }
.kbd-key:disabled { cursor: default; opacity: .5; }
body.osk-open { height: calc(100dvh - var(--osk-height, 360px)); }
.modal-backdrop:has(.osk-host) { align-items: flex-start; }
.modal.osk-host { max-height: calc(100dvh - var(--osk-height, 360px)); }
.modal.fullscreen.osk-host { height: calc(100dvh - var(--osk-height, 360px)); }
.osk-host .modal-body { scroll-padding: 16px; }
.osk-host #wizardBar { display: none !important; }
.settings-page .sv-row.osk-setting { flex-direction: column; align-items: stretch; gap: 6px; padding-block: 8px; color: var(--ink); }
.settings-page .osk-setting select { width: 100%; }
@media (max-width: 740px) {
  .kbd-sheet { padding-inline: 8px; }
  .kbd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
  .kbd-actions { grid-template-columns: repeat(3, minmax(56px, 1fr)); }
  .kbd-telephone { grid-template-columns: repeat(3, minmax(56px, 1fr)); }
}
@media (max-width: 600px) {
  .kbd-row:not(.kbd-actions) { display: flex; gap: 4px; }
  .kbd-sheet .kbd-key { min-width: 0; min-height: 48px; padding: 4px 2px; font-size: 18px; }
  .kbd-sheet .is-numeric .kbd-key { min-width: 56px; min-height: 56px; }
  .osk-host .booking-create-col { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #keyboard, #keyboard .kbd-key { animation: none !important; transition: none !important; }
}

/* =====================================================================   Окно «Открыть · дорожка N» — финальный визуал (judge-panel: C-база + графты).
   C: премиальная консоль, единый ритм. Графт B: степпер-бары (псевдоэлементы,
   − и + геометрически идентичны). Графт A: залитая CTA + dashed-плейсхолдер.
   Светлая тема, переменные приложения. Touch-first, 1366×768 без скролла @8 игроков.
   ========================================================================== */

/* ---- локальные токены ритма -------------------------------------------- */
.modal-body.open-win,
.open-win .open-grid {
  --c-radius: 14px;
  --c-h: 60px;                 /* единая высота тач-контрола */
  --c-line: var(--line-strong);
  --c-glow: 0 0 0 1px rgba(47,120,212,.30), 0 4px 14px -6px rgba(47,120,212,.40);
  --c-ink-2: #3a4753;          /* приглушённый текст / штрихи степпера */
}

/* ширина окна: клампим только окно «Открыть», прочие wide-модалки не трогаем */
.modal.open-win-modal { width: min(1200px, calc(100vw - 32px)); }
/* якорим окно по верху → при смене Стандарт↔WBS подсказка растёт ВНИЗ,
   шапка не дёргается (без резерва высоты = без риска клипа на 768) */
.modal-backdrop:has(.open-win-modal) { align-items: stretch; justify-content: stretch; padding: 0; }

/* ---- тело + сетка ------------------------------------------------------- */
.modal-body.open-win {
  overflow: auto;              /* обычно всё влезает (без скролла); страховка от клипа при мн. тарифах/игроках */
  padding: 22px 26px 14px;
  background: var(--bg);
}
.open-win .open-grid {
  display: grid;
  grid-template-columns: 1fr 396px;   /* форма | панель игроков */
  gap: 26px;
  align-items: start;
  height: 100%;
}
.open-win .game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-content: start;
}
.open-win .game-grid .span2 { grid-column: 1 / -1; }

/* ---- секции / лейблы (капс с трекингом — сильная иерархия) -------------- */
.open-win .wiz-section { display: grid; gap: 9px; align-content: start; }
.open-win .wiz-label {
  margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); line-height: 1;
}

/* ========================================================================== */
/*  СЕГМЕНТЫ — акцентная заливка + тонкое свечение                            */
/* ========================================================================== */
.open-win .seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px;
}
/* тариф — карточки по содержимому с переносом (а не строки во всю ширину):
   1 тариф = компактная карточка, несколько = перенос в ряд, не пустой слэб */
.open-win .seg.vertical { display: flex; flex-wrap: wrap; gap: 12px; }
.open-win .seg-btn {
  min-height: var(--c-h); padding: 0 18px;
  border: 1.5px solid var(--c-line); border-radius: var(--c-radius);
  background: var(--panel-2); color: var(--ink);
  font-size: 20px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.open-win .seg-btn.on {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent); font-weight: 800; box-shadow: var(--c-glow);
}
/* карточка тарифа: метка слева, цена справа; ширина по содержимому, без растяжки */
.open-win .seg.vertical .seg-btn {
  flex: 0 1 280px; min-width: 220px; max-width: 360px;
  min-height: var(--c-h); flex-direction: row; gap: 14px;
  justify-content: space-between; text-align: left; padding: 0 16px 0 18px;
}
.open-win .opt-sub { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
/* ВЫБРАННЫЙ ТАРИФ — лёгкая карточка + левый акцентный кант (а не сплошная
   синяя плита: одиночный тариф больше не читается пустым слэбом) */
.open-win .seg.vertical .seg-btn.on {
  background: var(--panel-2); color: var(--ink); font-weight: 800;
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent), var(--c-glow);
}
.open-win .seg.vertical .seg-btn.on .opt-sub { color: var(--accent); }

/* ========================================================================== */
/*  СТЕППЕР  [ − | N | + ]  — равные торцы (C) + рисованные бары (B)          */
/*  − и + НЕ шрифтовые глифы (у них разная метрика = «кривизна»), а штрихи:   */
/*  ::before = горизонталь на обоих, ::after = вертикаль только на + →        */
/*  идентичный вес и центрирование по обеим осям, доказуемо симметрично.      */
/* ========================================================================== */
.open-win .stepper {
  display: grid;
  grid-template-columns: var(--c-h) minmax(64px, auto) var(--c-h);  /* равные торцы */
  align-items: stretch; justify-self: start; height: var(--c-h);
  padding: 0; border: 1.5px solid var(--c-line); border-radius: var(--c-radius);
  background: var(--panel-2); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.open-win .stepper > .step-btn,
.open-win .stepper > .step-num {
  margin: 0; padding: 0; border: none; border-radius: 0; background: transparent;
  display: grid; place-items: center; height: 100%; width: 100%;
  min-height: 0; min-width: 0; line-height: 1; box-shadow: none;
}
/* кнопки − / + : глиф скрыт, штрихи рисуем сами */
.open-win .stepper > .step-btn {
  position: relative; color: transparent; font-size: 0;
  -webkit-tap-highlight-color: transparent;
}
.open-win .stepper > .step-btn::before {           /* горизонталь — на обоих (это минус) */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 3px; border-radius: 2px;
  background: var(--c-ink-2); transform: translate(-50%, -50%);
}
.open-win .stepper > .step-btn:last-child::after { /* вертикаль — только на + */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 3px; height: 20px; border-radius: 2px;
  background: var(--c-ink-2); transform: translate(-50%, -50%);
}
.open-win .stepper > .step-btn:active { background: var(--accent-soft); }
.open-win .stepper > .step-btn:active::before,
.open-win .stepper > .step-btn:active::after { background: var(--accent); }
/* цифра — tabular-nums, по центру, чистые хайрлайн-разделители */
.open-win .stepper > .step-num {
  font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: .01em; color: var(--ink);
  border-left: 1.5px solid var(--c-line); border-right: 1.5px solid var(--c-line);
  background: var(--panel);
}
.open-win .stepper > .step-num:active { background: var(--accent-soft); }

/* ---- подсказка правил: схлопывается когда пусто (Стандарт = без текста) --- */
.open-win .wiz-hint {
  margin-top: 2px; padding: 9px 13px; font-size: 14px; line-height: 1.38;
  color: var(--c-ink-2); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
}
.open-win .wiz-hint:empty { display: none; }

/* ========================================================================== */
/*  ПАНЕЛЬ ИГРОКОВ                                                            */
/* ========================================================================== */
.open-win .open-col.players {
  align-self: start; display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 16px 18px;
}
.open-win .players-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.open-win .players-head > span {
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
/* степпер в шапке — та же геометрия, компактнее; бары чуть короче */
.open-win .players-head .stepper {
  height: 56px; grid-template-columns: 54px minmax(56px, auto) 54px; border-radius: 13px;
}
.open-win .players-head .stepper > .step-num { font-size: 24px; }
.open-win .players-head .stepper > .step-btn::before { width: 17px; }
.open-win .players-head .stepper > .step-btn:last-child::after { height: 17px; }

/* сетка карточек — ровно 2 колонки, до 8 игроков без обрезки */
.open-win .players-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  margin: 0; align-content: start;
}
.open-win .player-card { display: flex; gap: 6px; min-width: 0; }
.open-win .player-name {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: var(--c-radius);
  background: var(--panel-2); color: var(--ink); text-align: left; cursor: pointer;
}
.open-win .player-name .player-no {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 900; font-size: 13px; line-height: 1;
}
.open-win .player-name .player-nm {
  flex: 1; min-width: 0; font-size: 18px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* плейсхолдер «ИгрокN» — пунктирная рамка (не назван, tap чтобы ввести) +
   читаемый бейдж (контур, а не блёклая заливка — цифра не теряется) */
.open-win .player-name.placeholder { border-style: dashed; }
.open-win .player-name.placeholder .player-nm { color: var(--muted); font-weight: 600; }
.open-win .player-name.placeholder .player-no {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--line-strong);
}

/* тумблер бортиков «Б» — одна высота с именем, квадратный, чёткий on */
.open-win .bump-toggle {
  flex: none; width: 48px; min-height: 54px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: var(--c-radius);
  background: var(--panel-2); color: var(--muted); font-weight: 800;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.open-win .bump-toggle.on {
  background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--c-glow);
}

/* ========================================================================== */
/*  НИЖНИЙ БАР: итог + «Открыть» (графт A — уверенная сплошная CTA)           */
/*  scoped на .open-win-modal → прочие wide-модалки не задеты                 */
/* ========================================================================== */
.open-win .open-summary { font-size: 20px; font-weight: 800; color: var(--ink); }
.modal.open-win-modal .wizard-bar {
  background: var(--panel); border-top: 1px solid var(--line);
}
.modal.open-win-modal .wizard-bar .primary.big {
  /* CTA глубже soft-выделений — главное действие отделяется по контрасту */
  background: color-mix(in srgb, var(--accent) 92%, #000);
  color: #fff; border: 1px solid color-mix(in srgb, var(--accent) 88%, #000);
  border-radius: var(--c-radius); font-weight: 800; box-shadow: var(--c-glow);
}
.modal.open-win-modal .wizard-bar .primary.big:active { filter: brightness(.96); }

/* одноколоночный фолбэк на узких (не срабатывает на 1366) */
@media (max-width: 820px) { .open-win .open-grid { grid-template-columns: 1fr; } }

/* ========================================================================== */
/*  ТЕХНОЛОГИЧЕСКИЙ ЛОГ — наладочный дамп событий/фолтов (временный инструмент) */
/* ========================================================================== */
.modal.techlog-modal { width: min(1400px, calc(100vw - 32px)); max-width: none; }
html[data-theme] body #modal .modal.techlog-modal > .modal-head { flex: none; grid-template-columns: minmax(0, 1fr); }
.modal-body.techlog-body { max-width: none; gap: 16px; min-width: 0; }
.techlog-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.techlog-filter .seg { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
html[data-theme] body #modal .modal.techlog-modal .techlog-filter .seg-btn { flex: 1 1 auto; width: auto; min-width: 44px; min-height: 48px; height: auto; padding: 10px 16px; font-size: 16px; white-space: normal; overflow-wrap: anywhere; border: 0; box-shadow: none; background: var(--panel-2); color: var(--ink); }
html[data-theme] body #modal .modal.techlog-modal .techlog-filter .seg-btn.on { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -3px var(--accent); }
html[data-theme] body #modal .modal.techlog-modal .techlog-filter .seg-btn:not(.on) { background: transparent; box-shadow: none; }
.techlog-count { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.techlog-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.techlog-empty { color: var(--muted); font-size: 18px; padding: 24px 8px; }
.techlog-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; padding: 16px; border: 0; border-radius: 8px; font-family: inherit; font-size: 16px; line-height: 1.5; background: var(--panel-2); overflow-wrap: anywhere; }
.techlog-row .tl-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; font-size: 14px; }
.techlog-row .tl-ts { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.techlog-row .tl-lane { color: var(--ink); }
.techlog-row .tl-sev { font-weight: 700; color: var(--muted); }
.techlog-row .tl-msg { min-width: 0; color: var(--ink); font-weight: 600; }
.techlog-row .tl-repeat { color: var(--muted); }
.techlog-row .tl-details { min-width: 0; }
.techlog-row .tl-details summary { display: list-item; width: fit-content; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 4px; color: var(--ink); cursor: pointer; font-size: 14px; }
.techlog-row .tl-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.techlog-row .tl-raw { min-width: 0; max-width: 100%; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; color: var(--ink); }
.techlog-row.sev-error .tl-sev { color: color-mix(in srgb, var(--bad) 75%, var(--ink)); }
.techlog-modal .wizard-bar button { min-height: 48px; }
@media (max-width: 600px) {
  .modal.techlog-modal { width: calc(100vw - 16px); }
  .techlog-modal .modal-head { padding: 16px; }
  .techlog-modal .modal-head h3 { font-size: 22px; }
  .modal-body.techlog-body { padding: 16px; }
  .techlog-row { padding: 12px; }
  .techlog-filter .seg { flex-basis: 100%; }
  .techlog-modal .wizard-bar { padding: 12px 16px; }
}

/* открытие без линка: предупреждающий чип (не блокер) */
.open-win .wiz-hint.link-warn { background: #fff4dd; border-color: #e8c56a; color: #7a5c10; font-weight: 700; margin-bottom: 4px; }
.open-win .wiz-hint.link-warn.hard { background: #ffe9e6; border-color: #e8938a; color: #8a2b22; }

/* ========================================================================== */
/*  Окно «Открыть» — FULLSCREEN APP SCREEN:                                   */
/*  жёстко в размер экрана (никаких скроллов), раскладка тянется vh-clamp'ом, */
/*  визуальный язык Apple: серый фон, белые карточки, iOS-сегменты.           */
/* ========================================================================== */
.modal.open-win-modal { width: 100vw; }
.modal.open-win-modal.fullscreen { grid-template-rows: clamp(58px, 9vh, 92px) 1fr auto; }
.modal.open-win-modal .modal-head { padding: 0 clamp(20px, 3vw, 44px); }
.modal.open-win-modal .modal-head h3 { font-size: clamp(22px, 3.4vh, 32px); }
/* тело: вся ширина, две зоны по вертикали (warning? + контент), НИКОГДА не скроллит */
.modal.fullscreen .modal-body.open-win {
  max-width: min(1720px, 100vw);
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(8px, 1.4vh, 16px);
  padding: clamp(10px, 1.8vh, 24px) clamp(20px, 3vw, 44px) clamp(8px, 1.4vh, 18px);
  background: var(--bg);
}
.modal-body.open-win { --c-h: clamp(46px, 7.4vh, 62px); --c-radius: clamp(11px, 1.8vh, 14px); }
/* когда warning-чипа нет — контент занимает всё (auto-ряд схлопывается) */
.open-win .wiz-hint.link-warn { margin: 0; padding: clamp(5px, 1vh, 9px) 14px; font-size: clamp(13px, 2vh, 15px); }

/* ---- сетка: форма | игроки ---- */
.open-win .open-grid {
  display: grid;
  grid-template-columns: 1fr clamp(340px, 30vw, 470px);
  gap: clamp(18px, 2.6vw, 44px);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
.open-win .game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.4vh, 16px) clamp(16px, 2vw, 28px);
  align-content: space-between;   /* секции равномерно занимают высоту — без дыры внизу */
  min-height: 0;
}
.open-win .wiz-section { gap: clamp(5px, 1vh, 9px); }
.open-win .wiz-label { font-size: clamp(11px, 1.7vh, 13px); }
.open-win .wiz-hint { padding: clamp(5px, 1vh, 9px) 12px; font-size: clamp(12px, 1.9vh, 14px); }

/* ---- iOS-сегменты: серая капсула, выбранный = белая карточка с тенью ---- */
.open-win .seg {
  background: #e4e9ef;
  border-radius: calc(var(--c-radius) + 3px);
  padding: 4px;
  gap: 4px;
  box-shadow: none;
}
.open-win .seg-btn {
  min-height: calc(var(--c-h) - 8px);
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: var(--c-radius);
  color: var(--ink);
  font-size: clamp(16px, 2.6vh, 20px);
  font-weight: 600;
  transition: background .15s ease, box-shadow .15s ease;
}
.open-win .seg-btn.on {
  background: #fff;
  border: none;
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 1px 1px rgba(16,24,32,.10), 0 3px 10px rgba(16,24,32,.10);
}
/* тариф — карточки на фоне (не капсула): выбранная = синее кольцо (Apple Store) */
.open-win .seg.vertical { background: transparent; padding: 0; gap: clamp(8px, 1.4vh, 12px); display: flex; flex-wrap: wrap; }
.open-win .seg.vertical .seg-btn {
  flex: 0 1 300px; min-width: 220px; max-width: 380px;
  min-height: var(--c-h);
  background: var(--panel-2);
  border: 1.5px solid var(--line);
  border-radius: var(--c-radius);
  box-shadow: none;
  justify-content: space-between; text-align: left; padding: 0 16px 0 18px; gap: 14px;
}
.open-win .seg.vertical .seg-btn.on {
  border: 2px solid var(--accent);
  background: #fff;
  box-shadow: 0 3px 12px rgba(47,120,212,.16);
}
.open-win .seg.vertical .seg-btn.on .opt-sub { color: var(--accent); }
.open-win .opt-sub { font-size: clamp(13px, 2.2vh, 16px); }

/* ---- степпер: серая капсула, белая цифра-вставка ---- */
.open-win .stepper {
  grid-template-columns: calc(var(--c-h) - 4px) minmax(60px, auto) calc(var(--c-h) - 4px);
  height: var(--c-h);
  border: none;
  border-radius: calc(var(--c-radius) + 3px);
  background: #e4e9ef;
  padding: 4px;
  box-shadow: none;
  overflow: visible;
}
.open-win .stepper > .step-btn { border-radius: var(--c-radius); }
.open-win .stepper > .step-btn::before { background: #46525f; }
.open-win .stepper > .step-btn:last-child::after { background: #46525f; }
.open-win .stepper > .step-num {
  border: none;
  border-radius: var(--c-radius);
  background: #fff;
  box-shadow: 0 1px 1px rgba(16,24,32,.10), 0 3px 10px rgba(16,24,32,.10);
  font-size: clamp(20px, 3.4vh, 26px);
}

/* ---- панель игроков: белая карточка, серые пилюли ---- */
.open-win .open-col.players {
  align-self: stretch;
  background: var(--panel-2);
  border: none;
  border-radius: clamp(14px, 2.4vh, 20px);
  box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 8px 28px rgba(16,24,32,.06);
  padding: clamp(12px, 2vh, 20px);
  gap: clamp(8px, 1.6vh, 14px);
  min-height: 0;
  overflow: hidden;
}
.open-win .players-head { padding-bottom: clamp(8px, 1.6vh, 14px); }
.open-win .players-head .stepper { height: clamp(44px, 6.6vh, 56px); grid-template-columns: clamp(40px,6vh,52px) minmax(52px,auto) clamp(40px,6vh,52px); }
.open-win .players-list { gap: clamp(6px, 1.2vh, 12px); align-content: start; min-height: 0; }
.open-win .player-name {
  min-height: clamp(44px, 6.8vh, 56px);
  border: none;
  background: #f0f3f7;
  border-radius: var(--c-radius);
}
.open-win .player-name.placeholder { border: none; background: #f0f3f7; }
.open-win .player-name.placeholder .player-nm { color: var(--muted); }
.open-win .player-name .player-nm { font-size: clamp(15px, 2.4vh, 18px); }
.open-win .bump-toggle {
  min-height: clamp(44px, 6.8vh, 56px); width: clamp(40px, 6vh, 48px);
  border: none; background: #f0f3f7; border-radius: var(--c-radius);
}
.open-win .bump-toggle.on { background: var(--accent); color: #fff; box-shadow: none; }

/* ---- нижний бар: итог + CTA-пилюля ---- */
.modal.open-win-modal .wizard-bar {
  min-height: clamp(72px, 12vh, 116px);
  padding: clamp(8px, 1.4vh, 16px) clamp(20px, 3vw, 44px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.open-win-modal .open-summary { font-size: clamp(16px, 2.6vh, 21px); }
.modal.open-win-modal .wizard-bar .primary.big {
  min-height: clamp(54px, 8.6vh, 76px);
  font-size: clamp(22px, 3.4vh, 30px);
  border-radius: clamp(12px, 2vh, 16px);
}
/* тариф в полуколонке: карточки заполняют ширину секции */
.open-win .seg.vertical .seg-btn { flex: 1 1 220px; min-width: 180px; max-width: none; }
/* равномерный воздух между рядами формы (не дыры краевого space-between) */
.open-win .game-grid { align-content: space-evenly; }
.modal.open-win-modal .modal-close { min-width: clamp(44px, 7vh, 58px); min-height: clamp(44px, 7vh, 58px); font-size: clamp(22px, 3.6vh, 30px); }
/* крупный экран (1080+): контролы растут дальше — экран заполнен, не теряется */
.modal-body.open-win { --c-h: clamp(46px, 7.4vh, 80px); }
.open-win .seg-btn { font-size: clamp(16px, 2.7vh, 25px); }
.open-win .opt-sub { font-size: clamp(13px, 2.2vh, 19px); }
.open-win .wiz-label { font-size: clamp(11px, 1.8vh, 15px); }
.open-win .stepper > .step-num { font-size: clamp(20px, 3.6vh, 32px); }
.open-win .players-head .stepper { height: clamp(44px, 7vh, 68px); grid-template-columns: clamp(40px,6.4vh,62px) minmax(56px,auto) clamp(40px,6.4vh,62px); }
.open-win .players-head > span { font-size: clamp(11px, 1.8vh, 15px); }
.open-win .player-name { min-height: clamp(44px, 7.2vh, 74px); }
.open-win .player-name .player-nm { font-size: clamp(15px, 2.6vh, 22px); }
.open-win .player-name .player-no { width: clamp(22px, 3.6vh, 32px); height: clamp(22px, 3.6vh, 32px); font-size: clamp(12px, 2vh, 16px); }
.open-win .bump-toggle { min-height: clamp(44px, 7.2vh, 74px); width: clamp(40px, 6.4vh, 60px); font-size: clamp(16px, 2.6vh, 22px); }
.open-win .players-list { gap: clamp(6px, 1.6vh, 16px); }
.open-win .game-grid { gap: clamp(6px, 1.4vh, 20px) clamp(16px, 2.4vw, 40px); }
.modal.open-win-modal .wizard-bar .primary.big { min-height: clamp(54px, 9vh, 86px); font-size: clamp(22px, 3.6vh, 33px); }
.open-win-modal .open-summary { font-size: clamp(16px, 2.8vh, 24px); }
.open-win .wiz-hint.link-warn { font-size: clamp(13px, 2.2vh, 17px); }
/* переменная должна жить и на .open-grid — иначе старое значение с него перекрывает */
.modal-body.open-win, .open-win .open-grid { --c-h: clamp(46px, 7.4vh, 80px); --c-radius: clamp(11px, 1.9vh, 16px); }
/* панель игроков — по контенту (белая пустая простыня хуже честного воздуха) */
.open-win .open-col.players { align-self: start; }

/* ========================================================================== */
/*  «Дорожка N — управление» — FULLSCREEN app-экран, тот же Apple-язык что и   */
/*  окно «Открыть»: серый фон, белые карточки, жёстко в размер экрана, без    */
/*  сырого дебаг-лога на главном экране (для этого есть Технологический лог). */
/* ========================================================================== */
.modal.lane-ctl-modal { width: 100vw; }
.modal.lane-ctl-modal.fullscreen { grid-template-rows: clamp(58px, 9vh, 92px) 1fr auto; }
.modal.lane-ctl-modal .modal-head { padding: 0 clamp(20px, 3vw, 44px); }
.modal.lane-ctl-modal .modal-head h3 { font-size: clamp(22px, 3.4vh, 32px); }
.modal.lane-ctl-modal .modal-close { min-width: clamp(44px, 7vh, 58px); min-height: clamp(44px, 7vh, 58px); font-size: clamp(22px, 3.6vh, 30px); }
.modal.fullscreen .modal-body.lc-body,
.modal.lane-ctl-modal .modal-body {
  max-width: min(1720px, 100vw);
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(10px, 1.8vh, 24px) clamp(20px, 3vw, 44px) clamp(8px, 1.4vh, 18px);
  background: var(--bg);
}

/* ---- статус-строка: счёт | игроки | бейдж машины — ОДНА строка, без дублей */
.lc-status {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  background: var(--panel-2);
  border-radius: clamp(12px, 2vh, 16px);
  padding: clamp(10px, 1.8vh, 16px) clamp(14px, 2vw, 22px);
  box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 6px 20px rgba(16,24,32,.05);
}
.lc-status-score { font-size: clamp(18px, 3vh, 26px); font-weight: 800; color: var(--ink); }
.lc-status-bowlers { font-size: clamp(14px, 2.3vh, 18px); color: var(--muted); font-weight: 600; }
.lc-status-spacer { flex: 1; }
.lc-empty { color: var(--muted); font-size: clamp(15px, 2.4vh, 19px); padding: clamp(16px, 3vh, 28px) 4px; }

/* ---- lane-level extend/tariff row (было per-bowler "+1", теперь один раз) -- */
.lc-extend-row { display: flex; }
.lc-extend {
  min-height: clamp(44px, 7vh, 60px);
  padding: 0 clamp(16px, 2.4vw, 26px);
  border: 1.5px solid var(--line);
  border-radius: clamp(11px, 1.8vh, 14px);
  background: var(--panel-2);
  color: var(--accent);
  font-size: clamp(14px, 2.3vh, 18px);
  font-weight: 700;
}
.lc-extend:active { background: var(--accent-soft); }

/* ---- игроки: 2-колоночная сетка карточек (НЕ таблица в 1 столбец — та не   */
/* влезала по высоте на 8 игроках и молча обрезала строки). Обёртка со       */
/* скроллом — чистая СТРАХОВКА сверх расчётных 8 (сервер пускает до 12 через */
/* прямой API); в норме содержимое короче области, видимого скролла нет.     */
.lc-scroll { min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px); }
.lc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vh, 14px) clamp(12px, 1.6vw, 20px); align-content: start; }
.lc-card {
  display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px);
  min-height: clamp(46px, 7.2vh, 68px);
  padding: 0 clamp(10px, 1.4vw, 16px);
  border: 1.5px solid var(--line);
  border-radius: clamp(11px, 1.8vh, 14px);
  background: var(--panel-2);
}
.lc-card.on { border-color: var(--accent); background: var(--accent-soft); }
.lc-card-name {
  display: flex; align-items: baseline; gap: 6px; flex: 1 1 auto; min-width: 0;
  border: none; background: transparent; padding: 0; text-align: left;
}
.lc-card-nm { font-size: clamp(14px, 2.3vh, 18px); font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-card-marks { font-size: 11px; color: #b8860b; font-weight: 800; flex: none; }
.lc-card-stat { flex: none; font-size: clamp(11.5px, 1.8vh, 14px); color: var(--muted); font-weight: 600; white-space: nowrap; }
.lc-card-money { flex: none; display: flex; align-items: baseline; gap: 3px; }
.lc-card-due { font-size: clamp(14px, 2.2vh, 18px); color: var(--bad); font-weight: 800; }
.lc-card-total { font-size: clamp(11px, 1.7vh, 13px); color: var(--muted); }
.lc-card-sel {
  flex: none; width: clamp(28px, 4.4vh, 36px); height: clamp(28px, 4.4vh, 36px);
  border: 1.5px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--muted); font-weight: 900; font-size: 15px;
}
.lc-card-sel.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- итоговая строка вместо трёх табличных footer-рядов -------------------- */
.lc-summary { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 32px); align-items: baseline; padding: clamp(4px, 1vh, 8px) 2px 0; border-top: 1px solid var(--line); }
.lc-sum-item { display: flex; align-items: baseline; gap: 8px; font-size: clamp(13px, 2vh, 16px); }
.lc-sum-label { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: clamp(10.5px, 1.5vh, 12px); letter-spacing: .08em; }
.lc-sum-item b { font-weight: 800; color: var(--ink); }
.lc-sum-item.grand { margin-left: auto; gap: 12px; }
.lc-sum-item.grand b { font-size: clamp(18px, 2.9vh, 25px); }
.lc-sum-due { color: var(--bad); font-weight: 800; font-size: clamp(14px, 2.2vh, 18px); }
/* Тестовый визит: суммы в окне — справка, а не долг. Красный (--bad) в этом окне значит
   «деньги, которые надо взять»; на визите, по которому никто платить не будет, он читается
   как долг и торопит оператора к оплате, которой не существует. Берётся нейтральный
   информационный тон темы (--muted) — у платного визита цвета не меняются. */
.lc-scroll.is-no-money .lc-card-due,
.lc-scroll.is-no-money .lc-sum-due { color: var(--muted); }
/* Та же причина в рабочей области визита: сумма по тестовому визиту — справка. */
.daily-facts .is-no-money dd { color: var(--muted); }
/* Причина, по которой деньги недоступны, — предупреждение, а не долг: оператору нужно
   действие (обновить узел, позвать менеджера), а не сумма к взысканию. */
.lc-money-blocked { color: var(--warn); font-weight: 600; padding: 6px 0 0; line-height: 1.35; }

.modal.lane-ctl-modal .wizard-bar { min-height: clamp(64px, 11vh, 100px); padding: clamp(8px, 1.4vh, 16px) clamp(20px, 3vw, 44px); }
.modal.lane-ctl-modal .wizard-bar button { min-height: clamp(46px, 7.4vh, 64px); font-size: clamp(15px, 2.3vh, 19px); }
.modal.lane-ctl-modal .wizard-bar .primary.big { min-height: clamp(50px, 8vh, 68px); font-size: clamp(17px, 2.6vh, 21px); }

/* крупный экран (1080+): карточки растут дальше, а не оставляют пустоту снизу */
.lc-cards { gap: clamp(8px, 1.8vh, 22px) clamp(12px, 1.6vw, 26px); }
.lc-card { min-height: clamp(46px, 8.6vh, 96px); }
.lc-card-nm { font-size: clamp(14px, 2.8vh, 24px); }
.lc-card-stat { font-size: clamp(11.5px, 2.1vh, 17px); }
.lc-card-due { font-size: clamp(14px, 2.7vh, 24px); }
.lc-card-total { font-size: clamp(11px, 2vh, 16px); }
.lc-card-sel { width: clamp(28px, 5.2vh, 46px); height: clamp(28px, 5.2vh, 46px); font-size: clamp(14px, 2.4vh, 19px); }
.lc-sum-item.grand b { font-size: clamp(18px, 3.6vh, 32px); }
.lc-sum-due { font-size: clamp(14px, 2.7vh, 24px); }

/* ========================================================================== */
/*  СПИСОЧНЫЕ ЭКРАНЫ (Отложенные/Тарифы/Очередь/Настройки) — FULLSCREEN,      */
/*  2-колоночная сетка карточек + СКРОЛЛ КАК СТРАХОВКА (не основной механизм) */
/* ========================================================================== */
.modal.list-modal { width: 100vw; }
.modal.list-modal.fullscreen { grid-template-rows: clamp(58px, 9vh, 92px) 1fr auto; }
.modal.list-modal .modal-head { padding: 0 clamp(20px, 3vw, 44px); }
.modal.list-modal .modal-head h3 { font-size: clamp(22px, 3.4vh, 32px); }
.modal.list-modal .modal-close { min-width: 64px; min-height: 64px; font-size: clamp(22px, 3.6vh, 30px); }
.modal.list-modal .modal-body {
  max-width: min(1720px, 100vw);
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(10px, 1.8vh, 24px) clamp(20px, 3vw, 44px) clamp(8px, 1.4vh, 18px);
  background: var(--bg);
}
.modal.list-modal .settings-lead { flex: none; margin: 0; font-size: clamp(14px, 2.2vh, 19px); }
.modal.list-modal .parked-row.new-pk { flex: none; }
/* НАСТОЯЩИЙ скролл-бэкап — не молчаливый clip: если список длиннее área, тут
   появится реальная прокрутка, а не пропавшие без следа карточки/тарифы. */
.list-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.rows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vh, 14px) clamp(12px, 1.6vw, 20px); align-content: start; }
.modal.list-modal .parked-row {
  padding: clamp(10px, 1.6vh, 18px) clamp(12px, 1.6vw, 18px);
  border-radius: clamp(11px, 1.8vh, 14px);
  gap: clamp(6px, 1vh, 10px);
  background: var(--panel-2);
}
.modal.list-modal .parked-row > .park-name b { font-size: clamp(15px, 2.3vh, 20px); }
.modal.list-modal .parked-row .actions button { min-height: clamp(38px, 6vh, 48px); font-size: clamp(13px, 2vh, 17px); }
.modal.list-modal .settings-list { grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vh, 14px); }
.modal.list-modal .settings-row { min-height: 64px; padding: clamp(8px, 1.4vh, 14px) clamp(10px, 1.6vw, 16px); }
.modal.list-modal .settings-theme-row .seg button { min-height: 64px; }
.modal.list-modal .about-trigger { min-width: 64px; min-height: 64px; }
.modal.list-modal .settings-name { font-size: clamp(14px, 2.1vh, 19px); }
.modal.list-modal .settings-note { font-size: clamp(11px, 1.7vh, 15px); }

/* ========================================================================== */
/*  БРОНИ — fullscreen; недельная сетка (14 часовых колонок) ужимается по      */
/*  ширине через minmax(0,1fr) вместо жёсткого пола 110px, который раньше     */
/*  вылезал за модалку без всякого признака горизонтальной обрезки.          */
/* ========================================================================== */
.modal.bookings-modal { width: 100vw; }
.modal.bookings-modal.fullscreen .modal-body {
  max-width: min(1760px, 100vw);
  width: 100%;
  margin: 0 auto;
  /* auto, НЕ hidden: этот modal-body переиспользуется под detailsView/createView/
     slotListView (форма с депозитом/переносом/отменой) — им нужен настоящий
     скролл-бэкап, а не clip. Сама недельная сетка не скроллит по своей CSS
     (см. .sheet ниже: minmax(0,1fr) ужимает 14 колонок, а не скроллит) —
     overflow:auto здесь НИКОГДА не проявится на самой сетке. */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1.8vh, 22px) clamp(16px, 2.4vw, 36px) clamp(8px, 1.4vh, 16px);
  background: var(--bg);
}
.modal.bookings-modal .sheet {
  display: grid;
  grid-template-columns: clamp(34px, 4.4vw, 60px) repeat(14, minmax(0, 1fr));
  gap: clamp(3px, .5vw, 6px);
  overflow: hidden;               /* НЕ auto — колонки должны реально влезать */
  padding-bottom: 4px;
}
.modal.bookings-modal .sheet-corner,
.modal.bookings-modal .sheet-hour { font-size: clamp(9px, 1.3vh, 13px); padding: 3px 0; }
.modal.bookings-modal .sheet-lane { font-size: clamp(14px, 2.2vh, 19px); }
.modal.bookings-modal .sheet-cell { min-height: clamp(44px, 7vh, 70px); padding: 3px; gap: 3px; }
.modal.bookings-modal .sheet-bk { min-height: clamp(30px, 4.6vh, 46px); padding: 3px 6px; font-size: clamp(9.5px, 1.4vh, 12.5px); }

/* ========================================================================== */
/*  DASHBOARD — центр вместо угла при малом числе дорожек,                    */
/*  резерв места под кнопку (текст статуса больше не наезжает на неё),       */
/*  тач-таргет .tile-action поднят до нормы (было 34px/28px).                */
/* ========================================================================== */
.lanes-panel.sparse { display: flex; align-items: center; justify-content: center; }
.lane-metrics { padding-bottom: 54px !important; }
.tile-action { min-height: 42px; font-size: 16px; }
.lanes.rows-3 .lane-metrics,
.lanes.rows-many .lane-metrics { padding-bottom: 42px !important; }
.lanes.rows-3 .tile-action,
.lanes.rows-many .tile-action { min-height: 38px; font-size: 15px; }

/* ========================================================================== */
/*  PIN-пад / numPad — общие классы .pinpad/.pin-btn, но два разных контекста: */
/*  плавающий компактный диалог (PIN менеджера, ~500px) и денежная клавиатура  */
/*  тоже плавающая (#numpad). --touch-lg:96px клавиши не влезали              */
/*  на 1203x642 (нужно 542px, доступно 489px) — переведено на vh-clamp.       */
/* ========================================================================== */
.pinpad { gap: clamp(8px, 1.6vh, 14px); }
.pin-btn { min-height: clamp(56px, 11vh, 96px); font-size: clamp(20px, 5vh, 38px); }
.pin-dots { min-height: clamp(32px, 6vh, 56px); font-size: clamp(20px, 4vh, 34px); }
/* #numpad specifically: display + presets
   + 4x3 grid + OK together were taller than the compact modal at 1280x720 and
   1024x768 — the bottom row rendered past the viewport, reachable only via
   scroll. The plain PIN-entry .pinpad elsewhere has no display/presets and
   already fit, so this is scoped to #numpad only. Every value stays
   vh-relative, same pattern as the .pin-btn audit fix above, so it self-fits
   rather than hardcoding one resolution. */
#numpad .modal-head { padding: clamp(6px, 1.2vh, 18px) 20px; }
#numpad .modal-head h3 { font-size: clamp(16px, 2.4vh, 22px); }
#numpad .modal-close { min-width: 44px; min-height: 44px; font-size: 20px; }
#numpad .modal-body { padding: clamp(8px, 1.6vh, 22px) 20px; gap: clamp(6px, 1.2vh, 16px); }
#numpad .num-display { min-height: clamp(44px, 6vh, 88px); font-size: clamp(22px, 4vh, 48px); padding: 0 20px; }
#numpad .preset-row { gap: clamp(6px, 1vh, 12px); }
#numpad .preset-row button { min-height: clamp(44px, 6vh, 64px); padding: 6px 14px; font-size: clamp(15px, 2.4vh, 22px); }
#numpad .pinpad { gap: clamp(6px, 1.2vh, 14px); }
#numpad .pin-btn { min-height: clamp(56px, 9vh, 96px); font-size: clamp(18px, 4.4vh, 38px); }
#numpad .form-actions { margin-top: 0; }
#numpad .form-actions .primary.big { min-height: clamp(44px, 6.5vh, 72px); font-size: clamp(17px, 2.8vh, 22px); }
/* sparse (≤4 дорожек): .lanes наследует flex:1 из плотного режима (растягивает
   на всю высоту панели) — из-за этого justify-content:center было нечего
   центрировать. Сбрасываем на flex:0 0 auto, чтобы сетка была РОВНО по
   содержимому и реально центрировалась родителем. */
.lanes-panel.sparse .lanes { flex: 0 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME B — «НЕОНОВЫЙ ЗАЛ»: grid-screen reskin (phase 1)
   Frosted glass on the neon backdrop; lane status = colour + card glow + dot.
   Reads ONLY semantic tokens. Overrides the legacy light-tile values in place so
   the diff is contained and the modal layer stays untouched for phase 2.
   ═══════════════════════════════════════════════════════════════════════════ */
:root[data-theme="neon"] {
  /* glass helper: frosted surface with hairline + soft lift */
}

/* ── top bar ─────────────────────────────────────────────────────────────── */
[data-theme="neon"] .topbar {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
}
[data-theme="neon"] h1 {
  color: var(--ink);
  text-shadow: 0 0 22px rgba(62,224,242,.22);
}
[data-theme="neon"] .tab { color: var(--muted); }
[data-theme="neon"] .tab:hover { color: var(--ink); background: var(--accent-soft); }
[data-theme="neon"] .tab.shift-on { color: var(--st-free); border-bottom-color: var(--st-free); }

/* ── license / summary rail ──────────────────────────────────────────────── */
[data-theme="neon"] .band-rail {
  background: var(--surface);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--muted);
}
[data-theme="neon"] .band-main,
[data-theme="neon"] .band-summary { color: var(--ink); }
[data-theme="neon"] .band-rail.ok  { border-color: color-mix(in srgb, var(--st-free) 45%, transparent); }
[data-theme="neon"] .band-rail.warn{ border-color: color-mix(in srgb, var(--st-book) 55%, transparent); }
[data-theme="neon"] .band-rail.bad { border-color: color-mix(in srgb, var(--st-fault) 55%, transparent); }

/* ── lane tile: frosted card, status glow ────────────────────────────────── */
[data-theme="neon"] .lane {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--glass-line);
  border-radius: var(--r-3);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(var(--blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
/* tile head: transparent glass strip (was near-white) */
[data-theme="neon"] .lane-head {
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  border-bottom: 1px solid var(--glass-line);
}
[data-theme="neon"] .lane-no { color: var(--ink); font-weight: 750; }
[data-theme="neon"] .lane-no .lane-word { color: var(--muted); }
[data-theme="neon"] .lane-chip {
  background: var(--surface-2);
  border: 1px solid var(--glass-line-2);
  color: var(--ink);
}
[data-theme="neon"] .lane-quick-btn { color: var(--muted); }
[data-theme="neon"] .lane-quick-btn:hover { color: var(--ink); background: var(--accent-soft); }

/* metrics: bright ink on glass (was dark ink on white) */
[data-theme="neon"] .lane-metrics { color: var(--ink); }
[data-theme="neon"] .metric-main { color: var(--ink); font-weight: 750; }
[data-theme="neon"] .metric-sub  { color: var(--ink); }
[data-theme="neon"] .metric-note { color: var(--muted); }

/* legacy raster pin photo — junk from the old light design; remove entirely */
[data-theme="neon"] .lane-bg-img { display: none; }

/* status: border tint + card glow + dot, mapped onto the 5 brief tokens */
[data-theme="neon"] .lane.s-active,
[data-theme="neon"] .lane.s-ready,
[data-theme="neon"] .lane.s-warn,
[data-theme="neon"] .lane.s-nocomm,
[data-theme="neon"] .lane.s-alarm,
[data-theme="neon"] .lane.s-idle { background-color: transparent; }

[data-theme="neon"] .lane.s-active { border-color: color-mix(in srgb, var(--st-play) 55%, transparent);
  box-shadow: var(--elev-1), 0 0 26px var(--st-play-glow), inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="neon"] .lane.s-ready  { border-color: color-mix(in srgb, var(--st-free) 50%, transparent);
  box-shadow: var(--elev-1), 0 0 22px var(--st-free-glow), inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="neon"] .lane.s-warn,
[data-theme="neon"] .lane.s-nocomm { border-color: color-mix(in srgb, var(--st-book) 55%, transparent);
  box-shadow: var(--elev-1), 0 0 22px var(--st-book-glow), inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="neon"] .lane.s-alarm  { border-color: color-mix(in srgb, var(--st-fault) 65%, transparent);
  box-shadow: var(--elev-1), 0 0 30px var(--st-fault-glow), inset 0 1px 0 rgba(255,255,255,.06); }
[data-theme="neon"] .lane.s-idle   { border-color: var(--glass-line);
  box-shadow: var(--elev-1); opacity: .82; }

/* status label colour on the tile head (the small state text uses metric-main) */
[data-theme="neon"] .lane.s-active .metric-main { color: var(--st-play); }
[data-theme="neon"] .lane.s-ready  .metric-main { color: var(--st-free); }
[data-theme="neon"] .lane.s-warn   .metric-main,
[data-theme="neon"] .lane.s-nocomm .metric-main { color: var(--st-book); }
[data-theme="neon"] .lane.s-alarm  .metric-main { color: var(--st-fault); }
[data-theme="neon"] .lane.s-idle   .metric-main { color: var(--muted); }

/* selection: bright cyan ring (was blue) */
[data-theme="neon"] .lane.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 30px var(--st-play-glow), var(--elev-1);
}
[data-theme="neon"] .lane.selected .lane-head { background: var(--accent-soft); }
[data-theme="neon"] .lane.multi-selected::before { background: var(--accent); color: #05121a; }

/* tile CTA: glowing accent chip (was flat) */
[data-theme="neon"] .tile-action {
  background: var(--accent);
  color: #05121a;
  box-shadow: 0 0 18px var(--st-play-glow);
  font-weight: 900;
}
[data-theme="neon"] .tile-action.blocked {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--glass-line);
  box-shadow: none;
}

/* mode badge: dark glass (was white) */
[data-theme="neon"] .mode-badge {
  background: rgba(10,9,19,.62);
  border: 1px solid var(--glass-line-2);
  color: var(--ink);
  box-shadow: var(--elev-1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="neon"] .mode-badge span { color: var(--muted); }
[data-theme="neon"] .mode-badge.time { border-color: color-mix(in srgb, var(--st-play) 34%, transparent); }
[data-theme="neon"] .mode-badge.game { border-color: color-mix(in srgb, var(--st-free) 34%, transparent); }
[data-theme="neon"] .mode-badge.countdown b { color: var(--st-play); }
[data-theme="neon"] .mode-badge.countup b { color: var(--st-free); }

/* ── helper strip + toolbar ──────────────────────────────────────────────── */
[data-theme="neon"] .helper-row {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border-top: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
[data-theme="neon"] .toolbar {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-top: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
}
[data-theme="neon"] .toolbar-btn {
  background: var(--surface);
  border: 1px solid var(--glass-line);
  color: var(--ink);
}
[data-theme="neon"] .toolbar-btn:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-soft); }
[data-theme="neon"] .toolbar-btn .toolbar-label { color: var(--muted); }
[data-theme="neon"] .toolbar-btn:hover .toolbar-label { color: var(--ink); }
/* primary CTAs keep their status colour but gain a glow */
[data-theme="neon"] .toolbar-btn.act-open {
  background: color-mix(in srgb, var(--st-free) 88%, black);
  border-color: var(--st-free);
  box-shadow: 0 0 22px var(--st-free-glow);
}
[data-theme="neon"] .toolbar-btn.act-close {
  background: color-mix(in srgb, var(--st-book) 86%, black);
  border-color: var(--st-book);
  box-shadow: 0 0 22px var(--st-book-glow);
}
[data-theme="neon"] .toolbar-btn.act-open .toolbar-icon,
[data-theme="neon"] .toolbar-btn.act-open .toolbar-label,
[data-theme="neon"] .toolbar-btn.act-close .toolbar-icon,
[data-theme="neon"] .toolbar-btn.act-close .toolbar-label { color: #05121a; }
[data-theme="neon"] .toolbar-btn.stop {
  background: rgba(255,90,120,.16);
  border-color: var(--st-fault);
  box-shadow: 0 0 20px var(--st-fault-glow);
}
[data-theme="neon"] .toolbar-btn.stop .toolbar-icon,
[data-theme="neon"] .toolbar-btn.stop .toolbar-label { color: var(--st-fault); }

/* machine link dot: give the live green/red a matching glow */
[data-theme="neon"] .machine-green .machine-dot { background: var(--st-free); box-shadow: 0 0 0 3px var(--st-free-glow), 0 0 10px var(--st-free-glow); }
[data-theme="neon"] .machine-red   .machine-dot { background: var(--st-fault); box-shadow: 0 0 0 3px var(--st-fault-glow), 0 0 12px var(--st-fault-glow); }
[data-theme="neon"] .machine-grey  .machine-dot { background: var(--faint); box-shadow: 0 0 0 3px rgba(93,107,124,.22); }
[data-theme="neon"] .machine-green { color: var(--st-free); }
[data-theme="neon"] .machine-red   { color: var(--st-fault); }
[data-theme="neon"] .machine-grey  { color: var(--muted); }

/* perf guard: on weak VC-box GPUs backdrop-blur drops frames → flat opaque */
@media (prefers-reduced-transparency: reduce), (update: slow) {
  [data-theme="neon"] .topbar,
  [data-theme="neon"] .toolbar,
  [data-theme="neon"] .helper-row,
  [data-theme="neon"] .band-rail,
  [data-theme="neon"] .lane,
  [data-theme="neon"] .mode-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--surface-solid);
  }
}

/* kill the legacy white sweep overlay + light base fill on tiles (phase 1 fix) */
[data-theme="neon"] .lane { background-color: transparent; }
[data-theme="neon"] .lane::after { display: none; }

/* brand emblem — ball with a neon orbit ring (same identity as the lane-TV event
   graphics: terminal↔TV continuity). Magenta orbit + cyan ball glow. */
.brand-emblem { display: inline-flex; line-height: 0; }
.brand-emblem svg { overflow: visible; }
[data-theme="neon"] .brand-emblem .be-orbit {
  fill: none; stroke: var(--brand-ring); stroke-width: 1.6;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--brand-ring) 70%, transparent));
}
[data-theme="neon"] .brand-emblem .be-ball {
  fill: none; stroke: var(--accent); stroke-width: 2;
  filter: drop-shadow(0 0 5px var(--st-play-glow));
}
[data-theme="neon"] .brand-emblem .be-hole { fill: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME B — «НЕОНОВЫЙ ЗАЛ»: correction pass
   Turn the dark recolor into the actual Neon Hall: readable frosted glass, loud
   per-status glow, glowing tactile numbers, no raster junk, grid fills height.
   ═══════════════════════════════════════════════════════════════════════════ */

/* full-bleed neon atmosphere behind everything (fixed, unclippable) */
[data-theme="neon"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg-wash); pointer-events: none;
}

/* grid fills the height — kill the top/bottom dead space of the old sparse mode.
   .lanes-panel stays a flex COLUMN (from .panel); .lanes flexes to fill it and its
   rows stretch equally (1fr). Tiles breathe. */
[data-theme="neon"] .lanes { flex: 1; align-content: stretch; grid-auto-rows: 1fr; }
/* tiles fill their stretched grid row so there's no dead band inside each cell */
[data-theme="neon"] .lane { height: 100%; min-height: clamp(140px, 20vh, 210px); }
/* few-lane (sparse) mode used to center small tiles → half-empty screen. Instead
   fill both axes: a big-min auto-fit grid gives ~2 columns on a wide terminal
   (4 lanes → a 2×2 that fills the screen), and the rows stretch to full height.
   !important overrides the per-count gridTemplateColumns app.js sets inline. */
[data-theme="neon"] .lanes-panel.sparse { align-items: stretch; }
[data-theme="neon"] .lanes-panel.sparse .lanes {
  flex: 1;
  align-content: stretch;
  grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 640px), 1fr)) !important;
}

/* frosted glass, more present: brighter surface, real hairline, visible depth */
[data-theme="neon"] .lane {
  background:
    linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.03) 46%, rgba(255,255,255,.015));
  border: 1px solid var(--glass-line);
  border-radius: var(--r-3);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,.10);
}
[data-theme="neon"] .lane-head {
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent);
  border-bottom: 1px solid var(--glass-line);
}

/* tactile, glowing lane number */
[data-theme="neon"] .lane-no {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255,255,255,.28), 0 1px 2px rgba(0,0,0,.5);
}
[data-theme="neon"] .lane-no .lane-word { color: var(--muted); text-shadow: none; }

/* status name gets a matching glow so it reads across the room */
[data-theme="neon"] .lane.s-active .metric-main { color: var(--st-play); text-shadow: 0 0 20px var(--st-play-glow); }
[data-theme="neon"] .lane.s-ready  .metric-main { color: var(--st-free); text-shadow: 0 0 18px var(--st-free-glow); }
[data-theme="neon"] .lane.s-warn   .metric-main,
[data-theme="neon"] .lane.s-nocomm .metric-main { color: var(--st-book); text-shadow: 0 0 18px var(--st-book-glow); }
[data-theme="neon"] .lane.s-alarm  .metric-main { color: var(--st-fault); text-shadow: 0 0 22px var(--st-fault-glow); }

/* LOUDER per-status card glow (the money moment) */
[data-theme="neon"] .lane.s-active { border-color: color-mix(in srgb, var(--st-play) 62%, transparent);
  box-shadow: var(--elev-1), 0 0 34px var(--st-play-glow), 0 10px 30px var(--st-play-glow), inset 0 1px 0 rgba(255,255,255,.1); }
[data-theme="neon"] .lane.s-ready  { border-color: color-mix(in srgb, var(--st-free) 58%, transparent);
  box-shadow: var(--elev-1), 0 0 30px var(--st-free-glow), 0 10px 26px var(--st-free-glow), inset 0 1px 0 rgba(255,255,255,.1); }
[data-theme="neon"] .lane.s-warn,
[data-theme="neon"] .lane.s-nocomm { border-color: color-mix(in srgb, var(--st-book) 60%, transparent);
  box-shadow: var(--elev-1), 0 0 30px var(--st-book-glow), 0 10px 26px var(--st-book-glow), inset 0 1px 0 rgba(255,255,255,.1); }
[data-theme="neon"] .lane.s-alarm  { border-color: color-mix(in srgb, var(--st-fault) 72%, transparent);
  box-shadow: var(--elev-1), 0 0 38px var(--st-fault-glow), 0 10px 30px var(--st-fault-glow), inset 0 1px 0 rgba(255,255,255,.1); }

/* status pulse dot in the tile head (static now; motion pass adds the pulse) */
[data-theme="neon"] .lane-head::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--faint); box-shadow: 0 0 0 4px rgba(93,107,124,.14);
  z-index: 4;
}
[data-theme="neon"] .lane.s-active .lane-head::after { background: var(--st-play);  box-shadow: 0 0 0 4px var(--st-play-glow),  0 0 12px var(--st-play-glow); }
[data-theme="neon"] .lane.s-ready  .lane-head::after { background: var(--st-free);  box-shadow: 0 0 0 4px var(--st-free-glow),  0 0 12px var(--st-free-glow); }
[data-theme="neon"] .lane.s-warn   .lane-head::after,
[data-theme="neon"] .lane.s-nocomm .lane-head::after { background: var(--st-book); box-shadow: 0 0 0 4px var(--st-book-glow), 0 0 12px var(--st-book-glow); }
[data-theme="neon"] .lane.s-alarm  .lane-head::after { background: var(--st-fault); box-shadow: 0 0 0 4px var(--st-fault-glow), 0 0 14px var(--st-fault-glow); }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME B — «НЕОНОВЫЙ ЗАЛ»: pass 3
   Judge on ACTIVE lanes: tighten tile rhythm, cleaner «Закрыть» token, and
   fully neon the bottom helper bar (was still a near-white strip).
   ═══════════════════════════════════════════════════════════════════════════ */

/* comfortable tile height in few-lane mode: fills the screen but stops tiles
   becoming tall empty rectangles — rows centered with even breathing room */
[data-theme="neon"] .lanes-panel.sparse .lanes { align-content: center; row-gap: clamp(12px, 2.4vh, 22px); }
[data-theme="neon"] .lanes-panel.sparse .lane { height: auto; min-height: clamp(210px, 30vh, 300px); max-height: 320px; }
/* metrics sit high, action pinned bottom — add internal padding so the gap reads
   as deliberate breathing room, not a void */
[data-theme="neon"] .lane-metrics { padding-top: 16px !important; gap: 6px; }
[data-theme="neon"] .metric-note { color: var(--muted); font-weight: 700; }

/* «Закрыть» was a muddy dark-amber mix — use a clean brighter amber token */
[data-theme="neon"] .toolbar-btn.act-close {
  background: color-mix(in srgb, var(--st-book) 90%, #1a1206);
  border-color: var(--st-book);
  box-shadow: 0 0 22px var(--st-book-glow);
}

/* ── bottom helper bar: kill the near-white strip + white input, go neon glass ─ */
[data-theme="neon"] .helper-row {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-top: 1px solid var(--glass-line);
  box-shadow: 0 -1px 16px rgba(0,0,0,.3);
  gap: clamp(12px, 1.4vw, 20px);
}
[data-theme="neon"] .helper-field,
[data-theme="neon"] .helper-multi { color: var(--ink); }
[data-theme="neon"] .helper-field input {
  background: var(--surface-2);
  border: 1px solid var(--glass-line-2);
  color: var(--ink);
}
[data-theme="neon"] .helper-field input:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
[data-theme="neon"] .helper-multi input { accent-color: var(--accent); }
[data-theme="neon"] .helper-btn {
  background: var(--surface);
  border: 1px solid var(--glass-line);
  color: var(--muted);
}
[data-theme="neon"] .helper-btn:hover { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 14px var(--accent-soft); }
[data-theme="neon"] .helper-sel { color: var(--accent); text-shadow: 0 0 12px var(--accent-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   NEON THEME — independently authored tile skin: restrained glass surface,
   a soft status glow, top sheen and calm per-state shadows. Appended last so
   it remains the authoritative legacy tile skin.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="neon"] .lane {
  background: var(--surface);                 /* rgba white .045 */
  border: 1px solid var(--glass-line);        /* hairline .09 */
  border-radius: var(--r-3);                  /* 20px */
  box-shadow: none;
  backdrop-filter: blur(var(--blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.15);
  isolation: isolate;
}
/* top sheen */
[data-theme="neon"] .lane::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: .5;
  background: linear-gradient(160deg, rgba(255,255,255,.06), transparent 40%);
}
/* inner blurred status glow */
[data-theme="neon"] .lane::before {
  content: ""; display: block; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%; filter: blur(42px);
  opacity: .5; pointer-events: none; z-index: 0; background: transparent;
}
[data-theme="neon"] .lane.s-active::before { background: var(--st-play); }
[data-theme="neon"] .lane.s-ready::before  { background: var(--st-free); }
[data-theme="neon"] .lane.s-warn::before,
[data-theme="neon"] .lane.s-nocomm::before { background: var(--st-book); }
[data-theme="neon"] .lane.s-alarm::before  { background: var(--st-fault); }
[data-theme="neon"] .lane.s-idle::before   { display: none; }
/* keep the head/metrics/actions above both pseudos */
[data-theme="neon"] .lane-head,
[data-theme="neon"] .lane-metrics,
[data-theme="neon"] .lane .actions { position: relative; z-index: 3; }

/* per-status border + soft downward colored drop-shadow */
[data-theme="neon"] .lane.s-active { border-color: rgba(62,224,242,.35);
  box-shadow: 0 0 0 1px rgba(62,224,242,.15), 0 20px 50px -24px rgba(62,224,242,.5); }
[data-theme="neon"] .lane.s-ready  { border-color: rgba(79,224,138,.32);
  box-shadow: 0 18px 44px -26px rgba(79,224,138,.5); }
[data-theme="neon"] .lane.s-warn,
[data-theme="neon"] .lane.s-nocomm { border-color: rgba(255,194,77,.30);
  box-shadow: 0 18px 44px -26px rgba(255,194,77,.42); }
[data-theme="neon"] .lane.s-alarm  { border-color: rgba(255,90,120,.45);
  box-shadow: 0 0 0 1px rgba(255,90,120,.2), 0 20px 50px -22px rgba(255,90,120,.55);
  background: linear-gradient(160deg, rgba(255,90,120,.14), rgba(255,255,255,.03)); }
[data-theme="neon"] .lane.s-idle   { border-color: rgba(255,255,255,.09); box-shadow: none; }

/* status label: colored and restrained */
[data-theme="neon"] .lane.s-active .metric-main { color: var(--st-play);  text-shadow: none; }
[data-theme="neon"] .lane.s-ready  .metric-main { color: var(--st-free);  text-shadow: none; }
[data-theme="neon"] .lane.s-warn   .metric-main,
[data-theme="neon"] .lane.s-nocomm .metric-main { color: var(--st-book);  text-shadow: none; }
[data-theme="neon"] .lane.s-alarm  .metric-main { color: var(--st-fault); text-shadow: none; }
[data-theme="neon"] .lane.s-idle   .metric-main { color: var(--muted); }

/* number: big white type with a soft text-shadow; "ДОРОЖКА" muted */
[data-theme="neon"] .lane-no { color: #fff; font-weight: 750; text-shadow: 0 0 24px rgba(255,255,255,.25); }
[data-theme="neon"] .lane-no .lane-word { color: var(--muted); font-weight: 600; text-shadow: none; }

/* selection: neon ring + head tint (NO decorative strike scene) */
[data-theme="neon"] .lane.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 18px 44px -22px rgba(62,224,242,.6);
}
[data-theme="neon"] .lane.selected .lane-head { background: rgba(62,224,242,.12); }

/* ═══════════════════════════════════════════════════════════════════════════
   NEON THEME — tile anatomy: header, concise identity, supporting facts and
   contextual action. These styles skin the semantic slots emitted by app.js.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="neon"] .lane {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  grid-template-columns: none; grid-template-rows: none; grid-template-areas: none;
}
[data-theme="neon"] .lane-head {
  grid-area: auto; display: flex; align-items: center; gap: 12px;
  min-height: 0; padding: 0; border-bottom: 0; background: none;
}
[data-theme="neon"] .lane-head::after { content: none; }   /* drop the old corner dot (pill has its own) */
[data-theme="neon"] .lane-no { display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 38px; line-height: 1; color: #fff; font-weight: 750; text-shadow: 0 0 24px rgba(255,255,255,.25); }
[data-theme="neon"] .lane-no .lane-word { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-shadow: none; text-transform: uppercase; }

/* status pill */
[data-theme="neon"] .pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .03em; white-space: nowrap;
}
[data-theme="neon"] .pill .d { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
[data-theme="neon"] .pill.play  { background: rgba(62,224,242,.16); color: #bff5fc; }
[data-theme="neon"] .pill.play .d  { background: var(--st-play); box-shadow: 0 0 10px var(--st-play); animation: pillpulse 1.5s infinite; }
[data-theme="neon"] .pill.free  { background: rgba(79,224,138,.16); color: #c3f7d7; }
[data-theme="neon"] .pill.free .d  { background: var(--st-free); box-shadow: 0 0 8px var(--st-free); }
[data-theme="neon"] .pill.book  { background: rgba(255,194,77,.17); color: #ffe6b0; }
[data-theme="neon"] .pill.book .d  { background: var(--st-book); }
[data-theme="neon"] .pill.offline { background: rgba(255,194,77,.11); color: #ffe6b0; border: 1px solid rgba(255,194,77,.22); }
[data-theme="neon"] .pill.offline .d { background: var(--st-book); }
[data-theme="neon"] .pill.fault { background: rgba(255,90,120,.2); color: #ffc3cf; }
[data-theme="neon"] .pill.fault .d { background: var(--st-fault); box-shadow: 0 0 10px var(--st-fault); animation: pillpulse 1s infinite; }
[data-theme="neon"] .pill.closed{ background: rgba(255,255,255,.06); color: var(--faint); }
[data-theme="neon"] .pill.closed .d { background: var(--faint); }
@keyframes pillpulse { 0%,100%{opacity:1} 50%{opacity:.35} }
@media (prefers-reduced-motion: reduce){ [data-theme="neon"] .pill .d { animation: none !important; } }

/* machine link dot + Экран icon: compact, after the pill */
[data-theme="neon"] .lane-health { min-width: 0; }
[data-theme="neon"] .lane-quick { }
[data-theme="neon"] .lane-quick-btn { width: 30px; height: 30px; min-height: 30px; }

/* body */
[data-theme="neon"] .lane-body { grid-area: auto; flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 5px; min-width: 0; padding: 0; color: var(--ink); }
[data-theme="neon"] .lane-body .who { font-size: 21px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 12px rgba(0,0,0,.4); color: #fff; }
[data-theme="neon"] .lane-body .sub { font-size: 14px; color: var(--muted); }
[data-theme="neon"] .lane-body .sub.f { color: #ffc3cf; font-weight: 600; }
[data-theme="neon"] .lane-body .quiet { font-size: 16px; color: var(--faint); }
[data-theme="neon"] .lane-state-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 4px; font-size: 11px; line-height: 1.2; letter-spacing: .01em;
}
[data-theme="neon"] .lane-state {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.045); white-space: nowrap;
}
[data-theme="neon"] .lane-state b { color: #fff; font-weight: 650; }
[data-theme="neon"] .lane-state.commercial { border-color: rgba(62,224,242,.22); }
[data-theme="neon"] .lane-state.technical { border-color: rgba(255,194,77,.22); }
[data-theme="neon"] .lane-prep-lead { font-size: 20px; font-weight: 700; color: #fff; }
[data-theme="neon"] .lane-prep-state { display: flex; flex-wrap: wrap; gap: 10px; }
[data-theme="neon"] .lane-prep-chip { display: inline-flex; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--glass-line-2); background: rgba(255,255,255,.05); color: var(--ink); font-weight: 700; }
[data-theme="neon"] .lane-prep-chip.technical.offline { border-color: rgba(255,194,77,.38); color: #ffe6b0; }
[data-theme="neon"] .lane-prep-chip.technical.fault { border-color: rgba(255,90,120,.45); color: #ffc3cf; }
[data-theme="neon"] .lane-prep-chip.technical.maintenance { border-color: rgba(62,224,242,.36); color: #bff5fc; }

/* footer metrics */
[data-theme="neon"] .lane-foot { display: flex; align-items: center; gap: 18px; }
[data-theme="neon"] .lane-foot .m { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 600; color: var(--faint); }
[data-theme="neon"] .lane-foot .m .m-ico { width: 16px; height: 16px; }
[data-theme="neon"] .lane-foot .m b { color: #fff; }
[data-theme="neon"] .lane-foot .m b.g { color: var(--st-free); }
[data-theme="neon"] .lane-foot .m b.a { color: var(--st-book); }
[data-theme="neon"] .fr { margin-left: auto; display: flex; gap: 3px; }
[data-theme="neon"] .fr i { width: 9px; height: 18px; border-radius: 3px; background: rgba(255,255,255,.1); }
[data-theme="neon"] .fr i.d { background: var(--st-play); opacity: .85; }
[data-theme="neon"] .fr i.c { background: var(--st-play); box-shadow: 0 0 10px var(--st-play); }

/* CTA — free / ghost / fix */
[data-theme="neon"] .lane .cta {
  height: 64px; min-height: 64px; border: 0; border-radius: 15px; width: 100%;
  font: 650 17px/1 system-ui; cursor: pointer; letter-spacing: .01em; padding: 0;
}
[data-theme="neon"] .lane .cta.free { background: linear-gradient(180deg,#5cf0a0,#37c878); color: #04240f; box-shadow: 0 12px 30px -12px rgba(79,224,138,.7); }
[data-theme="neon"] .lane .cta.ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.14); }
[data-theme="neon"] .lane .cta.fix { background: linear-gradient(180deg,rgba(255,90,120,.24),rgba(255,90,120,.12)); color: #ffd0d9; border: 1px solid rgba(255,90,120,.45); }
[data-theme="neon"] .lane .cta.blocked { opacity: .5; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME B — «НЕОНОВЫЙ ЗАЛ»: modals & flow controls (phase 2)
   Was a light shell (#fff heads, white inputs). Now a solid dark-glass modal on
   a blurred neon scrim, with accent-lit controls. Same semantic tokens.
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="neon"] .modal-backdrop { background: rgba(6,5,14,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme="neon"] .modal {
  background: linear-gradient(180deg, #16132a, #100e20);
  border: 1px solid var(--glass-line-2);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
[data-theme="neon"] .modal-head { background: transparent; border-bottom: 1px solid var(--glass-line); color: var(--ink); }
[data-theme="neon"] .modal-head h3 { color: #fff; }
[data-theme="neon"] .modal-close { background: var(--surface-2); border: 1px solid var(--glass-line-2); color: var(--ink); }
[data-theme="neon"] .modal-close:hover { border-color: var(--accent); color: #fff; }
[data-theme="neon"] .modal-body { color: var(--ink); }
[data-theme="neon"] .wizard-bar { background: rgba(255,255,255,.03); border-top: 1px solid var(--glass-line); }
[data-theme="neon"] .wiz-label,
[data-theme="neon"] .settings-lead { color: var(--muted); }
[data-theme="neon"] .modal-body label { color: var(--ink); }

/* segmented choice */
[data-theme="neon"] .seg-btn { background: var(--surface); border: 1px solid var(--glass-line); color: var(--ink); }
[data-theme="neon"] .seg-btn .opt-sub { color: var(--muted); }
[data-theme="neon"] .seg-btn.on { background: rgba(62,224,242,.16); border-color: var(--accent); color: #eafcff; box-shadow: inset 0 0 0 1px var(--accent); }
[data-theme="neon"] .seg-btn.on .opt-sub { color: #cdeff5; }

/* steppers + numeric inputs */
[data-theme="neon"] .step-btn, [data-theme="neon"] .step-num { background: var(--surface-2); border-color: var(--glass-line-2); color: var(--ink); }
[data-theme="neon"] .step-btn:active { background: var(--accent-soft); }
[data-theme="neon"] .stepper { border: 1px solid var(--glass-line-2); border-radius: var(--r-2); background: var(--surface); }
[data-theme="neon"] .stepper input,
[data-theme="neon"] .modal-body input[type="text"],
[data-theme="neon"] .modal-body input[type="tel"],
[data-theme="neon"] .modal-body input[type="number"] {
  background: var(--surface-2); border: 1px solid var(--glass-line-2); color: var(--ink);
}
[data-theme="neon"] .modal-body input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* PIN pad + on-screen keyboard */
[data-theme="neon"] .pin-btn, [data-theme="neon"] .kbd-key {
  background: var(--surface); border: 1px solid var(--glass-line); color: var(--ink);
}
[data-theme="neon"] .pin-btn:active, [data-theme="neon"] .kbd-key:active { background: var(--accent-soft); }
[data-theme="neon"] .pin-btn.primary { background: var(--accent); border-color: var(--accent); color: #05121a; }
[data-theme="neon"] .pin-dots { background: var(--surface-2); border: 1px solid var(--glass-line); color: #fff; }

/* commit / danger bar buttons */
[data-theme="neon"] .wizard-bar .primary,
[data-theme="neon"] .modal-body .primary,
[data-theme="neon"] .primary.big {
  background: linear-gradient(180deg,#5cf0a0,#37c878); border-color: transparent; color: #04240f;
  box-shadow: 0 12px 30px -12px rgba(79,224,138,.7);
}
[data-theme="neon"] .danger, [data-theme="neon"] .danger.big {
  background: linear-gradient(180deg,rgba(255,90,120,.24),rgba(255,90,120,.12)); border: 1px solid rgba(255,90,120,.45); color: #ffd0d9;
}

/* list-modal rows (prices / parked / settings / screen) */
[data-theme="neon"] .parked-row,
[data-theme="neon"] .settings-row,
[data-theme="neon"] .controller {
  background: var(--surface); border: 1px solid var(--glass-line); color: var(--ink);
}
[data-theme="neon"] .settings-name { color: var(--ink); }
[data-theme="neon"] .settings-note, [data-theme="neon"] .muted { color: var(--muted); }

/* toast on dark */
[data-theme="neon"] .toast { background: linear-gradient(180deg,#1b1830,#141227); border: 1px solid var(--glass-line-2); color: var(--ink); box-shadow: var(--elev-2); }
[data-theme="neon"] .toast.error { border-color: var(--st-fault); }

/* open-flow (.open-win) has bespoke light controls (#fff/#e4e9ef/#f0f3f7) that
   override the generic modal neon — re-skin them to dark glass + accent. */
[data-theme="neon"] .open-win .seg-btn { color: var(--ink); }
[data-theme="neon"] .open-win .seg-btn.on { background: rgba(62,224,242,.18); color: #eafcff; box-shadow: inset 0 0 0 1px var(--accent); }
[data-theme="neon"] .open-win .seg.vertical .seg-btn { background: var(--surface); border-color: var(--glass-line); color: var(--ink); }
[data-theme="neon"] .open-win .seg.vertical .seg-btn.on { background: rgba(62,224,242,.12); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
[data-theme="neon"] .open-win .stepper { background: var(--surface-2); }
[data-theme="neon"] .open-win .stepper > .step-num { background: var(--surface); color: #fff; box-shadow: none; border: 1px solid var(--glass-line); }
[data-theme="neon"] .open-win .stepper > .step-btn::before,
[data-theme="neon"] .open-win .stepper > .step-btn:last-child::after { background: var(--ink); }
[data-theme="neon"] .open-win .open-col.players { background: var(--surface); border: 1px solid var(--glass-line); }
[data-theme="neon"] .open-win .player-name,
[data-theme="neon"] .open-win .player-name.placeholder { background: var(--surface-2); color: var(--ink); }
[data-theme="neon"] .open-win .player-name .player-no { color: var(--muted); }
[data-theme="neon"] .open-win .bump-toggle { background: var(--surface-2); color: var(--muted); }
[data-theme="neon"] .open-win .bump-toggle.on { background: var(--accent); color: #05121a; }
[data-theme="neon"] .open-win .wiz-hint.link-warn { background: rgba(255,194,77,.12); border-color: rgba(255,194,77,.4); color: #ffe6b0; }
[data-theme="neon"] .open-win .wiz-hint.link-warn.hard { background: rgba(255,90,120,.14); border-color: rgba(255,90,120,.45); color: #ffc3cf; }

/* iOS-segment capsule track was light grey (#e4e9ef); on-state was #fff */
[data-theme="neon"] .open-win .seg { background: var(--surface-2); }
[data-theme="neon"] .open-win .seg-btn.on { background: rgba(62,224,242,.22); color: #eafcff; box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px var(--accent-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   NEON THEME — open-lane modal: two zones, live total and a flexible players
   card, composed from the reception semantic tokens.
   ═══════════════════════════════════════════════════════════════════════════ */
.modal.open-lane-modal { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 40px); border-radius: 22px; }
[data-theme="neon"] .modal.open-lane-modal {
  background: linear-gradient(180deg, rgba(22,19,42,.92), rgba(16,14,32,.92));
  border: 1px solid var(--glass-line-2);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04);
}
.modal.open-lane-modal .modal-head { padding: 20px 24px; }
[data-theme="neon"] .modal.open-lane-modal .modal-head h3 { font-weight: 650; color: var(--ink); }
[data-theme="neon"] .modal.open-lane-modal .head-n { font-weight: 750; font-size: 30px; color: var(--st-play); text-shadow: 0 0 22px rgba(62,224,242,.5); margin-left: 4px; }
.modal.open-lane-modal .modal-body { padding: 0; }

/* pinsetter warning banner */
.ol-warn { margin: 16px 24px 0; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 12px;
  border: 1px solid rgba(255,194,77,.3); background: rgba(255,194,77,.09); color: #ffe0a3; font-size: 14px; }
.ol-warn.hard { border-color: rgba(255,90,120,.4); background: rgba(255,90,120,.1); color: #ffc3cf; }
.ol-warn-ico { display: inline-flex; flex: none; }

/* two-column body */
.ol-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 26px); padding: 20px 24px 22px; }
@media (max-width: 820px) { .ol-body { grid-template-columns: 1fr; } }
.ol-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ol-col-players { min-height: 0; }
.ol-field { display: flex; flex-direction: column; gap: 9px; }
.ol-field:has(.ol-players) { flex: 1; min-height: 0; }
.ol-col-players .ol-players { flex: 1; }
.ol-lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* segmented */
.ol-seg { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--glass-line); }
.ol-seg button { flex: 1; height: var(--touch, 60px); min-height: 60px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font: 600 16px/1 system-ui; cursor: pointer; transition: .14s; }
.ol-seg button.on { background: linear-gradient(180deg, rgba(62,224,242,.22), rgba(62,224,242,.08)); color: #eafcff;
  box-shadow: inset 0 0 0 1px rgba(62,224,242,.45), 0 0 22px -6px rgba(62,224,242,.5); }

/* stepper */
.ol-stepper { display: grid; grid-template-columns: 60px 1fr 60px; height: 60px; border-radius: 14px;
  border: 1px solid var(--glass-line); background: rgba(0,0,0,.28); overflow: hidden; align-items: center; }
.ol-stepper > button { height: 100%; border: 0; background: transparent; color: var(--st-play); font-size: 28px; font-weight: 400; cursor: pointer; }
.ol-stepper > button:hover { background: var(--surface); }
.ol-stepper > button:disabled { color: var(--faint); cursor: default; }
.ol-stepper .val { text-align: center; font: 650 24px/1 system-ui; color: var(--ink); }
.ol-stepper .val small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }

/* tariff card */
.ol-tariff { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(62,224,242,.4); background: linear-gradient(180deg, rgba(62,224,242,.12), rgba(62,224,242,.03));
  box-shadow: 0 0 26px -10px rgba(62,224,242,.5); color: var(--ink); }
.ol-tariff b { font-size: 19px; font-weight: 650; }
.ol-tariff .rate { margin-left: auto; font: 600 15px/1 system-ui; color: var(--st-play); }
.ol-tariff .chev { color: var(--faint); }

/* players card — fills the column */
.ol-players { display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: 16px; background: rgba(0,0,0,.22); overflow: hidden; min-height: 0; }
.ol-players .pl-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--glass-line); }
.ol-mini { margin-left: auto; display: grid; grid-template-columns: 44px 46px 44px; height: 46px; border-radius: 11px;
  border: 1px solid var(--glass-line); background: rgba(0,0,0,.3); align-items: center; }
.ol-mini button { height: 100%; border: 0; background: transparent; color: var(--st-play); font-size: 22px; cursor: pointer; }
.ol-mini button:disabled { color: var(--faint); }
.ol-mini .v { text-align: center; font: 650 18px/1 system-ui; color: var(--ink); }
.ol-players .pl-list { flex: 1; display: flex; flex-direction: column; padding: 8px; gap: 6px; min-height: 140px; overflow-y: auto; }
.ol-prow { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 12px; background: var(--surface);
  border: 1px solid transparent; cursor: pointer; transition: .12s; min-height: 56px; }
.ol-prow:hover { border-color: var(--glass-line); background: var(--surface-2); }
.ol-prow .idx { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 650 13px/1 system-ui;
  background: rgba(62,224,242,.14); color: var(--st-play); flex: none; }
.ol-prow .nm { flex: 1; font-size: 16px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ol-prow .nm.ph { color: var(--faint); font-weight: 500; }
.ol-bump { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 9px; cursor: pointer; flex: none;
  border: 1px solid var(--glass-line); background: rgba(0,0,0,.25); color: var(--faint); font: 600 13px/1 system-ui; transition: .13s; }
.ol-bump.on { border-color: rgba(79,224,138,.5); background: rgba(79,224,138,.14); color: #bff2d2; }
.ol-bump-ico { display: inline-flex; }
.ol-bump svg { width: 16px; height: 16px; }

/* footer (wizard bar) — live total + pay + open */
.modal.open-lane-modal .wizard-bar { display: flex; align-items: center; gap: 20px; padding: 18px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--glass-line); background: rgba(0,0,0,.25); min-height: 0; }
.ol-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ol-sum .line { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-total { display: flex; align-items: baseline; gap: 8px; }
.ol-total .ol-total-n { font: 700 34px/1 system-ui; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 0 30px rgba(62,224,242,.4); }
.ol-total span { font-size: 14px; color: var(--faint); }
.ol-pay { margin-left: auto; padding: 5px; border-radius: 13px; background: rgba(0,0,0,.28); border: 1px solid var(--glass-line); gap: 6px; }
.ol-pay button { height: 52px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 15px/1 system-ui; cursor: pointer; transition: .14s; }
.ol-pay button.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line-2); }
.ol-open { height: 66px; min-height: 66px; padding: 0 clamp(28px, 4vw, 54px); border: 0; border-radius: 15px; cursor: pointer;
  font: 700 19px/1 system-ui; letter-spacing: .01em; color: #04252b;
  background: linear-gradient(180deg, #5cf0ff, #22c2dc); box-shadow: 0 14px 34px -12px rgba(62,224,242,.75); }
.ol-open:active { transform: translateY(1px); }

/* ═══════════════════════════════════════════════════════════════════════════
   THEME B — «НЕОНОВЫЙ ЗАЛ»: density tiers so the grid fits ANY lane count with
   NO scroll. Rows share height equally (app.js sets minmax(0,1fr)); the tile's
   content condenses per tier: rows-3 compact → rows-many dense (up to ~20-24,
   drops the big CTA for tap-to-open) → rows-glance (>24, number+status only).
   ═══════════════════════════════════════════════════════════════════════════ */
/* dense tiles must fill their (small) row exactly, no min-height floor */
[data-theme="neon"] .lanes.rows-3 .lane,
[data-theme="neon"] .lanes.rows-many .lane { min-height: 0; }

/* rows-3 — compact */
[data-theme="neon"] .lanes.rows-3 .lane { padding: 13px 15px; gap: 9px; }
[data-theme="neon"] .lanes.rows-3 .lane-no { font-size: 30px; }
[data-theme="neon"] .lanes.rows-3 .pill { height: 27px; font-size: 11.5px; padding: 0 11px; }
[data-theme="neon"] .lanes.rows-3 .lane-body .who { font-size: 18px; }
[data-theme="neon"] .lanes.rows-3 .lane .cta { height: 48px; min-height: 48px; }
[data-theme="neon"] .lanes.rows-3 .lane::before { width: 120px; height: 120px; }

/* rows-many — DENSE (4 rows, up to ~20-24 lanes): drop the big CTA (tap the tile
   to open — the bottom toolbar «Открыть» also acts on the selected lane) */
[data-theme="neon"] .lanes.rows-many .lane { padding: 10px 13px; gap: 5px; }
[data-theme="neon"] .lanes.rows-many .lane-head { gap: 8px; }
[data-theme="neon"] .lanes.rows-many .lane-no { font-size: 24px; }
[data-theme="neon"] .lanes.rows-many .lane-no .lane-word { font-size: 11px; }
[data-theme="neon"] .lanes.rows-many .pill { height: 23px; font-size: 10.5px; padding: 0 9px; gap: 6px; }
[data-theme="neon"] .lanes.rows-many .pill .d { width: 7px; height: 7px; }
[data-theme="neon"] .lanes.rows-many .lane-quick-btn { width: 26px; height: 26px; min-height: 26px; }
[data-theme="neon"] .lanes.rows-many .lane-body { gap: 2px; justify-content: center; }
[data-theme="neon"] .lanes.rows-many .lane-body .who { font-size: 15px; }
[data-theme="neon"] .lanes.rows-many .lane-body .sub,
[data-theme="neon"] .lanes.rows-many .lane-body .quiet { font-size: 12px; }
[data-theme="neon"] .lanes.rows-many .lane-foot { gap: 12px; }
[data-theme="neon"] .lanes.rows-many .lane-foot .m { font-size: 14px; }
[data-theme="neon"] .lanes.rows-many .fr { display: none; }        /* frame track too small to read */
[data-theme="neon"] .lanes.rows-many .lane .cta { display: none; } /* tap-to-open in dense */
[data-theme="neon"] .lanes.rows-many .lane::before { width: 100px; height: 100px; opacity: .45; }

/* rows-glance — >24 lanes: strip to the essentials (number + status pill + glow),
   still readable across the room; opening happens via tap + the bottom toolbar */
[data-theme="neon"] .lanes.rows-glance .lane { padding: 8px 11px; justify-content: center; gap: 4px; }
[data-theme="neon"] .lanes.rows-glance .lane-head { align-items: center; }
[data-theme="neon"] .lanes.rows-glance .lane-no { font-size: 22px; }
[data-theme="neon"] .lanes.rows-glance .lane-body,
[data-theme="neon"] .lanes.rows-glance .lane-foot,
[data-theme="neon"] .lanes.rows-glance .lane .cta,
[data-theme="neon"] .lanes.rows-glance .lane-quick { display: none; }
[data-theme="neon"] .lanes.rows-glance .pill { height: 22px; font-size: 10px; padding: 0 8px; }

/* lane-control: bumper/vacant/prebowl marks were dark-ochre (#b8860b) — unreadable
   on dark glass; use the amber status token */
[data-theme="neon"] .lc-card-marks { color: var(--st-book); }

/* bookings sheet + misc chips: the legacy light block painted these #fff */
[data-theme="neon"] .sheet-cell,
[data-theme="neon"] .chip,
[data-theme="neon"] .num-display {
  background: var(--surface);
  border-color: var(--glass-line);
  color: var(--ink);
}
[data-theme="neon"] .sheet-cell.free:active { background: var(--accent-soft); }
[data-theme="neon"] .sheet-bk { background: var(--surface-2); border-color: var(--glass-line-2); color: var(--ink); }
[data-theme="neon"] .sheet-bk.confirmed { border-color: var(--st-free); background: rgba(79,224,138,.16); }
[data-theme="neon"] .sheet-bk.arrived { background: var(--surface); color: var(--muted); }
[data-theme="neon"] .sheet-bk.late { border-color: var(--st-fault); }
[data-theme="neon"] .sheet-bk.more { background: transparent; color: var(--muted); }
[data-theme="neon"] .sheet-hour, [data-theme="neon"] .sheet-lane, [data-theme="neon"] .sheet-corner { color: var(--muted); }

/* ========================================================================== */
/* UI hardening: semantics, focus, truthful loading/error/empty states.       */
/* ========================================================================== */
:where(button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button[aria-disabled="true"],
button.is-blocked {
  cursor: not-allowed;
}
button.is-blocked { opacity: .62; filter: saturate(.65); }
body[data-ui-state="loading"] .wizard-bar,
body[data-ui-state="loading"] .modal-body {
  cursor: progress;
}
body[data-ui-state="loading"] .wizard-bar button:not(:disabled) {
  opacity: .72;
}
[data-ui-state="error"],
.ui-error { border-color: var(--bad); color: var(--bad); }
[data-ui-state="empty"],
.ui-empty { color: var(--muted); }

/* A free booking slot is a real button, not a clickable grid cell. */
button.sheet-cell {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
}
button.sheet-cell.free:hover { border-color: var(--accent); }
button.sheet-cell.free:focus-visible { outline-offset: -3px; }

/* Lane cards remain a selectable group, not an anonymous clickable article. */
.lane:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Independent commercial/technical truth in the open form. The row is kept
   above the scrollable two-column body, while the warning itself is sticky. */
.ol-state-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 24px 0;
}
.ol-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 750;
}
.ol-state-chip b { color: var(--ink); }
.ol-state-chip.commercial { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.ol-state-chip.technical { border-color: color-mix(in srgb, var(--warn) 48%, var(--line)); }
.ol-state-chip.technical.fault { border-color: color-mix(in srgb, var(--bad) 58%, var(--line)); color: var(--bad); }

/* The final semantic light theme must also skin the new lane anatomy; the
   older prototype rules expect .metrics, which the current renderer no longer
   emits. No DOM/layout tree changes are made between themes. */
html[data-theme="light"] .lane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 210px;
  padding: 16px;
  background: var(--panel-2);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(31,47,68,.08);
}
html[data-theme="light"] .lane::before,
html[data-theme="light"] .lane::after { display: none; }
html[data-theme="light"] .lane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
html[data-theme="light"] .lane-no { display: inline-flex; align-items: baseline; gap: 7px; font-size: 34px; line-height: 1; color: var(--ink); }
html[data-theme="light"] .lane-no .lane-word { color: var(--muted); font-size: 13px; text-transform: uppercase; }
html[data-theme="light"] .lane-body { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 5px; padding: 0; color: var(--ink); }
html[data-theme="light"] .lane-body .who { overflow: hidden; color: var(--ink); font-size: 20px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="light"] .lane-body .sub { color: var(--muted); font-size: 14px; }
html[data-theme="light"] .lane-body .quiet { color: var(--faint); font-size: 16px; }
html[data-theme="light"] .lane-state-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 11px; line-height: 1.2; }
html[data-theme="light"] .lane-state { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel); white-space: nowrap; }
html[data-theme="light"] .lane-state b { color: var(--ink); }
html[data-theme="light"] .lane-state.commercial { border-color: #a8c7ec; }
html[data-theme="light"] .lane-state.technical { border-color: #e0c279; }
html[data-theme="light"] .lane-foot { display: flex; align-items: center; gap: 16px; }
html[data-theme="light"] .lane-foot .m { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 16px; }
html[data-theme="light"] .lane-foot .m b { color: var(--ink); }
html[data-theme="light"] .fr { display: flex; gap: 3px; margin-left: auto; }
html[data-theme="light"] .fr i { width: 8px; height: 16px; border-radius: 3px; background: #e2e7ed; }
html[data-theme="light"] .fr i.d, html[data-theme="light"] .fr i.c { background: var(--st-play, #1678bd); }
html[data-theme="light"] .lane .cta { width: 100%; min-height: 56px; border: 0; border-radius: 12px; font-size: 17px; font-weight: 750; }
html[data-theme="light"] .lane .cta.free { background: #dff6e9; color: #11693f; }
html[data-theme="light"] .lane .cta.ghost { background: #f1f5f8; border: 1px solid var(--line); color: var(--ink); }
html[data-theme="light"] .lane .cta.fix { background: #fff0f0; border: 1px solid #e3a3a3; color: #8e2323; }
html[data-theme="light"] .lane-quick-btn { color: var(--muted); }
html[data-theme="light"] .lane-quick-btn:hover { background: var(--accent-soft); color: var(--ink); }
html[data-theme="light"] .pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
html[data-theme="light"] .pill .d { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html[data-theme="light"] .pill.play { background: #e1f2fb; color: #126a9f; }
html[data-theme="light"] .pill.free { background: #e1f4e9; color: #11693f; }
html[data-theme="light"] .pill.book, html[data-theme="light"] .pill.offline { background: #fff4dc; color: #8a5b00; }
html[data-theme="light"] .pill.fault { background: #ffebeb; color: #a52626; }
html[data-theme="light"] .pill.closed { background: #eef1f4; color: var(--muted); }
html[data-theme="light"] .modal { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 24px 70px rgba(20,35,52,.2); }
html[data-theme="light"] .modal-head { background: #fff; border-color: var(--line); color: var(--ink); }
html[data-theme="light"] .wizard-bar { background: #f8fafc; border-color: var(--line); }
html[data-theme="light"] .modal-body { color: var(--ink); }
html[data-theme="light"] .ol-state-chip { background: #f8fafc; }
html[data-theme="light"] .booking-create-bar { background: #fff; }

/* The player name owns its own keyboard target; the row is only layout. */
.ol-name-btn {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ol-name-btn:hover { color: var(--ink); }
.ol-name-btn.ph { color: var(--faint); }
.ol-tariff {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* The technical truth stays pinned while the visit form scrolls. */
.modal.open-lane-modal .ol-warn {
  position: sticky;
  top: 0;
  z-index: 4;
  margin-top: 0;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
[data-theme="light"] .modal.open-lane-modal .ol-warn {
  background: #fff7df;
  border-color: #d6ad4d;
  color: #5b4309;
}
[data-theme="light"] .modal.open-lane-modal .ol-warn.hard {
  background: #fff0f0;
  border-color: #d36b6b;
  color: #7d2020;
}

/* Booking creation is a compact two-column workspace with a fixed
   summary/CTA row supplied by the existing wizard bar. */
.modal.bookings-modal .booking-create-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.booking-create-title { margin: 0; font-size: clamp(22px, 3vh, 32px); }
.booking-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.booking-create-col {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.booking-create-col h3 { margin: 0; font-size: 20px; }
.booking-field { display: grid; gap: 7px; }
.booking-field > span { color: var(--muted); font-size: 14px; font-weight: 700; }
.booking-create-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex !important;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 12px clamp(16px, 2.4vw, 36px);
}
.booking-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(15px, 2vh, 20px);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.booking-create-bar button { flex: 0 0 auto; min-height: 64px; }
@media (max-width: 760px) {
  #modal .modal.bookings-modal.fullscreen { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100vw; }
  #modal .bookings-modal .modal-head { min-width: 0; padding-inline: 16px; gap: 8px; }
  #modal .bookings-modal .modal-head h3 { min-width: 0; }
  #modal .bookings-modal .booking-create-body { min-width: 0; padding: 12px; }
  #modal .bookings-modal .booking-create-bar { min-width: 0; padding: 12px; }
  #modal .bookings-modal .booking-create-bar button { min-width: 0; width: 100%; flex-basis: 100%; }
  .booking-create-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-create-col input { min-width: 0; }
  body:has(#modal:not([hidden]) .bookings-modal) #r7Navigation { visibility: hidden; }
  .booking-create-bar { flex-wrap: wrap; }
  .booking-summary-text { flex-basis: 100%; }
  .booking-create-bar button { flex: 1 1 180px; }
}

/* Theme is a token swap; layout and action structure do not change. */
html[data-theme="neon"] {
  color-scheme: dark;
  --bg: linear-gradient(180deg, #0c0a1a, #0a0913 60%, #08070f);
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --line: var(--glass-line);
  --line-strong: var(--glass-line-2);
  --ink: var(--p-ink);
  --muted: var(--p-muted);
  --accent: var(--p-cyan);
  --accent-soft: rgba(62,224,242,.14);
  --good: var(--st-free);
  --warn: var(--st-book);
  --bad: var(--st-fault);
  --idle: var(--st-closed);
  --select: var(--st-play);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f4;
  --bg-wash: none;
  --surface: #f8fafc;
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --glass-line: #d4dae1;
  --glass-line-2: #a9b2bd;
  --panel: #f8fafc;
  --panel-2: #ffffff;
  --line: #d4dae1;
  --line-strong: #a9b2bd;
  --ink: #17212b;
  /* светлая тема: muted и faint на тонированных/стеклянных карточках падали
     до 3.5–4.1 (замер аудита) — оба чуть глубже, иерархия та же */
  --muted: #5e6a77;
  --faint: #5f6d85;
  --accent: #2f78d4;
  --accent-soft: #e7f0ff;
  /* янтарь и синий на светлых тинтах давали 4.0–4.4 (замер) — глубже на тон */
  --st-play: #136ba8;
  --st-free: #137747;
  --st-book: #8a5900;
  --st-fault: #bd3030;
  --st-park: #6d47cc;  --st-park-glow: rgba(109,71,204,.22);
  --st-closed: #718092; --st-closed-glow: transparent;
  /* Эти четыре glow раньше не переопределялись в light и
     молча наследовали тёмные --st-*-glow (rgba(...,.30-.42) на неоновый
     hue) — диффузное зелёное/красное пятно поверх белого читалось грязным
     подтёком, а не premium-свечением. Тот же приём, что и у --st-park-glow
     выше: та же глубокая hex, альфа заметно ниже, чем в тёмной теме. */
  --st-play-glow:  rgba(19,107,168,.22);
  --st-free-glow:  rgba(19,119,71,.20);
  --st-book-glow:  rgba(138,89,0,.20);
  --st-fault-glow: rgba(189,48,48,.24);
  --good: #168a52;
  --warn: #a66b00;
  --bad: #bd3030;
  --idle: #d9e0e7;
  --select: #2f78d4;
  /* Выбор — отдельное измерение от состояния дорожки, свой
     hue (тот же brand-ring, что и в тёмной), НЕ --accent — иначе кольцо
     выбранной ACTIVE-карточки (тоже синей) читалось бы как «ещё синее». */
  --select-ring: #c81e7a;
  /* тот же % мешанный в белое даёт меньший воспринимаемый сдвиг светлоты/
     хромы, чем в почти чёрное (chroma dilution на светлой подложке) —
     светлой теме тон нужен гуще для той же различимости «на расстоянии
     вытянутой руки»; число проверяется живым скриншотом,
     а не только этим рассуждением. */
  --tone-tint: 11%;
  /* «no glass dependence»: светлая — opaque рабочая
     поверхность, не стекло поверх бликующего стекла. */
  --blur: 0px;
}
html[data-theme="light"] body::before { display: none; }
html[data-theme="light"] .modal.open-lane-modal {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 24px 70px rgba(20,35,52,.2);
}
html[data-theme="light"] .modal.open-lane-modal .wizard-bar { background: #f8fafc; border-color: var(--line); }
html[data-theme="light"] .ol-players,
html[data-theme="light"] .ol-seg,
html[data-theme="light"] .ol-stepper,
html[data-theme="light"] .ol-tariff { background: #ffffff; border-color: var(--line); color: var(--ink); }
html[data-theme="light"] .ol-seg button,
html[data-theme="light"] .ol-pay button { color: var(--muted); }
html[data-theme="light"] .ol-seg button.on,
html[data-theme="light"] .ol-pay button.on { background: var(--accent-soft); color: var(--ink); }
html[data-theme="light"] .ol-prow { background: #f8fafc; }
html[data-theme="light"] .ol-bump { background: #ffffff; border-color: var(--line); color: var(--muted); }
html[data-theme="light"] .booking-create-col { background: #ffffff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* The 1280×720 viewport has a short vertical budget once the modal header
   and sticky action bar are reserved. Keep every booking field visible while
   preserving the 48px touch floor; taller screens use the roomier defaults. */
@media (min-width: 761px) and (max-height: 800px) {
  .modal.bookings-modal .booking-create-body { gap: 8px; padding: 14px 24px; }
  .booking-create-title { font-size: 22px; }
  .booking-create-grid { gap: 12px; }
  .booking-create-col { gap: 8px; padding: 12px 16px; }
  .booking-create-col h3 { font-size: 18px; }
  .booking-field { gap: 4px; }
  .booking-field > span { font-size: 12px; }
  .booking-create-col input { min-height: 52px; font-size: 20px; }
  .booking-create-col .form-row { gap: 8px; min-height: 52px; }
  .booking-create-col .form-row > label:first-child { font-size: 16px; }
  .booking-create-col .stepper { height: 52px; }
  .booking-create-col .step-btn { width: 52px; min-height: 52px; font-size: 28px; }
  .booking-create-col .step-num { min-width: 64px; font-size: 24px; }
  .booking-create-col .seg { gap: 6px; }
  .booking-create-col .seg-btn { min-height: 52px; padding: 0 10px; font-size: 16px; }
  .booking-create-bar { min-height: 78px; padding: 8px 24px; gap: 10px; }
  .booking-create-bar button { min-height: 56px; font-size: 20px; }
}

/* Light is the same semantic shell, not a second layout. The historical
   light prototype skin above carried one-row cards and a different vertical
   rhythm; neutralise those geometry overrides so only tokens/contrast change. */
html[data-theme="light"] {
  --topbar-h: 60px;
  --toolbar-h: 116px;
}
html[data-theme="light"] body {
  font: 18px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="light"] .topbar { height: 60px; }
html[data-theme="light"] .lanes { flex: 1; align-content: center; grid-auto-rows: auto; }
html[data-theme="light"] .lanes-panel.sparse { align-items: stretch; }
html[data-theme="light"] .lanes-panel.sparse .lanes {
  flex: 1;
  align-content: center;
  grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 640px), 1fr)) !important;
}
html[data-theme="light"] .lanes-panel.sparse .lane {
  height: auto;
  min-height: clamp(210px, 30vh, 300px);
  max-height: 320px;
}
html[data-theme="light"] .lane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  grid-template-columns: none;
  grid-template-rows: none;
  grid-template-areas: none;
  background: var(--surface);
  border-radius: var(--r-3);
  box-shadow: 0 8px 24px rgba(31,47,68,.10);
}
html[data-theme="light"] .lane-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
html[data-theme="light"] .lane-no {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  font-weight: 750;
}
html[data-theme="light"] .lane-no .lane-word { color: var(--muted); font-size: 15px; font-weight: 600; }
html[data-theme="light"] .lane-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  color: var(--ink);
}
html[data-theme="light"] .lane-body .who { color: var(--ink); font-size: 21px; font-weight: 600; }
html[data-theme="light"] .lane-body .sub { color: var(--muted); font-size: 14px; }
html[data-theme="light"] .lane-body .quiet { color: var(--faint); font-size: 16px; }
html[data-theme="light"] .lane-state-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; line-height: 1.2; }
html[data-theme="light"] .lane-state { background: #f8fafc; border-color: var(--line); color: var(--muted); }
html[data-theme="light"] .lane-state b { color: var(--ink); }
html[data-theme="light"] .lane-foot { display: flex; align-items: center; gap: 18px; }
html[data-theme="light"] .lane .cta {
  width: 100%;
  height: 64px;
  min-height: 64px;
  border-radius: 15px;
  font: 650 17px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="light"] .lane .cta.free { background: #d9f5e5; color: #126a3e; border-color: #b6e8cb; box-shadow: 0 8px 20px rgba(22,138,82,.12); }
html[data-theme="light"] .lane .cta.ghost { background: #f8fafc; color: var(--ink); border-color: var(--line); }
html[data-theme="light"] .lane .cta.fix { background: #ffebeb; color: #8e2020; border-color: #e4aaaa; }
html[data-theme="light"] .brand-emblem .be-orbit {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: none;
}
html[data-theme="light"] .brand-emblem .be-ball { fill: var(--accent); }
html[data-theme="light"] .brand-emblem .be-hole { fill: #ffffff; }

/* === ТЕХНИЧЕСКИЙ РАЗДЕЛ =============================================   Контракт: docs/design-mocks/technical-section.html. Все значения берутся из
   семантических токенов «Неонового зала» выше — здесь нет ни одного своего
   цвета и ни одного своего радиуса, иначе раздел разъедется с остальным
   ресепшном при смене темы. */
.modal.technical-modal .modal-body { padding: 0; position: relative; }
/* «Закрыть» здесь не подтверждение действия, а выход из раздела — зелёная CTA
   ресепшна тут читалась бы как «применить» и выбивалась из неоновой палитры. */
.modal.technical-modal .wizard-bar button.primary {
  background: var(--surface-2);
  border: 1px solid var(--glass-line-2);
  color: var(--ink);
  box-shadow: none;
}
.modal.technical-modal .wizard-bar button.primary:hover { background: rgba(255, 255, 255, .11); }
/* Неоновая атмосфера ПОД разделом: без многослойного wash матовое стекло
   карточек (--surface .045) не читается — они сливаются с плоским тёмным. */
[data-theme="neon"] .modal.technical-modal .modal-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-wash);
  pointer-events: none;
  z-index: 0;
}
.modal.technical-modal .modal-body > * { position: relative; z-index: 1; }
.tech-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 22px 24px 8px;
  height: 100%;
  min-height: 0;
}
.tech-shell .rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tech-shell .rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 15px;
  border-radius: var(--r-2);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.tech-shell .rail-item .ri { display: grid; place-items: center; width: 22px; opacity: .85; }
.tech-shell .rail-item:hover { color: var(--ink); background: var(--surface); }
.tech-shell .rail-item.on { color: var(--ink); background: var(--surface); border-color: var(--glass-line-2); }
.tech-shell .rail-item.on .ri { color: var(--accent); opacity: 1; }
.tech-shell .rail-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tech-shell .railnote {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
  border: 1px dashed var(--glass-line-2);
  border-radius: var(--r-2);
}
.tech-shell .railnote b { color: var(--muted); }

.tech-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  padding-bottom: 24px;
  scrollbar-width: thin;
}
.tech-content .sec { scroll-margin-top: 12px; }
.tech-content .sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 4px; }
.tech-content .sec-head h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.tech-content .sec-head .count { color: var(--faint); font-weight: 650; font-size: 14px; }
@media (max-width: 640px) {
  #tech-vc .sec-head { display: grid; gap: 4px; }
}
.tech-content .sec-sub { margin: 0 0 18px; color: var(--muted); max-width: 62ch; line-height: 1.45; }
.tech-content .sec-sub .em { color: var(--ink); font-weight: 650; }
.tech-content .card {
  background: var(--surface);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-3);
  backdrop-filter: blur(16px);
  box-shadow: var(--elev-1);
}
.tech-content .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.tech-content .mono.dim { font-size: 13px; color: var(--muted); }
.tech-content .mono.warn { color: var(--st-book); }
.tech-content .v-unknown { color: var(--faint); font-weight: 600; font-size: 13.5px; }

/* --- карточка видео-контроллера --- */
.grid-vc { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 16px; }
.vc { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.vc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-pair { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.vc-pair small { display: block; color: var(--faint); font-weight: 600; font-size: 12.5px; letter-spacing: 0; }
.vc .link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--muted); }
.vc .link.bad { color: var(--st-fault); }
.vc .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.vc .dot.on { background: var(--st-free); box-shadow: 0 0 0 4px var(--st-free-glow); }
.vc .dot.on.pulse { animation: vc-pulse 2.4s var(--ease) infinite; }
.vc .dot.off { background: var(--st-fault); box-shadow: 0 0 0 4px var(--st-fault-glow); }
@keyframes vc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--st-free-glow); }
  50% { box-shadow: 0 0 0 7px rgba(79, 224, 138, .12); }
}
/* Ступени подъёма пары: видно, КАКАЯ ступень упала, а не общий «офлайн». */
.chain { display: flex; align-items: flex-start; margin: 2px 0 4px; }
.cstep { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cstep::before {
  content: "";
  position: absolute;
  top: 5px; left: -50%;
  width: 100%; height: 2px;
  background: var(--glass-line);
  z-index: 0;
}
.cstep:first-child::before { display: none; }
.cstep .cd { width: 11px; height: 11px; border-radius: 50%; position: relative; z-index: 1; box-sizing: content-box; border: 2px solid var(--p-near-black); }
.cstep .cl { font-size: 10.5px; font-weight: 650; color: var(--faint); line-height: 1.25; }
.cstep.ok .cd { background: var(--st-free); box-shadow: 0 0 0 3px var(--st-free-glow); }
.cstep.ok .cl { color: var(--muted); }
.cstep.bad .cd { background: var(--st-fault); box-shadow: 0 0 0 3px var(--st-fault-glow); }
.cstep.bad .cl { color: var(--st-fault); }
.cstep.off .cd { background: var(--p-faint); opacity: .45; }

.vc .rows { display: flex; flex-direction: column; gap: 2px; }
.vc .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 10px; padding: 9px 0; border-top: 1px solid var(--glass-line); }
/* Дрейф несёт и адрес, и тег-предупреждение — им тесно в одну строку, поэтому
   значение переносится вниз целиком, а подпись слева никогда не схлопывается. */
.vc .kv:has(.tag.warn) { grid-template-columns: 1fr; }
.vc .kv:has(.tag.warn) .v { text-align: left; }
.vc .kv:first-child { border-top: 0; }
.vc .kv .k { color: var(--faint); font-size: 12.5px; font-weight: 650; }
.vc .kv .k b { display: block; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.vc .kv .v { font-size: 15px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
/* MAC читается целиком в любой ширине карточки — это идентичность железки. */
.vc .kv .v .mono { font-size: 14px; letter-spacing: -.01em; }
.vc .kv .v .warn { color: var(--st-book); }
.tech-content .tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.tech-content .tag.ok { background: rgba(79, 224, 138, .13); color: var(--st-free); border: 1px solid color-mix(in srgb, var(--st-free) 34%, transparent); }
.tech-content .tag.warn { background: rgba(255, 194, 77, .13); color: var(--st-book); border: 1px solid color-mix(in srgb, var(--st-book) 40%, transparent); }
.tech-content .tag.mute { background: var(--surface-2); color: var(--muted); border: 1px solid var(--glass-line); }

.vc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
/* Ведущее действие карточки в отказе занимает строку: механику некогда искать
   нужную кнопку среди равных. Кнопкам разрешено сжиматься — иначе пара
   «Диагностика» + «Показать на ТВ» выдавливает вторую за край карточки. */
.tech-content .btn { min-width: 0; }
.tech-content .btn.wide { flex: 1 1 auto; }
/* Улика отказа — красным: «6 мин назад» это не рядовое значение, а причина
   вызова механика. */
.tech-content .kv .v .bad, .tech-content .kv .v.bad { color: var(--st-fault); }
.tech-content .btn {
  height: 52px; padding: 0 16px;
  border-radius: var(--r-2);
  border: 1px solid var(--glass-line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit; font-weight: 650;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  flex: 1;
}
.tech-content .btn:hover { background: rgba(255, 255, 255, .11); }
.tech-content .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tech-content .btn:active { transform: translateY(1px); }
.tech-content .btn[disabled] { opacity: .45; cursor: not-allowed; }
.tech-content .btn { font-size: 15px; }
.tech-content .btn.sm { height: 44px; padding: 0 13px; font-size: 14px; white-space: nowrap; }
.tech-content .btn.wide { width: 100%; flex: none; }
.tech-content .btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-play) 26%, transparent), color-mix(in srgb, var(--st-play) 14%, transparent));
  border-color: color-mix(in srgb, var(--st-play) 48%, transparent);
  color: #eafcff;
  box-shadow: 0 6px 22px -8px var(--st-play-glow);
}
.tech-content .btn.primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--st-play) 34%, transparent), color-mix(in srgb, var(--st-play) 18%, transparent)); }
/* Действие, чинящее найденную проблему — амбер, а не общий акцент. */
.tech-content .btn.fix { background: rgba(255, 194, 77, .14); border-color: color-mix(in srgb, var(--st-book) 46%, transparent); color: #ffe3a6; flex: none; }
.tech-content .btn.fix:hover { background: rgba(255, 194, 77, .2); }
/* #ffe3a6 — литерал тёмной темы; на светлой подложке он растворялся (1.12:1). */
html[data-theme="light"] .tech-content .btn.fix { color: #7a4d00; }

/* Непривязанный бокс: пустое состояние ОБУЧАЕТ, а не сообщает «нет данных». */
.vc.empty {
  align-items: center; justify-content: center; text-align: center;
  gap: 12px; min-height: 230px;
  border-style: dashed; border-color: var(--glass-line-2);
  background: rgba(255, 255, 255, .02);
}
.vc.empty .qr {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--st-play) 30%, transparent);
}
.vc.empty .et { font-weight: 700; font-size: 16px; }
.vc.empty .es { color: var(--muted); font-size: 13.5px; max-width: 26ch; }
.vc.empty .es .mono { color: var(--ink); }

/* --- оборудование пары --- */
.periph { padding: 6px 4px; }
.pair-block { padding: 16px 18px; border-top: 1px solid var(--glass-line); }
.pair-block:first-child { border-top: 0; }
.pair-title { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 16px; margin-bottom: 12px; }
.pair-title .badge {
  font-size: 11.5px; font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
.axis-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 14px; padding: 11px 14px;
  border: 1px dashed var(--glass-line-2);
  border-radius: var(--r-2);
  color: var(--muted); font-size: 13px; line-height: 1.5;
}
.axis-note b { color: var(--ink); }
.axis-note .axis-ic { flex: none; margin-top: 2px; color: var(--accent); display: grid; place-items: center; }
/* Карточка не растягивается на всю
   ширину модалки. Правый столбец обязан оставаться выровненным ПО ВСЕМ строкам —
   это таблично-подобный список; прижать его к сегменту значило бы сломать
   вертикальное выравнивание модели между строками. Пропорции контракта
   172/1fr/210 при этом сохраняются, пустое поле справа от карточки нормально. */
.card.periph { max-width: 1000px; }
.drow {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 210px;
  align-items: center; gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed var(--glass-line);
}
.drow:first-of-type { border-top: 0; }
.drow .dname { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 15.5px; color: var(--ink); }
.drow .dname .dname-ic { color: var(--muted); display: grid; place-items: center; }
.drow .dname small { display: block; color: var(--faint); font-weight: 600; font-size: 11.5px; }
.drow .dmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: 13px; line-height: 1.4; }
.drow .pick {
  height: 38px; padding: 0 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--glass-line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit; font-weight: 650; font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background var(--dur-1) var(--ease);
}
.drow .pick:hover { background: rgba(255, 255, 255, .11); }
.drow .pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.drow .pick .pick-caret { opacity: .55; }
.drow .state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--faint); }
.drow .state.ok { color: var(--st-free); }
.drow .state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-faint); }
.drow .state.ok .dot { background: var(--st-free); }
.tech-content .foot-note { color: var(--faint); font-size: 12.5px; padding: 12px 18px; border-top: 1px solid var(--glass-line); line-height: 1.5; }

/* Сегменты в техническом разделе — пилюли контракта. Операторский `seg()`
   рисует гигантские карточки под палец на бегу; техник работает мышью с
   плотным экраном, и десять таких карточек его просто утопят. */
.tech-content .seg {
  justify-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  grid-template-columns: none;
  width: auto;
}
.tech-content .seg .seg-btn {
  min-height: 34px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  box-shadow: none;
}
.tech-content .seg .seg-btn:hover { color: var(--ink); background: transparent; }
.tech-content .seg .seg-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-play) 40%, transparent);
}
.tech-content .seg .seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- заставка ТВ --- */
.splash-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding: 20px; }
.splash-ctl { display: flex; flex-direction: column; gap: 16px; }
.ctl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-2);
}
.ctl-row .lab { font-weight: 650; }
/* подпись настройки — факт, а не шёпот: faint на глубоком стекле модалки не добирал 4.5 */
.ctl-row .lab small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.ctl-row .toggle {
  width: 56px; height: 32px; flex: none;
  border: 0; border-radius: var(--r-pill);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--glass-line-2);
  position: relative; cursor: pointer;
  transition: background var(--dur-1) var(--ease);
}
.ctl-row .toggle.on { background: color-mix(in srgb, var(--st-free) 60%, transparent); box-shadow: none; }
.ctl-row .toggle::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: left var(--dur-1) var(--ease);
}
.ctl-row .toggle.on::after { left: 27px; }
.ctl-row .toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.splash-cta { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.splash-cta .btn { width: 100%; flex: none; height: 56px; font-size: 16px; }
.splash-cta .hint { color: var(--faint); font-size: 12.5px; text-align: center; }
/* Степпер и тумблер в разделе — компактные: техник работает за столом с мышью,
   а не тыкает пальцем в стойку на бегу, и раздел должен помещаться целиком. */
.tech-content .stepper {
  height: 44px;
  border-width: 1px;
  border-color: var(--glass-line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.tech-content .stepper .step-btn {
  width: 44px;
  min-height: 44px;
  font-size: 20px;
  background: var(--surface-2);
  border: 0;
}
.tech-content .stepper input {
  width: 78px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 750;
  background: transparent;
}
.ctl-row .toggle { width: 52px; height: 30px; }
.ctl-row .toggle::after { width: 24px; height: 24px; }
.ctl-row .toggle.on::after { left: 25px; }
.ctl-row .lab { font-size: 15.5px; }

/* Превью ТВ: механик видит ровно то, что появится на экране пары. */
.tv { background: #07060d; border: 1px solid var(--glass-line-2); border-radius: 16px; padding: 6px; box-shadow: var(--elev-2); align-self: start; }
.tv .screen {
  border-radius: 11px;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(157, 107, 255, .2), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(255, 69, 160, .13), transparent 60%),
    var(--p-near-black);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
}
.tv .screen::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.tv .tvbrand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 650; }
.tv .tvbrand-ic { display: grid; place-items: center; color: var(--accent); }
.tv .tvpair { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tv .tvpair span { color: var(--accent); }
.tv .tvkv { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.tv .tvkv .kk { color: var(--faint); font-weight: 600; }
.tv .tvkv .vv { font-weight: 650; }
.tv .tvkv .vv.good { color: var(--st-free); }
.tv .tvkv .vv.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
/* Превью имитирует РЕАЛЬНЫЙ ТВ: экран всегда тёмный, и текст задан от экрана,
   а не от темы приложения. В light-теме значения наследовали тёмный --ink и
   пропадали на чёрном (замер: 1.2:1 — IP/MAC невидимы). */
.tv .screen { color: #eef1f8; }
.tv .screen .tvbrand { color: #aab4c6; }
.tv .screen .tvkv .kk { color: #96a0b4; }
.tv .screen .countdown { color: #aab4c6; }
.tv .screen .tvkv .vv.good { color: #4fe08a; }
.tv .countdown { display: flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.tv .ring-slot { flex: none; display: grid; place-items: center; }
.tv .ring { width: 34px; height: 34px; transform: rotate(-90deg); }
.tv .ring circle { fill: none; stroke-width: 4; }
.tv .ring .bg { stroke: rgba(255, 255, 255, .1); }
.tv .ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 20; filter: drop-shadow(0 0 3px var(--st-play-glow)); }

/* --- доступ и роли --- */
.roles { padding: 6px 2px; }
.rrow { display: grid; grid-template-columns: 200px minmax(0, 1fr) 150px; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--glass-line); }
.rrow:first-child { border-top: 0; }
.rname { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15.5px; }
.rname .rc { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rname small { display: block; color: var(--faint); font-weight: 600; font-size: 12.5px; }
.scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.scope {
  font-size: 11.5px; font-weight: 650;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--glass-line);
  color: var(--muted);
}
.scope.w { color: var(--st-play); border-color: color-mix(in srgb, var(--st-play) 28%, transparent); background: var(--accent-soft); }
.rsee { text-align: right; font-weight: 650; font-size: 13.5px; }
.rsee.y { color: var(--st-free); }
.rsee.n { color: var(--faint); }

@media (max-width: 900px) {
  .tech-shell { grid-template-columns: 1fr; }
  .tech-shell .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .splash-wrap { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr; gap: 8px; }
  .drow .dmeta { align-items: flex-start; }
  .rrow { grid-template-columns: 1fr; gap: 8px; }
  .rsee { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .vc .dot.on.pulse { animation: none; }
  .tech-shell .rail-item, .tech-content .btn, .ctl-row .toggle, .ctl-row .toggle::after { transition: none; }
}

/* ====================================================================   РЕДИЗАЙН ГЛАВНОГО ЭКРАНА (Daily Core) — порт контракт-макета
   docs/design-mocks/reception-main.html. Имена классов взяты из
   макета один в один: .lane / .lane-num / .ws / .soon — чтобы сверять рендер с
   контрактом глазами, а не переводить туда-обратно. Класс body.review-redesign
   сохранил историческое имя, но это текущий рабочий экран, а не режим предпросмотра.
   =========================================================================== */
body.review-redesign {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}
/* Командные плоскости убраны: полоса выбранного и глобальный
   бар действий. Топбар остаётся — по контракту он несёт навигацию, правду смены
   и часы, но ни одной команды над дорожками. */
body.review-redesign .helper-row,
body.review-redesign .toolbar,
body.review-redesign .band-rail { display: none !important; }
body.review-redesign .topbar {
  display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 20px; flex: none;
  border-bottom: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  /* var(--blur), не литерал: light обнуляет --blur (no glass dependence)
     — тот же хардкод 16px тут молча остался бы стеклом. */
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
body.review-redesign .top-system,
body.review-redesign #refreshBtn,
body.review-redesign #daySummary,
body.review-redesign .top-tabs { display: none; }
/* Кнопка смены живёт ВНУТРИ пилюли и не может быть выше неё. */
body.review-redesign .shift .hand,
body.review-redesign .review-shift-handover {
  height: 34px; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-line-2); background: var(--surface-2);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 650;
}
body.review-redesign #reviewShiftState { display: flex; align-items: center; gap: 10px; }
body.review-redesign .top-actions .shift[hidden] { display: none !important; }
body.review-redesign .top-brand { display: flex; align-items: center; gap: 10px; }
body.review-redesign .top-brand h1 { font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
body.review-redesign .subline { color: var(--faint); font-size: 13.5px; font-weight: 600; }
body.review-redesign .top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* .workspace играет роль .split из макета, .lanes-panel — роль .hall. */
body.review-redesign .workspace {
  /* flex-direction задаём явно: базовый операторский .workspace — колонка, и без
     этого панель визита уезжает под карту вместо правого столбца. */
  flex: 1; display: flex; flex-direction: row; align-items: stretch;
  min-height: 0; padding: 0; margin: 0; gap: 0;
}
body.review-redesign .panel { border: 0; background: none; margin: 0; }
body.review-redesign .lanes-panel {
  flex: 0 0 65%; display: flex; flex-direction: column;
  padding: 14px 16px 16px; min-width: 0; min-height: 0;
}
/* Операторская плитка и панель приносят с собой подложки, радиусы и центровку,
   которых в контракте нет. Сбрасываем ровно эти свойства — остальное задаёт
   портированный макет. */
body.review-redesign .lane-state,
body.review-redesign .lane-top {
  background: none; border: 0; border-radius: 0; padding: 0;
  text-align: left; box-shadow: none; min-height: 0;
}
/* Операторская плитка центрировала содержимое. В контракте meta прижата к
   низу карточки и переносится. */
body.review-redesign .lane-state { align-items: stretch; }
/* Причина из контракта — живой текст произвольной длины («дорожка не привязана
   к контроллеру»). Обрезать её нельзя: именно она объясняет, почему запуск
   недоступен. Переносим и ограничиваем двумя строками. */
body.review-redesign .lane-meta {
  white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
body.review-redesign .lane::before,
body.review-redesign .lane::after { content: none; }
/* Панель никогда не наезжает сама на себя: если состояние приносит больше
   строк, чем помещается, прокручивается содержимое, а не ломается раскладка. */
body.review-redesign .visit-workspace { border: 0; overflow-y: auto; }

/* Шапка карты = .hall-head контракта: заголовок, счётчик, легенда статусов. */
body.review-redesign .visit-map-head {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; flex: none; padding: 0;
}
body.review-redesign .visit-map-kicker { display: none; }
body.review-redesign .visit-map-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; margin: 0; }
body.review-redesign .visit-map-summary { color: var(--faint); font-weight: 650; font-size: 13.5px; }
/* Отмена в панели возвращает фокус на заголовок карты — он должен быть виден,
   иначе клавиатурный оператор теряет место. */
#visitMapHead h2:focus,
#visitMapHead h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
body.review-redesign .bar { display:flex;align-items:center;gap:16px;height:64px;padding:0 20px;flex:none;
    border-bottom:1px solid var(--glass-line);background:color-mix(in srgb,var(--surface-solid) 55%,transparent);backdrop-filter:blur(16px) }
body.review-redesign .brand { display:flex;align-items:center;gap:10px;font-weight:750;font-size:18px;letter-spacing:-.01em }
body.review-redesign .emblem { width:26px;height:26px;flex:none }
body.review-redesign .crumb { color:var(--faint);font-weight:600;font-size:15px }
body.review-redesign .bar .spacer { flex:1 }
body.review-redesign .shift { display:flex;align-items:center;gap:10px;height:44px;padding:0 8px 0 14px;border-radius:var(--r-pill);
    background:var(--surface);border:1px solid var(--glass-line) }
body.review-redesign .shift .who { font-weight:650;font-size:14.5px }
/* Пилюля смены — вход в раздел (role=button): текст в 18px, но цель под палец
   обязана быть планшетной — 44px, невидимо для глаза (фона у пилюли нет). */
body.review-redesign .review-shift-state { display: inline-flex; align-items: center; min-height: 44px; }
body.review-redesign .review-shift-state:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
/* Unconfirmed shift truth (never loaded, timed
   out, gone stale) reads as uncertain, not as the confident "Открыть смену"
   CTA or an active fact chip — same --st-book neutral tone already used for
   .summary-transport.is-stale/.is-absent, so the vocabulary stays one. */
body.review-redesign .review-shift-state.is-unknown { color: var(--faint); font-style: italic; }
body.review-redesign .shift:has(.review-shift-state.is-unknown) {
  border-color: color-mix(in srgb, var(--st-book) 45%, var(--glass-line));
  background: color-mix(in srgb, var(--st-book) 10%, var(--surface));
}
body.review-redesign .review-operating-mode {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--glass-line-2); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink); font-size: 13.5px; font-weight: 700;
  white-space: nowrap;
}
body.review-redesign .review-operating-mode[hidden] { display: none; }
body.review-redesign .review-day-report {
  min-height: 40px; padding: 0 13px; border: 1px solid var(--glass-line-2);
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
body.review-redesign .review-day-report:hover { border-color: var(--accent); background: var(--surface-2); }
body.review-redesign .review-day-report:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .shift .kv { color:var(--faint);font-size:13px;font-weight:600 }
body.review-redesign .shift .kv b { color:var(--muted);font-weight:700 }
body.review-redesign .shift .hand { height:34px;padding:0 12px;border-radius:var(--r-pill);border:1px solid var(--glass-line-2);
    background:var(--surface-2);color:var(--ink);font:inherit;font-size:13.5px;font-weight:650;cursor:pointer }
body.review-redesign .clock { font-weight:750;font-size:20px;letter-spacing:.01em }
body.review-redesign .split { flex:1;display:flex;min-height:0 }
body.review-redesign .hall { flex:0 0 65%;display:flex;flex-direction:column;padding:14px 16px 16px;min-width:0 }
body.review-redesign .hall-head { display:flex;align-items:baseline;gap:12px;margin:0 0 10px;flex:none }
body.review-redesign .hall-head h2 { font-size:19px;font-weight:750;letter-spacing:-.015em;margin:0 }
body.review-redesign .hall-head .count { color:var(--faint);font-weight:650;font-size:13.5px }
body.review-redesign .hall-head .legend { margin-left:auto;display:flex;gap:14px;color:var(--faint);font-size:12.5px;font-weight:650 }
body.review-redesign .hall-head .legend i { display:inline-flex;align-items:center;gap:6px;font-style:normal }
body.review-redesign .hall-head .legend .dot { box-shadow:none }
/* СЕТКА БЕЗ JS-РАСЧЁТА: раскладку выбирает сам CSS по числу
   карточек. Жёсткие 4 колонки × 2 строки оставляли при 4 дорожках пустую
   половину экрана, а при 6 — рваный ряд. База — auto-fit, а типовые залы
   (4/6/8) получают свою раскладку через :has, без единой строки скрипта. */
body.review-redesign .lanes {
  flex:1;display:grid;gap:13px;min-height:0;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  grid-auto-rows:1fr;
}
/* 4 дорожки — 2×2: карточка вдвое крупнее под палец, чем плоский ряд 4×1. */
body.review-redesign .lanes:has(.lane:nth-child(4):last-child) { grid-template-columns:repeat(2,1fr) }
/* 6 — 3×2, ровные ряды вместо 4+2. */
body.review-redesign .lanes:has(.lane:nth-child(6):last-child) { grid-template-columns:repeat(3,1fr) }
/* 8 — 4×2. */
body.review-redesign .lanes:has(.lane:nth-child(8):last-child) { grid-template-columns:repeat(4,1fr) }
/* Панель может открываться из чужого окна (стороннее кассовое ПО) —
   ширина вмещающего окна не гарантирована. Без потолка `1fr`-колонки тянут
   карточку сколь угодно широкой, и на большом экране плотность визуально
   меняется. На целевых 1024/1180 карточка и так
   уже 159–190px — потолок их не касается, только защищает от растяжения.
   380px (а не 236) — иначе при 4 дорожках две колонки не добирали ширину
   панели и справа оставалось мёртвое поле. */
body.review-redesign .lane { position:relative;display:flex;flex-direction:column;text-align:left;
    padding:14px 15px 13px;border-radius:var(--r-3);cursor:pointer;max-width:380px;
    background:var(--surface);border:1px solid var(--glass-line);
    backdrop-filter:blur(16px);box-shadow:var(--elev-1);
    color:var(--ink);font:inherit;transition:border-color var(--dur-1) var(--ease),background var(--dur-1) var(--ease); }
body.review-redesign .lane:hover { background:var(--surface-2) }
body.review-redesign .lane:focus-visible { outline:2px solid var(--accent);outline-offset:2px }
body.review-redesign .lane-top { display:flex;align-items:flex-start;justify-content:space-between;gap:8px }
body.review-redesign .lane-num { font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1 }
body.review-redesign .dot { width:9px;height:9px;border-radius:50%;flex:none }
body.review-redesign .dot.play { background:var(--st-play) }
body.review-redesign .dot.free { background:var(--st-free) }
body.review-redesign .dot.book { background:var(--st-book) }
body.review-redesign .dot.park { background:var(--st-park) }
body.review-redesign .dot.fault { background:var(--st-fault);box-shadow:0 0 0 4px var(--st-fault-glow) }
/* Пульса нет: директива моушена прямо запрещает непрерывное
   движение у статусных точек, fault и активной дорожки. Контракт-макет
   допускал пульс у активной игры — эта директива его отменяет. */
body.review-redesign .dot.pulse { animation: none }
body.review-redesign .lane-state { margin-top:auto;display:flex;flex-direction:column;gap:7px }
/* =====================================================================   ДИЗАЙН-СИСТЕМА:
   коммерческая ось — ПИЛЮЛЯ с КРУГЛОЙ точкой (lane-top); техническая —
   ЯРЛЫЧОК с КВАДРАТНОЙ. Форма различает ось — подписи «Коммерция»/«Техника»
   не нужны нигде. Норма («Онлайн») тише всех:
   оператор читает только отклонения.
   ============================================================================ */
body.review-redesign .pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 750; letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap; flex: none;
}
body.review-redesign .pdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: currentColor; }
body.review-redesign .pill-st-free  { background: color-mix(in srgb, var(--st-free) 18%, transparent); color: var(--st-free); border: 1px solid color-mix(in srgb, var(--st-free) 42%, transparent); }
body.review-redesign .pill-st-play  { background: color-mix(in srgb, var(--st-play) 18%, transparent); color: var(--st-play); border: 1px solid color-mix(in srgb, var(--st-play) 42%, transparent); }
/* Красный/фиолетовый текст на тинте СВОЕГО ЖЕ цвета — классический разряд
   «то же оттенок, разная светлота» с недостаточным контрастом (замер:
   3.7–4.3:1 на обеих темах). Текст пилюли откалиброван отдельно от
   графического токена, тинт фона снижен, чтобы не есть контраст. */
body.review-redesign .pill-st-fault { background: color-mix(in srgb, var(--st-fault) 10%, transparent); color: #ff8095; border: 1px solid color-mix(in srgb, var(--st-fault) 52%, transparent); }
html[data-theme="light"] body.review-redesign .pill-st-fault { color: #a11d1d; }
/* Экспонат красил violet-пилюлю светлым #c5a8ff — годится только для тёмной
   темы (на светлом фоне это 1.33:1, нечитаемо); var(--st-park) сам по себе
   на своём тинте тоже недобирает (3.87:1) — держим оба конца откалиброванными. */
body.review-redesign .pill-p-violet { background: color-mix(in srgb, var(--st-park) 10%, transparent); color: #c5a8ff; border: 1px solid color-mix(in srgb, var(--st-park) 48%, transparent); }
html[data-theme="light"] body.review-redesign .pill-p-violet { color: #5a35ad; }
body.review-redesign .pill-st-closed{ background: var(--surface-2); color: var(--faint); border: 1px solid var(--glass-line); }

body.review-redesign .lane-tags { display: flex; flex-wrap: wrap; gap: 6px; }
body.review-redesign .tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--glass-line);
  font-size: 11.5px; font-weight: 650; color: var(--muted); white-space: nowrap;
}
body.review-redesign .tsq { width: 6px; height: 6px; border-radius: 2px; flex: none; background: currentColor; }
body.review-redesign .tag.ok { color: var(--muted); }
body.review-redesign .tag.warn { border-style: dashed; border-color: color-mix(in srgb, var(--st-book) 50%, transparent); color: var(--st-book); }
body.review-redesign .tag.err { border-color: color-mix(in srgb, var(--st-fault) 50%, transparent); background: color-mix(in srgb, var(--st-fault) 8%, transparent); color: #ff8095; }
html[data-theme="light"] body.review-redesign .tag.err { color: #a11d1d; }
body.review-redesign .tag.mute { color: var(--faint); }
/* count-ярлычки — факты визита, не состояние: без точки. */
body.review-redesign .tag.count { color: var(--ink); }

body.review-redesign .lane-meta { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.35; }
body.review-redesign .lane-meta.warn { color: var(--st-book); }
body.review-redesign .lane-meta.bad { color: var(--st-fault); }

body.review-redesign .lane-money { font-size:14.5px;font-weight:700;margin-top:5px;padding-top:7px;border-top:1px solid var(--glass-line) }
/* денежная подпись на тонированной карточке — muted: faint здесь 4.46 (замер) */
body.review-redesign .lane-money small { color:var(--muted);font-weight:650;font-size:12px;display:block;margin-bottom:1px }
body.review-redesign .lane.sel { background:var(--surface-2);
    border-color:color-mix(in srgb,var(--st-play) 55%,transparent);
    box-shadow:0 0 0 1.5px color-mix(in srgb,var(--st-play) 55%,transparent),
               0 10px 34px -10px var(--st-play-glow),var(--elev-1); }
body.review-redesign .lane.err { border-color:color-mix(in srgb,var(--st-fault) 38%,transparent) }
body.review-redesign .soon { flex:none;display:flex;align-items:center;gap:10px;margin-top:13px;min-width:0;overflow:hidden }
body.review-redesign .soon-chip { display:inline-flex;align-items:center;gap:9px;height:44px;padding:0 14px;border-radius:var(--r-2);
    background:var(--surface);border:1px solid var(--glass-line);cursor:pointer;color:var(--ink);font:inherit;white-space:nowrap;
    transition:background var(--dur-1) var(--ease);min-width:0 }
body.review-redesign .soon-chip:hover { background:var(--surface-2) }
body.review-redesign .soon-chip:focus-visible { outline:2px solid var(--accent);outline-offset:2px }
body.review-redesign .soon-chip .t { font-weight:750;font-size:14.5px;flex:none }
body.review-redesign .soon-chip .d { color:var(--muted);font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis }
/* min-height:0 + overflow-y:auto: a flex:1 column
   child defaults to min-height:auto (its content's natural height) and
   without its own scroll, taller content just spills silently past the
   panel edge — exactly how "Запустить визит" read as fully present in the
   DOM yet had bottom=741 past a 720px viewport. Panel content is ALSO
   trimmed (below) so the common FREE-state case needs no scroll at all;
   this stays as the safety net for whatever still doesn't fit. */
body.review-redesign .ws { flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;overflow-y:auto;
    border-left:1px solid var(--glass-line);
    background:color-mix(in srgb,var(--surface-solid) 38%,transparent);backdrop-filter:blur(var(--blur));
    -webkit-backdrop-filter:blur(var(--blur));
    padding:16px 18px }
body.review-redesign .ws-head { flex:none;padding-bottom:12px;border-bottom:1px solid var(--glass-line) }
body.review-redesign .ws-lane { font-size:24px;font-weight:800;letter-spacing:-.02em;display:flex;align-items:baseline;gap:10px }
body.review-redesign .ws-status { font-size:15px;font-weight:750 }
body.review-redesign .ws-status.free { color:var(--st-free) }
body.review-redesign .ws-status.play { color:var(--st-play) }
body.review-redesign .ws-status.book { color:var(--st-book) }
body.review-redesign .ws-status.fault { color:var(--st-fault) }
body.review-redesign .ws-status.park { color:var(--st-park) }
body.review-redesign .ws-sub { color:var(--muted);font-size:13.5px;font-weight:600;margin-top:3px }
body.review-redesign .ws-kv { flex:none;display:flex;flex-direction:column }
body.review-redesign .ws-kv .kv { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;border-bottom:1px solid var(--glass-line) }
body.review-redesign .ws-kv .k { color:var(--faint);font-size:13px;font-weight:650;display:flex;align-items:center;gap:8px }
body.review-redesign .ws-kv .k svg { opacity:.75 }
body.review-redesign .ws-kv .v { font-size:15px;font-weight:650;text-align:right }
body.review-redesign .ws-kv .v.ok { color:var(--st-free) }
body.review-redesign .ws-kv .v.bad { color:var(--st-fault) }
body.review-redesign .ws-kv .v.warn { color:var(--st-book) }
body.review-redesign .ws-act { flex:1;display:flex;flex-direction:column;gap:12px;padding-top:14px;min-height:0 }
body.review-redesign .ws-act .alab { color:var(--faint);font-size:12.5px;font-weight:700 }
body.review-redesign .seg { display:flex;background:var(--surface);border:1px solid var(--glass-line);border-radius:var(--r-2);padding:4px;gap:4px }
body.review-redesign .seg button { flex:1;height:52px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:15.5px;font-weight:650;
    border-radius:calc(var(--r-2) - 4px);cursor:pointer;transition:all var(--dur-1) var(--ease) }
body.review-redesign .seg button.on { background:var(--accent-soft);color:var(--ink);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--st-play) 45%,transparent) }
body.review-redesign .seg button:focus-visible { outline:2px solid var(--accent);outline-offset:2px }
body.review-redesign .par { display:grid;grid-template-columns:1fr 1fr;gap:10px }
body.review-redesign .pcell { background:var(--surface);border:1px solid var(--glass-line);border-radius:var(--r-2);padding:10px 14px;min-height:64px;
    display:flex;flex-direction:column;justify-content:center;gap:2px }
body.review-redesign .pcell .pk { color:var(--muted);font-size:12px;font-weight:700 }
body.review-redesign .pcell .pv { font-size:19px;font-weight:750;display:flex;align-items:center;gap:8px }
body.review-redesign .pcell .pv .step { margin-left:auto;display:inline-flex;gap:4px }
body.review-redesign .pcell .pv .step button { width:34px;height:34px;border-radius:50%;border:1px solid var(--glass-line-2);background:var(--surface-2);
    color:var(--ink);font-size:17px;font-weight:600;cursor:pointer;line-height:1 }
body.review-redesign .total { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 14px;
    background:var(--surface);border:1px solid var(--glass-line);border-radius:var(--r-2) }
body.review-redesign .total .tk { color:var(--faint);font-size:13px;font-weight:650 }
body.review-redesign .total .tk small { display:block;color:var(--muted);font-weight:600;font-size:12.5px;margin-top:2px }
/* Светлая тема: primary из контракта — сплошной цвет + белый текст. Тот же
   градиент «прозрачность поверх фона», что и в тёмной, здесь выцветает. */
html[data-theme="light"] body.review-redesign .btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-free) 88%, #fff), var(--st-free));
  border-color: var(--st-free); color: #fff;
  box-shadow: 0 8px 24px -10px var(--st-free-glow);
}
html[data-theme="light"] body.review-redesign .btn.primary.play {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-play) 88%, #fff), var(--st-play));
  border-color: var(--st-play); color: #fff;
  box-shadow: 0 8px 24px -10px var(--st-play-glow);
}
/* Кольцо выбора в light должно читаться так же уверенно, как в тёмной. */
html[data-theme="light"] body.review-redesign .lane.sel {
  border-color: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent), 0 10px 30px -12px var(--st-play-glow);
}

/* Сумма — это текст, а не бейдж: в контракте у неё нет подложки, и в светлой
   теме чужой тёмный фон делал из неё чёрную нашлёпку. */
body.review-redesign .total .tv { font-size:23px;font-weight:800;letter-spacing:-.01em;
  background: none !important; border: 0; padding: 0; box-shadow: none; color: var(--ink); }
body.review-redesign .ledger { display:grid;grid-template-columns:1fr 1fr;gap:10px }
body.review-redesign .ledger .pcell .pv { font-size:20px }
body.review-redesign .ledger .pcell.due .pv { color:var(--st-book) }
body.review-redesign .btn { min-height:52px;padding:0 16px;border-radius:var(--r-2);border:1px solid var(--glass-line-2);
    background:var(--surface-2);color:var(--ink);font:inherit;font-size:15.5px;font-weight:650;cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:all var(--dur-1) var(--ease) }
body.review-redesign .btn:hover { background:color-mix(in srgb,var(--ink) 9%,transparent) }
body.review-redesign .btn:focus-visible { outline:2px solid var(--accent);outline-offset:2px }
body.review-redesign .btn.demo-focus { outline:2px solid var(--accent);outline-offset:2px }
body.review-redesign .btn.primary { min-height:64px;font-size:17px;font-weight:700;color:var(--primary-ink);
    background:linear-gradient(180deg,color-mix(in srgb,var(--st-free) 42%,transparent),color-mix(in srgb,var(--st-free) 22%,transparent));
    border-color:color-mix(in srgb,var(--st-free) 55%,transparent);
    box-shadow:0 8px 26px -10px var(--st-free-glow) }
body.review-redesign .btn.primary:hover { background:linear-gradient(180deg,color-mix(in srgb,var(--st-free) 50%,transparent),color-mix(in srgb,var(--st-free) 27%,transparent)) }
body.review-redesign .btn.primary.play { background:linear-gradient(180deg,color-mix(in srgb,var(--st-play) 34%,transparent),color-mix(in srgb,var(--st-play) 17%,transparent));
    border-color:color-mix(in srgb,var(--st-play) 50%,transparent);box-shadow:0 8px 26px -10px var(--st-play-glow) }
body.review-redesign .btn.attn { background:color-mix(in srgb,var(--st-book) 16%,transparent);
    border-color:color-mix(in srgb,var(--st-book) 46%,transparent);color:color-mix(in srgb,var(--st-book) 70%,var(--ink)) }
body.review-redesign .btn.attn:hover { background:color-mix(in srgb,var(--st-book) 22%,transparent) }
body.review-redesign .btn.danger-text { background:transparent;border-color:transparent;color:var(--st-fault);font-weight:650 }
body.review-redesign .btn.danger-text:hover { background:color-mix(in srgb,var(--st-fault) 10%,transparent) }
body.review-redesign .btn[disabled] { opacity:.45;cursor:not-allowed }
body.review-redesign .ws-cta { margin-top:auto;display:flex;flex-direction:column;gap:9px;flex:none }
body.review-redesign .ws-cta .row2 { display:grid;grid-template-columns:1fr 1fr;gap:9px }
body.review-redesign .hint { color:var(--faint);font-size:12.5px;text-align:center;line-height:1.45 }
body.review-redesign .explain { background:color-mix(in srgb,var(--st-fault) 9%,transparent);
    border:1px solid color-mix(in srgb,var(--st-fault) 30%,transparent);
    border-radius:var(--r-2);padding:13px 15px;display:flex;gap:11px }
body.review-redesign .explain.warn { background:color-mix(in srgb,var(--st-book) 10%,transparent);border-color:color-mix(in srgb,var(--st-book) 34%,transparent) }
body.review-redesign .explain svg { flex:none;margin-top:1px }
body.review-redesign .explain .xt { font-size:14px;line-height:1.5;color:var(--ink) }
body.review-redesign .explain .xt b { font-weight:750 }
body.review-redesign .explain .xt small { display:block;color:var(--muted);font-size:13px;margin-top:3px;line-height:1.45 }
body.review-redesign .ws-empty { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:20px }
body.review-redesign .ws-empty .ico { width:64px;height:64px;border-radius:18px;display:grid;place-items:center;
    background:var(--accent-soft);color:var(--accent);border:1px solid color-mix(in srgb,var(--st-play) 30%,transparent) }
body.review-redesign .ws-empty .et { font-size:17px;font-weight:750 }
body.review-redesign .ws-empty .es { color:var(--muted);font-size:14px;max-width:30ch;line-height:1.5 }

/* ====================================================================   DAILY CORE — hall map + persistent Visit
   workspace reset. Cards carry number + one state word + one fact only, no
   CTA; tone classes below map 1:1 onto dailyLaneState() in app.js. Healthy
   states (free/active) stay visually calm — only attention gets a border
   tint, only closed gets dimmed — so the map reads at a glance, not a shout.
   =========================================================================== */
body.review-redesign .daily-lanes {
  display: grid;
  /* The grid item is an odd/even pair, never an individual lane. At the
     target 1280px hall two pairs fit; at 1024px the whole pair wraps as one
     item when the hall narrows. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: minmax(var(--touch), auto);
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
body.review-redesign .daily-lane-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  min-height: var(--touch);
}
body.review-redesign .pair-runtime-rail {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 0 4px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
}
body.review-redesign .pair-runtime-rail > span:not(.pair-runtime-mark) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.review-redesign .pair-runtime-rail small {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
body.review-redesign .pair-runtime-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}
body.review-redesign .pair-runtime-mark .svgi { width: 15px; height: 15px; }
/* A final odd lane keeps its partner geometry without creating a fake
   interactive surface or stretching the last card across the row. */
body.review-redesign .daily-lane-pair-slot {
  min-width: 0;
  min-height: var(--touch);
  visibility: hidden;
  pointer-events: none;
}
body.review-redesign .daily-lane {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  min-height: var(--touch);
  padding: 14px 16px;
  border: 1px solid var(--glass-line-2);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
body.review-redesign .daily-lane:hover { border-color: var(--accent); background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
body.review-redesign .daily-lane:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Состояние читается с поверхности
   карточки, не только по мелкому цветному слову (.daily-lane-state ниже
   остаётся — редундантный текст обязателен, цвет никогда не единственный
   носитель). free/active раньше вообще не красили карточку — только текст;
   attention/conflict красили только border. Все пять теперь: сдержанный
   tint фона (--tone-tint — разный по силе в тёмной/светлой, см. токены) +
   border-color той же семьи. closed остаётся нейтральным/притушенным. */
body.review-redesign .daily-lane.tone-free {
  background: color-mix(in srgb, var(--st-free) var(--tone-tint), var(--surface));
  border-color: color-mix(in srgb, var(--st-free) 36%, var(--glass-line-2));
}
body.review-redesign .daily-lane.tone-active {
  background: color-mix(in srgb, var(--st-play) var(--tone-tint), var(--surface));
  border-color: color-mix(in srgb, var(--st-play) 40%, var(--glass-line-2));
}
body.review-redesign .daily-lane.tone-attention {
  background: color-mix(in srgb, var(--st-book) var(--tone-tint), var(--surface));
  border-color: color-mix(in srgb, var(--st-book) 40%, var(--glass-line-2));
}
body.review-redesign .daily-lane.tone-closed { opacity: .68; }
/* Расхождение данных — не рядовое «внимание»: явный красный контур, серьёзнее
   янтарного attention, тот же язык, что и .ws-status.fault панели решения. */
body.review-redesign .daily-lane.tone-conflict {
  background: color-mix(in srgb, var(--st-fault) var(--tone-tint), var(--surface));
  border-color: color-mix(in srgb, var(--st-fault) 50%, var(--glass-line-2));
}
/* Выбор — отдельное измерение от состояния, поэтому
   ПОСЛЕ всех .tone-*: при равной специфичности класс, что ниже по файлу,
   выигрывает борьбу за border-color/box-shadow — иначе выбранная ATTENTION/
   CONFLICT-карточка молча теряла кольцо выбора, откатываясь на цвет тона
   (ring есть только в box-shadow, а border-color при этом соврёт). Фон
   намеренно НЕ трогаем: tone-tint остаётся виден и на выбранной карточке —
   состояние не подменяется, а кольцо поверх него добавочно. */
body.review-redesign .daily-lane.is-selected {
  border-color: var(--select-ring);
  box-shadow: 0 0 0 1.5px var(--select-ring), 0 10px 30px -14px color-mix(in srgb, var(--select-ring) 45%, transparent);
}
body.review-redesign .daily-lane-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.review-redesign .daily-lane-no { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
body.review-redesign .daily-lane-state { font-size: 13px; font-weight: 700; white-space: nowrap; }
body.review-redesign .daily-lane-state.tone-free { color: var(--st-free); }
body.review-redesign .daily-lane-state.tone-attention { color: var(--st-book); }
body.review-redesign .daily-lane-state.tone-active { color: var(--st-play); }
body.review-redesign .daily-lane-state.tone-closed { color: var(--faint); }
body.review-redesign .daily-lane-state.tone-conflict { color: var(--st-fault); }
body.review-redesign .daily-lane-fact {
  color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
body.review-redesign .daily-lane-environment {
  align-self: flex-start; margin-top: auto; padding: 4px 8px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--st-book) 42%, var(--glass-line-2));
  color: var(--st-book); font-size: 11.5px; font-weight: 750; letter-spacing: .01em;
}
body.review-redesign .daily-hall-rule { flex: none; margin: 10px 2px 0; color: var(--faint); font-size: 12.5px; line-height: 1.5; max-width: 74ch; }

/* Visit workspace content — renders inside the existing #visitWorkspace.ws
   panel (blur/border-left/padding already come from .ws, see line ~4601). */
body.review-redesign .daily-form { display: flex; flex-direction: column; gap: 10px; }
/* min-width:0 overrides the flex/grid-item default of auto: without it a
   narrow column refuses to shrink the stepper below its natural content
   width and silently clips the + button past the workspace edge instead of
   fitting it — caught at the 1024×768 tablet acceptance shot. */
body.review-redesign .daily-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.review-redesign .daily-field > span:first-child,
body.review-redesign .daily-row-label { color: var(--faint); font-size: 12.5px; font-weight: 700; }
body.review-redesign .daily-field input[type="text"] {
  min-height: 52px; padding: 0 14px; border-radius: var(--r-2);
  border: 1px solid var(--glass-line-2); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 16px;
}
body.review-redesign .daily-field input[type="text"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body.review-redesign .daily-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.review-redesign .daily-stepper-slot { display: flex; min-width: 0; }
body.review-redesign .daily-stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 52px; min-width: 0; width: 100%; padding: 0 6px; box-sizing: border-box;
  border: 1px solid var(--glass-line-2); border-radius: var(--r-2); background: var(--surface-2);
}
body.review-redesign .daily-stepper button {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid var(--glass-line-2); background: var(--surface); color: var(--ink);
  font-size: 19px; font-weight: 650; line-height: 1; cursor: pointer;
}
body.review-redesign .daily-stepper button:hover { border-color: var(--accent); }
body.review-redesign .daily-stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .daily-stepper output { font-size: 16px; font-weight: 700; min-width: 6ch; text-align: center; }
body.review-redesign .daily-offer {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px;
  padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--glass-line);
  background: var(--surface);
}
body.review-redesign .daily-offer strong { font-size: 15px; font-weight: 750; }
body.review-redesign .daily-offer small { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }
body.review-redesign .daily-price { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ink); }
/* Живой замер 1280x720 показал панель на грани — тёмная тема
   держала запас всего 7px, светлая (те же данные, тот же макет) на ~4px
   ПЕРЕСЕКАЛА нижний край вьюпорта — небольшая, но реальная разница в высоте
   строится по цепочке (форма/оффер/степпер) из под-пиксельных отличий
   рендера текста между color-scheme:dark/light, ни одного протечка в одном
   явном месте. Не гоняться за источником по пикселю — просто вернуть запас
   в обеих темах. */
/* The safe action set includes cancellation; reserve its 44px target
   in the initial workspace instead of relying on hidden scroll. The compacting
   is applied to shell rhythm only; stepper/action hitboxes stay unchanged. */
body.review-redesign .daily-checkout { flex: none; display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 0; }
body.review-redesign .daily-total-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-2); border: 1px solid var(--glass-line); background: var(--surface);
  font-size: 15px; font-weight: 650; color: var(--faint);
}
body.review-redesign .daily-total-row strong { font-size: 21px; font-weight: 800; color: var(--ink); }
body.review-redesign .daily-action {
  min-height: var(--touch); padding: 0 18px; border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, var(--st-free) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-free) 42%, transparent), color-mix(in srgb, var(--st-free) 22%, transparent));
  color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 26px -10px var(--st-free-glow);
  transition: all var(--dur-1) var(--ease);
}
body.review-redesign .daily-action:hover:not([disabled]) { background: linear-gradient(180deg, color-mix(in srgb, var(--st-free) 50%, transparent), color-mix(in srgb, var(--st-free) 27%, transparent)); }
body.review-redesign .daily-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .daily-action[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* Тот же приём «прозрачность поверх фона», что и в тёмной
   теме (строка выше), на белом выцветает в пастельный леденец — ровно то,
   что бриф прямо запрещает («no washed pastel-on-white controls»). Тот же
   рецепт, что уже проверен на .btn.primary (light, старая композиция) —
   сплошная заливка + белый текст. */
html[data-theme="light"] body.review-redesign .daily-action {
  background: linear-gradient(180deg, color-mix(in srgb, var(--st-free) 88%, #fff), var(--st-free));
  border-color: var(--st-free); color: #fff;
  box-shadow: 0 8px 24px -10px var(--st-free-glow);
}
html[data-theme="light"] body.review-redesign .daily-action:hover:not([disabled]) {
  background: linear-gradient(180deg, var(--st-free), color-mix(in srgb, var(--st-free) 85%, #000));
}
body.review-redesign .daily-link {
  min-width: 64px; min-height: 64px; padding: 0 12px; border: 0; background: transparent;
  color: var(--faint); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; text-align: center;
}
body.review-redesign .daily-link:hover { color: var(--ink); }
body.review-redesign .daily-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
body.review-redesign .daily-secondary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.review-redesign .daily-secondary-row .daily-link {
  min-height: 48px; border: 1px solid var(--glass-line-2); border-radius: var(--r-2); background: var(--surface-2);
}
body.review-redesign .daily-blocked {
  display: flex; flex-direction: column; gap: 6px;
  padding: 13px 15px; border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, var(--st-book) 34%, transparent);
  background: color-mix(in srgb, var(--st-book) 10%, transparent);
}
body.review-redesign .daily-blocked strong { font-size: 14.5px; font-weight: 750; color: var(--ink); }
body.review-redesign .daily-blocked span { color: var(--muted); font-size: 13px; line-height: 1.5; }
body.review-redesign .daily-readiness-warning {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--st-book) 40%, var(--glass-line));
  border-radius: var(--r-2); background: color-mix(in srgb, var(--st-book) 11%, var(--surface));
}
body.review-redesign .daily-readiness-warning strong { font-size: 13.5px; font-weight: 750; }
body.review-redesign .daily-readiness-warning span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
body.review-redesign .daily-facts { display: flex; flex-direction: column; margin: 0; }
body.review-redesign .daily-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; border-bottom: 1px solid var(--glass-line); }
body.review-redesign .daily-facts dt { margin: 0; color: var(--faint); font-size: 13px; font-weight: 650; }
body.review-redesign .daily-facts dd { margin: 0; font-size: 15px; font-weight: 650; text-align: right; }

/* Shared-controller technical drill-down. The lane card remains scan/select;
   all detail and any server-authorized secondary control stay in Visit. */
body.review-redesign .pair-runtime {
  flex: none;
  margin-top: 8px;
  border-top: 1px solid var(--glass-line);
  color: var(--ink);
}
body.review-redesign .pair-runtime > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}
body.review-redesign .pair-runtime > summary::-webkit-details-marker { display: none; }
body.review-redesign .pair-runtime > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}
body.review-redesign .pair-runtime > summary::after {
  content: "›";
  margin-left: auto;
  color: var(--faint);
  font-size: 22px;
  transform: rotate(90deg);
  transition: transform var(--dur-1) var(--ease);
}
body.review-redesign .pair-runtime[open] > summary::after { transform: rotate(-90deg); }
body.review-redesign .pair-runtime-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}
body.review-redesign .pair-runtime-icon .svgi { width: 18px; height: 18px; }
body.review-redesign .pair-runtime > summary > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
body.review-redesign .pair-runtime > summary strong { font-size: 13.5px; font-weight: 750; }
body.review-redesign .pair-runtime > summary small {
  overflow: hidden;
  color: var(--hx-text-2);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.review-redesign .pair-runtime-body { display: grid; gap: 12px; padding: 2px 4px 12px; }
body.review-redesign .pair-runtime-facts,
body.review-redesign .bumper-authority-facts { display: grid; gap: 1px; margin: 0; }
body.review-redesign .pair-runtime-facts > div,
body.review-redesign .bumper-authority-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 7px 0;
  border-bottom: 1px solid var(--glass-line);
}
body.review-redesign .pair-runtime-facts dt,
body.review-redesign .bumper-authority-facts dt { color: var(--faint); font-size: 12.5px; font-weight: 650; }
body.review-redesign .pair-runtime-facts dd,
body.review-redesign .bumper-authority-facts dd { margin: 0; font-size: 13.5px; font-weight: 700; text-align: right; }
body.review-redesign .bumper-player-list { display: grid; gap: 6px; }
body.review-redesign .bumper-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--r-1);
  background: var(--surface-2);
}
body.review-redesign .bumper-player > span:first-child { display: grid; gap: 1px; min-width: 0; }
body.review-redesign .bumper-player strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
body.review-redesign .bumper-player small { color: var(--accent); font-size: 11.5px; }
body.review-redesign .bumper-player > span:last-child { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
body.review-redesign .pair-runtime-warning {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--st-book) 40%, var(--glass-line));
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--st-book) 10%, var(--surface));
}
body.review-redesign .pair-runtime-warning strong { font-size: 13.5px; }
body.review-redesign .pair-runtime-warning span,
body.review-redesign .pair-runtime-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
body.review-redesign .bumper-authority-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}
body.review-redesign .bumper-authority-action {
  min-width: 0;
  min-height: 64px;
  padding: 0 12px;
  border: 1px solid var(--glass-line-2);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
/* The shell-wide button height must not shrink the 64px bumper targets. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .bumper-authority-action { min-height: 64px !important; }
body.review-redesign .bumper-authority-action:hover:not([disabled]) { border-color: var(--accent); }
body.review-redesign .bumper-authority-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .bumper-authority-action[disabled] { opacity: .5; cursor: wait; }

@media (max-width: 1100px) {
  body.review-redesign .pair-runtime-rail { font-size: 11px; }
  body.review-redesign .pair-runtime-rail small { display: none; }
  body.review-redesign .bumper-authority-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.review-redesign .pair-runtime > summary::after { transition: none; }
}

@keyframes pulse{0%,100%{box-shadow:0 0 0 3px var(--st-play-glow)}50%{box-shadow:0 0 0 7px transparent}}


/* ====================================================================   МОУШЕН-ПРОХОД.
   Тезис: движение объясняет непрерывность между выбором дорожки и панелью —
   оператор должен чувствовать, что под вниманием осталась та же дорожка, пока
   панель меняется. Оно не задерживает действие и не превращает стену дорожек
   в зрелище.
   =========================================================================== */
body.review-redesign {
  --m-select: 200ms;   /* контур выбора            (директива 180–220) */
  --m-panel: 180ms;    /* кроссфейд контента панели (160–220) */
  --m-ack: 120ms;      /* подтверждение действия    (100–150) */
  --m-state: 220ms;    /* смена семантики статуса   (180–260) */
  --m-emph: 300ms;     /* разовая эмфаза сбоя       (260–360) */
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Сетка стоит на месте: анимируются только контур выбранной карточки и цвет
   её состояния. Ни масштаба, ни подъёма, ни перестановки — иначе взгляд
   теряет дорожку, которую оператор только что нашёл. */
body.review-redesign .lane {
  transition:
    border-color var(--m-select) var(--m-ease),
    box-shadow var(--m-select) var(--m-ease),
    background var(--m-state) var(--m-ease);
}
body.review-redesign .lane-h,
body.review-redesign .lane-evi,
body.review-redesign .dot { transition: color var(--m-state) var(--m-ease), background var(--m-state) var(--m-ease); }

/* Клавиатурный фокус появляется мгновенно и никогда не подменяется свечением:
   его задача — сказать «ты здесь», а не быть красивым. */
body.review-redesign .lane:focus-visible,
body.review-redesign .btn:focus-visible,
body.review-redesign .soon-chip:focus-visible { transition: none; }

/* Панель: меняется содержимое, а заголовок и номер дорожки остаются якорем —
   оператор не теряет, о какой дорожке идёт речь. Анимируются только opacity и
   transform на изолированном слое; ширина/высота/отступы не трогаются. */
body.review-redesign .visit-workspace.is-entering .ws-kv,
body.review-redesign .visit-workspace.is-entering .ws-act,
body.review-redesign .visit-workspace.is-entering .explain,
body.review-redesign .visit-workspace.is-entering .ws-empty,
body.review-redesign .visit-workspace.is-entering .daily-form,
body.review-redesign .visit-workspace.is-entering .daily-facts,
body.review-redesign .visit-workspace.is-entering .daily-blocked {
  animation: ws-content-in var(--m-panel) var(--m-ease) both;
}
@keyframes ws-content-in { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }

/* Первичное действие входит ПОСЛЕ того, как панель осела, но НЕ через
   прозрачность. Невидимая кнопка, которая при этом кликается и ловит фокус, —
   ловушка: она выглядит выключенной и работает. Поэтому кнопка видима и
   активна с первого кадра, а «вход» выражен нарастанием акцента и коротким
   подъёмом. Daily Core — тот же язык на .daily-action (её собственный класс, не .btn.primary). */
body.review-redesign .visit-workspace.is-entering .btn.primary,
body.review-redesign .visit-workspace.is-entering .daily-action {
  animation: ws-primary-in var(--m-panel) var(--m-ease) var(--m-panel) both;
}
@keyframes ws-primary-in {
  from { transform: translateY(3px); box-shadow: none }
  to   { transform: none; box-shadow: 0 8px 26px -10px var(--st-free-glow) }
}

/* Нажатие подтверждается сразу — локальный отклик не имеет права выглядеть
   как загрузка. */
body.review-redesign .btn:active,
body.review-redesign .daily-action:active,
body.review-redesign .daily-lane:active { transform: translateY(1px); transition-duration: var(--m-ack); }

/* Вход в сбой/офлайн — одна ограниченная вспышка внимания, дальше покой.
   Никакого мигания: тревога должна привлечь один раз, а не пилить глаз. */
body.review-redesign .visit-workspace.is-entering .explain {
  animation: ws-content-in var(--m-panel) var(--m-ease) both,
             ws-emphasis var(--m-emph) var(--m-ease) both;
}
@keyframes ws-emphasis {
  from { box-shadow: 0 0 0 0 var(--st-fault-glow) }
  60%  { box-shadow: 0 0 0 6px transparent }
  to   { box-shadow: 0 0 0 0 transparent }
}
body.review-redesign .visit-workspace.is-entering .explain.warn {
  animation: ws-content-in var(--m-panel) var(--m-ease) both,
             ws-emphasis-warn var(--m-emph) var(--m-ease) both;
}
@keyframes ws-emphasis-warn {
  from { box-shadow: 0 0 0 0 var(--st-book-glow) }
  60%  { box-shadow: 0 0 0 6px transparent }
  to   { box-shadow: 0 0 0 0 transparent }
}

/* Сокращённое движение: состояния меняются мгновенно, фокус и контраст
   остаются на месте. Это не «ухудшенный режим», а равноправный. */
@media (prefers-reduced-motion: reduce) {
  body.review-redesign .lane,
  body.review-redesign .lane-h,
  body.review-redesign .lane-evi,
  body.review-redesign .dot,
  body.review-redesign .daily-lane,
  body.review-redesign .btn,
  body.review-redesign .daily-action,
  body.review-redesign .daily-link { transition: none !important; }
  body.review-redesign .visit-workspace.is-entering .ws-kv,
  body.review-redesign .visit-workspace.is-entering .ws-act,
  body.review-redesign .visit-workspace.is-entering .explain,
  body.review-redesign .visit-workspace.is-entering .explain.warn,
  body.review-redesign .visit-workspace.is-entering .ws-empty,
  body.review-redesign .visit-workspace.is-entering .daily-form,
  body.review-redesign .visit-workspace.is-entering .daily-facts,
  body.review-redesign .visit-workspace.is-entering .daily-blocked,
  body.review-redesign .visit-workspace.is-entering .btn.primary,
  body.review-redesign .visit-workspace.is-entering .daily-action { animation: none !important; }
  body.review-redesign .visit-workspace.is-entering .btn.primary,
  body.review-redesign .visit-workspace.is-entering .daily-action { transform: none; }
  body.review-redesign .btn:active,
  body.review-redesign .daily-action:active,
  body.review-redesign .daily-lane:active { transform: none; }
}


/* Авторский display:flex сильнее UA-правила для [hidden] — без явного
   переопределения скрытая карта продолжает занимать место и раздел встаёт
   рядом с ней. Та же ловушка, что ловит правило [hidden] в ui.smoke. */
body.review-redesign .lanes-panel[hidden],
body.review-redesign .visit-workspace[hidden] { display: none !important; }

/* Транспорт контракта: состояние связи объявляется словами, а не пустотой. */
body.review-redesign .summary-transport {
  flex: none; margin: 8px 16px 0; padding: 12px 16px;
  border-radius: var(--r-2); border: 1px solid var(--glass-line-2);
  background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 650; line-height: 1.45;
}
body.review-redesign .summary-transport.is-stale,
body.review-redesign .summary-transport.is-absent {
  border-color: color-mix(in srgb, var(--st-book) 45%, transparent);
  background: color-mix(in srgb, var(--st-book) 12%, transparent);
}
body.review-redesign .summary-transport.is-error {
  border-color: color-mix(in srgb, var(--st-fault) 45%, transparent);
  background: color-mix(in srgb, var(--st-fault) 12%, transparent);
}
/* Конфликт данных на карте — та же тревожная рамка, что у сбоя: оба требуют
   человека, но по разным причинам, и различаются подписью, а не только цветом. */
body.review-redesign .lane.is-conflict { border-color: color-mix(in srgb, var(--st-fault) 38%, transparent); }


/* ====================================================================   КРИТИКА ПО ЗАМЕРАМ.
   Дисциплина диспетчерских панелей: состояние несёт САМА карточка и несёт его
   ТРЕМЯ каналами — заливка/цвет, форма границы, слово. Один канал (точка 9px)
   не читается с двух метров и не переживает дальтонизм (~8% мужчин не
   различают янтарный/зелёный). Иерархия громкости монотонна: конфликт > сбой >
   внимание > игра > бронь/свободна. Выбор НИКОГДА не громче аварии.
   =========================================================================== */

/* --- заливка и граница по состоянию (статичные: без движения и пульса —
       директива моушена остаётся в силе, glow только у аварии) -------- */
body.review-redesign .lane.st-free {
  background: color-mix(in srgb, var(--st-free) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--st-free) 22%, transparent);
}
body.review-redesign .lane.st-active {
  background: color-mix(in srgb, var(--st-play) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--st-play) 34%, transparent);
}
/* Играют без визита: игра по цвету, ДЕНЬГИ по границе — янтарная сплошная. */
body.review-redesign .lane.st-unbilled {
  background: color-mix(in srgb, var(--st-play) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--st-book) 50%, transparent);
}
/* Технический «нет связи/запуск недоступен»: янтарь + ПУНКТИР — форма границы
   отличает техническое отсутствие от коммерческого внимания и от брони. */
body.review-redesign .lane.st-warn {
  background: color-mix(in srgb, var(--st-book) 7%, var(--surface));
  border-style: dashed;
  border-color: color-mix(in srgb, var(--st-book) 46%, transparent);
}
/* Молчащий скорер — штатно: нейтральная карточка, пунктир без заливки. */
body.review-redesign .lane.st-unconfirmed {
  border-style: dashed;
  border-color: var(--glass-line-2);
}
body.review-redesign .lane.st-parked {
  background: color-mix(in srgb, var(--st-park) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--st-park) 36%, transparent);
}
/* Сбой: самая тяжёлая заливка + единственное статичное свечение карты. */
body.review-redesign .lane.st-fault {
  background: color-mix(in srgb, var(--st-fault) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--st-fault) 62%, transparent);
  box-shadow: 0 0 26px -12px var(--st-fault-glow);
}
/* Конфликт данных: громче сбоя — двойной контур (border + outline). */
body.review-redesign .lane.st-conflict {
  background: color-mix(in srgb, var(--st-fault) 13%, var(--surface));
  border-color: var(--st-fault);
  outline: 1px solid color-mix(in srgb, var(--st-fault) 45%, transparent);
  outline-offset: 3px;
  box-shadow: 0 0 30px -12px var(--st-fault-glow);
}
/* Бронь — НЕ состояние дорожки, а будущее событие: дорожка остаётся свободной,
   бронь живёт чипом времени (см. .lane-booking). Янтарная точка брони убрана —
   это и был двойной смысл янтарного из B3. */
body.review-redesign .lane.st-booked {
  background: color-mix(in srgb, var(--st-free) 5%, var(--surface));
  border-color: color-mix(in srgb, var(--st-free) 18%, transparent);
}
body.review-redesign .lane-booking {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--st-park) 40%, transparent);
  background: color-mix(in srgb, var(--st-park) 12%, transparent);
  color: var(--ink); font-size: 13.5px; font-weight: 750;
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
}
body.review-redesign .lane-booking small { color: var(--muted); font-weight: 650; font-size: 12px; }
/* имя гостя на тонированном чипе поверх тонированной карты — light недобирал (4.29) */
html[data-theme="light"] body.review-redesign .lane-booking small { color: var(--ink); }

/* --- авария громче выбора. Выбор переезжает ВНУТРЬ силуэта (inset-кольцо):
       внешний контур остаётся за аварией, и выбранная сломанная дорожка
       читается как «сломанная И выбранная», а не как «текущая». ------------- */
/* border-color здесь НЕ трогаем: он принадлежит состоянию (st-класс объявлен
   ниже старого правила выбора и перекрывает его), выбор — только inset-кольцо. */
body.review-redesign .lane.sel {
  box-shadow: inset 0 0 0 2px var(--accent);
}
body.review-redesign .lane.st-fault.sel {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 26px -12px var(--st-fault-glow);
}
body.review-redesign .lane.st-conflict.sel {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 30px -12px var(--st-fault-glow);
}

/* --- строка «когда освободится» + тонкая шкала прогресса --------------- */
body.review-redesign .lane-until {
  margin-top: 7px; padding-top: 7px;
  border-top: 1px solid var(--glass-line);
  font-size: 14.5px; font-weight: 750;
  font-variant-numeric: tabular-nums;
}
body.review-redesign .lane-until small { display: block; color: var(--faint); font-weight: 650; font-size: 11.5px; margin-bottom: 2px; }
body.review-redesign .lane-progress {
  margin-top: 6px; height: 3px; border-radius: 2px;
  background: var(--glass-line);
  overflow: hidden;
}
body.review-redesign .lane-progress i {
  display: block; height: 100%;
  background: var(--st-play);
  border-radius: 2px;
}

/* --- в аварийной панели ведёт спасение выручки, не бюрократия ---------- */
body.review-redesign .btn.lead {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  border-color: var(--glass-line-2);
  font-weight: 750;
}

/* --- V6: выбранная опция сегмента громче фокуса ----------------------------- */
body.review-redesign .seg .on {
  background: color-mix(in srgb, var(--st-play) 22%, transparent);
  border-color: var(--st-play);
  color: var(--ink);
}

/* --- V7: шесть дорожек — сетка 3×2, карточки растут, угол не пустует -------- */

/* --- V8: чип «Ближайшее» никогда не теряет ВРЕМЯ ---------------------------- */
body.review-redesign .soon-chip { min-width: 0; }
body.review-redesign .soon-chip .t { flex: none; }
body.review-redesign .soon-chip .d { flex: 1 1 auto; min-width: 0; }

/* --- светлая тема — рабочая, семантика цвета та же, что в тёмной -------- */
html[data-theme="light"] body.review-redesign {
  --bg: linear-gradient(180deg, #e8edf4, #e2e8f1 60%, #dde4ee);
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --glass-line: rgba(24, 33, 48, .14);
  --glass-line-2: rgba(24, 33, 48, .26);
}
html[data-theme="light"] body.review-redesign .lane {
  box-shadow: 0 1px 3px rgba(24, 33, 48, .08), 0 4px 14px -6px rgba(24, 33, 48, .12);
}
html[data-theme="light"] body.review-redesign .lane.st-free    { background: color-mix(in srgb, var(--st-free) 8%, #fff); border-color: color-mix(in srgb, var(--st-free) 34%, transparent); }
html[data-theme="light"] body.review-redesign .lane.st-booked  { background: color-mix(in srgb, var(--st-free) 6%, #fff); border-color: color-mix(in srgb, var(--st-free) 26%, transparent); }
html[data-theme="light"] body.review-redesign .lane.st-active  { background: color-mix(in srgb, var(--st-play) 10%, #fff); border-color: color-mix(in srgb, var(--st-play) 42%, transparent); }
html[data-theme="light"] body.review-redesign .lane.st-unbilled{ background: color-mix(in srgb, var(--st-play) 8%, #fff); border-color: color-mix(in srgb, var(--st-book) 58%, transparent); }
html[data-theme="light"] body.review-redesign .lane.st-warn    { background: color-mix(in srgb, var(--st-book) 9%, #fff); border-color: color-mix(in srgb, var(--st-book) 55%, transparent); }
html[data-theme="light"] body.review-redesign .lane.st-fault   { background: color-mix(in srgb, var(--st-fault) 10%, #fff); border-color: color-mix(in srgb, var(--st-fault) 66%, transparent); box-shadow: 0 0 22px -10px var(--st-fault-glow); }
html[data-theme="light"] body.review-redesign .lane.st-conflict{ background: color-mix(in srgb, var(--st-fault) 12%, #fff); border-color: var(--st-fault); }
html[data-theme="light"] body.review-redesign .lane.st-parked  { background: color-mix(in srgb, var(--st-park) 9%, #fff); border-color: color-mix(in srgb, var(--st-park) 44%, transparent); }

@media (prefers-reduced-motion: reduce) {
  body.review-redesign .lane.st-fault,
  body.review-redesign .lane.st-conflict { box-shadow: none; }
}

/* чип дрейфа на карточке VC — янтарный, с янтарной точкой. */
.tech-content .vc .link.warn { color: var(--st-book); }
.tech-content .vc .dot.warn-dot { background: var(--st-book); box-shadow: 0 0 0 4px var(--st-book-glow); }
/* шестерёнка техраздела в топбаре review-экрана. */
body.review-redesign .review-gear {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-line-2); background: var(--surface);
  color: var(--muted); cursor: pointer;
}
body.review-redesign .review-gear:hover { color: var(--ink); background: var(--surface-2); }
body.review-redesign .review-gear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .review-gear .svgi { width: 20px; height: 20px; min-width: 20px; flex: none; }
/* образец чипа брони в легенде. */
body.review-redesign .legend .legend-chip {
  display: inline-flex; padding: 1px 7px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--st-park) 40%, transparent);
  background: color-mix(in srgb, var(--st-park) 12%, transparent);
  color: var(--ink); font-size: 10.5px; font-weight: 750; font-variant-numeric: tabular-nums;
}
/* V1 (часть): деньги — чернилами, а не тем же серым, что подписи. */
body.review-redesign .lane-money { color: var(--ink); }


/* ============ T-СЕРИЯ ТЕХРАЗДЕЛА (критика по замерам) ============ */
/* T1: соединитель цепочки был 1.5:1 — цепочки не существовало. Теперь линия
   видима и НЕСЁТ смысл: до исправной ступени — зелёная, в аварийную — красная,
   после обрыва — пунктирная серая: обрыв слева отменяет всё справа. */
.tech-content .cstep::before { height: 2px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.tech-content .cstep.ok::before   { background: color-mix(in srgb, var(--st-free) 55%, transparent); }
.tech-content .cstep.bad::before  { background: color-mix(in srgb, var(--st-fault) 60%, transparent); }
.tech-content .cstep.warn::before { background: color-mix(in srgb, var(--st-book) 55%, transparent); }
.tech-content .cstep.off::before  {
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 6px, transparent 6px 12px);
}
/* T2: деградация — янтарная ступень + давность ответа подписью. */
.tech-content .cstep.warn .cd { background: var(--st-book); box-shadow: 0 0 0 3px var(--st-book-glow); }
.tech-content .cstep.warn .cl { color: var(--st-book); }
.tech-content .cs-note { font-size: 10px; font-weight: 650; color: var(--st-fault); margin-top: 2px; }
.tech-content .cstep.warn .cs-note { color: var(--st-book); }
/* T3: последняя карточка не режется складкой молча — низу даётся воздух, а у
   прокручиваемой области появляется затухание как индикатор продолжения. */
.tech-content { padding-bottom: 28px; }
.modal.technical-modal .modal-body { scrollbar-gutter: stable; }
.modal.technical-modal .modal-body::after {
  content: ""; position: sticky; bottom: 0; display: block; height: 26px; margin-top: -26px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-solid) 85%, transparent));
  pointer-events: none;
}
/* T5: рельс липкий — навигация раздела не уезжает со скроллом. */
.tech-shell .rail { position: sticky; top: 0; align-self: flex-start; }
/* T8: объяснительная проза не крупнее органов управления. */
.tech-content .sec-sub { font-size: 13px; line-height: 1.45; max-width: 74ch; }
/* T9: действия прибиты к низу карточки — низ ряда ровный. */
.tech-content .card.vc { display: flex; flex-direction: column; }
.tech-content .card.vc .vc-actions { margin-top: auto; }
.tech-content .periph-more { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* =====================================================================   МОУШЕН ТЕХРАЗДЕЛА: движение = смена состояния железа, ничего декоративного.
   Техник смотрит на раздел подолгу, поэтому ни одно состояние не пульсирует
   постоянно (единственное сердцебиение — зелёная точка «готов», это heartbeat
   связи). Переход играется ОДИН раз в момент события и навсегда замирает.
   ============================================================================ */
/* Новый бокс в сети — событие: карточка входит и один раз очерчивается
   кольцом внимания, кольцо гаснет насовсем — никакого «маячка» после.
   Кольцо живёт на ::after и анимируется только opacity: тень карточки
   (--elev-1) не перетирается, и ни один кадр не перерисовывает всю карту. */
.tech-content .card.vc.vc-born { position: relative; animation: vc-born .32s var(--ease) both; }
@keyframes vc-born { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.tech-content .card.vc.vc-born::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-ring) 45%, transparent);
  opacity: 0; pointer-events: none;
  animation: vc-born-ring .9s var(--ease) both;
}
@keyframes vc-born-ring { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
/* Смена тона (готов → дрейф → отказ): цвет «прибывает» из полунасыщенного —
   читаемо, но без паники: ни мигания, ни повторов, ни смены раскладки. */
.tech-content .card.vc.vc-shift { animation: vc-shift .55s var(--ease) both; }
@keyframes vc-shift { from { filter: saturate(.45); } }
/* Чип связи объявляет новое состояние первым — лёгкий вход сверху. */
.tech-content .vc-shift .link { animation: vc-link-arrive .4s var(--ease) both; }
@keyframes vc-link-arrive { from { opacity: 0; transform: translateY(-3px); } }
/* Улика отказа («N мин назад» красным) проявляется после чипа: сначала ЧТО
   случилось, потом КОГДА. */
.tech-content .vc-shift .kv .v .bad { animation: vc-evidence .45s var(--ease) both .16s; }
@keyframes vc-evidence { from { opacity: 0; } }
/* Ступени цепочки переподтверждаются по порядку — волна Бокс → Пара → Шина →
   Пинсеттер. Смена состояния читается как продвижение по цепочке (T1),
   а не мгновенная перерисовка всех точек разом. */
.tech-content .vc-shift .cstep { animation: cstep-arrive .38s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes cstep-arrive { from { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
  .tech-content .card.vc.vc-born,
  .tech-content .card.vc.vc-born::after,
  .tech-content .card.vc.vc-shift,
  .tech-content .vc-shift .link,
  .tech-content .vc-shift .kv .v .bad,
  .tech-content .vc-shift .cstep { animation: none !important; }
  /* heartbeat-пульс «готов» снимает существующий reduce-блок выше (.vc .dot.on.pulse) */
}

/* ============ ПЛАНШЕТ: 1024×768 и 1180×820 ================================ */
@media (max-width: 1200px) {
  .tech-shell { grid-template-columns: 168px 1fr; }
  .tech-content .grid-vc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.review-redesign .lanes-panel { flex-basis: 60%; }
  /* Планшет управляется пальцем: сегменты выбора и кнопка модели растут до
     полноценной цели — 34px хватало мыши, пальцу не хватает. */
  .tech-content .seg .seg-btn, .tech-content .pick { min-height: 44px; }
}
@media (max-width: 1060px) {
  body.review-redesign .visit-map-head { flex-wrap: wrap; row-gap: 6px; }
  body.review-redesign .visit-map-summary { white-space: nowrap; }
  /* Карта на планшете прокручивается, а не наезжает полосой «Ближайшее» на
     последний ряд карточек. */
  body.review-redesign .lanes-panel { overflow-y: auto; }
  body.review-redesign .daily-lanes {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }
  /* Сетка тянется по высоте, пока ряды помещаются, и только потом уходит в
     прокрутку: иначе при 4-6 дорожках снизу оставалось ~160px пустоты. */
  body.review-redesign .lanes { grid-auto-rows: minmax(170px, 1fr); flex: 1; }
  body.review-redesign .soon { position: sticky; bottom: 0; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(10px); padding-top: 8px; }
  .tech-shell { display: block; }
  /* Базовый рельс — колонка; на планшете он полоса, и направление надо
     перебить явно, иначе пункты растягиваются простынёй на всю ширину. */
  .tech-shell .rail { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .tech-shell .railnote { display: none; }
  /* Планшет: три колонки максимум — иначе карточка уже пальца. :has-правила
     выше перебиваются здесь намеренно, ширина важнее числа рядов. */
  body.review-redesign .lanes,
  body.review-redesign .lanes:has(.lane:nth-child(8):last-child) { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
  body.review-redesign .lane-num { font-size: 28px; }
}

/* ============ УЗКАЯ КОМПОЗИЦИЯ / 200% ZOOM =========================   1024px at 200% exposes roughly 512 CSS px. At this width a side-by-side
   Hall + Visit cannot remain operable, so the document becomes a real
   vertical flow instead of clipping essential actions inside a fixed body. */
@media (max-width: 640px) {
  html { height: auto; min-height: 100%; overflow-x: hidden; }
  body.review-redesign { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
  body.review-redesign .topbar { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 14px; row-gap: 4px; }
  body.review-redesign .subline { display: none; }
  body.review-redesign .top-brand h1 { font-size: 15px; }
  body.review-redesign .top-brand .emblem { width: 22px; height: 22px; }
  /* «чеков N · незавершено N» — деталь для расстояния вытянутой руки; на
     телефонной ширине оставляем только имя и часы, деталь есть в разделе «Смена». */
  body.review-redesign .shift .kv { display: none; }
  body.review-redesign .shift { padding: 0 10px; height: 38px; }
  body.review-redesign .clock { font-size: 16px; }
  body.review-redesign .review-nav { overflow-x: auto; }
  body.review-redesign .review-nav-item { flex: none; }

  body.review-redesign .workspace { flex: none; flex-direction: column; min-height: 0; overflow: visible; }
  body.review-redesign .lanes-panel { flex: none; width: 100%; padding: 12px; overflow-y: visible; }
  body.review-redesign .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: minmax(150px, auto); }
  body.review-redesign .daily-lanes:not(.hall-tiles-v1) { grid-template-columns: 1fr !important; }
  body.review-redesign .lane { max-width: none; }
  body.review-redesign .ws { width: 100%; border-left: 0; border-top: 1px solid var(--glass-line); flex: none; overflow: visible; }
  body.review-redesign .daily-control-row { grid-template-columns: minmax(0, 1fr); }
}

/* ============ VERTICAL VISIT REVIEW FLOW ===========================   A bounded, review-only preparation sequence. It reuses the persistent Visit
   workspace; the lane map remains selection-only. */
body.review-redesign .review-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 2px;
  padding: 0;
  list-style: none;
}
body.review-redesign .review-flow-steps li {
  min-width: 0;
  padding: 6px 4px;
  border-bottom: 2px solid var(--glass-line);
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
body.review-redesign .review-flow-steps li.is-done {
  color: var(--muted);
  border-color: color-mix(in srgb, var(--st-free) 46%, transparent);
}
body.review-redesign .review-flow-steps li.is-current {
  color: var(--ink);
  border-color: var(--accent);
}
body.review-redesign .review-flow-content { flex: 0 0 auto; }
body.review-redesign .review-flow-actions { min-height: 0; }
body.review-redesign .review-flow-unit .pv { min-height: 48px; }
body.review-redesign .review-flow-unit .pv .step button {
  width: 48px;
  height: 48px;
}
body.review-redesign .review-flow-empty { min-height: 230px; }
body.review-redesign .review-flow-empty .ico { color: var(--st-free); }
@media (max-height: 760px) {
  body.review-redesign .review-flow-steps { margin-top: 8px; }
  body.review-redesign .review-flow-steps li { padding-top: 4px; padding-bottom: 4px; }
  body.review-redesign .review-flow-content { gap: 9px; padding-top: 10px; }
}

/* =====================================================================   ЧЕСТНОСТЬ ВОЗРАСТА ДАННЫХ.
   Экран, потерявший связь, обязан ОТЛИЧАТЬСЯ от живого: карта гаснет,
   плашка называет момент, которому верит интерфейс. Часы в шапке идут —
   это «время сейчас»; возраст данных объявлен отдельно и явно.
   Слой общий для старого экрана и v2: оба живут в main.workspace.
   ============================================================================ */
.stale-banner {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 220; /* поверх модалок: устаревшее «всё хорошо» опаснее любого окна */
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: min(94vw, 880px); padding: 12px 18px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--st-fault, #e24) 55%, transparent);
  background: color-mix(in srgb, var(--st-fault, #e24) 16%, var(--surface-solid, #10121c));
  color: var(--ink, #f2f5fb); font-size: 14.5px; font-weight: 650;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.stale-banner b { font-weight: 800; }
.stale-banner .stale-age { font-variant-numeric: tabular-nums; }
.stale-banner .stale-retry { color: color-mix(in srgb, var(--ink, #f2f5fb) 72%, transparent); font-weight: 600; }
/* Устаревшая карта не притворяется живой: гаснет и не ловит нажатия —
   действие по трёхминутной картинке опаснее, чем отсутствие действия.
   filter на ОБЩЕМ предке (main.workspace) визуально
   гасил Retry ВМЕСТЕ со всем остальным — pointer-events:auto exemption
   отменяет блокировку клика, но filter унаследованного слоя НЕЛЬЗЯ снять
   выборочно с потомка (в отличие от opacity/pointer-events, filter
   компонует весь под-дерево как один слой). Кнопка была кликабельна, но
   выглядела disabled в момент, когда оператору нужно её увидеть рабочей.
   Фикс — filter ставится точечно на карту и на объясняющий текст, а НЕ
   на общего предка, так что .daily-checkout (единственный держатель
   .daily-retry-action) остаётся вне зоны действия filter в принципе. */
body.data-stale .lanes-panel,
body.data-stale main.workspace .ws-empty { filter: grayscale(.55) opacity(.72); transition: filter .3s ease; }
body.data-stale main.workspace .lane,
body.data-stale main.workspace .btn,
body.data-stale main.workspace .daily-lane,
body.data-stale main.workspace .daily-action:not(.daily-retry-action),
body.data-stale main.workspace .daily-link { pointer-events: none; }
body.data-stale main.workspace .daily-retry-action { pointer-events: auto; cursor: pointer; }
html[data-theme="light"] .stale-banner {
  background: color-mix(in srgb, var(--st-fault, #bd3030) 12%, #fff);
  color: var(--ink, #17212b);
  border-color: color-mix(in srgb, var(--st-fault, #bd3030) 55%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  body.data-stale .lanes-panel,
  body.data-stale main.workspace .ws-empty { transition: none; }
}
/* Когда глобальная плашка возраста активна, контекстная строка транспорта v2
   молчит: два алярма об одном — шум, а возраст полнее причины. */
body.data-stale .summary-transport { display: none; }

/* ===================================================================   RECEPTION VISUAL CONVERGENCE
   Approved Hall + persistent Visit concept, independently authored on the
   existing semantic tokens.  This is presentation-only: the adapter, action
   authority and pair DOM above remain the source of truth.
   ========================================================================== */
body.review-redesign {
  --bg: linear-gradient(135deg, #101522 0%, #0c111d 58%, #0b101a 100%);
  --hall-surface: #121a29;
  --workspace-surface: #182235;
  --surface: #1a2536;
  --surface-2: #223047;
  --surface-solid: #101726;
  --glass-line: rgba(177, 194, 220, .15);
  --glass-line-2: rgba(177, 194, 220, .28);
  --ink: #f4f6fb;
  --muted: #b1bbce;
  --faint: #8996ad;
  --tone-tint: 11%;
  --daily-free-ink: #e8ffee;
  --daily-active-ink: #c8f7ff;
  --daily-rehearsal-ink: #ffe1a6;
  --select-ring: #f1d7ff;
  --elev-1: 0 8px 22px rgba(3, 8, 17, .25);
  background: var(--bg);
}
html[data-theme="light"] body.review-redesign {
  --bg: linear-gradient(135deg, #e7ebf1 0%, #eef2f7 58%, #e2e8ef 100%);
  --hall-surface: #f1f4f8;
  --workspace-surface: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --surface-solid: #edf1f5;
  --glass-line: rgba(30, 43, 63, .14);
  --glass-line-2: rgba(30, 43, 63, .25);
  --ink: #1b2638;
  --muted: #526178;
  --faint: #69778e;
  --tone-tint: 8%;
  --daily-free-ink: #06452a;
  --daily-active-ink: #00465a;
  --daily-rehearsal-ink: #6a3a00;
  --select-ring: #6b144f;
  --elev-1: 0 6px 18px rgba(24, 39, 62, .10);
}
/* Selection is an independent semantic token on the root as well as the
   review body: appearance tests and component rules must resolve the same
   colour, and the ring must clear the non-text 3:1 boundary in both themes. */
:root, :root[data-theme="neon"] { --select-ring: #f1d7ff; }
html[data-theme="light"] { --select-ring: #6b144f; }
body.review-redesign .topbar {
  height: 76px;
  padding: 0 28px;
  gap: 18px;
  border-bottom: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.review-redesign .top-brand { gap: 12px; }
body.review-redesign .top-brand h1 { font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
body.review-redesign .brand-emblem { width: 34px; height: 34px; display: grid; place-items: center; }
body.review-redesign .brand-emblem svg { width: 34px; height: 34px; }
body.review-redesign .subline { font-size: 13.5px; color: var(--faint); }
body.review-redesign .top-actions { gap: 12px; }
body.review-redesign .clock { font-size: 20px; font-weight: 780; color: var(--ink); }
body.review-redesign .top-actions .system-btn {
  width: 64px; height: 64px; min-width: 64px; min-height: 64px; padding: 0; border-radius: 12px;
  border-color: var(--glass-line-2); background: var(--surface-2); color: var(--muted);
}
body.review-redesign .top-actions .system-btn:hover { color: var(--ink); border-color: var(--accent); }
body.review-redesign .workspace { background: var(--bg); }
body.review-redesign .lanes-panel {
  flex-basis: 65%;
  padding: 22px 24px 24px;
  background: var(--hall-surface);
}
body.review-redesign .visit-workspace {
  flex: 1;
  padding: 12px 26px;
  border-left: 1px solid var(--glass-line);
  background: var(--workspace-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.review-redesign .visit-map-head {
  align-items: flex-end;
  gap: 16px;
  margin: 0 0 18px;
}
body.review-redesign .visit-map-head h2 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
body.review-redesign .visit-map-summary { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
body.review-redesign .daily-lanes { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
body.review-redesign .daily-lane-pair { gap: 12px; }
body.review-redesign .daily-lane {
  min-height: 146px;
  padding: 15px 17px 14px;
  gap: 0;
  border-radius: 16px;
  border-color: var(--glass-line-2);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: border-color var(--m-select) var(--m-ease), background var(--m-state) var(--m-ease), box-shadow var(--m-select) var(--m-ease);
}
body.review-redesign .daily-lane:hover { background: var(--surface-2); border-color: var(--accent); }
body.review-redesign .daily-lane-top { align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--glass-line); }
body.review-redesign .daily-lane-no { font-size: 27px; line-height: 1; font-weight: 820; letter-spacing: -.04em; }
body.review-redesign .daily-lane-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 780; letter-spacing: .035em; }
body.review-redesign .daily-lane-state-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1px solid currentColor; }
body.review-redesign .daily-lane-state-mark .svgi { width: 12px; height: 12px; stroke-width: 2.2; }
body.review-redesign .daily-lane-state.tone-free .daily-lane-state-mark { border-radius: 50%; }
body.review-redesign .daily-lane-state.tone-active .daily-lane-state-mark { border-radius: 50%; }
body.review-redesign .daily-lane-state.tone-closed .daily-lane-state-mark { border-style: dashed; }
body.review-redesign .daily-lane-state.tone-free { color: var(--daily-free-ink); }
body.review-redesign .daily-lane-state.tone-active { color: var(--daily-active-ink); }
body.review-redesign .daily-lane-state.tone-rehearsal { color: var(--daily-rehearsal-ink); }
body.review-redesign .daily-lane-headline {
  display: -webkit-box; margin-top: 13px; color: var(--ink); font-size: 16px; line-height: 1.25; font-weight: 780;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
body.review-redesign .daily-lane-fact {
  display: -webkit-box; margin-top: 5px; color: var(--muted); font-size: 13.5px; line-height: 1.35; font-weight: 620;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
body.review-redesign .daily-lane-environment {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 5px 9px;
  border-radius: 8px; border: 1px solid color-mix(in srgb, var(--st-park) 52%, var(--glass-line-2));
  background: color-mix(in srgb, var(--st-park) 10%, transparent); color: var(--st-park); font-size: 11.5px; font-weight: 780;
}
body.review-redesign .daily-lane-environment-mark { display: inline-grid; place-items: center; }
body.review-redesign .daily-lane-environment-mark .svgi { width: 14px; height: 14px; }
body.review-redesign .daily-lane.tone-free { background: color-mix(in srgb, var(--st-free) var(--tone-tint), var(--surface)); border-color: color-mix(in srgb, var(--st-free) 42%, var(--glass-line-2)); }
body.review-redesign .daily-lane.tone-active { background: color-mix(in srgb, var(--st-play) var(--tone-tint), var(--surface)); border-color: color-mix(in srgb, var(--st-play) 48%, var(--glass-line-2)); }
body.review-redesign .daily-lane.tone-attention { background: color-mix(in srgb, var(--st-book) var(--tone-tint), var(--surface)); border-style: dashed; border-color: color-mix(in srgb, var(--st-book) 58%, var(--glass-line-2)); }
body.review-redesign .daily-lane.tone-conflict { background: color-mix(in srgb, var(--st-fault) 13%, var(--surface)); border-color: var(--st-fault); }
body.review-redesign .daily-lane.tone-rehearsal { background: color-mix(in srgb, var(--st-park) 12%, var(--surface)); border-style: dotted; border-color: color-mix(in srgb, var(--st-park) 66%, var(--glass-line-2)); }
body.review-redesign .daily-lane.tone-closed { opacity: .72; background: color-mix(in srgb, var(--st-closed) 7%, var(--surface)); }
body.review-redesign .daily-lane.is-selected { border-color: var(--select-ring); box-shadow: 0 0 0 2px var(--select-ring), 0 12px 26px -14px color-mix(in srgb, var(--select-ring) 55%, transparent); }
body.review-redesign .daily-workspace-head { flex: none; padding: 0 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--glass-line); }
body.review-redesign .daily-workspace-kicker { display: block; margin-bottom: 8px; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.review-redesign .daily-workspace-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.review-redesign .daily-workspace-title-row h3 { margin: 0; font-size: 23px; line-height: 1.15; font-weight: 820; letter-spacing: -.025em; }
body.review-redesign .daily-workspace-status { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 9px; border-radius: 999px; border: 1px solid currentColor; font-size: 11.5px; font-weight: 780; }
body.review-redesign .daily-workspace-status.tone-rehearsal { color: var(--daily-rehearsal-ink); }
body.review-redesign .daily-workspace-status .daily-lane-state-mark { width: 16px; height: 16px; }
body.review-redesign .daily-workspace-status .daily-lane-state-mark .svgi { width: 11px; height: 11px; }
body.review-redesign .daily-workspace-head .ws-sub { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.4; }
body.review-redesign .daily-form { gap: 8px; }
body.review-redesign .daily-field > span:first-child, body.review-redesign .daily-row-label { color: var(--faint); font-size: 12px; letter-spacing: .02em; }
body.review-redesign .daily-field input[type="text"] { min-height: 50px; border-color: var(--glass-line-2); background: var(--surface-2); }
body.review-redesign .daily-control-row { gap: 10px; }
body.review-redesign .daily-stepper { min-height: 50px; border-color: var(--glass-line-2); background: var(--surface-2); }
body.review-redesign .seg button { min-height: 52px; padding: 0 8px; line-height: 1.15; }
/* Touch target is 64px while the visible control stays compact. Negative
   margins keep the reviewed form rhythm and the 1280x720 safe inset intact;
   the empty space around the glyph is still part of the hit area. */
body.review-redesign .daily-stepper button {
  width: 64px; min-width: 64px; height: 64px; min-height: 64px;
  margin-block: -7px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; display: grid; place-items: center;
}
body.review-redesign .daily-stepper-glyph {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--glass-line-2); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  font-size: 19px; font-weight: 650; line-height: 1;
}
body.review-redesign .daily-stepper button:hover .daily-stepper-glyph { border-color: var(--accent); }
body.review-redesign .daily-stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.review-redesign .daily-offer { padding: 10px 14px; border-color: var(--glass-line-2); background: color-mix(in srgb, var(--st-play) 7%, var(--surface)); }
/* Keep the published Visit primary visibly above the 1280x720 bottom edge;
   the total row remains readable while reserving an 8px operator safe inset. */
body.review-redesign .daily-total-row { padding: 6px 14px; border-color: var(--glass-line-2); background: var(--surface-2); }
body.review-redesign .daily-total-row strong { font-size: 22px; }
body.review-redesign .daily-action { min-height: 64px; border-radius: 12px; font-size: 16px; font-weight: 780; }
body.review-redesign .daily-link { color: var(--muted); }
body.review-redesign .ws-empty {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 260px;
  overflow: hidden;
  color: var(--ink);
}
body.review-redesign .ws-empty::after {
  content: "";
  grid-area: 1 / 1;
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--workspace-surface) 68%, transparent) 0%,
    transparent 36%,
    color-mix(in srgb, var(--workspace-surface) 24%, transparent) 66%,
    var(--workspace-surface) 100%);
}
body.review-redesign .ws-empty .et {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 2;
  max-width: 24ch;
  margin-bottom: 8%;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--workspace-surface) 91%, transparent);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 780;
  text-wrap: balance;
}
body.review-redesign .daily-empty-scene {
  grid-area: 1 / 1;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/lane-pins-bg.png') center 34% / cover no-repeat;
  opacity: .36;
  filter: saturate(.64) contrast(1.04) brightness(.76);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 78%, transparent 100%);
  pointer-events: none;
}
html[data-theme="light"] body.review-redesign .daily-empty-scene {
  opacity: .27;
  filter: saturate(.5) contrast(.88) brightness(1.12);
}
body.review-redesign .ws-empty.is-compact {
  flex: none;
  min-height: 0;
  overflow: visible;
}
body.review-redesign .ws-empty.is-compact::after { content: none; }
body.review-redesign .ws-empty.is-compact .et {
  margin: 0;
  background: none;
}
body.review-redesign .daily-state-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  margin-top: 4px;
}
body.review-redesign .daily-state-stack .daily-checkout {
  margin-top: 0;
}
body.review-redesign .daily-state-stack .daily-blocked + .daily-checkout > .daily-blocked {
  border-color: var(--glass-line-2);
  background: var(--surface-2);
}
body.review-redesign .daily-state-stack.is-recovery {
  flex: 1;
  justify-content: center;
  max-width: 34rem;
  width: 100%;
  margin-inline: auto;
}
body.review-redesign .summary-transport {
  margin: 10px 18px 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px -24px color-mix(in srgb, var(--ink) 38%, transparent);
}

/* S1A presentation: strengthen the three operational planes without changing
   their ownership — shell, scan/select Hall, contextual Visit. */
body.review-redesign .topbar {
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: 0 12px 30px -28px color-mix(in srgb, var(--ink) 55%, transparent);
}
body.review-redesign .lanes-panel {
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 34%),
    var(--hall-surface);
}
body.review-redesign .visit-map-head {
  min-height: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-line);
}
body.review-redesign .daily-lane {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent), var(--elev-1);
}
body.review-redesign .daily-lane:hover {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 9%, transparent), 0 12px 28px -22px color-mix(in srgb, var(--ink) 46%, transparent);
}
body.review-redesign .daily-lane.is-selected {
  box-shadow: 0 0 0 2px var(--select-ring), 0 14px 32px -20px color-mix(in srgb, var(--select-ring) 58%, transparent);
}
@media (hover: none) {
  body.review-redesign .daily-lane:hover { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent), var(--elev-1); }
  body.review-redesign .daily-lane.is-selected:hover {
    box-shadow: 0 0 0 2px var(--select-ring), 0 14px 32px -20px color-mix(in srgb, var(--select-ring) 58%, transparent);
  }
}

@media (max-width: 1100px) {
  body.review-redesign .topbar { padding: 0 20px; }
  body.review-redesign .lanes-panel { flex-basis: 64%; padding: 18px 18px 20px; }
  body.review-redesign .visit-workspace { padding: 8px 18px; }
  /* At 1024px the two-column form gives the 64px quantity stepper less than
     its intrinsic width (two targets + output). Reflow the control row instead
     of shrinking or clipping the high-frequency buttons. */
  body.review-redesign .daily-workspace-head { padding-bottom: 8px; margin-bottom: 6px; }
  /* Keep the stacked Visit groups on one rhythm: Format, quantity and Guests
     are siblings at this width, so the reflow gap must match the form gap. */
  body.review-redesign .daily-form { gap: 3px; }
  body.review-redesign .daily-control-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  body.review-redesign .daily-field input[type="text"] { min-height: 44px; }
  body.review-redesign .daily-offer { padding: 8px 14px; }
  body.review-redesign .daily-total-row { padding-top: 6px; padding-bottom: 6px; }
  body.review-redesign .daily-checkout { gap: 1px; }
  body.review-redesign .daily-lanes { grid-template-columns: 1fr; gap: 12px; }
  body.review-redesign .daily-lane-pair { gap: 10px; }
  body.review-redesign .daily-lane { min-height: 138px; }
  body.review-redesign .daily-lane-headline { font-size: 15.5px; }
  body.review-redesign .daily-lane-fact {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    overflow-wrap: anywhere;
  }
  body.review-redesign .ws-empty .et { margin-bottom: 10%; }
}
@media (min-width: 1101px) and (max-width: 1350px) {
  body.review-redesign .lanes-panel { flex-basis: 62%; }
  body.review-redesign .daily-lanes { grid-template-columns: 1fr; width: 100%; min-width: 0; }
  body.review-redesign .daily-lane-fact {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.review-redesign .daily-lane { transition: none; }
}

/* ========================================================================== */
/* MANAGER UPDATER — bounded UI over /api/v1/update/*                       */
/* ========================================================================== */
.modal.updater-modal { width: 100vw; max-height: 100vh; }
.modal.updater-modal.fullscreen { grid-template-rows: clamp(64px, 10vh, 96px) minmax(0, 1fr) auto; }
.modal.updater-modal .modal-head { padding-inline: clamp(20px, 3vw, 36px); }
.modal.updater-modal .modal-head h3 { font-size: clamp(22px, 3vh, 30px); }
.modal.updater-modal .modal-body.updater-body {
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(18px, 3vh, 30px) clamp(20px, 4vw, 54px) clamp(16px, 2.5vh, 26px);
  background: radial-gradient(circle at 76% -25%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 38%);
}
.updater-release { padding: clamp(20px, 3vw, 30px); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--glass-line-2)); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, color-mix(in srgb, var(--accent-2) 6%, var(--surface)) 52%, var(--surface) 100%); box-shadow: inset 0 1px 0 color-mix(in srgb, white 7%, transparent), var(--elev-1); }
.updater-release.positive { border-color: color-mix(in srgb, var(--good) 38%, var(--glass-line-2)); background: linear-gradient(135deg, color-mix(in srgb, var(--good) 10%, var(--surface)), var(--surface)); }
.updater-release.warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--glass-line-2)); }
.updater-release-summary { display: grid; gap: 18px; }
.updater-status-card {
  display: flex; flex-direction: column; gap: 6px; padding: 0;
  border: 0; background: transparent; box-shadow: none;
}
.updater-status-kicker { color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.updater-status-card.positive .updater-status-kicker { color: var(--good); }
.updater-status-card.warning .updater-status-kicker { color: var(--warn); }
.updater-status-card h4 { margin: 0; font-size: clamp(24px, 3.2vh, 34px); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.updater-muted { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.updater-facts { display: grid; gap: 1px; margin: 0; border: 1px solid var(--glass-line); border-radius: var(--r-2); overflow: hidden; }
.updater-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 16px; background: var(--surface); }
.updater-facts dt { color: var(--muted); font-size: 14px; }
.updater-facts dd { margin: 0; color: var(--ink); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.updater-version-facts { display: flex; align-items: center; gap: 18px; border: 0; border-radius: 0; overflow: visible; }
.updater-version-facts > div { position: relative; min-width: 140px; display: grid; justify-content: start; gap: 3px; padding: 0; background: transparent; }
.updater-version-facts > div + div { margin-left: 78px; }
.updater-version-facts > div + div::before { content: "→"; position: absolute; left: -66px; top: 10px; width: 44px; color: var(--accent); text-align: center; border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, var(--glass-line)); line-height: 1px; }
.updater-version-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.updater-version-facts dd { font-size: 22px; font-weight: 650; text-align: left; }
.updater-release-copy { max-width: 720px; margin: -2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.updater-operation { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--glass-line)); border-radius: var(--r-2); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.updater-operation strong { display: block; font-size: 18px; }
.updater-owner-click { display: grid; gap: 10px; margin-top: 16px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--glass-line)); border-radius: var(--r-2); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.updater-owner-click > strong { font-size: 15px; }
.updater-owner-click ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.4; }
.updater-owner-click.warning { border-color: color-mix(in srgb, var(--warn) 45%, var(--glass-line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.updater-owner-click.warning ul { color: var(--warn); }
.updater-phase-dot { flex: 0 0 13px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 0 22px var(--accent); }
.updater-outcome { margin: 0; padding: 14px 16px; border-radius: var(--r-2); font-weight: 650; }
.updater-outcome.positive { color: var(--good); background: color-mix(in srgb, var(--good) 10%, var(--surface)); }
.updater-outcome.warning { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.updater-blockers { display: grid; gap: 8px; margin: 0; padding: 14px 18px 14px 34px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--glass-line)); border-radius: var(--r-2); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.updater-blockers li { padding-left: 4px; }
.updater-action-reason { padding-inline: 4px; }
.updater-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 18px 24px; text-align: center; }
.updater-empty h4 { margin: 0; font-size: 24px; }
.updater-empty p { max-width: 520px; margin: 0; color: var(--muted); }
.updater-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--glass-line-2); border-radius: 50%; color: var(--warn); font-size: 26px; font-weight: 850; }
.updater-loading { margin: auto; color: var(--muted); text-align: center; }
.updater-reconnect { margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--glass-line)); border-radius: var(--r-1); color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); font-size: 14px; }
.updater-notice { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--glass-line)); border-radius: var(--r-1); color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-size: 14px; }
.updater-notice span { color: var(--muted); }
.updater-progress { padding: 18px 20px; border: 1px solid var(--glass-line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.updater-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.updater-progress-head > span:first-child { display: grid; gap: 3px; }
.updater-progress-head small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.updater-progress-head strong { font-size: 16px; }
.updater-progress-head > span:last-child { color: var(--muted); font-size: 12px; }
.updater-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.updater-steps li { position: relative; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.updater-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 36px; right: 8px; top: 16px; height: 1px; background: var(--glass-line-2); }
.updater-step-dot { z-index: 1; flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--glass-line-2); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.updater-steps li > span:last-child { min-width: 0; display: grid; gap: 1px; }
.updater-steps b { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.updater-steps small { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.updater-steps li.active .updater-step-dot { border-color: color-mix(in srgb, var(--accent) 60%, var(--glass-line)); background: color-mix(in srgb, var(--accent) 13%, var(--surface)); color: var(--accent); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 18%, transparent); }
.updater-steps li.active b { color: var(--ink); }
.updater-steps li.done .updater-step-dot { border-color: color-mix(in srgb, var(--good) 45%, var(--glass-line)); background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); }
.updater-steps li.done:not(:last-child)::after { background: color-mix(in srgb, var(--good) 42%, var(--glass-line)); }
.updater-progress.warning .updater-steps li.done .updater-step-dot { border-color: color-mix(in srgb, var(--warn) 45%, var(--glass-line)); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--warn); }
.updater-progress.warning .updater-steps li.done:not(:last-child)::after { background: color-mix(in srgb, var(--warn) 42%, var(--glass-line)); }
.updater-confirm { display: grid; gap: 16px; }
.updater-confirm h4 { margin: 0; font-size: 26px; }
.updater-confirm-lead { margin: 0; color: var(--muted); line-height: 1.5; }
.updater-confirm-note { margin: 0; color: var(--muted); font-size: 14px; }
.updater-action { min-width: 180px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.updater-action:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.modal.updater-modal .wizard-bar { gap: 12px; padding: 14px clamp(20px, 3vw, 38px); }
.modal.updater-modal .wizard-bar { width: 100%; }
.modal.updater-modal .wizard-bar .updater-action { min-height: 64px; }
@media (max-width: 800px) {
  .modal.updater-modal { width: 100vw; max-height: 100vh; }
  .modal.updater-modal .wizard-bar { flex-wrap: wrap; }
  .modal.updater-modal .wizard-bar .updater-action { flex: 1 1 100%; min-width: 0; }
  .modal.updater-modal .wizard-bar .spacer { display: none; }
  .updater-facts > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .updater-facts dd { text-align: left; }
  .updater-version-facts { align-items: flex-start; }
  .updater-version-facts > div + div { margin-left: 40px; }
  .updater-version-facts > div + div::before { left: -38px; width: 24px; }
  .updater-steps li { justify-content: center; }
  .updater-steps li > span:last-child { display: none; }
  .updater-steps li:not(:last-child)::after { left: 58%; right: -42%; }
  .updater-progress-head > span:last-child { display: none; }
}

/* Stage 0 visual correction: manager surface follows the approved admin
   composition while all values and action availability still come from the
   published updater bridge. */
.modal.updater-modal .modal-body.updater-body {
  display: block;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% -20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
    var(--surface);
}
.modal.updater-modal .modal-close {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  align-self: center;
  padding: 0;
  border-radius: 13px;
  font-size: clamp(25px, 3.6vh, 31px);
}
[data-theme="neon"] .modal.updater-modal .modal-close {
  background: var(--surface-2);
  border-color: var(--glass-line-2);
}
.modal.updater-modal .wizard-bar:empty { display: none; min-height: 0; padding: 0; }

/* Server-owned manager session: one persistent warning, one reachable lock
   control, and an opaque cover that keeps drafts in memory but inaccessible. */
.modal { position: relative; }
.manager-session-lock {
  margin-left: auto;
  min-width: 64px;
  min-height: 64px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.modal-head .manager-session-lock + .modal-close { margin-left: 0; }
.manager-session-warning {
  position: absolute;
  z-index: 8;
  top: clamp(72px, 10vh, 96px);
  left: 50%;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--warn);
  border-radius: var(--r-2);
  background: var(--surface-solid);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--elev-1);
}
.manager-session-warning[hidden] { display: none; }
/* Shell-level minute warning: fixed under the header on every screen, below dialogs. */
.manager-session-warning.is-shell { position: fixed; z-index: 39; top: calc(var(--topbar-h, 60px) + 8px); }
.manager-session-cover {
  position: absolute;
  z-index: 30;
  inset: clamp(72px, 10vh, 96px) 0 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface-solid);
  color: var(--ink);
  text-align: center;
}
.manager-session-cover h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}
.manager-session-draft-note { margin: 0; color: var(--muted); font-size: clamp(18px, 2.4vw, 26px); }
.manager-session-cover-actions {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.manager-session-cover-actions > button {
  min-width: 64px;
  min-height: 64px;
  white-space: normal;
}
.manager-session-pinpad { width: min(520px, 100%); }
.settings-page .sv-section-select { display: none; }
@media (max-width: 1179px) {
  .settings-page .sv-title { flex-wrap: wrap; }
  .settings-page .sv-section-select { display: block; min-width: 0; min-height: 48px; max-width: 100%; }
}
@media (max-width: 600px) {
  .settings-page .sv-section-select { width: 100%; }
}
.modal.manager-pin-modal { position: relative; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); min-width: 0; }
.manager-pin-modal .modal-head { flex-shrink: 0; padding: 12px 16px; gap: 12px; }
.manager-pin-modal .modal-head h3 { min-width: 0; font-size: 24px; line-height: 1.2; }
.manager-pin-modal .modal-close { min-width: 56px; min-height: 56px; font-size: 28px; }
.manager-pin-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.manager-pin-modal .pinpad { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.manager-pin-modal .pin-btn { min-height: 56px; height: clamp(56px, 7dvh, 72px); font-size: 28px; }
.manager-pin-modal .pin-dots { height:clamp(56px,7dvh,72px);min-height:56px;width:100%;font-size:28px;display:flex;align-items:center;justify-content:center;letter-spacing:8px;box-sizing:border-box;padding-left:8px; }
html[data-theme] .manager-pin-modal .pin-dots { background:var(--hx-raised);color:var(--hx-text);border:1px solid var(--hx-line-strong);border-radius:12px; }
.modal.manager-pin-modal .modal-head { display:grid;grid-template-columns:minmax(0,1fr) 56px;align-items:center; }
.modal.manager-pin-modal .modal-head h3 { margin:0;grid-column:1;grid-row:1;font-size:24px;line-height:1.25;text-wrap:balance; }
.modal.manager-pin-modal .modal-head .manager-session-lock { grid-column:1/-1;grid-row:2;justify-self:end;min-width:max-content;min-height:56px;width:auto;margin:0;padding:8px 12px;white-space:nowrap;font-size:16px; }
.modal.manager-pin-modal .modal-head .modal-close { grid-column:2;grid-row:1;width:56px;height:56px;min-width:56px;margin:0; }
.modal.manager-pin-modal .modal-body { padding:12px 16px; }
.modal.manager-pin-modal .pin-btn { min-width:0;padding:8px; }
@media(min-width:600px) { .modal.manager-pin-modal { width:min(640px,calc(100vw - 24px)); } .modal.manager-pin-modal .modal-head h3 { font-size:22px; } }
.manager-pin-modal:has(.manager-session-cover) > .modal-body, .manager-pin-modal:has(.manager-session-cover) > .wizard-bar { display: none; }
.modal.manager-pin-modal .manager-session-cover { position: static; flex: 1; min-height: 0; align-content: start; gap: 12px; padding: 16px; text-align: center; }
.modal.manager-pin-modal .manager-session-cover h3 { width: min(384px, 100%); margin-inline: auto; font-size: 18px; line-height: 1.35; outline: none; box-shadow: none; }
.manager-session-cover-actions.is-pin-entry { display: flex; flex-direction: column; width: min(384px, 100%); gap: 12px; }
.manager-session-cover-actions.is-pin-entry { margin-inline:auto;align-self:center; }
html[data-theme] .manager-pin-modal .pin-dots,
html[data-theme] .manager-session-cover-actions .pin-dots { background:var(--hx-raised);color:var(--hx-text);border:1px solid var(--hx-line-strong);border-radius:12px; }
html[data-theme="neon"] .manager-pin-modal .pin-btn.primary,
html[data-theme="neon"] .manager-session-pinpad .pin-btn.primary { background:var(--accent);border-color:var(--accent);color:#05121a;box-shadow:none; }
.security-login h2 { display:flex;align-items:center;justify-content:center;gap:12px; }
.manager-session-cover-actions .pin-dots { min-height:56px;display:flex;align-items:center;justify-content:center;letter-spacing:8px;padding-left:8px;box-sizing:border-box;width:100%; }
.manager-pin-modal .pin-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }
#visitWorkspace > .daily-state-stack.is-recovery { display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:auto;flex:1; }
#visitWorkspace > .daily-state-stack.is-recovery > .ws-empty { flex:1;min-height:0;padding:16px; }
#visitWorkspace > .daily-state-stack.is-recovery > .daily-checkout { flex:none;position:sticky;bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.controller-screen-status { display:flex;align-items:center;gap:8px;min-width:0; }
.controller-screen-status > span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.controller-screen-status > button { flex:none; }
.modal.queue-entry-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.queue-entry-modal .modal-head h3 { font-size: 24px; }
.queue-entry-modal .modal-body { display: flex; flex-direction: column; gap: 18px; }
.queue-entry-modal .modal-body > label, .queue-entry-modal .queue-players { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 18px; }
.queue-entry-modal .modal-body input { width: 100%; min-width: 0; font-size: 20px; }
.queue-entry-modal .stepper { width: max-content; max-width: 100%; height: 64px; min-height: 64px; flex: 0 0 auto; }
.queue-entry-modal .stepper .step-btn { width: 64px; min-width: 64px; min-height: 64px; height: 64px; flex: 0 0 64px; }
.queue-entry-modal .stepper .step-num { min-width: 72px; width: 72px; height: 64px; min-height: 64px; flex: 0 0 72px; font-size: 30px; }
.queue-entry-modal .wizard-bar { justify-content: flex-end; padding: 12px 24px; }
.queue-entry-modal .wizard-bar button { min-width: 0; max-width: 100%; }
.queue-entry-modal .wizard-bar button.primary.big { min-height: 64px; font-size: 22px; line-height: 1.2; white-space: normal; }
.modal-body.manager-launcher {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  max-width: none;
}
.modal-body.manager-launcher > button { min-width: 64px; min-height: 64px; }

html[data-theme="light"] .manager-session-lock { background: #fff; color: var(--ink); }
html[data-theme="light"] .manager-session-warning,
html[data-theme="light"] .manager-session-cover { background: #fff; color: var(--ink); }

@media (max-width: 640px), (max-height: 520px) {
  .manager-session-lock { padding-inline: 12px; }
  .manager-session-warning { top: 66px; width: calc(100% - 20px); padding: 8px 12px; }
  .manager-session-cover { inset-block-start: 66px; gap: 12px; padding: 18px; }
  .manager-session-cover-actions { grid-template-columns: 1fr; gap: 10px; }
  .modal-body.manager-launcher { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .manager-session-warning,
  .manager-session-cover,
  .manager-session-lock { animation: none !important; transition: none !important; }
}
.updater-admin-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.updater-context-rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 14px 18px;
  border-right: 1px solid var(--glass-line);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
}
.updater-rail-heading {
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.updater-rail-nav { display: grid; gap: 6px; }
.updater-rail-item {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}
.updater-rail-item:is(button):hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.updater-rail-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.updater-rail-item:not(button) { cursor: default; }
.updater-rail-item.selected {
  opacity: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.updater-rail-icon { display: grid; place-items: center; width: 19px; height: 19px; color: currentColor; }
.updater-rail-icon svg { width: 18px; height: 18px; }
.updater-rail-indicator {
  position: absolute;
  right: 0;
  width: 3px;
  height: 24px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.updater-rail-spacer { flex: 1; }
.updater-rail-session {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px 0;
  border-top: 1px solid var(--glass-line);
  color: var(--muted);
}
.updater-rail-session-icon { display: grid; place-items: center; width: 18px; height: 18px; color: var(--accent); }
.updater-rail-session-icon svg { width: 16px; height: 16px; }
.updater-rail-session > span:last-child { min-width: 0; display: grid; gap: 2px; }
.updater-rail-session b { color: var(--ink); font-size: 12px; font-weight: 700; }
.updater-rail-session small { color: var(--muted); font-size: 10px; }
.updater-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 26px clamp(22px, 3.4vw, 46px) 30px;
  scrollbar-gutter: stable;
}
.updater-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.updater-eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.updater-page-head h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; }
.updater-page-head p { max-width: 700px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.updater-release {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 240px);
  gap: 24px;
  padding: clamp(20px, 2.7vw, 28px);
}
.updater-release-summary { min-width: 0; }
.updater-status-hero { display: flex; align-items: flex-start; gap: 14px; }
.updater-status-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--glass-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent);
}
.updater-status-icon svg { width: 22px; height: 22px; }
.updater-status-card { min-width: 0; }
.updater-status-card h4 { overflow-wrap: anywhere; }
.updater-headline-version { display: inline-block; margin-left: .3em; color: var(--accent); font-variant-numeric: tabular-nums; }
.updater-release-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid var(--glass-line);
}
.updater-action-kicker { color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.updater-action-title { color: var(--ink); font-size: 16px; line-height: 1.25; }
.updater-action-note { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.updater-action-stack { display: grid; gap: 9px; }
.updater-action-stack .updater-action { width: 100%; min-width: 0; min-height: 64px; }
.updater-action-stack .updater-action.primary {
  min-height: 64px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 68%, transparent);
  font-weight: 800;
}
.updater-action-stack .updater-action.primary:not(:disabled):hover { filter: brightness(1.06); }
[data-theme="neon"] .modal.updater-modal .updater-action-stack .updater-action.primary { color: #071317; }
.updater-action-icon { display: inline-grid; place-items: center; }
.updater-action-icon svg { width: 17px; height: 17px; }
.updater-action-reason { margin: -4px 0 0; }
.updater-release.recovered { border-color: color-mix(in srgb, var(--warn) 38%, var(--glass-line-2)); }
.updater-status-card.recovered .updater-status-kicker { color: var(--warn); }
.updater-outcome.recovered { color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.updater-progress { margin-top: 16px; }
.updater-surface-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 14px;
  margin-top: 14px;
}
.updater-surface-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
}
.updater-surface-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.updater-surface-card-head h2 { margin: 0; font-size: 14px; font-weight: 720; }
.updater-surface-icon { display: grid; place-items: center; width: 24px; height: 24px; color: var(--accent); }
.updater-surface-icon svg { width: 17px; height: 17px; }
.updater-whats-new {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-line);
}
.updater-whats-new-head { display: flex; align-items: center; gap: 8px; }
.updater-whats-new-head h2 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 760; }
.updater-whats-new-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-inline-start: 23px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.updater-whats-new-list li { padding-inline-start: 2px; overflow-wrap: anywhere; }
.updater-whats-new-list li::marker { color: var(--accent); }
.updater-published-facts { gap: 0; border: 0; border-radius: 0; overflow: visible; }
.updater-published-facts > div { padding: 7px 0; border-bottom: 1px solid var(--glass-line); background: transparent; }
.updater-published-facts > div:last-child { border-bottom: 0; }
.updater-published-facts dt, .updater-readiness-list dt { font-size: 12px; }
.updater-published-facts dd, .updater-readiness-list dd { font-size: 12px; }
.updater-readiness-list { display: grid; gap: 0; margin: 0; }
.updater-readiness-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--glass-line); }
.updater-readiness-list > div:last-child { border-bottom: 0; }
.updater-readiness-list dt { color: var(--muted); }
.updater-readiness-list dd { max-width: 62%; margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.updater-error-surface {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--glass-line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--warn) 7%, var(--surface-2));
}
.updater-error-surface h4 { margin: 0; font-size: 20px; }
.updater-error-surface p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.updater-error-surface .updater-action { min-width: 190px; }
@media (max-width: 1000px) {
  .updater-error-surface { grid-template-columns: auto minmax(0, 1fr); }
  .updater-error-surface .updater-action { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 900px) {
  .updater-admin-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .updater-context-rail { padding-inline: 10px; }
  .updater-rail-item { padding-inline: 9px; font-size: 13px; }
  .updater-main { padding-inline: 24px; }
  .updater-release { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
}
@media (max-width: 720px) {
  .updater-admin-shell { display: block; overflow-y: auto; }
  .updater-context-rail { min-height: auto; display: block; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .updater-rail-heading { padding: 0 4px 8px; }
  .updater-rail-nav { display: flex; gap: 6px; overflow-x: auto; }
  .updater-rail-item { min-height: 52px; flex: 0 0 auto; padding-inline: 10px; }
  .updater-rail-item:not(.selected) { display: none; }
  .updater-rail-spacer, .updater-rail-session { display: none; }
  .updater-main { overflow: visible; padding: 20px 16px 24px; }
  .updater-release { grid-template-columns: 1fr; }
  .updater-release-action { padding: 16px 0 0; border-top: 1px solid var(--glass-line); border-left: 0; }
  .updater-surface-grid { grid-template-columns: 1fr; }
  .updater-error-surface { grid-template-columns: auto minmax(0, 1fr); }
  .updater-error-surface .updater-action { grid-column: 1 / -1; width: 100%; }
}

/* Final narrow-layout guard: these rules intentionally live after the later
   Reception presentation layers so 200% zoom keeps natural document height
   instead of being pulled back into a viewport-sized flex child. */
@media (max-width: 1100px) {
  body.review-redesign .visit-workspace { padding-block: 0; }
  body.review-redesign .daily-workspace-kicker { margin-bottom: 4px; }
  body.review-redesign .daily-workspace-head .ws-sub { margin-top: 4px; line-height: 1.25; }
  body.review-redesign .daily-checkout { gap: 0; }
}
@media (max-width: 640px) {
  body.review-redesign .workspace,
  body.review-redesign .lanes-panel,
  body.review-redesign .visit-workspace,
  body.review-redesign .ws {
    flex: none;
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  body.review-redesign .lanes,
  body.review-redesign .daily-lanes { flex: none; }
}
@media (min-width: 1101px) and (max-height: 760px) {
  body.review-redesign .visit-workspace { padding-block: 0; }
}

/* ── Экран паринга терминала (вариант B) ────────────────────────────────
   Токены берутся из существующего набора (:root): --p-cyan — выбор/бренд,
   --p-green — подтверждение, --p-ink/--p-muted — текст, --surface-solid — панель,
   --r-2 — скругление. Одно главное действие (Подключить), крупные цели под палец. */
#terminal-pairing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, rgba(10, 9, 19, .97));
  padding: 24px;
}
#terminal-pairing-overlay .tp-card {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--surface-solid, #16132a);
  border: 1px solid var(--glass-line, rgba(255,255,255,.09));
  border-radius: var(--r-2, 14px);
  color: var(--p-ink, #f2f5fb);
}
#terminal-pairing-overlay .tp-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--p-ink, #f2f5fb);
}
#terminal-pairing-overlay .tp-sub {
  margin: 0;
  color: var(--p-muted, #a9b2c7);
}
#terminal-pairing-overlay .tp-code {
  min-height: var(--touch, 72px);
  padding: 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--p-ink, #f2f5fb);
  background: var(--surface, rgba(255,255,255,.045));
  border: 1px solid var(--glass-line, rgba(255,255,255,.09));
  border-radius: var(--r-2, 14px);
}
#terminal-pairing-overlay .tp-fp {
  margin: 0;
  color: var(--p-muted, #a9b2c7);
  font-size: 14px;
}
#terminal-pairing-overlay .tp-fp code.tp-fp-grid {
  color: var(--p-cyan, #3ee0f2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.5;
}
#terminal-pairing-overlay .tp-pair {
  min-height: var(--touch, 72px);
  font-size: 18px;
  font-weight: 700;
  color: #081018;
  background: var(--p-green, #4fe08a);
  border: none;
  border-radius: var(--r-2, 14px);
  cursor: pointer;
}
#terminal-pairing-overlay .tp-pair:active { opacity: .85; }
#terminal-pairing-overlay .tp-msg {
  margin: 0;
  min-height: 20px;
  color: var(--p-amber, #ffc24d);
}
#terminal-pairing-overlay .tp-msg.error { color: var(--p-red, #ff5a78); }

/* ── Тестовый визит: заметная пометка, НЕ зелёный коммерческий ───── */
.daily-lane-test-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #1a1205;
  background: var(--p-amber, #ffc24d);
  border-radius: var(--r-pill, 999px);
}
body.review-redesign .r7-navigation { display: flex; flex: 0 0 142px; flex-direction: column; gap: 6px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--surface-2); }
body.review-redesign .r7-navigation[hidden] { display: none; }
.r7-nav-entry { min-height: 64px; width: 100%; text-align: left; padding: 10px 12px; white-space: normal; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--ink); font-size: 14px; }
.r7-nav-entry.selected { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); }
.r7-nav-entry:disabled { opacity: .45; }
body.review-redesign .workspace { gap: 16px; padding: 12px 16px 16px 0; }
body.review-redesign .lanes-panel { flex: 1 1 60%; min-width: 0; padding: 0; }
body.review-redesign .visit-workspace { flex: 1 1 35%; min-width: 0; container-type: inline-size; }
@container (max-width: 440px) {
  body.review-redesign .daily-control-row { grid-template-columns: minmax(0, 1fr); }
}
body.review-redesign .daily-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; }
body.review-redesign .daily-lane-pair { min-width: 0; gap: 8px; }
body.review-redesign .daily-lane { min-height: 152px; padding: 12px; overflow-wrap: anywhere; }
body.review-redesign .daily-lane-no { font-size: 46px; line-height: 1; }
body.review-redesign .daily-lane-top { flex-wrap: wrap; gap: 8px; }
body.review-redesign .daily-lane-headline, body.review-redesign .daily-lane-fact, .r7-readiness, .r7-commercial { white-space: normal; overflow: visible; text-overflow: clip; font-size: 13px; line-height: 1.35; }
.r7-readiness, .r7-commercial { color: var(--muted); }
.r7-card-description { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.r7-nav-entry { display: flex; align-items: center; gap: 10px; }
.r7-nav-icon { display: inline-flex; flex: none; }
html[data-theme] body.review-redesign .daily-action.r7-start-action,
html[data-theme] body.review-redesign .daily-action.r7-start-action:hover:not([disabled]) { background: var(--p-cyan); border-color: var(--p-cyan); color: var(--p-ink-on-light); }
body.review-redesign .r7-start-action:disabled { opacity: .45; }
body.review-redesign #visitWorkspace { scroll-margin-top: 16px; }
.r7-pair-unknown { grid-column: 1 / -1; padding: 6px 0; font-size: 12px; color: var(--muted); }
body.review-redesign .r7-visit-focused .lanes-panel { display: none; }
body.review-redesign .r7-visit-focused .visit-workspace { flex: 1; max-width: none; }
body.review-redesign .r7-visit-focused .ws { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr); gap: 20px; align-content: start; }
body.review-redesign .r7-visit-focused .daily-workspace-head, body.review-redesign .r7-visit-focused .pair-runtime, body.review-redesign .r7-visit-focused .daily-incident-strip { grid-column: 1 / -1; }
body.review-redesign .r7-visit-focused .r7-visit-game { grid-column: 1; grid-row: 2 / span 2; }
body.review-redesign .r7-visit-focused .daily-facts, body.review-redesign .r7-visit-focused .daily-checkout { grid-column: 2; }
.r7-visit-game { flex: none; min-width: 0; padding: 14px 16px; border-top: 1px solid var(--line); }
.r7-visit-game h3, .r7-visit-game h4 { margin: 0 0 12px; }
.r7-current-player { font-size: 16px; }
.r7-score-scroll, .booking-sheet-scroll { overflow-x: auto; max-width: 100%; }
.r7-score-table { width: 100%; border-collapse: collapse; min-width: 500px; font-variant-numeric: tabular-nums; }
.r7-score-table caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 12px; }
.r7-score-table th, .r7-score-table td { padding: 12px 8px; border: 1px solid var(--line); text-align: center; }
.r7-player-list { list-style: none; padding: 0; }
.r7-player-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.r7-queue-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.modal.bookings-modal .booking-sheet-scroll .sheet { grid-template-columns: 84px repeat(14, minmax(120px, 1fr)); min-width: 1848px; }
.modal.bookings-modal .booking-sheet-scroll .sheet-bk { white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; min-height: 64px; height: auto; font-size: 16px; }
.modal.bookings-modal .booking-sheet-scroll .sheet-cell { min-height: 64px; height: auto; }
.tp-persist-banner { border-radius: 0; padding: 8px 16px; box-shadow: none; font-size: 13px; }
@media (max-width: 1000px) {
  body.review-redesign .workspace { display: grid; grid-template-columns: 128px minmax(0, 1fr); overflow: visible; flex: none; }
  body.review-redesign .r7-navigation { grid-row: 1 / span 2; }
  body.review-redesign .lanes-panel, body.review-redesign .visit-workspace { grid-column: 2; max-width: none; width: auto; overflow: visible; }
  body.review-redesign .lanes-panel { height: auto; min-height: 0; align-self: start; }
  body.review-redesign .workspace { height: auto; min-height: 0; align-items: start; grid-template-rows: auto auto; }
  body.review-redesign .daily-lanes { flex: none; height: auto; }
  body.review-redesign .daily-lane { min-height: 152px; }
  body.review-redesign .r7-visit-focused .ws { display: flex; flex-direction: column; }
}
@media (max-width: 640px) {
  body.review-redesign .workspace { display: block; padding: 12px; }
  body.review-redesign .r7-navigation { flex-direction: row; overflow-x: auto; border-right: 0; margin-bottom: 16px; }
  .r7-nav-entry { min-width: 112px; width: auto; }
  body.review-redesign .daily-lanes { grid-template-columns: 1fr; }
  body.review-redesign .daily-lane { min-height: 152px; }
  body.review-redesign .visit-workspace { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .r7-navigation *, .r7-visit-game * { transition: none; animation: none; } }

.r7-frame-rolls { display: block; min-height: 20px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.r7-score-table .is-current, .r7-player-list .is-current { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.r7-score-table th[scope="row"] { text-align: left; max-width: 150px; overflow-wrap: anywhere; }
.r7-score-observed { font-size: 13px; }

.pub-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--glass-line); overflow-wrap: anywhere; }
.pub-note h3 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.pub-note ul { margin: 0; padding-left: 20px; color: var(--ink); line-height: 1.5; font-size: 16px; }
.pub-note li + li { margin-top: 8px; }
@media (max-width: 640px) { .modal.about-modal .modal-body { min-width: 0; } }

body:not(.reception-ready) > :not(#receptionBoot):not(#modal):not(#terminal-pairing-overlay):not(script) { visibility: hidden; }
#receptionBoot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-size: 20px; z-index: 1; }
body.reception-ready #receptionBoot { display: none; }
.r7-admin-body { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 24px; }
.r7-admin-nav { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.r7-admin-content { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.r7-unpublished { color: var(--muted); padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.r7-unpublished h2 { color: var(--ink); margin: 0 0 12px; font-size: 20px; }
.wave2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wave2-facts dd { margin: 12px 0 0; font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.r7-equipment-link { color: var(--muted); font-size: 13px; white-space: normal; }
.r7-nav-entry { min-width: 0; overflow-wrap: anywhere; }
.r7-nav-icon { width: 20px; }
@media (min-width: 1001px) {
  body.review-redesign .visit-workspace { overflow: visible; }
  body.review-redesign .visit-workspace.ws { overflow: visible; height: auto; min-height: 0; }
}
@media (max-width: 820px) {
  .r7-admin-body { grid-template-columns: minmax(0, 1fr); }
  .r7-admin-nav { flex-direction: row; flex-wrap: wrap; }
  .r7-admin-nav .r7-nav-entry { width: auto; flex: 1 1 140px; }
  .wave2-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1001px) {
  body.review-redesign .visit-workspace.ws.r7-pinned-actions { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
  .r7-workspace-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .r7-pinned-actions > .daily-checkout { flex: none; padding-top: 12px; background: var(--surface-2); }
}

.modal.fullscreen .modal-body.r7-admin-body { display: grid; grid-template-columns: 184px minmax(0, 1fr); align-content: start; }
.r7-admin-content[data-admin-section="prices"] { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.r7-admin-content[data-admin-section="prices"] .wave2-prices { grid-row: 1 / span 2; max-height: 600px; }
.r7-admin-content[data-admin-section="prices"] .rows-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.r7-admin-content[data-admin-section="prices"] .parked-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.r7-admin-content[data-admin-section="prices"] .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.r7-admin-content[data-admin-section="prices"] .actions .btn { flex: 1; }
.r7-admin-body .tech-shell { display: flex; flex-direction: column; min-width: 0; }
.r7-admin-body .tech-shell .rail { display: flex; flex-direction: row; flex-wrap: wrap; width: auto; }
.r7-admin-body .tech-shell .tech-content { min-width: 0; width: 100%; }
.r7-admin-body .grid-vc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
#r7Navigation .r7-nav-entry { padding-inline: 8px; font-size: 13px; gap: 8px; overflow-wrap: normal; }
#r7Navigation .r7-nav-icon { width: 16px; }
@media (max-width: 820px) {
  .modal.fullscreen .modal-body.r7-admin-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .r7-admin-content[data-admin-section="prices"] { grid-template-columns: minmax(0, 1fr); }
  .r7-admin-content[data-admin-section="prices"] .wave2-prices { grid-row: auto; max-height: none; }
}
.modal.fullscreen .modal-body.r7-admin-body { min-width: 0; overflow-y: auto; margin: 0; max-width: 100%; }
.r7-admin-content > * { min-width: 0; }
.r7-admin-body .tech-content[data-tech-section] > .sec { display: none; }
.r7-admin-body .tech-content[data-tech-section="vc"] > #tech-vc,
.r7-admin-body .tech-content[data-tech-section="periph"] > #tech-periph,
.r7-admin-body .tech-content[data-tech-section="splash"] > #tech-splash,
.r7-admin-body .tech-content[data-tech-section="access"] > #tech-access { display: block; }
@media (max-width: 640px) {
  .modal.fullscreen:has(.r7-admin-body) { min-width: 0; width: 100vw; grid-template-rows: auto minmax(0, 1fr) auto; }
  .modal:has(.r7-admin-body) .modal-head { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; padding: 12px; }
  .modal:has(.r7-admin-body) .modal-head h3 { grid-column: 1 / -1; font-size: 22px; overflow-wrap: anywhere; }
  .modal:has(.r7-admin-body) .modal-close { grid-column: 2; min-width: 48px; min-height: 48px; }
  .modal:has(.r7-admin-body) .manager-session-lock { margin: 0; min-width: 0; min-height: 48px; }
  .modal.fullscreen .modal-body.r7-admin-body { padding: 12px; }
  .r7-admin-body .settings-list { grid-template-columns: minmax(0, 1fr); }
  .r7-admin-body .settings-row { flex-wrap: wrap; }
  .r7-admin-body .settings-theme-row .seg { width: 100%; }
  .r7-admin-body .rail-item { white-space: normal; }
}


@media (max-width: 640px) {
  .modal.fullscreen:has(.r7-admin-body) { grid-template-columns: minmax(0, 1fr); }
  .modal.list-modal .r7-admin-body .settings-list { grid-template-columns: minmax(0, 1fr); }
  .modal:has(.r7-admin-body) .modal-head h3 { min-width: 0; white-space: normal; }
  .modal:has(.r7-admin-body) .wizard-bar { min-width: 0; flex-wrap: wrap; padding: 12px; }
  .modal:has(.r7-admin-body) .wizard-bar > button { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 640px) {
  .r7-admin-nav .r7-nav-entry { min-height: 44px; padding: 8px; font-size: 14px; }
  .r7-admin-body .rail-item { min-height: 44px; padding: 8px; font-size: 14px; }
  .r7-admin-body .drow { grid-template-columns: minmax(0, 1fr); }
  .r7-admin-body .dmeta { min-width: 0; overflow-wrap: anywhere; }
  .r7-admin-body .pair-title { flex-wrap: wrap; }
  .r7-admin-body .periph-more { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
}
body.review-redesign .r7-navigation { flex-basis: 168px; }
@media (min-width: 641px) and (max-width: 1000px) {
  body.review-redesign .workspace { grid-template-columns: 168px minmax(0, 1fr); }
}

@media (max-width: 800px) {
  body.review-redesign { height: auto; min-height: 100dvh; overflow-y: auto; }
  body.review-redesign .topbar { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; padding: 12px; gap: 8px; }
  body.review-redesign .top-brand { min-width: 0; min-height: 34px; }
  body.review-redesign .top-actions { width: 100%; min-width: 0; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  body.review-redesign .top-actions > * { flex: none; max-width: 100%; }
  body.review-redesign .top-actions .system-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  body.review-redesign .top-actions .review-day-report { min-height: 44px; padding: 8px 12px; white-space: normal; }
  body.review-redesign .top-actions .shift { height: auto; min-height: 44px; padding: 8px 12px; flex-wrap: wrap; }
  body.review-redesign .top-actions .shift .who { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  body.review-redesign .top-actions .shift .kv { display: none; }
  body.review-redesign .clock { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
  body.review-redesign .workspace { display: block; height: auto; min-height: 0; padding: 12px; overflow: visible; }
  body.review-redesign .r7-navigation { flex-direction: row; gap: 8px; padding: 8px 0; margin-bottom: 16px; border-right: 0; overflow-x: auto; scrollbar-width: auto; scrollbar-color: var(--accent) var(--surface-2); scroll-snap-type: x proximity; }
  #r7Navigation .r7-nav-entry { flex: 0 0 auto; width: max-content; min-width: 96px; min-height: 52px; padding: 12px; white-space: nowrap; scroll-snap-align: start; }
  #r7Navigation .r7-nav-label { flex: none; white-space: nowrap; }
  body.review-redesign .r7-navigation::-webkit-scrollbar { height: 8px; }
  body.review-redesign .r7-navigation::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
  body.review-redesign .r7-navigation::-webkit-scrollbar-track { background: var(--surface-2); }
  body.review-redesign .lanes-panel { width: 100%; height: auto; padding: 12px; overflow: visible; }
  body.review-redesign .visit-workspace { margin-top: 20px; }
  body.review-redesign .visit-map-head { flex-wrap: wrap; }
  body.review-redesign .visit-map-summary { width: 100%; margin-left: 0; white-space: normal; }
  .modal.fullscreen:has(.r7-admin-body) { grid-template-rows: auto minmax(0, 1fr) auto; }
  .modal:has(.r7-admin-body) .modal-head { min-height: 72px; flex-shrink: 0; }
  .modal:has(.r7-admin-body) .modal-close { width: 48px; height: 48px; min-width: 48px; min-height: 48px; }
  .modal:has(.r7-admin-body) .manager-session-lock { min-height: 48px; }
}
@media (min-width: 641px) and (max-width: 800px) {
  .modal.technical-modal .r7-admin-nav { padding-inline: 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ВИЗУАЛЬНЫЙ ПАРИТЕТ — визуальный контракт макета оператора
   (по утверждённым макетам).
   Макеты задают ВИД, модель — содержание. Слой стоит последним и читает только
   свои семантические токены --hx-*: тёмная тема = макет, светлая — та же
   структура на светлых значениях. Без градиентов панелей.
   ═══════════════════════════════════════════════════════════════════════════ */
:root,
:root[data-theme="neon"] {
  --hx-bg: #0c1020;
  --hx-chrome: #111a2c;
  --hx-panel: #172236;
  --hx-raised: #1c2a42;
  --hx-raised-hover: #24334d;
  --hx-line: rgba(169, 178, 199, .14);
  --hx-line-strong: rgba(169, 178, 199, .24);
  --hx-text: #f2f5fb;
  --hx-text-2: #a9b2c7;
  --hx-text-3: #8892a8;
  --hx-select: #3ee0f2;
  --hx-select-wash: color-mix(in srgb, #3ee0f2 14%, #172236);
  --hx-primary: #4fe08a;
  --hx-primary-hover: #6ae89c;
  --hx-on-primary: #0c1020;
  --hx-panel-action-bg: #157a45;
  --hx-panel-action-ink: #ffffff;
  --hx-st-free: #4fe08a;
  --hx-st-play: #f0883e;
  --hx-st-pause: #4aa3f0;
  --hx-st-attn: #ffc24d;
  --hx-st-fault: #ef7a83;
  --hx-st-neutral: #9aa3b8;
  --hx-radius-md: 14px;
  --hx-radius-sm: 10px;
  --hx-rail-w: 172px;
  /* Выбор — cyan по контракту макета (раньше — бренд-magenta). */
  --select-ring: #3ee0f2;
}
html[data-theme="light"] {
  --hx-bg: #eef1f6;
  --hx-chrome: #ffffff;
  --hx-panel: #ffffff;
  --hx-raised: #f4f6fa;
  --hx-raised-hover: #e9edf4;
  --hx-line: rgba(24, 33, 48, .10);
  --hx-line-strong: rgba(24, 33, 48, .18);
  --hx-text: #182130;
  --hx-text-2: #4b586d;
  --hx-text-3: #5d6a80;
  --hx-select: #0b8fa3;
  --hx-select-wash: color-mix(in srgb, #0b8fa3 10%, #ffffff);
  --hx-primary: #157a45;
  --hx-primary-hover: #106838;
  --hx-on-primary: #ffffff;
  --hx-panel-action-bg: var(--hx-primary);
  --hx-panel-action-ink: var(--hx-on-primary);
  --hx-st-free: #157a45;
  --hx-st-play: #a8520f;
  --hx-st-pause: #2a6fb8;
  --hx-st-attn: #8a5800;
  --hx-st-fault: #b83a46;
  --hx-st-neutral: #5d6a80;
  --select-ring: #0b8fa3;
}

/* ── каркас: фон, шапка, рельс ─────────────────────────────────────────── */
body.review-redesign { background: var(--hx-bg); color: var(--hx-text); }
html:not([data-theme="light"]) body.review-redesign::before { display: none; }
body.review-redesign ::selection { background: color-mix(in srgb, var(--hx-select) 32%, transparent); color: var(--hx-text); }
body.review-redesign .tp-persist-banner {
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--hx-st-attn) 35%, transparent);
  border-radius: 0; box-shadow: none; padding: 6px 16px;
  background: color-mix(in srgb, var(--hx-st-attn) 10%, var(--hx-chrome));
  color: var(--hx-text-2); font-size: 12.5px; font-weight: 600;
}
body.review-redesign .topbar {
  height: 64px; padding: 0 16px 0 0; gap: 12px;
  background: var(--hx-chrome); border-bottom: 1px solid var(--hx-line);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
body.review-redesign .top-brand { gap: 10px; min-width: var(--hx-rail-w); padding-left: 18px; }
body.review-redesign .top-brand h1 { font-size: 18px; font-weight: 800; letter-spacing: .02em; color: var(--hx-text); }
body.review-redesign .top-brand .brand-emblem svg { width: 28px; height: 28px; }
body.review-redesign .subline { color: var(--hx-text-3); font-size: 13px; font-weight: 600; }
body.review-redesign .top-actions { gap: 4px; }
body.review-redesign .review-operating-mode {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--hx-radius-sm); background: transparent; box-shadow: none;
  color: var(--hx-text-2); font-size: 14px; font-weight: 600;
}
body.review-redesign .review-operating-mode::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-st-free);
}
body.review-redesign .review-day-report,
body.review-redesign .top-actions .shift {
  min-height: 44px; height: auto; padding: 0 12px; border: 0; border-radius: var(--hx-radius-sm);
  background: transparent; box-shadow: none; color: var(--hx-text-2); font-size: 14px; font-weight: 600;
}
body.review-redesign .review-day-report:hover,
body.review-redesign .top-actions .shift:hover { background: var(--hx-raised); color: var(--hx-text); border: 0; }
body.review-redesign .topbar .system-btn {
  width: 64px; height: 64px; min-width: 64px; min-height: 64px; padding: 0;
  border: 0; border-radius: var(--hx-radius-sm); background: transparent; box-shadow: none; color: var(--hx-text-2);
}
body.review-redesign .topbar .system-btn .svgi { width: 22px; height: 22px; }
body.review-redesign .topbar .system-btn:hover { background: var(--hx-raised); color: var(--hx-text); border: 0; }
body.review-redesign .topbar .system-btn.mgr-on { color: var(--hx-select); }
body.review-redesign .clock { padding-left: 8px; color: var(--hx-text); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

body.review-redesign .workspace { gap: 16px; padding: 0 16px 16px 0; background: transparent; }
body.review-redesign .r7-navigation {
  flex: 0 0 var(--hx-rail-w); gap: 4px; padding: 12px 10px;
  background: var(--hx-chrome); border-right: 1px solid var(--hx-line);
}
#r7Navigation .r7-nav-entry {
  min-height: 52px; padding: 0 10px; gap: 10px; border: 0; border-radius: var(--hx-radius-sm); box-shadow: none;
  background: transparent; color: var(--hx-text-2); font-size: 14px; font-weight: 600; line-height: 1.2;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
#r7Navigation .r7-nav-icon { width: 20px; color: var(--hx-text-3); }
#r7Navigation .r7-nav-icon .svgi { width: 20px; height: 20px; stroke-width: 1.7; }
#r7Navigation .r7-nav-entry.selected { background: var(--hx-select-wash); color: var(--hx-text); border: 0; }
#r7Navigation .r7-nav-entry.selected .r7-nav-icon { color: var(--hx-select); }
#r7Navigation .r7-nav-entry:disabled { opacity: .5; }
#r7Navigation .r7-nav-entry:focus-visible { outline: 2px solid var(--hx-select); outline-offset: -2px; }

/* ── панель зала ──────────────────────────────────────────────────────── */
body.review-redesign .lanes-panel {
  display: flex; flex-direction: column; margin-top: 16px; padding: 16px 20px 18px;
  background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md);
  overflow-y: auto; min-height: 0;
}
body.review-redesign .visit-map-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; border: 0;
}
body.review-redesign .visit-map-head h2 { font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--hx-text); }
body.review-redesign .visit-map-summary { color: var(--hx-text-3); font-size: 13px; font-weight: 600; white-space: normal; }
.hall-vc-indicator {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  color: var(--hx-text-3); font-size: 13px; font-weight: 600;
}
.hall-vc-indicator .svgi { width: 16px; height: 16px; }
.hall-vc-indicator.is-ok { color: var(--hx-text-2); }
.hall-vc-indicator.is-ok .hall-vc-icon { color: var(--hx-st-free); }
.hall-vc-indicator.is-attn .hall-vc-icon { color: var(--hx-st-attn); }
.hall-vc-indicator.is-fault .hall-vc-icon { color: var(--hx-st-fault); }
#hallTechIndicator { margin-left: 0; }
body.review-redesign .visit-map-head > .hall-vc-indicator:first-of-type { margin-left: auto; }

body.review-redesign .daily-lanes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; align-content: start; flex: none;
}
body.review-redesign .daily-lane-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
/* Пара остаётся структурой и доступным описанием; заголовок пары не рисуется над
   каждой парой — его заменяет один индикатор ВК в шапке панели. */
body.review-redesign .daily-lane-pair > .pair-runtime-rail,
body.review-redesign .daily-lane-pair > .r7-pair-unknown,
body.review-redesign .daily-lane-facts {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── плитка дорожки: номер + одна форма + одно слово ───────────────────── */
body.review-redesign .daily-lane {
  --glyph: var(--hx-st-neutral);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: clamp(148px, 28vh, 232px); height: auto; padding: 30px 10px 16px;
  background: var(--hx-raised); border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-md);
  box-shadow: none; opacity: 1; color: var(--hx-text); text-align: center; overflow: visible;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform 120ms var(--ease);
}
body.review-redesign .daily-lane.glyph-free { --glyph: var(--hx-st-free); }
body.review-redesign .daily-lane.glyph-play { --glyph: var(--hx-st-play); }
body.review-redesign .daily-lane.glyph-pause { --glyph: var(--hx-st-pause); }
body.review-redesign .daily-lane.glyph-attn { --glyph: var(--hx-st-attn); }
body.review-redesign .daily-lane.glyph-fault { --glyph: var(--hx-st-fault); }
html[data-theme] body.review-redesign .daily-lane {
  --tile-base: #040c18;
  --tile-number: #ffffff;
  --tile-label: #dce1ea;
}
html[data-theme="light"] body.review-redesign .daily-lane {
  --tile-base: #ffffff;
  --tile-number: #000000;
  --tile-label: #182130;
}
body.review-redesign .daily-lane.tone-free,
body.review-redesign .daily-lane.tone-active,
body.review-redesign .daily-lane.tone-attention,
body.review-redesign .daily-lane.tone-conflict,
body.review-redesign .daily-lane.tone-rehearsal,
body.review-redesign .daily-lane.tone-closed {
  background: var(--hx-raised); border: 1px solid var(--hx-line-strong); border-style: solid; opacity: 1; box-shadow: none;
}
body.review-redesign .daily-lane.tone-conflict { border-color: color-mix(in srgb, var(--hx-st-fault) 55%, var(--hx-line-strong)); }
body.review-redesign .daily-lane:hover { background: var(--hx-raised-hover); border-color: var(--hx-line-strong); box-shadow: none; }
body.review-redesign .daily-lane:active { transform: translateY(1px); }
body.review-redesign .daily-lane:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
body.review-redesign .daily-lane.is-selected,
body.review-redesign .daily-lane.is-selected:hover {
  background: var(--hx-select-wash); border-color: var(--hx-select);
  box-shadow: none; outline: 1px solid var(--hx-select); outline-offset: 0;
}
body.review-redesign .daily-lane.is-selected:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
body.review-redesign .daily-lane-top { display: block; padding: 0; border: 0; }
body.review-redesign .daily-lane-no {
  display: block; font-size: 58px; font-weight: 800; line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--hx-text);
}
body.review-redesign .daily-lane.tone-closed .daily-lane-no { color: var(--hx-text-3); }
body.review-redesign .daily-lane-glyph { display: inline-grid; place-items: center; color: var(--glyph); }
/* Иконка-форма — главный носитель статуса (макет: насыщенный цветной глиф весомее подписи). */
body.review-redesign .daily-lane-glyph .svgi {
  width: 46px; height: 46px; stroke-width: 1.9;
  fill: color-mix(in srgb, currentColor 18%, transparent);
}
body.review-redesign .daily-lane.glyph-neutral .daily-lane-glyph { color: var(--hx-text-3); }
body.review-redesign .daily-lane.glyph-neutral .daily-lane-glyph .svgi { width: 36px; height: 36px; stroke-width: 1.6; fill: none; }
body.review-redesign .daily-lane-state,
body.review-redesign .daily-lane-state.tone-free,
body.review-redesign .daily-lane-state.tone-active,
body.review-redesign .daily-lane-state.tone-attention,
body.review-redesign .daily-lane-state.tone-conflict,
body.review-redesign .daily-lane-state.tone-rehearsal,
body.review-redesign .daily-lane-state.tone-closed {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  color: var(--hx-text-2); font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  white-space: normal; line-height: 1.2;
}
body.review-redesign .daily-lane .daily-lane-state-mark {
  width: 9px; height: 9px; flex: none; border: 0; border-radius: 50%; background: var(--glyph);
}
body.review-redesign .daily-lane .daily-lane-state-mark .svgi { display: none; }
body.review-redesign .daily-lane-tech {
  position: absolute; top: 10px; right: 10px; display: inline-grid; place-items: center; color: var(--hx-st-attn);
}
body.review-redesign .daily-lane-tech.is-fault { color: var(--hx-st-fault); }
body.review-redesign .daily-lane-tech .svgi { width: 16px; height: 16px; stroke-width: 2; }
body.review-redesign .daily-lane .daily-lane-test-badge {
  position: absolute; top: 10px; left: 10px; padding: 1px 7px; border-radius: 6px;
  background: transparent; border: 1px solid var(--hx-line-strong);
  color: var(--hx-text-2); font-size: 11px; font-weight: 700; letter-spacing: .04em;
}

.hall-legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; list-style: none;
  color: var(--hx-text-2); font-size: 13px; font-weight: 600;
}
.hall-legend-item { display: inline-flex; align-items: center; gap: 8px; --glyph: var(--hx-st-neutral); }
.hall-legend-item.glyph-free { --glyph: var(--hx-st-free); }
.hall-legend-item.glyph-play { --glyph: var(--hx-st-play); }
.hall-legend-item.glyph-pause { --glyph: var(--hx-st-pause); }
.hall-legend-item.glyph-attn { --glyph: var(--hx-st-attn); }
.hall-legend-item.glyph-fault { --glyph: var(--hx-st-fault); }
.hall-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--glyph); flex: none; }

/* ── панель визита (~35 %) ────────────────────────────────────────────── */
body.review-redesign .visit-workspace,
body.review-redesign .visit-workspace.ws {
  flex: 0 0 calc((100% - var(--hx-rail-w)) * .35); max-width: 480px; min-width: 340px; margin-top: 16px; padding: 18px 20px;
  background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--hx-text);
}
#visitWorkspace .r7-workspace-content { display: flex; flex-direction: column; gap: 0; }
#visitWorkspace.r7-pinned-actions > .daily-checkout { background: var(--hx-panel); border-top: 1px solid var(--hx-line); }
#visitWorkspace .daily-workspace-head { padding: 0 0 12px; margin: 0; border-bottom: 1px solid var(--hx-line); }
#visitWorkspace .daily-workspace-title-row { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 12px; }
#visitWorkspace .daily-workspace-title-row h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: 0; line-height: 1.25; color: var(--hx-text); }
#visitWorkspace .daily-workspace-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; box-shadow: none;
  font-size: 13.5px; font-weight: 600; color: var(--hx-text-2);
}
#visitWorkspace .daily-workspace-status .daily-lane-state-mark { width: 16px; height: 16px; border: 0; }
#visitWorkspace .daily-workspace-status .daily-lane-state-mark .svgi { width: 16px; height: 16px; }
#visitWorkspace .daily-workspace-status.tone-free { color: var(--hx-st-free); }
#visitWorkspace .daily-workspace-status.tone-active { color: var(--hx-st-play); }
#visitWorkspace .daily-workspace-status.tone-attention { color: var(--hx-st-attn); }
#visitWorkspace .daily-workspace-status.tone-conflict { color: var(--hx-st-fault); }
#visitWorkspace .daily-workspace-status.tone-rehearsal,
#visitWorkspace .daily-workspace-status.tone-closed { color: var(--hx-text-2); }
#visitWorkspace .daily-workspace-title-row .daily-lane-test-badge {
  position:static;align-self:center;flex:none;
  padding: 1px 7px; border-radius: 6px; background: transparent; border: 1px solid var(--hx-line-strong);
  color: var(--hx-text-2); font-size: 11px; font-weight: 700;
}
#visitWorkspace .ws-sub { margin: 4px 0 0; color: var(--hx-text-3); font-size: 13px; font-weight: 600; }

#visitWorkspace .daily-form { display: flex; flex-direction: column; gap: 0; }
#visitWorkspace .daily-form > .daily-field,
#visitWorkspace .daily-form > .daily-control-row { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--hx-line); }
#visitWorkspace .daily-form > .daily-field:nth-last-child(2) { border-bottom: 0; }
#visitWorkspace .daily-players-field .daily-players-count { display: none; }
#visitWorkspace .daily-control-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
#visitWorkspace .daily-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#visitWorkspace .daily-field > span:first-child,
#visitWorkspace .daily-row-label { color: var(--hx-text-2); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#visitWorkspace .daily-field input {
  min-height: 52px; padding: 0 14px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm);
  background: var(--hx-raised); color: var(--hx-text); font-size: 16px; box-shadow: none;
}
#visitWorkspace .daily-field input:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 1px; }
#visitWorkspace .daily-field input::placeholder { color: var(--hx-text-3); }

#visitWorkspace .daily-players-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#visitWorkspace .daily-players { display: flex; align-items: center; gap: 10px; min-width: 0; }
#visitWorkspace .daily-players.is-visit { padding: 14px 0; border-bottom: 1px solid var(--hx-line); }
#visitWorkspace .daily-players-icon { display: inline-grid; color: var(--hx-text-2); }
#visitWorkspace .daily-players-icon .svgi { width: 24px; height: 24px; stroke-width: 1.7; }
#visitWorkspace .daily-players-count { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hx-text); min-width: 1ch; }
#visitWorkspace .daily-avatars { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; }
#visitWorkspace .daily-avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--hx-raised-hover); color: var(--hx-text-3); font-size: 14px; font-weight: 700;
}
#visitWorkspace .daily-avatar .svgi { width: 20px; height: 20px; }
#visitWorkspace .daily-avatar.has-initial { color: var(--hx-text); background: color-mix(in srgb, var(--hx-select) 18%, var(--hx-raised)); }

#visitWorkspace .seg {
  display: flex; gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent;
}
#visitWorkspace .seg button {
  flex: 1; min-height: 52px; height: auto; padding: 0 10px; border: 1px solid var(--hx-line-strong);
  border-radius: var(--hx-radius-sm); background: var(--hx-raised); color: var(--hx-text-2);
  font-size: 15px; font-weight: 600; box-shadow: none;
}
#visitWorkspace .seg button.on {
  background: var(--hx-select-wash); border-color: var(--hx-select); color: var(--hx-text);
  box-shadow: inset 0 0 0 .5px var(--hx-select);
}
/* Поле = подпись слева + компактный степпер справа на той же строке, ниже — аватары или
   сегменты быстрых значений (макет: «Игроки 👥 ◯◯◯◯», «По времени [30][60][90][120]»).
   Контрол поля остаётся одним блоком сразу под подписью; степпер вынесен на строку
   подписи позиционированием, чтобы ритм «подпись → контрол» был одинаковым у всех полей. */
#visitWorkspace .daily-players-field,
#visitWorkspace .daily-control-row > .daily-field { position: relative; }
#visitWorkspace .daily-players-field > .daily-row-label,
#visitWorkspace .daily-field:has(> .daily-stepper-slot) > .daily-row-label { display: flex; align-items: center; min-height: 46px; }
#visitWorkspace .daily-players-row { display: block; }
#visitWorkspace .daily-stepper-slot { display: flex; flex-direction: column; }
#visitWorkspace .daily-players-field .daily-stepper { position: absolute; top: 12px; right: 0; }
#visitWorkspace .daily-control-row .daily-stepper { position: absolute; top: 0; right: 0; }
#visitWorkspace .daily-players-field .daily-stepper output,
#visitWorkspace .daily-control-row .daily-stepper output { min-width: 4.5ch; }
#visitWorkspace .daily-control-row { gap: 25px; }
#visitWorkspace .daily-stepper {
  display: inline-flex; align-items: center; gap: 4px; width: auto; min-height: 0; height: auto;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
/* Зона касания 64 px, видимая кнопка 46 px — как в макете. */
#visitWorkspace .daily-stepper button {
  display: inline-grid; place-items: center; width: 64px; height: 64px; min-width: 64px; min-height: 64px;
  margin: -9px -5px; padding: 0; border: 0; border-radius: var(--hx-radius-sm); background: transparent; box-shadow: none;
}
#visitWorkspace .daily-stepper button:hover { background: transparent; border: 0; }
#visitWorkspace .daily-stepper button:focus-visible { outline: 2px solid var(--hx-select); outline-offset: -6px; }
#visitWorkspace .daily-stepper-glyph {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--hx-line-strong);
  border-radius: var(--hx-radius-sm); background: var(--hx-raised);
  color: var(--hx-text); font-size: 21px; font-weight: 600; line-height: 1;
}
#visitWorkspace .daily-stepper button:hover .daily-stepper-glyph { background: var(--hx-raised-hover); border-color: var(--hx-line-strong); }
#visitWorkspace .daily-stepper output { min-width: 5.5ch; font-size: 16px; font-weight: 700; text-align: center; }
#visitWorkspace .daily-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#visitWorkspace .daily-preset {
  min-height: 52px; padding: 0 4px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm);
  background: var(--hx-raised); color: var(--hx-text-2); font: inherit; font-size: 14.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
#visitWorkspace .daily-preset:hover { background: var(--hx-raised-hover); color: var(--hx-text); }
#visitWorkspace .daily-preset[aria-pressed="true"] { background: var(--hx-select-wash); border-color: var(--hx-select); color: var(--hx-text); }
#visitWorkspace .daily-preset:focus-visible,
#visitWorkspace .seg button:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
#visitWorkspace .daily-stepper output { color: var(--hx-text); font-variant-numeric: tabular-nums; }

#visitWorkspace .daily-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
  margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm);
  background: var(--hx-raised); box-shadow: none;
}
#visitWorkspace .daily-offer strong { color: var(--hx-text); font-size: 15px; font-weight: 600; }
#visitWorkspace .daily-offer small { grid-column: 1; color: var(--hx-text-3); font-size: 12.5px; }
#visitWorkspace .daily-offer .daily-price { grid-column: 2; grid-row: 1 / span 2; color: var(--hx-text-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

#visitWorkspace .daily-checkout { gap: 8px; margin-top: auto; padding: 12px 0 0; background: transparent; }
#visitWorkspace .daily-total-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: transparent;
}
#visitWorkspace .daily-total-label { display: grid; gap: 2px; color: var(--hx-text-2); font-size: 14px; font-weight: 600; }
#visitWorkspace .daily-total-calc { color: var(--hx-text-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
#visitWorkspace .daily-total-row strong {
  color: var(--hx-text); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
#visitWorkspace .daily-ready-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--hx-st-free); font-size: 14px; font-weight: 600; }
#visitWorkspace .daily-ready-line.is-attn { color: var(--hx-st-attn); }
#visitWorkspace .daily-ready-line[hidden] { display: none; }
#visitWorkspace .daily-ready-icon .svgi { width: 20px; height: 20px; stroke-width: 1.8; }

html[data-theme] body.review-redesign #visitWorkspace .daily-action,
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action {
  width: 100%; min-height: 64px; padding: 0 16px; border: 0; border-radius: var(--hx-radius-md);
  background: var(--hx-primary); color: var(--hx-on-primary); box-shadow: none;
  font-size: 19px; font-weight: 700; letter-spacing: 0;
}
html[data-theme] body.review-redesign #visitWorkspace .daily-action:hover:not([disabled]),
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action:hover:not([disabled]) {
  background: var(--hx-primary-hover); color: var(--hx-on-primary); border: 0;
}
html[data-theme] body.review-redesign #visitWorkspace .daily-action:disabled {
  background: var(--hx-raised-hover); color: var(--hx-text-3); opacity: 1;
}
html[data-theme] body.review-redesign #visitWorkspace .daily-action:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 3px; }
/* При переходе Tab кнопка не прилипает к краю экрана (дробная вёрстка давала −0.4 px). */
#visitWorkspace .daily-action,
#visitWorkspace .daily-link,
#visitWorkspace .daily-preset,
#visitWorkspace .daily-stepper button { scroll-margin-block: 16px; }
#visitWorkspace .daily-link {
  min-height: 44px; border: 0; background: transparent; color: var(--hx-text-2); font-size: 14px; font-weight: 600; box-shadow: none;
}
#visitWorkspace .daily-link:hover { color: var(--hx-text); background: transparent; }

/* активный визит: компактные факты 2×2, итог — крупно во всю ширину */
#visitWorkspace .daily-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 14px 0;
  border-bottom: 1px solid var(--hx-line);
}
#visitWorkspace .daily-facts > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 0; border: 0; min-height: 0; text-align: left; }
#visitWorkspace .daily-facts dt { color: var(--hx-text-3); font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
#visitWorkspace .daily-facts dd { margin: 0; color: var(--hx-text); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
#visitWorkspace .daily-facts > div:last-child {
  grid-column: 1 / -1; flex-direction: row; align-items: flex-end; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--hx-line);
}
#visitWorkspace .daily-facts > div:last-child dt { color: var(--hx-text-2); font-size: 14px; }
#visitWorkspace .daily-facts > div:last-child dd { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }

#visitWorkspace .r7-visit-game { padding: 14px 16px; border-top: 0; border-bottom: 1px solid var(--hx-line); }
#visitWorkspace .r7-visit-game h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--hx-text); }
#visitWorkspace .r7-visit-game h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; color: var(--hx-text-2); }
#visitWorkspace .r7-current-player { margin: 0 0 4px; font-size: 14px; color: var(--hx-text-2); }
#visitWorkspace .r7-score-observed { margin: 0 0 8px; color: var(--hx-text-3); font-size: 12.5px; }
#visitWorkspace .r7-score-table { min-width: 460px; font-size: 13px; }
#visitWorkspace .r7-score-table caption { padding-bottom: 8px; color: var(--hx-text-3); font-size: 12.5px; }
#visitWorkspace .r7-score-table th,
#visitWorkspace .r7-score-table td { padding: 6px 4px; border: 1px solid var(--hx-line); color: var(--hx-text); }
#visitWorkspace .r7-score-table thead th { color: var(--hx-text-3); font-weight: 600; }
#visitWorkspace .r7-score-table .is-current { background: var(--hx-select-wash); box-shadow: inset 0 0 0 1px var(--hx-select); }
#visitWorkspace .r7-frame-rolls { min-height: 16px; color: var(--hx-text-3); font-size: 11.5px; }
#visitWorkspace .r7-player-list { margin: 0; }
#visitWorkspace .r7-player-list li { padding: 8px 0; border-bottom: 1px solid var(--hx-line); font-size: 14px; color: var(--hx-text-2); }
#visitWorkspace .r7-player-list li:last-child { border-bottom: 0; }

#visitWorkspace .daily-blocked,
#visitWorkspace .daily-readiness-warning {
  display: grid; gap: 4px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--hx-line-strong);
  border-radius: var(--hx-radius-sm); background: var(--hx-raised); box-shadow: none;
}
#visitWorkspace .daily-blocked strong,
#visitWorkspace .daily-readiness-warning strong { color: var(--hx-text); font-size: 14.5px; }
#visitWorkspace .daily-blocked span,
#visitWorkspace .daily-readiness-warning span { color: var(--hx-text-2); font-size: 13px; }
#visitWorkspace .pair-runtime { margin: 14px 0 0; border: 1px solid var(--hx-line); border-radius: var(--hx-radius-sm); background: transparent; }
#visitWorkspace .pair-runtime > summary { min-height: 52px; color: var(--hx-text-2); }
#visitWorkspace .pair-runtime-icon { color: var(--hx-text-3); background: transparent; border: 0; }

/* ── планшет 820 и телефон 390 ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  body.review-redesign .workspace { grid-template-columns: var(--hx-rail-w) minmax(0, 1fr); gap: 16px; padding: 0 16px 16px 0; align-items: stretch; }
  body.review-redesign .r7-navigation { grid-row: 1 / span 2; align-self: stretch; }
  body.review-redesign .lanes-panel { margin-top: 16px; }
  body.review-redesign .lanes-panel { overflow: visible; }
  body.review-redesign .visit-workspace,
  body.review-redesign .visit-workspace.ws { max-width: none; min-width: 0; margin-top: 0; }
  body.review-redesign .daily-lane { min-height: 172px; }
}
@media (max-width: 800px) {
  body.review-redesign .topbar { display: flex; flex-wrap: wrap; align-items: center; padding: 8px 12px; gap: 2px 8px; height: auto; }
  body.review-redesign .top-actions { width: auto; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; gap: 0; margin-left: auto; }
  body.review-redesign .review-operating-mode,
  body.review-redesign .review-day-report { padding: 0 8px; }
  body.review-redesign .clock { padding-left: 4px; min-height: 44px; }
  body.review-redesign .top-brand { min-width: 0; padding-left: 4px; }
  body.review-redesign .workspace { padding: 0 12px 16px; }
  body.review-redesign .r7-navigation {
    gap: 6px; padding: 10px 0; margin: 0 0 4px; border: 0; background: transparent; scrollbar-width: thin;
  }
  #r7Navigation .r7-nav-entry { min-width: 0; min-height: 52px; padding: 0 14px; gap: 8px; background: var(--hx-raised); }
  #r7Navigation .r7-nav-entry.selected { background: var(--hx-select-wash); box-shadow: inset 0 0 0 1px var(--hx-select); }
  body.review-redesign .lanes-panel { margin-top: 8px; padding: 14px 12px 16px; }
  body.review-redesign .daily-lanes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.review-redesign .daily-lane-pair { gap: 10px; }
  body.review-redesign .daily-lane { min-height: 140px; }
  body.review-redesign .daily-lane-no { font-size: 46px; }
  .hall-vc-indicator { margin-left: 0; width: 100%; }
  body.review-redesign .visit-workspace,
  body.review-redesign .visit-workspace.ws { margin-top: 16px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.review-redesign .daily-lane, #r7Navigation .r7-nav-entry { transition: none; }
  body.review-redesign .daily-lane:active { transform: none; }
}

/* ── F3/F4 (чекпойнт S2): высота зала и прокрутка панели визита ─────────── */
@media (min-width: 1001px) {
  /* Сетка плиток занимает доступную высоту панели, как в макете; легенда — под ней. */
  body.review-redesign .daily-lanes { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
  body.review-redesign .daily-lane-pair { height: 100%; grid-auto-rows: minmax(0, 1fr); }
  body.review-redesign .daily-lane { height: 100%; min-height: 148px; }
  /* Прокручиваемая часть панели гаснет к низу, а не обрезает поле полосой. */
  #visitWorkspace.r7-pinned-actions > .r7-workspace-content { padding-bottom: 28px; }
  #visitWorkspace.r7-pinned-actions > .r7-workspace-content.has-more {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  }
}
@media (min-width: 1101px) {
  /* Макет: «Выбор игры» сразу за форматом и длительностью; имя группы — последним. */
  #visitWorkspace .daily-form > .daily-offer { order: 1; margin: 12px 0; }
  #visitWorkspace .daily-form > label.daily-field { order: 2; border-top: 1px solid var(--hx-line); border-bottom: 0; }
}
@media (min-width: 1101px) {
  /* Гости: аватары и степпер одной строкой под подписью (как «Игроки 👥 ◯◯◯◯» в макете). */
  #visitWorkspace .daily-players-field > .daily-row-label { min-height: 0; }
  #visitWorkspace .daily-players-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  #visitWorkspace .daily-players-field .daily-stepper { position: static; }
  /* Итог: сумма; ниже одной строкой «Готово к началу» и «Отменить подготовку»; затем главное. */
  #visitWorkspace.r7-pinned-actions > .daily-checkout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  #visitWorkspace.r7-pinned-actions > .daily-checkout > .daily-total-row { grid-column: 1 / -1; grid-row: 1; }
  #visitWorkspace.r7-pinned-actions > .daily-checkout > .daily-ready-line { grid-column: 1; grid-row: 2; }
  #visitWorkspace.r7-pinned-actions > .daily-checkout > .daily-link { grid-column: 2; grid-row: 2; padding: 0 4px; }
  #visitWorkspace.r7-pinned-actions > .daily-checkout > .daily-action { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
}

/* ═══ S3 · экран 02 «Визит» (макет 01-operator, верхний правый) ═══════════════ */
#visitWorkspace .r7-player-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
#visitWorkspace .r7-player-list > li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--hx-line); border-radius: 0;
  color: var(--hx-text); font-size: 14px; background: transparent;
}
#visitWorkspace .r7-player-list > li.r7-player-head { min-height: 36px; color: var(--hx-text-3); font-size: 12.5px; font-weight: 600; }
#visitWorkspace .r7-player-list > li.is-current {
  background: var(--hx-select-wash); border-bottom-color: transparent; border-radius: var(--hx-radius-sm);
  outline: 1px solid var(--hx-select); outline-offset: -1px;
}
#visitWorkspace .r7-player-name { font-weight: 700; overflow-wrap: anywhere; }
#visitWorkspace .r7-player-score { color: var(--hx-text-2); font-variant-numeric: tabular-nums; }
#visitWorkspace .r7-player-bumpers { display: grid; gap: 1px; color: var(--hx-text-2); }
#visitWorkspace .r7-player-bumpers.is-on { color: var(--hx-st-free); font-weight: 600; }
#visitWorkspace .r7-player-bumpers.is-empty { color: var(--hx-text-3); }
#visitWorkspace .r7-player-bumpers small { color: var(--hx-text-3); font-size: 12px; font-weight: 600; }
#visitWorkspace .r7-player-status { color: var(--hx-text-3); font-size: 12.5px; }
#visitWorkspace .r7-player-status.is-current {
  padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--hx-select) 22%, transparent);
  color: var(--hx-text); font-weight: 700; white-space: nowrap;
}

/* Развёрнутый визит: слева игра (сетка кадров + игроки), справа детали, итог и одно действие. */
@media (min-width: 1001px) {
  body.review-redesign .r7-visit-focused .visit-workspace,
  body.review-redesign .r7-visit-focused .visit-workspace.ws {
    flex: 1 1 auto; max-width: none; min-width: 0;
    display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); grid-auto-rows: min-content;
    column-gap: 28px; align-content: start; overflow-y: auto;
  }
  .r7-visit-focused #visitWorkspace > * { grid-column: 2; min-width: 0; }
  .r7-visit-focused #visitWorkspace > .daily-workspace-head,
  .r7-visit-focused #visitWorkspace > .daily-incident-strip { grid-column: 1 / -1; }
  .r7-visit-focused #visitWorkspace > .r7-visit-game { grid-column: 1; grid-row: 2 / span 6; align-self: start; border-bottom: 0; }
  .r7-visit-focused #visitWorkspace .daily-facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px 0 12px; }
  .r7-visit-focused #visitWorkspace .daily-facts > div {
    flex-direction: row; align-items: center; justify-content: space-between; min-height: 38px;
    border-bottom: 1px solid var(--hx-line);
  }
  .r7-visit-focused #visitWorkspace .daily-facts dd { font-size: 15px; }
  .r7-visit-focused #visitWorkspace .daily-facts > div:last-child { border-bottom: 0; padding-top: 14px; }
  .r7-visit-focused #visitWorkspace .daily-facts > div:last-child dd { font-size: 30px; }
  .r7-visit-focused #visitWorkspace > .daily-checkout { padding-top: 16px; }
  .r7-visit-focused #visitWorkspace .r7-score-table { min-width: 0; }
}
#visitWorkspace .r7-score-table { border-collapse: separate; border-spacing: 0; }
#visitWorkspace .r7-score-table th,
#visitWorkspace .r7-score-table td { border: 0; border-bottom: 1px solid var(--hx-line); border-right: 1px solid var(--hx-line); }
#visitWorkspace .r7-score-table thead th { background: transparent; font-size: 12.5px; }
#visitWorkspace .r7-score-table tbody th[scope="row"] { padding-left: 10px; }
#visitWorkspace .r7-score-table td:last-child { font-weight: 800; font-size: 15px; }
#visitWorkspace .r7-score-table tr.is-current > * { background: var(--hx-select-wash); border-top: 1px solid var(--hx-select); border-bottom-color: var(--hx-select); }
#visitWorkspace .r7-score-table tr.is-current > :first-child { border-left: 1px solid var(--hx-select); }
#visitWorkspace .r7-score-table tr.is-current > :last-child { border-right-color: var(--hx-select); }
#visitWorkspace .r7-score-table tr.is-current { box-shadow: none; }
@media (max-width: 640px) {
  #visitWorkspace .r7-player-list > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  #visitWorkspace .r7-player-list > li.r7-player-head { display: none; }
  #visitWorkspace .r7-player-list .r7-player-score { grid-column: 1; grid-row: 2; }
  #visitWorkspace .r7-player-list .r7-player-bumpers { grid-column: 2; grid-row: 2; text-align: right; }
  #visitWorkspace .r7-player-list .r7-player-status { grid-column: 2; grid-row: 1; justify-self: end; }
}

/* ═══ Админ-экраны 06/09/11/12/13 — тот же язык макета (02/03/04) ═══════════ */
body.review-redesign #modal .modal:has(.r7-admin-body) {
  background: var(--hx-bg); border: 0; border-radius: 0; box-shadow: none; color: var(--hx-text);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.review-redesign #modal .modal:has(.r7-admin-body)::before,
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-body::before,
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-body::after { display: none; }
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head {
  min-height: 0; padding: 0 0 0 20px; gap: 8px; background: var(--hx-chrome);
  border-bottom: 1px solid var(--hx-line); box-shadow: none;
}
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head h3 { font-size: 19px; font-weight: 700; letter-spacing: 0; color: var(--hx-text); }
body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-lock {
  min-height: 64px; height: 64px; padding: 0 16px; margin: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; color: var(--hx-text-2); font-size: 14px; font-weight: 600;
}
body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-lock:hover { color: var(--hx-text); background: var(--hx-raised); }
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-close {
  width: 64px; height: 64px; min-width: 64px; min-height: 64px; margin: 0; border: 0; border-left: 1px solid var(--hx-line);
  border-radius: 0; background: transparent; box-shadow: none; color: var(--hx-text-2); font-size: 20px;
}
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-close:hover { color: var(--hx-text); background: var(--hx-raised); }
body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-warning {
  margin: 0; padding: 6px 20px; border: 0; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--hx-st-attn) 35%, transparent);
  background: color-mix(in srgb, var(--hx-st-attn) 10%, var(--hx-chrome)); color: var(--hx-text-2); font-size: 13px; font-weight: 600; box-shadow: none;
}
body.review-redesign #modal .modal .modal-body.r7-admin-body {
  grid-template-columns: var(--hx-rail-w) minmax(0, 1fr); gap: 0; padding: 0; margin: 0; background: transparent;
}
body.review-redesign #modal .r7-admin-nav {
  gap: 4px; padding: 12px 10px; background: var(--hx-chrome); border-right: 1px solid var(--hx-line); align-self: stretch;
}
body.review-redesign #modal .r7-admin-nav .r7-nav-entry {
  width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: var(--hx-radius-sm); background: transparent;
  box-shadow: none; color: var(--hx-text-2); font-size: 14px; font-weight: 600; text-align: left;
}
body.review-redesign #modal .r7-admin-nav .r7-nav-entry:hover { background: var(--hx-raised); color: var(--hx-text); }
body.review-redesign #modal .r7-admin-nav .r7-nav-entry.selected { background: var(--hx-select-wash); color: var(--hx-text); border: 0; box-shadow: none; }
body.review-redesign #modal .r7-admin-content { padding: 20px 24px 24px; gap: 16px; }
body.review-redesign #modal .r7-admin-content h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--hx-text); }
body.review-redesign #modal .r7-admin-content p { color: var(--hx-text-2); font-size: 14.5px; line-height: 1.5; }

/* Карточки-панели: одна поверхность --hx-panel, тонкая линия, радиус 14, без свечения. */
body.review-redesign #modal .r7-admin-content .parked-row,
body.review-redesign #modal .r7-admin-content .r7-admin-card,
body.review-redesign #modal .r7-admin-content section.r7-unpublished,
body.review-redesign #modal .r7-admin-content .wave2-facts > div,
body.review-redesign #modal .r7-admin-content .card,
body.review-redesign #modal .r7-admin-content .settings-row {
  background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md); box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--hx-text);
}
body.review-redesign #modal .r7-admin-content .r7-admin-card { padding: 18px 20px; }
body.review-redesign #modal .r7-admin-content .r7-admin-card p { margin: 0; }
body.review-redesign #modal .r7-admin-content .r7-admin-status.is-ok { display: flex; align-items: center; gap: 8px; color: var(--hx-text); }
body.review-redesign #modal .r7-admin-content .r7-admin-status.is-ok::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--hx-st-free); }
body.review-redesign #modal .r7-admin-content p.r7-unpublished,
body.review-redesign #modal .r7-admin-content .r7-unpublished {
  padding: 14px 16px; border: 1px dashed var(--hx-line-strong); border-radius: var(--hx-radius-sm);
  background: transparent; color: var(--hx-text-2); font-size: 14px;
}
body.review-redesign #modal .r7-admin-content section.r7-unpublished { border-style: dashed; padding: 16px 18px; }
body.review-redesign #modal .r7-admin-content .wiz-label { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 700; color: var(--hx-text); }
body.review-redesign #modal .r7-admin-content .muted { color: var(--hx-text-3); }

/* Обновления: три факта — карточки с крупным значением (макет 04). */
body.review-redesign #modal .r7-admin-content .wave2-facts { gap: 12px; margin: 0; }
body.review-redesign #modal .r7-admin-content .wave2-facts > div { padding: 16px 18px; }
body.review-redesign #modal .r7-admin-content .wave2-facts dt { color: var(--hx-text-3); font-size: 13px; font-weight: 600; }
body.review-redesign #modal .r7-admin-content .wave2-facts dd { margin: 8px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hx-text); }

/* Кнопки и поля: главное — зелёная плоская, вторичные — контурные, удаление — тихий красный текст. */
body.review-redesign #modal .modal:has(.r7-admin-body) button.primary,
body.review-redesign #modal .modal:has(.r7-admin-body) .wizard-bar button.primary {
  background: var(--hx-primary); border: 0; color: var(--hx-on-primary); box-shadow: none; text-shadow: none; border-radius: var(--hx-radius-sm); font-weight: 700;
}
body.review-redesign #modal .modal:has(.r7-admin-body) button.primary:hover:not(:disabled) { background: var(--hx-primary-hover); }
body.review-redesign #modal .r7-admin-content .parked-row .actions button.primary {
  background: transparent; border: 1px solid var(--hx-line-strong); color: var(--hx-text);
}
body.review-redesign #modal .r7-admin-content .parked-row .actions button.primary:hover:not(:disabled) { background: var(--hx-raised); }
body.review-redesign #modal .modal:has(.r7-admin-body) button.danger {
  background: transparent; border: 1px solid color-mix(in srgb, var(--hx-st-fault) 40%, var(--hx-line)); color: var(--hx-st-fault); box-shadow: none; border-radius: var(--hx-radius-sm);
}
body.review-redesign #modal .r7-admin-content .wide-btn,
body.review-redesign #modal .r7-admin-content input[type="text"],
body.review-redesign #modal .r7-admin-content input:not([type]) {
  background: var(--hx-raised); border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm); color: var(--hx-text); box-shadow: none;
}
body.review-redesign #modal .r7-admin-content .seg {
  display: flex; gap: 6px; padding: 0; border: 0; background: transparent;
}
body.review-redesign #modal .r7-admin-content .seg button {
  flex: 1; min-height: 52px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm); background: var(--hx-raised);
  color: var(--hx-text-2); box-shadow: none; font-weight: 600;
}
body.review-redesign #modal .r7-admin-content .seg button.on { background: var(--hx-select-wash); border-color: var(--hx-select); color: var(--hx-text); }
body.review-redesign #modal .modal:has(.r7-admin-body) .wizard-bar {
  background: var(--hx-chrome); border-top: 1px solid var(--hx-line); box-shadow: none; padding: 12px 20px;
}
body.review-redesign #modal .modal:has(.r7-admin-body) .wizard-bar button:not(.primary) {
  background: transparent; border: 1px solid var(--hx-line-strong); color: var(--hx-text); box-shadow: none; border-radius: var(--hx-radius-sm);
}
body.review-redesign #modal .r7-admin-content .settings-row input[type="checkbox"] { accent-color: var(--hx-select); }
body.review-redesign #modal .r7-admin-content .settings-name { color: var(--hx-text); font-weight: 600; }
body.review-redesign #modal .r7-admin-content .settings-note,
body.review-redesign #modal .r7-admin-content .settings-lead { color: var(--hx-text-3); }

/* Технический раздел: вкладки подчёркиванием, карточки ВК по токенам. */
body.review-redesign #modal .r7-admin-body .tech-shell .rail { gap: 4px; padding: 0 0 12px; margin: 0 0 8px; border-bottom: 1px solid var(--hx-line); background: transparent; }
body.review-redesign #modal .r7-admin-body .tech-shell .rail-item {
  min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--hx-radius-sm); background: transparent; box-shadow: none;
  color: var(--hx-text-2); font-weight: 600;
}
body.review-redesign #modal .r7-admin-body .tech-shell .rail-item.on { background: var(--hx-select-wash); color: var(--hx-text); box-shadow: inset 0 -2px 0 var(--hx-select); }
body.review-redesign #modal .r7-admin-body .railnote { border: 1px dashed var(--hx-line-strong); background: transparent; color: var(--hx-text-3); border-radius: var(--hx-radius-sm); }
body.review-redesign #modal .r7-admin-body .card.vc { padding: 16px 18px; }
body.review-redesign #modal .r7-admin-body .vc-actions button,
body.review-redesign #modal .r7-admin-body .card button:not(.primary):not(.danger) {
  background: transparent; border: 1px solid var(--hx-line-strong); color: var(--hx-text); box-shadow: none; border-radius: var(--hx-radius-sm);
}
body.review-redesign #modal .r7-admin-body .sec-head h2 { font-size: 17px; }
body.review-redesign #modal .r7-admin-body .sec-sub { color: var(--hx-text-2); }

body.review-redesign #modal:has(.r7-admin-body) { padding: 0; }
body.review-redesign #modal .modal:has(.r7-admin-body) {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0;
}
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head { height: auto; min-height: 0; padding-block: 0; display: flex; align-items: center; }
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head h3 { flex: 1 1 auto; min-width: 0; }
body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-lock { margin-left: auto; }
body.review-redesign #modal .r7-admin-nav .r7-nav-entry { font-size: 13.5px; line-height: 1.2; }
/* Тарифы: строка = название · цена · действия (макет 06), а не высокая карточка. */
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; align-items: center; gap: 12px; padding: 10px 14px;
}
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .wide-btn { min-height: 52px; font-size: 18px; font-variant-numeric: tabular-nums; }
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions { display: flex; gap: 8px; }
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions .btn,
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions button { flex: none; min-height: 52px; padding: 0 14px; font-size: 14.5px; }
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .park-name b { font-size: 16px; }
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .park-name .muted { font-size: 13px; }
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .new-pk { padding: 18px 20px; gap: 12px; }
/* Терминал: подпись темы не прячется под сегментом. */
body.review-redesign #modal .r7-admin-content .settings-theme-row { flex-wrap: wrap; row-gap: 10px; }
body.review-redesign #modal .r7-admin-content .settings-theme-row .seg { flex: 1 1 260px; }
body.review-redesign #modal .modal:has(.r7-admin-body) .wizard-bar button { min-height: 56px; font-size: 17px; font-weight: 700; padding: 0 24px; }
@media (max-width: 800px) {
  body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row { grid-template-columns: minmax(0, 1fr) 120px; }
  body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions { grid-column: 1 / -1; }
  body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions button { flex: 1; }
}
@media (max-width: 820px) {
  body.review-redesign #modal .modal .modal-body.r7-admin-body { grid-template-columns: minmax(0, 1fr); }
  body.review-redesign #modal .r7-admin-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--hx-line); }
  body.review-redesign #modal .r7-admin-nav .r7-nav-entry { width: auto; flex: 1 1 140px; }
  body.review-redesign #modal .r7-admin-content { padding: 16px; }
}
body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-lock,
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-close { flex: none; white-space: nowrap; }
body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head h3 { overflow-wrap: anywhere; padding-block: 10px; }
@media (max-width: 400px) {
  body.review-redesign #modal .modal:has(.r7-admin-body) .modal-head { padding-left: 12px; }
  body.review-redesign #modal .modal:has(.r7-admin-body) .manager-session-lock { padding: 0 10px; font-size: 13px; }
}
body.review-redesign #modal .r7-admin-content .seg button { min-height: 64px; }
/* Строка темы: подпись над сегментом, а не под ним. */
body.review-redesign #modal .r7-admin-content .settings-theme-row { flex-direction: column; align-items: stretch; gap: 10px; }
body.review-redesign #modal .r7-admin-content .settings-theme-row .settings-name { flex: none; white-space: normal; }
body.review-redesign #modal .r7-admin-content .settings-theme-row .seg { flex: none; width: 100%; }

/* ═══ F6 · пустая панель визита: подсказка, без декоративного фона ═══════════ */
#visitWorkspace .ws-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 100%; padding: 32px 16px; background: none; border: 0; text-align: center;
}
#visitWorkspace .ws-empty::before,
#visitWorkspace .ws-empty::after { content: none; }
#visitWorkspace .ws-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--hx-raised); color: var(--hx-text-3); }
#visitWorkspace .ws-empty-icon .svgi { width: 30px; height: 30px; stroke-width: 1.6; }
#visitWorkspace .ws-empty .et { position: static; color: var(--hx-text-2); font-size: 16px; font-weight: 600; max-width: 28ch; }

/* ═══ Зона касания 64 px у всех основных элементов ═══════════════ */
body.review-redesign .review-day-report,
body.review-redesign .top-actions .shift,
#r7Navigation .r7-nav-entry,
#visitWorkspace .seg button,
#visitWorkspace .daily-preset,
#visitWorkspace .daily-field input,
#visitWorkspace .daily-link,
#visitWorkspace .pair-runtime > summary,
body.review-redesign #modal .r7-admin-nav .r7-nav-entry,
body.review-redesign #modal .r7-admin-content .seg button,
body.review-redesign #modal .r7-admin-body .tech-shell .rail-item,
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .wide-btn,
body.review-redesign #modal .r7-admin-content[data-admin-section="prices"] .wave2-prices .parked-row .actions button,
body.review-redesign #modal .r7-admin-content .wide-btn,
body.review-redesign #modal .r7-admin-content input[type="text"],
body.review-redesign #modal .modal:has(.r7-admin-body) .wizard-bar button { min-height: 64px; }
@media (max-width: 800px) {
  #r7Navigation .r7-nav-entry { min-height: 64px; }
}
/* «Запрошено» и «показано» в строке игрока — два факта; ненадёжное показание приглушено. */
#visitWorkspace .r7-bumper-requested { color: inherit; }
#visitWorkspace .r7-bumper-reported { color: var(--hx-text-2); font-size: 12px; font-weight: 600; }
#visitWorkspace .r7-bumper-reported.is-untrusted { color: var(--hx-st-attn); }

/* ═══ Анатомия админ-экранов с пустыми/неактивными элементами ═══════════════ */
body.review-redesign #modal .r7-admin-content .r7-nodata { color: var(--hx-text-3); font-weight: 600; }
body.review-redesign #modal .r7-admin-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
body.review-redesign #modal .r7-admin-columns.is-three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
body.review-redesign #modal .r7-admin-stack { display: grid; gap: 16px; min-width: 0; }
body.review-redesign #modal .r7-admin-card { display: grid; gap: 12px; align-content: start; }
body.review-redesign #modal .r7-admin-card > h2 { margin: 0; }
body.review-redesign #modal .r7-section-title { margin: 8px 0 0; font-size: 17px; }
body.review-redesign #modal .r7-inactive-action {
  min-height: 64px; padding: 0 18px; border: 1px dashed var(--hx-line-strong); border-radius: var(--hx-radius-sm);
  background: transparent; color: var(--hx-text-3); font: inherit; font-size: 15px; font-weight: 600; cursor: not-allowed; box-shadow: none; opacity: 1;
}
body.review-redesign #modal .r7-inactive-action.is-primary { border-style: solid; background: var(--hx-raised); }
body.review-redesign #modal .r7-inactive-seg { display: flex; gap: 8px; }
body.review-redesign #modal .r7-inactive-seg > * { flex: 1; }
body.review-redesign #modal .r7-status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hx-text-3); flex: none; }
body.review-redesign #modal .r7-admin-status { display: flex; align-items: center; gap: 8px; margin: 0; }
/* персонал */
body.review-redesign #modal .r7-role-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.review-redesign #modal .r7-role-tile {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px;
  background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md);
}
body.review-redesign #modal .r7-role-tile strong { display: block; color: var(--hx-text); font-size: 15px; }
body.review-redesign #modal .r7-role-tile small { color: var(--hx-text-3); font-size: 12.5px; }
body.review-redesign #modal .r7-role-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hx-raised-hover); color: var(--hx-text-2); flex: none; }
body.review-redesign #modal .r7-role-icon .svgi { width: 20px; height: 20px; }
body.review-redesign #modal .r7-table { display: grid; }
body.review-redesign #modal .r7-table-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--hx-line); color: var(--hx-text-2); font-size: 14px; }
body.review-redesign #modal .r7-table-row.is-head { min-height: 36px; color: var(--hx-text-3); font-size: 12.5px; font-weight: 600; }
/* тарифы: расписание */
body.review-redesign #modal .r7-admin-content section.r7-schedule { border-style: solid; }
body.review-redesign #modal .r7-day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
body.review-redesign #modal .r7-day {
  min-height: 64px; border: 1px dashed var(--hx-line-strong); border-radius: var(--hx-radius-sm); background: transparent;
  color: var(--hx-text-3); font: inherit; font-weight: 600; cursor: not-allowed;
}
body.review-redesign #modal .r7-field-label { color: var(--hx-text-2); font-size: 14px; font-weight: 600; }
body.review-redesign #modal .r7-schedule p { margin: 0; font-size: 13.5px; color: var(--hx-text-3); }
/* технический раздел: каркас ВК → USR-N520 → RS-485 */
body.review-redesign #modal .r7-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 16px; border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md); }
body.review-redesign #modal .r7-topo-node {
  display: grid; gap: 4px; min-width: 132px; padding: 12px 14px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm); background: var(--hx-raised);
}
body.review-redesign #modal .r7-topo-node strong { color: var(--hx-text); font-size: 15px; }
body.review-redesign #modal .r7-topo-node small { color: var(--hx-text-3); font-size: 12px; overflow-wrap: anywhere; }
body.review-redesign #modal .r7-topo-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
body.review-redesign #modal .r7-topo-link { display: inline-flex; align-items: center; gap: 6px; color: var(--hx-text-3); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
body.review-redesign #modal .r7-topo-link::after { content: ""; width: 28px; height: 0; border-top: 1px dashed var(--hx-line-strong); }
body.review-redesign #modal .r7-topo-branches { display: grid; gap: 10px; }
body.review-redesign #modal .r7-topo-branch { display: flex; align-items: center; gap: 10px; }
body.review-redesign #modal .r7-bumper-now { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md); }
body.review-redesign #modal .r7-bumper-now > strong { color: var(--hx-text); font-size: 14.5px; }
body.review-redesign #modal .r7-bumper-now > span { display: grid; gap: 2px; }
body.review-redesign #modal .r7-bumper-now small { color: var(--hx-text-3); font-size: 12px; }
/* терминал */
body.review-redesign #modal .r7-kv { display: grid; gap: 0; margin: 0; }
body.review-redesign #modal .r7-kv > div { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--hx-line); }
body.review-redesign #modal .r7-kv dt { color: var(--hx-text-3); font-size: 13px; font-weight: 600; }
body.review-redesign #modal .r7-kv dd { margin: 0; color: var(--hx-text); font-weight: 600; }
body.review-redesign #modal .terminal-locale-select { width: auto; max-width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; font-size: 14px; color: var(--hx-text); background: var(--hx-panel); border-color: var(--hx-line); }
body.review-redesign #modal .settings-center-locale { font-size: 13px; color: var(--hx-text-2); }
body.review-redesign #modal .r7-admin-card .settings-theme-row { padding: 0; border: 0; background: transparent; }
body.review-redesign #modal .r7-theme-previews { display: grid; gap: 12px; }
body.review-redesign #modal .r7-theme-preview {
  display: grid; grid-template-columns: 22% 1fr; gap: 6px; height: 96px; padding: 8px; border-radius: var(--hx-radius-sm);
  border: 1px solid var(--hx-line-strong); background: #0c1020;
}
body.review-redesign #modal .r7-theme-preview.is-light { background: #eef1f6; }
body.review-redesign #modal .r7-theme-preview.is-current { border-color: var(--hx-select); outline: 1px solid var(--hx-select); }
body.review-redesign #modal .r7-tp-rail { border-radius: 6px; background: #172236; }
body.review-redesign #modal .r7-theme-preview.is-light .r7-tp-rail { background: #ffffff; }
body.review-redesign #modal .r7-tp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
body.review-redesign #modal .r7-tp-tiles i { border-radius: 5px; background: #1c2a42; }
body.review-redesign #modal .r7-theme-preview.is-light .r7-tp-tiles i { background: #f4f6fa; border: 1px solid rgba(24, 33, 48, .12); }
body.review-redesign #modal .r7-inactive-switch {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; min-height: 52px;
  border-bottom: 1px solid var(--hx-line); color: var(--hx-text-2); font-size: 14px;
}
body.review-redesign #modal .r7-inactive-switch .r7-nodata { grid-column: 1; font-size: 12px; }
body.review-redesign #modal .r7-switch { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 26px; border-radius: 13px; border: 1px dashed var(--hx-line-strong); background: transparent; }
@media (max-width: 1100px) {
  body.review-redesign #modal .r7-admin-columns,
  body.review-redesign #modal .r7-admin-columns.is-three { grid-template-columns: minmax(0, 1fr); }
  body.review-redesign #modal .r7-role-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body.review-redesign #modal .r7-role-tiles { grid-template-columns: minmax(0, 1fr); }
  body.review-redesign #modal .r7-day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.review-redesign #modal .r7-topo { flex-direction: column; align-items: stretch; }
  body.review-redesign #modal .r7-topo-branch { flex-direction: column; align-items: stretch; }
}
body.review-redesign #modal .r7-admin-content .settings-theme-row { display: flex; flex-direction: column; align-items: stretch; }

/* ═══ Экран 09 в композиции макета 03 (список ВК · схема · состояние) ═══════ */
body.review-redesign #modal .r7-status-dot.is-ok { background: var(--hx-st-free); }
body.review-redesign #modal .r7-status-dot.is-attn { background: var(--hx-st-attn); }
body.review-redesign #modal .r7-status-dot.is-fault { background: var(--hx-st-fault); }
body.review-redesign #modal .r7-tech-board { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
body.review-redesign #modal .r7-vc-list,
body.review-redesign #modal .r7-tech-center {
  display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px; background: var(--hx-panel);
  border: 1px solid var(--hx-line); border-radius: var(--hx-radius-md);
}
body.review-redesign #modal .r7-tech-center { gap: 12px; }
body.review-redesign #modal .r7-tech-side { display: grid; gap: 16px; min-width: 0; }
body.review-redesign #modal .r7-vc-list h3,
body.review-redesign #modal .r7-tech-center h3 { margin: 0; color: var(--hx-text); font-size: 16px; font-weight: 700; }
body.review-redesign #modal .r7-vc-item {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-sm); background: var(--hx-raised); color: var(--hx-text); font: inherit; cursor: pointer;
}
body.review-redesign #modal .r7-vc-item:hover { background: var(--hx-raised-hover); }
body.review-redesign #modal .r7-vc-item.is-selected { background: var(--hx-select-wash); border-color: var(--hx-select); outline: 1px solid var(--hx-select); outline-offset: -1px; }
body.review-redesign #modal .r7-vc-item:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
body.review-redesign #modal .r7-vc-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--hx-radius-sm); background: var(--hx-raised-hover); color: var(--hx-text-2); flex: none; }
body.review-redesign #modal .r7-vc-icon .svgi { width: 22px; height: 22px; }
body.review-redesign #modal .r7-vc-text { display: grid; gap: 2px; min-width: 0; }
body.review-redesign #modal .r7-vc-text strong { font-size: 14.5px; }
body.review-redesign #modal .r7-vc-text small { color: var(--hx-text-3); font-size: 12px; overflow-wrap: anywhere; }
body.review-redesign #modal .r7-vc-state,
body.review-redesign #modal .r7-device-state { display: inline-flex; align-items: center; gap: 6px; color: var(--hx-text-2); font-size: 12.5px; font-weight: 600; }
body.review-redesign #modal .r7-tech-center .pair-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.review-redesign #modal .r7-tech-center .r7-topo { margin: 0; }
body.review-redesign #modal .r7-device-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--hx-line); }
body.review-redesign #modal .r7-device-row:last-child { border-bottom: 0; }
body.review-redesign #modal .r7-device-row strong { color: var(--hx-text); font-size: 14px; }
body.review-redesign #modal .r7-bumper-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.review-redesign #modal .r7-bumper-box { display: grid; gap: 6px; min-height: 72px; padding: 12px; border: 1px dashed var(--hx-line-strong); border-radius: var(--hx-radius-sm); }
body.review-redesign #modal .r7-bumper-box small { color: var(--hx-text-3); font-size: 12.5px; font-weight: 600; }
/* Подпись и значение — разделены, длинное значение переносится. */
body.review-redesign #modal .r7-pair-facts > div { align-items: flex-start; padding: 10px 0; }
body.review-redesign #modal .r7-kv dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
body.review-redesign #modal .r7-kv dt { flex: none; }
body.review-redesign #modal .pair-block .kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 16px; align-items: start; }
body.review-redesign #modal .pair-block .kv .v { min-width: 0; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 1100px) {
  body.review-redesign #modal .r7-tech-board { grid-template-columns: minmax(0, 1fr); }
  /* Узко: список ВК — компактная лента, сразу за ней схема, затем состояние. */
  body.review-redesign #modal .r7-vc-list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; padding: 12px; }
  body.review-redesign #modal .r7-vc-list h3 { display: none; }
  body.review-redesign #modal .r7-tech-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
body.review-redesign #modal .r7-tech-center .drow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--hx-line); }
body.review-redesign #modal .r7-tech-center .drow > * { min-width: 0; overflow-wrap: anywhere; }
body.review-redesign #modal .r7-kv dd { font-size: 14.5px; font-weight: 600; }
body.review-redesign #modal .r7-admin-body .tech-shell .rail { flex-direction: row; flex-wrap: wrap; align-items: center; }
body.review-redesign #modal .r7-admin-body .tech-shell .railnote { margin-left: auto; padding: 6px 10px; font-size: 12px; }
@media (max-width: 800px) {
  body.review-redesign #modal .r7-admin-body .tech-shell .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.review-redesign #modal .r7-admin-body .tech-shell .rail-item { white-space: normal; text-align: left; }
  body.review-redesign #modal .r7-admin-body .tech-shell .railnote { grid-column: 1 / -1; margin-left: 0; }
}
@media (max-width: 420px) {
  body.review-redesign #modal .r7-admin-body .tech-shell .rail { grid-template-columns: minmax(0, 1fr); }
}
/* ═══ Навигация пары «Схема связи · Состояние · Журнал» ═════════════════════ */
body.review-redesign #modal .r7-pair-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--hx-line); }
body.review-redesign #modal .r7-pair-tab {
  display: inline-grid; align-content: center; justify-items: start; gap: 2px; min-height: 64px; padding: 0 16px;
  border: 0; border-radius: var(--hx-radius-sm); background: transparent; color: var(--hx-text-2);
  font: inherit; font-size: 14.5px; font-weight: 600; box-shadow: none; cursor: pointer; white-space: normal;
}
body.review-redesign #modal .r7-pair-tab:hover:not(:disabled) { background: var(--hx-raised); color: var(--hx-text); }
body.review-redesign #modal .r7-pair-tab.is-current { background: var(--hx-select-wash); color: var(--hx-text); box-shadow: inset 0 -2px 0 var(--hx-select); }
body.review-redesign #modal .r7-pair-tab:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
body.review-redesign #modal .r7-pair-tab.is-inactive { border: 1px dashed var(--hx-line-strong); color: var(--hx-text-3); cursor: not-allowed; }
body.review-redesign #modal .r7-pair-tab.is-inactive small { color: var(--hx-text-3); font-size: 11.5px; font-weight: 600; }
body.review-redesign #modal .r7-tech-side:focus,
body.review-redesign #modal .r7-topo:focus { outline: 2px solid var(--hx-select); outline-offset: 4px; }
/* ═══ Витрина: бронь «скоро» — отдельная форма и цвет (макет: «Забронирована») ═══ */
:root, :root[data-theme="neon"] { --hx-st-book: #e9cf5b; }
html[data-theme="light"] { --hx-st-book: #8a6d00; }
body.review-redesign .daily-lane.glyph-book { --glyph: var(--hx-st-book); }
.hall-legend-item.glyph-book { --glyph: var(--hx-st-book); }

/* ═══════════════════════════════════════════════════════════════════════════
   ПИКСЕЛЬНЫЙ ПАРИТЕТ: картинка макета — контракт вида.
   Цвета сняты пипеткой с 01-operator.png (доминирующий цвет области, см. отчёт ΔE).
   ═══════════════════════════════════════════════════════════════════════════ */
:root,
:root[data-theme="neon"] {
  --hx-bg: #04142c;          /* фон страницы и рельса */
  --hx-chrome: #04142c;      /* рельс */
  --hx-header: #041028;      /* шапка */
  --hx-panel: #0c1c38;       /* панель визита, поля */
  --hx-raised: #0c1c34;      /* плитка дорожки */
  --hx-raised-hover: #102038;/* сегмент, наведение */
  --hx-line: rgba(96, 140, 210, .16);
  --hx-line-strong: rgba(96, 140, 210, .26);
  --hx-text: #eff1f6;
  --hx-text-2: #acb4c4;
  --hx-text-3: #949cb0;
  --hx-select: #22b2d8;      /* рамка выбранной плитки/сегмента (#17abcd…#269fca) */
  --hx-select-wash: #0c2844; /* фон выбранного сегмента */
  --hx-rail-plate: #043c64;  /* выбранный пункт рельса */
  --hx-cta: #2cb8e0;         /* главное действие экрана 01 («Начать игру») */
  --hx-on-cta: #04142c;
  --hx-primary: #30ac68;     /* главное действие экрана 02 («Перейти к расчёту») */
  --hx-primary-hover: #38bb74;
  --hx-on-primary: #ffffff;
  --hx-st-free: #36b573;
  --hx-st-play: #f89a3a;
  --hx-st-book: #fed40c;
  --hx-st-pause: #32b6f5;
  --hx-st-attn: #f4563e;
  --hx-st-fault: #f4563e;
  --hx-st-neutral: #a0a7ba;
  --hx-badge: #0860a8;       /* «Сейчас играет» */
  --hx-rail-w: 200px;
  --select-ring: #22b2d8;
}
html[data-theme="light"] { --hx-header: #ffffff; --hx-rail-plate: color-mix(in srgb, #0b8fa3 14%, #ffffff); --hx-cta: #0b7f93; --hx-on-cta: #ffffff; --hx-badge: #0b6fb8; }

/* ── каркас ≥801 px: рельс на всю высоту слева, справа шапка и рабочая область ── */
@media (min-width: 801px) {
  body.review-redesign {
    display: grid;
    grid-template-columns: var(--hx-rail-w) minmax(0, 1fr) clamp(340px, calc((100vw - var(--hx-rail-w)) * .35), 480px);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    background: var(--hx-bg);
  }
  body.review-redesign > .tp-persist-banner,
  body.review-redesign > #terminal-persist-banner { grid-column: 1 / -1; grid-row: 1; }
  body.review-redesign > .topbar { grid-column: 2 / -1; grid-row: 2; }
  body.review-redesign > #reviewNav { grid-column: 2 / -1; grid-row: 3; }
  body.review-redesign > main.workspace { display: contents; }
  body.review-redesign #r7Navigation { grid-column: 1; grid-row: 2 / -1; align-self: stretch; min-height: 0; overflow-y: auto; }
  body.review-redesign .lanes-panel { grid-column: 2; grid-row: 4; margin: 16px 16px 16px 20px; min-height: 0; }
  body.review-redesign .visit-workspace,
  body.review-redesign .visit-workspace.ws { grid-column: 3; grid-row: 4; margin: 16px 16px 16px 0; max-width: none; min-width: 0; min-height: 0; }
  /* Закреплённые действия: высота — от строки сетки, не 100% (иначе +32 px полей за край экрана). */
  body.review-redesign .visit-workspace.ws.r7-pinned-actions { height: auto; }
  body.review-redesign .r7-visit-focused .visit-workspace { grid-column: 2 / -1; }
  body.review-redesign .band-rail { display: none; }
  body.review-redesign .topbar .top-brand { display: none; }
  /* В «Визиты» (развёрнутый визит) зал скрыт — визит занимает обе колонки. */
  body.review-redesign:has(#receptionWorkspace.r7-visit-focused) .visit-workspace { grid-column: 2 / -1; margin-left: 20px; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  body.review-redesign { grid-template-columns: var(--hx-rail-w) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; height: auto; min-height: 100dvh; overflow-y: auto; }
  body.review-redesign .lanes-panel { grid-row: 4; margin-right: 16px; }
  body.review-redesign .visit-workspace,
  body.review-redesign .visit-workspace.ws { grid-column: 2; grid-row: 5; margin: 0 16px 16px 20px; }
  body.review-redesign:has(#receptionWorkspace.r7-visit-focused) .visit-workspace { grid-column: 2; grid-row: 4; }
}

/* ── рельс: бренд-блок сверху, пункты, выбранный — синяя плашка ───────────── */
@media (min-width: 801px) { body.review-redesign #r7Navigation { padding: 0 12px 16px; gap: 6px; background: var(--hx-chrome); border-right: 1px solid var(--hx-line); } }
.r7-rail-brand { order: -1; display: grid; gap: 4px; padding: 26px 8px 22px 10px; margin: 0 -12px 10px; padding-left: 22px; border-bottom: 1px solid var(--hx-line); }
.r7-rail-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.r7-rail-word { font-size: 25px; font-weight: 800; letter-spacing: .035em; line-height: 1; color: var(--hx-text); }
.r7-rail-emblem { display: inline-grid; width: 52px; height: 52px; flex: none; }
.r7-rail-emblem .hitru-emblem, .brand-emblem .hitru-emblem { width: 100%; height: 100%; overflow: visible; }
.r7-rail-brand-line { color: var(--hx-text-2); font-size: 17px; font-weight: 500; }
.r7-rail-brand-sub { color: var(--hx-text-3); font-size: 15px; font-weight: 500; }
#r7Navigation .r7-nav-entry { font-weight: 500; color: var(--hx-text-2); }
@media (min-width: 801px) { #r7Navigation .r7-nav-entry { padding: 0 14px; gap: 14px; font-size: 16px; } }
#r7Navigation .r7-nav-icon { width: 22px; color: var(--hx-text-2); }
#r7Navigation .r7-nav-icon .svgi { width: 22px; height: 22px; }
#r7Navigation .r7-nav-entry.selected { background: var(--hx-rail-plate); color: var(--hx-text); box-shadow: none; }
#r7Navigation .r7-nav-entry.selected .r7-nav-icon { color: var(--hx-text); }
@media (max-width: 800px) { .r7-rail-brand { display: none; } }

/* ── знак ────────────────────────────────────────────────────────────────── */
.hitru-emblem .he-orbit { fill: none; stroke-width: 2.8; stroke-linecap: round; }
.hitru-emblem .he-back { opacity: .7; }
.hitru-emblem .he-stars circle { fill: #40d2f0; }
.hitru-emblem .he-sat { fill: #f4f8ff; }
.hitru-emblem .he-halo { fill: #3ee0f2; opacity: 0; }

/* ── шапка: заголовок раздела слева, оператор справа ──────────────────────── */
@media (min-width: 801px) {
  body.review-redesign .topbar { height: 72px; padding: 0 20px 0 24px; background: var(--hx-header); border-bottom: 1px solid var(--hx-line); }
  .r7-header-title { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: 0; color: var(--hx-text); }
  body.review-redesign .top-actions { margin-left: auto; }
}
@media (max-width: 800px) { .r7-header-title { display: none; } }
.r7-operator { display: flex; align-items: center; gap: 10px; padding-left: 14px; margin-left: 6px; border-left: 1px solid var(--hx-line); }
.r7-operator-avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #1d4f86, #0c2a52); color: white; font-weight: 700; font-size: 16px;
}
.r7-operator-text { display: grid; line-height: 1.2; }
.r7-operator-text small { color: var(--hx-text-3); font-size: 12.5px; }
.r7-operator-text strong { color: var(--hx-text); font-size: 14.5px; font-weight: 600; }
@media (max-width: 800px) { .r7-operator { display: none; } }

/* ── зал: панель без собственного фона (как в макете), плитки, цифры ──────── */
@media (min-width: 801px) {
  body.review-redesign .lanes-panel { background: transparent; border: 0; padding: 4px 0 0; }
}
body.review-redesign .visit-map-head h2 { font-size: 20px; font-weight: 600; }
body.review-redesign .daily-lane,
body.review-redesign .daily-lane.tone-free,
body.review-redesign .daily-lane.tone-active,
body.review-redesign .daily-lane.tone-attention,
body.review-redesign .daily-lane.tone-conflict,
body.review-redesign .daily-lane.tone-rehearsal,
body.review-redesign .daily-lane.tone-closed {
  background: var(--hx-raised); border: 1px solid var(--hx-line-strong); border-radius: 12px;
}
body.review-redesign .daily-lane-no { font-size: 80px; font-weight: 600; letter-spacing: -.01em; }
body.review-redesign .daily-lane-glyph .svgi { width: 52px; height: 52px; --pin-side-stroke: calc(1.9px * 24 / 52 / .82); }
body.review-redesign .daily-lane.glyph-neutral .daily-lane-glyph .svgi { width: 46px; height: 46px; }
body.review-redesign .daily-lane-state,
body.review-redesign .daily-lane-state.tone-free,
body.review-redesign .daily-lane-state.tone-active,
body.review-redesign .daily-lane-state.tone-attention,
body.review-redesign .daily-lane-state.tone-conflict,
body.review-redesign .daily-lane-state.tone-rehearsal,
body.review-redesign .daily-lane-state.tone-closed { font-size: 15px; font-weight: 500; color: var(--hx-text-2); }
body.review-redesign .daily-lane.is-selected,
body.review-redesign .daily-lane.is-selected:hover {
  background: var(--hx-raised); border-color: var(--hx-select);
  outline: 1px solid var(--hx-select); outline-offset: 0;
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--hx-select) 55%, transparent);
}
@media (max-width: 1000px) { body.review-redesign .daily-lane-no { font-size: 64px; } }
@media (max-width: 800px) { body.review-redesign .daily-lane-no { font-size: 54px; } body.review-redesign .daily-lane-glyph .svgi { width: 42px; height: 42px; --pin-side-stroke: calc(1.9px * 24 / 42 / .82); } }

/* ── панель визита и кнопки: главное действие — цвет кнопки на картинке экрана ── */
body.review-redesign .visit-workspace,
body.review-redesign .visit-workspace.ws { background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: 12px; }
#visitWorkspace .daily-workspace-title-row h3 { font-size: 20px; font-weight: 600; }
#visitWorkspace .daily-total-row strong { font-size: 42px; font-weight: 600; letter-spacing: 0; }
#visitWorkspace .daily-facts > div:last-child dd { font-size: 40px; font-weight: 600; }
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action,
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action:hover:not([disabled]) {
  min-height: 76px; background: var(--hx-cta); color: var(--hx-on-cta); font-size: 22px; font-weight: 600;
}
html[data-theme] body.review-redesign #visitWorkspace .daily-action { min-height: 68px; font-size: 20px; font-weight: 600; }
#visitWorkspace .seg button,
#visitWorkspace .daily-preset { background: var(--hx-raised-hover); border-color: var(--hx-line-strong); }
#visitWorkspace .seg button.on,
#visitWorkspace .daily-preset[aria-pressed="true"] { background: var(--hx-select-wash); border-color: var(--hx-select); }
#visitWorkspace .r7-player-status.is-current { background: var(--hx-badge); color: #ffffff; }
/* Нарисованная часть знака занимает ≈72 % коробки: коробка 72 px → знак ≈52 px (замер). */
.r7-rail-emblem { width: 72px; height: 72px; margin: -10px -8px -10px -6px; }
.r7-rail-emblem { width: 76px; height: 76px; margin: -12px -10px -12px -8px; }
/* AA: белый на зелёном макета #30ac68 = 2.91:1 — зелёный чуть темнее и жирный крупный текст (≥3:1). */
:root, :root[data-theme="neon"] { --hx-primary: #2a9e60; --hx-primary-hover: #2fab69; }
html[data-theme] body.review-redesign #visitWorkspace .daily-action:not(.r7-start-action) { font-weight: 700; }
/* «Ресепшн» и подпись клуба — тусклее, как в макете; вторая строка поднята до AA (#707890 = 4.19:1). */
.r7-rail-brand-line { color: #8890a4; }
.r7-rail-brand-sub { color: #7c849a; }
html[data-theme="light"] .r7-rail-brand-line, html[data-theme="light"] .r7-rail-brand-sub { color: var(--hx-text-3); }

/* Узкий планшет 801–1100: в шапке остаётся аватар оператора, подпись уходит в title. */
@media (min-width: 801px) and (max-width: 1100px) {
  .r7-operator-text { display: none; }
  .r7-operator { padding-left: 10px; }
}
/* Слово состояния не рвётся посреди слова; на узком планшете кегль чуть меньше. */
body.review-redesign .daily-lane-state { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (min-width: 801px) and (max-width: 1100px) {
  body.review-redesign .daily-lane-state,
  body.review-redesign .daily-lane-state.tone-closed { font-size: 13px; gap: 5px; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  body.review-redesign { --hx-rail-w: 176px; }
  body.review-redesign .r7-rail-brand { padding-left: 14px; }
  body.review-redesign .daily-lane { padding-left: 6px; padding-right: 6px; }
  body.review-redesign #r7Navigation { padding-left: 8px; padding-right: 8px; }
  body.review-redesign #r7Navigation .r7-nav-entry { gap: 10px; padding: 0 10px; font-size: 14.5px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   СТЕКЛО И СВЕТ СОСТОЯНИЙ. Только тёмная тема; светлая — плотная.
   ═══════════════════════════════════════════════════════════════════════════ */
:root, :root[data-theme="neon"] {
  --hx-glass-rail: rgba(4, 18, 42, .62);
  --hx-glass-panel: rgba(12, 28, 56, .66);
  --hx-glass-tile: rgba(12, 28, 52, .64);
  --hx-glass-edge: rgba(150, 190, 255, .16);
  --hx-glass-top: rgba(200, 225, 255, .08);
  --hx-blur: 16px;
}
html:not([data-theme="light"]) body.review-redesign {
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(22, 74, 140, .55) 0%, transparent 70%),
    radial-gradient(60% 50% at 95% 8%, rgba(18, 96, 150, .32) 0%, transparent 70%),
    radial-gradient(80% 60% at 60% 105%, rgba(40, 30, 110, .30) 0%, transparent 70%),
    #04142c;
  background-attachment: fixed;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:not([data-theme="light"]) body.review-redesign #r7Navigation,
  html:not([data-theme="light"]) body.review-redesign .topbar {
    background: var(--hx-glass-rail);
    backdrop-filter: blur(var(--hx-blur)) saturate(1.25); -webkit-backdrop-filter: blur(var(--hx-blur)) saturate(1.25);
  }
  html:not([data-theme="light"]) body.review-redesign .visit-workspace,
  html:not([data-theme="light"]) body.review-redesign .visit-workspace.ws,
  html:not([data-theme="light"]) body.review-redesign #modal .r7-admin-content .r7-admin-card,
  html:not([data-theme="light"]) body.review-redesign #modal .r7-admin-content .parked-row,
  html:not([data-theme="light"]) body.review-redesign #modal .r7-admin-content .card,
  html:not([data-theme="light"]) body.review-redesign #modal .r7-vc-list,
  html:not([data-theme="light"]) body.review-redesign #modal .r7-tech-center {
    background: var(--hx-glass-panel);
    backdrop-filter: blur(var(--hx-blur)) saturate(1.25); -webkit-backdrop-filter: blur(var(--hx-blur)) saturate(1.25);
    border-color: var(--hx-glass-edge);
    box-shadow: inset 0 1px 0 var(--hx-glass-top), 0 18px 40px -22px rgba(0, 0, 0, .7);
  }
  html:not([data-theme="light"]) body.review-redesign .daily-lane,
  html:not([data-theme="light"]) body.review-redesign .daily-lane[class*="tone-"] {
    background: var(--hx-glass-tile);
    backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-color: var(--hx-glass-edge);
  }
}
/* Без backdrop-filter стекло не просвечивает — поверхности плотные, цвета S4 (контраст тот же). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:not([data-theme="light"]) body.review-redesign #r7Navigation { background: var(--hx-chrome); }
  html:not([data-theme="light"]) body.review-redesign .topbar { background: var(--hx-header); }
  html:not([data-theme="light"]) body.review-redesign .visit-workspace,
  html:not([data-theme="light"]) body.review-redesign .visit-workspace.ws { background: var(--hx-panel); }
  html:not([data-theme="light"]) body.review-redesign .daily-lane,
  html:not([data-theme="light"]) body.review-redesign .daily-lane[class*="tone-"] { background: var(--hx-raised); }
  html:not([data-theme="light"]) body.review-redesign .daily-lane.is-selected,
  html:not([data-theme="light"]) body.review-redesign .daily-lane.is-selected:hover { background: color-mix(in srgb, var(--hx-select) 10%, var(--hx-raised)); }
}
/* Свет состояния: мягкое постоянное свечение цветом состояния (не неон). */
html:not([data-theme="light"]) body.review-redesign .daily-lane:not(.glyph-neutral) {
  box-shadow: inset 0 1px 0 var(--hx-glass-top), inset 0 0 0 1px color-mix(in srgb, var(--glyph) 16%, transparent),
    0 14px 30px -20px color-mix(in srgb, var(--glyph) 55%, transparent);
}
html:not([data-theme="light"]) body.review-redesign .daily-lane .daily-lane-glyph { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--glyph) 55%, transparent)); }
html:not([data-theme="light"]) body.review-redesign .daily-lane .daily-lane-state-mark { box-shadow: 0 0 8px color-mix(in srgb, var(--glyph) 80%, transparent); }
html:not([data-theme="light"]) body.review-redesign .daily-lane.is-selected,
html:not([data-theme="light"]) body.review-redesign .daily-lane.is-selected:hover {
  background: color-mix(in srgb, var(--hx-select) 10%, var(--hx-glass-tile));
  border-color: var(--hx-select);
  box-shadow: inset 0 1px 0 var(--hx-glass-top), 0 0 0 1px var(--hx-select), 0 0 26px -2px color-mix(in srgb, var(--hx-select) 60%, transparent);
}
/* Связанная кнопка светится, только когда сервер разрешает действие (disabled — без света). */
html:not([data-theme="light"]) body.review-redesign #visitWorkspace .daily-action.r7-start-action:not(:disabled) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hx-cta) 60%, transparent), 0 10px 30px -8px color-mix(in srgb, var(--hx-cta) 75%, transparent);
}
html:not([data-theme="light"]) body.review-redesign #visitWorkspace .daily-action:not(.r7-start-action):not(:disabled) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hx-primary) 60%, transparent), 0 10px 30px -8px color-mix(in srgb, var(--hx-primary) 75%, transparent);
}
#visitWorkspace .daily-workspace-status .daily-lane-state-mark { filter: drop-shadow(0 0 5px currentColor); }
/* Вспышка смены серверного факта: 750 мс, затухает до постоянного свечения. */
@keyframes hx-state-flash {
  0% { box-shadow: 0 0 0 2px var(--glyph, var(--hx-select)), 0 0 38px 4px color-mix(in srgb, var(--glyph, var(--hx-select)) 70%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; }
}
body.review-redesign .daily-lane.is-flash,
#visitWorkspace .daily-facts > div.is-flash {
  animation: hx-state-flash 750ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: var(--flash-delay, 0ms);
}
#visitWorkspace .daily-facts > div { --glyph: var(--hx-select); border-radius: 8px; }
/* Знак: D — ореол по состоянию системы; B — спутник (SMIL в разметке). */
@keyframes he-breathe { 0%, 100% { opacity: .22; } 50% { opacity: .72; } }
.hitru-emblem[data-sys="ok"] .he-halo { fill: #3ee0f2; animation: he-breathe 4.5s ease-in-out infinite; }
.hitru-emblem[data-sys="warn"] .he-halo { fill: #ffc24d; animation: he-breathe 1.8s ease-in-out infinite; }
.hitru-emblem[data-sys="off"] .he-halo { fill: #f4563e; opacity: .45; animation: none; }
.hitru-emblem[data-sys="off"] .he-orbit, .hitru-emblem[data-sys="off"] .he-sat { opacity: .35; }
/* Индикатор системы в шапке — тот же факт, что свечение знака. */
.r7-system-state { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; color: var(--hx-text-2); font-size: 14px; font-weight: 600; }
.r7-system-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee0f2; box-shadow: 0 0 8px #3ee0f2; }
.r7-system-state[data-sys="warn"] .r7-system-dot { background: #ffc24d; box-shadow: 0 0 8px #ffc24d; }
.r7-system-state[data-sys="off"] .r7-system-dot { background: #f4563e; box-shadow: 0 0 8px #f4563e; }
body.review-redesign .review-operating-mode::before { box-shadow: 0 0 8px var(--hx-st-free); }
@media (max-width: 800px) { .r7-system-state span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  body.review-redesign .daily-lane.is-flash, #visitWorkspace .daily-facts > div.is-flash { animation: none; }
  .hitru-emblem .he-halo { animation: none !important; opacity: .5; }
}
#visitWorkspace .r7-score-table tr.is-flash > * { animation: hx-row-flash 750ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--flash-delay, 0ms); }
@keyframes hx-row-flash { 0% { background: color-mix(in srgb, var(--hx-st-play) 38%, transparent); } 100% { background: transparent; } }
#visitWorkspace .r7-score-table tr.is-current.is-flash > * { animation-name: hx-row-flash-current; }
@keyframes hx-row-flash-current { 0% { background: color-mix(in srgb, var(--hx-st-play) 38%, var(--hx-select-wash)); } 100% { background: var(--hx-select-wash); } }
@media (prefers-reduced-motion: reduce) { #visitWorkspace .r7-score-table tr.is-flash > * { animation: none; } }
@media (min-width: 801px) and (max-width: 1100px) { .r7-system-state span:last-child { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   ТИХИЙ WEBGPU-ФОН. Canvas под всем содержимым; пока он жив (html.hx-gpu-live),
   фон body прозрачен. Без WebGPU класса нет — остаётся статичный градиент S5.
   ════════════════════════════════════════════════════════════════════════ */
#hxBackdrop { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
html.hx-gpu-live:not([data-theme="light"]) { background: #04142c; }
html.hx-gpu-live:not([data-theme="light"]) body.review-redesign { background: transparent; }
html[data-theme="light"] #hxBackdrop { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   СВЕТЛАЯ ТЕМА — полноправная: тот же состав и компоненты.
   Тёплый светлый фон, белые матовые карточки с мягкой тенью; рельс остаётся
   тёмно-синим (бренд); акцент — cyan/синий; статусы затемнены до AA на белом.
   ════════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --hx-bg: #f5f2ec;
  --hx-header: rgba(255, 255, 255, .62);
  --hx-panel: #ffffff;
  --hx-raised: #ffffff;
  --hx-raised-hover: #f7f4ee;
  --hx-line: rgba(44, 36, 24, .10);
  --hx-line-strong: rgba(44, 36, 24, .18);
  --hx-select: #0a87b5;
  --hx-select-wash: color-mix(in srgb, #0a87b5 9%, #ffffff);
  --select-ring: #0a87b5;
  --hx-cta: #0a7fa8;
  --hx-on-cta: #ffffff;
  --hx-lglass-card: rgba(255, 255, 255, .74);
  --hx-lglass-tile: rgba(255, 255, 255, .80);
  --hx-lglass-edge: rgba(255, 255, 255, .85);
  --hx-lshadow: 0 1px 2px rgba(44, 36, 24, .06), 0 16px 36px -22px rgba(44, 36, 24, .34);
}
html[data-theme="light"] body.review-redesign {
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(34, 178, 216, .13) 0%, transparent 70%),
    radial-gradient(60% 50% at 96% 6%, rgba(96, 132, 240, .10) 0%, transparent 70%),
    radial-gradient(80% 60% at 60% 105%, rgba(226, 206, 176, .45) 0%, transparent 70%),
    #f5f2ec;
  background-attachment: fixed;
}
/* Рельс на широком экране — тёмно-синий, как в тёмной теме; токены переопределены локально. */
@media (min-width: 801px) {
  html[data-theme="light"] body.review-redesign #r7Navigation {
    --hx-chrome: #04142c; --hx-text: #eff1f6; --hx-text-2: #acb4c4; --hx-text-3: #949cb0;
    --hx-rail-plate: #043c64; --hx-line: rgba(150, 190, 255, .14); --hx-select: #22b2d8;
    background: #04142c; color: var(--hx-text); border-right: 0;
    box-shadow: 8px 0 30px -18px rgba(4, 20, 44, .55);
  }
  html[data-theme="light"] .r7-rail-brand-line { color: #8890a4; }
  html[data-theme="light"] .r7-rail-brand-sub { color: #7c849a; }
  html[data-theme="light"] body.review-redesign .topbar { border-bottom: 1px solid var(--hx-line); }
}
/* Карточки и плитки — белое матовое стекло с мягкой тенью. */
html[data-theme="light"] body.review-redesign .visit-workspace,
html[data-theme="light"] body.review-redesign .visit-workspace.ws,
html[data-theme="light"] body.review-redesign #modal .r7-admin-content .r7-admin-card,
html[data-theme="light"] body.review-redesign #modal .r7-admin-content .parked-row,
html[data-theme="light"] body.review-redesign #modal .r7-admin-content .card,
html[data-theme="light"] body.review-redesign #modal .r7-vc-list,
html[data-theme="light"] body.review-redesign #modal .r7-tech-center {
  background: var(--hx-panel); border-color: var(--hx-line); box-shadow: var(--hx-lshadow);
}
html[data-theme="light"] body.review-redesign .daily-lane,
html[data-theme="light"] body.review-redesign .daily-lane[class*="tone-"] { background: var(--hx-raised); border-color: var(--hx-line); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="light"] body.review-redesign .topbar {
    background: var(--hx-header);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
  html[data-theme="light"] body.review-redesign .visit-workspace,
  html[data-theme="light"] body.review-redesign .visit-workspace.ws,
  html[data-theme="light"] body.review-redesign #modal .r7-admin-content .r7-admin-card,
  html[data-theme="light"] body.review-redesign #modal .r7-admin-content .parked-row,
  html[data-theme="light"] body.review-redesign #modal .r7-admin-content .card,
  html[data-theme="light"] body.review-redesign #modal .r7-vc-list,
  html[data-theme="light"] body.review-redesign #modal .r7-tech-center {
    background: var(--hx-lglass-card);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-color: var(--hx-lglass-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--hx-lshadow);
  }
  html[data-theme="light"] body.review-redesign .daily-lane,
  html[data-theme="light"] body.review-redesign .daily-lane[class*="tone-"] {
    background: var(--hx-lglass-tile);
    backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border-color: var(--hx-lglass-edge);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="light"] body.review-redesign .topbar { background: #ffffff; }
}
/* Свет состояния в светлой теме: цветная мягкая тень вместо неонового ореола. */
html[data-theme="light"] body.review-redesign .daily-lane:not(.glyph-neutral) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px color-mix(in srgb, var(--glyph) 22%, transparent),
    0 14px 28px -18px color-mix(in srgb, var(--glyph) 55%, transparent);
}
html[data-theme="light"] body.review-redesign .daily-lane .daily-lane-glyph { filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--glyph) 35%, transparent)); }
html[data-theme="light"] body.review-redesign .daily-lane .daily-lane-state-mark { box-shadow: 0 0 6px color-mix(in srgb, var(--glyph) 55%, transparent); }
html[data-theme="light"] body.review-redesign .daily-lane.is-selected,
html[data-theme="light"] body.review-redesign .daily-lane.is-selected:hover {
  background: color-mix(in srgb, var(--hx-select) 7%, #ffffff); border-color: var(--hx-select);
  box-shadow: 0 0 0 1px var(--hx-select), 0 14px 30px -14px color-mix(in srgb, var(--hx-select) 55%, transparent);
}
html[data-theme="light"] body.review-redesign #visitWorkspace .daily-action.r7-start-action:not(:disabled) {
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--hx-cta) 70%, transparent);
}
html[data-theme="light"] body.review-redesign #visitWorkspace .daily-action:not(.r7-start-action):not(:disabled) {
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--hx-primary) 70%, transparent);
}
html[data-theme="light"] .r7-system-state[data-sys="ok"] .r7-system-dot { background: var(--hx-select); box-shadow: 0 0 6px var(--hx-select); }
html[data-theme="light"] .r7-system-state[data-sys="warn"] .r7-system-dot { background: #c98a00; box-shadow: 0 0 6px #c98a00; }
html[data-theme="light"] .r7-system-state[data-sys="off"] .r7-system-dot { background: #c8323f; box-shadow: 0 0 6px #c8323f; }

/* Переключатель темы в шапке: солнце/луна, зона касания 64 px (на телефоне 48). */
.r7-theme-toggle {
  display: inline-grid; place-items: center; min-width: 64px; min-height: 64px; padding: 0; margin: 0;
  border: 0; border-radius: 14px; background: transparent; color: var(--hx-text-2); cursor: pointer;
}
.r7-theme-toggle .svgi { width: 24px; height: 24px; }
.r7-theme-toggle:hover { background: var(--hx-raised-hover); color: var(--hx-text); }
.r7-theme-toggle:focus-visible { outline: 2px solid var(--hx-select); outline-offset: -4px; }
@media (max-width: 800px) { .r7-theme-toggle { min-width: 48px; min-height: 48px; } }
.topbar .top-actions .r7-theme-toggle { background: transparent; border: 0; box-shadow: none; min-width: 64px; min-height: 64px; }
.topbar .top-actions .r7-theme-toggle:hover { background: var(--hx-raised-hover); }
@media (max-width: 800px) { .topbar .top-actions .r7-theme-toggle { min-width: 48px; min-height: 48px; } }
@media (min-width: 801px) and (max-width: 1000px) {
  body.review-redesign .topbar .top-actions { gap: 2px; }
  .r7-operator { margin-left: 0; padding-left: 8px; }
}
/* 801–1000: раздел виден по плашке рельса, заголовок в шапке уступает место действиям. */
@media (min-width: 801px) and (max-width: 1000px) { .r7-header-title { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   ЭТАП 1: компоненты, каркас, «Сводка», «Отчёты», «Визиты».
   Вид — наш: тёмно-синий со стеклом и светлая тема; акцент cyan/синий.
   ════════════════════════════════════════════════════════════════════════ */
.tone-cyan { --tone: var(--hx-select); }
.tone-green { --tone: var(--hx-st-free); }
.tone-blue { --tone: var(--hx-st-pause); }
.tone-violet { --tone: #a07cf8; }
.tone-red { --tone: var(--hx-st-fault); }
.tone-amber { --tone: var(--hx-st-book); }
.tone-neutral { --tone: var(--hx-st-neutral); }
html[data-theme="light"] .tone-violet { --tone: #6a45d6; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.r7-page .num { font-variant-numeric: tabular-nums; text-align: right; }

/* страница поверх зала */
body.r7-page-open .lanes-panel, body.r7-page-open .visit-workspace { display: none !important; }
.r7-page { display: grid; gap: 18px; align-content: start; color: var(--hx-text); }
.r7-page[hidden] { display: none; }
@media (min-width: 768px) {
  body.review-redesign .r7-page { grid-column: 2 / -1; grid-row: 4; min-height: 0; overflow-y: auto; padding: 20px 20px 28px; }
}
@media (max-width: 800px) { .r7-page { padding: 12px 12px 24px; } }
.r7-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.r7-page-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0; }
.r7-page-head p { margin: 4px 0 0; color: var(--hx-text-2); font-size: 14px; }
.r7-page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* поверхности: карточки и KPI */
.r7-page .r7-card, .r7-kpi {
  background: var(--hx-panel); border: 1px solid var(--hx-line); border-radius: 16px; min-width: 0;
}
html:not([data-theme="light"]) .r7-page .r7-card, html:not([data-theme="light"]) .r7-kpi { box-shadow: inset 0 1px 0 rgba(200, 225, 255, .06); }
html[data-theme="light"] .r7-page .r7-card, html[data-theme="light"] .r7-kpi { box-shadow: var(--hx-lshadow); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:not([data-theme="light"]) .r7-page .r7-card, html:not([data-theme="light"]) .r7-kpi {
    background: var(--hx-glass-panel); border-color: var(--hx-glass-edge);
    backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  }
  html[data-theme="light"] .r7-page .r7-card, html[data-theme="light"] .r7-kpi {
    background: var(--hx-lglass-card); border-color: var(--hx-lglass-edge);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
}
.r7-page .r7-card { padding: 16px 18px 18px; display: grid; gap: 12px; align-content: start; }
.r7-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.r7-card-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.r7-note { margin: 0; color: var(--hx-text-3); font-size: 12.5px; line-height: 1.4; }

.r7-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.r7-kpis.is-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.r7-kpi { padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; align-content: start; }
.r7-kpi > :not(.r7-kpi-icon) { grid-column: 2; }
.r7-kpi-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.r7-kpi-icon .svgi { width: 22px; height: 22px; --pin-side-stroke: calc(1.9px * 24 / 22 / .82); }
.r7-kpi-label { color: var(--hx-text-2); font-size: 13.5px; font-weight: 600; }
.r7-kpi-value { font-size: 27px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.r7-kpi.is-empty .r7-kpi-value { color: var(--hx-text-3); }
.r7-kpi-delta { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 650; }
.r7-kpi-delta.is-good { color: var(--hx-st-free); }
.r7-kpi-delta.is-bad { color: var(--hx-st-fault); }
.r7-kpi-delta.is-neutral { color: var(--hx-text-2); }
.r7-kpi-sub { color: var(--hx-text-3); font-size: 12.5px; }
.r7-kpi-bar { display: block; height: 6px; border-radius: 99px; background: var(--hx-line-strong); overflow: hidden; margin-top: 4px; }
.r7-kpi-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tone); }

/* сетки страниц */
.r7-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.r7-span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .r7-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .r7-grid { grid-template-columns: minmax(0, 1fr); } .r7-span-2 { grid-column: auto; } }

/* пустота с причиной */
.r7-empty { display: grid; gap: 4px; padding: 18px; border-radius: 12px; border: 1px dashed var(--hx-line-strong); color: var(--hx-text-2); font-size: 14px; }
.r7-empty strong { font-weight: 600; color: var(--hx-text-2); }
.r7-empty span { color: var(--hx-text-3); font-size: 12.5px; }

/* графики */
.r7-chart { margin: 0; position: relative; min-width: 0; }
.r7-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.r7c-grid { stroke: var(--hx-line); stroke-width: 1; }
.r7c-axis { fill: var(--hx-text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.r7-line { color: var(--hx-select); }
.r7c-line { fill: none; stroke: var(--hx-select); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.r7c-dot { fill: var(--hx-panel); stroke: var(--hx-select); stroke-width: 2.4; cursor: pointer; }
.r7c-dot:focus-visible { outline: none; stroke-width: 4; }
.r7c-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px;
  background: var(--hx-text); color: var(--hx-panel); font-size: 12px; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.r7c-tip strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.r7c-track { fill: none; stroke: var(--hx-line-strong); stroke-width: 18; }
.r7c-arc { fill: none; stroke: var(--tone); stroke-width: 18; }
.r7c-center { fill: var(--hx-text); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.r7c-center-label { fill: var(--hx-text-3); font-size: 9.5px; }
.r7c-bar { fill: var(--tone); }
.r7-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.r7-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; color: var(--hx-text-2); }
.r7-legend .num { color: var(--hx-text); font-weight: 600; min-width: 3ch; }
.r7-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.r7-legend.is-row { display: flex; gap: 16px; }
.r7-legend.is-row li { display: inline-flex; }
.r7-mini-dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 13px; color: var(--hx-text-2); }
.r7-mini-dl dd { margin: 0; color: var(--hx-text); }

/* метки, вкладки, таблица, пагинация */
.r7-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); }
.r7-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.r7-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.r7-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hx-line);
  background: transparent; color: var(--hx-text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.r7-tab.is-active { background: var(--hx-select-wash); border-color: var(--hx-select); color: var(--hx-text); }
.r7-tab:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
.r7-tab-count { min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--hx-line-strong); color: var(--hx-text); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: center; }
.r7-tab.is-active .r7-tab-count { background: var(--hx-select); color: var(--hx-on-cta); }
.r7-table-wrap { overflow-x: auto; }
.r7-page .r7-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.r7-page .r7-table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--hx-text-3); padding: 0 10px 8px; border-bottom: 1px solid var(--hx-line); white-space: nowrap; }
.r7-page .r7-table th.num { text-align: right; }
.r7-page .r7-table td { padding: 12px 10px; border-bottom: 1px solid var(--hx-line); vertical-align: middle; }
.r7-page .r7-table tbody tr:last-child td { border-bottom: 0; }
.r7-page .r7-table tr.is-action { cursor: pointer; }
.r7-page .r7-table tr.is-action:hover td { background: var(--hx-raised-hover); }
.r7-page .r7-table tr.is-action:focus-visible { outline: 2px solid var(--hx-select); outline-offset: -2px; }
.r7-cell-stack { display: grid; gap: 2px; }
.r7-cell-stack strong { font-weight: 600; }
.r7-cell-stack span { color: var(--hx-text-3); font-size: 12.5px; }
.r7-lane-chip { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; font-weight: 750; font-size: 16px;
  background: var(--hx-select-wash); color: var(--hx-text); font-variant-numeric: tabular-nums; }
.r7-spark { color: var(--hx-select); display: inline-block; }
.r7-pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 10px; color: var(--hx-text-2); font-size: 13px; }
.r7-pager-btn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--hx-line); background: transparent; color: var(--hx-text); font-size: 18px; cursor: pointer; }
.r7-pager-btn:disabled { opacity: .4; cursor: default; }
.r7-visits-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.r7-visits-total { color: var(--hx-text-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* подсказки, быстрые действия, лента */
.r7-insights { display: grid; gap: 10px; }
.r7-insight { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); }
.r7-insight-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); grid-row: 1 / span 2; }
.r7-insight-icon .svgi { width: 20px; height: 20px; }
.r7-insight-text { display: grid; gap: 2px; min-width: 0; }
.r7-insight-text strong { font-size: 14px; font-weight: 650; }
.r7-insight-text span { color: var(--hx-text-2); font-size: 12.5px; }
.r7-insight-action { grid-column: 2; justify-self: start; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hx-line-strong);
  background: transparent; color: var(--hx-text); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.r7-insight-action:hover { background: var(--hx-raised-hover); }
.r7-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.r7-quick-btn { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; min-height: 92px; border-radius: 12px; border: 1px solid var(--hx-line);
  background: transparent; color: var(--hx-text); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.r7-quick-btn:hover { background: var(--hx-raised-hover); }
.r7-quick-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--hx-select); background: var(--hx-select-wash); }
.r7-quick-icon .svgi { width: 20px; height: 20px; }
.r7-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.r7-feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hx-line); }
.r7-feed li:last-child { border-bottom: 0; }
.r7-feed-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 15%, transparent); }
.r7-feed-icon .svgi { width: 18px; height: 18px; }
.r7-feed-text { display: grid; gap: 1px; min-width: 0; }
.r7-feed-text strong { font-size: 13.5px; font-weight: 600; }
.r7-feed-text span { color: var(--hx-text-3); font-size: 12px; }
.r7-feed time { color: var(--hx-text-3); font-size: 12px; white-space: nowrap; }

/* отчёты: игры, этап 2, кнопки */
.r7-games-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r7-games-row > div { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--hx-select-wash); }
.r7-games-row span { color: var(--hx-text-2); font-size: 13px; }
.r7-games-row strong { font-size: 30px; font-weight: 750; text-align: left; }
.r7-games-verdict { margin: 0; font-size: 13.5px; color: var(--hx-text-2); }
.r7-games.is-alert { border-color: var(--hx-st-fault); }
.r7-games.is-alert .r7-games-verdict { color: var(--hx-st-fault); font-weight: 650; }
.r7-games.is-note .r7-games-verdict { color: var(--hx-text); }
.r7-stage2-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--hx-text-2); font-size: 13.5px; }
.r7-seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--hx-line); }
.r7-seg button { min-height: 40px; min-width: 76px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--hx-text-2); font-weight: 600; cursor: pointer; }
.r7-seg button.is-on { background: var(--hx-select); color: var(--hx-on-cta); }
.r7-primary-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--hx-cta); color: var(--hx-on-cta); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.r7-primary-btn .svgi { width: 18px; height: 18px; }
.r7-primary-btn:disabled { opacity: .5; cursor: default; }

/* меню: счётчики и низ рельса */
#r7Navigation .r7-nav-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center;
  font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: #04142c; background: var(--hx-select); }
#r7Navigation .r7-nav-count.is-attn { background: #f4563e; color: #04142c; }
.r7-rail-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--hx-line); }
.r7-club-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 6px 10px; }
.r7-club-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--hx-text); background: var(--hx-rail-plate); }
.r7-club-avatar .svgi { width: 20px; height: 20px; }
.r7-club-text { display: grid; gap: 1px; min-width: 0; }
.r7-club-text strong { color: var(--hx-text); font-size: 14px; font-weight: 600; }
.r7-club-text small { color: var(--hx-text-3); font-size: 12px; }
.r7-foot-btn { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
  color: var(--hx-text-2); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
.r7-foot-btn .svgi { width: 20px; height: 20px; }
.r7-foot-btn:hover { background: var(--hx-raised-hover); color: var(--hx-text); }
.r7-foot-btn[hidden] { display: none; }
.r7-nav-links { display: contents; }
@media (min-width: 801px) {
  body.review-redesign #r7Navigation { overflow: hidden; position: sticky; top: 0; max-height: calc(100dvh - var(--r7-rail-top, 0px)); contain: size; }
  .r7-nav-links { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1 1 auto; overflow-y: auto; }
  .r7-nav-links .r7-nav-entry, .r7-rail-brand, .r7-rail-foot { flex-shrink: 0; }
}
@media (max-width: 800px) {
  .r7-rail-foot { display: contents; }
  .r7-rail-foot .r7-club-card { display: none; }
  #r7Navigation .r7-foot-btn { flex: 0 0 auto; min-height: 52px; white-space: nowrap; scroll-snap-align: center; }
}
#r7Navigation .r7-foot-settings { min-width: 64px; min-height: 64px; }

/* шапка: поиск, колокольчик, дата */
.r7-search { position: relative; display: flex; align-items: center; }
.r7-search-icon { position: absolute; left: 12px; color: var(--hx-text-3); display: grid; pointer-events: none; }
.r7-search-icon .svgi, .r7-search-toggle .svgi { width: 20px; height: 20px; }
.r7-search-input { width: clamp(180px, 18vw, 300px); height: 44px; padding: 0 12px 0 40px; border-radius: 12px; border: 1px solid var(--hx-line);
  background: var(--hx-raised); color: var(--hx-text); font: inherit; font-size: 14px; }
.r7-search-input::placeholder { color: var(--hx-text-3); }
.r7-search-input:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 1px; }
.r7-search-toggle { display: none; min-width: 48px; min-height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--hx-text-2); cursor: pointer; }
.r7-search-results { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: max(100%, 320px); margin: 0; padding: 6px; list-style: none;
  border-radius: 12px; border: 1px solid var(--hx-line); background: var(--hx-panel); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.r7-search-hit { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.r7-search-hit .svgi { width: 18px; height: 18px; color: var(--hx-text-3); }
.r7-search-hit:hover, .r7-search-hit:focus { background: var(--hx-raised-hover); outline: none; }
.r7-search-none { padding: 10px; color: var(--hx-text-3); font-size: 13.5px; }
@media (max-width: 1280px) {
  .r7-search-icon, .r7-search-input { display: none; }
  .r7-search-toggle { display: inline-grid; place-items: center; }
  .r7-search.is-open .r7-search-input { display: block; position: absolute; top: calc(100% + 6px); right: 0; z-index: 61; width: min(340px, 86vw); padding-left: 12px; }
  .r7-search.is-open .r7-search-results { top: calc(100% + 58px); right: 0; left: auto; }
}
.r7-bell { position: relative; display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--hx-text-2); cursor: pointer; }
.topbar .top-actions .r7-bell { background: transparent; box-shadow: none; }
.r7-bell .svgi { width: 22px; height: 22px; }
.r7-bell:hover { background: var(--hx-raised-hover); color: var(--hx-text); }
.r7-bell-count { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: #f4563e; color: #04142c; }
.r7-date { color: var(--hx-text-3); font-size: 13px; font-weight: 600; white-space: nowrap; margin-right: 6px; }
@media (max-width: 1280px) { .r7-date { display: none; } }
/* кольцо: легенда переносится под диаграмму, когда карточка узкая */
.r7-donut { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.r7-donut svg { width: 140px; flex: 0 0 140px; }
.r7-donut .r7-legend { flex: 1 1 190px; min-width: 0; }
/* Низ рельса — в потоке, после пунктов: на низком экране до него доходят прокруткой рельса (без наложения на пункты). */
.r7-kpi-delta { flex-wrap: wrap; column-gap: 4px; }
.r7-kpi-base { flex-basis: 100%; color: var(--hx-text-3); font-weight: 500; font-size: 12px; }
.r7-summary-grid .r7-tips { grid-row: span 2; }
@media (max-width: 1100px) { .r7-summary-grid .r7-tips { grid-row: auto; } }
/* ≥801: когда действий шапки больше, чем места (узкий планшет, длинное состояние связи),
   они переносятся во вторую строку, а не выходят за край экрана. */
@media (min-width: 801px) {
  body.review-redesign .topbar .top-actions { flex: 1 1 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; min-width: 0; }
  body.review-redesign .topbar { height: auto; min-height: 72px; }
}
.topbar .r7-search-toggle, .topbar .r7-search .r7-search-toggle { background: transparent; border: 0; box-shadow: none; }
.topbar .r7-search-toggle:hover { background: var(--hx-raised-hover); }
/* телефон: таблица прокручивается вбок внутри карточки, а не сжимает колонки */
@media (max-width: 800px) { .r7-page .r7-table { min-width: 640px; } }
/* AA: белый текст только на --hx-cta (4.55:1 в светлой), не на --hx-select */
.r7-seg button.is-on, .r7-tab.is-active .r7-tab-count { background: var(--hx-cta); color: var(--hx-on-cta); }
/* AA меток на цветной подложке: текст на 28% темнее (светлая) или светлее (тёмная) цвета метки — ≥5.7:1. */
.r7-tag { color: color-mix(in srgb, var(--tone) 72%, #ffffff); }
html[data-theme="light"] .r7-tag { color: color-mix(in srgb, var(--tone) 72%, #000000); }
/* Телефон: лента меню привязывается к центру пункта — выбранный пункт всегда виден целиком. */
@media (max-width: 800px) { #r7Navigation .r7-nav-entry { scroll-snap-align: center; } }
.r7-page .r7-table tfoot th, .r7-page .r7-table tfoot td { padding: 12px 10px; border-top: 1px solid var(--hx-line-strong); font-weight: 700; color: var(--hx-text); text-align: left; }
.r7-page .r7-table tfoot td.num { text-align: right; }
/* Свежесть данных страниц: время последнего успеха или предупреждение поверх старых данных. */
.r7-fresh { margin: -8px 0 0; color: var(--hx-text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.r7-fresh.is-warn { margin: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px;
  color: var(--hx-text); background: color-mix(in srgb, var(--hx-st-attn, #ffc24d) 13%, var(--hx-panel)); border: 1px solid color-mix(in srgb, #ffc24d 45%, transparent); }
.r7-fresh.is-warn .r7-fresh-icon { color: #ffc24d; display: grid; }
html[data-theme="light"] .r7-fresh.is-warn .r7-fresh-icon { color: #8a5800; }
.r7-fresh.is-warn .r7-fresh-icon .svgi { width: 20px; height: 20px; }
.r7-fresh.is-warn > span:last-child { display: grid; gap: 2px; }
.r7-fresh.is-warn strong { font-size: 14px; font-weight: 650; }
.r7-fresh.is-warn span span { color: var(--hx-text-2); font-size: 13px; }
/* «Моя смена»: слепой пересчёт и действия менеджера */
.r7-count-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.r7-count-enter { min-height: 52px; min-width: 200px; padding: 0 18px; border-radius: 12px; border: 1px dashed var(--hx-line-strong);
  background: var(--hx-raised); color: var(--hx-text); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.r7-count-error { margin: 0; color: var(--hx-st-fault); font-weight: 650; font-size: 14px; }
.r7-count-ok { margin: 0; color: var(--hx-text); font-size: 14px; }
.r7-insight-action.is-danger { border-color: color-mix(in srgb, var(--hx-st-fault) 55%, transparent); color: var(--hx-st-fault); }
#r7Navigation .r7-nav-entry[hidden] { display: none !important; }
/* Узкий планшет: в каркасе с рельсом плитки уже — заголовок и факт плитки (пилотный режим) не обрезаются двумя строками. */
@media (min-width: 801px) and (max-width: 1100px) {
  body.review-redesign .daily-lane-fact,
  body.review-redesign .daily-lane-headline { display: block; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
}
/* Меню «Менеджер» в языке новой оболочки: строки с иконкой, блокировка — контурная внизу. */
body.review-redesign .modal-body.manager-launcher { gap: 10px; }
body.review-redesign .modal-body.manager-launcher > button {
  display: flex; align-items: center; gap: 14px; justify-content: flex-start; text-align: left;
  min-height: 64px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--hx-line);
  background: var(--hx-raised); color: var(--hx-text); font-size: 16px; font-weight: 600; box-shadow: none;
}
body.review-redesign .modal-body.manager-launcher > button:hover { background: var(--hx-raised-hover); }
body.review-redesign .modal-body.manager-launcher > button:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
body.review-redesign .manager-launch-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--hx-select); background: var(--hx-select-wash); }
body.review-redesign .manager-launch-icon .svgi { width: 20px; height: 20px; }
body.review-redesign .modal-body.manager-launcher > button.manager-launch-lock {
  grid-column: 1 / -1; justify-content: center; background: transparent; color: var(--hx-st-fault);
  border-color: color-mix(in srgb, var(--hx-st-fault) 55%, transparent);
}

/* Имя группы — сразу под гостями (в видимой части формы), а не последним полем под краем. */
#visitWorkspace .daily-form > label.daily-name-field { order: 0; border-top: 0; }
/* 1101–1240: шапка в одну строку — подписи связи и оператора уходят в подсказки (title). */
@media (min-width: 1101px) and (max-width: 1240px) {
  .r7-operator-text { display: none; }
  .r7-system-state span:last-child { display: none; }
}
/* Тост ошибки: понятная фраза, ниже мелкий код для механика. */
/* Повторная привязка планшета: поверх рабочего экрана, как экран паринга. */
.terminal-repair { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--hx-bg, #04142c) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.terminal-repair-card { width: min(520px, 100%); display: grid; gap: 12px; padding: 28px; border-radius: 18px;
  background: var(--hx-panel, #0c1c38); border: 1px solid var(--hx-line, rgba(150, 190, 255, .16)); color: var(--hx-text, #eff1f6); }
.terminal-repair-card h2 { margin: 0; font-size: 22px; font-weight: 700; }
.terminal-repair-card p { margin: 0; color: var(--hx-text-2, #acb4c4); font-size: 15px; line-height: 1.45; }
.terminal-repair-card .terminal-repair-hint { color: var(--hx-text-3, #949cb0); font-size: 13.5px; }
.terminal-repair-action { margin-top: 8px; min-height: 56px; border: 0; border-radius: 12px; font-size: 17px; font-weight: 700;
  background: var(--hx-cta, #2cb8e0); color: var(--hx-on-cta, #04142c); cursor: pointer; }
.terminal-repair-action:focus-visible { outline: 3px solid var(--hx-select, #22b2d8); outline-offset: 3px; }
body > #terminalRepair { visibility: visible !important; }
.terminal-repair[hidden] { display: none; }

/* ── Правка игры в панели визита: игроки и исправление броска ─────────────── */
.r7-game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.r7-game-head h3 { margin: 0; }
.r7-game-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.r7-game-action { min-height: 44px; padding: 0 16px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: var(--hx-raised, rgba(255,255,255,.06)); color: var(--hx-text, #eef1f7); font-size: 15px; font-weight: 650; cursor: pointer; }
.r7-game-action:hover { background: var(--hx-raised-hover, rgba(255,255,255,.1)); }
.r7-game-action:focus-visible, .modal.r7-game-edit button:focus-visible, .modal.r7-game-edit input:focus-visible { outline: 3px solid var(--hx-select, #22b2d8); outline-offset: 2px; }

.modal.r7-game-edit { width: min(760px, calc(100vw - 32px)); }
.modal.r7-game-edit .modal-body { display: grid; gap: 14px; }
.modal.r7-game-edit .chip { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 999px; border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: var(--hx-raised, rgba(255,255,255,.06)); color: var(--hx-text, #eef1f7); }
.modal.r7-game-edit .chip.on { border: 2px solid var(--hx-select, #22b2d8); background: var(--hx-select-wash, rgba(34,178,216,.16)); font-weight: 750; }
.modal.r7-game-edit .chip:disabled:not(.on) { opacity: .45; }

.r7-roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.r7-roster-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 44px 44px 44px; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--hx-radius-md, 12px); background: var(--hx-raised, rgba(255,255,255,.05)); border: 1px solid var(--hx-line, rgba(255,255,255,.1)); }
.r7-roster-pos { color: var(--hx-text-3, #949cb0); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.r7-roster-name { min-height: 44px; min-width: 0; padding: 0 12px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: var(--hx-panel, rgba(0,0,0,.2)); color: var(--hx-text, #eef1f7); font-size: 16px; }
.r7-roster-bumpers { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: transparent; color: var(--hx-text-2, #c3c8d4); font-size: 14px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.r7-roster-bumpers.is-on { border-color: var(--hx-st-free, #3ecf7a); color: var(--hx-text, #eef1f7); background: color-mix(in srgb, var(--hx-st-free, #3ecf7a) 18%, transparent); }
.r7-roster-icon { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: var(--hx-radius-sm, 10px);
  border: 1px solid var(--hx-line, rgba(255,255,255,.12)); background: transparent; color: var(--hx-text-2, #c3c8d4); cursor: pointer; }
.r7-roster-icon .svgi { width: 20px; height: 20px; }
.r7-roster-icon.is-danger { color: var(--hx-st-fault, #ef5b5b); }
.r7-roster-icon:disabled { opacity: .35; cursor: default; }
.r7-roster-add { justify-self: start; min-height: 44px; padding: 0 16px; border-radius: var(--hx-radius-sm, 10px); border: 1px dashed var(--hx-line-strong, rgba(255,255,255,.22));
  background: transparent; color: var(--hx-text, #eef1f7); font-weight: 650; cursor: pointer; }

.r7-fix-players, .r7-fix-balls { display: flex; flex-wrap: wrap; gap: 8px; }
.r7-fix-frames { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.r7-fix-frame { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 2px; min-height: 58px; padding: 5px 2px; border-radius: 8px;
  border: 1px solid var(--hx-line, rgba(255,255,255,.12)); background: var(--hx-raised, rgba(255,255,255,.04)); color: var(--hx-text, #eef1f7); cursor: pointer; font-variant-numeric: tabular-nums; }
.r7-fix-frame.is-on { border: 2px solid var(--hx-select, #22b2d8); background: var(--hx-select-wash, rgba(34,178,216,.16)); }
.r7-fix-frame:disabled:not(.is-on) { opacity: .5; cursor: default; }
.r7-fix-frame-n { color: var(--hx-text-3, #949cb0); font-size: 11.5px; }
.r7-fix-frame-marks { font-size: 14px; font-weight: 700; }
.r7-fix-frame strong { font-size: 13px; color: var(--hx-text-2, #c3c8d4); min-height: 1em; }
.r7-fix-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; color: var(--hx-text-2, #c3c8d4); }
.r7-fix-change { font-size: 20px; font-weight: 800; color: var(--hx-text, #eef1f7); font-variant-numeric: tabular-nums; }
.r7-fix-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.modal.r7-game-edit .r7-fix-deck { gap: 8px; padding: 4px 0; }
.modal.r7-game-edit .r7-fix-deck .pin-row { gap: 8px; }
.modal.r7-game-edit .r7-fix-deck .pin { width: 48px; height: 48px; min-height: 0; min-width: 0; aspect-ratio: 1; font-size: 16px; border: 1px solid var(--hx-line-strong, rgba(255,255,255,.2));
  background: var(--hx-panel, rgba(0,0,0,.25)); color: var(--hx-text-3, #949cb0); }
.modal.r7-game-edit .r7-fix-deck .pin.up { border: 2px solid var(--hx-text, #eef1f7); background: var(--hx-text, #eef1f7); color: var(--hx-bg, #071226); }
.modal.r7-game-edit .r7-fix-deck .pin.is-out { opacity: .25; }
.hall-transfer-absent-reason { margin: 8px 0 0; }
.modal.r7-game-edit .r7-fix-deck.is-static .pin { width: 32px; height: 32px; font-size: 12px; }
.modal.r7-game-edit .r7-fix-deck.is-static .pin-row { gap: 5px; }
.modal.r7-game-edit .r7-fix-deck.is-static { gap: 5px; }
.r7-fix-quickrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.r7-fix-quick { min-height: 48px; padding: 0 12px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: var(--hx-raised, rgba(255,255,255,.06)); color: var(--hx-text, #eef1f7); font-size: 15px; font-weight: 700; cursor: pointer; }
.r7-fix-quick:disabled { opacity: .4; cursor: default; }
.r7-fix-quick[aria-pressed="true"] { border-color: var(--hx-accent, #56b6c2); box-shadow: inset 0 0 0 1px var(--hx-accent, #56b6c2); }
.r7-fix-quick.is-soon { border-style: dashed; font-weight: 600; }
.r7-fix-compare { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.r7-fix-compare figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.r7-fix-compare figcaption { font-size: 18px; font-weight: 800; color: var(--hx-text, #eef1f7); }
.r7-fix-arrow { font-size: 32px; color: var(--hx-select, #22b2d8); }
.r7-fix-deleted { min-width: 150px; min-height: 120px; display: grid; place-items: center; margin: 0; border-radius: 12px; border: 1px dashed var(--hx-st-fault, #ef5b5b);
  color: var(--hx-st-fault, #ef5b5b); font-weight: 700; }
.r7-fix-note { margin: 0; }
.r7-fix-changed { margin: 0; padding: 10px 12px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-st-attn, #f2b33d);
  background: color-mix(in srgb, var(--hx-st-attn, #f2b33d) 14%, transparent); color: var(--hx-text, #eef1f7); font-weight: 650; }
.modal.r7-game-edit .modal-body { gap: 12px; }
.modal.r7-game-edit #wizardBar button, .modal.r7-game-edit .wizard-bar button { min-height: 52px; font-size: 17px; padding: 0 20px; }
@media (max-width: 640px) {
  .r7-fix-editor { grid-template-columns: 1fr; justify-items: center; }
  .r7-roster-row { grid-template-columns: 24px minmax(0, 1fr) 44px 44px 44px; }
  .r7-roster-bumpers { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .r7-fix-frames { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ── PIN менеджера: пометка в шапке и экран политики ──────────────────────── */
.r7-pin-off { display:inline-flex;align-items:center;color:var(--hx-text-2); }
.r7-pin-off[hidden] { display:none; }
.r7-pin-off .screen-info-label { margin:0; }
.r7-pin-off .screen-info-trigger { color:var(--hx-text-2); }
.r7-pin-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 16px; font-weight: 700; color: var(--hx-text, #eef1f7); cursor: pointer; }
.r7-pin-toggle input { width: 24px; height: 24px; accent-color: var(--hx-select, #22b2d8); }
.r7-pin-toggle.is-inactive { opacity: .5; cursor: default; }
.r7-pin-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--hx-line, rgba(255,255,255,.1)); }
.r7-pin-field > span:first-child { font-weight: 650; color: var(--hx-text, #eef1f7); }
.r7-pin-input { display: inline-flex; align-items: center; gap: 8px; color: var(--hx-text-3, #949cb0); }
.r7-pin-input input { width: 96px; min-height: 44px; padding: 0 10px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-line-strong, rgba(255,255,255,.18));
  background: var(--hx-panel, rgba(0,0,0,.2)); color: var(--hx-text, #eef1f7); font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.r7-pin-hint { grid-column: 1 / -1; color: var(--hx-text-3, #949cb0); font-size: 13px; }
.r7-pin-warning { margin: 0; padding: 10px 12px; border-radius: var(--hx-radius-sm, 10px); border: 1px solid var(--hx-st-attn, #f2b33d);
  background: color-mix(in srgb, var(--hx-st-attn, #f2b33d) 14%, transparent); color: var(--hx-text, #eef1f7); font-size: 14px; }
.r7-pin-warning[hidden], .r7-pin-error[hidden] { display: none; }
.r7-pin-error { margin: 0; color: var(--hx-st-fault, #ef5b5b); font-weight: 650; }
.r7-pin-field .r7-nodata { justify-self: end; }
html[data-theme] body.review-redesign .daily-lanes .daily-lane[class*="glyph-"],
html[data-theme] body.review-redesign .daily-lanes .daily-lane[class*="glyph-"]:hover,
html[data-theme] body.review-redesign .daily-lanes .daily-lane[class*="glyph-"].is-selected,
html[data-theme] body.review-redesign .daily-lanes .daily-lane[class*="glyph-"].is-selected:hover {
  background: color-mix(in srgb, var(--glyph) 10%, var(--tile-base));
}
html[data-theme] body.review-redesign .daily-lanes .daily-lane .daily-lane-no { color: var(--tile-number); }
html[data-theme] body.review-redesign .daily-lanes .daily-lane .daily-lane-state { color: var(--tile-label); }
.r7w-columns { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start;font-size:14px; }
.r7w-columns > * { min-width:0; }
.r7w-columns .r7-admin-card { display:grid;gap:12px;padding:20px;background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:14px; }
.r7w-columns h2 { margin:0;font-size:18px; }
.r7w-date { display:flex;align-items:center;gap:12px; }
.r7w-date button { min-width:48px; }
.r7w-facts { display:grid;gap:12px;margin:0; }
.r7w-facts > div { display:flex;justify-content:space-between;gap:12px; }
.r7w-facts dt { color:var(--hx-text-2); }.r7w-facts dd { margin:0; }
.r7w-calendar-scroll { overflow:auto;border:1px solid var(--hx-line);border-radius:12px; }
.r7w-calendar { position:relative;display:grid;grid-template-columns:64px repeat(14,minmax(64px,1fr));grid-auto-rows:56px;min-width:960px;background:var(--hx-panel); }
.r7w-calendar-head,.r7w-calendar-lane { display:grid;place-items:center;color:var(--hx-text-2);border-bottom:1px solid var(--hx-line);font-size:13px;font-weight:600; }
.r7w-slot { margin:0;border:0;border-bottom:1px solid var(--hx-line);border-left:1px solid var(--hx-line);border-radius:0;background:transparent;min-width:0; }
.r7w-slot:hover { background:var(--hx-raised-hover); }
.r7w-booking { z-index:1;margin:4px;padding:4px 10px;min-width:0;min-height:48px;max-height:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid var(--hx-line);border-radius:6px;font-size:13px;font-weight:600; }
.r7w-booking.status-provisional { background:color-mix(in srgb,var(--hx-st-book) 15%,var(--hx-panel)); }
.r7w-booking.status-confirmed { background:color-mix(in srgb,var(--hx-st-free) 15%,var(--hx-panel)); }
.r7w-booking.status-arrived { background:color-mix(in srgb,var(--hx-st-pause) 15%,var(--hx-panel)); }
.r7w-booking.is-selected { border-color:var(--hx-select);outline:1px solid var(--hx-select); }
.r7w-now { position:absolute;top:48px;bottom:0;width:1px;background:var(--hx-select);pointer-events:none; }
.r7w-booking-legend { display:flex;gap:16px;flex-wrap:wrap;list-style:none;padding:0;color:var(--hx-text-2);font-size:13px; }
.r7w-booking-legend li::before { content:'';display:inline-block;width:8px;height:8px;margin-right:6px;background:var(--hx-st-neutral);border-radius:2px; }
.r7w-booking-legend .status-provisional::before { background:var(--hx-st-book); }.r7w-booking-legend .status-confirmed::before { background:var(--hx-st-free); }
.r7w-booking-legend .status-arrived::before { background:var(--hx-st-pause); }.r7w-booking-legend .status-completed::before { background:var(--hx-st-play); }
.r7w-booking-legend .status-seated::before { background:var(--hx-st-play); }.r7w-booking-legend .status-noshow::before { background:var(--hx-st-fault); }
.r7w-booking-legend .status-cancelled::before { background:var(--hx-st-fault); }
.r7w-table-scroll { overflow:auto; }.r7w-group { text-align:left;min-height:48px;background:transparent;border:1px solid transparent; }
.r7w-group[aria-pressed="true"] { border-color:var(--hx-select);background:var(--hx-select-wash); }
.r7w-settings-back { min-height:48px;width:max-content;margin-bottom:16px; }
.r7w-columns button.big,.r7-page-actions button.big { min-height:48px;padding:12px 16px;font-size:15px; }
.r7w-facts dt { font-size:14px; }.r7w-facts dd { font-size:15px; }
.r7-page-head h2 { font-size:22px; }.r7w-date strong { font-size:15px; }
.r7-club-facts { display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;color:var(--hx-text-2);font-size:12px; }
.r7-club-facts .clock { font-size:13px; }.r7-club-facts .r7-date { display:none; }
.r7-club-facts .r7-system-state,.r7-club-facts .review-operating-mode { margin:0;font-size:11px;padding:0; }
body.review-redesign .topbar #reviewDayReport,body.review-redesign .topbar #refreshBtn,body.review-redesign .topbar #reviewShiftState { display:none!important; }
body.review-redesign #terminal-persist-banner[hidden] { display:none!important; }
body.review-redesign #r7Search { min-width:48px;flex:0 1 240px; }
body.review-redesign #r7Search.is-open .r7-search-input { width:100%;min-width:120px; }
body.review-redesign .r7-operator[role="button"] { cursor:pointer; }
body.review-redesign .r7-admin-body { display:block; }
body.review-redesign .r7-admin-content { width:100%;min-width:0; }
body.review-redesign .daily-lane.glyph-attn,.hall-legend-item.glyph-attn { --glyph:var(--hx-st-fault); }
.r7-nav-links { display:contents; }
@media(min-width:801px) {
 body.review-redesign #r7Navigation { overflow:hidden;position:sticky;top:0;max-height:calc(100dvh - var(--r7-rail-top,0px));contain:size; }
 .r7-nav-links { display:flex;flex-direction:column;gap:6px;min-height:0;flex:1 1 auto;overflow-y:auto; }
 .r7-nav-links .r7-nav-entry,.r7-rail-brand,.r7-rail-foot { flex-shrink:0; }
}
#r7Navigation .r7-foot-settings { min-width:64px;min-height:64px; }
@media(max-width:1050px) { .r7w-columns { grid-template-columns:minmax(0,1fr); }.r7w-calendar-scroll { max-height:none; } }
@media(max-width:800px) { body.review-redesign #r7Navigation .r7-rail-foot { display:contents; }.r7-rail-foot .r7-club-card,.r7-club-facts { display:none; } }
body.review-redesign .modal.fullscreen .modal-body.r7-admin-body { display:block; }
.r7-club-facts { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:4px 0; }
.r7-club-facts #r7SystemState,.r7-club-facts #r7PinOff { grid-column:1 / -1;min-height:0;font-size:11px;white-space:normal; }
.r7-club-facts #reviewOperatingMode { min-height:0;font-size:11px; }
.r7-club-facts #clock { font-size:12px; }
.r7-club-facts #r7ThemeToggle { min-width:36px;min-height:36px;width:36px;height:36px;margin:0; }
.r7-club-facts #r7ThemeToggle .svgi { width:18px;height:18px; }
.r7-club-facts .shift { grid-column:1 / -1;min-width:0; }
.r7-club-facts #reviewShiftState { display:flex;align-items:center;min-height:44px;white-space:normal;overflow-wrap:anywhere; }
.r7-club-facts .shift[hidden],.r7-club-facts #reviewShiftState[hidden] { display:none!important; }
body.review-redesign #r7Search { flex:1 1 200px;max-width:360px; }
@media(min-width:1001px) {
 body.review-redesign #r7Search .r7-search-input { display:block;width:100%;min-width:0; }
 body.review-redesign #r7Search .r7-search-icon { display:grid; }
 body.review-redesign #r7Search .r7-search-toggle { display:none; }
}
@media(max-width:1000px) {
 body.review-redesign #r7Search { flex:0 0 48px; }
 body.review-redesign #r7Search.is-open .r7-search-input { width:min(340px,86vw);max-width:calc(100vw - 24px); }
}
.r7w-calendar { grid-template-columns:64px repeat(24,minmax(72px,1fr));min-width:1792px; }
.r7w-booking { position:absolute;margin:0;display:flex;flex-direction:column;justify-content:center;gap:2px; }
.r7w-booking strong,.r7w-booking small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.r7w-now { top:56px; }
.r7w-booking-legend .status-cancelled::before { background:var(--hx-st-neutral); }
@media(max-width:800px) { body.review-redesign .r7-club-facts { display:none; } }
.r7w-calendar { grid-template-columns:64px repeat(24,minmax(120px,1fr));min-width:2944px; }
.r7w-calendar-lane,.r7w-calendar-head:first-child { position:sticky;left:0;z-index:3;background:var(--hx-panel); }
.r7w-calendar-head:first-child { font-size:11px;overflow:hidden; }
.r7w-slot { box-shadow:none!important; }
.r7w-columns .r7-admin-card > * { min-width:0;max-width:100%;overflow-wrap:anywhere; }
.r7w-columns .r7-admin-card button,.r7w-columns .r7-admin-card select { width:100%;min-width:0;max-width:100%;font-size:15px;box-sizing:border-box; }
.r7w-columns select { min-height:48px;padding:8px 12px;background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);border-radius:8px; }
.r7w-columns .r7-note { white-space:normal;line-height:1.4; }
.r7w-more { min-width:44px;min-height:48px; }
@media(max-width:800px) { #r7Navigation .r7-foot-btn { flex:0 0 auto;min-height:52px;white-space:nowrap;scroll-snap-align:center; } }
#visitWorkspace .daily-game-choice select { width:100%;min-width:0;min-height:44px;padding:8px 12px;font-size:14px;background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);border-radius:8px; }
@media(min-width:801px) and (max-width:1000px) { body.review-redesign #r7HeaderTitle { display:block;min-width:0;font-size:20px; } }
@media(max-width:640px) { .r7w-date { max-width:100%;gap:8px; }.r7w-date strong { min-width:0;font-size:13px;overflow-wrap:anywhere; }.r7w-date button { flex-shrink:0; } }
@media (min-width:1001px) {
  body.review-redesign:not(.r7-page-open):has(.lanes-panel:not([hidden]) #hallScaleStage) .topbar { height:64px; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) .lanes-panel { margin:2px 4px; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) .visit-workspace { margin:8px 8px 8px 0; }
}
body.review-redesign .lanes-panel:has(#hallScaleStage) { padding:3px 7px; gap:0; overflow:hidden; }
body.review-redesign .lanes-panel:has(#hallScaleStage) .visit-map-head h2 { margin:0; line-height:1.2; font-size:16px; }
@media (min-width:1001px) {
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #r7Navigation .r7-foot-btn { box-sizing:border-box; width:100%; min-width:0; max-width:100%; gap:10px; padding-inline:10px; font-size:14px; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #reviewOperatingMode { white-space:normal; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #visitWorkspace .daily-stepper { position:static; align-self:flex-end; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #visitWorkspace .daily-stepper button { margin:0; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #visitWorkspace .daily-field:has(> .daily-stepper-slot) > .daily-row-label { min-height:0; }
}
body.review-redesign .lanes-panel:has(#hallScaleStage) .visit-map-head { flex:none; min-height:0; gap:4px 10px; margin:0 0 4px; }
body.review-redesign .lanes-panel:has(#hallScaleStage) .hall-vc-indicator { font-size:11px; }
body.review-redesign .lanes-panel:has(#hallScaleStage) .hall-legend { flex:none; margin:0; gap:4px 12px; font-size:11px; }
.hall-scale-stage { position:relative; flex:1 1 0; min-width:0; min-height:0; overflow:hidden; padding:2px; touch-action:pan-y; }
.hall-scale-stage.has-next-page::after { content:""; position:absolute; top:0; right:0; bottom:0; width:10px; pointer-events:none; background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--hx-select) 22%,transparent)); }
body.review-redesign #lanes.daily-lanes { display:grid; width:100%; height:auto; min-height:0; flex:none; grid-template-columns:repeat(var(--hall-columns,2),minmax(0,1fr)); grid-auto-rows:auto; align-content:start; gap:8px; overflow:visible; }
body.review-redesign #lanes .daily-lane-pair { position:relative; display:grid; grid-template-columns:repeat(2,var(--hall-tile)); grid-template-rows:var(--hall-tile); height:auto; min-height:0; gap:3px; padding:3px; border-radius:8px; background:transparent; }
body.review-redesign #lanes .daily-lane-pair.is-offline::after { content:""; position:absolute; left:6px; right:6px; bottom:0; height:3px; border-radius:2px; background:var(--hx-st-attn); }
.hall-pair-alert { position:absolute; z-index:2; left:50%; top:0; transform:translateX(-50%); width:18px; height:18px; display:grid; place-items:center; border:2px solid var(--hx-bg); border-radius:50%; background:var(--hx-st-attn); color:var(--hx-text); font-size:11px; font-weight:800; }
.hall-controller-band { grid-column:1 / -1; display:block; width:100%; min-width:0; height:100%; font-size:calc(var(--hall-tile) * .075); line-height:1.5; color:var(--hx-text-3); text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hall-controller-band.is-offline { background:var(--hx-st-neutral); color:var(--hx-bg); text-align:center; }
body.review-redesign #lanes .daily-lane { box-sizing:border-box; width:var(--hall-tile); height:var(--hall-tile); min-height:0; min-width:0; max-height:none; aspect-ratio:1; display:flex; justify-content:flex-start; gap:0; padding:0; border-radius:7px; overflow:hidden; transform:none; }
body.review-redesign #lanes .daily-lane-top { flex:none; align-self:stretch; padding:calc(var(--hall-tile) * .05) calc(var(--hall-tile) * .07) calc(var(--hall-tile) * .03); }
body.review-redesign #lanes .daily-lane-no { font-size:calc(var(--hall-tile) * .28); line-height:1; text-align:right; }
body.review-redesign #lanes .daily-lane[data-parity="even"] .daily-lane-no { text-align:left; }
body.review-redesign #lanes .daily-lane-state { flex:none; display:block; width:100%; max-width:100%; box-sizing:border-box; padding:calc(var(--hall-tile) * .025) 2px; font-size:calc(var(--hall-tile) * .095); line-height:1.2; font-weight:700; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:color-mix(in srgb,var(--glyph) 22%,var(--tile-base)); }
body.review-redesign #lanes .daily-lane-state-mark, body.review-redesign #lanes .daily-lane-glyph, body.review-redesign #lanes .daily-lane-tech { display:none; }
.hall-main-figure { flex:1; display:flex; align-items:center; justify-content:center; max-width:100%; min-height:0; padding:0 4px; font-size:calc(var(--hall-tile) * .105); font-weight:700; line-height:1.2; white-space:nowrap; overflow:hidden; }
body.review-redesign #lanes.is-tiny .hall-main-figure { display:none; }
body.review-redesign #lanes.is-tiny .daily-lane-no { font-size:calc(var(--hall-tile) * .36); }
body.review-redesign #lanes .daily-lane.is-ending { box-shadow:inset 0 0 0 2px var(--hx-st-fault); }
body.review-redesign #lanes .daily-lane-test-badge { top:auto; bottom:2px; left:2px; padding:0 3px; font-size:calc(var(--hall-tile) * .07); }
body.review-redesign #lanes.is-tiny .daily-lane-test-badge { display:none; }
.hall-scale-controls { flex:none; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px; padding-top:4px; font-size:12px; }
.hall-scale-controls label { display:flex; align-items:center; gap:4px; margin-right:auto; }
.hall-scale-controls input { box-sizing:border-box; width:44px; min-height:44px; padding:4px; border:1px solid var(--hx-line-strong); border-radius:6px; background:var(--hx-raised); color:var(--hx-text); font:inherit; }
.hall-scale-controls button { box-sizing:border-box; min-width:44px; min-height:44px; padding:4px 8px; border:1px solid var(--hx-line-strong); border-radius:6px; background:var(--hx-raised); color:var(--hx-text); font:inherit; cursor:pointer; }
.hall-scale-controls button:disabled { opacity:.4; cursor:default; }
.hall-scale-controls button:focus-visible,.hall-scale-controls input:focus-visible { outline:2px solid var(--hx-select); outline-offset:1px; }
.hall-scale-controls .hall-jump-source, #hallNextLane, #hallNextPair { display:none; }
.hall-scale-controls #hallZoomOut { margin-left:auto; }
.hall-scale-controls { justify-content:flex-start; }
.hall-page-dots { display:flex; max-width:25%; overflow:auto; gap:3px; }
.hall-scale-controls .hall-page-dot { min-width:22px; min-height:32px; padding:0; border:0; background:transparent; }
.hall-page-dot::after { content:""; display:block; height:5px; border-radius:3px; background:var(--hx-line-strong); }
.hall-page-dot[aria-current="page"]::after { background:var(--hx-select); }
.hall-quick-buttons { flex:none; display:flex; justify-content:center; gap:8px; flex-wrap:wrap; padding:8px 0 10px; border-top:1px solid var(--hx-line); }
.hall-quick-button { box-sizing:border-box; width:92px; min-height:64px; padding:5px; border:1px solid var(--hx-line-strong); border-radius:12px; background:var(--hx-raised); color:var(--hx-text); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:12px; line-height:1.2; cursor:pointer; }
.hall-quick-button .svgi { width:22px; height:22px; color:var(--hx-select); }
.hall-quick-button.is-add { border-style:dashed; color:var(--hx-text-2); background:transparent; }
.hall-quick-button:focus-visible,.hall-equipment:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
.hall-equipment { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:4px 10px; border:1px solid var(--hx-st-attn); border-radius:22px; background:var(--hx-panel); color:var(--hx-text); font-size:12px; white-space:nowrap; cursor:pointer; }
body.review-redesign .topbar .top-actions { flex:0 0 auto; min-width:max-content; flex-wrap:nowrap; }
.hall-equipment[hidden] { display:none; }
.hall-equipment.is-unknown { border-color:var(--hx-line-strong); color:var(--hx-text-2); }
.hall-equipment .svgi { width:16px; height:16px; color:var(--hx-st-attn); }
.hall-equipment.is-unknown .svgi { color:var(--hx-text-2); }
.hall-equipment-tablet,.hall-equipment-phone { display:none; }
.hall-equipment-list { list-style:none; padding:0; }
.hall-equipment-list li { display:grid; gap:5px; padding:10px 0; border-top:1px solid var(--hx-line); }
.hall-equipment-list small { color:var(--hx-text-3); }
.modal.hall-equipment-modal { position:absolute; top:72px; right:16px; width:min(380px,calc(100vw - 24px)); max-height:calc(100dvh - 96px); }
.modal.hall-quick-modal { position:absolute; bottom:96px; left:calc(var(--hx-rail-w,216px) + 14px); width:min(734px,calc(100vw - var(--hx-rail-w,216px) - 30px)); max-height:calc(100dvh - 160px); }
#modal:has(.hall-equipment-modal),#modal:has(.hall-quick-modal) { background:transparent; backdrop-filter:none; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) { background:var(--hx-panel); border:1px solid var(--hx-line-strong); border-radius:14px; color:var(--hx-text); box-shadow:var(--elev-2); height:auto; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) .modal-head { min-height:48px; height:auto; padding:12px 16px; border-bottom:1px solid var(--hx-line); background:transparent; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) .modal-head h3 { font-size:16px; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) .modal-close { width:44px; height:44px; min-width:44px; min-height:44px; font-size:24px; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) #modalBody { display:block; padding:14px 16px; font-size:13px; line-height:1.45; overflow:auto; max-height:calc(100dvh - 220px); }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) #modalBody p { font-size:inherit; margin:0 0 10px; }
#modal .modal:is(.hall-equipment-modal,.hall-quick-modal) #modalBody button { min-height:44px; padding:8px; font-size:13px; color:var(--hx-text); background:var(--hx-raised); border:1px solid var(--hx-line-strong); border-radius:10px; }
#modal .hall-equipment-modal #wizardBar:empty { display:none; }
#modal .hall-quick-modal #wizardBar { padding:10px 16px; background:transparent; border-top:1px solid var(--hx-line); }
#modal .hall-quick-modal #wizardBar button { width:auto; min-height:44px; padding:8px 16px; font-size:14px; background:var(--hx-primary); color:var(--hx-on-primary); }
.hall-quick-selected,.hall-quick-options { display:flex; gap:8px; flex-wrap:wrap; margin-block:12px; }
.hall-quick-edit-item { display:grid; grid-template-columns:1fr 1fr; max-width:140px; border:1px solid var(--hx-select); border-radius:12px; padding:4px; }
.hall-quick-edit-item .hall-quick-name { grid-column:1 / -1; min-height:48px; }
.hall-quick-edit-item .hall-quick-remove { grid-column:1 / -1; }
.hall-quick-edit-item button { min-height:36px; }
.hall-quick-options button:disabled { opacity:.4; }
body.review-redesign .lanes-panel:has(#hallScaleStage) #visitMapHead { display:none; }
body.review-redesign .lanes-panel:has(#hallScaleStage) .hall-legend { padding:2px 0 8px; gap:4px 10px; }
@media (max-width:1100px) {
  .hall-equipment-full { display:none; }
  .hall-equipment-tablet { display:inline; }
}
@media (max-width:767px) {
  .hall-equipment-tablet { display:none; }
  .hall-equipment-phone { display:inline; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #r7SystemState:not(.is-offline) .r7-status-full { display:none; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) #r7SystemState:not(.is-offline) .r7-status-compact { display:inline; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage) .topbar { padding-block:4px; }
  .hall-equipment { padding-inline:8px; }
  .hall-scale-controls,.hall-quick-buttons { display:none; }
  body.review-redesign .lanes-panel:has(#hallScaleStage) { height:auto; }
  .hall-scale-stage { flex:none; overflow:visible; }
  .hall-scale-stage.has-next-page::after { display:none; }
  body.review-redesign .lanes-panel:has(#hallScaleStage) { padding-bottom:64px; clip-path:inset(0); }
  body.review-redesign .lanes-panel:has(#hallScaleStage) .hall-legend { position:fixed; inset:auto 12px calc(72px + env(safe-area-inset-bottom,0px)); z-index:1; padding:6px 0; background:var(--hx-bg); border-top:1px solid var(--hx-line); }
  .modal.hall-quick-modal { left:12px; width:calc(100vw - 24px); bottom:84px; }
}
.security-backdrop { position:fixed; inset:var(--security-top,0px) 0 0; z-index:75; display:grid; place-items:center; padding:16px; background:color-mix(in srgb,var(--hx-bg) 88%,transparent); backdrop-filter:blur(6px); overflow:auto; }
.security-card { box-sizing:border-box; width:min(760px,100%); max-height:calc(100dvh - var(--security-top,0px) - 32px); overflow:auto; padding:22px; border:1px solid var(--hx-line-strong); border-radius:16px; background:var(--hx-panel); color:var(--hx-text); box-shadow:var(--elev-2); }
.security-card h2 { margin:0 0 6px; font-size:22px; line-height:1.3; }
.security-card p { line-height:1.45; }
.security-login-form,.security-columns { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:22px; }
.security-login-fields { min-width:0; }
.security-field { display:grid; gap:7px; min-width:0; margin:12px 0; font-size:13px; color:var(--hx-text-2); }
.security-field input,.security-field select,.security-page select,.security-setting input[type="number"] { box-sizing:border-box; width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid var(--hx-line-strong); border-radius:12px; background:var(--hx-raised); color:var(--hx-text); font:inherit; font-size:16px; }
.security-field input[autocomplete="one-time-code"] { letter-spacing:.2em; }
.security-card button,.security-page button,.security-chrome button { box-sizing:border-box; min-height:44px; padding:9px 12px; border:1px solid var(--hx-line-strong); border-radius:10px; background:var(--hx-raised); color:var(--hx-text); font:inherit; cursor:pointer; }
.security-card button.primary,.security-page button.primary { background:var(--hx-select); color:var(--hx-bg); font-weight:700; }
.security-card button:disabled,.security-page button:disabled { opacity:.55; cursor:default; }
.security-card input:focus-visible,.security-card button:focus-visible,.security-page :is(button,input,select):focus-visible,.security-chrome button:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
.security-keypad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-self:end; }
.security-keypad button { min-height:56px; font-size:18px; padding:6px; }
.security-keypad.is-compact { grid-template-columns:repeat(6,minmax(0,1fr)); margin:12px 0; }
.security-keypad.is-compact button { min-height:56px; }
.security-error,.security-form-error { color:var(--hx-text); font-size:14px; overflow-wrap:anywhere; }
.security-error:not([hidden]):not(:empty) { padding:10px 12px; border:1px solid var(--hx-st-fault); border-radius:10px; background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-panel)); }
.security-locked { width:min(520px,100%); text-align:center; }
.security-locked .security-login-form { display:flex; flex-direction:column; gap:12px; }
.security-locked .security-keypad,.security-locked .security-login-fields { width:min(300px,100%); margin:auto; }
.security-locked>button { margin-top:12px; }
.security-approval { width:min(440px,100%); padding:24px; border-radius:20px; }
.security-approval .security-requester { margin:4px 0 16px; color:var(--hx-text-2); font-size:14px; }
.security-approval .security-action { display:grid; grid-template-columns:minmax(0,1fr); gap:8px 12px; padding:14px 16px; margin:0; border-radius:14px; background:var(--hx-bg); }
.security-approval .security-action:has(.security-action-value) { grid-template-columns:minmax(0,1fr) auto; }
.security-action-summary { min-width:0; align-self:center; }
.security-action-summary>strong { display:block; font-size:17px; line-height:1.3; }
.security-action-summary>small { display:block; margin-top:2px; color:var(--hx-text-2); font-size:13px; line-height:1.4; }
.security-action-value { align-self:start; max-width:100%; font-size:24px; line-height:1.3; font-variant-numeric:tabular-nums; white-space:nowrap; }
.security-action-fields { grid-column:1 / -1; min-width:0; font-size:13px; color:var(--hx-text-2); }
.security-action-fields>p { margin:4px 0 0; }
.security-approval .security-columns { grid-template-columns:repeat(2,minmax(0,1fr)); margin:16px 0 10px; }
.security-approval .security-field { margin:0; gap:6px; }
.security-approval .security-field input { min-height:48px; font-size:18px; }
.security-approval .security-keypad.is-compact { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }
.security-approval .security-keypad button { min-height:56px; font-size:20px; }
.security-approval button { box-shadow:none; }
.security-approval .security-keypad button:last-child { background:transparent; border-color:transparent; color:var(--hx-text-2); }
html[data-theme="light"] .security-approval .security-action { background:var(--hx-raised); }
.security-approval .security-buttons { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:10px; margin:14px 0 0; }
.security-approval .security-buttons button { min-height:52px; font-size:16px; font-weight:600; }
.security-approval .security-buttons .primary { background:var(--hx-cta); color:var(--hx-on-cta); border-color:transparent; }
.security-approval form>p:last-child { margin:12px 0 0; text-align:center; color:var(--hx-text-2); font-size:12px; }
@media (max-width:600px) {
  .security-backdrop:has(.security-approval) { place-items:end center; padding:0; }
  .security-approval { width:100%; max-height:100dvh; padding:20px 16px; border-radius:20px 20px 0 0; }
  .security-approval h2 { font-size:20px; }
}
.security-approval .security-columns { gap:10px; }
.security-action { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px; margin:12px 0; border:1px solid var(--hx-line); border-radius:12px; background:var(--hx-raised); overflow-wrap:anywhere; }
.security-action>p { grid-column:1 / -1; margin:0; color:var(--hx-text-2); }
.security-action-details { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; }
.security-action-details>strong { grid-column:1 / -1; }
.security-action-details>p { grid-column:auto; font-size:14px; line-height:1.45; }
@media (max-width:600px) { .security-action-details { grid-template-columns:minmax(0,1fr); } }
.security-buttons,.security-chrome { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.security-buttons { justify-content:flex-end; }
.security-chrome { min-width:0; font-size:13px; color:var(--hx-text-2); margin:0 0 12px; }
#securityChrome { margin:0; margin-left:auto; }
.security-who { min-width:0; overflow-wrap:anywhere; }
.topbar:has(#securityChrome) #r7Operator { display:none; }
.security-chrome button { font-size:12px; }
.security-page { color:var(--hx-text); }
.security-page .security-columns { align-items:start; }
.security-panel { min-width:0; padding:16px; border:1px solid var(--hx-line); border-radius:14px; background:var(--hx-panel); }
.security-panel h3 { margin:0 0 16px; font-size:18px; }
.security-setting { display:flex; align-items:center; gap:10px; padding:14px 0; border-bottom:1px solid var(--hx-line); }
.security-setting>span:first-child { margin-right:auto; }
.security-setting input[type="number"] { width:80px; flex:none; }
.security-setting input[type="checkbox"],.security-rights input { box-sizing:border-box; width:22px; height:22px; min-height:22px; padding:0; flex:none; accent-color:var(--hx-select); }
.security-table-scroll { max-width:100%; overflow-x:auto; }
.security-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.security-table :is(th,td) { padding:10px 8px; border-bottom:1px solid var(--hx-line); vertical-align:top; overflow-wrap:anywhere; }
.security-table th { font-size:12px; color:var(--hx-text-2); }
.security-table button { text-align:left; }
.security-table button[aria-pressed="true"] { border-color:var(--hx-select); background:color-mix(in srgb,var(--hx-select) 15%,var(--hx-panel)); }
.security-table tr.is-selected { background:color-mix(in srgb,var(--hx-select) 12%,var(--hx-panel)); }
.security-account-status { display:inline-block; padding:2px 7px; border:1px solid currentColor; border-radius:12px; font-size:12px; white-space:nowrap; }
.security-account-status.is-enabled { color:var(--hx-st-free); }
.security-account-status.is-account_locked { color:var(--hx-st-fault); }
.security-account-status.is-disabled { color:var(--hx-text-2); }
.security-employee-form .security-setting>span { min-width:0; }
.security-employee-form .security-setting small { display:block; margin-top:4px; }
.security-employee-form select { width:auto; max-width:50%; min-width:120px; }
.security-employee-form .security-setting button { flex:none; }
.security-employee-actions { margin-top:14px; }
.security-setting input[role="switch"] { appearance:none; position:relative; box-sizing:border-box; width:46px; min-width:46px; max-width:46px; height:44px; min-height:44px; max-height:44px; padding:0; border:0; background:transparent; cursor:pointer; }
.security-setting input[role="switch"]::before { content:""; position:absolute; inset:9px 0; border:1px solid var(--hx-line-strong); border-radius:15px; background:var(--hx-raised); }
.security-setting input[role="switch"]::after { content:""; position:absolute; left:4px; top:13px; width:18px; height:18px; border-radius:50%; background:var(--hx-text-2); }
.security-setting input[role="switch"]:checked::before { background:var(--hx-select); border-color:var(--hx-select); }
.security-setting input[role="switch"]:checked::after { left:24px; background:var(--hx-bg); }
.security-setting input[role="switch"]:disabled { opacity:.55; cursor:default; }
.security-setting input[role="switch"]:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; border-radius:15px; }
.security-panel h3:not(:first-child) { margin-top:22px; }
.security-rights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.security-rights label { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:10px 0; border-top:1px solid var(--hx-line); font-size:14px; }
.security-rights b { color:var(--hx-select); min-width:22px; }
.security-rights input { margin-left:auto; }
.security-editor { max-width:720px; margin:0 auto; }
.security-settings-form { display:flex; flex-direction:column; gap:0; }
.security-settings-form>p { margin:0 0 12px; }
.security-setting { margin:0; min-height:0; box-sizing:border-box; }
.security-setting input { margin:0; }
.security-off-banner { grid-column:2 / -1; grid-row:3; display:flex; align-items:center; gap:18px; padding:10px 20px; border-block:1px solid color-mix(in srgb,var(--warn) 35%,transparent); background:color-mix(in srgb,var(--warn) 16%,var(--hx-bg)); color:var(--hx-text); font-size:14px; line-height:1.4; }
.security-off-banner strong { flex:none; max-width:180px; }
.security-off-banner span { flex:1; }
.security-off-banner button { flex:none; min-height:44px; padding:8px 12px; border:1px solid var(--hx-line-strong); border-radius:10px; background:var(--hx-panel); color:var(--hx-text); font:inherit; }
.security-off-banner button:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
.security-card [hidden],.security-page [hidden] { display:none !important; }
.security-lock-icon { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 14px; border-radius:16px; background:var(--hx-raised); color:var(--hx-select); }
.security-lock-icon .svgi { width:32px; height:32px; }
.security-page,.security-page p,.security-setting,.security-setting>span { font-size:14px; line-height:1.45; }
.security-table { min-width:500px; }
.security-staff-table td:first-child { min-width:36px; white-space:nowrap; }
.security-staff-table td:nth-child(2) { min-width:120px; }
.security-staff-table td:nth-child(3) { min-width:80px; overflow-wrap:normal; }
.security-staff-table td:nth-child(5) { min-width:90px; }
.security-staff-table th:first-child { white-space:nowrap; }
.security-staff-table button[data-employee-id] { min-height:44px; padding:0; border:0; border-radius:4px; background:transparent; box-shadow:none; }
.security-staff-table button[data-employee-id]:hover { text-decoration:underline; }
#modal:has(.security-page) { top:var(--security-page-top,72px); left:var(--security-page-left,0px); padding:0; background:var(--hx-bg); backdrop-filter:none; }
#modal:has(.security-page) .modal.fullscreen { width:100%; height:100%; max-width:none; max-height:100%; grid-template-rows:auto minmax(0,1fr) auto; border:0; border-radius:0; background:var(--hx-bg); color:var(--hx-text); }
#modal:has(.security-page) .modal-head { padding:12px 20px; min-height:64px; border-bottom:1px solid var(--hx-line); }
#modal:has(.security-page) .modal-head h3 { font-size:20px; }
#modal:has(.security-page) .modal-close { width:44px; height:44px; min-width:44px; min-height:44px; font-size:24px; }
#modal:has(.security-page) .security-chrome { padding:8px 20px; margin:0; }
#modal:has(.security-page) .modal-head { display:flex; flex-wrap:wrap; gap:8px; }
#modal:has(.security-page) .modal-head h3 { flex:1; order:0; }
#modal:has(.security-page) .modal-head .security-chrome { order:1; padding:0; }
#modal:has(.security-page) .modal-close { order:2; }
#modal:has(.security-page) .modal-body { padding:18px 20px; min-height:0; overflow:auto; }
.security-page .muted,.security-card .muted { color:var(--hx-text-2); font-size:13px; }
@media(max-width:900px) { .security-page .security-columns { grid-template-columns:1fr; } }
@media(max-width:599px) {
  .security-backdrop { padding:10px; }
  .security-card { padding:18px; max-height:calc(100dvh - var(--security-top,0px) - 20px); }
  .security-login-form { grid-template-columns:1fr; gap:12px; }
  .security-approval .security-columns { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .security-keypad.is-compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .security-chrome { width:100%; }
  #securityChrome { justify-content:flex-end; }
  #securityChrome .security-who { width:100%; text-align:right; }
  .security-off-banner { flex-wrap:wrap; padding:10px 12px; gap:8px; }
  .security-off-banner strong { max-width:none; width:100%; }
  .security-off-banner span { min-width:160px; }
  .security-off-banner button { flex:1; }
  .security-rights { grid-template-columns:1fr; }
  .security-buttons>button { flex:1; }
}
@media (min-width:768px) and (max-width:1000px) {
  body.review-redesign .lanes-panel:has(#hallScaleStage) { height:calc(100dvh - 120px); min-height:500px; }
}
@media (max-width:767px) {
  body.review-redesign .lanes-panel:has(#hallScaleStage) { height:auto; }
  .hall-scale-stage { flex:none; overflow:visible; }
  .hall-scale-controls { justify-content:flex-start; }
  .hall-scale-controls input { font-size:16px; }
  body.review-redesign .lanes-panel:has(#hallScaleStage) .hall-legend { gap:6px 12px; }
}

body.review-redesign[data-navigation] { --hx-rail-w:216px; }
body.review-redesign[data-navigation="collapsed"] { --hx-rail-w:84px; }
body.review-redesign[data-navigation] #r7Navigation {
  box-sizing:border-box; width:var(--hx-rail-w); padding:14px 12px; gap:0;
  background:var(--hx-chrome); border-right:1px solid var(--hx-line); contain:none;
  overflow-x:hidden; overflow-y:auto; max-height:100dvh; position:sticky; top:0;
  scrollbar-width:thin; flex-direction:column;
}
#r7Navigation .r7-rail-brand { position:relative; display:flex; align-items:center; justify-content:space-between; flex:none; min-height:48px; padding:0 0 10px 8px; margin:0; border:0; order:-1; }
#r7Navigation .r7-rail-brand-row { margin:0; gap:8px; }
#r7Navigation .r7-rail-word { font-size:24px; }
#r7Navigation .r7-rail-emblem { width:32px; height:32px; }
#r7Navigation .r7-rail-brand-sub { display:none; }
.r7-nav-toggle { flex:none; width:36px; min-width:36px; height:36px; min-height:36px; padding:0; border:1px solid var(--hx-line); border-radius:10px; background:transparent; color:var(--hx-text-3); font-size:26px; cursor:pointer; }
body.review-redesign[data-navigation] #r7Navigation .r7-nav-links { display:flex; flex-direction:column; gap:0; overflow:visible; flex:none; }
body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry {
  position:relative; display:flex; flex-direction:row; justify-content:flex-start; align-items:center;
  box-sizing:border-box; width:100%; min-width:0; height:48px; min-height:48px; flex:none;
  padding:0 12px; gap:12px; border:0; border-radius:12px; background:transparent;
  font-size:15px; font-weight:600; white-space:nowrap; overflow-wrap:normal; word-break:normal;
  color:var(--hx-text-2); box-shadow:none;
}
body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry.selected { background:linear-gradient(135deg,#1da4da,#1b95d4);color:#03142a;box-shadow:0 4px 18px rgba(31,198,239,.3); }
body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry.selected .r7-nav-icon { color:inherit; }
#r7Navigation .r7-nav-entry .r7-nav-icon { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
#r7Navigation .r7-nav-entry .r7-nav-icon .svgi { width:22px; height:22px; }
body.review-redesign[data-navigation] #r7Navigation .r7-nav-label { display:inline; white-space:nowrap; overflow-wrap:normal; word-break:normal; flex:none; }
#r7Navigation .r7-nav-short { display:none; white-space:nowrap; }
#r7Navigation .r7-nav-group { padding:22px 12px 6px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--hx-text-3); }
#r7Navigation .r7-rail-foot { display:contents; }
#r7Navigation .r7-nav-count { min-width:24px; height:22px; padding:0 7px; box-sizing:border-box; background:var(--hx-st-pause); color:var(--hx-on-cta); }
#r7Navigation .r7-nav-count.is-attn { background:var(--hx-st-fault); color:var(--hx-panel); }
body.review-redesign[data-navigation] #r7Navigation .r7-nav-more { display:none; }
.r7-nav-shade { position:fixed; inset:0; z-index:59; border:0; background:color-mix(in srgb,var(--hx-bg) 65%,transparent); }
.r7-nav-shade[hidden] { display:none; }
.r7-status-compact { display:none; }
body.review-redesign #r7SystemState { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 12px; background:var(--hx-panel); border:1px solid var(--hx-line); border-radius:999px; font-size:13px; color:var(--hx-text-2); white-space:nowrap; }
body.review-redesign #r7SystemState .r7-system-dot { width:8px; height:8px; background:var(--hx-st-free); box-shadow:none; flex:none; }
body.review-redesign #r7SystemState.is-offline { color:var(--hx-text); border-color:var(--hx-st-attn); }
body.review-redesign #r7SystemState.is-offline .r7-system-dot { background:var(--hx-st-attn); }
body.review-redesign #r7SystemState[data-sys="warn"] .r7-system-dot { background:var(--sv-warning); }
body.review-redesign #r7SystemState[data-sys="unknown"] .r7-system-dot { background:var(--hx-text-2); }
body.review-redesign .topbar #reviewShiftState,body.review-redesign .topbar #clock,body.review-redesign .topbar #r7Date,body.review-redesign .topbar #reviewOperatingMode { display:none; }
body.review-redesign[data-navigation] .topbar .shift:has(#reviewShiftState) { display:none; }
#r7NavigationToggle[hidden] { display:none; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation.is-hall-default .r7-rail-brand { padding-bottom:8px; }
.r7-nav-toggle:focus-visible,.r7-nav-more-item:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
.r7-nav-toggle,.r7-nav-more-item,#r7Navigation button { touch-action:manipulation; user-select:none; }
@media (hover:hover) and (pointer:fine) {
  body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry:not(.selected):not(:disabled):hover { background:rgba(255,255,255,.04);color:#eef4ff;box-shadow:none; }
}
body.review-redesign[data-navigation="collapsed"] #r7Navigation { padding:14px 6px; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-rail-brand { flex-direction:column; gap:10px; padding:4px 0 14px; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-rail-word { display:none; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-nav-entry { height:64px; min-height:64px; flex-direction:column; justify-content:center; gap:5px; padding:4px 0; font-size:12px; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-nav-label { display:none; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-nav-short { display:inline; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-nav-count { position:absolute; top:6px; left:calc(50% + 5px); margin:0; height:18px; min-width:18px; padding:0 4px; font-size:11px; border:2px solid var(--hx-chrome); }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-nav-group { height:1px; min-height:1px; padding:0; margin:10px auto; width:44px; background:var(--hx-line); font-size:0; }
@media (min-width:768px) {
  body.review-redesign[data-navigation]:has(#r7Navigation) { display:grid; grid-template-columns:var(--hx-rail-w) minmax(0,1fr) 300px; grid-template-rows:auto auto auto minmax(0,1fr); }
  body.review-redesign[data-navigation] > main.workspace { display:contents; }
  body.review-redesign[data-navigation] #r7Navigation { grid-column:1; grid-row:2 / -1; align-self:stretch; }
  body.review-redesign[data-navigation] > .topbar { grid-column:2 / -1; grid-row:2; }
  body.review-redesign[data-navigation] > .topbar .top-brand { display:none; }
  body.review-redesign[data-navigation] > .topbar #r7HeaderTitle { display:block; }
  body.review-redesign[data-navigation] .lanes-panel { grid-column:2; grid-row:4; }
  body.review-redesign[data-navigation] .visit-workspace { grid-column:3; grid-row:4; }
}
@media (min-width:768px) and (max-width:1179px) {
  body.review-redesign[data-navigation]:has(#r7Navigation) { --hx-rail-w:84px; }
  body.review-redesign.r7-nav-overlay #r7Navigation { position:fixed; left:0; top:0; bottom:0; width:216px; z-index:60; max-height:100dvh; }
  body.review-redesign .r7-status-full { display:none; }
  body.review-redesign .r7-status-compact { display:inline; }
  body.review-redesign #r7SystemState { padding:0 8px; }
}
@media (min-width:768px) and (max-width:1000px) {
  body.review-redesign[data-navigation]:has(#r7Navigation) { grid-template-columns:92px minmax(0,1fr); }
  body.review-redesign[data-navigation] .visit-workspace { grid-column:2; grid-row:5; }
}
@media (max-width:767px) {
  body.review-redesign[data-navigation] { padding-bottom:calc(72px + env(safe-area-inset-bottom,0px)); }
  body.review-redesign[data-navigation] .topbar .top-brand { display:none; }
  body.review-redesign[data-navigation] .topbar #r7HeaderTitle { display:block; margin:0; font-size:20px; }
  body.review-redesign[data-navigation] #r7Navigation { position:fixed; inset:auto 0 0; z-index:50; width:100%; height:calc(72px + env(safe-area-inset-bottom,0px)); max-height:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; padding:0 0 env(safe-area-inset-bottom,0px); border:0; border-top:1px solid var(--hx-line); overflow:visible; }
  body.review-redesign[data-navigation] #r7Navigation .r7-nav-links { display:contents; }
  body.review-redesign[data-navigation] #r7Navigation .r7-rail-brand,body.review-redesign[data-navigation] #r7Navigation .r7-nav-group,body.review-redesign[data-navigation] #r7Navigation .r7-rail-foot,body.review-redesign[data-navigation] #r7Navigation [data-section="summary"],body.review-redesign[data-navigation] #r7Navigation [data-section="guests"],body.review-redesign[data-navigation] #r7Navigation [data-section="shift"],body.review-redesign[data-navigation] #r7Navigation [data-section="reports"],body.review-redesign[data-navigation] #r7Navigation [data-section="techlog"] { display:none; }
  body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry { height:72px; min-height:72px; border-radius:0; font-size:11px; }
  #r7Navigation [data-section="hall"] { order:1; }
  #r7Navigation [data-section="visits"] { order:2; }
  #r7Navigation [data-section="queue"] { order:3; }
  #r7Navigation [data-section="bookings"] { order:4; }
  body.review-redesign[data-navigation] #r7Navigation .r7-nav-more { display:flex; order:5; }
  body.review-redesign #r7SystemState { max-width:100%; height:32px; font-size:12px; }
  body.review-redesign #modal:has(.r7-nav-more-modal) { align-items:flex-end; z-index:65; }
  body.review-redesign #modal .r7-nav-more-modal { margin:0; width:100%; height:auto; max-width:none; max-height:calc(100dvh - 20px); border-radius:16px 16px 0 0; background:var(--hx-panel); border-color:var(--hx-line); color:var(--hx-text); }
  body.review-redesign #modal .r7-nav-more-modal .modal-head { min-height:64px; height:auto; padding:12px 16px; background:transparent; }
  body.review-redesign #modal .r7-nav-more-modal .modal-head h3 { font-size:22px; }
  body.review-redesign #modal .r7-nav-more-modal .modal-close { width:48px; height:48px; min-width:48px; min-height:48px; padding:0; font-size:24px; }
  body.review-redesign #modal .r7-nav-more-modal #modalBody { padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px)); }
  body.review-redesign #modal .r7-nav-more-modal #wizardBar { display:none; }
}
.r7-nav-more-list { display:grid; gap:4px; overflow-y:auto; overscroll-behavior:contain; }
.r7-nav-more-item { min-height:48px; width:100%; text-align:left; padding:12px 16px; border:0; border-radius:10px; background:transparent; color:var(--hx-text); font-size:16px; }
/* The shell-wide 44px button floor must not shrink the 48px More rows. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .r7-nav-more-item { min-height:48px!important; }
.r7-nav-more-item[hidden] { display:none; }
.lane-options-page { gap:16px; }
.lo-page-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.lo-page-heading h2 { font-size:20px; margin:0; }
.lo-grid { display:grid; grid-template-columns:240px minmax(0,1fr); gap:16px; align-items:start; }
.lo-grid.is-running { display:block; max-width:760px; }
.lo-panel { min-width:0; padding:16px; border:1px solid var(--hx-line); border-radius:16px; background:var(--hx-panel); }
.lane-options-page h3 { margin:0; font-size:16px; }
.lo-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.lo-set-list { display:grid; gap:6px; margin:14px 0; }
.lane-options-page button,.lo-player-dialog button { min-height:40px; border:1px solid var(--hx-line); border-radius:10px; padding:8px 12px; background:var(--hx-panel); color:var(--hx-text); font:inherit; touch-action:manipulation; }
.lane-options-page button:focus-visible,.lo-player-dialog button:focus-visible,.lo-player-dialog input:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
.lane-options-page button[aria-pressed="true"],.lo-player-dialog button[aria-pressed="true"] { background:var(--hx-raised); color:var(--hx-text); font-weight:700; }
.lane-options-page button.primary,.lo-player-dialog button.primary { background:var(--hx-select); color:var(--hx-bg); font-weight:700; border-color:var(--hx-select); }
.lane-options-page button.danger,.lo-player-dialog button.danger { color:var(--hx-st-fault); }
.lane-options-page button:disabled,.lo-player-dialog button:disabled { opacity:.5; cursor:not-allowed; }
.lo-set { width:100%; text-align:left; }
.lane-options-page .lo-set[aria-pressed="true"] { border-color:var(--hx-select); outline:1px solid var(--hx-select); outline-offset:1px; }
.lo-note,.lo-muted { color:var(--hx-text-2); font-size:12px; line-height:1.5; }
.lo-info { margin:14px 0; padding:12px; border:1px solid var(--hx-line); border-radius:12px; background:var(--hx-raised); color:var(--hx-text-2); line-height:1.5; }
.lo-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; margin-top:14px; }
.lo-field { display:grid; gap:6px; min-width:0; }
.lo-label { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-height:20px; color:var(--hx-text-2); font-size:12px; }
.lo-source { font-size:11px; color:var(--hx-text-2); border:1px solid var(--hx-line); border-radius:5px; padding:1px 5px; }
.lo-source.is-changed { color:var(--hx-st-attn); border-color:var(--hx-st-attn); }
.lo-segment { display:flex; border:1px solid var(--hx-line); border-radius:11px; overflow:hidden; flex-wrap:wrap; }
.lane-options-page .lo-segment button,.lo-player-dialog .lo-segment button { flex:1 1 auto; border:0; border-radius:0; padding:8px 10px; min-width:0; white-space:normal; }
.lane-options-page button.lo-reset { padding:0; min-height:24px; border:0; color:var(--hx-select); background:transparent; font-size:11px; }
.lo-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:16px; }
.lo-players { margin-bottom:18px; }
.lo-stepper { display:flex; align-items:center; gap:10px; }
.lo-stepper button { width:40px; }
.lo-stepper output { min-width:20px; font-weight:700; font-variant-numeric:tabular-nums; text-align:center; }
.lo-player-list { display:grid; gap:6px; margin-top:12px; }
.lo-player-row { display:grid; grid-template-columns:20px minmax(80px,1fr) minmax(100px,170px) 40px; align-items:center; gap:10px; padding:8px; border:1px solid var(--hx-line); border-radius:12px; }
.lo-player-row:focus-within { border-color:var(--hx-select); }
.lo-player-number { text-align:center; color:var(--hx-text-2); }
.lane-options-page .lo-player-name { text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lo-player-name.is-placeholder,.lo-unavailable { color:var(--hx-text-2); }
.lo-unavailable { font-size:12px; }
.lo-player-dialog { background:var(--hx-panel); color:var(--hx-text); }
.lo-player-dialog input { width:100%; min-height:44px; padding:8px 12px; background:var(--hx-bg); color:var(--hx-text); border:1px solid var(--hx-line); border-radius:10px; font-size:16px; }
.lo-player-dialog .lo-field { margin-bottom:14px; }
.lo-error { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px; border:1px solid var(--hx-st-attn); color:var(--hx-text); border-radius:12px; }
.lo-status:empty { display:none; }
@media(max-width:1179px) {
  .lo-grid { grid-template-columns:200px minmax(0,1fr); }
  .lo-player-row { grid-template-columns:18px minmax(80px,1fr) 40px; gap:6px; }
  .lo-player-row .lo-segment,.lo-player-row .lo-unavailable { grid-column:2 / 3; grid-row:2; }
  .lo-player-row > button:last-child { grid-column:3; grid-row:1 / 3; }
}
@media(max-width:767px) {
  .lo-grid { grid-template-columns:minmax(0,1fr); }
  .lo-fields { grid-template-columns:minmax(0,1fr); }
  .lo-set-list { display:flex; overflow-x:auto; padding:3px; }
  .lane-options-page .lo-set { flex:0 0 auto; width:auto; }
  .lane-options-page button,.lo-player-dialog button { min-height:48px; }
  .lane-options-page .lo-reset { min-height:32px; }
  .lo-page-heading h2 { font-size:18px; }
  .lo-page-heading > button { flex-shrink:0; }
}
.lo-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.review-redesign:has(.lane-options-page:not([hidden])) #r7Search { display:none; }
body.review-redesign .lane-options-page button,body.review-redesign .lo-player-dialog button { font-size:14px; line-height:1.3; }
body.review-redesign .lo-player-dialog { width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); border-radius:16px; background:var(--hx-panel); }
body.review-redesign .lo-player-dialog .modal-head { height:auto; min-height:64px; padding:12px 16px; }
body.review-redesign .lo-player-dialog .modal-head h3 { font-size:18px; }
body.review-redesign .lo-player-dialog .modal-close { width:44px; height:44px; min-width:44px; min-height:44px; font-size:26px; padding:0; }
body.review-redesign .lo-player-dialog #modalBody { padding:16px; overflow:auto; }
body.review-redesign .lo-player-dialog #wizardBar { padding:12px 16px; display:flex; justify-content:space-between; gap:12px; }
.lo-commercial select,.lo-commercial input { min-height:40px; width:100%; min-width:0; padding:8px 10px; font-size:16px; border:1px solid var(--hx-line); border-radius:10px; background:var(--hx-panel); color:var(--hx-text); }
.lo-commercial input[aria-invalid="true"] { border-color:var(--hx-st-attn); }
body.review-redesign .lo-player-dialog #modalBody { display:grid; gap:12px; font-size:14px; }
body.review-redesign .lo-player-dialog #modalBody .lo-field { margin:0; font-size:14px; }
body.review-redesign .lo-player-dialog #wizardBar .primary { background:var(--hx-select); background-image:none; color:var(--hx-bg); box-shadow:none; flex:0 1 auto; min-width:0; width:auto; min-height:44px; margin:0; }
body.review-redesign {
  --sv-bg0: #050d1f;
  --sv-bg1: #071530;
  --sv-card: rgba(14, 32, 66, .72);
  --sv-sunk: rgba(4, 12, 30, .7);
  --sv-line: rgba(90, 150, 255, .16);
  --sv-text: #eef3fb;
  --sv-muted: #a9b6cd;
  --sv-cyan: #1fc6ef;
  --sv-green: #22d48a;
  --sv-warning: #ffbf3c;
}
html[data-theme=light] body.review-redesign { --sv-bg0: #eef3fb; --sv-bg1: #e1eafa; --sv-card: rgba(255,255,255,.78); --sv-sunk: rgba(223,233,249,.8); --sv-line: rgba(40,80,150,.2); --sv-text: #172b49; --sv-muted: #475a74; --sv-warning: #8d5300; }
body.settings-open .settings-page {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  padding: 0;
  gap: 0;
  color: var(--sv-text);
  background: radial-gradient(900px 500px at 70% -10%, rgba(40,110,255,.22), transparent 60%), radial-gradient(700px 500px at 10% 110%, rgba(0,190,255,.12), transparent 60%), linear-gradient(180deg,var(--sv-bg1),var(--sv-bg0));
  overflow: hidden;
}
.settings-page .sv-submenu { padding: 14px 10px; border-right: 1px solid var(--sv-line); overflow: auto; }
.settings-page .sv-submenu h3 { font-size: 11px; color: var(--sv-muted); margin: 14px 10px 6px; }
.settings-page .sv-menu-item { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 6px 10px; border: 1px solid transparent; background: transparent; border-radius: 10px; color: var(--sv-muted); text-align: left; font-size: 14px; }
.settings-page .sv-menu-item[aria-current] { background: rgba(20,44,88,.65); border-color: rgba(90,170,255,.3); color: var(--sv-text); }
.settings-page .sv-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--sv-icon,#3b5fa8); color: white; }
.settings-page .sv-icon svg { width: 16px; height: 16px; }
.settings-page .sv-menu-status { margin-left: auto; max-width: 72px; font-size: 11px; }
.settings-page .sv-menu-item { display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,62px);gap:8px; }
.settings-page .sv-menu-item > span:not(.sv-icon) { min-width:0;overflow-wrap:anywhere; }
.settings-page .sv-menu-item .sv-menu-status { min-width:0;width:100%;max-width:none;margin:0;text-align:right;white-space:normal;overflow:visible;line-height:1.3; }
.settings-page .sv-notice { display:flex;align-items:center;gap:10px;flex:none;padding:12px 14px;margin-bottom:14px;border:1px solid rgba(90,150,255,.3);border-radius:12px;background:rgba(90,150,255,.16);backdrop-filter:blur(14px);box-shadow:0 8px 18px rgba(0,0,0,.18);font-size:14px; }
.settings-page .sv-notice > span:first-child { color:var(--sv-green);font-weight:800; }
.settings-page .sv-event-meta { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.settings-page .sv-denied { display:flex;align-items:center;justify-content:center;gap:12px; }
.settings-page .sv-denied svg { width:24px;height:24px; }
.settings-page .sv-terminal-identity small { font:13px ui-monospace,monospace;color:var(--sv-muted);overflow-wrap:anywhere; }
.settings-page .sv-terminal-identity strong { font:700 16px/1.4 inherit; }
.settings-page input[type=number] { font-weight:700;text-align:center; }
body.settings-open .settings-page { background:radial-gradient(ellipse at 65% 0%,rgba(32,80,160,.25),transparent 55%),linear-gradient(180deg,#08162f,#040b1a); }
@media(min-width:1180px) {
  .settings-page .sv-content { display:flex;flex-direction:column;min-height:calc(100dvh - 72px);box-sizing:border-box; }
  .settings-page .sv-body { flex:1; }
  .settings-page .sv-body > :is(.sv-columns,.sv-equipment-grid) { flex:1; }
}
.settings-page > .manager-session-cover { inset:24px 16px auto auto;width:min(620px,calc(100% - 32px));min-height:260px;box-sizing:border-box;border:1px solid rgba(90,150,255,.3);border-radius:18px;background:rgba(15,37,76,.82);backdrop-filter:blur(18px);box-shadow:0 18px 40px rgba(0,0,0,.4); }
.settings-page .manager-session-cover-actions > .primary { background:linear-gradient(180deg,#22d48a,#19ac6f);color:#032018;opacity:1; }
@media(max-width:600px) {
  body.settings-open .topbar #r7HeaderTitle { white-space:nowrap;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1; }
  body.settings-open .topbar #r7Operator { order:0;flex:0 0 auto;width:auto;align-self:center; }
  body.settings-open .topbar #r7Operator strong { max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
}
.settings-page .is-warning { color: var(--sv-warning); }
.settings-page .sv-content { min-width: 0; padding: 16px 18px; overflow: auto; }
.settings-page .sv-title { display: flex; gap: 12px; align-items: start; margin-bottom: 14px; }
.settings-page .sv-title h2 { font-size: 24px; font-weight: 800; margin: 0; }
.settings-page .sv-title p { margin: 4px 0 0; color: var(--sv-muted); font-size: 13px; }
.settings-page .sv-title .sv-refresh { margin-left: auto; }
.settings-page .sv-back { display: none; }
.settings-page .sv-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--sv-line); border-radius: 16px; background: var(--sv-card); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04); }
.settings-page .sv-card h3 { margin: 0 0 12px; font-size: 15px; }
.settings-page .sv-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-page .sv-columns.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.settings-page .sv-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.settings-page .sv-body { display: flex; flex-direction: column; gap: 14px; }
.settings-page .sv-body p { line-height: 1.5; }
.settings-page .sv-empty { color: var(--sv-muted); font-size: 13px; }
.settings-page .sv-effects-card > .sv-empty { font-size: inherit; }
.settings-page .sv-terminal-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-page .sv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-top: 1px solid var(--sv-line); font-size: 14px; }
.settings-page .sv-row > * { min-width: 0; overflow-wrap: anywhere; }
.settings-page .sv-row strong { text-align: right; }
.settings-page button { min-height: 44px; border-radius: 11px; font-size: 14px; }
.settings-page button:focus-visible, .settings-page input:focus-visible, .settings-page select:focus-visible { outline: 3px solid var(--sv-cyan); outline-offset: 3px; }
.settings-page button[aria-pressed=true], .settings-page .lo-segment button[aria-pressed=true] { background: linear-gradient(180deg,#2fd3f7,#16b4e2); color: #03142a; border-color: var(--sv-cyan); }
.settings-page :is(.sv-list-item,.sv-staff-row,.sv-controller,.sv-role)[aria-pressed=true]:after { content: '✓'; flex: 0 0 1em; margin-left: auto; }
.settings-page button:disabled { opacity: .55; cursor: not-allowed; }
.settings-page input:not([type=checkbox]), .settings-page select { min-height: 44px; max-width: 100%; background: var(--sv-sunk); color: var(--sv-text); border: 1px solid rgba(90,170,255,.3); border-radius: 10px; padding: 8px 10px; }
.settings-page .sv-switch input { appearance: none; width: 46px; height: 26px; border: 1px solid #526886; border-radius: 14px; background: #2b3b5c; position: relative; flex: 0 0 46px; cursor: pointer; }
.settings-page .sv-switch { min-height: 48px; cursor: pointer; }
.settings-page .sv-switch input:after { content: ''; position: absolute; top: 2px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; }
.settings-page .sv-switch input:checked { background: var(--sv-green); border-color: var(--sv-green); }
.settings-page .sv-switch input:checked:after { left: 21px; }
.settings-page .sv-savebar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 16px; margin-top: auto; }
.settings-page .sv-savebar[hidden] { display: none; }
.settings-page .sv-savebar > span { margin-right: auto; color: var(--sv-warning); font-size: 12px; }
.settings-page .sv-options .lo-grid { display: flex; flex-direction: column; gap: 12px; }
.settings-page .sv-options .lo-presets { padding: 0; border: 0; box-shadow: none; background: none; }
.settings-page .sv-options .lo-presets > h3, .settings-page .sv-options .lo-presets > .lo-note { display: none; }
.settings-page .sv-options .lo-set-list { display: flex; flex-wrap: wrap; }
.settings-page .sv-options .lo-set { width: auto; }
.settings-page .lo-set[aria-pressed=true]:before { content: '✓ '; }
.settings-page .sv-options .lo-grid > .lo-panel:not(.lo-presets) { padding: 0; background: none; box-shadow: none; border: 0; }
.settings-page .sv-options-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr); gap: 12px; }
.settings-page .lo-field { margin: 0 0 12px; }
.settings-page .lo-segment { display: flex; flex-wrap: wrap; }
.settings-page .lo-segment button { min-width: 44px; flex: 1 1 64px; }
.settings-page .sv-formats .lo-segment { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; background: none; border: 0; }
.settings-page .sv-formats button { position: relative; min-height: 104px; text-align: left; overflow: hidden; align-items: start; }
.settings-page .sv-format-art { position: absolute; right: 6px; bottom: 6px; opacity: .45; }
.settings-page .sv-format-art svg { width: 40px; height: 40px; }
.settings-page .sv-score-preview { border-radius: 12px; padding: 10px; border: 1px solid rgba(90,170,255,.3); background: linear-gradient(160deg,#0d2a5c,#05132e); color: #eef3fb; }
.settings-page .sv-score-label { font-size: 11px; margin-bottom: 8px; color: #c1d9f3; }
.settings-page .sv-score-grid { display: grid; grid-template-columns: 62px repeat(10,minmax(0,1fr)) 22px; gap: 2px; font-size: 9px; }
.settings-page .sv-score-grid span { background: rgba(255,255,255,.06); text-align: center; padding: 5px 0; }
.settings-page .sv-summary { color: var(--sv-muted); font-size: 13px; }
.settings-page .sv-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--sv-line); padding-bottom: 8px; }
.settings-page .sv-themes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.settings-page .sv-theme { padding: 6px; border: 1px solid var(--sv-line); border-radius: 12px; background: var(--sv-sunk); min-width: 0; }
.settings-page .sv-theme b { display: block; margin-top: 6px; font-size: 12px; }
.settings-page .sv-theme-image { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 8px; min-height: 80px; border-radius: 8px; background: radial-gradient(ellipse at 70% 20%,var(--sv-palette,#2764a2),#07142a 80%); }
.settings-page .sv-theme-image.is-light { background: #e0eafa; }
.settings-page .sv-theme-image i { min-height: 22px; background: rgba(50,170,140,.5); border-radius: 3px; }
.settings-page .sv-theme-image i:nth-child(3n+1) { background: rgba(170,110,50,.5); }
.settings-page .sv-days { display: flex; gap: 6px; flex-wrap: wrap; }
.settings-page .sv-days span { padding: 10px; min-height: 44px; border: 1px solid var(--sv-line); border-radius: 10px; }
.settings-page .sv-days .is-weekend { color: var(--sv-warning); }
.settings-page .sv-list-item, .settings-page .sv-staff-row, .settings-page .sv-controller, .settings-page .sv-role { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; background: rgba(20,44,88,.55); border: 1px solid var(--sv-line); margin-bottom: 8px; }
.settings-page .sv-list-item strong { margin-left: auto; }
.settings-page .sv-staff-row small, .settings-page .sv-role small, .settings-page .sv-controller small, .settings-page .sv-event small { display: block; font-size: 12px; }
.settings-page .sv-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: linear-gradient(135deg,#2b8cff,#16b4e2); border-radius: 50%; font-size: 17px; }
.settings-page .sv-role:nth-child(2n) .sv-avatar { background: linear-gradient(135deg,#7b55e6,#b06bff); }
.settings-page .sv-role:nth-child(3n) .sv-avatar { background: linear-gradient(135deg,#af7016,#d89a28); }
.settings-page .sv-roles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.settings-page .sv-role { min-width: 0; }
.settings-page .sv-staff-row { flex-wrap: wrap; }
.settings-page .sv-staff-row > span:not(.sv-avatar) { flex: 1 1 100px; min-width: 0; overflow-wrap: anywhere; }
.settings-page .sv-device { position: relative; display: inline-block; width: 62px; height: 40px; flex: 0 0 62px; border-radius: 8px; background: linear-gradient(160deg,#2a3346,#0e1420); box-shadow: inset 0 1px 0 rgba(255,255,255,.15),0 6px 12px rgba(0,0,0,.4); }
.settings-page .sv-device:after { content: ''; position: absolute; left: 8px; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: #8b98b2; }
.settings-page .sv-device.is-online:after { background: var(--sv-green); }
.settings-page .sv-device.is-offline:after { background: #ff5a6e; }
.settings-page .sv-equipment-grid { display: grid; grid-template-columns: minmax(170px,.8fr) minmax(0,1.7fr) minmax(170px,1fr); gap: 12px; }
.settings-page .sv-scheme { min-height: 240px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--sv-sunk); }
.settings-page .sv-device-node { display: flex; flex-direction: column; gap: 8px; }
.settings-page .sv-wire, .settings-page .sv-exchange > span { color: var(--sv-cyan); font-size: 32px; }
.settings-page .sv-exchange { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 160px; }
.settings-page .sv-version { font-size: 26px; overflow-wrap: anywhere; }
.settings-page .sv-events { list-style: none; margin: 0; padding: 0; }
.settings-page .sv-event { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--sv-line); font-size: 13px; }
.settings-page .sv-event time { margin-left: auto; font-size: 11px; color: var(--sv-muted); }
.settings-page .sv-event-group { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--sv-sunk); color: var(--sv-text); font-size: 11px; }
body.settings-open #r7NavigationToggle { visibility: hidden; }
.settings-page > .manager-session-warning { position: static; transform: none; width: auto; grid-column: 1 / -1; grid-row: 1; margin: 0; }
.settings-page > .manager-session-cover { inset: 0; z-index: 5; overflow: auto; }
.settings-page:has(> .manager-session-warning:not([hidden])) { grid-template-rows: auto minmax(0,1fr); }
body.settings-open .topbar #r7Search, body.settings-open .topbar #securityChrome { display: none; }
body.settings-open .topbar #r7Operator { display: flex; }
body.settings-open .topbar:has(#securityChrome) #r7Operator { display: flex; }
body.settings-open .topbar #r7HeaderTitle { font-size: 19px; line-height: 1.25; }
body.settings-open .settings-page input:not([type=checkbox]), body.settings-open .settings-page select { font-size: 16px; }
body.settings-open .settings-page .sv-switch input { height: 26px; min-height: 26px; max-height: 26px; padding: 0; }
.settings-page .security-rights { grid-template-columns: minmax(0,1fr); }
.settings-page .security-rights label { min-width: 0; overflow-wrap: anywhere; }
.settings-page .sv-equipment-grid .sv-controller { flex-wrap: wrap; }
.settings-page .sv-controller > span:not(.sv-device) { flex: 1; min-width: 60px; overflow-wrap: anywhere; }
.settings-page .sv-scheme > div { min-width: 0; overflow-wrap: anywhere; }
.settings-page .sv-guest-preview { font-size: 17px; }
.settings-page .sv-display-editor .list-scroll { overflow: visible; }
.settings-page .screen-swatches { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.settings-page .screen-swatch { display: flex; flex-direction: column; align-items: stretch; padding: 6px; min-width: 0; }
.settings-page .screen-swatch:before { content: ''; display: block; min-height: 80px; border-radius: 8px; background: radial-gradient(ellipse at 70% 20%,var(--sw),#07142a 80%); }
.settings-page .screen-swatch.on { background: linear-gradient(180deg,#2fd3f7,#16b4e2); color: #03142a; }
.settings-page .screen-swatch.on:after { content: '✓'; }
.settings-page .screen-policy-box .seg-btn.on:before { content: '✓ '; }
body.settings-open .settings-page .screen-swatch { background: var(--sv-sunk); color: var(--sv-text); }
body.settings-open .settings-page .screen-swatch.on { background: linear-gradient(180deg,#2fd3f7,#16b4e2); color: #03142a; }
.settings-page .sv-policy-form input:not([type=checkbox]) { width: 78px; }
.settings-page .screen-show-section .screen-show-grid { grid-template-columns: minmax(0,1fr); }
.settings-page .screen-show-section .settings-name { white-space: normal; }
.settings-page .screen-section { padding: 10px; margin: 0 0 12px; min-width: 0; }
.settings-page .screen-section .wiz-label, .settings-page .screen-section .settings-name { font-size: 14px; line-height: 1.4; letter-spacing: normal; text-transform: none; }
.settings-page .screen-section .settings-note { font-size: 12px; }
.settings-page .screen-section .settings-row { display: flex; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
.settings-page .screen-section .settings-row input { width: 22px; height: 22px; }
.settings-page .screen-section .seg { display: flex; flex-wrap: wrap; min-width: 0; }
.settings-page .screen-section .seg-btn { flex: 1 1 80px; padding: 8px; min-width: 0; white-space: normal; font-size: 13px; }
.settings-page .screen-section .seg-btn.on { background: linear-gradient(180deg,#2fd3f7,#16b4e2); color: #03142a; }
.settings-page .sv-formats .lo-segment button { border: 1px solid var(--sv-line); border-radius: 14px; padding: 12px 8px; }
.settings-page .sv-options .lo-set-list { display: inline-flex; vertical-align: middle; }
.settings-page .sv-options .lo-presets > button { margin-left: 8px; }
.settings-page .sv-content { scroll-padding-bottom: 90px; }
.settings-page .sv-savebar:not([hidden]) { position: sticky; bottom: 0; z-index: 1; background: var(--sv-bg0); padding: 12px; border-radius: 12px; }
@media (max-width: 1179px) {
  body.settings-open .settings-page { display: block; overflow: auto; }
  .settings-page .sv-content { display: block; overflow: visible; }
  .settings-page[data-screen=index] .sv-content { display: none; }
  .settings-page:not([data-screen=index]) .sv-submenu { display: none; }
  .settings-page .sv-submenu { max-width: 620px; margin: auto; border: 0; }
  .settings-page .sv-menu-item { min-height: 54px; }
  .settings-page .sv-back { display: block; }
  .settings-page .sv-title { flex-wrap: wrap; }
  .settings-page .sv-title .sv-back { flex-basis: 100%; text-align: left; }
  .settings-page .sv-equipment-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); }
  .settings-page .sv-equipment-grid > :last-child { grid-column: 1 / -1; }
  .settings-page .sv-roles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-page .sv-columns.three { grid-template-columns: minmax(0,1fr); }
  .settings-page .sv-options-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .settings-page .sv-content { padding: 12px; }
  .settings-page .sv-columns, .settings-page .sv-equipment-grid { grid-template-columns: minmax(0,1fr); }
  .settings-page .sv-roles { grid-template-columns: minmax(0,1fr); }
  .settings-page .sv-title h2 { font-size: 22px; }
  .settings-page .sv-staff-row { flex-wrap: wrap; }
  .settings-page .sv-row { flex-wrap: wrap; padding: 8px 0; }
  .settings-page .sv-row > select { width: 100%; }
  .settings-page .sv-formats .lo-segment { grid-template-columns: minmax(0,1fr); }
}
body.screens-v1 #r7Page { padding:16px 18px;gap:12px;color:var(--sv-text);background:radial-gradient(900px 500px at 70% -10%,rgba(40,110,255,.22),transparent 60%),linear-gradient(180deg,var(--sv-bg1),var(--sv-bg0)); }
body.screens-v1 .topbar { min-height:64px;height:64px; }
body.screens-v1 #r7Search,body.screens-v1 #r7Search input { min-height:40px;height:40px;font-size:14px; }
body.screens-v1 #r7Search input { padding-left:40px; }
body.screens-v1 #r7HeaderTitle { font-size:21px; }
body.screens-v1 .topbar #securityChrome { display:none; }
body.screens-v1 .topbar #r7Operator { display:flex; }
body.screens-v1 .topbar:has(#securityChrome) #r7Operator { display:flex; }
body.screens-v1 .r7-page-head { gap:12px;min-height:44px;margin:0; }
body.screens-v1 .r7-page-head h2 { font-size:24px; }
body.screens-v1 .r7-page-head p { font-size:13px; }
body.screens-v1 .r7-card,body.screens-v1 .r7-kpi,body.screens-v1 .r7-admin-card,.screen-card { min-width:0;padding:14px 16px;border:1px solid var(--sv-line);border-radius:16px;background:var(--sv-card);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.04);color:var(--sv-text); }
.screen-card h3 { margin:0 0 12px;font-size:15px;font-weight:750; }
.screen-stack { display:flex;flex-direction:column;gap:12px;min-width:0; }
.screen-table-scroll { overflow:auto;min-width:0; }
.screen-guests .screen-table-scroll table { min-width:420px; }
.screen-two,.screen-three { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0; }
.screen-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.screen-kv { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;border-top:1px solid var(--sv-line);font-size:13px;color:var(--sv-muted); }
.screen-kv strong { color:var(--sv-text);text-align:right;overflow-wrap:anywhere;min-width:0; }
.screen-muted { color:var(--sv-muted);font-size:12px;line-height:1.5; }
.screen-negative { color:#ff5a6e!important; }
.screen-link { background:transparent;border:0;color:var(--sv-cyan);font-size:13px;min-height:44px; }
.screen-accept,body.review-redesign .screen-bill-modal #wizardBar .screen-accept { min-height:52px;border:0;border-radius:13px;background:linear-gradient(180deg,#34e39b,#18c07a);color:#03231a;font-size:18px;font-weight:800;padding:12px 18px; }
.screen-primary { min-height:58px;border:0;border-radius:13px;background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a;font-size:20px;font-weight:800;padding:12px; }
.screen-summary-layout { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px; }
.screen-reports-layout,.screen-shift-layout { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px; }
.screen-reports-layout > .screen-card { display:flex;flex-direction:column;gap:12px; }
.screen-reports-layout > .screen-card .r7-primary-btn { margin-top:auto; }
body.screens-v1 .r7-kpis { gap:10px; }
body.screens-v1 .r7-kpi { padding:12px 14px;min-height:90px;grid-template-columns:minmax(0,1fr); }
body.screens-v1 .r7-kpi > :not(.r7-kpi-icon) { grid-column:1;min-width:0;white-space:normal;overflow-wrap:break-word; }
body.screens-v1 .r7-kpi-icon,body.screens-v1 .r7-kpi-bar { display:none; }
body.screens-v1 .r7-kpi-value { font-size:26px; }
body.screens-v1 .r7-kpi-label,body.screens-v1 .r7-kpi-sub,body.screens-v1 .r7-kpi-delta { font-size:12px; }
body.screens-v1 .r7-freshness { padding:6px 10px;font-size:11px; }
body.screens-v1 .r7-table { font-size:13px;min-width:0; }
body.screens-v1 .r7-table th,body.screens-v1 .r7-table td { padding:10px 8px;white-space:normal;overflow-wrap:normal;word-break:normal; }
body.screens-v1 .screen-reports-layout .r7-table { min-width:520px; }
body.screens-v1 .screen-shift-layout .r7-table { min-width:470px; }
body.screens-v1 .r7-table th { font-size:12px; }
body.screens-v1 .r7-table button { min-height:44px; }
body.screens-v1 .r7-table tr[aria-selected=true] { background:rgba(31,198,239,.12);outline:1px solid var(--sv-cyan);outline-offset:-1px; }
.screen-additional { margin-top:6px; }
.screen-additional > summary { min-height:44px;padding:12px;color:var(--sv-muted);cursor:pointer; }
.screen-additional[open] { display:grid;gap:12px; }
.screen-mini-hall { display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px; }
.screen-mini-hall button { min-height:48px;min-width:0;padding:5px;border:1px solid var(--sv-line);border-radius:9px;display:flex;flex-direction:column;justify-content:center;gap:3px;background:rgba(160,167,186,.1); }
.screen-mini-hall small { font-size:10px;overflow-wrap:anywhere; }
.screen-mini-hall .status-free { background:rgba(54,181,115,.14);border-color:rgba(54,181,115,.5); }
.screen-mini-hall .status-active { background:rgba(248,154,58,.16);border-color:rgba(248,154,58,.55); }
.screen-mini-hall .status-attention { background:rgba(244,86,62,.16);border-color:rgba(244,86,62,.6); }
.screen-hour-chart { height:160px;display:flex;align-items:flex-end;gap:8px;padding:12px 4px 0;border-bottom:1px solid var(--sv-line); }
.screen-hour-chart > div { flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px; }
.screen-empty-bar { display:block;height:80px;border:1px dashed rgba(140,160,190,.4);border-radius:4px 4px 0 0;background:rgba(130,145,170,.07); }
.screen-hour-chart small { text-align:center;color:var(--sv-muted);font-size:10px; }
.screen-queue-preview { display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;border-top:1px solid var(--sv-line); }
.screen-queue-preview svg,.screen-group-icon svg { width:22px;height:22px; }
.screen-wait { color:var(--sv-warning);font-weight:750; }
.screen-queue-preview .screen-wait { margin-left:auto; }
body.screens-v1 .screen-queue-layout { grid-template-columns:minmax(0,1fr) 290px; }
body.screens-v1 .screen-queue-layout .screen-table-scroll { overflow:auto;min-width:0; }
body.screens-v1 .screen-queue-layout .screen-table-scroll table { min-width:540px; }
body.screens-v1 .screen-queue-layout { align-items:stretch; }
body.screens-v1 .screen-queue-layout > .r7-admin-card { display:flex;flex-direction:column; }
body.screens-v1 .screen-queue-layout [data-queue-action] { margin-top:auto; }
.screen-queue-table td:nth-child(2) { min-width:125px; }
.screen-queue-table { table-layout:auto; }
body.screens-v1 .screen-queue-table th { white-space:nowrap;overflow-wrap:normal; }
body.screens-v1 .screen-queue-table td:nth-child(2) { min-width:150px; }
body.screens-v1 .screen-queue-table .r7w-group { display:inline;max-width:calc(100% - 34px);padding:8px 4px;border:0;background:transparent;text-align:left;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:break-word; }
body.screens-v1 .screen-queue-table .r7w-more { display:inline-flex;width:32px;min-width:32px;margin:0;padding:4px;vertical-align:middle; }
body.screens-v1 .screen-queue-table td { overflow-wrap:normal; }
.screen-group-icon { color:#c7b0ff;display:inline-flex;vertical-align:middle;margin-right:8px; }
.screen-recommendation { background:linear-gradient(135deg,rgba(34,212,138,.18),rgba(6,40,30,.4));border:1px solid rgba(34,212,138,.55);border-radius:14px;padding:14px; }
.screen-recommendation h3 { margin:0 0 8px;font-size:14px; }
body.screens-v1 .screen-booking-layout { grid-template-columns:minmax(0,1fr) 290px;align-items:stretch; }
body.screens-v1 .r7w-calendar { min-width:2944px;grid-template-columns:64px repeat(24,minmax(120px,1fr));grid-auto-rows:80px; }
body.screens-v1 .r7w-calendar-head { height:32px;min-height:32px; }
body.screens-v1 .r7w-calendar-head:first-child { z-index:5; }
body.screens-v1 .r7w-calendar-scroll { max-height:440px; }
body.screens-v1 .r7w-slot { min-height:0;height:56px;padding:0; }
body.screens-v1 .r7w-booking { min-height:72px;height:72px;max-height:72px;padding:4px 6px;overflow:auto;justify-content:flex-start; }
body.screens-v1 .r7w-booking strong,body.screens-v1 .r7w-booking small { white-space:normal;text-overflow:clip;overflow:visible;font-size:11px;line-height:1.2;overflow-wrap:anywhere; }
body.screens-v1 .r7w-booking strong { font-size:12px; }
body.screens-v1 .r7w-now { top:32px; }
.screen-guests { display:grid;grid-template-columns:280px minmax(0,1fr);gap:12px;min-height:calc(100% - 70px); }
.screen-search { display:flex;gap:8px; }
.screen-search input { min-width:0;width:100%; }
.screen-search button,.screen-guests button,.screen-guests input { min-height:44px; }
.screen-guest-empty,.screen-guest-profile { display:flex;align-items:center;gap:12px;padding:16px 0;flex-wrap:wrap; }
.screen-guest-profile > span:last-of-type { margin-left:auto; }
.screen-avatar { width:36px;height:36px;border-radius:50%;background:rgba(110,130,160,.25);display:grid;place-items:center;flex:none; }
.screen-avatar.large { width:64px;height:64px; }
.screen-avatar svg { width:24px;height:24px; }
.screen-shift-strip .r7-kpis { border:1px solid var(--sv-line);border-radius:16px;overflow:hidden;gap:0;background:var(--sv-card); }
.screen-shift-strip .r7-kpi { border:0;border-radius:0;box-shadow:none;background:transparent; }
.screen-shift-layout > .screen-card:first-child { min-height:360px;display:flex;flex-direction:column;gap:12px; }
.screen-shift-layout .r7-primary-btn { margin-top:auto; }
body.screens-v1 .screen-shift-layout .r7-table tr[aria-selected=true] { background:rgba(31,198,239,.12);outline:1px solid var(--sv-cyan);outline-offset:-1px; }
.screen-shift-layout tr:has(.screen-negative) { color:#ff5a6e; }
.screen-reconcile[hidden] { display:none; }
body.review-redesign .screen-opening,body.review-redesign .screen-active { display:flex;flex-direction:column;gap:12px;padding:14px 16px;min-width:0; }
body.review-redesign .screen-opening .r7-workspace-content,body.review-redesign .screen-active .r7-workspace-content { display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto; }
body.review-redesign #visitWorkspace.screen-opening { gap:4px;padding:10px 16px; }
body.review-redesign #visitWorkspace.screen-opening > .r7-workspace-content { gap:0; }
.screen-opening .daily-workspace-head h3,.screen-active .daily-workspace-head h3 { font-size:20px; }
.screen-opening .daily-checkout,.screen-active .daily-checkout { margin-top:auto;display:flex;flex-direction:column;gap:10px; }
.screen-opening-fields { display:flex;flex-direction:column;gap:6px; }
.screen-mode-controls { display:flex;flex-direction:column;gap:6px; }
.screen-opening-fields label { display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--sv-muted); }
.screen-opening-fields select { width:100%;min-height:44px;min-width:0;padding:8px;border:1px solid var(--sv-line);border-radius:10px;background:var(--sv-sunk);color:var(--sv-text);font-size:14px; }
.screen-player-count { display:flex;align-items:center;gap:8px; }
.screen-player-count .daily-avatars { flex:1;min-width:0;overflow:hidden; }
.screen-player-count button { min-width:44px;min-height:64px;padding:5px; }
.screen-player-count > strong { font-size:24px; }
.screen-opening .daily-avatar { width:28px;height:28px; }
.screen-quantity { display:flex;gap:4px;background:var(--sv-sunk);border:1px solid var(--sv-line);border-radius:11px;padding:3px; }
.screen-quantity button { flex:1;min-width:0;min-height:64px;background:transparent;border:0;font-size:14px;padding:5px; }
.screen-quantity button[aria-pressed=true] { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a;border-radius:8px; }
.screen-quantity button[aria-pressed=true]:before { content:'✓ '; }
.screen-opening-quote { display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--sv-line);padding-top:12px;font-size:12px; }
.screen-opening-total { font-size:32px; }
.screen-ready { color:var(--sv-green);font-size:14px;font-weight:750;margin:0; }
body.review-redesign #visitWorkspace.screen-opening:has([data-lo-submit]:disabled) .screen-ready { display:none; }
.screen-timer { min-width:0;display:flex;flex-direction:column;gap:4px; }
.screen-timer > strong { font-size:54px;line-height:1.05;font-weight:800;font-variant-numeric:tabular-nums; }
.screen-progress { height:7px;border-radius:4px;overflow:hidden;background:var(--sv-sunk); }
.screen-progress > span { display:block;height:100%;background:linear-gradient(90deg,#2fd3f7,#16b4e2); }
.screen-active .daily-facts { font-size:13px;padding:0;gap:0; }
.screen-active .daily-facts > div { padding:7px 0; }
.screen-active .daily-facts dd { font-size:15px; }
.screen-active-details > summary { min-height:44px;padding:10px 0;font-size:13px; }
body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit { display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:14px 16px;overflow:auto;align-content:stretch; }
.screen-visit > .daily-workspace-head { grid-column:1/-1; }
body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit > .screen-visit-main { grid-column:1;grid-row:2; }
body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit > .screen-visit-side { grid-column:2;grid-row:2; }
.screen-visit-main { display:flex;flex-direction:column;gap:12px;min-width:0;overflow:auto; }
.screen-visit-main .screen-timer { flex:0 0 auto;min-height:110px;padding:12px 16px;border:1px solid var(--sv-line);border-radius:16px;background:var(--sv-card); }
.screen-visit-side { display:flex;flex-direction:column;gap:12px;min-width:0; }
.screen-visit-side .daily-facts { display:block;padding:0; }
.screen-visit-side .daily-facts > div { display:flex;justify-content:space-between;gap:12px;min-height:30px;padding:3px 0; }
.screen-visit-side .daily-facts dt { font-size:12px; }
.screen-visit-side .daily-facts dd { font-size:14px; }
.screen-visit-side .daily-facts > div:last-child dd { font-size:20px; }
.screen-visit-side .daily-checkout { margin-top:auto; }
.screen-visit-side .daily-action { min-height:52px;font-size:18px; }
.screen-visit .r7-visit-game { padding:12px 16px;border:1px solid var(--sv-line);border-radius:16px;background:var(--sv-card);font-size:13px; }
.screen-visit .r7-score-table { min-width:0; }
.screen-visit .r7-score-table td,.screen-visit .r7-score-table th { padding:4px 3px;font-size:11px; }
body.screens-v1 .r7-table .screen-timer > strong { font-size:15px; }
body.screens-v1 .r7-table .screen-timer .screen-muted { display:none; }
body.screens-v1 .r7-table .screen-progress { min-width:60px; }
body.review-redesign .screen-bill-modal { background:linear-gradient(180deg,var(--sv-bg1),var(--sv-bg0));color:var(--sv-text); }
body.review-redesign .screen-bill-modal #modalBody { padding:16px 18px;overflow:auto; }
.screen-bill-layout { display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:12px;height:100%; }
.screen-bill-layout .screen-card { min-height:0; }
.screen-bill-total { display:block;font-size:44px;font-weight:800;text-align:center; }
.screen-bill-layout .bill { font-size:14px; }
.screen-bill-layout .bill td { padding:10px 6px; }
.screen-bill-layout .bill-total td { font-size:22px; }
.screen-payments { display:flex;gap:8px; }
.screen-payments button { flex:1;min-height:64px;font-size:14px!important;border-radius:12px; }
.screen-bill-modal #wizardBar { background:var(--sv-card);border-top:1px solid var(--sv-line); }
@media(max-width:1100px) {
  .screen-summary-layout,.screen-reports-layout { grid-template-columns:minmax(0,1fr) 240px; }
  .screen-guests { grid-template-columns:220px minmax(0,1fr); }
  .screen-three { grid-template-columns:minmax(0,1fr); }
  .screen-mini-hall { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body.screens-v1 .screen-booking-layout { grid-template-columns:minmax(0,1fr) 230px; }
  body.screens-v1 .screen-queue-layout { grid-template-columns:minmax(0,1fr) 240px; }
  body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit { grid-template-columns:minmax(0,1fr) 260px; }
  body.screens-v1 .screen-reports-layout .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .screen-bill-layout { grid-template-columns:minmax(0,1fr) 280px; }
}
@media(max-width:650px) {
  body.screens-v1 #r7Page { padding:12px; }
  body.screens-v1 #r7Page { min-height:calc(100dvh - 136px);box-sizing:border-box; }
  body.screens-v1 #receptionWorkspace { background:var(--sv-bg1); }
  .screen-summary-layout,.screen-reports-layout,.screen-shift-layout,.screen-guests,.screen-two,.screen-three { grid-template-columns:minmax(0,1fr); }
  body.screens-v1 .screen-booking-layout,body.screens-v1 .screen-queue-layout { grid-template-columns:minmax(0,1fr); }
  body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit { display:flex;flex-direction:column;overflow:auto; }
  .screen-visit-main { overflow:visible; }
  .screen-visit-side .daily-checkout { margin-top:12px; }
  .screen-bill-layout { grid-template-columns:minmax(0,1fr);height:auto; }
  body.screens-v1 .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .screen-bill-total { font-size:36px; }
}
body.screens-v1 .screen-reports-layout .r7-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
body.screens-v1 input:not([type=checkbox]),body.screens-v1 select { min-width:0;max-width:100%;min-height:44px;padding:8px 10px;font-size:14px;background:var(--sv-sunk);color:var(--sv-text);border:1px solid var(--sv-line);border-radius:10px; }
body.screens-v1 .screen-search input { font-size:14px; }
.screen-guests .screen-two { grid-template-columns:minmax(0,2fr) minmax(160px,1fr); }
body.screens-v1 .screen-guests th { font-size:11px;white-space:nowrap;overflow-wrap:normal;padding:8px 4px; }
body.review-redesign #visitWorkspace.screen-opening > .daily-checkout,body.review-redesign #visitWorkspace.screen-active > .daily-checkout { display:flex;flex-direction:column;align-items:stretch; }
body.review-redesign #visitWorkspace.screen-opening .screen-link { border:0;background:transparent;color:var(--sv-cyan);font-size:13px;min-height:44px; }
body.review-redesign #visitWorkspace.screen-opening .screen-primary { min-height:58px;width:100%;font-size:18px; }
body.review-redesign #visitWorkspace.screen-opening > .screen-opening-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions .screen-link { min-height:64px;padding:6px;font-size:12px;white-space:normal; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .daily-link { grid-column:2;grid-row:1; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .screen-link:not(.daily-link) { grid-column:1;grid-row:1; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions .screen-primary { grid-column:1/-1;grid-row:2;min-height:64px; }
body.review-redesign .screen-info-label { display:inline; }
body.review-redesign .screen-info-ending { white-space:nowrap; }
body.review-redesign button.screen-info-trigger { display:inline-grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;padding:13px;border:0;background:transparent;color:#9ec9ec;vertical-align:middle;flex:0 0 44px;box-shadow:none; }
body.review-redesign button.screen-info-trigger .svgi { width:18px;height:18px; }
body.review-redesign button.screen-info-trigger:focus-visible { outline:2px solid #3bc9ef;outline-offset:2px; }
body.review-redesign .screen-info-tooltip { position:fixed;z-index:300;width:min(300px,calc(100vw - 24px));padding:12px 14px;border:1px solid #5884a6;border-radius:10px;background:#142c45;color:#edf5ff;box-shadow:0 8px 24px #0005;font:13px/1.5 system-ui;overflow-wrap:anywhere; }
body.review-redesign .screen-speed-value { display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:55%; }
body.review-redesign .lo-fields > .screen-speed-field { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;grid-column:1/-1;border-top:1px solid var(--sv-line);padding:8px 0;font-size:13px; }
html[data-theme=light] body.review-redesign #r7Page.lane-options-page:not(.settings-page) .lo-actions button.primary { color:#03142a; }
body.review-redesign .screen-speed-value input[type=number] { width:72px;min-width:0; }
body.review-redesign .screen-speed-value input[type=checkbox] { appearance:auto;width:20px;height:20px;accent-color:#199f73; }
body.review-redesign .screen-speed-value small { color:var(--r7-muted,#b6c9dd);font-size:12px; }
body.review-redesign .screen-speed-preview { display:flex;align-items:baseline;gap:12px;background:#071728;border-radius:10px;padding:12px;margin-top:12px; }
body.review-redesign .screen-speed-preview strong { font-size:28px;margin-left:auto; }
html[data-theme=light] body.review-redesign button.screen-info-trigger { color:#295b7d;background:transparent;box-shadow:none; }
html[data-theme=light] body.review-redesign .screen-info-tooltip { color:#172d48;background:#f4f8fd;border-color:#7895ad; }
html[data-theme=light] body.review-redesign .screen-speed-value small { color:#40556e; }
html[data-theme=light] body.review-redesign .screen-speed-preview { background:#e1ebf5;color:#172d48; }
@media(max-width:767px) {
  body.review-redesign #visitWorkspace.screen-opening.r7-pinned-actions { display:flex;flex-direction:column;height:calc(100dvh - 100px);max-height:calc(100dvh - 100px);overflow:hidden; }
  body.review-redesign #visitWorkspace.screen-opening.r7-pinned-actions > .r7-workspace-content { flex:1 1 0;min-height:0;overflow:auto; }
}
body.review-redesign .screen-visit-side .r7-admin-card { padding:12px 16px;border:1px solid var(--sv-line);border-radius:16px;background:var(--sv-card); }
html[data-theme] body.review-redesign #visitWorkspace .daily-action.screen-accept { background:linear-gradient(180deg,#34e39b,#18c07a);color:#03231a; }
html[data-theme=light] .screen-link,html[data-theme=light] .screen-group-icon,html[data-theme=light] body.review-redesign #visitWorkspace.screen-opening .screen-link { color:#00627d; }
html[data-theme=light] .screen-ready { color:#0b6247; }
html[data-theme=light] .screen-negative,html[data-theme=light] .screen-shift-layout tr:has(.screen-negative) { color:#b01c35!important; }
html[data-theme=light] body.screens-v1 .screen-card,html[data-theme=light] body.screens-v1 :is(.r7-card,.r7-kpi,.r7-admin-card) { --screen-card-surface:#f4f8fd;background:var(--screen-card-surface);color:var(--sv-text); }
html[data-theme=light] body.screens-v1 .screen-recommendation { background:#e2f4e9;border-color:#38855f;color:#172b49; }
html[data-theme=light] .screen-bill-layout .screen-card { background:#f4f8fd;color:#172b49; }
html[data-theme=light] body.screens-v1 :is(input,select,button):disabled { opacity:1;color:var(--sv-muted); }
.screen-payments button { display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-width:0;padding:8px; }
.screen-payments svg { width:22px;height:22px; }
.screen-bill-modal #modalTitle { font-size:22px; }
body.review-redesign .screen-bill-modal #wizardBar .screen-accept { flex:0 1 360px;max-width:100%;font-size:18px; }
@media(max-width:1100px) { body.screens-v1 .screen-reports-layout .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .screen-guests .screen-two { grid-template-columns:minmax(0,1fr); } }
@media(max-width:800px) {
  body.screens-v1 .topbar { display:flex;align-items:center;flex-wrap:nowrap;gap:8px; }
  body.screens-v1 #r7HeaderTitle { display:block;flex:1;min-width:0;font-size:18px; }
  body.screens-v1 .topbar .top-actions { flex:0 0 auto;margin:0; }
  body.screens-v1 .topbar #r7Operator { flex:0 0 40px;padding:0;margin:0;border:0; }
  body.screens-v1 #r7Operator .r7-operator-text { display:none; }
  body.screens-v1 .r7-table { min-width:580px; }
}

body.review-redesign .lanes-panel { position:relative; }
html[data-theme] body.review-redesign #lanes .daily-lane[class*="glyph-"] {
  --tile-base:var(--hx-raised); background:color-mix(in srgb,var(--glyph) 9%,var(--hx-raised));
  border-color:color-mix(in srgb,var(--glyph) 45%,transparent); box-shadow:none;
}
html[data-theme] body.review-redesign #lanes .daily-lane.is-selected { outline:2px solid var(--hx-select);outline-offset:1px;box-shadow:none; }
html[data-theme] body.review-redesign #lanes .daily-lane-state { color:var(--hx-text);font-size:12px;font-weight:700;background:color-mix(in srgb,var(--glyph) 22%,transparent); }
body.review-redesign #lanes .daily-lane-pair { align-items:stretch; }
body.review-redesign #lanes .daily-lane-pair.is-offline::after,.hall-pair-alert { background:var(--hx-st-fault); }
.hall-equipment:not(.is-unknown),.hall-equipment:not(.is-unknown) .svgi { border-color:var(--hx-st-fault);color:var(--hx-st-fault); }
.hall-equipment { min-height:32px;height:32px; }
.hall-equipment:focus-visible { outline:0;border-width:2px;background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-panel)); }
#visitWorkspace .r7-visit-game > p.muted { font-size:13px;line-height:1.45;color:var(--hx-text-2); }
#visitWorkspace.r7-pinned-actions > .r7-workspace-content { flex:1 1 0;min-height:0;padding-bottom:16px;overflow:auto; }
#visitWorkspace.r7-pinned-actions > .daily-checkout { flex:none;background:transparent; }
.hall-legend-item { font-size:12px;font-weight:400;color:var(--hx-text-2); }
.hall-legend-count,#hallPage b { font-weight:700; }
#hallPage { font-weight:400;color:var(--hx-text-2); }
#hallPage b { color:var(--hx-text); }
.hall-legend-count { color:var(--hx-text); }
#hallQuickButtons { position:relative; }
.hall-quick-button { white-space:normal;font-size:11px; }
.hall-quick-button > span:last-child { max-width:100%;overflow-wrap:normal; }
.hall-quick-button:not(:focus-visible) { outline:none;box-shadow:none; }
.hall-quick-buttons:not([data-focus-input="keyboard"]) .hall-quick-button { outline:none;box-shadow:none; }
.hall-quick-button.is-add > span:first-child { font-size:22px;line-height:22px; }
.hall-quick-button.is-add .svgi { color:currentColor; }
.hall-quick-sheet { position:absolute;left:10px;right:0;bottom:96px;z-index:20;box-sizing:border-box;min-height:210px;max-height:260px;overflow:auto;padding:14px 16px;border:1px solid var(--hx-line-strong);border-radius:14px;background:var(--hx-panel);box-shadow:var(--elev-2);font-size:13px; }
.lanes-panel:has(.hall-quick-sheet) #hallZoomAuto { visibility:hidden; }
.lanes-panel:has(.hall-quick-sheet) #hallLegend { visibility:hidden; }
body.review-redesign #lanes .daily-lane { align-self:end; }
body.review-redesign #lanes .daily-lane-top { padding-top:calc(var(--hall-face-size) * .05 - (var(--hall-face-size) - var(--hall-tile)));padding-bottom:calc(var(--hall-face-size) * .03); }
body.review-redesign #lanes .daily-lane-no { font-size:calc(var(--hall-face-size) * .28); }
body.review-redesign #lanes .daily-lane-state { padding-block:calc(var(--hall-face-size) * .025); }
.hall-pair-alert { color:white; }
html[data-theme="neon"] .hall-equipment:not(.is-unknown) { border-color:#8b3b3b;color:white; }
body.review-redesign .lanes-panel:has(#hallScaleStage) { border:0;background:transparent;box-shadow:none;border-radius:0; }
.hall-quick-sheet h3 { margin:0 0 6px;font-size:16px; }
.hall-quick-sheet p { color:var(--hx-text-2);margin:0 0 10px; }
.hall-quick-sheet .hall-quick-options { margin:0; }
#hallQuickButtons .hall-quick-edit-item { position:relative;display:block;width:92px;height:64px;max-width:none;padding:0;border:0; }
#hallQuickButtons .hall-quick-name { width:92px;height:64px;min-height:64px;border-color:var(--hx-select); }
#hallQuickButtons .hall-quick-remove { position:absolute;right:-5px;top:-5px;width:18px;height:18px;min-width:18px;min-height:18px;padding:0;border:0;border-radius:50%;background:var(--hx-st-fault);color:white;font-size:15px;line-height:18px; }
#hallQuickButtons .hall-quick-done { min-height:62px;height:62px;background:var(--hx-select);color:var(--hx-on-cta);border-color:var(--hx-select);font-weight:700; }
#hallQuickButtons .hall-quick-done .svgi { color:inherit; }
html[data-theme="light"] body.review-redesign .hall-scale-controls .hall-page-dot { background:transparent;background-image:none;box-shadow:none;border:0; }
#visitWorkspace.r7-pinned-actions > .r7-workspace-content,#visitWorkspace.r7-pinned-actions > .r7-workspace-content.has-more { mask-image:none;-webkit-mask-image:none; }
#visitWorkspace .r7-player-list { background:transparent; }
#visitWorkspace .r7-player-list > li.is-clipped { visibility:hidden;pointer-events:none; }
#visitWorkspace .r7-player-group.is-clipped { visibility:hidden;pointer-events:none; }
#visitWorkspace .r7-workspace-content .is-clipped { visibility:hidden;pointer-events:none; }
#visitWorkspace.screen-opening .r7-workspace-content .is-clipped:is(button,input,select,textarea,label:has(input,select),li:has(button)) {
  visibility:visible;
  opacity:0;
}
#visitWorkspace.screen-opening .r7-workspace-content .is-clipped:focus-within { opacity:1; }
#visitWorkspace .r7-player-score,#visitWorkspace .r7-player-status { display:flex;align-items:center;align-self:center;line-height:1.4; }
@media (min-width:1001px) {
  #visitWorkspace.r7-pinned-actions .r7-visit-game { padding:4px 0;line-height:1.4; }
  #visitWorkspace.r7-pinned-actions .r7-visit-game > p.muted { margin:2px 0;line-height:1.35; }
  #visitWorkspace.r7-pinned-actions .r7-visit-game h4 { margin:4px 0 2px; }
  #visitWorkspace.r7-pinned-actions .r7-player-list > li { line-height:1.4; }
  #visitWorkspace.r7-pinned-actions .r7-player-list > li.r7-player-head { min-height:30px; }
  #visitWorkspace.r7-pinned-actions .r7-player-list { grid-template-columns:60px 36px minmax(0,1fr) minmax(54px,max-content);column-gap:10px; }
  #visitWorkspace.r7-pinned-actions .r7-player-list > li { grid-column:1 / -1;grid-template-columns:subgrid; }
  #visitWorkspace.r7-pinned-actions .r7-player-head > span:nth-child(n+2) { text-align:center; }
  #visitWorkspace.r7-pinned-actions .r7-player-score,#visitWorkspace.r7-pinned-actions .r7-player-status { justify-content:center; }
  #visitWorkspace.r7-pinned-actions .r7-player-bumpers { justify-items:center;min-width:0;max-width:100%;text-align:center;overflow-wrap:anywhere; }
}
body.review-redesign #r7Search input { min-height:40px;height:40px;font-size:14px; }
#r7Navigation [data-section="visits"] .r7-nav-count { background:#0860a8;color:white; }
.hall-workspace-close { display:none;align-self:flex-end;min-height:40px;min-width:40px; }
@media(min-width:768px) and (max-width:1000px) {
  body.review-redesign #r7Search { flex:1 1 140px;min-width:100px;max-width:240px; }
  body.review-redesign #r7Search .r7-search-input { display:block;min-width:0;width:100%;padding-left:12px; }
  body.review-redesign #r7Search .r7-search-toggle { display:none; }
  body.review-redesign:not(.r7-visit-focused) #visitWorkspace { display:none; }
  body.review-redesign:not(.r7-visit-focused) #visitWorkspace.is-hall-sheet { display:flex;position:fixed;z-index:35;top:110px;right:12px;bottom:12px;width:300px;height:auto;margin:0;overflow:hidden;background:var(--hx-panel);box-shadow:var(--elev-2); }
  #visitWorkspace.is-hall-sheet .hall-workspace-close { display:inline-grid;place-items:center; }
}
@media(max-width:767px) {
  body.review-redesign[data-navigation] #r7Navigation { bottom:0;margin:0;background:var(--hx-chrome);border-radius:0;box-sizing:border-box; }
  #visitWorkspace.r7-pinned-actions > .r7-workspace-content { flex:1 1 auto;overflow:visible; }
}
body.settings-open { --sv-bg0:#050d1e;--sv-card:rgba(12,27,56,.82);--sv-positive:#1ec780; }
html[data-theme="light"] body.settings-open { --sv-card:rgba(255,255,255,.82);--sv-positive:#178d67; }
body.settings-open .settings-page { background:radial-gradient(ellipse at 75% -12%,rgba(40,110,255,.28),transparent 58%),radial-gradient(ellipse at 8% 110%,rgba(0,190,255,.17),transparent 55%),linear-gradient(180deg,var(--sv-bg1),var(--sv-bg0)); }
body.settings-open #r7Navigation :is([data-section="settings"],#managerBtn) { background:linear-gradient(135deg,#1da4da,#1b95d4);color:#03142a;box-shadow:0 4px 18px rgba(31,198,239,.3); }
body.settings-open #r7Navigation .r7-nav-entry:not([data-section="settings"]).is-active { background:transparent;box-shadow:none;color:inherit; }
.settings-page .sv-title { align-items:center; }
.settings-page .sv-title > div { min-width:0; }
.settings-page .sv-title .sv-primary-action { margin-left:auto;flex:0 0 auto;min-width:130px;width:auto;min-height:44px;height:44px;padding:0 16px; }
.settings-page .sv-primary-action { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a;border:1px solid var(--sv-cyan);box-shadow:0 4px 18px rgba(31,198,239,.3);font-weight:700; }
.settings-page .sv-submenu h3 { text-transform:uppercase;letter-spacing:.09em;font-size:10.5px; }
.settings-page .sv-menu-item { box-sizing:border-box;gap:8px; }
.settings-page .sv-menu-item > span:not(.sv-icon) { min-width:0;flex:1; }
.settings-page .sv-menu-status { flex:0 0 auto;max-width:72px;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.settings-page .sv-menu-status.is-positive { color:var(--sv-positive); }
.settings-page .sv-menu-status.is-warning { color:var(--sv-warning); }
.settings-page .sv-security-state { margin-left:auto;display:flex;gap:12px;align-items:center;max-width:440px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--sv-positive) 50%,transparent);border-radius:12px;background:color-mix(in srgb,var(--sv-positive) 12%,var(--sv-sunk));font-size:13px;font-weight:700; }
.settings-page .sv-security-state > span { min-width:0; }
.settings-page .sv-policy-label { display:grid;gap:4px; }
.settings-page .sv-policy-label small { font-size:11px;color:var(--sv-muted); }
.settings-page .sv-policy-controls { display:flex;align-items:center;gap:8px;flex:none; }
.settings-page .sv-policy-controls input[type="number"] { width:64px; }
.settings-page .sv-policy-controls small { color:var(--sv-muted);font-size:12px; }
.settings-page .sv-rights h4 { font-size:13px;margin:16px 0 8px; }
.settings-page .sv-rights p { display:flex;gap:8px;font-size:12.5px;margin:6px 0;color:var(--sv-muted); }
.settings-page .sv-rights .is-allowed > span:first-child { color:var(--sv-positive);font-weight:800; }
.settings-page .sv-rights .is-denied > span:first-child { color:var(--hx-st-fault);font-weight:800; }
.settings-page .sv-component { display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:10px;border:1px solid var(--sv-line);border-radius:14px;background:color-mix(in srgb,var(--sv-card) 80%,var(--sv-bg1)); }
.settings-page .sv-component > span:last-child { display:grid;gap:5px;min-width:0; }
.settings-page .sv-component small { color:var(--sv-muted);font-size:12px; }
.settings-page .sv-component b { font-size:14px;line-height:1.3; }
.settings-page .sv-component-icon { display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#1ba96e,#22d48a);color:white; }
.settings-page .sv-component-icon .svgi { width:22px;height:22px; }
.settings-page .sv-component[data-tone="pos"] .sv-component-icon { background:linear-gradient(135deg,#2b8cff,#16b4e2); }
.settings-page .sv-component[data-tone="pos"] small { color:var(--hx-st-fault); }
.settings-page .sv-component[data-tone="booking"] .sv-component-icon { background:linear-gradient(135deg,#7b55e6,#b06bff); }
.settings-page .sv-component[data-tone="api"] .sv-component-icon { background:linear-gradient(135deg,#b46c12,#d5982b); }
.settings-page .sv-component[data-tone="later"] .sv-component-icon { background:#405271; }
.settings-page .sv-component[data-tone="neutral"] .sv-component-icon { background:var(--sv-sunk);color:var(--sv-muted); }
.settings-page .sv-exchange { display:grid;gap:16px;align-content:start;padding-block:14px; }
.settings-page .sv-exchange-row { display:grid;grid-template-columns:minmax(110px,1fr) 24px minmax(110px,1.3fr);align-items:center;gap:12px;font-size:13px; }
.settings-page .sv-exchange-row b { padding:10px;border:1px solid var(--sv-line);border-radius:12px;background:var(--sv-sunk); }
.settings-page .sv-exchange-row > span:nth-child(2) { color:var(--sv-cyan);font-size:22px;font-weight:700; }
.settings-page .sv-exchange-row > span:last-child { color:var(--sv-muted);line-height:1.5; }
.settings-page [data-profile-tone] { --profile-color:#5a6b8c; }
.settings-page [data-profile-tone="operator"] { --profile-color:#149fc9; }
.settings-page [data-profile-tone="manager"] { --profile-color:#8756d9; }
.settings-page [data-profile-tone="technician"] { --profile-color:#b67a20; }
.settings-page [data-profile-tone="superadmin"] { --profile-color:#ce357b; }
.settings-page .sv-role[data-profile-tone] .sv-avatar,.settings-page .sv-staff-row[data-profile-tone] .sv-avatar { background:var(--profile-color);color:white; }
.settings-page .sv-avatar .svgi { width:22px;height:22px; }
.settings-page .sv-profile-chip { display:inline-flex;align-items:center;padding:5px 8px;border-radius:8px;color:var(--sv-text);background:color-mix(in srgb,var(--profile-color) 25%,var(--sv-sunk));font-size:12px; }
.settings-page .sv-profile-segment { display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--sv-line);border-radius:11px;background:var(--sv-sunk);font-size:12px; }
.settings-page .sv-profile-segment > span { padding:8px;border-radius:8px;color:var(--sv-muted); }
.settings-page .sv-profile-segment .is-selected { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a; }
.settings-page .sv-profile-segment .is-selected::before { content:'✓ '; }
.settings-page .sv-tabs { gap:12px;padding-bottom:0; }
body.settings-open .settings-page .sv-tabs button { background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--sv-muted);box-shadow:none;font-weight:700;padding:10px 12px; }
body.settings-open .settings-page .sv-tabs button[aria-pressed="true"] { color:var(--sv-cyan);border-bottom-color:var(--sv-cyan); }
.settings-page .sv-days span { display:grid;place-items:center;box-sizing:border-box;font-size:13px;font-weight:700;min-height:44px; }
.settings-page .sv-guest-preview { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid rgba(31,198,239,.3);border-radius:12px;background:color-mix(in srgb,var(--sv-cyan) 10%,var(--sv-sunk)); }
.settings-page .sv-guest-preview > span { display:grid;gap:6px;min-width:0; }
.settings-page .sv-guest-preview small { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--sv-muted); }
.settings-page .sv-guest-preview b { font-size:13px; }
.settings-page .sv-guest-preview strong { font-size:22px;text-align:right; }
.settings-page .sv-format-description { display:block;font-size:11px;line-height:1.35;font-weight:400;max-width:100%;margin-top:6px; }
.settings-page .sv-formats .lo-segment button { padding-bottom:42px;min-height:128px; }
.settings-page .lo-field[hidden] { display:none; }
.settings-page .sv-format-art { font-size:28px;font-weight:800;line-height:1; }
.settings-page .sv-summary { color:var(--sv-muted);font-size:13px;line-height:1.6; }
.settings-page .sv-summary b { color:var(--sv-text); }
.settings-page .sv-event { --event-color:#1fc6ef; }
.settings-page .sv-event[data-category="tariffs"] { --event-color:#b97a12; }
.settings-page .sv-event[data-category="access"] { --event-color:#8756d9; }
.settings-page .sv-event[data-category="equipment"] { --event-color:#158451; }
.settings-page .sv-event .sv-icon { background:var(--event-color); }
.settings-page .sv-event-group { background:color-mix(in srgb,var(--event-color) 20%,var(--sv-sunk));color:var(--sv-text); }
.settings-page .sv-terminal-identity { display:grid;gap:8px; }
.settings-page .sv-terminal-identity strong { font-family:ui-monospace,monospace;overflow-wrap:anywhere;word-break:break-all;text-align:left; }
.settings-page .sv-savebar:not([hidden]) { position:static;z-index:auto;gap:8px;margin-top:16px;padding:12px 0 0;border-radius:0;border-top:1px solid var(--sv-line);background:transparent;box-shadow:none;flex-wrap:nowrap;scroll-margin-bottom:16px; }
.settings-page .sv-savebar > span { min-width:0;flex:1 1 auto;overflow-wrap:anywhere; }
.settings-page .sv-policy-form .sv-savebar { flex-wrap:wrap; }
.settings-page .sv-component-state { justify-self:start;border-radius:6px;padding:3px 6px;background:var(--sv-sunk); }
.settings-page .sv-savebar button { min-height:44px;width:auto;flex:none;padding:10px 14px;border:1px solid var(--sv-line);background:transparent;color:var(--sv-text);font-weight:700; }
body.settings-open .settings-page .sv-savebar button.primary { background:linear-gradient(180deg,#22d48a,#19ac6f);color:#032018;border:1px solid #1ec780;box-shadow:0 3px 14px rgba(30,199,128,.2); }
.settings-page .sv-error:not(:empty) { display:flex;gap:8px;align-items:flex-start;padding:12px;border:1px solid var(--hx-st-fault);border-radius:12px;background:color-mix(in srgb,var(--hx-st-fault) 8%,var(--sv-sunk));color:var(--sv-text);font-size:13px;line-height:1.5; }
.settings-page .sv-error:not(:empty)::before { content:'!';display:grid;place-items:center;flex:0 0 18px;height:18px;border:1px solid var(--hx-st-fault);border-radius:50%;color:var(--hx-st-fault);font-weight:800; }
.settings-page .sv-error:empty { display:none; }
body.settings-open .toast { pointer-events:none;max-width:min(420px,calc(100vw - 32px)); }
.settings-page select { appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%238ba5c9' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px; }
.settings-page .screen-section { padding:0;border:0;background:none;box-shadow:none; }
.settings-page .screen-policy-box .seg { display:grid;grid-template-columns:minmax(0,1fr); }
.settings-page .screen-policy-box .seg-btn { min-width:0;overflow-wrap:normal; }
.settings-page .screen-swatch.on { border-color:var(--sv-cyan);outline:1px solid var(--sv-cyan); }
.settings-page .sv-list-item:has(.sv-screen-list-icon) { gap:8px;padding-inline:10px; }
.settings-page .sv-screen-list-icon { display:grid;place-items:center;flex:0 0 24px;color:var(--sv-cyan); }
.settings-page .sv-list-item[aria-pressed=true] .sv-screen-list-icon { color:inherit; }
.settings-page .sv-list-item > span { min-width:0; }
.settings-page .sv-screen-list-icon .svgi { width:24px;height:24px;flex:none; }
.settings-page .sv-screen-list-icon + span { flex:1; }
.settings-page .sv-screen-list-icon + span small { white-space:nowrap; }
.settings-page .sv-list-item small { display:block;margin-top:4px;font-size:11px;line-height:1.4; }
.settings-page .sv-state-chip { display:inline-flex;margin-left:auto;border:1px solid var(--sv-line);border-radius:8px;padding:4px 6px;color:var(--sv-positive);font-size:11px; }
.settings-page .sv-scheme > div { flex:1 1 0; }
@media(min-width:768px) and (max-width:1179px) {
  .settings-page .sv-submenu { margin:14px auto;padding:12px;border:1px solid var(--sv-line);border-radius:16px;background:var(--sv-card);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(0,0,0,.25); }
  .settings-page .sv-title { align-items:flex-start; }
  .settings-page .sv-security-state { margin-left:0; }
}
@media(max-width:1179px) {
  body.settings-open .settings-page { box-sizing:border-box;padding-bottom:16px;scroll-padding-bottom:16px; }
}
@media(max-width:600px) {
  body.settings-open .settings-page { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
  body.settings-open .topbar #r7Operator { margin-left:0;padding-left:0;border-left:0; }
  body.settings-open .topbar #r7HeaderTitle { font-size:16px;overflow-wrap:normal; }
  .settings-page .sv-policy-form .sv-row { flex-wrap:wrap; }
  .settings-page .sv-security-state { margin-left:0;width:100%;box-sizing:border-box; }
  .settings-page .sv-exchange-row { grid-template-columns:minmax(90px,1fr) 22px minmax(100px,1fr);gap:6px; }
  .settings-page .sv-guest-preview { flex-wrap:wrap; }
  .settings-page .sv-title .sv-primary-action { margin-left:0; }
  .settings-page .sv-savebar:not([hidden]) { flex-wrap:wrap;scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
}
.settings-page[data-screen] > .manager-session-cover { position:fixed;inset:50% auto auto calc(50% + 164px);transform:translate(-50%,-50%);width:min(620px,calc(100vw - 360px));max-height:calc(100dvh - 48px);background:rgba(15,37,76,.92);border:1px solid rgba(90,150,255,.3);border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.4),0 0 0 100vmax rgba(0,6,18,.55); }
html[data-theme="light"] .settings-page[data-screen] > .manager-session-cover { background:rgba(255,255,255,.96);color:#172b49; }
.settings-page .sv-savebar button:disabled { opacity:.45;cursor:not-allowed; }
.settings-page .sv-entry-hint { color:var(--sv-muted);font-size:14px; }
html[data-theme="light"] .settings-page .sv-menu-item[aria-current] { color:#fff;background:#596f91; }
html[data-theme="light"] .settings-page .sv-menu-status.is-positive { color:#0b6247; }
html[data-theme="light"] .settings-page .sv-menu-item[aria-current] .sv-menu-status { color:#fff; }
html[data-theme="light"] body.settings-open .settings-page :is(.sv-list-item,.sv-controller,.sv-staff-row,.sv-role):not([aria-pressed="true"]) { background:#f4f8fd;color:#172b49;border-color:rgba(90,150,255,.16); }
html[data-theme="light"] .settings-page .sv-staff-row[data-profile-tone="operator"] .sv-avatar { color:#172b49; }
@media(max-width:1179px) {
  .settings-page[data-screen] > .manager-session-cover { left:50%;width:min(620px,calc(100vw - 32px)); }
}
@media(min-width:768px) and (max-width:1179px) {
  body.settings-open.review-redesign[data-navigation] .topbar #r7HeaderTitle { font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 0; }
  .settings-page .sv-equipment-grid .sv-controller { display:grid;grid-template-columns:40px minmax(0,1fr) max-content 14px;gap:8px; }
  .settings-page .sv-controller > .sv-device { width:40px;height:40px; }
  .settings-page .sv-controller b { font-size:13px;white-space:nowrap; }
}
.settings-page .sv-card .sv-terminal-identity strong { font-family:inherit;font-size:16px;font-weight:700; }
body.screens-v1 .r7-page-head h2 { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%); }
body.screens-v1 .r7-page-head p { display:none; }
body.screens-v1 .r7-page-head { min-height:0;justify-content:flex-end; }
body.screens-v1 .r7-page-head:has([data-role="day-open"]) { align-items:center;justify-content:space-between; }
body.screens-v1 .r7-page-head:has([data-role="day-open"]) p { display:block;margin:0; }
body.screens-v1 .r7-page-head > div:first-child:only-child { display:none; }
body.screens-v1 .r7-kpi { grid-template-rows:minmax(32px,auto) auto auto;align-content:start; }
body.screens-v1 .r7-kpi-label { min-height:32px; }
body.screens-v1 .screen-shift-strip .r7-kpi-sub { display:none; }
body.screens-v1 .screen-reports-layout .r7-table,body.screens-v1 .screen-shift-layout .r7-table,body.screens-v1 .screen-queue-layout .screen-table-scroll table { min-width:0;width:100%;table-layout:fixed; }
body.screens-v1 .r7-table-wrap { overflow:visible; }
body.screens-v1 .r7-table td,body.screens-v1 .r7-table th { overflow:visible;text-overflow:clip;overflow-wrap:anywhere; }
body.screens-v1 .screen-queue-table td:nth-child(2) { min-width:0; }
body.screens-v1 .screen-queue-table th { white-space:normal; }
body.screens-v1 .screen-queue-table .r7w-more { float:right;min-width:44px;width:44px; }
body.screens-v1 .screen-queue-table .r7w-group { max-width:100%; }
body.screens-v1 .r7w-calendar { grid-auto-rows:54px;grid-template-columns:64px repeat(24,minmax(200px,1fr));min-width:4864px; }
body.screens-v1 .r7w-calendar-scroll { max-height:none;padding-bottom:12px;scrollbar-gutter:stable; }
body.screens-v1 .r7w-booking { box-sizing:border-box;height:46px;min-height:46px;max-height:46px;overflow:visible;padding:2px 6px;gap:0; }
body.screens-v1 .r7w-booking strong { font-size:11px;line-height:12px;flex:none; }
body.screens-v1 .r7w-booking small { font-size:10px;line-height:12px;flex:none; }
body.screens-v1 .r7w-now { overflow:visible; }
body.screens-v1 .r7w-now b { position:absolute;top:-28px;left:-20px;padding:4px 6px;border-radius:6px;background:#1fc6ef;color:#03142a;font-size:11px;white-space:nowrap; }
body.review-redesign :is(.screen-opening,.lane-options-page) select,body.screens-v1 select { appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%238ba5c9' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px; }
body.review-redesign .lane-options-page .lo-segment button[aria-pressed=true] { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a;border-color:#1fc6ef; }
body.review-redesign .lane-options-page .lo-segment button[aria-pressed=true]::before { content:'✓ '; }
body.review-redesign .screen-speed-field { flex-wrap:wrap;gap:4px 12px;font-size:14px; }
body.review-redesign .screen-speed-field > .screen-info-label { flex:1 0 100%;font-size:14px;font-weight:700; }
body.review-redesign .screen-speed-value { max-width:100%;width:100%;justify-content:flex-start;flex-wrap:nowrap; }
body.review-redesign button.screen-unknown-switch { position:relative;min-width:48px;width:48px;height:28px;min-height:28px;border:1px dashed #7892ae;border-radius:18px;background:#465d78;padding:3px;opacity:1;cursor:not-allowed;box-shadow:none; }
body.review-redesign .screen-unknown-switch span { position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:20px;height:20px;background:#c1d0df;border-radius:50%;margin:0; }
body.review-redesign .screen-speed-units { display:flex;gap:4px;padding:3px;border:1px solid var(--sv-line);border-radius:10px;background:var(--sv-sunk); }
body.review-redesign .screen-speed-units button { min-width:64px;min-height:44px;background:transparent;color:var(--sv-muted);border:0;border-radius:7px;opacity:1; }
body.review-redesign .screen-speed-value input { color:var(--sv-text);opacity:1; }
body.review-redesign .screen-speed-value input::placeholder { color:var(--sv-muted);opacity:1; }
body.settings-open .screen-speed-card .screen-speed-field { display:block; }
body.settings-open .screen-speed-card .screen-speed-value { margin-top:4px; }
body.settings-open .sv-body .screen-policy-box label { font-size:14px;font-weight:700; }
body.settings-open .screen-show-section > .wiz-label { display:none; }
body.settings-open .screen-show-section .screen-info-label { font-size:14px;font-weight:700; }
body.review-redesign .screen-speed-value:has(.screen-speed-units) { flex-wrap:wrap; }
body.review-redesign .screen-speed-units { flex:1 1 100%;width:100%;box-sizing:border-box; }
body.review-redesign .screen-speed-units button { width:auto;flex:1;min-width:52px;white-space:nowrap;overflow-wrap:normal;font-size:12px; }
body.review-redesign .sv-notice { display:flex;align-items:center;gap:8px;padding:10px 12px;flex:none;font-size:13px;line-height:1.4;border:1px solid var(--sv-line);border-radius:10px;background:var(--sv-card);color:var(--sv-text); }
body.screens-v1 :is(label,.screen-guest-profile,.screen-additional > summary,.r7-manager-tools > summary) { font-size:14px;font-weight:600; }
body.screens-v1 details > summary,body.review-redesign .screen-active-details > summary { list-style:none; }
body.screens-v1 details > summary::-webkit-details-marker,body.review-redesign .screen-active-details > summary::-webkit-details-marker { display:none; }
body.screens-v1 details > summary::before,body.review-redesign .screen-active-details > summary::before { content:'';display:inline-block;width:7px;height:7px;margin-right:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg); }
body.screens-v1 details[open] > summary::before,body.review-redesign .screen-active-details[open] > summary::before { transform:rotate(45deg); }
body.screens-v1 :is(.screen-reports-layout,.screen-queue-layout) button:disabled { background:#334a61;color:#dce8f5;opacity:1;border:1px solid #6d87a2;box-shadow:none;cursor:not-allowed; }
html[data-theme=light] body.screens-v1 :is(.screen-reports-layout,.screen-queue-layout) button:disabled { background:#e1e9f1;color:#40556e;border-color:#8da3bb; }
html[data-theme=light] body.screens-v1 :is(.screen-booking-layout,.screen-queue-layout) button.primary:not(:disabled) { background:linear-gradient(180deg,#34e39b,#18c07a);color:#03231a;border-color:#18c07a; }
body.screens-v1 .screen-bill-layout { height:auto;grid-template-columns:minmax(0,1fr) 360px;align-items:start; }
body.screens-v1 .screen-bill-actions { display:flex;flex-direction:column;gap:12px; }
body.screens-v1 .screen-bill-actions .spacer { display:none; }
body.screens-v1 .screen-bill-actions .screen-accept { width:100%;min-height:64px; }
body.screens-v1 .screen-bill-actions button:not(.screen-accept) { min-height:44px; }
body.screens-v1 .screen-breadcrumb { display:flex;align-items:center;gap:12px;font-size:13px;flex-wrap:wrap; }
body.screens-v1 .screen-payments { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
body.screens-v1 .screen-payments button { box-sizing:border-box;width:100%;height:auto;aspect-ratio:1;min-height:0;max-height:none;padding:6px;font-size:12px!important;white-space:normal;overflow-wrap:anywhere; }
body.screens-v1 .screen-payments.seg { height:auto;max-height:none;align-items:stretch;padding:0;background:transparent;border:0; }
body.screens-v1 .screen-payments button:disabled { opacity:1;color:var(--sv-muted);background:var(--sv-sunk); }
body.screens-v1 .screen-payments button.on { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a; }
body.screens-v1 .screen-bill-total { overflow-wrap:anywhere;font-size:36px; }
body.screens-v1 .screen-bill-layout .bill { width:100%;table-layout:fixed; }
body.screens-v1 .screen-bill-layout .bill td { white-space:normal;overflow-wrap:anywhere; }
body.screens-v1 .screen-bill-layout > .screen-card { min-height:0;display:flex;flex-direction:column;align-self:start; }
body.screens-v1 .screen-bill-layout > .screen-card .bill { flex:0 0 auto;display:flex;flex-direction:column; }
body.screens-v1 .screen-bill-layout .bill tr { display:grid;grid-template-columns:minmax(0,1fr) auto; }
body.screens-v1 .screen-bill-layout .bill .bill-total { margin-top:0; }
body.screens-v1 .screen-payments small { white-space:nowrap;font-size:10px; }
body.screens-v1 .screen-bill-return button { white-space:nowrap;font-size:13px;padding-inline:4px; }
body.screens-v1 .r7-tag.tone-play { --tone:#ffbf3c; }
html[data-theme=light] body.screens-v1 .r7-tag.tone-play { --tone:#914300;background:#ffe0b0; }
body.screens-v1 .screen-queue-table { table-layout:auto!important; }
body.screens-v1 .screen-queue-table th { overflow-wrap:normal;white-space:nowrap;font-size:11px; }
body.screens-v1 .screen-queue-table :is(th,td):nth-child(2) { width:46%; }
body.screens-v1 .screen-group-name { display:flex;align-items:center;gap:8px;min-width:0; }
body.screens-v1 .screen-group-name .screen-group-icon { flex:0 0 22px;margin:0; }
body.screens-v1 .screen-group-name .r7w-group { display:block;flex:1;max-width:none;width:auto;min-width:0;padding-inline:0;overflow-wrap:normal; }
body.screens-v1 .screen-resume-cell { white-space:nowrap; }
body.screens-v1 .screen-resume-cell .r7w-more { float:none;margin-left:8px;vertical-align:middle; }
body.screens-v1 #r7Page > .r7-tabs button,body.screens-v1 .r7-page-actions button { font-size:14px; }
html[data-theme=light] body.screens-v1 .r7-page-actions button.primary { background:linear-gradient(180deg,#34e39b,#18c07a);color:#03231a;border-color:#18c07a; }
body.screens-v1 .r7w-now b { top:8px;left:8px; }
body.review-redesign .screen-denial { display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--hx-st-fault);border-radius:10px;background:var(--sv-card);color:var(--sv-text);font-size:13px;line-height:1.4;flex:none; }
body.review-redesign .screen-denial > span { flex:1;min-width:0; }
.settings-page .sv-title h2:focus { outline:none;box-shadow:none; }
.settings-page .sv-title h2:focus-visible { outline:2px solid var(--sv-cyan);outline-offset:3px; }
.settings-page .screen-attract-scroll .rows-grid { display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;min-width:0; }
.settings-page .screen-attract-scroll { height:auto;max-height:none;overflow:visible;flex:none; }
.hall-quick-sheet.is-terminal-editor { position:fixed;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px));min-height:0;max-height:calc(100dvh - 180px);display:flex;flex-direction:column;gap:12px; }
.hall-quick-sheet.is-terminal-editor #hallQuickButtons { order:2;flex:none;display:flex;flex-wrap:wrap;height:auto;max-height:none;overflow:visible;padding:6px; }
.hall-quick-sheet.is-terminal-editor .hall-quick-options { min-height:0;overflow:auto; }
.settings-page .screen-attract-row { display:flex;flex-wrap:wrap;gap:10px;min-width:0;max-width:100%;box-sizing:border-box;padding:12px; }
.settings-page .screen-attract-row .park-name { flex:1 1 100%;min-width:0;font-size:14px;overflow-wrap:anywhere; }
.settings-page .screen-attract-row .screen-dur { flex:1 1 150px;min-width:0; }
.settings-page .screen-attract-row .stepper { display:flex;min-width:0; }
.settings-page .screen-attract-row .stepper button { flex:1;min-width:44px;min-height:44px;padding:6px;font-size:14px; }
.settings-page .screen-attract-row .actions { display:flex;flex-wrap:wrap;gap:6px;min-width:0; }
.settings-page .screen-attract-row .actions button { min-width:44px;min-height:44px;font-size:13px; }
body.review-redesign #visitWorkspace.screen-active .daily-workspace-title-row { align-items:flex-start;flex-direction:column;text-align:left; }
body.review-redesign .screen-active .screen-lane-label { white-space:nowrap; }
body.review-redesign .screen-active .daily-workspace-head .ws-sub { overflow-wrap:normal;word-break:normal; }
body.screens-v1 .screen-bill-layout aside { min-height:calc(100dvh - 170px); }
body.screens-v1 .screen-bill-actions { margin-top:auto; }
body.screens-v1 .screen-bill-return { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
body.screens-v1 .screen-bill-return button { border:1px solid var(--sv-line);border-radius:10px;white-space:normal; }
body.review-redesign .screen-format-choice { display:flex;gap:4px; }
body.review-redesign .screen-format-choice button { flex:1;min-width:0;min-height:44px;padding:6px;border:1px solid var(--sv-line);background:var(--sv-sunk);font-size:13px;border-radius:8px; }
body.review-redesign .screen-format-choice button[aria-pressed=true] { background:linear-gradient(180deg,#2fd3f7,#16b4e2);color:#03142a; }
body.review-redesign .screen-active .daily-workspace-head h3 { font-size:17px; }
body.review-redesign .screen-active .daily-equipment-summary { white-space:normal;text-overflow:clip; }
body.screens-v1 .screen-receipt-number { display:inline-flex;align-self:flex-start;padding:4px 8px;border:1px solid var(--sv-line);border-radius:8px;font:12px/1.4 ui-monospace,monospace;overflow-wrap:anywhere; }
@media(min-width:768px) and (max-width:1000px) {
  body.review-redesign[data-navigation]:has(#visitWorkspace.is-hall-sheet) { grid-template-columns:var(--hx-rail-w) minmax(0,1fr) 388px;height:100dvh;min-height:0;overflow:hidden; }
  body.review-redesign[data-navigation]:has(#visitWorkspace.is-hall-sheet) .lanes-panel { grid-column:2;grid-row:4;min-width:0;margin:8px; }
  body.review-redesign[data-navigation]:not(.r7-visit-focused) #visitWorkspace.is-hall-sheet { position:static;grid-column:3;grid-row:4;box-sizing:border-box;width:380px;height:auto;margin:8px 8px 8px 0;max-height:none; }
}
body.screens-v1 .toast { position:fixed;top:76px;bottom:auto;right:18px;max-width:min(360px,calc(100vw - 36px)); }
body.screens-v1 #r7Navigation .r7-nav-entry:not(.selected):not([aria-current]):hover { background:transparent; }
@media(min-width:651px) and (max-width:1100px) {
  body.screens-v1 .screen-shift-layout,body.screens-v1 .screen-reports-layout,body.screens-v1 .screen-queue-layout { grid-template-columns:minmax(0,1fr); }
  body.screens-v1 .screen-bill-layout { grid-template-columns:minmax(0,1fr) 280px; }
  body.screens-v1 .screen-summary-layout .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  body.screens-v1 .screen-bill-layout { grid-template-columns:minmax(0,1fr); }
  body.screens-v1 .screen-bill-layout > .screen-card,body.screens-v1 .screen-bill-layout aside { min-height:0; }
  body.screens-v1 .screen-bill-layout,body.screens-v1 .screen-bill-layout aside { gap:8px; }
  body.screens-v1 .screen-bill-layout .screen-card { padding:10px 12px; }
  body.screens-v1 .screen-bill-layout h3 { margin-bottom:8px; }
  body.screens-v1 .screen-bill-layout .bill td { padding:6px 4px; }
  body.screens-v1 .screen-bill-total { font-size:28px; }
  body.screens-v1 .screen-bill-actions { gap:6px; }
  body.screens-v1 .screen-bill-actions button:not(.screen-accept) { min-height:44px;font-size:14px;padding:6px; }
  body.screens-v1 .screen-bill-actions .screen-accept { min-height:56px; }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table { display:block; }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table :is(thead,caption) { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table tbody { display:grid;gap:10px; }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table tr { display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--sv-line);border-radius:12px;padding:8px; }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table td { display:flex;justify-content:space-between;align-items:center;gap:12px;min-width:0;border:0;text-align:right; }
  body.screens-v1 :is(.r7-visits-card,.screen-queue-layout,.screen-shift-layout) .r7-table td::before { content:attr(data-label);text-align:left;color:var(--sv-muted);font-size:12px; }
  body.screens-v1 .r7-visits-card .r7-table { min-width:0;width:100%;max-width:100%; }
  body.screens-v1 .r7-visits-card .r7-table td { display:grid;grid-template-columns:88px minmax(0,1fr);justify-content:normal;min-width:0;max-width:100%; }
  body.screens-v1 .r7-visits-card .r7-table td > * { min-width:0;max-width:100%;overflow-wrap:normal; }
  body.screens-v1 .r7-visits-bar { display:block;min-width:0; }
  body.screens-v1 .r7-visits-card { min-width:0; }
  body.screens-v1 .r7-visits-bar .r7-tabs { display:flex;flex-wrap:nowrap;max-width:100%;box-sizing:border-box;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--sv-muted) var(--sv-sunk);gap:8px;margin-bottom:10px;padding:3px 3px 7px; }
  body.screens-v1 .r7-visits-bar .r7-tab { flex:0 0 auto;justify-content:center;min-width:0;padding:8px 12px;font-size:12px;white-space:nowrap;overflow-wrap:normal;gap:8px; }
  body.screens-v1 .r7-visits-bar .r7-tab > * { flex-shrink:0; }
  body.screens-v1 .screen-queue-table :is(th,td):nth-child(2) { width:auto; }
  body.screens-v1 .screen-reports-layout .r7-table { font-size:11px; }
  body.screens-v1 .screen-reports-layout .r7-table :is(td,th) { padding:8px 3px; }
}
.settings-page .sv-card .sv-terminal-identity small { font:13px ui-monospace,monospace;overflow-wrap:anywhere; }
.settings-page .sv-menu-item { grid-template-columns:28px minmax(0,1fr) 50px;gap:6px;font-size:13px; }
.settings-page .sv-menu-item:has(.sv-menu-status:empty) { grid-template-columns:28px minmax(0,1fr); }
.settings-page .sv-menu-item > span:not(.sv-icon) { overflow-wrap:normal;word-break:normal;overflow:hidden;text-overflow:ellipsis; }
.settings-page > .manager-session-cover h3 { font-size:22px;line-height:1.35;margin:0; }
.settings-page > .manager-session-cover p { font-size:14px; }
.settings-page .sv-denied p { font-size:14px;line-height:1.5;margin:0; }
.settings-page .sv-card > .sv-denied { border:0;background:none;box-shadow:none;padding:12px 0; }
body.settings-open.review-redesign[data-navigation]:has(#securityOffBanner:not([hidden])) .topbar #r7HeaderTitle { white-space:nowrap;flex:0 0 auto; }
@media(max-width:600px) {
  body.settings-open.review-redesign main.workspace { display:flex;flex:1;flex-direction:column;align-items:stretch;padding-bottom:0; }
  body.settings-open .settings-page { flex:1; }
  .settings-page .sv-device-node b { font-size:16px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis; }
  body.settings-open .topbar #r7HeaderTitle { font-size:13px; }
  body.settings-open .topbar #r7PinOff { order:5;margin:0; }
  body.settings-open .topbar #r7Operator strong { max-width:86px; }
  body.settings-open.review-redesign .topbar .top-actions { display:contents; }
  body.settings-open .topbar #r7HeaderTitle { font-size:12px; }
  body.settings-open .topbar #r7Operator { gap:6px;padding-right:0; }
  body.settings-open .topbar #r7Operator .r7-operator-avatar { width:28px;height:28px;flex:0 0 28px;font-size:14px; }
  body.settings-open .topbar #r7Operator .r7-operator-text { max-width:124px;min-width:0; }
  body.settings-open .topbar #r7Operator :is(small,strong) { max-width:124px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  body.settings-open.review-redesign[data-navigation] .topbar { display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"title title profile" "status equipment bell" "pin pin pin";gap:4px 8px;height:auto; }
  body.settings-open.review-redesign[data-navigation] .topbar #r7HeaderTitle { grid-area:title;font-size:12px; }
  body.settings-open.review-redesign[data-navigation] .topbar #r7Operator { grid-area:profile; }
  body.settings-open .topbar #r7Operator .r7-operator-text { display:none; }
  body.settings-open .topbar #r7SystemState { grid-area:status;display:flex;justify-self:start; }
  body.settings-open .topbar #hallEquipment:not([hidden]) { grid-area:equipment;display:flex; }
  body.settings-open .topbar #hallEquipment[hidden] { display:none; }
  body.settings-open .topbar #r7Bell { grid-area:bell;display:grid;place-items:center; }
  body.settings-open.review-redesign[data-navigation] .topbar #r7PinOff { grid-area:pin;justify-self:start; }
  .settings-page .sv-tabs { gap:4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.settings-open .settings-page .sv-tabs button { white-space:nowrap;padding-inline:4px;font-size:12px; }
}
html[data-theme] body.review-redesign { --ht-base:#0c1c34;--ht-ink:#eff1f6;--ht-muted:#a0a7ba;--ht-free:#2fd6c4;--ht-play:#ffbf3c;--ht-pause:#32b6f5;--ht-pay:#b79bff;--ht-book:#fdd30b;--ht-red:#c73c27;--ht-select:#8caeff; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] { gap:30px 20px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair { position:relative;gap:8px;padding:5px;border:1px solid color-mix(in srgb,var(--ht-muted) 14%,transparent);border-radius:19px;background:color-mix(in srgb,var(--ht-muted) 4%,transparent);grid-template-rows:var(--hall-tile);overflow:visible; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair.is-offline { padding:4px;border:2px solid var(--ht-mech);background:color-mix(in srgb,var(--ht-mech) 9%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane { --ht-color:var(--ht-muted);--ht-tone:5%;--ht-glow:26%;--ht-gx:12%;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:visible;width:var(--hall-tile);height:var(--hall-tile);min-width:0;min-height:0;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--ht-color) 42%,var(--ht-base));border-radius:14px;padding:calc(var(--hall-tile)*.08) calc(var(--hall-tile)*.08) calc(var(--hall-tile)*.12);color:var(--ht-ink);background:radial-gradient(130% 95% at var(--ht-gx) -10%,color-mix(in srgb,var(--ht-color) var(--ht-glow),transparent),transparent 60%),color-mix(in srgb,var(--ht-color) var(--ht-tone),var(--ht-base));box-shadow:inset 0 1px 0 #ffffff12,0 16px 30px -18px color-mix(in srgb,var(--ht-color) 70%,transparent);animation:none;transform:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="odd"] { padding-right:calc(var(--hall-tile)*.1);text-align:right; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] { --ht-gx:88%;padding-left:calc(var(--hall-tile)*.1);text-align:left; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-free { --ht-color:var(--ht-free);--ht-tone:5%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-play { --ht-color:var(--ht-play);--ht-tone:21%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-pause { --ht-color:var(--ht-pause);--ht-tone:19%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-pay { --ht-color:var(--ht-pay);--ht-tone:19%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-book { --ht-color:var(--ht-book);--ht-tone:8%;border-style:dashed;border-color:color-mix(in srgb,var(--ht-color) 60%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-book, html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-neutral { background:color-mix(in srgb,var(--ht-color) var(--ht-tone),var(--ht-base));box-shadow:inset 0 1px 0 #ffffff12; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-free { border-color:color-mix(in srgb,var(--ht-color) 22%,var(--ht-base)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane::after { content:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-top { display:flex;position:static;align-items:flex-start;justify-content:space-between;flex:none;width:100%;height:auto;margin:0;padding:0;background:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .daily-lane-top { flex-direction:row-reverse; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-no { position:static;display:block;font-size:calc(var(--hall-tile)*.36);font-weight:800;line-height:.86;letter-spacing:-.035em;color:var(--ht-ink);margin:0;padding:0;text-shadow:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-glyph { position:static;display:grid;place-items:center;width:calc(var(--hall-tile)*.27);height:calc(var(--hall-tile)*.27);border-radius:50%;color:var(--ht-color);background:color-mix(in srgb,var(--ht-color) 15%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ht-color) 55%,transparent);transform:none;opacity:1; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-glyph svg { display:block;width:58%;height:58%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-free .daily-lane-glyph { background:color-mix(in srgb,var(--ht-color) 9%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ht-color) 40%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-book .daily-lane-glyph { background:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ht-color) 70%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-state { position:static;display:block;width:auto;min-height:0;max-width:100%;margin:auto 0 0;padding:0;border:0;background:none;box-shadow:none;color:var(--ht-color);font-size:calc(var(--hall-tile)*.155);font-weight:800;line-height:1.08;letter-spacing:-.01em;text-align:inherit;white-space:nowrap;overflow:visible; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-state-mark { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-main-figure { position:static;display:flex;justify-content:flex-end;gap:.2em;width:auto;margin:3px 0 0;max-width:100%;padding:0;font-size:calc(var(--hall-tile)*.145*var(--hall-figure-scale,1));font-weight:800;line-height:1.05;letter-spacing:-.01em;white-space:nowrap;color:var(--ht-ink);text-align:inherit;overflow:visible; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-main-figure[hidden] { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .hall-main-figure { justify-content:flex-start; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-main-figure small { font-size:.62em;font-weight:650;align-self:baseline;color:var(--ht-muted);letter-spacing:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-main-figure.is-stale { color:var(--ht-muted); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress { position:absolute;left:12px;right:12px;bottom:9px;height:5px;border-radius:3px;background:color-mix(in srgb,var(--ht-color) 18%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress i { display:block;height:100%;border-radius:3px;background:var(--ht-color); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="odd"] .hall-tile-progress:not(.is-segmented) i { margin-left:auto; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress.is-paused i { background:repeating-linear-gradient(90deg,var(--ht-color) 0 6px,transparent 6px 9px); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress.is-segmented { display:flex;gap:3px;background:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress.is-segmented i { flex:1;min-width:0;border-radius:1px;background:color-mix(in srgb,var(--ht-color) 22%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress.is-segmented i.is-done { background:var(--ht-color); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-progress.is-segmented i.is-current { background:color-mix(in srgb,var(--ht-color) 55%,transparent);outline:1px solid var(--ht-color);outline-offset:-1px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-lane, html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-vc { box-shadow:inset 0 1px 0 #ffffff12; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-lane::before, html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-vc::before { content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ht-muted) 7%,transparent) 0 9px,transparent 9px 18px);pointer-events:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-vc::before { background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ht-mech) 10%,transparent) 0 9px,transparent 9px 18px); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-badges { position:absolute;top:-12px;left:-10px;display:flex;gap:3px;z-index:5; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .hall-tile-badges { left:auto;right:-10px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink, html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic { display:flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;height:30px;min-width:30px;border-radius:15px;border:2px solid var(--ht-base);font-size:12px;font-weight:800;white-space:nowrap; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink { padding:0 7px;background:#d6dbe6;color:#0c1c34; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink svg, html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic svg { display:block;width:16px;height:16px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic { width:30px;background:var(--ht-red);color:white;animation:hallTileCallRing 1.8s cubic-bezier(.16,1,.3,1) infinite; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-marker { position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);z-index:4;width:10px;height:10px;border-radius:50%;background:var(--ht-free);border:2px solid var(--ht-base);box-sizing:content-box; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-marker.is-unknown { background:var(--ht-muted); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-alert { width:auto;height:28px;bottom:-16px;padding:0 10px 0 8px;border-radius:14px;background:var(--ht-red);color:white;display:flex;align-items:center;gap:5px;font-size:13px;font-weight:800;white-space:nowrap; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-alert svg { width:16px;height:16px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-selected { outline:4px solid var(--ht-select);outline-offset:3px;background:radial-gradient(130% 95% at var(--ht-gx) -10%,color-mix(in srgb,var(--ht-color) 22%,transparent),transparent 60%),linear-gradient(color-mix(in srgb,var(--ht-select) 9%,transparent),color-mix(in srgb,var(--ht-select) 9%,transparent)),color-mix(in srgb,var(--ht-color) var(--ht-tone),var(--ht-base)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:hover:not(:disabled) { filter:brightness(1.06); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:focus-visible { outline:3px dashed var(--ht-ink);outline-offset:6px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:active:not(:disabled) { filter:brightness(.94); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:disabled { opacity:.5;cursor:not-allowed; }
html[data-theme="light"] body.review-redesign { --ht-base:#fff;--ht-ink:#182130;--ht-muted:#5d6a80;--ht-free:#08756a;--ht-play:#9c4b0c;--ht-pause:#2566a9;--ht-pay:#6b45c9;--ht-book:#8a6d00;--ht-red:#ab3340;--ht-select:#3966b8; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane { --ht-glow:12%;box-shadow:0 1px 2px #2c24180f,0 12px 26px -18px color-mix(in srgb,var(--ht-color) 55%,#2c241880); }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-free { --ht-tone:3%; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-play { --ht-tone:11%; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-pause, html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-pay { --ht-tone:9%; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-book { --ht-tone:5%; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-selected { background:linear-gradient(color-mix(in srgb,var(--ht-select) 5%,transparent),color-mix(in srgb,var(--ht-select) 5%,transparent)),color-mix(in srgb,var(--ht-color) var(--ht-tone),var(--ht-base)); }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink { background:#4b586d;color:#fff; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-top { flex-wrap:nowrap;gap:0;border:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-glyph { filter:none;flex-shrink:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-main-figure { flex:none;align-items:baseline; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-alert { top:auto; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair::after { content:none; }
.hall-tile-icon { fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
.hall-tile-icon-nolink { stroke-width:2; }

@media (min-width:1001px) {
  body.review-redesign[data-navigation]:has(#r7Navigation):has(.lanes-panel:not([hidden])):not(.r7-page-open):not(:has(.r7-visit-focused)) { grid-template-columns:var(--hx-rail-w) minmax(0,1fr) 468px; }
  body.review-redesign[data-navigation]:has(.lanes-panel:not([hidden])) #visitWorkspace { margin:0;border-radius:0;border-width:0 0 0 1px;width:auto; }
}
@media (min-width:1001px) and (max-width:1179px) {
  body.review-redesign[data-navigation]:has(#r7Navigation):has(.lanes-panel:not([hidden])):not(.r7-page-open):not(:has(.r7-visit-focused)) { grid-template-columns:var(--hx-rail-w) minmax(0,1fr) 420px; }
}
body.review-redesign #visitWorkspace.hall-lane-panel { --hp-accent:var(--hx-st-play,#ffbf37);padding:0;gap:0; }
body.review-redesign #visitWorkspace.hall-lane-panel > .r7-workspace-content { display:flex;flex-direction:column;gap:10px;padding:0 18px 16px; }
body.review-redesign #visitWorkspace.hall-lane-panel > .r7-workspace-content > * { flex:none; }
body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-close { display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:32px;width:32px;min-height:40px;height:40px;margin-left:auto;padding:0;border:0;background:transparent; }
body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-head { min-height:64px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;margin:0 -18px;padding:4px 18px;border-bottom:1px solid var(--hx-line);box-sizing:border-box; }
body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row { flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px; }
body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row h3 { flex:none;font-size:20px;white-space:nowrap;margin:0; }
body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-status { height:34px;padding:0 12px;border:0;border-radius:17px;font-size:14px;font-weight:750;background:color-mix(in srgb,currentColor 12%,transparent); }
body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-head .ws-sub:empty { display:none; }
#visitWorkspace .hall-panel-note { margin:0;color:var(--hx-text-2);font-size:13px;line-height:1.4; }
#visitWorkspace .hall-panel-note.is-warning { color:var(--hx-warn,#f2b24a);font-weight:700; }
#visitWorkspace .hall-panel-progress { padding:12px 14px;border-radius:16px;background:var(--hx-raised); }
#visitWorkspace .hall-panel-progress-title { display:flex;align-items:center;gap:10px;font-size:14px;color:var(--hx-text-2); }
#visitWorkspace .hall-panel-progress-title strong { color:var(--hx-text);font-size:18px; }
.hall-purchase-controls { display:grid;gap:12px;min-width:0; }
#visitWorkspace .hall-panel-banner:has(> strong) { flex-direction:column;align-items:flex-start;gap:4px; }
#visitWorkspace .hall-panel-banner > p { margin:0; }
.hall-purchase-choices { display:flex;gap:6px;flex-wrap:wrap; }
.hall-purchase-choices button { flex:1;min-height:56px;padding:8px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font:inherit;font-weight:700; }
.hall-purchase-choices button[aria-pressed="true"], .hall-quota-player button[aria-pressed="true"] { border-color:var(--hp-accent);box-shadow:inset 0 0 0 1px var(--hp-accent); }
.hall-purchase-total { display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;color:var(--hx-text); }
.hall-purchase-total strong { font-size:26px;white-space:nowrap; }
.hall-purchase-paid { margin:0;font-size:13px;color:var(--hx-text-2); }
.hall-quota-player { display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:56px;padding:6px 0;border-top:1px solid var(--hx-line); }
.hall-quota-player > div { flex:1;min-width:0;display:grid;gap:4px; }
.hall-quota-player small { color:var(--hx-text-2); }
.hall-quota-player.is-exhausted small { color:var(--st-pay); }
.hall-quota-player button { min-height:56px;padding:0 12px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font:inherit;white-space:nowrap; }
.hall-quota-player > span { color:var(--hx-text-2);font-size:13px; }
#visitWorkspace .hall-panel-progress-title > span { margin-left:auto;text-align:right;font-size:20px;font-weight:750;color:var(--hx-text); }
#visitWorkspace .hall-panel-progress[data-mode="game"] .hall-panel-progress-title > span { margin-left:0;text-align:left;font-size:14px;font-weight:500;color:var(--hx-text-2); }
#visitWorkspace .hall-panel-progress.is-ending .hall-panel-progress-title > span { color:#f6cf48; }
html[data-theme="light"] #visitWorkspace .hall-panel-progress.is-ending .hall-panel-progress-title > span { color:#8a6500; }
#visitWorkspace .hall-panel-progress.is-paused .hall-tile-progress { background:repeating-linear-gradient(90deg,color-mix(in srgb,var(--hp-accent) 45%,transparent) 0 6px,transparent 6px 10px); }
#visitWorkspace .hall-panel-progress.is-paused .hall-panel-progress-title strong { font-size:14px; }
#visitWorkspace .hall-panel-progress .hall-tile-progress { position:static;display:flex;gap:4px;height:6px;margin-top:10px;overflow:hidden;border-radius:3px;background:color-mix(in srgb,var(--hp-accent) 18%,transparent); }
#visitWorkspace .hall-panel-progress .hall-tile-progress > span { display:block;background:var(--hp-accent);height:100%; }
#visitWorkspace .hall-panel-progress .hall-tile-progress i { min-width:0;height:6px;border-radius:3px;background:var(--hp-accent); }
#visitWorkspace .hall-panel-progress .hall-tile-progress.is-segmented i { flex:1;background:color-mix(in srgb,var(--hp-accent) 22%,transparent); }
#visitWorkspace .hall-panel-progress .hall-tile-progress i.is-done { background:var(--hp-accent); }
#visitWorkspace .hall-panel-progress .hall-tile-progress i.is-current { background:repeating-linear-gradient(90deg,var(--hp-accent) 0 4px,transparent 4px 6px); }
#visitWorkspace .hall-panel-banner { display:flex;gap:10px;margin:0;padding:12px 14px;border-radius:14px;background:var(--hx-raised);font-size:14px;line-height:1.4; }
#visitWorkspace .hall-panel-banner svg { width:24px;height:24px; }
#visitWorkspace .hall-panel-banner p { margin:4px 0 0;color:var(--hx-text-2); }
#visitWorkspace .hall-panel-banner.is-warning { color:var(--hx-text);background:color-mix(in srgb,var(--hp-accent) 16%,var(--hx-panel)); }
#visitWorkspace .hall-panel-score { border-radius:16px;background:var(--hx-raised);overflow:hidden; }
body.review-redesign #visitWorkspace .hall-panel-score-toggle { display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:56px;padding:12px 14px;border:0;background:transparent;color:var(--hx-text);text-align:left;font-size:14px; }
#visitWorkspace .hall-panel-score-toggle > span:first-child { min-width:0;overflow-wrap:anywhere; }
#visitWorkspace .hall-panel-score-toggle svg { width:20px;height:20px;flex:none; }
#visitWorkspace .hall-score-summary { flex:1; }
#visitWorkspace .hall-score-summary > span { font-weight:400; }
#visitWorkspace .hall-controller-check { min-height:56px; }
body.review-redesign #visitWorkspace .daily-workspace-title-row { min-width:0; }
body.review-redesign #visitWorkspace .hall-workspace-status { flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
body.review-redesign #visitWorkspace .hall-workspace-close { flex:0 0 40px; }
body.review-redesign #visitWorkspace .opening-booking-warning { background:color-mix(in srgb,#f3c94b 14%,var(--hx-panel));border:1px solid #b7942e;border-radius:12px;padding:12px; }
body.review-redesign #visitWorkspace .hall-panel-end { border:1px solid var(--hx-line);border-radius:12px;padding-right:6px; }
body.review-redesign #visitWorkspace .hall-panel-end > button { border:0;background:transparent; }
.hall-purchase-stepper { display:flex;align-items:center;gap:8px; }
.hall-purchase-stepper input { min-width:0;width:64px;text-align:center; }
.hall-purchase-stepper button { width:56px;min-height:56px; }
.hall-purchase-controls label:has(.hall-purchase-stepper) { display:block; }
.hall-purchase-stepper input { flex:0 0 64px; }
body.review-redesign #visitWorkspace button:focus:not(:focus-visible) { outline:none!important;box-shadow:none!important; }
body.review-redesign #visitWorkspace .r7-score-table tr.is-current { outline:none;box-shadow:none; }
body.review-redesign #visitWorkspace .r7-score-table .hall-score-current-column { background:color-mix(in srgb,var(--hp-accent) 7%,var(--hx-raised)); }
#visitWorkspace .hall-score-current-column { background:color-mix(in srgb,var(--hp-accent) 7%,transparent); }
#visitWorkspace .hall-score-current-cell { outline:2px solid var(--hp-accent);outline-offset:-2px; }
#visitWorkspace .hall-player-bumper:disabled { opacity:.4; }
#visitWorkspace .hall-purchase-choices button { white-space:nowrap; }
#visitWorkspace button:focus:not(:focus-visible) { outline:none;box-shadow:none; }
@media(max-width:1024px) {
  body.review-redesign .topbar #r7Operator .r7-operator-text { display:none!important; }
}
@media(max-width:767px) {
  body.review-redesign:has(#visitWorkspace.is-hall-sheet) #r7Navigation { display:none; }
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet { bottom:0!important;max-height:calc(100dvh - 200px)!important; }
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet::before { content:"";display:block;flex:none;width:40px;height:4px;margin:6px auto;background:var(--hx-text-2);border-radius:4px; }
  #visitWorkspace .hall-panel-end > button { white-space:nowrap;font-size:12px; }
}
#visitWorkspace.hall-lane-panel #hallPanelScore { overflow:visible;padding:0 8px 8px; }
#visitWorkspace.hall-lane-panel .r7-score-table { table-layout:fixed;width:100%;min-width:0;border-collapse:collapse;font-variant-numeric:tabular-nums; }
#visitWorkspace.hall-lane-panel .r7-score-table caption { display:none; }
#visitWorkspace.hall-lane-panel .r7-score-table th,#visitWorkspace.hall-lane-panel .r7-score-table td { box-sizing:border-box;min-width:0;padding:2px;text-align:center;font-size:12px; }
#visitWorkspace.hall-lane-panel .r7-score-table th:first-child { width:64px;text-align:left;overflow-wrap:anywhere;white-space:normal; }
#visitWorkspace.hall-lane-panel .r7-score-table th:last-child { width:32px; }
#visitWorkspace.hall-lane-panel .r7-score-table .r7-frame-rolls { display:block;white-space:normal;font-size:10px;line-height:1.2; }
#visitWorkspace.hall-lane-panel .r7-score-table td { height:44px; }
#visitWorkspace .hall-panel-money { padding:4px 0; }
body.review-redesign #modal .modal.hall-purchase-modal { width:min(440px,calc(100vw - 24px));margin-left:auto;margin-right:14px;background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);border-radius:20px;overflow:hidden; }
body.review-redesign #modal .hall-purchase-modal .modal-head { padding:14px;gap:12px; }
body.review-redesign #modal .hall-purchase-modal .modal-head h2 { font-size:20px;line-height:1.3;min-width:0; }
body.review-redesign #modal .hall-purchase-modal .manager-session-lock { display:none; }
body.review-redesign #modal .hall-purchase-modal .modal-close { width:48px;min-width:48px;height:48px;min-height:48px; }
body.review-redesign #modal .hall-purchase-modal .modal-body { display:grid;gap:16px;padding:14px;font-size:14px;background:var(--hx-panel); }
body.review-redesign #modal .hall-purchase-modal .wizard-bar { padding:14px;background:var(--hx-panel); }
body.review-redesign #modal .hall-purchase-modal button { font-size:14px;min-height:56px;padding:10px; }
body.review-redesign #modal .hall-purchase-modal .wizard-bar .primary { background:var(--hx-success,#239e68);color:white;border:0; }
.hall-purchase-modal label { display:grid;grid-template-columns:1fr 100px;align-items:center;gap:12px; }
.hall-purchase-modal input,.hall-purchase-modal select { width:100%;min-width:0;min-height:56px;color:var(--hx-text);background:var(--hx-raised);border:1px solid var(--hx-line);border-radius:12px;padding:8px 12px; }
.hall-purchase-modal .wizard-bar { display:flex;gap:8px; }
.hall-purchase-modal .wizard-bar > button { flex:1;min-width:0;white-space:normal; }
#visitWorkspace .hall-panel-money-line,#visitWorkspace .hall-panel-paid { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--hx-line); }
#visitWorkspace .hall-panel-money-line span { min-width:0;overflow-wrap:anywhere; }
#visitWorkspace .hall-panel-paid { border:0;font-size:14px;flex-wrap:wrap; }
#visitWorkspace .hall-panel-paid strong { margin-left:auto; }
#visitWorkspace .hall-panel-paid strong { font-size:30px;white-space:nowrap;font-variant-numeric:tabular-nums; }
#visitWorkspace .hall-panel-operations { display:flex;gap:8px; }
body.review-redesign #visitWorkspace.hall-lane-panel button { min-height:56px;box-sizing:border-box;border-radius:14px;font-size:14px; }
#visitWorkspace .hall-panel-operations > button { flex:1;min-width:0;padding:10px;white-space:normal; }
#visitWorkspace .hall-panel-disabled { background:transparent;color:var(--hx-text-2);border:1px solid var(--hx-line);opacity:.55;cursor:not-allowed;box-shadow:none; }
#visitWorkspace .hall-panel-next { display:grid;grid-template-columns:auto 1fr;gap:8px 12px; }
#visitWorkspace .hall-panel-next h4 { grid-column:1/-1;margin:0;font-size:13px;color:var(--hx-text-2); }
#visitWorkspace .hall-panel-next span { min-width:0;overflow-wrap:anywhere; }
body.review-redesign #visitWorkspace.hall-lane-panel > .daily-checkout { min-height:80px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 16px;margin:0;flex-wrap:wrap; }
#visitWorkspace.hall-lane-panel .daily-checkout > button { width:auto;flex:0 1 auto;margin:0;padding:10px 14px;white-space:normal; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .daily-action { width:auto;min-height:56px;font-size:14px;margin:0 0 0 auto;background:var(--hx-panel-action-bg);color:var(--hx-panel-action-ink);border:0; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .daily-action:disabled { background:transparent;color:var(--hx-text-2);border:1px solid var(--hx-line);opacity:.55;box-shadow:none; }
#visitWorkspace .hall-panel-players { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px; }
#visitWorkspace .hall-panel-players li { display:grid;grid-template-columns:18px minmax(0,1fr) 32px 56px 32px;align-items:center;gap:4px;min-height:64px;padding:4px;background:var(--hx-raised);border-radius:12px; }
#visitWorkspace .hall-panel-players.hall-opening-players li { grid-template-columns:18px minmax(0,1fr) 108px; }
#visitWorkspace .hall-player-name { min-width:0;display:grid;gap:4px; }
#visitWorkspace .hall-player-grip svg { width:12px;height:20px;stroke:var(--hx-text-2);stroke-width:2;stroke-linecap:round;opacity:.55; }
#visitWorkspace .hall-player-name small { width:fit-content;border-radius:6px;padding:2px 6px;background:var(--hx-panel);font-size:11px;color:var(--hx-text-2); }
body.review-redesign #visitWorkspace.hall-lane-panel .hall-player-edit,body.review-redesign #visitWorkspace.hall-lane-panel .hall-player-remove { padding:4px;min-width:32px;width:32px;background:transparent;border:0; }
#visitWorkspace .hall-player-edit svg,#visitWorkspace .hall-player-remove svg { width:18px;height:18px; }
#visitWorkspace .hall-player-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;font-size:14px; }
#visitWorkspace .hall-panel-end { display:flex;align-items:center;gap:4px;flex:1;min-width:0; }
#visitWorkspace .hall-panel-end > button { flex:1;white-space:normal;padding:6px; }
body.review-redesign #visitWorkspace.hall-lane-panel .screen-info-trigger { width:24px;min-width:24px;height:24px;min-height:24px;padding:0; }
body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-back { flex:none;width:32px;min-width:32px;padding:0;background:transparent;border:0;font-size:28px; }
#visitWorkspace .hall-panel-pause { flex:none;width:56px;padding:14px; }
#visitWorkspace .hall-panel-pause svg { width:24px;height:24px; }
#visitWorkspace .hall-panel-progress .hall-tile-progress.is-paused i { background:repeating-linear-gradient(90deg,var(--hp-accent) 0 6px,transparent 6px 10px); }
#visitWorkspace .hall-score-summary { min-width:0;white-space:normal;overflow-wrap:anywhere; }
#visitWorkspace .hall-score-leader { white-space:pre;display:inline-block; }
#visitWorkspace .hall-bumper-icon { display:inline-flex;vertical-align:middle; }
#visitWorkspace .hall-bumper-icon svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8; }
#visitWorkspace .hall-opening-players .hall-player-bumper { width:108px;display:flex;align-items:center;justify-content:center;gap:8px; }
body.review-redesign #visitWorkspace.screen-opening .screen-quantity button[aria-pressed=true] { background:color-mix(in srgb,var(--hx-select) 18%,var(--hx-panel));color:var(--hx-text);outline:2px solid var(--hx-select);outline-offset:-2px; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .hall-panel-note { flex-basis:100%;text-align:right; }
#visitWorkspace .hall-panel-players li strong { min-width:0;overflow-wrap:anywhere; }
#visitWorkspace .hall-panel-players li.is-current { outline:2px solid var(--hx-select);outline-offset:-2px; }
#visitWorkspace .hall-player-bumper { width:56px;height:56px;padding:12px;background:var(--hx-panel);color:var(--hx-text-2);border:1px solid var(--hx-line);opacity:1; }
#visitWorkspace .hall-player-bumper[aria-pressed=true] { color:var(--hx-text);background:color-mix(in srgb,var(--hx-select) 25%,var(--hx-panel)); }
#visitWorkspace .hall-player-bumper svg { width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2; }
#visitWorkspace.hall-lane-panel button:focus-visible { outline:3px solid var(--hx-select);outline-offset:2px; }
@media(hover:hover) { #visitWorkspace.hall-lane-panel button:not(:disabled):hover { filter:brightness(1.1); } }
#visitWorkspace.hall-lane-panel button:not(:disabled):active { transform:translateY(1px); }
body.review-redesign #hallScaleControls { position:relative;flex-wrap:nowrap;gap:6px;min-height:64px; }
body.review-redesign #hallScaleControls > .hall-quick-sheet:not(.is-terminal-editor) { bottom:calc(100% + 12px);left:0;right:0; }
body.review-redesign #hallScaleControls > #hallQuickButtons { display:flex;flex:1;min-width:56px;gap:8px;margin:0;padding:4px 2px;overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap;border:0; }
body.review-redesign #hallScaleControls .hall-quick-button { flex:0 0 76px;box-sizing:border-box;width:76px;height:56px;min-height:56px;gap:4px;padding:4px;border-radius:12px;font-size:11px; }
body.review-redesign #hallScaleControls .hall-quick-button.is-add { flex-basis:56px;width:56px;border:1px dashed var(--hx-line);background:transparent; }
body.review-redesign #hallScaleControls .hall-quick-button.is-add > span:last-child { display:none; }
body.review-redesign #hallScaleControls .hall-quick-button.is-add { font-size:24px; }
body.review-redesign #hallScaleControls .hall-quick-button > span:last-child { white-space:nowrap; }
body.review-redesign #hallScaleControls .hall-quick-button.is-add > span:first-child { display:flex;align-items:center;justify-content:center; }
body.review-redesign #hallPageUp[hidden],body.review-redesign #hallPageDown[hidden],body.review-redesign #hallPage[hidden],body.review-redesign #hallPageDots[hidden] { display:none; }
body.review-redesign #hallLegendHelp svg { width:20px;height:20px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .daily-lane-state { text-align:left;align-self:stretch; }
body.review-redesign #hallScaleControls .hall-quick-button svg { width:20px;height:20px; }
body.review-redesign #hallScaleControls .hall-quick-edit-item { flex:0 0 76px;width:76px;height:56px; }
body.review-redesign #hallScaleControls .hall-quick-done { position:sticky;right:0;z-index:1;flex-shrink:0; }
@media(min-width:768px) and (max-width:1000px) {
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row { gap:6px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row h3 { font-size:17px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-status { flex:1;min-width:0;padding-inline:6px;font-size:12px; }
  body.review-redesign #visitWorkspace.hall-lane-panel > .daily-checkout { flex-wrap:nowrap;padding:12px;gap:6px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > button { padding:8px;font-size:12px;min-width:0; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .hall-panel-pause { flex:0 0 56px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .daily-action { font-size:12px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .screen-opening-actions { flex-wrap:wrap; }
}
@media(max-width:767px) {
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet { display:flex;position:fixed;z-index:35;left:0;right:0;top:200px;bottom:72px;width:auto;height:auto;max-height:calc(100dvh - 272px);margin:0;overflow:hidden; }
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet > .r7-workspace-content { min-height:0;flex:1;overflow:auto; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row h3 { font-size:18px; }
  body.review-redesign #visitWorkspace.hall-lane-panel > .r7-workspace-content { padding-inline:12px; }
  body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-head { margin-inline:-12px;padding-inline:12px; }
  body.review-redesign #visitWorkspace.hall-lane-panel > .daily-checkout { padding:10px 12px; }
  body.review-redesign #hallScaleControls { flex-wrap:wrap; }
  body.review-redesign #hallScaleControls > #hallQuickButtons { flex-basis:100%; }
}

#visitWorkspace .hall-workspace-status { display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%; }
#visitWorkspace .hall-workspace-status > span:first-child { display:flex;flex:none; }
#visitWorkspace .hall-workspace-status svg { width:16px;height:16px; }
#visitWorkspace .hall-workspace-status-label { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
html[data-theme] body.review-redesign { --ht-select:#22b2d8; }
html[data-theme="light"] body.review-redesign { --ht-select:#0a87b5; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-selected { border-color:var(--ht-select); }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-free,
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-book,
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-lane,
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-vc { box-shadow:0 1px 2px #2c24180f; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not(.glyph-free):not(.glyph-book) .daily-lane-glyph { background:color-mix(in srgb,var(--ht-color) 11%,#fff); }
body.review-redesign #hallScaleStage { padding:16px; }
body.review-redesign #hallLegend { display:grid;grid-template-columns:1fr 1.6fr;gap:32px; }
body.review-redesign #hallLegend h4 { margin:0 0 20px;color:var(--hx-text);font-size:16px; }
body.review-redesign #hallLegend .hall-legend-list { display:grid;gap:18px;margin:0;padding:0;list-style:none; }
body.review-redesign #hallLegend .hall-legend-item { display:flex;align-items:flex-start;gap:12px; }
body.review-redesign #hallLegend .hall-tile-icon,
body.review-redesign #hallLegend .svgi { display:block;width:24px;height:24px; }
body.review-redesign #hallLegend .hall-legend-item>span { flex:none; }
body.review-redesign #hallLegend .hall-legend-label { display:block;color:var(--hx-text);font-size:15px;line-height:22px; }
body.review-redesign #hallLegend p { margin:4px 0 0;color:var(--hx-text-2);font-size:13px;line-height:1.5; }
body.review-redesign #hallLegend .hall-legend-swatch { width:18px;height:18px;margin-top:2px;border-radius:3px;background:var(--glyph); }
body.review-redesign #hallLegend .glyph-free { --glyph:#2fd6c4; }
body.review-redesign #hallLegend .glyph-play { --glyph:#ffbf3c; }
body.review-redesign #hallLegend .glyph-pause { --glyph:#32b6f5; }
body.review-redesign #hallLegend .glyph-pay { --glyph:#b79bff; }
body.review-redesign #hallLegend .glyph-book { --glyph:#fdd30b; }
body.review-redesign #hallLegend .glyph-neutral { --glyph:var(--hx-st-neutral); }
body.review-redesign #hallLegend .glyph-neutral .hall-legend-swatch { display:grid;place-items:center;color:var(--hx-bg); }
body.review-redesign #hallLegend .glyph-neutral .svgi { width:14px;height:14px; }
body.review-redesign #hallLegend .glyph-book .hall-legend-swatch { box-sizing:border-box;border:2px dashed var(--glyph);background:color-mix(in srgb,var(--glyph) 10%,transparent); }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-free { --glyph:#08756a; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-play { --glyph:#9c4b0c; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-pause { --glyph:#2566a9; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-pay { --glyph:#6b45c9; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-book { --glyph:#8a6d00; }
body.review-redesign #hallLegend .glyph-free svg { color:#2fd6c4; }
body.review-redesign #hallLegend .glyph-play svg { color:#ffbf3c; }
body.review-redesign #hallLegend .glyph-pause svg { color:#32b6f5; }
body.review-redesign #hallLegend .glyph-pay svg { color:#b79bff; }
body.review-redesign #hallLegend .glyph-book svg { color:#fdd30b; }
body.review-redesign #hallLegend .glyph-mechanic svg,
body.review-redesign #hallLegend .glyph-vc svg { color:#ff6a52; }
body.review-redesign #hallLegend .glyph-fault svg { color:var(--ht-mech); }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-free svg { color:#08756a; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-play svg { color:#9c4b0c; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-pause svg { color:#2566a9; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-pay svg { color:#6b45c9; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-book svg { color:#8a6d00; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-mechanic svg,
html[data-theme="light"] body.review-redesign #hallLegend .glyph-vc svg { color:#ab3340; }
html[data-theme="light"] body.review-redesign #hallLegend .glyph-fault svg { color:var(--ht-mech); }
.hall-equipment-info { display:inline-flex;align-items:center; }
@media (max-width:767px) { .hall-equipment>span:first-child { display:none; } }
.hall-legend-modal #wizardBar { display:none; }
@media (min-width:601px) and (max-width:767px) {
  body.review-redesign #hallScaleControls { display:flex; }
  body.review-redesign #hallLegendHelp { scroll-margin-bottom:calc(80px + env(safe-area-inset-bottom,0px)); }
}
body.review-redesign #modal:has(.hall-legend-modal) { z-index:65; }
body.review-redesign .modal.hall-legend-modal { width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px); }
body.review-redesign .hall-legend-modal .modal-body { padding:24px;overflow-y:auto; }
@media (max-width:600px) {
  body.review-redesign #hallLegend { grid-template-columns:1fr;gap:28px; }
  body.review-redesign #hallScaleControls { display:flex; }
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage):not(.r7-page-open) .topbar .hall-legend-help { display:inline-flex;margin:0;flex:none; }
}
@media (max-width:360px) {
  body.review-redesign:has(.lanes-panel:not([hidden]) #hallScaleStage):not(.r7-page-open) .topbar { gap:4px;padding-inline:8px;flex-wrap:nowrap; }
}
@media (prefers-reduced-motion:reduce) {
  .hall-legend-modal,.hall-legend-modal * { animation:none !important;transition:none !important; }
}
body.review-redesign .hall-legend-help { display:inline-flex;margin-left:auto; }
body.review-redesign .topbar .hall-legend-help { display:none; }
body.review-redesign #hallScaleControls #hallZoomOut { margin-left:0; }
body.review-redesign #hallLegendHelp { box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid var(--hx-line);background:var(--hx-bg);color:var(--hx-text);padding:0;font-size:22px;font-weight:650;cursor:pointer; }
body.review-redesign #hallLegendHelp:focus-visible { outline:2px solid var(--hx-select);outline-offset:1px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-main-figure,
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-progress { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-badges { --badge-size:30px;top:-12px;gap:3px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink,
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic { height:var(--badge-size);min-width:var(--badge-size);font-size:12px;gap:4px;border-width:2px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink { padding:0 7px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink.is-compact { width:var(--badge-size);padding:0;gap:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic { width:var(--badge-size); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-fault { display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--badge-size);height:var(--badge-size);min-width:var(--badge-size);border:2px solid var(--ht-base);border-radius:50%;background:var(--ht-red);color:white;font-size:12px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-fault svg { display:block;width:calc(var(--badge-size)*.53);height:calc(var(--badge-size)*.53); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-nolink svg,
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic svg { width:calc(var(--badge-size)*.53);height:calc(var(--badge-size)*.53); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-alert { box-sizing:border-box;height:28px;font-size:13px;padding:0 10px 0 8px;gap:5px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-pair-alert svg { width:16px;height:16px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not(.is-dense) { padding-bottom:max(20px,calc(var(--hall-tile)*.12)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-badges { --badge-size:clamp(14px,calc(var(--hall-tile)*.2),28px);top:calc(var(--badge-size)*-.65);gap:2px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-nolink,
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-mechanic { padding:0;width:var(--badge-size);gap:0;border-width:1px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-age { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-fault { border-width:1px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair.is-dense .hall-pair-alert { height:clamp(14px,calc(var(--hall-face-size)*.19),28px);font-size:11px;padding:0 3px;gap:3px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair.is-dense .hall-pair-alert svg { width:clamp(9px,calc(var(--hall-face-size)*.11),16px);height:clamp(9px,calc(var(--hall-face-size)*.11),16px); }
@media (max-width:767px) {
  body.review-redesign .lanes-panel:has(#hallScaleStage) #hallLegend { position:static;inset:auto; }
}
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:has(.hall-tile-badges) .daily-lane-glyph { visibility:hidden; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .hall-tile-badges,
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-badges { top:8%;left:8%;right:auto;gap:1px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .hall-tile-badges { left:auto;right:8%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .hall-tile-badges > span { flex:none;width:var(--badge-size);height:var(--badge-size);min-width:var(--badge-size);padding:0;gap:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .daily-lane-test-badge { display:block;top:39.5%;bottom:auto;left:8%;right:auto;max-width:84%;padding:0 2px;font-size:clamp(8px,calc(var(--hall-tile)*.06),10px);line-height:1;letter-spacing:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .daily-lane-test-badge { left:auto;right:8%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-caption { display:block;margin-top:2px;font-size:calc(var(--hall-tile)*.075);line-height:1.15;color:var(--ht-muted);white-space:nowrap; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.is-dense .hall-tile-caption { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-lane { --ht-tone:5%;--ht-glow:0%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.tech-lane .daily-lane-state { color:var(--ht-muted); }
@keyframes hallTileCallRing { 0%,100% { box-shadow:0 0 0 0 #c73c2700; } 70% { box-shadow:0 0 0 12px #c73c2700; } 1% { box-shadow:0 0 0 0 #c73c2770; } }
@media (prefers-reduced-motion:reduce) { html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-mechanic { animation:none; } }

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-fault { --ht-color:var(--ht-mech);--ht-tone:12%;--ht-glow:0%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-timeup { --ht-color:var(--ht-pay);--ht-tone:19%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-nolink { --ht-color:var(--ht-muted);--ht-glow:0%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-timeup .daily-lane-state { font-size:calc(var(--hall-tile)*.12); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair.is-offline { padding:5px;border:1px solid color-mix(in srgb,var(--ht-muted) 14%,transparent);background:color-mix(in srgb,var(--ht-muted) 4%,transparent); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane-pair.is-offline::after { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-badges { top:8%;left:8%;right:auto;max-width:40%;height:var(--badge-size);gap:4px;transform:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size][data-parity="even"] .hall-tile-badges { left:auto;right:8%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-badges > span { position:static;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:var(--badge-size);height:var(--badge-size);max-width:100%;padding:0 5px;gap:4px;border:1.5px solid var(--ht-muted);border-radius:14px;font-size:clamp(9.5px,calc(var(--hall-tile)*.09),13px);line-height:1;white-space:nowrap; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-mechanic { color:white;background:var(--ht-red);border-color:var(--ht-red);padding:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-badges svg { width:16px;height:16px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-badges .daily-lane-test-badge { background:var(--ht-base);color:var(--ht-muted);font-weight:800; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-ending { background:#ffc24d;color:#3a2a00;border-color:#ffc24d; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-ending { background:#8a5900;color:#fff;border-color:#8a5900; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-tile-age { display:inline; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size] .hall-badge-short { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-badge-icon { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > span:nth-child(n+2) { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-tile-age { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-badge-short { display:inline; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-badges { top:-14px;left:50%;right:auto;transform:translateX(-50%);max-width:94%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-badges > span { font-size:13px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-mechanic svg { width:24px;height:24px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-badges > span:nth-child(n+3) { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"]:has(.hall-tile-badges) .daily-lane-glyph { visibility:visible; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-main-figure { display:flex;font-size:calc(var(--hall-tile)*.14*var(--hall-figure-scale,1)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-main-figure[hidden] { display:none; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-fault { --ht-tone:7%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] { padding-top:18px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity] .hall-tile-badges { left:50%;right:auto;top:-14px;transform:translateX(-50%); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > span { padding-inline:3px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"][data-number-digits="2"]:has(.hall-tile-badges) .daily-lane-no { font-size:calc(var(--hall-tile)*.30); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"])[data-number-digits="3"] .daily-lane-no { font-size:calc(var(--hall-tile)*.25); }
#visitWorkspace.hall-lane-panel .hall-opening-players .lo-player-name { min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;padding:4px 8px;background:transparent;border:0; }
#visitWorkspace.hall-lane-panel.screen-opening .screen-opening-fields { display:flex;flex-direction:column;gap:12px; }
#visitWorkspace.hall-lane-panel.screen-opening .screen-opening-fields > label { display:flex;flex-direction:column;gap:8px; }
#visitWorkspace.hall-lane-panel.screen-opening .screen-opening-quote { display:flex;align-items:baseline;justify-content:space-between;padding:12px 0;border-top:1px solid var(--hx-line); }
body.review-redesign #visitWorkspace.hall-lane-panel .screen-format-choice button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:var(--hx-raised);color:var(--hx-text-2);border:2px solid transparent; }
body.review-redesign #visitWorkspace.hall-lane-panel .screen-format-choice button[aria-pressed=true] { color:var(--hx-select);border-color:var(--hx-select);background:color-mix(in srgb,var(--hx-select) 10%,var(--hx-panel)); }
#visitWorkspace.hall-lane-panel .screen-format-choice small { font-size:12px; }
#visitWorkspace.hall-lane-panel .screen-player-count > span:first-child { margin-right:auto; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .daily-action.hall-panel-disabled { background:var(--hx-raised);color:var(--hx-text-2);box-shadow:none; }
:root { --hitru-logo-fg:#f2f1f8;--hitru-logo-accent:#3ee0f2;--hitru-logo-bg:#0c0a1a; }
html[data-theme="light"] { --hitru-logo-fg:#0e0c1d;--hitru-logo-accent:#2f78d4;--hitru-logo-bg:#eef1f4; }
@media (min-width:768px) {
  #r7Navigation { --hitru-logo-fg:#f2f1f8;--hitru-logo-accent:#3ee0f2;--hitru-logo-bg:#0c0a1a; }
}
.hitru-logo { display:block;flex:none;filter:none;box-shadow:none; }
.hitru-logo-lockup { width:119px;height:auto; }
body.review-redesign .top-brand .brand-emblem { width:auto;height:auto;padding:10px; }
body.review-redesign .top-brand .brand-emblem .hitru-logo-lockup { width:119px;height:auto; }
#r7Navigation .r7-rail-brand-row { padding:10px; }
#r7Navigation .r7-rail-word { line-height:0; }
#r7Navigation .r7-rail-emblem { display:none;width:24px;height:24px; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-rail-emblem { display:block; }
body.review-redesign[data-navigation="collapsed"] #r7Navigation .r7-rail-brand-row { padding:8px; }
.security-logo { width:48px;height:48px;padding:12px;margin:0 auto 8px; }
.security-logo .hitru-logo-main { width:48px;height:48px; }
.booking-edit-form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.booking-edit-form > label { display:flex;flex-direction:column;gap:8px;min-width:0; }
.booking-edit-form input { width:100%;min-width:0;min-height:56px;font-size:18px; }
.booking-edit-form input[type=datetime-local] { background:var(--surface-2,#14233d);color:var(--text,#eff1f6);color-scheme:dark;border:1px solid var(--border,#3d4c68);border-radius:10px;padding:10px; }
html[data-theme=light] .booking-edit-form input[type=datetime-local] { color-scheme:light;background:#fff;color:#172438; }
.queue-lane-picker { display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px; }
.queue-lane-picker button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;white-space:normal; }
.queue-lane-picker small { font-size:12px;line-height:1.35; }
.queue-lane-picker [aria-pressed=true] { outline:2px solid var(--sv-cyan);outline-offset:-2px; }
.opening-booking-warning { padding:12px;border:1px solid var(--hx-st-booking);border-radius:12px;background:var(--hx-panel); }
.opening-booking-warning p { margin:0 0 8px; }
.opening-booking-warning > button { width:100%;min-height:44px;margin:4px 0;white-space:normal; }
#visitWorkspace.screen-active.r7-pinned-actions { min-height:0;overflow:hidden; }
#visitWorkspace.screen-active.r7-pinned-actions > .r7-workspace-content { min-height:0;overflow:auto;contain:paint; }
#visitWorkspace.r7-pinned-actions > .daily-checkout { position:relative;z-index:1;flex-shrink:0; }
.session-info { min-width:44px;min-height:44px;padding:4px;background:transparent;border:0;color:inherit; }
#r7Operator { gap:8px;min-width:0;flex-shrink:0;max-width:320px; }
#r7Operator .r7-operator-avatar { flex:0 0 32px;width:32px;height:32px; }
#r7Operator .r7-operator-text { display:grid;min-width:0;max-width:150px; }
#r7Operator .r7-operator-text strong { grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
#r7Operator .r7-operator-text small { font-size:11px;line-height:1.3;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis; }
#r7Operator .session-time { flex:none;font-size:12px;font-weight:600;white-space:nowrap; }
.session-info .svgi { width:18px;height:18px; }
.screen-visit-main > .pair-runtime { flex:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1 .daily-lane.glyph-fault .daily-lane-state { font-size:clamp(12px,calc(var(--hall-tile)*.1),22px);color:var(--ht-mech); }
@media (min-width:801px) and (max-width:1400px) {
  .hall-equipment-full { display:none; }
  .hall-equipment-tablet { display:inline; }
}
@media (min-width:601px) and (max-width:1100px) {
  body.review-redesign[data-navigation] .topbar,body.review-redesign.screens-v1 .topbar { display:flex;position:relative;z-index:10;flex-wrap:wrap;height:auto;min-height:112px;row-gap:4px;padding-block:8px; }
  body.review-redesign .topbar #r7Operator { display:flex;flex:1 0 100%;justify-content:flex-end;order:10;max-width:none;min-height:44px;border:0;margin:0;padding:0; }
  body.review-redesign .topbar #r7Operator .r7-operator-text { display:grid; }
}
#r7Operator.session-expiring { border:1px solid var(--hx-st-booking); }
body.review-redesign #r7HeaderTitle { white-space:nowrap;flex-shrink:0; }
body.review-redesign #r7Search { min-width:0; }
body.review-redesign #r7Search input { text-overflow:ellipsis; }
@media (max-width:600px) {
  #modal:has(.bookings-modal,.queue-entry-modal) { z-index:54;padding:0;align-items:stretch; }
  #modal .modal.bookings-modal,#modal .modal.queue-entry-modal { width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top); }
  #modal .modal.bookings-modal.osk-host,#modal .modal.queue-entry-modal.osk-host { height:calc(100dvh - var(--osk-height,360px));max-height:calc(100dvh - var(--osk-height,360px)); }
  #modal .bookings-modal .modal-head,#modal .queue-entry-modal .modal-head { flex:none; }
  #modal .bookings-modal .modal-body,#modal .queue-entry-modal .modal-body { flex:1;min-height:0;overflow:auto; }
  #modal .bookings-modal .wizard-bar,#modal .queue-entry-modal .wizard-bar { flex:none;position:relative;padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .booking-edit-form { grid-template-columns:minmax(0,1fr); }
  #modal .bookings-modal .modal-head,#modal .queue-entry-modal .modal-head { min-height:64px;gap:8px;padding:8px 12px; }
  body.review-redesign #modal .modal.bookings-modal .modal-head h3,body.review-redesign #modal .modal.queue-entry-modal .modal-head h3 { font-size:20px;min-width:0; }
  body.review-redesign #modal .modal.bookings-modal .modal-head button,body.review-redesign #modal .modal.queue-entry-modal .modal-head button { flex:none;white-space:nowrap;min-width:44px;width:auto;min-height:44px;height:44px;font-size:16px;padding:8px; }
  body.review-redesign #modal .modal.bookings-modal .wizard-bar { padding-inline:16px;min-width:0;max-width:100%;box-sizing:border-box; }
  body.review-redesign #modal .modal.bookings-modal .wizard-bar button { font-size:18px;min-width:0;width:100%;max-width:100%;min-height:56px;white-space:normal;box-sizing:border-box; }
  #modal .bookings-modal .modal-body { font-size:16px;padding:16px; }
  #modal .bookings-modal h3 { font-size:20px; }
  body.screens-v1 #r7Operator .r7-operator-text { display:flex;min-width:0; }
  #r7Operator .r7-operator-text small { max-width:120px;white-space:normal;font-size:10px;line-height:1.25; }
  #r7Operator .session-time { display:block;max-width:58px;white-space:normal;font-size:11px;line-height:1.3; }
  body.review-redesign[data-navigation] .topbar,body.settings-open.review-redesign[data-navigation] .topbar { display:flex;position:relative;z-index:10;flex-wrap:wrap;height:auto; }
  body.review-redesign .topbar #r7Operator { display:flex;flex:1 0 100%;justify-content:flex-end;order:10;max-width:none;min-height:44px;border:0;padding:0; }
  body.review-redesign .topbar #r7Operator .r7-operator-text { display:grid; }
  body.review-redesign .r7-visit-focused #visitWorkspace.screen-visit { padding-bottom:calc(96px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
  body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout .daily-action { scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom,0px)); }
  #r7Operator .session-info { min-width:44px;width:44px; }
}
#visitWorkspace .hall-score-current-cell { outline-color:var(--hx-select); }
#visitWorkspace .hall-panel-banner:has(.hall-controller-check) { background:color-mix(in srgb,#ef5350 12%,var(--hx-panel)); }
#visitWorkspace .hall-panel-next { padding:8px 0 0;border:0;border-radius:0; }
#visitWorkspace .hall-panel-next h4 { padding-bottom:8px;border-bottom:1px solid var(--hx-line);font-size:11px;text-transform:uppercase;letter-spacing:.04em; }
body.review-redesign #visitWorkspace .daily-workspace-status { justify-content:center; }
body.review-redesign #visitWorkspace .hall-panel-end > button,body.review-redesign #visitWorkspace .hall-panel-players-button { white-space:nowrap;font-size:14px; }
body.review-redesign #visitWorkspace .hall-panel-score-toggle:focus-visible { outline-offset:-3px; }
body.review-redesign #visitWorkspace .hall-panel-back:focus { outline:none;box-shadow:none; }
body.review-redesign #visitWorkspace.hall-sale-closed input { opacity:.4; }
@media(max-width:1024px) {
  body.review-redesign[data-navigation]:not(.settings-open) .topbar { flex-wrap:nowrap;height:72px;min-height:72px;gap:6px;padding-block:8px; }
  body.review-redesign:not(.settings-open) .topbar #r7Operator { flex:0 0 auto;max-width:44px;min-width:32px;order:0;margin:0;padding:0; }
  body.review-redesign:not(.settings-open) #r7Operator .session-time,body.review-redesign:not(.settings-open) #r7Operator .session-info { display:none; }
  body.review-redesign:not(.settings-open) #r7Search { flex:0 0 40px;min-width:40px;max-width:40px; }
  body.review-redesign:not(.settings-open) #r7Search .r7-search-input { display:none; }
  body.review-redesign:not(.settings-open) #r7Search .r7-search-icon { display:none; }
  body.review-redesign:not(.settings-open) #r7Search.is-open .r7-search-input { display:block;position:absolute;left:0;top:48px;width:min(340px,calc(100vw - 24px)); }
  body.review-redesign:not(.settings-open) #r7Search .r7-search-toggle { display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;padding:0; }
  body.review-redesign:not(.settings-open) #r7Search .r7-search-toggle .svgi { flex:none;width:20px;height:20px; }
}
@media(min-width:768px) and (max-width:1024px) {
  body.review-redesign:has(#visitWorkspace.hall-lane-panel) #hallScaleControls { flex-wrap:wrap;max-width:100%; }
  body.review-redesign:has(#visitWorkspace.hall-lane-panel) #hallScaleControls > #hallQuickButtons { flex-basis:100%; }
}
@media(max-width:767px) {
  body.review-redesign:has(#visitWorkspace.is-hall-sheet) #hallScaleControls { display:none; }
  body.review-redesign:has(#visitWorkspace.is-hall-sheet) .lanes-panel:has(#hallScaleStage) { clip-path:none; }
  body.review-redesign:has(#visitWorkspace.is-hall-sheet) #hallScaleStage { position:fixed;top:108px;left:8px;right:8px;height:120px;overflow:hidden; }
  body.review-redesign:has(#visitWorkspace.is-hall-sheet) #hallMobileRange { position:fixed;top:78px;left:16px;font-size:12px;line-height:24px;color:var(--hx-text-2); }
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet { top:232px!important;max-height:calc(100dvh - 232px)!important; }
}
#visitWorkspace .hall-purchase-inline { padding:12px;gap:8px;border:1px solid var(--hx-line);border-radius:16px;background:var(--hx-raised);scroll-margin-bottom:12px; }
#visitWorkspace .hall-purchase-inline h4 { margin:0;font-size:16px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-each { display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-stepper { gap:4px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-stepper input { width:44px;min-width:44px;min-height:44px;padding:4px;border:0;text-align:center;background:transparent;color:var(--hx-text);font-size:18px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-stepper button { min-width:36px;width:36px;padding:0; }
html[data-theme] body.review-redesign #visitWorkspace .hall-purchase-stepper input:focus { background:var(--hx-raised);color:var(--hx-text);outline:2px solid var(--hx-select);outline-offset:1px; }
body.review-redesign #visitWorkspace .hall-purchase-inline .hall-purchase-choices button,body.review-redesign #visitWorkspace .hall-purchase-inline .seg button,body.review-redesign #visitWorkspace .hall-purchase-inline .hall-purchase-stepper button { min-height:44px;height:44px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-choices button[aria-pressed=true] { border-color:var(--hx-select);box-shadow:inset 0 0 0 1px var(--hx-select); }
#visitWorkspace .hall-purchase-inline .hall-purchase-total { padding:4px 0;font-size:13px; }
#visitWorkspace .hall-purchase-inline .hall-purchase-total strong { font-size:20px; }
#visitWorkspace .hall-booking-card { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px;background:color-mix(in srgb,var(--hx-st-booking) 10%,var(--hx-panel));font-size:13px; }
#visitWorkspace .hall-booking-card .daily-link { grid-column:2;grid-row:2 / span 2;border:1px solid var(--hx-line);border-radius:10px;padding:8px;min-height:44px;background:var(--hx-raised);font-size:13px; }
#visitWorkspace .hall-booking-card small { grid-column:1; }
#visitWorkspace .hall-bumper-icon { margin-left:4px; }
#visitWorkspace .hall-panel-progress.is-paused .hall-panel-progress-title strong { white-space:nowrap; }
#visitWorkspace .hall-panel-progress.is-paused .hall-panel-progress-title > span { white-space:nowrap;font-size:14px; }
#visitWorkspace .hall-panel-progress.is-paused > small { display:block;margin-top:4px;font-size:12px;color:var(--hx-text-2); }
#visitWorkspace .r7-workspace-content { scroll-padding-bottom:24px; }
#visitWorkspace #hallPanelActionReason:not([hidden]) { margin-bottom:12px;flex-shrink:0; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.hall-quota-player button,.hall-purchase-choices button,.hall-panel-players-button,.hall-panel-pause,.hall-controller-check,.hall-purchase-stepper button,.hall-panel-actions > button:not(.daily-action),[data-role="hall-quota-by-guest"]) { background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text);border:0;box-shadow:none;min-height:56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-quota-all button { width:100%;white-space:normal; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-quota-result { width:100%;font-weight:700;color:var(--hx-text); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-quota-player.is-exhausted small { color:var(--st-pay,var(--hp-accent)); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end { display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:0;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));border:0;border-radius:14px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end > button { min-width:0;white-space:nowrap;font-size:14px;padding-inline:4px;background:transparent;border:0; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end .screen-info-label { display:grid;place-items:center;min-width:0; }
html[data-theme] body.review-redesign #visitWorkspace .hall-workspace-close,html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .screen-info-trigger { width:56px;min-width:56px;min-height:56px;height:56px;flex-shrink:0; }
html[data-theme] body.review-redesign #hallScaleControls :is(#hallZoomOut,#hallZoomIn,#hallZoomAuto) { min-width:56px;min-height:56px;height:56px;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text);border:0; }
html[data-theme] body.review-redesign #modal .hall-purchase-modal button:not(.primary) { background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text);border:0;box-shadow:none; }
html[data-theme] body.review-redesign #modal .hall-purchase-modal .modal-close { min-width:56px;min-height:56px;width:56px;height:56px; }
html[data-theme] body.review-redesign #modal .controller-pair-modal .modal-body button { background:color-mix(in srgb,var(--ink) 8%,var(--panel));color:var(--ink);border:0;box-shadow:none;min-height:56px; }
#visitWorkspace .hall-quota-clock { flex:0 0 24px; }
#visitWorkspace .hall-panel-next:has(>span:only-of-type) span { grid-column:1/-1; }
html[data-theme] body.review-redesign #modal .modal.hall-purchase-modal { width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);height:auto;margin:12px;box-sizing:border-box; }
html[data-theme] body.review-redesign #modal .hall-purchase-modal .modal-head :is(h2,h3) { min-width:0;font-size:20px;line-height:1.3; }
html[data-theme] body.review-redesign #modal .hall-purchase-modal .modal-body { min-width:0;overflow:auto; }
#visitWorkspace .hall-panel-money-line > span { display:flex;flex-direction:column;align-items:flex-start;gap:4px; }
#visitWorkspace .hall-panel-money-line { font-size:14px;padding:8px 0; }
#visitWorkspace .hall-panel-money-line > strong { font-size:14px;white-space:nowrap; }
#visitWorkspace .hall-panel-money-line small { font-size:13px;color:var(--hx-text-2); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-back { width:56px;min-width:56px;min-height:56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-players:not(.hall-opening-players) li { grid-template-columns:18px minmax(0,1fr) 56px 56px 56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-players:not(.hall-opening-players) button { width:56px;min-width:56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end > button { box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-choices button[aria-pressed=true],html[data-theme] body.review-redesign #modal .hall-purchase-modal .seg button[aria-pressed=true] { background:color-mix(in srgb,var(--hx-select) 20%,var(--hx-panel));color:var(--hx-text);border:0;box-shadow:none; }
body.review-redesign #visitWorkspace.hall-lane-panel:not(.screen-opening) > .r7-workspace-content:has(> .hall-panel-next) { justify-content:flex-start; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="odd"] .daily-lane-top { flex-direction:row-reverse; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="odd"] .daily-lane-no { text-align:left; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > [data-role="hall-quota-continue"]:disabled { background:color-mix(in srgb,#259d60 50%,var(--hx-panel));color:#fff;border:0;opacity:1;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.seg button,.hall-player-bumper,.hall-purchase-stepper button) { border:0;outline:0;box-shadow:none;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .seg { border:0;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.seg button.on,.seg button[aria-pressed=true],.hall-player-bumper[aria-pressed=true]) { border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-select) 20%,var(--hx-panel));color:var(--hx-text); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-players li.is-current { outline:0;box-shadow:none;background:color-mix(in srgb,var(--hx-select) 15%,var(--hx-panel)); }
html[data-theme] body.review-redesign #hallEquipment { border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-st-attn) 12%,var(--hx-panel)); }
html[data-theme] body.review-redesign #modal .controller-pair-modal :is(.controller,.pill,button) { border:0;box-shadow:none; }
html[data-theme] body.review-redesign #modal .controller-pair-modal .controller { background:color-mix(in srgb,var(--ink) 5%,var(--panel)); }
html[data-theme] body.review-redesign #modal .controller-pair-modal .security-chrome .security-who { display:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.screen-format-choice button,.screen-quantity,.screen-quantity button,[data-lo-decrease],[data-lo-increase]) { background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text);border:0;outline:0;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.screen-format-choice button[aria-pressed=true],.screen-quantity button[aria-pressed=true]) { background:color-mix(in srgb,var(--hx-select) 20%,var(--hx-panel));color:var(--hx-text);border:0;outline:0;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.screen-opening { --opening-selected-fill:var(--hx-select); }
html[data-theme=light] body.review-redesign #visitWorkspace.screen-opening {
  --opening-selected-fill:color-mix(in srgb,var(--hx-select) 76%,var(--hx-text));
}
html[data-theme] body.review-redesign #visitWorkspace.screen-opening.hall-lane-panel
  :is(.screen-format-choice,.screen-quantity,.screen-opening-payment) button[aria-pressed=true] {
  background:var(--opening-selected-fill);
  color:var(--hx-panel);
}
html[data-theme] body.review-redesign #visitWorkspace.screen-opening.hall-lane-panel
  :is(.screen-format-choice,.screen-opening-payment) button[aria-pressed=true] :is(strong,small,span) {
  color:inherit;
}

html[data-theme] body.review-redesign #modal .controller-pair-modal :is(.modal-close,.security-chrome button) { background:color-mix(in srgb,var(--ink) 8%,var(--panel));color:var(--ink); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel :is(.seg button,.hall-player-bumper,.hall-purchase-stepper button,.screen-format-choice button,.screen-quantity button,[data-lo-decrease],[data-lo-increase]):focus-visible { outline:2px solid var(--hx-select);outline-offset:2px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:calc(var(--hall-tile)*.31) minmax(0,1fr) auto auto;justify-content:stretch;padding:calc(var(--hall-tile)*.06) calc(var(--hall-tile)*.08) calc(var(--hall-tile)*.12);text-align:left;--ht-gx:12%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .daily-lane-top { flex-direction:row-reverse;height:100%;gap:4px;grid-row:1; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .daily-lane-state { grid-row:3;align-self:end;min-height:0;margin:0;text-align:left;font-size:clamp(7px,calc(var(--hall-tile)*.155),40px);line-height:1.1;letter-spacing:-.02em; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-main-figure { grid-row:4;display:block;align-self:end;min-height:0;margin:3px 0 0;padding:0;text-align:left;font-size:clamp(7px,calc(var(--hall-tile)*.145),48px);font-weight:800;line-height:1;letter-spacing:-.01em;color:var(--ht-ink);white-space:normal;text-wrap:balance; }
/* the wording of a stopped lane has a long word: it is set a little tighter so that it stays inside the tile (the size is the same as on every tile) */
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity][data-quota-whole="true"][data-badge-size="large"] .hall-main-figure { letter-spacing:-.035em; }
.hall-purchase-choices[hidden] { display:none; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-quota-all button.primary { background:var(--hp-accent);color:var(--hx-bg); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-main-figure.is-stale { color:var(--ht-muted); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-tile-progress { display:block;left:8%;right:8%;bottom:4%;height:5px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-tile-progress.is-segmented { display:flex;gap:2px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-tile-progress:not(.is-segmented) i { margin-left:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-tile-progress.is-exhausted i { background:var(--ht-pay); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-tile-progress.is-stale { opacity:.55; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-progress { left:12px;right:12px;height:5px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-progress.is-segmented { gap:3px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-tile-progress { display:block;left:6px;right:6px;height:3px;bottom:5px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-tile-progress.is-segmented { display:flex;gap:1.5px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="medium"] .hall-tile-progress { left:10px;right:10px;height:4px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="medium"] .hall-tile-progress.is-segmented { gap:2px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"] .hall-tile-progress i.is-current { outline:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="medium"] .hall-tile-progress i.is-current { outline:0; }

body.review-redesign #r7HeaderTitle { padding-inline:2px;min-width:max-content; }

body.review-redesign #visitWorkspace.screen-opening :is(.screen-player-count button,.screen-quantity button,[data-lo-submit]) { min-width:56px;min-height:56px; }

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel.screen-opening .daily-checkout.screen-opening-actions [data-lo-submit] { min-width:56px;min-height:56px; }

@media(max-width:600px) {
  body.review-redesign[data-navigation]:not(.settings-open) .topbar { gap:3px; }
}
body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-close { flex:0 0 56px;width:56px;min-width:56px;min-height:56px;height:56px; }
@media(max-width:600px) {
  body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-close { flex-basis:44px;width:44px;min-width:44px;min-height:44px;height:44px; }
}


@media(max-width:600px) {
 body.review-redesign #r7SystemState.is-offline { max-width:110px;min-width:0;white-space:normal; }
 body.review-redesign #r7SystemState.is-offline .r7-status-compact { white-space:normal;line-height:1.2;min-width:0; }
}

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity=odd][data-badge-size] .daily-lane-top { flex-direction:row-reverse; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity=even][data-badge-size] .daily-lane-top { flex-direction:row; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity][data-badge-size]:not([data-badge-size=small]) .daily-lane-top { gap:4px; }

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > span { padding-inline:calc(var(--hall-tile)*.05);font-size:max(9.5px,calc(var(--hall-tile)*.105));border-radius:999px; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > .hall-tile-mechanic { width:var(--badge-size);padding:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-mechanic svg { width:58%;height:58%; }

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity]:not([data-badge-size="large"]):has(.hall-tile-badges) .daily-lane-glyph { display:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity]:not([data-badge-size="large"]) .daily-lane-top > .hall-tile-badges { position:static;transform:none;max-width:none;flex:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > span { border:0; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane:not([data-badge-size="large"]) .hall-tile-badges > .daily-lane-test-badge { box-shadow:inset 0 0 0 1.5px var(--ht-muted); }

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity][data-badge-size] .daily-lane-top > .daily-lane-no { flex:none;width:auto; }

/* Перевод визита: поверхности и состояния панели. */
#lanes .daily-lane.hall-transfer-unavailable { opacity:.36;filter:saturate(.55); }
#lanes .daily-lane.hall-transfer-target { outline:3px dashed var(--ht-free);outline-offset:3px; }
#lanes .daily-lane.hall-transfer-target.hall-transfer-selected { outline-style:solid; }
.hall-transfer-lift { position:fixed!important;z-index:1000;pointer-events:none;transform:scale(1.04);box-shadow:var(--elev-2);outline:3px solid var(--hx-select);outline-offset:3px; }
#visitWorkspace.hall-transfer-panel h4 { margin:4px 0 0;font-size:13px;font-weight:750;color:var(--hx-text-2); }
#visitWorkspace.hall-transfer-panel .hall-transfer-back { flex:0 0 56px;min-width:56px;background:transparent;color:var(--hx-text);font-size:28px;padding:0; }
body.review-redesign #visitWorkspace.hall-transfer-panel .daily-workspace-title-row { gap:4px; }
body.review-redesign #visitWorkspace.hall-transfer-panel .daily-workspace-title-row h3 { flex:1;min-width:0;white-space:normal;font-size:20px; }
#visitWorkspace .hall-transfer-targets { display:flex;flex-direction:column;gap:10px; }
#visitWorkspace .hall-transfer-option { min-height:76px;display:flex;align-items:center;gap:14px;padding:10px 16px;text-align:left;width:100%;border:0;border-radius:16px;background:var(--hx-raised);color:var(--hx-text); }
#visitWorkspace .hall-transfer-option > b { font-size:36px;font-weight:800;width:40px;text-align:center;line-height:1; }
#visitWorkspace .hall-transfer-option > span:nth-child(2) { flex:1;min-width:0; }
#visitWorkspace .hall-transfer-option strong { display:block;font-size:17px;color:var(--hx-st-free); }
#visitWorkspace .hall-transfer-option small { display:block;font-size:13.5px;font-weight:650;color:var(--hx-text-2); }
#visitWorkspace .hall-transfer-option[aria-pressed="true"] { background:color-mix(in srgb,var(--hx-select) 14%,var(--hx-panel));box-shadow:inset 0 0 0 2px var(--hx-select); }
#visitWorkspace .hall-transfer-excluded { min-height:46px;display:flex;align-items:center;gap:14px;padding:4px 16px;border-top:1px solid var(--hx-line);font-size:14.5px;color:var(--hx-text-2); }
#visitWorkspace .hall-transfer-excluded b { width:40px;flex:none;text-align:center;font-size:18px; }
#visitWorkspace .hall-transfer-switch { min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:transparent;color:var(--hx-text);border:0;padding:4px 0; }
#visitWorkspace .hall-transfer-switch::after { content:'';width:42px;height:26px;flex:none;border-radius:18px;background:var(--hx-raised);border:1px solid var(--hx-line);box-shadow:inset 16px 0 var(--hx-text-2); }
#visitWorkspace .hall-transfer-switch[aria-checked="true"]::after { background:var(--hx-select);box-shadow:inset -16px 0 var(--hx-text); }
#visitWorkspace .hall-transfer-route { display:flex;align-items:center;gap:12px; }
#visitWorkspace .hall-transfer-route > div { flex:1;min-width:0;min-height:64px;border-radius:14px;display:flex;align-items:center;gap:12px;padding:8px 16px;background:var(--hx-raised); }
#visitWorkspace .hall-transfer-route b { font-size:34px;font-weight:800;line-height:1; }
#visitWorkspace .hall-transfer-route small { font-size:14px;font-weight:750; }
#visitWorkspace .hall-transfer-route > div:last-child small { color:var(--hx-st-free); }
#visitWorkspace .hall-transfer-fact { min-height:40px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--hx-line);font-size:14.5px;color:var(--hx-text); }
#visitWorkspace .hall-transfer-fact > span:first-child { color:var(--hx-st-free); }
#visitWorkspace .hall-transfer-reasons { display:flex;gap:4px; }
#visitWorkspace .hall-transfer-reasons button { flex:1;min-width:0;padding:8px;border:0;background:var(--hx-raised);color:var(--hx-text);white-space:normal; }
#visitWorkspace .hall-transfer-reasons button[aria-pressed="true"] { background:color-mix(in srgb,var(--hx-select) 20%,var(--hx-panel));color:var(--hx-text); }
#visitWorkspace .hall-transfer-actions > .daily-action { margin-left:auto; }

body.review-redesign #visitWorkspace.hall-transfer-panel .daily-workspace-head { min-height:64px;padding-top:4px;padding-bottom:4px; }
body.review-redesign #visitWorkspace.hall-transfer-panel .hall-transfer-back { border:0;background:transparent;box-shadow:none; }
body.review-redesign #visitWorkspace.hall-transfer-panel .hall-transfer-option { min-height:76px;box-shadow:none; }
body.review-redesign #visitWorkspace.hall-transfer-panel .hall-transfer-option[aria-pressed="true"] { box-shadow:inset 0 0 0 2px var(--hx-select); }
#visitWorkspace .hall-transfer-excluded { box-sizing:border-box; }
body.review-redesign #visitWorkspace.hall-transfer-panel .hall-transfer-switch { min-height:64px;background:transparent;border:0;box-shadow:none; }
#visitWorkspace .hall-transfer-switch[aria-checked="true"]::after { box-shadow:inset -16px 0 var(--hx-panel); }
#visitWorkspace .hall-transfer-facts.is-pending .hall-transfer-fact,#visitWorkspace .hall-transfer-facts.is-pending .hall-transfer-fact > span:first-child { color:var(--hx-text-2); }

body.review-redesign #visitWorkspace.hall-transfer-panel .hall-workspace-close { min-width:56px;width:56px;min-height:56px;height:56px; }

/* Cashier tariff controls share the Hall surfaces. */
.tc-chip{--tc-level:transparent;flex:none!important;display:inline-flex!important;align-items:center;gap:8px;height:40px;min-height:40px;padding:0 13px;border:0;border-radius:20px;background:color-mix(in srgb,var(--tc-level) 14%,transparent);color:var(--muted,#b3bbcb);font-size:14px;font-weight:650;white-space:nowrap;position:relative}
.tc-chip::after{content:"";position:absolute;inset:-8px 0}.tc-chip>i{width:9px;height:9px;border-radius:50%;background:var(--tc-level)}.tc-chip>span{font-weight:750;color:var(--text,#eff1f6)}.tc-chip>b{color:var(--tc-level)}.tc-chip.is-manual{box-shadow:inset 0 0 0 1.5px #ffc24d88}.tc-chip small{border-radius:7px;padding:3px 6px;background:#ffc24d22;color:#ffc24d;font-size:11px}
.tc-day,.tc-price{--tc-panel:#0c1c38;--tc-pop:#0f2244;--tc-field:#020a1a80;--tc-raised:#96beff1c;--tc-line:#608cd24d;--tc-ink:#eff1f6;--tc-sub:#b3bbcb;--tc-accent:#3ee0f2;--tc-soft:#3ee0f224;--tc-danger:#ff7d86;--tc-green:#279a5c;}
.tc-day,.tc-price:not(.reception-dialog){box-sizing:border-box!important;border:1px solid var(--tc-line)!important;background:var(--tc-panel)!important;color:var(--tc-ink)!important;border-radius:24px!important;box-shadow:0 22px 60px -16px #000a!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important}
body.theme-light .tc-day,body.theme-light .tc-price,[data-theme=light] .tc-day,[data-theme=light] .tc-price{--tc-panel:#fff;--tc-pop:#fff;--tc-field:#f3f5f8;--tc-raised:#e6ebf1;--tc-line:#b9c2cd;--tc-ink:#17212b;--tc-sub:#5f6d85;--tc-accent:#2f78d4;--tc-soft:#e7f0ff;--tc-danger:#bd3030;--tc-green:#157a45}
.tc-day{width:780px!important;max-width:calc(100vw - 24px)!important}.tc-day:not(.reception-dialog) .modal-head,.tc-price:not(.reception-dialog) .modal-head{padding:18px 24px!important;border-bottom:0!important;min-height:64px!important}.tc-day:not(.reception-dialog) #modalTitle{font-size:22px!important;font-weight:780!important}.tc-day .modal-body{padding:0 24px 20px!important;overflow:auto!important}.tc-day:not(.reception-dialog) .wizard-bar,.tc-price:not(.reception-dialog) .wizard-bar{padding:12px 24px!important;border-top:1px solid var(--tc-line)!important;gap:8px!important;display:flex!important;justify-content:flex-end!important;background:var(--tc-panel)!important}
.tc-day button,.tc-price button{min-height:56px;font-size:15px;font-weight:700;border:0;border-radius:14px;background:var(--tc-raised);color:var(--tc-ink)}.tc-day:not(.reception-dialog) .primary,.tc-price:not(.reception-dialog) .primary{background:var(--tc-green)!important;color:#fff!important}.tc-day button:disabled,.tc-price button:disabled{opacity:.42}.tc-day button:focus-visible,.tc-price button:focus-visible,.tc-price input:focus-visible{outline:2px solid var(--tc-accent);outline-offset:2px}
.tc-calendar{font-size:14px;color:var(--tc-sub);margin:0 0 20px}.tc-day-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.tc-day-grid.has-right{grid-template-columns:1fr}.tc-day-left{display:flex;flex-direction:column;gap:12px;min-width:0}.tc-label{font-size:13px;font-weight:700;color:var(--tc-sub)}.tc-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tc-types button{height:72px;min-width:0;padding:8px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;font-size:15px;text-align:left}.tc-types b{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:15px;white-space:nowrap}.tc-types .is-on,.tc-reasons .is-on{box-shadow:inset 0 0 0 2px var(--tc-accent);background:var(--tc-soft);color:var(--tc-accent)}.tc-mini{display:flex;width:100%;height:9px;border-radius:4px;overflow:hidden;gap:1px}.tc-mini i{flex:1;background:var(--tc-sub)}.tc-reasons{display:flex;gap:8px;flex-wrap:wrap}.tc-reasons button{padding:0 16px;white-space:nowrap}.tc-reason-input{width:100%;min-height:56px;border:1px solid var(--tc-line);border-radius:12px;background:var(--tc-field);color:var(--tc-ink);padding:12px;font-size:16px}.tc-reason-input[hidden]{display:none!important}.tc-until{display:flex;align-items:center;padding:12px;background:var(--tc-field);border-radius:12px;font-size:14px;color:var(--tc-sub);margin:0}.tc-pin{padding:12px;border-radius:16px;background:var(--tc-field);box-shadow:inset 0 0 0 1px var(--tc-line);display:flex;flex-direction:column;gap:12px}.tc-pin[hidden]{display:none}.tc-pin p{font-size:14px;color:var(--tc-sub);margin:0}.tc-day .tc-restore{color:var(--tc-danger);margin-right:auto;background:transparent}
.tc-price:not(.reception-dialog){position:fixed!important;left:var(--tc-left,414px);top:var(--tc-top,250px);width:386px!important;max-width:calc(100vw - 16px)!important;border-radius:20px!important;background:var(--tc-pop)!important}.tc-price:not(.reception-dialog) .modal-head{padding:14px 14px 0!important;min-height:32px!important}.tc-price:not(.reception-dialog) #modalTitle{font-size:15px!important}.tc-price:not(.reception-dialog) #modalClose{display:none}.tc-price:not(.reception-dialog) .modal-body{padding:0 14px 12px!important;overflow:auto!important}.tc-price:not(.reception-dialog) .wizard-bar{padding:0 14px 14px!important;border:0!important}.tc-price:not(.reception-dialog) .wizard-bar>button{flex:1}.tc-tariff{font-size:13px;color:var(--tc-sub);margin:0 0 10px}.tc-display{display:flex;align-items:center;height:56px;gap:8px;padding:0 16px;background:var(--tc-field);box-shadow:inset 0 0 0 2px var(--tc-accent);border-radius:12px;margin:10px 0 8px}.tc-display input{min-width:0;width:100%;text-align:right;font-size:26px;font-weight:800;border:0!important;background:transparent!important;color:var(--tc-ink)!important;padding:0!important;height:54px!important}.tc-delta{white-space:nowrap;font-size:13px;font-weight:700;color:var(--tc-sub)}.tc-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tc-keys button{font-size:22px;border-radius:12px}.tc-keys button:nth-child(10),.tc-keys button:nth-child(12){font-size:15px}.tc-price .tc-reasons{gap:6px;margin-top:10px;flex-wrap:nowrap}.tc-price .tc-reasons button{font-size:13px;padding:0 10px;min-width:0;white-space:normal;flex:1}.tc-authority{font-size:12.5px;color:var(--tc-sub);margin:12px 0 0}.tc-error{padding:10px;border-radius:12px;background:color-mix(in srgb,var(--tc-danger) 12%,transparent);color:var(--tc-danger);font-size:14px}.tc-error[hidden]{display:none}.tc-own-price{min-height:56px;font-size:15px}.tc-manual-line{font-size:13px;color:var(--muted,#b3bbcb)}
@media(max-width:600px){.topbar:has(.tc-chip){flex-wrap:wrap!important;height:auto!important;min-height:72px!important}.topbar .tc-chip{order:20!important;width:max-content;max-width:100%;height:auto;min-height:40px;white-space:normal;flex-wrap:wrap;font-size:12px;gap:5px;margin:0 0 4px}.tc-day,.tc-price:not(.reception-dialog){position:fixed!important;inset:auto 0 0!important;left:0!important;top:auto!important;width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:22px 22px 0 0!important}.tc-day:not(.reception-dialog) .modal-head{padding:16px!important}.tc-day .modal-body{padding:0 16px 16px!important}.tc-day-grid{grid-template-columns:1fr!important}.tc-types b{font-size:13px}.tc-types button{padding:8px}.tc-day:not(.reception-dialog) .wizard-bar,.tc-price:not(.reception-dialog) .wizard-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}.tc-day:not(.reception-dialog) .wizard-bar>button{flex:1;padding:0 8px}.tc-day:not(.reception-dialog) .wizard-bar>.primary{flex:1.4}.tc-day .tc-reasons{gap:6px}.tc-day .tc-reasons button{font-size:13px;padding:0 12px}}
#modal .modal:is(.tc-day,.tc-price){display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important}
#modal .modal:is(.tc-day,.tc-price) .security-chrome,#modal .modal:is(.tc-day,.tc-price) .manager-session-lock{display:none!important}
#modal .modal:is(.tc-day:not(.reception-dialog),.tc-price:not(.reception-dialog)) .modal-head{flex:none!important;background:var(--tc-panel)!important;gap:12px!important}
#modal .modal:is(.tc-day,.tc-price) #modalBody{display:block!important;background:var(--tc-panel)!important;flex:0 1 auto!important;min-height:0!important;font-size:15px!important}
#modal .modal.tc-day:not(.reception-dialog) #modalTitle{font-size:22px!important;flex:1;min-width:0;line-height:1.3}
#modal .modal:is(.tc-day:not(.reception-dialog),.tc-price:not(.reception-dialog)) #wizardBar{position:static!important;flex:none!important;min-height:80px!important;display:flex!important;flex-wrap:nowrap!important;gap:8px!important}
#modal .modal:is(.tc-day:not(.reception-dialog),.tc-price:not(.reception-dialog)) #wizardBar button{min-width:0!important;min-height:56px!important;height:56px!important;font-size:16px!important;padding:0 20px!important;white-space:nowrap!important}
#modal .modal.tc-price:not(.reception-dialog){max-height:calc(100dvh - var(--tc-top,250px) - 12px)!important}
#modal .modal.tc-price:not(.reception-dialog) #modalTitle{font-size:15px!important;flex:1;text-align:left}
#modal .modal.tc-price:not(.reception-dialog) #modalBody{padding:0 14px 8px!important}
#modal .modal.tc-price:not(.reception-dialog) #wizardBar{min-height:70px!important}
#modal .modal.tc-day:not(.reception-dialog) #modalClose{min-width:56px!important;min-height:56px!important;height:56px!important;width:56px!important;font-size:24px!important}
body.review-redesign .topbar:has(>.tc-chip) #r7Search{flex:0 0 44px!important;min-width:44px!important;max-width:44px!important}
body.review-redesign .topbar:has(>.tc-chip) #r7Search .r7-search-input,body.review-redesign .topbar:has(>.tc-chip) #r7Search .r7-search-icon{display:none!important}
body.review-redesign .topbar:has(>.tc-chip) #r7Search .r7-search-toggle{display:inline-flex!important;width:44px;min-width:44px;align-items:center;justify-content:center;padding:0}
body.review-redesign .topbar:has(>.tc-chip) #r7Search.is-open .r7-search-input{display:block!important;position:absolute!important;left:0!important;top:48px!important;width:min(340px,calc(100vw - 24px))!important;z-index:90}
body.review-redesign .topbar:has(>.tc-chip) #r7Operator{flex:0 1 220px;max-width:220px;min-width:44px}
@media(max-width:600px){#modal .modal.tc-price{max-height:calc(100dvh - 16px)!important}#modal .modal:is(.tc-day:not(.reception-dialog),.tc-price:not(.reception-dialog)) #wizardBar button{padding:0 8px!important;font-size:14px!important}body.review-redesign .topbar:has(>.tc-chip) #r7Operator{max-width:none}}
#modal .modal:is(.tc-day,.tc-price),#modal .modal:is(.tc-day,.tc-price) button{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal}
#modal:has(.tc-price:not(.reception-dialog)){background:transparent!important;backdrop-filter:none!important}
#modal:has(.tc-day){backdrop-filter:blur(2px)!important;background:#01050b66!important}
.tc-chip{color:var(--hx-text-2,#b3bbcb)}.tc-chip>span{color:var(--hx-text,#eff1f6)}
html[data-theme=light] .tc-chip small{color:#8a5900;background:#fff2d4}
body.review-redesign .topbar:has(>.tc-chip) #r7Operator .r7-operator-text{flex:1 0 70px;min-width:70px!important;max-width:110px}
body.review-redesign .topbar:has(>.tc-chip) #r7Operator .session-time{max-width:70px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 70px}
#modal:has(.tc-price){-webkit-backdrop-filter:none!important}
#modal:has(.tc-day){-webkit-backdrop-filter:blur(2px)!important}
#modal .modal.tc-price .modal-body{border-radius:0!important}
@media(min-width:601px){#modal .modal.tc-price:not(.reception-dialog)::after{content:"";position:absolute;right:-8px;bottom:24px;width:14px;height:14px;transform:rotate(45deg);background:var(--tc-pop);border-right:1px solid var(--tc-line);border-top:1px solid var(--tc-line)}#modal .modal.tc-price:not(.reception-dialog){overflow:visible!important}}
#modal .modal.tc-price .tc-tariff{position:absolute;top:16px;right:14px;margin:0;font-size:13px;line-height:18px}
#modal .modal.tc-price:not(.reception-dialog) #modalTitle{max-width:58%}
#modal .modal.tc-price .tc-keys button{height:56px!important;min-height:56px!important;max-height:56px!important;padding:0!important;box-sizing:border-box}
#modal .modal.tc-price .tc-reasons button{flex:0 1 auto!important;white-space:nowrap!important;font-size:12.5px!important;padding:0 10px!important}
#modal .modal.tc-price .tc-authority{margin:8px 0 0;font-size:12px;line-height:16px}
.tc-display>small{font-size:17px;color:var(--tc-sub);flex:none}
@media(max-width:600px){body.review-redesign .topbar:has(>.tc-chip) #r7Operator{flex:0 0 40px!important;min-width:40px!important;width:40px!important;max-width:40px!important}}

@media(max-width:600px){
 #modal .modal.tc-day:not(.reception-dialog) #wizardBar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:8px!important;min-height:0!important}
 #modal .modal.tc-day:not(.reception-dialog) #wizardBar>button{width:100%!important;min-height:56px!important;margin:0!important;box-sizing:border-box!important}
 #modal .modal.tc-day:not(.reception-dialog) #wizardBar>.tc-restore{order:-1;grid-column:1/-1!important;white-space:normal!important;text-align:left;justify-content:flex-start}
 #modal .modal.tc-day:not(.reception-dialog) #wizardBar>.primary{grid-column:2!important}
}


/* Редактор состава в панели дорожки. */
body.review-redesign #visitWorkspace.lane-players-editor { --lp-field:rgba(2,10,26,.5);--lp-accent:#3ee0f2;--lp-accent-text:#7fecf7;--lp-accent-soft:rgba(62,224,242,.14);--lp-raised:rgba(150,190,255,.11);--lp-danger:#ff7d86;--lp-danger-soft:rgba(255,100,112,.14); }
html[data-theme=light] body.review-redesign #visitWorkspace.lane-players-editor { --lp-field:#fff;--lp-accent:#2f78d4;--lp-accent-text:#245fa6;--lp-accent-soft:rgba(47,120,212,.12);--lp-raised:#e6ebf1;--lp-danger:#b22d3a;--lp-danger-soft:rgba(190,45,58,.1); }
body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row { display:flex;gap:8px;flex-wrap:nowrap;min-height:64px; }
body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row h3 { flex:none;font-size:20px;white-space:nowrap;margin:0; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-lane { color:var(--hx-text-2);font-size:14px;font-weight:650;white-space:nowrap; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-state { margin-left:auto;background:color-mix(in srgb,var(--lp-play) 14%,transparent);color:var(--lp-play);padding:8px 10px;border-radius:22px;font-size:13px;font-weight:750;white-space:nowrap; }
body.review-redesign #visitWorkspace.lane-players-editor .hall-panel-back { color:var(--lp-accent-text);font-size:30px;flex:0 0 40px;min-width:40px;width:40px; }
body.review-redesign #visitWorkspace.lane-players-editor > .r7-workspace-content { padding:0 18px;gap:10px;justify-content:flex-start; }
body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-head { margin:0 -18px;padding:0 8px 0 16px; }
#visitWorkspace.lane-players-editor .lp-columns { display:flex;align-items:center;justify-content:space-between;min-height:36px;margin-top:4px; }
#visitWorkspace.lane-players-editor .lp-columns .screen-info-label { font-size:12.5px;font-weight:700;gap:4px;color:var(--hx-text-2); }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .screen-info-trigger { width:24px;min-width:24px;height:36px;min-height:36px;background:transparent;border:0; }
#visitWorkspace.lane-players-editor .lp-list { padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:10px; }
#visitWorkspace.lane-players-editor .lp-row { height:56px;min-height:56px;display:flex;align-items:center;gap:6px;flex:none; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-row button { height:56px;min-height:56px;border:0;box-shadow:none;background:var(--lp-field);color:var(--hx-text-2);padding:0;flex:none;border-radius:14px; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-grip { width:40px;min-width:40px;margin-left:-8px;display:flex;align-items:center;justify-content:center;gap:1px;background:transparent;cursor:grab;touch-action:none; }
#visitWorkspace.lane-players-editor .lp-grip svg { width:16px;height:20px;stroke:currentColor;stroke-width:2;stroke-linecap:round;opacity:.75; }
#visitWorkspace.lane-players-editor .lp-grip b { font-size:15px;font-weight:750;min-width:12px; }
#visitWorkspace.lane-players-editor .is-current .lp-grip b { color:var(--lp-accent-text); }
#visitWorkspace.lane-players-editor .lp-field { flex:1;min-width:0;height:56px;display:flex;flex-direction:column;justify-content:center;background:var(--lp-field);border-radius:12px;padding:0 12px;overflow:hidden; }
#visitWorkspace.lane-players-editor .is-current .lp-field { box-shadow:inset 3px 0 var(--lp-accent); }
#visitWorkspace.lane-players-editor .lp-field:focus-within { box-shadow:inset 0 0 0 2px var(--lp-accent);background:var(--lp-accent-soft); }
#visitWorkspace.lane-players-editor .lp-field.is-error { box-shadow:inset 0 0 0 2px var(--lp-danger); }
body.review-redesign #visitWorkspace.lane-players-editor .lp-field input { min-height:0;height:22px;width:100%;min-width:0;border:0;outline:0;box-shadow:none;background:transparent;color:var(--hx-text);font-family:inherit;font-size:16px;font-weight:650;padding:0;text-overflow:ellipsis;border-radius:0; }
#visitWorkspace.lane-players-editor .lp-field small { font-size:11.5px;line-height:14px;font-weight:700;color:var(--lp-accent-text);white-space:nowrap; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-bumpers { width:56px;min-width:56px;display:grid;place-items:center; }
#visitWorkspace.lane-players-editor .lp-bumpers svg,#visitWorkspace.lane-players-editor .lp-unavailable svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-bumpers[aria-pressed=true] { background:var(--lp-accent-soft);box-shadow:inset 0 0 0 2px var(--lp-accent);color:var(--lp-accent-text); }
#visitWorkspace.lane-players-editor .lp-bumpers:disabled { opacity:.4; }
#visitWorkspace.lane-players-editor .lp-order { display:flex;background:var(--lp-raised);border-radius:14px;overflow:hidden;flex:none; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-order button { width:42px;min-width:42px;border-radius:0;background:transparent; }
#visitWorkspace.lane-players-editor .lp-order button+button { border-left:1px solid var(--hx-line); }
#visitWorkspace.lane-players-editor .lp-order button:disabled { opacity:.3; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-remove { width:56px;min-width:56px;background:transparent;font-size:22px; }
#visitWorkspace.lane-players-editor .lp-row.lp-confirm { height:68px;min-height:68px;padding:0 6px 0 14px;box-sizing:border-box;border-radius:16px;background:var(--lp-danger-soft); }
#visitWorkspace.lane-players-editor .lp-confirm > span { flex:1;min-width:0;font-size:14px;font-weight:650; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-confirm button { width:auto;min-width:56px;padding:0 12px;font-size:14px; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-confirm .lp-remove-confirm { background:transparent;color:var(--lp-danger);font-weight:750; }
#visitWorkspace.lane-players-editor .lp-add-line { display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:8px;align-items:center; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-add { width:100%;height:56px;min-height:56px;display:flex;align-items:center;gap:6px;padding:0 10px 0 14px;border:1.5px dashed color-mix(in srgb,var(--lp-accent-text) 45%,transparent);background:transparent;color:var(--lp-accent-text);font-size:15px;font-weight:700;box-shadow:none;text-align:left; }
#visitWorkspace.lane-players-editor .lp-add > span:first-child { font-size:24px;margin-right:4px; }
#visitWorkspace.lane-players-editor .lp-count { margin-left:auto;color:var(--hx-text-2);font-size:13px; }
#visitWorkspace.lane-players-editor .lp-add-line > .screen-info-label { position:static; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-add-line .screen-info-trigger { width:56px;min-width:56px;height:56px;min-height:56px; }
#visitWorkspace.lane-players-editor .lp-add:disabled { opacity:.5; }
#visitWorkspace.lane-players-editor .lp-unavailable { display:flex;align-items:center;gap:6px;min-height:56px;flex-wrap:wrap;font-size:13px;background:var(--lp-raised);border-radius:12px;padding:0 10px; }
#visitWorkspace.lane-players-editor .lp-unavailable > span:nth-child(2) { flex:1; }
body.review-redesign #visitWorkspace.lane-players-editor > .daily-checkout.lp-footer { display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;padding:10px 16px 12px;min-height:104px; }
#visitWorkspace.lane-players-editor .lp-status { font-size:12.5px;font-weight:650;line-height:1.3;color:var(--hx-text-2);min-height:18px; }
#visitWorkspace.lane-players-editor .lp-status.is-error { color:var(--lp-danger); }
#visitWorkspace.lane-players-editor .lp-footer-actions { display:flex;gap:10px;align-items:center; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .screen-info-trigger { width:44px;min-width:44px;height:44px;min-height:44px;padding:0;background:transparent;border:0;box-shadow:none; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions button { padding:0 16px;height:56px;min-height:56px;width:auto;background:var(--lp-raised);color:var(--hx-text);border:0;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-save { margin-left:auto;background:#279a5c;color:white; }
#visitWorkspace.lane-players-editor button:focus-visible { outline:2px solid var(--lp-accent);outline-offset:2px; }
@media (max-width:600px) {
 body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-order { display:none; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-grip { margin-left:-4px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-bumpers { width:48px;min-width:48px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-row .lp-remove { width:44px;min-width:44px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-field input { font-size:16px; }
 body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row { gap:4px; }
 body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row h3 { font-size:18px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-lane { font-size:12px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-state { font-size:11px;padding:6px; }
 body.review-redesign #visitWorkspace.lane-players-editor .hall-panel-back { min-width:32px;width:32px;flex-basis:32px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-cancel { flex:1; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-save { flex:1.4; }
}

body.review-redesign #visitWorkspace.lane-players-editor { --lp-play:#ffc24d; }
html[data-theme=light] body.review-redesign #visitWorkspace.lane-players-editor { --lp-play:#8b6a00; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-state::before { content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:currentColor; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-save { font-size:16px;font-weight:750; }
@media(max-width:600px) {
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor.is-hall-sheet { top:max(232px,calc(100dvh - 496px))!important;max-height:calc(100dvh - 232px)!important; }
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor > .r7-workspace-content { padding:0 14px;gap:8px;scroll-padding-top:64px; }
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor .daily-workspace-head { padding:0 8px;margin:0 -14px;min-height:56px;position:sticky;top:0;z-index:2;background:var(--hx-panel); }
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor .daily-workspace-title-row { min-height:56px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-list { gap:8px; }
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor > .daily-checkout.lp-footer { padding:10px 14px 18px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-cancel { flex:0 0 auto; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-save { flex:0 0 auto;min-width:144px; }
}

@media(max-width:600px) { body.review-redesign #visitWorkspace.lane-players-editor .lp-columns { min-height:28px;margin-top:-4px; } }

html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-add { font-size:16px; }
@media(max-width:600px) { body.review-redesign #visitWorkspace.lane-players-editor .lp-columns { min-height:22px; } }

html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor :is(.hall-panel-back,.hall-workspace-close) { background:transparent;border:0;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .hall-panel-back { flex:0 0 48px;min-width:48px;width:48px;margin-left:-8px; }
body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row { gap:10px; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-state { margin-left:0;height:34px;padding:0 12px;display:inline-flex;align-items:center;gap:8px;font-size:14px; }
body.review-redesign #visitWorkspace.lane-players-editor .lp-state::before { width:9px;height:9px;margin:0;flex:none; }
@media(max-width:600px) {
 body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor .daily-workspace-head { padding-left:16px; }
 body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row { gap:6px; }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .hall-panel-back { flex-basis:40px;min-width:40px;width:40px; }
 body.review-redesign #visitWorkspace.lane-players-editor .lp-state { height:30px;padding:0 8px;gap:6px;font-size:12px; }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-columns .screen-info-trigger { height:30px;min-height:30px; }
}

#visitWorkspace.lane-players-editor :is(.lp-order,.lp-remove,.hall-panel-back,.lp-add) svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
#visitWorkspace.lane-players-editor .hall-panel-back svg { width:24px;height:24px; }
#visitWorkspace.lane-players-editor .lp-confirm > span { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
#visitWorkspace .hall-panel-players-button { display:flex;align-items:center;justify-content:center;gap:8px; }
#visitWorkspace .hall-panel-players-button > span:first-child { display:flex;flex:none; }
#visitWorkspace .hall-panel-players-button svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
#visitWorkspace .lp-entry-label { min-width:0;overflow:hidden;text-overflow:ellipsis; }
body.review-redesign #visitWorkspace.lane-players-editor {
 --hx-panel:#0c1c38;--hx-text:#eff1f6;--hx-text-2:#b3bbcb;--hx-line:rgba(96,140,210,.16);
 --lp-ink-3:#97a0b4;--lp-play:#ffbf3c;--lp-primary:#279a5c;
 background:var(--hx-panel);color:var(--hx-text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
}
html[data-theme=light] body.review-redesign #visitWorkspace.lane-players-editor {
 --hx-panel:#fff;--hx-text:#17212b;--hx-text-2:#4f5b69;--hx-line:#d9dfe6;
 --lp-field:#f3f5f8;--lp-ink-3:#5f6d85;--lp-accent-text:#1f5fb0;--lp-accent-soft:#e7f0ff;
 --lp-danger:#bd3030;--lp-danger-soft:#fde8e8;--lp-play:#a8520f;--lp-primary:#157a45;
}
#visitWorkspace.lane-players-editor :is(.lp-status,.lp-count,.lp-grip),#visitWorkspace.lane-players-editor .lp-columns .screen-info-label { color:var(--lp-ink-3); }
#visitWorkspace.lane-players-editor .lp-status.is-error { color:var(--lp-danger); }
body.review-redesign #visitWorkspace.lane-players-editor .lp-state { color:color-mix(in srgb,var(--lp-play) 78%,var(--hx-text));background:color-mix(in srgb,var(--lp-play) 15%,transparent); }
html[data-theme=light] body.review-redesign #visitWorkspace.lane-players-editor .lp-state { color:var(--lp-play);background:color-mix(in srgb,var(--lp-play) 10%,#fff); }
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-footer-actions .lp-save { background:var(--lp-primary); }
@media(max-width:600px) { body.review-redesign #visitWorkspace.lane-players-editor .lp-lane { font-size:14px; } }


/* Action rows retain their intrinsic height before scrollable page content. */
body.screens-v1 #r7Page > .r7-page-head:has(.r7-page-actions) { min-height:56px; }
body.screens-v1 :is(.r7-tab,.r7-page-actions button,.r7w-columns button.big,.r7-insight-action,.r7-count-row button,.screen-queue-table .r7w-group) { min-height:56px;min-width:56px; }
body.screens-v1 .r7w-date button { min-width:56px;min-height:56px; }
body.screens-v1 .r7-kpi > .r7-kpi-value { overflow-wrap:normal;word-break:normal; }
body.review-redesign .topbar { min-height:72px; }
body.review-redesign .topbar :is(#r7Search .r7-search-toggle,#hallEquipment,#r7Bell,#r7Operator,.session-info,.hall-legend-help) { min-width:56px;min-height:56px; }
body.review-redesign .topbar #r7Search,body.review-redesign .topbar #r7Search input { min-height:56px;height:56px; }
body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-pause { min-width:56px;width:56px;flex-basis:56px; }
body.review-redesign #modal:has(.tc-day,.tc-price) { z-index:70; }
@media(max-width:1024px) {
  body.review-redesign[data-navigation] .topbar,body.settings-open.review-redesign[data-navigation] .topbar { display:flex;flex-wrap:nowrap;align-items:center;height:72px;min-height:72px;gap:2px;padding:8px 6px; }
  body.review-redesign .topbar .top-actions,body.settings-open.review-redesign .topbar .top-actions { display:contents; }
  body.review-redesign .topbar #r7Operator,body.settings-open.review-redesign .topbar #r7Operator { flex:0 0 56px;width:56px;max-width:56px;min-width:56px;min-height:56px;order:0;padding:0;margin:0;justify-content:center; }
  body.review-redesign .topbar #r7Operator :is(.r7-operator-text,.session-time,.session-info) { display:none!important; }
  body.review-redesign .topbar #r7Search { flex:0 0 56px;min-width:56px;max-width:56px; }
  body.review-redesign .topbar #r7Search .r7-search-input,body.review-redesign .topbar #r7Search .r7-search-icon { display:none; }
  body.review-redesign .topbar #r7Search .r7-search-toggle { display:inline-flex;align-items:center;justify-content:center;width:56px;padding:0; }
  body.review-redesign .topbar #r7Search.is-open .r7-search-input { display:block;position:absolute;left:0;top:56px;width:min(340px,calc(100vw - 24px)); }
  body.review-redesign .topbar #hallEquipment,body.review-redesign .topbar #r7Bell,body.review-redesign .topbar .hall-legend-help { flex:0 0 56px;width:56px;padding:0;justify-content:center; }
  body.review-redesign .topbar #r7SystemState { flex:0 0 auto;min-width:0;max-width:44px;padding-inline:5px;font-size:10px; }
  body.review-redesign .topbar #r7HeaderTitle { flex:1 1 auto;min-width:0;font-size:14px; }
}

@media(min-width:768px) and (max-width:1024px) {
  body.review-redesign .topbar #r7SystemState { max-width:none; }
}

@media(max-width:600px) {
  html[data-theme] body.review-redesign[data-navigation] .topbar #r7HeaderTitle { font-size:12px;line-height:1.15;white-space:normal;overflow-wrap:normal; }
}

@media(max-width:1024px) {
  html[data-theme] body.review-redesign[data-navigation] .topbar #r7HeaderTitle { min-width:min-content; }
  html[data-theme] body.review-redesign .topbar #hallEquipment :is(.hall-equipment-full,.hall-equipment-tablet,.hall-equipment-phone) { display:none; }
}
@media(max-width:600px) {
  html[data-theme] body.review-redesign[data-navigation] .topbar { padding-inline:4px;gap:0; }
}
@media(max-width:379px) {
  html[data-theme] body.review-redesign[data-navigation] .topbar { flex-wrap:wrap!important;height:auto;min-height:128px;justify-content:space-between; }
  html[data-theme] body.review-redesign[data-navigation] .topbar #r7HeaderTitle { flex:1 0 calc(100% - 64px);order:0; }
  html[data-theme] body.review-redesign[data-navigation] .topbar #r7Search { order:0; }
  html[data-theme] body.review-redesign[data-navigation] .topbar :is(#hallEquipment,#r7Bell,#r7SystemState,#r7Operator,.hall-legend-help) { order:1; }
}

@media(max-width:600px) {
  body.review-redesign .topbar:has(>.tc-chip) #r7Operator { flex:0 0 56px!important;min-width:56px!important;width:56px!important;max-width:56px!important; }
}

@media(max-width:1024px) {
  html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end { flex:1.65;padding-right:0; }
  html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-end > button { font-size:13px; }
}
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"][data-parity] { padding-bottom:max(11px,calc(var(--hall-tile)*.12)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"][data-parity] .daily-lane-state { font-size:max(7px,calc(var(--hall-tile)*.115)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="small"][data-parity] .hall-main-figure { font-size:max(7px,calc(var(--hall-tile)*.13)); }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity].glyph-timeup .daily-lane-state { font-size:max(7px,calc(var(--hall-tile)*.12)); }

/* Settings controls share filled surfaces and touch dimensions. */
body.settings-open :is(.settings-page,#modal) :is(button,select,input:not([type=checkbox]):not([type=radio]),[role=button]) { min-height:56px;min-width:56px;box-sizing:border-box; }
body.settings-open :is(.settings-page,#modal) :is(.sv-switch,.security-setting,.security-rights label) { min-height:56px; }
body.settings-open :is(.settings-page,#modal) .sv-switch { min-width:56px; }
body.settings-open #modal :is(input:not([type=checkbox]):not([type=radio]),select,button:not(.primary):not(.screen-info-trigger)), body.settings-open .settings-page :is(input:not([type=checkbox]):not([type=radio]),select), body.settings-open .settings-page .sv-card button:not(.primary):not(.sv-staff-row):not(.sv-role):not(.screen-info-trigger), body.settings-open .settings-page .sv-savebar button:not(.primary) { border:0;box-shadow:none;background:var(--hx-raised);color:var(--hx-text); }
body.settings-open :is(.settings-page,#modal) :is(button,input,select):focus-visible { outline:0;box-shadow:inset 0 0 0 2px var(--hx-select)!important; }
body.settings-open .settings-page .sv-section-select { height:56px;min-height:56px; }
body.settings-open .sv-policy-form .sv-row { flex-wrap:wrap;gap:8px; }
body.settings-open .sv-policy-form .sv-policy-label { flex:1 1 112px;min-width:0;word-break:normal;overflow-wrap:normal; }
body.settings-open .sv-policy-controls { min-width:0; }
body.settings-open .sv-policy-controls .sv-permanent-status { min-width:76px;max-width:100px;white-space:normal;word-break:normal;overflow-wrap:normal; }
body.settings-open #modal:has(.security-page,.security-editor,.security-settings-form) { z-index:1600; }
body.settings-open #modal :is(.security-page,.security-editor,.security-settings-form,.security-panel,.security-card) { min-width:0;max-width:100%; }
body.settings-open #modal .security-editor { width:100%; }
body.settings-open #modal .security-table { min-width:0;width:100%;table-layout:fixed; }
body.settings-open #modal .security-table :is(th,td) { min-width:0;white-space:normal;overflow-wrap:anywhere; }
body.settings-open #modal .security-table button { width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere; }
body.settings-open #modal .modal-close { width:56px;height:56px;min-width:56px;min-height:56px; }
body.settings-open #modal .modal-body { min-width:0;padding-bottom:max(20px,env(safe-area-inset-bottom)); }
@media(max-width:600px) {
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar { display:flex!important;flex-wrap:nowrap!important;height:68px!important;min-height:68px!important;max-height:68px;padding:6px 8px!important;gap:4px; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-brand { display:flex!important;flex:0 0 94px!important;width:94px!important;min-width:94px;margin:0!important;padding:0!important; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-brand .subline { display:none!important; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .brand-emblem { width:94px;min-width:94px; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .brand-emblem svg { width:78px!important;max-width:78px!important;height:24px; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-actions { display:contents!important; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-actions>:not(#r7PinOff) { display:none!important; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar :is(.top-tabs,.top-system,#r7Bell,#r7SystemState,#hallEquipment,#r7Search,.go-header-status,.center-header-status) { display:none!important; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7HeaderTitle { display:block!important;flex:1 1 0!important;min-width:0;margin:0!important;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7PinOff { display:inline-flex!important;order:3;flex:0 0 56px;width:56px!important;min-width:56px!important;min-height:56px!important;height:56px!important;padding:0!important;margin:0!important;justify-content:center; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7PinOff>span:last-child { font-size:0; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7Operator { display:flex!important;order:4;flex:0 0 56px!important;min-width:56px;min-height:56px!important;max-height:56px;padding:0!important;margin:0!important;justify-content:center; }
  body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7Operator .r7-operator-text { display:none!important; }
  body.settings-open #modal:has(.security-page,.security-editor,.security-settings-form) { inset:68px 0 0!important;left:0!important;right:0!important;top:68px!important;bottom:0!important;padding:0!important; }
  body.settings-open #modal:has(.security-page,.security-editor,.security-settings-form) .modal { width:100%!important;max-width:100%;height:100%;max-height:100%;margin:0;border-radius:0; }
  body.settings-open #modal:has(.security-page,.security-editor,.security-settings-form) .modal-body { overflow:auto;flex:1;min-height:0; }
  body.settings-open #modal:has(.security-page,.security-editor,.security-settings-form) .security-rights { grid-template-columns:minmax(0,1fr); }
}
body.settings-open .topbar :is(button,[role=button]) { min-width:56px!important;min-height:56px!important; }

@media (max-width:600px) {
  html[data-theme] body.settings-open.review-redesign:has(.settings-page[data-screen="tariffs"]:not(.tariffs-unloaded)) .topbar { display:none!important; }
  html[data-theme] body.settings-open.review-redesign:has(.settings-page[data-screen="tariffs"]:not(.tariffs-unloaded)) { grid-template-rows:0 minmax(0,1fr)!important; }
}
#r7Operator .session-time[hidden], #r7Operator .r7-operator-text small:empty { display:none; }
/* Hall panels keep the contracted action hierarchy and tablet sheet geometry. */
html[data-theme="light"] body.review-redesign:has(.lanes-panel:not([hidden])):not(.settings-open):not(.r7-page-open) { --hx-bg:#eef1f4;background:#eef1f4; }
body.review-redesign:has(.lanes-panel:not([hidden])):not(.settings-open):not(.r7-page-open) #hallEquipment { display:none; }
html[data-theme] body.review-redesign[data-navigation]:not(.settings-open):not(.r7-page-open) .topbar #r7HeaderTitle { font-size:22px;font-weight:800; }
html[data-theme] body.review-redesign #hallScaleControls :is(#hallZoomIn,#hallZoomOut,#hallZoomAuto) { min-width:56px;height:56px;min-height:56px;border:1px solid var(--hx-line);border-radius:14px;background:var(--hx-raised);color:var(--hx-text);font-size:20px; }
html[data-theme] body.review-redesign #hallScaleControls #hallZoomAuto { font-size:14px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > [data-role="hall-panel-move"] { display:inline-flex;align-items:center;justify-content:center;gap:10px;padding-inline:16px; }
#visitWorkspace [data-role="hall-panel-move"] svg { width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
#visitWorkspace .hall-panel-next > span { font-size:14px;color:var(--hx-text-2); }
#visitWorkspace .hall-panel-banner.is-fault { background:color-mix(in srgb,var(--st-mech,#eb6276) 15%,var(--hx-panel)); }
#visitWorkspace .hall-panel-banner.is-fault > span { color:var(--st-mech,#eb6276); }
#visitWorkspace .hall-panel-transfer-hint { margin:0;font-size:14px;color:var(--hx-text-2); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-close { flex:0 0 56px;width:56px;min-width:56px;min-height:56px;height:56px;color:var(--hx-text); }
body.review-redesign .topbar #hallLegendHelp { width:56px;min-width:56px;height:56px;min-height:56px; }
@media(min-width:768px) and (max-width:1000px) {
  body.review-redesign[data-navigation]:has(#visitWorkspace.is-hall-sheet) { grid-template-columns:var(--hx-rail-w) minmax(0,1fr) 388px;height:100dvh;min-height:0;overflow:hidden; }
  body.review-redesign[data-navigation]:has(#visitWorkspace.is-hall-sheet) .lanes-panel { grid-column:2;grid-row:4;min-width:0;margin:8px; }
  body.review-redesign[data-navigation]:not(.r7-visit-focused) #visitWorkspace.hall-lane-panel.is-hall-sheet { display:flex;position:static;z-index:35;grid-column:3;grid-row:4;box-sizing:border-box;width:380px;height:auto;max-height:none;margin:8px 8px 8px 0;overflow:hidden; }
  body.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet > .r7-workspace-content { min-height:0;flex:1;overflow:auto; }
}

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > .hall-panel-technician { padding-inline:16px; }
/* Settings use compact status disclosure and filled form actions. */
body.settings-open .settings-page .sv-fact-status { display:flex;align-items:center;min-height:56px;margin:0;color:var(--sv-muted);font-size:14px; }
body.settings-open #modal textarea { border:0;box-shadow:none;background:var(--hx-raised);color:var(--hx-text);border-radius:12px;padding:12px;font:inherit; }
body.settings-open #modal button.primary, body.settings-open .settings-page .sv-card button.primary, body.settings-open .settings-page .sv-savebar button.primary { border:0;background:var(--hx-primary);color:var(--hx-on-primary); }
body.settings-open #modal button.primary:hover:not(:disabled) { background:var(--hx-primary-hover); }
body.settings-open #modal textarea:focus-visible { outline:0;box-shadow:inset 0 0 0 2px var(--hx-select)!important; }
body.settings-open #modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea)[aria-invalid="true"] { background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-raised));box-shadow:inset 0 0 0 2px var(--hx-st-fault); }

@media (max-width:600px) {
  #visitWorkspace .hall-workspace-status[data-state="fault"] .hall-workspace-status-label { white-space:normal;line-height:1.1; }
}

/* Settings section navigation. */
.settings-page .sv-submenu { padding:0 10px 10px; background:rgba(4,16,38,.38); border-right:1px solid rgba(96,140,210,.16); overflow:auto; }
.settings-page .sv-menu-title { height:72px; margin:0; padding:0 10px; display:flex; align-items:center; color:#eff1f6; font-size:21px; font-weight:750; letter-spacing:-.01em; }
.settings-page .sv-submenu h3 { height:24px; display:flex; align-items:flex-end; padding:0 12px 4px; margin:0; box-sizing:border-box; color:#97a0b4; font-size:11.5px; font-weight:700; letter-spacing:.08em; }
.settings-page .sv-menu-item { position:relative; display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:11px; height:56px; min-height:56px; padding:0 10px 0 12px; border:0; border-radius:12px; box-shadow:none; background:transparent; color:#b3bbcb; font-size:14.5px; font-weight:600; letter-spacing:-.005em; }
.settings-page .sv-menu-item:has(.sv-menu-status:empty) { grid-template-columns:22px minmax(0,1fr) auto; }
.settings-page .sv-menu-item[aria-current] { background:rgba(62,224,242,.14); color:#eff1f6; }
.settings-page .sv-menu-item[aria-current]::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:2px; background:#3ee0f2; }
.settings-page .sv-icon { width:22px; height:22px; background:none; color:#97a0b4; border-radius:0; }
.settings-page .sv-icon svg { width:22px; height:22px; }
.settings-page .sv-menu-item[aria-current] .sv-icon { color:#3ee0f2; }
.settings-page .sv-menu-item > span:not(.sv-icon) { white-space:nowrap; }
.settings-page .sv-menu-item .sv-menu-status { width:auto; max-width:72px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12.5px; color:#97a0b4; }
.settings-page .sv-menu-item .sv-menu-status.is-positive { color:#4fe08a; }
.settings-page .sv-menu-item .sv-menu-status.is-warning { color:#ffd27a; }
html[data-theme="light"] .settings-page .sv-submenu { background:#f8fafc; border-color:#d9dfe6; }
html[data-theme="light"] .settings-page .sv-menu-title { color:#17212b; }
html[data-theme="light"] .settings-page .sv-submenu h3,html[data-theme="light"] .settings-page .sv-icon { color:#5f6d85; }
html[data-theme="light"] .settings-page .sv-menu-item { color:#4f5b69; }
html[data-theme="light"] .settings-page .sv-menu-item:not([aria-current]):has(.sv-menu-status:empty) { color:#4f5b69; }
html[data-theme="light"] .settings-page .sv-menu-item[aria-current] { background:#e7f0ff; color:#17212b; }
html[data-theme="light"] .settings-page .sv-menu-item[aria-current]::before { background:#2f78d4; }
html[data-theme="light"] .settings-page .sv-menu-item[aria-current] .sv-icon { color:#2f78d4; }
html[data-theme="light"] .settings-page .sv-menu-item .sv-menu-status,html[data-theme="light"] .settings-page .sv-menu-item[aria-current] .sv-menu-status { color:#586579; }
html[data-theme="light"] .settings-page .sv-menu-item .sv-menu-status.is-positive,html[data-theme="light"] .settings-page .sv-menu-item[aria-current] .sv-menu-status.is-positive { color:#137747; }
html[data-theme="light"] .settings-page .sv-menu-item .sv-menu-status.is-warning,html[data-theme="light"] .settings-page .sv-menu-item[aria-current] .sv-menu-status.is-warning { color:#7a4f00; }
@media(min-width:768px) and (max-width:1179px) { .settings-page .sv-submenu { padding:0 10px 10px; } }

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-opening{display:flex;flex-direction:column;gap:8px;min-width:0}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-status{display:none}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-add{justify-content:flex-start;background:transparent;color:var(--hx-select);min-height:44px;min-width:44px;padding:0 8px;font-weight:700}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-line{display:flex;align-items:center;gap:8px;min-height:52px;border-bottom:1px solid var(--hx-line,var(--hx-line))}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-line>span{min-width:0;flex:1;overflow-wrap:anywhere}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-line>strong{white-space:nowrap}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-remove{min-height:44px;min-width:44px;width:44px;padding:0;display:grid;place-items:center;background:transparent}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-remove svg{width:18px;height:18px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-picker{padding:10px;border-radius:12px;background:var(--hx-panel);display:flex;flex-direction:column;gap:8px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-fields{display:flex;align-items:flex-end;gap:8px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-fields label{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;font-size:12px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-fields .sale-position-quantity{flex:0 0 86px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-fields input,html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-fields select{width:100%;min-width:0;height:44px;padding:0 8px;background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:8px;color:var(--hx-text);font:inherit;font-size:14px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-buttons{display:flex;justify-content:flex-end;gap:8px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-buttons button{min-width:44px;min-height:44px;padding:0 14px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-primary{background:var(--hx-select);color:var(--hx-bg)}

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-add{align-self:flex-start;width:auto;height:44px;border:0;box-shadow:none;border-radius:0;font-size:16px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-line,html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-line>strong{font-size:14px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-remove{width:44px;height:44px;border:0;box-shadow:none}

html[data-theme=light] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-add{color:var(--hx-cta,#0a7fa8)}html[data-theme=light] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-primary{background:var(--hx-cta,#0a7fa8);color:var(--hx-on-cta,#fff)}

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-refund>span{display:flex;flex-direction:column;gap:4px;min-width:0}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-refund small{font-size:12px;line-height:1.4;color:var(--hx-muted)}

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;min-width:0;padding:10px;border:1px solid var(--hx-line);border-radius:8px;background:var(--hx-panel);color:var(--hx-text);font:inherit;font-size:14px;text-align:start}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option>span{min-width:0;overflow-wrap:anywhere}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option>strong{white-space:nowrap;font-size:13px}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option[aria-pressed=true]{border-color:var(--hx-select);box-shadow:inset 0 0 0 1px var(--hx-select)}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-picker-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-counter{display:flex;flex-direction:column;gap:4px;font-size:13px}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-stepper{display:flex;align-items:center;gap:4px}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-step{min-width:44px;min-height:44px;width:44px;height:44px;padding:0;border:1px solid var(--hx-line);border-radius:8px;font-size:20px}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-stepper output{min-width:32px;text-align:center;font-size:16px;font-weight:700}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel [data-role=sale-position-subtotal]{font-size:16px;padding-block:12px;overflow-wrap:anywhere}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-return-line{color:var(--hx-text);font-size:14px;line-height:1.5;padding-block:8px;border-bottom:1px solid var(--hx-line)}

html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option{flex-wrap:wrap}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option>span{flex:1 1 90px}html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option>strong{white-space:normal;max-width:100%;overflow-wrap:anywhere}

body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-status[data-state="pay"]{height:auto;min-height:34px;padding-block:5px}body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-status[data-state="pay"] .hall-workspace-status-label{white-space:normal;line-height:1.2;overflow:visible;text-overflow:clip}

.ol-total .ol-total-n.money-unavailable { font-size: 14px; line-height: 1.35; letter-spacing: 0; text-shadow: none; }
@media (min-width: 700px) {
  .modal.open-lane-modal .wizard-bar .ol-sum { flex: 1; }
  .modal.open-lane-modal .ol-total { flex-wrap: wrap; }
}

/* Keep cashier actions outside the scrolling content at every viewport size. */
.modal.open-lane-modal { max-height:calc(100dvh - 24px); overflow:hidden; }
.modal.open-lane-modal .modal-head,.modal.open-lane-modal .wizard-bar { flex:0 0 auto; }
.modal.open-lane-modal .open-lane-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.modal.open-lane-modal .wizard-bar { padding:12px 16px; gap:12px; }
.modal.open-lane-modal .ol-mini { background:transparent; box-shadow:none; height:46px; }
.modal.open-lane-modal .ol-mini button { min-height:44px; height:44px; padding:0; box-shadow:none; }
.ol-money-reason { color:var(--hx-text-2); font-size:13px; line-height:1.35; }
.security-card.security-approval { display:flex; flex-direction:column; overflow:hidden; }
.security-approval>form { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.security-approval-content { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.security-approval-footer { flex:0 0 auto; padding-top:10px; background:var(--hx-panel); }
.security-approval-footer .security-buttons { margin:0; }
.security-approval-footer>p { margin:10px 0 0; text-align:center; color:var(--hx-text-2); font-size:12px; }
@media(max-width:699px) {
 .modal.open-lane-modal .wizard-bar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
 .modal.open-lane-modal .wizard-bar .ol-sum { grid-column:1 / -1; }
 .modal.open-lane-modal .ol-pay { margin:0; min-width:0; }
 .modal.open-lane-modal .ol-open { height:56px; min-height:56px; min-width:0; padding-inline:10px; font-size:16px; }
 .modal.open-lane-modal .ol-total .ol-total-n { font-size:28px; }
 .security-card.security-approval { max-height:calc(100dvh - var(--security-top,0px)); }
 .security-approval .security-action-value { font-size:20px; }
}

/* The pilot workspace is not the tablet hall's optional detail sheet. */
body.pilot-mode:not(.r7-visit-focused) #visitWorkspace:not([hidden]) { display:block; }
@media(max-width:767px) {
 body.pilot-mode #receptionWorkspace { display:flex; flex-direction:column; height:auto; overflow:visible; }
 body.pilot-mode #visitWorkspace.ws { width:100%; height:auto; max-height:none; margin:0; overflow:visible; }
}

.modal.open-lane-modal .screen-info-trigger { min-width:44px; min-height:44px; width:44px; height:44px; padding:10px; border:0; background:transparent; box-shadow:none; }
@media(max-width:699px) {
 .modal.open-lane-modal .ol-pay { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
 .modal.open-lane-modal .ol-pay button { min-width:0; width:100%; min-height:54px; height:auto; padding:6px 4px; font-size:13px; line-height:1.15; white-space:normal; }
}

/* Keep payment labels balanced and the action footer opaque over scrolling content. */
.modal.open-lane-modal .wizard-bar { position:relative; z-index:1; background:var(--panel-solid,#151322); }
.modal.open-lane-modal .ol-pay { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); flex:0 0 212px; width:212px; }
.modal.open-lane-modal .ol-pay button { min-width:0; padding:6px 8px; white-space:pre-line; line-height:1.2; }
@media(max-width:699px) {
 .modal.open-lane-modal .ol-pay { width:100%; }
 .modal.open-lane-modal .ol-pay button { font-size:13px; padding-inline:4px; }
}

body.review-redesign #visitWorkspace.screen-opening.r7-pinned-actions > .r7-workspace-content { padding-bottom:20px; }
body.review-redesign #visitWorkspace.screen-opening.r7-pinned-actions > .screen-opening-actions { position:relative;z-index:1;background:var(--hx-panel); }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-payment.is-clipped { opacity:0; }

/* Currency gating and the non-payment confirmation share the current surfaces. */
.sale-currency-required { padding:20px;display:flex;flex-direction:column;gap:16px; }
.sale-currency-required p { margin:0;font-weight:700;line-height:1.4; }
.sale-currency-actions { display:flex;flex-wrap:wrap;gap:12px; }
.sale-currency-actions button { min-height:48px;min-width:44px; }
body #modal .modal.zero-close-confirmation #modalClose { border:0;box-shadow:none;width:48px;height:48px;min-width:48px;min-height:48px; }
body #modal .modal.zero-close-confirmation #wizardBar { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
body #modal .modal.zero-close-confirmation #wizardBar button { border:0;box-shadow:none;min-width:0;width:100%;min-height:48px;padding:10px;font-size:16px; }
body #modal .modal.zero-close-confirmation #wizardBar button:not(.primary) { background:var(--hx-raised);color:var(--hx-text); }

.sale-currency-actions .sale-currency-test { border:0;box-shadow:none;border-radius:12px;background:var(--hx-raised);color:var(--hx-text);padding:12px 16px;font-size:16px;font-weight:700; }
.sale-currency-required [data-role="currency-test-reason"] { color:var(--hx-text-2);font-size:14px;line-height:1.4; }
body.screens-v1 .screen-bill-actions button.screen-discount { border:0;box-shadow:none; }

body.review-redesign #visitWorkspace .sale-currency-actions .sale-currency-test { width:100%;background:color-mix(in srgb,var(--hx-text) 12%,var(--hx-panel));color:var(--hx-text);opacity:1; }
body.review-redesign #visitWorkspace .sale-currency-actions .sale-currency-test:disabled { color:var(--hx-text-2);cursor:not-allowed; }

/* Fault tiles and their modal meaning share the same themed palette token. */
html[data-theme] body.review-redesign { --ht-mech:#ff6a52; }
html[data-theme="light"] body.review-redesign { --ht-mech:#ab3340; }
@media (min-width:768px) and (max-width:1000px) {
  html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity] .hall-tile-badges { top:-24px; }
}

/* Display settings inherit the approved settings surface. */
.settings-page[data-screen="screens"] .sv-content{display:flex;flex-direction:column;padding:0;overflow:hidden;min-height:0}
.settings-page[data-screen="screens"] .sv-title{padding:14px 20px;margin:0;border-bottom:1px solid var(--sv-line);flex:none}
.settings-page[data-screen="screens"] .sv-body{display:flex;flex:1;min-height:0;overflow:hidden}
body.settings-open .tv-settings{--tv-panel:rgba(12,28,56,.70);--tv-solid:#0c1c38;--tv-raised:rgba(150,190,255,.06);--tv-field:rgba(2,10,26,.50);--tv-line:rgba(96,140,210,.16);--tv-border:rgba(96,140,210,.30);--tv-edge:rgba(150,190,255,.16);--tv-ink:#eff1f6;--tv-secondary:#b3bbcb;--tv-muted:#97a0b4;--tv-accent:#3ee0f2;--tv-selection:rgba(62,224,242,.14);--tv-selected-ink:#7fecf7;--tv-error:#ff7d86;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;color:var(--tv-ink);font-variant-numeric:tabular-nums}
html[data-theme="light"] body.settings-open .tv-settings{--tv-panel:#fff;--tv-solid:#fff;--tv-raised:#f1f4f8;--tv-field:#f3f5f8;--tv-line:#d9dfe6;--tv-border:#b9c2cd;--tv-edge:#d4dae1;--tv-ink:#17212b;--tv-secondary:#4f5b69;--tv-muted:#5f6d85;--tv-accent:#2f78d4;--tv-selection:#e7f0ff;--tv-selected-ink:#1f5fb0;--tv-error:#bd3030}
body.settings-open .tv-settings .tv-scroll{flex:1;min-height:0;overflow:auto;padding:18px 20px 24px;overscroll-behavior:contain;scrollbar-color:var(--tv-border) transparent;scrollbar-width:thin}
body.settings-open .tv-settings .tv-page{max-width:970px;margin:0 auto;display:grid;gap:12px}
body.settings-open .tv-settings .tv-card{padding:16px 18px;border-radius:18px;background:var(--tv-panel);box-shadow:inset 0 0 0 1px var(--tv-edge)}
body.settings-open .tv-settings h3{font-size:16px;margin:0;font-weight:800;color:var(--tv-ink)}
body.settings-open .tv-settings .tv-title{display:flex;align-items:center;gap:4px;min-height:44px;margin:-8px 0 4px}
body.settings-open .tv-settings .tv-info{height:44px;width:44px;min-width:44px;border:0;background:transparent;color:var(--tv-secondary);display:grid;place-items:center;border-radius:10px;padding:0}
body.settings-open .tv-settings .tv-info svg{width:18px;height:18px}
body.settings-open .tv-settings .tv-help{background:var(--tv-raised);color:var(--tv-secondary);padding:12px;border-radius:10px;font-size:13px;line-height:1.45;margin:4px 0 10px;overflow-wrap:anywhere}
body.settings-open .tv-settings .tv-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:8px 0}
body.settings-open .tv-settings .tv-row+.tv-row{border-top:1px solid var(--tv-line)}
body.settings-open .tv-settings .tv-label{font-size:14px;font-weight:700;line-height:1.35;min-width:0;color:var(--tv-ink)}
body.settings-open .tv-settings .tv-label small{display:block;color:var(--tv-muted);font-weight:600;font-size:12px;margin-top:3px}
body.settings-open .tv-settings .tv-seg{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
body.settings-open .tv-settings .tv-seg button,body.settings-open .tv-settings .tv-action,body.settings-open .tv-settings .tv-duration,body.settings-open .tv-settings .tv-target select{min-height:48px;border:1px solid var(--tv-border);background:var(--tv-field);color:var(--tv-ink);border-radius:10px;padding:0 12px;font:inherit;font-size:14px;font-weight:700;touch-action:manipulation}
body.settings-open .tv-settings .tv-seg button[aria-pressed="true"]{background:var(--tv-selection);border-color:var(--tv-accent);color:var(--tv-selected-ink);box-shadow:inset 0 0 0 1px var(--tv-accent)}
body.settings-open .tv-settings .tv-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.settings-open .tv-settings .tv-media{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--tv-line);min-height:68px}
body.settings-open .tv-settings .tv-thumb{width:74px;height:48px;flex:none;border-radius:8px;background:var(--tv-raised);display:grid;place-items:center;color:var(--tv-muted);overflow:hidden}
body.settings-open .tv-settings .tv-thumb svg{width:22px;height:22px}
body.settings-open .tv-settings .tv-thumb img,body.settings-open .tv-settings .tv-thumb video{width:100%;height:100%;object-fit:cover;border-radius:8px}
body.settings-open .tv-settings .tv-name{flex:1;min-width:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}
body.settings-open .tv-settings .tv-name small{display:block;color:var(--tv-muted);font-size:12px;font-weight:600}
body.settings-open .tv-settings .tv-duration{width:76px;text-align:right;caret-color:var(--tv-accent)}
body.settings-open .tv-settings .tv-duration[aria-invalid="true"]{border-color:var(--tv-error)}
body.settings-open .tv-settings .tv-media .tv-action{min-width:48px;display:grid;place-items:center}
body.settings-open .tv-settings .tv-media .tv-action svg{width:18px;height:18px}
body.settings-open .tv-settings .tv-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
body.settings-open .tv-settings .tv-upload{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 14px;cursor:pointer;position:relative}
body.settings-open .tv-settings .tv-upload:has(input:disabled){opacity:.5;cursor:default}
body.settings-open .tv-settings .tv-fields{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
body.settings-open .tv-settings .tv-msg{font-size:13px;color:var(--tv-secondary);line-height:1.4;overflow-wrap:anywhere}
body.settings-open .tv-settings .tv-error{color:var(--tv-error);font-size:13px;overflow-wrap:anywhere;margin:4px 0}
body.settings-open .tv-settings .tv-empty{color:var(--tv-muted);padding:16px 0;font-size:13px}
body.settings-open .tv-settings .tv-label-info{display:flex;align-items:center;gap:2px}
body.settings-open .tv-settings .tv-sub{margin:0 0 6px 14px;padding-left:16px;border-left:1px solid var(--tv-border)}
body.settings-open .tv-settings .tv-sub .tv-row{min-height:60px}
body.settings-open .tv-settings .tv-sub .tv-row+.tv-row,body.settings-open .tv-settings .tv-row+.tv-sub .tv-row:first-child{border-top:1px solid var(--tv-line)}
body.settings-open .tv-settings .tv-sub .tv-label{font-weight:600}
body.settings-open .tv-settings .tv-minutes{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.settings-open .tv-settings .tv-target{padding:8px 20px;border-bottom:1px solid var(--tv-line);flex:none;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--tv-panel)}
body.settings-open .tv-settings .tv-target label{display:flex;align-items:center;gap:10px;color:var(--tv-secondary);font-size:13px}
body.settings-open .tv-settings .tv-actions{flex:none;min-height:80px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 20px;border-top:1px solid var(--tv-line);background:var(--tv-solid);flex-wrap:wrap}
body.settings-open .tv-settings .tv-save-state{margin-right:auto;min-width:0;color:var(--tv-secondary);font-size:13px;font-weight:700}
body.settings-open .tv-settings .tv-primary{background:#157a45;color:#fff;border-color:#157a45}
body.settings-open .tv-settings button:disabled{opacity:.5;cursor:default}
body.settings-open .tv-settings button:focus-visible,body.settings-open .tv-settings input:focus-visible,body.settings-open .tv-settings select:focus-visible,body.settings-open .tv-settings .tv-upload:focus-within{outline:2px solid var(--tv-accent);outline-offset:2px}
@media(max-width:600px){
 .settings-page[data-screen="screens"] .sv-title{padding:10px 12px}
 body.settings-open .tv-settings .tv-scroll{padding:12px 12px 24px}
 body.settings-open .tv-settings .tv-card{padding:12px 14px}
 body.settings-open .tv-settings .tv-row{align-items:flex-start;flex-direction:column;gap:8px;padding:12px 0}
 body.settings-open .tv-settings .tv-seg{justify-content:flex-start}
 body.settings-open .tv-settings .tv-seg button{flex:1;min-width:65px;padding:0 9px}
 body.settings-open .tv-settings .tv-row>.tv-seg{width:100%}
 body.settings-open .tv-settings .tv-media{flex-wrap:wrap}
 body.settings-open .tv-settings .tv-name{min-width:calc(100% - 90px)}
 body.settings-open .tv-settings .tv-fields{width:100%}
 body.settings-open .tv-settings .tv-sub{margin-left:4px;padding-left:12px}
 body.settings-open .tv-settings .tv-label-info{width:100%;justify-content:space-between}
 body.settings-open .tv-settings .tv-target{padding:8px 12px}
 body.settings-open .tv-settings .tv-actions{padding:8px 12px;gap:6px}
 body.settings-open .tv-settings .tv-actions .tv-action{padding:0 10px}
 body.settings-open .tv-settings .tv-actions [data-tv-all]{flex-basis:100%}
 body.settings-open .tv-settings .tv-save-state{max-width:110px;overflow-wrap:anywhere;font-size:12px}
}

.settings-page[data-screen="screens"] [data-settings-screen="screens"] > span:nth-child(2){white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
body.settings-open .tv-settings .tv-target select{min-width:100px}

.settings-page[data-screen="screens"]{height:var(--tv-area-height,calc(100dvh - 72px));max-height:var(--tv-area-height,calc(100dvh - 72px));min-height:0;overflow:hidden}
.settings-page[data-screen="screens"] .sv-title>div{display:none}
@media(min-width:1180px){.settings-page[data-screen="screens"] .sv-title{display:none}}

body.settings-open .settings-page[data-screen="screens"]{overflow:clip}
@media(max-width:600px){
 body.settings-open .tv-settings .tv-actions [data-tv-all]{order:0}
 body.settings-open .tv-settings .tv-save-state{order:1;max-width:none;flex:1}
 body.settings-open .tv-settings .tv-actions [data-tv-reset]{order:2}
 body.settings-open .tv-settings .tv-actions [data-tv-save]{order:3}
}

body.settings-open .tv-settings .tv-info{min-height:44px;box-shadow:none}
body.settings-open .tv-settings .tv-seg button:not([aria-pressed="true"]){box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings :is(.tv-seg button,.tv-action,.tv-duration,.tv-target select){min-height:48px;border:1px solid var(--tv-border);background:var(--tv-field);color:var(--tv-ink);border-radius:10px;padding:0 12px;font-size:14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg button[aria-pressed="true"]{background:var(--tv-selection);border-color:var(--tv-accent);color:var(--tv-selected-ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-primary{background:#157a45;color:#fff;border-color:#157a45}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-duration[aria-invalid="true"]{border-color:var(--tv-error)}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-info{min-height:44px;height:44px;min-width:44px;width:44px;box-shadow:none;background:transparent;border:0;padding:0}

/* One display-settings column, including the header and action bar. */
#r7Page.settings-page[data-screen="screens"] .sv-title{display:none}
body.settings-open .tv-settings{--tv-warning:#ffd482}
html[data-theme="light"] body.settings-open .tv-settings{--tv-warning:#7a4f00}
body.settings-open .tv-settings .tv-page{margin:0}
body.settings-open .tv-settings .tv-target-inner{display:flex;align-items:center;gap:16px;width:100%;max-width:970px;min-width:0}
body.settings-open .tv-settings .tv-section-wrap{display:none;min-width:0;flex:1}
body.settings-open .tv-settings .tv-select-wrap{position:relative;display:inline-flex;min-width:0}
body.settings-open .tv-settings .tv-select-chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none;display:flex;color:var(--tv-secondary)}
body.settings-open .tv-settings .tv-select-chevron svg{width:18px;height:18px}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-target select{appearance:none;min-width:76px;padding-right:34px}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-section-select{appearance:none;min-height:48px;width:100%;max-width:100%;border:1px solid var(--tv-border);border-radius:10px;padding:0 32px 0 12px;background:var(--tv-field);color:var(--tv-ink);font:inherit;font-size:14px;box-shadow:none}
body.settings-open .tv-settings .tv-media-delivery{display:flex;align-items:center;gap:6px;color:var(--tv-warning);font-size:12px;font-weight:600;line-height:1.4}
body.settings-open .tv-settings .tv-media-delivery[hidden]{display:none}
body.settings-open .tv-settings .tv-warning-icon,body.settings-open .tv-settings .tv-status-icon{display:inline-flex;flex:none}
body.settings-open .tv-settings .tv-warning-icon svg,body.settings-open .tv-settings .tv-status-icon svg{width:18px;height:18px}
body.settings-open .tv-settings .tv-media-delivery .tv-info{color:inherit}
body.settings-open .tv-settings .tv-logo{flex-wrap:nowrap;gap:12px;min-width:0}
body.settings-open .tv-settings .tv-logo-name{min-width:0;max-width:260px;font-size:13px;color:var(--tv-secondary);overflow-wrap:anywhere}
body.settings-open .tv-settings .tv-actions{display:block;position:relative;padding:0;min-height:0}
body.settings-open .tv-settings .tv-actions-inner{display:flex;align-items:center;gap:8px;max-width:970px;width:calc(100% - 40px);margin:0 20px;padding:10px 0}
body.settings-open .tv-settings .tv-save-state{display:flex;align-items:center;gap:6px;line-height:1.35;margin-right:auto;min-width:0}
body.settings-open .tv-settings .tv-save-state[data-tone="warning"]{color:var(--tv-warning)}
body.settings-open .tv-settings .tv-save-state .tv-info{color:inherit;flex:none}
body.settings-open .tv-settings .tv-status-full{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.settings-open .tv-settings .tv-apply-short{display:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings [data-tv-all]{background:transparent;border-color:transparent;box-shadow:none;color:var(--tv-secondary);font-size:13px;padding:0 4px;margin-inline-end:24px;text-align:start}
body.settings-open .tv-settings .tv-actions>.tv-help{position:absolute;z-index:3;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);display:block;max-width:970px;width:calc(100% - 40px);max-height:min(240px,calc(100dvh - 260px));overflow:auto;margin:0;background:var(--tv-solid);border:1px solid var(--tv-border);box-shadow:0 12px 28px rgba(0,0,0,.18)}
body.settings-open .tv-settings .tv-save-first{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.settings-open .tv-settings .tv-save-first[hidden]{display:none}
@media(max-width:1179px){
 body.settings-open .tv-settings .tv-target-inner{gap:12px}
 body.settings-open .tv-settings .tv-section-wrap{display:block}
 body.settings-open .tv-settings .tv-section-wrap>.tv-select-wrap{width:100%}
}
@media(max-width:600px){
 body.settings-open .tv-settings .tv-target label{gap:6px;font-size:12px;flex:none}
 body.settings-open .tv-settings .tv-target-inner{gap:8px}
 body.settings-open .tv-settings .tv-actions-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 6px;width:calc(100% - 24px);margin:0 12px;padding:8px 0}
 body.settings-open .tv-settings .tv-save-state{grid-column:1/-1;grid-row:1;max-width:100%;width:100%;min-height:44px;order:0}
 body.settings-open .tv-settings .tv-status-full{display:block;flex:1}
 body.settings-open .tv-settings .tv-apply-full{display:none}
 body.settings-open .tv-settings .tv-apply-short{display:inline}
 body.settings-open .tv-settings .tv-actions [data-tv-reset]{grid-column:2;grid-row:2;order:0}
 body.settings-open .tv-settings .tv-actions [data-tv-save]{grid-column:3;grid-row:2;order:0}
 #r7Page.settings-page[data-screen="screens"] .tv-settings [data-tv-all]{grid-column:1;grid-row:2;justify-self:start;order:0;flex-basis:auto;margin:0;padding:0 8px;min-height:48px}
 body.settings-open .tv-settings .tv-actions>.tv-help{width:calc(100% - 24px)}
 body.settings-open .tv-settings .tv-logo{width:100%;flex-wrap:wrap}
 body.settings-open .tv-settings .tv-logo-name{flex:1;max-width:none}
 body.settings-open .tv-settings .tv-logo .tv-upload{flex:none}
}

#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-section-select{height:48px}
#r7Page.settings-page[data-screen="screens"] .tv-settings [hidden]{display:none!important}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-actions-inner button[data-tv-all]{background:transparent;border-color:transparent;box-shadow:none;color:var(--tv-secondary);font-size:13px}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-actions-inner button.tv-primary{background:#157a45;color:#fff;border-color:#157a45}

body.settings-open .tv-settings [data-tv-logo] .tv-thumb img{object-fit:contain}
@media(max-width:600px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-actions-inner .tv-action{padding-inline:8px;font-size:13px}
 body.settings-open .tv-settings .tv-save-state{gap:4px}
}

/* The bulk confirmation uses the shared dialog lifecycle and its own compact surface. */
body.review-redesign #modal:has(.tv-bulk-confirmation){z-index:70;align-items:center;padding:16px;background:rgba(4,10,20,.58);backdrop-filter:none;-webkit-backdrop-filter:none}
body.review-redesign #modal .modal.tv-bulk-confirmation{width:min(520px,100%);min-width:0;height:auto;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;margin:0;border:1px solid var(--hx-line);border-radius:16px;background:var(--hx-panel);color:var(--hx-text);overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.24)}
body.review-redesign #modal .tv-bulk-confirmation .modal-head{display:flex;align-items:center;gap:12px;flex:none;min-width:0;min-height:0;padding:16px;background:var(--hx-panel);color:var(--hx-text);border-bottom:1px solid var(--hx-line)}
body.review-redesign #modal .tv-bulk-confirmation #modalTitle{min-width:0;flex:1;margin:0;font-size:20px;line-height:1.3;font-weight:750;white-space:normal;overflow-wrap:anywhere;text-align:start}
body.review-redesign #modal .tv-bulk-confirmation #modalClose{flex:none;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;font-size:24px;border-radius:10px;background:var(--hx-raised);color:var(--hx-text)}
body.review-redesign #modal .tv-bulk-confirmation #modalBody{flex:1;display:block;min-width:0;min-height:0;width:auto;max-width:100%;margin:0;padding:16px;overflow:auto;background:var(--hx-panel);color:var(--hx-text);font-size:16px;line-height:1.5}
body.review-redesign #modal .tv-bulk-confirmation #modalBody p{max-width:100%;margin:0;white-space:normal;overflow-wrap:anywhere;font-size:16px;line-height:1.5}
body.review-redesign #modal .tv-bulk-confirmation #wizardBar{flex:none;display:flex;flex-wrap:wrap;gap:8px;min-height:0;padding:16px;background:var(--hx-panel);border-top:1px solid var(--hx-line)}
body.review-redesign #modal .tv-bulk-confirmation #wizardBar button{flex:1;min-width:0;min-height:48px;height:auto;padding:12px;font-size:14px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;border-radius:10px}
@media(max-width:767px){
 body.review-redesign #modal:has(.tv-bulk-confirmation){align-items:flex-end;padding:12px 12px calc(84px + env(safe-area-inset-bottom,0px))}
 body.review-redesign #modal .modal.tv-bulk-confirmation{width:100%;max-height:calc(100dvh - 96px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
 body.review-redesign #modal .tv-bulk-confirmation #wizardBar .primary{flex:2}
}

/* One centered axis for display settings, target and fixed actions. */
@media(min-width:1180px){
 body.settings-open .tv-settings .tv-page{margin-inline:auto}
 body.settings-open .tv-settings .tv-target-inner{margin-inline:auto}
 body.settings-open .tv-settings .tv-actions-inner{margin-inline:auto}
}
body.settings-open .tv-settings .tv-playlist-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:8px 0}
body.settings-open .tv-settings .tv-playlist-heading .tv-label-info{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;align-items:center}
body.settings-open .tv-settings .tv-file-heading{display:flex;align-items:flex-start;gap:4px;min-width:0}
body.settings-open .tv-settings .tv-file-heading>.tv-info{flex:none}
body.settings-open .tv-settings [data-tv-media-name],body.settings-open .tv-settings .tv-logo-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-width:0;max-height:40px;line-height:20px;overflow:hidden;overflow-wrap:anywhere}
body.settings-open .tv-settings .tv-file-heading>[data-tv-media-name],body.settings-open .tv-settings .tv-file-heading>.tv-logo-name{flex:1}
body.settings-open .tv-settings .tv-logo-caption{flex:1;min-width:0;max-width:360px}
body.settings-open .tv-settings .tv-media-delivery{flex-wrap:wrap}

/* Display controls use tonal fills; outlines remain reserved for keyboard focus. */
#r7Page.settings-page[data-screen="screens"] .tv-settings :is(.tv-seg button,.tv-action,.tv-duration,.tv-target select,.tv-section-select) { border:0; box-shadow:none; }
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg button[aria-pressed="true"] { border:0; background:var(--tv-selection); color:var(--tv-selected-ink); }
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-actions-inner button[data-tv-all] { background:var(--tv-field); color:var(--tv-ink); border:0; min-height:48px; margin-inline-end:0; padding-inline:12px; }
.tv-settings .tv-status-action { min-height:44px; min-width:44px; flex:none; border:0; padding:6px 8px; border-radius:8px; color:var(--tv-selected-ink); background:var(--tv-selection); font:inherit; font-size:12px; }
.tv-settings .tv-status-action[hidden] { display:none; }
body.settings-open .tv-settings .tv-status-full { white-space:normal; }
body.settings-open .tv-settings .tv-help { z-index:80; box-sizing:border-box; max-height:min(260px,calc(100dvh - 24px)); overflow:auto; padding:12px; background:var(--tv-solid); color:var(--tv-ink); border-radius:10px; box-shadow:0 8px 26px rgba(0,0,0,.2); }
body.settings-open .tv-settings .tv-actions>.tv-help { width:max-content; max-width:min(360px,calc(100vw - 24px)); }
body.settings-open .tv-settings .tv-media-delivery { display:inline-flex; }
body.review-redesign #modal .tv-bulk-confirmation #modalBody:empty { display:none; }
body.review-redesign #modal .tv-bulk-confirmation #wizardBar button:not(.primary) { border:0; background:var(--hx-raised); }
@media(max-width:600px) {
 .tv-settings .tv-seg:has([data-tv-field="theme"]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
 #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg:has([data-tv-field="theme"]) button { min-width:0; padding-inline:8px; }
}

#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-status-action { min-height:44px; height:44px; padding:6px 8px; border:0; border-radius:8px; font-size:12px; line-height:1.2; background:var(--tv-selection); color:var(--tv-selected-ink); }
@media(max-width:600px) {
 #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg:has([data-tv-field="theme"]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
}

body.review-redesign #modal .tv-bulk-confirmation #modalClose { display:none; }

html[data-theme] body.review-redesign #modal .modal.tv-bulk-confirmation #wizardBar button:not(.primary) { border:0;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text);box-shadow:none; }
body.review-redesign #modal .modal.tv-bulk-confirmation #wizardBar button { height:48px;min-height:48px;padding:8px 12px;line-height:1.2;white-space:nowrap; }
@media(max-width:767px) {
 body.review-redesign #modal .modal.tv-bulk-confirmation #wizardBar .primary { flex:1; }
}
#r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg:has([data-tv-field="layout"]) button { white-space:nowrap; }
@media(max-width:600px) {
 #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg:has([data-tv-field="layout"]) { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%; }
 #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-seg:has([data-tv-field="layout"]) button { min-width:0;padding-inline:6px; }
}


/* Preserve input modality across repainting, without animating focus rings. */
body.settings-open .tv-settings .tv-info,
body.settings-open #modal .tv-bulk-confirmation button { outline:0!important;box-shadow:none!important;transition-property:background-color,color,transform; }
body.settings-open .tv-settings .tv-info:focus-visible,
body.settings-open #modal .tv-bulk-confirmation button:focus-visible { outline:3px solid var(--hx-select)!important;outline-offset:2px; }
body.settings-open .tv-settings[data-focus-input="pointer"] .tv-info:focus,
body.settings-open:has(.tv-settings[data-focus-input="pointer"]) #modal .tv-bulk-confirmation button:focus { outline:0!important; }

/* A modal owns the foreground; its underlying action bar stays out of view. */
body.settings-open:has(#modal:not([hidden]) .tv-bulk-confirmation) .tv-settings .tv-actions { opacity:0;pointer-events:none; }
html[data-theme="light"] body.settings-open #r7Page.settings-page[data-screen="screens"] .tv-settings .tv-actions-inner button:disabled { background:var(--tv-field);color:var(--tv-ink);opacity:.5;box-shadow:none;cursor:not-allowed; }

/* Screens and branding settings. */
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2{--page:radial-gradient(70% 55% at 12% 0%,rgba(22,74,140,.55) 0%,transparent 70%),radial-gradient(60% 50% at 95% 8%,rgba(18,96,150,.32) 0%,transparent 70%),radial-gradient(80% 60% at 60% 105%,rgba(40,30,110,.30) 0%,transparent 70%),#04142c;
  --page-solid:#06162f;
  --rail:rgba(4,18,42,.62); --rail-on:#043c64; --rail-ink:#acb4c4;
  --nav:rgba(4,16,38,.38);
  --panel:rgba(12,28,56,.70); --panel-solid:#0c1c38; --pop:#0f2244;
  --raised:rgba(150,190,255,.06); --raised-2:rgba(150,190,255,.11);
  --field:rgba(2,10,26,.50);
  --line:rgba(96,140,210,.16); --line-2:rgba(96,140,210,.30); --edge:rgba(150,190,255,.16);
  --ink:#eff1f6; --ink-2:#b3bbcb; --ink-3:#97a0b4;
  --accent:#3ee0f2; --accent-soft:rgba(62,224,242,.14); --accent-ink:#04142c; --accent-text:#7fecf7;
  --primary:#279a5c; --primary-ink:#fff;
  --warn:#ffc24d; --warn-soft:rgba(255,194,77,.13); --warn-text:#ffd27a;
  --danger:#ff7d86; --danger-soft:rgba(255,100,112,.14);
  --red:#ff5a78; --red-soft:rgba(255,90,120,.14); --red-text:#ff8aa0;
  --ok:#4fe08a; --ok-soft:rgba(79,224,138,.13);
  --st-nl:#aab3c5;
  --sw-on:rgba(62,224,242,.34);
  --note:#173562;
  color:var(--ink);}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2{--page:#eef1f4; --page-solid:#eef1f4;
  --rail:#04142c; --rail-on:#0d4a7a; --rail-ink:#c3cbd8;
  --nav:#f8fafc;
  --panel:#ffffff; --panel-solid:#ffffff; --pop:#ffffff;
  --raised:#f1f4f8; --raised-2:#e6ebf1;
  --field:#f3f5f8;
  --line:#d9dfe6; --line-2:#b9c2cd; --edge:#d4dae1;
  --ink:#17212b; --ink-2:#4f5b69; --ink-3:#5f6d85;
  --accent:#2f78d4; --accent-soft:#e7f0ff; --accent-ink:#fff; --accent-text:#1f5fb0;
  --primary:#157a45; --primary-ink:#fff;
  --warn:#b07400; --warn-soft:#fff2d4; --warn-text:#7a4f00;
  --danger:#bd3030; --danger-soft:#fde8e8;
  --red:#c8243f; --red-soft:#fde6ea; --red-text:#b01f38;
  --ok:#137747; --ok-soft:#e2f4ea;
  --st-nl:#5d6a80;
  --sw-on:rgba(47,120,212,.30);
  --note:#ffffff;}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2{display:flex;flex-direction:column;min-width:0;min-height:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;font-variant-numeric:tabular-nums slashed-zero;color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 *{box-sizing:border-box}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 button:disabled{cursor:default}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 svg.i{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 svg.s{width:18px;height:18px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 svg.xs{width:15px;height:15px;stroke-width:2.2}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib .dot{width:36px;height:36px;border-radius:50%;display:grid;place-items:center}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.open .dot{background:var(--raised-2);color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.alert{color:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.alert.open .dot{background:var(--red-soft);color:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status{height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border-radius:18px;font-size:14px;font-weight:650;white-space:nowrap;flex:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status.warn{background:var(--warn-soft);color:var(--warn-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status.ok{background:var(--ok-soft);color:var(--ok)}
/* Nothing configured yet (0/0) is a fact, not a warning. */
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status.neutral{background:var(--hx-raised);color:var(--hx-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status.bad{background:var(--red-soft);color:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.warn{color:var(--warn-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.warn.open .dot,#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.warn[aria-expanded="true"] .dot{background:var(--warn-soft);color:var(--warn-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs{height:56px;flex:none;display:flex;align-items:center;gap:2px;border-bottom:1px solid var(--line);padding:0 12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs a{height:56px;display:flex;align-items:center;gap:7px;padding:0 15px;font-size:16px;font-weight:650;color:var(--ink-3);position:relative;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs a.on{color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs a.on::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs a .d{width:7px;height:7px;border-radius:50%;background:var(--warn)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs .scope{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ink-3);padding:0 6px 0 0;background:transparent;border:0;border-radius:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn{height:56px;padding:0 22px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:700;white-space:nowrap;flex:none;background:var(--raised-2);color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.pri{background:var(--primary);color:var(--primary-ink);box-shadow:0 10px 24px -14px rgba(0,0,0,.7)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.dng{background:transparent;color:var(--danger);padding:0 14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.txt{background:transparent;color:var(--accent-text);padding:0 12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.acs{background:var(--accent-soft);color:var(--accent-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn:disabled{opacity:.38;box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.pri:disabled{opacity:1;background:var(--raised-2);color:var(--ink-3);box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .btn.dng:disabled{opacity:1;color:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .content{flex:1;min-height:0;display:flex;gap:16px;padding:14px 16px 0;overflow:hidden}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pnl{background:var(--panel);border:1px solid var(--edge);border-radius:18px;box-shadow:inset 0 1px 0 rgba(200,225,255,.06)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pnl{box-shadow:0 1px 2px rgba(20,35,52,.05)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar{height:80px;flex:none;display:flex;align-items:center;gap:10px;padding:0 16px 0 20px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--panel-solid) 72%,transparent);backdrop-filter:blur(14px)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--raised-2);color:var(--ink-2)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st .ic.w{background:var(--warn-soft);color:var(--warn)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st .ic.ok{background:var(--ok-soft);color:var(--ok)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st b{display:block;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st small{display:block;font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .gap{width:6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes{width:320px;flex:none;align-self:flex-start;padding:4px 12px 12px;display:flex;flex-direction:column}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes .hd{height:52px;display:flex;align-items:center;gap:6px;padding-left:4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes h2{margin:0;font-size:17px;font-weight:760;flex:1;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes h2 small{font-size:14px;font-weight:650;color:var(--ink-3);margin-left:6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt{--c:var(--ok);position:relative;height:112px;border-radius:14px;padding:10px 12px 11px;display:flex;flex-direction:column;align-items:stretch;text-align:left;isolation:isolate;
  background:radial-gradient(130% 95% at 12% -10%,color-mix(in srgb,var(--c) 10%,transparent) 0%,transparent 60%),color-mix(in srgb,var(--c) 5%,var(--raised));
  box-shadow:inset 0 1px 0 rgba(200,225,255,.06)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt{box-shadow:0 1px 2px rgba(20,35,52,.08)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .no{font-size:50px;font-weight:800;line-height:.86;letter-spacing:-.04em;color:var(--ink);align-self:flex-end}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.ev .no{align-self:flex-start}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .stx{margin-top:auto;display:flex;align-items:flex-start;gap:6px;font-size:13px;font-weight:750;color:var(--c);line-height:1.15}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .stx svg{margin-top:-1px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-ok{--c:var(--ok)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-unc{--c:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-unc .stx{color:var(--red-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-off{--c:var(--st-nl)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-off .stx{color:var(--ink-2)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-off::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;background:repeating-linear-gradient(135deg,transparent 0 9px,color-mix(in srgb,var(--st-nl) 9%,transparent) 9px 18px)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .ck{position:absolute;top:9px;left:9px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.ev .ck{left:auto;right:9px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .ck svg{stroke-width:2.8}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .df{position:absolute;right:7px;bottom:7px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--warn);color:#2b1c00}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .df{color:#fff}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .df svg{width:13px;height:13px;stroke-width:2.4}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.sel{background:color-mix(in srgb,var(--accent) 24%,var(--panel-solid))}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.sel{background:color-mix(in srgb,var(--accent) 14%,#fff)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.sel .no{color:var(--accent-text)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.sel .no{color:var(--accent-text)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .shd{height:48px;flex:none;display:flex;align-items:center;gap:2px;padding-left:4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .shd h2{margin:0;font-size:20px;font-weight:760;letter-spacing:-.01em;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .scroll{flex:1;min-height:0;overflow:auto;padding-bottom:12px;display:flex;flex-direction:column;gap:12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .note{position:relative;margin:10px 0 0 4px;flex:none;padding:12px 12px 12px 16px;border-radius:14px;background:var(--note);display:flex;align-items:center;gap:14px;box-shadow:0 14px 34px -18px rgba(0,0,0,.7)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .note{box-shadow:0 10px 26px -14px rgba(20,35,52,.35)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .note::before{content:"";position:absolute;top:-8px;left:calc(var(--ax,120px) - 2px);width:18px;height:18px;background:var(--note);transform:rotate(45deg);border-radius:3px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .note p{margin:0;flex:1;font-size:14.5px;line-height:1.35;color:var(--ink-2)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .note p b{color:var(--ink);font-weight:720}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols .col{display:flex;flex-direction:column;gap:12px;min-width:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols .seg.wide{width:auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols .seg.fit button{flex:1 1 auto;padding:0 5px;font-size:14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card{padding:2px 14px 10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card .ch{height:44px;display:flex;align-items:center;gap:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card .ch h3{margin:0;font-size:16px;font-weight:760;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card .ch .sp{flex:1}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card .ch .ib{margin:0 -10px 0 -6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row{min-height:56px;display:flex;align-items:center;gap:10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .lb{flex:1;min-width:0;font-size:15px;font-weight:650;line-height:1.2}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .lb small{display:block;font-size:12.5px;font-weight:600;color:var(--ink-3);margin-top:2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row.inl .seg{flex:0 0 auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stk{padding:2px 0 6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stk .lbr{height:28px;display:flex;align-items:center;gap:8px;font-size:15px;font-weight:650}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stk .lbr .mx{margin-left:auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sub{background:var(--raised);border-radius:12px;padding:0 0 0 14px;margin:0 0 4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dis{opacity:.4}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ro .set .seg,#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ro .set .swb,#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ro .set .stp{opacity:.42}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .mx{height:24px;padding:0 9px;border-radius:12px;background:var(--raised-2);color:var(--ink-2);font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .swb{width:72px;height:56px;display:grid;place-items:center;flex:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw{width:64px;height:40px;border-radius:20px;background:var(--raised-2);position:relative;display:inline-block}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw i{position:absolute;top:5px;left:5px;width:30px;height:30px;border-radius:50%;background:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.on{background:var(--sw-on)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.on i{left:29px;background:var(--accent)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw i{background:#fff;box-shadow:0 1px 3px rgba(20,35,52,.3)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.on i{background:var(--accent)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.mix i{left:17px;top:17px;width:30px;height:6px;border-radius:3px;background:var(--ink-2);box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg{height:52px;border-radius:14px;background:var(--field);display:flex;padding:4px;gap:4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button{flex:1;min-width:0;min-height:44px;height:auto;border-radius:10px;font-size:14.5px;font-weight:700;color:var(--ink-2);white-space:nowrap;padding:0 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.1}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button.on{background:var(--accent);color:var(--accent-ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button .ln{display:flex;gap:4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button .ln i{font-style:normal;height:22px;border-radius:11px;background:var(--accent-soft);color:var(--accent-text);font-size:13px;font-weight:750;line-height:22px;padding:0 8px;white-space:nowrap}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button .ln i{background:color-mix(in srgb,var(--accent) 16%,#fff)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg.mixed{height:auto;min-height:52px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols .seg.mixed button{gap:3px;flex:1 1 0;min-width:0;padding:4px 1px;font-size:13px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg.mixed button .ln{flex-direction:column;gap:2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg.wide{width:440px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stp{display:flex;align-items:center;gap:4px;padding:4px;border-radius:14px;background:var(--field);flex:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stp button{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:10px;background:var(--raised-2);display:grid;place-items:center;color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stp .v{min-width:46px;text-align:center;font-size:17px;font-weight:750;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stp .v small{font-size:12.5px;font-weight:650;color:var(--ink-3);margin-left:3px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .media{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start;overflow:hidden;padding-bottom:12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .plist{display:flex;flex-direction:column;gap:6px;padding-bottom:4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi{display:grid;grid-template-columns:44px 104px minmax(0,1fr) auto 56px;align-items:center;gap:10px;min-height:76px;padding:0 0 0 2px;border-radius:14px;background:var(--raised)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .grip{width:44px;height:56px;display:grid;place-items:center;color:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi button.grip{padding:0;border:0;background:none;font:inherit;touch-action:none;cursor:grab}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi.is-moving{opacity:.72}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .th{width:104px;height:58px;border-radius:9px;position:relative;overflow:hidden;display:grid;place-items:center}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tx{display:block;min-width:0;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tx b{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tx small{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--ink-3);margin-top:3px;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .rm{width:56px;height:56px;display:grid;place-items:center;color:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .dur{font-size:15px;font-weight:700;color:var(--ink-2);padding-right:16px;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi.ro{grid-template-columns:104px minmax(0,1fr) auto;padding-left:8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .th .play{width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center;color:#fff}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .th .play svg{fill:#fff;stroke:none;width:12px;height:12px;margin-left:2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .th.ph{background:var(--raised-2);color:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t1{background:radial-gradient(60% 80% at 75% 40%,#ff9f3a 0,#c2410c 35%,transparent 70%),linear-gradient(135deg,#2a0f3d,#120a24)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t2{background:linear-gradient(160deg,#0b3b7a,#06223f);}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t2::after{content:"";position:absolute;left:14px;right:14px;top:14px;bottom:12px;background:repeating-linear-gradient(#ffffff38 0 3px,transparent 3px 10px)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t3{background:radial-gradient(70% 90% at 20% 20%,#c88a4a 0,#6b3a18 50%,#2b160a 100%)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t3::after{content:"";position:absolute;right:12px;top:12px;width:42px;bottom:12px;background:repeating-linear-gradient(#ffffff55 0 3px,transparent 3px 9px)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .t4{background:radial-gradient(circle at 20% 30%,#ff6fae 0 5px,transparent 6px),radial-gradient(circle at 70% 25%,#3ee0f2 0 4px,transparent 5px),radial-gradient(circle at 50% 70%,#ffc24d 0 5px,transparent 6px),radial-gradient(circle at 85% 75%,#a58bff 0 4px,transparent 5px),linear-gradient(135deg,#3a1450,#0d2a52)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv{margin:2px 0 12px;aspect-ratio:16/9;border-radius:12px;background:#020a1a;display:grid;place-items:center;position:relative;overflow:hidden}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv{background:#0b1730}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv.ph{background:var(--raised-2);color:var(--ink-3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .meta{display:flex;align-items:center;gap:10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .meta .tx{flex:1;min-width:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .meta b{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .meta small{display:block;font-size:13px;font-weight:600;color:var(--ink-3);margin-top:2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lockln{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--ink-3);white-space:nowrap}
@media(max-width:599px){
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2{flex-direction:column}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pbody{position:relative;flex:1;min-height:0;overflow:auto;padding:0 12px 12px;-webkit-mask-image:linear-gradient(#000 calc(100% - 40px),transparent);mask-image:linear-gradient(#000 calc(100% - 40px),transparent)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip{display:flex;gap:8px;overflow:hidden;margin:0 -12px;padding:0 12px 12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stick{position:sticky;top:0;z-index:5;margin:0 -12px;padding:0 12px;background:var(--page-solid);box-shadow:0 10px 14px -12px rgba(0,0,0,.6)}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stick{box-shadow:0 10px 14px -12px rgba(20,35,52,.3)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt{width:78px;height:84px;flex:none;padding:8px 6px 8px;align-items:center}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .no{font-size:32px;align-self:center;margin-top:20px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .stx{padding:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .stx>span{display:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .stx svg{width:20px;height:20px;stroke-width:2.2}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .ck{width:24px;height:24px;top:6px;right:6px;left:auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .ck svg{width:14px;height:14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .df{width:22px;height:22px;top:6px;left:6px;right:auto;bottom:auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip .lt .df svg{width:12px;height:12px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lhd{height:48px;display:flex;align-items:center;gap:6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lhd h2{margin:0;font-size:16px;font-weight:760;flex:1}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lhd h2 small{font-size:13.5px;font-weight:650;color:var(--ink-3);margin-left:6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set{overflow:visible}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .shd{height:48px;padding-left:2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .shd h2{font-size:18px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .cols{grid-template-columns:1fr}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .scroll{overflow:visible;padding-bottom:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row.inl{flex-direction:column;align-items:stretch;gap:0;padding:2px 0 8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row.inl .lb{height:30px;display:flex;align-items:center}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg.wide{width:auto}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button{font-size:14px;padding:0 4px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar{height:auto;min-height:80px;padding:10px 12px 10px 16px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st{gap:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st b{font-size:15.5px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st small{white-space:normal}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .btn.pri{padding:0 20px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .media{display:flex;flex-direction:column;gap:12px;overflow:visible;padding:12px 0 0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi{grid-template-columns:44px 76px minmax(0,1fr) 48px;grid-template-rows:auto auto;row-gap:0;padding:8px 0 10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .grip{width:44px;grid-row:1/3}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .th{width:76px;height:43px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .stp{grid-column:3/5;grid-row:2;justify-self:start;margin-top:6px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .rm{width:48px;height:48px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .scope{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--ink-3);height:40px;margin:-4px 0 -4px 2px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card{width:auto}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes{max-height:100%;overflow-y:auto}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .strip{overflow-x:auto;overscroll-behavior-x:contain}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .content{display:flex;flex-direction:column;gap:0;overflow-y:auto;padding:0 12px 12px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes{position:sticky;top:0;z-index:5;align-self:stretch;width:auto;max-height:none;overflow:visible;margin:0 -12px;padding:0 12px 12px;background:var(--page-solid);border:0;border-radius:0;box-shadow:0 10px 14px -12px rgba(0,0,0,.6)}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes .hd{height:48px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes h2{font-size:16px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes h2 small{font-size:13.5px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt{width:78px;height:84px;flex:none;padding:8px 6px;align-items:center}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .no{font-size:32px;align-self:center;margin-top:20px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .stx{padding:0}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .stx>span{display:none}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .stx svg{width:20px;height:20px;stroke-width:2.2}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .ck{width:24px;height:24px;top:6px;right:6px;left:auto}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .df{width:22px;height:22px;top:6px;left:6px;right:auto;bottom:auto}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .df svg{width:12px;height:12px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set{flex:none}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:var(--ink-3);flex:none;position:relative}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button{height:56px;display:flex;align-items:center;gap:7px;padding:0 15px;font-size:16px;font-weight:650;color:var(--ink-3);position:relative;white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button.on{color:var(--ink)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button.on::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs{height:52px;padding:0 4px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs:has(.scope){height:auto;flex-wrap:wrap;row-gap:0}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs .scope{flex:0 0 100%;height:40px;margin:0;padding:0 12px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button{height:52px;min-height:52px;padding:0 12px;font-size:15px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button.on::after{left:10px;right:10px}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{align-self:flex-end;margin:6px 16px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .svgi{width:22px;height:22px;flex:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .stx .svgi{width:15px;height:15px;stroke-width:2.2}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt .df .svgi{width:13px;height:13px;stroke-width:2.4}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .stx .svgi{width:20px;height:20px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .ck .svgi{width:14px;height:14px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .df .svgi{width:12px;height:12px}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 :is(.tabs>button,.seg button,.swb,.ib,.stp button,.btn.txt){border:0!important;box-shadow:none!important}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 :is(.tabs>button,.seg button,.swb,.ib,.stp button,.btn.txt):focus-visible{box-shadow:inset 0 0 0 2px var(--hx-select)!important}
@media(min-width:600px){
 body.settings-open.review-redesign[data-navigation]:has(#r7Page.settings-page[data-screen="screens"] .tv-settings-v2) .topbar{padding-left:256px}
 #r7Page.settings-page[data-screen="screens"]:has(.tv-settings-v2){overflow:visible}
 #r7Page.settings-page[data-screen="screens"]:has(.tv-settings-v2) .sv-submenu{position:relative;z-index:4;height:calc(100% + 72px);transform:translateY(-72px)}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{position:fixed;z-index:5;left:680px;top:18px;margin:0}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar [data-tv-reset],
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .gap{display:none}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .dng{display:none}
}
@media(min-width:600px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body{position:relative}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{position:absolute;top:10px;right:16px;left:auto}
}
@media(min-width:600px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stp button{min-width:44px}
}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"]:has(.tv-settings-v2){background:#eef1f4}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg{border:0;box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-back{display:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .status{text-transform:none}
@media(max-width:599px){
 body.settings-open.review-redesign[data-navigation]:has(#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-back){padding-bottom:0}
 body.settings-open.review-redesign[data-navigation]:has(#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-back) #r7Navigation{display:none}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-back{display:grid;place-items:center;position:fixed;z-index:55;left:76px;top:6px;width:48px;height:56px;color:var(--accent);background:transparent;border:0;box-shadow:none;font-size:30px;line-height:1}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{position:fixed;z-index:55;right:10px;top:16px;margin:0;font-size:0}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status::after{content:attr(data-mobile-label);font-size:12px}
}
@media(min-width:600px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs .scope{margin-left:20px;margin-right:auto}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st{flex:1;min-width:0;overflow:hidden}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st :is(b,small){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-mobile{display:none}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-mobile{display:inline}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-desktop{display:none}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-shorttitle{display:none}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-shorttitle{display:block;position:fixed;z-index:55;left:128px;top:20px;max-width:calc(100vw - 236px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:20px;line-height:28px;font-weight:750}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-shorttitle{left:136px;max-width:calc(100vw - 244px)}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid .lt .stx>span:first-child{display:block}
}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tv-v2-preview{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tv-v2-preview :is(img,video){display:block;width:100%;height:100%;object-fit:cover}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .th .play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);pointer-events:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv>.th{width:100%;height:100%;display:grid;place-items:center;overflow:hidden}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv>.th :is(img,video){display:block;width:100%;height:100%;object-fit:contain}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-unknown{--c:var(--ink-2)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]){height:auto;min-height:80px;padding-top:10px;padding-bottom:10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]) .st>div{flex:1;min-width:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]) .st :is(b,small){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]) .st{grid-column:1/-1;overflow:visible}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]) .gap{display:none}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has([data-tv-refresh]) .btn{width:100%;padding-inline:8px}
}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card .ch .tv-upload{min-height:56px;padding:0 12px;gap:8px;font-size:16px;font-weight:700;background:transparent;color:var(--accent-text);border:0;box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .meta .tv-upload{height:56px;min-height:56px;padding:0 22px;border:0;border-radius:14px;background:var(--raised-2);color:var(--ink);font-size:16px;font-weight:700;box-shadow:none}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.alert{color:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .ib.alert[aria-expanded="true"] .dot{background:var(--red-soft);color:var(--red)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .pi .tx small .svgi{width:14px;height:14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lockln .svgi{width:15px;height:15px}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lanes{align-items:stretch;gap:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv>.th{position:absolute;inset:0;width:auto;height:auto}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs>button .d{width:7px;height:7px;border-radius:50%;background:var(--warn)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .logo-card .pv>.th :is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:contain}

@media(min-width:1180px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs:has(.scope){padding-right:270px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tabs .scope{margin-left:auto;margin-right:0}
}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st .tv-v2-view-icon{display:none}
}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar:has(.tv-v2-denied-note){height:auto;min-height:80px;padding-block:10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .dbar .st:has(.tv-v2-denied-note){flex-wrap:wrap;overflow:visible;gap:0 10px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-denied-note{flex:1 0 100%;min-width:0;font-size:13px;line-height:1.35;color:var(--ink-2);white-space:normal;overflow-wrap:anywhere}
@media(max-width:599px){
 body:has(#r7PinOff:not([hidden])) #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{position:static;align-self:flex-end;margin:6px 16px}
}

html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 :is(.pi .rm,.dbar .btn.dng){background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 :is(.pi .rm,.dbar .btn.dng):focus-visible{outline:2px solid var(--accent-text);outline-offset:-3px}
@media(max-width:599px){
 #r7Page.settings-page[data-screen="screens"]{margin-inline:-12px;width:calc(100% + 24px)}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lgrid{margin-right:-12px;padding-right:12px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-body>.status{border:0;box-shadow:none}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-back{left:104px;width:44px;min-width:44px}
 #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-v2-shorttitle{left:154px;max-width:calc(100vw - 262px)}
}

body.review-redesign #screenInfoTooltip { margin:0;inset:auto;box-sizing:border-box;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:12px;display:flex;flex-direction:column;gap:8px;font:14px/1.5 system-ui; }
body.review-redesign #screenInfoTooltip[popover]:not(:popover-open) { display:none; }
#screenInfoTooltip::backdrop { background:transparent;pointer-events:none; }
body.review-redesign #screenInfoTooltip .screen-info-heading { display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:44px; }
body.review-redesign #screenInfoTooltip .screen-info-close { display:grid;place-items:center;margin-left:auto;flex-shrink:0;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:0;background:transparent;color:inherit;box-shadow:none; }
body.review-redesign #screenInfoTooltip .screen-info-close .svgi { width:20px;height:20px; }
body.review-redesign #screenInfoTooltip:focus-visible,body.review-redesign #screenInfoTooltip .screen-info-close:focus-visible { outline:2px solid #3bc9ef;outline-offset:2px; }
body.review-redesign #screenInfoTooltip .screen-info-content { min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere; }
body.review-redesign #screenInfoTooltip .screen-info-content p { margin:0 0 8px; }
body.review-redesign #screenInfoTooltip .screen-info-content p:last-child { margin-bottom:0; }
body.review-redesign #screenInfoTooltip .screen-info-content [data-tv-help] { position:static;width:auto;max-width:none;margin:0;padding:0;background:transparent;border:0;box-shadow:none;color:inherit; }

html[data-theme=light] body.review-redesign #screenInfoTooltip:focus-visible,html[data-theme=light] body.review-redesign #screenInfoTooltip .screen-info-close:focus-visible { outline-color:#295b7d; }

body.review-redesign #screenInfoTooltip.is-sheet { width:calc(100vw - 24px);border-radius:16px 16px 10px 10px; }

/* Поиск остаётся над карточками; на узком экране лист занимает ширину шапки. */
body.review-redesign .topbar:has(#r7Search.is-open),
body.review-redesign .topbar:has(#r7SearchResults:not([hidden])) { position: relative; z-index: 120; }
body.screens-v1 #r7Search .r7-search-input { background: var(--hx-panel); }
@media (max-width: 599px) {
  body.review-redesign .topbar #r7Search { position: static; }
  body.review-redesign .topbar #r7Search.is-open .r7-search-input,
  body.review-redesign .topbar:has(>.tc-chip) #r7Search.is-open .r7-search-input {
    position: absolute !important; left: 16px !important; right: 16px !important; top: calc(100% + 6px) !important;
    width: calc(100% - 32px) !important; max-width: none !important; z-index: 121;
  }
  body.review-redesign .topbar #r7Search.is-open .r7-search-results {
    left: 16px; right: 16px; top: calc(100% + 62px); min-width: 0; z-index: 120;
  }
}

/* Parked data keeps its last confirmed snapshot while read-only recovery is pending. */
.parked-tray-status { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap; }
.parked-tray-status p { flex:1 1 220px;margin:0; }
.parked-tray-status button { min-width:56px;min-height:56px; }
body.review-redesign #r7SystemState { height:auto;min-height:44px;padding-right:0;gap:4px; }
body.review-redesign #r7SystemState .screen-info-label,
body.review-redesign #r7SystemState .screen-info-ending { display:inline-flex;margin:0; }
body.review-redesign #r7SystemState .screen-info-trigger { width:44px;height:44px;min-width:44px;min-height:44px; }
body.review-redesign #r7SystemState .screen-info-trigger::after { inset:0; }
body.review-redesign .topbar #hallEquipment { width:auto;flex:0 0 auto;padding:0 10px;gap:6px; }
body.review-redesign .topbar #hallEquipment .hall-equipment-state { display:inline;font-size:13px;line-height:1.25;white-space:nowrap; }
body.review-redesign #r7SystemState .r7-status-mobile { display:none; }
@media(max-width:600px) {
  .parked-visits-grid { grid-template-columns:minmax(0,1fr); }
  body.review-redesign .topbar #r7SystemState { order:0;flex:0 0 64px;width:64px;max-width:64px;min-height:44px;font-size:12px;padding:0;gap:0; }
  body.review-redesign #r7SystemState :is(.r7-system-dot,.r7-status-full,.r7-status-compact) { display:none!important; }
  body.review-redesign #r7SystemState .screen-info-trigger { display:flex;align-items:center;justify-content:center;gap:3px;width:62px;min-width:62px;height:44px;font-size:11px; }
  body.review-redesign #r7SystemState .r7-status-mobile { display:inline;max-width:36px;white-space:normal;line-height:1.15; }
  body.review-redesign #r7SystemState .screen-info-trigger svg { width:16px;height:16px;flex:none; }
  body.review-redesign.r7-page-open[data-navigation]:not(.settings-open) .topbar:has(#hallEquipment:not([hidden])) { flex-wrap:wrap!important;height:auto!important;min-height:72px; }
  body.review-redesign.r7-page-open[data-navigation]:not(.settings-open) .topbar:has(#hallEquipment:not([hidden]))::after { content:"";flex-basis:100%;height:0;order:19; }
  body.review-redesign.r7-page-open .topbar #r7SystemState { order:20; }
  body.review-redesign.r7-page-open .topbar #hallEquipment { order:21;min-height:44px;margin-left:8px; }
}

/* Shared operational controls keep one visual information target and native-size captions. */
body.review-redesign .topbar :is(#r7PinOff,#r7HeaderInfo),
body.review-redesign .topbar :is(#r7PinOff,#r7HeaderInfo) .screen-info-trigger,
body.review-redesign .topbar .hall-legend-help,
body.review-redesign .topbar #hallLegendHelp { flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important; }
body.review-redesign .topbar :is(#r7PinOff,#r7HeaderInfo)[hidden] { display:none!important; }
body.review-redesign .topbar .screen-info-trigger::after { display:none; }
body.review-redesign #r7SystemState { padding-inline:10px; }
body.review-redesign #modal .parked-visits-body .parked-tray-status { gap:8px; }
body.review-redesign #modal:has(.parked-visits-body) .modal-head h3 { font-size:20px;line-height:1.25;white-space:nowrap; }
body.review-redesign #modal:has(.parked-visits-body) .modal-head { min-height:56px; }
body.review-redesign #modal:has(.hall-equipment-modal) { z-index:150;background:rgba(0,0,0,.4); }
body.review-redesign #modal .hall-equipment-modal { background:var(--hx-panel);opacity:1; }
body.review-redesign .hall-equipment-list li { display:flex;align-items:center;justify-content:space-between;gap:8px; }
body.review-redesign .hall-equipment-list li>strong { font-size:14px;font-weight:650; }
body.review-redesign .hall-equipment-summary { font-size:16px; }
body.review-redesign .screen-hour-chart.is-unavailable { height:auto;min-height:44px;display:flex;align-items:center;padding:0;border:0; }
body.review-redesign .screen-hour-chart.is-unavailable p { margin:0;font-size:14px;line-height:1.5; }
body.review-redesign .screen-queue-layout .r7-empty strong { font-size:16px;line-height:1.4; }
html[data-theme] body.review-redesign :is(.modal-close,.hall-workspace-close,#hallZoomOut,#hallZoomIn,#hallZoomAuto,#hallQuickEdit,.r7-nav-toggle) { border:0!important;box-shadow:none!important;background:transparent!important; }
html[data-theme] body.review-redesign #r7HeaderTitle { font-size:22px;font-weight:800;line-height:1.25; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1 .daily-lane-test-badge { top:8px; }
@media(max-width:600px) {
 html[data-theme] body.review-redesign[data-navigation] .topbar #r7HeaderTitle { font-size:18px!important;line-height:1.25; }
 body.review-redesign .topbar #r7SystemState { flex:0 0 auto;width:auto;min-width:44px;max-width:none;padding-inline:8px;gap:0;margin-inline:4px; }
 body.review-redesign #r7SystemState .r7-status-mobile { display:inline;max-width:none;white-space:nowrap;font-size:12px; }
 body.review-redesign:has(#r7HeaderTitle[data-section=hall]):not(.r7-page-open) .topbar :is(#r7PinOff,#r7HeaderInfo) { display:none!important; }
 body.review-redesign #toast { top:auto;bottom:calc(72px + 8px + env(safe-area-inset-bottom,0px)); }
 body.review-redesign #hallScaleControls { flex-wrap:nowrap;min-height:44px;height:44px;padding-block:0;gap:6px; }
 body.review-redesign #hallScaleControls :is(.hall-jump-source,#hallNextLane,#hallNextPair,#hallPageUp,#hallPageDown,#hallPage,#hallPageDots) { display:none!important; }
 body.review-redesign #hallScaleControls :is(#hallZoomOut,#hallZoomIn,#hallZoomAuto) { min-width:44px;min-height:44px;height:44px; }
}

body.review-redesign .topbar .session-info { min-width:44px!important;width:44px;min-height:44px!important;height:44px;padding:0;border:0;box-shadow:none;background:transparent; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity]:has(.hall-tile-badges > .daily-lane-test-badge:only-child) .daily-lane-glyph { visibility:visible; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity] .hall-tile-badges:has(> .daily-lane-test-badge:only-child) { left:calc(8% + var(--hall-tile)*.27 + 4px);right:auto;top:calc(8% + 6px);max-width:40%;transform:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity="even"] .hall-tile-badges:has(> .daily-lane-test-badge:only-child) { left:auto;right:calc(8% + var(--hall-tile)*.27 + 4px); }

body.review-redesign .r7-insight-action { min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:0;border-radius:10px;background:var(--hx-raised);color:var(--hx-text); }
body.review-redesign .screen-summary-layout .screen-queue-empty { font-size:14px;line-height:1.5; }

body.review-redesign #visitWorkspace .daily-mechanic-action { min-height:44px;padding:10px 14px;border:0;border-radius:10px;background:var(--hx-raised);color:var(--hx-text);font-weight:600; }
body.review-redesign #modal .parked-visits-body .parked-tray-status { flex-wrap:nowrap;align-items:center; }
body.review-redesign #modal .parked-visits-body .parked-tray-status p { flex:1 1 0;min-width:0;font-size:14px;line-height:1.4;margin:0; }
body.review-redesign #modal .parked-visits-body .parked-tray-status .screen-info-trigger { width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;box-shadow:none;background:transparent; }
body.review-redesign #modal .parked-visits-body [data-parked-retry] { font-size:14px;min-height:44px;min-width:56px;padding:8px 12px; }
body.review-redesign #modal .parked-visits-body .park-name { font-size:16px;line-height:1.4; }
body.review-redesign #modal .parked-visits-body .park-meta { font-size:14px;line-height:1.4; }
body.review-redesign #modal .parked-visits-body .primary:disabled { background:var(--hx-raised);color:var(--hx-text-2);opacity:1; }
body.review-redesign #modal .hall-equipment-modal #modalBody .screen-info-trigger { border:0;box-shadow:none;background:transparent;width:44px;min-width:44px;height:44px;min-height:44px;padding:0; }

@media(max-width:600px) {
 html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity] .hall-tile-badges:has(.hall-tile-nolink,.hall-tile-mechanic) { top:-24px; }
}

body.review-redesign #visitWorkspace.hall-lane-panel .hall-workspace-status:is([data-state=timeup],[data-state=stop]) { flex:0 1 auto;width:fit-content;height:auto;min-height:34px;max-width:100%; }
body.review-redesign #visitWorkspace .hall-workspace-status:is([data-state=timeup],[data-state=stop]) .hall-workspace-status-label { white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .daily-checkout > [data-role=hall-purchase-pay]:not(:disabled) { background:var(--hx-panel-action-bg);color:var(--hx-panel-action-ink);opacity:1;box-shadow:none; }
body.review-redesign .screen-hour-chart.is-unavailable .screen-info-label { font-size:14px;line-height:1.5; }
@media(max-width:600px) {
 body.screens-v1 #r7Page:has(.screen-bill-layout) { max-height:calc(100dvh - 72px - 72px - env(safe-area-inset-bottom,0px));overflow-y:auto;padding-bottom:8px; }
 body.screens-v1 .screen-bill-layout aside { min-height:0; }
 body.screens-v1 .screen-bill-actions { position:sticky;bottom:0;z-index:2;padding:8px 0;background:var(--hx-panel); }
}

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity][data-number-digits]:not([data-number-digits="1"]) .hall-tile-badges:has(> .daily-lane-test-badge:only-child) { top:35%;left:8%;right:auto; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"][data-parity="even"][data-number-digits]:not([data-number-digits="1"]) .hall-tile-badges:has(> .daily-lane-test-badge:only-child) { left:auto;right:8%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane.glyph-stop { --ht-color:var(--ht-pay);--ht-tone:19%; }
/* Palette values ported verbatim from the approved artifact. */
body.review-redesign:has(:is(.ct-contract,.ct-pinpad):not([hidden] *)) {
  --ht-page:radial-gradient(70% 55% at 12% 0%,rgba(22,74,140,.55) 0%,transparent 70%),radial-gradient(60% 50% at 95% 8%,rgba(18,96,150,.32) 0%,transparent 70%),radial-gradient(80% 60% at 60% 105%,rgba(40,30,110,.30) 0%,transparent 70%),#04142c;
  --ht-rail:rgba(4,18,42,.62);
  --ht-rail-on:#043c64;
  --ht-rail-ink:#acb4c4;
  --ht-nav:rgba(4,16,38,.38);
  --ht-panel:rgba(12,28,56,.70);
  --ht-panel-solid:#0c1c38;
  --ht-pop:#0f2244;
  --ht-raised:rgba(150,190,255,.06);
  --ht-raised-2:rgba(150,190,255,.11);
  --ht-field:rgba(2,10,26,.50);
  --ht-line:rgba(96,140,210,.16);
  --ht-line-2:rgba(96,140,210,.30);
  --ht-edge:rgba(150,190,255,.16);
  --ht-ink:#eff1f6;
  --ht-ink-2:#b3bbcb;
  --ht-ink-3:#97a0b4;
  --ht-accent:#3ee0f2;
  --ht-accent-soft:rgba(62,224,242,.14);
  --ht-accent-ink:#04142c;
  --ht-accent-text:#7fecf7;
  --ht-primary:#279a5c;
  --ht-primary-ink:#fff;
  --ht-warn:#ffc24d;
  --ht-warn-soft:rgba(255,194,77,.13);
  --ht-warn-text:#ffd27a;
  --ht-danger:#ff7d86;
  --ht-danger-soft:rgba(255,100,112,.14);
  --ht-ok:#4fe08a;
  --ht-ok-soft:rgba(79,224,138,.13);
  --ht-scrim:rgba(2,8,22,.62);
  --ht-shadow:0 22px 60px -16px rgba(0,0,0,.65), 0 2px 0 rgba(200,225,255,.04) inset;
  --ht-lv-m:#5cc8ff;
  --ht-lv-d:#4fd1a5;
  --ht-lv-e:#ffb547;
  --ht-lv-n:#a58bff;
  --ht-lv-h:#ff6fae;
  --ht-tint:26%;
  --ht-tint-inh:13%;
  --ht-lv-mix:#fff;
  --ht-lv-mixp:78%;
}
html[data-theme=light] body.review-redesign:has(:is(.ct-contract,.ct-pinpad):not([hidden] *)) {
  --ht-page:#eef1f4;
  --ht-rail:#04142c;
  --ht-rail-on:#0d4a7a;
  --ht-rail-ink:#c3cbd8;
  --ht-nav:#f8fafc;
  --ht-panel:#ffffff;
  --ht-panel-solid:#ffffff;
  --ht-pop:#ffffff;
  --ht-raised:#f1f4f8;
  --ht-raised-2:#e6ebf1;
  --ht-field:#f3f5f8;
  --ht-line:#d9dfe6;
  --ht-line-2:#b9c2cd;
  --ht-edge:#d4dae1;
  --ht-ink:#17212b;
  --ht-ink-2:#4f5b69;
  --ht-ink-3:#5f6d85;
  --ht-accent:#2f78d4;
  --ht-accent-soft:#e7f0ff;
  --ht-accent-ink:#fff;
  --ht-accent-text:#1f5fb0;
  --ht-primary:#157a45;
  --ht-primary-ink:#fff;
  --ht-warn:#8a5900;
  --ht-warn-soft:#fff2d4;
  --ht-warn-text:#7a4f00;
  --ht-danger:#bd3030;
  --ht-danger-soft:#fde8e8;
  --ht-ok:#137747;
  --ht-ok-soft:#e2f4ea;
  --ht-scrim:rgba(23,33,43,.40);
  --ht-shadow:0 24px 60px -18px rgba(20,35,52,.30), 0 1px 2px rgba(20,35,52,.06);
  --ht-lv-m:#1f86cf;
  --ht-lv-d:#14936b;
  --ht-lv-e:#d58400;
  --ht-lv-n:#7451d8;
  --ht-lv-h:#cc2f7a;
  --ht-tint:20%;
  --ht-tint-inh:9%;
  --ht-lv-mix:#000;
  --ht-lv-mixp:70%;
}
body.review-redesign .ct-contract { color:var(--ht-ink);font:16px/1.35 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif; }
body.review-redesign .ct-button { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:56px;min-width:56px;padding:0 16px;border:0;border-radius:14px;background:var(--ht-raised-2);color:var(--ht-ink);font:inherit;font-size:15px;font-weight:700;line-height:1.25;cursor:pointer;box-shadow:none;white-space:normal;text-align:center; }
body.review-redesign .ct-button svg { width:20px;height:20px;flex:none; }
body.review-redesign .ct-button:hover:not(:disabled) { background:var(--ht-raised); }
body.review-redesign .ct-button:focus-visible,body.review-redesign .ct-field input:focus-visible,body.review-redesign .ct-login-ref:focus-visible { outline:3px solid var(--ht-accent);outline-offset:2px; }
body.review-redesign .ct-button:active:not(:disabled) { box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign .ct-button[aria-pressed=true] { background:var(--ht-accent-soft);color:var(--ht-accent-text);box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign .ct-primary,body.review-redesign .ct-primary:hover:not(:disabled) { background:var(--ht-primary);color:var(--ht-primary-ink);font-weight:750; }
body.review-redesign .ct-button:disabled { opacity:.5;cursor:default; }
body.review-redesign .ct-text { color:var(--ht-accent-text);background:transparent; }
body.review-redesign .ct-note { color:var(--ht-ink-3);font-size:13.5px;line-height:1.4;margin:0; }
body.review-redesign .ct-contract :is(h3,h4,p) { margin-block:0; }
body.review-redesign .ct-contract small,body.review-redesign :is(.ct-person-heading,.ct-inline-panel,.ct-save-copy) small { display:block;font-size:13.5px;color:var(--ht-ink-3);line-height:1.35; }
body.review-redesign .ct-avatar { display:grid;place-items:center;flex:none;width:var(--ct-avatar-size);height:var(--ct-avatar-size);border-radius:50%;background:linear-gradient(135deg,#6e63ef,#3a8ee8);color:#fff;font-size:calc(var(--ct-avatar-size)*.34);font-weight:750; }
body.review-redesign .ct-person-heading { display:flex;align-items:center;gap:14px;min-width:0; }
body.review-redesign .ct-person-heading>div { flex:1;min-width:0; }
body.review-redesign .ct-person-heading h3 { font-size:21px;font-weight:780; }
body.review-redesign .ct-person-heading>b { font-size:20px; }
body.review-redesign .ct-field { display:flex;flex-direction:column;gap:7px;min-width:0; }
body.review-redesign .ct-field>span { font-size:13.5px;font-weight:700;color:var(--ht-ink-3); }
body.review-redesign .ct-field input,body.review-redesign .ct-login-ref { box-sizing:border-box;min-height:56px;width:100%;min-width:0;padding:0 14px;border:1px solid var(--ht-line);border-radius:14px;background:var(--ht-field);color:var(--ht-ink);font:inherit;font-size:16px;font-weight:700;line-height:1.3; }
body.review-redesign .ct-two { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
body.review-redesign .ct-badge { display:inline-flex;align-items:center;flex:none;border-radius:12px;padding:3px 9px;font-size:12px;font-weight:700;color:var(--ht-warn-text);background:var(--ht-warn-soft); }
body.review-redesign .ct-inline-panel { display:flex;align-items:center;gap:10px;min-height:56px;padding:0 10px 0 14px;border-radius:14px;background:var(--ht-raised); }
body.review-redesign .ct-inline-panel>span:first-child { flex:1;min-width:0; }
body.review-redesign .ct-last-login { justify-content:flex-start; }
body.review-redesign .ct-last-login>span { flex:0 0 30px; }
body.review-redesign .ct-last-login svg { width:24px;height:24px; }
body.review-redesign .ct-segment { display:flex;align-items:stretch;gap:4px;min-height:56px;padding:4px;border-radius:14px;background:var(--ht-field);box-shadow:inset 0 0 0 1px var(--ht-line);min-width:0; }
body.review-redesign .ct-segment .ct-button { flex:1;min-width:0;min-height:48px;padding:0 8px;background:transparent;font-size:14px;border-radius:11px; }
body.review-redesign .ct-segment .ct-button[aria-pressed=true] { background:var(--ht-accent-soft); }
body.review-redesign .ct-savebar { display:flex;align-items:center;gap:10px;flex:none;min-height:80px;padding:10px 16px;border-top:1px solid var(--ht-line);background:var(--ht-panel-solid);z-index:2; }
body.review-redesign .ct-savebar[hidden] { display:none; }
body.review-redesign .ct-save-copy { flex:1;min-width:0; }
body.review-redesign .ct-save-copy b { font-size:16px; }
body.review-redesign .ct-savebar .ct-primary { margin-left:0; }
body.review-redesign .settings-page:has(.ct-contract) { color:var(--ht-ink);background:var(--ht-page); }
body.review-redesign .settings-page:has(.ct-contract) .sv-content { padding:0;min-height:0;overflow:hidden;display:flex;flex-direction:column; }
body.review-redesign .settings-page:has(.ct-contract) .sv-body.ct-contract { display:flex;flex-direction:column;gap:0;min-height:0;flex:1;padding:0;overflow:hidden; }
body.review-redesign .settings-page:has(.ct-contract) .sv-title.ct-screen-heading { display:none; }
body.review-redesign .settings-page:has(.ct-contract) .sv-submenu { background:var(--ht-nav);border-color:var(--ht-line); }
body.review-redesign .settings-page:has(.ct-contract) .sv-menu-item { min-height:56px;color:var(--ht-ink-2); }
body.review-redesign .settings-page:has(.ct-contract) .sv-menu-item[aria-current] { color:var(--ht-ink);background:var(--ht-accent-soft);border:0;box-shadow:inset 3px 0 var(--ht-accent); }
body.review-redesign .ct-tabs { display:flex;align-items:stretch;gap:26px;height:66px;flex:none;border-bottom:1px solid var(--ht-line);padding:0 20px; }
body.review-redesign .ct-tabs .ct-button { position:relative;border-radius:0;padding:0 3px;background:transparent;color:var(--ht-ink-3);font-size:16px; }
body.review-redesign .ct-tabs .ct-button[aria-pressed=true] { color:var(--ht-ink);box-shadow:none; }
body.review-redesign .ct-tabs .ct-button[aria-pressed=true]::after { content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;border-radius:3px 3px 0 0;background:var(--ht-accent); }
body.review-redesign .ct-staff-grid { display:grid;grid-template-columns:352px minmax(0,1fr);gap:12px;padding:12px;flex:1;min-height:0; }
body.review-redesign .ct-staff-list { display:flex;flex-direction:column;min-height:0;min-width:0; }
body.review-redesign .ct-list-tools { display:flex;gap:8px;flex:none;padding-bottom:10px; }
body.review-redesign .ct-list-tools input { width:0;flex:1;min-width:0;min-height:56px;border:1px solid var(--ht-line);background:var(--ht-field);color:var(--ht-ink);border-radius:14px;padding:0 14px;font-size:15px; }
body.review-redesign .ct-list-rows { overflow:auto;min-height:0; }
body.review-redesign .ct-person { display:flex;width:100%;gap:12px;min-height:60px;padding:8px 10px;background:transparent;text-align:left;margin-bottom:2px; }
body.review-redesign .ct-person-name { flex:1;min-width:0; }
body.review-redesign .ct-person-name b { display:block;font-size:16px;overflow-wrap:anywhere; }
body.review-redesign .ct-staff-detail { display:flex;flex-direction:column;gap:14px;min-height:0;min-width:0;overflow:auto;padding:16px 18px;border:1px solid var(--ht-edge);border-radius:18px;background:var(--ht-panel); }
body.review-redesign .ct-role-tiles { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
body.review-redesign .ct-role-tiles .ct-button { justify-content:flex-start;min-height:56px;padding:8px 12px;text-align:left;font-size:14px; }
body.review-redesign .ct-roles-grid { grid-template-columns:300px minmax(0,1fr); }
body.review-redesign .ct-role-list { display:flex;flex-direction:column;gap:10px;min-height:0; }
body.review-redesign .ct-role-list-scroll { min-height:0;overflow:auto; }
body.review-redesign .ct-role-row { display:flex;width:100%;justify-content:flex-start;min-height:64px;background:transparent;text-align:left;padding:8px 12px;gap:14px; }
body.review-redesign .ct-role-row>span:nth-child(2) { flex:1;min-width:0; }
body.review-redesign .ct-role-row b { display:block; }
body.review-redesign .ct-template-lock { margin-left:auto;opacity:.7; }
body.review-redesign .ct-role-list-actions { display:flex;flex-direction:column;gap:8px;margin-top:auto; }
body.review-redesign .ct-role-name { display:flex;align-items:center;min-height:56px;padding:0 14px;border-radius:14px;background:var(--ht-field);font-size:16px; }
body.review-redesign .ct-role-detail { gap:8px; }
body.review-redesign .ct-permissions { overflow:auto;min-height:0; }
body.review-redesign .ct-group-title { color:var(--ht-ink-3);font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.07em;padding:12px 0 6px; }
body.review-redesign .ct-permission-row { display:flex;align-items:center;gap:12px;min-height:61px;border-bottom:1px solid var(--ht-line); }
body.review-redesign .ct-permission-row>div:first-child { flex:1;min-width:0; }
body.review-redesign .ct-permission-row b { display:block;font-size:15px; }
body.review-redesign .ct-permission-row .ct-segment { flex:none; }
body.review-redesign .ct-permission-row.is-changed b::after { content:"•";margin-left:7px;color:var(--ht-warn-text); }
body.review-redesign .ct-compare-tools { display:flex;align-items:center;gap:18px;padding:12px; }
body.review-redesign .ct-compare-scroll { overflow:auto;min-height:0;padding:0 16px 16px; }
body.review-redesign .ct-compare { width:100%;border-collapse:collapse;font-size:14px; }
body.review-redesign .ct-compare th { text-align:left;min-width:114px; }
body.review-redesign .ct-compare th:first-child { min-width:220px; }
body.review-redesign .ct-compare th,body.review-redesign .ct-compare td { padding:6px;border-bottom:1px solid var(--ht-line); }
body.review-redesign .ct-mode { display:flex;align-items:center;justify-content:center;min-height:56px;border-radius:12px;border:1px solid var(--ht-line);font-weight:750; }
body.review-redesign .ct-mode-allow { color:var(--ht-ok);background:var(--ht-ok-soft); }
body.review-redesign .ct-mode-approval { color:var(--ht-warn-text);background:var(--ht-warn-soft); }
body.review-redesign .ct-mode-deny { color:var(--ht-ink-3); }
body.review-redesign .ct-security-form { display:flex;flex-direction:column;min-height:0;flex:1; }
body.review-redesign .ct-security-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 12px 12px;overflow:auto;flex:1;min-height:0; }
body.review-redesign .ct-security-column { display:flex;flex-direction:column;gap:12px; }
body.review-redesign .ct-policy-card { display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid var(--ht-edge);border-radius:18px;background:var(--ht-panel); }
body.review-redesign .ct-policy-card h3 { display:flex;align-items:center;gap:10px;font-size:16px;font-weight:750; }
body.review-redesign .ct-policy-card h3>.ct-button { margin-left:auto;margin-top:-12px;margin-bottom:-10px; }
body.review-redesign .ct-toggle { display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;font-weight:700; }
body.review-redesign .ct-toggle>span:first-child { flex:1; }
body.review-redesign .ct-toggle input { appearance:none;flex:none;width:64px;height:40px;margin:8px 0;border-radius:22px;background:var(--ht-raised-2);box-shadow:inset 0 0 0 1px var(--ht-line);cursor:pointer;position:relative; }
body.review-redesign .ct-toggle input::after { content:"";position:absolute;width:28px;height:28px;top:6px;left:6px;border-radius:50%;background:var(--ht-ink-3); }
body.review-redesign .ct-toggle input:checked { background:var(--ht-accent-soft);box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign .ct-toggle input:checked::after { left:30px;background:var(--ht-accent); }
body.review-redesign .ct-toggle input:disabled { opacity:.45;cursor:default; }
body.review-redesign .ct-policy-card>h3:has(+.ct-toggle) { display:none; }
body.review-redesign .ct-attempt-stepper { display:flex;justify-content:center;align-items:center;gap:20px;background:var(--ht-raised);border-radius:14px; }
body.review-redesign .ct-attempt-stepper>span { text-align:center; }
body.review-redesign .ct-policy-role-link { display:flex;align-items:center;gap:10px;border-top:1px solid var(--ht-line);padding-top:8px; }
body.review-redesign .ct-policy-role-link>span { flex:1;min-width:0; }
body.review-redesign .ct-audit-row { display:flex;align-items:center;gap:10px;width:100%;min-height:60px;border-radius:0;border-bottom:1px solid var(--ht-line);padding:10px 0;background:transparent;text-align:left; }
body.review-redesign .ct-audit-row time { font-size:13.5px;color:var(--ht-ink-3);font-variant-numeric:tabular-nums; }
body.review-redesign .ct-audit-row>span:last-child { flex:1;min-width:0; }
body.review-redesign .ct-audit-row b { font-size:14px; }
body.review-redesign .ct-event-icon { color:var(--ht-warn-text); }
body.review-redesign .ct-audit-row:last-child { border:0; }
body.review-redesign .ct-pinpad { display:flex;flex-direction:column;gap:12px;min-width:0; }
body.review-redesign .ct-pin-field { position:relative;height:64px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--ht-field);box-shadow:inset 0 0 0 1px var(--ht-line); }
body.review-redesign .ct-pin-input { position:absolute;inset:0;opacity:0;width:100%;cursor:text; }
body.review-redesign .ct-pin-field:focus-within { outline:2px solid var(--ht-accent);outline-offset:2px; }
body.review-redesign .ct-pin-dots { display:flex;align-items:center;gap:12px;pointer-events:none; }
body.review-redesign .ct-pin-dots i { width:16px;height:16px;border:2px solid var(--ht-ink-3);border-radius:50%; }
body.review-redesign .ct-pin-dots i.is-filled { background:var(--ht-ink);border-color:var(--ht-ink); }
body.review-redesign .ct-pin-field.is-error { box-shadow:inset 0 0 0 2px var(--ht-danger);background:var(--ht-danger-soft); }
body.review-redesign .ct-pin-field.is-error .is-filled { background:var(--ht-danger);border-color:var(--ht-danger); }
body.review-redesign .ct-pin-field.is-success { box-shadow:inset 0 0 0 2px var(--ht-primary); }
body.review-redesign .ct-pin-message { min-height:22px;margin:0;text-align:center;color:var(--ht-ink-3);font-size:14px;line-height:22px; }
body.review-redesign .ct-pin-message.is-error { color:var(--ht-danger); }
body.review-redesign .ct-pin-keys { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
body.review-redesign .ct-pin-keys .ct-button { min-height:64px;font-size:26px; }
body.review-redesign .ct-pin-keys .ct-pin-function { font-size:15px; }
body.review-redesign .ct-sr-only { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap; }
body.review-redesign .security-backdrop:has(.ct-login) { inset:0!important;--security-top:0px!important;padding:0;background:var(--ht-page); }
body.review-redesign .security-card.ct-login { display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:32px;padding:28px 32px;width:100%;height:100dvh;max-height:none;max-width:none;box-sizing:border-box;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:auto; }
body.review-redesign .ct-login-left { display:flex;flex-direction:column;min-height:0; }
body.review-redesign .ct-login-brand { display:flex;align-items:center;min-height:40px; }
body.review-redesign .ct-login-logo { display:block;width:32px;height:36px; }
body.review-redesign .ct-login-logo svg { width:100%;height:100%; }
body.review-redesign .ct-login-clock { display:flex;align-items:baseline;gap:16px;margin-top:26px; }
body.review-redesign .ct-login-clock>b { font-size:64px;font-weight:800;letter-spacing:-.03em;line-height:1; }
body.review-redesign .ct-login-clock>span { font-size:17px;color:var(--ht-ink-2); }
body.review-redesign .ct-login-who { margin-top:auto!important;padding-top:36px;margin-bottom:10px!important;font-size:14px;font-weight:750;color:var(--ht-ink-3); }
body.review-redesign .ct-employee-tiles { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
body.review-redesign .ct-employee-tile { display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:88px;padding:10px 14px;text-align:left;min-width:0; }
body.review-redesign .ct-employee-tile>span:last-child { min-width:0;flex:1; }
body.review-redesign .ct-employee-tile b { display:block;overflow-wrap:anywhere;font-size:16.5px; }
body.review-redesign .ct-employee-tile small { font-size:13.5px;font-weight:650; }
body.review-redesign .ct-on-session::before { content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ht-ok);margin-right:5px; }
body.review-redesign .ct-login-panel { display:flex;flex-direction:column;align-self:center;gap:14px;padding:20px;border:1px solid var(--ht-line-2);border-radius:24px;background:var(--ht-pop);box-shadow:var(--ht-shadow);min-width:0; }
body.review-redesign .ct-login-panel .ct-person-heading b { font-size:20px; }
body.review-redesign .ct-login-footer { display:flex;justify-content:flex-end;gap:10px;padding-top:2px; }
body.review-redesign .ct-login-footer>button:first-child { margin-right:auto; }
body.review-redesign .ct-alpha-keys { display:flex;flex-direction:column;gap:6px; }
body.review-redesign .ct-alpha-keys>div { display:flex;gap:4px;justify-content:center; }
body.review-redesign .ct-alpha-keys .ct-button { flex:1;min-width:0;padding:0;min-height:56px;font-size:20px; }
body.review-redesign .ct-login-expiry { font-size:14px;color:var(--ht-ink-3);margin:0; }
body.review-redesign .ct-session-menu { position:fixed;inset:auto;margin:0;width:372px;max-width:calc(100vw - 16px);border:1px solid var(--ht-line-2);padding:12px;border-radius:18px;background:var(--ht-pop);box-shadow:var(--ht-shadow); }
body.review-redesign .ct-session-menu .ct-person-heading { padding:6px 4px 14px;border-bottom:1px solid var(--ht-line); }
body.review-redesign .ct-menu-action { width:100%;justify-content:flex-start;background:transparent; }
body.review-redesign .ct-danger-text { color:var(--ht-danger); }
body.review-redesign .ct-menu-expiry { border-top:1px solid var(--ht-line);padding:10px 4px 0;color:var(--ht-ink-3);font-size:13.5px; }
body.review-redesign .topbar #r7Operator .session-time { display:inline-flex!important;white-space:nowrap;max-width:none;flex:none;color:var(--ht-ink-2,var(--muted));font-size:13px; }
@media (max-width:1100px) { body.review-redesign .topbar #r7Operator .session-time { display:none!important; } }
body.review-redesign .topbar #r7Operator.session-expiring .session-time { color:var(--ht-warn-text,var(--warn)); }
body.review-redesign .ct-session-warning { position:absolute;top:calc(100% + 8px);right:0;display:flex;align-items:center;gap:12px;min-width:330px;padding:10px 12px;border-radius:14px;background:var(--ht-pop,var(--panel));border:1px solid var(--ht-line-2,var(--glass-line));font-size:14px;z-index:50; }
body.review-redesign .ct-pin-handoff-grid { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px; }
body.review-redesign .ct-pin-steps { display:flex;flex-direction:column;gap:10px;margin:0 0 18px;padding-left:28px;font-weight:700; }
body.review-redesign .ct-pin-steps li { min-height:56px;padding:14px;border-radius:14px;background:var(--ht-raised); }
body.review-redesign .ct-pin-steps li[aria-current] { color:var(--ht-accent-text);background:var(--ht-accent-soft);box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign .modal:has(:is(.ct-pin-handoff,.ct-new-employee,.ct-reset-options,.ct-copy-role,.ct-extend-session,.ct-employee-events,.ct-event-detail)) { width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 24px);background:var(--ht-pop);color:var(--ht-ink);border:1px solid var(--ht-line-2);border-radius:20px; }
body.review-redesign .modal:has(:is(.ct-pin-handoff,.ct-new-employee,.ct-reset-options,.ct-copy-role,.ct-extend-session,.ct-employee-events,.ct-event-detail)) :is(.modal-header,.wizard-bar) { border-color:var(--ht-line); }
body.review-redesign :is(.ct-new-employee,.ct-copy-role,.ct-reset-options,.ct-extend-session,.ct-pin-handoff) { display:flex;flex-direction:column;gap:16px; }
body.review-redesign .ct-extend-session .ct-pinpad { width:min(100%,360px);align-self:center; }
@media(max-width:1100px) and (min-width:600px) {
  body.review-redesign .ct-staff-grid { grid-template-columns:260px minmax(0,1fr); }
  body.review-redesign .ct-role-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.review-redesign .ct-permission-row { align-items:stretch;flex-direction:column;padding:8px 0;gap:6px; }
  body.review-redesign .security-card.ct-login { grid-template-columns:minmax(0,1fr) 500px;gap:24px;padding:24px; }
  body.review-redesign .ct-login-clock { flex-wrap:wrap; }
}
@media(max-width:767px) {
  body.review-redesign .ct-staff-grid { display:flex;flex-direction:column;overflow:auto;padding:12px; }
  body.review-redesign .ct-staff-list,body.review-redesign .ct-role-list { flex:none; }
  body.review-redesign .ct-list-rows { display:flex;gap:8px;overflow:auto; }
  body.review-redesign .ct-person { min-width:170px;width:170px;min-height:64px;flex:none; }
  body.review-redesign .ct-person .ct-badge { display:none; }
  body.review-redesign .ct-staff-detail { flex:none;overflow:visible;padding:14px;gap:14px; }
  body.review-redesign .ct-two { grid-template-columns:minmax(0,1fr); }
  body.review-redesign .ct-role-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.review-redesign .ct-tabs { height:56px;padding:0 12px; }
  body.review-redesign .ct-role-list-scroll { display:flex;overflow:auto;gap:8px; }
  body.review-redesign .ct-role-row { min-width:190px;flex:none; }
  body.review-redesign .ct-role-list-actions { flex-direction:row; }
  body.review-redesign .ct-role-list-actions .ct-button { flex:1; }
  body.review-redesign .ct-permission-row { align-items:stretch;flex-direction:column;padding:8px 0;gap:6px; }
  body.review-redesign .ct-security-grid { grid-template-columns:minmax(0,1fr);padding:12px; }
  body.review-redesign .ct-savebar { flex-wrap:wrap;padding:10px 12px;gap:8px; }
  body.review-redesign .ct-save-copy { flex-basis:100%; }
  body.review-redesign .ct-savebar .ct-button { min-height:44px; }
  body.review-redesign .ct-savebar .ct-primary { margin-left:auto; }
  body.review-redesign .security-card.ct-login { display:flex;flex-direction:column;gap:14px;padding:16px;overflow:auto; }
  body.review-redesign .ct-login-left { flex:none; }
  body.review-redesign .ct-login-brand { min-height:28px; }
  body.review-redesign .ct-login-clock { display:none; }
  body.review-redesign .ct-login-who { margin-top:12px!important;padding:0;font-size:14px; }
  body.review-redesign .ct-employee-tiles { display:flex;overflow:auto;gap:8px; }
  body.review-redesign .ct-employee-tile { min-width:158px;min-height:64px;padding:8px; }
  body.review-redesign .ct-employee-tile .ct-avatar { --ct-avatar-size:36px!important; }
  body.review-redesign .ct-employee-tile b { font-size:14px; }
  body.review-redesign .ct-employee-tile small { font-size:12px; }
  body.review-redesign .ct-login-panel { padding:16px;gap:12px;width:100%;align-self:stretch;margin:auto 0;box-sizing:border-box; }
  body.review-redesign .ct-pin-keys .ct-button { min-height:56px; }
  body.review-redesign .ct-pin-dots { gap:8px; }
  body.review-redesign .ct-pin-dots i { width:14px;height:14px; }
  body.review-redesign .ct-alpha-keys { gap:4px; }
  body.review-redesign .ct-alpha-keys>div { gap:3px; }
  body.review-redesign .ct-alpha-keys .ct-button { min-height:44px;font-size:17px;border-radius:10px; }
  body.review-redesign .ct-pin-handoff-grid { grid-template-columns:minmax(0,1fr); }
  body.review-redesign .ct-pin-steps { flex-direction:row;gap:8px;margin-bottom:6px; }
  body.review-redesign .ct-pin-steps li { flex:1;min-height:44px;padding:10px;font-size:14px; }
  body.review-redesign .ct-pin-handoff-grid>div:first-child>.ct-note { display:none; }
  body.review-redesign .topbar #r7Operator .session-time { font-size:12px; }
  body.review-redesign .ct-session-warning { min-width:280px;max-width:calc(100vw - 24px); }
}
body.review-redesign:has(:is(.ct-contract,.ct-pinpad):not([hidden] *)) { --ht-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif; }
body.review-redesign .ct-button { font-family:var(--ht-font);font-size:15px;font-weight:700;line-height:1.25; }
body.review-redesign .ct-field input,body.review-redesign .ct-login-ref { font-family:var(--ht-font);font-size:16px;font-weight:700;line-height:1.3; }
body.review-redesign .ct-inline-panel.ct-last-login>span:first-child { flex:0 0 30px; }
body.review-redesign .ct-last-login>div { flex:1;text-align:left; }
body.review-redesign .ct-login-error { margin:0;color:var(--ht-danger);font-size:14px; }
body.review-redesign .ct-pinpad[hidden],body.review-redesign .ct-alpha-keys[hidden],body.review-redesign .ct-login-ref[hidden] { display:none!important; }
body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar :is(#hallEquipment,#r7Bell,.tc-chip,.shift,.review-shift-state) { display:none!important; }
body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar { background:var(--ht-page);color:var(--ht-ink); }
body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar #r7HeaderTitle { font-family:var(--ht-font);font-size:22px;font-weight:780; }
body.review-redesign .ct-surface-heading { position:absolute;left:calc(var(--r7-rail-w,84px) + 256px);top:18px;margin:0;font-family:var(--ht-font);font-size:24px;line-height:36px;font-weight:780; }
@media(max-width:767px) {
 body.review-redesign .ct-surface-heading { display:none; }
 body.settings-open.review-redesign[data-navigation]:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar #r7HeaderTitle { font-size:18px!important;min-width:0!important;flex:1 1 0!important; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar #r7Operator { flex:none;gap:5px;padding:0; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar #r7Operator .session-time { font-size:11px;max-width:64px;white-space:normal; }
}
body.review-redesign .security-card.ct-approval { position:relative;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;background:var(--ht-pop);border:1px solid var(--ht-line-2);border-radius:20px;color:var(--ht-ink);overflow:auto; }
body.review-redesign .ct-approval>h2 { margin:0;padding-right:44px;font-size:22px;line-height:30px; }
body.review-redesign .ct-dialog-close { position:absolute;right:12px;top:8px;background:transparent;font-size:28px; }
body.review-redesign .ct-approval-summary { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
body.review-redesign .ct-approval-summary>div:first-child { flex:1;min-width:0; }
body.review-redesign .ct-approval-summary>b { font-size:16px; }
body.review-redesign .ct-approval-summary>strong { font-size:24px;color:var(--ht-warn-text); }
body.review-redesign .ct-approval-details { flex-basis:100%;font-size:14px;color:var(--ht-ink-2); }
body.review-redesign .ct-approval-grid { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;padding:12px 0; }
body.review-redesign .ct-approvers { display:flex;flex-direction:column;gap:8px;min-width:0; }
body.review-redesign .ct-approvers h3 { font-size:14px;color:var(--ht-ink-3); }
body.review-redesign .ct-approvers>.ct-note { margin-top:auto; }
body.review-redesign .ct-approver { display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:72px;padding:8px 12px;text-align:left; }
body.review-redesign .ct-approver>span:last-child { flex:1;min-width:0; }
body.review-redesign .ct-approver b { display:block; }
body.review-redesign .ct-approval .ct-pin-keys .ct-button { min-height:56px; }
body.review-redesign .ct-approval-footer { display:flex;align-items:center;gap:10px;border-top:1px solid var(--ht-line);padding-top:12px; }
body.review-redesign .ct-approval-footer .ct-primary { margin-left:auto; }
@media(max-width:599px) {
 body.review-redesign .ct-approval-grid { display:flex;flex-direction:column;gap:12px;padding:0; }
 body.review-redesign .ct-approver-list { display:flex;gap:6px;overflow:auto; }
 body.review-redesign .ct-approver { min-width:160px;min-height:56px;gap:8px;font-size:14px; }
 body.review-redesign .ct-approver .ct-avatar { --ct-avatar-size:32px!important; }
 body.review-redesign .ct-approval .ct-pin-keys .ct-button { min-height:56px; }
 body.review-redesign .ct-approvers>.ct-note { font-size:12px; }
 body.review-redesign .security-card.ct-approval { padding:16px;gap:10px; }
}
body.review-redesign #r7Page:not([hidden]):has(.ct-shift) { padding:0;overflow:hidden; }
body.review-redesign .ct-shift { display:flex;flex-direction:column;min-height:0;height:100%;background:var(--ht-page); }
body.review-redesign .ct-shift-grid { display:grid;grid-template-columns:420px minmax(0,1fr);gap:12px;min-height:0;flex:1;padding:22px 12px 12px; }
body.review-redesign .ct-shift-card { display:flex;flex-direction:column;gap:10px;padding:16px 18px;min-height:0;overflow:auto;border:1px solid var(--ht-edge);border-radius:18px;background:var(--ht-panel); }
body.review-redesign .ct-shift-card h3 { font-size:16px;font-weight:750; }
body.review-redesign .ct-shift-card .sv-row,body.review-redesign .ct-report-paper .sv-row { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-bottom:1px solid var(--ht-line);color:var(--ht-ink-2);font-size:15px; }
body.review-redesign .ct-shift-card .sv-row strong { color:var(--ht-ink); }
body.review-redesign .ct-shift-card-title { display:flex;align-items:center;gap:10px;margin-bottom:2px; }
body.review-redesign .ct-shift-card-title small { margin-left:auto;color:var(--ht-ink-3);font-size:14px; }
body.review-redesign .ct-blind { display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--ht-accent-soft); }
body.review-redesign .ct-blind svg { width:28px;height:28px;color:var(--ht-accent-text); }
body.review-redesign .ct-blind b { display:block;font-size:15px; }
body.review-redesign .ct-blind small { font-size:13px;color:var(--ht-ink-2); }
body.review-redesign .ct-shift-kv { display:flex;align-items:center;gap:10px;min-height:56px;border-bottom:1px solid var(--ht-line);font-size:15px; }
body.review-redesign .ct-shift-kv>span { flex:1;color:var(--ht-ink-2); }
body.review-redesign .ct-shift-kv .ct-text { padding-right:0; }
body.review-redesign .ct-movement { display:flex;align-items:center;gap:12px;min-height:60px;border-bottom:1px solid var(--ht-line);padding:6px 0; }
body.review-redesign .ct-movement:last-child { border:0; }
body.review-redesign .ct-movement time { color:var(--ht-ink-3);font-size:14px;font-weight:650; }
body.review-redesign .ct-movement>span:nth-child(3) { flex:1;min-width:0; }
body.review-redesign .ct-movement b { font-size:15px; }
body.review-redesign .ct-movement-icon { display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--ht-ok-soft);color:var(--ht-ok); }
body.review-redesign .ct-movement small { font-size:13.5px; }
body.review-redesign .ct-movement .ct-approved-by { color:var(--ht-warn-text); }
body.review-redesign .ct-shift-bar { display:flex;align-items:center;gap:8px;flex:none;min-height:80px;padding:10px 16px;border-top:1px solid var(--ht-line);background:var(--ht-panel-solid); }
body.review-redesign .ct-shift-bar .ct-primary { margin-left:auto; }
body.review-redesign .ct-shift-bar .ct-save-copy { margin-right:auto; }
body.review-redesign .ct-open-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.review-redesign .ct-money-entry { display:flex;flex-direction:column;gap:12px; }
body.review-redesign .ct-amount { display:flex;align-items:center;gap:10px;min-height:84px;padding:0 16px;border:1px solid var(--ht-line-2);border-radius:16px;background:var(--ht-field); }
body.review-redesign .ct-amount>span { color:var(--ht-ink-3);font-size:15px; }
body.review-redesign .ct-amount input { flex:1;min-width:0;width:0;border:0;padding:0;background:transparent;font-family:var(--ht-font);font-weight:850;font-size:36px;text-align:right;color:var(--ht-ink); }
body.review-redesign .ct-amount input::placeholder { font-size:22px;color:var(--ht-ink-3);font-weight:650; }
body.review-redesign .ct-amount small { color:var(--ht-ink-3);font-size:18px; }
body.review-redesign .ct-shift-open .ct-amount:focus-within { border-color:var(--ht-accent);outline:1px solid var(--ht-accent);outline-offset:-1px; }
body.review-redesign .ct-shift-open .ct-amount input:focus { outline:0;box-shadow:none; }
body.review-redesign :is(.ct-shift-open,.ct-shift-close) .ct-amount input:focus-visible {
  outline:2px solid var(--hx-select);
  outline-offset:2px;
  border-radius:3px;
}
body.review-redesign .ct-amount-keys .ct-button { min-height:72px; }
body.review-redesign .ct-shift-steps { display:flex;align-items:center;gap:18px;padding:0 20px;height:56px;flex:none;margin:0;list-style:decimal inside;border-bottom:1px solid var(--ht-line); }
body.review-redesign .ct-shift-steps li { color:var(--ht-ink-3);font-size:14px;font-weight:750; }
body.review-redesign .ct-shift-steps li[aria-current] { color:var(--ht-accent-text); }
body.review-redesign .ct-close-body { display:flex;flex-direction:column;gap:12px;padding:12px;flex:1;min-height:0;overflow:auto; }
body.review-redesign .ct-close-body>.ct-shift-card { flex:none; }
body.review-redesign .ct-close-body>.ct-shift-card:has(.ct-money-entry) { width:min(100%,660px);align-self:center;box-sizing:border-box; }
body.review-redesign .ct-close-body textarea { min-height:80px;padding:12px;border:1px solid var(--ht-line);border-radius:14px;color:var(--ht-ink);background:var(--ht-field);font-family:var(--ht-font);font-size:16px;resize:vertical; }
body.review-redesign .ct-count-result { display:flex;align-items:stretch;gap:16px;flex-wrap:wrap; }
body.review-redesign .ct-count-result>div { flex:1;padding:16px;border-radius:16px;background:var(--ht-raised); }
body.review-redesign .ct-count-result b { display:block;font-size:30px; }
body.review-redesign .ct-count-result>.ct-count-accepted { flex:1 0 100%;margin:0;font-size:16px;font-weight:700;color:var(--ht-ink); }
body.review-redesign .ct-count-result .ct-variance { background:var(--ht-danger-soft);color:var(--ht-danger); }
body.review-redesign .ct-error { margin:0;padding:0 16px;color:var(--ht-danger);font-size:14px; }
body.review-redesign .ct-error:empty { display:none; }
body.review-redesign .ct-report-wrap { flex:1;min-height:0;overflow:auto;padding:24px;display:flex;justify-content:center;align-items:flex-start; }
body.review-redesign .ct-report-paper { width:min(100%,440px);padding:28px;background:var(--ht-panel-solid);box-shadow:0 10px 25px -12px var(--ht-scrim);border:1px solid var(--ht-line);font-variant-numeric:tabular-nums; }
body.review-redesign .ct-report-paper h3 { text-align:center;font-size:24px; }
body.review-redesign .ct-report-paper p { text-align:center;margin:8px 0 18px; }
.ct-report-paper .ct-report-cash-breakdown { width:100%;border-collapse:collapse;margin-block:0 8px;font-size:15px; }
.ct-report-cash-breakdown caption { text-align:start;font-weight:700;padding-block:0 8px; }
.ct-report-cash-breakdown th,.ct-report-cash-breakdown td { padding:8px 0;border-bottom:1px solid var(--ht-line); }
.ct-report-cash-breakdown th { text-align:start;font-weight:400; }
.ct-report-cash-breakdown td { text-align:end;white-space:nowrap;padding-inline-start:8px; }
.ct-report-cash-breakdown tfoot :is(th,td) { font-weight:700; }
@media(max-width:900px) {
 body.review-redesign .ct-shift-grid { grid-template-columns:minmax(0,1fr);overflow:auto;padding-top:12px; }
 body.review-redesign .ct-shift-card { overflow:visible;min-height:auto; }
 body.review-redesign .ct-shift-bar { flex-wrap:wrap;padding:10px 12px; }
 body.review-redesign .ct-shift-bar>.ct-save-copy { flex-basis:100%; }
 body.review-redesign .ct-shift-bar .ct-button { min-height:44px; }
 body.review-redesign .ct-shift-steps { gap:10px;padding:0 12px; }
 body.review-redesign .ct-shift-steps li { font-size:12px; }
 body.review-redesign .ct-amount { min-height:72px;padding:0 12px; }
 body.review-redesign .ct-amount input { font-size:30px; }
 body.review-redesign .ct-amount-keys .ct-button { min-height:56px; }
 body.review-redesign .ct-count-result b { font-size:24px; }
 body.review-redesign .ct-movement { gap:8px; }
 body.review-redesign .ct-shift-kv { gap:6px; }
}
@media print {
 body.review-redesign:has(#r7Page:not([hidden]) .ct-shift-report) * { visibility:hidden; }
 body.review-redesign:has(#r7Page:not([hidden]) .ct-shift-report) .ct-report-paper,body.review-redesign:has(#r7Page:not([hidden]) .ct-shift-report) .ct-report-paper * { visibility:visible; }
 body.review-redesign .ct-shift-report .ct-report-paper { position:fixed;inset:0;width:80mm;border:0;box-shadow:none;background:white;color:black; }
}
body.review-redesign .ct-surface-heading { display:flex;align-items:center;gap:14px; }
body.review-redesign .ct-mode-badge { display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:20px;font-size:14px;font-weight:700;color:var(--ht-ok);background:var(--ht-ok-soft); }
body.review-redesign .ct-mode-control { padding:0;min-height:44px;background:transparent; }
body.review-redesign .ct-legacy-security { gap:12px!important;padding:20px 12px 0!important;overflow:auto!important; }
body.review-redesign .ct-legacy-security>.ct-security-grid { padding:0;flex:none; }
body.review-redesign .ct-legacy-security>.ct-shift-bar { margin:0 -12px;margin-top:auto; }
body.review-redesign .ct-legacy-security p { font-size:15px;color:var(--ht-ink-2); }
body.review-redesign .ct-migration { display:flex;flex-direction:column;gap:14px; }
body.review-redesign .ct-migration>.ct-pinpad { width:min(100%,360px);align-self:center; }
body.review-redesign .modal:has(.ct-migration) { width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);color:var(--ht-ink);background:var(--ht-pop); }
@media(max-width:767px) {
 body.review-redesign .ct-surface-heading { display:none; }
 body.review-redesign .ct-security-form>.ct-mode-control { align-self:flex-start;margin:10px 12px 0; }
}
body.review-redesign .ct-mobile-mode { display:none; }
@media(max-width:767px) { body.review-redesign .ct-security-form>.ct-mobile-mode { display:inline-flex; } }
body.r7-page-open.review-redesign:has(#r7Page:not([hidden]) .ct-shift) .topbar :is(#hallEquipment,#r7Bell,.tc-chip,.shift) { display:none!important; }
body.r7-page-open.review-redesign:has(#r7Page:not([hidden]) .ct-shift) .topbar #r7HeaderTitle { font-family:var(--ht-font);font-size:24px; }
body.review-redesign :is(.ct-settings-back,.ct-compact-brand) { display:none; }
@media(max-width:767px) {
 body.settings-open.review-redesign[data-navigation]:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar .ct-settings-back { display:flex;flex:none;min-width:44px!important;width:44px;min-height:44px!important;height:44px;padding:0;background:transparent;font-size:32px; }
 body.settings-open.review-redesign[data-navigation]:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar .top-brand { flex:0 0 28px!important;width:28px!important;min-width:28px!important; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar .top-brand .brand-emblem { display:none; }
 body.review-redesign .ct-compact-brand { display:block;width:24px;height:28px; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar .ct-compact-brand .hitru-logo-main { width:24px!important;height:28px; }
 body.settings-open.review-redesign[data-navigation]:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar #r7Operator { flex:0 0 auto!important;min-width:96px!important;gap:6px;padding:0 4px!important; }
 body.review-redesign .settings-page.ct-settings-menu { display:block; }
 body.review-redesign .settings-page.ct-settings-menu .sv-submenu { display:block!important;position:static;overflow:auto;width:100%;height:100%;border:0;box-sizing:border-box; }
 body.review-redesign .settings-page.ct-settings-menu .sv-content { display:none; }
 body.review-redesign .settings-page.ct-settings-menu .sv-submenu>header { display:none; }
 body.settings-open.review-redesign:has(.ct-settings-menu) .topbar .ct-settings-back { display:none; }
}
body.review-redesign .ct-contract :is(b,strong),body.review-redesign .ct-button :is(b,strong) { font-weight:750; }
body.review-redesign .ct-role-row>span:first-child { display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:var(--ht-raised-2); }
body.review-redesign .ct-role-row>span:nth-child(2) { text-align:left; }
body.review-redesign .ct-policy-card>h3:has(+.ct-toggle) { display:flex; }
body.review-redesign .ct-policy-card.ct-policy-timer>h3 { display:none; }
body.review-redesign .ct-toggle { min-height:56px;margin-block:-8px; }
body.review-redesign .ct-toggle input { width:64px;min-width:64px;height:40px;min-height:40px;max-height:40px;max-width:64px;flex:0 0 64px;margin:0;padding:0;box-sizing:border-box; }
body.review-redesign .ct-always-on { margin-left:auto;background:var(--ht-raised-2);color:var(--ht-ink-3);font-size:11px; }
body.review-redesign .ct-policy-card h3 { font-family:var(--ht-font);font-weight:750; }
body.review-redesign #r7Page:not([hidden]):has(.ct-shift) { display:flex;flex-direction:column;height:calc(100dvh - 72px);align-content:stretch; }
body.review-redesign #r7Page:not([hidden])>.ct-shift { flex:1;height:auto;min-height:0; }
body.r7-page-open.review-redesign:has(#r7Page:not([hidden]) .ct-shift) .topbar :is(#r7SystemState,#r7Search) { display:none!important; }
body.review-redesign .topbar #r7Operator:has(.session-time:not([hidden])) { border-radius:28px; }
body.review-redesign .topbar #r7Operator:focus-visible { outline-width:2px;border-radius:28px; }
@media(max-width:767px) { body.review-redesign #r7Page:not([hidden]):has(.ct-shift) { height:calc(100dvh - 140px); } }
@media(max-width:767px) { body.review-redesign .ct-pin-length { display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); } }
body.review-redesign .security-card.ct-pin-handoff { width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;font-family:var(--ht-font);background:var(--ht-card);border-color:var(--ht-line);border-radius:24px; }
body.review-redesign .ct-pin-handoff-footer { display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--ht-line);padding-top:16px; }
body.review-redesign .security-card.ct-pin-handoff h2 { font-size:22px;line-height:1.25;margin-bottom:12px; }
@media(max-width:599px) { body.review-redesign .ct-pin-handoff-grid { display:flex;flex-direction:column;gap:12px; }body.review-redesign .ct-pin-handoff-footer>* { flex:1; } }
body.review-redesign .ct-count-grid { display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:12px;flex:1;min-height:0; }
body.review-redesign .ct-denom-table { overflow:auto;padding:6px 18px; }
body.review-redesign .ct-denom-row { display:grid;grid-template-columns:minmax(80px,1fr) 200px minmax(80px,2fr);gap:8px;align-items:center;min-height:60px;border-bottom:1px solid var(--ht-line); }
body.review-redesign .ct-denom-row>b:last-child { text-align:right;font-size:18px; }
body.review-redesign .ct-denom-stepper { display:flex;align-items:center;background:var(--ht-field);border:1px solid var(--ht-line);border-radius:16px; }
body.review-redesign .ct-denom-stepper.is-selected { outline:2px solid var(--ht-accent);background:var(--ht-accent-soft); }
body.review-redesign .ct-denom-stepper .ct-button { background:transparent;border:0;padding:0;min-width:56px;border-radius:14px; }
body.review-redesign .ct-denom-stepper .ct-button:nth-child(2) { flex:1;white-space:nowrap;font-size:18px; }
body.review-redesign .ct-denom-coins { background:var(--ht-field); }
body.review-redesign .ct-count-side { display:flex;flex-direction:column;gap:12px;min-width:0; }
body.review-redesign .ct-count-summary { display:flex;justify-content:space-between;align-items:center;gap:8px; }
body.review-redesign .ct-count-summary>b { font-size:30px;white-space:nowrap; }
body.review-redesign .ct-count-keyboard { display:flex;flex-direction:column;gap:10px; }
body.review-redesign .ct-count-keyboard .ct-money-entry { width:100%; }
body.review-redesign .ct-count-keyboard .ct-amount { display:grid;grid-template-columns:minmax(0,1fr) 7ch auto;gap:8px;align-items:center; }
body.review-redesign .ct-count-keyboard .ct-amount>input { width:100%;font-size:clamp(22px,3vw,36px); }
body.review-redesign .ct-count-keyboard .ct-amount>small { align-self:center; }
body.review-redesign .ct-count-keyboard .ct-amount-keys { width:100%; }
body.review-redesign .ct-count-keyboard .ct-money-entry>.ct-button:disabled { display:none; }
body.review-redesign .ct-movement-form { display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px; }
body.review-redesign .ct-movement-fields { display:flex;flex-direction:column;gap:16px; }
body.review-redesign .ct-movement-fields textarea { min-height:96px;width:100%;box-sizing:border-box;padding:12px;background:var(--ht-field);border:1px solid var(--ht-line);border-radius:14px;color:var(--ht-ink);font:inherit;resize:vertical; }
body.review-redesign .ct-shift-bar { flex-wrap:wrap; }
@media(max-width:767px){
 body.review-redesign .ct-count-grid { display:flex;flex-direction:column;flex:none; }
 body.review-redesign .ct-denom-table { max-height:240px;flex:none;padding:4px 10px; }
 body.review-redesign .ct-denom-row { grid-template-columns:minmax(70px,1fr) 168px minmax(40px,1fr);gap:4px;font-size:13px; }
 body.review-redesign .ct-denom-row>b:last-child { font-size:13px; }
 body.review-redesign .ct-denom-stepper .ct-button:nth-child(2) { font-size:14px; }
 body.review-redesign .ct-count-side { flex:none; }
 body.review-redesign .ct-movement-form { display:flex;flex-direction:column;gap:16px; }
 body.review-redesign .ct-count-keyboard .ct-money-entry { width:100%; }
}
body.review-redesign .ct-warning-copy { flex:1;min-width:0;line-height:1.25;white-space:normal; }
body.review-redesign .ct-session-warning { gap:8px;box-sizing:border-box; }
body.review-redesign .ct-session-warning>.svgi { flex:none;width:18px;height:18px; }
body.review-redesign .ct-contract .ct-button:focus-visible { outline:2px solid var(--ht-accent);outline-offset:2px; }
body.review-redesign .ct-pin-keys .ct-button:active { outline:2px solid var(--ht-accent);outline-offset:-2px;background:var(--ht-accent-soft); }
#modal:has(.ct-cash-movement) #wizardBar { flex-wrap:wrap; }
body.review-redesign .ct-account-locked { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;margin-bottom:12px;border-radius:14px;background:var(--ht-warn-soft);color:var(--ht-warn-text); }
body.review-redesign .ct-account-locked .ct-note { color:inherit; }

/* Only the owned Staff, cash and Security dialogs use the approved frame. */
body.review-redesign #modal .modal:has(.modal-body.ct-contract) { background:var(--ht-pop);color:var(--ht-ink);border:1px solid var(--ht-line-2);border-radius:20px; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .security-chrome { display:none; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .modal-head { padding:18px 24px;gap:16px;border-color:var(--ht-line); }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) #modalTitle { flex:1;margin:0;text-align:left;font-size:24px;line-height:1.25; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .modal-body { background:var(--ht-pop);color:var(--ht-ink);padding:24px; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .wizard-bar { padding:16px 24px;gap:12px;background:var(--ht-panel-solid);border-color:var(--ht-line);justify-content:flex-end; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .ct-button { background:var(--ht-raised-2);color:var(--ht-ink);border:0;box-shadow:none;font-size:15px;min-height:56px; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .ct-button[aria-pressed=true] { background:var(--ht-accent-soft);color:var(--ht-accent-text);box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .ct-primary { background:var(--ht-primary);color:var(--ht-primary-ink); }
body.review-redesign #modal .modal:has(.modal-body.ct-contract) .ct-button:focus-visible { outline:2px solid var(--ht-accent);outline-offset:2px; }
@media(max-width:599px) { body.review-redesign #modal .modal:has(.modal-body.ct-contract) :is(.modal-head,.modal-body,.wizard-bar) { padding:16px; } }
body.review-redesign .settings-page:has(.ct-contract) .sv-menu-title { display:none; }
body.review-redesign .ct-compare-scroll { width:100%;max-width:100%;min-width:0;box-sizing:border-box; }
body.review-redesign .ct-compare-tools { flex-wrap:wrap; }
@media(min-width:768px) and (max-width:1179px) {
 body.settings-open .settings-page:has(.ct-contract) { display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden; }
 body.review-redesign .settings-page:has(.ct-contract):not(.ct-settings-menu) .sv-submenu { display:none; }
 body.review-redesign .settings-page:has(.ct-contract) .sv-content { display:flex;min-width:0;grid-column:1 / -1;width:100%; }
}
/* A refused staff or security screen keeps the same gutter as the other settings refusals. */
@media(min-width:768px) { body.review-redesign .settings-page .sv-body.ct-contract > .sv-denied { margin:30px 34px 0; } }

@media(min-width:768px) and (max-width:1179px) {
 body.settings-open.review-redesign:has(.ct-contract) .topbar #r7Operator { flex:0 0 auto!important;width:auto!important;max-width:300px!important;gap:8px; }
 body.settings-open.review-redesign:has(.ct-contract) .topbar #r7Operator .r7-operator-text { display:grid!important; }
}

@media(max-width:599px) { body.review-redesign .ct-denom-row>b { min-width:0;white-space:normal;overflow-wrap:anywhere; } }
body.review-redesign .ct-legacy-security>.ct-policy-card>.ct-two>div { padding:14px;border-radius:14px;background:var(--ht-raised); }
body.review-redesign .ct-legacy-security>.ct-policy-card>.ct-two>div:first-child { background:var(--ht-warn-soft); }

body.review-redesign #ctShiftState { flex:none;max-width:250px;white-space:normal;font-size:13px;color:var(--ht-ink-3);background:var(--ht-raised); }
@media(max-width:767px) { body.review-redesign #ctShiftState { display:none; } }

body.review-redesign .ct-compare .ct-mode { width:100%;padding:0 8px;font-size:13px;white-space:nowrap; }
body.review-redesign .ct-compare .ct-mode:disabled { opacity:1; }
body.review-redesign .ct-compare .ct-mode.is-changed { outline:2px solid var(--ht-accent);outline-offset:-2px; }
body.review-redesign .ct-compare .ct-compare-group th { color:var(--ht-ink-3);background:var(--ht-raised);padding:10px 6px;font-size:12px;letter-spacing:.06em; }

/* Contract staff/shift: these rules apply only while an owned surface is active. */
body.review-redesign .ct-avatar .svgi { width:55%;height:55%; }
body.review-redesign .ct-login-brand { align-items:center;gap:10px; }
body.review-redesign .ct-login-wordmark { font-size:24px; }
body.review-redesign .ct-login-center { color:var(--ht-ink-3);font-size:16px; }
body.review-redesign .ct-login-facts { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
body.review-redesign .ct-login-facts>span { padding:6px 10px;border-radius:20px;background:var(--ht-raised);font-size:13px; }
body.review-redesign .ct-pinpad,body.review-redesign .ct-pin-field { max-width:100%;min-width:0;box-sizing:border-box; }
body.review-redesign .ct-pin-input { max-width:100%;box-sizing:border-box; }
body.review-redesign .ct-session-warning { white-space:nowrap;flex-wrap:nowrap;width:max-content;max-width:calc(100vw - 24px); }
body.review-redesign .ct-session-warning .ct-warning-copy { white-space:nowrap; }
body.review-redesign .session-time { display:inline-flex;align-items:center;gap:5px;white-space:nowrap; }
body.review-redesign .session-time .svgi { width:16px;height:16px; }
body.review-redesign .ct-compare { table-layout:fixed;min-width:calc(190px + var(--ct-role-count)*88px); }
body.review-redesign .ct-compare th:first-child { width:190px;min-width:190px; }
body.review-redesign .ct-compare th:not(:first-child),body.review-redesign .ct-compare td { width:88px;min-width:88px;box-sizing:border-box; }
body.review-redesign .ct-compare th { overflow-wrap:anywhere;font-size:13px; }
body.review-redesign .ct-compare .ct-mode { min-width:44px; }
body.review-redesign .ct-compare .ct-mode .svgi { width:22px;height:22px; }
body.review-redesign .ct-count-ok { background:var(--ht-ok-soft);border:1px solid var(--ht-ok); }
body.review-redesign .ct-count-keyboard { --kh:clamp(56px,calc((100dvh - 560px)/4),78px); }
body.review-redesign .ct-count-keyboard .ct-amount-keys .ct-button { height:var(--kh);min-height:var(--kh); }
body.review-redesign .ct-count-keyboard>.ct-button { flex:none;min-height:56px; }
body.review-redesign .ct-denom-stepper.is-selected { outline:none;box-shadow:inset 0 0 0 2px var(--ht-accent); }
body.review-redesign .ct-denom-table:has(.ct-denom-stepper .ct-button:focus-visible) .ct-denom-stepper.is-selected { box-shadow:none; }
body.review-redesign .ct-denom-table:has(.ct-denom-coins:focus-visible) .ct-denom-stepper.is-selected { box-shadow:none; }
body.review-redesign .ct-pin-keys .ct-button:active { outline:none; }
@media(min-width:768px) {
 body.review-redesign .ct-close-body:has(.ct-count-grid) { overflow:hidden; }
 body.review-redesign .ct-count-grid { max-height:100%; }
 body.review-redesign .ct-denom-table { min-height:0;overflow-y:auto; }
 body.review-redesign .ct-count-side { min-height:0; }
}
@media(min-width:768px) and (max-width:1024px) {
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) { --hx-rail-w:0px!important; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) #r7Navigation { display:none!important; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) #receptionWorkspace { grid-template-columns:0 minmax(0,1fr)!important; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .topbar .ct-settings-back { display:flex;min-width:44px;width:44px;padding:0;background:transparent; }
 body.settings-open.review-redesign:has(:is(.ct-staff,.ct-security,.ct-legacy-security)) .settings-page { grid-template-columns:211px minmax(0,1fr); }
}
body.review-redesign:has(.ct-shift) #r7Navigation .r7-nav-entry[aria-current=page] { background:var(--ht-accent-soft);color:var(--ht-accent-text); }
body.review-redesign .session-time[hidden],body.review-redesign .ct-contract [hidden] { display:none!important; }
body.review-redesign .ct-pin-length-select { min-height:56px;width:100%;padding:0 12px;border:1px solid var(--ht-line);border-radius:14px;background:var(--ht-field);color:var(--ht-ink);font:inherit; }
body.review-redesign .ct-own-role { display:inline-flex;padding:4px 10px;background:var(--ht-accent-soft);color:var(--ht-accent-text);border-radius:12px;font-size:13px;align-self:flex-start; }
body.review-redesign .topbar #r7Operator .session-time[hidden] { display:none!important; }
body.review-redesign .topbar #r7Operator .session-time { align-items:center;gap:5px; }
@media(min-width:768px) and (max-width:1179px) {
 body.review-redesign:has(:is(.ct-shift,.ct-staff,.ct-security,.ct-legacy-security,.ct-approval)) .topbar #r7Operator { flex:0 0 auto!important;width:auto!important;max-width:min(360px,46vw)!important;min-width:0!important;gap:8px;padding:0 8px!important; }
 body.review-redesign:has(:is(.ct-shift,.ct-staff,.ct-security,.ct-legacy-security,.ct-approval)) .topbar #r7Operator .r7-operator-text { display:grid!important;min-width:0; }
}
body.review-redesign .ct-shift-steps { list-style:none;counter-reset:cash-step; }
body.review-redesign .ct-shift-steps li { counter-increment:cash-step;display:flex;align-items:center;gap:7px; }
body.review-redesign .ct-shift-steps li::before { content:counter(cash-step);display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--ht-line-2);border-radius:50%;font-size:12px; }
body.review-redesign .ct-shift-steps li[aria-current]::before { background:var(--ht-accent-soft);border-color:var(--ht-accent); }
body.review-redesign .ct-denom-row>b:first-child { display:flex;gap:8px;align-items:baseline; }
body.review-redesign .ct-denom-row>b:first-child>small { color:var(--ht-ink-3);font-size:12px; }
body.review-redesign .ct-compare thead th { font-size:12px; }
body.review-redesign .ct-compare-tools .ct-segment .ct-button { white-space:nowrap; }
body.review-redesign .ct-permission-row .ct-segment .ct-button { white-space:nowrap;gap:5px; }
body.review-redesign .ct-compare-tools>.ct-note { display:flex;align-items:center;gap:8px;color:var(--ht-warn-text); }
body.review-redesign .ct-compare-tools>.ct-note .svgi { width:18px;height:18px; }
body.review-redesign .ct-login-ref:not([aria-invalid=true]) { border-color:var(--ht-line);box-shadow:none; }
body.review-redesign .ct-login-ref:not([aria-invalid=true]):focus { border-color:var(--ht-accent); }
body.review-redesign .ct-login-ref[aria-invalid=true] { border-color:var(--ht-danger);box-shadow:inset 0 0 0 1px var(--ht-danger); }
body.review-redesign .ct-pin-message { display:flex;align-items:center;gap:6px; }
body.review-redesign .ct-pin-message .svgi { flex:none;width:18px;height:18px; }

/* Staff: keep the count keyboard reachable and the owned surfaces legible. */
body.review-redesign .ct-login-who { margin-top:36px!important;padding-top:0; }
body.review-redesign .ct-approval input { box-sizing:border-box;width:100%;max-width:100%; }
body.review-redesign .ct-approval-summary { display:block; }
body.review-redesign .ct-approval-summary>b { font-size:18px;line-height:1.5;overflow-wrap:anywhere; }
body.review-redesign .ct-alpha-erase svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7; }
body.review-redesign .ct-pin-field.is-error:focus-within { outline:none;box-shadow:none; }
body.review-redesign .ct-pin-keys button:disabled,
body.review-redesign .ct-login-submit:disabled { color:var(--ht-ink-3);opacity:1; }
body.review-redesign .ct-pin-steps { list-style:none;padding-left:0;counter-reset:pin-step; }
body.review-redesign .ct-pin-steps li { display:flex;align-items:center;gap:12px;counter-increment:pin-step; }
body.review-redesign .ct-pin-steps li::before { content:counter(pin-step);display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid currentColor;border-radius:50%;font-variant-numeric:tabular-nums; }
body.review-redesign .ct-count-result b,
body.review-redesign .ct-count-summary strong,
body.review-redesign .ct-denom-money { white-space:nowrap;font-variant-numeric:tabular-nums; }
body.review-redesign .ct-expected-breakdown { grid-column:1/-1;width:100%;border-top:1px solid var(--ht-line);padding-top:12px; }
body.review-redesign .ct-expected-breakdown h3 { font-size:14px;margin:0 0 8px; }
body.review-redesign .ct-close-body>.ct-shift-card:has(textarea) { border:0;box-shadow:none;background:transparent;padding-inline:0; }
body.review-redesign .ct-dialog-close { border:0!important;box-shadow:none!important;background:transparent!important; }
body.review-redesign:has(.ct-contract) #toast:not(.error) { top:auto;bottom:12px;right:12px;left:auto;width:max-content;max-width:calc(100vw - 24px);pointer-events:none; }
@media(min-width:768px) and (max-width:1100px) {
 body.review-redesign:has(#r7Page:not([hidden]) :is(.ct-staff,.ct-security,.ct-legacy-security)) .settings-subnav { min-width:0; }
 body.review-redesign:has(#r7Page:not([hidden]) :is(.ct-staff,.ct-security,.ct-legacy-security)) .settings-subnav button { white-space:normal;overflow:visible;text-overflow:clip; }
}
@media(max-width:767px) {
 body.review-redesign .ct-login-who { margin-top:20px!important; }
 body.review-redesign .ct-close-body:has(.ct-count-grid) { flex:1;min-height:0;overflow:hidden; }
 body.review-redesign .ct-count-grid { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:8px;flex:1;min-height:0;width:100%; }
 body.review-redesign .ct-count-side { display:contents; }
 body.review-redesign .ct-denom-table { min-height:0;overflow:auto; }
 body.review-redesign .ct-count-summary { display:flex;align-items:center;justify-content:space-between;padding:8px 12px; }
 body.review-redesign .ct-count-summary strong { font-size:24px; }
 body.review-redesign .ct-count-keyboard { width:100%;min-width:0;padding:8px;--kh:clamp(40px,6dvh,52px); }
 body.review-redesign .ct-count-keyboard .ct-money-entry { gap:6px; }
 body.review-redesign .ct-count-keyboard .ct-amount { min-height:48px; }
 body.review-redesign .ct-count-keyboard .ct-amount input { font-size:26px; }
 body.review-redesign .ct-count-keyboard .ct-pin-keys { gap:6px; }
 body.review-redesign .ct-count-keyboard .ct-button { min-width:0; }
 body.review-redesign .ct-close .ct-shift-bar { flex:none;position:relative;bottom:auto; }
 body.review-redesign .ct-close .ct-shift-bar>.ct-primary { white-space:nowrap; }
 body.review-redesign #r7Operator .session-time { display:none!important; }
 body.review-redesign #r7Operator .ct-session-warning { position:fixed;top:76px;left:12px;right:12px;width:auto;max-width:none;white-space:nowrap;z-index:20; }
 body.review-redesign .ct-session-warning .ct-warning-copy { font-size:12px; }
 body.review-redesign .ct-role-permissions { overflow:auto;mask-image:linear-gradient(to right,#000 94%,transparent); }
}
body.review-redesign .ct-count-grid { grid-template-rows:auto minmax(0,1fr); }
body.review-redesign .ct-count-records { display:contents; }
body.review-redesign .ct-count-records>.ct-denom-table { grid-column:1;grid-row:1 / span 2; }
body.review-redesign .ct-count-records>.ct-count-summary { grid-column:2;grid-row:1; }
body.review-redesign .ct-count-grid>.ct-count-keyboard { grid-column:2;grid-row:2; }
body.review-redesign .ct-reset-session .r7-operator-avatar { background:transparent;border:1px solid var(--ht-line-2); }
body.review-redesign .ct-reset-session .r7-operator-avatar svg { fill:none;stroke:currentColor;stroke-width:1.6;width:20px;height:20px; }
@media(max-width:767px) {
 body.review-redesign .ct-count-grid { grid-template-rows:minmax(0,1fr) auto; }
 body.review-redesign .ct-count-records { display:block;min-height:0;overflow:auto; }
 body.review-redesign .ct-count-records>.ct-denom-table { overflow:visible; }
 body.review-redesign .ct-count-records>.ct-count-summary { flex-direction:row;min-height:44px;padding:8px;margin-top:8px; }
 body.review-redesign .ct-count-summary b { font-size:22px; }
 body.review-redesign .ct-count-grid>.ct-count-keyboard { grid-column:1;grid-row:2;--kh:40px; }
 body.review-redesign .ct-count-keyboard .ct-button { min-height:40px; }
 body.review-redesign .ct-shift-close .ct-shift-bar { display:flex;flex-wrap:nowrap;gap:6px;padding:8px 12px; }
 body.review-redesign .ct-shift-close .ct-shift-bar>.ct-save-copy { display:none; }
 body.review-redesign .ct-shift-close .ct-shift-bar>.ct-button { min-height:44px;padding:8px;font-size:12px;white-space:nowrap; }
 body.review-redesign .ct-shift-close .ct-shift-bar>.ct-primary { flex:1; }
 body.review-redesign .topbar #r7Operator.r7-operator .session-time { display:none!important; }
}
@media(max-width:767px) {
 body.review-redesign .ct-denom-row { grid-template-columns:62px minmax(124px,1fr) 90px;gap:4px;font-size:12px; }
 body.review-redesign .ct-denom-row>b { white-space:nowrap; }
 body.review-redesign .ct-denom-row>b:last-child { text-align:right; }
 body.review-redesign .ct-denom-stepper { min-width:0; }
}
body.review-redesign .ct-search-wrap { display:flex;align-items:center;gap:8px;border:1px solid var(--ht-line-2);border-radius:12px;background:var(--ht-field);padding-left:12px;min-width:0; }
body.review-redesign .ct-search-wrap>span { display:flex;flex:none;color:var(--ht-ink-3); }
body.review-redesign .ct-search-wrap svg { width:18px;height:18px; }
body.review-redesign .ct-list-tools .ct-search-wrap input { min-width:0;width:100%;border:0;background:transparent;box-shadow:none; }
@media(max-width:767px) {
 body.review-redesign .ct-compare-scroll { position:relative;mask-image:linear-gradient(to right,#000 94%,transparent); }
 body.review-redesign .ct-compare-scroll::after { content:'›';position:sticky;right:0;bottom:8px;float:right;display:grid;place-items:center;width:28px;height:28px;background:var(--ht-card);color:var(--ht-accent-text);border-radius:50%;pointer-events:none; }
}
@media(min-width:768px) {
 body.review-redesign .topbar #r7Operator.ct-session-legacy { width:auto!important;max-width:none!important;flex:none; }
 body.review-redesign #r7Operator.ct-session-legacy .r7-operator-text,
 body.review-redesign #r7Operator.ct-session-legacy .r7-operator-text strong { max-width:none!important;white-space:nowrap;overflow:visible;text-overflow:clip; }
}
body.review-redesign .ct-readiness-count { display:block;font-size:24px;margin-bottom:12px; }
body.review-redesign .ct-opening-seniors { margin-top:24px;padding-top:16px;border-top:1px solid var(--ht-line); }
body.review-redesign .topbar .ct-legacy-exit { flex:none;min-height:44px;gap:6px;padding:6px 10px;background:transparent;border:0; }
@media(max-width:767px) { body.review-redesign .topbar .ct-legacy-exit { display:none; } }
body.review-redesign:has(#r7Page:not([hidden]) :is(.ct-staff,.ct-security,.ct-legacy-security)) .settings-page .sv-menu-item>span:not(.sv-icon):not(.sv-menu-status) { min-width:0;flex:1;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3; }
body.review-redesign:has(#r7Page:not([hidden]) :is(.ct-staff,.ct-security,.ct-legacy-security)) .settings-page .sv-menu-item { min-height:48px;height:auto; }
body.review-redesign .ct-login-facts { margin-bottom:0; }
body.review-redesign .ct-approval .ct-pin-field { width:100%;min-width:0;box-sizing:border-box; }
body.review-redesign .ct-login .ct-primary:disabled,
body.review-redesign .ct-approval .ct-primary:disabled { opacity:1;color:var(--ht-ink-3);background:var(--ht-raised);border-color:var(--ht-line-2); }

body.review-redesign .topbar:has(.ct-session-warning),
body.review-redesign .topbar #r7Operator:has(.ct-session-warning) { overflow:visible!important; }
@media(max-width:767px) {
 body.review-redesign .ct-count-records>.ct-denom-table { max-height:none;height:auto; }
}
body.review-redesign .topbar:has(.ct-session-warning) { position:relative;z-index:60; }
body.review-redesign .ct-session-warning { right:12px;padding:6px 10px; }
body.review-redesign .ct-session-warning .ct-button { height:44px;min-height:44px;padding:6px 10px; }
body.review-redesign .ct-count-result:has(.ct-expected-breakdown) { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start; }
body.review-redesign .ct-count-result .ct-expected-breakdown { grid-column:1/-1; }
body.review-redesign .ct-expected-breakdown .sv-row { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 0; }
body.review-redesign .ct-expected-breakdown .sv-row strong { white-space:nowrap; }
@media(max-width:767px) { body.review-redesign .ct-count-result:has(.ct-expected-breakdown) { grid-template-columns:minmax(0,1fr); } }

body.review-redesign .ct-compare-tools { position:relative; }
body.review-redesign .ct-compare-cue { display:none; }
@media(max-width:767px) {
 body.review-redesign .ct-compare-cue { position:absolute;right:4px;bottom:-40px;z-index:5;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ht-raised);color:var(--ht-accent-text);font-size:26px;pointer-events:none; }
 body.review-redesign .ct-compare-scroll::after { content:none; }
}
/* Staff shift: contract states and touch targets. */
body.review-redesign .ct-shift-steps li.is-complete::before { content:'✓';color:var(--ht-ok);border-color:var(--ht-ok); }
body.review-redesign .ct-variance-details { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start; }
body.review-redesign .ct-variance-details:not(:has(.ct-expected-breakdown)) { grid-template-columns:minmax(0,1fr); }
body.review-redesign .ct-expected-breakdown { padding:20px;border-radius:16px;background:var(--ht-raised); }
body.review-redesign .ct-expected-breakdown .sv-row { display:flex;justify-content:space-between;gap:16px; }
body.review-redesign .ct-variance-reason { padding:0;border:0;background:transparent; }
body.review-redesign .ct-variance-reason .ct-segment { display:flex;flex-wrap:wrap;gap:6px;border:0;padding:0;background:transparent;box-shadow:none; }
body.review-redesign .ct-variance-reason .ct-segment .ct-button { flex:1 1 116px;min-height:44px;border:0;border-radius:12px;background:var(--ht-raised); }
body.review-redesign .ct-variance-reason textarea { border:0!important;background:transparent;resize:none;min-height:76px;box-shadow:none; }
body.review-redesign .ct-confirmers { display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px; }
body.review-redesign .ct-confirmers p { margin:0; }
body.review-redesign .ct-role-provenance { display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px; }
body.review-redesign .ct-legacy-badge { color:var(--ht-warn-text);background:var(--ht-warn-soft);gap:8px; }
body.review-redesign .ct-legacy-badge::before { content:'';width:7px;height:7px;border-radius:50%;background:currentColor; }
body.review-redesign .ct-legacy-security h4,body.review-redesign .ct-impact-line { display:flex;align-items:center;gap:10px; }
body.review-redesign .ct-legacy-security h4 svg,body.review-redesign .ct-impact-line svg { width:20px;height:20px;flex:none; }
body.review-redesign .ct-legacy-duration { display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px; }
body.review-redesign .ct-legacy-stepper { display:flex;align-items:center;gap:10px;white-space:nowrap; }
body.review-redesign .ct-legacy-stepper .ct-button { min-width:44px;min-height:44px;padding:8px; }
body.review-redesign .ct-login-success-toast { grid-column:2;justify-self:end;display:flex;align-items:center;gap:10px;min-height:44px;padding:12px 16px;border:1px solid var(--ht-line-2);border-radius:24px;background:var(--ht-raised);font-size:14px;margin-top:12px; }
body.review-redesign .ct-login-success-toast svg { width:20px;height:20px;color:var(--ht-ok); }
body.review-redesign #modal .modal:has(.modal-body.ct-contract.ct-cash-movement) #modalClose { border:0;background:transparent;box-shadow:none; }
body.review-redesign .ct-cash-movement .ct-amount input { border:0;background:transparent;box-shadow:none; }
@media(max-width:767px) {
 body.review-redesign .ct-variance-details { grid-template-columns:minmax(0,1fr);gap:16px; }
 body.review-redesign .ct-count-grid>.ct-count-keyboard { --kh:44px; }
 body.review-redesign .ct-count-keyboard .ct-button,body.review-redesign .ct-denom-stepper .ct-button { min-height:44px; }
 body.review-redesign .ct-count-keyboard .ct-amount>span { position:static;white-space:nowrap;font-size:12px; }
 body.review-redesign .ct-login-success-toast { grid-column:1;position:fixed;left:16px;right:16px;bottom:calc(104px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 32px);margin-top:0;z-index:2; }
 body.review-redesign .ct-compare-cue { right:-8px;bottom:-46px;width:20px;height:28px; }
}

body.review-redesign .ct-variance-details>.ct-expected-breakdown { grid-column:auto;width:auto;min-width:0; }

/* Staff shift: approved state geometry, scoped to the owned staff/cash flows. */
body.review-redesign .ct-shift-bar .ct-primary:disabled,
body.review-redesign .ct-approval .ct-primary:disabled,
body.review-redesign .ct-login .ct-primary:disabled {
 opacity:1;background:var(--ht-raised);color:var(--ht-ink-3);border-color:var(--ht-line-2);box-shadow:none;
}
body.review-redesign .ct-approval-summary p { margin:0;color:var(--ht-ink-3);font-size:14px;font-weight:600;line-height:1.4; }
body.review-redesign .ct-login-footer { display:block; }
body.review-redesign .ct-login-footer .ct-primary { width:100%;justify-content:center; }
body.review-redesign .ct-cash-movement textarea { border:0!important;box-shadow:none!important;background:transparent;resize:none; }
body.review-redesign .ct-variance-reason { min-width:0;overflow:visible; }
body.review-redesign .ct-variance-reason h3 { padding-inline:1px; }
body.review-redesign .ct-variance-status { margin:0 0 12px;padding:10px 12px;border-radius:10px;background:var(--ht-warn-soft);color:var(--ht-warn-text);font-size:13px;line-height:1.4; }
body.review-redesign .ct-role-provenance { align-items:baseline; }
body.review-redesign .ct-role-row[aria-pressed=true] { background:var(--ht-accent-soft);border-color:var(--ht-accent);color:var(--ht-accent-text); }
body.review-redesign .ct-legacy-intro { display:flex;gap:14px;align-items:center;margin-bottom:16px; }
body.review-redesign .ct-legacy-intro h3,body.review-redesign .ct-legacy-intro p { margin:0; }
body.review-redesign .ct-legacy-intro-icon { display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:var(--ht-warn-soft);color:var(--ht-warn-text); }
body.review-redesign .ct-legacy-intro-icon svg { width:24px;height:24px; }
body.review-redesign .ct-legacy-security h4 { font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--ht-ink-3);margin:0 0 10px; }
body.review-redesign .ct-legacy-points { list-style:none;padding:0;margin:0;display:grid;gap:10px; }
body.review-redesign .ct-legacy-points li { display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:650;line-height:1.4; }
body.review-redesign .ct-legacy-points svg { width:18px;height:18px;flex:none; }
body.review-redesign .ct-two>div:first-child .ct-legacy-points svg { color:var(--ht-danger); }
body.review-redesign .ct-two>div:last-child .ct-legacy-points svg { color:var(--ht-ok); }
body.review-redesign .ct-impact-line { padding:14px 0;border-bottom:1px solid var(--ht-line-2);margin:0; }
body.review-redesign .ct-impact-line:last-child { border:0;padding-bottom:0; }
body.review-redesign .ct-impact-line>span { display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:var(--ht-raised);color:var(--ht-ink-3); }
body.review-redesign .ct-impact-line:first-of-type>span { color:var(--ht-warn-text);background:var(--ht-warn-soft); }
body.review-redesign .ct-impact-line:last-child>span { color:var(--ht-ok);background:color-mix(in srgb,var(--ht-ok) 15%,var(--ht-raised)); }
body.review-redesign .ct-legacy-duration-card { margin:0; }
body.review-redesign .ct-legacy-duration-card .ct-legacy-duration { margin:0; }
body.review-redesign .ct-legacy-duration-copy { display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px; }
body.review-redesign .ct-legacy-duration-copy small { color:var(--ht-ink-3);font-size:13px; }
body.review-redesign .ct-legacy-stepper { padding:4px;background:var(--ht-raised);border:1px solid var(--ht-line-2);border-radius:14px; }
@media(max-width:767px) {
 body.review-redesign .ct-shift-steps { gap:8px; }
 body.review-redesign .ct-shift-steps li { white-space:nowrap; }
 body.review-redesign .security-backdrop:has(.ct-approval) { align-items:flex-end;padding:0; }
 body.review-redesign .security-card.ct-approval { width:100%;max-height:100dvh;border-radius:24px 24px 0 0;padding:16px;border-bottom:0; }
 body.review-redesign .ct-approval>h2 { font-size:20px;line-height:26px; }
 body.review-redesign .ct-approver-list { scroll-padding-inline:8px; }
 body.review-redesign .ct-legacy-duration { align-items:flex-start;flex-wrap:wrap; }
 body.review-redesign .ct-legacy-stepper { margin-left:auto; }
}

/* Keep the legacy action bar visible at the approved 800px desktop height. */
body.review-redesign .ct-legacy-security>.ct-policy-card:first-child { padding:16px; }
body.review-redesign .ct-legacy-intro { margin-bottom:12px; }
body.review-redesign .ct-legacy-intro-icon { width:40px;height:40px; }
body.review-redesign .ct-impact-line { padding:6px 0; }
body.review-redesign .ct-impact-line>span { width:40px;height:40px; }
body.review-redesign .ct-legacy-duration-card { padding:8px 16px; }
body.review-redesign .ct-legacy-stepper .ct-button { height:44px;min-height:44px; }
body.review-redesign:has(.ct-staff,.ct-security,.ct-legacy-security) [data-settings-screen=equip] .sv-menu-status { max-width:none;white-space:nowrap;font-size:12px; }

body.review-redesign .ct-approval-context-short { display:none; }
body.review-redesign .ct-role-provenance { align-items:center; }
body.review-redesign .ct-readiness-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }
body.review-redesign .ct-readiness-head h3 { margin:0; }
body.review-redesign .ct-readiness-refresh { width:44px;height:44px;min-height:44px;padding:8px;background:transparent; }
body.review-redesign .ct-readiness-row { display:flex;align-items:center;gap:10px;min-height:52px;padding:4px 0;border-bottom:1px solid var(--ht-line-2); }
body.review-redesign .ct-readiness-row:last-child { border-bottom:0; }
body.review-redesign .ct-readiness-row>div { flex:1;min-width:0;font-size:14px;line-height:1.35; }
body.review-redesign .ct-readiness-row b,body.review-redesign .ct-readiness-row small { display:block; }
body.review-redesign .ct-readiness-row small { color:var(--ht-ink-3);font-size:12px; }
body.review-redesign .ct-readiness-row .ct-readiness-count { margin:0;font-size:16px;white-space:nowrap; }
body.review-redesign .ct-readiness-icon { display:grid;place-items:center;width:36px;height:36px;flex:none;background:var(--ht-raised);border-radius:10px;color:var(--ht-ink-3); }
body.review-redesign .ct-readiness-icon svg { width:20px;height:20px; }
body.review-redesign .ct-readiness-row.is-ready .ct-readiness-icon { color:var(--ht-ok);background:color-mix(in srgb,var(--ht-ok) 15%,var(--ht-raised)); }
body.review-redesign .ct-readiness-row.is-pending .ct-readiness-icon { color:var(--ht-warn-text);background:var(--ht-warn-soft); }
body.review-redesign .ct-readiness-row .ct-button { height:44px;min-height:44px;padding:8px 10px; }
@media(max-width:767px) {
 body.review-redesign .ct-approvers>h3,body.review-redesign .ct-approvers>.ct-note,body.review-redesign .ct-approver small { display:none; }
 body.review-redesign .ct-approver { height:56px;min-height:56px; }
 body.review-redesign .ct-approval-summary.has-short-context .ct-approval-context-long { display:none; }
 body.review-redesign .ct-approval-summary.has-short-context .ct-approval-context-short { display:inline; }
 body.review-redesign .ct-approval-footer { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
 body.review-redesign .ct-approval-footer .ct-button { width:100%; }
 body.review-redesign .ct-readiness-row { flex-wrap:wrap; }
}

body.review-redesign:has(.ct-staff,.ct-security,.ct-legacy-security) [data-settings-screen=equip].is-status-unknown { display:flex; }
body.review-redesign:has(.ct-staff,.ct-security,.ct-legacy-security) [data-settings-screen=equip].is-status-unknown>.sv-menu-status { max-width:88px;text-align:right;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }

/* Keep the migration action visible while its own content scrolls. */
body.review-redesign .ct-legacy-security { padding:0!important;gap:0!important;overflow:hidden!important; }
body.review-redesign .ct-legacy-content { flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px 12px 12px; }
body.review-redesign .ct-legacy-content>* { flex:none; }
body.review-redesign .ct-legacy-content>.ct-security-grid { padding:0; }
body.review-redesign .ct-legacy-security>.ct-shift-bar { flex:none;margin:0; }
body.review-redesign .ct-role-provenance .ct-own-role { align-self:center; }
@media(max-width:767px) {
 body.review-redesign #r7Page:not([hidden]):has(.ct-legacy-security) { display:flex;flex:none;flex-direction:column;height:calc(100dvh - 140px);min-height:0;padding:0!important;overflow:hidden; }
 body.review-redesign #r7Page:has(.ct-legacy-security)>.sv-content { flex:1;min-height:0; }
}

/* Staff: approved login, cash opening and legacy PIN states. */
body.review-redesign .ct-employee-tile[aria-pressed=true] { background:var(--ht-accent-soft);outline:2px solid var(--ht-accent);outline-offset:-2px; }
body.review-redesign .ct-legacy-intro+.ct-two>div:first-child { background:var(--ht-warn-soft); }
body.review-redesign .ct-legacy-intro+.ct-two>div:last-child { background:var(--ht-raised); }
body.review-redesign .topbar #r7Operator.ct-session-legacy { background:var(--ht-warn-soft);color:var(--ht-warn-text);border-color:transparent; }
body.review-redesign .topbar #r7Operator.ct-session-legacy :is(strong,small,.session-time) { color:inherit; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract.ct-cash-movement) { border-radius:24px; }
body.review-redesign .ct-cash-movement select { border:0!important;box-shadow:none!important; }
body.review-redesign .ct-opening-count { display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:1px solid var(--ht-line-2);border-radius:18px;background:var(--ht-card); }
body.review-redesign .ct-opening-count>h3 { margin:0;font-size:16px; }
body.review-redesign .ct-opening-entry>.ct-shift-card { border:0;padding:0;background:transparent; }
body.review-redesign .ct-opening-count>.ct-segment { flex:none; }
body.review-redesign .ct-opening-entry .ct-count-grid { min-height:0; }
body.review-redesign .ct-opening-facts .ct-opening-seniors { margin-top:12px;padding-top:12px; }
body.review-redesign .ct-opening-facts .ct-opening-seniors:first-child { margin:0;padding:0;border:0; }
body.review-redesign .ct-opening-status { background:var(--ht-warn-soft);color:var(--ht-warn-text); }
@media(max-width:767px) {
 body.review-redesign .security-card.ct-login { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);padding:16px 16px 0;gap:12px;overflow:hidden; }
 body.review-redesign .ct-login-left { display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:28px 74px;row-gap:14px; }
 body.review-redesign .ct-login-brand { grid-column:1;grid-row:1;gap:6px; }
 body.review-redesign .ct-login-logo { width:18px;height:24px; }
 body.review-redesign .ct-login-wordmark { font-size:24px;font-weight:500; }
 body.review-redesign .ct-login-clock { display:flex;grid-column:2;grid-row:1;align-items:center;margin:0; }
 body.review-redesign .ct-login-clock>b { font-size:16px;line-height:28px;color:var(--ht-ink-2); }
 body.review-redesign .ct-login-clock>span,body.review-redesign .ct-login-facts,body.review-redesign .ct-login-who { display:none; }
 body.review-redesign .ct-employee-tiles { grid-column:1/-1;grid-row:2;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/5);grid-template-columns:none;gap:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:3px 0; }
 body.review-redesign .ct-employee-tile { flex-direction:column;justify-content:flex-start;min-width:0;min-height:0;padding:0;gap:6px;background:transparent;border:0;box-shadow:none;text-align:center; }
 body.review-redesign .ct-employee-tile>span:last-child { flex:none; }
 body.review-redesign .ct-employee-tile .ct-avatar { --ct-avatar-size:48px!important; }
 body.review-redesign .ct-employee-tile b { font-size:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
 body.review-redesign .ct-employee-tile b::after { content:attr(data-shortname);font-size:12px; }
 body.review-redesign .ct-employee-tile small { display:none; }
 body.review-redesign .ct-employee-tile[aria-pressed=true] { background:transparent;outline:0;box-shadow:none;border-color:transparent; }
 body.review-redesign .ct-employee-tile[aria-pressed=true] .ct-avatar { outline:2px solid var(--ht-accent);outline-offset:2px; }
 body.review-redesign .ct-other-tile>span:first-child { display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--ht-raised); }
 body.review-redesign .ct-other-tile>span:first-child svg { width:20px;height:20px; }
 body.review-redesign .ct-login-panel { margin:0;padding:0 0 104px;gap:12px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto;align-self:stretch; }
 body.review-redesign .ct-login-panel>.ct-person-heading { padding:10px 12px;min-height:60px;box-sizing:border-box;border:1px solid var(--ht-accent);border-radius:14px;background:var(--ht-accent-soft); }
 body.review-redesign .ct-login-panel>.ct-person-heading .ct-avatar { --ct-avatar-size:40px!important; }
 body.review-redesign .ct-login-panel .ct-person-heading b { font-size:16px; }
 body.review-redesign .ct-login .ct-pin-keys .ct-button { min-height:78px; }
 body.review-redesign .ct-login .ct-pin-message { justify-content:center; }
 body.review-redesign .ct-login-footer { position:fixed;inset:auto 0 0;padding:12px 16px 26px;background:var(--ht-card);border-top:1px solid var(--ht-line);z-index:1; }
 body.review-redesign .ct-login-footer .ct-primary { min-height:56px; }
 body.review-redesign:has(.ct-shift-open) .topbar #r7Operator { display:none!important; }
 body.review-redesign:has(.ct-shift-open) .topbar { height:60px;min-height:60px;gap:12px;padding:8px 12px; }
 body.review-redesign:has(.ct-shift-open) .ct-compact-brand { display:block;width:24px;height:24px; }
 body.review-redesign:has(.ct-shift-open) .ct-settings-back { display:flex;min-width:40px;width:40px;height:44px;min-height:44px;padding:0;background:transparent; }
 body.review-redesign:has(.ct-shift-open) .topbar #r7HeaderTitle { min-width:0!important;flex:1;font-size:20px!important;white-space:nowrap; }
 body.review-redesign:has(.ct-shift-open) .topbar #ctShiftState { display:none; }
 body.review-redesign:has(.ct-shift-open) #r7Page { padding:0!important; }
 body.review-redesign .ct-shift-open { height:100%;min-height:0;padding:0!important;overflow:hidden; }
 body.review-redesign .ct-shift-open .ct-open-grid { flex:1;min-height:0;overflow:auto;padding:12px 14px;grid-template-columns:minmax(0,1fr);gap:12px; }
 body.review-redesign .ct-opening-count>.ct-opening-status { width:max-content;margin-bottom:8px;white-space:nowrap; }
 body.review-redesign .ct-opening-count { padding:0;border:0;border-radius:0;background:transparent; }
 body.review-redesign .ct-opening-count>h3 { font-size:14px;color:var(--ht-ink-3); }
 body.review-redesign .ct-shift-open .ct-amount { gap:8px;padding:0 14px; }
 body.review-redesign .ct-shift-open .ct-amount>span { font-size:13px; }
 body.review-redesign .ct-shift-open .ct-amount input { min-width:0;font-size:24px; }
 body.review-redesign .ct-shift-open .ct-amount input::placeholder { font-size:21px; }
 body.review-redesign .ct-shift-open .ct-amount-keys .ct-button { min-height:66px; }
 body.review-redesign .ct-opening-facts { padding:0;border:0;background:transparent; }
 body.review-redesign .ct-opening-facts .ct-opening-seniors { margin-top:12px;padding-top:12px; }
 body.review-redesign .ct-shift-open .ct-shift-bar { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px 16px; }
 body.review-redesign .ct-shift-open .ct-shift-bar>.ct-save-copy { min-width:0;flex-basis:auto; }
 body.review-redesign .ct-shift-open .ct-shift-bar>.ct-save-copy b { font-size:14px; }
 body.review-redesign .ct-shift-open .ct-shift-bar>.ct-save-copy small { font-size:13px; }
 body.review-redesign .ct-shift-open .ct-shift-bar>.ct-primary { width:100%;min-height:56px;font-size:14px; }
}
@media(max-width:767px) {
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) { padding-bottom:0!important; }
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) .topbar { height:60px!important;min-height:60px!important;max-height:60px;padding:8px 12px!important;gap:8px!important; }
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) .topbar .top-brand { display:none!important;flex:0 0 24px!important;width:24px!important;min-width:24px;margin:0!important;padding:0!important; }
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) .topbar .top-brand>:not(#ctCompactBrand) { display:none; }
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) #receptionWorkspace { padding:0!important;height:calc(100dvh - 60px)!important;min-height:0;overflow:hidden; }
 html[data-theme] body.review-redesign[data-navigation]:has(.ct-shift-open) #r7Page { margin:0!important;width:100%!important;height:100%;min-height:0!important; }
 body.review-redesign:has(.ct-shift-open) #ctShiftState { background:var(--ht-warn-soft);color:var(--ht-warn-text); }
 body.review-redesign:has(.ct-shift-open) #ctShiftState::before { content:'';width:6px;height:6px;flex:none;border-radius:50%;background:currentColor; }
 body.review-redesign .ct-shift-open .ct-open-grid { align-content:start; }
 body.review-redesign .ct-opening-count>.ct-segment .ct-button { min-height:44px;height:44px; }
}

body.review-redesign .ct-legacy-intro+.ct-two>div { padding:8px 14px;border-radius:14px; }
body.review-redesign .topbar #r7Operator.ct-session-legacy .r7-operator-avatar { background:var(--ht-warn-soft);color:var(--ht-warn-text); }
@media(max-width:767px) {
 body.review-redesign .ct-opening-count { gap:10px; }
 body.review-redesign .ct-opening-count>h3 .screen-info-trigger { margin-block:-12px; }
 body.review-redesign .ct-opening-count>.ct-segment { min-height:48px;height:48px;padding:2px; }
}
@media(max-width:767px) {
 body.review-redesign:has(.ct-shift-open) #ctShiftState { gap:6px;font-size:13px; }
}

@media(max-width:767px) { body.review-redesign .ct-login .ct-pin-field:focus-within { outline-offset:-2px; } }
body.review-redesign .ct-approval .ct-pin-field:focus-within { outline-offset:-2px; }
body.review-redesign #modal .modal:has(.modal-body.ct-contract.ct-cash-movement) { overflow:hidden; }
body.review-redesign #modal .modal-body.ct-contract.ct-cash-movement .ct-amount-keys .ct-button { font-size:26px; }
body.review-redesign #modal .modal-body.ct-contract.ct-cash-movement .ct-amount-keys .ct-pin-function { font-size:15px; }
@media(max-width:767px) { body.review-redesign:has(#modal:not([hidden]) .ct-cash-movement) #r7Navigation { display:none!important; } }
@media(min-width:768px) {
 body.review-redesign .ct-opening-count { display:grid;grid-template-columns:minmax(0,1fr) min(296px,60%);grid-template-rows:56px minmax(0,1fr);gap:12px; }
 body.review-redesign .ct-opening-count>h3 { grid-column:1;grid-row:1;align-self:center; }
 body.review-redesign .ct-opening-count>.ct-segment { grid-column:2;grid-row:1; }
 body.review-redesign .ct-opening-entry { grid-column:1/-1;grid-row:2;min-height:0; }
 body.review-redesign .ct-opening-count:not(:has(.ct-count-grid)) .ct-opening-entry>.ct-shift-card,
 body.review-redesign .ct-opening-count:not(:has(.ct-count-grid)) .ct-money-entry { height:100%;min-height:0; }
 body.review-redesign .ct-opening-count:not(:has(.ct-count-grid)) .ct-money-entry { gap:32px; }
 body.review-redesign .ct-opening-count .ct-amount { flex:none; }
 body.review-redesign .ct-opening-count .ct-amount-keys { flex:1;min-height:0;grid-template-rows:repeat(4,minmax(64px,1fr)); }
 body.review-redesign .ct-open-grid:has(.ct-count-grid)>.ct-opening-count { grid-column:1/-1; }
}

body.review-redesign .ct-opening-mobile-copy { display:none; }
@media(max-width:767px) {
 body.review-redesign .ct-opening-desktop-note,body.review-redesign .ct-opening-desktop-copy,
 body.review-redesign .ct-opening-facts[data-mobile-empty=true] { display:none; }
 body.review-redesign .ct-opening-mobile-copy { display:block; }
}

/* Staff: unavailable approval stays on the count screen; one visible reason. */
body.review-redesign .ct-senior-cta { display:flex;align-items:center;gap:8px;margin-left:auto; }
body.review-redesign .ct-senior-cta>.ct-primary { flex:1;min-height:44px; }
body.review-redesign .ct-no-senior-info[hidden],body.review-redesign .ct-approvers>[hidden] { display:none!important; }
body.review-redesign .ct-avatar { background:var(--ct-avatar-color,var(--ht-accent));color:#fff; }
body.review-redesign .settings-page .sv-submenu .sv-menu-item { grid-template-columns:20px minmax(0,1fr) minmax(0,44px); }
body.review-redesign .settings-page .sv-submenu .sv-menu-item>span:not(.sv-icon) { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal; }
body.review-redesign .settings-page .sv-submenu .sv-menu-item>.sv-menu-status { min-width:0;width:44px;max-width:44px;flex:0 0 44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
body.review-redesign .ct-opening-count .ct-amount:not(:focus-within),body.review-redesign .ct-count-keyboard .ct-amount:not(:focus-within) { border-color:transparent;outline:0;box-shadow:none; }
body.review-redesign .ct-amount { align-items:baseline; }
body.review-redesign .ct-amount>small { align-self:baseline;line-height:1; }
body.review-redesign:has(.ct-shift-open) #ctShiftState { background:var(--ht-warn-soft);color:var(--ht-warn-text); }
body.review-redesign #modal:has(.ct-cash-movement) button[hidden] { display:none!important; }
body.review-redesign #modal:has(.ct-cash-movement) #wizardBar { display:flex;flex-wrap:nowrap;align-items:center; }
body.review-redesign #modal:has(.ct-cash-movement) #wizardBar>.ct-primary { flex:1; }
body.review-redesign #modal:has(.ct-cash-movement) #modalClose { position:relative;font-size:0; }
body.review-redesign #modal:has(.ct-cash-movement) #modalClose::before,body.review-redesign #modal:has(.ct-cash-movement) #modalClose::after { content:'';position:absolute;left:50%;top:50%;width:18px;height:1.6px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg); }
body.review-redesign #modal:has(.ct-cash-movement) #modalClose::after { transform:translate(-50%,-50%) rotate(-45deg); }
@media(max-width:767px) {
 body.review-redesign .ct-shift-close .ct-shift-bar>.ct-senior-cta { flex:1;min-width:0; }
 body.review-redesign .ct-shift-close .ct-senior-cta>.ct-primary { padding:8px;font-size:15px;line-height:1.25;white-space:normal; }
 body.review-redesign #modal:has(.ct-cash-movement) #wizardBar>.ct-primary { padding:8px;font-size:14px;line-height:1.25; }
}

/* Staff: a single unavailable reason, full status and unobscured cash guidance. */
@media(max-width:767px) { body.review-redesign .ct-shift-close .ct-shift-bar>.ct-primary { font-size:15px; } }
body.review-redesign .ct-confirmers[hidden] { display:none!important; }
body.review-redesign .ct-confirmers { column-gap:16px; }
body.review-redesign .settings-page .sv-submenu .sv-menu-item>.sv-menu-status { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25; }
body.review-redesign:has(.ct-staff,.ct-security,.ct-legacy-security) [data-settings-screen=equip].is-status-unknown>.sv-menu-status { white-space:normal;overflow:visible;text-overflow:clip; }
body.review-redesign .ct-movement-fields>.ct-note { margin:0; }
body.review-redesign #modal:has(.ct-cash-movement) #wizardBar { flex-shrink:0; }
@media(max-width:767px) {
 body.review-redesign #modal .modal:has(.ct-cash-movement) .modal-body.ct-cash-movement { padding:16px;overflow-y:auto;scroll-padding-block:16px; }
 body.review-redesign .ct-cash-movement :is(.ct-movement-form,.ct-movement-fields) { gap:12px; }
}
/* Брони: шкала, фильтры и список на телефоне. */
.bq-book-scale,.bq-book-filters { display:flex;align-items:center;gap:8px; }
.bq-book-scale button,.bq-book-filters button { min-height:56px;padding:0 14px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-panel);color:var(--hx-text-2);font:inherit;font-size:14px;font-weight:700;white-space:nowrap; }
.bq-book-scale button[aria-pressed=true],.bq-book-filters button[aria-pressed=true] { border-color:var(--ht-select);color:var(--hx-text);box-shadow:inset 0 0 0 1px var(--ht-select); }
.bq-book-filters { overflow-x:auto;padding-bottom:2px; }
.bq-book-layout { display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0; }
.bq-book-layout.has-selected { grid-template-columns:minmax(0,1fr) minmax(280px,320px); }
.bq-book-scroll { max-width:100%;overflow:auto;border-radius:14px; }
.bq-book-timeline { min-width:calc(128px + var(--bq-track));color:var(--hx-text); }
.bq-book-axis { display:flex;position:sticky;top:0;z-index:6;height:36px;background:var(--hx-chrome); }
.bq-book-axis.has-details { height:auto;min-height:75px; }
.bq-book-axis.has-details .bq-book-axis-label { padding-inline:4px; }
.bq-book-axis.has-details .screen-info-label { display:flex;align-items:center;min-width:0; }
.bq-book-axis.has-details .bq-book-axis-status { flex:1 1 0;min-width:0;overflow-wrap:anywhere; }
.bq-book-axis-label { position:sticky;left:0;z-index:7;flex:0 0 128px;padding:8px 12px;background:var(--hx-chrome);color:var(--hx-text-3);font-size:12px;font-weight:700; }
.bq-book-axis-track { position:relative;flex:none; }
.bq-book-axis-track > span { position:absolute;top:9px;transform:translateX(-50%);color:var(--hx-text-3);font-size:12px;white-space:nowrap;visibility:hidden; }
.bq-book-axis-track > span:first-child { transform:none; }
.bq-book-pair { overflow:visible;margin-bottom:7px;border:1px solid var(--hx-line);border-radius:14px;background:var(--hx-panel); }
.bq-book-row { display:flex;min-height:58px; }
.bq-book-row + .bq-book-row { border-top:1px solid var(--hx-line); }
.bq-book-lane { position:sticky;left:0;z-index:5;display:flex;align-items:center;gap:12px;flex:0 0 128px;padding:6px 12px;background:var(--hx-panel); }
.bq-book-lane strong { font-size:24px;line-height:1;font-weight:800; }
.bq-book-lane span { display:flex;min-width:0;flex-direction:column;font-size:12px; }
.bq-book-lane small { color:var(--ht-muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.bq-book-lane[data-tile-state=play] b { color:var(--ht-play); }.bq-book-lane[data-tile-state=free] b { color:var(--ht-free); }.bq-book-lane[data-tile-state=book] b { color:var(--ht-book); }.bq-book-lane[data-tile-state=fault] b { color:var(--ht-mech); }
.bq-book-track { position:relative;flex:none;width:var(--bq-track);height:58px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(var(--bq-hour) - 1px),var(--hx-line) calc(var(--bq-hour) - 1px),var(--hx-line) var(--bq-hour)); }
.bq-book-slot { position:absolute;top:0;bottom:0;border:0;background:transparent;min-height:56px;cursor:pointer; }
.bq-book-event,.bq-book-live { position:absolute;top:6px;z-index:3;display:flex;flex-direction:column;justify-content:center;gap:2px;box-sizing:border-box;height:46px;min-height:46px;padding:3px 9px;border:1px solid var(--ht-book);border-radius:12px;background:color-mix(in srgb,var(--ht-book) 11%,var(--hx-panel));color:var(--hx-text);overflow:hidden;text-align:left; }
.bq-book-event.status-provisional { border-style:dashed; }.bq-book-event.is-late { border:2px solid var(--ht-mech); }.bq-book-event.is-selected { outline:3px solid var(--ht-select);outline-offset:0; }
.bq-book-event small,.bq-book-live { overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }.bq-book-event strong { overflow:hidden;font-size:14px; }.bq-book-event small { color:var(--ht-muted);font-size:11px; }
.bq-book-live { z-index:2;border-color:var(--ht-play);background:color-mix(in srgb,var(--ht-play) 13%,var(--hx-panel));color:var(--ht-play);font-size:12px;pointer-events:none; }
.bq-book-past { position:absolute;inset:0 auto 0 0;z-index:1;background:color-mix(in srgb,var(--hx-chrome) 30%,transparent);pointer-events:none; }.bq-book-now { position:absolute;top:0;bottom:0;z-index:4;width:2px;background:var(--ht-select);box-shadow:0 0 7px var(--ht-select);pointer-events:none; }
.bq-book-mobile-list { display:none; }
@media(max-width:767px) {
  .bq-book-scale,.bq-book-scroll { display:none; }
  .bq-book-layout,.bq-book-layout.has-selected { grid-template-columns:minmax(0,1fr); }
  .bq-book-mobile-list { display:grid;gap:8px; }
  .bq-book-mobile-card { display:flex;min-height:64px;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-panel);color:var(--hx-text);text-align:left; }
  .bq-book-mobile-card.is-selected { outline:2px solid var(--ht-select); }.bq-book-mobile-card span { color:var(--hx-text-2);font-size:13px; }
  .bq-book-filters button { min-height:44px; }
}
.bq-book-event.is-conflict { border:2px solid var(--ht-mech); }
.bq-book-overlap { position:absolute;inset:0 auto 0 0;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ht-mech) 25%,transparent) 0 6px,transparent 6px 12px);pointer-events:none; }
.bq-book-history { display:grid;gap:0;max-height:280px;overflow:auto;padding:0;list-style:none; }.bq-book-history li { padding:12px 0;border-bottom:1px solid var(--hx-line);font-size:13px;color:var(--hx-text-2); }
body.screens-v1 .bq-book-mobile-card { font-size:14px;line-height:1.35; }
body.screens-v1 .bq-book-mobile-card strong { font-size:15px;line-height:1.25; }

/* Брони: нижний бар и мобильная лента. */
.bq-book-days { display:none; }
body.screens-v1 .r7-page-head .bq-book-create { display:none; }
body.screens-v1 #r7Page:has(.bq-book-mobile-footer) { padding-bottom:88px; }
body.screens-v1 .bq-book-mobile-footer { position:fixed;left:var(--hx-rail-w,84px);right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:80px;padding:8px 16px;border-top:1px solid var(--hx-line);background:var(--hx-panel); }
.bq-book-footer-info { display:flex;align-items:center;gap:12px;color:var(--hx-text); }
.bq-book-footer-info > span:last-child { display:flex;flex-direction:column;font-size:14px; }.bq-book-footer-info small { color:var(--hx-text-2);font-size:12px; }
.bq-book-footer-icon { display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--hx-raised);color:var(--hx-text-2); }.bq-book-footer-icon svg { width:22px;height:22px; }
body.screens-v1 .bq-book-mobile-footer button { min-height:56px;padding-inline:16px;font-size:14px; }
@media(max-width:767px) {
  .bq-book-now-button { display:none; }
  .bq-book-days { display:flex;gap:6px;overflow-x:auto; }
  .bq-book-days button { display:flex;min-width:76px;min-height:52px;flex-direction:column;justify-content:center;padding:5px 8px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-panel);color:var(--hx-text-2);font:inherit;font-size:13px;font-weight:700; }
  .bq-book-days button[aria-pressed=true] { border-color:var(--ht-select);color:var(--hx-text);box-shadow:inset 0 0 0 1px var(--ht-select); }
  .bq-book-days button small { color:var(--hx-text-3);font-size:10px; }
  body.screens-v1 .bq-book-mobile-footer { left:0;bottom:calc(72px + env(safe-area-inset-bottom,0px));min-height:72px;padding:8px 12px; }
  body.screens-v1 .bq-book-mobile-footer button { min-height:48px;font-size:14px; }
  .bq-book-footer-icon { display:none; }
  body.screens-v1 .bq-book-mobile-card { display:flex;flex-direction:row;align-items:center;gap:8px;min-height:74px;padding:10px 12px;border-left:1px solid var(--hx-line); }
  body.screens-v1 .bq-book-mobile-card.is-late,body.screens-v1 .bq-book-mobile-card.is-conflict { border:2px solid var(--ht-mech); }
  .bq-book-mobile-time { display:flex;flex:0 0 53px;flex-direction:column;color:var(--hx-text); }.bq-book-mobile-time small { color:var(--hx-text-2);font-size:11px; }
  .bq-book-mobile-marker { width:16px;height:14px;flex:none;border:1px solid var(--ht-book);border-radius:3px;background:color-mix(in srgb,var(--ht-book) 12%,var(--hx-panel)); }.status-provisional .bq-book-mobile-marker { border-style:dashed; }.bq-book-mobile-card.is-late .bq-book-mobile-marker,.bq-book-mobile-card.is-conflict .bq-book-mobile-marker { border-color:var(--ht-mech); }
  .bq-book-mobile-details { display:flex;min-width:0;flex:1;flex-direction:column;gap:2px; }.bq-book-mobile-details strong { white-space:normal;overflow-wrap:anywhere; }.bq-book-mobile-details small { color:var(--hx-text-2);font-size:12px;white-space:normal; }
  .bq-book-mobile-arrow { flex:none;color:var(--hx-text-2);font-size:24px;line-height:1; }
}
body.screens-v1 .bq-book-mobile-footer .bq-book-footer-info { display:flex;flex-direction:row;align-items:center;gap:12px; }
body.screens-v1 .bq-book-mobile-footer .bq-book-footer-info > span:last-child { display:flex;flex-direction:column; }
@media(max-width:767px) {
  body.screens-v1 .bq-book-mobile-footer .bq-book-footer-icon { display:none; }
  .bq-book-mobile-list { min-width:0;grid-template-columns:minmax(0,1fr); }
  body.screens-v1 .bq-book-mobile-card { box-sizing:border-box;min-width:0;width:100%; }
  body.screens-v1 .bq-book-mobile-card .bq-book-mobile-time,body.screens-v1 .bq-book-mobile-card .bq-book-mobile-details strong { color:var(--hx-text); }
}


.bq-book-mobile-footer { display:none; }
@media(max-width:767px) {
  body.screens-v1 .r7-page-head .bq-book-create { display:none; }
  .bq-book-mobile-list { padding-bottom:88px; }
  .bq-book-mobile-footer { position:fixed;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--hx-panel);border-top:1px solid var(--hx-line); }
  .bq-book-mobile-footer span { display:flex;flex-direction:column;color:var(--hx-text);font-size:14px; }.bq-book-mobile-footer small { color:var(--hx-text-2);font-size:12px; }
  .bq-book-mobile-footer button { min-height:48px; }
}

.r7q-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,500px);gap:16px;align-items:start; }
.r7q-list-column,.r7q-aside,.r7q-list { display:flex;flex-direction:column;gap:8px;min-width:0; }
.r7q-list-head,.r7q-hall-head { display:flex;align-items:center;gap:10px;min-height:44px;padding:0 8px; }
.r7q-list-head small { margin-left:auto;color:var(--hx-text-3); }
.r7q-row,.r7q-hall,.r7q-window,.r7q-recent { background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:18px;padding:10px 14px; }
.r7q-row.is-selected { background:color-mix(in srgb,var(--hx-select) 8%,var(--hx-panel));border-color:var(--hx-select); }
.r7q-row-main { display:grid;grid-template-columns:36px minmax(0,1fr) minmax(120px,168px);gap:12px;align-items:center;width:100%;min-height:74px;border:0;background:transparent;color:var(--hx-text);font:inherit;text-align:left;cursor:pointer; }
.r7q-number { font-size:19px;font-weight:800;color:var(--hx-text-3);text-align:center; }
.r7q-person,.r7q-estimate { display:flex;flex-direction:column;gap:4px;min-width:0; }
.r7q-person b { font-size:17px;overflow-wrap:anywhere; }.r7q-person small,.r7q-estimate small { font-size:13px;color:var(--hx-text-2);overflow-wrap:anywhere; }.r7q-person small.called { color:var(--ht-book); }.r7q-estimate b { font-size:21px; }
.r7q-actions { display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap; }.r7q-actions button,.r7q-recent button,.r7q-parked { min-height:56px;padding:0 14px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font:inherit;cursor:pointer; }.r7q-actions button.primary { background:var(--p-green);color:var(--p-ink-on-light); }.r7q-actions button:disabled,.r7q-recent button:disabled { opacity:.5;cursor:not-allowed; }
.r7q-pairs { display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;gap:26px 18px;margin:18px 0; }.r7q-pair { display:flex;gap:8px;padding:5px;border:1px solid var(--hx-line);border-radius:16px; }
.r7q-lane { --r7q-tone:var(--ht-muted);position:relative;width:106px;min-height:106px;border:1px solid var(--r7q-tone);border-radius:13px;padding:9px;background:color-mix(in srgb,var(--r7q-tone) 12%,var(--ht-base));color:var(--ht-ink);box-sizing:border-box; }
.r7q-lane.glyph-free { --r7q-tone:var(--ht-free); }.r7q-lane.glyph-play { --r7q-tone:var(--ht-play); }.r7q-lane.glyph-pause { --r7q-tone:var(--ht-pause); }.r7q-lane.glyph-book { --r7q-tone:var(--ht-book);border-style:dashed; }.r7q-lane.glyph-pay,.r7q-lane.glyph-timeup { --r7q-tone:var(--ht-pay); }.r7q-lane.glyph-fault { --r7q-tone:var(--ht-mech); }.r7q-lane.is-selected { outline:4px solid var(--ht-select);outline-offset:2px; }
.r7q-hall .daily-lane.r7q-lane { display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;overflow:visible;flex:none;max-width:none;height:106px;min-width:0;min-height:0;box-shadow:none;animation:none; }
.r7q-hall .daily-lane-top { position:static;display:flex;align-items:flex-start;justify-content:space-between;background:none;padding:0;margin:0; }
.r7q-hall .daily-lane-no { font-size:24px;line-height:1; }.r7q-hall .daily-lane-glyph { display:grid;width:27px;height:27px;place-items:center;color:var(--r7q-tone);border:1px solid var(--r7q-tone);border-radius:50%; }.r7q-hall .daily-lane-glyph svg { display:block;width:16px;height:16px; }.r7q-hall .daily-lane-state { display:block;margin-top:5px;font-size:12px;font-weight:700; }.r7q-hall .daily-lane-state-mark { display:none; }.r7q-hall .hall-main-figure { display:block;font-size:14px;line-height:1.05; }.r7q-hall .hall-tile-progress { margin-top:auto; }.r7q-hall .hall-tile-badges { display:none; }
.r7q-lane-group { position:absolute;top:-17px;left:50%;transform:translateX(-50%);z-index:1;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 8px;border-radius:14px;border:1px solid var(--hx-select);background:var(--hx-panel);font-size:11px; }
.r7q-window b,.r7q-recent>b { font-size:15px; }.r7q-window small { display:block;color:var(--hx-text-3);margin-top:5px; }.r7q-window-strip { display:flex;min-height:36px;border-radius:9px;overflow:hidden;margin-top:8px; }.r7q-window-strip span { display:flex;align-items:center;overflow:hidden;padding:0 7px;font-size:12px;white-space:nowrap; }.r7q-window-strip .free { background:color-mix(in srgb,var(--ht-free) 20%,transparent); }.r7q-window-strip .buffer { min-width:8px;padding:0;background:repeating-linear-gradient(135deg,transparent 0 5px,var(--hx-line) 5px 8px); }.r7q-window-strip .booked { background:color-mix(in srgb,var(--ht-book) 20%,transparent); }.r7q-recent-row { display:flex;align-items:center;gap:8px; }.r7q-recent-row button { margin-left:auto; }
.r7q-add { display:flex;flex-direction:column;gap:14px; }.r7q-add label,.r7q-add-row>div { display:flex;flex-direction:column;gap:6px; }.r7q-add input:not([type=checkbox]),.r7q-add textarea { width:100%;min-height:48px;box-sizing:border-box; }.r7q-add-row { display:grid;grid-template-columns:1fr 1fr;gap:12px; }.r7q-segments,.r7q-tags { display:flex;gap:8px;flex-wrap:wrap; }.r7q-segments button,.r7q-tags button { min-height:48px;padding:0 12px;border-radius:10px;border:1px solid var(--hx-line);background:var(--hx-raised);color:var(--hx-text); }.r7q-segments button[aria-pressed=true],.r7q-tags button[aria-pressed=true] { outline:2px solid var(--hx-select); }.r7q-add .r7q-consent { display:flex;flex-direction:row;align-items:center;gap:10px; }.r7q-context { padding:12px;border-radius:10px;background:var(--hx-raised); }
@media(max-width:1100px) { .r7q-layout { grid-template-columns:minmax(0,1fr) 300px;gap:12px; }.r7q-pairs { grid-template-columns:max-content; } }
@media(max-width:767px) { .r7q-layout { display:flex;flex-direction:column; }.r7q-aside { width:100%;order:-1; }.r7q-list-column { width:100%; }.r7q-pairs { display:flex;justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory; }.r7q-pair { flex:none;scroll-snap-align:start; }.r7q-lane { width:80px;min-height:80px; }.r7q-hall .daily-lane.r7q-lane { width:80px;height:80px; }.r7q-hall .daily-lane-no { font-size:20px; }.r7q-actions button { min-height:44px; }.r7q-actions button.primary { flex-basis:100%;order:-1; }.r7q-row-main { grid-template-columns:28px minmax(0,1fr) minmax(80px,100px);gap:8px; }.r7q-estimate b { font-size:17px; } }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane { width:106px;height:106px;min-width:106px;min-height:106px;padding:8px;overflow:visible;gap:0;border:1px solid var(--r7q-tone);border-radius:13px;color:var(--ht-ink);background:color-mix(in srgb,var(--r7q-tone) 12%,var(--ht-base)); }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-top { display:flex;align-items:center;justify-content:space-between;position:static;width:100%;height:auto;padding:0;margin:0; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-no { display:block;font-size:26px;line-height:1;color:var(--ht-ink); }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-glyph { display:grid;place-items:center;position:static;width:25px;height:25px;flex:none;border-radius:50%;color:var(--r7q-tone);background:color-mix(in srgb,var(--r7q-tone) 15%,transparent);box-shadow:inset 0 0 0 1px var(--r7q-tone); }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-glyph svg { display:block;width:15px;height:15px; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state { display:block;position:static;margin:5px 0 0;padding:0;font-size:12px;line-height:1.15;color:var(--r7q-tone); }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .hall-main-figure { display:block;position:static;margin:2px 0 0;padding:0;font-size:13px;line-height:1.05;color:var(--ht-ink); }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .hall-tile-badges { display:none; }
@media(max-width:767px) {
 .r7q-layout,.r7q-list-column,.r7q-aside,.r7q-hall,.r7q-list { width:100%;min-width:0;max-width:100%;box-sizing:border-box; }
 .r7q-pairs { width:100%;min-width:0;max-width:100%;box-sizing:border-box; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane { width:80px;height:80px;min-width:80px;min-height:80px; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-no { font-size:20px; }
}
@media(min-width:768px) {
 .r7q-row { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center; }
 .r7q-row.is-selected .r7q-row-main,.r7q-row.is-selected .r7q-window,.r7q-row.is-selected .r7q-actions { grid-column:1 / -1; }
}
@media(max-width:767px) {
 .r7q-hall { border:0;background:transparent;padding:0; }
 .r7q-pairs { gap:8px; }
 .r7q-pair { gap:6px;padding:3px; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane { width:75px;height:80px;min-width:75px; }
}
@media(max-width:767px) { .r7q-row { padding:8px; }.r7q-row-main { grid-template-columns:24px minmax(120px,1fr) minmax(75px,95px); }.r7q-person b { font-size:16px; } }
@media(max-width:767px) { .r7q-pairs { padding-top:18px;padding-bottom:4px;margin-top:0; } }
.r7q-legend { display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--hx-text-3);font-size:12px; }
.r7q-legend span::before { content:'';display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:var(--ht-muted); }
.r7q-legend .glyph-free::before { background:var(--ht-free); }.r7q-legend .glyph-play::before { background:var(--ht-play); }.r7q-legend .glyph-book::before { background:var(--ht-book); }
.r7q-page-dots { display:none; }
@media(max-width:767px) { .r7q-page-dots { display:flex;gap:5px;margin-left:auto; }.r7q-page-dots button { min-width:26px;min-height:44px;padding:0;border:0;background:transparent; }.r7q-page-dots button::after { content:'';display:block;width:6px;height:6px;margin:auto;border-radius:8px;background:var(--ht-muted); }.r7q-page-dots button[aria-pressed=true]::after { width:15px;background:var(--ht-select); } }

.r7q-mobile-footer { display:none; }
@media(max-width:767px) { .r7q-page-head { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }.r7q-header-add { display:none!important; }.r7q-mobile-footer { position:fixed;z-index:49;bottom:calc(72px + env(safe-area-inset-bottom,0px));left:0;right:0;min-height:64px;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:8px 14px;background:var(--hx-panel);border-top:1px solid var(--hx-line); }.r7q-mobile-footer span { display:flex;flex-direction:column;gap:3px; }.r7q-mobile-footer small { color:var(--hx-text-3); }.r7q-mobile-footer button { margin-left:auto;min-height:48px; }.r7q-layout { padding-bottom:72px; } }


/* Панель создания и изменения брони. */
@media (min-width: 701px) {
  body.review-redesign #modal:has(.bookings-modal) { align-items:stretch;justify-content:flex-end;padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:auto; }
  body.review-redesign #modal .modal.bookings-modal { pointer-events:auto;width:min(520px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 140px);max-height:none;margin:140px 0 0;border-radius:16px 0 0 0;background:var(--hx-panel);border-color:var(--hx-line); }
}
body.review-redesign #modal .bookings-modal .modal-head { flex:none;min-height:56px;padding:12px 20px; }
body.review-redesign #modal .bookings-modal .modal-body { flex:1;min-height:0;overflow:auto;padding:16px 20px; }
body.review-redesign #modal .bookings-modal .wizard-bar { flex:none;display:flex;gap:10px;justify-content:space-between;padding:12px 20px; }
.r7-booking-form { display:grid;gap:12px; }
.r7-booking-two { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.r7-booking-field { display:grid;gap:6px;min-width:0;color:var(--hx-text-3);font-size:13px;font-weight:650; }
.r7-booking-field :is(input,textarea,select) { box-sizing:border-box;width:100%;min-width:0;min-height:56px;padding:10px 12px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font:inherit;font-size:16px; }
.r7-booking-start { display:flex;min-width:0; }
.r7-booking-start input { flex:1;min-width:0; }
.r7-booking-start button { min-width:44px;border:0;background:transparent;color:var(--hx-text);font-size:22px; }
.r7-booking-field .seg { display:flex;gap:6px; }
.r7-booking-field .seg-btn { flex:1;min-width:0;min-height:56px;padding:8px;white-space:nowrap; }
.r7-booking-field .stepper { min-height:56px; }
.r7-booking-price { display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:8px 12px;border-radius:12px;background:var(--hx-raised);color:var(--hx-text); }
.r7-booking-estimate { margin:0;font-weight:700; }
.r7-booking-status { margin:0;color:var(--hx-text-2); }
.r7-booking-history { padding:10px 12px;border-radius:12px;background:var(--hx-raised); }
.r7-booking-history summary { min-height:44px;cursor:pointer; }
.r7-booking-history p { font-size:13px;color:var(--hx-text-2);overflow-wrap:anywhere; }
.r7-booking-remove { justify-self:start;min-height:44px;border:0;background:transparent;color:var(--hx-st-fault); }
.r7-booking-cancel-confirm { display:flex;flex-wrap:wrap;align-items:center;gap:8px; }
.r7-booking-cancel-confirm[hidden] { display:none; }
@media (max-width: 700px) {
  body.review-redesign #modal:has(.bookings-modal) { align-items:flex-end; }
  body.review-redesign #modal .modal.bookings-modal { width:100%;height:min(90dvh,900px);max-height:90dvh;border-radius:18px 18px 0 0; }
  body.review-redesign #modal .bookings-modal .modal-body { padding:12px 16px; }
  body.review-redesign #modal .bookings-modal .wizard-bar { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
  .r7-booking-start button { min-width:40px; }
}

body.review-redesign #modal .modal.bookings-modal { background:var(--hx-panel);border-color:var(--hx-line);color:var(--hx-text); }
body.review-redesign #modal .modal.bookings-modal .modal-head h3 { font-size:18px; }
body.review-redesign #modal .modal.bookings-modal .modal-head button { min-width:44px;width:44px;min-height:44px;height:44px;font-size:20px;padding:6px; }
body.review-redesign #modal .modal.bookings-modal .wizard-bar button { min-height:56px;font-size:16px; }
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .stepper { height:56px;min-height:56px; }
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .stepper button { min-height:56px;height:56px;font-size:18px; }
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .step-btn { width:48px; }
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .step-num { min-width:56px; }

/* Queue entry sheet. */
html[data-theme] body.review-redesign #modal:has(.queue-entry-modal) { z-index:54; }
html[data-theme] body.review-redesign #modal .modal.queue-entry-modal { display:flex;flex-direction:column;background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);box-shadow:0 20px 50px rgba(0,0,0,.25);overflow:hidden; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-head { flex:none;min-height:64px;box-sizing:border-box;padding:8px 20px;background:var(--hx-panel);border-bottom:1px solid var(--hx-line); }
html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-head h3 { font-size:18px;line-height:1.2;color:var(--hx-text); }
html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-close { flex:none;min-width:44px;width:44px;min-height:44px;height:44px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--hx-text-2);font-size:20px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-body { flex:1;min-height:0;padding:14px 20px;overflow:auto;background:var(--hx-panel);font-size:14px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add { gap:12px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add label,
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add-row>div,
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add>div>span { color:var(--hx-text-2);font-size:13px;font-weight:700; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add input:not([type=checkbox]),
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add textarea { width:100%;min-width:0;height:54px;min-height:54px;box-sizing:border-box;padding:0 12px;border:1px solid var(--hx-line);border-radius:10px;background:var(--sv-sunk);color:var(--hx-text);font:inherit;font-size:16px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add textarea { padding:12px;resize:vertical; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add-row { grid-template-columns:1fr 1fr;gap:12px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper { width:100%;height:54px;min-height:54px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-btn { width:48px;min-width:48px;max-width:48px;height:54px;min-height:54px;flex:0 0 48px;font-size:20px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-num { width:auto;min-width:0;height:54px;min-height:54px;flex:1;font-size:17px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-segments { flex-wrap:nowrap; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-segments button { flex:1;min-height:54px;font-size:15px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-tags button { min-height:54px;font-size:14px;font-weight:700; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-consent { min-height:44px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;font-size:13px;line-height:1.3; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-consent input[type=checkbox] { appearance:auto;flex:none;width:22px;min-width:22px;max-width:22px;height:22px;min-height:22px;max-height:22px;margin:0;accent-color:var(--hx-select); }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-context { margin:0;padding:12px;border-radius:10px;background:var(--hx-raised);color:var(--hx-text-2);font-size:14px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar { flex:none;min-height:80px;box-sizing:border-box;display:flex;justify-content:flex-end;align-items:center;padding:12px 16px;background:var(--hx-panel);border-top:1px solid var(--hx-line); }
html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button.primary.big { flex:0 1 auto;width:auto;min-width:150px;min-height:56px;margin:0;padding:0 18px;border:0;border-radius:12px;background:var(--hx-success,#19985c);background-image:none;color:#fff;font-size:15px;font-weight:800; }
@media(min-width:768px) {
 html[data-theme] body.review-redesign #modal:has(.queue-entry-modal) { inset:0;align-items:stretch;justify-content:flex-end;padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none; }
 html[data-theme] body.review-redesign #modal .modal.queue-entry-modal { width:480px;max-width:min(480px,100vw);height:calc(100% - 72px);max-height:none;margin:72px 0 0;border-radius:0;border-width:0 0 0 1px; }
}
@media(max-width:767px) {
 html[data-theme] body.review-redesign #modal:has(.queue-entry-modal) { inset:0;align-items:flex-end;justify-content:center;padding:0;background:rgba(5,12,24,.42); }
 html[data-theme] body.review-redesign #modal .modal.queue-entry-modal { width:100%;max-width:none;height:min(528px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);margin:0;padding:0;border-radius:22px 22px 0 0; }
 html[data-theme] body.review-redesign #modal .modal.queue-entry-modal.osk-host { height:min(528px,calc(100dvh - var(--osk-height,360px)));max-height:calc(100dvh - var(--osk-height,360px)); }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-head { padding:8px 16px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .modal-body { padding:12px 16px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add { gap:10px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add input:not([type=checkbox]),
 html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-add textarea { height:48px;min-height:48px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper,
 html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-btn,
 html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-num { height:48px;min-height:48px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-segments button,
 html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-tags button { min-height:48px; }
 html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar { min-height:76px;padding:10px 16px max(10px,env(safe-area-inset-bottom)); }
 html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button.primary.big { min-height:54px; }
}

html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button.primary.big:disabled { opacity:.5;box-shadow:none;cursor:not-allowed; }


body.review-redesign #modal .bookings-modal .r7-booking-start input { text-align:center;font-size:16px;font-variant-numeric:tabular-nums; }

body.review-redesign #modal .bookings-modal .r7-booking-start { display:grid;grid-template-columns:40px minmax(76px,1fr) 40px;align-items:center; }
body.review-redesign #modal .bookings-modal .r7-booking-start button { box-sizing:border-box;width:40px;min-width:40px;max-width:40px;padding:0; }
body.review-redesign #modal .bookings-modal .r7-booking-start input { min-width:0;padding-inline:2px; }

body.review-redesign #modal .bookings-modal .r7-booking-lanes { display:flex;flex-wrap:wrap;gap:8px; }
body.review-redesign #modal .bookings-modal .r7-booking-lanes button { box-sizing:border-box;min-width:56px;min-height:56px;padding:0 12px;border:1px solid var(--hx-line);border-radius:11px;background:var(--hx-raised);color:var(--hx-text);font:inherit;font-size:16px;font-weight:700; }
body.review-redesign #modal .bookings-modal .r7-booking-lanes button[aria-pressed="true"] { border-color:var(--hx-select);background:var(--hx-select-wash);color:var(--hx-select); }
body.review-redesign #modal .bookings-modal .r7-booking-lanes button:focus-visible { outline:2px solid var(--hx-select);outline-offset:2px; }
@media(max-width:700px) { body.review-redesign #modal .bookings-modal .r7-booking-lanes button { min-width:48px;min-height:48px; } }

/* Скрытая подпись остаётся доступной для сегмента длительности. */
body.review-redesign #modal .bookings-modal .r7-booking-duration > span { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }

@media(max-width:767px) {
 .r7q-pair .r7q-lane:first-child .r7q-lane-group { left:0;right:auto;transform:none; }
 .r7q-pair .r7q-lane:last-child .r7q-lane-group { left:auto;right:0;transform:none; }
}
html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button:not(.primary) { min-height:56px;font-size:15px; }
@media(max-width:767px) { html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button:not(.primary) { min-height:54px; } }

@media(max-width:767px) {
  .bq-book-mobile-group { min-width:0; }
  .bq-book-mobile-group:not(.bq-book-mobile-past) { display:grid;gap:6px; }
  .bq-book-mobile-group > h3, .bq-book-mobile-past > summary { margin:4px 0 0;padding:8px 4px;color:var(--hx-text-2);font-size:13px;font-weight:650; }
  .bq-book-mobile-past > summary { min-height:48px;display:flex;align-items:center;cursor:pointer;list-style:none; }
  .bq-book-mobile-past > summary::after { content:'⌄';margin-left:auto; }
  .bq-book-mobile-past[open] > summary::after { content:'⌃'; }
  body.screens-v1 .bq-book-mobile-past:not([open]) > .bq-book-mobile-card { display:none; }
  .bq-book-mobile-past > .bq-book-mobile-card + .bq-book-mobile-card { margin-top:6px; }
}

html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-consent-line { display:flex;align-items:center;gap:4px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-tags button .svgi { width:16px;height:16px;margin-right:6px;vertical-align:middle; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-context:not([hidden]) { display:flex;align-items:center;gap:12px; }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-context strong { font-size:22px;white-space:nowrap;color:var(--hx-text); }
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-context span { font-size:13px;line-height:1.3; }

/* Booking surface and draft on the day timeline. */
.r7-booking-price[hidden] { display:none !important; }
.bq-book-plus { display:inline-flex;align-items:center;margin-right:7px;vertical-align:middle; }
.bq-book-plus svg { width:18px;height:18px; }
html[data-theme] body.screens-v1 .bq-book-mobile-footer button.primary,
html[data-theme] body.review-redesign #modal .bookings-modal #wizardBar button.primary { border:0;background:#157a45;background-image:none;color:#fff;box-shadow:none; }
html[data-theme] body.review-redesign #modal .bookings-modal #wizardBar button:not(.primary) { border:0;background:var(--hx-raised);color:var(--hx-text);box-shadow:none; }
body.review-redesign #modal .bookings-modal .r7-booking-start button { min-width:44px;min-height:44px;width:44px;max-width:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-start { grid-template-columns:44px minmax(76px,1fr) 44px; }
body.review-redesign #modal .bookings-modal .r7-booking-field .stepper { width:max-content;max-width:100%; }
.bq-book-draft { position:absolute;top:6px;z-index:5;display:flex;align-items:center;box-sizing:border-box;height:46px;padding:3px 8px;overflow:hidden;border:2px dashed var(--hx-select);border-radius:12px;background:var(--hx-select-wash);color:var(--hx-select);font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none; }
@media(min-width:768px) {
 html[data-theme] body.review-redesign #modal:has(.bookings-modal) { top:var(--bq-modal-top,220px);bottom:max(var(--bq-modal-bottom,80px),var(--bq-keyboard-inset,0px));height:auto;align-items:stretch;justify-content:flex-end; }
 html[data-theme] body.review-redesign #modal .modal.bookings-modal { width:min(500px,45vw);height:100%;max-height:100%;margin:0;border-radius:16px 0 0 0; }
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) #r7Page .bq-book-scroll { width:calc(100% - min(500px,45vw)); }
}

.r7-booking-day-input { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden; }
.r7-booking-title-day { display:inline-block;margin-left:12px;color:var(--hx-text-2);font-size:13px;font-weight:600; }
.r7-booking-day-step { display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:12px;background:var(--hx-raised); }
.r7-booking-day-step button { min-width:44px;min-height:44px;border:0;background:transparent;color:var(--hx-text);font:inherit;font-size:20px; }
.r7-booking-day-value { color:var(--hx-text);font-weight:700; }
@media(min-width:768px) { .r7-booking-day-step { justify-self:start;min-width:220px; } }

.bq-book-plus svg,.bq-book-date-nav svg,.r7-booking-day-step svg,.bq-book-target-icon svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.bq-book-next svg { transform:rotate(180deg); }
.bq-book-date-nav { gap:0;padding:0 4px;border-radius:12px;background:var(--hx-raised); }
.bq-book-date-nav button { min-width:44px;min-height:44px;border:0;background:transparent;box-shadow:none; }
.bq-book-today { margin-left:8px;padding:3px 8px;border-radius:999px;background:var(--hx-select-wash);color:var(--hx-select);font-size:11px; }
.bq-book-target-icon { display:inline-flex;margin-right:6px;vertical-align:middle; }
.bq-book-scale { gap:0;padding:4px;border-radius:12px;background:var(--hx-raised); }
.bq-book-scale button { min-height:48px;border:0;background:transparent; }
.bq-book-filters button { display:flex;align-items:center;gap:8px;border:0;box-shadow:none; }
.bq-book-filter-marker { display:inline-block;width:15px;height:13px;border:1px solid var(--ht-book);border-radius:3px;background:color-mix(in srgb,var(--ht-book) 16%,transparent); }
.bq-book-filter-marker.marker-provisional { border-style:dashed;background:transparent; }
.bq-book-filter-marker.marker-late,.bq-book-filter-marker.marker-conflict { border-color:var(--ht-mech);background:color-mix(in srgb,var(--ht-mech) 16%,transparent); }
.bq-book-filter-marker.marker-completed { border-color:var(--ht-muted);background:var(--hx-raised); }
.bq-book-filter-short { display:none; }
.bq-book-axis-track .bq-book-axis-now { z-index:8;padding:3px 6px;border-radius:7px;background:var(--hx-select);color:var(--hx-panel);font-weight:800;top:4px; }
body.review-redesign #modal .bookings-modal .r7-booking-lanes button.is-booked:not([aria-pressed=true]) { border-color:var(--ht-book);border-style:dashed;color:var(--ht-book); }
@media(max-width:767px) { .bq-book-filter-long { display:none; }.bq-book-filter-short { display:inline; } }

body.review-redesign #modal .bookings-modal .r7-booking-title-step { min-width:44px;min-height:44px;border:0;background:transparent;color:var(--hx-text-2);vertical-align:middle; }
.r7-booking-title-step svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8; }
@media(min-width:768px) { .r7-booking-day-step { display:none; } body.screens-v1:has(#modal:not([hidden]) .bookings-modal) .bq-book-mobile-footer button.primary { visibility:hidden; } }
@media(max-width:767px) { .r7-booking-title-step,.r7-booking-title-day { display:none !important; } }

body.screens-v1 .bq-book-mobile-footer button.primary { display:inline-flex;flex-direction:row;align-items:center;justify-content:center; }
body.screens-v1 .bq-book-mobile-footer .bq-book-plus { display:inline-flex;flex-direction:row; }
@media (min-width: 768px) {
  body.screens-v1 #r7Page .bq-book-filters { min-height: 58px; }
}

/* Queue controls and lane board. */
body.screens-v1 .r7q-estimate.is-now b { color:var(--ht-free); }
body.screens-v1 .r7q-action-icon { display:inline-flex;align-items:center;justify-content:center;flex:none; }
body.screens-v1 .r7q-action-icon svg { width:17px;height:17px; }
body.screens-v1 .r7q-actions button,body.screens-v1 .r7q-header-add,body.screens-v1 .r7q-mobile-footer button { display:inline-flex;align-items:center;justify-content:center;gap:7px; }
body.screens-v1 .r7q-actions button.r7q-remove { color:var(--hx-st-fault);border:0;background:transparent; }
body.screens-v1 .r7q-actions button.r7q-remove-icon { width:44px;min-width:44px;padding:0;border:0;background:transparent;color:var(--hx-text-2); }
html[data-theme] body.review-redesign .r7q-actions button.primary { background:var(--hx-success,#168451);background-image:none;color:#fff;border:0; }
body.screens-v1 .r7q-hall-head { min-width:0; }
body.screens-v1 .r7q-hall-head .screen-info-trigger { flex:none; }
body.screens-v1 .r7q-free-count { margin-left:auto;white-space:nowrap;color:var(--ht-free);font-size:12px;font-weight:700; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state { font-size:15px;font-weight:800; }
body.screens-v1 .r7q-legend { flex-wrap:nowrap;overflow-x:auto; }
body.screens-v1 .r7q-legend > span { display:inline-flex;align-items:center;gap:5px;white-space:nowrap; }
body.screens-v1 .r7q-legend span::before { content:none; }
body.screens-v1 .r7q-legend svg { display:block;width:14px;height:14px; }
body.screens-v1 .r7q-legend .glyph-free svg { color:var(--ht-free); }
body.screens-v1 .r7q-legend .glyph-play svg { color:var(--ht-play); }
body.screens-v1 .r7q-legend .glyph-book svg { color:var(--ht-book); }
body.screens-v1 .r7q-legend .glyph-pause svg { color:var(--ht-pause); }
body.screens-v1 .r7q-legend .glyph-pay svg { color:var(--ht-pay); }
body.screens-v1 .r7q-legend .glyph-fault svg { color:var(--ht-mech); }
body.screens-v1 .r7q-legend .glyph-nolink svg,body.screens-v1 .r7q-legend .glyph-neutral svg,body.screens-v1 .r7q-legend .glyph-attn svg { color:var(--ht-muted); }
body.screens-v1 .r7q-legend .glyph-timeup svg { color:var(--ht-pay); }
@media(max-width:767px) {
 body.screens-v1 .r7q-row { min-width:0;overflow:hidden; }
 body.screens-v1 .r7q-actions { min-width:0; }
 body.screens-v1 .r7q-actions button:not(.primary) { min-width:0;padding:0 8px;font-size:14px; }
 body.screens-v1 .r7q-actions button.r7q-remove-icon { width:44px;min-width:44px;padding:0; }
 body.screens-v1 .r7q-hall-head { gap:4px;padding:0; }
 body.screens-v1 .r7q-hall-head > b { min-width:0;font-size:16px; }
 body.screens-v1 .r7q-hall-head .screen-info-trigger { min-width:36px;width:36px; }
 body.screens-v1 .r7q-page-dots { margin-left:0; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state { font-size:12px; }
}
html[data-theme="neon"] body.screens-v1 .r7q-estimate.is-now b { color:var(--hx-success,#38d78a); }
html[data-theme="light"] body.screens-v1 .r7q-estimate.is-now b { color:var(--hx-success,#087a44); }

html[data-theme] body.review-redesign .r7q-row-main { background:transparent; border:0; box-shadow:none; }

@media (min-width:768px) {
  body.review-redesign #modal .bookings-modal .r7-booking-form { grid-template-columns:170px minmax(0,1fr); gap:8px; }
  body.review-redesign #modal .bookings-modal .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:1; }
  body.review-redesign #modal .bookings-modal .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:2; }
  body.review-redesign #modal .bookings-modal .r7-booking-form > :not(.r7-booking-field:has(.r7-booking-start,.r7-booking-lanes)) { grid-column:1 / -1; }
  body.review-redesign #modal .bookings-modal .r7-booking-field { gap:4px; }
  body.review-redesign #modal .bookings-modal .r7-booking-lanes { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain; }
  body.review-redesign #modal .bookings-modal .r7-booking-lanes button { flex:0 0 44px;min-width:44px;min-height:44px;padding:0; }
  body.review-redesign #modal .bookings-modal .r7-booking-field :is(input,textarea,select),
  body.review-redesign #modal .bookings-modal .r7-booking-field .seg-btn,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper button { min-height:44px; }
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper button { height:44px; }
}
@media (max-width:767px) {
  body.review-redesign #modal .bookings-modal .r7-booking-form { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px; }
  body.review-redesign #modal .bookings-modal .r7-booking-day-step { grid-column:1;align-self:end;min-height:44px; }
  body.review-redesign #modal .bookings-modal .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:2; }
  body.review-redesign #modal .bookings-modal .r7-booking-form > :not(.r7-booking-day-step,.r7-booking-field:has(.r7-booking-start)) { grid-column:1 / -1; }
  body.review-redesign #modal .bookings-modal .r7-booking-field { gap:4px; }
  body.review-redesign #modal .bookings-modal .r7-booking-lanes { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:0;justify-content:space-between; }
  body.review-redesign #modal .bookings-modal .r7-booking-lanes button { flex:0 0 44px;min-width:44px;min-height:44px;padding:0; }
  body.review-redesign #modal .bookings-modal .r7-booking-field :is(input,textarea,select),
  body.review-redesign #modal .bookings-modal .r7-booking-field .seg-btn,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper button { min-height:44px; }
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper,
  body.review-redesign #modal .bookings-modal .r7-booking-field .stepper button { height:44px; }
  body.review-redesign #modal .bookings-modal .wizard-bar { flex-direction:row; }
  body.review-redesign #modal .modal.bookings-modal .wizard-bar button { width:auto;flex:1 1 0;min-width:0;padding-inline:8px;font-size:15px; }
  body.review-redesign #modal .modal.bookings-modal .wizard-bar button.primary { flex-grow:1.4; }
}
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .stepper,
body.review-redesign #modal .modal.bookings-modal .r7-booking-field .stepper button { height:44px;min-height:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-price { box-sizing:border-box;min-height:44px; }
@media (min-width:768px) { body.review-redesign #modal .bookings-modal .modal-body { padding-block:8px; } }
@media (min-width:768px) { body.review-redesign #modal .bookings-modal .r7-booking-form { row-gap:6px; } }
@media (max-width:767px) {
  body.review-redesign #modal .bookings-modal .r7-booking-day-step { gap:0; }
  body.review-redesign #modal .bookings-modal .r7-booking-day-step button { flex:0 0 44px;width:44px;padding:0; }
  body.review-redesign #modal .bookings-modal .r7-booking-day-value { white-space:nowrap; }
}
@media(max-width:767px) {
  html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane { padding:5px; }
  html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state { font-size:10px;letter-spacing:0;white-space:nowrap; }
  html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state-mark { display:none; }
}
/* Queue controls retain the approved quiet surfaces. */
body.screens-v1 .r7q-actions button:not(.primary):not(.r7q-remove),
body.screens-v1 .r7q-recent button,
html[data-theme] body.review-redesign #modal .queue-entry-modal .r7q-tags button,
html[data-theme] body.review-redesign #modal .queue-entry-modal #wizardBar button:not(.primary) { border:0;box-shadow:none;background:var(--hx-raised); }
body.screens-v1 .r7q-row > .r7q-window { display:none; }
@media(max-width:767px) {
 body.screens-v1 .r7q-aside { display:contents; }
 body.screens-v1 .r7q-aside > .r7q-hall { order:0; }
 body.screens-v1 .r7q-list-column { order:1; }
 body.screens-v1 .r7q-aside > .r7q-recent { order:2; }
 body.screens-v1 .r7q-aside > .r7q-window { display:none; }
 body.screens-v1 .r7q-list .r7q-list-head { order:-2; }
 body.screens-v1 .r7q-list .r7q-row.is-selected { order:-1; }
 body.screens-v1 .r7q-row > .r7q-window { display:block;border:0;background:transparent;padding:0;margin:4px 0; }
 body.screens-v1 .r7q-row > .r7q-window > b { display:none; }
 body.screens-v1 .r7q-row > .r7q-window .r7q-window-strip { min-height:28px;margin-top:0; }
 body.screens-v1 .r7q-pairs { scrollbar-width:none; }
 body.screens-v1 .r7q-pairs::-webkit-scrollbar { display:none; }
 body.screens-v1 .r7q-recent-row button { border:0;background:transparent;color:var(--hx-select); }
}
@media(max-width:767px) {
 body.screens-v1 .r7q-list-head { display:none; }
 body.screens-v1 .r7q-row > .r7q-window { display:flex;align-items:center;gap:6px; }
 body.screens-v1 .r7q-row > .r7q-window .r7q-window-strip { flex:1;min-width:0; }
 body.screens-v1 .r7q-row > .r7q-window small { flex:none;margin:0;font-size:11px; }
 body.screens-v1 .r7q-row > .r7q-window .booked { flex:0 0 auto!important;font-size:0; }
 body.screens-v1 .r7q-row > .r7q-window .booked::after { content:attr(data-mobile-clock);font-size:12px; }
 body.screens-v1 .r7q-pair .r7q-lane:first-child .r7q-lane-group { left:0;right:auto;transform:none; }
 body.screens-v1 .r7q-pair .r7q-lane:last-child .r7q-lane-group { left:auto;right:0;transform:none; }
}
/* Booking timeline: actual play, conflicts and empty dates. */
body.screens-v1 .bq-book-live,body.screens-v1 .bq-book-live-tail { position:absolute;top:19px;height:20px;min-height:20px;box-sizing:border-box;border-radius:7px;pointer-events:none;z-index:2; }
body.screens-v1 .bq-book-live { padding:0 6px;display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:11px;color:var(--ht-play);border:1px solid var(--ht-play);background:color-mix(in srgb,var(--ht-play) 25%,var(--hx-panel)); }
body.screens-v1 .bq-book-live-tail { border:1px dashed var(--ht-play);border-left:0;background:color-mix(in srgb,var(--ht-play) 10%,transparent); }
body.screens-v1 .bq-book-filter-warning { display:inline-flex;width:16px;height:16px;color:var(--ht-mech); }
body.screens-v1 .bq-book-filter-warning svg { width:100%;height:100%; }
body.screens-v1 .bq-book-conflict-flag { position:absolute;right:3px;top:3px;width:16px;height:16px;display:inline-flex;color:var(--ht-mech); }
body.screens-v1 .bq-book-conflict-flag svg { width:100%;height:100%; }
body.screens-v1 .bq-book-page-section { position:relative; }
body.screens-v1 .bq-book-empty-day { position:absolute;z-index:8;left:50%;top:44%;transform:translate(-50%,-50%);width:min(440px,80%);display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px;border:1px solid var(--hx-line);border-radius:14px;background:var(--hx-panel);text-align:center; }
body.screens-v1 .bq-book-empty-day small { color:var(--hx-text-2); }
body.screens-v1 .bq-book-empty-day button { min-height:44px; }
body.screens-v1 .bq-book-mobile-details .bq-book-mobile-late,body.screens-v1 .bq-book-mobile-details .bq-book-mobile-conflict { color:var(--ht-mech);font-weight:700; }
@media (min-width:768px) {
 body.review-redesign #modal .modal.bookings-modal { width:min(520px,calc(100vw - 32px)); }
 body.review-redesign #modal .bookings-modal .modal-body { padding-inline:12px; }
 body.review-redesign #modal .bookings-modal .r7-booking-form { grid-template-columns:160px minmax(0,1fr); }
 body.review-redesign #modal .bookings-modal .r7-booking-start { grid-template-columns:44px minmax(72px,1fr) 44px; }
 body.review-redesign #modal .bookings-modal .r7-booking-lanes { overflow:visible;gap:0;justify-content:space-between; }
 body.review-redesign #modal .bookings-modal .r7-booking-lanes button { flex:1 1 40px;min-width:40px;max-width:44px;min-height:44px; }
}
@media (max-width:767px) {
 body.review-redesign #modal .bookings-modal .r7-booking-lanes { overflow:visible;gap:0; }
 body.review-redesign #modal .bookings-modal .r7-booking-lanes button { flex:1 1 40px;min-width:40px;min-height:44px; }
 body.screens-v1 .bq-book-filters { overflow-x:auto;scrollbar-width:none; }
 body.screens-v1 .bq-book-filters::-webkit-scrollbar { display:none; }
 body.screens-v1 .bq-book-filters button { flex:none; }
}
/* Booking edit tabs and status reflect the dossier. */
body.review-redesign #modal .bookings-modal .r7-booking-head-status { display:inline-flex;margin-left:10px;padding:3px 8px;border-radius:8px;font-size:12px;font-weight:700;color:var(--ht-book);background:color-mix(in srgb,var(--ht-book) 16%,transparent); }
body.review-redesign #modal .bookings-modal .r7-booking-head-status.status-provisional { color:var(--ht-muted); }
body.review-redesign #modal .bookings-modal .r7-booking-tabs { grid-column:1 / -1;display:flex;gap:0;border-bottom:1px solid var(--hx-line); }
body.review-redesign #modal .bookings-modal .r7-booking-tabs button { min-height:44px;padding:0 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--hx-text-2); }
body.review-redesign #modal .bookings-modal .r7-booking-tabs [aria-selected=true] { color:var(--hx-select);border-bottom-color:var(--hx-select); }
body.review-redesign #modal .bookings-modal .r7-booking-history { grid-column:1 / -1;max-height:none; }
body.review-redesign #modal .bookings-modal .r7-booking-history[hidden] { display:none; }
body.review-redesign #modal .bookings-modal .r7-booking-form.is-history > :not(.r7-booking-tabs,.r7-booking-history) { display:none!important; }
body.review-redesign #modal .bookings-modal .r7-booking-history-item { position:relative;padding:10px 8px 10px 20px;border-bottom:1px solid var(--hx-line);font-size:13px; }
body.review-redesign #modal .bookings-modal .r7-booking-history-item::before { content:'';position:absolute;left:5px;top:17px;width:6px;height:6px;border-radius:50%;background:var(--hx-select); }
body.review-redesign #modal .bookings-modal .wizard-bar .r7-booking-remove { border:0;background:transparent;color:var(--ht-mech); }
body.review-redesign #modal .bookings-modal .wizard-bar .r7-booking-noshow { border:0;background:var(--hx-raised); }
body.review-redesign #modal .bookings-modal .wizard-bar :is(.r7-booking-arrived,.r7-booking-open-lane) > .bq-book-next { display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;vertical-align:middle;flex:none; }
body.review-redesign #modal .bookings-modal .wizard-bar :is(.r7-booking-arrived,.r7-booking-open-lane) > .bq-book-next svg { display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8; }
@media (min-width:768px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-day-step { display:flex;grid-column:1; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:2; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:1 / -1; }
}
body.review-redesign #modal .bookings-modal .r7-booking-head-status.is-late { color:var(--ht-mech);background:color-mix(in srgb,var(--ht-mech) 16%,transparent); }
@media (min-width:768px) {
 body.review-redesign #modal .modal.bookings-modal.booking-is-edit .wizard-bar > button { width:auto;flex:0 0 auto;min-width:0;padding-inline:14px;font-size:15px; }
 body.review-redesign #modal .modal.bookings-modal.booking-is-edit .wizard-bar > .r7-booking-remove { margin-right:auto;padding-inline:0;text-align:left; }
}

html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-btn,
html[data-theme] body.review-redesign #modal .queue-entry-modal .stepper .step-num { border:0;box-shadow:none; }
body.screens-v1 .bq-book-filters [data-booking-filter=attention] { display:none; }
@media (max-width:767px) {
 body.screens-v1 .bq-book-filters [data-booking-filter=attention] { display:flex; }
 body.screens-v1 .bq-book-filters [data-booking-filter=conflict] { display:none; }
}
@media (min-width:768px) { html[data-theme] body.review-redesign #modal .modal.bookings-modal { width:min(520px,calc(100vw - 32px)); } }
body.screens-v1 .bq-book-mobile-footer button:not(.primary) { display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px; }
body.screens-v1 .bq-book-mobile-footer .bq-book-next { display:inline-flex; }
body.screens-v1 .bq-book-mobile-footer .bq-book-next svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8; }
@media (min-width:768px) {
 body.screens-v1 .bq-book-row { min-height:55px; }
 body.screens-v1 .bq-book-track { height:55px; }
 body.screens-v1 .bq-book-slot { min-height:44px; }
 body.screens-v1 .bq-book-event { height:44px;min-height:44px; }
}
html[data-theme] body.review-redesign #modal .bookings-modal #wizardBar button.r7-booking-remove { border:0;background:transparent;color:var(--ht-mech);box-shadow:none; }
@media (max-width:767px) {
  body.screens-v1 .bq-book-empty-day { position:static;transform:none;box-sizing:border-box;margin:24px auto; }
  body.screens-v1 .r7q-row-main { padding:0;gap:6px; }
  body.screens-v1 .r7q-person,body.screens-v1 .r7q-estimate { gap:2px; }
  body.screens-v1 .r7q-row:not(.is-selected) .r7q-actions { margin-top:0; }
}
html[data-theme="light"] body.review-redesign #modal .queue-entry-modal #wizardBar button:not(.primary),
html[data-theme="light"] body.review-redesign #modal .bookings-modal #wizardBar button:not(.primary):not(.r7-booking-remove):not(.r7-booking-noshow) { border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-text) 7%,var(--hx-panel)); }
@media (min-width:768px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-day-step { grid-column:1;grid-row:1;justify-self:stretch;align-self:end;min-width:0;min-height:44px;gap:0; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:2;grid-row:1; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:1 / -1;grid-row:2; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-duration { grid-column:2;grid-row:3; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.stepper) { grid-column:1;grid-row:3; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-two { grid-column:1 / -1;grid-row:4; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-price { grid-column:1 / -1;grid-row:5; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-day-value { white-space:nowrap;font-size:16px; }
}
@media (min-width:768px) {
 body.screens-v1 .r7q-row { padding-block:6px; }
 body.screens-v1 .r7q-row-main { min-height:64px; }
 body.screens-v1 .r7q-person,body.screens-v1 .r7q-estimate { gap:2px; }
}

@media (min-width:768px) and (max-width:800px) {
 body.review-redesign.r7-page-open #r7Page:has(> :is(.r7q-page-head,.bq-book-layout)) { grid-column:2 / -1;grid-row:4;min-width:0; }
}

/* Desktop booking and queue actions occupy the page-owned topbar slot. */
@media (min-width:1200px) {
 body.screens-v1:has(#r7PageTools) #r7Page > .r7-page-head { display:none; }
 body.screens-v1 #r7PageTools { display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;min-width:0; }
 body.screens-v1 #r7PageTools .bq-book-create { display:none; }
 body.screens-v1 #r7PageTools :is(button,.bq-book-date-nav,.bq-book-scale) { box-sizing:border-box; }
 body.screens-v1 #r7PageTools button { min-height:48px; }
 body.screens-v1 #r7PageTools .bq-book-date-nav { white-space:nowrap;font-size:13px; }
 body.screens-v1 #r7PageTools .bq-book-date-nav button { min-width:44px;padding-inline:6px; }
 body.screens-v1 #r7PageTools .bq-book-scale button { padding-inline:10px;font-size:13px; }
 body.screens-v1 #r7PageTools .bq-book-now-button { display:inline-flex;align-items:center;gap:6px;padding-inline:10px;white-space:nowrap; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7HeaderTitle { flex:0 0 auto; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Operator { flex:0 0 56px;min-width:56px;max-width:56px;justify-content:center;padding:0; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Operator :is(.r7-operator-text,.session-time,.session-info) { display:none; }
 body.screens-v1.review-redesign .topbar:has(#r7PageTools[data-page=bookings]) #r7Operator .session-time { display:none!important; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Search { flex:0 0 56px;min-width:56px;max-width:56px; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Search :is(.r7-search-input,.r7-search-icon) { display:none; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Search .r7-search-toggle { display:inline-flex;width:56px;min-width:56px;align-items:center;justify-content:center;padding:0; }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Search.is-open .r7-search-input { display:block;position:absolute;left:0;top:56px;width:min(340px,calc(100vw - 24px)); }
 body.screens-v1 .topbar:has(#r7PageTools[data-page=bookings]) #r7Search.is-open .r7-search-results { top:calc(100% + 58px);left:0;right:auto; }
}

@media (min-width:1200px) and (max-width:1365px) {
 body.screens-v1 .topbar:has(#r7PageTools) #hallEquipment { flex:0 0 56px;width:56px;min-width:56px;min-height:56px;padding:0;justify-content:center; }
 body.screens-v1 .topbar:has(#r7PageTools) #hallEquipment .hall-equipment-state { display:none; }
}

body.review-redesign #modal .bookings-modal .r7-booking-form[hidden] { display:none; }
body.review-redesign #modal .bookings-modal .modal-body > .r7-booking-tabs { margin-bottom:6px; }

@media (min-width:768px) {
 html[data-theme] body.review-redesign #modal .modal.bookings-modal:not(.booking-is-edit) { width:min(538px,calc(100vw - 32px)); }
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal:not(.booking-is-edit)) #r7Page .bq-book-scroll { width:calc(100% - min(538px,45vw)); }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form { grid-template-columns:152px minmax(0,1fr);row-gap:4px; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-start { grid-template-columns:44px minmax(0,1fr) 44px; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-lanes button { flex:0 0 44px;min-width:44px; }
}

/* Keep queue actions distinct from the row selection target. */
body.screens-v1 .r7q-row:not(.is-selected) { display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,168px) auto;align-items:center;column-gap:8px; }
body.screens-v1 .r7q-row:not(.is-selected) .r7q-row-main { grid-template-columns:36px minmax(0,1fr);min-width:0; }
body.screens-v1 .r7q-person b { overflow-wrap:normal;word-break:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
body.screens-v1 .r7q-repeat-menu { position:relative; }
body.screens-v1 .r7q-repeat-menu > summary { display:grid;place-items:center;min-width:44px;min-height:44px;list-style:none;cursor:pointer;border-radius:10px;background:var(--hx-raised);color:var(--hx-text); }
body.screens-v1 .r7q-repeat-menu > summary::-webkit-details-marker { display:none; }
body.screens-v1 .r7q-repeat-menu > button { position:absolute;z-index:10;top:100%;left:0;min-width:112px;box-shadow:0 4px 16px #0004; }
body.screens-v1 .r7q-inline-add { display:none; }
html[data-theme] body.review-redesign .r7q-header-add,html[data-theme] body.review-redesign .r7q-inline-add,html[data-theme] body.review-redesign .r7q-mobile-footer > button { border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text); }
html[data-theme] body.review-redesign .queue-entry-modal .r7q-add .stepper :is(.step-btn,.step-num) { border:0;box-shadow:none; }
body.screens-v1 .r7q-recent > b,body.screens-v1 .r7q-recent-row { font-size:13px; }
body.screens-v1 .r7q-recent-row button { color:var(--hx-select);border:0;background:transparent;font-size:13px;box-shadow:none; }
@media (min-width:768px) and (max-width:1199px) {
 body.screens-v1 .r7q-page-head { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }
 body.screens-v1 .r7q-inline-add { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;margin-left:8px; }
 body.screens-v1 .r7q-row:not(.is-selected) { grid-template-columns:minmax(0,1fr) auto; }
 body.screens-v1 .r7q-row:not(.is-selected) .r7q-row-main { grid-column:1;grid-row:1; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-estimate { grid-column:1;grid-row:2;margin-left:48px; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-actions { grid-column:2;grid-row:1 / 3; }
 body.screens-v1 .r7q-row.is-selected .r7q-row-main { grid-template-columns:36px minmax(0,1fr); }
 body.screens-v1 .r7q-row.is-selected .r7q-row-main > .r7q-estimate { grid-column:2; }
 body.screens-v1 .r7q-row.is-selected .r7q-actions { flex-wrap:nowrap; }
}
@media (max-width:767px) {
 body.screens-v1 .r7q-row:not(.is-selected) { grid-template-columns:minmax(0,1fr) 126px;grid-template-rows:auto auto;min-height:100px;box-sizing:border-box;gap:0 4px; }
 body.screens-v1 .r7q-row:not(.is-selected) .r7q-row-main { grid-column:1;grid-row:1 / 3;grid-template-columns:24px minmax(0,1fr);min-height:84px; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-estimate { grid-column:2;grid-row:1;align-self:end; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-actions { grid-column:2;grid-row:2;align-self:start;justify-content:flex-start;gap:0; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-actions button:not(.r7q-remove-icon) { min-width:72px; }
 body.screens-v1 .r7q-repeat-menu > summary { min-width:44px;min-height:44px; }
}
body.screens-v1 .r7q-hall .daily-lane-state-mark { margin-right: 4px; }

/* Booking timeline displays confirmed play and prepaid remainder without obscuring controls. */
@media (min-width:768px) {
 body.screens-v1 .bq-book-live { top:5px;height:44px;min-height:44px;display:block;padding:0;border:0;border-radius:8px;background:color-mix(in srgb,var(--ht-play) 12%,var(--hx-panel));color:var(--ht-play);overflow:hidden; }
 body.screens-v1 .bq-book-live-played { position:absolute;inset:0 auto 0 0;background:color-mix(in srgb,var(--ht-play) 26%,var(--hx-panel)); }
 body.screens-v1 .bq-book-live .bq-book-live-tail { position:absolute;top:0;height:100%;min-height:0;border:0;border-radius:0;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--ht-play) 22%,transparent) 0 5px,transparent 5px 10px); }
 body.screens-v1 .bq-book-live-label { position:absolute;left:8px;right:8px;top:6px;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700; }
 body.screens-v1 .bq-book-live-progress { position:absolute;left:8px;right:8px;bottom:5px;height:3px;overflow:hidden;border-radius:3px;background:color-mix(in srgb,var(--ht-play) 22%,transparent); }
 body.screens-v1 .bq-book-live-progress i { display:block;height:100%;border-radius:inherit;background:var(--ht-play); }
 body.screens-v1 .bq-book-event.status-completed,body.screens-v1 .bq-book-event.status-finished { border-color:transparent;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text-2); }
}
body.screens-v1 .bq-book-scroll { scrollbar-width:none; }
body.screens-v1 .bq-book-scroll::-webkit-scrollbar { display:none; }
body.screens-v1 .bq-book-event.is-conflict strong,body.screens-v1 .bq-book-event.is-conflict small { padding-right:16px; }
html[data-theme] body.review-redesign .bq-book-now-button { border:0;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));box-shadow:none;font-size:14px; }
html[data-theme] body.review-redesign #modal .bookings-modal #modalClose { border:0;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));box-shadow:none; }
@media (max-width:767px) {
 body.screens-v1 .r7-page-head:has(.bq-book-date-nav) .r7-page-actions { width:100%; }
 body.screens-v1 .bq-book-date-nav { width:100%;box-sizing:border-box;justify-content:space-between; }
 body.screens-v1 .bq-book-empty-day > small { display:none; }
 body.review-redesign #modal .bookings-modal .r7-booking-field .stepper,
 body.review-redesign #modal .bookings-modal .r7-booking-field .stepper button { border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel)); }
 html[data-theme] body.review-redesign .bq-book-empty-day button.primary { background:var(--hx-success,#168451);color:#fff;border:0;box-shadow:none; }
}

/* Keep the repeat action usable above neighbouring cards. */
body.screens-v1 .r7q-row:has(.r7q-repeat-menu[open]) { overflow:visible;position:relative;z-index:12; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state-mark { display:inline-block;margin-right:4px; }
@media (max-width:767px) {
 body.screens-v1 .r7q-row:not(.is-selected) .r7q-actions .r7q-remove-icon { display:none; }
}

body.screens-v1 .r7q-repeat-menu > summary::before { content:none;display:none; }

body.screens-v1 .r7q-actions .r7q-repeat-menu > button:not(.primary) { min-width:112px;white-space:nowrap; }

body.screens-v1 .bq-book-axis-track .bq-book-next-day { margin-left:3px;font-size:9px;vertical-align:super; }
body.screens-v1 .bq-book-event .bq-book-continues { position:absolute;right:3px;bottom:2px;font-size:18px;line-height:1; }

/* Queue postpone: preserve readable disabled state and reachable explanation. */
body.screens-v1 .r7q-actions .r7q-later-control { display:inline-flex;align-items:center;min-width:0; }
html[data-theme] body.review-redesign .r7q-actions .r7q-later-control > button.r7q-later:disabled { opacity:1;cursor:not-allowed;color:var(--hx-text);background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));border:0;box-shadow:none; }
html[data-theme] body.review-redesign .r7q-actions .r7q-later-control .screen-info-trigger { display:inline-grid;min-width:44px;width:44px;min-height:44px;height:44px;padding:13px;background:transparent;border:0;box-shadow:none; }
@media (min-width:768px) and (max-width:1199px) {
 body.screens-v1 .r7q-row.is-selected .r7q-actions button { padding-inline:8px;font-size:14px;white-space:nowrap; }
}

/* Keep all queue actions reachable when the conversion capability is present. */
@media (min-width:768px) and (max-width:1199px) {
 body.screens-v1 .r7q-row.is-selected .r7q-actions:has(.r7q-to-booking) { flex-wrap:wrap; }
}

body.screens-v1 .r7q-actions:has(.r7q-to-booking) .r7q-later-control { flex:none; }
@media (max-width:767px) {
 body.screens-v1 .r7q-row.is-selected .r7q-actions:has(.r7q-to-booking) { gap:4px; }
 body.screens-v1 .r7q-row.is-selected .r7q-actions:has(.r7q-to-booking) > button:not(.primary) { padding-inline:6px; }
}
/* Keep bookings available as a list when the business date is unknown. */
body.screens-v1 .bq-book-undated { display:grid; gap:12px; }
body.screens-v1 .bq-book-undated-date { color:var(--hx-text-2); font-size:16px; }
body.screens-v1 .bq-book-undated-list { display:grid; gap:8px; }
body.screens-v1 .bq-book-undated-list .bq-book-mobile-card { min-height:64px; width:100%; }
body.screens-v1 .bq-book-undated-list .bq-book-mobile-time { flex:0 0 108px; min-width:0; }
body.screens-v1 .bq-book-undated-list .bq-book-mobile-time strong, body.screens-v1 .bq-book-undated-list .bq-book-mobile-time small { white-space:nowrap; }

/* Muted out-of-schedule intervals remain visible without blocking calendar actions. */
.bq-book-track { --bq-inactive-background:color-mix(in srgb,var(--hx-text) 8%,transparent); }
.bq-book-past,.bq-book-off-window { background:var(--bq-inactive-background); }
.bq-book-off-window { position:absolute;top:0;bottom:0;pointer-events:none; }

.bq-book-track { background:none; }
.bq-book-slot { box-sizing:border-box;border-right:1px solid var(--hx-line); }

.bq-book-unassigned-label { gap:0;padding-inline:6px;font-size:12px;font-weight:700; }
.bq-book-unassigned-slot { cursor:default;pointer-events:none; }

/* Unknown-duration controls mark their actual start, including at the track edge. */
.bq-book-event[data-booking-unknown-duration]::after { content:"";position:absolute;top:2px;bottom:2px;left:calc(var(--bq-book-marker-anchor) - 1px);width:2px;transform:translateX(-50%);background:currentColor;pointer-events:none; }

/* Keep the selected queue actions intact on narrower desktop layouts. */
@media (min-width:768px) and (max-width:1199px) {
 body.screens-v1 .r7q-row.is-selected .r7q-actions { flex-wrap:wrap; }
 body.screens-v1 .r7q-row.is-selected .r7q-actions .r7q-later-control { flex:none; }
}

/* Existing booking opens directly into the contract's edit sheet. */
@media (min-width:768px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-day-step) { grid-column:1;grid-row:1; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:2;grid-row:1; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-two { grid-column:1 / -1;grid-row:2; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.stepper) { grid-column:1;grid-row:3; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-price { grid-column:1 / -1;grid-row:4; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-duration { grid-column:1 / -1;grid-row:5; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:1 / -1;grid-row:6; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(textarea) { grid-column:1 / -1;grid-row:7; }
}
body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-tabs { position:sticky;top:-8px;z-index:3;background:var(--hx-panel); }
html[data-theme] body.review-redesign #modal .bookings-modal.booking-is-edit #modalClose { border:0;background:transparent;box-shadow:none; }
@media (max-width:767px) {
 body.review-redesign #modal:has(.bookings-modal.booking-is-edit) { align-items:flex-end; }
 body.review-redesign #modal .modal.bookings-modal.booking-is-edit { height:min(90dvh,760px);max-height:90dvh;border-radius:20px 20px 0 0;padding-top:0; }
}

/* Queue controls retain the compact, readable layout on the tablet and phone. */
@media (min-width:768px) and (max-width:899px) {
 body.screens-v1 .r7q-list-head { gap:6px;padding-inline:0;white-space:nowrap; }
 body.screens-v1 .r7q-list-head small { margin-left:auto;white-space:nowrap; }
 body.screens-v1 .r7q-inline-add { margin-left:0;padding-inline:8px;white-space:nowrap; }
 body.screens-v1 .r7q-person small { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
}
html[data-theme] body.review-redesign .r7q-header-add,html[data-theme] body.review-redesign .r7q-inline-add,html[data-theme] body.review-redesign .r7q-mobile-footer > button { font-size:16px;font-weight:600; }
@media (max-width:767px) {
 body.screens-v1 .r7q-mobile-footer { height:72px;min-height:72px;padding:8px 14px; }
 body.screens-v1 .r7q-mobile-footer > span { display:flex;flex-direction:column;gap:2px; }
 body.screens-v1 .r7q-mobile-footer > span > b { display:flex;flex-direction:row;align-items:center;white-space:nowrap; }
 body.screens-v1 .r7q-mobile-footer > button { height:48px;min-height:48px;font-size:16px;font-weight:600;white-space:nowrap; }
 body.screens-v1 .r7q-hall { padding-top:8px; }
 body.screens-v1 .r7q-aside { gap:6px; }
 body.screens-v1 .r7q-estimate b { font-size:14px; }
}

/* Bookings controls: compact tablet layout uses the same filters as mobile. */
@media (min-width:768px) and (max-width:899px) {
 body.screens-v1 .r7-page-head:has(.bq-book-date-nav) .r7-page-actions { flex-wrap:nowrap;gap:6px;width:100%; }
 body.screens-v1 .bq-book-date-nav { min-width:0;flex:1 1 auto;gap:0;white-space:nowrap; }
 body.screens-v1 .bq-book-date-nav button { min-width:40px;padding-inline:4px; }
 body.screens-v1 .bq-book-now-button,body.screens-v1 .bq-book-scale { flex:none; }
 body.screens-v1 .bq-book-scale button { min-width:48px;padding-inline:8px; }
 body.screens-v1 .bq-book-filter-long { display:none; }
 body.screens-v1 .bq-book-filter-short { display:inline; }
 body.screens-v1 .bq-book-filters [data-booking-filter=attention] { display:flex; }
 body.screens-v1 .bq-book-filters [data-booking-filter=conflict] { display:none; }
}
html[data-theme] body.review-redesign .bq-book-mobile-footer button:not(.primary) { border:0;box-shadow:none; }
/* Timeline slots are hit regions, not raised buttons. */
html[data-theme] body.review-redesign .bq-book-slot { background:transparent;border:0;border-right:1px solid var(--hx-line);border-radius:0;box-shadow:none; }
html[data-theme] body.review-redesign .bq-book-mobile-footer button:not(.primary) { background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel)); }
html[data-theme] body.review-redesign .bq-book-empty-day button.primary { background:#157a45;background-image:none;color:#fff;border:0;box-shadow:none;font-size:14px; }

@media (max-width:767px) {
 body.screens-v1 .r7q-layout { gap:4px; }
 body.screens-v1 .r7q-hall { padding-top:0; }
 body.screens-v1 .r7q-pairs { padding-top:10px; margin-bottom:4px; }
}

/* Booking conflicts belong to the lane, independently of the active filter. */
body.screens-v1 .bq-book-lane .bq-book-lane-conflict { display:flex;align-items:center;gap:3px;color:var(--ht-mech);font-size:10px;line-height:1;white-space:nowrap; }
body.screens-v1 .bq-book-lane .bq-book-lane-conflict span { display:inline-flex;flex:none;width:11px;height:11px; }
body.screens-v1 .bq-book-lane .bq-book-lane-conflict svg { width:100%;height:100%; }
html[data-theme] body.review-redesign .bq-book-event:is(.status-completed,.status-finished) { border-color:transparent;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text-2); }

/* Keep the current-time line visible over cards, with an opaque backing for their text. */
body.screens-v1 .bq-book-now { z-index:1; }
body.screens-v1 :is(.bq-book-event,.bq-book-live)[data-booking-now-line]::before {
 content:"";position:absolute;top:0;bottom:0;left:var(--bq-now-offset);width:2px;
 background:var(--ht-select);box-shadow:0 0 7px var(--ht-select);z-index:2;pointer-events:none;
}
body.screens-v1 .bq-book-event[data-booking-now-line] :is(strong,small,.bq-book-conflict-flag,.bq-book-continues) { position:relative;z-index:3;background:inherit; }
body.screens-v1 .bq-book-event[data-booking-now-line] :is(.bq-book-conflict-flag,.bq-book-continues) { position:absolute; }
body.screens-v1 .bq-book-event[data-booking-now-line] :is(strong,small) { width:fit-content;max-width:100%; }
body.screens-v1 .bq-book-event[data-booking-now-line][data-booking-unknown-duration]::after { z-index:3; }
body.screens-v1 .bq-book-live[data-booking-now-line] .bq-book-live-label { z-index:3;right:auto;width:fit-content;max-width:calc(100% - 16px);background:color-mix(in srgb,var(--ht-play) 26%,var(--hx-panel)); }

/* Read-only booking details remain grouped with the guest count. */
@media (min-width:768px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form { row-gap:5px; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-duration { margin-top:2px; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-guest-count]) { grid-column:1;grid-row:3; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-quote]) { grid-column:1;grid-row:4; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-deposit]) { grid-column:2;grid-row:4; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-unavailable { grid-column:1 / -1;grid-row:6; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-duration { grid-column:1 / -1;grid-row:5; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:1 / -1;grid-row:7; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(textarea) { grid-column:1 / -1;grid-row:8; }
}
body.review-redesign #modal .bookings-modal .r7-booking-unavailable { font-size:14px;color:var(--hx-text-2); }

/* An alternative recommendation is informational for an already called group. */
body.screens-v1 .r7q-alternative { grid-column:1 / -1;display:flex;justify-content:flex-end;color:var(--hx-text-2);font-size:12px;line-height:1.2; }
body.screens-v1 .r7q-seat-reason { grid-column:1 / -1;display:block;color:var(--hx-text-2);font-size:12px; }
body.screens-v1 .r7q-row:not(.is-selected) > .r7q-alternative { grid-row:3; }

/* Compact queue body beneath the shared mobile header. */
@media(max-width:767px) {
 body.screens-v1 #r7Page .r7q-layout { margin-top:-13px; }
 body.screens-v1 .r7q-mobile-footer > button { min-height:48px; }
 html[data-theme] body.review-redesign.screens-v1:has(#r7Page .r7q-layout) .topbar #r7HeaderTitle { font-size:16px; }
}

/* Compact filters combine late and conflicting bookings in Attention. */
@media (max-width:899px) {
 body.screens-v1 .bq-book-filters [data-booking-filter=late],body.screens-v1 .bq-book-filters [data-booking-filter=completed] { display:none; }
}

/* Keep the date and start controls on one row in the mobile edit panel. */
@media (max-width:767px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-day-step) { grid-column:1;grid-row:1;min-width:0; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has(.r7-booking-start) { grid-column:2;grid-row:1;min-width:0; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-day-step { min-width:0; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-start { grid-template-columns:44px minmax(0,1fr) 44px;min-width:0; }
}

/* Keep the queue usable when its list is beside the lane map. */
@media (min-width:768px) and (max-width:1199px) {
 body.screens-v1 .r7q-row-main { padding:0; gap:6px; }
 body.screens-v1 .r7q-row.is-selected .r7q-row-main { grid-template-columns:28px minmax(0,1fr) minmax(90px,120px); }
 body.screens-v1 .r7q-row.is-selected .r7q-row-main > .r7q-estimate { grid-column:3;grid-row:1;align-self:start; }
 body.screens-v1 .r7q-row:not(.is-selected) .r7q-row-main { grid-template-columns:28px minmax(0,1fr); }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-estimate { margin-left:34px; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-actions { gap:2px; }
 body.screens-v1 .r7q-row:not(.is-selected) > .r7q-actions button:not(.r7q-remove-icon) { padding-inline:6px; }
}
@media (max-width:767px) {
 body.screens-v1 .r7q-row.is-selected .r7q-row-main { min-height:64px;grid-template-columns:24px minmax(0,1fr) minmax(82px,108px);gap:6px; }
 body.screens-v1 .r7q-row.is-selected .r7q-row-main > .r7q-estimate { grid-column:3;grid-row:1;align-self:start;text-align:right; }
 body.screens-v1 .r7q-row.is-selected .r7q-person small.called { display:block; }
 body.screens-v1 .r7q-row.is-selected .r7q-estimate small { color:var(--ht-book); }
 body.screens-v1 .r7q-row.is-selected .r7q-actions { gap:4px; }
}
body.screens-v1 .r7q-seat-reason .screen-info-trigger { display:inline-grid;width:44px;min-width:44px;height:44px;min-height:44px;padding:13px;border:0;background:transparent;box-shadow:none; }
body.screens-v1 .r7q-booking-help { grid-column:1 / -1;display:flex;justify-content:flex-end; }
body.screens-v1 .r7q-booking-help .screen-info-trigger { display:inline-grid;width:44px;min-width:44px;height:44px;min-height:44px;padding:13px;border:0;background:transparent;box-shadow:none; }
body.screens-v1 .r7q-lane-booking-help { position:absolute;right:0;bottom:0; }
html[data-theme] body.review-redesign .r7q-hall .r7q-lane-booking-help .screen-info-trigger { display:inline-grid;width:44px;min-width:44px;height:44px;min-height:44px;padding:14px;border:0;background:transparent;box-shadow:none; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane:has(.r7q-lane-booking-help) .daily-lane-state { white-space:normal;padding-right:18px;font-size:11px; }
@media(max-width:767px) {
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane:has(.r7q-lane-booking-help) .daily-lane-glyph { visibility:hidden; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane:has(.r7q-lane-booking-help) .daily-lane-state { padding:0;white-space:normal;font-size:10px;line-height:1.1;text-align:left; }
 body.screens-v1 .r7q-lane-booking-help { top:-10px;right:-5px;bottom:auto;z-index:2; }
 html[data-theme] body.review-redesign .r7q-hall .r7q-lane-booking-help .screen-info-trigger { width:44px;min-width:44px;height:44px;min-height:44px;padding:14px; }
}
@media (min-width:768px) and (max-width:899px) {
 body.screens-v1 .r7q-aside .r7q-window-strip .booked { white-space:normal;overflow-wrap:anywhere;line-height:1.1; }
}

/* Required duration feedback on the booking panel. */
body.review-redesign #modal .bookings-modal .r7-booking-duration-help { color:var(--hx-text-2); font-size:13px; line-height:1.3; }
body.review-redesign #modal .bookings-modal .r7-booking-duration.is-invalid .seg { outline:2px solid var(--st-fault); outline-offset:2px; border-radius:10px; }
body.review-redesign #modal .bookings-modal .r7-booking-duration.is-invalid .r7-booking-duration-help { color:var(--st-fault); }

/* Keep the field label clear of the booking panel's sticky tabs. */
body.review-redesign #modal .bookings-modal.booking-is-edit .modal-body { scroll-padding-top:60px; }
body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-field { scroll-margin-top:60px; }
body.review-redesign #modal .bookings-modal .r7-booking-more { display:none; }
@media (max-width:767px) {
 body.review-redesign #modal .bookings-modal.booking-is-edit .wizard-bar { flex-wrap:nowrap; gap:8px; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .wizard-bar > .r7-booking-secondary { display:none!important; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more { position:relative; display:block; flex:1 1 0; min-width:0; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more > summary { display:flex; align-items:center; justify-content:center; min-height:56px; padding:0 8px; border-radius:12px; background:var(--hx-raised); color:var(--hx-text); font-weight:700; cursor:pointer; list-style:none; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more > summary::-webkit-details-marker { display:none; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more > summary:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more-menu { position:absolute; bottom:calc(100% + 8px); left:0; z-index:5; width:min(260px,calc(100vw - 32px)); padding:6px; border:1px solid var(--hx-line); border-radius:12px; background:var(--hx-panel); box-shadow:0 8px 24px #0003; }
 body.review-redesign #modal .modal.bookings-modal.booking-is-edit .wizard-bar .r7-booking-more-menu button { display:block; width:100%; min-height:48px; padding:0 12px; text-align:left; white-space:nowrap; }
 body.review-redesign #modal .modal.bookings-modal.booking-is-edit .wizard-bar .r7-booking-more-menu button[hidden] { display:none; }
}

/* Booking labels and disabled actions retain their state in both themes. */
html[data-theme] body.review-redesign .r7q-actions button.primary:disabled { background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-raised));background-image:none;color:var(--hx-text-2);opacity:1;cursor:not-allowed;box-shadow:none; }
body.screens-v1 .r7q-seat-control { display:inline-flex;align-items:center;gap:0;min-width:0; }
body.screens-v1 .r7q-seat-control .r7q-seat-reason { display:inline-flex;flex:none; }
html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .r7q-free-booking .daily-lane-state-mark { display:none; }
body.screens-v1 .r7q-free-booking .r7q-free-label,body.screens-v1 .r7q-free-booking .r7q-booking-label { display:block;white-space:nowrap; }
body.screens-v1 .r7q-free-booking .r7q-booking-label { font-size:10px;font-weight:600; }
@media(max-width:767px) {
 body.screens-v1 .r7q-seat-control { width:100%; }
 body.screens-v1 .r7q-actions > .r7q-seat-control { order:-1;flex-basis:100%; }
 body.screens-v1 .r7q-seat-control > button.primary { flex:1 1 auto;min-width:0; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane.glyph-free .daily-lane-state:not(.r7q-free-booking) { font-size:9px;white-space:nowrap; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane.glyph-free .daily-lane-state:not(.r7q-free-booking) .daily-lane-state-mark { margin-right:2px; }
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state.r7q-free-booking { padding:0;white-space:normal;font-size:10px;line-height:1.1;text-align:left; }
 body.screens-v1 .r7q-free-booking .r7q-booking-label { font-size:9px;font-weight:600; }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more > summary::before { transform:rotate(45deg); }
 body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-more[open] > summary::before { transform:rotate(225deg); }
}
/* Guest directory draft remains disabled until its service contract is available. */
body.screens-v1 .guest-draft { min-width:0;display:flex;flex-direction:column;gap:12px; }
body.screens-v1 .guest-draft-card { min-width:0;border:1px solid var(--hx-line);border-radius:16px;background:var(--hx-panel);padding:16px; }
body.screens-v1 .guest-draft-layout { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:12px; }
body.screens-v1 .guest-draft-filters,body.screens-v1 .guest-draft-tabs { display:flex;gap:8px;overflow-x:auto; }
body.screens-v1 .guest-draft-filters button,body.screens-v1 .guest-draft-tabs button { flex:none;min-height:48px;padding:0 14px;border:0;border-radius:10px;background:var(--hx-raised);color:var(--hx-text-2); }
body.screens-v1 .guest-draft-tabs button { border-radius:0;background:transparent; }
body.screens-v1 .guest-draft-tabs [aria-current=page] { border-bottom:2px solid var(--hx-select); }
body.screens-v1 .guest-draft-table { width:100%;border-collapse:collapse;text-align:left; }
body.screens-v1 .guest-draft-table th { padding:8px;color:var(--hx-text-2);font-size:12px; }
body.screens-v1 .guest-draft-message { color:var(--hx-text-2);padding:18px 8px; }
body.screens-v1 .guest-draft-identity { display:flex;align-items:center;gap:12px;min-height:56px; }
body.screens-v1 .guest-draft-avatar { width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:var(--hx-raised); }
body.screens-v1 .guest-draft-avatar svg { width:22px;height:22px; }
body.screens-v1 .guest-draft-metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px; }
body.screens-v1 .guest-draft-metric { display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border-radius:12px;background:var(--hx-raised); }
body.screens-v1 .guest-draft-metric > span:first-child,body.screens-v1 .guest-draft-unknown { color:var(--hx-text-2);font-size:13px; }
body.screens-v1 .guest-draft-profile-head { display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,3fr);align-items:center;gap:16px;padding:16px;border:1px solid var(--hx-line);border-radius:16px;background:var(--hx-panel); }
body.screens-v1 .guest-draft-profile-grid { display:grid;grid-template-columns:1.12fr 1fr 1fr;gap:12px; }
body.screens-v1 .guest-draft-consent-grid { display:grid;grid-template-columns:1.12fr 1fr;gap:12px; }
body.screens-v1 .guest-draft-subtitle { margin:0 0 12px;font-size:15px; }
body.screens-v1 .guest-draft-row,body.screens-v1 .guest-draft-consent-row { display:flex;align-items:center;gap:12px;min-height:52px;border-top:1px solid var(--hx-line); }
body.screens-v1 .guest-draft-row > :last-child,body.screens-v1 .guest-draft-consent-row > :last-child { margin-left:auto; }
body.screens-v1 .guest-draft .guest-live-edit {
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:48px; min-width:48px; height:48px; min-height:48px; padding:0;
  border:0; box-shadow:none; background:transparent; color:var(--hx-text-2);
}
body.screens-v1 .guest-draft .guest-live-edit svg { display:block; width:16px; height:16px; }
body.screens-v1 .guest-draft .guest-live-edit:focus-visible { outline:2px solid var(--hx-select); outline-offset:-2px; }

body.screens-v1 .guest-draft-field { display:flex;flex-direction:column;gap:6px;margin:12px 0; }
body.screens-v1 .guest-draft-field input { width:100%;min-height:48px; }
body.screens-v1 .guest-draft-fields { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
body.screens-v1 .guest-draft-footer { display:flex;align-items:center;justify-content:space-between;gap:12px; }
body.screens-v1 .guest-draft button { min-height:44px; }
@media(max-width:767px) {
 body.screens-v1 .guest-draft-layout,body.screens-v1 .guest-draft-profile-head,body.screens-v1 .guest-draft-profile-grid,body.screens-v1 .guest-draft-consent-grid { grid-template-columns:minmax(0,1fr); }
 body.screens-v1 .guest-draft-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.screens-v1 .guest-draft-card { overflow-x:auto; }
 body.screens-v1 .guest-draft-table { min-width:500px; }
}

body.screens-v1 .guest-live-list { padding:0; overflow:auto; }
body.screens-v1 .guest-live-table { table-layout:fixed; width:100%; }
body.screens-v1 .guest-live-table th { text-transform:uppercase;letter-spacing:.04em; }
body.screens-v1 .guest-live-table th,body.screens-v1 .guest-live-table td { border-bottom:1px solid var(--hx-line); padding:10px 12px; overflow-wrap:anywhere; }
body.screens-v1 .guest-live-table th:nth-child(1) { width:31%; } body.screens-v1 .guest-live-table th:nth-child(2) { width:24%; }
body.screens-v1 .guest-live-table td:nth-child(n+3),body.screens-v1 .guest-live-table th:nth-child(n+3) { text-align:right; }
body.screens-v1 .guest-live-table tr[aria-selected=true] { background:var(--hx-raised); outline:2px solid var(--hx-select); outline-offset:-2px; }
body.screens-v1 .guest-live-row-name { display:block; width:100%; border:0; padding:0; text-align:left; background:transparent; color:var(--hx-text); font-weight:700; }
body.screens-v1 .guest-live-preview { display:flex; flex-direction:column; gap:14px; }
body.screens-v1 .guest-live-preview .guest-draft-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
body.screens-v1 .guest-live-phone { margin:3px 0 0; color:var(--hx-text-2); }
body.screens-v1 .guest-live-consents { display:flex; flex-wrap:wrap; gap:8px; }
body.screens-v1 .guest-live-consent { display:inline-flex; gap:4px; align-items:center; padding:6px 10px; border-radius:99px; background:var(--hx-raised); color:var(--hx-text-2); font-size:12px; }
body.screens-v1 .guest-live-consent svg { width:14px; height:14px; }
body.screens-v1 .guest-live-open { width:100%; margin-top:auto; }
body.screens-v1 .guest-live-title { display:flex;align-items:center;gap:12px; }
body.screens-v1 .guest-live-title h2 { margin:0; flex:1; }
body.screens-v1 .guest-live-menu { position:relative; }
body.screens-v1 .guest-live-menu summary { cursor:pointer; min-width:48px; min-height:48px; display:grid;place-items:center; }
body.screens-v1 .guest-live-menu button { display:block;width:100%; }
body.screens-v1 .guest-draft-filters .is-on { color:var(--hx-select);outline:2px solid var(--hx-select);outline-offset:-2px; }
@media(max-width:600px) {
 body.screens-v1 .guest-live-list { overflow:visible; }
 body.screens-v1 .guest-live-table { min-width:0; }
 body.screens-v1 .guest-live-table thead { display:none; }
 body.screens-v1 .guest-live-table,body.screens-v1 .guest-live-table tbody { display:block;width:100%; }
 body.screens-v1 .guest-live-table tr { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:10px;border-bottom:1px solid var(--hx-line); }
 body.screens-v1 .guest-live-table td { border:0;padding:0;min-width:0; }
 body.screens-v1 .guest-live-table td:nth-child(1) { grid-column:1; }
 body.screens-v1 .guest-live-table td:nth-child(2) { grid-column:1; }
 body.screens-v1 .guest-live-table td:nth-child(3),body.screens-v1 .guest-live-table td:nth-child(4),body.screens-v1 .guest-live-table td:nth-child(5) { grid-column:2; text-align:right; }
 body.screens-v1 .guest-live-preview { display:none; }
 body.screens-v1 .guest-draft-profile-grid { grid-template-columns:minmax(0,1fr); }
}
body.screens-v1 .guest-live-row-name { display:flex; align-items:center; gap:10px; min-height:56px; }
body.screens-v1 .guest-live-row-avatar { display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:50%; background:var(--hx-select); color:var(--hx-panel); font-weight:700; }

.booking-guest-slot:not(:empty) { display:flex; align-items:center; gap:12px; min-height:56px; color:var(--muted); }
.booking-guest-found,.booking-guest-new { display:flex; align-items:center; gap:12px; flex-wrap:wrap; width:100%; min-height:56px; }
.booking-guest-found strong { color:var(--ink); flex:1; overflow-wrap:anywhere; }
.booking-guest-slot button { min-height:56px; }
.booking-guest-new input { min-width:24px; min-height:24px; }
.booking-guest-slot [role="status"] { overflow-wrap:anywhere; }

/* Guest action sheets use the same appearance tokens as the guest directory. */
.modal.guest-action-modal {
  width:min(620px, calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow:hidden;
  color:var(--hx-text);
  background:var(--hx-panel);
  border:1px solid var(--hx-line);
  border-radius:var(--hx-radius-md, 14px);
}
.modal.guest-action-modal .modal-head {
  flex:none;
  min-height:64px;
  padding:10px 20px;
  gap:12px;
  border-color:var(--hx-line);
}
.modal.guest-action-modal .modal-head h3 { font-size:20px; line-height:1.25; color:var(--hx-text); }
.modal.guest-action-modal .modal-close {
  min-width:48px; min-height:48px; border:0; border-radius:var(--hx-radius-sm, 10px);
  background:transparent; color:var(--hx-text-2); font-size:26px;
}
.modal.guest-action-modal .modal-body {
  padding:18px 20px;
  display:grid;
  align-content:start;
  gap:14px;
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
  color:var(--hx-text);
}
.modal.guest-action-modal .wizard-bar {
  flex:none;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  padding:12px 20px;
  border-color:var(--hx-line);
  background:var(--hx-panel);
}
.modal.guest-action-modal .wizard-bar button,
.modal.guest-action-modal .guest-action-consents button {
  min-width:0;
  min-height:48px;
  padding:0 18px;
  border:0;
  border-radius:var(--hx-radius-sm, 10px);
  background:var(--hx-raised);
  color:var(--hx-text);
  font-size:15px;
  font-weight:700;
}
.modal.guest-action-modal .wizard-bar .primary,
.modal.guest-action-modal .guest-action-consents .primary {
  background:var(--hx-primary);
  color:var(--hx-on-primary);
}
.modal.guest-action-modal .wizard-bar .is-danger {
  background:var(--hx-st-fault);
  color:var(--hx-on-primary);
}
.modal.guest-action-modal button:disabled { opacity:.6; }
.modal.guest-action-modal button:focus-visible,
.modal.guest-action-modal input:focus-visible,
.modal.guest-action-modal select:focus-visible {
  outline:2px solid var(--hx-select);
  outline-offset:2px;
}
.modal.guest-action-modal .guest-action-field {
  display:grid;
  gap:6px;
  min-width:0;
  color:var(--hx-text-2);
  font-size:14px;
  font-weight:650;
}
.modal.guest-action-modal .guest-action-fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%, 120px),1fr));
  gap:10px;
  min-width:0;
}
.modal.guest-action-modal .guest-action-field input,
.modal.guest-action-modal .guest-action-field select {
  width:100%;
  min-width:0;
  min-height:48px;
  padding:10px 12px;
  border:0;
  border-radius:var(--hx-radius-sm, 10px);
  background:var(--hx-raised);
  color:var(--hx-text);
  font-size:16px;
}
.modal.guest-action-modal .guest-action-field input::placeholder { color:var(--hx-text-2); opacity:1; }
.modal.guest-action-modal .guest-action-toggle {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:6px 4px;
  border-bottom:1px solid var(--hx-line);
  color:var(--hx-text);
  cursor:pointer;
}
.modal.guest-action-modal .guest-action-toggle input[type="checkbox"] {
  appearance:none;
  position:relative;
  order:2;
  flex:none;
  width:48px;
  height:28px;
  min-height:28px;
  margin:0 0 0 auto;
  padding:0;
  border:0;
  border-radius:999px;
  background:var(--hx-raised-hover);
  cursor:pointer;
}
.modal.guest-action-modal .guest-action-toggle input[type="checkbox"]::before {
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--hx-text-2);
}
.modal.guest-action-modal .guest-action-toggle input[type="checkbox"]:checked { background:var(--hx-primary); }
.modal.guest-action-modal .guest-action-toggle input[type="checkbox"]:checked::before { left:24px; background:var(--hx-on-primary); }
.modal.guest-action-modal .guest-action-toggle input[type="checkbox"]:disabled { opacity:.55; cursor:not-allowed; }
.modal.guest-action-modal .guest-action-toggle:has(input:disabled) { cursor:not-allowed; }
.modal.guest-action-modal .guest-action-consents,
.modal.guest-action-modal .guest-action-consent-rows { display:grid; gap:10px; min-width:0; }
.modal.guest-action-modal .guest-action-consents > .primary { justify-self:end; }
html[data-theme] body.review-redesign .guest-action-consents > button.primary { border:1px solid var(--hx-line-strong,var(--hx-line))!important; }
.modal.guest-action-modal .guest-action-history { min-width:0; border-top:1px solid var(--hx-line); padding-top:12px; }
.modal.guest-action-modal .guest-action-history h3 { margin:0 0 8px; font-size:15px; }
.modal.guest-action-modal .guest-action-history-row { display:grid; gap:4px; padding:10px 0; border-bottom:1px solid var(--hx-line); overflow-wrap:anywhere; }
.modal.guest-action-modal .guest-action-history-row span { color:var(--hx-text-2); font-size:13px; }
.modal.guest-action-modal .guest-action-consent-version { display:flex; align-items:center; gap:8px; color:var(--hx-text-2); }
.modal.guest-action-modal [role="alert"] { margin:0; color:var(--hx-st-fault); overflow-wrap:anywhere; }
.modal.guest-action-modal [role="status"] { margin:0; color:var(--hx-text-2); overflow-wrap:anywhere; }
.modal.guest-action-modal [hidden] { display:none !important; }
@media (max-width:600px) {
  .modal.guest-action-modal { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); }
  .modal.guest-action-modal .modal-head { padding:8px 14px; }
  .modal.guest-action-modal .modal-body { padding:14px; gap:10px; }
  .modal.guest-action-modal .wizard-bar { padding:10px 14px; }
  .modal.guest-action-modal .wizard-bar button { flex:1 1 auto; }
  .modal.guest-action-modal .guest-action-fields { grid-template-columns:repeat(auto-fit,minmax(min(100%, 94px),1fr)); }
  .modal.guest-action-modal .guest-action-consents > .primary { justify-self:stretch; }
}

/* Guest-only layout: keep phone and monetary values intact; let the list scroll when needed. */
body.screens-v1 .guest-live-list { overflow-x:auto; }
body.screens-v1 .guest-live-table { table-layout:auto; min-width:700px; }
body.screens-v1 .guest-live-table th:nth-child(1),
body.screens-v1 .guest-live-table th:nth-child(2) { width:auto; }
body.screens-v1 .guest-live-table :is(th,td):nth-child(2),
body.screens-v1 .guest-live-table :is(th,td):nth-child(5) { white-space:nowrap; overflow-wrap:normal; }
body.screens-v1 .guest-live-phone,
body.screens-v1 .guest-draft-metric > strong { white-space:nowrap; overflow-wrap:normal; }
body.screens-v1 .guest-draft-metric,
body.screens-v1 .guest-draft-identity > div,
body.screens-v1 .guest-draft-row > strong { min-width:0; overflow-x:auto; }
body.screens-v1 .guest-draft-row > strong { white-space:nowrap; }
body.screens-v1 .guest-draft-profile-head .guest-draft-identity > div { overflow:visible; }
body.screens-v1 .guest-draft-profile-head .guest-draft-identity strong { display:block;overflow-wrap:anywhere;hyphens:none; }
@media (min-width:601px) and (max-width:900px) {
  body.screens-v1 .guest-draft-profile-head { grid-template-columns:minmax(212px,1fr) minmax(0,3fr); }
}
/* A real ellipsis trigger and a menu that does not stretch the profile header. */
body.screens-v1 .guest-live-title h2 { min-width:0; overflow-wrap:anywhere; }
body.screens-v1 .guest-live-menu { flex:none; }
body.screens-v1 .guest-live-menu summary { list-style:none; }
body.screens-v1 .guest-live-menu summary::-webkit-details-marker { display:none; }
body.screens-v1 .guest-live-menu summary::marker { content:""; }
body.screens-v1 .guest-live-menu summary svg { display:block; width:24px; height:24px; fill:currentColor; }
body.screens-v1 .guest-live-menu[open] > button {
  position:absolute; z-index:20; top:100%; right:0; width:max-content; min-width:190px; min-height:48px;
  padding:0 16px; text-align:left; background:var(--hx-panel); color:var(--hx-text);
  border:1px solid var(--hx-line); border-radius:var(--hx-radius-sm,10px);
}
body.screens-v1 .guest-live-menu[open] > button + button { top:calc(100% + 48px); }
@media(max-width:600px) {
  body.screens-v1 .guest-live-table { min-width:0; }
  body.screens-v1 .guest-live-table tr { grid-template-columns:minmax(0,1fr) max-content; }
  /* Keep identity/lock actions visible on a separate row below the title. */
  #modal .modal.guest-action-modal .modal-head { display:grid; grid-template-columns:minmax(0,1fr) 48px; gap:8px; }
  #modal .modal.guest-action-modal .modal-head h3 { grid-column:1; grid-row:1; min-width:0; overflow-wrap:anywhere; }
  #modal .modal.guest-action-modal .modal-head .modal-close { grid-column:2; grid-row:1; margin:0; }
  #modal .modal.guest-action-modal .modal-head .security-chrome { grid-column:1 / -1; grid-row:2; width:100%; margin:0; gap:8px; }
  #modal .modal.guest-action-modal .modal-head .security-who { flex:1 1 100%; }
}

#modal:has(.guest-action-modal) { z-index:54; }
body.screens-v1 .guest-live-menu > summary::before { content:none; display:none; }
.modal.guest-action-modal .wizard-bar { flex-wrap:wrap; }
.modal.guest-action-modal .wizard-bar > [role="status"],
.modal.guest-action-modal .wizard-bar > [role="alert"] { flex:1 0 100%; }
@media(max-width:600px) {
  body.screens-v1 .guest-live-table tr { grid-template-columns:minmax(0,1fr) auto auto; grid-template-areas:"name spent spent" "phone visits date"; align-items:center; column-gap:8px; }
  body.screens-v1 .guest-live-table td:nth-child(1) { grid-area:name; }
  body.screens-v1 .guest-live-table td:nth-child(2) { grid-area:phone; }
  body.screens-v1 .guest-live-table td:nth-child(3) { grid-area:visits; }
  body.screens-v1 .guest-live-table td:nth-child(4) { grid-area:date; }
  body.screens-v1 .guest-live-table td:nth-child(5) { grid-area:spent; }
}
/* Guest profile only; shared top bar and list stay unchanged. */
@media(max-width:600px) {
  body.screens-v1 #r7Page:has(> .guest-draft > .guest-live-title) { background:var(--hx-bg); }
  body.screens-v1 .guest-draft:has(> .guest-live-title) { gap:8px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-title { gap:8px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-title h2 { font-size:19px; line-height:1.2; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-back {
    position:relative; flex:none; width:48px; min-width:48px; min-height:48px; padding:0;
    border:0; box-shadow:none; background:transparent; color:var(--hx-select); font-size:0;
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-back::before {
    content:""; display:block; width:9px; height:9px; margin:auto;
    border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg);
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-back:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-profile-head {
    padding:0; gap:8px; border:0; border-radius:0; background:transparent;
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-metrics { gap:8px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-metric {
    box-sizing:border-box; min-height:58px; padding:8px 12px; gap:2px;
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-tabs { gap:0; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-tabs button { min-height:48px; padding:0 10px; font-size:14px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-profile-grid > .guest-draft-card {
    padding:0; border:0; border-radius:0; background:transparent;
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-profile-grid h3 { margin:8px 0 4px; font-size:14px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-draft-row { min-height:48px; gap:8px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) .guest-live-edit { min-width:56px; min-height:48px; padding:0 8px; font-size:12px; }
}

/* Keep the guest profile action accessible above the existing mobile navigation. */
@media(max-width:600px) {
  body.screens-v1 .guest-draft:has(> .guest-live-title) { padding-bottom:80px; }
  body.screens-v1 .guest-draft:has(> .guest-live-title) > .guest-draft-footer {
    position:fixed; z-index:49; left:0; right:0;
    bottom:calc(72px + env(safe-area-inset-bottom, 0px));
    box-sizing:border-box; min-height:68px; padding:10px 14px;
    justify-content:flex-end; border-top:1px solid var(--hx-line); background:var(--hx-panel);
  }
  body.screens-v1 .guest-draft:has(> .guest-live-title) > .guest-draft-footer > button.primary {
    min-height:48px; padding:0 18px; border:0; border-radius:14px;
    background:var(--st-free); color:var(--hx-on-cta); font-weight:700;
  }
}

/* Guest profile's fixed action bar and mobile navigation occupy the bottom of the viewport. */
@media(max-width:600px) {
  html:has(body.screens-v1 #r7Page > .guest-draft > .guest-live-title) {
    scroll-padding-bottom:calc(160px + env(safe-area-inset-bottom, 0px));
  }
}

body.screens-v1 .guest-live-row-identity { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
body.screens-v1 .guest-live-birthday { display:inline-block; color:var(--hx-select); font-size:12px; font-weight:600; line-height:1.3; }
body.screens-v1 .guest-live-preview > .guest-live-birthday { display:flex; align-items:center; min-height:48px; padding:0 14px; border-radius:14px; background:var(--hx-select-wash); font-size:15px; font-weight:700; }
body.screens-v1 .guest-draft-profile-head .guest-live-birthday { margin-top:6px; padding:5px 10px; border-radius:14px; background:var(--hx-select-wash); }

/* Guest search uses the existing mobile control without moving the viewport. */
@media(max-width:767px) {
  body.review-redesign .topbar #r7Search.is-guest-search.is-open .r7-search-input {
    position:fixed!important; left:12px!important; right:12px!important;
    width:calc(100vw - 24px)!important; max-width:calc(100vw - 24px)!important;
  }
}

/* Guest actions share the approved green treatment in both themes. */
html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-primary { display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:56px;padding:0 16px;border:0;border-radius:14px;font-weight:700; }
html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-primary:not(:disabled) { background:var(--hx-primary);color:var(--hx-on-primary); }
html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-primary:disabled { background:var(--hx-raised);color:var(--hx-text-2); }
body.screens-v1 #r7Page .guest-live-action-icon,body.screens-v1 #r7Page .guest-live-action-icon svg { display:block;width:18px;height:18px;flex:none; }
body.screens-v1 #r7Page .guest-live-profile-footer,body.screens-v1 #r7Page .guest-live-directory-footer { min-height:68px; }
body.screens-v1 #r7Page .guest-live-directory-footer { justify-content:space-between; flex-wrap:wrap; }
body.screens-v1 #r7Page .guest-live-footer-action { display:flex;align-items:center;gap:4px;flex:none; }
body.screens-v1 #r7Page .guest-live-pagination { display:flex;gap:8px; }
body.screens-v1 #r7Page .guest-live-new-mobile { display:none; }
body.screens-v1 #r7Page .guest-live-last-visit { display:flex;flex-direction:column;gap:3px;min-width:0;color:var(--hx-text-2);font-size:13px; }
body.screens-v1 #r7Page .guest-live-last-visit strong { color:var(--hx-text);font-size:14px; }
@media(max-width:600px) {
  body.screens-v1 #r7Page .guest-live-directory { padding-bottom:154px; }
  body.screens-v1 #r7Page .guest-live-new-wide { display:none; }
  body.screens-v1 #r7Page .guest-live-new-mobile { display:inline; }
  body.screens-v1 #r7Page .guest-live-directory-footer { position:fixed;z-index:49;left:0;right:0;bottom:calc(72px + env(safe-area-inset-bottom, 0px));box-sizing:border-box;padding:10px 14px;border-top:1px solid var(--hx-line);background:var(--hx-panel); }
  body.screens-v1 #r7Page .guest-live-profile-footer { justify-content:space-between; }
}
/* Guest metrics: the existing --hx-raised is nearly the panel color in neon.
   Mix the current theme's text into its panel; no values or markup changed. */
body.screens-v1 #r7Page .guest-live-preview .guest-draft-metric,
body.screens-v1 #r7Page .guest-draft-profile-head .guest-draft-metric {
  background: color-mix(in srgb, var(--hx-text) 5%, var(--hx-panel));
  border-radius: 12px;
}

/* Desktop guest action bars follow the page's own scroll container.
   The controls remain in the flow; the bar does not cover the navigation. */
@media (min-width: 801px) {
  body.screens-v1 #r7Page :is(.guest-live-directory-footer, .guest-live-profile-footer) {
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-sizing: border-box;
    padding: 8px 12px;
    background: var(--hx-panel);
    border-top: 1px solid var(--hx-line);
  }
  body.screens-v1 #r7Page:has(> .guest-draft :is(.guest-live-directory-footer, .guest-live-profile-footer)) {
    scroll-padding-bottom: 84px;
  }
}

/* A phone row opens its card directly; selection is only meaningful for the
   desktop preview.  Keep visible keyboard focus on the actual button. */
@media (max-width: 600px) {
  body.screens-v1 #r7Page .guest-live-table tr[aria-selected="true"] {
    outline: none;
    background: transparent;
  }
  body.screens-v1 #r7Page .guest-live-row-name:focus-visible {
    outline: 2px solid var(--hx-select);
    outline-offset: -2px;
    border-radius: 8px;
  }
}

/* Guest directory hierarchy. */
.modal.guest-action-modal .primary:disabled { background:var(--hx-raised); color:var(--hx-text-2); opacity:1; box-shadow:none; }
html[data-theme] body.review-redesign .modal.guest-action-modal button.screen-info-trigger { background:transparent; box-shadow:none; border:0; }
#modal .modal.guest-action-modal .guest-action-fields:has(> .guest-action-field:nth-child(3)) { align-items:end; }
@media(min-width:768px) {
 #modal .modal.guest-action-modal .modal-head { display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px; }
 #modal .modal.guest-action-modal .modal-head h3 { grid-column:1;grid-row:1;min-width:0;white-space:nowrap; }
 #modal .modal.guest-action-modal .modal-head .modal-close { grid-column:2;grid-row:1;margin:0; }
 #modal .modal.guest-action-modal .modal-head .security-chrome { grid-column:1 / -1;grid-row:2;width:100%;margin:0; }
 #modal .modal.guest-action-modal .modal-head .security-chrome { flex-wrap:nowrap; }
 #modal .modal.guest-action-modal .modal-head .security-who { flex:1 1 auto;min-width:0;overflow-wrap:anywhere; }
 #modal .modal.guest-action-modal .modal-head .security-chrome button { flex:0 0 auto;white-space:nowrap; }
 #modal .modal.guest-action-modal .guest-action-fields:has(> .guest-action-field:nth-child(3)) > .guest-action-field:nth-child(3) > span { white-space:normal;overflow-wrap:anywhere;font-size:11px;letter-spacing:-.01em; }
}
body.screens-v1 #r7Page .guest-draft-tabs > .screen-info-label { display:block;align-self:center;flex:none;margin-left:12px;white-space:nowrap;color:var(--hx-text-2);font-size:12px;font-weight:400; }
body.screens-v1 #r7Page .guest-draft-tabs > .screen-info-label .screen-info-trigger { min-width:44px;min-height:44px;padding:10px;border:0;border-radius:0;background:transparent;box-shadow:none; }
body.screens-v1 #r7Page .guest-live-row-name,
body.screens-v1 .booking-guest-slot button.screen-link { background:transparent; box-shadow:none; border:0; }
body.screens-v1 #r7Page .guest-draft-filters button:disabled { opacity:.48; cursor:not-allowed; }
body.screens-v1 #r7Page .guest-draft-profile-grid h3 { margin:0 0 12px; color:var(--hx-text-2); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
body.screens-v1 #r7Page .guest-draft-profile-grid .guest-draft-row > span:first-child { flex:0 0 31%; min-width:0; color:var(--hx-text-2); font-size:13px; }
body.screens-v1 #r7Page .guest-draft-profile-grid .guest-draft-row > strong { flex:1 1 0; min-width:0; font-size:15px; }
body.screens-v1 #r7Page .guest-draft-profile-grid .guest-draft-row > .guest-live-edit { margin-left:0; }
body.screens-v1 #r7Page .guest-live-back { display:inline-flex; align-items:center; gap:10px; padding:0 8px; border:0; background:transparent; box-shadow:none; color:var(--hx-select); }
body.screens-v1 #r7Page .guest-live-back::before { content:""; display:block; width:8px; height:8px; flex:none; border-left:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
body.screens-v1 #r7Page .guest-live-back:focus-visible { outline:2px solid var(--hx-select); outline-offset:2px; }
body.screens-v1 #r7Page .guest-live-visits-unit { display:none; }
@media(max-width:600px) {
 body.screens-v1 #r7Page .guest-live-visits-unit { display:inline; }
 body.screens-v1 #r7Page .guest-live-table td:nth-child(4)::before { content:"· "; }
 body.screens-v1 #r7Page .guest-draft:has(> .guest-live-title) .guest-draft-profile-grid h3 { font-size:12px; }
}
body.screens-v1 #r7Page .guest-draft-avatar { background:var(--hx-select);color:var(--hx-panel); }
body.screens-v1 .booking-guest-found strong { flex:1 1 150px;min-width:0;overflow-wrap:break-word; }

/* Summary: compact, non-interactive attention rows. */
body.screens-v1 .screen-summary-layout .r7-insights { gap:0; }
body.screens-v1 .screen-summary-attention-row { display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;border-top:1px solid var(--sv-line);font-size:13px; }
body.screens-v1 .screen-summary-attention-row:first-child { border-top:0; }
body.screens-v1 .screen-summary-attention-row strong { min-width:0;font-size:13px;line-height:1.3;overflow-wrap:anywhere; }
body.screens-v1 .screen-summary-attention-row time { color:var(--sv-muted);font-size:11px;text-align:right; }
body.screens-v1 .screen-summary-attention-icon { width:28px;height:28px;display:grid;place-items:center;border-radius:8px;color:var(--tone);background:color-mix(in srgb,var(--tone) 20%,transparent); }
body.screens-v1 .screen-summary-attention-icon svg { width:16px;height:16px; }
body.screens-v1 .screen-summary-chart-status { margin:0;white-space:nowrap; }
body.screens-v1 .screen-summary-hour-chart { height:130px; }

.screen-summary-layout .screen-summary-attention-count { display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:color-mix(in srgb,var(--ht-mech) 14%,transparent);color:var(--ht-mech);font-size:12px;font-weight:700; }
/* Report period and unavailable metrics. */
body.screens-v1 .report-toolbar { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px; }
body.screens-v1 .report-toolbar .r7-seg { flex:none; }
body.screens-v1 .report-date-navigation, body.screens-v1 .report-compare-control { display:flex;align-items:center;gap:6px; }
body.screens-v1 .report-date-navigation { padding:2px 6px;border-radius:10px;background:var(--hx-raised); }
body.screens-v1 .report-date-navigation button:not(.screen-info-trigger) { min-width:38px;min-height:44px; }
body.screens-v1 .report-compare-control input { width:120px;min-width:0;min-height:44px; }
body.screens-v1 .report-toolbar-spacer { flex:1; }
body.screens-v1 .report-toolbar button:disabled { background:var(--hx-raised);color:var(--hx-text-2);border:1px solid var(--hx-line);cursor:not-allowed; }
body.screens-v1 .report-unavailable .r7-kpi-value { font-size:14px;color:var(--hx-text-3);font-weight:600; }
body.screens-v1 .report-missing-value,body.screens-v1 .report-missing-caption { color:var(--hx-text-3);font-size:12px; }
body.screens-v1 .report-comparison-row { display:flex;justify-content:space-between;gap:8px;color:var(--hx-text-2);font-size:13px; }
body.screens-v1 .report-comparison-row span:last-child { color:var(--hx-text-3); }
body.screens-v1 .screen-reports-layout .r7-kpi-value { white-space:nowrap;overflow-wrap:normal;letter-spacing:0;font-size:clamp(15px,1.7vw,22px); }
body.screens-v1 .screen-reports-layout .report-unavailable .r7-kpi-value { font-size:14px;white-space:normal; }
body.screens-v1 .screen-reports-layout .r7-table th .screen-info-trigger { min-height:24px;min-width:24px;width:24px;height:24px; }
body.screens-v1 .report-hour-chart { height:130px; }
@media(max-width:767px) { body.screens-v1 .report-toolbar { gap:6px; } body.screens-v1 .report-toolbar-spacer { display:none; } body.screens-v1 .screen-reports-layout .r7-table { min-width:600px; } }

body.screens-v1 .screen-reports-layout > .screen-card > button:disabled { min-height:48px;font-size:14px;font-weight:650; }
body.screens-v1 .report-current-day { color:var(--hx-text-2);font-size:12px; }
/* Visit workspace and list. */
body.review-redesign .screen-visit .screen-visit-main,body.review-redesign .screen-visit .screen-visit-side { min-height:0;gap:8px; }
body.review-redesign .screen-visit .screen-visit-main .screen-timer { min-height:84px;padding:10px 14px; }
body.review-redesign .screen-visit .screen-visit-time-detail { display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--hx-text-2);font-size:12px; }
body.review-redesign .screen-visit .r7-visit-game { padding:10px 14px; }
body.review-redesign .screen-visit .r7-game-head h3 small { margin-left:8px;font-size:12px;color:var(--hx-text-2); }
body.review-redesign .screen-visit .screen-visit-side .screen-card,body.review-redesign .screen-visit .screen-visit-side .r7-admin-card { padding:10px 14px; }
body.review-redesign .screen-visit .screen-visit-pair-actions { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
body.review-redesign .screen-visit .screen-visit-pair-actions button,body.review-redesign .screen-visit .screen-visit-side > button.daily-link,body.review-redesign .screen-visit .screen-visit-side .daily-checkout button.daily-link { box-sizing:border-box;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--hx-line);background:var(--hx-raised);color:var(--hx-text);font:inherit; }
body.review-redesign .screen-visit .screen-visit-side .daily-checkout { display:flex;gap:8px;flex-wrap:wrap; }
body.review-redesign .screen-visit .screen-visit-side .daily-checkout .daily-action { flex:1 1 100%; }
body.review-redesign .screen-visit .screen-visit-side .r7w-facts > div { min-height:25px; }
body.review-redesign .r7-visits-card .r7-visit-completed { min-height:44px; }
@media(max-width:767px) { body.review-redesign .screen-visit .screen-visit-pair-actions { grid-template-columns:1fr 1fr; } }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-facts > div:last-child dd { font-size:14px; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side > button.daily-link,
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout > button.daily-link { display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;height:44px;margin:0;padding:8px 12px;border:1px solid var(--hx-line);border-radius:10px;background:var(--hx-raised);color:var(--hx-text);font-size:14px; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout { display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout .daily-action { box-sizing:border-box;flex:none;width:100%;min-height:56px;height:56px;max-height:56px;margin:0;padding:8px 12px; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-add-slot { display:flex;align-items:center;min-width:0;gap:4px; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-add-slot > button { flex:1;min-width:0; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-add-slot > button { font-size:14px;white-space:nowrap; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty { display:grid;grid-template-columns:minmax(100px,1.5fr) repeat(11,minmax(20px,1fr));margin:6px 0 10px;overflow:auto;color:var(--hx-text-2);font-size:11px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty > * { box-sizing:border-box;min-height:24px;padding:4px;border:1px solid var(--hx-line);text-align:center; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty > strong { overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:nowrap; }
@media(min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .r7-player-list > li { min-height:32px;padding:3px 8px; }
 body.review-redesign #visitWorkspace.screen-visit .r7-player-list > li.r7-player-head { min-height:28px; }
}
@media(min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty > * { min-height:19px;padding:1px 3px; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-main .screen-timer strong { font-size:40px;line-height:1; }
}


/* Reports and visit-list contract. */
html[data-theme] body.review-redesign .report-toolbar button:disabled { opacity:1;background:var(--hx-raised);color:var(--hx-text-3);border-color:var(--hx-line); }
html[data-theme] body.review-redesign .report-date-navigation button:disabled:not(.screen-info-trigger) { border:0;background:transparent;box-shadow:none; }
body.screens-v1 .screen-reports-layout .screen-card > h3 .screen-info-label { margin-left:4px; }
body.screens-v1 .screen-reports-layout .report-unavailable .r7-kpi-value,
body.screens-v1 .screen-reports-layout .report-missing-value,
body.screens-v1 .report-comparison-row span:last-child { white-space:nowrap;overflow-wrap:normal;word-break:normal; }
body.screens-v1 .r7-visits-card .r7-tabs { flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--hx-text-3) transparent;border-bottom:1px solid var(--hx-line);gap:0; }
html[data-theme] body.review-redesign .r7-visits-card .r7-tabs .r7-tab { flex:none;min-height:48px;padding:0 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--hx-text-2);white-space:nowrap; }
html[data-theme] body.review-redesign .r7-visits-card .r7-tabs .r7-tab.is-active { border-bottom-color:var(--hx-select);color:var(--hx-select); }
html[data-theme] body.review-redesign .r7-visits-card .r7-tabs .r7-tab:disabled { opacity:1;color:var(--hx-text-3);background:transparent; }
body.screens-v1 .r7-visits-card .r7-tabs > .screen-info-label { flex:none;align-self:center; }
body.screens-v1 .r7-visits-card .r7-table :is(th,td):last-child { width:28px;text-align:right; }
body.screens-v1 .r7-visit-chevron { display:inline-flex;width:18px;height:18px;color:var(--hx-text-3); }
body.screens-v1 .r7-visit-chevron svg { width:100%;height:100%;transform:rotate(-90deg); }
@media(max-width:767px) {
 body.screens-v1 .r7-visits-bar .r7-tabs { padding:0 0 5px; }
 body.screens-v1 .r7-visits-card .r7-table td:last-child { display:flex;justify-content:flex-end;width:auto; }
 body.screens-v1 .r7-visits-card .r7-table td:last-child::before { content:none; }
}

/* Visit card: keep settlement reachable and show only published player facts. */
body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .screen-visit-finance-total { margin-top:6px;padding-top:8px;border-top:1px solid var(--hx-line);font-weight:700; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .screen-visit-finance-total dd { font-size:20px;font-weight:800; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-extend-slot { display:flex;align-items:center;min-width:0;gap:4px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-extend-slot > button { flex:1;min-width:0; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > summary { min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--hx-text-2); }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > button { min-height:44px;width:100%; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > .daily-secondary-row button { min-height:44px;width:100%; }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table { min-width:620px;table-layout:fixed;border-collapse:separate;border-spacing:3px; }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table th,body.review-redesign #visitWorkspace.screen-visit .r7-score-table td { border:0;border-radius:6px; }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table tbody th,body.review-redesign #visitWorkspace.screen-visit .r7-score-table tbody td { background:var(--hx-raised); }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table th:first-child { width:120px;overflow-wrap:anywhere; }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table td { height:38px; }
body.review-redesign #visitWorkspace.screen-visit .r7-score-table .r7-frame-rolls { white-space:normal; }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list { --visit-score-col:minmax(0,1fr);--visit-bumpers-col:minmax(0,1.4fr);--visit-status-col:auto; }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-score { --visit-score-col:0px; }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-bumpers { --visit-bumpers-col:0px; }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-status { --visit-status-col:0px; }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list > li { grid-template-columns:minmax(0,1.2fr) var(--visit-score-col) var(--visit-bumpers-col) var(--visit-status-col); }
body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-score > li > :nth-child(2),body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-bumpers > li > :nth-child(3),body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-status > li > :nth-child(4) { visibility:hidden;overflow:hidden; }
@media(min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side { overflow:hidden; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card { display:flex;flex-direction:column;min-height:0;flex:0 1 auto; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card .r7w-facts:not(.screen-visit-total-list) { min-height:0;overflow:auto; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .screen-visit-total-list { flex:none; }
}
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty { grid-template-columns:minmax(140px,1.5fr) repeat(11,minmax(28px,1fr)); }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-pair-actions .screen-visit-extend-slot > button { font-size:14px;white-space:nowrap; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > summary::after { content:'›';margin-left:auto;transform:rotate(90deg); }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions[open] > summary::after { transform:rotate(-90deg); }
/* Unavailable score cells keep the same tile geometry without invented scores. */
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty { gap:3px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty > * { border:0; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-score-empty > :nth-child(n+13) { min-height:28px;padding:5px 6px;border-radius:6px;background:var(--hx-raised); }

body.review-redesign #visitWorkspace.screen-visit .screen-visit-main > .pair-runtime { display:none; }

/* Summary content follows attention first on every viewport. */
body.screens-v1 .screen-summary-first .r7-insights { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px; }
body.screens-v1 .screen-summary-first .screen-summary-attention-row { min-height:34px; }
body.screens-v1 .screen-summary-first .screen-summary-attention-row strong { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
body.screens-v1 .screen-summary-hall-head { display:flex;align-items:center;justify-content:space-between;gap:8px; }
body.screens-v1 .screen-summary-hall-head h3 { margin:0; }
body.screens-v1 .screen-summary-layout .screen-kv { min-width:0; }
body.screens-v1 .screen-summary-layout .screen-info-label { display:inline-flex;align-items:center;gap:4px;white-space:nowrap; }
body.screens-v1 .r7-kpi-value[aria-disabled=true] { font-size:16px;line-height:1.3; }
@media(max-width:767px) { body.screens-v1 .screen-summary-first .r7-insights { grid-template-columns:minmax(0,1fr); } }

body.screens-v1 .screen-summary-first .screen-summary-attention-count { display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:color-mix(in srgb,var(--ht-mech) 14%,transparent);color:var(--ht-mech);font-size:12px;font-weight:700; }

body.screens-v1 .report-catalog { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
body.screens-v1 .report-catalog-item { display:inline-flex;align-items:center;min-height:44px;border-radius:12px;background:var(--hx-raised); }
body.screens-v1 .report-catalog-item > button:not(.screen-info-trigger) { min-height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--hx-text-2);font:inherit;font-weight:650; }
body.screens-v1 .report-catalog-item > button.is-on { color:var(--hx-select); }
body.screens-v1 .report-catalog-item > button:disabled { color:var(--hx-text-3);cursor:not-allowed; }
body.screens-v1 .report-catalog-item .screen-info-trigger { flex:none; }
html[data-theme] body.review-redesign .report-toolbar button:disabled,html[data-theme] body.review-redesign .screen-reports-layout button:disabled { box-shadow:none;opacity:.62; }
@media(max-width:767px) { body.screens-v1 .report-catalog { gap:4px; } body.screens-v1 .report-catalog-item > button:not(.screen-info-trigger) { padding:0 8px; } }
@media(max-width:767px) { body.screens-v1 .report-catalog-item > button:not(.screen-info-trigger) { font-size:14px; } }

/* Visit settlement: keep authoritative totals visible and put line details behind a disclosure. */
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions { min-height:0; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions > summary { min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--hx-text-2); }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions .r7w-facts { max-height:160px;overflow:auto; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-total-list { min-width:0; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-paid-badge { display:inline-flex;margin-left:8px;font-size:12px;color:var(--hx-success,#168451);white-space:nowrap; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-close-unavailable { display:flex;align-items:center;gap:4px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-close-unavailable > button { flex:1;min-width:0; }
body.review-redesign #visitWorkspace.screen-visit [data-visit-status=due] { color:var(--hx-st-fault); }
body.review-redesign #visitWorkspace.screen-visit [data-visit-status=paused] { color:var(--hx-select); }
body.review-redesign #visitWorkspace.screen-visit [data-visit-status=running] { color:var(--hx-st-play); }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout .screen-visit-close-unavailable { width:100%;min-width:0; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout .screen-visit-close-unavailable > button.daily-action { width:auto;flex:1 1 auto;min-width:0;background:var(--hx-raised);color:var(--hx-text-3);opacity:1;box-shadow:none; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout .screen-visit-close-unavailable .screen-info-trigger { width:44px;min-width:44px;height:44px;min-height:44px; }

body.screens-v1 .report-filter-control { display:inline-flex;align-items:center;gap:4px;flex:none; }
@media (min-width:1200px) {
 body.screens-v1 .report-toolbar { gap:4px; }
 body.screens-v1 .report-compare-control input { width:96px; }
 body.screens-v1 .report-filter-control { gap:0; }
}

html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-pair-actions button.screen-info-trigger { border:0;background:transparent;box-shadow:none;padding:13px; }

/* Finance navigation marks inaccessible sections without changing other entries. */
#r7Navigation .r7-nav-entry .r7-finance-lock, body.review-redesign #modal .r7-nav-more-item .r7-finance-lock { display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;color:var(--hx-text-2); }
#r7Navigation .r7-nav-entry .r7-finance-lock svg, body.review-redesign #modal .r7-nav-more-item .r7-finance-lock svg { width:16px;height:16px; }
body.review-redesign #modal .r7-nav-more-item[data-section=summary], body.review-redesign #modal .r7-nav-more-item[data-section=reports], body.review-redesign #modal .r7-nav-more-item[data-section=techlog], body.review-redesign #modal .r7-nav-more-item[data-section=guests] { display:flex;align-items:center;justify-content:space-between;gap:8px; }
body.review-redesign #modal .r7-finance-access-modal .modal-head { display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:8px;align-items:center; }
body.review-redesign #modal .r7-finance-access-modal .modal-head > .security-chrome { grid-column:1 / -1;max-width:100%; }
body.review-redesign #modal .r7-finance-access-modal .modal-head > #modalTitle { grid-column:1;min-width:0;margin:0; }
body.review-redesign #modal .r7-finance-access-modal .modal-head > #modalClose { grid-column:2;grid-row:2; }

/* Visit settlement and access notice. */
body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card { overflow:visible; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card > h2 { margin:0 0 10px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-total-list { gap:6px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-total-list dt { font-size:14px;line-height:1.35; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions { min-height:44px;flex:1 1 auto;margin-top:6px;padding-bottom:4px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions > summary { width:100%;box-sizing:border-box;font-size:14px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions > summary::before { content:none;display:none; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions > summary::after { content:'›';margin-left:auto;font-size:20px;line-height:1; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions[open] > summary::after { transform:rotate(90deg); }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > summary { font-size:14px;font-weight:600; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-other-actions > summary::before { content:none;display:none; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-pair-actions button { border:0;box-shadow:none; }
html[data-theme=light] body.review-redesign #visitWorkspace.screen-visit .screen-visit-close-unavailable > button.daily-action:disabled { border:0;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel));color:var(--hx-text-3);box-shadow:none; }
body.review-redesign #modal .r7-finance-access-modal .modal-head > .security-chrome,
body.review-redesign #modal .r7-finance-access-modal .modal-head > #modalClose { display:none; }
body.review-redesign #modal .r7-finance-access-modal .modal-head { display:block; }
@media (min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card { flex:0 1 auto; }
}
@media (max-width:767px) {
 body.screens-v1 .r7-visits-card .r7-table tbody tr { grid-template-columns:40px minmax(0,1fr) auto;gap:2px 8px;align-items:center; }
 body.screens-v1 .r7-visits-card .r7-table td { display:flex;justify-content:flex-start;gap:4px;text-align:left;font-size:12px; }
 body.screens-v1 .r7-visits-card .r7-table td::before { content:none; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(1) { grid-column:1;grid-row:1 / span 2; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(2) { grid-column:2;grid-row:1; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(3) { grid-column:2;grid-row:2; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(4) { grid-column:3;grid-row:1;justify-content:flex-end; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(5) { grid-column:3;grid-row:2;justify-content:flex-end; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(6) { grid-column:2;grid-row:3; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(6)::before { content:attr(data-label); }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(7) { grid-column:3;grid-row:3;justify-content:flex-end; }
}

@media (min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions[open] { display:flex;flex-direction:column;min-height:44px;overflow:hidden; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions[open] > summary { flex:0 0 44px; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-positions[open] .r7w-facts { flex:1 1 auto;min-height:0;overflow:auto; }
}

@media (min-width:768px) {
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .screen-card .daily-facts > div { min-height:27px;padding:1px 0;box-sizing:border-box; }
 body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .r7-admin-card { min-height:195px; }
}

/* Consistent unavailable actions and report controls on financial pages. */
html[data-theme] body.review-redesign #r7Page .report-catalog-item:has(> button[data-report-group]:disabled) { background:transparent; }
html[data-theme] body.review-redesign #r7Page .report-catalog-item > button[data-report-group]:disabled { color:var(--hx-text-3);opacity:.58;box-shadow:none;cursor:not-allowed; }
html[data-theme] body.review-redesign #r7Page .report-toolbar button:disabled,
html[data-theme] body.review-redesign #r7Page .screen-reports-layout button:disabled { border:0;background:var(--hx-raised);color:var(--hx-text-3);opacity:.58;box-shadow:none; }
html[data-theme] body.review-redesign #r7Page .report-date-navigation button:disabled { background:transparent; }
body.screens-v1 #r7Page .report-catalog-item > button[data-report-group],
body.screens-v1 #r7Page .report-toolbar .r7-seg > button { font-size:15px; }
body.screens-v1 #r7Page .report-compare-control { min-width:0;white-space:nowrap; }
body.screens-v1 #r7Page .report-compare-control input { width:150px;min-width:125px; }
body.screens-v1 #r7Page .screen-reports-layout > .screen-card > .r7-primary-btn { width:100%;min-height:48px;font-size:14px;font-weight:650;box-sizing:border-box; }
/* No placeholder blocks when the hourly series is unpublished. */
body.screens-v1 #r7Page :is(.screen-summary-layout,.screen-reports-layout) .screen-hour-chart.is-unavailable .screen-empty-bar { display:none; }
@media (max-width:650px) {
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis > .r7-kpi { padding-inline:8px; }
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis .r7-kpi-label,
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis .r7-kpi-label .screen-info-label { white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:11px; }
}

body.screens-v1 #r7Page .screen-summary-hour-chart.is-unavailable .screen-empty-bar { display:none; }

html[data-theme] body.review-redesign #r7Page .screen-summary-hall-head .screen-link { background:transparent;border:0;box-shadow:none; }
body.screens-v1 #r7Page .screen-queue-preview .screen-wait.is-zero { color:var(--hx-text-2); }
/* Session logout belongs to the profile when the More menu is open. */
#modal .r7-nav-more-modal .modal-head > .security-chrome > [data-role="security-logout"] { display:none; }

@media (max-width:650px) {
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 { grid-template-columns:repeat(6,minmax(0,1fr)); }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi { grid-column:span 2;min-width:0; }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(n+4) { grid-column:span 3; }
}
body.screens-v1 #r7Page .report-group-lock { display:inline-flex;width:16px;height:16px;vertical-align:middle;margin-left:5px; }
body.screens-v1 #r7Page .report-group-lock svg { width:100%;height:100%; }


/* Flat contextual controls and compact mobile visit rows. */
html[data-theme] body.review-redesign #modal .r7-finance-access-modal #wizardBar > button,
html[data-theme] body.review-redesign #modal .r7-nav-more-modal #modalClose,
html[data-theme] body.review-redesign #modal .r7-nav-more-modal .security-chrome > button[data-role=security-lock] { border:0;box-shadow:none; }
html[data-theme=light] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side > .screen-card { box-shadow:none; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .screen-card .daily-facts > div:last-child { border-bottom:0;padding-bottom:0; }
@media (max-width:767px) {
 html[data-theme] body.screens-v1 .r7-visits-card { padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none; }
 body.screens-v1 .r7-visits-card .r7-table tbody { gap:6px; }
 body.screens-v1 .r7-visits-card .r7-table tbody tr { padding:6px 8px; }
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(6):has([data-visit-paid])::before { content:none; }
 body.screens-v1 .r7-visits-bar { position:relative; }
 body.screens-v1 .r7-visits-bar[data-more=true]::after { content:'›';pointer-events:none;position:absolute;right:0;top:0;height:48px;width:25px;display:flex;align-items:center;justify-content:flex-end;padding-right:2px;box-sizing:border-box;color:var(--hx-text-2);font-size:22px;background:linear-gradient(90deg,transparent,var(--hx-panel)); }
}

/* Grouped KPI help stays beside the label without increasing its height. */
body.screens-v1 #r7Page .r7-kpis .r7-kpi-label .screen-info-ending { position:relative;display:inline-block; }
body.screens-v1 #r7Page .r7-kpis .r7-kpi-label .screen-info-trigger { position:absolute;left:100%;top:50%;transform:translateY(-50%); }
body.review-redesign .screen-info-tooltip.is-kpi-help { white-space:pre-line;width:min(420px,calc(100vw - 24px));box-sizing:border-box; }

body.screens-v1 #r7Page .report-empty-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }

/* Keep wide report tables scrollable within the mobile report card. */
@media(max-width:767px) {
  body.screens-v1 #r7Page .screen-reports-layout .r7-table-wrap,
  body.screens-v1 #r7Page:has(.screen-reports-layout) > .screen-additional .r7-table-wrap { min-width:0;max-width:100%;overflow-x:auto; }
  body.screens-v1 #r7Page:has(.screen-reports-layout) > .screen-additional[open] { grid-template-columns:minmax(0,1fr); }
}

/* Report actions and active group state. */
html[data-theme] body.review-redesign #r7Page .report-catalog-item { background:transparent; }
html[data-theme] body.review-redesign #r7Page .report-catalog-item:has(> button[data-report-group][aria-current="page"]) { background:var(--hx-select-wash); }
html[data-theme] body.review-redesign #r7Page .report-catalog-item > button[data-report-group]:not([aria-current="page"]):not(:disabled) { background:transparent;box-shadow:none;border:0; }
body.screens-v1 #r7Page .report-csv-btn { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px;border:0;border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font-size:14px;font-weight:650;cursor:pointer; }
body.screens-v1 #r7Page .report-csv-btn .svgi { width:18px;height:18px; }
body.screens-v1 #r7Page .report-empty-actions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;max-width:600px; }
body.screens-v1 #r7Page .report-empty-actions > button { box-sizing:border-box;min-width:0;min-height:56px;padding:4px 8px;font-size:14px;font-weight:650;line-height:1.2;white-space:normal; }
@media(max-width:767px) {
 body.screens-v1 .r7-visits-card .r7-table td:nth-child(1) > .r7-lane-chip { width:36px;min-width:36px;height:36px;flex:none; }
}
/* The period and filter explanation remains in the toolbar help on mobile. */
@media (max-width:767px) {
 body.screens-v1 #r7Page .report-toolbar .r7-seg > button:disabled { display:none; }
 body.screens-v1 #r7Page .report-toolbar .report-filter-control { display:none; }
 body.screens-v1 #r7Page .report-toolbar > .screen-info-label .screen-info-trigger { min-width:44px;min-height:44px;width:44px;height:44px; }
}

/* Each KPI explains its own value. */
body.screens-v1 .r7-kpi-value-row { display:flex;align-items:flex-start;gap:4px;min-width:0; }
body.screens-v1 .r7-kpi-value-row .r7-kpi-value { min-width:0; }
body.screens-v1 .r7-kpi-value-row .screen-info-trigger { min-width:44px;min-height:44px;display:inline-grid;place-items:center;padding:12px;border:0;background:transparent;box-shadow:none; }
body.screens-v1 .r7-kpi-value-row { flex-wrap:wrap;row-gap:0; }
body.screens-v1 .r7-kpi-value-row .r7-kpi-value { flex:0 0 auto;max-width:100%;overflow-wrap:normal;white-space:normal; }
body.screens-v1 .r7-kpi-value-row .screen-info-trigger { flex:0 0 44px; }
@media(max-width:767px) {
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(n) { grid-column:span 1;min-width:0; }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(3),
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(4) { grid-column:1 / -1; }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpi { padding-inline:8px; }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpi-value-row .r7-kpi-value { font-size:clamp(15px,4vw,20px);white-space:normal;overflow-wrap:normal;word-break:normal; }
 body.screens-v1 #r7Page .screen-reports-layout .r7-kpi-number { white-space:nowrap; }
}

/* Report export is the primary action only while CSV is available. */
body.screens-v1 #r7Page .report-csv-btn.primary:not(:disabled) { background:var(--hx-primary); color:var(--hx-on-primary); }
body.screens-v1 #r7Page .report-csv-btn:disabled { background:var(--hx-raised); color:var(--hx-text-2); cursor:not-allowed; }
body.screens-v1 #r7Page .report-save-control { display:flex; align-items:center; gap:4px; min-width:0; width:max-content; max-width:100%; }
body.screens-v1 #r7Page .report-save-control > button:not(.screen-info-trigger) { box-sizing:border-box; min-width:0; min-height:44px; padding:8px 12px; font-size:14px; font-weight:650; line-height:1.2; white-space:normal; }
body.screens-v1 #r7Page .report-save-control > .screen-info-label { position:static; flex:none; }
body.screens-v1 #r7Page .report-empty-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }

/* Disabled CSV has its reason on a separate accessible information control. */
body.screens-v1 #r7Page .report-csv-control { display:flex;align-items:center;min-width:0; }
body.screens-v1 #r7Page .report-csv-control > .report-csv-btn { flex:1;min-width:0; }
body.screens-v1 #r7Page .screen-reports-layout > .screen-card > .report-csv-control { width:100%;margin-top:auto; }
body.screens-v1 #r7Page .report-empty-actions .report-csv-control > .report-csv-btn { box-sizing:border-box;min-height:56px;padding:4px 8px;font-size:14px;line-height:1.2;white-space:normal; }

/* Amounts wrap within their cards without shrinking text. */
body.screens-v1 #r7Page .screen-reports-layout .r7-kpi-value-row .r7-kpi-value,
body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis .r7-kpi-value-row .r7-kpi-value {
  white-space:normal; overflow-wrap:normal; word-break:keep-all;
}
body.screens-v1 #r7Page .screen-reports-layout .r7-kpi-number { white-space:normal; overflow-wrap:normal; word-break:keep-all; }
body.screens-v1 #r7Page .screen-reports-layout .r7-kpi-value[aria-disabled="true"] { white-space:normal; overflow-wrap:normal; word-break:normal; }
@media (max-width:1100px) {
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) .r7-kpi-value { font-size:clamp(16px,1.7vw,22px); }
}
@media (min-width:821px) and (max-width:1100px) {
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) .r7-kpi-value { font-size:26px; }
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:has([data-kpi-info-key="occupancy"]) { grid-column:1 / -1; }
}
@media (max-width:767px) {
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) .r7-kpi-value { font-size:clamp(16px,4vw,20px); }
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(5) { grid-column:1 / -1; }
}
@media (max-width:820px) {
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis,
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5,
  body.screens-v1 #r7Page .screen-shift-strip .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]),
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(3),
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(4),
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:nth-child(5),
  body.screens-v1 #r7Page .screen-shift-strip .r7-kpis > .r7-kpi:nth-child(2),
  body.screens-v1 #r7Page .screen-shift-strip .r7-kpis > .r7-kpi:nth-child(4) { grid-column:1 / -1; }
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) .r7-kpi-value,
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) .r7-kpi-value { font-size:26px; }
}
/* Keep both workspace pages out of the sidebar column on tablets. */
@media (min-width:768px) and (max-width:800px) {
  body.review-redesign.screens-v1 #r7Page:has(> .screen-summary-first),
  body.review-redesign.screens-v1 #r7Page:has(.screen-reports-layout) { grid-column:2 / -1; grid-row:4; min-width:0; }
}

/* Money wraps only at explicit currency and group boundaries. */
body.screens-v1 #r7Page .screen-money-value { white-space:normal; overflow-wrap:normal; word-break:keep-all; }
body.screens-v1 #r7Page .screen-money-segment { white-space:nowrap; overflow-wrap:normal; word-break:keep-all; }

/* Monetary values in report tables and shift preview remain legible. */
body.screens-v1 #r7Page .screen-reports-layout .r7-table .screen-money-value,
body.screens-v1 #r7Page:has(.screen-reports-layout) > .screen-additional .r7-table .screen-money-value,
body.screens-v1 #r7Page .screen-summary-layout .screen-kv .screen-money-value {
  font-size:16px; white-space:normal; overflow-wrap:normal; word-break:keep-all;
}

/* Give amount KPIs enough room while retaining a consistent font size. */
@media (min-width:1024px) and (max-width:1179px) {
  body.screens-v1 #r7Page:has(> .screen-summary-first) > .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1101px) {
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 { grid-template-columns:repeat(6,minmax(0,1fr)); }
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:has([data-kpi-info-key="revenue"], [data-kpi-info-key="average"]) { grid-row:1;grid-column:span 3; }
  body.screens-v1 #r7Page .screen-reports-layout .r7-kpis.is-5 > .r7-kpi:has([data-kpi-info-key="visits"], [data-kpi-info-key="duration"], [data-kpi-info-key="occupancy"]) { grid-row:2;grid-column:span 2; }
}

/* Disabled primary actions in booking and queue forms use the neutral control treatment. */
html[data-theme] body.screens-v1 .bq-book-mobile-footer button.primary:disabled,
html[data-theme] body.review-redesign #modal :is(.bookings-modal,.queue-entry-modal) #wizardBar button.primary:disabled {
  background:var(--hx-raised);
  background-image:none;
  color:var(--hx-text-2);
  box-shadow:none;
  opacity:1;
  cursor:not-allowed;
}
html[data-theme] body.review-redesign #modal .bookings-modal #wizardBar .r7-booking-confirm:disabled {
  color:var(--hx-text-2);
  opacity:.58;
}

/* Keep the quoted amount and launch readiness above the pinned actions. */
body.review-redesign #visitWorkspace.screen-opening .screen-opening-summary { flex-basis:100%;grid-column:1/-1;min-width:0;display:grid;gap:6px; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-summary .screen-opening-quote { padding:0;border:0; }
body.review-redesign #visitWorkspace.screen-opening .screen-ready.daily-readiness-warning { display:block;padding:0;border:0;background:none;color:var(--hx-st-booking);font-size:14px;font-weight:750; }
body.review-redesign #visitWorkspace.screen-opening .screen-ready svg { width:18px;height:18px;vertical-align:middle;margin-right:6px; }

/* Keep desktop booking tools inside the header without reducing hit targets. */
@media (min-width:1200px) and (max-width:1365px) {
  body.screens-v1.review-redesign .topbar:has(#r7PageTools[data-page="bookings"]) { gap:6px; }
}

/* The visit body is the drag surface; number headers and Hall gaps keep native panning. */
.hall-transfer-grab { display:contents; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] > .hall-transfer-grab {
  display:grid;grid-column:1;grid-row:2 / -1;grid-template-rows:subgrid;min-width:0;min-height:0;
}
#lanes .hall-transfer-grab[data-transfer-enabled="true"] { touch-action:none; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] > .hall-transfer-grab > .daily-lane-state { grid-row:2; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity][data-opening-pending] .daily-lane-state {
  font-size:clamp(10px,calc(var(--hall-tile)*.105),17px);white-space:normal;overflow-wrap:anywhere;
}
.screen-mini-hall [data-opening-pending] small { white-space:normal;overflow-wrap:anywhere; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] > .hall-transfer-grab > .hall-main-figure { grid-row:3; }

/* Booking dates absorb label growth without reducing operator or control hit areas. */
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) :is(#r7Page > .r7-page-head,.r7-page-head .r7-page-actions) { min-width:0; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) #r7PageTools { flex:0 1 auto;min-width:0;max-width:100%; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .bq-book-date-nav { min-width:0;max-width:100%;flex:1 1 auto; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .bq-book-date-nav > strong { min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .bq-book-date-nav > :not(strong):not(.sr-only) { flex:none; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) :is(.topbar button,.topbar [role=button],.bq-book-date-nav button) { min-width:44px;min-height:44px; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .topbar #r7Operator { flex:0 0 56px;min-width:56px;max-width:56px;justify-content:center;padding:0; }
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .topbar #r7Operator :is(.r7-operator-text,.session-info) { display:none!important; }

/* Shared dialog shell follows the approval layout and keeps task content intact. */
.reception-dialog[data-covered-by-dialog] { visibility:hidden; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal:not(.fullscreen):not(.wide) { width:min(440px,calc(100vw - 24px)); }
/* Cash movement: the amount keypad column (300 px) sits beside reason and comment (b74eea8f); the 440 px shell width (5b5e56d6) squeezed them to ~70 px. */
@media (min-width:768px) { html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal:not(.fullscreen):not(.wide):has(.modal-body.ct-cash-movement) { width:min(720px,calc(100vw - 32px)); } }
/* Phone: the cash movement footer is one row; Cancel takes its own width and both buttons share one height, so a two-line next label does not drop the row out of line. */
@media (max-width:767px) { html[data-theme] body #modal .reception-dialog.modal:has(.modal-body.ct-cash-movement) #wizardBar.wizard-bar.reception-dialog-actions { grid-template-columns:auto 1fr;align-items:stretch; } html[data-theme] body #modal .reception-dialog.modal:has(.modal-body.ct-cash-movement) #wizardBar.wizard-bar.reception-dialog-actions > .reception-dialog-cancel { padding-inline:20px; } }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal { --dialog-field:var(--hx-bg);--dialog-primary:#157a45;--dialog-on-primary:#fff;min-width:0; max-height:calc(100dvh - 32px); border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:20px;background:var(--hx-panel);color:var(--hx-text);box-shadow:0 24px 60px #0005;overflow:hidden; }
html[data-theme=light] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal { --dialog-field:#fff;box-shadow:0 24px 60px #18213038; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-head { display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px 12px;padding:24px 24px 16px;height:auto;min-height:0;background:transparent;border:0;align-items:start; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-head > :is(h3,#modalTitle) { grid-column:1;grid-row:1;min-width:0;margin:0;font-size:22px;line-height:1.2;letter-spacing:-.02em;white-space:normal;overflow-wrap:break-word; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .reception-dialog-context { grid-column:1;grid-row:2;margin:0;color:var(--hx-text-2);font-size:14px;line-height:1.4; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .modal-head > :is(.modal-close,#modalClose,#numpadClose) { grid-column:2;grid-row:1 / 3;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--hx-text);box-shadow:none;font-size:24px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-body { min-height:0;padding:0 24px 16px;overflow:auto;overscroll-behavior:contain;font-size:16px;color:var(--hx-text);background:transparent; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { box-sizing:border-box;min-height:48px;max-width:100%;padding:12px 14px;border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:12px;background:var(--dialog-field);color:var(--hx-text);font:inherit; }
/* An invalid field stays distinct while the shared keyboard focus ring remains visible. */
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea)[aria-invalid=true] { border-color:var(--bad);background:color-mix(in srgb,var(--bad) 20%,var(--dialog-field));box-shadow:none!important; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea)[aria-invalid=true]:focus-visible { outline-color:var(--bad); }
.security-field-error { color:var(--bad);font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere; }
.security-field-error[hidden] { display:none; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal select option { background:var(--hx-panel);color:var(--hx-text); }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(input,textarea)::placeholder { color:var(--hx-text-2);opacity:1; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(button,input,select,textarea):focus-visible { outline:2px solid var(--hx-select);outline-offset:2px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar.reception-dialog-actions,#numpadBody .form-actions.reception-dialog-actions,.form-actions.reception-dialog-actions,.security-buttons.reception-dialog-actions,.security-confirmation.reception-dialog-actions) { display:grid;grid-template-columns:1fr 1.4fr;gap:10px;flex:none;margin:0;padding:14px 24px 24px;background:transparent;border:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions { padding:0;margin-top:14px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > .spacer { display:none; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > :not(button):not(.spacer) { grid-column:1 / -1; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > button { box-sizing:border-box;min-height:52px;min-width:0;width:100%;max-width:100%;padding:10px 14px;border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:12px;font-size:16px;font-weight:600;line-height:1.25;white-space:normal;overflow-wrap:anywhere;box-shadow:none;clip-path:none; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > .reception-dialog-cancel { grid-column:1;background:transparent;color:var(--hx-text); }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > :is(.primary,.ct-primary,.reception-dialog-primary) { grid-column:2;background:var(--dialog-primary);color:var(--dialog-on-primary);border-color:transparent; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > :is(.primary,.ct-primary,.reception-dialog-primary):disabled { background:var(--hx-raised);color:var(--hx-text-2);border-color:var(--hx-line);opacity:1;box-shadow:none; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody { display:flex;flex-direction:column;gap:10px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .num-display { box-sizing:border-box;min-height:48px;height:48px;padding:8px 14px;border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:12px;font-size:24px;line-height:30px;color:var(--hx-text);background:var(--dialog-field); }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .pinpad { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .pin-btn { min-width:44px;min-height:52px;height:52px;padding:0;border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font-size:20px;box-shadow:none; }
html[data-theme=light] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .pin-btn { background:#fff; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .pin-empty { min-height:52px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .preset-row { display:flex;flex-wrap:wrap;gap:6px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal #numpadBody .preset-row button { min-height:44px;min-width:44px;padding:8px;font-size:14px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-dialog-body { display:flex;flex-direction:column;gap:16px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-dialog-body > * { min-width:0;max-width:100%;margin:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-dialog-body .open-summary { padding:14px 16px;border:1px solid var(--hx-line);border-radius:14px;background:var(--hx-raised);font-size:24px;font-weight:700; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-method-cards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;background:transparent;border:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-method-cards button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;min-width:44px;padding:10px;border:1px solid var(--hx-line);border-radius:12px;background:var(--dialog-field);color:var(--hx-text-2);box-shadow:none;font-size:14px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-method-cards button.on { background:var(--hx-select-wash);border-color:var(--hx-select);color:var(--hx-text); }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-method-cards .svgi { display:block;width:22px;height:22px; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .refund-method-cards svg { display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .toast.dialog-status { position:static!important;inset:auto!important;transform:none!important;box-sizing:border-box;flex:none;width:auto;max-width:100%;margin:0 24px 14px;padding:12px;box-shadow:none;font-size:14px;line-height:1.4; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .toast.dialog-status[hidden] { display:none; }
@media(max-width:767px) {
 body[data-navigation]:has(.reception-dialog-backdrop:not([hidden])) #r7Navigation { z-index:39; }
}
@media(max-width:600px) {
 .reception-dialog-backdrop { align-items:flex-end; }
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal:not(.fullscreen):not(.wide),
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal.wide:not(.fullscreen) { width:100%;max-width:100%;max-height:100dvh;border-radius:20px 20px 0 0;border-bottom:0; }
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-head { padding:20px 16px 16px; }
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-head > :is(h3,#modalTitle) { font-size:20px; }
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-body { padding:0 16px 16px; }
 html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar,.wizard-bar).reception-dialog-actions { padding:14px 16px max(16px,env(safe-area-inset-bottom)); }
}

html[data-theme] body[aria-busy=true] .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > :is(.primary,.ct-primary,.reception-dialog-primary) { background:var(--hx-raised);color:var(--hx-text-2);border-color:var(--hx-line);box-shadow:none;cursor:progress; }

html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal.fullscreen { max-height:100dvh; }

html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal.osk-host { max-height:calc(100dvh - var(--osk-height,360px)); }

html[data-theme] body #modal .reception-dialog.manager-pin-modal .pinpad { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
html[data-theme] body #modal .reception-dialog.manager-pin-modal .pin-btn { min-width:44px;min-height:52px;height:52px;padding:0;border:1px solid var(--hx-line-strong,var(--hx-line));border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font-size:20px; }
html[data-theme] body #modal .reception-dialog.manager-pin-modal .pin-empty { min-height:52px; }

@media (max-width:600px) {
  body:has(.reception-dialog-backdrop:not([hidden])) #visitWorkspace.is-hall-sheet { visibility:hidden;pointer-events:none; }
}

html[data-theme] body:not(.review-redesign) :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal { grid-template-columns:minmax(0,1fr); }

html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .modal-head > :is(h3,.reception-dialog-context) { width:auto;max-width:100%;box-sizing:border-box;padding:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > button:not(.reception-dialog-cancel):not(.primary):not(.ct-primary):not(.reception-dialog-primary) { grid-column:1 / -1;order:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal :is(#wizardBar.wizard-bar,#numpadBody .form-actions,.form-actions,.security-buttons,.security-confirmation).reception-dialog-actions > :is(.reception-dialog-cancel,.primary,.ct-primary,.reception-dialog-primary) { order:1; }

/* Keep the queue count legible between two touch controls. */
html[data-theme] body #modal .reception-dialog.queue-entry-modal .r7q-add-row > div { min-width:0; }
html[data-theme] body #modal .reception-dialog.queue-entry-modal .stepper { width:100%;min-width:0;height:54px;min-height:54px;gap:0; }
html[data-theme] body #modal .reception-dialog.queue-entry-modal .stepper :is(.step-btn,.step-num) { box-sizing:border-box;height:54px;min-height:54px;padding:0;line-height:1.2; }
html[data-theme] body #modal .reception-dialog.queue-entry-modal .stepper .step-btn { width:44px;min-width:44px;max-width:44px;flex:0 0 44px;font-size:20px; }
html[data-theme] body #modal .reception-dialog.queue-entry-modal .stepper .step-num { width:auto;min-width:0;flex:1 1 auto;font-size:16px;white-space:nowrap; }

/* Connection text keeps its full wording beside the lane facts. */
html[data-theme] body #modal .reception-dialog .lc-status { flex-wrap:wrap; }
html[data-theme] body #modal .reception-dialog .lc-status .machine-badge { flex:0 0 auto;max-width:100%; }
html[data-theme] body #modal .reception-dialog .lc-status .machine-label { max-width:none;white-space:normal;overflow:visible;text-overflow:clip; }

/* The tariff belongs to the price content, outside the heading and close target. */
html[data-theme] body #modal .reception-dialog.tc-price .tc-tariff { position:static;margin:0 0 12px;line-height:1.4; }

/* Day names remain distinguishable on the narrow tariff picker. */
html[data-theme] body #modal .reception-dialog.tc-day .tc-types button { height:auto;min-height:72px; }
html[data-theme] body #modal .reception-dialog.tc-day .tc-types b { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25; }

/* A persistent message is a sibling of the redrawable dialog content. */
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal.fullscreen:has(> .toast.dialog-status:not([hidden])) { grid-template-rows:auto auto minmax(0,1fr) auto; }
@media(max-width:600px) { html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .toast.dialog-status { margin-inline:16px; } }

/* Composite money fields own one focus frame around the whole amount. */
html[data-theme] body #modal .reception-dialog :is(.tc-display,.ct-amount) { box-sizing:border-box; }
html[data-theme] body #modal .reception-dialog :is(.tc-display,.ct-amount) input,
html[data-theme] body #modal .reception-dialog :is(.tc-display,.ct-amount) input:focus-visible { border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important; }
html[data-theme] body #modal .reception-dialog .ct-amount:focus-within { border-color:var(--hx-select); }
html[data-theme] body #modal .reception-dialog.tc-price .tc-display { border:2px solid var(--hx-line-strong);box-shadow:none;margin:6px 0 8px;padding:0 14px;background:var(--dialog-field); }
html[data-theme] body #modal .reception-dialog.tc-price .tc-display:focus-within { border-color:var(--hx-select); }
html[data-theme] body #modal .reception-dialog.tc-price .tc-display input { min-height:0;height:48px!important;max-height:100%; }
html[data-theme] body #modal .reception-dialog.tc-price .tc-tariff { display:block;margin:0;line-height:1.4; }
html[data-theme] body #modal .reception-dialog.tc-price .tc-keys button { height:52px!important;min-height:52px!important;max-height:52px!important; }

html[data-theme] body #modal .reception-dialog .ct-pin-field:focus-within:not(.is-error):not(.is-success) { outline:0;box-shadow:inset 0 0 0 2px var(--hx-select); }

/* Booking keeps its existing action set on one footer row. */
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions { display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:12px 24px; }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { flex:0 1 auto;width:auto;min-width:0;min-height:56px;height:56px;padding:0 10px;font-size:15px;order:0!important; }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-remove { margin-right:auto;padding-inline:0;border:0;background:transparent;color:var(--ht-mech); }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .primary { flex-grow:1.4; }
@media(min-width:768px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal:not(.fullscreen):not(.wide) { width:min(520px,calc(100vw - 32px)); }
}
@media(max-width:767px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
}
@media(max-width:767px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-more { flex:0 0 56px;min-width:56px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { flex:1 1 0;padding-inline:6px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .primary { flex:1.4 1 0;min-width:max-content;white-space:nowrap;overflow-wrap:normal; }
}

/* The booking footer separates scrolling fields from its actions. */
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar { background:var(--hx-panel);border-top:1px solid var(--hx-line-strong);position:relative;z-index:1; }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal .r7-booking-more > summary::before { content:none;display:none; }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal .r7-booking-more > summary::marker { content:''; }
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal .r7-booking-more-icon { display:block;font-size:26px;line-height:1; }
@media(min-width:768px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { padding-inline:8px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-remove { margin-right:8px;padding-inline:0; }
}

/* Status words and monetary values remain whole inside their table columns. */
@media(min-width:768px) {
  body.screens-v1 #r7Page .r7-visits-card .r7-table :is(th,td):nth-child(6) { width:100px;white-space:nowrap;overflow-wrap:normal; }
}
body.screens-v1 #r7Page .screen-reports-layout .r7-table .screen-money-value,
body.screens-v1 #r7Page:has(.screen-reports-layout) > .screen-additional .r7-table .screen-money-value { white-space:nowrap; }
body.screens-v1 #r7Page:has(.screen-reports-layout) .r7-table-wrap { overflow-x:auto; }
body.screens-v1 #r7Page:has(.screen-reports-layout) .r7-table .screen-money-value wbr { display:none; }

body.review-redesign {
  --info-solid:#0c1c38;--info-pop:#0f2244;--info-ink:#eaf2ff;--info-ink2:#b9c7de;--info-ink3:#7f90ad;
  --info-accent:#38d6f5;--info-line:rgba(150,190,255,.14);--info-raised:rgba(150,190,255,.06);
  --info-icon-bg:rgba(56,214,245,.12);--info-dim:rgba(4,10,22,.45);--info-grab:rgba(255,255,255,.22);
  --info-sheet-shadow:0 -20px 50px rgba(0,0,0,.5);--info-card-shadow:0 24px 60px rgba(0,0,0,.55);
}
html[data-theme=light] body.review-redesign {
  --info-solid:#f4f8fd;--info-pop:#fff;--info-ink:#172b49;--info-ink2:#475a74;--info-ink3:#475a74;
  --info-accent:#295b7d;--info-line:rgba(40,80,150,.2);--info-raised:rgba(40,80,150,.06);
  --info-icon-bg:rgba(41,91,125,.1);--info-dim:rgba(23,43,73,.25);--info-grab:rgba(23,43,73,.3);
  --info-sheet-shadow:0 -20px 50px rgba(23,43,73,.18);--info-card-shadow:0 24px 60px rgba(23,43,73,.2);
}
body.review-redesign #screenInfoTooltip {
  position:fixed;margin:0;inset:auto;padding:0;display:block;gap:0;width:min(396px,calc(100vw - 24px));
  box-sizing:border-box;border:1px solid var(--info-line);border-radius:18px;background:var(--info-pop);
  color:var(--info-ink);box-shadow:var(--info-card-shadow);font:15px/1.4 -apple-system,"SF Pro Text",Inter,system-ui,sans-serif;
  overflow:visible;white-space:normal;overflow-wrap:anywhere;
}
body.review-redesign #screenInfoTooltip .screen-info-surface { display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:auto;border-radius:inherit;overscroll-behavior:contain; }
body.review-redesign #screenInfoTooltip .screen-info-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:0;margin:0;padding:14px 18px;font-size:15px;font-weight:700;flex-shrink:0;border-bottom:1px solid var(--info-line); }
body.review-redesign #screenInfoTooltip .screen-info-heading strong { min-width:0;font:inherit; }
body.review-redesign #screenInfoTooltip .screen-info-close { display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:-10px -10px -10px 0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--info-ink3);box-shadow:none;font:inherit; }
body.review-redesign #screenInfoTooltip .screen-info-content { flex:1;min-height:0;overflow:auto;padding:0;overscroll-behavior:contain;color:var(--info-ink2); }
body.review-redesign #screenInfoTooltip .screen-info-content p { margin:0; }
body.review-redesign #screenInfoTooltip .screen-info-help-row { display:flex;gap:12px;padding:12px 18px;align-items:flex-start; }
body.review-redesign #screenInfoTooltip .screen-info-help-icon { flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--info-icon-bg);color:var(--info-ink2); }
body.review-redesign #screenInfoTooltip svg { width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
body.review-redesign #screenInfoTooltip .screen-info-help-row b { display:block;color:var(--info-ink);font-size:15px;font-weight:700; }
body.review-redesign #screenInfoTooltip .screen-info-help-row span:not(.screen-info-help-icon) { color:var(--info-ink2);font-size:14px; }
body.review-redesign #screenInfoTooltip .screen-info-link { display:flex;flex:none;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:14px 18px;border:0;border-top:1px solid var(--info-line);border-radius:0;background:transparent;box-shadow:none;color:var(--info-accent);text-align:left;font:inherit;font-weight:700; }
body.review-redesign #screenInfoTooltip.is-sheet { display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;pointer-events:none; }
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-scrim { position:absolute;inset:0;background:var(--info-dim);pointer-events:auto; }
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-surface { position:relative;width:100%;max-height:100%;box-sizing:border-box;padding:10px 22px 22px;background:var(--info-solid);border:0;border-top:1px solid var(--info-line);border-radius:22px 22px 0 0;box-shadow:var(--info-sheet-shadow);pointer-events:auto; }
body.review-redesign #screenInfoTooltip .screen-info-grabber { flex:none;width:44px;height:5px;border-radius:3px;background:var(--info-grab);margin:0 auto 14px;touch-action:none; }
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-heading { justify-content:flex-start;margin-bottom:8px;padding:0;border:0;font-size:18px;font-weight:750; }
body.review-redesign #screenInfoTooltip .screen-info-title-icon { flex:none;display:grid;place-items:center;width:24px;height:24px;box-sizing:border-box;border:1.6px solid currentColor;border-radius:50%;color:var(--info-accent);font-size:14px;font-weight:750; }
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-content { margin:0 0 18px; }
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-close { flex:none;width:100%;min-height:56px;height:56px;margin:0;padding:0 16px;border:1px solid var(--info-line);border-radius:14px;background:var(--info-raised);color:var(--info-ink);font-weight:700; }
body.review-redesign #screenInfoTooltip :is(button,a):focus-visible,body.review-redesign #screenInfoTooltip:focus-visible { outline:2px solid var(--info-accent);outline-offset:2px; }

body.review-redesign #screenInfoTooltip .screen-info-link:focus-visible { outline-offset:-4px; }

body.review-redesign #screenInfoTooltip.is-card .screen-info-close { font-size:22px; }

/* Visits table headings stay whole. */
body.screens-v1 #r7Page .r7-visits-card th:first-child{min-width:82px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.screens-v1 #r7Page .r7-visits-card .r7-table-scroll{overflow:auto}
/* Calendar date and filter controls keep their full labels. */
body.screens-v1 #r7Page .bq-book-date-nav{min-width:0;flex-wrap:wrap;height:auto;gap:8px}
body.screens-v1 #r7Page .bq-book-date-nav>strong{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;flex:1 1 200px}
body.screens-v1 #r7Page .bq-book-filters{min-width:0;max-width:100%;flex-wrap:wrap;overflow:visible;gap:8px;height:auto}
body.screens-v1 #r7Page .bq-book-filters button{min-width:44px;min-height:44px;white-space:normal;flex-shrink:0}
/* Each lane owns the complete suggestion label below its content. */
body.screens-v1 #r7Page .r7q-lane-group{position:static!important;inset:auto!important;transform:none!important;display:block;max-width:100%;width:100%;box-sizing:border-box;margin:8px 0 0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:12px;line-height:1.35}
body.screens-v1 #r7Page .r7q-lane:has(.r7q-lane-group){height:auto;min-height:150px}
body.screens-v1 #r7Page .r7q-pair{align-items:stretch}
body.screens-v1 #r7Page .r7q-legend{display:flex;flex-wrap:wrap;max-width:100%;overflow:visible;gap:10px 16px}
body.screens-v1 #r7Page .r7q-person{min-width:0;overflow-wrap:anywhere}
body.screens-v1 #r7Page .r7q-person>b{white-space:normal;overflow:visible;text-overflow:clip}
body.screens-v1 #r7Page .r7q-estimate small{white-space:normal;word-break:normal;overflow-wrap:normal}
/* Guest filters and empty states retain their complete names. */
body.screens-v1 #r7Page .guest-draft-filters{display:flex;flex-wrap:wrap;overflow:visible;align-items:center;gap:8px}
body.screens-v1 #r7Page .guest-draft-filters button{min-height:48px;white-space:normal;height:auto;padding:10px 14px}
body.screens-v1 #r7Page .guest-draft-filters> .screen-info-label{margin:0}
body.screens-v1 #r7Page .guest-live-list{min-width:0;overflow:auto}
body.screens-v1 #r7Page .guest-live-table{min-width:640px}
body.screens-v1 #r7Page .guest-live-table th{white-space:nowrap;word-break:normal}
body.screens-v1 #r7Page .guest-empty-state{display:flex;align-items:center;gap:10px;margin:0;padding:20px;min-height:64px;box-sizing:border-box;color:var(--hx-text-2)}
body.screens-v1 #r7Page .guest-empty-state svg{width:22px;height:22px;flex:none}
body.screens-v1 #r7Page .guest-live-list:has(.guest-empty-state) .guest-live-table{display:none}
body.screens-v1 #r7Page .guest-draft-filters button:disabled{opacity:1;color:var(--hx-text-2);background:var(--hx-raised)}
body.screens-v1 #r7Page .guest-live-new-mobile{display:none}
body.screens-v1 #r7Page .guest-live-new-wide{display:inline}
body.screens-v1 .screen-empty-line{display:flex;align-items:center;gap:12px;padding:16px;color:var(--hx-text-2)}
body.screens-v1 .screen-empty-line svg{width:22px;height:22px;flex:none}
/* Unavailable comparison rows do not occupy a second report column. */
body.screens-v1 #r7Page .screen-reports-layout{grid-template-columns:minmax(0,1fr)}
body.screens-v1 #r7Page .report-secondary-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
/* Security limits remain labeled fields on one aligned control row. */
.settings-page[data-screen=sec] .sv-policy-form .sv-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 0}
.settings-page[data-screen=sec] .sv-policy-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex-wrap:nowrap}
.settings-page[data-screen=sec] .sv-policy-form input[type=number]{display:block;box-sizing:border-box;width:64px;min-width:64px;min-height:44px;padding:8px;border:1px solid var(--hx-line);border-radius:10px;background:var(--hx-raised);color:var(--hx-text);font:inherit;text-align:center}
.settings-page[data-screen=sec] .sv-policy-label{min-width:0;overflow-wrap:normal;word-break:normal}
.settings-page[data-screen=sec] .sv-policy-label .screen-info-label{display:block;white-space:normal}
.settings-page[data-screen=sec] .sv-policy-controls .sv-permanent-status:empty{display:none}
@media(min-width:1180px){.settings-page[data-screen=sec] .sv-columns.three{grid-template-columns:minmax(210px,1fr) minmax(350px,1.5fr) minmax(180px,1fr)}}
@media(max-width:1179px){.settings-page[data-screen=sec] .sv-columns.three{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.settings-page[data-screen=sec] .sv-policy-form .sv-row{grid-template-columns:minmax(0,1fr);gap:8px}.settings-page[data-screen=sec] .sv-policy-controls{justify-content:flex-start}}
/* Settings retain a way back to sections and out to the hall. */
#settingsSectionMenu{display:none}
@media(max-width:1179px){
 html[data-theme] body.settings-open.review-redesign .topbar #settingsSectionMenu{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px!important;width:44px;min-height:44px!important;height:44px;padding:0;flex:none;color:var(--hx-text)}
 html[data-theme] body.settings-open.review-redesign:has(.center-settings-back:not([hidden])) .topbar #settingsSectionMenu{display:none!important}
 html[data-theme] body.settings-open.review-redesign .settings-page.ct-settings-menu{display:block!important}
 html[data-theme] body.settings-open.review-redesign .settings-page.ct-settings-menu>.sv-submenu{display:block!important;width:100%;height:100%;box-sizing:border-box;overflow:auto;position:static}
 html[data-theme] body.settings-open.review-redesign .settings-page.ct-settings-menu>.sv-content{display:none!important}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-actions>#r7Bell{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px!important;width:44px;min-height:44px!important;height:44px;padding:0;flex:none}
}

body.settings-open .settings-page[data-screen=sec] .sv-policy-form input[type=number]{background:var(--hx-raised)!important;border:1px solid var(--hx-line)!important;box-shadow:inset 0 0 0 1px var(--hx-line);opacity:1}
/* Shared compact header and light navigation. */
html[data-theme=light] body.review-redesign #r7Navigation{background:var(--hx-panel);color:var(--hx-text);border-right:1px solid var(--hx-line)}
html[data-theme=light] body.review-redesign #r7Navigation .r7-nav-entry:not(.selected){color:var(--hx-text-2)}
html[data-theme=light] body.review-redesign[data-navigation] #r7Navigation .r7-nav-entry:not(.selected):not(:disabled):hover{background:var(--hx-raised);color:var(--hx-text)}
@media(max-width:600px){
 html[data-theme] body.review-redesign .topbar{padding-inline:16px!important;gap:8px!important}
 html[data-theme] body.review-redesign #r7Page{padding-inline:16px;box-shadow:none;border:0;background:var(--hx-bg)}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar{display:flex!important;flex-wrap:nowrap!important;min-height:68px!important;height:68px!important;padding-inline:16px!important;gap:6px!important}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar .top-brand{display:none!important}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7HeaderTitle{font-size:17px;margin:0;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7Operator{min-width:36px!important;flex:0 0 36px!important;min-height:44px!important;height:44px;padding:0!important}
 html[data-theme] body.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #r7PinOff{min-width:34px!important;width:34px;min-height:44px!important;padding:0!important}
}
/* Missing hourly occupancy is a compact explanation. */
.screen-summary-hour-chart.is-unavailable{display:none}
.screen-card:has(.screen-summary-hour-chart.is-unavailable){min-height:0}
body.screens-v1 #r7Page .screen-wait{white-space:nowrap}
body.screens-v1 #r7Page .screen-summary-attention-row{align-items:center}
/* Hall scale and quick-action editing have full touch targets. */
html[data-theme] body.review-redesign #hallScaleControls button,html[data-theme] body.review-redesign #hallQuickEdit{min-width:44px!important;min-height:44px!important}
html[data-theme] body.review-redesign #hallQuickEdit{padding:10px;color:var(--hx-text-2)}
html[data-theme] body.review-redesign #visitWorkspace .daily-player button:disabled{color:var(--hx-text-2);opacity:1}
/* Visit tab overflow is scrollable without a chevron covering the final label. */
body.screens-v1 #r7Page .r7-visits-bar::after{display:none!important}
body.screens-v1 #r7Page .r7-visits-bar .r7-tabs{padding-right:12px;scroll-padding:12px;gap:8px}
body.screens-v1 #r7Page .r7-visits-bar .r7-tab{min-height:44px;flex:none}
/* Booking names and timestamps each keep an independent line. */
body.screens-v1 #r7Page .bq-book-block{min-width:0;overflow:hidden}
body.screens-v1 #r7Page .bq-book-block strong{white-space:normal;overflow-wrap:anywhere}
body.screens-v1 #r7Page .bq-book-filters{display:flex;flex-wrap:wrap}
body.screens-v1 #r7Page .bq-book-date-nav .screen-info-label{flex:none}
/* Queue actions remain above the compact footer. */
body.screens-v1 #r7Page .r7q-actions .r7q-remove{color:var(--hx-text-2);background:transparent;border:1px solid var(--hx-line)}
body.screens-v1 #r7Page .r7q-estimate>small{overflow-wrap:normal;word-break:normal;white-space:normal}
@media(max-width:767px){body.screens-v1 #r7Page:has(.r7q-layout){padding-bottom:120px}.r7q-row .r7q-actions{scroll-margin-bottom:140px}.r7q-called,.r7q-estimate.is-now small{color:var(--hx-text-2)}}
/* Report periods and grouping controls are whole scrollable controls. */
body.screens-v1 #r7Page .report-groups,body.screens-v1 #r7Page .report-toolbar{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:8px}
body.screens-v1 #r7Page :is(.report-groups,.report-toolbar) button{min-height:44px;white-space:normal}
body.screens-v1 #r7Page .r7-report-tabs{display:flex;flex-wrap:nowrap;overflow:auto}
body.screens-v1 #r7Page .r7-report-tabs button{flex:none;white-space:nowrap}
/* Empty settings statuses and repeated menu headings do not compete with the section. */
body.settings-open .sv-menu-status:empty{display:none}
body.settings-open .sv-submenu>.sv-menu-title{display:none}
html[data-theme=light] body.settings-open .center-header-status{background:#e7f3ec;color:#137747}
/* Equipment and terminal identity panels stay readable. */
.settings-page[data-screen=equip] .sv-controller b,.settings-page[data-screen=equip] .sv-device-node b{overflow-wrap:anywhere;word-break:normal;min-width:0}
.settings-page[data-screen=equip] .sv-card>button,.settings-page[data-screen=equip] .sv-controller-actions>button{min-height:44px;padding:10px 14px;border:1px solid var(--hx-line)!important;border-radius:10px}
.settings-page[data-screen=equip] .sv-stack:empty{display:none}
.settings-page .sv-terminal-identity strong{font:inherit;overflow-wrap:normal;word-break:normal}
.settings-page .sv-card .sv-terminal-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.settings-page .sv-about-card .pub-note{font-size:14px;}
.settings-page .sv-card .sv-terminal-identity>span:last-child{font-weight:700;text-align:right;overflow-wrap:anywhere;min-width:0;}
/* Empty licensing projections do not occupy standalone cards. */
.settings-page[data-screen=license] .sv-card:has(>.sv-unpublished):not(:has(button)){min-height:0}
.settings-page[data-screen=license] .sv-card .sv-empty:only-child{display:none}
/* Controller names get the full value column before the status. */
.settings-page[data-screen=equip] .sv-controller{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px}
.settings-page[data-screen=equip] .sv-controller>strong{grid-column:2;justify-self:start}
.settings-page[data-screen=equip] .sv-controller>span:nth-child(2){min-width:0}
.settings-page[data-screen=equip] .sv-controller b{white-space:normal;word-break:normal;overflow-wrap:normal}
.settings-page[data-screen=equip] .sv-device-node{min-width:130px}
/* An absent display acknowledgement is neutral; actual apply failures stay red. */
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.s-pending{--c:var(--ink-3)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.s-pending .stx{color:var(--ink-2)}
/* The approved rail mark is centered against the header baseline. */
body.review-redesign[data-navigation] #r7Navigation .r7-rail-brand{min-height:72px;box-sizing:border-box;padding:0 8px!important;gap:0;justify-content:center}
body.review-redesign[data-navigation] #r7Navigation .r7-rail-brand-row{display:flex;align-items:center;justify-content:center;padding:0!important;min-height:72px}
body.review-redesign[data-navigation] #r7Navigation .r7-rail-brand .hitru-logo-main{width:36px!important;height:36px!important;max-height:none}
body.review-redesign #r7Navigation .r7-rail-brand .r7-nav-toggle{position:absolute;right:4px;top:14px}
html[data-theme] body.review-redesign button.primary:disabled,html[data-theme] body.settings-open .settings-page button.primary:disabled{background:var(--hx-raised)!important;color:var(--hx-text-2)!important;border-color:var(--hx-line)!important;box-shadow:none!important;opacity:1}
/* Header calendar controls live outside the page after mounting. */
body.screens-v1.r7-page-open:has(#r7Page .bq-book-layout) .topbar .bq-book-date-nav>strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;min-width:120px;max-width:none}
body.screens-v1 #r7Page .bq-book-filters [data-booking-filter]{display:inline-flex!important}
body.screens-v1 #r7Page .bq-book-filter-long{display:inline!important}
body.screens-v1 #r7Page .bq-book-filter-short{display:none!important}
body.screens-v1 #r7Page .bq-book-event{height:60px;min-height:60px}
body.screens-v1 #r7Page .bq-book-event{overflow:hidden}
body.screens-v1 #r7Page .bq-book-event small{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
body.screens-v1 #r7Page .bq-book-event strong{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:normal}
body.screens-v1 #r7Page .bq-book-event strong{line-height:1.15;font-size:13px}
/* Report categories stay on one scrollable line, and unavailable periods remain visible but disabled. */
body.screens-v1 #r7Page .report-catalog{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scroll-padding:8px;gap:8px;padding-bottom:6px}
body.screens-v1 #r7Page .report-catalog-item{flex:none;white-space:nowrap}
body.screens-v1 #r7Page .report-catalog>.screen-info-label{flex:none}
body.screens-v1 #r7Page .report-toolbar .r7-seg{display:flex;min-width:0;max-width:100%;overflow-x:auto}
body.screens-v1 #r7Page .report-toolbar .r7-seg>button{display:inline-flex!important;flex:none;min-width:56px;min-height:44px;align-items:center;justify-content:center}
@media(max-width:767px){body.screens-v1 #r7Page .report-toolbar .r7-seg{flex-basis:100%}}
html[data-theme=light] body.review-redesign #r7Navigation :is(.r7-nav-label,.r7-nav-short){color:inherit}
html[data-theme=light] body.review-redesign #r7Navigation .r7-rail-brand{--hitru-logo-fg:var(--hx-text)}
.settings-page[data-screen=license] .sv-columns{align-items:start}
.settings-page[data-screen=license] .sv-card{min-height:0;align-self:start;height:auto}
/* Light navigation uses the light text palette, including the existing brand symbol. */
html[data-theme=light] body.review-redesign #r7Navigation{--hx-text:#17212b;--hx-text-2:#4f5b69;--hx-text-3:#667587;--hx-line:#d9dfe6;--hitru-logo-fg:#17212b;--hitru-logo-accent:#2f78d4}
body.review-redesign[data-navigation] #r7Navigation{padding-top:0}
body.review-redesign[data-navigation] #r7Navigation .r7-rail-emblem{width:36px!important;height:36px!important;margin:0!important}
body.review-redesign[data-navigation] #r7Navigation .r7-rail-emblem .hitru-logo{width:36px!important;height:36px!important}
body.review-redesign[data-navigation] #r7Navigation .r7-nav-toggle{min-width:44px;width:44px;min-height:44px;height:44px}
body.review-redesign[data-navigation=collapsed] #r7Navigation .r7-rail-brand .r7-nav-toggle{position:static;align-self:center}
.settings-page[data-screen=license] .sv-card h3{display:flex;align-items:center;gap:8px}
.settings-page[data-screen=license] .sv-card h3 .screen-info-label{margin:0}
.settings-page[data-screen=license] .sv-card h3 .screen-info-trigger{background:transparent!important;box-shadow:none}
/* The phone has one content surface, and employee names stay on one bounded line. */
@media(max-width:767px){html[data-theme] body.review-redesign:not(.settings-open) #r7Page{grid-column:1/-1;margin:0;border-radius:0;background:transparent}}
@media(min-width:1180px){html[data-theme] body.review-redesign .topbar #r7Operator .r7-operator-text strong{display:block;min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal;word-break:normal;max-width:100%!important;line-height:1.2}}
body.screens-v1 #r7Page .r7q-lane-group{padding:4px 3px;word-break:normal}
@media(max-width:1179px){html[data-theme] body.settings-open.review-redesign .topbar #r7HeaderTitle{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;line-height:1.15}}
/* A settings empty state stays one line with an icon, without stretching its card. */
body.review-redesign .screen-empty-line{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.4;margin:0;padding:12px 0;color:var(--hx-text-2)}
body.review-redesign .screen-empty-line>span:first-child{display:inline-flex;flex:none}
body.review-redesign .screen-empty-line svg{width:22px;height:22px;flex:none}
.settings-page .sv-columns:has(.screen-empty-line){align-items:start}
.settings-page .sv-card:has(>.screen-empty-line){height:auto;min-height:0;align-self:start}
.settings-page[data-screen=equip] .sv-controller{grid-template-columns:40px minmax(0,1fr)}
.settings-page[data-screen=equip] .sv-controller>.sv-device{width:40px;height:40px;min-width:40px}
.settings-page[data-screen=equip] .sv-controller>span:not(.sv-device){min-width:0}
.settings-page[data-screen=equip] .sv-controller b{font-size:13px;line-height:1.25}
body.screens-v1 #r7Page .r7-visits-card th{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
body.screens-v1 #r7Page .r7q-lane-group{font-size:11px}
body.screens-v1 #r7Page .r7q-lane-group{width:calc(100% + 10px);max-width:none;margin-inline:-5px;font-size:12px}
body.screens-v1 #r7Page .report-catalog{min-height:50px;box-sizing:border-box}

/* The shared phone header uses the same arrow symbol as the navigation rail. */
body.review-redesign .topbar #r7HeaderMark { display:none; }
@media(max-width:767px) {
 body.review-redesign .topbar #r7HeaderMark { display:inline-flex;align-items:center;justify-content:center;order:-2;flex:0 0 32px;width:32px;height:30px; }
 body.review-redesign .topbar #r7HeaderMark .hitru-logo { width:31.05px;height:30px;max-height:none; }
 html[data-theme] body.review-redesign[data-navigation] .topbar #r7HeaderTitle { flex:1 1 0!important;min-width:0!important;white-space:normal!important; }
}

/* A confirmed first setup has no user choices or credential-entry controls. */
body.review-redesign .ct-login.is-setup-empty :is(.ct-login-who,.ct-employee-tiles) { display:none; }
body.review-redesign .ct-login-setup { display:flex;align-items:center;gap:12px;padding-block:4px;color:var(--ht-ink-2);font-size:16px;line-height:1.4; }
body.review-redesign .ct-login-setup>span[aria-hidden] { display:flex;flex:none; }
body.review-redesign .ct-login-setup>span[aria-hidden] svg { width:24px;height:24px; }
body.review-redesign .ct-login-setup .screen-info-label { min-width:0; }
body.review-redesign .ct-login-setup .screen-info-trigger { margin-left:6px; }
@media(max-width:767px) { body.review-redesign .ct-login.is-setup-empty .ct-login-left { grid-template-rows:28px; } }

/* Published business-day metrics share the existing report surfaces. */
.screen-published-hours { display:grid;grid-template-columns:repeat(var(--hour-count),minmax(0,1fr));gap:2px;height:150px; }
.screen-published-hours > div { min-width:0;justify-content:flex-end; }
.screen-hour-value { display:block;background:var(--sv-accent,var(--cyan,#22d3ee));border-radius:3px 3px 0 0; }
.screen-hour-missing { display:block;border:1px dashed var(--sv-muted);border-radius:3px 3px 0 0; }
.screen-queue-parked-name { overflow-wrap:anywhere;line-height:1.5;margin-bottom:8px; }
.sv-library-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap; }
.sv-library-heading h3 { margin:0; }
.sv-library-heading .sv-secondary { min-height:44px; }

.guest-empty-count{margin:0;padding:16px;font-size:16px;color:var(--ink)}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .media:not(:has(>.logo-card)){grid-template-columns:minmax(0,1fr)}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .media>.tv-playlist-card{width:100%;min-width:0;box-sizing:border-box}
@media(min-width:600px) and (max-width:1023px){#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .media{grid-template-columns:minmax(0,1fr)}}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-playlist-card h3 .tv-intent-state{margin-left:8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-playlist-card .ch{height:auto;min-height:44px;flex-wrap:wrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-playlist-card .ch h3{white-space:normal;min-width:0;flex:1}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-playlist-card .ch>.sp{display:none}

@media(max-width:600px){#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-playlist-card .ch .lockln{flex-basis:100%;padding:4px 0}}

/* Общая оболочка разделов; редакторы владеют только содержимым. */
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] { background:var(--hx-bg); }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar { display:flex!important;align-items:center;flex-wrap:nowrap!important;box-sizing:border-box;grid-column:2/-1;position:relative;left:auto!important;right:auto!important;min-width:0;min-height:72px!important;height:72px!important;max-height:none!important;padding:8px 16px!important;gap:8px!important;background:var(--hx-chrome)!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(.top-actions,.top-system) { display:contents!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(.top-tabs,#daySummary,#refreshBtn,#clock,#screenSettingsBtn,#techLogBtn,#technicalBtn,.go-header-status,.center-header-status,#ctCompactBrand,.center-settings-back,.go-settings-back,.ct-settings-back) { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderTitle { display:block!important;position:static!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;margin:0!important;font-size:20px;line-height:1.2;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;order:0!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search { display:flex!important;flex:none;order:1!important;min-width:44px!important;max-width:220px;width:44px;position:relative; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search .r7-search-icon { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search .r7-search-toggle { display:inline-flex!important;min-width:44px!important;width:44px;min-height:44px;height:44px;justify-content:center;align-items:center;padding:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search:not(.is-open) .r7-search-input { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search.is-open .r7-search-input { display:block!important;position:absolute!important;right:0;left:auto;top:48px;width:min(340px,calc(100vw - 32px));min-height:44px;font-size:16px;z-index:5; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(#hallEquipment,#r7Bell,#managerBtn,#r7PinOff,#r7HeaderInfo):not([hidden]) { display:inline-flex!important;align-items:center;justify-content:center;flex:none!important;min-width:44px!important;min-height:44px!important;height:44px;padding:0 10px!important;position:relative;inset:auto;order:2!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Bell { order:3!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip:not([hidden]) { display:inline-flex!important;align-items:center;flex:none;order:4!important;min-height:44px;max-width:170px;white-space:normal; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(#r7PinOff,#r7HeaderInfo) { order:5!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #managerBtn { order:6!important;width:44px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Operator { display:flex!important;align-items:center;justify-content:center;position:static;flex:none!important;width:auto;min-width:44px!important;max-width:160px!important;height:44px!important;padding:0!important;margin:0;order:7!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .top-brand { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .shell-phone-mark { display:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Navigation .r7-rail-emblem { display:flex;align-items:center;justify-content:center;width:40px!important;height:48px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=expanded] #r7Navigation .r7-rail-emblem { visibility:hidden; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Navigation .r7-rail-emblem .hitru-logo { width:38px!important;height:38px!important;overflow:visible; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title h2 { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-section-select { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title #settingsSectionMenu { margin:0;min-width:44px;width:44px;min-height:44px;height:44px;flex:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title { align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap; }
/* Below the desktop width the way back to the section list starts the title row on every settings screen. */
@media (max-width:1179px) { html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title:has(#settingsSectionMenu) { justify-content:flex-start; } }
html[data-theme] body#receptionApp.reception-shell.review-redesign #ctSurfaceHeading { position:static!important;margin:0;display:flex!important;align-items:center;gap:12px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #ctSurfaceHeading .ct-surface-name { display:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-submenu { box-sizing:border-box;padding-block:16px!important;scroll-padding-block:16px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-submenu :is(.sv-menu-title,header) { margin:12px 12px 8px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-submenu [data-settings-screen] { min-height:56px;align-items:center;gap:10px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-menu-status { flex:none;white-space:nowrap; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event { display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;min-height:56px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-events { container-type:inline-size; }
@container (max-width:360px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event { grid-template-columns:32px minmax(0,1fr);row-gap:4px; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event time { grid-column:2;margin-left:0;text-align:left;white-space:normal; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event>.sv-icon { display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:transparent;color:var(--hx-text-2); }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event>.sv-icon svg { width:22px;height:22px;fill:none;stroke:currentColor; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event-meta { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event time { white-space:nowrap; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-card :is(button,.sv-controller-identify) { min-height:44px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-equipment-grid .sv-controller b { overflow-wrap:anywhere;word-break:normal; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-equipment-grid h3 { display:flex;align-items:center;flex-wrap:wrap;gap:10px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-equipment-grid .sv-row { display:flex;flex-wrap:wrap;gap:8px 16px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-equipment-grid .sv-row strong { white-space:nowrap; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-secondary { border:1px solid var(--hx-line);background:var(--hx-raised);color:var(--hx-text);padding:10px 16px;border-radius:10px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(.ct-primary,.sv-primary,.r7-primary):not(:disabled) { background:var(--hx-primary)!important;color:var(--hx-on-primary)!important;box-shadow:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(.ct-primary,.sv-primary,.r7-primary,.primary):disabled { background:var(--hx-raised)!important;color:var(--hx-text-2)!important;border-color:var(--hx-line)!important;opacity:1;box-shadow:none!important; }
@media(min-width:768px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign.settings-open[data-navigation] { --hx-rail-w:84px!important;grid-template-columns:84px minmax(0,1fr)!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Navigation { display:flex!important;grid-column:1;grid-row:1/-1;width:var(--hx-rail-w)!important;padding:0 6px 16px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=collapsed] #r7Navigation .r7-rail-brand { display:flex!important;min-height:118px;height:118px;flex-direction:column;padding:8px 0 0;justify-content:flex-start;gap:4px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=collapsed] #r7Navigation .r7-nav-toggle { display:flex!important;position:static;width:44px;height:44px;min-height:44px;align-items:center;justify-content:center; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7PinOff>span:last-child { font-size:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title #settingsSectionMenu { display:none; }
}
@media(min-width:768px) and (max-width:1179px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .r7-operator-text { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #hallEquipment { width:44px;padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #hallEquipment :is(.hall-equipment-text,.hall-equipment-label) { display:none; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title #settingsSectionMenu { display:inline-flex; }
}
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] { --hx-rail-w:0px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:124px minmax(0,1fr)!important;padding-bottom:72px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar { grid-column:1/-1;grid-row:1;display:grid!important;grid-template-columns:36px minmax(0,1fr) repeat(4,44px);grid-template-rows:44px 44px;gap:8px 4px!important;height:124px!important;min-height:124px!important;padding:12px 16px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar>* { order:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .top-brand { display:flex!important;grid-column:1;grid-row:1;width:36px!important;min-width:36px!important;padding:0!important;margin:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .brand-emblem { display:flex;width:36px;min-width:36px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .top-brand :is(.hitru-logo-lockup,.subline) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .top-brand .shell-phone-mark { display:block!important;width:36px!important;min-width:36px!important;height:36px!important;max-width:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderTitle { grid-column:2;grid-row:1;font-size:16px!important;line-height:1.2; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search { grid-column:3;grid-row:1; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Bell { grid-column:4;grid-row:1;padding:0!important;width:44px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #managerBtn { grid-column:5;grid-row:1;padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Operator { grid-column:6;grid-row:1;max-width:44px!important;min-width:44px!important;width:44px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Operator :is(.r7-operator-text,.session-info) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment { grid-column:1/4;grid-row:2;width:auto!important;max-width:100%;padding:0 8px!important;font-size:12px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip { grid-column:4/6;grid-row:2;max-width:none;min-width:0!important;font-size:11px;line-height:1.25;padding:4px 8px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(#r7PinOff,#r7HeaderInfo) { grid-column:6;grid-row:2;width:44px;padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Navigation { display:grid!important;position:fixed!important;inset:auto 0 0!important;height:72px!important;min-height:72px;width:100%!important;max-height:72px;grid-template-columns:repeat(5,minmax(0,1fr));padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Navigation .r7-rail-brand { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .workspace { padding:0!important;grid-column:1/-1; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page { padding:0!important;border-radius:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-content { min-width:0!important;padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-body { box-sizing:border-box;min-width:0;padding:16px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-title:has(#settingsSectionMenu) { display:flex!important;min-height:44px;padding:0 16px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-title #settingsSectionMenu { display:inline-flex!important;align-items:center;justify-content:center; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-event { grid-template-columns:28px minmax(0,1fr); }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-event time { grid-column:2; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .r7-page-head { padding-inline:16px; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Search { height:44px!important;min-height:44px!important;margin:0!important;padding:0!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator { min-height:44px!important;max-height:44px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign button:disabled { background:var(--hx-raised)!important;color:var(--hx-text-2)!important;border-color:var(--hx-line)!important;box-shadow:none!important;opacity:1; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-body :is(input,textarea,select) { font-size:16px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls button { width:44px;min-width:44px;height:44px;min-height:44px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls #hallZoomAuto { width:auto; }
/* Preserve the panel contract: full-size scale controls on tablets, compact controls on phones. */
@media(min-width:601px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace .hall-workspace-close { min-width:56px!important;min-height:56px!important;height:56px;flex:0 0 56px; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace.hall-lane-panel [data-role="hall-quota-extend-all"] { min-height:56px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls :is(#hallZoomOut,#hallZoomIn,#hallZoomAuto) { min-width:56px!important;min-height:56px!important;height:56px; }
@media(max-width:600px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls :is(#hallZoomOut,#hallZoomIn,#hallZoomAuto) { min-width:44px!important;min-height:44px!important;height:44px; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-equipment-grid .sv-card>h3+.screen-info-label { display:inline-flex; }
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .top-brand { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderMark { display:flex!important;grid-column:1;grid-row:1;position:static!important;width:36px!important;height:44px!important;margin:0!important;align-items:center;justify-content:center; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderMark svg { width:36px!important;height:36px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState { grid-column:4/7;grid-row:2;display:flex!important;width:auto!important;height:44px!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState .tc-chip { box-sizing:border-box;flex:1 1 auto!important;width:100%;max-width:none!important;white-space:normal!important;font-size:12px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .hall-legend-help { grid-column:5;grid-row:1;position:static;display:flex;min-width:44px;min-height:44px;align-items:center;justify-content:center; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment { grid-column:1/4;max-width:100%;min-width:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .sv-title #settingsSectionMenu { margin-right:auto; }
}
html[data-theme] body#receptionApp.reception-shell { --hx-primary:#128558;--hx-primary-hover:#0e6b46;--hx-on-primary:#fff; }
html[data-theme=light] body#receptionApp.reception-shell { --hx-primary:#157a45;--hx-primary-hover:#106838; }
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(.sv-primary-action,.primary,.ct-primary,.r7-primary):not(:disabled) { background:var(--hx-primary)!important;color:#fff!important;box-shadow:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-section-menu svg { display:block!important;width:22px!important;height:22px!important;fill:none;stroke:var(--hx-text);stroke-width:1.6; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-card:has(>h3:only-child) { background:transparent;border:0;box-shadow:none;padding:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-controller { position:relative;padding-right:38px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-controller[aria-pressed=true]::after { position:absolute;right:14px;top:14px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title #settingsSectionMenu { justify-content:center;align-items:center; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page:is([data-screen=center],[data-screen=opt],[data-screen=tariffs]) .sv-body { padding:0!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-section-menu { padding:0!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-section-menu svg { flex:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7SystemState { order:4!important;flex:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .screen-info-label { display:inline-flex;align-items:center;justify-content:center; }
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(.r7-rail-emblem,#r7HeaderMark) .hitru-logo { transform:translateY(-6px); }
html[data-theme] body#receptionApp.reception-shell.review-redesign .r7-rail-word .hitru-logo { width:124.72px!important;height:32.76px!important; }
html[data-theme=light] body#receptionApp.reception-shell.review-redesign :is(.settings-page,.sv-content,.sv-body) { background:var(--hx-bg)!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign button { min-width:44px;min-height:44px; }
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .screen-info-label { grid-column:5;grid-row:1;width:44px;height:44px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar:has(.hall-legend-help) :is(>.screen-info-label,.top-actions>.screen-info-label) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #hallEquipment { margin:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7SystemState { max-width:none!important;box-sizing:border-box; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7SystemState :is(.r7-status-mobile,.r7-status-compact) { min-width:0;white-space:normal!important;overflow:visible;line-height:1.2; }
}
html[data-theme=light] body#receptionApp.reception-shell { --hx-bg:#eef1f6; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .r7-page-head:not(:has(.r7-page-actions>*)) { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .guest-live-directory.is-empty .guest-draft-card { background:transparent;border:0;box-shadow:none;padding:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .guest-live-directory.is-empty thead { display:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .guest-live-directory.is-empty .guest-draft-layout { display:block; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .guest-draft-filters button { font-size:16px!important;color:var(--hx-text-2); }
html[data-theme] body#receptionApp.reception-shell.review-redesign .r7q-seat-reason { white-space:normal;overflow:visible;text-overflow:clip;min-width:0;overflow-wrap:anywhere; }
@media(min-width:1180px){html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .r7-operator-text{display:flex!important;flex-direction:column;min-width:0}}
@media(min-width:768px){html[data-theme] body#receptionApp.reception-shell.review-redesign .guest-live-directory-footer{width:fit-content;align-self:flex-end;background:transparent;border:0;padding-inline:0}}
@media(min-width:768px) and (max-width:1179px){html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-title:has(#settingsSectionMenu){display:flex!important;min-height:44px;padding:0 16px}}
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #hallEquipment { grid-column:1/3; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7SystemState { grid-column:3/6; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .hall-legend-help { grid-column:6;grid-row:2; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar:has(.hall-legend-help) :is(>.screen-info-label,.top-actions>.screen-info-label) { display:inline-flex!important; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(input,select,textarea):not([type=checkbox]):not([type=radio]){font-size:16px!important}
html[data-theme] body#receptionApp.reception-shell.review-redesign button{min-height:44px!important;min-width:44px!important}
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-alpha-keys>div>button { min-width:0!important; }
}
/* The 44px floor above stays a floor: keyboard sheet keys keep their own sizes, and the phone letter rows fit the screen width. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .security-keypad button{min-height:56px!important}
@media(min-width:601px){html[data-theme] body#receptionApp.reception-shell.review-redesign .kbd-sheet .kbd-key{min-height:56px!important;min-width:56px!important}}
@media(max-width:600px){html[data-theme] body#receptionApp.reception-shell.review-redesign .kbd-sheet .kbd-row:not(.kbd-actions) .kbd-key{min-width:0!important;min-height:48px!important}html[data-theme] body#receptionApp.reception-shell.review-redesign .kbd-sheet .is-numeric .kbd-key{min-width:56px!important;min-height:56px!important}}
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Search .r7-search-toggle{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important}
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-columns{align-items:start}
@media(min-width:768px){html[data-theme] body#receptionApp.reception-shell.review-redesign #r7NavigationToggle{visibility:visible!important}}
@media(min-width:1180px){html[data-theme] body#receptionApp.reception-shell.review-redesign.settings-open[data-navigation=expanded]{--hx-rail-w:216px!important;grid-template-columns:216px minmax(0,1fr)!important}}
@media(min-width:768px) and (max-width:1179px){html[data-theme] body#receptionApp.reception-shell.review-redesign.r7-nav-overlay #r7Navigation{width:216px!important;position:fixed!important;inset:0 auto 0 0!important;z-index:130}}
html[data-theme] body#receptionApp.reception-shell .hitru-logo{--hitru-logo-fg:#f2f1f8;--hitru-logo-accent:#3ee0f2}
html[data-theme=light] body#receptionApp.reception-shell .hitru-logo{--hitru-logo-fg:#0e0c1d;--hitru-logo-accent:#2f78d4}

html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page[data-screen=screens] .sv-submenu { transform:none!important;height:100%!important;z-index:auto; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 :is(.tv-v2-shorttitle,.tv-v2-back) { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .tv-v2-body>.status { position:static!important;inset:auto!important;margin:8px 16px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .cols { min-width:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .content { padding-inline:16px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .row .lb { min-width:0;white-space:normal; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .r7q-row.is-selected .r7q-estimate small { color:var(--hx-text-2); }
@media(min-width:600px) and (max-width:1179px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .cols { grid-template-columns:minmax(0,1fr); }
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .lanes { width:240px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .seg { height:auto;min-height:44px;flex-wrap:wrap; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .tv-settings-v2 .seg>button { min-width:74px!important;flex:1 1 40%; }
}
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet { bottom:72px!important;max-height:calc(100dvh - 272px)!important; }
}

@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .hall-legend-help { grid-column:6!important;grid-row:2!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .screen-info-label { grid-column:5!important;grid-row:1!important; }
}

@media(max-width:767px){html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar :is(#r7PinOff,#r7HeaderInfo){grid-column:5!important;grid-row:1!important}}

html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-integration-empty { display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap; }

@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment { grid-column:1/3!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState { grid-column:3/6!important; }
}

html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Page.settings-page[data-screen=screens] .sv-body.sv-display-error { padding:16px!important;box-sizing:border-box; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-content>.sv-card { margin-inline:16px;min-width:0; }
@media(max-width:767px){html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState.is-offline{width:auto!important;min-width:0!important;justify-self:stretch!important}}

@media(max-width:767px){html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Page.settings-page:has(.sv-display-error){margin-inline:0!important;width:100%!important;max-width:100%;box-sizing:border-box}}

@media(min-width:768px){html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment{width:max-content!important;max-width:none!important;gap:6px}html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment>span{flex:none;white-space:nowrap}}

.settings-page .sv-empty-staff { display:flex;align-items:center;justify-content:space-between;gap:16px;align-self:start; }
.settings-page .sv-display-error > .sv-card { align-self:start; }
.settings-page .sv-display-error .sv-display-retry { width:auto;justify-self:start; }
html[data-theme] body#receptionApp.reception-shell .modal.guest-action-modal .guest-action-toggle input[type=checkbox] { border:1px solid var(--hx-text-2);box-sizing:border-box; }
html[data-theme] body#receptionApp.reception-shell .modal.guest-action-modal .guest-action-toggle input[type=checkbox]::before { top:3px;left:3px; }
html[data-theme] body#receptionApp.reception-shell .modal.guest-action-modal .guest-action-toggle input[type=checkbox]:checked::before { left:23px; }
html[data-theme] body#receptionApp.reception-shell .modal.guest-action-modal .guest-action-toggle input[type=checkbox]:disabled { opacity:1;cursor:not-allowed; }
html[data-theme] body#receptionApp.reception-shell .modal.guest-action-modal .guest-action-toggle input[type=checkbox]:disabled::before { opacity:.55; }

html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-journal { width:100%;min-width:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-journal>.sv-card { width:100%;box-sizing:border-box; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-journal .sv-event { grid-template-columns:28px minmax(0,1fr) auto;align-items:center;min-height:64px;padding:10px 0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event-copy { min-width:0;overflow-wrap:anywhere; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event-end { display:flex;align-items:center;justify-content:flex-end;gap:12px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .r7-shift-entry { display:flex;align-items:center;gap:8px;padding:16px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page:is([data-screen=equip],[data-screen=journal]) .screen-info-trigger { background:transparent!important;border:0!important;box-shadow:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-controller-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page[data-screen=equip] .sv-controller-actions > [data-controller-action=identify] { border:1px solid var(--sv-muted)!important; }
@media(min-width:768px) and (max-width:1179px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page[data-screen=journal] .sv-title { justify-content:flex-start; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page[data-screen=journal] #settingsSectionMenu { margin-right:auto; }
}
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-event-end { flex-direction:column;gap:4px;align-items:flex-end; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment { grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;width:calc(50% - 30px)!important;max-width:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState,
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState.is-offline { grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;margin-left:calc(50% - 22px)!important;width:calc(50% - 30px)!important;max-width:none!important;box-sizing:border-box; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState :is(.r7-status-full,.r7-status-compact,.r7-status-mobile) { flex:1;min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:normal; }
}

html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-error + button:is(.sv-refresh,.sv-display-retry),
html[data-theme] body#receptionApp.reception-shell.review-redesign .reception-error-retry,
html[data-theme] body#receptionApp.reception-shell.review-redesign ::part(error-retry) {
  border: 1px solid var(--sv-muted) !important;
  background: var(--hx-raised) !important;
  color: var(--hx-text) !important;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: none;
}

@media(max-width:600px) {
 html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel.lane-players-editor.is-hall-sheet { box-shadow:0 0 0 100vmax rgba(6,5,14,.66); }
 html[data-theme] body.review-redesign:has(#visitWorkspace.lane-players-editor.is-hall-sheet) #lanes.hall-tiles-v1 { filter:blur(6px); }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row { gap:4px; }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-state { padding-inline:4px; }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor :is(.hall-panel-back,.hall-workspace-close) { flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;align-self:center; }
 html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor > .daily-checkout.lp-footer { min-height:0; }
}

html[data-theme] body#receptionApp #modal .reception-dialog.modal .security-editor:has(> .security-rights) > .security-buttons.reception-dialog-actions { padding-inline:0; }
html[data-theme] body#receptionApp #modal .security-editor .security-rights input[type=checkbox]:enabled {
 appearance:none;display:grid;place-content:center;box-sizing:border-box;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;
 border:1px solid var(--hx-text-2);border-radius:4px;background:transparent;color:var(--hx-select);cursor:pointer;
}
html[data-theme] body#receptionApp #modal .security-editor .security-rights input[type=checkbox]:enabled:checked { border-color:var(--hx-select); }
html[data-theme] body#receptionApp #modal .security-editor .security-rights input[type=checkbox]:enabled:checked::before { content:"";width:6px;height:10px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg); }


html[data-theme] body#receptionApp .settings-page .sv-load-failure .sv-error,
html[data-theme] body#receptionApp .settings-page ::part(settings-load-error) {
  display:flex;
  flex-direction:row;
  gap:8px;
  align-items:flex-start;
  padding:12px;
  margin:0;
  border:1px solid var(--hx-st-fault);
  border-radius:12px;
  background:color-mix(in srgb,var(--hx-st-fault) 8%,var(--sv-sunk));
  color:var(--sv-text);
  font-size:13px;
  font-weight:400;
  line-height:1.5;
}
html[data-theme] body#receptionApp .settings-page .sv-load-failure .sv-error::before,
html[data-theme] body#receptionApp .settings-page ::part(settings-load-error)::before {
  content:'!';
  display:grid;
  place-items:center;
  flex:0 0 18px;
  width:18px;
  min-width:18px;
  height:18px;
  box-sizing:content-box;
  border:1px solid var(--hx-st-fault);
  border-radius:50%;
  color:var(--hx-st-fault);
  font-weight:800;
}
html[data-theme] body#receptionApp .settings-page .sv-load-failure,
html[data-theme] body#receptionApp .settings-page ::part(settings-load-state) {
  display:block;
  min-height:0;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
}
html[data-theme] body#receptionApp .settings-page .sv-error + button:is(.sv-refresh,.sv-display-retry),
html[data-theme] body#receptionApp .settings-page ::part(error-retry) { margin-top:12px; }

html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item {
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto!important;
  grid-template-rows:1fr!important;
  align-items:center;
  align-content:center;
  gap:0 10px;
  height:56px;
  min-height:56px;
  max-height:56px;
}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item > .sv-icon { grid-column:1;grid-row:1!important; }
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item > span:not(.sv-icon) {
  grid-column:2;
  grid-row:1;
  min-width:0;
  white-space:normal!important;
  font-size:14px;
  line-height:20px;
}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item > .sv-menu-status {
  grid-column:3!important;
  grid-row:1;
  width:auto;
  max-width:72px;
  justify-self:end;
  text-align:right;
  white-space:normal;
  overflow-wrap:normal;
  line-height:16px;
}
html[data-theme] body#receptionApp .settings-page .sv-submenu > h3 {
  height:24px;
  margin:12px 0 4px;
}
html[data-theme] body#receptionApp .settings-page .sv-submenu > h3:first-of-type { margin-top:0; }

@media(max-width:767px) {
  html[data-theme] body#receptionApp .settings-page.ct-settings-menu {
    height:calc(100dvh - 124px - 72px)!important;
    max-height:calc(100dvh - 124px - 72px)!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html[data-theme] body#receptionApp .settings-page.ct-settings-menu > .sv-submenu {
    height:100%!important;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}

body.review-redesign .ct-movements { min-width:0; }
body.review-redesign .ct-own-receipts { display:flex;flex-direction:column;gap:12px;min-width:0;margin-bottom:16px; }
body.review-redesign .ct-own-receipts .r7-table-wrap { max-width:100%;overflow-x:auto; }
body.review-redesign .ct-own-receipts .r7-table { min-width:0;table-layout:fixed; }
body.review-redesign .ct-own-receipts .r7-table :is(th,td) { padding:10px 8px;vertical-align:top;overflow-wrap:anywhere; }
body.review-redesign .ct-own-receipts .r7-table :is(th,td):last-child { width:40%; }
body.review-redesign .ct-receipt-items { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
body.review-redesign .ct-receipt-items li { display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px; }
@media(max-width:767px) {
 body.review-redesign .ct-own-receipts .r7-table { display:block; }
 body.review-redesign .ct-own-receipts .r7-table caption { display:none; }
 body.review-redesign .ct-own-receipts .r7-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 body.review-redesign .ct-own-receipts .r7-table tbody { display:block; }
 body.review-redesign .ct-own-receipts .r7-table tr { display:block;border-bottom:1px solid var(--ht-line);padding:8px 0; }
 body.review-redesign .ct-own-receipts .r7-table td { display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;width:auto;min-width:0;padding:6px 0;border:0; }
 body.review-redesign .ct-own-receipts .r7-table td::before { content:attr(data-label);color:var(--ht-ink-2); }
 body.review-redesign .ct-own-receipts .r7-table td:last-child { width:auto; }
}

body.review-redesign .sv-terminal-theme > h3 { display:flex;align-items:center;gap:8px; }

/* The visit tabs scroll within their card instead of expanding the page grid. */
body.screens-v1 .r7-visits-card { min-width:0; }
body.screens-v1 .r7-visits-bar { min-width:0;max-width:100%; }
body.screens-v1 .r7-visits-bar .r7-tabs { min-width:0;width:100%;box-sizing:border-box; }

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-badge-size="large"] .hall-tile-badges > .daily-lane-test-badge:only-child { padding-inline:2px; }

html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls #hallQuickButtons .hall-quick-button:not(.is-add) { width:76px;min-width:76px!important;height:56px;min-height:56px!important; }
@media(max-width:600px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign #hallScaleControls:has([data-quick-action]) { height:auto;min-height:64px; }
}

/* The session timer may wrap inside its chip rather than widen the document. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .session-time { flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere; }

@media(min-width:768px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Operator { max-width:360px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .session-time { flex:0 1 auto;min-width:min-content;overflow-wrap:normal; }
}

/* A keyboard host occupies the available area above the sheet, including its margins. */
html[data-theme] body#receptionApp #modal:has(.osk-host) { top:0!important;bottom:var(--osk-height,360px)!important;height:auto!important;align-items:flex-start!important; }
html[data-theme] body#receptionApp #modal .reception-dialog.modal.osk-host { margin-block:0!important;height:calc(100dvh - var(--osk-height,360px))!important;max-height:calc(100dvh - var(--osk-height,360px))!important;min-height:0; }

body.review-redesign #visitWorkspace.screen-visit .screen-visit-paid-badge { color:var(--ht-free); }

/* Display intent and controller delivery are independent states. */
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-field-state{display:inline-flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-intent-state{font-size:11px;font-weight:600;line-height:1.3;color:var(--ink-3);white-space:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-field-state .ib{width:44px;height:44px;min-width:44px;margin:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row{gap:8px;flex-wrap:wrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .lb{flex:1 1 100px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lbr{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-choice{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-height:88px;min-width:0;border:1px solid var(--line);border-radius:10px;padding:7px;color:var(--ink);background:var(--panel);font:inherit;text-align:center;position:relative}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-choice.on{border-color:#25c7dc;background:linear-gradient(125deg,rgba(37,199,220,.22),rgba(37,199,220,.07))}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-choice.on::after{content:'✓';position:absolute;right:10px;top:10px;color:#fff;background:#087b8a;border-radius:50%;width:20px;height:20px;line-height:20px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-art{height:46px;display:flex;flex-direction:column;gap:4px;background:#090e2b;padding:6px;border-radius:5px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-art>span{display:grid;grid-template-columns:1.4fr repeat(6,1fr);gap:2px;height:8px;border:1px solid #30436c;border-radius:3px;padding:1px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-art i{background:#30436c;border-radius:1px}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-art>span:first-child{border-color:#26c9e0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=light]{background:#eef3fb}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=light]>span{border-color:#bac7d8}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=light] i{background:#bac7d8}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=ocean]{background:#06242d}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=ocean] i{background:#275e6b}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=ocean]>span{border-color:#328399}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=contrast]{background:#000}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=contrast] i{background:#ddd}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 [data-preview-theme=contrast]>span{border-color:#fff}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-physical-fields{display:flex;gap:8px;flex-wrap:wrap}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-physical-fields button{min-height:44px;flex:1 1 100px;background:transparent;color:var(--ink-3);border:1px solid var(--line);border-radius:8px;font:inherit;padding:8px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-center-locale{font-size:11px;color:var(--ink-3);margin-left:auto}
@media(max-width:540px){#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-field-state{gap:0}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-intent-state{font-size:10px}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .lb{flex-basis:90px}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-field-state .ib{width:44px}#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-theme-choices{gap:6px}}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .stk .lbr{height:auto;min-height:44px;flex-wrap:wrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .lt.s-default{--c:var(--ink-2)}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row{flex-wrap:nowrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .lb{flex:1 1 0;min-width:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .row .tv-field-state{margin-left:0}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-physical-fields button{overflow-wrap:anywhere;font-size:14px}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.on{background:#16965d}
html[data-theme] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.on i{background:#fff}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .set .shd{height:auto;min-height:48px;flex-wrap:wrap}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .tv-controller-wait{flex:0 0 100%;font-size:12px;font-weight:650;color:var(--ink-2);padding:0 0 8px}

#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .card{border-radius:16px;backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,6,20,.12),inset 0 1px 0 rgba(200,225,255,.06)}
html[data-theme] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button.on{background:linear-gradient(125deg,#36dcec,#12b2c9);color:#041a2d}
#r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .seg button.on::after{content:'✓';font-size:12px;line-height:12px}

body.review-redesign .ct-restricted-cash > [data-cash-lock]{flex:0 0 auto;display:inline-flex;color:var(--ht-ink-2)}
body.review-redesign .ct-restricted-cash > .screen-info-label{flex:1;min-width:0}

body.review-redesign #screenInfoTooltip #hallLegend svg { stroke-width:2; }

@media (min-width:768px) and (max-width:1179px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page[data-screen=tariffs] .sv-title { justify-content:flex-start!important;flex-wrap:nowrap;gap:12px; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page[data-screen=tariffs] .sv-title > div { min-width:0; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page[data-screen=tariffs] .sv-title h2 { display:block!important;margin:0;font-size:20px; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page[data-screen=tariffs] .sv-title #settingsSectionMenu { margin:0!important; }
}

@media (max-width:767px) {
  html[data-theme] body#receptionApp .settings-page .sv-content > .sv-load-failure { margin-inline:16px; }
}

html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .primary { flex:1.4 0 max-content;width:max-content;min-width:max-content;padding-inline:10px;white-space:nowrap;overflow-wrap:normal;word-break:normal; }

@media(max-width:767px) { html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .primary { flex:0 0 max-content; } }

@media(max-width:767px) { html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { min-width:min-content;overflow-wrap:normal;word-break:normal; } }

body.review-redesign .ct-shift-journal-page { --ct-receipt-accent:var(--ht-accent);--ct-receipt-accent-soft:var(--ht-accent-soft); }
html[data-theme=light] body.review-redesign .ct-shift-journal-page { --ct-receipt-accent:#087f8f;--ct-receipt-accent-soft:#e5f8fb; }
body.review-redesign .ct-shift-journal-page .ct-shift-overview { flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px;margin:16px 12px 12px;padding:14px 16px;overflow:visible; }
body.review-redesign .ct-shift-overview .ct-shift-card-title { display:block;margin:0; }
body.review-redesign .ct-shift-overview .ct-shift-card-title small { display:block;margin:4px 0 0; }
body.review-redesign .ct-shift-overview :is(.sv-row,.ct-shift-kv) { min-width:0;min-height:44px;margin:0;padding:0;border:0;gap:6px;font-size:13px; }
body.review-redesign .ct-shift-overview .sv-row { flex-direction:column;align-items:flex-start;justify-content:center; }
body.review-redesign .ct-shift-overview .ct-shift-kv:not(.ct-restricted-cash) { flex-wrap:wrap;align-content:center; }
body.review-redesign .ct-shift-overview .ct-shift-kv:not(.ct-restricted-cash)>span { flex-basis:100%; }
body.review-redesign .ct-shift-overview .ct-shift-kv .ct-text { min-height:32px;padding-block:0;font-size:13px;white-space:nowrap; }
body.review-redesign .ct-shift-overview .sv-row strong { font-size:18px;line-height:1.2; }
body.review-redesign .ct-shift-journal-grid { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px;flex:1;min-height:0;padding:0 12px 12px; }
body.review-redesign .ct-shift-journal-grid>.ct-shift-card { min-width:0; }
body.review-redesign .ct-shift-journal h3 { margin:0 0 14px; }
body.review-redesign .ct-shift-journal .r7-table { min-width:0;table-layout:fixed; }
body.review-redesign .ct-shift-journal .r7-table :is(th,td) { padding:12px 6px;overflow-wrap:normal;word-break:normal;font-size:13px; }
body.review-redesign .ct-shift-journal .r7-table :is(th,td):first-child { width:76px;white-space:nowrap; }
body.review-redesign .ct-shift-journal .r7-table :is(th,td):nth-child(5) { width:22%;overflow-wrap:normal; }
body.review-redesign .ct-shift-journal .r7-table :is(th,td):last-child { width:27%;overflow-wrap:anywhere;white-space:normal; }
body.review-redesign :is(.ct-shift-journal,.ct-own-receipts) .r7-table tr.is-action { height:48px;min-height:44px;cursor:pointer; }
body.review-redesign :is(.ct-shift-journal,.ct-own-receipts) .r7-table tr.is-action:focus-visible { outline:2px solid var(--ht-accent);outline-offset:-2px; }
body.review-redesign :is(.ct-shift-journal,.ct-own-receipts) .r7-table tr.is-selected { background:var(--ct-receipt-accent-soft);outline:2px solid var(--ct-receipt-accent);outline-offset:-2px; }
body.review-redesign :is(.ct-shift-journal,.ct-own-receipts) .r7-table tr.is-refund td { color:var(--ht-danger); }
body.review-redesign .ct-journal-own { border-top:1px solid var(--ht-line);padding-top:12px; }
body.review-redesign .ct-journal-own>summary { min-height:44px;align-content:center;cursor:pointer;color:var(--ht-ink-2); }
body.review-redesign .ct-selected-receipt { display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0;overflow:auto;padding:18px 16px;border:1px solid var(--ht-edge);border-radius:18px;background:var(--ht-panel);color:var(--ht-ink); }
body.review-redesign .ct-selected-receipt h3 { margin:0;font-size:16px; }
body.review-redesign .ct-receipt-empty { margin:auto;max-width:22ch;text-align:center;color:var(--ht-ink-2); }
body.review-redesign .ct-receipt-number { max-width:100%;overflow-wrap:anywhere;font-size:13px;color:var(--ht-ink-2); }
body.review-redesign .ct-receipt-facts { display:grid;gap:12px;margin:0; }
body.review-redesign .ct-receipt-facts>div { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px; }
body.review-redesign .ct-receipt-facts dt { color:var(--ht-ink-2);font-size:13px; }
body.review-redesign .ct-receipt-facts dd { margin:0;text-align:right;overflow-wrap:anywhere;font-size:14px;font-weight:650; }
body.review-redesign .ct-selected-receipt-lines { list-style:none;margin:0;padding:14px 0;display:grid;gap:12px;border-block:1px solid var(--ht-line); }
body.review-redesign .ct-selected-receipt-lines li,body.review-redesign :is(.ct-receipt-total,.ct-receipt-payment) { display:flex;justify-content:space-between;align-items:baseline;gap:12px; }
body.review-redesign .ct-selected-receipt-lines li { font-size:14px; }
body.review-redesign .ct-selected-receipt-lines li>span { min-width:0;overflow-wrap:anywhere; }
body.review-redesign .ct-selected-receipt-lines li>b { flex:0 1 auto;min-width:0;text-align:right;overflow-wrap:anywhere; }
body.review-redesign .ct-receipt-total strong { min-width:0;font-size:22px;text-align:right;overflow-wrap:anywhere; }
body.review-redesign .ct-receipt-payment { color:var(--ht-ink-2);font-size:13px; }
body.review-redesign .ct-receipt-refund { min-height:48px;padding:10px 16px;border:1px solid var(--ht-danger);border-radius:12px;background:var(--ht-danger-soft);color:var(--ht-danger);font-size:14px;font-weight:750;display:inline-flex;justify-content:center;align-items:center;gap:8px; }
body.review-redesign .ct-selected-receipt>.ct-receipt-refund { width:100%;margin-top:auto;flex:none; }
body.review-redesign .ct-receipt-refund svg { width:20px;height:20px; }
body.review-redesign .ct-receipt-refund:disabled { opacity:.6; }
body.review-redesign .ct-receipt-refund-form { display:grid;gap:16px; }
body.review-redesign .ct-receipt-refund-form label { display:grid;gap:8px; }
body.review-redesign .ct-receipt-refund-form :is(input,textarea) { min-height:48px;width:100%;font-size:16px; }
@media(min-width:768px) and (max-width:1023px) {
 body.review-redesign .ct-shift-journal .r7-table { min-width:520px; }
 body.review-redesign .ct-shift-journal .r7-table-wrap { max-width:100%;overflow-x:auto; }
 body.review-redesign .ct-shift-journal-grid { grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px; }
 body.review-redesign .ct-shift-journal-grid>.ct-shift-card { padding:14px 10px; }
 body.review-redesign .ct-shift-journal .r7-table :is(th,td) { font-size:12px;padding:12px 4px; }
 body.review-redesign .ct-shift-overview .ct-shift-card-title small { font-size:12px; }
}
@media(max-width:767px) {
 body.review-redesign .ct-shift-journal-page .ct-shift-overview { grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 12px 10px;padding:12px;gap:10px 12px; }
 body.review-redesign .ct-shift-overview .ct-shift-card-title { grid-column:1/-1; }
 body.review-redesign .ct-shift-journal-grid { display:block;flex:none;min-height:0; }
 body.review-redesign .ct-shift-journal-grid>.ct-selected-receipt { display:none; }
 body.review-redesign .ct-shift-journal .r7-table { min-width:520px; }
 body.review-redesign .ct-shift-journal .r7-table-wrap { overflow:auto; }
 body.review-redesign #modal:has(.ct-receipt-sheet) { align-items:flex-end;padding:0; }
 body.review-redesign #modal:has(.ct-receipt-sheet)>.modal { width:100%;max-width:none;max-height:85dvh;margin:0;border-radius:20px 20px 0 0; }
 body.review-redesign .ct-receipt-sheet { padding:0;overflow:auto; }
 body.review-redesign .ct-receipt-sheet .ct-selected-receipt h3 { display:none; }
 body.review-redesign .ct-receipt-sheet .ct-selected-receipt { border:0;border-radius:0;overflow:visible; }
}

body.screens-v1 #r7Page .screen-summary-missing { display:inline-block;font-size:22px!important;line-height:1.2!important;font-weight:600;color:var(--hx-text-3);white-space:nowrap!important;overflow-wrap:normal;word-break:normal;vertical-align:baseline; }
body.screens-v1 #r7Page .screen-summary-missing-row { display:flex;align-items:center;gap:8px;min-height:44px; }
body.screens-v1 #r7Page .screen-summary-empty-section { display:flex;align-items:center;min-height:44px;padding:0 4px;border:0;background:transparent;box-shadow:none; }
body.screens-v1 #r7Page .screen-summary-empty-section h3 { margin:0;font-size:16px;line-height:1.4;color:var(--hx-text-2); }

/* Sale choices retain the kiosk touch target independently of shell controls. */
html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace.hall-lane-panel .sale-position-option{min-height:56px!important}

.bq-book-event[data-booking-unknown-duration]{box-sizing:border-box}

@media(min-width:900px) and (max-width:1179px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page[data-screen=opt] .sv-title{display:none!important}
}

/* Timeline slots follow the time scale rather than padded button geometry. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .bq-book-track>.bq-book-slot{min-width:0!important;padding-inline:0}
html[data-theme] body#receptionApp.reception-shell.review-redesign .bq-book-track>.bq-book-slot:focus-visible{outline:2px solid var(--hx-select);outline-offset:-3px}

/* Display editor values and origin labels share one readable vocabulary. */
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 :is(.tv-intent-state,.tv-selection-intent,.tv-remote-label){font-size:12px!important;line-height:1.35;font-weight:650;color:var(--ink-2);white-space:normal;overflow-wrap:anywhere}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-field-state{flex-wrap:wrap;max-width:52%;gap:4px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-selection-intent{display:block;flex-basis:100%;color:inherit}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px;height:auto;min-height:56px;padding:6px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button.on::after{content:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-physical-fields{display:grid;grid-template-columns:1fr;gap:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-physical-fields fieldset{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-top:1px solid var(--line);padding:12px 0;margin:0;min-width:0;color:var(--ink-2);font-size:14px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-physical-value{display:flex;align-items:center;gap:8px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-physical-value svg{width:18px;height:18px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt .stx{font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;max-width:100%}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-center-locale{font-size:12px;white-space:normal;overflow-wrap:anywhere}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar[hidden],#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .status[hidden]{display:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-storage-unavailable{height:100%}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card [data-tv-speed-threshold]{width:88px;min-width:64px;min-height:44px;padding:6px;border:1px solid var(--line);border-radius:8px;background:var(--field);color:var(--ink);font:inherit}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-unknown{color:var(--ink-2);font-size:18px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-draft-preview{display:flex;flex-direction:column;gap:12px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--ink-2);font-size:12px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-draft-preview[data-preview-theme=ocean]{background:#06242d;color:#c3edf0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-draft-preview[data-preview-theme=light]{background:#eef3fb;color:#17212b}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-draft-preview[data-preview-theme=contrast]{background:#000;color:#fff}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-table{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:8px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-draft-preview[data-preview-mode=split] .tv-preview-table{grid-template-columns:repeat(2,minmax(0,1fr))}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-table>span{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-table i{font-style:normal;border:1px solid currentColor;text-align:center;border-radius:3px}
#r7Page.settings-page[data-screen=screens] .sv-submenu [data-settings-screen]{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center}
#r7Page.settings-page[data-screen=screens] .sv-submenu [data-settings-screen]>.sv-menu-status{position:static;margin:0;max-width:90px;overflow-wrap:anywhere;white-space:normal;text-align:end;font-size:12px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .is-remote{border-bottom:1px dashed var(--warn-text)}
@media(max-width:1179px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page[data-screen=screens] .sv-title{display:flex!important;align-items:center;min-height:44px;padding:0 16px;gap:12px}
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page[data-screen=screens] .sv-title #settingsSectionMenu{order:-1;position:static!important;inset:auto!important;transform:none!important;margin:0!important}
 #r7Page.settings-page[data-screen=screens] .sv-title>div{min-width:0;flex:1}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar{height:auto;min-height:76px;flex-wrap:wrap;gap:8px}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .btn.dng{display:inline-flex!important}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st{flex:1 0 100%}
}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row{display:grid;grid-template-columns:minmax(85px,1fr) minmax(90px,auto) auto;align-items:center;gap:8px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.lb{min-width:0;overflow-wrap:anywhere}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.tv-field-state{max-width:none;justify-content:flex-end}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.tv-unknown{grid-column:3}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-field-state{align-items:center}
html[data-theme] body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar[hidden]{display:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;height:auto;min-height:64px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>.status{position:static!important;inset:auto!important;margin:0 0 0 auto;max-width:100%;font-size:12px}
@media(max-width:1179px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page[data-screen=screens]:has(.tv-settings-v2) .sv-title{display:none!important}
 html[data-theme] body#receptionApp #r7Page.settings-page[data-screen=screens] .tabs #settingsSectionMenu{display:inline-flex!important;position:static!important;order:-1;margin:0!important;flex:none;width:44px;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:0}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>.status{font-size:0}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>.status::after{content:attr(data-mobile-label);font-size:12px}
}
@media(max-width:600px){#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs{gap:4px;padding-inline:12px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>[data-tv-tab]{padding-inline:6px;font-size:14px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row{grid-template-columns:minmax(80px,1fr) minmax(96px,auto) auto}}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row{grid-template-columns:minmax(0,1fr) minmax(70px,auto) 56px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.tv-field-state{min-width:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .swb{width:56px;min-width:56px!important;height:56px;padding:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .sw{width:56px;height:32px;border-radius:16px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .sw i{width:24px;height:24px;top:4px;left:4px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .sw.on i{left:28px}
@media(min-width:1180px){html[data-theme] body#receptionApp #r7Page.settings-page[data-screen=screens] .tabs #settingsSectionMenu{display:none!important}}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button.on .tv-selection-intent{color:#041a2d!important}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .sub.dis{opacity:1}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row:has([data-tv-speed-threshold]){grid-template-columns:minmax(0,1fr) minmax(70px,auto) 88px}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.lb{overflow-wrap:normal;word-break:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.tv-field-state{max-width:96px;justify-content:flex-end}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button>span:first-child{flex:1 0 100%;text-align:center}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button .tv-selection-intent{position:static!important;inset:auto!important;transform:none!important;flex:1 0 100%;width:100%;order:1;text-align:center}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt .stx{display:block;overflow-wrap:normal;word-break:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt .stx>span:first-child{display:inline-flex;vertical-align:middle;width:12px;height:12px;margin-inline-end:4px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.s-default .stx>span:first-child{display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt .stx>span:last-child{display:inline;overflow-wrap:normal;word-break:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg{height:auto!important;min-height:64px;align-items:stretch}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button{flex-direction:column;flex-wrap:nowrap}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button>span:first-child,#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .seg>button .tv-selection-intent{flex:0 1 auto;width:100%;white-space:normal;overflow-wrap:normal;word-break:normal}

/* The approved phone strip keeps words in the accessible name, with a visible status icon. */
@media(max-width:767px){
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lgrid .lt .stx>span:last-child{display:none}
 #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lgrid .lt .stx>span:first-child{display:inline-flex!important;width:20px;height:20px;margin:0}
}

/* Keep the shift identity on one row without displacing its number. */
body.review-redesign .ct-shift .ct-shift-card-title{display:flex;align-items:center;gap:10px;min-width:0}
body.review-redesign .ct-shift .ct-shift-card-title h3{flex:0 0 auto;white-space:nowrap;line-height:1.3;margin:0}
body.review-redesign .ct-shift .ct-shift-card-title small{flex:1 1 auto;min-width:0;margin:0 0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}

body.review-redesign #r7Page:not([hidden]):has(>.ct-shift){height:var(--ct-shift-available-height,calc(100dvh - 72px))!important}
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page:not([hidden]):has(>.ct-shift){height:var(--ct-shift-available-height,calc(100dvh - 72px))!important;min-height:0!important;max-height:var(--ct-shift-available-height,calc(100dvh - 72px))!important;box-sizing:border-box;flex:0 0 auto}
body.review-redesign .ct-shift-journal-page{overflow:hidden}
body.review-redesign .ct-shift-journal-scroll { display:contents; }
body.review-redesign .ct-shift-journal-scroll:has(.ct-expected-breakdown) {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  overflow:auto;
}
body.review-redesign .ct-shift-journal-scroll:has(.ct-expected-breakdown) > .ct-shift-journal-grid { flex:1 0 auto; }
@media(max-width:767px){
  body.review-redesign .ct-shift-journal-scroll:not(:has(.ct-expected-breakdown)) > .ct-shift-journal-grid { flex:1 1 auto;min-height:0;overflow:auto; }
}

/* Secondary dialog actions remain in task content, above the paired footer. */
.reception-dialog-secondary-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.reception-dialog-secondary-actions>button{flex:1 1 140px;min-height:44px}

/* Hours explanations retain their icon/text rows outside the settings shadow root. */
/* The sheet retains its panel bounds; the native top-layer backdrop dims the viewport. */
body.review-redesign #screenInfoTooltip.is-sheet::backdrop{background:var(--info-dim,rgba(4,10,22,.45));pointer-events:none}
body.review-redesign #screenInfoTooltip.is-sheet .screen-info-scrim{background:transparent}

/* Rights entry has one explicit dismissal, alongside the approval action. */
html[data-theme] body.review-redesign #modal .r7-finance-access-modal #modalClose{display:none!important}

/* Report categories reserve their arrow hit areas inside the scrolling strip. */
body.screens-v1 #r7Page .report-catalog-strip{position:relative;min-width:0}
body.screens-v1 #r7Page .report-catalog-strip>.report-catalog{min-width:0;width:100%;box-sizing:border-box}
body.screens-v1 #r7Page .report-catalog-strip.has-overflow>.report-catalog{padding-inline:48px;scroll-padding-inline:48px}
body.screens-v1 #r7Page .report-catalog-scroll{position:absolute;top:0;z-index:1;min-width:44px;width:44px;min-height:44px;padding:0;background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);border-radius:10px;font-size:24px;box-shadow:none}
body.screens-v1 #r7Page .report-catalog-scroll[data-report-scroll=left]{left:0}
body.screens-v1 #r7Page .report-catalog-scroll[data-report-scroll=right]{right:0}
body.screens-v1 #r7Page .report-catalog-scroll[hidden]{display:none}
/* Both preparation statuses remain separate in either theme. */
body.review-redesign #modal .lane-prep-modal .lane-prep-state{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
body.review-redesign #modal .lane-prep-modal .lane-prep-chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--hx-line);border-radius:12px;font-weight:700}

/* Display controls retain readable rows and the inset of nested cards. */
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .sub{padding:12px;box-sizing:border-box}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.lb{min-width:0;flex:1 1 140px;white-space:normal;overflow:visible;overflow-wrap:normal;word-break:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row:has(>.stp){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .row>.stp{flex:none;max-width:100%}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-intent-state:empty{display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-field-state.is-remote{border:0;background:transparent}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-remote-label{font-size:16px!important;line-height:1}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lgrid .lt .no,
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .strip .lt .no{align-self:flex-start;text-align:left}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.is-awaiting-controller .stx>span:last-child{display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.is-awaiting-controller .stx>span:first-child{display:inline-flex}
#r7Page.settings-page[data-screen=screens] .tv-storage-unavailable [data-tv-error-panel][hidden]{display:none}

#r7Page.settings-page[data-screen=screens] .tv-center-animation-policy{margin:8px 16px;padding:12px 16px;flex:none}
#r7Page.settings-page[data-screen=screens] .tv-center-animation-policy .row{display:flex;align-items:center;justify-content:space-between;gap:16px}
#r7Page.settings-page[data-screen=screens] .tv-center-animation-policy .tv-help:empty{display:none}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.od .ck,
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .lt.ev .ck{left:auto;right:9px}

/* Screen composition follows the approved pair-based settings layout. */
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item{grid-template-columns:28px minmax(0,1fr) auto!important;height:auto;min-height:44px;max-height:none;gap:10px;padding:6px 10px}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-icon{width:28px;height:28px;border-radius:8px;background:var(--section-color);color:#fff;display:grid;place-items:center}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-menu-status{max-width:78px;width:auto;flex-basis:auto;font-size:11px;overflow:visible;white-space:normal}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item[aria-current=page]{border:1px solid var(--hx-line);background:var(--hx-raised)}
html[data-theme] body#receptionApp .settings-page .sv-menu-status.is-positive{color:var(--hx-good,#00c98a)}
html[data-theme] body#receptionApp .settings-page .sv-menu-status.is-warning{color:var(--hx-warning,#ffc15b)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid{display:grid;grid-template-columns:200px minmax(260px,1fr) 250px;gap:12px;width:100%;min-width:0;align-items:start}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .content{display:block;overflow:auto;padding:12px;min-height:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-main,#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-side{display:flex;flex-direction:column;gap:12px;min-width:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .card{margin:0;padding:16px;border:1px solid var(--hx-line);border-radius:16px;min-width:0;background:var(--hx-raised)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid h3{font-size:16px;line-height:1.3;margin:0 0 12px;color:var(--hx-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-list>h3{font-size:13px;color:var(--hx-text-2)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair{width:100%;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 12px;margin:0 0 8px;text-align:left;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);white-space:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.on{background:linear-gradient(135deg,#1fc6ef,#1696dc);color:#03142a;border-color:transparent}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.offline:not(.on){color:var(--hx-text-2);background:var(--hx-bg)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair small{display:block;font-size:11.5px;font-weight:600;line-height:1.4;margin-top:2px;overflow-wrap:anywhere}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 :is(.tv-pair.offline,.tv-pair.waiting) small{color:var(--warn-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 :is(.tv-pair.bad,.tv-pair.bad.offline,.tv-pair.bad.waiting) small{color:var(--red)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-monitor{width:34px;flex:none;display:flex}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choice{display:flex;flex-direction:column;justify-content:start;min-width:0;padding:0!important;border-radius:12px;overflow:hidden;gap:0;background:var(--hx-bg);border:1.5px solid var(--hx-line)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choice>span:last-child{font-size:12px!important;line-height:1.3;padding:7px 8px;white-space:normal;text-align:left;width:100%;box-sizing:border-box;color:var(--hx-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art{width:100%;height:86px;display:block;background:radial-gradient(60% 80% at 50% 110%,#ff4fa3,transparent 70%),radial-gradient(50% 60% at 20% 20%,#2b8cff,transparent 70%),linear-gradient(160deg,#120a3a,#04102a)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art>*{display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art[data-preview-theme=light]{background:linear-gradient(180deg,#bfe3ff,#f4f8ff 60%,#d7dde8)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art[data-preview-theme=contrast]{background:radial-gradient(60% 70% at 70% 30%,#ff7a18,transparent 70%),linear-gradient(160deg,#1a0a00,#000)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art[data-preview-theme=ocean]{background:linear-gradient(145deg,#024871,#18abbd)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-preview{min-height:330px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score{overflow-x:auto;padding:10px;border-radius:12px;background:linear-gradient(160deg,#122849,#071832);border:1px solid #234c75;color:#e8f0ff}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score[data-preview-theme=light]{background:#eaf4ff;color:#182c47;border-color:#a4b8d3}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score[data-preview-theme=contrast]{background:#080808;color:#fff;border-color:#e78126}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score table{border-collapse:separate;border-spacing:2px;width:100%;table-layout:fixed;font-size:10px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score caption{text-align:left;font-size:11px;font-weight:700;padding:0 0 6px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score th:first-child{width:64px;text-align:left;overflow:hidden}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score td{text-align:center;padding:5px 1px;background:#7186b51c;border-radius:3px;font-weight:600}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-apply{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:12px;color:var(--hx-text-2)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-apply .chip{min-height:32px;min-width:44px;border-radius:8px;background:var(--hx-bg);color:var(--hx-text-2);border:1px solid var(--hx-line)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-apply .chip.on{color:var(--hx-text);border-color:var(--hx-accent,#1fc6ef)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-display-details{margin-top:12px;color:var(--hx-text-2);font-size:13px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-display-details summary{cursor:pointer;padding:8px 0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-effects .tv-center-animation-policy{border:0;background:none;padding:0;margin:0;box-shadow:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row{display:flex;align-items:center;gap:8px;min-height:46px;flex-wrap:nowrap;border-bottom:1px solid var(--hx-line)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row>.lb,#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-center-animation-policy .row>span:first-child{flex:1;min-width:0;font-size:14px;line-height:1.3;color:var(--hx-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row>.tv-field-state:has(.tv-intent-state:empty){display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .swb{flex:none;margin-left:auto}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid button:disabled .sw{background:#63728a!important;box-shadow:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid button:disabled{color:var(--hx-text-2)!important;background:var(--hx-bg)!important;border-color:var(--hx-line)!important;box-shadow:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .seg{min-height:44px!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .seg>button{min-height:44px;white-space:nowrap;font-size:13px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .row:has(input){flex-wrap:wrap}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card input{width:65px;min-width:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-speed-reading{display:flex;align-items:center;justify-content:space-between;margin-top:12px;border:1px solid var(--hx-line);border-radius:12px;padding:12px;background:var(--hx-bg);color:var(--hx-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-speed-reading b{font-size:24px;font-weight:800}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-sensor-missing{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--hx-text-2);font-size:13px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar{position:static;flex-wrap:wrap}
@media(max-width:1179px){#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid{grid-template-columns:160px minmax(0,1fr)}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-side{grid-column:2}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid{display:flex;flex-direction:column}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-list,#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-main,#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-side{width:100%}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-list{position:static;display:flex;flex-wrap:wrap;gap:8px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair{width:auto;flex:1;min-width:140px;margin:0}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-list>h3{width:100%;margin:0}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .content{padding:10px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-actions{justify-content:flex-start}}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row{display:flex!important;flex-wrap:nowrap!important;gap:8px;min-height:46px;padding:4px 0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row>.lb{width:auto!important;flex:1 1 auto!important;margin:0;font-size:14px!important;line-height:1.3}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row>.swb{width:56px;height:44px;min-width:56px;min-height:44px;flex:0 0 56px!important;margin:0;padding:0;background:transparent}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair b{font-size:14px!important;line-height:1.25;font-weight:700}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-monitor{width:34px;height:26px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-monitor svg{width:34px;height:26px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-art>span{display:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .sw{width:44px;height:26px;min-width:44px;border-radius:14px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .sw i{width:20px;height:20px;top:2px;left:2px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .sw.on i{left:20px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row .ib{width:24px;min-width:24px;height:32px;padding:0}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .lb .ib{display:inline-flex;vertical-align:middle;margin-left:4px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row:has(input){flex-wrap:wrap!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-grid .row:has(input)>.lb{flex:1 0 100%!important}


html[data-theme] body#receptionApp .settings-page .sv-menu-status.is-danger{color:#ff7d86}
html[data-theme=light] body#receptionApp .settings-page .sv-menu-status.is-positive{color:#087044}
html[data-theme=light] body#receptionApp .settings-page .sv-menu-status.is-warning{color:#8c5000}
html[data-theme=light] body#receptionApp .settings-page .sv-menu-status.is-danger{color:#ad213b}
/* Keep the same menu and pair labels readable in the narrow sheet. */
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>#settingsSectionMenu{display:inline-flex!important;align-items:center;justify-content:center;min-width:36px;width:36px;height:44px;padding:0}
@media(max-width:600px){#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair-list{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair{min-width:0!important;width:100%!important;flex:none!important;min-height:48px;padding:8px 12px}#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair>span:last-child{min-width:0;flex:1;text-align:left}}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-readonly-note{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--hx-text-2);white-space:normal}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-readonly-note svg{width:14px;height:14px;flex:none}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2[data-tv-readonly=true] :is(.tv-pair.on,.seg>button.on,.tv-theme-choice.on){background:var(--hx-bg)!important;border-color:var(--hx-text-2)!important;color:var(--hx-text)!important;box-shadow:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2[data-tv-readonly=true] .tv-theme-choice.on::after{background:var(--hx-text-2)!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2[data-tv-readonly=true] .sw.on{background:#63728a!important;box-shadow:none!important}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 [data-tv-save]:not(:disabled){background:#16cd8c!important;color:#04241c!important;border-color:transparent!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choice::after{display:none!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choice.on{background:var(--hx-bg)!important;color:var(--hx-text)!important}


@media(min-width:1180px){#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tabs>#settingsSectionMenu{display:none!important}}

#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-theme-choice>.tv-theme-caption{font-size:12px!important;line-height:1.3;padding:7px 8px;white-space:normal;text-align:left;box-sizing:border-box;width:100%;color:var(--hx-text)}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-contract-effects .row{min-height:44px;padding:0;box-sizing:border-box}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .row:has([data-tv-speed-threshold]){display:grid!important;grid-template-columns:minmax(0,1fr) 55px auto!important;gap:6px;align-items:center}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .row:has([data-tv-speed-threshold])>.lb{grid-column:1;grid-row:1;flex:initial!important}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .row:has([data-tv-speed-threshold])>.tv-field-state{grid-column:1/-1;grid-row:2}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 [data-tv-speed-threshold]{grid-column:2;grid-row:1;width:55px!important;box-sizing:border-box;padding:8px 4px}
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-speed-unit{grid-column:3;grid-row:1;text-transform:none;font-size:12px;white-space:nowrap}

/* Queue pagination names its destination and leaves space below the header. */
@media(max-width:767px){
 body.screens-v1 .r7q-hall-head{padding-top:12px;flex-wrap:wrap}
 body.screens-v1 .r7q-page-dots button{min-width:44px;min-height:44px;padding:0 4px;font-size:12px;color:var(--hx-text-2);border:1px solid var(--hx-line);border-radius:8px}
 body.screens-v1 .r7q-page-dots button::after{display:none}
 body.screens-v1 .r7q-page-dots button[aria-pressed=true]{background:var(--hx-select-wash);border-color:var(--hx-select);color:var(--hx-text)}
}

/* Booking panel and timeline share the same reserved width. */
@media (min-width:768px) {
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) { --booking-panel-width:520px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal:not(.fullscreen):not(.wide) { width:var(--booking-panel-width,520px); }
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) #r7Page .bq-book-scroll { width:calc(100% - var(--booking-panel-width)); }
}
html[data-theme] body.review-redesign.screens-v1 #r7Page .bq-book-event:not([data-booking-unknown-duration]) { min-width:0!important;box-sizing:border-box; }
/* Keep every footer label whole, including the secondary arrival action. */
html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { flex-shrink:0;min-width:max-content;white-space:nowrap;overflow-wrap:normal;word-break:normal; }
@media (max-width:767px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions { gap:6px;padding-inline:12px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-more { flex:0 0 44px;min-width:44px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button { flex:1 0 max-content;padding-inline:8px; }
}

@media (max-width:767px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-arrived:not(.primary) { flex:1 1 0;min-width:80px!important;white-space:normal;padding-inline:6px; }
}

@media (max-width:767px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .reception-dialog-cancel { flex:0 0 auto; }
}

/* Screen editor owns a bounded scrolling body and a separate state bar. */
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body { display:grid;grid-template-rows:56px minmax(0,1fr) auto;flex:1;min-height:0;overflow:hidden; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .content { min-height:0;overflow:auto;padding-bottom:20px;scroll-padding-bottom:20px; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar { display:flex;position:static;height:64px;min-height:64px;max-height:64px;flex-wrap:nowrap;gap:8px;padding:8px 16px;overflow:hidden; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st { flex:1 1 auto;min-width:0; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st>div { min-width:0; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st :is(b,small) { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .btn { flex:none;min-height:44px;height:44px;padding-inline:12px; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-preview-actions .btn:disabled { opacity:.45;background:var(--raised-2);color:var(--ink-3);box-shadow:none; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2[data-tv-readonly=true] :is(.tv-readonly-note,.swb>span:not(.sw)) { display:none; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.on:is(.offline,.waiting,.bad) small { color:inherit;opacity:.85; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 :is(.tv-pair.offline,.tv-pair.warn,.tv-pair.ok,.tv-pair.bad) small::before { content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:currentColor; }
/* Pair dot uses the pill scale: warn for waiting or offline, bad for refused or invalid. */
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.warn small::before { background:var(--warn-text); }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.bad small::before { background:var(--red); }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.ok small::before { background:var(--ok); }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.on:is(.warn,.ok,.bad) small::before { box-shadow:0 0 0 1.5px #03142a; }
/* On the selected tile the light theme dot tones are dark, so a white ring sits between the dot and the dark ring. */
html[data-theme="light"] body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-pair.on:is(.warn,.ok,.bad) small::before { box-shadow:0 0 0 1.5px #fff,0 0 0 3px #03142a; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score caption { display:table-caption;text-align:start; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-live-score caption>span:last-child { float:right; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-score-example { margin-inline:8px;padding:2px 6px;border:1px solid currentColor;border-radius:5px;font-size:10px; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-threshold-control { position:relative;flex:none;width:80px; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-threshold-control [data-tv-speed-threshold] { width:100%!important;padding:8px 34px 8px 6px!important;text-align:right; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-threshold-control .tv-speed-unit { position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:11px;pointer-events:none; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .tv-label-ending { display:inline-block;white-space:nowrap; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .lb>.ib { margin-left:4px;vertical-align:middle; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-storage-unavailable .sv-display-retry { min-height:44px;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:var(--raised-2);color:var(--ink);font:inherit;font-weight:700; }
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>span:not(.sv-icon) { min-width:0;white-space:normal!important;overflow:visible;text-overflow:clip;font-size:14px!important;font-weight:650;line-height:20px; }
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-menu-status { margin-left:auto;white-space:nowrap!important;overflow-wrap:normal;max-width:none!important;width:auto!important;min-width:max-content!important;justify-self:end; }
@media(min-width:601px) {
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .tv-bar-save { display:none; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body:has([data-tv-tab=media].on) .tv-bar-save { display:inline-flex; }
}
@media(max-width:600px) {
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar { height:64px;min-height:64px;max-height:64px;padding:8px 10px;gap:6px; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st { flex:1 1 0;min-width:0;gap:4px; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st .ic { display:none; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st b { font-size:12px; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st small { display:none; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .btn { min-width:44px;max-width:112px;white-space:normal;padding:4px 8px;font-size:12px;line-height:16px; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar [data-tv-reset] { display:inline-flex!important; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body:has(>.dbar:not([hidden])) .tv-preview-actions [data-tv-save] { display:none; }
}

body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .screen-speed-card .row:has([data-tv-speed-threshold]) { grid-template-columns:minmax(0,1fr) 80px!important; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-threshold-control { grid-column:2;grid-row:1; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body>.tabs { height:56px;min-height:56px;margin:0;padding:0 12px; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st :is(b,small) { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal; }

body#receptionApp #r7Page.settings-page[data-screen=screens] :is(.sv-refresh,.sv-display-retry) { min-height:44px;padding:10px 18px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised);color:var(--hx-text);font-family:inherit;font-size:14px!important;font-weight:700; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-threshold-control input::-webkit-inner-spin-button { appearance:none; }

html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Page.settings-page[data-screen=screens] .sv-body.sv-display-error { padding:0!important; }

@media(max-width:600px) { html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] #r7Page.settings-page[data-screen=screens] .sv-body.sv-display-error { padding:8px 4px 0!important; } }

@media(max-width:600px) { body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .dbar .st>.ib { display:none; } }

/* Reserve space for font-metric differences in the booking action row. */
@media(min-width:768px) {
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions { padding-inline:20px;gap:6px; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-remove { margin-right:0; }
}

/* Full setting names share space with compact, accessible status indicators. */
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item { grid-template-columns:28px minmax(0,1fr) auto!important;height:auto!important;min-height:52px;max-height:none!important; }
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-menu-status { align-self:start;margin-top:2px;display:inline-flex;align-items:center;gap:5px; }
.sv-status-dot { display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:currentColor; }
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-effect-label { display:inline-flex;align-items:center;gap:4px; }
@media(min-width:1180px) {
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-contract-grid { grid-template-columns:200px minmax(260px,1fr) 310px; }
 body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-contract-side :is(.lb,.tv-effect-label) { white-space:nowrap; }
}

body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-contract-physical fieldset { min-height:44px;box-sizing:border-box; }

/* Status indicators align with the first line of each complete setting name. */
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>span:not(.sv-icon) { align-self:start;padding-top:4px; }
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item>.sv-menu-status { grid-column:3;grid-row:1;align-self:start;margin-top:4px;height:20px;line-height:20px; }
html[data-theme] body#receptionApp .settings-page .sv-menu-status.is-tv-draft { color:var(--hx-warning,#ffc15b); }

html[data-theme] body#receptionApp .settings-page .sv-menu-status[hidden] { display:none!important; }

/* A footer dismissal is the single visible exit from these confirmation sheets. */
html[data-theme] body.review-redesign #modal:has(:is(.ct-receipt-refund-form,.ct-refund-unknown,.ct-migration)) #modalClose { display:none!important; }
body.review-redesign .ct-receipt-refund-form .ct-error.is-pending { display:flex;gap:8px;align-items:center;color:var(--hx-text-2); }
.ct-refund-spinner { display:inline-flex;flex:none;animation:refund-status-spin .9s linear infinite; }
.ct-refund-spinner svg { width:18px;height:18px; }
@keyframes refund-status-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .ct-refund-spinner { animation:none; } }

/* Keep booking actions legible within the reserved panel. */
@media(min-width:768px){
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>button{flex:0 0 auto;white-space:nowrap;min-height:44px}
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) #r7Page .bq-book-scroll{width:calc(100% - var(--booking-panel-width) - 8px);box-sizing:border-box}
}
html[data-theme] body.review-redesign #modal:has(.bookings-modal) #modalClose{display:none!important}
body.screens-v1 #r7Page .bq-book-live-label{white-space:normal;overflow-wrap:normal;text-overflow:clip;line-height:1.25}
body.screens-v1 #r7Page .bq-book-live{container-type:inline-size;container-name:booking-live}
body.screens-v1 #r7Page .bq-book-live-icon{display:none}
body.screens-v1 #r7Page .bq-book-live-eta{display:none}
@container booking-live (width < 100px){
 body.screens-v1 #r7Page .bq-book-live-eta{display:block;margin-top:2px;font-size:10px;font-weight:700;line-height:1;white-space:nowrap}
 body.screens-v1 #r7Page .bq-book-live-label{left:4px;right:4px;max-width:calc(100% - 8px);width:auto}
 body.screens-v1 #r7Page .bq-book-live-caption{display:none}
 body.screens-v1 #r7Page .bq-book-live-icon{display:block}
 body.screens-v1 #r7Page .bq-book-live-icon svg{display:block;width:100%;max-width:16px;height:16px}
}
body.screens-v1 #r7Page .bq-book-date-nav .screen-info-label{display:inline-flex;align-items:center;vertical-align:middle}
html[data-theme] body.review-redesign #hallEquipment.is-unknown{background:var(--hx-raised);color:var(--hx-text-2);border:1px solid var(--hx-line);box-shadow:none}
#hallEquipment .hall-equipment-info{font-size:16px;flex:none}
body.screens-v1 #r7Page .report-filter-control button{font-family:inherit;font-size:14px;font-weight:700;min-height:44px}
body.screens-v1 #r7Page .r7-visit-completed:not(.is-active){border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;box-shadow:none!important;color:var(--hx-text-3)}
.settings-page .sv-update-retry{width:auto;min-width:44px;min-height:44px;align-self:flex-start}
.settings-page .sv-technical-events>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--hx-text-2)}
.settings-page .sv-terminal-identity{font-size:14px;line-height:1.4}
.settings-page[data-screen=equip] .sv-scheme{min-height:0;flex-wrap:wrap;gap:16px}
.settings-page[data-screen=equip] .sv-device-node{gap:12px;align-items:flex-start}
.settings-page[data-screen=equip] .sv-device-node b{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.settings-page[data-screen=equip] .sv-device-node>.sv-device{flex:none}
.r7-shift-lock{display:inline-flex;align-items:center;margin-left:6px}
.r7-shift-lock svg{width:16px;height:16px}
.r7-nav-entry.is-access-locked,.r7-nav-more-item.is-access-locked{color:var(--hx-text-2)}
@media(max-width:767px){
 body.screens-v1 .r7q-hall .daily-lane.r7q-lane{height:auto!important;min-height:112px!important}
 body.screens-v1 .r7q-hall .daily-lane.r7q-lane:is([data-tile-state=play],[data-tile-state=book]) .hall-main-figure{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:normal;word-break:normal}
 body.screens-v1 #r7Page .r7q-lane-group{width:100%;max-width:100%;margin-inline:0;white-space:normal;overflow-wrap:normal}
 .settings-page[data-screen=equip] .sv-scheme{flex-direction:column;align-items:stretch}
 .settings-page[data-screen=equip] .sv-scheme>div{flex:none}
 .settings-page[data-screen=equip] .sv-scheme>.sv-wire{display:none}
 .settings-page .tv-v2-back{display:none!important}
}

body.screens-v1 #r7Page .bq-book-axis-label{display:flex;align-items:center;gap:4px;flex-wrap:nowrap}
body.screens-v1 #r7Page .bq-book-axis-label>.screen-info-label{display:inline-flex;align-items:center;flex:none}

body.screens-v1 #r7Page .bq-book-axis-label{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-content:start;align-items:center;gap:2px}
body.screens-v1 #r7Page .bq-book-axis-label>.bq-book-axis-status{grid-column:1/-1;white-space:normal;line-height:1.3}
.r7-shift-lock{gap:4px}

.r7q-lane-group .r7q-group-info{display:none}
@media(max-width:767px){
 body.screens-v1 #r7Page .r7q-lane-group{display:flex;align-items:center;gap:4px;margin-top:4px;padding:0;background:transparent;border:0}
 .r7q-lane-group .r7q-lane-group-name{display:none}
 .r7q-lane-group .r7q-group-info{display:inline-flex;flex:none}
 .r7q-group-info .screen-info-trigger{min-width:44px;min-height:44px}
}

html[data-theme] body#receptionApp.settings-open .topbar #hallEquipment.is-unknown:not([hidden]){display:inline-flex!important}

/* Keep contextual labels inside their own layout cells. */
.hall-equipment-short{display:none}
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment{grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;width:calc(50% - 4px)!important;max-width:calc(50% - 4px)!important;min-width:0!important;margin:0!important;padding:6px 8px!important;box-sizing:border-box;justify-content:center!important;gap:4px!important;transform:none!important}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment .hall-equipment-state{display:none!important}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment .hall-equipment-short{display:inline!important;font-size:12px;white-space:normal;min-width:0}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState,
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState.is-offline{margin-left:calc(50% + 4px)!important;width:calc(50% - 4px)!important;max-width:calc(50% - 4px)!important;min-width:0!important}
}
@media(min-width:768px) and (max-width:1100px){body.screens-v1:has(#modal:not([hidden]) .bookings-modal){--booking-panel-width:360px}}
body.screens-v1 #r7Page .bq-book-lane{z-index:6;background:var(--hx-panel)}
html[data-theme] body#receptionApp.review-redesign .r7-visits-card .r7-tabs>button.r7-visit-completed:disabled{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--hx-text-2)!important;opacity:1}
html[data-theme] body#receptionApp.review-redesign #r7Page .report-filter-control>button{font-family:inherit!important;font-size:14px!important;font-weight:700!important}
html[data-theme] body#receptionApp.review-redesign #modal .r7-finance-access-modal #wizardBar>button{font-size:14px!important;min-height:44px}
#r7Navigation .r7-nav-entry:has(:is(.r7-shift-lock,.r7-finance-lock)){position:relative;padding-bottom:8px}
#r7Navigation .r7-nav-entry :is(.r7-shift-lock,.r7-finance-lock){position:absolute;right:4px;top:4px;margin:0;width:16px;height:16px}
html[data-theme] body.review-redesign #modal .r7-nav-more-item[data-section=shift]{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] body.review-redesign #modal .r7-nav-more-item :is(.r7-shift-lock,.r7-finance-lock){margin:0;flex:none}
.settings-page .sv-terminal-identity>.screen-info-label{display:inline-flex;align-items:center;flex-wrap:nowrap}
body.screens-v1 #r7Page .bq-book-event>strong{min-width:0}
body.screens-v1 #r7Page .r7q-lane-group{display:flex;align-items:center;gap:4px;width:100%;max-width:100%;margin-inline:0;overflow:hidden;word-break:normal}
.r7q-lane-group .r7q-lane-group-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r7q-lane-group .r7q-group-info{display:inline-flex;flex:none}
@media(max-width:767px){
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .daily-lane-state{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:11px!important;line-height:1.3;word-break:normal;overflow-wrap:normal}
 html[data-theme] body.review-redesign .r7q-hall .daily-lane.r7q-lane .hall-main-figure{font-size:12px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3;word-break:normal;overflow-wrap:normal}
 .r7q-lane-group .r7q-lane-group-name{display:none}
}

#r7Navigation .r7-nav-entry :is(.r7-shift-lock,.r7-finance-lock){width:30px;gap:2px;right:2px}
#r7Navigation .r7-nav-entry :is(.r7-shift-lock,.r7-finance-lock) svg{width:14px;height:14px}

body.screens-v1 #r7Page .bq-book-event>strong{display:block!important;flex:none;width:100%;box-sizing:border-box}

body.screens-v1 #r7Page .bq-book-draft{display:block;padding-block:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
html[data-theme] body.review-redesign #modal .r7-nav-more-item :is(.r7-shift-lock,.r7-finance-lock){display:inline-flex;width:32px;height:20px;gap:2px;align-items:center;justify-content:flex-end}
html[data-theme] body.review-redesign #modal .r7-nav-more-item :is(.r7-shift-lock,.r7-finance-lock) svg{width:14px;height:14px;flex:none}
@media(min-width:768px) and (max-width:1100px){
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.r7-booking-remove{grid-column:1;grid-row:1;margin:0}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.r7-booking-arrived:not(.primary){grid-column:2;grid-row:1;justify-self:end}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.reception-dialog-cancel{grid-column:1;grid-row:2}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.primary{grid-column:2;grid-row:2;width:100%;min-width:0}
}

/* Compact forms preserve complete controls and their labels. */
@media(max-width:1100px){
 html[data-theme] body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form{grid-template-columns:minmax(0,1fr)!important}
 html[data-theme] body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form>.r7-booking-field,html[data-theme] body.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form>.r7-booking-two{grid-column:1/-1!important;grid-row:auto!important;min-width:0}
 html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-two{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-start{display:grid!important;grid-template-columns:44px minmax(100px,1fr) 44px!important;gap:8px}
 html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-start>button{min-width:44px!important;width:44px;flex:none}
 html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-lanes{display:grid!important;grid-template-columns:repeat(4,minmax(44px,1fr));overflow:visible!important;gap:6px}
}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-day-step{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:8px}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-day-step>button{min-width:44px!important;width:44px;flex:none}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-field>span{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;min-width:0}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-occupancy-status{margin:0}
html[data-theme] body.review-redesign #modal .bookings-modal input{min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-two input{width:100%}
.hall-panel-next>strong{display:flex;align-items:center;gap:4px}
html[data-theme] body.review-redesign .sv-terminal-quick-action{display:inline-flex;align-items:center;gap:4px}
@media(max-width:767px){
 html[data-theme] body.screens-v1 #r7Page .bq-book-date-nav{display:flex;flex-wrap:nowrap!important;gap:2px!important}
 html[data-theme] body.screens-v1 #r7Page .bq-book-date-nav>strong{flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;font-size:13px}
 html[data-theme] body.screens-v1 #r7Page .bq-book-date-nav>.bq-book-today{display:none}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment>span:first-child{display:inline-flex!important;flex:none;width:16px;height:16px}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment>span:first-child svg{width:16px;height:16px}
 body.screens-v1 #r7Page .r7-visits-bar .r7-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;gap:4px}
 body.screens-v1 #r7Page .r7-visits-bar .r7-tabs>button{flex:0 0 auto;white-space:nowrap;min-height:44px}
}

html[data-theme] body.review-redesign .sv-terminal-quick-action{width:100%;display:flex;align-items:center;gap:4px}
html[data-theme] body.review-redesign .sv-terminal-quick-action>button{min-width:0;flex:1;white-space:normal}
html[data-theme] body.review-redesign .sv-terminal-quick-action>.screen-info-label{flex:none}

html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-two{grid-template-columns:minmax(0,1fr)!important;gap:10px}

/* A sticky timeline header must stay above the lane cells. */
body.screens-v1 #r7Page .bq-book-axis{z-index:20;isolation:isolate;background:var(--hx-panel)}
body.screens-v1 #r7Page .bq-book-axis-label{z-index:21;background:var(--hx-panel)}
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-duration>span{position:static!important;width:auto!important;height:auto!important;padding:0!important;overflow:visible!important;clip-path:none!important;white-space:normal!important}
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment .hall-equipment-short{white-space:nowrap!important}
}

body.screens-v1 #r7Page .bq-book-mobile-list:not(.bq-book-undated-list) .bq-book-mobile-time{flex:0 0 auto;min-width:max-content}
body.screens-v1 #r7Page .bq-book-mobile-time>strong{white-space:nowrap}

/* Queue pages contain two complete lane pairs. */
body.screens-v1 #r7Page .r7q-lane-group{background:transparent;border:0;padding:0;min-height:0}
@media(max-width:767px){
 body.screens-v1 #r7Page .r7q-pairs{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 8px)/2);gap:8px;justify-content:start}
 body.screens-v1 #r7Page .r7q-pair{min-width:0;box-sizing:border-box}
 html[data-theme] body.review-redesign #r7Page .r7q-hall .daily-lane.r7q-lane{width:calc((100% - 6px)/2);min-width:0;flex:1 1 0}
}

/* Keep dismissal beside the primary action independently of font metrics. */
@media(min-width:768px){
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;align-items:stretch}
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>button{width:100%;min-width:0;min-height:56px;margin:0}
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.r7-booking-remove{grid-column:1;grid-row:1;white-space:normal}
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>:is(.r7-booking-noshow,.r7-booking-arrived:not(.primary)){grid-column:2;grid-row:1;justify-self:stretch;white-space:normal}
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>.reception-dialog-cancel{grid-column:1;grid-row:2}
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions>:is(.primary,.r7-booking-confirm){grid-column:2;grid-row:2;min-width:0;width:100%;white-space:nowrap}
}

/* Page action bars stay behind permission dialogs. */
body.review-redesign #modal:has(.r7-finance-access-modal){z-index:65}
body.screens-v1 #r7Page .r7q-pair{align-items:stretch}
html[data-theme] body.review-redesign #r7Page .r7q-hall .daily-lane.r7q-lane{height:auto!important;align-self:stretch;box-sizing:border-box}
body.review-redesign #r7HeaderTitle:focus:not(:focus-visible){outline:none}
body.review-redesign #r7HeaderTitle:focus-visible{outline:2px solid var(--hx-select);outline-offset:3px}

html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-integration-empty{justify-content:flex-start;gap:8px}
html[data-theme] body#receptionApp.reception-shell.review-redesign .sv-integration-reason{display:inline-flex;align-items:center;gap:4px}
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderTitle{flex:0 1 auto!important;width:fit-content!important;max-width:100%;justify-self:start;margin-inline-end:auto!important}
@media(max-width:767px){body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions{margin-top:10px}}

/* The audit group stays collapsed until the operator chooses to inspect it. */
.sv-technical-events>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid currentColor;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600;list-style:none;}
.sv-technical-events>summary::-webkit-details-marker{display:none;}
.sv-technical-events>summary::before{content:'▸';font-size:14px;}
.sv-technical-events[open]>summary::before{content:'▾';}
.sv-technical-window{font-size:13px;margin:8px 12px;}

.session-read-sign-in{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:24px;}
.session-read-sign-in h2{display:flex;align-items:center;gap:10px;margin:0;font-size:18px;line-height:1.35;}
.session-read-sign-in h2>span:first-child{display:inline-flex;}
.session-read-sign-in h2 svg{width:22px;height:22px;}
.session-read-sign-in>button{min-height:44px;min-width:120px;}
.sv-menu-controller-access{position:relative;}
.sv-menu-controller-access>.sv-menu-item{width:100%;}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-controller-access[data-access-locked=true]>.sv-menu-item .sv-menu-status{display:none!important;}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item[data-section-access=approval_possible]>.sv-menu-status{display:none!important;}
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item[data-section-access]:has(>.sv-menu-approval:not([hidden])){row-gap:2px!important;}
.sv-menu-item>.sv-menu-approval{
  grid-column:2/-1;grid-row:2;line-height:1.2;font-size:11px;color:var(--hx-text-2);
}
.sv-controller-lock{position:absolute;right:42px;top:50%;transform:translateY(-50%);pointer-events:none;}
/* Controller row text stops before the lock and the info mark. */
.sv-menu-controller-access[data-access-locked=true]>.sv-menu-item{padding-right:64px;}
/* A closed section shows a lock in place of its counter or status. */
html[data-theme] body#receptionApp .settings-page .sv-submenu .sv-menu-item[data-access-locked=true] .sv-menu-status,.settings-menu-sheet .sv-menu-item[data-access-locked=true] .sv-menu-status{display:block!important;color:var(--ht-ink-3,#97a0b4)!important;width:14px!important;height:14px;min-width:14px!important;max-width:14px!important;flex:0 0 14px!important;justify-self:end;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/14px 14px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/14px 14px no-repeat;visibility:visible!important;}
.sv-controller-lock svg{width:14px;height:14px;}
.sv-menu-controller-access>.screen-info-label{position:absolute;right:10px;top:50%;transform:translateY(-50%);}
.sv-menu-controller-access>[hidden]{display:none!important;}

body#receptionApp .session-read-sign-in>button{width:auto!important;max-width:100%;align-self:flex-start;justify-self:start!important;font-size:16px!important;padding:10px 18px;}

@media(max-width:767px){
  body#receptionApp .settings-page .sv-content>[data-session-read-pending=equip]{margin:16px;}
}


#modal .modal.manager-pin-modal #modalClose{display:none!important;}

.sale-currency-test-option{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 100%;}
body.review-redesign #visitWorkspace .sale-currency-test-option>.sale-currency-test{flex:1;min-width:0;width:auto;}
.sale-currency-test-option>[data-role=currency-test-reason]{flex:none;}

body.review-redesign #visitWorkspace .opening-booking-warning > .screen-info-label { display:block;margin-bottom:4px; }
body.review-redesign #visitWorkspace .opening-booking-warning > button[aria-pressed=true] { outline:2px solid var(--hx-select);outline-offset:-2px;background:color-mix(in srgb,var(--hx-select) 20%,var(--hx-panel));color:var(--hx-text); }
body.review-redesign #visitWorkspace .opening-booking-warning > button[aria-pressed=true]::before { content:'✓ ';font-weight:800; }
body.review-redesign #visitWorkspace.screen-opening .hall-booking-card > strong { grid-column:1/-1; }
body.review-redesign #visitWorkspace.screen-opening .hall-booking-card > span { grid-column:1;grid-row:2; }
body.review-redesign #visitWorkspace.screen-opening .hall-booking-card > .daily-link { grid-column:2;grid-row:2; }
body.review-redesign #visitWorkspace.screen-opening .screen-readiness-space { block-size:22px; }
body.review-redesign #visitWorkspace.screen-opening .screen-readiness-space .screen-ready { line-height:22px; }
body.review-redesign #visitWorkspace.screen-opening .screen-readiness-space:has(> [data-role=sale-position-retry]) {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 8px;
  block-size:auto;
}
body.review-redesign #visitWorkspace.screen-opening .screen-readiness-space > [data-role=sale-position-retry] {
  min-height:44px;
  padding-inline:12px;
}


/* Quick button editing stays in the hall footer; geometry follows the approved contract. */
body.hall-quick-editing #hallScaleStage { opacity:.32;filter:saturate(.6);pointer-events:none; }
body.review-redesign.hall-quick-editing #hallScaleControls { display:flex!important;align-items:flex-end;gap:14px; }
body.review-redesign.hall-quick-editing #hallScaleControls > #hallQuickButtons { display:flex!important;flex-wrap:wrap;gap:14px;padding:8px 8px 6px 0;overflow:visible; }
body.review-redesign .hall-quick-tray { display:flex;flex:none;align-self:flex-start;align-items:flex-start;flex-wrap:wrap;gap:14px;box-sizing:border-box;width:fit-content;max-width:100%;padding:12px;margin:0 0 10px;border:1px solid var(--hx-glass-edge,var(--hx-line-strong));border-radius:16px;background:var(--hx-glass-tile,var(--hx-panel));box-shadow:0 18px 40px -18px rgba(0,0,0,.7);backdrop-filter:blur(14px); }
body.review-redesign .hall-quick-tray[hidden] { display:none; }
body.review-redesign .hall-quick-tray .hall-quick-button,body.review-redesign #hallScaleControls .hall-quick-button { box-sizing:border-box;flex:0 0 76px;width:76px;height:56px;min-height:56px;min-width:76px;gap:2px;padding:4px;border-radius:12px;line-height:1.1; }
body.review-redesign #hallScaleControls .hall-quick-button > span:last-child,body.review-redesign .hall-quick-tray .hall-quick-button > span:nth-child(2) { max-width:100%;font-size:11.5px;font-weight:650;line-height:1.1;white-space:normal;overflow-wrap:normal;text-align:center; }
body.review-redesign .hall-quick-tray .hall-quick-option { position:relative;background:transparent;border:1px dashed var(--hx-line-strong);color:var(--hx-text-2); }
body.review-redesign .hall-quick-tray .hall-quick-option > span:first-child svg { width:18px;height:18px; }
body.review-redesign #hallQuickButtons .hall-quick-edit-item { position:relative;display:block;flex:0 0 76px;width:76px;height:56px;padding:0;border:0; }
body.review-redesign #hallQuickButtons .hall-quick-name { width:76px;height:56px;min-height:56px;border-color:var(--hx-line-strong);cursor:grab; }
body.review-redesign #hallQuickButtons .hall-quick-remove,body.review-redesign .hall-quick-tray .hall-quick-add { position:absolute;top:-8px;right:-8px;display:grid;place-items:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border-radius:50%;line-height:1; }
body.review-redesign #hallQuickButtons .hall-quick-remove { border:1px solid var(--hx-line-strong);background:var(--hx-raised);color:var(--hx-text);font-size:19px; }
body.review-redesign .hall-quick-tray .hall-quick-add { background:var(--hx-select);color:var(--hx-on-cta); }
body.review-redesign .hall-quick-tray .hall-quick-add svg { width:14px;height:14px; }
body.review-redesign #hallQuickButtons .hall-quick-done { position:static;flex:0 0 76px;width:76px;height:56px;min-height:56px;border-color:transparent;background:var(--hx-primary);color:var(--hx-on-primary); }
body.review-redesign #hallQuickButtons .hall-quick-done svg { color:inherit; }
body.hall-quick-editing :is(#hallZoomOut,#hallZoomIn,#hallZoomAuto,#hallLegendHelp) { opacity:.28;pointer-events:none; }
body.review-redesign #hallQuickButtons .hall-quick-slot { box-sizing:border-box;flex:0 0 76px;width:76px;height:56px;border-radius:12px;border:1.5px dashed var(--hx-select);background:var(--hx-select-soft); }
body.review-redesign #hallQuickButtons .is-dragging { opacity:.4; }
html[data-theme=light] body.review-redesign .hall-quick-tray { box-shadow:0 14px 30px -18px rgba(0,0,0,.35); }
@media(max-width:767px) {
 body.review-redesign.hall-quick-editing #hallScaleControls { flex-wrap:wrap;padding-bottom:8px; }
 body.review-redesign.hall-quick-editing #hallScaleControls > #hallQuickButtons { flex-basis:100%; }
 body.review-redesign.hall-quick-editing .hall-quick-tray { margin-top:12px; }
}
body.review-redesign #hallScaleControls .hall-quick-name,body.review-redesign .hall-quick-tray .hall-quick-option { padding:0; }
body.review-redesign #hallScaleControls .hall-quick-button > span:last-child,body.review-redesign .hall-quick-tray .hall-quick-button > span:nth-child(2) { font-size:11px; }

html[data-theme] body#receptionApp.review-redesign #hallScaleControls #hallQuickButtons button.hall-quick-remove { width:24px;height:24px;min-width:24px!important;min-height:24px!important;max-width:24px;max-height:24px; }
body.review-redesign #hallQuickButtons #hallQuickDone { display:flex;flex-direction:column;background:var(--hx-primary);color:var(--hx-on-primary); }
body.review-redesign #hallQuickButtons #hallQuickDone > span:last-child { display:block; }
body.review-redesign .hall-quick-tray .hall-quick-add { font-size:18px;font-weight:500; }
body.review-redesign .hall-quick-tray { background:var(--hx-panel); }
body.review-redesign.hall-quick-editing #hallScaleControls { height:auto!important;flex:none; }
body.hall-quick-editing #visitWorkspace { opacity:.32;pointer-events:none; }
@media(max-width:767px) {
 body.review-redesign.hall-quick-editing .lanes-panel:has(#hallScaleStage) { position:fixed;top:var(--hall-quick-top,72px);bottom:72px;left:0;right:0;z-index:3;display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-height:none;padding:8px;clip-path:none;overflow:hidden;background:var(--hx-bg); }
 body.review-redesign.hall-quick-editing #hallScaleStage { position:relative;inset:auto;flex:1 1 0;min-height:60px;height:auto;overflow:hidden;padding:8px; }
 body.review-redesign.hall-quick-editing #hallScaleControls { margin-top:0; }
}

/* Keep the complete terminal language choice readable alongside its label. */
.settings-page .sv-row.sv-terminal-language { flex-direction:column;align-items:stretch;gap:8px;padding-block:12px; }
body.settings-open .settings-page .sv-terminal-choice > :is(#settingsTerminalLocale, select[data-keyboard-mode]) { width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--sv-line);border-radius:8px;padding:10px 36px 10px 12px;background:var(--sv-sunk);appearance:none;color:var(--sv-text); }
.settings-page .sv-terminal-choice { display:block;position:relative;width:100%;color:var(--sv-text); }
.settings-page .sv-terminal-choice::after { content:'';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:14px;height:10px;pointer-events:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Removal targets occupy the upper corner without covering the action icon. */
body.review-redesign #hallQuickButtons .hall-quick-remove { top:-2px;right:-6px; }
body.review-redesign #hallQuickButtons .hall-quick-remove::after { content:'';position:absolute;top:-10px;right:-10px;width:44px;height:44px; }
body.review-redesign.hall-quick-editing #hallScaleControls > #hallQuickButtons { gap:16px; }
body.review-redesign #hallQuickButtons .hall-quick-edit-item.is-dragging { opacity:1; }
body.review-redesign #hallQuickButtons .is-dragging > :is(.hall-quick-name,.hall-quick-remove) { visibility:hidden; }
body.review-redesign #hallQuickButtons .is-dragging > .hall-quick-slot { position:absolute;inset:0;pointer-events:none; }
body.review-redesign #hallQuickButtons .is-drop-target .hall-quick-name { outline:2px solid var(--hx-select);outline-offset:2px; }
body.hall-quick-editing #visitWorkspace { filter:grayscale(1); }
@media(max-width:767px) {
 body.review-redesign.hall-quick-editing :is(#hallScaleStage,#visitWorkspace) { visibility:hidden; }
}

@media(max-width:767px) {
 body.review-redesign.hall-quick-editing #hallScaleStage { display:none; }
 body.review-redesign.hall-quick-editing .hall-quick-tray { margin-top:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:has(.settings-page) .topbar #r7HeaderTitle { white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important; }
}
html[data-theme=light] body#receptionApp.settings-open .settings-page .sv-terminal-quick-action > button { border:1px solid var(--sv-muted);background:var(--sv-sunk);color:var(--sv-text); }

.translation-code-tooltip { transition:none;animation:none;transform:none;margin:0;box-sizing:border-box;width:max-content;position:fixed;z-index:2147483647;pointer-events:none;max-width:min(344px,calc(100vw - 16px));max-height:104px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 10px;border:1px solid var(--hx-line-strong);border-radius:8px;background:var(--hx-panel);color:var(--hx-text);box-shadow:0 4px 18px #0003;font:11px/1.4 ui-monospace,monospace; }

.r7-bell-count.is-dot { min-width:8px;width:8px;height:8px;padding:0;top:8px;right:8px; }

/* Keep identities readable; the list scrolls independently of the entry form. */
@media (min-width:600px) {
 body.review-redesign .ct-login :is(.ct-employee-tile b,.ct-employee-tile small,.ct-person-heading b,.ct-person-heading small) { white-space:normal;overflow:visible;overflow-wrap:normal;word-break:normal;text-overflow:clip; }
 body.review-redesign .ct-login-panel { width:100%;max-width:560px;justify-self:center;box-sizing:border-box; }
 body.review-redesign .ct-login-left { min-width:0;min-height:0; }
 body.review-redesign .ct-login .ct-employee-tiles { overflow:auto;min-height:0;align-content:start;grid-auto-rows:minmax(88px,max-content); }
 body.review-redesign .ct-login .ct-employee-tile>span:last-child { flex:1;min-width:0; }
}
@media (min-width:600px) and (orientation:portrait) {
 body.review-redesign .security-card.ct-login { display:flex;flex-direction:column;gap:20px;padding:24px;overflow:hidden; }
 body.review-redesign .ct-login-left { display:flex;flex-direction:column;flex:0 1 auto;gap:0;overflow:hidden; }
 body.review-redesign .ct-login-clock { display:flex;flex-wrap:wrap;margin-top:12px; }
 body.review-redesign .ct-login-clock>b { font-size:28px; }
 body.review-redesign .ct-login-clock>span { display:block; }
 body.review-redesign .ct-login-facts { display:flex; }
 body.review-redesign .ct-login-who { display:block;margin-top:16px!important;padding-top:0; }
 body.review-redesign .ct-login .ct-employee-tiles { display:grid;grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:3px; }
 body.review-redesign .ct-login .ct-employee-tile { display:flex;flex-direction:row;min-height:88px;padding:10px 14px;gap:12px;text-align:left;border:1px solid var(--ht-line-2);background:var(--ht-pop); }
 body.review-redesign .ct-login .ct-employee-tile b { font-size:16.5px; }
 body.review-redesign .ct-login .ct-employee-tile b::after { content:none; }
 body.review-redesign .ct-login .ct-employee-tile small { display:block; }
 body.review-redesign .ct-login-panel { flex:0 0 auto;align-self:center;overflow:visible;padding:20px;margin:0;border:1px solid var(--ht-line-2);border-radius:24px;background:var(--ht-pop); }
 body.review-redesign .ct-login-footer { position:static;padding:2px 0 0;border:0;background:transparent; }
}
@media (min-width:600px) and (max-width:1100px) and (orientation:landscape) {
 body.review-redesign .ct-login-clock { margin-top:12px; }
 body.review-redesign .ct-login-clock>b { font-size:28px; }
 body.review-redesign .ct-login-who { margin-top:16px!important;padding-top:0; }
 body.review-redesign .ct-login .ct-employee-tiles { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.r7-page-open) .topbar:has(.hall-legend-help) :is(#r7SystemState,#r7SystemState.is-offline){width:calc(50% - 52px)!important;max-width:calc(50% - 52px)!important}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:has(#r7Page > .screen-summary-first) .topbar:has(.hall-legend-help) :is(#r7SystemState,#r7SystemState.is-offline){width:calc(50% - 52px)!important;max-width:calc(50% - 52px)!important}
}

/* Center status captions without sacrificing their inset at narrow widths. */
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState { justify-content:center;padding-inline:12px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7SystemState :is(.r7-status-full,.r7-status-compact,.r7-status-mobile) { text-align:center; }

/* Keep timed top-ups readable and selected controls distinguishable by their border. */
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time .hall-purchase-choices { display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time .hall-purchase-choices>button { display:flex;flex-direction:column;justify-content:center;gap:4px;padding:8px 6px;min-width:0;min-height:60px;height:auto;white-space:normal;font-size:13px;line-height:1.25; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time :is(.hall-purchase-choices>button,.seg>button) { box-sizing:border-box;border:2px solid transparent; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time :is(.hall-purchase-choices>button,.seg>button)[aria-pressed=true] { border-color:var(--hx-select);box-shadow:inset 0 0 0 1px var(--hx-select); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time .hall-purchase-choice-price { font-weight:750; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time .hall-purchase-total { flex-wrap:wrap; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-purchase-time .hall-purchase-total strong { margin-left:auto;font-size:32px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel:has(.hall-purchase-time) .hall-panel-paid:not(.hall-panel-due) strong { font-size:20px;font-weight:650;color:var(--hx-text-2); }

/* Keep each donut legend together instead of stretching its label column. */
.r7-donut .r7-legend { flex: 0 1 auto; max-width: 100%; }
.r7-donut .r7-legend li { grid-template-columns: 12px minmax(0, max-content) auto auto; justify-content: start; }
.r7-donut .r7-legend .num { white-space: nowrap; }

/* Report contract: a bounded workspace with a persistent comparison column. */
body.screens-v1 #r7Page:has(> .report-contract) { align-content:start;gap:12px;min-width:0; }
body.screens-v1 #r7Page > .report-contract { width:100%;max-width:1048px;min-width:0;margin-inline:auto;display:grid;gap:12px;color:var(--hx-text); }
body.screens-v1 #r7Page .report-contract-toolbar { display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap; }
body.screens-v1 #r7Page .report-contract-toolbar button { min-height:44px;min-width:44px; }
body.screens-v1 #r7Page .report-contract-period { display:flex;flex:none; }
body.screens-v1 #r7Page .report-contract-period button { min-width:86px;padding:8px 14px; }
body.screens-v1 #r7Page .report-contract-date { display:flex;align-items:center;gap:0;min-width:0;border:1px solid var(--hx-line);border-radius:10px;background:var(--hx-sunk); }
body.screens-v1 #r7Page .report-contract-date button { border:0;background:transparent;min-width:32px;padding:4px; }
body.screens-v1 #r7Page .report-contract input[type=date] { box-sizing:border-box;min-width:0;width:136px;min-height:44px;font:inherit;font-size:13px;background:var(--hx-sunk);color:var(--hx-text);border:1px solid var(--hx-line);border-radius:9px;padding:8px; }
body.screens-v1 #r7Page .report-contract-date input { width:126px;border:0; }
body.screens-v1 #r7Page .report-contract-compare { display:flex;align-items:center;gap:8px;font-size:13px;color:var(--hx-text-2);min-width:0; }
body.screens-v1 #r7Page .report-contract-filters { display:flex;align-items:center;margin-left:auto; }
body.screens-v1 #r7Page .report-contract-grid { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px;min-width:0; }
body.screens-v1 #r7Page .report-contract-main,body.screens-v1 #r7Page .report-contract-side { display:flex;flex-direction:column;gap:12px;min-width:0; }
body.screens-v1 #r7Page .report-contract-side { align-self:stretch; }
body.screens-v1 #r7Page .report-contract-kpis { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-width:0; }
body.screens-v1 #r7Page .report-contract .r7-kpi { position:relative;display:flex;flex-direction:column;gap:5px;min-width:0;min-height:90px;padding:12px 14px;background:var(--hx-raised);border:1px solid var(--hx-line);border-radius:16px;box-shadow:none; }
body.screens-v1 #r7Page .report-contract .r7-kpi-label { display:flex;align-items:center;justify-content:space-between;gap:0;min-width:0;color:var(--hx-text-2);font-size:12px;font-weight:600;line-height:1.25; }
body.screens-v1 #r7Page .report-contract .r7-kpi-label > span:first-child { min-width:0; }
body.screens-v1 #r7Page .report-contract .r7-kpi-label .screen-info-label { flex:none; }
body.screens-v1 #r7Page .report-contract .r7-kpi-value { font-size:clamp(16px,1.5vw,22px);font-weight:750;line-height:1.2;white-space:normal;overflow-wrap:normal;word-break:normal;color:var(--hx-text); }
body.screens-v1 #r7Page .report-contract-delta { font-size:12px;font-weight:700;white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-delta.is-good { color:var(--hx-success,#22d48a); }
body.screens-v1 #r7Page .report-contract-delta.is-bad { color:var(--hx-danger,#ff5a6e); }
body.screens-v1 #r7Page .report-contract-delta.is-neutral { color:var(--hx-text-2); }
body.screens-v1 #r7Page .report-contract-card { min-width:0;padding:16px;border:1px solid var(--hx-line);border-radius:16px;background:var(--hx-raised); }
body.screens-v1 #r7Page .report-contract-card > h3 { display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px;font-size:14px;line-height:1.35;font-weight:750; }
body.screens-v1 #r7Page .report-contract-series { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;font-size:12px;color:var(--hx-text-2);font-weight:600; }
body.screens-v1 #r7Page .report-contract-series span::before { content:'';display:inline-block;width:9px;height:9px;background:var(--hx-primary);margin-right:4px;border-radius:2px; }
body.screens-v1 #r7Page .report-contract-series .is-comparison::before { background:var(--hx-text-3); }
body.screens-v1 #r7Page .report-contract-hours { display:flex;gap:4px;min-width:0;height:156px;overflow-x:auto; }
body.screens-v1 #r7Page .report-contract-hour { display:flex;flex:1 0 20px;flex-direction:column;min-width:0;justify-content:flex-end;gap:6px; }
body.screens-v1 #r7Page .report-contract-bar-pair { display:flex;align-items:flex-end;gap:2px;height:128px;border-bottom:1px solid var(--hx-line); }
body.screens-v1 #r7Page .report-contract-bar { display:block;flex:1;min-width:3px;max-height:100%;background:var(--hx-primary);border-radius:4px 4px 0 0; }
body.screens-v1 #r7Page .report-contract-bar.is-comparison { background:var(--hx-text-3);opacity:.65; }
body.screens-v1 #r7Page .report-contract-bar.is-missing { background:transparent;border:1px dashed var(--hx-text-3);box-sizing:border-box; }
body.screens-v1 #r7Page .report-contract-hour-label { font-size:12px;text-align:center;color:var(--hx-text-2);white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-table-scroll { width:100%;min-width:0;overflow-x:auto; }
body.screens-v1 #r7Page .report-contract-table { width:100%;min-width:590px;border-collapse:collapse;font-size:13px;table-layout:auto; }
body.screens-v1 #r7Page .report-contract-table :is(th,td) { padding:9px 8px;border-bottom:1px solid var(--hx-line);text-align:right;white-space:nowrap;word-break:normal;overflow-wrap:normal; }
body.screens-v1 #r7Page .report-contract-table thead th { font-size:12px;color:var(--hx-text-2);font-weight:600; }
body.screens-v1 #r7Page .report-contract-table :is(th,td):first-child { text-align:left; }
body.screens-v1 #r7Page .report-contract-comparison-rows { display:grid;gap:0; }
body.screens-v1 #r7Page .report-contract-comparison-row { display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;min-height:38px;padding:6px 0;border-bottom:1px solid var(--hx-line);font-size:12px; }
body.screens-v1 #r7Page .report-contract-comparison-row:last-child { border:0; }
body.screens-v1 #r7Page .report-contract-comparison-row > span:first-child { color:var(--hx-text-2); }
body.screens-v1 #r7Page .report-contract-comparison-row strong { font-size:13px;white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-actions { display:flex;flex-direction:column;gap:10px;margin-top:auto;padding-top:24px; }
body.screens-v1 #r7Page .report-contract-actions button { box-sizing:border-box;min-width:0;width:100%;min-height:48px;font-size:14px;font-weight:700;white-space:normal;padding:10px; }
body.screens-v1 #r7Page .report-contract-export { background:var(--hx-primary)!important;color:var(--hx-on-primary)!important;border:0; }
body.screens-v1 #r7Page .report-contract-save { display:flex;align-items:center;gap:4px; }
body.screens-v1 #r7Page .report-contract-save .screen-info-label { flex:none; }
body.screens-v1 #r7Page .report-contract-extras { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0; }
body.screens-v1 #r7Page .report-contract-extras .r7-donut { margin:0;gap:8px; }
body.screens-v1 #r7Page .report-contract-extras .r7-legend { font-size:12px; }
body.screens-v1 #r7Page .report-contract-revenue-hours { display:flex;align-items:flex-end;gap:3px;height:82px;min-width:0; }
body.screens-v1 #r7Page .report-contract-revenue-hours > span { flex:1;min-width:2px;background:var(--hx-primary);border-radius:3px 3px 0 0; }
body.screens-v1 #r7Page .report-contract-empty { display:grid;justify-items:center;gap:16px;padding:48px 16px;text-align:center; }
html[data-theme=light] body.screens-v1 #r7Page .report-contract-delta.is-good { color:#087547; }
html[data-theme=light] body.screens-v1 #r7Page .report-contract-delta.is-bad { color:#b12536; }
@media(max-width:1100px){
 body.screens-v1 #r7Page .report-contract-grid { grid-template-columns:minmax(0,1fr) 250px; }
 body.screens-v1 #r7Page .report-contract-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px){
 body.screens-v1 #r7Page .report-contract-grid { grid-template-columns:minmax(0,1fr); }
 body.screens-v1 #r7Page .report-contract-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
 body.screens-v1 #r7Page .report-contract-side { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start; }
 body.screens-v1 #r7Page .report-contract-actions { padding-top:0; }
}
@media(max-width:600px){
 body.screens-v1 #r7Page .report-contract-toolbar { gap:8px; }
 body.screens-v1 #r7Page .report-contract-period { flex:1; }
 body.screens-v1 #r7Page .report-contract-period button { flex:1; }
 body.screens-v1 #r7Page .report-contract-filters { margin-left:0; }
 body.screens-v1 #r7Page .report-contract-compare { flex-wrap:wrap; }
 body.screens-v1 #r7Page .report-contract-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.screens-v1 #r7Page .report-contract .r7-kpi:last-child { grid-column:1/-1; }
 body.screens-v1 #r7Page .report-contract-grid,body.screens-v1 #r7Page .report-contract-side,body.screens-v1 #r7Page .report-contract-extras { grid-template-columns:minmax(0,1fr); }
 body.screens-v1 #r7Page .report-contract .r7-kpi-value { font-size:22px; }
 body.screens-v1 #r7Page .report-contract-card { padding:14px; }
 body.screens-v1 #r7Page .report-contract-actions { padding-top:4px; }
}

body.screens-v1 #r7Page .report-contract .r7-kpi-label { display:block;padding-right:20px; }
body.screens-v1 #r7Page .report-contract .r7-kpi-label .screen-info-label { position:absolute;right:0;top:0; }
body.screens-v1 #r7Page .report-contract-bar,body.screens-v1 #r7Page .report-contract-revenue-hours>span,body.screens-v1 #r7Page .report-contract-series .is-today::before { background:var(--hx-select); }
body.screens-v1 #r7Page .report-contract-bar.is-comparison { background:var(--hx-text-3); }
body.screens-v1 #r7Page .report-contract-bar.is-missing { background:transparent; }
body.screens-v1 #r7Page .report-contract-export { height:52px!important;min-height:52px!important;background:var(--hx-cta)!important;color:var(--hx-on-cta)!important; }

@media(min-width:901px) and (max-width:1100px){body.screens-v1 #r7Page .report-contract-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}}
body.screens-v1 #r7Page .report-contract-comparison-row strong { white-space:normal;min-width:0; }

body.screens-v1 #r7Page .report-contract-table :is(th,td):first-child { position:sticky;left:0;z-index:1;background:var(--hx-raised); }
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page .report-contract .report-contract-export { background:var(--hx-select)!important;color:var(--hx-on-cta)!important; }
body.screens-v1 #r7Page .report-contract-period button,body.screens-v1 #r7Page .report-contract-filters>button { font-size:14px!important; }

body.screens-v1 #r7Page .report-contract-table { border-collapse:separate;border-spacing:0; }

body.screens-v1 #r7Page .report-contract .r7-kpi-value { font-size:20px; }
@media(min-width:601px) and (max-width:1100px){body.screens-v1 #r7Page .report-contract .r7-kpi-value { font-size:18px; }}
@media(max-width:600px){body.screens-v1 #r7Page .report-contract .r7-kpi-value { font-size:22px; }}

body.screens-v1 #r7Page .report-contract-games { display:flex;gap:24px;margin:0; }
body.screens-v1 #r7Page .report-contract-games>div { flex:1;min-width:0; }
body.screens-v1 #r7Page .report-contract-games dt { font-size:12px;color:var(--hx-text-2); }
body.screens-v1 #r7Page .report-contract-games dd { margin:8px 0 0;font-size:24px;font-weight:750; }
body.screens-v1 #r7Page .report-contract-games-note { margin:12px 0 0;font-size:12px;line-height:1.4;color:var(--hx-text-2); }

html[data-theme="light"] body.screens-v1 #r7Page { --hx-select:#086b91; }
html[data-theme="light"] body.screens-v1 #r7Page .r7q-lane[data-tile-state="book"] { --ht-book:#7b6000; }
@media(max-width:600px) {
 body.screens-v1 #r7Page:has(.screen-bill-layout) { min-height:0;max-height:var(--screen-bill-available-height,calc(100dvh - 144px - env(safe-area-inset-bottom,0px)));box-sizing:border-box; }
}

@media(max-width:767px) {
 body.screens-v1 #r7Page .r7-visits-card .r7-table td:first-child { padding-inline:0;justify-content:center; }
}

/* Keep unknown report metrics neutral and mobile columns discoverable. */
body.screens-v1 #r7Page .report-contract .r7-kpi-value { white-space:nowrap; }
body.screens-v1 #r7Page .report-contract [data-report-kpi]:is([data-report-kpi=revenue],[data-report-kpi=average]) .r7-kpi-value { font-size:18px; }
body.screens-v1 #r7Page .report-contract .r7-kpi { min-height:114px; }
body.screens-v1 #r7Page .report-contract-comparison-row { grid-template-columns:minmax(0,1fr) auto;min-height:60px;box-sizing:border-box; }
body.screens-v1 #r7Page .report-contract-comparison-label { display:flex;align-items:center;gap:2px;min-width:0; }
body.screens-v1 #r7Page .report-contract-comparison-label>.screen-info-label { flex:none; }
body.screens-v1 #r7Page .report-contract-comparison-values { display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-comparison-values strong { white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-table-frame { position:relative;min-width:0; }
body.screens-v1 #r7Page .report-contract-table :is(th,td):first-child { background:var(--ht-base);box-shadow:6px 0 var(--ht-base); }
body.screens-v1 #r7Page .report-contract-revenue-value { display:block;min-height:24px;margin-bottom:8px;font-size:12px;font-weight:650; }
body.screens-v1 #r7Page .report-contract-revenue-nav { display:flex;align-items:center;gap:8px;margin-bottom:8px; }
body.screens-v1 #r7Page .report-contract-revenue-nav .report-contract-revenue-value { flex:1;margin:0;text-align:center; }
body.screens-v1 #r7Page .report-contract-revenue-step { width:44px;min-width:44px;min-height:44px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center; }
body.screens-v1 #r7Page .report-contract-revenue-step:disabled { opacity:.35; }
body.screens-v1 #r7Page .report-contract-revenue-step svg { width:20px;height:20px; }
body.screens-v1 #r7Page .report-contract-revenue-plot { display:flex;gap:8px;min-width:0; }
body.screens-v1 #r7Page .report-contract-revenue-axis { display:flex;flex-direction:column;justify-content:space-between;flex:none;padding-bottom:30px;font-size:11px;color:var(--hx-text-2); }
body.screens-v1 #r7Page .report-contract-revenue-hours { display:flex;align-items:stretch;gap:2px;height:136px;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory; }
body.screens-v1 #r7Page .report-contract-revenue-hours>button { display:flex;flex-direction:column;flex:0 0 44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;scroll-snap-align:center; }
body.screens-v1 #r7Page .report-contract-revenue-space { position:relative;display:block;width:100%;height:100px;flex:none;border-bottom:1px solid var(--hx-line); }
body.screens-v1 #r7Page .report-contract-revenue-bar { position:absolute;left:8px;right:8px;min-height:1px;background:var(--hx-select);border-radius:3px; }
body.screens-v1 #r7Page .report-contract-revenue-hour[aria-pressed=true] .report-contract-revenue-bar { background:var(--hx-text);box-shadow:0 0 0 1px var(--hx-text); }
body.screens-v1 #r7Page .report-contract-revenue-label { font-size:12px;color:var(--hx-text-2);padding-top:6px; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day { flex:1;gap:2px;overflow:visible;scroll-snap-type:none; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day>button { flex:1 1 0;min-width:0;scroll-snap-align:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract-revenue-hours.is-day>button { flex:1 1 0;min-width:0!important; }
body.screens-v1 #r7Page .report-contract-revenue-hour:focus-visible { outline:2px solid var(--hx-select);outline-offset:-2px; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day .report-contract-revenue-bar { left:1px;right:1px; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day .report-contract-revenue-label { align-self:center;white-space:nowrap;font-size:10px; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day>button:first-child .report-contract-revenue-label { align-self:flex-start; }
body.screens-v1 #r7Page .report-contract-revenue-hours.is-day>button:not(:nth-child(3n+1)) .report-contract-revenue-label { display:none; }
body.screens-v1 #r7Page .report-contract-additional { min-width:0;margin:0; }
body.screens-v1 #r7Page .report-contract-additional>summary { min-height:44px;display:flex;align-items:center;font-weight:650;cursor:pointer; }
body.screens-v1 #r7Page .report-contract-additional .report-contract-extras { margin-top:12px; }
@media(min-width:601px) and (max-width:1200px){body.screens-v1 #r7Page .report-contract [data-report-kpi]:is([data-report-kpi=revenue],[data-report-kpi=average]) .r7-kpi-value{font-size:16px}}
@media(min-width:601px) and (max-width:900px){body.screens-v1 #r7Page .report-contract-side{align-items:start}body.screens-v1 #r7Page .report-contract-actions{margin-top:0}}
@media(max-width:600px){
 body.screens-v1 #r7Page .report-contract-hours.is-day { gap:2px;overflow-x:hidden; }
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-hour { flex:1 1 0;min-width:0; }
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-bar-pair { gap:1px; }
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-bar { min-width:1px; }
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-hour-label { font-size:10px; }
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-hour:not(:nth-child(3n+1)) .report-contract-hour-label { visibility:hidden; }
 body.screens-v1 #r7Page .report-contract-table-scroll { display:block;scroll-snap-type:x mandatory;scroll-padding-left:80px; }
 body.screens-v1 #r7Page .report-contract-table-frame { container-type:inline-size; }
 body.screens-v1 #r7Page .report-contract-table { table-layout:fixed;width:calc(500cqw - 320px);min-width:calc(500cqw - 320px); }
 body.screens-v1 #r7Page .report-contract-table :is(th,td):not(:first-child) { width:calc(100cqw - 80px);scroll-snap-align:start;box-sizing:border-box; }
 body.screens-v1 #r7Page .report-contract-table :is(th,td):nth-child(1) { width:80px;box-sizing:border-box; }
 body.screens-v1 #r7Page .report-contract-table-frame:not(.at-end)::after { content:'\203A';display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;padding-right:6px;position:absolute;right:0;top:0;bottom:0;width:34px;pointer-events:none;font-size:26px;line-height:1;color:var(--hx-text-2,#9fb0cb);background:linear-gradient(90deg,transparent,var(--hx-panel,#0f2244) 72%); }
}

@media(min-width:901px) and (max-width:1200px){body.screens-v1 #r7Page .report-contract-comparison-values{display:grid;justify-items:end;gap:2px}}

/* Tariff and business-day facts occupy separate flow rows when the header needs room. */
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { display:flex!important;flex-wrap:wrap!important;height:auto!important;min-height:72px!important;align-content:center; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7HeaderTitle { min-width:min-content!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { display:grid!important;grid-template-columns:9px minmax(0,1fr) max-content;gap:8px;flex:0 1 auto!important;order:4!important;width:clamp(344px,28vw,420px);max-width:100%!important;min-width:min(344px,100%)!important;min-height:44px;height:auto;padding:8px 12px;margin:0;box-sizing:border-box;white-space:normal; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"]::after { content:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-labels { display:flex;align-items:center;min-width:0;gap:4px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar :is(.tc-chip-day,.tc-chip-level) { min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-day { flex:0 1 auto; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-level { flex:1;color:var(--tc-level); }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-until { white-space:nowrap;font-weight:650; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"]>small { grid-column:2/-1;justify-self:start; }
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:has(.topbar>[data-role="cashier-pricing-chip"]) { grid-template-rows:auto minmax(0,1fr)!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { min-height:124px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { order:20!important;flex:1 0 100%!important;width:100%; }
}

/* Keep tariff details together and reserve the tablet's first row for navigation. */
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { grid-template-columns:9px minmax(0,max-content) max-content;justify-content:start;text-align:start; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-labels { justify-content:start;text-align:start; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #modal .tc-current-level { white-space:normal;overflow-wrap:anywhere;text-align:start; }
@media(min-width:768px) and (max-width:1100px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { order:20!important;flex:1 0 100%!important;width:100%; }
}
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(.hall-legend-help) :is(>.screen-info-label,.top-actions>.screen-info-label) { display:none!important; }
}

@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState { order:8!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) .hall-legend-help { order:9!important;margin-left:0; }
}

body.screens-v1 #r7Page .report-contract-revenue-axis.is-zero { justify-content:flex-end; }
@media(max-width:600px) {
 body.screens-v1 #r7Page .report-contract-table :is(th,td):not(:first-child) { padding-right:36px; }
}

/* Keep disconnected equipment visually neutral without changing action eligibility. */
html[data-theme] body#receptionApp.reception-shell .daily-lane.glyph-nolink { --ht-color:var(--ht-muted);--ht-glow:0%; }
body.screens-v1 #r7Page .r7q-aside .r7q-window-strip .booked { white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0;min-width:max-content; }
body.screens-v1 #r7Page .r7q-target { display:inline-block;white-space:nowrap; }
#r7Page .tv-settings-v2 .tv-pair b { display:block;white-space:nowrap; }
#modal:has(.shift-close-dialog) #modalClose { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace .hall-workspace-close[hidden] { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace .hall-workspace-close.is-purchase-exit { width:auto!important;max-width:none!important;flex:0 0 auto!important;padding-inline:12px;font-size:14px; }
body.screens-v1 #r7Page .r7-page-head>.screen-info-label { flex:none;align-self:center; }
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { display:grid!important;grid-template-columns:36px minmax(0,1fr) repeat(5,44px)!important;grid-template-rows:44px auto!important;gap:8px 4px!important;padding:10px!important;min-height:108px!important;height:auto!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7HeaderTitle { grid-column:2!important;grid-row:1!important;min-width:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7Search { grid-column:3!important;grid-row:1!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment { grid-column:4!important;grid-row:1!important;width:44px!important;height:44px!important;padding:0!important;justify-content:center; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment :is(.hall-equipment-state,.hall-equipment-short,.hall-equipment-info) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7Bell { grid-column:5!important;grid-row:1!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) .hall-legend-help { grid-column:6!important;grid-row:1!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7Operator { grid-column:7!important;grid-row:1!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) :is(#r7PinOff,#r7HeaderInfo) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState { grid-column:1/3!important;grid-row:2!important;max-width:100%!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState .tc-chip { font-size:10px!important;padding:4px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { grid-column:3/-1!important;grid-row:2!important;min-width:0!important;width:100%;max-width:100%;grid-template-columns:6px minmax(0,1fr) max-content;gap:4px;padding:6px;font-size:11px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign #visitWorkspace.hall-lane-panel.is-hall-sheet { top:var(--hall-sheet-top,124px)!important;bottom:72px!important;max-height:none!important;height:auto!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page .sv-title:has(#settingsSectionMenu) { min-height:44px!important;height:44px;margin:0;padding-block:0;flex-wrap:nowrap; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page .sv-body { padding-top:8px!important; }
 body.screens-v1 #r7Page .bq-book-filters { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px; }
 body.screens-v1 #r7Page .bq-book-filters button[data-booking-filter] { min-width:0;justify-content:center; }
}

@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState { width:100%!important;justify-self:stretch!important;align-self:stretch!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState .tc-chip { padding:8px 10px!important;white-space:nowrap!important;line-height:1.2; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { padding:8px 10px; }
}

@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page[data-screen=tariffs] .sv-title:has(#settingsSectionMenu) { position:relative;z-index:3;height:0!important;min-height:0!important;padding:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page[data-screen=tariffs] .sv-title #settingsSectionMenu { position:absolute;left:16px;top:8px; }
}

@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState { margin:0!important;padding:8px 10px!important;font-size:11px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState :is(.r7-status-full,.r7-status-compact,.r7-status-mobile) { white-space:nowrap!important;font-size:11px!important; }
}
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.r7-page-open) .topbar:has(>[data-role="cashier-pricing-chip"]):has(.hall-legend-help) :is(#r7SystemState,#r7SystemState.is-offline) { width:100%!important;max-width:none!important; }
}

/* Keep the equipment caption visible beside the other phone header controls. */
@media(min-width:375px) and (max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { grid-template-columns:36px minmax(0,1fr) 44px 100px repeat(3,44px)!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment { width:100px!important;max-width:100px!important;flex-direction:column;gap:2px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment>span:first-child svg { width:16px;height:16px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment .hall-equipment-short { display:block!important;font-size:11px;line-height:14px;white-space:nowrap!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7SystemState { grid-column:1/4!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) .tc-chip[data-role="cashier-pricing-chip"] { grid-column:4/-1!important; }
}
.report-contract-card>h3:has(.screen-info-label) { display:flex;align-items:center;gap:6px; }
.guest-empty-count .screen-info-trigger { vertical-align:middle; }

html[data-theme] body#receptionApp.review-redesign .screen-bill-actions .screen-accept:not(.primary) { background:var(--hx-panel);color:var(--hx-text);border:1px solid var(--hx-line);box-shadow:none; }

/* Keep the club-wide scope in flow above the media cards. */
#r7Page.settings-page[data-screen=screens] .tv-settings-v2 .scope{flex-shrink:0;height:auto;min-height:40px;margin:0;box-sizing:border-box}
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body:has([data-tv-tab=media].on){grid-template-rows:auto minmax(0,1fr) auto}
body#receptionApp #r7Page.settings-page[data-screen=screens] .tv-settings-v2 .tv-v2-body:has([data-tv-tab=media].on)>.tabs{height:auto;min-height:56px}

/* One mode control, in the security content flow. */
body.review-redesign .ct-security-mode-row{display:flex;flex:none;align-items:center;min-width:0;padding:8px 12px 0}
body.review-redesign .ct-security-mode-row .ct-mode-control{display:inline-flex;max-width:100%;white-space:nowrap}
body.review-redesign .ct-security-mode-row .ct-mode-badge{white-space:nowrap;flex:none}
body.review-redesign .ct-security-grid{overflow:visible;flex:none}
body.review-redesign .ct-pin-length-select{min-width:0;max-width:100%;box-sizing:border-box}
body.review-redesign .ct-policy-card .ct-field{min-width:0}
@media(max-width:1100px){
 body.review-redesign .ct-security-grid{grid-template-columns:minmax(0,1fr)}
 body.review-redesign .ct-policy-timer .ct-segment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:auto;grid-auto-rows:minmax(44px,auto)}
 body.review-redesign .ct-policy-timer .ct-segment .ct-button{min-width:0;white-space:nowrap;padding:6px}
}
/* Error retry controls share one size across native and embedded sections. */
html[data-theme] body#receptionApp.reception-shell.review-redesign #r7Page.settings-page [part=error-retry]{min-height:56px!important;min-width:120px!important;padding:10px 16px!important;border:1px solid var(--hx-text-2)!important;border-radius:12px!important;background:var(--hx-raised)!important;color:var(--hx-text)!important;font-family:inherit!important;font-size:16px!important;font-weight:700!important;line-height:1.25!important;box-sizing:border-box}
html[data-theme] body#receptionApp .settings-page [data-settings-focus=quick-buttons]{border:1px solid var(--hx-line-strong);border-radius:12px}
body.review-redesign .ct-restricted-cash{display:flex!important;align-items:center;flex-wrap:nowrap;gap:6px;grid-column:1/-1;min-width:0}
body.review-redesign .ct-restricted-cash>.screen-info-label{flex:0 1 auto;white-space:nowrap;min-width:0}
body.review-redesign .ct-restricted-cash>[data-cash-lock]{flex:none}
/* Preparation stays the only active layer in both themes. */
html[data-theme] body#receptionApp #modal:not([hidden]):has(.lane-prep-modal){background:rgba(4,12,24,.58)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body:has(#modal:not([hidden]) .lane-prep-modal) #visitWorkspace{filter:blur(4px);opacity:.35;pointer-events:none}
body:has(#modal:not([hidden]) .lane-prep-modal) #visitWorkspace :is(.primary,.r7-start-action){background:var(--hx-raised)!important;color:var(--hx-text-2)!important;box-shadow:none!important}
@media(max-width:1100px){body.review-redesign .ct-policy-timer:nth-child(2) .ct-segment{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.review-redesign #modal .lane-prep-modal #modalClose{display:none!important}

/* Keep phone chip captions inside their borders without shrinking controls. */
@media(min-width:375px) and (max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]){column-gap:2px!important;grid-template-columns:36px minmax(0,1fr) 44px 112px repeat(3,44px)!important}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #hallEquipment{width:112px!important;max-width:112px!important;min-height:44px;padding-left:10px!important;padding-right:10px!important;box-sizing:border-box}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.r7-page-open) .topbar:has(>[data-role="cashier-pricing-chip"]):has(.hall-legend-help) :is(#r7SystemState,#r7SystemState.is-offline){grid-column:1/-1!important;grid-row:2!important;justify-self:start!important;width:132px!important;max-width:132px!important;box-sizing:border-box}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) .tc-chip[data-role="cashier-pricing-chip"]{grid-column:1/-1!important;grid-row:2!important;justify-self:end!important;width:calc(100% - 136px)!important;max-width:none!important;box-sizing:border-box}
}

/* Keep complete section titles readable in the phone header. */
@media(max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:has(#r7Page.settings-page[data-screen=journal]) .topbar #r7HeaderTitle{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15!important;max-height:none}
}
/* English: the equipment caption keeps half of the phone row. */
@media(min-width:390px) and (max-width:767px){html[lang=en][data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(>[data-role="cashier-pricing-chip"])):has(.hall-legend-help) #hallEquipment{width:calc(50% - 24px)!important;max-width:calc(50% - 24px)!important;box-sizing:border-box}}
/* Reserve a 44px phone help target beside the day caption. */
@media(min-width:390px) and (max-width:767px){
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(>[data-role="cashier-pricing-chip"])):has(.hall-legend-help) :is(#r7SystemState,#r7SystemState.is-offline){margin-left:calc(50% + 2px)!important;width:calc(50% - 48px)!important;max-width:calc(50% - 48px)!important;padding-inline:10px!important}
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(>[data-role="cashier-pricing-chip"])):has(.hall-legend-help) #r7SystemState :is(.r7-status-full,.r7-status-compact,.r7-status-mobile){font-size:11px!important;white-space:nowrap!important}
}

/* Pairing follows the active interface theme and its primary action. */
html[data-theme] body.review-redesign #terminal-pairing-overlay .tp-card { background:var(--hx-panel);color:var(--hx-text); }
html[data-theme] body.review-redesign #terminal-pairing-overlay .tp-title { color:var(--hx-text); }
html[data-theme] body.review-redesign #terminal-pairing-overlay .tp-sub { color:var(--hx-text-2); }
html[data-theme] body.review-redesign #terminal-pairing-overlay .tp-code { color:var(--hx-text);background:var(--hx-raised);border-color:var(--hx-line); }
html[data-theme] body.review-redesign #terminal-pairing-overlay .tp-pair { background:var(--hx-panel-action-bg);color:var(--hx-panel-action-ink); }
body.review-redesign .ct-policy-role-link .screen-info-trigger { margin-left:8px; }
/* Keep both initial player rows and the calculation above the phone footer. */
@media(max-width:767px){
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .screen-opening-fields { gap:8px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .screen-opening-fields>label { gap:4px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .screen-opening-fields>label>.screen-info-label { min-height:44px;height:44px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .screen-opening-fields>label .screen-info-trigger { min-height:44px;height:44px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .hall-opening-players li { min-height:48px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening .hall-opening-players button { min-height:44px;height:44px; }
 html[data-theme] body.review-redesign #visitWorkspace.screen-opening>.r7-workspace-content { gap:8px;padding-bottom:32px;scroll-padding-bottom:32px; }
}

/* Keep the tariff level and its time together, without stretching their separator. */
html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { grid-template-columns:9px minmax(0,max-content)!important;justify-content:start; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-labels { display:block;white-space:normal; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-price { display:inline-flex;align-items:baseline;vertical-align:top;max-width:100%;white-space:nowrap; }

html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-price>.tc-chip-level { flex:0 1 auto; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip-price>.tc-chip-until { flex:0 0 auto; }

/* Cashier dialogs retain one exit and separate destructive booking actions. */
html[data-theme] body #modal .reception-dialog.tc-day .tc-types b{overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:600px){html[data-theme] body #modal .reception-dialog.tc-day .tc-types{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-theme] body .r7-booking-danger-zone{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:flex-start}
html[data-theme] body .r7-booking-danger-zone .r7-booking-remove{color:var(--ht-mech);background:transparent;border:1px solid currentColor;min-height:56px!important}
html[data-theme] body #modal .shift-counted-input{width:100%;box-sizing:border-box;min-height:56px;padding:12px 16px;text-align:left;background:var(--input-bg,var(--panel));border:1px solid var(--line);border-radius:8px;color:inherit;font:inherit;cursor:pointer}
html[data-theme] body #modal .shift-open-visits-warning{padding:12px;border-radius:8px;background:var(--warning-bg,#fff0ce);color:var(--warning-text,#725000);font-weight:600}
html[data-theme] body.review-redesign .ct-employee-tiles>.ct-recent-unavailable{grid-column:1/-1;max-width:100%;padding:8px 0;line-height:1.5;white-space:normal}
html[data-theme] body .lane-prep-chip{border-radius:0;background:transparent!important;box-shadow:none!important;border:0!important;padding:2px 0!important;font-size:15px;font-weight:600}
html[data-theme] body .lane-prep-chip+.lane-prep-chip{padding-left:14px!important;border-left:1px solid var(--line)!important}
html[data-theme] body.screens-v1 #r7Page .r7-page-head .r7-page-actions>.guest-live-primary{margin-left:auto;align-self:center}
html[data-theme] body [data-role=myshift-sign-in]:not(:disabled){background:var(--success,#16844b);color:#fff;border-color:transparent}

html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .daily-workspace-title-row{flex-wrap:wrap;min-width:0;max-width:100%}
html[data-theme] body.review-redesign #visitWorkspace.lane-players-editor .lp-state{height:auto;min-height:30px;max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.35;padding-block:6px;overflow-wrap:normal}
html[data-theme] body .r7-booking-danger-zone{padding-bottom:12px}
html[data-theme] body #modal .reception-dialog .r7-booking-danger-zone>.r7-booking-remove{height:56px!important;min-height:56px!important;flex-shrink:0}

html[data-theme] body #modalClose[hidden],html[data-theme] body .hall-workspace-close[hidden]{display:none!important}
@media(max-width:599px){
 html[data-theme] body.review-redesign .ct-login-left:has(.ct-recent-unavailable){grid-template-rows:28px auto}
 html[data-theme] body.review-redesign .ct-employee-tiles:has(>.ct-recent-unavailable){grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;overflow:visible}
 html[data-theme] body.review-redesign .ct-employee-tiles>.ct-recent-unavailable{grid-row:2;min-width:0}
}

html[data-theme] body.review-redesign .sv-controller-refresh{min-height:44px;justify-self:start}
html[data-theme] body.review-redesign .sv-equipment-details{min-height:44px;justify-self:start;background:none!important;border-color:transparent!important;box-shadow:none!important;text-decoration:underline;text-underline-offset:3px}

html[data-theme] body.review-redesign .shift-open-visits-warning{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
html[data-theme] body.review-redesign .shift-visits-link{min-height:44px;padding:8px 0;border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
html[data-theme] body.review-redesign #lanes.hall-tiles-v1 .daily-lane .hall-main-figure{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}

/* A labelled pause stays secondary and keeps its touch target. */
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-pause {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:auto!important;min-width:44px;min-height:56px;flex:0 1 auto!important;padding:12px 16px;
}
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-pause > span { white-space:nowrap; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-resume.daily-action {
  order:99;margin-left:auto!important;display:inline-flex;align-items:center;gap:8px;background:var(--dialog-primary,#157a45);border-color:transparent;color:#fff;
}
#visitWorkspace .hall-resume-icon svg { width:18px;height:18px; }

/* The rail owns the desktop brand; the phone keeps its existing header mark. */
@media(min-width:1180px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .ct-compact-brand { display:none!important; }
}

/* Deferred visits use the same page surface as the current visit list. */
.r7-parked-cards { padding:16px; min-width:0; }
.r7-parked-cards .list-scroll { overflow:visible; max-height:none; }
.r7-parked-cards .parked-visits-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:16px; }
.r7-parked-cards .parked-row { display:flex; flex-direction:column; align-items:stretch; gap:16px; min-width:0; padding:20px; border:1px solid var(--hx-border); border-radius:16px; background:var(--hx-raised); }
.r7-parked-cards .park-name b { font-size:18px; overflow-wrap:anywhere; }
.r7-parked-cards .park-name .muted { margin-top:8px; font-size:14px; }
.r7-parked-cards .actions { display:flex; flex-wrap:wrap; gap:12px; }
.r7-parked-cards .actions button,.r7-parked-cards .seg button { min-height:44px; font-size:15px; }
html[data-theme] body.review-redesign .r7-parked-cards .parked-row > .seg {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:100%;
}
html[data-theme] body.review-redesign .r7-parked-cards .parked-row > .seg .seg-btn {
  min-width:0;
  padding-inline:8px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.r7-parked-cards .actions button { flex:1 1 auto; }
.r7-parked-cards .actions button.primary { background:var(--hx-green,#16865d); color:#fff; border-color:transparent; }
.r7-parked-cards .actions button:not(.primary) { background:transparent; border:1px solid var(--hx-border); color:inherit; }
.r7-parked-cards .seg { align-self:flex-start; max-width:100%; }
.r7-parked-cards .seg button[aria-pressed="true"] { box-shadow:inset 0 0 0 2px currentColor; font-weight:700; }
/* Read-only role templates retain a legible selected permission. */
body.review-redesign .ct-template-notice { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;margin:4px 0 8px;color:var(--ht-ink-2);font-size:14px; }
body.review-redesign .ct-template-notice>span { flex:1 1 150px;min-width:0; }
body.review-redesign .ct-template-copy { background:var(--ht-raised-2);color:var(--ht-ink); }
body.review-redesign .ct-template-segment { position:relative;flex:none;min-width:0; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-template-segment .ct-segment .ct-button:disabled { opacity:.42;background:transparent!important;color:var(--ht-ink-2)!important;box-shadow:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-template-segment .ct-segment .ct-button:disabled[aria-pressed=true] { opacity:1;background:#204654!important;color:#a7dce4!important;box-shadow:inset 0 0 0 1px #5ca0a9!important; }
html[data-theme=light] body#receptionApp.reception-shell.review-redesign .ct-template-segment .ct-segment .ct-button:disabled[aria-pressed=true] { background:#e7f0ff!important;color:#245586!important;box-shadow:inset 0 0 0 1px #5a7aa3!important; }
body.review-redesign .ct-template-segment-trigger { position:absolute;z-index:1;top:0;left:0;width:100%;height:56px;min-width:0;min-height:0;padding:0;border:0;border-radius:14px;background:transparent;color:transparent;box-shadow:none;cursor:help; }
body.review-redesign .ct-template-segment-trigger:focus-visible { outline:3px solid var(--ht-accent);outline-offset:2px; }
body.review-redesign .ct-template-hint { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:8px;padding:8px 12px;border:1px solid var(--ht-line-2);border-radius:12px;background:var(--ht-raised);color:var(--ht-ink);font-size:14px;line-height:1.35; }
body.review-redesign .ct-template-hint[hidden] { display:none; }
body.review-redesign .ct-template-hint>span { flex:1 1 150px;min-width:0; }
@media(max-width:767px) { body.review-redesign .ct-permission-row .ct-template-segment { align-self:stretch; } }
body.review-redesign .ct-permission-row:has(>.ct-template-hint:not([hidden])) { flex-wrap:wrap;padding-block:8px; }
body.review-redesign .ct-permission-row>.ct-template-hint { flex:1 0 100%;box-sizing:border-box; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-compare .ct-mode.ct-template:disabled { opacity:1;background:var(--ht-field)!important;color:var(--ht-ink-3)!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-compare .ct-mode.ct-template.ct-mode-allow:disabled { background:var(--ht-ok-soft)!important;color:var(--ht-ok)!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-compare .ct-mode.ct-template.ct-mode-approval:disabled { background:var(--ht-warn-soft)!important;color:var(--ht-warn-text)!important; }
@media(max-width:600px) {
 body.review-redesign .ct-template-notice>span { flex-basis:100%;white-space:nowrap; }
}
@media(max-width:767px) {
 body.review-redesign .ct-compare thead th:first-child,
 body.review-redesign .ct-compare tbody tr:not(.ct-compare-group)>th:first-child { position:sticky;left:0;z-index:2;background:var(--ht-panel-solid); }
 body.review-redesign .ct-compare thead th:first-child { z-index:3; }
}
@media(max-width:767px) {
 body.review-redesign .ct-template-permissions .ct-template-hint:not([hidden]) { position:fixed;z-index:30;left:16px;right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));margin:0;background:var(--ht-panel-solid);box-shadow:var(--ht-shadow); }
}
@media(max-width:600px) {
 body.review-redesign .ct-template-notice { flex-wrap:nowrap;gap:8px; }
 body.review-redesign .ct-template-notice>span { flex:1 1 auto;white-space:nowrap;font-size:13px; }
 body.review-redesign .ct-template-notice>.ct-template-copy { flex:none;min-width:44px;min-height:44px;padding:0 8px;gap:4px;font-size:13px; }
 body.review-redesign .ct-template-notice>.ct-template-copy svg { width:18px;height:18px; }
}

/* Restricted role permissions retain a distinct, legible selected value. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-segment.ct-class-restricted .ct-button:disabled[aria-pressed=true] { opacity:1;background:#204654!important;color:#a7dce4!important;box-shadow:inset 0 0 0 1px #5ca0a9!important; }
html[data-theme=light] body#receptionApp.reception-shell.review-redesign .ct-segment.ct-class-restricted .ct-button:disabled[aria-pressed=true] { background:#e7f0ff!important;color:#245586!important;box-shadow:inset 0 0 0 1px #5a7aa3!important; }

.sale-position-rate { display:block;margin-top:4px;font-size:12px;line-height:1.4;font-weight:400;overflow-wrap:anywhere; }
.sale-position-label { min-width:0; }
/* Keep a focused visit in the tablet workspace row, beside the rail. */
@media(min-width:768px) and (max-width:1179px) {
 body.review-redesign[data-navigation]:has(.workspace.r7-visit-focused) #visitWorkspace.screen-visit { grid-column:2 / -1;grid-row:4;min-height:0; }
}

/* Booking lane choices follow their field width, including the docked form. */
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-field:has(.r7-booking-lanes) { min-width:0; }
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-lanes {
 display:flex!important;flex-wrap:wrap!important;gap:6px;box-sizing:border-box;width:100%;max-width:100%;min-width:0;
}
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-lanes button { flex:0 0 44px;min-width:44px;min-height:44px; }
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-field:has(.r7-booking-start),
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-field:has(.r7-booking-lanes) { grid-column:1 / -1; }

/* Keep checkout actions inside the measured page when a saved notice is shown. */
@media(min-width:601px) {
 body.screens-v1 #r7Page:has(.screen-bill-layout) {
  display:flex;flex-direction:column;min-height:0;
  height:var(--screen-bill-available-height,calc(100dvh - 72px));
  max-height:var(--screen-bill-available-height,calc(100dvh - 72px));
  box-sizing:border-box;overflow:hidden;
 }
 body.screens-v1 #r7Page:has(.screen-bill-layout) > .sv-notice,
 body.screens-v1 #r7Page:has(.screen-bill-layout) > .screen-breadcrumb { flex:0 0 auto; }
 body.screens-v1 .screen-bill-body { flex:1;min-height:0;overflow:auto; }
 body.screens-v1 .screen-bill-layout { height:100%;min-height:min-content;align-items:stretch; }
 body.screens-v1 .screen-bill-layout > .screen-card,
 body.screens-v1 .screen-bill-layout aside { min-height:0; }
}

/* Use the available workspace instead of a fixed-width running-options island. */
body.review-redesign .lane-options-page .lo-grid.is-running { max-width:none;width:100%; }
body.review-redesign .ct-selected-receipt:not([data-receipt-id]) { align-self:start; }
body.review-redesign .ct-selected-receipt:not([data-receipt-id]) .ct-receipt-empty { margin:0; }
body.screens-v1 #r7Page .guest-empty-copy { display:grid;gap:6px; }
body.screens-v1 #r7Page .guest-empty-copy .guest-empty-count { margin:0;padding:0; }
body.screens-v1 #r7Page .guest-empty-copy p { margin:0;max-width:42ch; }
@media(min-width:1180px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { flex-wrap:nowrap!important;height:72px!important;min-height:72px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7HeaderTitle { min-width:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { flex:0 1 280px!important;min-width:0!important;width:280px;grid-template-columns:9px minmax(0,1fr) max-content; }
}
@media(min-width:1180px) and (max-height:850px) {
 body.review-redesign #visitWorkspace.screen-visit .r7-visit-game { padding:4px 14px; }
 body.review-redesign #visitWorkspace.screen-visit .r7-score-table td { height:auto;padding:3px 4px; }
 body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-score > li > :nth-child(2),
 body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-bumpers > li > :nth-child(3),
 body.review-redesign #visitWorkspace.screen-visit .r7-player-list.missing-status > li > :nth-child(4) { height:0;min-height:0; }
}

@media(max-width:767px) {
 body.review-redesign .lane-options-page .lo-grid.is-running .lo-editor { padding-bottom:88px; }
 body.review-redesign .lane-options-page .lo-grid.is-running .lo-editor > .lo-actions { position:fixed;inset:auto 16px calc(72px + env(safe-area-inset-bottom,0px));z-index:2;margin:0;padding:8px 16px;background:var(--hx-panel);border-top:1px solid var(--hx-line); }
}

/* The header has one information glyph, and the equipment pill remains clickable. */
body#receptionApp #hallEquipment .hall-equipment-info { display:none; }
@media(max-width:600px) {
 /* the Hall shows the legend glyph; a page other than the Hall (Shift, Visits, ...) shows the session information glyph instead - never both, never the Hall legend on another page */
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.r7-page-open) .topbar:has(#hallLegendHelp) #r7HeaderInfo { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation].r7-page-open .topbar #hallLegendHelp { display:none!important; }
}

/* Numeric amount dialogs already provide their single Cancel action in the footer. */
body.review-redesign #numpadClose { display:none!important; }

@media (min-width:768px) and (max-width:1179px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:has(#r7Page.lane-options-page) .topbar #r7HeaderTitle { min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis; }
}

html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity] .hall-main-figure:empty { min-height:1em; }

/* Keep the focused-visit primary visible in a short desktop window. */
@media(min-width:1180px) and (max-height:799px){
 html[data-theme] body#receptionApp.review-redesign #visitWorkspace.screen-visit .screen-visit-side{gap:4px}
 html[data-theme] body#receptionApp.review-redesign #visitWorkspace.screen-visit .screen-visit-side>.screen-card{padding:6px 14px}
 html[data-theme] body#receptionApp.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-facts>div{min-height:24px;padding-block:1px}
}

/* Keep terminal accessibility/orientation cards inside the narrow modal track. */
@media (max-width:520px) {
 body.review-redesign #modal [data-admin-section="terminal"] .r7-admin-stack { grid-template-columns:minmax(0,1fr); }
 body.review-redesign #modal [data-admin-section="terminal"] .r7-admin-stack>.r7-admin-card { min-width:0; }
 body.review-redesign #modal [data-admin-section="terminal"] .r7-inactive-seg { flex-wrap:wrap; }
 body.review-redesign #modal [data-admin-section="terminal"] .r7-inactive-seg>* { flex:1 1 140px;min-width:0; }
}

/* Клавиши PIN: 56-78 px по доступной высоте; все клавиши и основная кнопка на экране без прокрутки. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-pinpad .ct-pin-keys button { min-height:56px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-login .ct-pinpad .ct-pin-keys button { min-height:64px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .security-keypad button { min-height:56px!important; }
/* Невидимое поле PIN не выходит за рамку и не закрывает подсказку под ней. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-pin-field .ct-pin-input { height:100%;min-height:0!important; }
.security-approval-content { display:flex; flex-direction:column; flex:0 1 auto; overflow:hidden; }
.security-approval-content>* { flex:0 0 auto; }
.security-approval-content>.security-keypad { align-self:stretch; }
.security-approval-content>.security-action { flex:0 1 auto; min-height:48px; overflow:auto; }
@media(max-width:767px) {
  body.review-redesign .security-card.ct-login { grid-template-rows:auto auto minmax(0,1fr); }
  body.review-redesign .ct-login-panel { min-height:0;overflow:hidden;padding-bottom:calc(var(--login-footer,82px) + 8px); }
  body.review-redesign .ct-login .ct-pinpad { flex:1 1 auto;min-height:0; }
  body.review-redesign .ct-login .ct-pin-keys { flex:1 1 auto;min-height:0;gap:8px;grid-template-rows:repeat(4,minmax(56px,78px));align-content:start; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-login .ct-pinpad .ct-pin-keys button { min-height:56px!important;height:100%; }
}
@media(max-width:767px) and (max-height:700px) {
  body.review-redesign .ct-login { --login-footer:60px; }
  body.review-redesign .ct-login-footer { padding:8px 16px; }
  body.review-redesign .ct-login-panel { gap:8px; }
  body.review-redesign .ct-login .ct-pinpad { gap:8px; }
  body.review-redesign .ct-login-panel>.ct-person-heading { min-height:48px;padding:4px 10px; }
  body.review-redesign .ct-login .ct-pin-field { height:48px; }
  .security-card.security-approval { padding:10px 14px; }
  .security-approval h2 { margin:0;font-size:18px; }
  .security-approval .security-requester { margin:0;font-size:12px; }
  .security-approval .security-action { padding:8px 12px; }
  .security-approval .security-columns { margin:6px 0; }
  .security-approval .security-field { gap:2px; }
  .security-approval .security-keypad { gap:6px; }
  .security-approval-footer { padding-top:6px; }
  .security-approval-footer>p { margin:4px 0 0; }
}
@media(max-height:500px) and (max-width:1023px) {
  body.review-redesign .security-card.ct-login { grid-template-columns:128px minmax(0,1fr);grid-template-rows:minmax(0,1fr);column-gap:10px;padding:8px 12px; }
  body.review-redesign .ct-login-left { grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(0,1fr);row-gap:8px; }
  body.review-redesign .ct-login-clock { display:none; }
  body.review-redesign .ct-employee-tiles { grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;overflow:hidden auto; }
  body.review-redesign .ct-login-panel { grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:min-content;column-gap:10px;row-gap:6px;padding:0;overflow:hidden; }
  body.review-redesign .ct-login .ct-pinpad { display:contents; }
  body.review-redesign .ct-login .ct-pin-keys { grid-column:2;grid-row:1 / span 8;height:calc(100dvh - 16px);gap:6px;grid-template-rows:repeat(4,minmax(56px,78px));align-content:center; }
  body.review-redesign .ct-login-panel>:not(.ct-pinpad),body.review-redesign .ct-login .ct-pin-field,body.review-redesign .ct-login .ct-pin-message { grid-column:1; }
  body.review-redesign .ct-login-footer { position:static;padding:0;background:transparent;border:0; }
  body.review-redesign .security-card.ct-approval { max-height:100dvh;padding:6px 12px;gap:4px; }
  body.review-redesign .ct-approval>h2 { font-size:17px;line-height:22px; }
  body.review-redesign .ct-approval form { display:grid;grid-template-columns:minmax(0,1fr) 260px;grid-auto-rows:min-content;column-gap:12px;row-gap:4px;min-height:0; }
  body.review-redesign .ct-approval-grid,body.review-redesign .ct-approval .ct-pinpad { display:contents; }
  body.review-redesign .ct-approval form>:not(.ct-approval-grid),body.review-redesign .ct-approvers,body.review-redesign .ct-approval .ct-pin-field,body.review-redesign .ct-approval .ct-pin-message { grid-column:1; }
  body.review-redesign .ct-approval .ct-pin-field { height:44px; }
  body.review-redesign .ct-approval .ct-pin-keys { grid-column:2;grid-row:1 / span 9;gap:4px; }
  body.review-redesign .ct-approval-footer { padding-top:4px; }
  .security-card.security-approval { width:100%;padding:6px 12px;max-height:100dvh; }
  .security-approval-content { display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto auto minmax(0,1fr);column-gap:12px; }
  .security-approval-content>:not(.security-columns,.security-keypad) { grid-column:1; }
  .security-approval .security-columns { grid-column:2;grid-row:1 / span 2;margin:0 0 4px; }
  .security-approval .security-keypad.is-compact { grid-column:2;grid-row:3;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;align-self:start; }
  .security-approval-footer>p { margin:2px 0 0;font-size:12px;line-height:16px;text-align:center; }
}

/* Конец сессии: суммы экрана настроек не остаются видимыми вокруг крышки. */
.settings-page[data-session-ended] .sv-content { visibility:hidden; }

/* Technician journal: faults and repair tickets on one screen, layout from the approved techlog v1 comp. */
body.screens-v1 #r7Page.tl-page { position:relative;display:flex;flex-direction:column;overflow:hidden; }
#r7Page.tl-page .tl-shell { flex:1;min-height:0;display:flex;gap:16px; }
#r7Page.tl-page .tl-main { flex:1;min-width:0;display:flex;flex-direction:column; }
#r7Page.tl-page .tl-tabs { display:flex;gap:4px;border-bottom:1px solid var(--hx-line);padding:0 4px; }
#r7Page.tl-page .tl-tab { display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:var(--hx-text-2);font-size:16px;font-weight:650; }
#r7Page.tl-page .tl-tab.is-on { color:var(--hx-text);border-bottom-color:var(--hx-select); }
#r7Page.tl-page .tl-n { min-width:22px;height:22px;border-radius:11px;background:var(--hx-st-fault);color:#fff;font-size:12.5px;font-weight:800;display:grid;place-items:center;padding:0 6px;box-sizing:border-box; }
#r7Page.tl-page .tl-list { flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:12px 0 16px;display:flex;flex-direction:column;gap:8px; }
#r7Page.tl-page .tl-group { font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hx-text-3);padding:6px 4px 0; }
#r7Page.tl-page .tl-row { position:relative;display:grid;grid-template-columns:72px 92px minmax(0,1fr) 84px 48px 124px;align-items:center;gap:8px;min-height:72px;flex:none;padding:8px 10px;background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:14px;box-sizing:border-box; }
#r7Page.tl-page .tl-row.is-restricted { grid-template-columns:72px minmax(0,1fr); }
#r7Page.tl-page .tl-row.is-selected { border-color:var(--hx-text-2); }
#r7Page.tl-page .tl-lane { display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:60px;height:44px;padding:0 8px;border-radius:10px;font-size:18px;font-weight:800;white-space:nowrap;box-sizing:border-box; }
#r7Page.tl-page .tl-lane-icon svg { width:15px;height:15px; }
#r7Page.tl-page .is-stop .tl-lane { background:var(--hx-st-fault);color:#0b1220; }
html[data-theme="light"] #r7Page.tl-page .is-stop .tl-lane { color:#fff; }
#r7Page.tl-page :is(.is-link,.is-working) .tl-lane { background:var(--hx-raised-hover);color:var(--hx-text); }
#r7Page.tl-page .tl-code { font-size:16px;font-weight:800;color:var(--hx-text);line-height:1.15;overflow-wrap:anywhere; }
#r7Page.tl-page .tl-title { min-width:0; }
#r7Page.tl-page .tl-title b { display:block;font-size:16px;font-weight:650;line-height:1.25; }
#r7Page.tl-page .tl-title small { display:block;font-size:13.5px;color:var(--hx-text-2);line-height:1.3;margin-top:2px; }
#r7Page.tl-page .tl-dur { text-align:right; }
#r7Page.tl-page .tl-dur b { font-size:16px;font-weight:700;white-space:nowrap; }
#r7Page.tl-page .tl-info { width:48px;height:48px;min-height:48px;padding:0;border-radius:12px;display:grid;place-items:center;background:none;border:0;color:var(--hx-text-2); }
#r7Page.tl-page .tl-info svg { width:22px;height:22px; }
#r7Page.tl-page .tl-act button { height:48px;width:100%;padding:0 8px;font-size:15px;border-radius:12px; }
#r7Page.tl-page .tl-empty { flex:1;display:grid;place-items:center;color:var(--hx-text-2);font-size:18px;font-weight:650; }
#r7Page.tl-page .tl-hlist { background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:14px;overflow:hidden; }
#r7Page.tl-page .tl-hrow { display:grid;width:100%;text-align:left;grid-template-columns:52px 60px 68px minmax(0,1fr) 72px 178px;gap:8px;align-items:center;min-height:60px;padding:6px 12px;border:0;border-bottom:1px solid var(--hx-line);border-radius:0;background:none;color:var(--hx-text); }
#r7Page.tl-page .tl-hrow:last-child { border-bottom:0; }
#r7Page.tl-page .tl-hrow > * { min-width:0; }
#r7Page.tl-page .tl-hrow .tl-ts,#r7Page.tl-page .tl-hrow .tl-end { font-size:14px;color:var(--hx-text-2);line-height:1.25; }
#r7Page.tl-page .tl-hrow .tl-lane { font-size:16px;height:auto;min-width:0;padding:0;justify-content:flex-start;background:none;color:var(--hx-text); }
#r7Page.tl-page .tl-hrow .tl-code { font-size:15px;color:var(--hx-text-2); }
#r7Page.tl-page .tl-hrow b { font-weight:650;font-size:15px;line-height:1.25; }
#r7Page.tl-page .tl-hrow .tl-dur { font-weight:650;font-size:14.5px; }
#r7Page.tl-page .tl-panel { width:452px;flex:none;display:flex;flex-direction:column;background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:14px;overflow:hidden; }
#r7Page.tl-page .tl-panel-top { display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:start;column-gap:4px;padding:16px 18px 10px; }
#r7Page.tl-page .tl-panel h2 { margin:0;font-size:21px;font-weight:750;line-height:1.2;outline:0; }
#r7Page.tl-page .tl-panel h2:focus-visible { outline:2px solid var(--hx-select);outline-offset:2px; }
#r7Page.tl-page .tl-panel-top small { display:block;margin-top:5px;font-size:14px;color:var(--hx-text-2); }
#r7Page.tl-page .tl-panel-body { flex:1;overflow-y:auto;scrollbar-width:none;padding:2px 18px 12px;display:flex;flex-direction:column;gap:12px; }
#r7Page.tl-page .tl-sec h3 { margin:0 0 4px;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hx-text-3); }
#r7Page.tl-page .tl-sec p { margin:0;font-size:15px;line-height:1.38; }
#r7Page.tl-page .tl-sec ol { margin:0;padding-left:20px;font-size:15px;line-height:1.38; }
#r7Page.tl-page .tl-tip { margin:0;padding:10px 12px;border-radius:10px;background:var(--hx-raised-hover);font-size:14px;font-weight:600;line-height:1.3; }
#r7Page.tl-page .tl-counts { display:flex;gap:24px; }
#r7Page.tl-page .tl-counts b { display:block;font-size:20px;font-weight:800; }
#r7Page.tl-page .tl-counts small { font-size:13.5px;color:var(--hx-text-2); }
#r7Page.tl-page .tl-side { display:flex;flex-wrap:wrap;gap:8px;flex:none; }
#r7Page.tl-page .tl-copy { display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 14px;font-size:15px; }
#r7Page.tl-page .tl-copy svg { width:18px;height:18px; }
#r7Page.tl-page .tl-false { height:48px;padding:0 14px;font-size:15px;background:none;border-color:transparent;color:var(--hx-st-fault); }
#r7Page.tl-page .tl-panel-acts { display:flex;gap:8px;padding:12px 18px;border-top:1px solid var(--hx-line); }
#r7Page.tl-page .tl-panel-acts .tl-sp { flex:1; }
#r7Page.tl-page .tl-panel-acts button { height:48px;padding:0 14px;font-size:15px; }
.tl-copy-buffer { position:fixed;left:-9999px;top:0;opacity:0; }
.tl-confirm-sub { margin:0 0 8px;font-size:15px;color:var(--hx-text-2); }
#r7Page.tl-page .is-warn .tl-lane { background:none;box-shadow:inset 0 0 0 2px var(--hx-st-book);color:var(--hx-st-book); }
#r7Page.tl-page .tl-filters { display:flex;gap:8px;flex-wrap:wrap;flex:none; }
#r7Page.tl-page .tl-filter { height:48px;padding:0 14px;border-radius:12px;background:var(--hx-raised);border:1px solid var(--hx-line);font-size:15px;font-weight:650;display:flex;gap:8px;align-items:center;color:var(--hx-text); }
#r7Page.tl-page .tl-filter small { font-size:13.5px;color:var(--hx-text-3);font-weight:600; }
.tl-filter-list { display:flex;flex-direction:column;gap:8px; }
.tl-filter-list button { min-height:48px;justify-content:flex-start;text-align:left; }
.tl-filter-list button.is-on { border-color:var(--hx-select);color:var(--hx-text); }
/* Desktop: the details panel runs the full height to the right edge, as in the comp. */
@media (min-width:1001px) {
  #r7Page.tl-page .tl-shell.has-panel { margin:-16px -18px -16px 0; }
  #r7Page.tl-page .tl-shell.has-panel .tl-main { padding:16px 0 0; }
  #r7Page.tl-page .tl-panel { border-radius:0;border-width:0 0 0 1px;box-shadow:-12px 0 32px rgba(0,0,0,.18); }
}
/* Tablet: no room beside the list, the panel covers it. */
@media (max-width:1000px) {
  #r7Page.tl-page .tl-panel { position:absolute;inset:0;width:auto;z-index:4;border-radius:0;border-width:0 0 0 1px; }
  #r7Page.tl-page .tl-shell.has-panel .tl-main { visibility:hidden; }
}
/* Phone: rows fold into two lines, the first row takes a full-width action. */
@media (max-width:600px) {
  #r7Page.tl-page .tl-row { grid-template-columns:auto minmax(0,1fr) auto 44px 60px;grid-template-areas:"la cd du ib ib" "tt tt tt ac ac";gap:2px 8px;padding:6px 8px 8px 10px;min-height:0; }
  #r7Page.tl-page .tl-row.is-restricted { grid-template-areas:"la tt tt tt tt";align-items:center; }
  #r7Page.tl-page .tl-row .tl-lane { grid-area:la;height:36px;min-width:50px;font-size:16px; }
  #r7Page.tl-page .tl-row .tl-code { grid-area:cd; }
  #r7Page.tl-page .tl-row .tl-title { grid-area:tt; }
  #r7Page.tl-page .tl-row .tl-dur { grid-area:du; }
  #r7Page.tl-page .tl-row .tl-info { grid-area:ib;width:44px;height:44px;min-height:44px;justify-self:end; }
  #r7Page.tl-page .tl-row .tl-act { grid-area:ac;align-self:center; }
  #r7Page.tl-page .tl-row .tl-title b { font-size:15px; }
  #r7Page.tl-page .tl-row .tl-act button { width:96px;height:44px;font-size:14.5px;justify-self:end; }
  #r7Page.tl-page .tl-row.is-first { grid-template-areas:"la cd du ib ib" "tt tt tt tt tt" "ac ac ac ac ac"; }
  #r7Page.tl-page .tl-row.is-first .tl-act button { width:100%;height:48px; }
  #r7Page.tl-page .tl-filters { display:grid;grid-template-columns:1fr 1fr 1fr; }
  #r7Page.tl-page .tl-filter { padding:0 8px;justify-content:center;flex-direction:column;gap:0;font-size:13.5px;line-height:1.15; }
  #r7Page.tl-page .tl-hrow { grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"la cd ts du" "tt tt tt tt" "en en en en";row-gap:2px;padding:9px 12px; }
  #r7Page.tl-page .tl-hrow .tl-ts { grid-area:ts;text-align:right; }
  #r7Page.tl-page .tl-hrow .tl-lane { grid-area:la; }
  #r7Page.tl-page .tl-hrow .tl-code { grid-area:cd; }
  #r7Page.tl-page .tl-hrow > b { grid-area:tt; }
  #r7Page.tl-page .tl-hrow .tl-dur { grid-area:du; }
  #r7Page.tl-page .tl-hrow .tl-end { grid-area:en; }
  body.screens-v1 #r7Page.tl-page { height:calc(100dvh - 136px);min-height:0; }
  #r7Page.tl-page .tl-panel { border:0; }
}

/* Phone header mark: 30 px box inside the 36 px slot keeps it lighter than the section title and 4+ px clear of it. */
@media(max-width:767px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderMark svg { width:30px!important;height:30px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderMark .hitru-logo { transform:translateY(-5px); }
}

/* Group divider above Settings in the rail (journal mockup): same line as the collapsed group divider. */
#r7Navigation .r7-nav-sep { height:1px; min-height:1px; padding:0; margin:10px auto; width:44px; background:var(--hx-line); flex:none; }
body.review-redesign[data-navigation="expanded"] #r7Navigation .r7-nav-sep { width:auto; margin:10px 12px; }
/* Low screens: the collapsed rail keeps Settings on screen down to 720 px; at 800 px and above it stays as drawn. */
@media(min-width:768px) and (max-height:799px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=collapsed] #r7Navigation { padding-bottom:8px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=collapsed] #r7Navigation .r7-nav-entry { height:56px; min-height:56px; gap:4px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation=collapsed] #r7Navigation .r7-nav-sep { margin:4px auto; }
}

/* lock on settings sections this employee cannot open. */
.sv-menu-item .sv-denied-lock{margin-left:auto;display:inline-flex;align-items:center;opacity:.75;pointer-events:none}
.sv-menu-item .sv-denied-lock svg{width:14px;height:14px}

/* the shift card subtitle (time and employee) wraps instead of losing the name. */
body.review-redesign .ct-shift-overview .ct-shift-card-title small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

/* an empty summary section lines up with the titles of the neighbouring cards. */
body.screens-v1 #r7Page .screen-stack > .screen-summary-empty-section { padding:0 16px; }

/* At 320 px a tighter header gutter gives the title column enough room
   for one-word titles such as "Визиты". */
@media(max-width:359px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(>[data-role="cashier-pricing-chip"])) { padding-inline:12px!important;column-gap:2px!important; }
}

/* Controller facts keep their natural height beside the controller list. */
.settings-page[data-screen=equip] .sv-equipment-grid { flex:0 0 auto;align-items:start; }
/* Тарифы на телефоне: шапка экрана начинается от верхнего края, как в кадре контракта. */
@media (max-width:600px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .settings-page[data-screen="tariffs"] .sv-body { padding-top:0!important; }
}
@media (max-width:767px) {
  html[data-theme] body#receptionApp.review-redesign .settings-page .sv-content > .sv-title + .sv-denied { margin-top:8px; }
  html[data-theme] body#receptionApp.review-redesign .settings-page .sv-body > .sv-denied[slot=denied] { margin-top:4px; }
}
html[data-theme] body#receptionApp .settings-page .sv-equipment-grid .sv-card > h3:has(> .screen-info-label) { flex-wrap:nowrap;align-items:center; }
html[data-theme] body#receptionApp .settings-page .sv-equipment-grid .sv-card > .sv-equipment-details { padding-inline:0;justify-content:flex-start;align-self:flex-start; }
html[data-theme] body#receptionApp .settings-page .sv-controller[aria-pressed=true] strong.is-warning { color:#5c2c00; }
html[data-theme] body#receptionApp .settings-page .sv-state-chip.is-warning { color:var(--sv-warning); }
html[data-theme="light"] body#receptionApp .settings-page .sv-state-chip.is-warning { color:#7a4f00; }

/* Visits retain readable columns and a visible progress track in both themes. */
.r7-visit-party { display:inline; }
.r7-visit-party > span { color:var(--hx-text-2);white-space:nowrap; }
html[data-theme="light"] body.screens-v1 #r7Page .screen-progress { background:var(--hx-line-strong,var(--hx-line)); }
@media (min-width:768px) and (max-width:1024px) {
 body.screens-v1 #r7Page .r7-visits-card .r7-table { min-width:900px; }
}
html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract-date button:disabled { background:transparent!important;color:var(--hx-text-3)!important;opacity:.45!important;box-shadow:none!important; }

.bq-book-lane[data-tile-state="pause"] b { color:var(--ht-pause); }

body.screens-v1 #r7Page .report-contract-comparison-label > span:first-child { white-space:nowrap; }
body.screens-v1 #r7Page .report-contract-comparison-values { flex-direction:column;align-items:flex-end;gap:2px; }

.r7q-new-estimate { display:inline-flex;align-items:center;gap:4px;color:var(--hx-text-2);font-size:13px;white-space:nowrap; }

.screen-queue-parked-name { color:var(--hx-text-2);font-size:13px; }
.r7q-hall-head > b { white-space:nowrap; }
body.screens-v1 .r7q-hall-head { flex-wrap:wrap; }
/* Below the desktop width the title row with the way back stays on screen while the page scrolls. */
@media (max-width:1179px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-content { overflow:clip visible; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign.settings-open .settings-page:has(.ct-contract) { overflow:clip; }
  html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-title:has(#settingsSectionMenu) { position:sticky;top:0;z-index:6;background:var(--hx-bg); }
}
@media (max-width:640px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign.settings-open { overflow:clip visible; }
}

/* Settings -> Controllers: a new controller takes a free lane pair from a short sheet. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-pair-link{display:inline-flex;align-items:center;gap:2px;min-height:44px;margin-left:8px;padding:0 4px;border:0;background:none;color:var(--sv-cyan);font-size:15px;font-weight:700;cursor:pointer}
html[data-theme] body#receptionApp.reception-shell.review-redesign .settings-page .sv-pair-link svg{width:16px;height:16px}
html[data-theme=light] body#receptionApp.reception-shell.review-redesign .settings-page .sv-pair-link{color:var(--hx-select)}
body.review-redesign #modal:has(.sv-pair-pick){z-index:70;align-items:center;padding:16px;background:rgba(4,10,20,.58);backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick{width:min(660px,calc(100vw - 32px));max-width:none;min-width:0;height:auto;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;margin:0;border:1px solid var(--hx-line);border-radius:20px;background:var(--hx-panel);color:var(--hx-text);overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.24)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .modal-head{display:flex;align-items:center;gap:12px;flex:none;min-width:0;min-height:0;padding:20px 20px 0 24px;background:var(--hx-panel);color:var(--hx-text);border:0}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #modalTitle{min-width:0;flex:1;margin:0;font-size:22px;line-height:1.3;font-weight:780;white-space:normal;overflow-wrap:anywhere;text-align:start}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #modalClose{flex:none;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;font-size:24px;border:0;border-radius:10px;background:none;color:var(--hx-text-2)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #modalBody{flex:1;display:block;min-width:0;min-height:0;width:auto;max-width:100%;margin:0;padding:0 24px 20px;overflow:auto;background:var(--hx-panel);color:var(--hx-text)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-hint{margin:0 0 14px;color:var(--hx-text-2);font-size:15px;font-weight:600}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile{height:112px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:0 14px;border:0;border-radius:16px;background:color-mix(in srgb,var(--hx-text) 7%,var(--hx-panel));color:var(--hx-text);text-align:left;cursor:pointer}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile b{font-size:32px;font-weight:820;letter-spacing:-.02em;line-height:1}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile small{display:flex;align-items:center;gap:5px;max-width:100%;overflow:hidden;color:var(--hx-text-3);font-size:13px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile small.is-free{color:var(--hx-st-free)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile small svg{width:14px;height:14px;flex:none}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile[aria-disabled=true]{background:transparent;box-shadow:inset 0 0 0 1.5px var(--hx-line-strong);opacity:.6;cursor:default}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile[aria-disabled=true] b{color:var(--hx-text-2)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile[aria-pressed=true]{background:var(--hx-select-wash);box-shadow:inset 0 0 0 2px var(--hx-select)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tile[aria-pressed=true] b{color:var(--hx-select)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-error{margin:12px 0 0;color:var(--hx-st-fault);font-size:15px;font-weight:650}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar{flex:none;display:flex;gap:12px;min-height:0;padding:14px 16px;background:var(--hx-panel);border-top:1px solid var(--hx-line)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar button{width:auto;flex:none;min-height:56px;padding:0 22px;border:0;border-radius:14px;font-size:16px;font-weight:750}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar button:not(.primary){border:0;box-shadow:none;background:color-mix(in srgb,var(--hx-text) 7%,var(--hx-panel));color:var(--hx-text)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar .primary{margin-left:auto;background:var(--hx-cta);color:var(--hx-on-cta)}
html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar .primary:disabled{opacity:.45}
@media(max-width:767px){
 body.review-redesign #modal:has(.sv-pair-pick){align-items:flex-end;padding:12px 12px calc(84px + env(safe-area-inset-bottom,0px))}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick .sv-pair-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.sv-pair-pick #wizardBar .primary{flex:1}
}

/* Screens -> Lane TVs (contract variance-tvdefaults-2026-11-09): defaults for the whole center, bar with the status on the
   left; nothing on the tab says applied (the TV control part is unsupported in this version). */
html[data-theme] body#receptionApp .tv-settings-v2 footer.dbar .ic.n{background:var(--hx-raised)!important;color:var(--hx-text-2,var(--hx-text))!important}
@media(max-width:480px){html[data-theme] body#receptionApp .tv-settings-v2 footer.dbar .st small{display:block!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important}html[data-theme] body#receptionApp .tv-settings-v2 footer.dbar{height:auto!important;min-height:64px!important}}
.tv-settings-v2 .tv-center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.tv-settings-v2 .tv-center-col{display:grid;gap:12px;min-width:0}
@media(max-width:1000px){.tv-settings-v2 .tv-center-grid{grid-template-columns:minmax(0,1fr)}}
.tv-settings-v2 .tv-center-grid .stk{display:grid;gap:8px;padding:6px 0}
.tv-settings-v2 .tv-center-grid .seg.fit{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.tv-settings-v2 .tv-center-grid .seg.fit>button{min-height:52px;white-space:normal;line-height:1.2}
html[data-theme] body#receptionApp .tv-settings-v2 .tv-center-grid .seg.fit{display:grid!important;flex-wrap:nowrap!important;grid-template-columns:repeat(var(--n,3),minmax(0,1fr))!important;grid-auto-flow:row!important;width:100%;box-sizing:border-box;min-width:0}
html[data-theme] body#receptionApp .tv-settings-v2 .tv-center-grid .seg.fit>button{flex:none!important;width:auto!important;grid-column:auto!important;min-width:0!important;padding-inline:8px!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:break-word;hyphens:manual}
.tv-settings-v2 .tv-center-grid .seg.fit:not(:has(.on))>button{color:var(--hx-text-2)}
.tv-settings-v2 .tv-center-grid .stp .v small{margin-left:6px;font-size:13px;font-weight:600;color:var(--hx-text-3)}
.tv-settings-v2 .tv-night-window{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:6px 0}
.tv-settings-v2 .tv-night-window>div{display:grid;gap:8px;min-width:0}
html[data-theme] body#receptionApp .tv-settings-v2 .tv-night-window .stp{width:100%;display:flex;justify-content:space-between;box-sizing:border-box}
html[data-theme] body#receptionApp .tv-settings-v2 .tv-center-grid .row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.tv-settings-v2 .tv-night-window.is-invalid .stp{box-shadow:inset 0 0 0 2px var(--hx-st-fault);border-radius:12px}
.tv-settings-v2 .tv-night-error{margin:0;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;color:var(--hx-text);border:1px solid var(--hx-st-fault);background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-panel))}
.tv-settings-v2 .tv-center-grid .row .lb small{display:block;font-size:13px;font-weight:500;color:var(--hx-text-3)}
.tv-settings-v2 .tv-center-tvs .tv-tvs-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-top:1px solid var(--hx-line)}
.tv-settings-v2 .tv-center-tvs .tv-tvs-row b{font-weight:650;color:var(--hx-text)}
.tv-settings-v2 .tv-center-tvs .tv-tvs-row small{display:block;font-size:13px;color:var(--hx-text-3)}
.tv-settings-v2 .tv-center-tvs .tv-tvs-none{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 14px;border-radius:12px;font-size:15px;color:var(--hx-text-2);background:var(--hx-raised)}
.tv-settings-v2 .tv-center-tvs .tv-tvs-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:14px;font-size:13px;font-weight:650;white-space:nowrap;color:var(--warn-text);border:1px solid var(--warn);background:var(--warn-soft)}

/* Security -> cash variance threshold: the native field with the center currency in front of the amount. */
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money { flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;box-sizing:border-box;min-height:56px;padding:0 16px;border:1px solid var(--ht-line);border-radius:14px;background:var(--ht-field);cursor:text; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money:focus-within { outline:3px solid var(--ht-accent);outline-offset:2px; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money > .ct-field-currency { flex:none;font-size:16px;font-weight:700;color:var(--ht-ink); }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money input { flex:0 1 auto;width:auto;field-sizing:content;min-width:4ch;max-width:100%;min-height:54px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:right;font-variant-numeric:tabular-nums; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money input:focus-visible { outline:0; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money input::placeholder { color:var(--ht-ink-3);font-weight:600;opacity:1; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-field.ct-field-money:has(input:placeholder-shown:not(:focus)) > .ct-field-currency { display:none; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-variance-card .ct-variance-head { display:flex;align-items:center;justify-content:space-between;gap:12px; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-variance-card .ct-variance-ro { flex:none;white-space:nowrap;font-size:16px;font-weight:700;color:var(--ht-ink);font-variant-numeric:tabular-nums; }
html[data-theme] body#receptionApp.review-redesign #r7Page .ct-variance-card .ct-variance-ro.is-unset { color:var(--ht-ink-3);font-weight:600; }

/* UX walk 2: keep booking controls readable within the docked panel. */
body.review-redesign #modal .bookings-modal .reception-dialog-context { display:none; }
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-lanes { justify-content:flex-start; }
body.review-redesign #modal .bookings-modal .r7-booking-form .step-num { border:0!important;background:transparent!important;box-shadow:none!important; }
body.review-redesign #modal .bookings-modal:not(.booking-is-edit) #wizardBar>button { flex:1!important;min-width:0;width:auto; }
@media(min-width:768px) {
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form>.r7-booking-day-step { display:none!important; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) #modalTitle { display:flex;align-items:center;flex-wrap:nowrap;gap:4px; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-title-label { margin-right:auto; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-title-day { margin:0;min-width:0; }
}
@media(min-width:768px) and (max-width:1000px) {
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) #modalTitle { display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:100%; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-title-label { grid-column:1/-1;margin:0; }
 body.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-title-day { text-align:center; }
}
@media(max-width:600px) {
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-lanes { display:grid!important;grid-template-columns:repeat(8,minmax(44px,1fr));gap:0; }
}
body.screens-v1 .bq-book-live[data-tile-state=pause] { --ht-play:var(--ht-pause); }
html:not([data-theme=light]) body.screens-v1 .bq-book-past { background:rgba(2,10,26,.42); }
html[data-theme=light] body.screens-v1 .bq-book-past { background:rgba(238,241,244,.62); }
body.screens-v1 #r7Page .bq-book-event>strong { display:flex!important;gap:4px; }
body.screens-v1 #r7Page .bq-book-event-name { flex:1;min-width:0;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.2; }
body.screens-v1 #r7Page .bq-book-late-badge { flex:none;color:var(--ht-red); }
html:not([data-theme=light]) body.review-redesign .parked-row .actions>button:not(.primary) { background:var(--hx-raised);border:1px solid var(--hx-line); }


body.screens-v1 #r7Page .bq-book-filters button.has-attention { color:var(--ht-book);border-color:var(--ht-book); }
html[data-theme] body.screens-v1 #r7Page .r7q-remove:not(:disabled) { color:var(--ht-red)!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important; }

body.review-redesign #modal .bookings-modal .r7-booking-submit { display:flex;align-items:center;gap:4px;flex:1;min-width:0; }
body.review-redesign #modal .bookings-modal .r7-booking-submit>button { flex:1;min-width:0;min-height:56px; }
body.review-redesign #modal .bookings-modal .r7-booking-submit .screen-info-trigger { width:44px;min-width:44px;height:44px;min-height:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-fault-confirm:not([hidden]) { display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--hx-st-fault); }
body.review-redesign #modal .bookings-modal .r7-booking-fault-confirm input { flex:none;width:22px;height:22px; }
body.review-redesign #modal .bookings-modal .r7-booking-fault-confirm { min-height:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-fault-error:not([hidden]) { display:block;margin:4px 0 8px;color:var(--hx-st-fault);font-size:13px;line-height:1.35; }
body.review-redesign #modal .bookings-modal .r7-booking-start-info[hidden] { display:none!important; }
/* no ✕ in dialogs; per-flow sizing rules must not bring it back. */
html body #modal #modalClose[hidden] { display:none!important; }
/* On tablets the hall tariff stays in the navigation row, and a long level name is shortened with details in its information control. */
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar>[data-role="cashier-pricing-info"] { display:none!important; }
@media(min-width:768px) and (max-width:1100px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) { flex-wrap:nowrap!important;min-height:72px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar .tc-chip[data-role="cashier-pricing-chip"] { order:0!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;grid-template-columns:9px minmax(0,1fr) max-content;gap:6px;padding:8px 10px;white-space:nowrap; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-labels { display:flex;flex-wrap:nowrap;align-items:baseline;gap:4px;white-space:nowrap;overflow:hidden; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7HeaderTitle { flex:0 0 auto!important;margin-right:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:has(>[data-role="cashier-pricing-chip"]) #r7Search { margin-left:auto!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"] :is(.tc-chip-day,.tc-chip-until) { flex:0 0 auto; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-price { min-width:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-level { flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar>[data-role="cashier-pricing-info"]:not([hidden]) { display:inline-grid!important;order:0!important;margin-left:-4px; }
}
/* Settings on phones keep the one-row header of the approved settings frames; the shared two-row phone header (id-level rules above) must not override it. */
@media(max-width:600px){
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation]:has(.settings-page){grid-template-rows:68px minmax(0,1fr)!important}
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation] .settings-page.ct-settings-menu{height:calc(100dvh - 68px - 72px)!important;max-height:calc(100dvh - 68px - 72px)!important}
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;height:68px!important;min-height:68px!important;max-height:68px!important;padding:6px 16px!important;gap:6px!important}
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar :is(.top-tabs,.top-system,#r7SystemState,#hallEquipment,#r7Search,.go-header-status,.center-header-status){display:none!important}
}

/* Equipment fault dot beside the bell, only in the phone Settings header (the equipment chip is hidden there).
   The 44 px target takes the row gaps on both sides (margin -6px): the 12 px dot sits centred, the one-row title keeps its width. */
#hallEquipmentDot{display:none}
@media(max-width:600px){
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #hallEquipmentDot:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:0;margin:0 -6px;border:0;border-radius:22px;background:transparent;cursor:pointer}
 html[data-theme] body#receptionApp.reception-shell.settings-open.review-redesign[data-navigation]:has(.settings-page) .topbar #hallEquipmentDot::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--bad)}
}

/* «Неисправность» and «День с HH:MM» fold into 44 px icons, the full text stays in
   aria-label and title; the equipment icon carries the fault dot of the phone Settings header. The tariff chip is shown whole,
   the header stays one row, and only the section title may end with an ellipsis. From 1180 the header is unchanged. */
@media(min-width:768px) and (max-width:1179px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment:not([hidden]) { flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;gap:0!important;justify-content:center!important;position:relative; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment :is(.hall-equipment-state,.hall-equipment-short,.hall-equipment-info) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment>span:first-child { display:inline-flex!important;width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment>span:first-child svg { width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment[data-equipment-fault]::after { content:"";position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--bad);box-shadow:0 0 0 2px var(--hx-panel,#000); }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState { flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;gap:0!important;justify-content:center!important;position:relative;order:1; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState :is(.r7-status-full,.r7-status-compact,.r7-status-mobile) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState .r7-status-icon { display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;cursor:pointer; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState .r7-status-icon:focus-visible { outline:2px solid var(--accent,currentColor);outline-offset:-2px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #hallEquipment:focus-visible { outline:2px solid var(--accent,currentColor);outline-offset:2px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState .r7-status-icon svg { width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7SystemState .r7-system-dot { display:block!important;position:absolute;top:8px;right:8px;width:8px;height:8px;margin:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar:has(>[data-role="cashier-pricing-chip"]) { flex-wrap:nowrap!important;column-gap:4px!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar:has(>[data-role="cashier-pricing-chip"])>* { margin-inline:0!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] { flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-labels { display:flex!important;flex-wrap:nowrap;align-items:baseline;gap:4px;white-space:nowrap;min-width:0;overflow:hidden; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-price { display:inline-flex;align-items:baseline;flex:0 1 auto;min-width:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] :is(.tc-chip-day,.tc-chip-until) { flex:0 0 auto; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #ctLegacyExit { flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;gap:0!important;justify-content:center!important;order:3!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #ctLegacyExit>span[aria-hidden] { display:inline-flex;width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #ctLegacyExit>span:not([aria-hidden]) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #ctLegacyExit svg { width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar>[data-role="cashier-pricing-info"]:not([hidden]) { display:inline-grid!important;order:0!important;margin-left:-4px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-level { flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar:has(>[data-role="cashier-pricing-chip"]) #r7HeaderTitle { flex:0 0 auto!important;max-width:30%!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important; }
}
.r7-status-icon { display:none; }
#r7SystemState .r7-system-dot { pointer-events:none; }

/* from 1180 the tariff chip never wraps and is shown whole while it fits; a crowded row folds «Неисправность»
   into the 44 px icon of 768-1179, and only a name that still does not fit ends with an ellipsis. */
@media(min-width:1180px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] { flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar #r7HeaderTitle { flex:0 0 auto!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar>[data-role="cashier-pricing-info"]:not([hidden]) { display:inline-grid!important;order:4!important;margin-left:-4px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-labels { display:flex!important;flex-wrap:nowrap;align-items:baseline;gap:4px;white-space:nowrap;min-width:0;overflow:hidden; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] :is(.tc-chip-day,.tc-chip-until) { flex:0 0 auto; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-level { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar .tc-chip[data-role="cashier-pricing-chip"] .tc-chip-price { display:inline-flex;align-items:baseline;white-space:nowrap;min-width:0; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar.is-fold-equipment #hallEquipment:not([hidden]) { flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important;gap:0!important;justify-content:center!important;position:relative; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar.is-fold-equipment #hallEquipment :is(.hall-equipment-state,.hall-equipment-short,.hall-equipment-info) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar.is-fold-equipment #hallEquipment>span:first-child { display:inline-flex!important;width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar.is-fold-equipment #hallEquipment>span:first-child svg { width:20px;height:20px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation]:not(.settings-open) .topbar.is-fold-equipment #hallEquipment[data-equipment-fault]::after { content:"";position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:var(--bad);box-shadow:0 0 0 2px var(--hx-panel,#000); }
}
/* the level name of the tariff chip reads at 4.5:1 or better on the light chip. The level colour is the
   server's; light theme inks it down through a theme token, dark theme keeps it as is. */
.tc-chip { --tc-level-ink:var(--tc-level); }
html[data-theme="light"] .tc-chip { --tc-level-ink:color-mix(in srgb,var(--tc-level) 42%,#000); }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar .tc-chip .tc-chip-level { color:var(--tc-level-ink,var(--tc-level)); }
/* The fault popover reads as one finished card (text, then the list action as wide as «Понятно»),
   and the folded header icons show their keyboard focus at every width. */
#screenInfoTooltip .hall-equipment-pop { display:grid;gap:12px; }
#screenInfoTooltip .hall-equipment-pop p { margin:0; }
#screenInfoTooltip .hall-equipment-pop button { width:100%;min-height:44px; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #hallEquipment:focus-visible,
html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7SystemState .r7-status-icon:focus-visible { outline:2px solid var(--accent,currentColor)!important;outline-offset:2px!important; }
/* The «≡» lane menu. The trigger is a 56 px icon button beside pause; the
   menu opens above it, 260 px wide, 44 px rows with an icon and a label; an action without the right keeps its row with a lock. */
#visitWorkspace .hall-menu-wrap { position:relative;flex:none;display:flex; }
#visitWorkspace .hall-menu-trigger { flex:none;width:56px;min-width:56px;min-height:56px;padding:0;display:grid;place-items:center;border:0;border-radius:14px;background:color-mix(in srgb,var(--hx-text,currentColor) 8%,var(--hx-panel,transparent));color:var(--hx-text,inherit);box-shadow:none;cursor:pointer; }
#visitWorkspace .hall-menu-trigger svg { width:22px;height:22px; }
#visitWorkspace .hall-menu-trigger[aria-expanded="true"] { background:color-mix(in srgb,var(--hx-text,currentColor) 14%,var(--hx-panel,transparent)); }
#visitWorkspace .hall-menu { position:absolute;left:0;bottom:64px;z-index:30;width:260px;max-width:calc(100vw - 32px);max-height:min(60vh,430px);overflow:auto;padding:8px;display:grid;gap:0;border:1px solid var(--hx-line,rgba(127,127,127,.3));border-radius:14px;background:var(--hx-panel,#fff);color:var(--hx-text,inherit);box-shadow:0 18px 40px rgba(0,0,0,.28); }
#visitWorkspace .hall-menu[hidden] { display:none; }
#visitWorkspace .hall-menu .hall-menu-item { display:flex;align-items:center;gap:12px;width:100%;height:44px;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:14px;font-weight:600;text-align:left;justify-content:flex-start;box-shadow:none;white-space:nowrap;cursor:pointer; }
#visitWorkspace .hall-menu .hall-menu-item:hover:not([aria-disabled="true"]),#visitWorkspace .hall-menu .hall-menu-item:focus-visible { background:color-mix(in srgb,var(--hx-text,currentColor) 8%,transparent); }
#visitWorkspace .hall-menu .hall-menu-item:focus-visible,#visitWorkspace .hall-menu-trigger:focus-visible { outline:2px solid var(--accent,currentColor);outline-offset:2px; }
#visitWorkspace .hall-menu .hall-menu-icon { display:inline-grid;place-items:center;width:20px;height:20px;flex:none;opacity:.85; }
#visitWorkspace .hall-menu .hall-menu-icon svg,#visitWorkspace .hall-menu .hall-menu-mark svg { width:18px;height:18px; }
#visitWorkspace .hall-menu .hall-menu-label { flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis; }
#visitWorkspace .hall-menu .hall-menu-mark { display:inline-grid;place-items:center;width:18px;height:18px;flex:none;opacity:.9; }
#visitWorkspace .hall-menu .hall-menu-item[aria-disabled="true"] { color:var(--hx-text-2,inherit);cursor:default; }
#visitWorkspace .hall-menu .hall-menu-item[aria-disabled="true"] .hall-menu-label,#visitWorkspace .hall-menu .hall-menu-item[aria-disabled="true"] .hall-menu-icon { opacity:.62; }
/* Phone and tablet (the panel is a narrow column or a sheet): the menu spans the footer, anchored to it and not to the
   trigger, so it never crosses the panel edge. :where keeps a sticky footer sticky - a sticky box is already the containing block. */
:where(#visitWorkspace .daily-checkout:has(> .hall-menu-wrap)) { position:relative; }
@media(max-width:1024px){
  #visitWorkspace .hall-menu-wrap { position:static; }
  #visitWorkspace .hall-menu { left:12px;right:12px;bottom:calc(100% + 8px);width:auto;max-width:none; }
}
#visitWorkspace .hall-menu .hall-menu-row { display:flex;align-items:center;gap:0;height:44px; }
#visitWorkspace .hall-menu .hall-menu-row .hall-menu-item { flex:0 1 auto;width:auto;min-width:0; }
/* The (i) follows the label and is greyed with its row; every row keeps the 44 px rhythm. */
#visitWorkspace .hall-menu .hall-menu-row .hall-menu-info { flex:none;display:inline-flex;align-items:center;height:44px;margin:0;line-height:0;opacity:.62; }
#visitWorkspace .hall-menu .hall-menu-row .hall-menu-info .screen-info-trigger { width:32px;min-width:32px;height:44px;min-height:0;margin:0; }
/* In the visit card the menu trigger shares the footer row with the closing action. */
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout:has(> .hall-menu-wrap) { flex-direction:row;flex-wrap:nowrap;align-items:center; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-side .daily-checkout:has(> .hall-menu-wrap) > :not(.hall-menu-wrap) { flex:1 1 auto;width:auto;min-width:0; }
/* The visit-card menu takes the width of the right column and is anchored to its footer,
   keeping the column covered beside the menu. */
#visitWorkspace.screen-visit .screen-visit-side .daily-checkout .hall-menu-wrap { position:static; }
#visitWorkspace.screen-visit .screen-visit-side .daily-checkout .hall-menu { left:0;right:0;bottom:calc(100% + 8px);width:auto;max-width:none; }
/* The technician call is a regular menu row with the shared row inset. */
html[data-theme] body.review-redesign #visitWorkspace .hall-menu .hall-menu-item.hall-panel-technician { padding:0 12px; }

/* Dialog layers.
   N1: any open dialog or dialog-stack layer sits above the fixed lower bars of the screens (the Queue footer on a phone,
   the guest footers); the bars step under the shell's dialog layer (40) while a dialog is open. */
body:has(:is(.modal-backdrop,[data-dialog-layer="true"]):not([hidden])) :is(.r7q-mobile-footer,#r7Page .guest-live-directory-footer,.guest-draft:has(> .guest-live-title) > .guest-draft-footer) { z-index:39; }
/* The light backdrop darkens the screen behind a dialog by about half, as the neon one does. */
html[data-theme="light"] body .modal-backdrop { background:rgba(14,25,38,.6); }
/* Dialogs carry no close control; the header keeps no empty column for it. The close track is
   auto and the gap moves onto the control, so a dialog without it gives the title the whole header width. */
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal > .modal-head { grid-template-columns:minmax(0,1fr) auto;column-gap:0; }
html[data-theme] body :is(#modal,#numpad,.reception-dialog-backdrop) .reception-dialog.modal .modal-head > :is(.modal-close,#modalClose,#numpadClose) { margin-left:12px; }
/* Booking guest tariffs and the two native quote models share the approved form grid. */
body.review-redesign #modal .bookings-modal .r7-booking-guests-head { display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--hx-text-2);font-size:13px;font-weight:650; }
body.review-redesign #modal .bookings-modal .r7-booking-guests-head select { width:auto;max-width:55%;min-height:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-guest-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff { display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:4px;border:1px solid var(--hx-line);border-radius:12px;background:var(--hx-raised); }
body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff .stepper { display:flex;justify-content:space-between;width:100%; }
body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff small { color:var(--hx-text-2);font-size:12px;text-align:center;overflow-wrap:anywhere; }
body.review-redesign #modal .bookings-modal .r7-booking-price-models { display:grid;gap:8px; }
body.review-redesign #modal .bookings-modal .r7-booking-models { width:100%;height:auto;min-height:56px; }
body.review-redesign #modal .bookings-modal .r7-booking-models .seg-btn { min-width:0;min-height:56px;height:auto;white-space:normal; }
body.review-redesign #modal .bookings-modal .r7-booking-models .seg-btn > span { display:flex;flex-direction:column;gap:4px;min-width:0; }
body.review-redesign #modal .bookings-modal .r7-booking-models strong { font-size:14px; }
body.review-redesign #modal .bookings-modal .r7-booking-models :is(small,p) { margin:0;font-size:12px;overflow-wrap:anywhere; }
body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff .stepper :is(.step-btn,.step-num) { box-sizing:border-box;flex:1;min-width:0;min-height:44px;height:44px;padding:4px;font-size:20px;line-height:1; }
body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff .stepper { min-height:44px;height:44px; }
body.review-redesign #modal .bookings-modal .r7-booking-lane-availability { color:var(--hx-text-2);font-size:12px; }
body.review-redesign #modal .bookings-modal .r7-booking-lanes button.is-free { border-color:var(--hx-primary); }

body.screens-v1 #r7Page .report-contract-occupancy-plot { display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px; }
body.screens-v1 #r7Page .report-contract-occupancy-axis { height:128px;display:flex;flex-direction:column;justify-content:space-between;color:var(--hx-text-2);font-size:10px;line-height:1;text-align:right; }
body.screens-v1 #r7Page .report-contract-occupancy-plot .report-contract-hours { background:linear-gradient(var(--hx-line),var(--hx-line)) left top/100% 1px no-repeat,linear-gradient(var(--hx-line),var(--hx-line)) left 64px/100% 1px no-repeat; }
@media(min-width:601px) and (max-width:900px) {
 body.screens-v1 #r7Page .report-contract-toolbar { display:grid;grid-template-columns:max-content minmax(0,1fr) max-content; }
 body.screens-v1 #r7Page .report-contract-period { grid-column:1;grid-row:1; }
 body.screens-v1 #r7Page .report-contract-date { grid-column:2 / 4;grid-row:1;justify-self:start; }
 body.screens-v1 #r7Page .report-contract-compare { grid-column:1 / 3;grid-row:2; }
 body.screens-v1 #r7Page .report-contract-filters { grid-column:3;grid-row:2;margin-left:0;justify-self:end; }
}
@media(max-width:600px) {
 body.screens-v1 #r7Page .report-contract-hours.is-day .report-contract-hour:not(:nth-child(3n+1)) .report-contract-hour-label { max-width:100%;overflow:hidden; }
}

body.screens-v1 #r7Page .screen-summary-occupancy-plot .report-contract-occupancy-axis { height:110px; }
body.screens-v1 #r7Page .screen-summary-occupancy-plot .screen-published-hours { height:128px;background:linear-gradient(var(--hx-line),var(--hx-line)) left top/100% 1px no-repeat,linear-gradient(var(--hx-line),var(--hx-line)) left 55px/100% 1px no-repeat; }
body.screens-v1.review-redesign:has(#r7Page .bq-book-layout) #toast:not(.error) { top:auto;bottom:calc(80px + env(safe-area-inset-bottom,0px));pointer-events:none; }

html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract [data-report-kpi] { display:grid;grid-template-rows:30px auto;align-content:start; }
html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract [data-report-kpi] .r7-kpi-label { height:30px;min-height:30px;align-items:flex-start; }
html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract [data-report-kpi] .r7-kpi-label>span:first-child { white-space:nowrap; }
html[data-theme] body#receptionApp.reception-shell.review-redesign.screens-v1 #r7Page .report-contract [data-report-kpi] .r7-kpi-value { margin:0;align-self:start; }

/* Settings > Devices */
.sv-dev-code{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.sv-dev-code label{flex:1 1 220px;display:grid;gap:6px;min-width:0;font-size:13px;color:color-mix(in srgb,var(--hx-text) 66%,transparent)}
html[data-theme] body#receptionApp .settings-page .sv-dev-code input{height:56px!important;min-width:0;padding:0 16px!important;border-radius:12px!important;border:1px solid var(--hx-line-strong,var(--hx-line))!important;background:var(--hx-raised)!important;color:var(--hx-text)!important;font-family:inherit!important;font-size:28px!important;font-weight:700!important;line-height:1!important;font-variant-numeric:tabular-nums;letter-spacing:.18em!important}
.sv-dev-code input::placeholder{color:color-mix(in srgb,var(--hx-text) 30%,transparent)}
html[data-theme] body#receptionApp .settings-page .sv-dev-code.is-error input{border-color:var(--hx-st-fault)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--hx-st-fault) 22%,transparent)!important}
.sv-dev-code>button{align-self:end;min-height:56px!important;min-width:120px;font-weight:700}
.sv-dev-err{margin:8px 0 0;color:var(--hx-st-fault);font-size:14px;font-weight:600}
.sv-dev-found{margin-top:14px;padding:14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--hx-primary) 55%,transparent);background:color-mix(in srgb,var(--hx-primary) 8%,transparent);display:grid;gap:12px}
.sv-dev-head{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}
.sv-dev-ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,#d0408f 18%,transparent);color:#d0408f}
.sv-dev-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sv-dev-head b{display:block;font-size:16px}.sv-dev-head small{display:block;font-size:13px;color:color-mix(in srgb,var(--hx-text) 62%,transparent);overflow-wrap:normal;word-break:keep-all}
.sv-dev-found label{display:grid;gap:6px;font-size:13px;color:color-mix(in srgb,var(--hx-text) 66%,transparent)}
html[data-theme] body#receptionApp .settings-page .sv-dev-found input{height:48px!important;min-width:0;padding:0 14px!important;border-radius:10px!important;border:1px solid var(--hx-line-strong,var(--hx-line))!important;background:var(--hx-raised)!important;color:var(--hx-text)!important;font-family:inherit!important;font-size:16px!important;font-weight:600!important}
.sv-dev-act{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.sv-dev-act button{min-height:48px!important;min-width:132px;font-weight:700}
.sv-dev-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;gap:12px;align-items:center;min-height:68px;border-top:1px solid var(--sv-line);padding:10px 0}
.sv-dev-row .sv-dev-head{display:contents}
.sv-dev-seg{white-space:nowrap}
.sv-dev-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:14px;font-size:13px;font-weight:700;white-space:nowrap}
.sv-dev-pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.sv-dev-pill.on{color:var(--hx-st-free);background:color-mix(in srgb,var(--hx-st-free) 14%,transparent)}
.sv-dev-pill.off{color:var(--hx-st-fault);background:color-mix(in srgb,var(--hx-st-fault) 14%,transparent)}
html[data-theme] body#receptionApp .settings-page .sv-dev-row>button{min-height:44px!important;padding:6px 14px!important;font-size:14px;border:1px solid var(--hx-line)!important;border-radius:10px!important}
.sv-dev-count{margin-left:8px;color:color-mix(in srgb,var(--hx-text) 55%,transparent);font-weight:600}
.sv-dev-just{display:flex;gap:10px;align-items:center;margin-top:12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--hx-st-free) 12%,transparent);color:var(--hx-text)}
.sv-dev-just svg{width:20px;height:20px;flex:none;color:var(--hx-st-free)}.sv-dev-just b{font-size:14px}.sv-dev-just small{display:block;font-size:13px;color:color-mix(in srgb,var(--hx-text) 62%,transparent)}
@media(max-width:600px){.sv-dev-row{grid-template-columns:44px minmax(0,1fr);row-gap:8px}.sv-dev-row>.sv-dev-pill,html[data-theme] body#receptionApp .settings-page .sv-dev-row>button{grid-column:2!important;justify-self:start!important}.sv-dev-code>button{flex:1 1 100%}.sv-dev-act button{flex:1 1 0}}
.sv-dev-found .sv-dev-seg:first-child{font-size:20px;font-weight:800;color:var(--hx-text)}

/* settings rights sheet */
.settings-page .sv-rights{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap;padding:16px 18px}
.settings-page .sv-rights-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--panel-solid,rgba(255,255,255,.06));flex:none}
.settings-page .sv-rights-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 160px}
.settings-page .sv-rights-text strong{font-size:17px;font-weight:700}
.settings-page .sv-rights-text small{font-size:14px;opacity:.75}
.settings-page .sv-rights-pin{min-height:48px;margin-left:auto}
@media(max-width:480px){.settings-page .sv-rights-pin{width:100%;margin-left:0}}

/* staff screen on a phone: names keep whole words and the events button wraps under the name instead of overlapping it */
@media(max-width:767px) {
  body.review-redesign .ct-person { min-width:170px;width:170px;gap:8px;padding:8px 8px; }
  body.review-redesign .ct-person-name b { font-size:15px; }
  body.review-redesign .ct-person-name b,body.review-redesign .ct-person-heading h3 { overflow-wrap:normal;word-break:normal;hyphens:none; }
  body.review-redesign .ct-person-heading { flex-wrap:wrap; }
  body.review-redesign .ct-person-heading>div { flex:1 1 150px; }
  body.review-redesign .ct-person-heading>button,body.review-redesign .ct-person-heading>.ct-button { flex:none;margin-left:auto; }
}

/* security off: the state is said in a warm tone, the reason sits inside the screen */
body.review-redesign .ct-mode-badge.is-off { color:var(--warn-text,#ffb547);background:var(--warn-soft,rgba(255,181,71,.14));border-color:var(--warn,#ffb547); }
body.review-redesign .ct-security-mode-row { display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px; }
body.review-redesign .ct-security-off-note { margin:0;flex:1 1 220px;min-width:0; }
body.review-redesign .ct-security-turn-on { min-height:48px; }

/* Lane TVs, light theme: a switch with no value yet is a dark bar, not a white knob that disappears on the light capsule */
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw.mix i { background:#4b586d;box-shadow:none; }
html[data-theme="light"] #r7Page.settings-page[data-screen="screens"] .tv-settings-v2 .sw:not(.on):not(.mix) { box-shadow:inset 0 0 0 1.5px #aab4c2; }

/* license screen: the three cards share the height of the screen, so it is not a corner with an empty two thirds */
body #r7Page.settings-page[data-screen="license"] .sv-columns.three { align-items:stretch!important;min-height:calc(100dvh - 230px); }
body #r7Page.settings-page[data-screen="license"] .sv-columns.three > .sv-card { align-self:stretch!important;height:auto!important; }

/* Final walk F10: report groups from the server catalog, custom period. */
body.review-redesign .report-catalog-card { margin-top:16px; }
body.review-redesign .report-catalog-tabs { display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 12px; }
body.review-redesign .report-catalog-tabs button { min-height:44px; }
body.review-redesign .report-catalog-list { list-style:none;margin:0;padding:0;display:grid;gap:0; }
body.review-redesign .report-catalog-row { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 0;border-top:1px solid var(--ht-line, rgba(127,127,127,.25)); }
body.review-redesign .report-catalog-row:first-child { border-top:0; }
body.review-redesign .report-catalog-name { min-width:0;overflow-wrap:anywhere; }
body.review-redesign .report-catalog-state { display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--ht-ink-2); }
body.review-redesign .report-catalog-state.is-gap { color:var(--ht-ink-3, var(--ht-ink-2)); }
body.review-redesign .report-catalog-open { flex:none;min-height:44px; }
body.review-redesign .report-catalog-note { margin:0;color:var(--ht-ink-2); }
body.review-redesign .report-contract-range { display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-left:10px; }
body.review-redesign .report-contract-range-field { display:flex;align-items:center;gap:6px; }
body.review-redesign .report-contract-range-field span { font-size:13px;color:var(--ht-ink-2); }
body.review-redesign .report-contract-range-limit { flex-basis:100%;color:var(--hx-st-fault); }
body.review-redesign .report-contract-range-limit[hidden] { display:none; }
body.screens-v1 #r7Page .report-catalog-tabs button { font-size:14px!important;padding:8px 14px; }
body.screens-v1 #r7Page .report-catalog-row,body.screens-v1 #r7Page .report-catalog-state { font-size:14px; }
/* Pause is a direct action of the visit card, as in the Hall panel. */
body.review-redesign #visitWorkspace.screen-visit .screen-visit-pause-slot { grid-column:1/-1; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-pause-slot > button { width:100%;min-height:44px; }
body.review-redesign #visitWorkspace.screen-visit .screen-visit-pause-slot > button { box-sizing:border-box;padding:8px 12px;border-radius:10px;border:1px solid var(--hx-line);background:var(--hx-raised);color:var(--hx-text);font:inherit;font-size:14px; }

/* «Game options» under the players (r3 «Players and options») and in the «Lane setup» modal.
   A label row per option with its segment on the right; the pressed value carries the accent ring, like the bumpers. */
.lgo-block { display:flex;flex-direction:column;gap:8px;margin-top:14px; }
.lgo-head { display:flex;align-items:center;gap:6px;min-height:28px; }
.lgo-head h4 { margin:0;font-size:13px;font-weight:700;color:var(--hx-text-2, var(--hx-text)); }
.lgo-head .lgo-lock { display:inline-flex;width:16px;height:16px;color:var(--hx-text-3, var(--hx-text-2)); }
.lgo-head .lgo-lock svg { width:16px;height:16px; }
.lgo-card { display:flex;flex-direction:column;border-radius:16px;background:var(--hx-raised);border:1px solid var(--hx-line);padding:4px 14px; }
.lgo-row { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;min-height:60px;padding:6px 0;box-sizing:border-box;border-bottom:1px solid var(--hx-line); }
.lgo-row:last-child { border-bottom:0; }
.lgo-label { display:flex;align-items:center;gap:4px;flex:1 1 auto;font-size:15px;font-weight:650;color:var(--hx-text);min-width:max-content; }
.lgo-seg { display:flex;gap:6px;flex:none;margin-left:auto; }
body .lgo-seg .lgo-choice { min-width:64px;min-height:48px;padding:0 12px;border-radius:12px;border:0;box-shadow:none;background:var(--hx-panel);color:var(--hx-text);font-weight:700;font-size:14px; }
body .lgo-seg .lgo-choice[aria-pressed="true"], body .lgo-seg .lgo-choice[aria-pressed="true"]:is(:hover,:focus,:focus-visible) { background:var(--hx-select-wash);box-shadow:inset 0 0 0 2px var(--hx-select);color:var(--hx-text); }
body .lgo-seg .lgo-choice:disabled { opacity:.45; }
.lgo-error { margin:0;font-size:13px;color:var(--hx-st-fault); }
.lgo-empty { margin:0;font-size:15px;color:var(--hx-text); }
#visitWorkspace.lane-players-editor .lp-game-options { flex:none; }
.lane-setup-modal .lgo-block { margin-top:0; }
#modal .modal.lane-setup-modal { width:min(560px, calc(100vw - 32px)); }
@media (max-width: 480px) {
  .lgo-row { flex-wrap:wrap;padding:8px 0;gap:8px; }
  .lgo-seg { width:100%; }
  body .lgo-seg .lgo-choice { flex:1 1 0; }
}
.ct-variance-approvals{display:grid;gap:4px}
.ct-variance-approvals .ct-va-head{display:flex;align-items:center;gap:10px;min-height:44px}
.ct-variance-approvals .ct-va-head h3{margin:0}
.ct-variance-approvals .ct-va-count{min-width:28px;height:28px;padding:0 8px;border-radius:14px;display:inline-grid;place-items:center;font-weight:750;font-size:14px;color:var(--warn-text);background:var(--warn-soft);border:1px solid var(--warn)}
.ct-variance-approvals .ct-va-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto minmax(160px,auto);align-items:center;gap:12px 16px;min-height:72px;padding:10px 0;border-top:1px solid var(--hx-line)}
.ct-variance-approvals .ct-va-who,.ct-variance-approvals .ct-va-sum{display:grid;gap:2px;min-width:0}
.ct-variance-approvals .ct-va-who b{font-size:16px;font-weight:700;color:var(--hx-text);overflow-wrap:anywhere}
.ct-variance-approvals .ct-va-who small,.ct-variance-approvals .ct-va-sum small{font-size:13px;color:var(--hx-text-2)}
.ct-variance-approvals .ct-va-sum{text-align:right}
.ct-variance-approvals .ct-va-sum b{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums;color:var(--hx-text);white-space:nowrap}
.ct-variance-approvals .ct-va-row>.ct-button{justify-self:end;min-height:48px;min-width:160px}
.ct-variance-approvals .ct-va-note{justify-self:end;margin:0;max-width:220px;text-align:right;font-size:14px;line-height:1.3;color:var(--hx-text-3)}
.ct-variance-approvals .ct-va-note.is-error{color:var(--hx-text);padding:8px 12px;border-radius:10px;border:1px solid var(--hx-st-fault);background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-panel))}
@media(max-width:700px){.ct-variance-approvals .ct-va-row{grid-template-columns:40px minmax(0,1fr) auto}.ct-variance-approvals .ct-va-row>.ct-button,.ct-variance-approvals .ct-va-note{grid-column:2/-1;justify-self:stretch;max-width:none;text-align:left}}
.ct-report-paper .ct-va-value{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:600px){.ct-report-paper .ct-va-value{flex-direction:column-reverse;align-items:flex-end;gap:4px}}
@media(max-width:480px){.ct-variance-approvals .ct-va-row{grid-template-columns:40px minmax(0,1fr)}.ct-variance-approvals .ct-va-sum{grid-column:2;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;text-align:left}.ct-variance-approvals .ct-va-row>.ct-button,.ct-variance-approvals .ct-va-note{grid-column:2}}
.ct-va-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:14px;font-size:13px;font-weight:650;color:var(--warn-text);white-space:nowrap;border:1px solid var(--warn);background:var(--warn-soft)}
.day-close-layer{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
@media(max-width:600px){.day-close-layer{align-items:flex-end;padding:0}.day-close-layer>.day-close-refusal{width:100%!important;max-width:100%!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}}
.day-close-layer>.day-close-refusal{width:460px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
.day-close-refusal .screen-info-ending{white-space:nowrap}
html[data-theme] body#receptionApp .day-close-layer .day-close-refusal>.modal-head{grid-template-columns:minmax(0,1fr)!important}
.day-close-refusal .day-close-status{margin:0 0 4px;padding:12px 14px;border-radius:12px;font-size:15px;font-weight:650;line-height:1.35;color:var(--hx-text);border:1px solid var(--warn);background:var(--warn-soft)}
.day-close-refusal .day-close-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:52px;border-top:1px solid var(--hx-line)}
.day-close-refusal .day-close-row b{font-weight:650;color:var(--hx-text);overflow-wrap:anywhere}
.day-close-refusal .day-close-row strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--hx-text)}
html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important}
html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions>button{min-height:56px!important;height:auto!important;white-space:normal!important;line-height:1.25!important;margin:0!important}
html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions>[data-role=day-close-go]{grid-column:2!important;order:1!important}
html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions>[data-role=day-close-dismiss]{grid-column:1!important;order:1!important;background:var(--hx-raised)!important;color:var(--hx-text)!important;border:1px solid var(--hx-line)!important;box-shadow:none!important}
@media(max-width:600px){html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions{grid-template-columns:minmax(0,1fr)!important}html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions>[data-role=day-close-go]{grid-column:1!important;order:0!important}html[data-theme] body#receptionApp .day-close-layer .day-close-refusal .day-close-actions>[data-role=day-close-dismiss]{grid-column:1!important;order:1!important}}
/* The card sits between the shift summary and the journal grid, on the summary's edges. */
body.review-redesign .ct-shift-journal-page .ct-variance-approvals { flex:none;margin:0 12px 12px;padding:6px 16px 4px;overflow:visible; }
@media(max-width:767px) { body.review-redesign .ct-shift-journal-page .ct-variance-approvals { margin:0 12px 10px;padding:6px 12px 4px; } }
/* PIN keys on a phone are 78 px high with a 78 px touch zone, in every PIN pad (sign-in, approval,
   session extension, new PIN, migration, legacy manager PIN). Amount and cash count keypads keep their size. Phones lower than 760 px (360x640)
   keep the adaptive 56-78 px: four 78 px rows plus title, field and actions do not fit there (login-phone-keys-busy). */
@media (max-width:430px) and (min-height:760px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-pinpad .ct-pin-keys:not(.ct-amount-keys) { grid-template-rows:repeat(4,78px);gap:8px;align-content:start; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-pinpad .ct-pin-keys:not(.ct-amount-keys) button,
 html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-login .ct-pinpad .ct-pin-keys:not(.ct-amount-keys) button { min-height:78px!important;height:78px!important; }
 html[data-theme] body #modal .reception-dialog.manager-pin-modal .pinpad { grid-auto-rows:78px; }
 html[data-theme] body #modal .reception-dialog.manager-pin-modal .pin-btn { min-height:78px;height:78px; }
}
/* Late booking confirmation (contract late-booking-confirm-2026-11-09): a lane held for a late booking is not started
   without a confirmation. The sheet is its own layer above #modal and above the lower bars. */
.late-booking-layer { position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box; }
.late-booking-layer > .late-booking-confirmation { width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto; }
@media(max-width:600px) { .late-booking-layer { align-items:flex-end;padding:0; }
 .late-booking-layer > .late-booking-confirmation { width:100%;max-width:100%;border-bottom-left-radius:0;border-bottom-right-radius:0; } }
.late-booking-confirmation .late-booking-body:empty { display:none; }
.late-booking-confirmation .screen-info-ending { white-space:nowrap; }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation > .modal-head { grid-template-columns:minmax(0,1fr); }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation .late-booking-actions.reception-dialog-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px; }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation .late-booking-actions.reception-dialog-actions > button { min-height:56px!important /* the shell sets min-height:44px!important on every review-redesign button */;height:auto;white-space:normal;line-height:1.25;margin:0; }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation .late-booking-actions.reception-dialog-actions > button[data-role=late-booking-go] { grid-column:1!important /* the shell spans every non-cancel button */;order:1;background:var(--hx-raised);color:var(--hx-text);border:1px solid var(--hx-line);box-shadow:none; }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation .late-booking-actions.reception-dialog-actions > button[data-role=late-booking-go]:disabled { color:var(--hx-text-3);cursor:progress; }
html[data-theme] body#receptionApp #lateBookingLayer.late-booking-layer .modal.reception-dialog.late-booking-confirmation .late-booking-actions.reception-dialog-actions > button[data-role=late-booking-keep] { grid-column:2!important;order:1; }
.late-booking-confirmation .late-booking-status { margin:0;padding:12px 14px;border-radius:12px;font-size:15px;font-weight:650;line-height:1.35;color:var(--hx-text);border:1px solid var(--hx-st-book);background:color-mix(in srgb,var(--hx-st-book) 12%,var(--hx-panel)); }
.late-booking-confirmation .late-booking-status.is-error { border-color:var(--hx-st-fault);background:color-mix(in srgb,var(--hx-st-fault) 12%,var(--hx-panel)); }
/* The sale on a lane held for a late booking is a secondary action. */
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action.late-held-start:not(:disabled),
html[data-theme] body.review-redesign #visitWorkspace .daily-action.r7-start-action.late-held-start:hover:not([disabled]) { background:var(--hx-raised);border-color:var(--hx-line);color:var(--hx-text);box-shadow:none; }
/* TCS first test (contract tcs-first-test-2026-11-09): mechanic screen. */
#r7Page.tl-page .tl-tabs { align-items:center; }
#r7Page.tl-page .tl-tabs .tl-sp { flex:1; }
#r7Page.tl-page .tcs-sound { display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;background:var(--hx-raised);border:1px solid var(--hx-line);color:var(--hx-text);font-size:14.5px;font-weight:650; }
#r7Page.tl-page .tcs-sound.is-off { color:var(--hx-text-3); }
#r7Page.tl-page .tcs-order-info { display:inline-flex;align-items:center; }
#r7Page.tl-page .tcs-chips { display:flex;flex-wrap:wrap;gap:6px;margin-top:4px; }
#r7Page.tl-page .tcs-chip { display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:12px;font-size:12.5px;font-weight:700;background:var(--hx-raised);border:1px solid var(--hx-line);color:var(--hx-text-2); }
#r7Page.tl-page .tcs-chip.is-league { color:var(--hx-text);border-color:var(--hx-select); }
#r7Page.tl-page .tcs-chip.is-repeat { color:var(--hx-st-fault);border-color:var(--hx-st-fault); }
#r7Page.tl-page .tl-row.is-remind { border-color:var(--hx-st-fault);box-shadow:inset 0 0 0 1px var(--hx-st-fault); }
#r7Page.tl-page .tl-dur .tcs-bell { display:inline-grid;vertical-align:middle;margin-right:6px;color:var(--hx-st-fault); }
#r7Page.tl-page .tl-dur .tcs-bell svg { width:16px;height:16px; }
#r7Page.tl-page .tl-row.is-check .tl-lane { background:var(--hx-primary);color:var(--hx-on-primary); }
#r7Page.tl-page .tcs-check-state { display:grid;gap:0;text-align:center;line-height:1.2; }
#r7Page.tl-page .tcs-check-state b { font-size:14.5px;font-weight:750; }
#r7Page.tl-page .tcs-check-state small { font-size:12px;color:var(--hx-text-2); }
.tcs-reasons { display:flex;flex-direction:column;gap:8px;margin-top:10px; }
.tcs-reason { min-height:48px;justify-content:flex-start;text-align:left;padding:0 14px;background:var(--hx-raised);border:1px solid var(--hx-line);color:var(--hx-text); }
.tcs-reason.is-on { border-color:var(--hx-select);box-shadow:inset 0 0 0 1px var(--hx-select); }
.tcs-node { display:flex;align-items:center;gap:10px; }
.tcs-node select { flex:1;min-height:48px; }
.tcs-reason-sheet input[type=text] { min-height:48px;width:100%;margin-top:10px; }
.tcs-stale-list { display:flex;flex-direction:column;gap:10px; }
.tcs-stale-row { display:grid;gap:4px;padding:10px 12px;border:1px solid var(--hx-line);border-radius:12px; }
.tcs-stale-row small { color:var(--hx-text-2); }
.tcs-stale-acts { display:flex;gap:8px;flex-wrap:wrap;margin-top:4px; }
.tcs-stale-acts .tcs-decide { min-height:48px;flex:1; }
.tcs-stale-acts .tcs-decide.is-on { border-color:var(--hx-select); }
/* Phone: the request panel is full-screen above the bottom navigation, its action bar at the bottom of the window. */
@media (max-width:767px) {
  #r7Page.tl-page .tl-shell.has-panel .tl-panel { position:fixed;inset:0;width:auto;height:100dvh;z-index:55;border:0;border-radius:0; }
  #r7Page.tl-page .tl-panel .tl-panel-acts { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  #r7Page.tl-page .tl-list { padding-bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
}
/* plates 3 / 10 / 30 min at the bottom of the hall; they never cover the tiles, the panel or the bottom bars. */
.tcs-plates { position:fixed;left:0;right:0;bottom:calc(var(--tcs-plates-bottom,72px) + env(safe-area-inset-bottom,0px));z-index:20;display:flex;flex-direction:column;gap:6px;padding:0 12px;pointer-events:none; }
.tcs-plate { pointer-events:auto;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 8px 6px 14px;border-radius:14px;background:var(--hx-panel);border:1px solid var(--hx-st-book);color:var(--hx-text);font-size:15px;font-weight:650; }
.tcs-plate.is-danger { border-color:var(--hx-st-fault);background:color-mix(in srgb,var(--hx-st-fault) 14%,var(--hx-panel)); }
.tcs-plate .tcs-plate-text { flex:1;min-width:0;overflow-wrap:anywhere; }
.tcs-plate button { min-height:44px;min-width:56px;padding:0 14px; }
body.tcs-plates-on .lanes-panel { padding-bottom:calc(var(--tcs-plates-h,72px) + 8px); }
@media (min-width:768px) { .tcs-plates { --tcs-plates-bottom:64px;left:96px;right:auto;width:max-content;max-width:min(560px,var(--tcs-plates-maxw,calc(100vw - 108px))); } .tcs-plate { flex-wrap:wrap; } }
.tcs-report-seg { margin-bottom:12px; }
.tcs-report h3 { margin:16px 0 8px;font-size:18px; }
.tcs-report .r7-kpis { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px; }
.tcs-kpi { display:grid;gap:4px;padding:12px 14px;background:var(--hx-panel);border:1px solid var(--hx-line);border-radius:14px; }
.tcs-kpi .r7-kpi-value { font-size:24px;font-weight:800; }
.tcs-kpi small { color:var(--hx-text-2);font-size:13px; }
.tcs-report-table { width:100%;border-collapse:collapse;margin-top:16px; }
.tcs-report-table th,.tcs-report-table td { padding:10px 12px;text-align:left;border-bottom:1px solid var(--hx-line);font-size:15px; }
@media (max-width:600px) { .tcs-report .r7-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* The false-alarm confirm is red (it closes a request without a repair); inactive until a reason is chosen. */
button[data-role=tcs-false-confirm], button.big.danger[data-role=tcs-false-confirm]:not(:disabled) { background:var(--hx-st-fault) !important;border-color:var(--hx-st-fault) !important;color:#fff !important;box-shadow:none; }
button.big.danger[data-role=tcs-false-confirm]:disabled { background:var(--hx-st-fault) !important;border-color:var(--hx-st-fault) !important;color:#fff !important;opacity:.45 !important; }
/* The lane-panel state pill keeps «Не готова · N мин» on one line on a phone. */
body.review-redesign #visitWorkspace.hall-lane-panel .daily-workspace-title-row .daily-workspace-status { white-space:nowrap; flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }

/* The day report window. Scroll only in the body, stop on a row boundary; on a phone words are never split and the total stays pinned. */
#modalBody.day-report{scroll-snap-type:y mandatory}
#modalBody.day-report table.bill tr{scroll-snap-align:start}
#modalBody.day-report table.bill tr.bill-total{scroll-snap-align:none}
#modalBody.day-report table.bill .dr-unit{white-space:nowrap}
@media(max-width:767px){
 #modalBody.day-report table.bill,#modalBody.day-report table.bill>tbody{display:block;width:100%}
 #modalBody.day-report table.bill tr{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 16px;padding:10px 6px;border-bottom:1px solid var(--line);font-size:18px;line-height:1.3}
 #modalBody.day-report table.bill tr.bill-total{position:sticky;bottom:calc(-1 * var(--dr-pb,16px));z-index:1;padding-block:12px;background:var(--hx-panel);box-shadow:0 -1px 0 var(--line),0 var(--dr-pb,16px) 0 var(--hx-panel)}
 #modalBody.day-report table.bill td{padding:0;border-bottom:0;overflow-wrap:normal;word-break:normal;hyphens:manual}
 #modalBody.day-report table.bill td:first-child:not(:last-child){flex:0 1 auto}
 #modalBody.day-report table.bill td:last-child:not(:first-child){flex:1 1 auto;margin-left:auto;text-align:right}
 #modalBody.day-report table.bill td>.dr-sep{display:none}
 #modalBody.day-report table.bill .dr-part{display:block}
}

/* The lead's-shift mark, the inactive own Confirm, report rows, day rows and the Attention row (from the contract mock). */

.ct-variance-approvals .ct-va-who b .ct-va-mark,.ct-report-paper .ct-va-mark,.bill .ct-va-mark,.so-attn .ct-va-mark{margin-left:8px}
.bill .ct-va-mark{font-size:14px;min-height:28px;padding:0 10px;border-radius:14px}
.ct-report-paper .sv-row.so-closed>:first-child{white-space:nowrap}
.ct-va-mark{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:12px;font-size:12.5px;font-weight:650;line-height:1;vertical-align:2px;white-space:nowrap;color:var(--hx-text-2);border:1px solid var(--hx-line);background:var(--hx-raised)}
.ct-variance-approvals .ct-va-own{display:flex;align-items:center;justify-content:flex-end;gap:6px;justify-self:end}
.ct-variance-approvals .ct-va-own>.ct-button{min-height:48px;min-width:160px}
.ct-variance-approvals .ct-va-own>.ct-button:disabled{opacity:1;cursor:not-allowed;color:var(--hx-text-3);background:transparent;border:1px dashed var(--hx-line);box-shadow:none}
@media(max-width:700px){.ct-variance-approvals .ct-va-own{grid-column:2/-1;justify-self:stretch}.ct-variance-approvals .ct-va-own>.ct-button{flex:1}}
@media(max-width:480px){.ct-variance-approvals .ct-va-own{grid-column:2}}
.ct-report-paper .ct-va-state{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:14px;font-size:13px;font-weight:650;white-space:nowrap;color:var(--warn-text);border:1px solid var(--warn);background:var(--warn-soft)}
.ct-report-paper .ct-va-closer{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:4px 0;text-align:right}
.bill tr.bill-va .bill-va-in{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px}
.bill tr.bill-va .bill-va-label{display:inline-flex;align-items:center;gap:6px}
.bill tr.bill-va .bill-va-icon{display:inline-flex;width:22px;height:22px;color:var(--warn)}
.bill tr.bill-va .bill-va-icon svg{width:22px;height:22px}
html[data-theme] body#receptionApp button.so-attn{font:inherit;color:inherit;text-align:left;background:none;border:0;cursor:pointer;width:100%;padding:0;grid-column:1/-1;min-height:48px!important}
html[data-theme] body#receptionApp button.so-attn strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
button.so-attn .so-attn-end{display:inline-flex;align-items:center;gap:6px}
button.so-attn .so-attn-end .ct-va-mark{margin-left:0}
button.so-attn .so-attn-go{display:inline-flex;color:var(--hx-text-2)}
button.so-attn .so-attn-go svg{width:20px;height:20px}
button.so-attn:focus-visible{outline:2px solid var(--warn);outline-offset:2px}
.bill tr.bill-va-more>td{text-align:right;padding-block:4px}
.bill .bill-va-more-btn{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:44px;min-width:44px;padding:0 4px 0 12px;font:inherit;font-weight:650}
#modal .bill .bill-va-more-btn.ct-button{font-size:16px}
.bill .bill-va-more-btn .bill-va-more-go{display:inline-flex}
.bill .bill-va-more-btn .bill-va-more-go svg{width:20px;height:20px}
.bill tr.bill-va .bill-va-value{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 0;margin-left:auto;text-align:right}
/* the «Not confirmed» rows inside the day report window */
#modalBody.day-report table.bill tr.bill-va .bill-va-value{display:block;text-align:right}
@media(max-width:767px){
 #modalBody.day-report table.bill tr.bill-va>td,#modalBody.day-report table.bill tr.bill-va-more>td{flex:1 1 100%}
 #modalBody.day-report table.bill tr.bill-va .bill-va-in{gap:2px 16px}
 #modalBody.day-report table.bill tr.bill-va .dr-who,#modalBody.day-report table.bill tr.bill-va .dr-sum{display:block}
 #modalBody.day-report table.bill tr.bill-va .dr-sep{display:none}
}
#modalBody.day-report table.bill tr.bill-va .bill-va-value .ct-va-mark{vertical-align:1px}
body.screens-v1 .screen-summary-first .screen-summary-attention-row.so-attn { min-height:48px; }
button.so-attn.screen-summary-attention-row { min-height:48px!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign button.so-attn.screen-summary-attention-row { min-height:48px!important; }
/* The visit card has one green purchase action, matching the Hall panel. */
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-extend-slot > button.primary:not(:disabled) { background:var(--dialog-primary,#157a45);border-color:transparent;color:#fff; }
/* On a phone both lines of the day-window Not confirmed value share the same left edge. */
@media(max-width:767px){ #modalBody.day-report table.bill tr.bill-va .bill-va-value { text-align:left; } }
/* The visit-card footer matches the Hall panel order with Pause, the menu and the green purchase action. */
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-pair-actions.screen-visit-foot { grid-template-columns:minmax(0,1.1fr) 56px minmax(0,1.3fr) !important; align-items:stretch; }
@media(max-width:767px){ html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-pair-actions.screen-visit-foot { grid-template-columns:minmax(0,1.1fr) 56px minmax(0,1.3fr) !important; } }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot { position:relative; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot .hall-menu-wrap { display:flex; position:static; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot .hall-menu { left:0; right:0; bottom:calc(100% + 8px); width:auto; max-width:none; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot .hall-menu-wrap > button[data-role=hall-panel-menu] { width:100%; min-width:56px; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot > * { grid-column:auto !important; grid-row:auto !important; min-width:0; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot > .screen-visit-extend-slot { grid-column:3 !important; }
html[data-theme] body.review-redesign #visitWorkspace.screen-visit .screen-visit-foot .screen-visit-pause-slot > button { padding-inline:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* «без автовыхода» stays on one line in the session chip */
body.review-redesign .ct-session-duration { white-space:nowrap; }
/* on a phone the four Visits tabs share the row (labels may wrap to two lines) instead of scrolling out of sight */
@media(max-width:767px){
 html[data-theme] body.review-redesign .r7-visits-card .r7-tabs { overflow-x:hidden !important; }
 html[data-theme] body.review-redesign .r7-visits-card .r7-tabs .r7-tab { flex:1 1 0 !important; min-width:0 !important; padding:4px 2px !important; white-space:normal !important; line-height:1.1; text-align:center; overflow-wrap:normal; word-break:normal; hyphens:manual; font-size:12.5px; display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
 html[data-theme] body.review-redesign .r7-visits-card .r7-tabs > .screen-info-label { flex:0 0 auto; }
}
/* «Players · N» in the panel body is a count, not a control */
.hall-panel-players-button.is-count { pointer-events:none; cursor:default; }
/* on a phone the score table fits its container, with the total column (Σ) visible */
@media(max-width:480px){
 #visitWorkspace .r7-score-table { min-width:0; table-layout:fixed; font-size:11px; }
 #visitWorkspace .r7-score-table th, #visitWorkspace .r7-score-table td { padding:5px 1px; overflow:hidden; }
 #visitWorkspace .r7-score-table th[scope="row"] { width:56px; max-width:56px; overflow-wrap:anywhere; font-size:10.5px; }
}

.settings-page .sv-event-filter { align-self:flex-end;min-height:44px;margin:0 0 8px auto;max-width:100%; }
.settings-page .sv-event[hidden] { display:none; }

/* Session chip: where it is shown (above 1100px) the time text keeps one line at its natural width, so "no auto sign-out" is never cut into pieces; the employee name gives way first */
@media(min-width:1101px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .session-time { max-width:none;min-width:max-content;flex:none;white-space:nowrap;overflow:visible;hyphens:none;overflow-wrap:normal;word-break:normal; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Operator .session-time .ct-session-duration { white-space:nowrap; }
}

/* Light theme: input fields carry a visible border; inactive buttons keep a button shape */
html[data-theme=light] body.review-redesign .ct-field input,html[data-theme=light] body.review-redesign .ct-login-ref { border-color:#8793a3; }
html[data-theme=light] body#receptionApp.reception-shell.review-redesign :is(.ct-button,.ct-primary):disabled:not([aria-pressed=true]) { opacity:1!important;background:var(--ht-raised-2)!important;color:#5b6675!important;box-shadow:inset 0 0 0 1px #b9c2cd!important; }

/* Hall panel progress header: the title and the remaining time never break inside a phrase; the time moves to its own line when the row is narrow */
#visitWorkspace .hall-panel-progress-title { flex-wrap:wrap;row-gap:2px; }
#visitWorkspace .hall-panel-progress-title strong,#visitWorkspace .hall-panel-progress-title > span { white-space:nowrap; }
/* the sale of a user without the right to sell is grey and inert; the one (i) explains it. */
#visitWorkspace.is-sale-denied > :not(.daily-workspace-title-row):not([data-role="sale-rights-info"]) { opacity:.45;filter:grayscale(.6); }
#visitWorkspace.is-sale-denied .screen-muted, #visitWorkspace.is-sale-denied .screen-opening-fields > .screen-muted { display:none; }
#visitWorkspace.is-sale-denied .screen-opening-fields .screen-info-trigger { display:none; }

/* Cash / Card sit in the pinned footer of the sale, above the total: never scrolled out of sight. */
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .screen-opening-payment { flex:1 0 100%;width:100%;margin:0 0 8px; }

/* portrait hall - taller tiles fill the height; the content keeps its size, the extra room is at the bottom of the tile. */
#lanes.is-hall-tall .daily-lane-pair { grid-template-rows:calc(var(--hall-tile) + var(--hall-extra,0px))!important; }
#lanes.is-hall-tall .daily-lane { height:calc(var(--hall-tile) + var(--hall-extra,0px))!important;aspect-ratio:auto!important; }
html[data-theme] body.review-redesign #lanes.is-hall-tall.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity]:not(.is-dense) { padding-bottom:calc(max(20px,var(--hall-tile)*.12) + var(--hall-extra,0px)); }

/* the header tariff chip below 900 px: short form «Будний · до 04:00»; the full text is under the (i) and the title. */
@media (max-width:899px) {
  body.review-redesign .tc-chip .tc-chip-level, body.review-redesign .tc-chip .tc-chip-labels > span[aria-hidden="true"] { display:none; }
}

/* the sale footer - the total row, then the secondary «+ Игрок» at the left and the green start button at the right. */
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .screen-opening-summary { flex:1 0 100%; }
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions > .screen-add-player { flex:0 0 auto;min-width:96px;min-height:56px;padding:0 20px;border-radius:12px; }

/* the empty receipt panel is an icon, not a sentence. */
.ct-receipt-empty .svgi { width:32px;height:32px;opacity:.5; }

/* the opener line of the shift card is never broken by letters: it wraps at spaces only and is shown in full; below 900 px an empty receipt panel (#12) is not a block under the table. */
body.review-redesign .ct-shift-overview .ct-shift-card-title small { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;word-break:normal;max-width:100%; }
@media(max-width:900px) { body.review-redesign .ct-selected-receipt:has(> .ct-receipt-empty) { display:none; } }

/* the exit entry of the More sheet is red. */
body.review-redesign .r7-nav-more-item.is-danger { color:var(--ht-danger,#ff6b6b); }

/* one sheet - the grid of lane buttons, the summary card, Cancel + the green Move. */
#visitWorkspace.hall-transfer-panel .hall-transfer-from { margin-left:10px;color:var(--hx-text-3);font-size:13px;font-weight:600;white-space:nowrap; }
#visitWorkspace.hall-transfer-panel .hall-transfer-hint { margin:4px 0 12px; }
#visitWorkspace.hall-transfer-panel .hall-transfer-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px; }
#visitWorkspace.hall-transfer-panel .hall-transfer-cell { box-sizing:border-box;min-height:56px;padding:0 12px;border-radius:12px;border:1px solid var(--hx-line,rgba(255,255,255,.14));background:var(--hx-raised,rgba(255,255,255,.04));color:var(--hx-text,#eff1f6);font:inherit;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center; }
#visitWorkspace.hall-transfer-panel button.hall-transfer-cell[aria-pressed="true"] { border:2px solid var(--hx-accent,#27c4f4);background:color-mix(in srgb,var(--hx-accent,#27c4f4) 14%,transparent);color:var(--hx-accent,#27c4f4); }
html[data-theme="light"] #visitWorkspace.hall-transfer-panel button.hall-transfer-cell[aria-pressed="true"] { color:var(--hx-text); }
#visitWorkspace.hall-transfer-panel .hall-transfer-cell.is-unavailable { justify-content:space-between;opacity:.55;color:var(--hx-text-3); }
#visitWorkspace.hall-transfer-panel .hall-transfer-cell.is-unavailable .screen-info-label { flex:none; }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary { display:grid;gap:0;padding:4px 16px;border-radius:14px;background:var(--hx-raised,rgba(255,255,255,.04));margin-bottom:12px; }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > div { display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1px solid var(--hx-line,rgba(255,255,255,.1)); }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > div:last-child { border-bottom:0; }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > div > span { color:var(--hx-text-2); }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > div > b { text-align:right;min-width:0;overflow-wrap:anywhere; }
#visitWorkspace.hall-transfer-panel .hall-transfer-actions { display:flex;gap:12px; }
#visitWorkspace.hall-transfer-panel .transfer-recovery-actions { flex-wrap:wrap;margin-top:12px; }
#visitWorkspace.hall-transfer-panel .transfer-recovery-reason { display:grid;gap:8px;margin-top:12px; }
#visitWorkspace.hall-transfer-panel .transfer-recovery-reason textarea { box-sizing:border-box;width:100%;min-height:76px;padding:10px 12px;border:1px solid var(--hx-line);border-radius:10px;background:var(--hx-raised);color:var(--hx-text);font:inherit;resize:vertical; }
#visitWorkspace.hall-transfer-panel .hall-transfer-actions > button { flex:1 1 0;min-height:56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-transfer-panel .transfer-recovery-actions > button { flex:1 1 135px;min-height:56px;font-size:14px;line-height:1.3;white-space:normal; }

/* The transfer summary includes preserved pause and fault auto-actions, followed by the retarget notice. */
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > p.hall-transfer-fact { margin:0;padding:8px 0 6px;font-size:14px;line-height:1.35;color:var(--hx-text-2); }
#visitWorkspace.hall-transfer-panel .hall-transfer-summary > p.hall-transfer-fact.is-warning { color:var(--hx-st-warn,var(--hx-text)); }
#visitWorkspace.hall-transfer-panel .hall-transfer-retarget { margin:8px 0 0;font-size:14px;color:var(--hx-st-warn,var(--hx-text)); }

/* «Players · N» and «Finish early» are two equal cells with the same inner padding, not a narrow flush cell beside a wide one. */
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations:has(> .hall-panel-end) { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations > .hall-panel-players-button.is-count { min-height:56px;padding:6px 12px;justify-content:center;border-radius:12px;background:color-mix(in srgb,var(--hx-text) 8%,var(--hx-panel)); }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations > .hall-panel-end { min-width:0;min-height:56px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations > .hall-panel-end > button { text-align:center;justify-content:center; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations > .hall-panel-end { grid-template-columns:minmax(0,1fr) 44px; }
html[data-theme] body.review-redesign #visitWorkspace.hall-lane-panel .hall-panel-operations > .hall-panel-end > button { padding-inline:8px;white-space:normal;overflow-wrap:anywhere;line-height:1.2; }

/* On a phone the «My receipts» rows are cards of stacked cells - the fixed 48 px row height of the table made them overlap. */
@media(max-width:767px) {
  body.review-redesign .ct-own-receipts .r7-table tr.is-action { height:auto;min-height:44px; }
}
/* New booking footer: both actions are real buttons in both themes; the create label stays on one line and an unavailable create keeps its button shape */
html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar > .reception-dialog-cancel { background:rgba(150,190,255,.14); }
html[data-theme=light] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar > .reception-dialog-cancel { background:#e6ebf1; }
html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar .r7-booking-submit > button { white-space:nowrap;min-width:max-content; }
html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar .r7-booking-submit > button:disabled { opacity:1!important;background:rgba(150,190,255,.14)!important;color:#9fb0cb!important;box-shadow:inset 0 0 0 1px rgba(150,190,255,.3)!important; }
html[data-theme=light] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.wizard-bar .r7-booking-submit > button:disabled { background:#e6ebf1!important;color:#5b6675!important;box-shadow:inset 0 0 0 1px #b9c2cd!important; }


/* Queue "Recently": the restore action is a 44px target and the row reads at the group-name size */
html[data-theme] body.screens-v1 .r7q-recent-row { font-size:14px; }
html[data-theme] body.screens-v1 .r7q-recent-row button { min-height:44px;min-width:44px;padding:0 10px;font-size:15px;font-weight:700; }

/* Phone header: a long page title (the mechanic log) stays on one line; the unused fifth slot gives its width to the title */
@media(max-width:480px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(> .tc-chip)):not(:has(#r7HeaderInfo:not([hidden]))) { grid-template-columns:36px minmax(126px,max-content) 44px 44px 0 44px; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7HeaderTitle { white-space:nowrap!important;font-size:15px;letter-spacing:-.01em;min-width:max-content;overflow:visible; }
}

/* Locked section: the "Rights needed" sheet */
.r7-locked-sheet { display:grid;justify-items:center;gap:8px;max-width:420px;margin:48px auto;padding:28px 24px;border:1px solid var(--hx-line);border-radius:18px;background:var(--hx-panel);text-align:center; }
.r7-locked-sheet-icon svg { width:32px;height:32px;color:var(--hx-text-3); }
.r7-locked-sheet h3 { margin:0;font-size:18px; }
.r7-locked-sheet p { margin:0;font-size:15px;color:var(--hx-text-2); }
.r7-locked-sheet .r7-locked-sheet-help { font-size:14px;color:var(--hx-text-3); }

/* Report date fields: the picker stays native, the text is the one written form of dates */
.report-date-field { position:relative;display:inline-flex;align-items:center;min-width:0; }
.report-date-field > input[type=date]::-webkit-datetime-edit { color:transparent; }
.report-date-field > input[type=date]:focus::-webkit-datetime-edit { color:transparent; }
.report-date-field > input[type=date]:disabled + .report-date-text { opacity:.5; }
.report-date-field > .report-date-text { position:absolute;left:9px;right:34px;top:50%;transform:translateY(-50%);overflow:hidden;white-space:nowrap;text-overflow:clip;pointer-events:none;font-size:16px;font-weight:600;line-height:1.2;color:var(--hx-text,currentColor); }

/* Queue, selected group: at 1100px and wider every action fits one row (secondary and primary together); below that - tablet and phone - the primary takes its own row and the four secondary actions share the next one */
body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions { flex-wrap:wrap;gap:6px; }
body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > button,body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-later-control > button { padding:0 10px;font-size:15px; }
@media(min-width:1100px) { body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions { flex-wrap:nowrap; } }
@media(max-width:1099px) {
 body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions { display:flex;width:100%;flex-wrap:wrap; }
 body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-seat-control { order:-1;flex:1 1 100%; }
 body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > button,body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-later-control { flex:1 1 0;min-width:0; }
@media(max-width:767px) { body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions :is(button,.r7q-later-control > button) svg { display:none; } }
 body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > button,body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-later-control > button { padding:0 6px;font-size:14px;gap:4px;white-space:nowrap; }
}

@media(min-width:768px) and (max-width:1099px) { body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > button,body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-later-control { flex:1 1 calc(50% - 6px); } }
@media(min-width:768px) and (max-width:1099px) { body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-later-control > button { width:100%; } }

/* Queue: a toast never covers "+ В очередь" - above the list at the bottom on desktop, above the footer and the navigation on a phone */
body.screens-v1.review-redesign:has(#r7Page .r7q-layout) #toast { top:auto;bottom:16px; }
body.screens-v1.review-redesign:has(#r7Page .r7q-layout) #toast:not(.error) { pointer-events:none; }
body.screens-v1.review-redesign:has(#r7Page .r7q-layout) #toast.error { pointer-events:auto; }
@media(max-width:767px) { body.screens-v1.review-redesign:has(#r7Page .r7q-layout) #toast { bottom:calc(150px + env(safe-area-inset-bottom,0px)); } }
/* One '+ В очередь' per width: the header one on desktop and tablet, the footer one on a phone; the list-head copy is not shown */
@media(min-width:768px) { body.screens-v1 #r7Page .r7q-inline-add { display:none!important; } }

/* Queue lane tiles: the group tag takes at most two lines; the primary seat action fills its row on tablet and phone */
body.screens-v1 #r7Page .r7q-lane-group { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;line-height:1.15;overflow-wrap:anywhere; }
@media(max-width:1099px) { body.screens-v1 #r7Page .r7q-row.is-selected .r7q-actions > .r7q-seat-control > button { width:100%; } }

/* App header slot: the queue puts its estimate and its one add button here from 768 up; empty means nothing is drawn */
#r7HeaderSlot { display:none; }
@media(min-width:768px) {
 html[data-theme] body.review-redesign .topbar #r7HeaderSlot:not(:empty) { display:inline-flex;align-items:center;gap:8px;margin-left:8px;margin-right:24px;min-width:0;max-width:48vw;flex:0 1 auto; }
 html[data-theme] body.review-redesign .topbar #r7HeaderSlot .r7q-new-estimate { display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--hx-text-2);white-space:nowrap;flex:none; }
}
#r7HeaderSlot .r7q-est-short { display:none; }
@media(min-width:768px) and (max-width:1199px) { html[data-theme] body.review-redesign .topbar #r7HeaderSlot .r7q-est-full { display:none; } html[data-theme] body.review-redesign .topbar #r7HeaderSlot .r7q-est-short { display:inline; } }
@media(min-width:768px) {
 html[data-theme] body.review-redesign .topbar #r7HeaderSlot .r7q-header-add { display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border-radius:12px;background:rgba(150,190,255,.14);font-weight:700;font-size:15px;white-space:nowrap;flex:none; }
 html[data-theme=light] body.review-redesign .topbar #r7HeaderSlot .r7q-header-add { background:#e6ebf1; }
 body.screens-v1 #r7Page .r7q-page-head { display:none; }
}
@media(min-width:768px) and (max-width:1399px) { html[data-theme] body.review-redesign .topbar #r7HeaderSlot .r7q-new-estimate .screen-info-trigger { display:none; } }

/* Queue lane block on a phone: a slim strip - the pager is just dots, the legend is one line, tiles are compact */
@media(max-width:767px) {
 body.screens-v1 #r7Page .r7q-page-dots button { font-size:0;min-width:24px;min-height:44px;padding:0;border:0;background:transparent; }
 body.screens-v1 #r7Page .r7q-page-dots button::after { content:'';display:block;width:8px;height:8px;margin:auto;border-radius:50%;background:var(--hx-text-3,#7a8aa6); }
 body.screens-v1 #r7Page .r7q-page-dots button[aria-pressed=true]::after { width:18px;border-radius:6px;background:var(--hx-select,#37e2f5); }
 body.screens-v1 #r7Page .r7q-legend { flex-wrap:wrap;justify-content:flex-start;gap:4px 10px;font-size:11px;overflow:visible; }
 body.screens-v1 #r7Page .r7q-legend > span { white-space:nowrap; }
 body.screens-v1 #r7Page .r7q-lane:has(.r7q-lane-group) { min-height:104px; }
}
/* Queue on a tablet: one column, the lane block spans the width with four tiles per row, so there is no empty column under the right side */
@media(min-width:768px) and (max-width:1099px) {
 body.screens-v1 #r7Page .r7q-layout { display:flex;flex-direction:column; }
 body.screens-v1 #r7Page .r7q-aside,body.screens-v1 #r7Page .r7q-list-column { width:100%; }
 body.screens-v1 #r7Page .r7q-aside { order:-1; }
 body.screens-v1 #r7Page .r7q-pairs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.screens-v1 #r7Page .r7q-pair { justify-content:center; }
 body.screens-v1 #r7Page .r7q-lane:has(.r7q-lane-group) { min-height:120px; }
}

/* Guests (rows 21, 22): from 768 up the guest search is a field in the app header, and "New guest" sits in the bottom corner like the other creation actions */
@media(min-width:768px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search.is-guest-search { display:flex;align-items:center;width:min(300px,34vw)!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;overflow:visible; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign .topbar #r7Search.is-guest-search .r7-search-toggle { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search.is-guest-search:not(.is-open) .r7-search-input, html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #r7Search.is-guest-search.is-open .r7-search-input { display:block!important;position:static!important;width:100%!important;max-width:none!important;min-height:44px;padding:0 12px!important;box-sizing:border-box; }
 html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-primary[data-role="guest-new"],html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-new { position:fixed;right:24px;bottom:20px;z-index:30; }
 html[data-theme] body.review-redesign.screens-v1 #r7Page .guest-live-directory-footer:has(.guest-live-pagination) .guest-live-new { position:static; }
}

.report-contract-comparison-was { margin-left:8px;color:var(--hx-text-3,#8aa0bd);font-size:13px;font-weight:600; }

/* Mechanic log, light theme: the (i) in a request row has no white square behind it */
html[data-theme=light] body.screens-v1 #r7Page.tl-page :is(.screen-info-trigger,.tl-info) { background:none!important;box-shadow:none!important;border-color:transparent!important; }

/* Summary, "Needs attention": every row spans the card, so a chevron ends its own row and all dividers have the same width */
body.screens-v1 .screen-summary-first .r7-insights > * { grid-column:1 / -1;width:100%;box-sizing:border-box; }

/* Bookings, a window that is not tall (tablet or laptop landscape): the filters and the controls take less height so all eight lanes fit above the footer */
@media(min-width:768px) and (max-height:900px) {
 html[data-theme] body.screens-v1 #r7Page .bq-book-filters > button { min-height:44px; }
 html[data-theme] body.screens-v1 #r7Page .bq-book-filters { margin-block:0; gap:8px; }
 html[data-theme] body.screens-v1 #r7Page .r7-page-head:has(.bq-book-days) { padding-block:0; min-height:0; margin-bottom:0; }
 body.screens-v1 #r7Page .bq-book-row { min-height:50px; }
 body.screens-v1 #r7Page .bq-book-lane { padding-block:3px; }
}

/* New booking on a tablet (768-1099): the panel is a sheet over the timeline across the whole content width; the timeline underneath is not squeezed; the lane chips keep their full size; the cross and Cancel close it. From 1100 up an existing booking stays in the side panel; a new booking is a two-column sheet (below). */
@media(min-width:768px) and (max-width:1099px) {
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) { --booking-panel-width:0px; }
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal) #r7Page .bq-book-scroll { width:100%!important; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal:not(.fullscreen):not(.wide) { width:calc(100vw - 84px)!important;max-width:none!important; }
 html[data-theme] body.review-redesign #modal:has(.bookings-modal) #modalClose { display:inline-flex!important; }
}

/* Queue rows on a tablet (768-1099): the list spans the width, so the estimate stays beside the name as on desktop */
@media(min-width:768px) and (max-width:1099px) {
 body.screens-v1 #r7Page .r7q-row:not(.is-selected) { grid-template-columns:minmax(0,1fr) minmax(140px,200px) auto; }
 body.screens-v1 #r7Page .r7q-row:not(.is-selected) .r7q-row-main { grid-column:1;grid-row:1; }
 body.screens-v1 #r7Page .r7q-row:not(.is-selected) > .r7q-estimate { grid-column:2;grid-row:1;margin-left:0; }
 body.screens-v1 #r7Page .r7q-row:not(.is-selected) > .r7q-actions { grid-column:3;grid-row:1; }
}

/* Queue on a phone (E7): the free lanes and the estimate are in the footer beside the add button, the lane strip is slimmer and its legend does not repeat the free count */
@media(max-width:767px) {
 body.screens-v1 #r7Page .r7q-legend .glyph-free { display:none; }
 body.screens-v1 #r7Page .r7q-hall-head .r7q-free-count { display:none; }
 body.screens-v1 #r7Page .r7q-footer-free { display:block;color:var(--hx-text-2);font-size:12px; }
}

/* New booking from 1100 up: a sheet over the timeline across the content width, below the app header, in two columns - start, lane, duration, guests, tariff model and games on the left; name, phone and comment on the right; the footer stays pinned. The form fits at 1280x800 and 1366x768 without scrolling. */
@media(min-width:1100px) {
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal:not(.booking-is-edit)) { --booking-panel-width:0px; }
 body.screens-v1:has(#modal:not([hidden]) .bookings-modal:not(.booking-is-edit)) #r7Page .bq-book-scroll { width:100%!important; }
 html[data-theme] body.review-redesign #modal .reception-dialog.modal.bookings-modal:not(.booking-is-edit):not(.fullscreen):not(.wide) { width:calc(100vw - 84px)!important;max-width:none!important; }
 html[data-theme] body.review-redesign #modal:has(.bookings-modal:not(.booking-is-edit)) #modalClose { display:inline-flex!important; }
 html[data-theme] body.review-redesign #modal:has(.bookings-modal:not(.booking-is-edit)) { top:76px!important; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form { grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:none!important;column-gap:24px;align-content:start; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > * { grid-column:1!important;grid-row:auto!important; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-day-input { position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-two { grid-column:2!important;grid-row:1 / span 2!important; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-field:has(textarea) { grid-column:2!important;grid-row:3 / span 2!important;align-self:start; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form .r7-booking-price-models { grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:end; }
}

/* New booking: "Games each" is shown only for the guest-game model; the deposit mark is a paid toggle and an amount; the right column takes it under the comment */
body.review-redesign #modal .bookings-modal .r7-booking-price-models > [hidden] { display:none!important; }
body.review-redesign #modal .bookings-modal .r7-booking-price-models:has(> [hidden]) { grid-template-columns:minmax(0,1fr)!important; }
body.review-redesign #modal .bookings-modal .r7-booking-deposit-row { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center; }
body.review-redesign #modal .bookings-modal .r7-booking-deposit-toggle { min-height:48px; }
body.review-redesign #modal .bookings-modal .r7-booking-deposit-toggle[aria-pressed=true] { border-color:var(--hx-primary); }
@media(min-width:1100px) {
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal:not(.booking-is-edit) .r7-booking-form > .r7-booking-deposit { grid-column:2!important;grid-row:5 / span 2!important;align-self:start; }
}

/* New booking, guest-game model: the duration chips are replaced by an estimate in minutes under "Games each"; a price line that has no price is not shown */
body.review-redesign #modal .bookings-modal .r7-booking-form > .r7-booking-duration[hidden],body.review-redesign #modal .bookings-modal .r7-booking-game-minutes[hidden],body.review-redesign #modal .bookings-modal .r7-booking-models .seg-btn [hidden] { display:none!important; }
body.review-redesign #modal .bookings-modal .r7-booking-game-minutes { display:block;color:var(--hx-text-2);font-size:12px; }

/* New booking: the guest stepper has no plate around it, and the deposit is a label like name and phone */
html[data-theme] body.review-redesign #modal .bookings-modal .r7-booking-guest-tariff { border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important; }

/* Booking details: a card line that does not fit is not shown; the guests and the deposit stand in one row, the price (when there is one) under them, from 1101 px */
body.screens-v1 .bq-book-event[data-tight] > small { display:none; }
@media(min-width:1101px) {
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-guest-count]) { grid-column:1;grid-row:3;align-self:start; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-deposit]) { grid-column:2;grid-row:3;align-self:start; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-quote]) { grid-column:1 / -1;grid-row:4;align-self:start; }
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-guest-count],[data-booking-deposit],[data-booking-quote]) > span:first-child { min-height:24px; }
}
/* Up to 1100 the details are one column, field after field, with room between the read-only fields */
@media(max-width:1100px) {
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-guest-count],[data-booking-deposit],[data-booking-quote]) { margin-bottom:10px; }
}


/* Details: the (i) beside the deposit caption keeps its touch target but does not make the caption taller than the guests caption */
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal.booking-is-edit .r7-booking-form > .r7-booking-field:has([data-booking-deposit]) > span:first-child .screen-info-trigger { margin-block:-10px; }

/* the counted total above the phone keypad, a unit that sits on the number's baseline, sums that fit the
   tablet card, and a toast that does not lie on the buttons of the shift bar. */
body.review-redesign .ct-count-total { display:none; }
@media(max-width:599px) {
  body.review-redesign .ct-count-keyboard .ct-count-total { display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0 4px 6px;font-size:14px;color:var(--ht-ink-2); }
  body.review-redesign .ct-count-keyboard .ct-count-total b { font-size:17px;color:var(--ht-ink); }
  body.review-redesign .ct-count-records>.ct-count-summary { display:none; }
  body.review-redesign .ct-count-keyboard .ct-amount>span { white-space:normal; }
  body.review-redesign .ct-count-keyboard .ct-amount>small { align-self:center;font-size:15px; }
}
@media(min-width:600px) and (max-width:1100px) {
  body.review-redesign .ct-denom-row { grid-template-columns:minmax(64px,max-content) minmax(0,1fr) fit-content(38%); }
  body.review-redesign .ct-denom-stepper .ct-button { min-width:44px; }
  body.review-redesign .ct-denom-stepper .ct-button:nth-child(2) { min-width:0;white-space:normal;font-size:clamp(13px,1.65vw,18px); }
  body.review-redesign .ct-denom-row>b:last-child { font-size:clamp(13px,1.65vw,18px);white-space:normal;overflow-wrap:anywhere; }
}
@media(min-width:768px) { body.review-redesign:has(.ct-shift-bar) #toast:is(.error,:not(.error)) { top:76px;bottom:auto;right:16px;left:auto;max-width:min(420px,calc(100vw - 120px)); } }
@media(max-width:767px) { body.review-redesign:has(.ct-shift-bar) #toast:is(.error,:not(.error)) { top:112px;bottom:auto;right:12px;left:12px;width:auto;max-width:none; } }

/* «Cancel» beside the primary button in the footer of the PIN step (phone and tablet). */
body.review-redesign .ct-login-footer { display:flex;gap:10px;align-items:stretch; }
body.review-redesign .ct-login-footer .ct-primary { flex:1 1 auto;width:auto;justify-content:center; }
body.review-redesign .ct-login-footer .ct-login-cancel { flex:0 0 34%;justify-content:center;margin-right:0;min-height:52px; }
body.review-redesign .ct-login-footer .ct-login-cancel[hidden] { display:none; }
/* Walk: room between the rows of the booking forms up to 1100 px, a caption's (i) keeps its target without making the caption taller, the guests-arrived label stays on one line on a phone */
@media(max-width:1100px) {
 html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-form { row-gap:12px; }
}
html[data-theme] body#receptionApp.review-redesign #modal .bookings-modal .r7-booking-form > .r7-booking-field > span:first-child .screen-info-trigger { margin-block:-10px; }
@media(max-width:480px) {
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > .r7-booking-arrived:not(.primary) { white-space:nowrap;min-width:max-content!important;padding-inline:6px; }
 html[data-theme] body#receptionApp.review-redesign #modal .reception-dialog.modal.bookings-modal #wizardBar.reception-dialog-actions > button:not(.primary) { font-size:14px;padding-inline:6px; }
}

/* one focus ring (the selected row only); a disabled main button keeps its button shape - a muted filled one with a border. */
body.review-redesign .ct-denom-stepper:focus-within:not(.is-selected) { box-shadow:none; }
html[data-theme] body#receptionApp.reception-shell.review-redesign :is(.ct-shift-bar,.ct-approval,.ct-login,.ct-login-footer) .ct-primary:disabled { opacity:1!important;background:color-mix(in srgb,var(--ht-ink) 16%,var(--ht-panel-solid,var(--ht-panel)))!important;color:var(--ht-ink-2)!important;border:1px solid var(--ht-line-2)!important;box-shadow:none; }

/* on a wide screen the operator's name in the header chip is not cut («Старший смены О…») and the auto sign-out text stays on one line. */
@media(min-width:1100px) {
  html body #r7Operator { max-width:440px; }
  html body #r7Operator .r7-operator-text { max-width:240px; }
}

/* «Remove» in the queue reaches 4.5:1 in both themes (it was 4.1 dark / 3.3 light). */
html[data-theme] body.screens-v1 #r7Page .r7q-actions .r7q-remove:not(:disabled) { color:#ff9c8c!important; }
html[data-theme="light"] body.screens-v1 #r7Page .r7q-actions .r7q-remove:not(:disabled) { color:#9c1a2b!important; }

/* on a phone the queue's header group («New group ≈ N min» + «Add to queue») was clipped to a 1 px box that still sat at -170..32 px with a
   focusable (i) inside; the same facts are in the bottom bar, so the group is not rendered on a phone. */
@media(max-width:767px) { .r7q-page-head .r7-page-actions { display:none!important; } }
/* New booking: a model that cannot be planned is muted, its (i) explains why */
body.review-redesign #modal .bookings-modal .r7-booking-models .seg-btn.is-unavailable { opacity:.5;cursor:not-allowed; }
body.review-redesign #modal .bookings-modal .r7-booking-norm-help { display:inline-flex;align-items:center; }


/* a surplus is not an error (a neutral warm tone, a shortage keeps the danger tone); the breakdown ends with a bold expected total. */
body.review-redesign .ct-count-result .ct-surplus { background:color-mix(in srgb,var(--ht-play,#ffbf3c) 16%,transparent);color:var(--ht-ink); }
body.review-redesign .ct-expected-breakdown .ct-expected-total { margin-top:6px;padding-top:6px;border-top:1px solid var(--ht-line); }
body.review-redesign .ct-expected-breakdown .ct-expected-total * { font-weight:800; }

/* the section the «Rights needed» sheet is about. */
.r7-rights-section { margin:0 0 6px;font-size:18px; }

/* on a phone a visit tab is never narrower than its widest word (the label lay outside the button by 5 px on both sides). */
@media(max-width:600px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign .r7-visits-card .r7-tabs .r7-tab { flex:1 1 auto!important;min-width:min-content!important;padding-inline:6px!important; }
}
/* the late badge ("+N min") reaches 4.5:1 in both themes with the same values as Remove in the queue; the shared red token is not changed. */
html[data-theme] body.screens-v1 #r7Page .bq-book-late-badge { color:#ff9c8c; }
html[data-theme="light"] body.screens-v1 #r7Page .bq-book-late-badge { color:#9c1a2b; }

/* the phone booking card already states the lateness ("Опаздывает · N мин"); it takes the same two values as the timeline badge in both themes, and the conflict line keeps its own colour. */
html[data-theme] body.screens-v1 .bq-book-mobile-details .bq-book-mobile-late { color:#ff9c8c; }
html[data-theme="light"] body.screens-v1 .bq-book-mobile-details .bq-book-mobile-late { color:#9c1a2b; }


/* the wrong-code message reaches 4.5:1 on the card in both themes (it was amber on white). */
html[data-theme] body #terminal-pairing-overlay .tp-msg.error { color:#ff9c8c; }
html[data-theme="light"] body #terminal-pairing-overlay .tp-msg.error { color:#9c1a2b; }
/* on a phone the header grid keeps an empty 0 px track for the info icon; the "PIN off" mark sits in that track and lay over the operator avatar. When the mark is shown the track is a real 44 px cell, so both icons are whole, 44 px and clear of each other. */
@media(max-width:819px) {
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar:not(:has(> .tc-chip)):has(#r7PinOff:not([hidden])):not(:has(#r7HeaderInfo:not([hidden]))) { grid-template-columns:36px minmax(126px,max-content) 44px 44px 44px 44px; }
}

/* The whole shift screen */
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-shift-journal-page .ct-shift-overview .ct-shift-card-title { grid-column:1/-1!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-shift-overview :is(.sv-row,.ct-shift-kv) { align-self:start; justify-content:flex-start!important; align-content:flex-start!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-shift-journal-grid.ct-no-receipt-panel { grid-template-columns:minmax(0,1fr)!important; }
html[data-theme] body#receptionApp.reception-shell .topbar #hallEquipment[hidden] { display:none!important; }
html[data-theme] body#receptionApp.reception-shell.review-redesign .ct-movements > .ct-journal-own:first-child { border-top:0!important;margin-top:0!important;padding-top:0!important; }

/* The unknown-only equipment chip is an icon on a narrow header (<=820): the words stay in aria-label and title */
@media(max-width:820px) {
 html[data-theme] body#receptionApp.reception-shell .topbar #hallEquipment.is-unknown :is(.hall-equipment-state,.hall-equipment-short,.hall-equipment-info) { display:none!important; }
 html[data-theme] body#receptionApp.reception-shell.review-redesign[data-navigation] .topbar #hallEquipment.is-unknown#hallEquipment,
 html[data-theme] body#receptionApp.reception-shell .topbar #hallEquipment.is-unknown#hallEquipment { width:44px!important;min-width:44px!important;max-width:44px!important;padding-inline:0!important;justify-content:center!important;margin-inline:0!important; }
}

html[data-theme] body#receptionApp.review-redesign #hallScaleControls #hallQuickButtons #hallQuickEdit {
  flex:0 0 76px;
  box-sizing:border-box;
  width:76px;
  min-width:76px!important;
  height:56px;
  min-height:56px!important;
  border-radius:12px;
  border:1px solid var(--hx-line-strong)!important;
  background:var(--hx-raised)!important;
}
body.review-redesign #hallScaleControls #hallQuickButtons [data-quick-action="parked"] > span:last-child {
  font-size:10px;
  letter-spacing:-.2px;
  white-space:nowrap;
}
body.review-redesign #hallScaleControls #hallQuickButtons [data-quick-action="parked"] { padding-inline:1px; }
body.review-redesign #visitWorkspace.hall-transfer-panel:not(:has(.hall-transfer-grid)) .daily-workspace-head {
  margin-inline:0;
  padding-inline:0;
}

body.review-redesign .post-pay-open:not([hidden]) {
  min-height:44px;
  padding:8px 12px;
  border:1px solid var(--hx-line-strong);
  border-radius:12px;
  color:var(--hx-text);
  background:var(--hx-raised);
}
body.review-redesign #visitWorkspace.screen-opening .screen-opening-actions:has(> .post-pay-open:not([hidden])) > .post-pay-open {
  flex:1 0 100%;
}
body.review-redesign .post-pay-setting-label {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  font-weight:700;
}
body.review-redesign .post-pay-setting-label input { width:24px;height:24px; }
body.review-redesign .post-pay-unpaid {
  display:grid;
  gap:12px;
  padding:12px;
}
body.review-redesign .post-pay-unpaid-row {
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--hx-line);
  border-radius:12px;
  background:var(--hx-panel);
}
body.review-redesign .post-pay-unpaid-row > header {
  display:flex;
  justify-content:space-between;
  gap:8px;
}
body.review-redesign .post-pay-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
body.review-redesign .post-pay-actions button { min-height:44px; }
body.review-redesign .post-pay-message:empty { display:none; }
body.review-redesign .post-pay-resolve > label { display:grid;gap:4px; }
body.review-redesign .post-pay-resolve select { min-height:44px; }
body.review-redesign [data-role="close-deposit-decisions"] :is(h3,p) { margin:0; }
body.review-redesign [data-role="close-deposit-decisions"] header { overflow-wrap:anywhere; }
body.review-redesign [data-role="close-deposit-decisions"] header > b { flex:none;white-space:nowrap; }
body.review-redesign [data-role="close-deposit-form"] { display:grid; gap:8px; min-inline-size:0; }
body.review-redesign [data-role="close-deposit-form"] label { display:flex; align-items:center; gap:8px; min-height:44px; }
body.review-redesign .post-pay-report-details { margin:4px 0 0;padding-inline-start:1.2em; }
body.review-redesign .post-pay-dialog-layer { z-index:70; }
body.review-redesign:has(.post-pay-dialog-layer .post-pay-shift-blocker) #modal:has([data-role="booking-deposit"]) { z-index:71; }
body.review-redesign .post-pay-dialog {
  display:flex;
  flex-direction:column;
  width:min(100%,640px);
  max-height:calc(100dvh - 24px);
}
body.review-redesign .post-pay-dialog .modal-body { min-height:0;overflow:auto; }

body.review-redesign table.ct-expected-breakdown {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  padding:10px 12px;
}
body.review-redesign table.ct-expected-breakdown caption {
  text-align:start;
  font-weight:700;
  padding:8px 0;
}
body.review-redesign table.ct-expected-breakdown :is(th,td) {
  padding:6px 0;
  text-align:start;
  font-weight:400;
}
body.review-redesign table.ct-expected-breakdown td { text-align:end;padding-inline-start:8px;white-space:nowrap; }
body.review-redesign table.ct-expected-breakdown tfoot :is(th,td) { border-top:1px solid var(--ht-line);font-weight:800; }

#visitWorkspace.is-hall-sheet :is(.ws-conflict-head,.ws-opening-head) {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
#visitWorkspace.is-hall-sheet :is(.ws-conflict-head,.ws-opening-head) .hall-workspace-close {
  display:inline-grid;
  grid-column:2;
  grid-row:1 / span 2;
  place-items:center;
  color:var(--hx-text);
}

body.review-redesign .ct-alpha-keys[data-lookup-mode="number"] > div:not(:first-child) { display:none; }
body.review-redesign .ct-alpha-keys[data-lookup-mode="number"] > div:first-child { display:grid;grid-template-columns:repeat(5,minmax(0,1fr)); }
body.review-redesign .ct-alpha-keys .ct-lookup-mode { align-self:center;min-height:44px; }
body.review-redesign .ct-shift-close-control { display:flex;margin-inline-start:12px;padding-inline-start:16px;border-inline-start:1px solid var(--ht-line); }
body.review-redesign .ct-shift-close-control .ct-shift-close-action { color:color-mix(in srgb,var(--ht-red) 58%,var(--ht-ink)); }
.post-pay-setting-heading,.r7q-call-control { display:flex;align-items:center;gap:8px; }
body.screens-v1 #r7Page .r7q-seat-retry { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
.r7q-seat-retry small { font-size:inherit; }
.r7q-seat-reason > button { min-height:44px; }
body.screens-v1 #r7Page .r7-visits-card :is(.r7-cell-stack > span,.r7-visit-party > span) { font-size:max(13px, .85em);line-height:1.35; }

body.review-redesign .post-pay-resolution-control { display:flex;align-items:center;gap:4px; }

.r7-fresh.is-warn > span:nth-child(2) { display:grid;gap:2px; }
.r7-fresh.is-warn > button { grid-column:2;justify-self:start;min-height:44px; }
.ct-shift-context-error > button { min-height:44px; }

.discard-changes-layer { z-index:60; padding:16px; box-sizing:border-box; }
.discard-changes-layer > .discard-changes-panel { width:440px; max-width:100%; }
html[data-theme] body#receptionApp .discard-changes-panel > .modal-head { grid-template-columns:minmax(0,1fr); }
body:has(#discardChangesLayer) #modal .reception-dialog[data-covered-by-dialog] { visibility:visible; }
html[data-theme] body#receptionApp #discardChangesLayer .modal.reception-dialog .discard-changes-actions.reception-dialog-actions {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
}
html[data-theme] body#receptionApp #discardChangesLayer .modal.reception-dialog .discard-changes-actions.reception-dialog-actions > :is(.danger,.reception-dialog-primary) {
  justify-self:stretch; min-width:0; min-height:52px; height:auto; margin:0; white-space:normal;
}
html[data-theme] body#receptionApp #discardChangesLayer .discard-changes-actions > .danger { grid-column:1!important; }
html[data-theme] body#receptionApp #discardChangesLayer .discard-changes-actions > .reception-dialog-primary { grid-column:2!important; }
@media (max-width:600px) {
  html[data-theme] body#receptionApp #discardChangesLayer .discard-changes-actions > .reception-dialog-primary { grid-column:1!important; }
  .discard-changes-layer { align-items:flex-end; padding:0; }
  .discard-changes-layer > .discard-changes-panel { width:100%; border-bottom-left-radius:0; border-bottom-right-radius:0; }
  html[data-theme] body#receptionApp #discardChangesLayer .modal.reception-dialog .discard-changes-actions.reception-dialog-actions { grid-template-columns:minmax(0,1fr); }
}

.settings-page .sv-journal-filters {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:end;
  gap:10px 12px;
  margin-block:12px 16px;
}
.settings-page .sv-journal-filters label { display:grid;gap:5px;min-width:0;font-size:13px; }
.settings-page .sv-journal-filters :is(select,input) { width:100%;min-width:0;min-height:44px;box-sizing:border-box; }
.settings-page .sv-journal-dates { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:10px;grid-column:1/-1; }
.settings-page .sv-journal-dates[hidden] { display:none; }
.settings-page .sv-journal-actions { display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1; }
.settings-page .sv-journal-actions button { min-height:44px; }
html[data-theme] body#receptionApp .settings-page .sv-journal-filters select { appearance:auto;padding-inline:8px 6px; }
.settings-page .sv-journal-filters > label { grid-column:span 2; }
.settings-page .sv-journal-filters > label:has([data-journal-field="employee"],[data-journal-field="terminal"]) { grid-column:span 3; }
.settings-page .sv-journal-filters > label.sv-journal-search { grid-column:1/-1; }
html[data-theme] body#receptionApp #r7Page.settings-page .sv-journal-filters select[data-journal-field="terminal"] { font-family:ui-monospace,monospace;font-size:12px!important; }
@media (max-width:600px) {
  .settings-page .sv-journal-filters > label:has([data-journal-field="employee"],[data-journal-field="terminal"]) { grid-column:1/-1; }
}


#r7Page.tl-page .tl-unknown-facts { display:grid;gap:8px;margin:0;min-width:0; }
#r7Page.tl-page .tl-unknown-facts > div { display:grid;grid-template-columns:minmax(7em,1fr) minmax(0,1.35fr);gap:8px;align-items:baseline; }
#r7Page.tl-page .tl-unknown-facts dt { font-size:13px;color:var(--hx-text-2); }
#r7Page.tl-page .tl-unknown-facts dd { margin:0;overflow-wrap:anywhere;font-weight:700; }


.settings-page .sv-journal-repeat { margin:0 0 8px 48px; }
.settings-page .sv-journal-repeat > summary { min-height:44px;align-content:center;cursor:pointer; }
.settings-page .sv-event-reason { color:var(--hx-text-2); }
.ideas-editor-fields:not([hidden]) { display:grid;gap:16px;max-width:600px; }
.ideas-editor-fields label { display:grid;gap:6px; }
.ideas-editor-fields input { width:100%;min-height:44px;box-sizing:border-box; }
.ideas-late-list { display:grid;gap:8px;margin:0;padding:0;list-style:none; }
.ideas-late-entry { display:grid;gap:5px;width:100%;min-height:56px;text-align:left;padding:12px 16px; }
.ideas-late-entry.is-due { border-inline-start:3px solid var(--warn,#be7412); }

body.review-redesign .ct-close-body:has(>[data-role="blind-count-reason"]) { overflow:auto; }
body.review-redesign .ct-close-body:has(>[data-role="blind-count-reason"]) > .ct-count-grid {
  flex:0 0 auto;min-height:min(520px,75dvh);max-height:none;
}
body.review-redesign .ct-close-body > [data-role="blind-count-reason"] {
  width:min(100%,660px);align-self:center;box-sizing:border-box;
}

@media(max-width:767px) {
  body.review-redesign .ct-shift-close .ct-shift-bar > [data-role="blind-recount-submit"] { min-width:0;white-space:normal; }
  body.review-redesign [data-role="blind-recount-submit"] > span { min-width:0;overflow-wrap:anywhere; }
}
.ideas-late-actions { display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0; }
.ideas-late-confirm:not([hidden]) { display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-block:4px 12px; }
.ideas-late-confirm label:not([hidden]) { display:grid;gap:4px; }
.ideas-late-confirm input { width:9ch;min-height:44px; }
.ideas-deposit-options { display:grid;gap:6px;border:0;margin:0;padding:0; }
.ideas-deposit-options label { display:flex;align-items:center;gap:8px;min-height:44px; }
.ideas-editor-fields .ideas-deposit-options input { width:auto;min-height:auto; }
.ideas-deposit-section:empty { display:none; }
.ideas-deposit-section { display:grid;justify-items:start;gap:6px; }

.report-contract-coverage{margin:0;color:var(--hx-text-2);}
[data-role=shift-history]{display:grid;gap:12px;}
[data-role=shift-history]>select{max-width:100%;justify-self:start;}
[data-role=shift-history] .ct-report-paper{margin-inline:auto;}
body.screens-v1 #r7Page .report-contract [data-report-kpi=revenue] .r7-kpi-value.is-partial {
  min-width: 0;
  font-size: clamp(12px,1.4vw,16px);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity][data-paid-time-stop] .daily-lane-state {
  align-self:start;padding-top:4px;font-size:clamp(9px,calc(var(--hall-tile)*.085),15px);white-space:normal;overflow-wrap:anywhere;
}
#visitWorkspace [data-role="paid-time-stop"] .screen-info-label { white-space:normal; }

@media (max-width:599px) {
  body.review-redesign .ct-count-records { display:flex;flex-direction:column;overflow:hidden; }
  body.review-redesign .ct-count-records>.ct-count-summary { display:flex;order:-1;flex:none;margin:0 0 8px; }
  body.review-redesign .ct-count-records>.ct-denom-table { min-height:0;overflow:auto; }
  body.review-redesign .ct-close-body:has(>[data-role="blind-count-reason"]) .ct-denom-table { max-height:35dvh; }
  body.review-redesign .ct-count-keyboard .ct-count-total { display:none; }
}

.about-build { display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px; }
.about-build dd { margin:0;overflow-wrap:anywhere; }

.ct-login-lookup-label { display:none; }
@media (max-width:599px) {
  body.review-redesign .ct-login-panel.is-login-lookup > .ct-person-heading { display:none; }
  body.review-redesign .ct-login-panel.is-login-lookup > .ct-login-lookup-label {
    display:block;
    color:var(--ht-ink);
    font-weight:650;
  }
}

.hall-machine-absent-mark { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; color: var(--hx-text-3, #949cb0); }
.hall-machine-absent-mark svg { width: 18px; height: 18px; }
html[data-theme] body.review-redesign .daily-blocked.daily-actions-unavailable { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; justify-content: space-between; gap: 8px; }
html[data-theme] body.review-redesign .daily-blocked.daily-actions-unavailable .screen-info-label { display: inline-flex !important; flex: none; margin: 0; align-items: center; }

.hall-machine-absent-mark { border: 0; background: transparent; padding: 0; cursor: pointer; }
.hall-machine-absent-target { cursor: pointer; }
.hall-badge-icon.hall-machine-absent-target { position: relative; }
.hall-badge-icon.hall-machine-absent-target::before { content: ''; position: absolute; inset: -8px; }
.hall-legend-item.is-pointed { outline: 2px solid var(--hx-select, #22b2d8); outline-offset: 4px; border-radius: 8px; }
.is-loading { cursor: progress; opacity: .6; }
.is-loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hitru-spin .8s linear infinite; }
@keyframes hitru-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-loading::after { animation: none; } }

/* No scoring: a round mark inside the tile, in the glyph's row, on the side facing the tile centre (odd tiles: glyph left, mark to its right; even: mirrored). */
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .hall-tile-nopinsetter { position:absolute;top:10%;left:38%;right:auto;width:18%;aspect-ratio:1;min-width:20px;display:grid;place-items:center;box-sizing:border-box;border:1.5px solid color-mix(in srgb,currentColor 55%,transparent);border-radius:50%;color:var(--hx-text-2,#c3c8d4);background:transparent;z-index:3; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane[data-parity="even"] .hall-tile-nopinsetter { left:auto;right:38%; }
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .daily-lane .hall-tile-nopinsetter svg { width:62%;height:62%; }

/* Score emulation switch: ONE rule set from the common ancestor body#receptionApp, so the compact opening panel (inside .screen-opening-fields) and the old panel get the same look. The [data-role] attribute raises the specificity above #visitWorkspace.hall-lane-panel.screen-opening .screen-opening-fields > label. */
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 14px; border: 1px solid var(--hx-line-strong); border-radius: var(--hx-radius-md); background: var(--hx-raised); color: var(--hx-text); cursor: pointer; font-weight: 650; font-size: 15px; text-align: left; }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > span { flex: 1 1 auto; text-align: left; }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"] { appearance: none; -webkit-appearance: none; flex: 0 0 52px; width: 52px; height: 30px; min-width: 52px; min-height: 30px; margin: 0; padding: 0; border: 1px solid var(--hx-line-strong); border-radius: 15px; background: var(--hx-panel); position: relative; cursor: pointer; box-shadow: none; }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"]::after { content: ''; position: absolute; top: 3px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--hx-text); transition: left .14s; }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"]:checked { background: var(--hx-st-free); border-color: var(--hx-st-free); }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"]:checked::after { left: 26px; }
html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"]:focus-visible { outline: 2px solid var(--hx-select); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html[data-theme] body#receptionApp label.screen-opening-simulate[data-role="simulate-scoring-row"] > input[role="switch"]::after { transition: none; } }

/* The per-lane switches of the equipment settings */
.settings-page .sv-lane-setting-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--sv-text); }
.settings-page .sv-lane-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
.settings-page .sv-lane-settings-message:empty { display: none; }
.settings-page .sv-lane-settings-message { margin: 8px 0 0; font-size: 14px; color: var(--sv-text); }

/* The unaccounted games of a visit and of a shift */
.unaccounted-games { margin: 8px 0; border: 1px solid rgba(255, 176, 32, .45); border-radius: 12px; background: rgba(255, 176, 32, .08); color: inherit; }
.unaccounted-games > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: 14px; list-style: none; }
.unaccounted-games > summary::-webkit-details-marker { display: none; }
.unaccounted-games-glyph { display: inline-flex; width: 20px; height: 20px; color: #ffb020; }
.unaccounted-games-glyph svg { width: 20px; height: 20px; }
.unaccounted-games-count { margin-left: auto; min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 12px; background: #ffb020; color: #1b1300; }
.unaccounted-games-list { margin: 0; padding: 4px 12px 10px 40px; font-size: 13px; line-height: 1.7; }

/* the shift screen variant: one line, full width under the totals */
.unaccounted-games-line { flex: none; width: auto; box-sizing: border-box; margin: 0 12px 12px; }
.unaccounted-games-line > summary { min-height: 44px; }
.unaccounted-games-text { font-weight: 650; }

/* The tile mark of an emulated lane whose state was not saved (the shape of the no-link badge, a warning colour) */
html[data-theme] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-emulation-unsaved { background:#f3b13c;color:#1b1300; }
html[data-theme="light"] body.review-redesign #lanes.hall-tiles-v1[data-hall-tiles] .hall-tile-emulation-unsaved { background:#c77d00;color:#fff; }
/* The line of the lane panel for the emulation state that was not saved: amber, as the mark of the tile. */
#visitWorkspace .hall-panel-banner.is-emulation-unsaved { background:color-mix(in srgb,#f3b13c 30%,var(--hx-panel));box-shadow:inset 4px 0 0 #f3b13c; }
#visitWorkspace .hall-panel-banner.is-emulation-unsaved > span { color:#f3b13c; }
/* Light theme: the icon and the bar use the darker amber of the tile mark so they keep their contrast on the light panel. */
html[data-theme="light"] #visitWorkspace .hall-panel-banner.is-emulation-unsaved { background:color-mix(in srgb,#f3b13c 14%,var(--hx-panel));box-shadow:inset 4px 0 0 #c77d00; }
html[data-theme="light"] #visitWorkspace .hall-panel-banner.is-emulation-unsaved > span { color:#c77d00; }


/* ── Mobile audit 73 (phone): the open search is one bar over the header, not a cut field over the chips ── */
@media (max-width: 767px) {
  body.review-redesign .topbar #r7Search.is-open { position: fixed; top: 0; left: 0; right: 0; z-index: 95; display: flex; align-items: center; gap: 8px; height: 68px; padding: 10px 12px; background: var(--hx-panel, #0b1c38); border-bottom: 1px solid var(--hx-line, rgba(255,255,255,.12)); box-shadow: 0 12px 28px rgba(0,0,0,.4); }
  body.review-redesign .topbar #r7Search.is-open .r7-search-input { display: block !important; position: static !important; flex: 1 1 auto; width: auto !important; min-width: 0; max-width: none !important; height: 48px; font-size: 16px; padding: 0 14px !important; left: auto !important; top: auto !important; }
  body.review-redesign .topbar #r7Search.is-open .r7-search-toggle { display: inline-flex !important; order: 2; flex: none; width: 48px; min-width: 48px; height: 48px; }
  body.review-redesign .topbar #r7Search.is-open .r7-search-results { position: fixed; top: 72px; left: 12px; right: 12px; width: auto; min-width: 0; max-height: calc(100vh - 160px); overflow: auto; }
}

.r7-operator-avatar.is-signed-out { background: rgba(255,255,255,.12) !important; color: var(--hx-text, #fff); }
.r7-operator-avatar.is-signed-out svg { width: 22px; height: 22px; }

/* ── Mobile audit 73 (phone): the letter keyboard of the sign-in: keys of 44 px and more, the toggle and the erase key over the whole width ── */
@media (max-width: 520px) {
  body.review-redesign .ct-alpha-keys[data-lookup-mode="code"] { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  body.review-redesign .ct-alpha-keys[data-lookup-mode="code"] > div { display: contents; }
  body.review-redesign .ct-alpha-keys[data-lookup-mode="code"] .ct-button { min-height: 48px; min-width: 0; font-size: 18px; }
  body.review-redesign .ct-alpha-keys[data-lookup-mode="code"] .ct-alpha-erase, body.review-redesign .ct-alpha-keys[data-lookup-mode="code"] .ct-lookup-mode { grid-column: 1 / -1; }
  body.review-redesign .ct-alpha-keys[data-lookup-mode="number"] .ct-button { min-height: 52px; }
}

#terminal-pairing-overlay .tp-pair.is-idle { opacity: .45; cursor: default; }

/* ── Mobile audit 73 (phone): the chips of the Hall (equipment, day) belong to the Hall; the other sections keep one information icon ── */
@media (max-width: 767px) {
  body.review-redesign:has(#r7HeaderTitle[data-section]:not([data-section="hall"])) #hallEquipment,
  body.review-redesign:has(#r7HeaderTitle[data-section]:not([data-section="hall"])) .topbar #r7SystemState,
  body.review-redesign:has(#r7HeaderTitle[data-section]:not([data-section="hall"])) .topbar #r7HeaderInfo { display: none !important; }
}

/* ── Mobile audit 73 (phone): the employee tiles of the sign-in say the whole name (two lines), so that three people of one club are told apart ── */
@media (max-width: 520px) {
  body.review-redesign .ct-employee-tile b::after { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; font-size: 12px; }
  body.review-redesign .ct-employee-tile { min-width: 76px; }
  body.review-redesign .ct-employee-tile b { overflow: visible; white-space: normal; height: auto; }
  body.review-redesign .ct-login .ct-employee-tiles { min-height: 108px; padding-bottom: 8px; align-items: start; }
}

/* ── Mobile audit 73: the equipment list names every lane; a coloured mark tells a problem from a ready lane ── */
.hall-equipment-list li { position: relative; padding-left: 22px; }
.hall-equipment-list li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #f5b942; }
.hall-equipment-list li.is-ready::before { background: #3ddc84; }
.hall-equipment-list li.is-problem::before { background: #ff6b6b; }

@media (max-width: 767px) {
  html[data-theme] body#receptionApp.reception-shell.review-redesign:has(#r7HeaderTitle[data-section]:not([data-section="hall"])) :is(#hallEquipment, .topbar #r7SystemState, .topbar #r7HeaderInfo) { display: none !important; }
}


/* ── Mobile audit 73 (phone): the sign-in has its heading again ("Sign in to the shift" was clipped to 1 px) ── */
@media (max-width: 520px) {
  body.review-redesign .ct-login .ct-sr-only:is(h1, h2) { position: static !important; clip: auto !important; clip-path: none !important; width: auto !important; height: auto !important; margin: 2px 16px 6px !important; overflow: visible !important; white-space: normal !important; font-size: 20px; font-weight: 700; line-height: 1.2; }
}

/* ── Mobile audit 73 (phone): a toast never covers the main action or the tab bar: it is drawn under the header ── */
@media (max-width: 767px) {
  html[data-theme] body#receptionApp.review-redesign > .toast:not(.dialog-status), body.review-redesign > .toast:not(.dialog-status) { top: calc(env(safe-area-inset-top, 0px) + 76px) !important; bottom: auto !important; left: 12px !important; right: 12px !important; max-width: none !important; width: auto !important; transform: none !important; }
}

.ct-button .ct-erase-label { margin-left: 8px; font-size: 15px; font-weight: 600; }
.ct-button:has(.ct-erase-label) { display: inline-flex; align-items: center; justify-content: center; }

/* ── Mobile audit 73 (phone): the waiting list form: the name field takes the whole width, the stepper and the button under it ── */
@media (max-width: 520px) {
  .list-modal .form-row.wide { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .list-modal .form-row.wide input { width: 100%; min-height: 52px; font-size: 17px; }
  .list-modal .form-row.wide > button { width: 100%; min-height: 52px; }
}
