/* ============ Gaming Cafe Manager — glass UI ============ */
:root {
  --bg1: #06060f; --bg2: #100c2a;
  --text: #eef0ff; --muted: #a1a6cc; --dim: #6e7399;
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .085); --glass-3: rgba(255, 255, 255, .13);
  --border: rgba(255, 255, 255, .1); --border-2: rgba(255, 255, 255, .18);
  --input: rgba(0, 0, 0, .28); --menu: #171433;
  --accent: #8b5cf6; --accent-2: #22d3ee; --grad: linear-gradient(135deg, #8b5cf6, #22d3ee);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #60a5fa;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --r: 20px; --r-sm: 12px; --blur: blur(22px) saturate(160%);
  --blob-op: .5;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg1: #e9ebff; --bg2: #f6f0ff;
  --text: #15163a; --muted: #555a80; --dim: #8b8fb0;
  --glass: rgba(255, 255, 255, .5); --glass-2: rgba(255, 255, 255, .68); --glass-3: rgba(255, 255, 255, .85);
  --border: rgba(255, 255, 255, .75); --border-2: rgba(40, 30, 110, .14);
  --input: rgba(255, 255, 255, .7); --menu: #ffffff;
  --shadow: 0 10px 40px rgba(70, 50, 160, .14);
  --blob-op: .35;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--bg1); min-height: 100vh; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
