:root {
  /* Neon / cyberpunk, shared with the club apps: near-black, acid lime + magenta, glow on what matters. */
  --bg: #07080c; --panel: #0d0f16; --tile: #12151f; --tile-h: #181c29; --line: #1f2433; --line-soft: #2d3449;
  --accent: #c6ff00; --accent-soft: rgba(198,255,0,.08); --accent2: #ff2bd6; --cyan: #00e5ff;
  --text: #f1f3f8; --muted: #9aa1b5; --faint: #6b7289;
  --free: #c6ff00; --busy: #00e5ff; --locked: #ffb020; --offline: #4a5064; --danger: #ff3b5c;
  --glow: 0 0 18px rgba(198,255,0,.35); --glow2: 0 0 18px rgba(255,43,214,.35);
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --cut-s: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  --head: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --r: 4px; --safe-b: env(safe-area-inset-bottom, 0px); --nav-w: 220px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--text); font: 15px/1.45 -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 85% -10%, rgba(255,43,214,.10), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(0,229,255,.08), transparent 60%),
              linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 100% 4px,
              var(--bg);
  background-attachment: fixed; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 600; } .error { color: var(--danger); min-height: 1.2em; font-size: 13px; }
h1, h2 { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
h1 { margin: 0 0 4px; font-size: 28px; }
h2 { margin: 0 0 14px; font-size: 22px; }
h2::after { content: "_"; color: var(--accent); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h3 { margin: 22px 0 10px; font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-family: var(--head); }

.screen { min-height: 100%; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 18px; clip-path: var(--cut); }
.login-card { max-width: 380px; margin: 14vh auto 0; padding: 26px; }
label { display: block; margin: 14px 0 0; font-size: 12.5px; color: var(--faint); font-weight: 400; }
input, select, textarea { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--tile); color: var(--text); font-size: 16px; font-family: inherit; color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); }
input:hover, select:hover { border-color: var(--line-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 42px; }
.row > input[type=checkbox] { flex: 0 0 auto; }
input[type=file] { padding: 8px; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
button { border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; background: var(--tile); color: var(--text); font-size: 13.5px; cursor: pointer; white-space: nowrap;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; clip-path: var(--cut-s); transition: background .12s, color .12s, box-shadow .12s; }
button:hover { background: var(--tile-h); border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #07080c; font-weight: 700; }
button.primary:hover { background: #d8ff4d; color: #07080c; box-shadow: var(--glow); }
button.danger { background: transparent; border-color: rgba(255,59,92,.4); color: var(--danger); }
button.danger:hover { background: rgba(255,59,92,.12); border-color: var(--danger); color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); clip-path: none; }
button:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1 1 auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { padding: 8px 12px; border-radius: 0; background: var(--tile); border: 1px solid var(--line); font-size: 13px; clip-path: var(--cut-s); }
.chip:hover { border-color: var(--line-soft); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wide { width: 100%; margin-top: 14px; padding: 13px; font-size: 16px; }

/* ---------- layout ---------- */
#topbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 13px 16px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
#topbar .brand { font-family: var(--head); font-weight: 800; letter-spacing: .18em; color: var(--accent); text-shadow: 0 0 12px rgba(198,255,0,.6); display: none; }
#topbar .grow { flex: 1; min-width: 0; }
#topbar .who { display: flex; align-items: center; gap: 6px; }
#view { padding: 14px 12px calc(84px + var(--safe-b)); max-width: 1280px; }
#tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--panel); padding-bottom: var(--safe-b); border-top: 1px solid var(--line); z-index: 6; }
#tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 18px; }
#tabs button span { font-size: 11px; }
#tabs button.active { color: var(--text); }

/* Desktop: sidebar navigation */
@media (min-width: 900px) {
  #topbar .brand { display: block; width: calc(var(--nav-w) - 32px); }
  #tabs { top: 57px; bottom: 0; right: auto; width: var(--nav-w); flex-direction: column; padding: 12px 10px; border-top: 0; border-right: 1px solid var(--line); gap: 2px; }
  #tabs button { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; font-size: 16px; clip-path: none; border-left: 2px solid transparent; }
  #tabs button span { font-size: 14px; }
  #tabs button.active { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--accent); border-left-color: var(--accent); }
  #tabs button:hover { background: var(--tile); color: var(--text); border-color: transparent; }
  #tabs button.more { display: none; }
  #view { margin-left: var(--nav-w); padding: 20px 24px 40px; }
  #sheet { left: auto; right: 24px; bottom: 24px; width: 440px; border-radius: 0; clip-path: var(--cut); max-height: calc(100vh - 100px); }
  #toast { left: auto; right: 24px; width: 380px; bottom: 24px; }
}

/* ---------- hall ---------- */
/* Each zone in its own box, tinted with the zone's colour (--zc), so where one ends and the next begins is plain. */
.zbox { position: relative; margin: 0 0 14px; padding: 10px 12px 12px 16px; border: 1px solid color-mix(in srgb, var(--zc) 45%, transparent);
  background: color-mix(in srgb, var(--zc) 7%, transparent); }
.zbox::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--zc); box-shadow: 0 0 12px var(--zc); }
.zone { margin: 0 0 9px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.zone b { color: var(--zc); font-family: var(--head); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.zone .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 8px var(--zc); }
.zone .zmove { margin-left: auto; display: flex; gap: 4px; }
.zone .zmove button { padding: 2px 10px; font-size: 13px; min-height: 0; }
.chips.sizes { gap: 4px; } .chips.sizes .chip { padding: 6px 10px; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
/* Tile sizes (Мелко / Средне / Крупно above the hall, kept in this browser). Крупно is the old size. */
.size-m .tiles { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 8px; }
.size-m .tile { min-height: 80px; padding: 9px 9px 8px 14px; }
.size-m .tile .name { font-size: 12px; } .size-m .tile .time { font-size: 20px; } .size-m .tile .foot { font-size: 11px; }
.size-m .tile::before { top: 10px; bottom: 10px; }
.size-s .tiles { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.size-s .tile { min-height: 56px; padding: 6px 6px 5px 11px; }
.size-s .tile .name { font-size: 11px; gap: 4px; } .size-s .tile .time { font-size: 15px; }
.size-s .tile .foot .muted, .size-s .tile .booking { display: none; } .size-s .tile .foot { font-size: 10px; }
.size-s .tile::before { top: 7px; bottom: 7px; width: 2px; }
.tile { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.03), transparent 40%), var(--tile); border: 1px solid var(--line); border-radius: 0; padding: 13px 13px 11px 18px; min-height: 110px;
  display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; clip-path: var(--cut); }
.tile:hover { background: var(--tile-h); border-color: var(--line-soft); box-shadow: inset 0 0 22px rgba(198,255,0,.06); }
.tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--zc, var(--accent)); box-shadow: 0 0 10px var(--zc, var(--accent)); }
.tile.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 30px rgba(198,255,0,.12); }
.tile .name { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: 0 0 auto; box-shadow: 0 0 8px currentColor; }
.tile .time { font-family: var(--head); font-size: 27px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.tile .foot { font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.st-Free { color: var(--free); text-shadow: 0 0 10px rgba(198,255,0,.5); } .st-Busy { color: var(--busy); text-shadow: 0 0 10px rgba(0,229,255,.5); } .st-Locked, .st-Maintenance { color: var(--locked); } .st-Offline { color: var(--offline); }
.bg-Free { background: var(--free); color: var(--free); } .bg-Busy { background: var(--busy); color: var(--busy); } .bg-Locked, .bg-Maintenance { background: var(--locked); } .bg-Offline { background: var(--offline); }
.booking { color: var(--locked); font-size: 11px; }

/* ---------- sheet ---------- */
#sheetBackdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 20; backdrop-filter: blur(3px); }
#sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  border-radius: 0; padding: 16px 18px calc(18px + var(--safe-b)); z-index: 21; box-shadow: 0 -18px 50px rgba(0,0,0,.5); }
#sheet .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-soft); margin: 0 auto 14px; }
.big { font-family: var(--head); font-size: 44px; font-weight: 600; margin: 6px 0 2px; color: var(--accent); text-shadow: 0 0 22px rgba(198,255,0,.45); font-variant-numeric: tabular-nums; }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; gap: 6px; }
.item { background: var(--tile); border: 1px solid var(--line); border-radius: 0; clip-path: var(--cut-s); padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item.click { cursor: pointer; } .item.click:hover { background: var(--tile-h); }
.item.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.item .l { flex: 1; min-width: 0; } .item .t { font-weight: 500; } .item .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.item button { flex: 0 0 auto; padding: 8px 10px; font-size: 13px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.product { background: var(--tile); border: 1px solid var(--line); padding: 0; text-align: left; overflow: hidden; text-transform: none; letter-spacing: 0; font-family: inherit; clip-path: var(--cut); }
.product:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.product .pic { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 44px; background-size: cover; background-position: center; }
.product .pb { padding: 8px 11px 10px; }
.product .p { font-size: 13px; } .product .q { font-size: 11px; color: var(--muted); }
.total { font-family: var(--head); font-size: 32px; font-weight: 700; margin: 8px 0; color: var(--accent); text-shadow: 0 0 16px rgba(198,255,0,.4); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 14px; }
.kv .v { text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--accent); font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 6px; border-bottom: 1px solid #1f2530; } td.n, th.n { text-align: right; white-space: nowrap; }
tr.warn td { background: rgba(248,113,113,.12); }
tr.caution td { background: rgba(245,181,74,.12); }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  /* Settings: the edit form stays in view next to a long list (pick PC #30 - the form is right there, not up at the top). */
  .grid2 > .card.edit { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
}
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat .card { padding: 14px 16px; } .stat .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; } .stat .v { font-family: var(--head); font-size: 26px; font-weight: 600; margin-top: 4px; color: var(--text); }
.stat .v.bad { color: var(--danger); }
.swatch { width: 14px; height: 14px; border-radius: 2px; box-shadow: 0 0 8px rgba(255,255,255,.15); display: inline-block; vertical-align: -2px; margin-right: 8px; }

#toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + var(--safe-b)); z-index: 30; background: var(--tile); border: 1px solid var(--accent); color: var(--text);
  padding: 13px 15px; border-radius: 0; clip-path: var(--cut-s); box-shadow: 0 10px 32px rgba(0,0,0,.5); font-size: 14px; }
#toast.err { border-color: var(--danger); color: var(--danger); }

/* Orders from the game PCs */
#tabs button { position: relative; }
.badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 0;
  background: var(--accent2); color: #fff; box-shadow: var(--glow2); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
@media (min-width: 900px) { .badge { position: static; margin-left: auto; } }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.order.new { border-color: var(--locked); }
.order .row.wrap button { flex: 0 1 auto; }
.warn { color: var(--locked); font-style: italic; }

/* Menu icons: same weight as the text next to them */
#tabs button svg { opacity: .8; }
#tabs button.active svg { opacity: 1; color: var(--accent); }
.item .t svg { vertical-align: -4px; margin-right: 8px; opacity: .8; }

/* Time-used bar on a hall tile */
.tile .bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.tile .bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 1s linear; }
.tile .bar i.warn { background: var(--locked); } .tile .bar i.crit { background: var(--danger); }

