/* =====================================================================
   Console Hub Desk — "midnight" theme
   Near-black surfaces, one soft mixed gradient (violet → indigo → sky)
   used only where it matters: primary actions, selection, busy stations.
   Status colour appears as a small dot + text, never as glow.
   ===================================================================== */
:root {
  --bg: #040405;
  --s1: #0d0d11;            /* cards */
  --s2: rgba(255,255,255,.055);  /* raised / inputs */
  --s3: rgba(255,255,255,.10);   /* hover */
  --line: rgba(255,255,255,.075);
  --line2: rgba(255,255,255,.14);
  --ink: #f1f0fb; --ink2: #a9a8b6; --ink3: #6f6e7c;
  --b-mag: #f90cff; --b-pur: #9841ff; --b-vio: #7b3cff; --b-cya: #46b8ed;
  --grad: linear-gradient(120deg, #f90cff 0%, #9841ff 42%, #46b8ed 100%);
  --grad-soft: linear-gradient(120deg, rgba(249,12,255,.22), rgba(152,65,255,.18) 45%, rgba(70,184,237,.16));
  --free: #34d399; --play: #46b8ed; --end: #fbbf24; --up: #fb4f6b; --book: #c084fc; --block: #7c7a99;
  --r: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow-x: hidden; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
svg { display: block; }
.num, .clock, .sc-n, .t-name, .ring-txt b, .m-title, .summary b, .row-amt, .bl-amt, .done-t, .occ-txt b { font-family: "Space Grotesk", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.floor, .side { min-width: 0; }

/* one soft colour wash at the top, nothing moving */
.aurora { position: fixed; inset: 0 0 auto 0; height: 520px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 15% 0%, rgba(124,58,237,.16), transparent 70%), radial-gradient(50% 60% at 85% 0%, rgba(14,165,233,.10), transparent 70%); }
.aurora i { display: none; }
.hud, .layout, .conn, .tabbar { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.hud {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 12px 28px; padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(8,8,10,.78); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line);
}
.hud-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line); }
.logo-wrap img { width: 30px; height: 30px; object-fit: contain; }
.brand { font: 700 14.5px/1 Inter; letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--ink3); }
.store-switch { display: inline-flex; gap: 2px; margin-top: 6px; padding: 2px; border-radius: 9px; background: var(--s2); border: 1px solid var(--line); }
.store-switch button { border: none; background: none; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.store-switch button.on { color: #fff; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line2); }
.store-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.store-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--free); }
.hud-center { text-align: center; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--free); }
.clock { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin-top: 1px; color: var(--ink); }
.date { font-size: 11.5px; color: var(--ink3); margin-top: 1px; }
.hud-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; background: var(--s2); border: 1px solid var(--line); color: var(--ink2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--s3); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { color: var(--end); }
.icon-btn.ghost { width: 32px; height: 32px; border-radius: 9px; background: transparent; border-color: transparent; }
.player { display: flex; align-items: center; gap: 10px; padding: 3px 3px 3px 3px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.player-av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--grad); }
.player-name { font-weight: 600; font-size: 13px; }
.player-role { font-size: 11px; color: var(--ink3); }
.conn { margin: 10px 28px 0; padding: 9px 12px; border-radius: 12px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; font-size: 13px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 22px 28px 48px; max-width: 1680px; margin: 0 auto; }