small { font-size: .78em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(160deg, var(--bg1), var(--bg2)); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); animation: float 24s ease-in-out infinite alternate; }
.b1 { width: 540px; height: 540px; background: #7c3aed; top: -140px; left: -120px; }
.b2 { width: 480px; height: 480px; background: #06b6d4; bottom: -160px; right: -100px; animation-delay: -8s; }
.b3 { width: 380px; height: 380px; background: #db2777; top: 38%; left: 42%; opacity: calc(var(--blob-op) * .55); animation-delay: -14s; }
@keyframes float { to { transform: translate(70px, 50px) scale(1.12); } }

/* ---------- glass ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.card { padding: 20px; }
.inner { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 16px; margin: 16px; height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 20px 14px; }
.main { padding: 26px 26px 48px 10px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.logo { width: 42px; height: 42px; border-radius: 13px; overflow: hidden; flex: none; box-shadow: 0 6px 20px rgba(139, 92, 246, .45); }
.logo.sm { width: 34px; height: 34px; border-radius: 10px; }
.logo img { width: 100%; height: 100%; display: block; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: .01em; }
.brand-sub { font-size: .78rem; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: .2s; border: 1px solid transparent;
}
.nav-item:hover { color: var(--text); background: var(--glass); }
.nav-item.active { color: var(--text); background: var(--glass-3); border-color: var(--border); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item .ic { width: 20px; height: 20px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-clock { font-family: 'JetBrains Mono', monospace; font-size: 1.35rem; font-weight: 700; padding: 0 6px; }

.sync { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); padding: 0 6px; }
.sync .dot, .toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.s-synced { background: var(--ok) !important; box-shadow: 0 0 10px var(--ok); }
.s-saving, .s-connecting { background: var(--warn) !important; animation: blink 1s infinite; }
.s-error, .s-signedout { background: var(--bad) !important; }
.s-local { background: var(--info) !important; }
@keyframes blink { 50% { opacity: .35; } }

.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.topbar h1 { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; }
#page-sub { font-size: .92rem; margin-top: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.m-top { display: none; }
.bottomnav { display: none; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: var(--glass-2); border: 1px solid var(--border); cursor: pointer; font-weight: 600; font-size: .92rem;
  transition: transform .12s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; color: var(--text);
}
.btn:hover { background: var(--glass-3); border-color: var(--border-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(139, 92, 246, .38); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; border-color: transparent; }
.btn.ok-solid { background: linear-gradient(135deg, #10b981, #22d3ee); color: #fff; border-color: transparent; }
.btn.sm { padding: 7px 11px; font-size: .84rem; border-radius: 10px; }
.btn.xs { padding: 4px 9px; font-size: .78rem; border-radius: 8px; }
.btn.sm .ic, .btn.xs .ic { width: 15px; height: 15px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--border); color: var(--text); transition: .2s; flex: none;
}
.icon-btn:hover { background: var(--glass-3); }
.icon-btn.danger { color: var(--bad); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm .ic { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child, .label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--input);
  outline: none; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
input::placeholder, textarea::placeholder { color: var(--dim); }
select option { background: var(--menu); color: var(--text); }
textarea { resize: vertical; min-height: 90px; font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
input[type=color] { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--input); padding: 4px; cursor: pointer; }
input[type=datetime-local], input[type=date], input[type=time] { color-scheme: inherit; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > input { flex: 1; }
.hint { font-size: .8rem; color: var(--dim); margin: 0; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--input); border: 1px solid var(--border); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--muted); transition: .2s; flex: 1; white-space: nowrap; }
.seg button.on { background: var(--glass-3); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.field .seg { display: flex; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--glass-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.stepper input { text-align: center; font-weight: 700; font-size: 1.05rem; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); cursor: pointer; font-weight: 600; font-size: .83rem; color: var(--muted); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.chips.big .chip { padding: 12px 18px; font-size: 1rem; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--input); border: 1px solid var(--border); position: relative; transition: .25s; flex: none; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .25s; }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track .knob { left: 20px; background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.checks { display: flex; gap: 6px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); cursor: pointer; font-size: .86rem; }
.check input { accent-color: var(--accent); }

/* conditional fields */
.form[data-mode="open"] .only-fixed, .form[data-startmode="now"] .only-custom, .form[data-billing="auto"] .only-manual { display: none; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi-top .ic { width: 16px; height: 16px; color: var(--accent-2); }
.kpi-val { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-val small { color: var(--dim); font-weight: 600; font-size: .6em; }

/* ---------- stations ---------- */
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.station { --c: #8b5cf6; position: relative; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color .3s, box-shadow .3s; min-height: 250px; }
.station::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
}
.station > * { position: relative; }
.state-busy { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: var(--shadow), 0 0 32px color-mix(in srgb, var(--c) 22%, transparent); }
.state-paused { border-style: dashed; border-color: var(--warn); }
.state-locked, .state-maint { opacity: .75; }
.station.warn { border-color: var(--warn); box-shadow: var(--shadow), 0 0 30px rgba(251, 191, 36, .25); }
.station.over { border-color: var(--bad); animation: overPulse 1.6s ease-in-out infinite; }
@keyframes overPulse { 50% { box-shadow: var(--shadow), 0 0 40px rgba(248, 113, 113, .45); } }
.st-head { display: flex; align-items: center; gap: 12px; }
.st-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; background: color-mix(in srgb, var(--c) 25%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.st-title { min-width: 0; flex: 1; }
.st-name { font-weight: 700; font-size: 1.1rem; }
.st-type { font-size: .8rem; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.st-type .ic { width: 13px; height: 13px; }
.pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; background: var(--glass-2); border: 1px solid var(--border); }
.pill.free, .pill.upcoming { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.pill.busy, .pill.started { color: var(--accent-2); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); }
.pill.paused, .pill.late { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); }
.pill.locked, .pill.maint, .pill.cancelled, .pill.noshow, .pill.done { color: var(--muted); }
.pill.noshow { color: var(--bad); }
.st-cust { display: flex; align-items: center; gap: 6px; font-size: .92rem; min-width: 0; }
.st-cust b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cust .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cust .ic { width: 15px; height: 15px; color: var(--muted); }
.st-timer { font-family: 'JetBrains Mono', monospace; font-size: 2.5rem; font-weight: 700; letter-spacing: .02em; line-height: 1; text-shadow: 0 0 24px color-mix(in srgb, var(--c) 55%, transparent); }
.state-paused .st-timer { opacity: .6; }
.st-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.st-meta .ic { width: 14px; height: 14px; }
.st-bill { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.progress { height: 6px; border-radius: 99px; background: var(--input); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--accent-2)); border-radius: inherit; transition: width .9s linear; }
.warn .progress span { background: var(--warn); }
.over .progress span { background: var(--bad); }
.st-remain { font-size: .82rem; font-weight: 600; color: var(--muted); margin-top: -6px; }
.warn .st-remain { color: var(--warn); }
.over .st-remain { color: var(--bad); }
.st-snacks { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.st-snacks .ic { width: 14px; height: 14px; }
.st-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: auto; }
.st-actions .btn { padding: 8px 4px; flex-direction: column; gap: 3px; font-size: .72rem; }
.st-idle { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.start-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent);
  font-weight: 700; font-size: 1rem; transition: .2s; color: var(--text);
}
.start-btn:hover { background: color-mix(in srgb, var(--c) 24%, transparent); border-style: solid; }
.start-btn .ic { width: 20px; height: 20px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.quick-lbl { font-size: .74rem; color: var(--dim); margin-right: 2px; }
.st-lock { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.st-booking { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 8px 10px; border-radius: 10px; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .3); }
.st-booking > span { flex: 1; min-width: 0; }
.st-booking.due { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .4); }
.st-booking .ic { width: 15px; height: 15px; }

.section-title { font-weight: 700; font-size: 1.05rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }

/* ---------- bookings ---------- */
.bk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bk { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bk-top { display: flex; gap: 12px; align-items: center; }
.bk-time { text-align: center; padding: 6px 10px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--border); flex: none; min-width: 72px; }
.bk-time b { display: block; font-size: 1rem; }
.bk-time small { color: var(--muted); }
.bk-info { flex: 1; min-width: 0; }
.bk-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-info small { color: var(--muted); }
.bk-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.timeline { padding: 16px; }
.tl-scroll { overflow-x: auto; }
.tl-inner { min-width: 720px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; }
.tl-row + .tl-row { margin-top: 8px; }
.tl-label { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: relative; height: 42px; border-radius: 10px; background: var(--input); border: 1px solid var(--border); cursor: copy; overflow: hidden; }
.tl-hours { position: relative; height: 18px; margin-left: 130px; font-size: .7rem; color: var(--dim); }
.tl-hours span { position: absolute; transform: translateX(-50%); }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-block {
  position: absolute; top: 4px; bottom: 4px; border-radius: 8px; padding: 2px 8px; font-size: .72rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 45%, transparent); border: 1px solid color-mix(in srgb, var(--c) 80%, transparent); cursor: pointer; line-height: 1.25; color: #fff;
}
.tl-block small { display: block; opacity: .8; font-weight: 500; }
.tl-block.live { background: repeating-linear-gradient(45deg, rgba(34, 211, 238, .45) 0 8px, rgba(34, 211, 238, .3) 8px 16px); border-color: var(--accent-2); }
.tl-block.linked { opacity: .45; border-style: dashed; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); box-shadow: 0 0 8px var(--bad); z-index: 2; }

/* ---------- tables ---------- */
.table-wrap { padding: 6px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; padding: 12px; }
.table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.table td small { display: block; color: var(--muted); }
.table tr:hover td { background: var(--glass); }
.table .num { text-align: right; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .icon-btn { margin-left: 4px; }
.tag { display: inline-block; font-size: .7rem; padding: 2px 7px; border-radius: 6px; background: var(--glass-2); border: 1px solid var(--border); color: var(--muted); margin: 1px 2px 1px 0; font-weight: 600; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; padding: 12px; }
.filters .grow { flex: 1; min-width: 180px; }
.filters select, .filters input { width: auto; }
.filters .grow input { width: 100%; }
.sum-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-chip { padding: 8px 14px; border-radius: 12px; font-size: .86rem; }
.sum-chip b { margin-left: 4px; }

/* ---------- reports ---------- */
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rep-grid .span2 { grid-column: span 2; }
.card h3 { margin: 0 0 14px; font-size: 1rem; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 22px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.vbar-fill { width: 100%; max-width: 38px; background: var(--grad); border-radius: 6px 6px 3px 3px; position: relative; min-height: 2px; transition: height .4s; }
.vbar-val { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .66rem; color: var(--muted); white-space: nowrap; }
.vbar-lab { font-size: .66rem; color: var(--dim); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; margin-bottom: 5px; }
.hbar-top span:last-child { font-weight: 700; }
.hbar-track { height: 9px; border-radius: 99px; background: var(--input); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: inherit; background: var(--c, var(--accent)); }
.hbar-sub { font-size: .74rem; color: var(--dim); margin-top: 3px; }

/* ---------- settings ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 14px; border-radius: 11px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab.on { background: var(--glass-3); color: var(--text); border-color: var(--border); }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.set-card h3 { margin: 0; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.set-card h3 .ic { color: var(--accent-2); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.set-row > div:first-child { min-width: 0; }
.set-row b { display: block; font-weight: 600; font-size: .92rem; }
.set-row small { color: var(--dim); }
.set-row > input, .set-row > select { width: 120px !important; flex: none; }
.st-list { display: flex; flex-direction: column; gap: 10px; }
.st-item { display: flex; align-items: center; gap: 12px; padding: 12px; --c: #8b5cf6; }
.st-item .st-icon { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 12px; }
.st-item .grow { flex: 1; min-width: 0; }
.st-item .grow small { display: block; color: var(--muted); }
.snack-table input { padding: 8px 10px; }
.snack-table .emoji-in { width: 56px; text-align: center; }
.snack-table .low { color: var(--warn); }
.preview-table { width: 100%; font-size: .84rem; border-collapse: collapse; }
.preview-table td { padding: 6px 4px; border-top: 1px solid var(--border); }
.preview-table td:last-child { text-align: right; font-weight: 700; }
.code { font-family: 'JetBrains Mono', monospace; font-size: .78rem; background: var(--input); padding: 2px 6px; border-radius: 6px; }
ol.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 4, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal-wrap.show { opacity: 1; }
.modal { width: 100%; max-width: 580px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); background: color-mix(in srgb, var(--menu) 72%, transparent); }
.modal.lgd { max-width: 780px; }
.modal.sm { max-width: 420px; }
.modal-wrap.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.modal-head h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 14px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); }
.modal-foot .spacer { flex: 1; }
.estimate { display: flex; gap: 10px; flex-wrap: wrap; }
.estimate > div { flex: 1; min-width: 110px; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); display: flex; flex-direction: column; }
.estimate span { font-size: .74rem; }
.estimate b { font-size: 1.05rem; }
.alert { padding: 10px 12px; border-radius: 12px; font-size: .85rem; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .1); color: var(--warn); }
.alert.bad { border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .1); color: var(--bad); }
.alert.info { border-color: rgba(96, 165, 250, .4); background: rgba(96, 165, 250, .1); color: var(--info); }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--border); }

.bill { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; }
.bill-row small { color: var(--dim); margin-left: 6px; }
.bill-total { border-top: 1px dashed var(--border-2); margin-top: 6px; padding-top: 10px; font-size: 1.4rem; font-weight: 800; }
.bill-due { font-weight: 700; color: var(--accent-2); }
.co-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.co-head > div { padding: 10px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); min-width: 0; }
.co-head small { display: block; color: var(--dim); font-size: .72rem; }
.co-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.change { font-size: 1.3rem; font-weight: 800; padding: 6px 0; }

.snack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.snack-tile { border-radius: 14px; border: 1px solid var(--border); background: var(--glass); display: flex; flex-direction: column; overflow: hidden; transition: .2s; }
.snack-tile.has { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.snack-add { border: 0; background: transparent; cursor: pointer; padding: 12px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); }
.snack-add .emoji { font-size: 1.7rem; }
.snack-add .nm { font-weight: 600; font-size: .88rem; text-align: center; }
.snack-add .pr { font-size: .82rem; color: var(--accent-2); font-weight: 700; }
.snack-add .stk { font-size: .7rem; color: var(--dim); }
.snack-add .stk.low { color: var(--warn); }
.qty { display: flex; align-items: center; justify-content: space-between; padding: 6px; border-top: 1px solid var(--border); }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--glass-2); cursor: pointer; display: grid; place-items: center; }
.qty .ic { width: 14px; height: 14px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: .9rem; transform: translateX(120%); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); background: color-mix(in srgb, var(--menu) 80%, transparent); }
.toast.show { transform: none; }
.toast.ok .dot { background: var(--ok); }
.toast.warn .dot { background: var(--warn); }
.toast.bad .dot { background: var(--bad); }
.toast.warn { border-color: rgba(251, 191, 36, .5); }
.toast.bad { border-color: rgba(248, 113, 113, .5); }

/* ---------- print (receipt) ---------- */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  body { background: #fff; color: #000; }
  #print-area { display: block; }
  .receipt { width: 72mm; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #000; }
  .receipt h2 { text-align: center; margin: 0 0 4px; font-size: 16px; }
  .receipt p { margin: 4px 0; text-align: center; }
  .receipt table { width: 100%; border-collapse: collapse; }
  .receipt td { padding: 2px 0; }
  .receipt td:last-child { text-align: right; }
  .receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .receipt .tot td { font-size: 14px; font-weight: 700; }
  @page { margin: 4mm; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .set-grid, .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .rep-grid .span2 { grid-column: auto; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { padding: 14px 16px calc(100px + env(safe-area-inset-bottom)); }
  .m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-top: env(safe-area-inset-top); }
  .m-top .brand { padding: 0; }
  .m-top-r { display: flex; align-items: center; gap: 10px; }
  .sync.compact span:last-child { display: none; }
  .bottomnav { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; justify-content: space-around; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--menu) 70%, transparent); }
  .bottomnav .nav-item { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: .68rem; flex: 1; border-radius: 14px; }
  .bottomnav .nav-item.active { box-shadow: none; color: var(--accent-2); }
  .topbar h1 { font-size: 1.5rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; }
  .kpi-val { font-size: 1.3rem; }
  #toasts { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; left: 16px; max-width: none; }
}
@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .station-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-list { grid-template-columns: minmax(0, 1fr); }
  .actions .btn span { display: none; }
  .actions .btn { padding: 10px 12px; }
  .topbar { align-items: center; }
  .modal-wrap { padding: 0; place-items: end stretch; }
  .modal, .modal.lg, .modal.sm { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
  .co-head { grid-template-columns: 1fr 1fr; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 6px; border-top: 1px solid var(--border); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 6px; border: 0; text-align: right; }
  .table td small { display: inline; margin-left: 6px; }
  .table td::before { content: attr(data-l); color: var(--dim); font-size: .78rem; text-align: left; flex: none; }
  .table td.row-actions { justify-content: flex-end; padding-top: 8px; }
  .table td.row-actions::before { content: none; }
  .table tr:hover td { background: transparent; }
  .set-row > input, .set-row > select { width: 100px !important; }
  .filters select { flex: 1; }
  .vbars { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .station.over, .s-saving, .s-connecting { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============ booking slot grid ============ */
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip {
  flex: none; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 12px; border-radius: 14px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border); color: var(--text); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: .2s; position: relative;
}
.day-chip small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.day-chip b { font-size: 1.35rem; line-height: 1.1; }
.day-chip span { font-size: .7rem; color: var(--ok); font-weight: 600; }
.day-chip:hover { border-color: var(--border-2); }
.day-chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(139, 92, 246, .35); }
.day-chip.on small, .day-chip.on span { color: rgba(255, 255, 255, .9); }
.day-chip.pick { justify-content: center; color: var(--muted); }
.day-chip.pick span { color: var(--muted); }
.day-chip.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.sg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lgd { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid; }
.lgd.free { background: rgba(52, 211, 153, .2); border-color: rgba(52, 211, 153, .6); }
.lgd.booked { background: var(--accent); border-color: var(--accent); }
.lgd.live { background: repeating-linear-gradient(45deg, rgba(34, 211, 238, .6) 0 3px, rgba(34, 211, 238, .25) 3px 6px); border-color: var(--accent-2); }
.lgd.linked { background: repeating-linear-gradient(45deg, rgba(148, 163, 184, .35) 0 3px, transparent 3px 6px); border-color: var(--border-2); }
.find { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.sg-wrap { padding: 14px; }
.sg-summary { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 0 2px; }
.slot-grid { display: grid; gap: 4px; }
.sg-corner, .sg-head { position: sticky; top: 0; z-index: 3; }
.sg-head {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 12px; min-width: 0;
  background: color-mix(in srgb, var(--menu) 85%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.sg-head b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sg-head small { font-size: .7rem; color: var(--bad); font-weight: 600; white-space: nowrap; }
.sg-head small.ok { color: var(--ok); }
.sg-ic { font-size: 1.2rem; line-height: 1; }
.sg-time { font-size: .74rem; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; white-space: nowrap; font-weight: 600; }
.sg-time.past { color: var(--dim); opacity: .6; }
.sg-time.now { color: var(--bad); }
.sg-time.now::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-right: 5px; box-shadow: 0 0 8px var(--bad); }
.slot {
  height: 38px; border-radius: 8px; border: 1px solid transparent; font-size: .74rem; padding: 3px 8px; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; line-height: 1.2; color: var(--text); background: none;
}
.slot b, .slot small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slot small { font-size: .68rem; opacity: .85; }
.s-free { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .28); color: var(--ok); cursor: pointer; flex-direction: row; align-items: center; justify-content: center; gap: 4px; font-weight: 700; transition: .15s; }
.s-free .lbl { opacity: 0; transition: .15s; }
.s-free:hover, .s-free:focus-visible { background: rgba(52, 211, 153, .25); border-color: var(--ok); transform: scale(1.03); }
.s-free:hover .lbl { opacity: 1; }
.s-free .plus { font-size: 1rem; }
.s-booked { background: color-mix(in srgb, var(--c) 60%, transparent); border-color: color-mix(in srgb, var(--c) 90%, transparent); color: #fff; cursor: pointer; }
.s-booked.cont { background: color-mix(in srgb, var(--c) 42%, transparent); border-top-color: transparent; margin-top: -5px; height: 43px; border-radius: 0 0 8px 8px; }
.s-booked.first { border-bottom-left-radius: 8px; }
.s-booked.playing { background: color-mix(in srgb, var(--accent-2) 55%, transparent); border-color: var(--accent-2); }
.s-booked.done { opacity: .5; }
.s-booked:hover { filter: brightness(1.15); }
.s-live { background: repeating-linear-gradient(45deg, rgba(34, 211, 238, .4) 0 6px, rgba(34, 211, 238, .18) 6px 12px); border-color: rgba(34, 211, 238, .6); cursor: pointer; align-items: center; }
.s-linked { background: repeating-linear-gradient(45deg, rgba(148, 163, 184, .2) 0 5px, transparent 5px 10px); border-color: var(--border); color: var(--dim); align-items: center; }
.s-linked .ic { width: 13px; height: 13px; }
.s-past { background: transparent; border: 1px dashed var(--border); opacity: .4; }

.bk-sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); }
.bk-sum [data-sum] { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bk-sum .sg-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--c) 25%, transparent); flex: none; }
.bk-sum small { display: block; color: var(--muted); }
.chip.no { opacity: .35; text-decoration: line-through; pointer-events: none; }
details.more { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--glass); }
details.more summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); }