/* Daily revenue chart */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px 2px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart .stack { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--accent), rgba(198,255,0,.35)); box-shadow: 0 0 12px rgba(198,255,0,.25); display: flex; flex-direction: column; justify-content: flex-start; min-height: 2px; }
.chart .goods { width: 100%; background: var(--accent2); }
.chart .col span { font-size: 10.5px; color: var(--faint); margin-top: 5px; white-space: nowrap; }
.legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i.t { background: var(--accent); } .legend i.g { background: var(--accent2); }

/* The club's dialog instead of the browser's grey confirm / alert / prompt */
#dlgBackdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 40; backdrop-filter: blur(3px); }
#dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); z-index: 41;
  background: var(--panel); border: 1px solid var(--line); clip-path: var(--cut); box-shadow: 0 0 40px rgba(198,255,0,.18); }
#dlg .strip { height: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
#dlg .body { padding: 20px 24px 22px; }
#dlg .dt { font-family: var(--head); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
#dlg .db { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--accent); text-shadow: 0 0 18px rgba(198,255,0,.5); margin-top: 8px; font-variant-numeric: tabular-nums; }
#dlg .dd { color: var(--muted); font-size: 14.5px; margin-top: 10px; line-height: 1.5; }
#dlg input { margin-top: 14px; }
#dlg .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#dlg .acts button { flex: 0 0 auto; padding: 11px 20px; }
#dlg.danger { box-shadow: 0 0 40px rgba(255,59,92,.2); }
#dlg.danger .strip { background: var(--danger); box-shadow: 0 0 14px var(--danger); }
#dlg.danger .db { color: var(--danger); text-shadow: 0 0 18px rgba(255,59,92,.5); }
button.solid-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 700; }
button.solid-danger:hover { background: #ff5a76; color: #fff; box-shadow: 0 0 18px rgba(255,59,92,.45); }

/* One-command install for a new game PC */
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; resize: none; margin-top: 8px; }

/* Касса / Отчёты: the headline figures - a bold coloured caption over a big number */
.stat-k { font-family: var(--head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); opacity: .92; }
.stat-k.cyan { color: var(--cyan); }
.stat-k.pink { color: var(--accent2); }
.stat-k.white { color: var(--text); }
.stat-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.big.cyan { color: var(--cyan); text-shadow: 0 0 22px rgba(0,229,255,.45); }
.big.pink { color: var(--accent2); text-shadow: 0 0 22px rgba(255,43,214,.4); }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; }
.stat-row b { font-weight: 600; color: var(--text); }
.stat-row span { color: var(--muted); }

/* Public demo: the pink strip with our contacts. Under the sheets and dialogs, above the bottom menu on a phone. */
#demoBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 7px 14px calc(7px + var(--safe-b)); text-align: center; font-size: 13px; letter-spacing: .3px;
  background: var(--accent2); color: #0b0b12; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#demoBar a { color: #0b0b12; text-decoration: underline; font-weight: 800; margin: 0 5px; }
#demoBar .short { display: none; }
body.demo #view { padding-bottom: calc(120px + var(--safe-b)); }
body.demo #toast { bottom: calc(120px + var(--safe-b)); }
body.demo .login-card { margin-bottom: 60px; }
@media (min-width: 900px) {
  #demoBar { white-space: normal; }
  body.demo #tabs { bottom: 34px; }
  body.demo #view { padding-bottom: 70px; }
  body.demo #toast, body.demo #sheet { bottom: 58px; }
}
@media (max-width: 899px) {
  #app:not(.hidden) ~ #demoBar { bottom: calc(var(--tabs-h, 48px) + var(--safe-b)); padding-bottom: 7px; }
}

/* Phone */
@media (max-width: 640px) {
  #demoBar { font-size: 12.5px; padding-left: 8px; padding-right: 8px; }
  #demoBar .long { display: none; } #demoBar .short { display: inline; }
  #demoBar a { margin: 0 4px; }
  .login-card { margin-top: 5vh; padding: 22px 20px; }
  #topbar { padding: 10px 12px; gap: 8px; }
  #verText, #whoName { display: none; }
  #shiftLine { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #shiftLive { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #logoutBtn { padding: 8px 6px; }
  #view { padding-left: 10px; padding-right: 10px; }
  h2 { font-size: 20px; }
  .card { padding: 15px 14px; }
  .big { font-size: 36px; }
  .total { font-size: 26px; }
  .stat-k { font-size: 13px; }
  .stat .v { font-size: 22px; }
  .size-l .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .size-l .tile .time { font-size: 24px; }
  .zbox { padding: 8px 8px 10px 12px; }
  #sheet { padding-left: 14px; padding-right: 14px; }
  #dlg .body { padding: 18px 18px 20px; }
  #dlg .db { font-size: 32px; }
  #dlg .acts { flex-wrap: wrap; }
  #dlg .acts button { flex: 1 1 auto; }
  table { font-size: 12.5px; }
  th, td { padding-left: 4px; padding-right: 4px; }
}

/* The owner's "watch only" mode: the desk's money buttons are not shown (the server refuses them anyway). */
.watch-note { display: none; }
body.watch .watch-note { display: block; }
body.watch .op { display: none !important; }

/* Desktop: the sheet sits on the right. Repeated here because the base #sheet rule above comes later in the
   file than the first desktop block and used to win (the sheet stuck to the left edge). */
@media (min-width: 900px) {
  #sheet { left: auto; right: 24px; }
}