/* ---------- summary row ---------- */
.score { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.occ, .score-card { position: relative; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); }
.occ { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 16px; overflow: hidden; }
.occ::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: .7; pointer-events: none; }
.occ > * { position: relative; }
.occ .ring.occ-ring { display: none; }
.occ-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.occ-txt b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.occ-txt small { font-size: 12px; color: var(--ink2); font-weight: 500; }
.occ-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.occ-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s; }
.score-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 14px 16px; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.score-card:hover { background: var(--s2); }
.score-card.k-playing { --c: var(--play); } .score-card.k-ending { --c: var(--end); } .score-card.k-timeup { --c: var(--up); }
.score-card.k-free { --c: var(--free); } .score-card.k-bills { --c: var(--book); }
.sc-n { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.score-card.k-bills .sc-n { font-size: 22px; }
.score-card.zero .sc-n { color: var(--ink3); }
.sc-l { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.sc-l::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.sc-bar { display: none; }
.score-card.on { border-color: var(--line2); background: var(--s2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.score-card.alarm .sc-n { color: #fca5a5; }

/* ---------- category tabs ---------- */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 500; font-size: 13px; color: var(--ink2); transition: all .15s; }
.cat em { font-style: normal; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.cat-ico { width: 18px; height: 18px; display: grid; place-items: center; opacity: .8; }
.cat-ico svg { width: 18px; height: 18px; }
.cat:hover { color: var(--ink); background: var(--s1); }
.cat.on { color: var(--ink); background: var(--s2); border-color: var(--line2); }
.cat.on em { color: var(--ink2); }
.cat.clear { color: var(--end); }

/* ---------- group titles ---------- */
.group-title { display: flex; align-items: center; gap: 10px; margin: 22px 2px 12px; color: var(--ink2); }
.g-ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink2); }
.g-ico svg { width: 20px; height: 20px; }
.g-name { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.group-title::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--line); }
.g-count { order: 3; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* ---------- station tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; }
.tile {
  --c: var(--free);
  position: relative; isolation: isolate; cursor: pointer; min-height: 164px; padding: 14px 15px;
  display: flex; flex-direction: column; border-radius: var(--r);
  background: var(--s1); border: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.tile:hover { background: #141418; border-color: var(--line2); }
.tile:active { transform: scale(.99); }
.tile.s-playing { --c: var(--play); } .tile.s-ending { --c: var(--end); } .tile.s-timeup { --c: var(--up); }
.tile.s-reserved { --c: var(--book); } .tile.s-blocked { --c: var(--block); }

/* busy stations: thin gradient frame + faint wash */
.tile-glow { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.s-playing .tile-glow { opacity: .9; }
.s-ending .tile-glow { opacity: 1; background: linear-gradient(120deg, #f59e0b, #f97316); }
.s-timeup .tile-glow { opacity: 1; background: linear-gradient(120deg, #ef4444, #db2777); }
.tile.s-playing, .tile.s-ending, .tile.s-timeup { border-color: transparent; }
.tile.s-playing::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.tile.s-timeup::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.tile.s-blocked { background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px), var(--s1); }

.t-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink); background: var(--s2); border: 1px solid var(--line); }
.t-ico svg { width: 22px; height: 22px; }
.s-free .t-ico { color: var(--ink2); }
.s-playing .t-ico, .s-ending .t-ico, .s-timeup .t-ico { background: var(--s3); }
.t-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.t-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.s-playing .t-state, .s-ending .t-state { color: var(--ink); }
.s-timeup .t-state { color: #fca5a5; }
.t-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; margin-top: 14px; min-width: 0; }

/* free */
.t-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--s2); border: 1px solid var(--line); transition: all .15s; }
.t-go svg { width: 14px; height: 14px; }
.tile.s-free:hover .t-go { color: #fff; background: var(--grad); border-color: transparent; }

/* playing */
.t-live { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 13px; align-items: center; }
.ring-box { position: relative; width: 64px; height: 64px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 4; }
.ring-val { fill: none; stroke: url(#ringGrad); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.s-ending .ring-val { stroke: var(--end); }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-txt b { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.s-ending .ring-txt b { color: #fcd34d; }
.ring-txt small { font-size: 9.5px; font-weight: 500; color: var(--ink3); margin-top: 2px; }
.t-who { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-time { font-size: 12px; color: var(--ink3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.t-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--s2); color: var(--ink2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tag.money { color: var(--ink); }

/* time up */
.t-alert { display: flex; align-items: baseline; gap: 10px; }
.t-alert-big { font-size: 13px; font-weight: 700; color: #fca5a5; letter-spacing: .02em; }
.t-over { font: 600 24px/1 "Space Grotesk"; color: #fca5a5; font-variant-numeric: tabular-nums; }
.s-timeup .t-who { margin-top: 8px; }

.t-next { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink2); }
.t-next svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--book); }
.t-next span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; margin-top: 22px; }
.skeleton-grid i { height: 164px; border-radius: var(--r); background: linear-gradient(90deg, var(--s1), var(--s2), var(--s1)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading { color: var(--ink3); padding: 24px 0; text-align: center; }
.empty { color: var(--ink3); font-size: 13px; text-align: center; padding: 18px 0; }
.empty.big { padding: 50px 0; font-size: 14px; }
.empty.good { color: var(--ink2); }

/* ---------- side panels ---------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.panel { border-radius: var(--r); padding: 16px; background: var(--s1); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink2); background: var(--s2); border: 1px solid var(--line); }
.panel-ico svg { width: 16px; height: 16px; }
.panel h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.panel-sub { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.badge { margin-left: auto; min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--s2); color: var(--ink2); border: 1px solid var(--line); }
.badge:empty { display: none; }
.list { display: flex; flex-direction: column; gap: 4px; }
.row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 12px; background: transparent; border: 1px solid transparent; text-align: left; cursor: pointer; transition: background .15s; }
.row:hover { background: var(--s2); }
.row-av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink); background: var(--s3); }
.row.hot .row-av { background: rgba(239,68,68,.16); color: #fca5a5; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12px; color: var(--ink3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-right { text-align: right; }
.row-amt { font-size: 15px; font-weight: 600; white-space: nowrap; }
.row-amt.small { font-size: 14px; color: var(--ink2); }
.row-age { font-size: 11.5px; color: var(--ink3); margin-top: 2px; white-space: nowrap; }
.row-age.hot { color: #fca5a5; }
.row.book { cursor: default; }
.row-time { width: 46px; flex-shrink: 0; text-align: center; padding: 5px 0; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); }
.row-time b { display: block; font: 600 14px/1.1 "Space Grotesk"; font-variant-numeric: tabular-nums; }
.row-time small { font-size: 10px; font-weight: 500; color: var(--ink3); text-transform: uppercase; }

.tabbar { display: none; }

/* =====================================================================
   Dialogs
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: fade .18s ease; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--s3) transparent;
  padding: 22px; border-radius: 22px; background: #0e0e11; border: 1px solid var(--line2);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .22s cubic-bezier(.2,.9,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-card.wide { max-width: 900px; padding: 22px 24px 0; }
.modal-x { position: sticky; top: 0; float: right; z-index: 5; width: 32px; height: 32px; border-radius: 10px; margin: -4px -4px 0 0; cursor: pointer; background: var(--s2); border: 1px solid var(--line); color: var(--ink2); font-size: 13px; }
.modal-x:hover { background: var(--s3); color: var(--ink); }
.m-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 44px; }
.m-head .t-ico { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; background: var(--grad); border: none; color: #fff; }
.m-head .t-ico svg { width: 24px; height: 24px; }
.m-head-t { min-width: 0; }
.m-head .t-state { margin-left: auto; }
.m-head.s-playing { --c: var(--play); } .m-head.s-ending { --c: var(--end); } .m-head.s-timeup { --c: var(--up); } .m-head.s-free { --c: var(--free); } .m-head.s-reserved { --c: var(--book); } .m-head.s-blocked { --c: var(--block); }
.m-title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.m-sub { color: var(--ink3); font-size: 12.5px; margin-top: 3px; }
.m-hint { color: var(--ink3); font-size: 12px; margin-top: 12px; line-height: 1.5; }
.m-error { color: #fca5a5; font-size: 13px; font-weight: 500; }
.m-error:empty { display: none; }
.m-note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink2); }
.m-note:empty { display: none; }
.m-rows { display: flex; flex-direction: column; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); padding: 2px 14px; }
.m-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.m-row:last-child { border-bottom: none; }
.m-row span:first-child { color: var(--ink3); }
.m-row span:last-child { font-weight: 500; text-align: right; }
.m-cols { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.modal-card.wide .m-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.m-col { min-width: 0; }
.modal-card.wide .m-col + .m-col { border-left: 1px solid var(--line); padding-left: 28px; }
.m-foot { position: sticky; bottom: 0; z-index: 4; margin: 20px -24px 0; padding: 14px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center;
  background: rgba(14,14,17,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.modal-card:not(.wide) .m-foot { margin: 18px -22px -22px; padding-left: 22px; padding-right: 22px; }
.m-foot .summary { flex: 1 1 260px; margin: 0; }
.m-foot .btn.big { flex: 1 1 240px; margin: 0; }
.m-foot .m-error { flex-basis: 100%; }

/* form bits */
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin: 18px 0 8px; }
.m-col > .lbl:first-child { margin-top: 0; }
.inp { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); color: var(--ink); font: 400 14.5px Inter; outline: none; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: var(--ink3); }
.inp:focus { border-color: rgba(99,102,241,.7); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.btn { border: 1px solid var(--line); background: var(--s2); color: var(--ink); border-radius: 11px; padding: 10px 14px; font: 500 13.5px Inter; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--s3); border-color: var(--line2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.mini { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; }
.btn.ghost { flex: 1; padding: 12px 10px; }
.btn.primary { border: none; color: #fff; font-weight: 600; background: var(--grad); box-shadow: 0 8px 24px rgba(79,70,229,.25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { background: var(--s2); box-shadow: none; color: var(--ink3); border: 1px solid var(--line); opacity: 1; filter: none; }
.btn.big { width: 100%; padding: 14px; margin-top: 16px; font-size: 15px; border-radius: 13px; }
.btn.warn { color: #fca5a5; }
.btn.warn:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-opt { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; padding: 9px 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--s2); font: 500 13.5px Inter; color: var(--ink2); cursor: pointer; transition: all .15s; }
.chip-opt small { font-size: 11px; color: var(--ink3); }
.chip-opt:hover { color: var(--ink); border-color: var(--line2); }
.chip-opt.on { color: #fff; border-color: transparent; background: linear-gradient(var(--s2), var(--s2)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: inset 0 0 0 1px transparent; }
.chip-opt.on small { color: var(--ink2); }
.chips.wrap .chip-opt { align-items: flex-start; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 15px; border-radius: 13px; background: var(--s1); border: 1px solid var(--line); color: var(--ink3); font-size: 12.5px; }
.summary b { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.acts .btn.primary { flex-basis: 100%; padding: 14px; font-size: 15px; }

/* customer finder */
.finder { display: flex; flex-direction: column; gap: 8px; }
.cust-current { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.cust-av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #fff; background: var(--grad); }
.cust-av.later { background: var(--s2); color: var(--ink3); border: 1px dashed var(--line2); }
.cust-txt { flex: 1; min-width: 0; }
.cust-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-sub { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.inp.search { margin: 0; padding-left: 38px; background: var(--s2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 17px; }
.results { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; transition: background .12s; }
.res:hover { background: var(--s2); }
.res-av { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--s3); }
.res-mid { display: flex; flex-direction: column; min-width: 0; }
.res-mid b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-mid small { font-size: 12px; color: var(--ink3); }
.res.add { justify-content: center; color: #a5b4fc; font-weight: 600; border: 1px dashed var(--line2); margin-top: 4px; }
.res.add:hover { background: rgba(99,102,241,.08); }
.res-note { font-size: 12px; color: var(--ink3); padding: 4px 2px; }
.new-cust { padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s1); }
.new-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.phone-wrap { display: flex; }
.phone-wrap span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: none; border-radius: 12px 0 0 12px; background: var(--s3); color: var(--ink2); font-weight: 500; margin-bottom: 8px; }
.phone-wrap .inp { border-radius: 0 12px 12px 0; }
.new-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.new-actions .btn.primary { padding: 10px 16px; }

/* group picker */
.picked-list { display: flex; flex-direction: column; gap: 6px; }
.picked-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: var(--s1); border: 1px solid var(--line); }
.picked-row > b { font: 600 15px "Space Grotesk"; min-width: 64px; }
.players { display: flex; align-items: center; gap: 4px; flex: 1; }
.players span { font-size: 12px; color: var(--ink3); margin-right: 4px; }
.pchip { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--s2); font: 500 13px Inter; color: var(--ink2); cursor: pointer; }
.pchip.on { color: #fff; background: var(--grad); border-color: transparent; }
.muted { color: var(--ink3); font-size: 12.5px; flex: 1; }
.btn.x { margin-left: auto; padding: 4px 9px; background: transparent; border-color: transparent; color: var(--ink3); }
.btn.add-st { width: 100%; margin-top: 8px; border-style: dashed; color: var(--ink2); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 8px; }
.st-chip { padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--s2); font: 500 13px Inter; color: var(--ink2); cursor: pointer; transition: all .12s; }
.st-chip:hover { color: var(--ink); border-color: var(--line2); }
.st-chip.on { color: #fff; background: linear-gradient(var(--s2), var(--s2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.st-chip.busy { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

/* items */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; max-height: 48vh; overflow-y: auto; margin-bottom: 8px; }
.item { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); cursor: pointer; text-align: left; user-select: none; transition: all .12s; }
.item:hover { border-color: var(--line2); background: var(--s2); }
.item.on { background: linear-gradient(var(--s2), var(--s2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.item-n { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.item-p { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.item-q { position: absolute; top: 8px; right: 9px; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; color: #fff; background: var(--grad); }

/* bill */
.all-hours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 12px; color: var(--ink3); }
.all-hours span { margin-right: 4px; }
.bill-lines { display: flex; flex-direction: column; gap: 6px; }
.bill-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 13px; background: var(--s1); border: 1px solid var(--line); }
.bl-name { font-weight: 600; font-size: 13.5px; }
.bl-sub { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.bl-amt { font-size: 15px; font-weight: 600; min-width: 64px; text-align: right; }
.stepper { display: flex; align-items: center; gap: 4px; padding: 2px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); }
.stepper .btn.mini { width: 28px; padding: 4px 0; background: transparent; border-color: transparent; }
.stepper .btn.mini:hover { background: var(--s3); }
.stepper b { font-weight: 600; font-size: 13px; min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.paid-stamp { margin-top: 16px; text-align: center; font-size: 15px; font-weight: 600; color: var(--free); }
.done { text-align: center; padding: 30px 0 18px; }
.done-check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--grad); animation: pop .3s ease-out; }
.done-t { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.done-s { color: var(--ink3); margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: #1c1c21; border: 1px solid var(--line2); color: var(--ink); font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.5); transition: all .22s; }
.toast::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--free); margin-right: 8px; vertical-align: 1px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Login
   ===================================================================== */
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  background: radial-gradient(70% 55% at 20% 0%, rgba(124,58,237,.18), transparent 70%), radial-gradient(60% 50% at 90% 100%, rgba(14,165,233,.12), transparent 70%), var(--bg); }
.login-glow { display: none; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 32px 28px 28px; border-radius: 24px; background: rgba(17,17,20,.86); border: 1px solid var(--line2); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: pop .35s ease-out; }
.login-logo { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto 14px; }
.login-title { text-align: center; font: 600 20px Inter; letter-spacing: -.02em; }
.login-title span { color: var(--ink3); }
.login-sub { text-align: center; color: var(--ink3); font-size: 13px; margin: 4px 0 22px; }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin: 14px 0 7px; }
.login-card input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); color: var(--ink); font: 400 15px Inter; outline: none; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { border-color: rgba(99,102,241,.7); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.pw-wrap { position: relative; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: none; color: var(--ink3); cursor: pointer; }
.pw-eye svg { width: 17px; height: 17px; }
.login-btn { width: 100%; margin-top: 22px; padding: 13px; border: none; border-radius: 13px; cursor: pointer; color: #fff; font: 600 15px Inter; letter-spacing: 0; background: var(--grad); box-shadow: 0 10px 28px rgba(79,70,229,.3); transition: filter .15s, transform .1s; }
.login-btn:hover { filter: brightness(1.08); }
.login-btn:active { transform: scale(.985); }
.login-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; padding: 10px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 4px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1280px) { .score { grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr)); } .sc-n { font-size: 23px; } }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
  .score { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .modal-card.wide .m-cols { grid-template-columns: 1fr; }
  .modal-card.wide .m-col + .m-col { border-left: none; padding-left: 0; }
}
@media (max-width: 700px) {
  .hud { grid-template-columns: 1fr auto; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .hud-center { display: none; }
  .player-info { display: none; }
  .layout { padding: 14px 16px 104px; }
  .score { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .occ { grid-column: 1 / -1; }
  .score-card { padding: 12px 14px; }
  .score-card.k-bills { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .sc-n { font-size: 22px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 0 16px; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat { flex-shrink: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { min-height: 148px; padding: 12px; border-radius: 16px; }
  .t-ico { width: 34px; height: 34px; border-radius: 10px; }
  .t-ico svg { width: 20px; height: 20px; }
  .t-name { font-size: 15.5px; }
  .t-body { margin-top: 10px; }
  .t-live { grid-template-columns: 54px minmax(0, 1fr); gap: 9px; }
  .ring-box { width: 54px; height: 54px; }
  .ring-txt b { font-size: 15px; }
  .ring-txt small { font-size: 8.5px; }
  .t-who { font-size: 13px; }
  .t-go { padding: 7px 12px 7px 10px; font-size: 12.5px; }
  .side { display: block; }
  body[data-tab="floor"] .side, body[data-tab="bills"] .floor, body[data-tab="bookings"] .floor,
  body[data-tab="bills"] #tab-bookings, body[data-tab="bookings"] #tab-bills { display: none; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; padding: 5px; border-radius: 18px;
    background: rgba(17,17,20,.9); backdrop-filter: blur(18px); border: 1px solid var(--line2); box-shadow: 0 14px 36px rgba(0,0,0,.55); }
  .tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; background: none; border: none; color: var(--ink3); border-radius: 13px; cursor: pointer; }
  .tabbar button svg { width: 21px; height: 21px; }
  .tabbar button span { font-size: 11px; font-weight: 500; }
  .tabbar button.active { color: var(--ink); background: var(--s3); }
  .tabbar i { position: absolute; top: 6px; right: calc(50% - 18px); width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: none; }
  .tabbar i.on { display: block; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card, .modal-card.wide { max-width: none; max-height: 94vh; padding: 26px 18px 0; border-radius: 22px 22px 0 0; animation: sheet .28s cubic-bezier(.2,.9,.3,1); }
  .modal-card:not(.wide) { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .modal-card::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.18); }
  .m-foot, .modal-card:not(.wide) .m-foot { margin: 16px -18px 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .modal-card:not(.wide) .m-foot { margin-bottom: calc(-22px - env(safe-area-inset-bottom)); }
  .m-foot .summary, .m-foot .btn.big { flex-basis: 100%; }
  .m-title { font-size: 19px; }
  .bill-line { grid-template-columns: 1fr auto; }
  .bill-line .stepper { grid-column: 1; justify-self: start; }
  .toast { bottom: 100px; }
}
@keyframes sheet { from { transform: translateY(30px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- product photos ---------- */
.t-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.t-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-top: 2px; }
.t-photo { flex-shrink: 0; width: 92px; height: 66px; display: flex; align-items: center; justify-content: flex-end; margin: -4px -4px 0 0; }
.t-photo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); transition: filter .2s, opacity .2s, transform .25s ease; }
.tile.s-free .t-photo img, .tile.s-reserved .t-photo img { opacity: .62; filter: saturate(.55) drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.tile.s-blocked .t-photo img { opacity: .3; filter: grayscale(1); }
.tile:hover .t-photo img { opacity: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); transform: translateY(-2px); }
.k-ps .t-photo img { max-height: 70px; }
.m-head .t-photo { width: 76px; height: 54px; margin: 0; justify-content: center; }
.login-gear { display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 74px; margin: -6px 0 18px; }
.login-gear img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
.login-gear img:nth-child(1) { height: 58px; } .login-gear img:nth-child(2) { height: 74px; } .login-gear img:nth-child(3) { height: 56px; }
.login-gear + .login-logo { width: 40px; height: 40px; margin-bottom: 10px; }
@media (max-width: 700px) {
  .t-head { gap: 6px; }
  .t-photo { width: 64px; height: 48px; margin: -2px -2px 0 0; }
  .k-ps .t-photo img { max-height: 52px; }
  .t-title { gap: 5px; }
  .m-head .t-photo { width: 60px; height: 44px; }
}

/* =====================================================================
   Brand layer — Console Hub magenta / purple / cyan on navy-black
   ===================================================================== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
body { background: var(--bg); }
.aurora { inset: 0; height: auto; position: fixed;
  background:
    radial-gradient(55% 45% at 8% -5%, rgba(123,60,255,.34), transparent 70%),
    radial-gradient(40% 35% at 70% -8%, rgba(249,12,255,.16), transparent 70%),
    radial-gradient(45% 40% at 100% 60%, rgba(70,184,237,.12), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(152,65,255,.14), transparent 70%); }
.hud { background: rgba(4,4,6,.72); border-bottom: none; }
.hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(249,12,255,.5), rgba(152,65,255,.6), rgba(70,184,237,.5), transparent); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock { background: linear-gradient(180deg, #fff, #c9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-wrap, .icon-btn, .player { background: rgba(255,255,255,.05); }

/* glass cards */
.tile, .score-card, .occ, .panel {
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 38%, rgba(255,255,255,.008)), rgba(14,14,19,.72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px -22px rgba(0,0,0,.9);
}
.panel { backdrop-filter: blur(10px); }

/* summary cards: tinted by their status colour */
.score-card { overflow: hidden; }
.score-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%); }
.score-card::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .7; }
.score-card > * { position: relative; }
.score-card.zero::before, .score-card.zero::after { opacity: .35; }
.score-card:hover { background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03) 40%), rgba(18,18,24,.8); }
.score-card.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 14px 34px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.occ::before { background: var(--grad-soft); opacity: 1; }
.occ-txt b { background: linear-gradient(90deg, #fff, #e3d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.occ-bar { height: 6px; background: rgba(255,255,255,.1); }
.occ-bar i { box-shadow: 0 0 12px rgba(249,12,255,.5); }

.cat.on { background: var(--grad-soft); border-color: rgba(190,140,255,.35); }

/* tiles: each kind gets its own brand tint behind the photo */
.tile.k-ps { --kc: #46b8ed; } .tile.k-pc { --kc: #bc13fe; } .tile.k-cockpit { --kc: #f90cff; }
.tile { overflow: visible; }
.tile:hover { background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.025) 40%), rgba(18,18,24,.82); border-color: var(--line2); transform: translateY(-2px); }
.t-photo { position: relative; }
.t-photo::before { content: ""; position: absolute; right: 2px; top: 50%; width: 92px; height: 64px; transform: translateY(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--kc) 45%, transparent), transparent); filter: blur(10px); opacity: .55; transition: opacity .25s; }
.tile:hover .t-photo::before, .s-playing .t-photo::before, .s-ending .t-photo::before, .s-timeup .t-photo::before { opacity: 1; }
.tile.s-free .t-photo img, .tile.s-reserved .t-photo img { opacity: .85; filter: saturate(.85) drop-shadow(0 10px 14px rgba(0,0,0,.55)); }

/* mouse spotlight (position set from desk.js) */
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--kc) 20%, transparent), transparent 70%); }
.tile:hover::before { opacity: 1; }
.tile:not(.s-playing):not(.s-ending):not(.s-timeup) .tile-glow { opacity: 0; transition: opacity .25s;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), var(--kc), transparent 75%); }
.tile:not(.s-playing):not(.s-ending):not(.s-timeup):hover .tile-glow { opacity: 1; }

/* busy: slow-turning brand border + coloured depth */
.s-playing .tile-glow, .s-ending .tile-glow, .s-timeup .tile-glow { opacity: 1; animation: spin 7s linear infinite; }
.s-playing .tile-glow { background: conic-gradient(from var(--a), #f90cff, #9841ff, #46b8ed, #9841ff, #f90cff); }
.s-ending .tile-glow { background: conic-gradient(from var(--a), #fbbf24, #fb7185, #f90cff, #fb7185, #fbbf24); }
.s-timeup .tile-glow { background: conic-gradient(from var(--a), #fb4f6b, #f90cff, #fb4f6b, #ff8a65, #fb4f6b); animation-duration: 3.5s; }
@keyframes spin { to { --a: 360deg; } }
.tile.s-playing { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -22px rgba(152,65,255,.75); }
.tile.s-ending { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -22px rgba(251,191,36,.6); }
.tile.s-timeup { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 44px -20px rgba(251,79,107,.7); }
.tile.s-playing::after { background: radial-gradient(110% 80% at 0% 100%, rgba(152,65,255,.2), transparent 60%), radial-gradient(80% 60% at 100% 0%, rgba(70,184,237,.12), transparent 60%); }
.tile.s-ending::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: radial-gradient(110% 80% at 0% 100%, rgba(251,191,36,.14), transparent 60%); }
.tile.s-timeup::after { background: radial-gradient(110% 80% at 0% 100%, rgba(251,79,107,.2), transparent 60%); }
.ring-bg { stroke: rgba(255,255,255,.09); }
.ring-val { filter: drop-shadow(0 0 4px rgba(249,12,255,.45)); }
.s-ending .ring-val { stroke: url(#ringWarn); filter: drop-shadow(0 0 4px rgba(251,191,36,.45)); }
.tag { background: rgba(255,255,255,.06); }
.tag.money { color: #fff; background: rgba(152,65,255,.18); border-color: rgba(190,140,255,.3); }
.tile.s-free:hover .t-go { box-shadow: 0 8px 20px -6px rgba(152,65,255,.6); }
.t-state::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }

/* side lists */
.row:hover { background: rgba(255,255,255,.06); }
.row-av { background: var(--grad-soft); }
.row-time { background: var(--grad-soft); border-color: rgba(190,140,255,.25); }

/* dialogs */
.modal { background: rgba(0,0,0,.62); }
.modal-card { background: radial-gradient(90% 50% at 0% 0%, rgba(123,60,255,.2), transparent 70%), radial-gradient(70% 40% at 100% 0%, rgba(70,184,237,.1), transparent 70%), #0a0a0d; border-color: rgba(190,170,255,.18); }
.m-foot { background: rgba(10,10,13,.94); }
.m-head .t-photo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(152,65,255,.5), transparent); filter: blur(8px); }
.m-head .t-photo { isolation: isolate; }
.btn.primary { box-shadow: 0 10px 26px -8px rgba(188,19,254,.55); }
.inp:focus, .login-card input:focus { border-color: rgba(188,19,254,.6); box-shadow: 0 0 0 3px rgba(188,19,254,.18); }

/* login */
.login-body { background:
  radial-gradient(60% 50% at 15% 0%, rgba(123,60,255,.36), transparent 70%),
  radial-gradient(45% 40% at 90% 10%, rgba(249,12,255,.16), transparent 70%),
  radial-gradient(55% 45% at 85% 100%, rgba(70,184,237,.16), transparent 70%), var(--bg); }
.login-card { background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02) 45%), rgba(13,13,17,.8); border-color: rgba(190,170,255,.2); }
.login-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-btn { box-shadow: 0 12px 30px -8px rgba(188,19,254,.6); }

@media (hover: none) { .tile:hover { transform: none; } }

/* fit & phone polish */
.ring-txt b { font-size: 16px; }
.t-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .ring-txt b { font-size: 13.5px; }
  .t-from { display: none; }
  .score { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .occ { padding: 12px 14px; gap: 8px; }
  .occ-txt b { font-size: 24px; }
  .score-card { padding: 10px 10px 9px; gap: 2px; border-radius: 14px; }
  .score-card .sc-n { font-size: 20px; }
  .sc-l { font-size: 10.5px; gap: 5px; line-height: 1.2; }
  .sc-l::before { width: 6px; height: 6px; flex-shrink: 0; }
  .score-card.k-bills { padding: 11px 14px; }
  .score-card.k-bills .sc-n { font-size: 19px; }
  .score-card.k-bills .sc-l { font-size: 12px; }
}

/* =====================================================================
   Tone-down + finishing (2026-11-03): calmer colour, solid cards,
   3D tilt on hover, slow shine on live stations
   ===================================================================== */
.aurora { opacity: .6; }
.hud::after { opacity: .5; }
.tile, .score-card, .occ, .panel {
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 42%), #0e0e13;
  border-color: rgba(170,160,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px -18px rgba(0,0,0,.9);
}
.tile:hover { background: linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 42%), #131319; }
.score-card::before { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 62%); }
.score-card::after { opacity: .45; }
.occ::before { opacity: .55; }
.occ-bar i { box-shadow: none; }
.cat.on { background: rgba(152,65,255,.12); border-color: rgba(190,140,255,.25); }

/* softer live borders + shadows */
.s-playing .tile-glow { opacity: .55; }
.s-ending .tile-glow { opacity: .6; }
.s-timeup .tile-glow { opacity: .75; }
.tile.s-playing { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px -24px rgba(152,65,255,.5); }
.tile.s-ending { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px -24px rgba(251,191,36,.4); }
.tile.s-timeup { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 36px -22px rgba(251,79,107,.5); }
.ring-val { filter: none; }
.s-ending .ring-val { filter: none; }
.t-photo::before { opacity: .3; }
.tile:hover .t-photo::before, .s-playing .t-photo::before, .s-ending .t-photo::before, .s-timeup .t-photo::before { opacity: .6; }
.btn.primary { box-shadow: 0 8px 20px -10px rgba(188,19,254,.5); }
.row-av, .row-time { background: rgba(152,65,255,.12); }
.tag.money { background: rgba(152,65,255,.12); border-color: rgba(190,140,255,.2); }

/* slow light sweep across live stations */
.tile.s-playing::after, .tile.s-ending::after, .tile.s-timeup::after { overflow: hidden; }
.tile.s-playing::after {
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.07) 50%, transparent 58%) no-repeat,
              radial-gradient(110% 80% at 0% 100%, rgba(152,65,255,.12), transparent 60%);
  background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0;
  animation: sweep 6s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.tile.s-ending::after { background: radial-gradient(110% 80% at 0% 100%, rgba(251,191,36,.09), transparent 60%); }
.tile.s-timeup::after { background: radial-gradient(110% 80% at 0% 100%, rgba(251,79,107,.12), transparent 60%); }

/* live station photo floats gently */
.s-playing .t-photo img, .s-ending .t-photo img { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-3px); } }

/* 3D tilt on hover (mouse only) */
@media (hover: hover) and (pointer: fine) {
  .tiles { perspective: 900px; }
  .tile { transform-style: preserve-3d; transition: transform .18s ease-out, background .15s, border-color .15s, box-shadow .2s; }
  .tile:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
  .tile:hover .t-photo img { animation: none; transform: translateZ(26px) translateY(-3px) scale(1.06); }
  .tile:hover .t-photo { transform-style: preserve-3d; }
}

/* glow down, round 2 */
.aurora { opacity: .4; }
.s-playing .tile-glow { opacity: .38; }
.s-ending .tile-glow { opacity: .42; }
.s-timeup .tile-glow { opacity: .55; }
.tile.s-playing, .tile.s-ending, .tile.s-timeup { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px -18px rgba(0,0,0,.9); }
.t-photo::before { opacity: .15; }
.tile:hover .t-photo::before, .s-playing .t-photo::before, .s-ending .t-photo::before, .s-timeup .t-photo::before { opacity: .3; }
.tile.s-playing::after {
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.05) 50%, transparent 58%) no-repeat,
              radial-gradient(110% 80% at 0% 100%, rgba(152,65,255,.07), transparent 60%);
  background-size: 260% 100%, 100% 100%;
}
.tile.s-ending::after { background: radial-gradient(110% 80% at 0% 100%, rgba(251,191,36,.05), transparent 60%); }
.tile.s-timeup::after { background: radial-gradient(110% 80% at 0% 100%, rgba(251,79,107,.07), transparent 60%); }
.tile::before { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--kc) 10%, transparent), transparent 70%); }
.tile:not(.s-playing):not(.s-ending):not(.s-timeup):hover .tile-glow { opacity: .5; }
.score-card::before { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 62%); }
.score-card::after { opacity: .3; }
.score-card.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.occ::before { opacity: .4; }
.t-state::before { box-shadow: none; }
.btn.primary, .login-btn { box-shadow: none; }
.tile.s-free:hover .t-go { box-shadow: none; }
.m-head .t-photo::before { opacity: .4; }
.modal-card { background: radial-gradient(90% 50% at 0% 0%, rgba(123,60,255,.1), transparent 70%), #0a0a0d; }
@media (max-width: 900px) { .m-col + .m-col > .lbl:first-child { margin-top: 20px; } }

/* =====================================================================
   Side menu + views (desktop menu, Invoices history, New invoice)
   ===================================================================== */
:root { --hud-h: 77px; }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 224px minmax(0, 1fr); max-width: 1900px; margin: 0 auto; }
.views { min-width: 0; }
.shell .layout { margin: 0; max-width: none; }
body[data-view="invoices"] #view-floor { display: none; }
body:not([data-view="invoices"]) #view-invoices { display: none; }