@media (max-width: 720px) {
  .sg-wrap { padding: 8px; }
  .slot-grid { gap: 3px; grid-template-columns: 46px repeat(var(--n, 5), minmax(0, 1fr)) !important; }
  .sg-head { padding: 6px 2px; border-radius: 9px; }
  .sg-head b { font-size: .68rem; }
  .sg-head small { font-size: .6rem; }
  .sg-time { font-size: .64rem; padding-right: 3px; }
  .slot { padding: 2px 4px; height: 34px; }
  .s-booked.cont { height: 39px; }
  .slot b { font-size: .66rem; }
  .slot small { font-size: .58rem; }
  .s-free .lbl { display: none; }
  .legend { gap: 10px; font-size: .74rem; }
}

/* =====================================================================
   LIQUID GLASS — Apple-style materials, motion & controls
   ===================================================================== */
@property --glow { syntax: '<number>'; inherits: true; initial-value: 0; }
:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-num: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --bg1: #04040a; --bg2: #0a0a18; --menu: #1c1c26;
  --text: #f5f5f7; --muted: rgba(235, 235, 245, .64); --dim: rgba(235, 235, 245, .38);
  --accent: #0a84ff; --accent-2: #64d2ff; --grad: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 55%, #bf5af2 100%);
  --ok: #30d158; --warn: #ff9f0a; --bad: #ff453a; --info: #64d2ff;
  --tint: rgba(255, 255, 255, .065); --tint-2: rgba(255, 255, 255, .11); --tint-3: rgba(255, 255, 255, .17);
  --glass: var(--tint); --glass-2: var(--tint-2); --glass-3: var(--tint-3);
  --border: rgba(255, 255, 255, .08); --border-2: rgba(255, 255, 255, .18);
  --edge: linear-gradient(150deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 30%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .08) 80%, rgba(255, 255, 255, .3));
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 18px 50px -12px rgba(0, 0, 0, .55), inset 0 1px 1px rgba(255, 255, 255, .14);
  --blur: blur(32px) saturate(190%);
  --input: rgba(118, 118, 128, .2);
  --seg-thumb: rgba(118, 118, 128, .55);
  --modal-bg: rgba(28, 28, 36, .62);
  --island: rgba(8, 8, 12, .86);
  --r: 28px; --r-sm: 16px;
  --blob-op: .62;
}
[data-theme="light"] {
  --bg1: #e9ecf6; --bg2: #f7f3ff; --menu: #ffffff;
  --text: #1d1d1f; --muted: rgba(60, 60, 67, .7); --dim: rgba(60, 60, 67, .42);
  --accent: #007aff; --accent-2: #0a84ff; --grad: linear-gradient(135deg, #007aff 0%, #5856d6 55%, #af52de 100%);
  --ok: #34c759; --warn: #ff9500; --bad: #ff3b30; --info: #007aff;
  --tint: rgba(255, 255, 255, .42); --tint-2: rgba(255, 255, 255, .6); --tint-3: rgba(255, 255, 255, .85);
  --border: rgba(60, 60, 67, .1); --border-2: rgba(60, 60, 67, .2);
  --edge: linear-gradient(150deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .45) 35%, rgba(255, 255, 255, .15) 60%, rgba(255, 255, 255, .85));
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 50px -14px rgba(50, 40, 120, .25), inset 0 1px 1px rgba(255, 255, 255, .9);
  --input: rgba(118, 118, 128, .12);
  --seg-thumb: #ffffff;
  --modal-bg: rgba(250, 250, 252, .7);
  --blob-op: .42;
}