/* Настройки → Приложения → «Версии Steam-игр»: one folding row per game, its PCs inside. */
.vlist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
details.ver { background: var(--tile); border: 1px solid var(--line); clip-path: var(--cut-s); }
details.ver[open] { border-color: var(--line-soft); }
details.ver summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
details.ver summary::-webkit-details-marker { display: none; }
details.ver summary::after { content: "›"; color: var(--muted); font-size: 20px; transition: transform .15s; margin-left: 4px; }
details.ver[open] summary::after { transform: rotate(90deg); }
details.ver summary:hover { background: var(--tile-h); }
details.ver .cap { width: 92px; height: 35px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
details.ver .vt { flex: 1 1 200px; min-width: 0; }
details.ver .vbar { flex: 0 0 140px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
details.ver .vbar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
details.ver .vn { flex: 0 0 52px; font-family: var(--head); font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
details.ver .vbs { flex: 0 1 230px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vb { font-size: 12px; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.vb.old { background: rgba(255,59,92,.14); color: var(--danger); }
.vb.upd { background: rgba(255,176,32,.14); color: var(--locked); }
.vb.unk { background: rgba(154,161,181,.12); color: var(--muted); }
.vb.ok { background: var(--accent-soft); color: var(--accent); }
.vpcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 4px 14px 14px; }
.vpc { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--offline); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.vpc b { font-family: var(--head); letter-spacing: .04em; }
.vpc span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vpc em { font-style: normal; font-size: 12px; }
.vpc.ok { border-left-color: var(--accent); } .vpc.ok em { color: var(--accent); }
.vpc.old { border-left-color: var(--danger); } .vpc.old em { color: var(--danger); }
.vpc.upd { border-left-color: var(--locked); } .vpc.upd em { color: var(--locked); }
.vpc.unk em { color: var(--muted); }
@media (max-width: 640px) {
  details.ver summary { flex-wrap: wrap; gap: 8px 12px; }
  details.ver .vbar { flex: 1 1 100%; order: 5; }
}
/* Master copies of the Steam games on the club server */
.mlist { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--tile); border: 1px solid var(--line); padding: 8px 12px; }
.mrow .strong { flex: 0 0 auto; min-width: 140px; }
.mrow .muted { flex: 1 1 120px; }
.mrow .mbar { flex: 1 1 100%; }
.mbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* Отчёт → «Печать / PDF»: the report alone, dark on white, no navigation or buttons. */
@media print {
  :root { --bg: #fff; --panel: #fff; --tile: #fff; --line: #cfd4df; --line-soft: #cfd4df; --text: #111; --muted: #444; --faint: #666;
          --accent: #111; --accent2: #111; --cyan: #111; --glow: none; --glow2: none; }
  html, body { background: #fff !important; color: #111 !important; }
  #topbar, #tabs, #sheet, #sheetBackdrop, .noprint, .chips, #hours, #range, #dayStart, button, select { display: none !important; }
  #view { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .card { clip-path: none !important; background: #fff !important; border: 1px solid #cfd4df !important; break-inside: avoid; }
  .big, .stat-k, h2, h3 { color: #111 !important; text-shadow: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
  tr { break-inside: avoid; }
  /* Выручка / Расход / Забрать: big and in colour on paper too (17.11, Delta). */
  .money-top { border: 2px solid #111 !important; padding: 14px !important; }
  .money-top .stat-k { font-size: 13px !important; letter-spacing: .12em; }
  .money-top .big { font-size: 34px !important; }
  .money-top .mt-in .big { color: #2E7D32 !important; }
  .money-top .mt-error .big { color: #C62828 !important; }
  .money-top .mt-cyan .big { color: #0277BD !important; }
  .money-top, .money-top * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .money-outs { border: 1px solid #111 !important; }
  .money-outs .error { color: #C62828 !important; }
}

/* ===== MikroTik (модуль): neon control room ===== */
.mt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 2px; }
#netChip { font-family: var(--head); letter-spacing: .04em; }
.mt-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mt-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mt-cell { position: relative; overflow: hidden; }
.mt-cell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 120px at 50% 0, rgba(0,229,255,.08), transparent 70%); pointer-events: none; }
.mt-cap { font-family: var(--head); font-size: 11px; letter-spacing: .22em; color: var(--accent); margin-bottom: 6px; }
.mt-gwrap { position: relative; text-align: center; }
.mt-gauge { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.mt-gv { margin-top: 2px; font-family: var(--head); }
.mt-gv b { font-size: 34px; color: var(--text); text-shadow: 0 0 18px rgba(0,229,255,.55); }
.mt-gv small { color: var(--muted); margin-left: 4px; }
.mt-gsub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.mt-big { font-family: var(--head); font-size: 40px; font-weight: 700; line-height: 1; text-shadow: 0 0 22px currentColor; }
.mt-big small { font-size: 15px; color: var(--muted); text-shadow: none; }
.mt-pulse { width: 100%; height: 70px; display: block; margin-top: 10px; }
.mt-status { font-family: var(--head); font-size: 38px; font-weight: 800; letter-spacing: .12em; line-height: 1.1; }
.mt-status.ok { color: var(--accent); text-shadow: 0 0 24px rgba(198,255,0,.6); }
.mt-status.bad { color: var(--danger); text-shadow: 0 0 24px rgba(255,59,92,.7); animation: blink 1s steps(1) infinite; }
.mt-tar { font-family: var(--head); font-size: 28px; color: var(--cyan); text-shadow: 0 0 16px rgba(0,229,255,.5); }
.mt-tar small { font-size: 13px; color: var(--muted); text-shadow: none; }
.mt-btn { flex: 0 0 auto; border: 1px solid var(--cyan); color: var(--cyan); background: rgba(0,229,255,.08); box-shadow: 0 0 14px rgba(0,229,255,.25); font-family: var(--head); letter-spacing: .08em; }
.mt-topocard { padding: 8px; background: radial-gradient(600px 220px at 40% 50%, rgba(0,229,255,.06), transparent 70%), var(--panel); }
.mt-topo, .mt-router { width: 100%; display: block; }
.mt-flow { fill: none; stroke-dasharray: 6 18; animation: mtflow linear infinite; }
@keyframes mtflow { to { stroke-dashoffset: -48; } }
.mt-led { animation: mtled 1s steps(2) infinite; }
@keyframes mtled { 50% { opacity: .25; } }
.mt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.mt-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.mt-ports { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 10px; margin-top: 10px; }
.mt-port { border-left: 3px solid var(--pc); box-shadow: inset 4px 0 18px -10px var(--pc); }
.mt-port-t { font-family: var(--head); font-size: 17px; letter-spacing: .08em; color: var(--pc); text-shadow: 0 0 12px var(--pc); }
.mt-port-t span { color: var(--text); text-shadow: none; font-size: 14px; letter-spacing: 0; }
.mt-pcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.mt-pcs span { padding: 3px 9px; font-size: 12px; font-family: var(--head); letter-spacing: .04em; border: 1px solid var(--line-soft); color: var(--faint); clip-path: var(--cut-s); }
.mt-pcs span.on { color: var(--accent); border-color: rgba(198,255,0,.45); background: rgba(198,255,0,.07); }
.mt-pcs.other span { color: #d7b8ff; border-color: rgba(183,139,255,.4); }
.mt-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mt-mode { white-space: normal; height: auto; text-align: left; padding: 14px; background: var(--tile); border: 1px solid var(--line); clip-path: var(--cut); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .15s; }
.mt-mode i { font-style: normal; font-size: 22px; }
.mt-mode b { font-family: var(--head); letter-spacing: .1em; font-size: 14px; }
.mt-mode span { font-size: 12px; color: var(--muted); line-height: 1.35; text-transform: none; letter-spacing: 0; white-space: normal; font-family: inherit; }
.mt-mode:hover { border-color: var(--line-soft); background: var(--tile-h); }
.mt-mode.on { border-color: var(--accent); background: rgba(198,255,0,.07); box-shadow: inset 0 0 22px rgba(198,255,0,.12), var(--glow); }
.mt-mode.on b { color: var(--accent); }
.mt-warn { padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--locked); color: var(--locked); background: rgba(255,176,32,.07); }
.mt-halls { display: grid; gap: 10px; }
.mt-hall { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mt-seg { display: flex; border: 1px solid var(--line-soft); clip-path: var(--cut-s); }
.mt-seg button { flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 9px 14px; font-family: var(--head); letter-spacing: .05em; }
.mt-seg button.on.on { color: #05060a; background: var(--accent); box-shadow: var(--glow); }
.mt-seg button.on.session { background: #b78bff; box-shadow: 0 0 18px rgba(183,139,255,.45); }
.mt-seg button.on.off { background: var(--locked); box-shadow: 0 0 18px rgba(255,176,32,.45); }
.mt-heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.mt-tile { --heat: 0; position: relative; padding: 12px 10px 10px; clip-path: var(--cut-s); border: 1px solid rgba(0,229,255, calc(.15 + var(--heat) * .85));
  background: linear-gradient(180deg, rgba(0,229,255, calc(var(--heat) * .45)), rgba(255,43,214, calc(var(--heat) * .25))), var(--tile);
  box-shadow: 0 0 calc(var(--heat) * 26px) rgba(0,229,255,.6); transition: background .8s, box-shadow .8s, border-color .8s; }
.mt-tile b { display: block; font-family: var(--head); letter-spacing: .05em; font-size: 13px; }
.mt-tile .r { font-size: 12px; color: var(--cyan); min-height: 16px; display: block; }
.mt-pcoff { position: absolute; top: 6px; right: 6px; width: auto; padding: 0 4px; border: 0; background: transparent; font-size: 13px; opacity: .55; cursor: pointer; }
.mt-pcoff:hover, .mt-pcoff.off { opacity: 1; }
.mt-bars { display: grid; gap: 6px; margin-top: 12px; }
.mt-bar { display: grid; grid-template-columns: 130px 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
.mt-bar div { height: 10px; background: #141824; }
.mt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--accent2)); box-shadow: 0 0 10px rgba(255,43,214,.45); }
.mt-bar b { text-align: right; font-family: var(--head); }
.mt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mt-table th { text-align: left; font-family: var(--head); font-size: 11px; letter-spacing: .12em; color: var(--accent); padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.mt-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.mt-ok { color: var(--accent); font-family: var(--head); }
.mt-bad { color: var(--locked); font-family: var(--head); }
.mt-out { justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ===== Финансы клуба ===== */
.fn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fn-tabs { display: flex; border: 1px solid var(--line-soft); clip-path: var(--cut-s); }
.fn-tabs button { flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; color: var(--muted); padding: 9px 16px; font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; }
.fn-tabs button.on { background: var(--accent); color: #05060a; box-shadow: var(--glow); }
.fn-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.fn-kpi { position: relative; overflow: hidden; }
.fn-cap { font-family: var(--head); font-size: 11px; letter-spacing: .22em; color: var(--accent); }
.fn-num { font-family: var(--head); font-size: 32px; font-weight: 800; margin: 6px 0 4px; color: var(--cyan); text-shadow: 0 0 18px rgba(0,229,255,.45); }
.fn-profit { border-color: rgba(198,255,0,.55); box-shadow: inset 0 0 30px rgba(198,255,0,.08), var(--glow); }
.fn-profit .fn-num { color: var(--accent); font-size: 40px; text-shadow: 0 0 26px rgba(198,255,0,.6); }
.fn-profit.neg { border-color: rgba(255,59,92,.6); box-shadow: inset 0 0 30px rgba(255,59,92,.1); }
.fn-profit.neg .fn-num { color: var(--danger); text-shadow: 0 0 26px rgba(255,59,92,.6); }
.fn-delta { font-family: var(--head); font-weight: 700; margin-left: 4px; }
.fn-delta.up { color: var(--accent); } .fn-delta.down { color: var(--danger); }
.fn-be { margin-top: 12px; }
.fn-bar { height: 12px; background: #141824; margin-top: 10px; clip-path: var(--cut-s); }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--locked), var(--accent)); box-shadow: 0 0 14px rgba(198,255,0,.5); }
.fn-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.fn-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; box-shadow: 0 0 6px currentColor; }
.fn-cat { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.fn-cat div { height: 9px; background: #141824; }
.fn-cat i { display: block; height: 100%; background: linear-gradient(90deg, #ff2bd6, #b78bff); box-shadow: 0 0 8px rgba(255,43,214,.4); }
.fn-cat b { text-align: right; font-family: var(--head); }
.fn-alert { margin-top: 12px; border-color: rgba(255,59,92,.55); color: #ffd1d9; background: rgba(255,59,92,.07); }
.fn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fn-chips button { flex: 0 0 auto; padding: 8px 14px; background: var(--tile); border: 1px solid var(--line); color: var(--muted); clip-path: var(--cut-s); font-family: var(--head); letter-spacing: .05em; }
.fn-chips button { transition: transform .12s ease, border-color .15s, color .15s, background .15s; }
.fn-chips button:active { transform: scale(.94); }
.fn-chips button.pop { animation: fnPop .32s ease; }
@keyframes fnPop { 0% { transform: scale(.92); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
.fn-hint { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); line-height: 1.45; }
.fn-hint.show { animation: fnHint .3s ease; }
.fn-hint-ic { font-size: 18px; margin-right: 8px; }
@keyframes fnHint { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fn-chips button.on { border-color: var(--accent); color: var(--accent); background: rgba(198,255,0,.07); box-shadow: inset 0 0 12px rgba(198,255,0,.12); }
.fn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fn-row > span { flex: 1; }
.fn-row > b { font-family: var(--head); }
.fn-tag { font-size: 11px; padding: 2px 7px; border: 1px solid rgba(183,139,255,.5); color: #d7b8ff; margin-left: 4px; }
.fn-flag td { background: rgba(255,59,92,.06); }
.fn-promo { background: radial-gradient(500px 200px at 20% 0, rgba(198,255,0,.08), transparent 70%), var(--panel); }
.fn-alert a { color: var(--accent); }
.fn-two .row > div > .row > span { white-space: nowrap; }

/* «Клиенты» (29.10): a table on a wide screen, cards on a phone. */
.cust-filters .chip .cnt { margin-left: 6px; color: var(--faint); font-size: 12px; }
.cust-filters .chip.on .cnt { color: var(--accent); }
.cust-table { display: flex; flex-direction: column; gap: 4px; }
.cust-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) 1fr 1fr .6fr 1fr; gap: 12px; align-items: center;
  background: var(--tile); border: 1px solid var(--line); clip-path: var(--cut-s); padding: 9px 14px; cursor: pointer; transition: background .12s, border-color .12s; }
.cust-row:not(.head):hover { background: var(--tile-h); border-color: var(--line-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cust-row.head { background: transparent; border-color: transparent; cursor: default; padding-top: 2px; padding-bottom: 2px; }
.cust-row.head button { background: none; border: 0; padding: 4px 0; color: var(--faint); font: 600 11px var(--head); letter-spacing: .14em; text-transform: uppercase; text-align: left; cursor: pointer; clip-path: none; }
.cust-row.head button.n { text-align: right; }
.cust-row.head button.on, .cust-row.head button:hover { color: var(--accent); }
.cust-row .n { text-align: right; font-variant-numeric: tabular-nums; }
.cust-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cust-name { min-width: 0; }
.cust-name .t { font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-name .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ava { flex: 0 0 38px; height: 38px; display: grid; place-items: center; font: 700 14px var(--head); letter-spacing: .04em;
  color: hsl(var(--h) 100% 78%); background: hsl(var(--h) 70% 50% / .14); border: 1px solid hsl(var(--h) 90% 60% / .45);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); text-shadow: 0 0 10px hsl(var(--h) 100% 60% / .6); }
.tg { font: 700 9px var(--head); letter-spacing: .1em; padding: 2px 5px; color: var(--cyan); border: 1px solid rgba(0,229,255,.45); background: rgba(0,229,255,.08); }
.disc { font: 700 10px var(--head); padding: 2px 5px; color: var(--accent2); border: 1px solid rgba(255,43,214,.45); background: rgba(255,43,214,.08); }
.cust-bal { font-weight: 700; }
.cust-bal.pos { color: var(--accent); text-shadow: 0 0 10px rgba(198,255,0,.35); }
.cust-bal.neg { color: var(--danger); }
.cust-bal small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); text-shadow: none; }
.cust-last { color: var(--muted); font-size: 13px; }
.cust-last.fresh { color: var(--cyan); }
.cust-last.away { color: var(--locked); }
.faint { color: var(--faint); }
@media (max-width: 720px) {
  .cust-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 9px 12px; }
  .cust-row.head { display: none; }
  .cust-row > :nth-child(3), .cust-row > :nth-child(4) { display: none; }
  .cust-row .cust-last { grid-column: 1 / -1; padding-left: 50px; font-size: 12px; }
}

/* Брони: the day grid (29.10) - time down the side, PCs across by zone (an hour 56px), scrolled to now; the PC header and the
   time column stay put while scrolling. Calm: soft lines, cards with the customer's name and time. */
.tl-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.tl-nav .chips { margin-top: 0; }
.tl-date { width: auto; flex: 0 0 auto; padding: 7px 10px; font-size: 13px; }
.tl-wrap { overflow: auto; max-height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 10px; background: #0b0d14; scrollbar-color: var(--line-soft) transparent; }
.tv { min-width: max-content; position: relative; }
.tv-head { position: sticky; top: 0; z-index: 6; background: #0b0d14; box-shadow: 0 6px 12px -8px rgba(0,0,0,.9); }
.tv-row { display: grid; grid-template-columns: var(--cols); }
.tv-corner { position: sticky; left: 0; z-index: 2; background: #0b0d14; border-right: 1px solid var(--line); }
.tv-corner.small { display: flex; align-items: center; justify-content: center; font: 600 11px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.tv-zone { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px 6px 4px; border-left: 1px solid var(--line); border-bottom: 2px solid var(--zc); }
.tv-zone b { font: 700 12px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--zc); }
.tv-zone span { font-size: 11px; color: var(--faint); }
.tv-pc { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 4px; font-size: 13px; font-weight: 600; border-left: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tv-pc i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; background: var(--offline); }
.tv-pc i.free { background: var(--free); box-shadow: 0 0 8px var(--free); }
.tv-pc i.busy { background: var(--busy); box-shadow: 0 0 8px var(--busy); }
.tv-body { display: grid; grid-template-columns: var(--cols); position: relative;
  background-image: linear-gradient(180deg, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 100% 56px, 100% 28px; }
.tv-times { position: sticky; left: 0; z-index: 4; background: #0b0d14; border-right: 1px solid var(--line); }
.tv-times span { position: absolute; left: 0; right: 0; padding: 4px 8px 0; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tv-times span.midnight { color: var(--accent2); }
.tv-times span em { display: block; font-style: normal; font-size: 10px; opacity: .85; }
.tv-col { position: relative; border-left: 1px solid rgba(255,255,255,.04); cursor: pointer; }
.tv-col:hover { background: rgba(255,255,255,.018); }
.tv-now { position: absolute; left: 64px; right: 0; height: 2px; margin-top: -1px; background: var(--accent2); box-shadow: 0 0 10px var(--accent2); z-index: 3; pointer-events: none; }
.tv-now span { position: sticky; left: 66px; display: inline-block; transform: translateY(-50%); padding: 2px 6px; border-radius: 4px; background: var(--accent2); color: #160013; font: 700 11px var(--head); }
.tl-bar { position: absolute; left: 4px; right: 4px; min-height: 6px; margin-top: 1px; overflow: hidden; padding: 5px 7px; border-radius: 7px; cursor: pointer;
  display: flex; flex-direction: column; line-height: 1.2; background: rgba(0,229,255,.12); border: 1px solid rgba(0,229,255,.35); border-top: 3px solid var(--cyan);
  color: #d6fbff; transition: filter .12s; }
.tl-bar b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-bar small { font-size: 11px; opacity: .75; overflow: hidden; text-overflow: ellipsis; }
.tl-bar:hover { filter: brightness(1.25); z-index: 2; }
.tl-bar.hold { background: rgba(255,176,32,.13); border-color: rgba(255,176,32,.4); border-top-color: var(--locked); color: #ffe7bd; }
.tl-bar.play { background: rgba(198,255,0,.07); border-color: rgba(198,255,0,.22); border-top-color: var(--accent); color: #e9ffb0; cursor: default; }
.tl-bar.came { background: rgba(198,255,0,.06); border-color: rgba(198,255,0,.18); border-top-color: rgba(198,255,0,.6); color: var(--muted); }
.tl-bar.noshow { background: rgba(255,59,92,.1); border-color: rgba(255,59,92,.35); border-top-color: var(--danger); color: #ffc2cd; }
.tl-bar.gone { background: transparent; border: 1px dashed var(--line-soft); color: var(--faint); pointer-events: none; }   /* a cancelled one does not hold the spot: a click there books (10.11, Yakuza) */
.tl-bar.gone b { text-decoration: line-through; }
/* No end yet (an open game, an open booking): fades out below instead of running to the end of the day. */
.tl-bar.open { border-bottom: 0; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 46px), transparent); }
.tl-ghost { position: absolute; left: 4px; right: 4px; border-radius: 7px; border: 1px dashed rgba(198,255,0,.6); background: rgba(198,255,0,.07);
  color: var(--accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; white-space: nowrap; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-size: 12px; color: var(--muted); }
.tl-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.tl-legend .bk::before { background: var(--cyan); }
.tl-legend .hold::before { background: var(--locked); }
.tl-legend .play::before { background: var(--accent); }
.tl-legend .came::before { background: rgba(198,255,0,.4); }
.tl-legend .noshow::before { background: var(--danger); }
.tl-hint { margin: 8px 2px 4px; }
.item.flash { animation: bkflash 1.6s ease-out; }
@keyframes bkflash { 0%, 30% { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent), 0 0 18px rgba(198,255,0,.35); } 100% { } }

/* Состояние ПК (30.10): a card per PC with the GPU temperature as a ring; colour = the level. */
.hsum { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.hsum-i { flex: 1 1 140px; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; background: var(--tile); border: 1px solid var(--line); border-radius: 10px; }
.hsum-i b { font: 700 28px var(--head); }
.hsum-i span { color: var(--muted); font-size: 13px; }
.hsum-i.crit b { color: var(--danger); text-shadow: 0 0 14px rgba(255,59,92,.5); }
.hsum-i.warn b { color: var(--locked); }
.hsum-i.ok b { color: var(--accent); text-shadow: 0 0 14px rgba(198,255,0,.35); }
.hsum-i.unknown b { color: var(--faint); }
.hzone { display: flex; align-items: baseline; gap: 10px; margin: 20px 2px 8px; }
.hzone b { font: 700 12px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--zc); }
.hzone b::before { content: ''; display: inline-block; width: 3px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--zc); box-shadow: 0 0 8px var(--zc); }
.hzone span { color: var(--faint); font-size: 12px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.hcard { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--tile); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 10px; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.hcard::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--faint); opacity: .5; }
.hcard.ok::before { background: var(--accent); opacity: .7; } .hcard.warn::before { background: var(--locked); opacity: 1; } .hcard.crit::before { background: var(--danger); opacity: 1; box-shadow: 0 0 12px var(--danger); }
.hcard.crit { border-color: rgba(255,59,92,.45); box-shadow: 0 0 22px -8px rgba(255,59,92,.6); }
.hcard.warn { border-color: rgba(255,176,32,.35); }
.hcard:hover { transform: translateY(-2px); border-color: var(--line-soft); }
.hcard.off { opacity: .45; }
.hcard-top { display: flex; justify-content: space-between; align-items: center; }
.hname { font-weight: 700; font-size: 15px; }
.hlv { font: 700 10px var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 1px solid; }
.hlv.ok { color: var(--accent); border-color: rgba(198,255,0,.35); } .hlv.warn { color: var(--locked); border-color: rgba(255,176,32,.45); }
.hlv.crit { color: var(--danger); border-color: rgba(255,59,92,.5); background: rgba(255,59,92,.08); } .hlv.unknown { color: var(--faint); border-color: var(--line); }
.hcard-mid { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.hring-w { position: relative; width: 76px; flex: 0 0 76px; text-align: center; }
.hring { width: 76px; height: 76px; }
.hring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hring .bg { stroke: none; fill: rgba(255,255,255,.02); }
.hring .track { stroke: rgba(255,255,255,.06); }
.hring .fg { transition: stroke-dasharray .6s; }
.hring.ok .fg { stroke: var(--accent); filter: drop-shadow(0 0 4px rgba(198,255,0,.6)); }
.hring.warn .fg { stroke: var(--locked); filter: drop-shadow(0 0 4px rgba(255,176,32,.7)); }
.hring.crit .fg { stroke: var(--danger); filter: drop-shadow(0 0 6px rgba(255,59,92,.9)); }
.hring-v { position: absolute; top: 22px; left: 0; right: 0; font: 700 22px var(--head); }
.hring-v small { font-size: 11px; color: var(--muted); margin-left: 1px; }
.hring-l { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-top: -10px; }
.hstats { flex: 1; display: grid; gap: 3px; font-size: 12px; }
.hstats div { display: flex; justify-content: space-between; gap: 8px; }
.hstats span { color: var(--muted); }
.hstats b, .hkv b { font-weight: 600; }
b.ok, .okc { color: var(--accent); } b.warn { color: var(--locked); } b.crit, .critc { color: var(--danger); } b.none { color: var(--faint); }
.hissue { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.hcard.warn .hissue { color: #ffd38a; } .hcard.crit .hissue { color: #ff9eb0; }
.halert.crit { border-left: 3px solid var(--danger); } .halert.warn { border-left: 3px solid var(--locked); }
.hissues { margin: 12px 0 4px; padding: 10px 12px; border-radius: 8px; background: rgba(255,176,32,.07); border: 1px solid rgba(255,176,32,.3); color: #ffd38a; font-size: 13px; display: grid; gap: 4px; }
.hparts { display: grid; gap: 6px; }
.hkv { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.hkv span { color: var(--muted); }
.hkv b { text-align: right; }
.hwear { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.hwear i { display: block; height: 100%; border-radius: 3px; }
.hwear i.ok { background: var(--accent); } .hwear i.warn { background: var(--locked); } .hwear i.crit { background: var(--danger); }
.tchart { width: 100%; height: auto; }
.tchart line { stroke: rgba(255,255,255,.07); } .tchart line.warm { stroke: rgba(255,176,32,.35); stroke-dasharray: 4 4; }
.tchart text { fill: var(--faint); font-size: 10px; text-anchor: end; }
.tchart path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.tc-gpu { stroke: var(--accent); filter: drop-shadow(0 0 3px rgba(198,255,0,.6)); } .tc-cpu { stroke: var(--cyan); }
.tlegend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tlegend span::before { content: ''; display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: 3px; border-radius: 2px; }
.tlegend .g::before { background: var(--accent); } .tlegend .c::before { background: var(--cyan); }
.hcard.warn, .hcard.crit, .halert.warn, .halert.crit, .hsum-i.warn, .hsum-i.crit { font-style: normal; color: inherit; }
.hcard.warn { color: var(--text); }
b.warn { font-style: normal; }
.bk-busy { color: var(--locked) !important; margin-top: 3px; }
/* Быстрые клавиши on the buttons (30.10). */
kbd { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; font: 600 10px var(--head); letter-spacing: .04em; opacity: .65; vertical-align: 1px; }

/* ---------- Бухгалтерия, 06.11: один экран, подробности сбоку ---------- */
.bk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bk-top h2 { margin: 0; }
.bk-top .chips { flex-wrap: wrap; }
.bk-hero { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(340px, 1.35fr); gap: 34px; padding: 28px 30px;
  border-color: rgba(198,255,0,.45); box-shadow: inset 0 0 60px rgba(198,255,0,.05);
  background: radial-gradient(640px 280px at 0% 0%, rgba(198,255,0,.11), transparent 70%), var(--panel); }
.bk-hero.neg { border-color: rgba(255,59,92,.5); background: radial-gradient(640px 280px at 0% 0%, rgba(255,59,92,.13), transparent 70%), var(--panel); }
.bk-cap { font-family: var(--head); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.bk-big { font-family: var(--head); font-weight: 800; font-size: 66px; line-height: 1.02; margin: 10px 0 12px; color: var(--accent); text-shadow: 0 0 34px rgba(198,255,0,.5); white-space: nowrap; }
.bk-hero.neg .bk-big { color: var(--danger); text-shadow: 0 0 34px rgba(255,59,92,.55); }
.bk-sub { color: var(--muted); font-size: 14px; margin-top: 4px; } .bk-sub b { color: var(--text); }
.bk-fc { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-soft); font-size: 14px; color: var(--text); }
.bk-fc b { color: var(--accent); font-family: var(--head); font-size: 20px; margin: 0 4px; }
.bk-prog { height: 6px; background: #141824; margin: 10px 0 6px; } .bk-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--accent)); box-shadow: 0 0 10px rgba(198,255,0,.4); }
.bk-wf { display: grid; grid-template-columns: 140px 1fr 112px; align-items: center; gap: 14px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.bk-wf:hover span { color: var(--text); }
.bk-wf > span { color: var(--muted); }
.bk-wf > div { position: relative; height: 24px; background: rgba(255,255,255,.035); }
.bk-wf i { position: absolute; top: 0; bottom: 0; box-shadow: 0 0 14px currentColor; opacity: .92; }
.bk-wf b { text-align: right; font-family: var(--head); font-size: 17px; }
.bk-wf.total { cursor: default; border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; }
.bk-wf.total > span, .bk-wf.total b { color: var(--accent); font-weight: 700; }
.bk-note { color: var(--faint); font-size: 12px; margin-top: 10px; }
.bk-todo { display: grid; gap: 8px; }
.bk-do { color: var(--text); font-style: normal; display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--tile); border: 1px solid var(--line); border-left: 3px solid var(--accent); cursor: pointer; transition: background .15s, transform .15s; }
.bk-do:hover { background: var(--tile-h); transform: translateX(2px); }
.bk-do.warn { border-left-color: var(--locked); } .bk-do.bad { border-left-color: var(--danger); background: rgba(255,59,92,.06); } .bk-do.info { border-left-color: var(--cyan); }
.bk-do .ic { font-size: 20px; flex: 0 0 28px; text-align: center; }
.bk-do .tx { flex: 1; min-width: 0; font-weight: 600; } .bk-do .tx small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.bk-do .am { font-family: var(--head); font-size: 18px; font-weight: 700; white-space: nowrap; }
.bk-do.warn .am { color: var(--locked); } .bk-do.bad .am { color: var(--danger); }
.bk-do .go { color: var(--faint); font-size: 22px; line-height: 1; }
.bk-ok { color: var(--accent); }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.bk-card { cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; min-height: 178px; display: flex; flex-direction: column; }
.bk-card:hover { border-color: var(--line-soft); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.bk-card .bk-cap { display: flex; justify-content: space-between; } .bk-card .bk-cap::after { content: "›"; color: var(--faint); font-size: 18px; letter-spacing: 0; line-height: .6; }
.bk-num { font-family: var(--head); font-weight: 800; font-size: 30px; margin: 8px 0 6px; color: var(--cyan); white-space: nowrap; }
.bk-mini { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; margin-top: auto; padding-top: 10px; }
.bk-mini span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bk-mini b { font-family: var(--head); text-align: right; font-weight: 600; }
.bk-bars { display: grid; gap: 7px; margin-top: auto; padding-top: 10px; }
.bk-bars > div { display: grid; grid-template-columns: 92px 1fr 74px; gap: 8px; align-items: center; font-size: 12px; }
.bk-bars i { display: block; height: 7px; min-width: 2px; } .bk-bars em { font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-bars b { text-align: right; font-family: var(--head); font-weight: 600; }
.bk-shade { position: fixed; inset: 0; background: rgba(3,4,8,.62); backdrop-filter: blur(2px); z-index: 25; }
.bk-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(660px, 100vw); background: var(--bg); border-left: 1px solid var(--line-soft); z-index: 26;
  display: flex; flex-direction: column; box-shadow: -24px 0 70px rgba(0,0,0,.55); animation: bkIn .18s ease-out; }
@keyframes bkIn { from { transform: translateX(40px); opacity: .3; } }
.bk-dh { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.bk-dt { font-family: var(--head); font-size: 19px; text-transform: uppercase; letter-spacing: .08em; }
.bk-db { padding: 20px 24px 60px; overflow: auto; flex: 1; }
.bk-db h3:first-child { margin-top: 0; }
.bk-db .fn-cat { grid-template-columns: 170px 1fr 90px; }
.bk-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.bk-back { margin-bottom: 12px; }
.bk-wide { grid-column: span 2; cursor: default; }
.bk-wide:hover { transform: none; box-shadow: none; } .bk-wide .bk-cap::after { content: none; }
@media (max-width: 980px) { .bk-wide { grid-column: auto; } }
@media (max-width: 760px) {
  .bk-hero { grid-template-columns: 1fr; padding: 20px; gap: 20px; } .bk-big { font-size: 46px; }
  .bk-wf { grid-template-columns: 104px 1fr 92px; gap: 8px; } .bk-wf b { font-size: 15px; }
  .bk-db .fn-cat { grid-template-columns: 120px 1fr 80px; }
}

/* ---------- Дневной режим (06.11): светлый фон, тёмный текст, без неонового свечения ----------
   Включается кнопкой ☀/🌙 в шапке (html[data-theme="light"]), выбор помнится на этом компьютере. */
html[data-theme="light"] {
  --bg: #eef1f6; --panel: #ffffff; --tile: #f5f7fb; --tile-h: #e9edf5; --line: #dbe0ea; --line-soft: #c4cbd8;
  --accent: #3d7a00; --accent-soft: rgba(61,122,0,.08); --accent2: #c2149f; --cyan: #0a7fa3;
  --text: #141824; --muted: #535b6e; --faint: #7d8496;
  --free: #3d7a00; --busy: #0a7fa3; --locked: #b86e00; --offline: #9aa1b0; --danger: #d4183f;
  --glow: none; --glow2: none; color-scheme: light;
}
html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] * { text-shadow: none !important; }
html[data-theme="light"] .card { background: var(--panel); box-shadow: 0 1px 2px rgba(20,24,36,.06), 0 4px 14px rgba(20,24,36,.05); }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea { background: #fff; color: var(--text); border-color: var(--line-soft); color-scheme: light; }
html[data-theme="light"] button { color: var(--text); }
html[data-theme="light"] button.primary, html[data-theme="light"] button.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="light"] .fn-tabs button.on, html[data-theme="light"] .mt-seg button.on.on { color: #fff; }
html[data-theme="light"] .chip.on, html[data-theme="light"] .fn-chips button.on { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
html[data-theme="light"] td { border-bottom-color: var(--line); }
html[data-theme="light"] #topbar, html[data-theme="light"] #tabs { background: var(--panel); }
html[data-theme="light"] .mt-bar div, html[data-theme="light"] .fn-bar, html[data-theme="light"] .fn-cat div, html[data-theme="light"] .bk-prog,
html[data-theme="light"] .bk-wf > div { background: #e6e9f0; }
html[data-theme="light"] .tl-wrap, html[data-theme="light"] .tv-head, html[data-theme="light"] .tv-corner, html[data-theme="light"] .tv-times { background: #f7f8fb; }
html[data-theme="light"] .tl-bar { color: var(--text); }
html[data-theme="light"] .tl-bar.hold, html[data-theme="light"] .tl-bar.play, html[data-theme="light"] .tl-bar.noshow { color: var(--text); }
html[data-theme="light"] .fn-alert { color: #7a0f26; background: rgba(212,24,63,.06); }
html[data-theme="light"] .fn-tag, html[data-theme="light"] .mt-pcs.other span { color: #6b3fc4; }
html[data-theme="light"] .hcard.warn .hissue, html[data-theme="light"] .hissues { color: #8a5200; }
html[data-theme="light"] .hcard.crit .hissue { color: #a3122f; }
html[data-theme="light"] .warn { color: var(--locked); }
html[data-theme="light"] #dlg, html[data-theme="light"] .sheet, html[data-theme="light"] #sheet { background: var(--panel); color: var(--text); }
html[data-theme="light"] #dlgBackdrop, html[data-theme="light"] #sheetBackdrop, html[data-theme="light"] .bk-shade { background: rgba(20,24,36,.35); }
/* Inline colours drawn for the dark screen: the light purple, magenta and lime text, the svg tracks and labels. */
html[data-theme="light"] [style*="color:#b78bff"] { color: #6b3fc4 !important; }
html[data-theme="light"] [style*="color:#ff2bd6"] { color: var(--accent2) !important; }
html[data-theme="light"] [style*="color:#c6ff00"] { color: var(--accent) !important; }
html[data-theme="light"] [style*="color:#00e5ff"] { color: var(--cyan) !important; }
html[data-theme="light"] svg [fill="#f1f3f8"] { fill: var(--text); }
html[data-theme="light"] svg [fill="#141824"], html[data-theme="light"] svg [fill="#0d0f16"] { fill: #e6e9f0; }
html[data-theme="light"] svg [fill="#9aa1b5"], html[data-theme="light"] svg [fill="#6b7289"] { fill: #535b6e; }
html[data-theme="light"] svg [stroke="#2d3449"] { stroke: #c4cbd8; }
/* Бухгалтерия */
html[data-theme="light"] .bk-hero { background: linear-gradient(135deg, rgba(61,122,0,.07), transparent 60%), var(--panel); border-color: rgba(61,122,0,.35); box-shadow: 0 4px 20px rgba(20,24,36,.07); }
html[data-theme="light"] .bk-hero.neg { background: linear-gradient(135deg, rgba(212,24,63,.07), transparent 60%), var(--panel); border-color: rgba(212,24,63,.35); }
html[data-theme="light"] .bk-wf i { box-shadow: none; }
html[data-theme="light"] .bk-drawer { background: var(--bg); box-shadow: -18px 0 50px rgba(20,24,36,.18); }
html[data-theme="light"] .bk-card:hover { box-shadow: 0 8px 24px rgba(20,24,36,.12); }
html[data-theme="light"] .bk-do { background: var(--panel); }
html[data-theme="light"] .bk-do.bad { background: rgba(212,24,63,.05); }

/* The day / night switch in the top bar. */
.theme-btn { flex: 0 0 auto; margin-right: 10px; padding: 4px 9px; font-size: 15px; line-height: 1; }

/* ---------- Бухгалтерия → Графики ---------- */
.bk-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.bk-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-full { grid-column: 1 / -1; }
.bk-chart { display: flex; flex-direction: column; gap: 10px; }
.bk-ch-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bk-keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.bk-keys span { display: inline-flex; align-items: center; gap: 6px; }
.bk-keys i { width: 10px; height: 10px; display: inline-block; }
.bk-keys i.dash { width: 16px; height: 0; border-top: 2px dashed var(--accent); }
.bk-svg { width: 100%; display: block; overflow: visible; }
.bk-ax { font-size: 11px; fill: var(--faint); }
.bk-val { font-size: 11px; fill: var(--text); font-weight: 600; }
.bk-grid-l { stroke: var(--line); stroke-width: 1; }
.bk-avg { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 6 6; }
.bk-part rect { opacity: .45; }
.bk-insight { font-size: 13px; color: var(--muted); margin-top: auto; } .bk-insight b { color: var(--text); }
.bk-heat { display: grid; grid-template-columns: 28px repeat(24, 1fr); gap: 3px; align-items: center; }
.bk-heat i { display: block; height: 26px; border-radius: 3px; background: color-mix(in srgb, var(--accent) var(--v), var(--tile)); transition: transform .1s; }
.bk-heat i:hover { transform: scale(1.18); outline: 1px solid var(--text); }
.bk-heat i.na { background: transparent; border: 1px dashed var(--line); }
.bk-hd { font-size: 11px; color: var(--muted); font-family: var(--head); }
.bk-hh { font-size: 10px; color: var(--faint); }
.bk-scale { width: 90px; height: 10px; background: linear-gradient(90deg, var(--tile), var(--accent)); border: 1px solid var(--line); }
.bk-donut { display: flex; align-items: center; gap: 20px; }
.bk-donut svg { width: 170px; flex: 0 0 170px; }
.bk-dn-top { font-family: var(--head); font-size: 17px; font-weight: 800; fill: var(--text); }
.bk-dn-sub { font-size: 8.5px; fill: var(--muted); }
.bk-legend { flex: 1; display: grid; gap: 6px; min-width: 0; }
.bk-legend > div { display: grid; grid-template-columns: 12px 1fr auto 38px; gap: 8px; align-items: center; font-size: 13px; }
.bk-legend i { width: 10px; height: 10px; border-radius: 2px; }
.bk-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.bk-legend b { font-family: var(--head); font-weight: 600; } .bk-legend em { font-style: normal; color: var(--faint); text-align: right; font-size: 12px; }
.bk-prod { display: grid; gap: 9px; }
.bk-prod > div { display: grid; grid-template-columns: 22px minmax(110px, 1.1fr) 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
.bk-rank { font-family: var(--head); font-weight: 800; color: var(--accent); text-align: center; }
.bk-pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bk-pn small { color: var(--faint); margin-left: 6px; }
.bk-tb { height: 8px; background: var(--tile); } .bk-tb i { display: block; height: 100%; background: linear-gradient(90deg, #ff2bd6, #ffb020); }
.bk-prod b { text-align: right; font-family: var(--head); font-weight: 600; }
html[data-theme="light"] .bk-heat i { background: color-mix(in srgb, #3d7a00 var(--v), #eef1f6); }
@media (max-width: 900px) {
  .bk-charts { grid-template-columns: 1fr; }
  .bk-heat { gap: 1px; grid-template-columns: 22px repeat(24, 1fr); } .bk-heat i { height: 18px; border-radius: 1px; }
  .bk-donut { flex-direction: column; align-items: stretch; } .bk-donut svg { width: 150px; margin: 0 auto; }
}

/* ---------- Бухгалтерия, сжатие 07.11: один экран без прокрутки ---------- */
.bk-line { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; margin: 10px 2px 0; padding: 10px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border: 1px solid transparent; }
.bk-line:hover { border-color: var(--line); background: var(--tile); }
.bk-line span { display: inline-flex; gap: 8px; align-items: baseline; } .bk-line em { font-style: normal; } .bk-line b { font-family: var(--head); font-size: 15px; color: var(--text); }
.bk-line .bk-split { flex-direction: column; align-items: stretch; gap: 4px; min-width: 150px; }
.bk-line .bk-split i { display: block; height: 6px; background: var(--cyan); overflow: hidden; } .bk-line .bk-split u { display: block; height: 100%; background: var(--accent); }
.bk-line .go { margin-left: auto; color: var(--faint); font-size: 20px; }
.bk-tg.on { border-color: var(--accent); color: var(--accent); }
.bk-cs { color: var(--muted); font-size: 13px; margin-top: auto; }
.bk-card { min-height: 130px; }
.bk-more { color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px 0 14px 16px; } .bk-more:hover { color: var(--text); }
.bk-db .bk-chart { margin-top: 0; } .bk-db .bk-heat i { height: 20px; }

/* «Недостачи» (09.11): shifts strip, admins open to their shifts. */
.cs-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.cs-strip i { width: 18px; height: 18px; display: block; cursor: default; transition: transform .12s; }
.cs-strip i:hover { transform: scale(1.35); }
.cs-strip i.cs-ok, i.cs-key.cs-ok { background: var(--accent); }
.cs-strip i.cs-bad, i.cs-key.cs-bad { background: var(--danger); box-shadow: 0 0 8px rgba(255,59,92,.6); }
.cs-strip i.cs-over, i.cs-key.cs-over { background: #ffb020; }
.cs-strip i.cs-ok { opacity: .55; }
i.cs-key { display: inline-block; width: 10px; height: 10px; margin: 0 5px 0 10px; vertical-align: -1px; }
i.cs-key:first-child { margin-left: 0; }
.cs-who { cursor: pointer; transition: background .15s; }
.cs-who:hover, .cs-who.on { background: var(--accent-soft); }
.cs-open > td { padding: 4px 0 12px 18px !important; animation: fnHint .25s ease; }
.cs-shifts { font-size: 13px; }
.cs-shifts tr.cs-bad .cs-d { color: var(--danger); }
.cs-shifts tr.cs-over .cs-d { color: #ffb020; }
.cs-shifts tr.cs-ok .cs-d { color: var(--accent); }
.cs-hot { border-color: rgba(255,59,92,.5); }
html[data-theme="light"] .cs-strip i.cs-ok, html[data-theme="light"] i.cs-key.cs-ok { background: #3c9a00; }

/* «Бухгалтерия → Бар» (09.11): products as bars, «Звёзды и балласт», history folded. */
.br-big { padding: 10px 18px; font-size: 14px; }
.br-do { gap: 12px; }
.br-do b { color: var(--text); }
.br-list { padding-top: 6px; }
.br-item { display: grid; grid-template-columns: minmax(220px, 1.4fr) 1fr 110px; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .15s; }
.br-item:hover { background: var(--accent-soft); }
.br-item:last-of-type { border-bottom: 0; }
.br-bar { height: 10px; background: #141824; }
.br-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--accent)); box-shadow: 0 0 10px rgba(0,229,255,.35); animation: brGrow .5s ease; transform-origin: left; }
@keyframes brGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.br-sum { text-align: right; font-family: var(--head); font-weight: 700; color: var(--accent); }
.br-tag { display: inline-block; font-size: 11px; padding: 1px 7px; margin-left: 6px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.br-tag.hot { border-color: rgba(255,120,0,.6); color: #ff9a3c; }
.br-tag.warn { border-color: rgba(255,176,32,.6); color: #ffb020; }
.br-tag.bad { border-color: rgba(255,59,92,.6); color: var(--danger); }
.br-tag.dim { opacity: .8; }
.br-quad { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.br-q { border-left: 3px solid var(--line); }
.br-q-star { border-left-color: var(--accent); } .br-q-gem { border-left-color: var(--cyan); }
.br-q-horse { border-left-color: #ffb020; } .br-q-rock { border-left-color: var(--danger); }
.br-qlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.br-qlist span { font-size: 12.5px; padding: 3px 8px; background: var(--tile); border: 1px solid var(--line-soft); }
.br-hist { margin-top: 18px; }
.br-hist summary { cursor: pointer; padding: 12px 14px; border: 1px solid var(--line-soft); color: var(--muted); list-style: none; }
.br-hist summary::before { content: '▸ '; } .br-hist[open] summary::before { content: '▾ '; }
.br-hist summary:hover { color: var(--text); border-color: var(--accent); }
html[data-theme="light"] .br-bar { background: #e6e9ef; }
html[data-theme="light"] .br-sum { color: #3c9a00; }
@media (max-width: 700px) { .br-item { grid-template-columns: 1fr 90px; } .br-bar { grid-column: 1 / -1; grid-row: 2; } }

/* The PC's card pinned on the right of a wide screen (10.11, Yakuza): the hall stays visible and clickable beside it. */
@media (min-width: 1280px) {
  #sheet.docked { top: 57px; right: 0; bottom: 0; width: 420px; max-height: none; clip-path: none; border-top: 0;
    border-left: 2px solid var(--accent); box-shadow: -12px 0 40px rgba(0,0,0,.35); padding-top: 14px; z-index: 4; }
  #sheet.docked #undock { float: right; margin: -4px -6px 0 8px; }
  body.sheet-docked #view { margin-right: 420px; }
  body.demo #sheet.docked { bottom: 34px; }
}

/* Бар (11.11, Yakuza): on a wide screen the cart stands to the right of the goods, not under them */
@media (min-width: 1100px) {
  .shop-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
  .shop-split .shop-cart { position: sticky; top: 12px; }
  .shop-split .shop-cart .op { margin-top: 0; }
  .shop-split .shop-sales { grid-column: 1 / -1; }
}
/* very wide (Yakuza's monitor): the shift's sales go to a third, compact column on the right instead of under everything */
@media (min-width: 1600px) {
  #view:has(.shop-split) { max-width: none; }
  .shop-split { grid-template-columns: minmax(0, 1fr) 380px 340px; }
  .shop-split .shop-sales { grid-column: auto; position: sticky; top: 12px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .shop-split .shop-sales h3 { margin-top: 0; }
  .shop-split .shop-sales .item { padding: 7px 9px; gap: 6px; font-size: 13px; }
  .shop-split .shop-sales .item .s { font-size: 11px; }
  .shop-split .shop-sales .item button { padding: 5px 7px; font-size: 11px; }
}

/* X-отчёт бара */
table.barx { width: 100%; border-collapse: collapse; }
table.barx th { font-size: 12px; color: var(--faint); font-weight: 500; text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.barx td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.barx td.n { text-align: right; white-space: nowrap; }
table.barx tr.tot td { border-bottom: 0; padding-top: 10px; }

/* «События клуба» (15.11): the cover, photos, the king's match, a real bracket */
.evcard { padding: 0 !important; overflow: hidden; }
.evcov { position: relative; height: 120px; background: center/cover no-repeat; }
.evcov.none { height: 84px; background: radial-gradient(circle at 15% 0%, rgba(255,43,214,.35), transparent 60%), radial-gradient(circle at 90% 100%, rgba(0,229,255,.25), transparent 60%), var(--tile); }
.evshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%); }
.evttl { position: absolute; left: 14px; right: 60px; bottom: 10px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.evst { position: absolute; top: 10px; left: 12px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; }
.evst.live { background: #e11d48; box-shadow: 0 0 12px rgba(225,29,72,.6); }
.evcovbtn { position: absolute; top: 8px; right: 8px; flex: 0 !important; padding: 4px 8px !important; background: rgba(0,0,0,.5) !important; border: 0 !important; }
.evavi { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; color: #fff; font-weight: 800; flex: 0 0 auto; vertical-align: middle; }
.evavi.ghost { background: var(--line); }
.evfill { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.evfill i { display: inline-block; width: 90px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.evfill i b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.evmatch { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 4px; }
.evside { display: flex !important; flex-direction: column; align-items: center; gap: 4px; flex: 0 1 220px !important; padding: 14px 10px !important; background: var(--tile) !important; border: 1px solid var(--line) !important; border-radius: 14px; }
button.evside:hover { border-color: var(--accent) !important; box-shadow: var(--glow); }
.evside.king { border-color: rgba(255,209,102,.5) !important; background: linear-gradient(160deg, rgba(255,209,102,.14), var(--tile)) !important; }
.evside .evav { position: relative; }
.evside .evav i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-style: normal; font-size: 24px; }
.evside.king .evavi { box-shadow: 0 0 0 3px #ffd166, 0 0 18px rgba(255,209,102,.45); }
.evside b { font-size: 16px; }
.evside .evwin { margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #000; font-weight: 800; font-size: 13px; }
.evvs { font-weight: 900; font-size: 22px; color: var(--accent2); }
.evqueue { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.evqueue > div { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--tile); }
.evrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.evrow > span:not(.evavi) { flex: 1; }
.evbr { display: flex; overflow-x: auto; margin-top: 12px; padding-bottom: 6px; }
.evbr .brc { display: flex; flex-direction: column; flex: 0 0 210px; }
.evbr .brc + .brc { margin-left: 26px; }
.evbr .brt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.evbr .brs { flex: 1; display: flex; flex-direction: column; }
.evbr .brslot { flex: 1; display: flex; align-items: center; position: relative; padding: 6px 0; }
.evbr .brc:not(:last-child) .brslot::after { content: ""; position: absolute; right: -14px; width: 13px; border-right: 2px solid var(--line-soft); }
.evbr .brc:not(:last-child) .brslot:nth-child(odd)::after { top: 50%; bottom: 0; border-top: 2px solid var(--line-soft); }
.evbr .brc:not(:last-child) .brslot:nth-child(even)::after { top: 0; bottom: 50%; border-bottom: 2px solid var(--line-soft); }
.evbr .brc:not(:first-child) .brslot::before { content: ""; position: absolute; left: -13px; width: 13px; top: 50%; border-top: 2px solid var(--line-soft); }
.evbr .bm { width: 100%; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--tile); }
.evbr .bm.live { border-color: var(--accent); box-shadow: var(--glow); }
.evbr .bs { display: flex; align-items: center; gap: 8px; padding: 6px 9px; font-size: 13px; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); }
.evbr .bs + .bs { border-top: 1px solid var(--line); }
.evbr .bs .bn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evbr .bs i { font-style: normal; color: var(--accent); }
.evbr .bs.win { font-weight: 800; color: var(--accent); }
.evbr .bs.lose { opacity: .45; }
.evbr .bs.pick { cursor: pointer; }
.evbr .bs.pick em { font-style: normal; font-size: 11px; color: var(--muted); }
.evbr .bs.pick:hover { background: var(--accent-soft); }
.evbr .bs.pick:hover em { color: var(--accent); }

/* Бухгалтерия → История (16.11): a stock-in / count per card, its table inside */
.bh-doc { margin-bottom: 8px; padding: 10px 14px; }
.bh-doc > summary { list-style: none; }
.bh-doc > summary::-webkit-details-marker { display: none; }
.bh-doc > summary::before { content: '▸ '; color: var(--muted); }
.bh-doc[open] > summary::before { content: '▾ '; }
.bh-doc table th { font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; }
.bh-doc table th:first-child { text-align: left; }
.bh-warn td { background: rgba(255, 170, 0, .07); }

/* Карточка клиента (17.11, Delta: «мелкое окно»): wide on a computer; «История» - cards by day, balance before → after. */
@media (min-width: 900px) {
  #sheet.wide { width: min(820px, calc(100vw - var(--nav-w) - 48px)); }
}
.chist { display: flex; flex-direction: column; gap: 8px; }
.chist .hc-day { margin: 12px 0 2px; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--muted); }
.chist .hc-day:first-child { margin-top: 0; }
.chist .hcard { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 14px;
  background: var(--tile); border: 1px solid var(--line); border-left: 3px solid var(--line-soft); clip-path: var(--cut-s); }
.chist .hc-session { border-left-color: var(--cyan); }
.chist .hc-sale { border-left-color: var(--accent2); }
.chist .hc-deposit, .chist .hc-bonus { border-left-color: var(--accent); }
.chist .hc-correction, .chist .hc-forfeit { border-left-color: var(--locked); }
.chist .hc-main { min-width: 0; flex: 1 1 auto; }
.chist .hc-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.chist .hc-line { font-size: 14px; color: var(--text); line-height: 1.45; }
.chist .hc-bal { margin-top: 6px; font-size: 13px; color: var(--muted); }
.chist .hc-bal b { color: var(--text); }
.chist .hc-right { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chist .hc-sum { font-family: var(--head); font-size: 20px; font-weight: 700; white-space: nowrap; }
.chist .hc-sum.in { color: var(--accent); }
.chist .hc-sum.out { color: var(--accent2); }
.chist .hc-live { color: var(--cyan); font-weight: 600; }

/* «🗺 Схема зала» (17.11, Yakuza): PCs and rooms where they stand; the colour is the state. */
.hmap-wrap { overflow: auto; padding: 12px 0 6px; }
.hmap { position: relative; background-image: radial-gradient(circle, var(--line) 1px, transparent 1px); background-size: var(--u) var(--u); }
.hm-item { position: absolute; box-sizing: border-box; user-select: none; }
.hm-label { border: 1px dashed var(--line-soft); color: var(--muted); font-family: var(--head); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 6px; overflow: hidden; z-index: 0; }
.hm-pc { z-index: 1; cursor: pointer; padding: 3px 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: var(--tile); border: 1px solid var(--line-soft); border-top: 3px solid var(--zc); overflow: hidden; }
.hm-pc:hover { background: var(--tile-h); }
.hm-pc .hm-name { font-size: 11px; font-weight: 700; line-height: 1.1; white-space: nowrap; letter-spacing: -.02em; max-width: 100%; overflow: hidden; text-overflow: clip; }
.hm-pc .hm-time { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-pc .hm-bk { position: absolute; top: 1px; right: 2px; font-size: 9px; }
.hm-pc .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; margin: 0; }
.hm-pc.st-Free { background: color-mix(in srgb, var(--free) 16%, var(--tile)); border-color: color-mix(in srgb, var(--free) 55%, transparent); }
.hm-pc.st-Busy { background: color-mix(in srgb, var(--busy) 18%, var(--tile)); border-color: color-mix(in srgb, var(--busy) 55%, transparent); }
.hm-pc.st-Locked, .hm-pc.st-Maintenance { background: color-mix(in srgb, var(--locked) 16%, var(--tile)); }
.hm-pc.st-Offline { opacity: .55; }
.hm-pc.hmwarn { box-shadow: inset 0 0 0 2px var(--locked); }
.hm-pc.hmcrit { box-shadow: inset 0 0 0 2px var(--danger); }
.hm-item.selected { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 2; }
.hmap.editing .hm-item { cursor: grab; }
.hmap.editing .hm-label { background: rgba(255,255,255,.02); }
.hm-tools { margin-bottom: 10px; }
.hm-pc .bar { background: var(--line); overflow: hidden; }
.hm-pc .bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.hm-pc .bar i.warn { background: var(--locked); } .hm-pc .bar i.crit { background: var(--danger); }
/* A zone's name on its top edge, over the PCs: never hidden (17.11, Yakuza: «PrimeZone» behind Prime-22). */
.hm-title { position: absolute; z-index: 3; transform: translateY(-50%); pointer-events: none; background: var(--panel); border: 1px solid var(--line-soft);
  padding: 1px 6px; font-family: var(--head); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* «💬 Чат» with a PC (18.11, Delta) */
.chatlist { height: 340px; overflow-y: auto; margin-top: 10px; padding: 8px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.chatline { max-width: 80%; padding: 7px 11px; border-radius: 3px; }
.chatline div { white-space: pre-wrap; word-break: break-word; }
.chatline span { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.chatline.pc { align-self: flex-start; background: var(--tile-h); }
.chatline.desk { align-self: flex-end; background: var(--accent); color: var(--bg); }
.chatdot { color: var(--accent); font-size: 12px; animation: chatpulse 1.2s ease-in-out infinite; }
@keyframes chatpulse { 50% { opacity: .35; } }


/* ---------- Стиль «Yakuza» (19.11): чёрный, золото, красный, трещины и иероглифы ----------
   Включается ссылкой ?style=yakuza (?style=default - обычный), помнится на этом устройстве. Дневной режим ☀ его выключает. */
html[data-style="yakuza"]:not([data-theme="light"]) {
  --bg: #070505; --panel: #110b0a; --tile: #170f0d; --tile-h: #21140f; --line: #3a2a1c; --line-soft: #5a4228;
  --accent: #d4a54a; --accent-soft: rgba(212,165,74,.1); --accent2: #e0242f; --cyan: #e7c27a;
  --text: #f4efe6; --muted: #b9ab95; --faint: #86796a;
  --free: #d4a54a; --busy: #e0242f; --locked: #ff9f1c; --offline: #4d3f37; --danger: #ff4d4d;
  --glow: 0 0 18px rgba(212,165,74,.35); --glow2: 0 0 18px rgba(224,36,47,.45);
  --cut: none; --cut-s: none; --r: 6px;
  --head: "Oswald", "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
}
html[data-style="yakuza"]:not([data-theme="light"]) body { background: transparent; }
html[data-style="yakuza"]:not([data-theme="light"]) { min-height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 900'%3E%3Ctext x='200' y='60' writing-mode='tb' font-family='Hiragino Mincho ProN,Yu Mincho,MS Mincho,serif' font-weight='900' font-size='330' fill='%23b3141e' fill-opacity='.13'%3E%E6%A5%B5%E9%81%93%3C/text%3E%3C/svg%3E") right 2vw top 6vh / auto 86vh no-repeat fixed, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-linecap='round'%3E%3Cpath d='M-20 640 L180 600 L260 520 L420 505 L520 430 L700 410 L760 330 L900 300' stroke-width='2.2' opacity='.45'/%3E%3Cpath d='M260 520 L300 600 L280 700 L340 780 L330 920' stroke-width='1.4' opacity='.35'/%3E%3Cpath d='M520 430 L560 360 L540 260 L600 180' stroke-width='1.2' opacity='.3'/%3E%3Cpath d='M1620 120 L1450 170 L1380 260 L1240 300 L1180 400 L1050 450 L1000 560 L880 620' stroke-width='2.4' opacity='.45'/%3E%3Cpath d='M1380 260 L1420 360 L1520 420 L1610 430' stroke-width='1.3' opacity='.3'/%3E%3Cpath d='M1180 400 L1230 520 L1210 640 L1290 760 L1270 920' stroke-width='1.6' opacity='.35'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat fixed,
    radial-gradient(900px 700px at 85% 30%, rgba(150,10,18,.20), transparent 65%), radial-gradient(700px 500px at 0% 100%, rgba(201,164,92,.07), transparent 60%), var(--bg);
  background-attachment: fixed; }
html[data-style="yakuza"]:not([data-theme="light"]) h2::after { content: " 」"; animation: none; color: var(--accent); margin-left: 0; }
html[data-style="yakuza"]:not([data-theme="light"]) h2::before { content: "「 "; color: var(--accent); }
html[data-style="yakuza"]:not([data-theme="light"]) .card { border-radius: 8px; border-color: var(--line-soft); background: linear-gradient(180deg, rgba(212,165,74,.04), transparent), rgba(17,11,10,.92); box-shadow: 0 0 0 1px rgba(212,165,74,.06) inset; }
html[data-style="yakuza"]:not([data-theme="light"]) button { border-radius: 5px; }
html[data-style="yakuza"]:not([data-theme="light"]) button:hover { border-color: var(--accent); color: var(--accent); }
html[data-style="yakuza"]:not([data-theme="light"]) button.primary { background: #b3141e; border-color: #b3141e; color: #fff; box-shadow: 0 4px 18px rgba(179,20,30,.35); }
html[data-style="yakuza"]:not([data-theme="light"]) button.primary:hover { background: #e0242f; border-color: #e0242f; color: #fff; box-shadow: var(--glow2); }
html[data-style="yakuza"]:not([data-theme="light"]) input, html[data-style="yakuza"]:not([data-theme="light"]) select, html[data-style="yakuza"]:not([data-theme="light"]) textarea { border-radius: 5px; }
html[data-style="yakuza"]:not([data-theme="light"]) .chip.on, html[data-style="yakuza"]:not([data-theme="light"]) .fn-chips button.on { background: #b3141e; border-color: #b3141e; color: #fff; }
html[data-style="yakuza"]:not([data-theme="light"]) #topbar, html[data-style="yakuza"]:not([data-theme="light"]) #tabs { background: rgba(10,7,6,.94); border-color: var(--line-soft); }

/* Бар (19.11): объёмные картинки товаров, карточки аккуратнее; в стиле Yakuza - тёмное с золотом и красным свечением. */
.product .pic.art img { height: 70px; width: 70px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); transition: transform .15s; }
.product:hover .pic.art img { transform: scale(1.08) rotate(-3deg); }
html[data-style="yakuza"]:not([data-theme="light"]) .product { border-radius: 10px; border-color: rgba(212,165,74,.25); background: linear-gradient(180deg, rgba(212,165,74,.04), transparent 50%), #120c0a; }
html[data-style="yakuza"]:not([data-theme="light"]) .product .pic { height: 104px; background: radial-gradient(circle at 50% 58%, rgba(195,18,28,.45), transparent 62%), linear-gradient(160deg, rgba(212,165,74,.10), rgba(0,0,0,.35)), #160d0b !important; border-bottom: 1px solid rgba(212,165,74,.2); }
html[data-style="yakuza"]:not([data-theme="light"]) .product .p { color: #e7c27a; font-weight: 700; font-size: 14px; }
html[data-style="yakuza"]:not([data-theme="light"]) .product:hover { box-shadow: 0 0 0 1px #d4a54a, 0 8px 26px rgba(195,18,28,.35); }
html[data-style="yakuza"]:not([data-theme="light"]) .total { color: #e7c27a; text-shadow: 0 0 16px rgba(212,165,74,.35); }