.sidenav { position: sticky; top: var(--hud-h); align-self: start; height: calc(100vh - var(--hud-h)); overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 3px; padding: 22px 12px 18px 20px; }
.sidenav svg { width: 19px; height: 19px; flex-shrink: 0; }
.sn-new { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 14px; border: none; border-radius: 13px; cursor: pointer;
  color: #fff; font: 600 14px Inter; background: var(--grad); transition: filter .15s, transform .1s; }
.sn-new:hover { filter: brightness(1.08); }
.sn-new:active { transform: scale(.98); }
.sn-new span { flex: 1; text-align: left; }
.sidenav kbd, .sn-keys kbd { font: 600 10.5px Inter; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--ink3); }
.sn-new kbd { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.sn-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 6px 12px 6px; }
.sn-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--ink2); font: 500 13.5px Inter; text-align: left; transition: background .15s, color .15s; }
.sn-item span { flex: 1; }
.sn-item:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.sn-item.on { color: var(--ink); background: linear-gradient(90deg, rgba(152,65,255,.16), rgba(70,184,237,.06)); border-color: rgba(190,140,255,.18); }
.sn-item.on::before { content: ""; position: absolute; left: -9px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--grad); }
.sn-item.on svg { color: #d8b4fe; }
.sn-item em { font-style: normal; font-size: 11.5px; font-weight: 600; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--ink2); }
.sn-item em:empty { display: none; }
.sn-item kbd { opacity: 0; transition: opacity .15s; }
.sn-item:hover kbd { opacity: 1; }
.sn-keys { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--ink3); }
.sn-keys .sn-label { padding: 0 0 2px; }
.sn-keys kbd { display: inline-block; min-width: 30px; text-align: center; margin-right: 8px; }
.panel.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { border-color: rgba(190,140,255,.6); box-shadow: 0 0 0 3px rgba(152,65,255,.15); } }