body { font-family: var(--font); letter-spacing: -.012em; }
.ic { stroke-width: 1.85; }
.topbar h1 { font-weight: 700; letter-spacing: -.025em; font-size: 2.1rem; }

/* ---- wallpaper ---- */
.blob { filter: blur(110px); animation: drift 38s var(--spring) infinite alternate; }
.b1 { background: #5e5ce6; width: 640px; height: 640px; top: -200px; left: -160px; }
.b2 { background: #0a84ff; width: 560px; height: 560px; bottom: -220px; right: -120px; animation-delay: -10s; }
.b3 { background: #bf5af2; width: 460px; height: 460px; top: 30%; left: 40%; opacity: calc(var(--blob-op) * .7); animation-delay: -18s; }
.b4 { background: #ff375f; width: 360px; height: 360px; top: -80px; right: 18%; opacity: calc(var(--blob-op) * .5); animation-delay: -24s; }
.b5 { background: #30d158; width: 300px; height: 300px; bottom: 6%; left: 22%; opacity: calc(var(--blob-op) * .28); animation-delay: -6s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -40px) scale(1.15); } 100% { transform: translate(-40px, 50px) scale(.95); } }
.bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, .35)); }
[data-theme="light"] .bg::after { background: radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(255, 255, 255, .5)); }

/* ---- the material ---- */
.glass {
  position: relative; isolation: isolate;
  border: 1px solid var(--border);
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, -300px), rgba(255, 255, 255, calc(var(--glow) * .12)), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 42%),
    var(--tint);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-shadow);
  transition: --glow .5s var(--ease-out), transform .6s var(--spring), box-shadow .5s var(--spring), border-color .3s;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass:hover { --glow: 1; }