/* Invoices view */
.inv-view { padding: 22px 28px 48px; }
.inv-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.inv-h { margin: 0; font: 600 24px "Space Grotesk"; letter-spacing: -.02em; }
.inv-sub { color: var(--ink3); font-size: 13px; margin-top: 2px; }
.inv-new { padding: 10px 16px; }
.inv-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.inv-bar .inp.search { flex: 1 1 280px; margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.seg button { border: none; background: none; padding: 7px 12px; border-radius: 9px; font: 500 13px Inter; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { color: #fff; background: rgba(152,65,255,.22); box-shadow: inset 0 0 0 1px rgba(190,140,255,.3); }
.inv-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.inv-card { --c: var(--b-pur); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 15px;
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 42%), #0e0e13; border: 1px solid var(--line); }
.inv-card.k-free { --c: var(--free); } .inv-card.k-timeup { --c: var(--up); }
.inv-card::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .35; }
.inv-card span { font-size: 12px; color: var(--ink3); font-weight: 500; }
.inv-card b { font: 600 22px "Space Grotesk"; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inv-card.k-timeup b { color: #fda4af; }
.inv-list { border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.01) 40%), #0c0c10; overflow: hidden; transition: opacity .15s; }
.inv-list.busy { opacity: .55; }
.inv-row { display: grid; grid-template-columns: 76px 150px minmax(0, 1.2fr) minmax(0, 1.5fr) 110px 128px; gap: 14px; align-items: center; width: 100%;
  padding: 11px 18px; border: none; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); font: 400 13.5px Inter; transition: background .12s; }
.inv-row:hover { background: rgba(255,255,255,.04); }
.inv-head { cursor: default; border-top: none; padding-top: 12px; padding-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); background: rgba(255,255,255,.02); }
.inv-head:hover { background: rgba(255,255,255,.02); }
.inv-head span:nth-child(5) { text-align: right; }
.inv-day { padding: 14px 18px 6px; font-size: 12px; font-weight: 600; color: #c4b5fd; border-top: 1px solid var(--line); }
.inv-time { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-no, .inv-amt, .inv-st { display: flex; flex-direction: column; min-width: 0; }
.inv-no b { font: 600 13px "Space Grotesk"; white-space: nowrap; }
.inv-no small, .inv-amt small, .inv-st small { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.inv-who i { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font: 600 12px Inter; font-style: normal; background: rgba(152,65,255,.14); color: #e9d5ff; }
.inv-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-what { color: var(--ink2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-amt { align-items: flex-end; }
.inv-amt b { font: 600 15px "Space Grotesk"; font-variant-numeric: tabular-nums; }
.inv-amt small { color: #fda4af; }
.pill { align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; }
.p-paid { color: #6ee7b7; background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.22); }
.p-unpaid { color: #fda4af; background: rgba(251,79,107,.1); border-color: rgba(251,79,107,.25); }
.p-partial { color: #fcd34d; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.p-open { color: #d8b4fe; background: rgba(152,65,255,.12); border-color: rgba(190,140,255,.25); }
.inv-st small { margin-top: 3px; }

/* New invoice chooser */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 10px; border-radius: 14px; cursor: pointer; color: var(--ink);
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 42%), #121218; border: 1px solid var(--line); transition: border-color .15s, transform .15s, background .15s; }
.pick:hover { border-color: rgba(190,140,255,.4); transform: translateY(-2px); }
.pick-ph { height: 54px; display: flex; align-items: center; justify-content: center; }
.pick-ph img { max-height: 54px; max-width: 92px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.pick b { font: 600 14px "Space Grotesk"; }
.pick small { font-size: 11px; color: var(--book); }
.pick-wide { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; cursor: pointer; color: var(--ink); text-align: left;
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 42%), #121218; border: 1px dashed rgba(190,140,255,.3); margin-bottom: 6px; transition: border-color .15s; }
.pick-wide:hover { border-color: rgba(190,140,255,.6); }
.pick-wide svg { width: 30px; height: 30px; color: #d8b4fe; flex-shrink: 0; }
.pick-wide span { display: flex; flex-direction: column; }
.pick-wide b { font-size: 14px; font-weight: 600; }
.pick-wide small { font-size: 12px; color: var(--ink3); }

/* phone tab bar: centre + button */
.tabbar .tab-new { flex: 0 0 56px; }
.tabbar .tab-new svg { width: 24px; height: 24px; }

/* responsive: full menu ≥1280, icon rail 701–1279, hidden on phones */
@media (max-width: 1279px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidenav { padding: 18px 10px; align-items: stretch; }
  .sidenav span, .sidenav kbd, .sn-label, .sn-keys { display: none; }
  .sn-new, .sn-item { justify-content: center; padding: 12px 0; }
  .sn-item em { position: absolute; top: 3px; right: 3px; min-width: 18px; padding: 0 5px; font-size: 10px; background: var(--b-pur); color: #fff; }
  .sn-item.on::before { left: -10px; }
  .inv-row { grid-template-columns: 66px 130px minmax(0, 1.2fr) minmax(0, 1fr) 96px 104px; gap: 10px; padding: 11px 14px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidenav { display: none; }
  .inv-view { padding: 14px 16px 110px; }
  .inv-top { align-items: center; }
  .inv-new { display: none; }
  .inv-bar { gap: 8px; }
  .inv-bar .seg { flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex: 1; padding: 7px 8px; font-size: 12.5px; }
  .inv-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inv-card b { font-size: 19px; }
  .inv-head { display: none; }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amt" "what st" "time no"; gap: 3px 10px; padding: 12px 14px; }
  .inv-time { grid-area: time; padding-left: 37px; font-size: 11.5px; color: var(--ink3); }
  .inv-who { grid-area: who; } .inv-amt { grid-area: amt; } .inv-what { grid-area: what; padding-left: 37px; }
  .inv-no { grid-area: no; align-items: flex-end; } .inv-no b { font-size: 11.5px; color: var(--ink3); font-weight: 500; } .inv-no small { display: none; }
  .inv-st { grid-area: st; align-items: flex-end; } .inv-st .pill { align-self: flex-end; }
  .tabbar .tab-new { flex: 0 0 52px; margin: 0 2px; color: #fff; background: var(--grad); border-radius: 14px; }
  .tabbar .tab-new.active { background: var(--grad); }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* fixes: solid fill inside gradient borders (surfaces are translucent now) */
.chip-opt.on, .st-chip.on, .item.on { background: linear-gradient(#1d1630, #1d1630) padding-box, var(--grad) border-box; border: 1px solid transparent; color: #fff; }
.item.on .item-p { color: var(--ink2); }
.item.on .item-n { padding-right: 28px; }
/* summary row with the side menu: never break labels */
.sc-l { white-space: nowrap; }
.occ-txt { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
.occ-txt small { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1600px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .score { grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr)); gap: 8px; }
  .score-card, .occ { padding: 13px 13px; }
  .sc-l { font-size: 12px; }
}
.inv-sum.one { grid-template-columns: minmax(0, 300px); }
.seg.off { opacity: .35; pointer-events: none; }
@media (max-width: 700px) { .inv-sum.one { grid-template-columns: 1fr; } #invPeriod button { padding: 7px 6px; font-size: 12px; } }


/* =====================================================================
   Black pass (2026-11-03): deeper black base, brand colour only as accent
   ===================================================================== */
.aurora { opacity: .28; }
.tile, .score-card, .occ, .panel, .inv-card { border-color: rgba(255,255,255,.07); }
.tile, .score-card, .occ, .panel { background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.01) 42%), #0e0e13; }
.tile:hover { background: linear-gradient(165deg, rgba(255,255,255,.065), rgba(255,255,255,.015) 42%), #121218; }
.sidenav { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); border-right: 1px solid rgba(255,255,255,.05); }
.cat.on { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.seg { background: rgba(255,255,255,.03); }
.inv-head { background: rgba(255,255,255,.025); }
.row-av, .row-time, .inv-who i { background: rgba(255,255,255,.06); color: var(--ink); }
.row-time { border-color: rgba(255,255,255,.08); }

/* menu toggle */
.nav-toggle { width: 36px; height: 36px; flex-shrink: 0; }
.nav-toggle .nt-arrow { transition: transform .2s; transform-origin: 14px 12px; }
body.nav-off .nav-toggle .nt-arrow { transform: scaleX(-1); }
body.nav-off .shell { grid-template-columns: 0 minmax(0, 1fr); }
body.nav-off .sidenav { visibility: hidden; padding: 0; overflow: hidden; }
.shell { transition: grid-template-columns .22s ease; }
@media (max-width: 700px) { .nav-toggle { display: none; } }

/* edit time */
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-card { padding: 14px; border-radius: 16px; background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.01) 42%), #0e0e13; border: 1px solid rgba(255,255,255,.08); }
.time-lbl { font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.time-inp { width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #08080b; color: var(--ink);
  font: 600 28px "Space Grotesk"; letter-spacing: -.01em; color-scheme: dark; outline: none; }
.time-inp:focus { border-color: rgba(188,19,254,.6); box-shadow: 0 0 0 3px rgba(188,19,254,.15); }
.time-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.time-quick .btn.mini { flex: 1; min-width: 44px; padding: 7px 6px; }
.time-was { margin-top: 8px; font-size: 11.5px; color: var(--ink3); }
.bl-edit { margin: 2px 0 3px; padding: 0; border: none; background: none; cursor: pointer; font: 600 11.5px Inter; color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.bl-edit:hover { color: #e9d5ff; }
.back-btn { margin-bottom: 12px; background: transparent; }
.modal-card:not(.wide) .m-foot .summary, .modal-card:not(.wide) .m-foot .btn.big { flex-basis: 100%; }
@media (max-width: 420px) { .time-grid { grid-template-columns: 1fr; } }
.modal-card:has(.time-grid) { max-width: 600px; }
.time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.time-inp { min-width: 0; }
.time-card + .time-card .time-quick .btn.mini { min-width: 0; }
.time-grid + .m-hint { margin-bottom: 14px; }
@media (max-width: 420px) { .time-grid { grid-template-columns: minmax(0, 1fr); } }