.sidebar { position: sticky; border-radius: 30px; }
.inner, .estimate > div, .co-head > div, .bill, details.more { background: var(--input); border-color: transparent; }

/* lift on hover for interactive cards */
.station, .kpi, .bk, .day-chip, .card { transition: --glow .5s var(--ease-out), transform .6s var(--spring), box-shadow .6s var(--spring), border-color .3s; }
@media (hover: hover) {
  .station:hover, .kpi:hover, .bk:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 26px 60px -20px rgba(0, 0, 0, .5); }
}

/* ---- typography for numbers ---- */
.st-timer, .side-clock, .kpi-val, .bill-total, .change, .st-bill, .day-chip b { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.st-timer { font-size: 2.9rem; font-weight: 600; letter-spacing: -.03em; }
.side-clock { font-weight: 600; letter-spacing: -.02em; font-size: 1.5rem; }
.kpi-val { font-weight: 700; letter-spacing: -.03em; }

/* ---- buttons: capsules with spring press ---- */
.btn {
  border-radius: 999px; border: 0; background: var(--tint-2); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform .55s var(--bounce), background .25s, box-shadow .3s, filter .2s; font-weight: 600;
}
[data-theme="light"] .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(60, 60, 67, .06); }
.btn:hover { background: var(--tint-3); border-color: transparent; }
.btn:active, .icon-btn:active, .chip:active, .start-btn:active, .day-chip:active, .slot:active, .nav-item:active, .seg button:active { transform: scale(.93); transition-duration: .15s; }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff) -40%, var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -8px var(--accent); }
.btn.ok-solid { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 80%, #fff) -40%, var(--ok)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -8px var(--ok); }
.btn.danger-solid { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 80%, #fff) -40%, var(--bad)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px -8px var(--bad); }
.btn.ghost { background: transparent; box-shadow: none; backdrop-filter: none; }
.btn.ghost:hover { background: var(--tint); }
.btn.danger { color: var(--bad); }
.st-actions .btn { border-radius: 16px; padding: 9px 4px; }
.icon-btn { border-radius: 50%; border: 0; background: var(--tint-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: transform .55s var(--bounce), background .25s; }
.icon-btn.sm { border-radius: 50%; }
.chip { border: 0; background: var(--input); color: var(--text); transition: transform .55s var(--bounce), background .3s, color .3s, box-shadow .3s; }
.chip.on { background: var(--accent); box-shadow: 0 6px 18px -6px var(--accent); }
.start-btn { border-radius: 20px; transition: transform .55s var(--bounce), background .3s, border-color .3s; }

/* ---- inputs (iOS fill style) ---- */
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  border-radius: 13px; border: 1px solid transparent; background: var(--input); transition: box-shadow .3s var(--ease-out), background .2s, border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.stepper button { border-radius: 50%; border: 0; background: var(--tint-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .5s var(--bounce); }
.stepper button:active { transform: scale(.88); }

/* ---- segmented control with sliding thumb ---- */
.seg { position: relative; background: var(--input); border: 0; border-radius: 12px; padding: 3px; gap: 0; }
.seg button { position: relative; z-index: 1; color: var(--text); opacity: .72; border-radius: 9px; transition: opacity .25s, transform .5s var(--bounce); }
.seg button.on { background: transparent; box-shadow: none; opacity: 1; }
.seg-thumb {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; border-radius: 9px; pointer-events: none; opacity: 0;
  background: var(--seg-thumb); box-shadow: 0 3px 8px rgba(0, 0, 0, .14), 0 1px 1px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .55s var(--spring), width .55s var(--spring), height .55s var(--spring), opacity .2s;
}

/* ---- iOS switch ---- */
.switch .track { width: 51px; height: 31px; border: 0; background: rgba(120, 120, 128, .32); transition: background .35s var(--ease-out); }
.switch .knob { top: 2px; left: 2px; width: 27px; height: 27px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: left .45s var(--spring), width .3s var(--spring); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track .knob { left: 22px; background: #fff; }
.switch:active .knob { width: 33px; }
.switch:active input:checked + .track .knob { left: 16px; }

/* ---- navigation with sliding pill ---- */
.side-nav { position: relative; }
.nav-item { position: relative; z-index: 1; border-radius: 16px; transition: color .3s, transform .5s var(--bounce); }
.nav-item:hover { background: transparent; }
.nav-item.active { background: transparent; box-shadow: none; border-color: transparent; }
.nav-pill {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 16px; pointer-events: none; opacity: 0;
  background: var(--tint-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 18px -8px rgba(0, 0, 0, .4);
  transition: transform .6s var(--spring), width .6s var(--spring), height .6s var(--spring), opacity .3s;
}
.side-nav .nav-item.active .ic { color: var(--accent-2); }

/* ---- sticky large-title bar ---- */
.topbar { position: sticky; top: 10px; z-index: 30; padding: 12px 18px; margin: -12px -18px 18px; border-radius: 26px; border: 1px solid transparent; transition: background .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.topbar.scrolled { background: var(--tint-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--glass-shadow); border-color: var(--border); }
.sg-corner, .sg-head { top: calc(var(--topbar-h, 0px) + 12px); }

/* ---- status pills ---- */
.pill { border: 0; padding: 5px 11px; letter-spacing: .04em; backdrop-filter: blur(10px); }
.pill.busy::before, .pill.started::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: livePulse 1.8s var(--ease-out) infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- station cards ---- */
.station { border-radius: 28px; }
.state-busy::after { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 25%, transparent) 35%, transparent 60%, color-mix(in srgb, var(--c) 55%, transparent)); }
.state-busy { border-color: transparent; }
.st-icon { border-radius: 15px; border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.progress { height: 5px; background: var(--input); }
.progress span { box-shadow: 0 0 12px var(--c); }

/* ---- modals: blur-in on desktop, spring sheet on mobile ---- */
.modal-wrap { opacity: 1; background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: background .5s var(--spring), backdrop-filter .5s var(--spring), -webkit-backdrop-filter .5s var(--spring); }
.modal-wrap.show { background: rgba(0, 0, 0, .32); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.modal { position: relative; border-radius: 32px; background: var(--modal-bg); backdrop-filter: blur(50px) saturate(200%); -webkit-backdrop-filter: blur(50px) saturate(200%); opacity: 0; transform: translateY(30px) scale(.92); filter: blur(8px); transition: transform .6s var(--spring), opacity .4s var(--ease-out), filter .45s var(--ease-out); }
.modal-wrap.show .modal { opacity: 1; transform: none; filter: none; }
.modal-foot { border-top: 0; }
.grabber { display: none; }

/* ---- Dynamic-Island toasts ---- */
#toasts { top: calc(12px + env(safe-area-inset-top)); left: 50%; right: auto; transform: translateX(-50%); align-items: center; max-width: min(460px, calc(100vw - 24px)); }
.toast {
  border-radius: 999px; padding: 11px 20px; color: #fff; font-weight: 500; border: 0;
  background: var(--island); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: translateY(-24px) scale(.4, .6); opacity: 0; filter: blur(6px);
  transition: transform .7s var(--bounce), opacity .35s var(--ease-out), filter .4s;
}
.toast::after { display: none; }
.toast.show { transform: none; opacity: 1; filter: none; }
.toast .dot { box-shadow: 0 0 10px currentColor; }

/* ---- page entrance ---- */
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes titleIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.view-enter .anim { animation: rise .8s var(--spring) both; animation-delay: calc(var(--i, 0) * 40ms); }
.topbar.enter .tb-l, .topbar.enter .actions { animation: titleIn .6s var(--spring) both; }
.topbar.enter .actions { animation-delay: .06s; }

/* ---- slots & chips ---- */
.slot { transition: transform .5s var(--bounce), background .25s, border-color .25s, filter .2s; }
.s-free:hover, .s-free:focus-visible { transform: scale(1.05); }
.day-chip { border-radius: 20px; border-color: var(--border); }
.day-chip.on { background: var(--accent); box-shadow: 0 10px 26px -10px var(--accent); }
.tabs { border-radius: 22px; }
.tab { border-radius: 14px; transition: background .35s var(--spring), color .3s, transform .5s var(--bounce); }
.tab.on { background: var(--tint-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 14px -6px rgba(0, 0, 0, .35); border-color: transparent; }
.vbar-fill { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 8px 8px 4px 4px; animation: grow 1s var(--spring) both; transform-origin: bottom; }
.hbar-fill { animation: growX 1s var(--spring) both; transform-origin: left; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }

@media (max-width: 900px) {
  .bottomnav { position: fixed; border-radius: 999px; padding: 6px; left: 14px; right: 14px; background: var(--tint-2); }
  .bottomnav .nav-item { border-radius: 999px; }
  .bottomnav .nav-item.active { color: var(--accent-2); }
  .bottomnav .nav-pill { border-radius: 999px; }
  .topbar { top: calc(8px + env(safe-area-inset-top)); margin: -10px -10px 16px; padding: 10px; border-radius: 22px; }
  .topbar h1 { font-size: 1.7rem; }
  #toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 50%; right: auto; max-width: calc(100vw - 24px); }
}
@media (max-width: 720px) {
  .modal, .modal.lg, .modal.sm { border-radius: 30px 30px 0 0; opacity: 1; filter: none; transform: translateY(105%); transition: transform .6s var(--spring); }
  .modal-wrap.show .modal { transform: none; }
  .grabber { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--dim); margin: 8px auto 0; opacity: .7; }
  .modal-head { padding-top: 8px; touch-action: none; }
}
@media (prefers-reduced-motion: reduce) {
  .view-enter .anim, .topbar.enter .tb-l, .topbar.enter .actions, .vbar-fill, .hbar-fill { animation: none !important; }
  .modal, .toast { filter: none !important; }
}

@media (max-width: 720px) { .hm { display: none; } .sg-head small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }

/* ============ multi-station picker & groups ============ */
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.stp {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px 10px; border-radius: 18px; cursor: pointer;
  background: var(--input); border: 1.5px solid transparent; color: var(--text); text-align: center;
  transition: transform .5s var(--bounce), background .3s, border-color .3s, opacity .3s, box-shadow .3s;
}
.stp:hover { background: var(--tint-2); }
.stp:active { transform: scale(.94); }
.stp-ic { font-size: 1.6rem; line-height: 1.1; }
.stp b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stp small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stp-check { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; transform: scale(0); transition: transform .45s var(--bounce); }
.stp-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.stp.on { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); box-shadow: 0 8px 22px -10px var(--c); }
.stp.on .stp-check { transform: scale(1); }
.stp.on small { color: var(--text); }
.stp.off { opacity: .38; cursor: not-allowed; }
.stp.off:active { transform: none; }
.stp.bad { border-color: var(--bad); }
.stp.bad small { color: var(--bad); }
.grp { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); vertical-align: middle; }
.grp .ic { width: 12px; height: 12px; }
.bk-sum .sg-ic .ic { width: 20px; height: 20px; }
@media (max-width: 720px) { .st-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stp { padding: 12px 4px 8px; } }

/* ============ discard ============ */
.st-x { width: 28px; height: 28px; margin-left: 2px; opacity: .55; transition: opacity .2s, transform .5s var(--bounce), background .2s, color .2s; }
.st-x:hover { opacity: 1; color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, transparent); }
.st-x .ic { width: 14px; height: 14px; }
.toast-act { margin-left: 6px; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 99px; cursor: pointer; transition: transform .45s var(--bounce), background .2s; }
.toast-act:hover { background: rgba(255, 255, 255, .26); }
.toast-act:active { transform: scale(.92); }
.tag.void { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); border-color: transparent; }

/* ============ bookings: simple availability view ============ */
.av-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 0 4px 14px; }
.av-legend span { display: inline-flex; align-items: center; gap: 6px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 14px; }
.av-card { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; border-radius: 26px; }
.av-head { display: flex; align-items: center; gap: 12px; }
.av-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; flex: none; background: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.av-title { flex: 1; min-width: 0; }
.av-title b { display: block; font-size: 1.05rem; }
.av-title small { color: var(--muted); font-size: .8rem; }
.av-now { font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--input); color: var(--muted); white-space: nowrap; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.av-now.free { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.av-now.live { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 15%, transparent); }
.av-now.booked { color: #fff; background: color-mix(in srgb, var(--c) 55%, transparent); }

.av-bar { position: relative; height: 40px; border-radius: 12px; background: var(--input); overflow: hidden; margin-top: 4px; }
.av-seg { position: absolute; top: 0; bottom: 0; border: 0; padding: 0 8px; display: flex; align-items: center; overflow: hidden; color: #fff; font: inherit; font-size: .74rem; font-weight: 700; transition: filter .2s, transform .45s var(--bounce); }
.av-seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-seg + .av-seg { box-shadow: inset 2px 0 0 var(--bg1); }
.av-seg.free { background: color-mix(in srgb, var(--ok) 26%, transparent); cursor: pointer; }
.av-seg.free:hover { background: color-mix(in srgb, var(--ok) 42%, transparent); }
.av-seg.booked { background: color-mix(in srgb, var(--c) 78%, transparent); cursor: pointer; }
.av-seg.booked:hover, .av-seg.live:hover { filter: brightness(1.15); }
.av-seg.live { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent-2) 70%, transparent) 0 7px, color-mix(in srgb, var(--accent-2) 45%, transparent) 7px 14px); cursor: pointer; }
.av-seg.linked { background: repeating-linear-gradient(45deg, rgba(148, 163, 184, .35) 0 6px, rgba(148, 163, 184, .12) 6px 12px); }
.av-nowline { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--bad); box-shadow: 0 0 8px var(--bad); z-index: 2; pointer-events: none; border-radius: 2px; }
.av-ticks { position: relative; height: 14px; font-size: .68rem; color: var(--dim); margin-top: -4px; }
.av-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.av-ticks span:first-child { transform: none; }
.av-ticks span:last-child { transform: translateX(-100%); }

.av-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.av-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 0; font: inherit; font-size: .8rem; color: var(--text); background: var(--input); cursor: pointer; transition: transform .45s var(--bounce), background .2s; white-space: nowrap; }
.av-pill b { font-weight: 700; }
.av-pill:active { transform: scale(.94); }
.av-pill.free { background: color-mix(in srgb, var(--ok) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.av-pill.free b { color: var(--ok); }
.av-pill.free:hover { background: color-mix(in srgb, var(--ok) 26%, transparent); }
.av-plus { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; }
.av-plus .ic { width: 12px; height: 12px; stroke-width: 3; }
.av-pill.booked { background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.av-pill.live { background: color-mix(in srgb, var(--accent-2) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent); }
.av-pill.live b { color: var(--accent-2); }
.av-pill.linked { cursor: default; color: var(--muted); }
#page-actions .seg { flex: none; }
#page-actions .seg button { padding: 7px 14px; }

@media (max-width: 720px) {
  .av-grid { grid-template-columns: minmax(0, 1fr); }
  .av-card { padding: 14px; }
  .av-bar { height: 34px; }
  .av-pill { font-size: .76rem; padding: 6px 10px; }
  .av-now { max-width: 42%; }
  #page-actions .seg button { padding: 7px 10px; }
}

/* ============ bookings: plain table ============ */
.tb-wrap { padding: 14px; }
.tb-scroll { overflow-x: auto; border-radius: 14px; }
.tb { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; min-width: 560px; }
.tb th, .tb td { padding: 9px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; vertical-align: middle; }
.tb thead th { background: color-mix(in srgb, var(--menu) 60%, transparent); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tb tbody th { text-align: right; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: .8rem; width: 1%; }
.tb tr > :last-child { border-right: 0; }
.tb-free { color: var(--ok); font-weight: 600; cursor: pointer; transition: background .2s; }
.tb-free:hover { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.tb-booked { background: color-mix(in srgb, var(--c) 45%, transparent); color: #fff; cursor: pointer; }
.tb-booked:hover, .tb-live:hover { filter: brightness(1.12); }
.tb-booked b, .tb-live b { display: block; font-size: .86rem; }
.tb-booked small, .tb-live small { display: block; font-size: .72rem; opacity: .85; }
.tb-live { background: color-mix(in srgb, var(--accent-2) 22%, transparent); color: var(--accent-2); cursor: pointer; }
.tb-blocked { color: var(--dim); font-size: .78rem; background: repeating-linear-gradient(45deg, rgba(148, 163, 184, .12) 0 6px, transparent 6px 12px); }
.tb-nowrow th { color: var(--bad); }
.tb-nowrow th::before { content: '● '; }
[data-theme="light"] .tb-booked { color: #1d1d1f; }
@media (max-width: 720px) {
  .tb-wrap { padding: 8px; }
  .tb { font-size: .76rem; min-width: 0; }
  .tb th, .tb td { padding: 7px 4px; }
  .tb thead th { font-size: .66rem; white-space: normal; }
  .tb tbody th { font-size: .66rem; }
  .tb-booked b, .tb-live b { font-size: .72rem; }
  .tb-booked small, .tb-live small { display: none; }
}
