:root {
  /* BilliardFlow palette (v83): slate navy #0F172A, tournament green #065F46, chalk blue #38BDF8, slate-50 #F8FAFC, white cards. Status colours (free, booked, event, danger) are unchanged. */
  --brand: #0f172a; --brand-ink: #ffffff; --brand-hi: #38bdf8;
  --bg: #f8fafc; --surface: #ffffff; --surface2: #f1f5f9; --line: #e2e8f0; --ink: #0f172a; --ink2: #475569; --ink3: #64748b;
  --accent: #065f46; --accent-ink: #ffffff; --accent-soft: #d1fae5;
  --free: #157347; --free-bg: #e0f3e8; --use: #0f172a; --use-bg: #e2e8f0; --held: #8a5a00; --held-bg: #fbeed0;
  --event: #6a3fb5; --event-bg: #ece5f8; --shut: #55606a; --shut-bg: #e3e8ec; --danger: #b3261e; --danger-bg: #fbe4e2;
  --warn-bg: #fff1c2; --warn-ink: #6b4a00; --plan: #f1f5f9; --grid: #e2e8f0; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.08);
  --bar: #065f46;
  --nav-ink: rgba(255,255,255,.8); --nav-hover: rgba(255,255,255,.1); --nav-line: rgba(255,255,255,.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #020617; --brand-hi: #38bdf8;
  --bg: #0f172a; --surface: #1e293b; --surface2: #273449; --line: #334155; --ink: #f8fafc; --ink2: #cbd5e1; --ink3: #94a3b8;
  --accent: #38bdf8; --accent-ink: #0f172a; --accent-soft: #082f49;
  --free: #5fcf98; --free-bg: #0f2a1a; --use: #38bdf8; --use-bg: #082f49; --held: #efb955; --held-bg: #33270d;
  --event: #b7a0ee; --event-bg: #251d3f; --shut: #aab5bd; --shut-bg: #1c2024; --danger: #f2887f; --danger-bg: #391a18;
  --warn-bg: #3d3210; --warn-ink: #f2d27a; --plan: #0b1222; --grid: #1e293b; --shadow: 0 1px 2px rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.6);
  --bar: #34d399; color-scheme: dark; } }
:root[data-theme="dark"] {
  --brand: #020617; --brand-hi: #38bdf8;
  --bg: #0f172a; --surface: #1e293b; --surface2: #273449; --line: #334155; --ink: #f8fafc; --ink2: #cbd5e1; --ink3: #94a3b8;
  --accent: #38bdf8; --accent-ink: #0f172a; --accent-soft: #082f49;
  --free: #5fcf98; --free-bg: #0f2a1a; --use: #38bdf8; --use-bg: #082f49; --held: #efb955; --held-bg: #33270d;
  --event: #b7a0ee; --event-bg: #251d3f; --shut: #aab5bd; --shut-bg: #1c2024; --danger: #f2887f; --danger-bg: #391a18;
  --warn-bg: #3d3210; --warn-ink: #f2d27a; --plan: #0b1222; --grid: #1e293b; --shadow: 0 1px 2px rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.6);
  --bar: #34d399; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 "Maven Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }
h2 { font-size: 28px; } h3 { font-size: 21px; }
.muted { color: var(--ink2); } .small { font-size: 13px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
/* One block for the whole menu bar (v90). Wide screens: one row. When the menu doesn't fit, app.js adds .two-row and the menu
   gets its own full-width row under the name, venue and account buttons. Phones always use two rows, with icons above the words. */
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; background: var(--brand); color: var(--brand-ink); border-bottom: 3px solid var(--brand-hi); position: sticky; top: 0; z-index: 30; }
.brand { font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: .05em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.topbar .venue-name { font-size: 15px; font-weight: 500; color: var(--nav-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar select.venuesel { width: auto; max-width: 260px; min-width: 0; min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--nav-line); border-radius: 8px; background: var(--nav-hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; color: #fff; font-size: 15px; font-weight: 500; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
.topbar select.venuesel:hover { border-color: rgba(255,255,255,.55); }
.topbar select.venuesel option { color: var(--ink); background: var(--surface); }
.nav { position: relative; display: flex; gap: 2px; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav.more { --fade-r: 28px; } .nav.less { --fade-l: 28px; }   /* fade an edge while more of the menu is hidden past it */
.nav.more, .nav.less { mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0%), #000 calc(100% - var(--fade-r, 0%)), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0%), #000 calc(100% - var(--fade-r, 0%)), transparent); }
.nav button { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--nav-ink); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.nav button:hover { background: var(--nav-hover); color: #fff; }
.nav button[aria-current="page"] { background: #fff; color: #0f172a; }
.who { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; color: var(--nav-ink); }
.who > span { margin-right: 8px; white-space: nowrap; }
.topbar .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--nav-ink); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; box-shadow: none; }
.topbar .btn:hover { background: var(--nav-hover); color: #fff; }
.topbar .btn.iconbtn { width: 40px; padding: 0; }
.topbar .nav button:focus-visible, .topbar .btn:focus-visible, .topbar select.venuesel:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: -2px; }
.topbar.two-row .nav { order: 5; flex: 1 0 100%; }
@media (pointer: coarse) { .nav button, .topbar .btn, .topbar select.venuesel { min-height: 44px; } .topbar .btn.iconbtn { width: 44px; } }
@media (max-width: 640px) {
  .topbar { gap: 6px 8px; padding: 6px 10px 4px; }
  .brand { font-size: 22px; }
  .topbar select.venuesel, .topbar .venue-name { flex: 1 1 0; max-width: none; font-size: 14px; }   /* the venue takes what's left, so the row never wraps */
  .who > span, .who .btn .lbl { display: none; }
  .who .btn:has(.lbl) { width: 44px; padding: 0; }
  .nav { order: 5; flex: 1 0 100%; }
  .nav button:has(.ico) { flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 10px; font-size: 12px; }
  .nav .ico { width: 22px; height: 22px; }
}
select.venuesel { width: auto; }   /* the venue choosers on Admin and Statistics */
main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h2 { margin-right: auto; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-family: "Maven Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 14px; line-height: 1.2; min-height: 38px; }
.btn .ico { width: 16px; height: 16px; }   /* buttons read in normal capitals (v91); the font is set so a button inside a heading doesn't turn into Bebas */
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.primary { box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .chip:focus-visible, .nav button:focus-visible, .tile:focus-visible, .linkbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 2px 4px; font-size: 13px; }
input, select, textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); width: 100%; min-height: 38px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
textarea { min-height: 64px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field[hidden] { display: none; }   /* a field hidden by the page stays hidden (e.g. "Guests the room holds" for anything but a VIP room) */
.field .lbl { font-size: 13px; font-weight: 600; color: var(--ink2); }
.hint { font-size: 12px; color: var(--ink3); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; } .row > * { flex: 1; min-width: 110px; }
.row.tight > * { flex: 0 0 auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.seg .ico, .ad-groups .ico { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.pickgroup { margin-bottom: 10px; } .pickhead { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; padding: 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scroll-x { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface2); color: var(--ink2); }
.pill.free { background: var(--free-bg); color: var(--free); } .pill.use { background: var(--use-bg); color: var(--use); }
.pill.held { background: var(--held-bg); color: var(--held); } .pill.event { background: var(--event-bg); color: var(--event); }
.pill.bad { background: var(--danger-bg); color: var(--danger); }
.banner { padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); margin-bottom: 12px; font-weight: 600; }
.page-err .small { margin-top: 6px; font-weight: 400; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- dialogs ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; z-index: 100; }
.dialog { background: var(--surface); border-radius: 14px; padding: 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow); }
.dialog.wide { max-width: 760px; } .dialog h2 { margin-bottom: 12px; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.dlg-err { display: none; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.toasts, #toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; width: min(92vw, 460px); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; }
.toast.err { background: var(--danger); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; } .kv dt { color: var(--ink2); } .kv dd { margin: 0; font-weight: 600; }
.paybox { text-align: center; padding: 10px; background: var(--surface2); border-radius: 10px; margin: 8px 0; }
.paybox .big { font-size: 34px; font-weight: 800; }

/* ---------- login ---------- */
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login .card { padding: 24px; } .login h1 { font-size: 24px; margin-bottom: 4px; }

/* ---------- alert bar ---------- */
.alertbar { display: none; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: #b3261e; color: #fff; font-weight: 700; }
.alertbar.show { display: flex; }
.alertbar .a { background: rgba(255,255,255,.18); border-radius: 8px; padding: 4px 10px; }
.alertbar.flash { animation: flashbar 1s steps(1) infinite; }
@keyframes flashbar { 0% { background: #b3261e; } 50% { background: #7a1712; } }
@keyframes flashtile { 0% { box-shadow: 0 0 0 4px var(--danger); background: var(--danger-bg); } 50% { box-shadow: 0 0 0 4px transparent; } }

/* ---------- tables page ---------- */
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.floor { margin-bottom: 22px; }
.floor-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.plan-wrap { overflow-x: auto; border-radius: 12px; }
.plan { position: relative; width: 100%; min-width: 760px; aspect-ratio: 24 / 14; background: var(--plan); border: 1px solid var(--line); border-radius: 12px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: calc(100% / 24) calc(100% / 14); }
.plan.closed { opacity: .75; }
.tile { position: absolute; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); padding: 3px 5px; cursor: pointer; overflow: hidden; text-align: left; display: flex; flex-direction: column; justify-content: space-between; line-height: 1.15; font-size: 11.5px; user-select: none; touch-action: none; }
.tile .nm { font-weight: 800; font-size: 12.5px; display: flex; justify-content: space-between; gap: 4px; }
.tile .st { font-weight: 700; } .tile .sub { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.free { border-color: var(--free); background: var(--free-bg); } .tile.free .st { color: var(--free); }
.tile.use { border-color: var(--use); background: var(--use-bg); } .tile.use .st { color: var(--use); font-size: 14px; }
.tile.held { border-color: var(--held); background: var(--held-bg); } .tile.held .st { color: var(--held); }
.tile.event { border-color: var(--event); background: var(--event-bg); } .tile.event .st { color: var(--event); }
.tile.shut, .tile.out { border-color: var(--shut); background: var(--shut-bg); } .tile.shut .st, .tile.out .st { color: var(--shut); }
.tile.floorclosed { border-style: dashed; border-color: var(--shut); background: repeating-linear-gradient(45deg, var(--shut-bg), var(--shut-bg) 6px, transparent 6px, transparent 12px); } .tile.floorclosed .st { color: var(--shut); }
.tile.seat { border-radius: 14px; }
.tile.alert-warn { border-color: var(--held); box-shadow: 0 0 0 3px var(--held); }
.tile.alert-over { border-color: var(--danger); animation: flashtile 1s steps(1) infinite; }
.tile .ppflag { font-weight: 800; color: var(--danger); }
.tile.alert-warn .ppflag { color: var(--held); }
.tile.dragging-src { opacity: .4; } .tile.droptarget, .row-drop { outline: 3px solid var(--accent); outline-offset: 1px; }
.ghost { position: fixed; z-index: 500; pointer-events: none; background: var(--accent); color: var(--accent-ink); padding: 6px 10px; border-radius: 8px; font-weight: 700; box-shadow: var(--shadow); font-size: 13px; }

/* ---------- timeline ---------- */
.tl { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-x: auto; margin-bottom: 18px; }
.tl-inner { position: relative; min-width: 900px; }
.tl-hours, .tl-row { display: grid; grid-template-columns: 120px 1fr; }
.tl-hours { border-bottom: 1px solid var(--line); background: var(--surface2); position: sticky; top: 0; }
.tl-hours .scale { position: relative; height: 26px; }
.tl-hours .hr { position: absolute; top: 5px; font-size: 12px; color: var(--ink2); transform: translateX(-50%); }
.tl-name { padding: 8px; font-weight: 700; font-size: 13px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; background: var(--surface); position: sticky; left: 0; z-index: 3; }
.tl-cells { position: relative; height: 44px; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); }
.tl-row.closedfloor .tl-cells { background-color: var(--shut-bg); }
.blk { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; padding: 2px 7px; font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: grab; border: 1px solid; touch-action: none; user-select: none; }
.blk.booked { background: var(--held-bg); color: var(--held); border-color: var(--held); }
.blk.arrived { background: var(--use-bg); color: var(--use); border-color: var(--use); }
.blk.done { background: var(--shut-bg); color: var(--shut); border-color: var(--shut); cursor: pointer; opacity: .7; }
.blk.noshow, .blk.cancelled { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); text-decoration: line-through; opacity: .7; }
.blk.event { background: var(--event-bg); color: var(--event); border-color: var(--event); cursor: pointer; }
.blk.shut { background: repeating-linear-gradient(45deg, var(--shut-bg), var(--shut-bg) 5px, transparent 5px, transparent 10px); color: var(--shut); border-color: var(--shut); cursor: pointer; }
.blk.live { background: var(--use-bg); color: var(--use); border-color: var(--use); border-style: dashed; cursor: pointer; }
/* Closed times sit under everything else on a row (GitHub issue 45): a booking staff put onto a closed space shows on top of the stripes. */
.blk.shut { z-index: 1; }
/* Out of service (GitHub issue 49): red stripes, under bookings like closed times. */
.blk.out { background: repeating-linear-gradient(45deg, var(--danger-bg), var(--danger-bg) 5px, transparent 5px, transparent 10px); color: var(--danger); border-color: var(--danger); cursor: pointer; z-index: 1; }
.blk.booked, .blk.arrived, .blk.done, .blk.noshow, .blk.cancelled, .blk.event, .blk.live, .blk.limbo { z-index: 2; }
.blk.moving { opacity: .75; box-shadow: var(--shadow); z-index: 20; }
.nowline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); margin-bottom: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid; margin-right: 4px; vertical-align: -2px; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .kpi .l { font-size: 12px; color: var(--ink2); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink2); font-size: 11px; } .chart .bar { fill: var(--bar); } .chart .axis { stroke: var(--line); } .chart .grid { stroke: var(--grid); stroke-dasharray: 2 3; }
.chart .bar:hover { filter: brightness(1.15); }
.tip { position: fixed; z-index: 400; pointer-events: none; background: var(--ink); color: var(--bg); padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.charthead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .charthead h3 { margin-right: auto; }

/* ---------- events / admin ---------- */
.evrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.evrow .when { min-width: 150px; font-weight: 700; } .evrow .what { flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--ink2); border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ov-card h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.ov-line { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.ov-alert { background: var(--danger-bg); color: var(--danger); font-weight: 700; padding: 5px 8px; border-radius: 8px; margin: 4px 0; font-size: 13px; }
.ov-alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.ov-alert.flash { animation: flashtile 1s steps(1) infinite; }
.empty { padding: 30px; text-align: center; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) {
  .tile.alert-over, .alertbar.flash, .ov-alert.flash { animation: none; }
  .tile.alert-over { box-shadow: 0 0 0 5px var(--danger); background: var(--danger-bg); }
  .alertbar.flash { background: #b3261e; }
}
@media (max-width: 640px) { main { padding: 10px; } .tl-hours, .tl-row { grid-template-columns: 90px 1fr; } }
@media print { .topbar, .alertbar, #toasts, .btn { display: none !important; } }
.tile { min-width: 0; }

/* ---------- fonts ---------- */
.kpi .v, .paybox .big, .login h1 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .02em; }
.kpi .v { font-size: 34px; } .paybox .big { font-size: 44px; }
.dialog h2 { font-size: 26px; }
.tile .nm { letter-spacing: .02em; }
table.t th { font-family: "Maven Pro", system-ui, sans-serif; }

/* ---------- event seat types and the seat sheet ---------- */
.evbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.seatsum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.dialog.wide:has(.sheet) { max-width: min(1180px, 100%); }

/* ---------- summary chips, opening hours, seat sheet additions ---------- */
/* hovering a table-type box */
.pill.kind { font-size: 11px; } .pill.kind.k-main { background: var(--event-bg); color: var(--event); } .pill.kind.k-party { background: var(--held-bg); color: var(--held); } .pill.kind.k-corporate { background: var(--use-bg); color: var(--use); } .pill.kind.k-league { background: var(--free-bg); color: var(--free); }
.tplrow { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.pvbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface2); }
.pvsubject { font-weight: 700; margin-bottom: 8px; word-break: break-word; }
.pvtext { white-space: pre-wrap; word-break: break-word; margin: 0; font: 14px/1.45 system-ui, sans-serif; max-height: 260px; overflow: auto; }
.pvframe { width: 100%; height: 320px; border: 0; background: #fff; border-radius: 6px; }
.confbox { margin-top: 10px; }
.paylines { margin: 6px 0 4px; text-align: left; }
table.hours { max-width: 440px; }
table.hours td { padding: 4px 8px; } table.hours td.center { text-align: center; width: 70px; }
table.hours input[type=time] { min-height: 34px; }
table.hours tr.dayoff td:not(:nth-child(2)) { opacity: .5; }

/* Tiles: table name, customer, time, price so far — one size and weight, in that order */
.tile .trio { display: flex; flex-direction: column; gap: .1em; min-height: 0; }
.tile .trio > div { font-weight: 800; font-size: 1em; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--use); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; justify-content: space-between; gap: .3em; }
.tile .trio .tr-name { color: var(--ink); text-transform: none; }
.tile .t-pp { font-size: .7em; align-self: center; font-weight: 700; }
.tile.use { cursor: grab; }
/* Floor plan: type scales with the tile so it can be read from a distance */
.plan { container-type: inline-size; min-width: 1000px; }
.plan .tile { padding: .2em .35em; }
.plan .tile .nm, .plan .tile .st { font-size: 1em; }
.plan .tile .sub { font-size: .85em; }
.plan .tile.use .st { font-size: 1em; }

.checkline { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; font-weight: 700; cursor: pointer; }
.checkline input { width: auto; min-height: 0; }
.loy { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .62em; font-weight: 800; letter-spacing: .05em; vertical-align: middle; }

/* ---------- usability pass ---------- */
.stickytop { position: sticky; top: 0; z-index: 30; }
.stickytop .topbar { position: static; }
.legend i.k-free { background: var(--free-bg); border-color: var(--free); } .legend i.k-use { background: var(--use-bg); border-color: var(--use); }
.legend i.k-held { background: var(--held-bg); border-color: var(--held); } .legend i.k-event { background: var(--event-bg); border-color: var(--event); }
.legend i.k-shut { background: var(--shut-bg); border-color: var(--shut); }
.legend .hint { margin-left: auto; }
.btn.big { min-height: 52px; font-size: 16px; width: 100%; }
.morerow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.chip { min-height: 38px; padding: 6px 14px; }
.chip[aria-pressed="true"], .chip:active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn.sm { min-height: 40px; } .seg button { padding: 10px 14px; } }
@media (max-width: 640px) {
  .backdrop { align-items: flex-end; padding: 0; }
  .dialog { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: 24px; }
  .dlg-actions .btn { flex: 1; min-height: 48px; }
  .legend .hint { display: none; }
  .page-head { gap: 8px; }
}

/* ---------- design pass: running tables are the loud thing; everything else stays quiet ---------- */
:root { --tu-bg: #0f172a; --tu-ink: #ffffff; --tu-dim: rgba(255,255,255,.8); --ta-bg: #b3261e; --ta-bg2: #7a1712; --ta-ink: #ffffff; --loy-bg: #38bdf8; --loy-ink: #0f172a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tu-bg: #082f49; --tu-ink: #38bdf8; --tu-dim: #7dd3fc; --ta-bg: #391a18; --ta-bg2: #5a2420; --ta-ink: #f2887f; --loy-bg: #38bdf8; --loy-ink: #0f172a; } }
:root[data-theme="dark"] { --tu-bg: #082f49; --tu-ink: #38bdf8; --tu-dim: #7dd3fc; --ta-bg: #391a18; --ta-bg2: #5a2420; --ta-ink: #f2887f; --loy-bg: #38bdf8; --loy-ink: #0f172a; }
@keyframes flashfill { 0% { background: var(--ta-bg); } 50% { background: var(--ta-bg2); } }

.tile.use { background: var(--tu-bg); border-color: var(--tu-bg); color: var(--tu-ink); }
.tile.use .trio > div, .tile.use .trio .tr-name { color: var(--tu-ink); }
.tile.use .t-pp { color: var(--tu-dim); }
.tile.use .loy { background: var(--loy-bg); color: var(--loy-ink); }
.tile.use .ppflag { color: var(--tu-ink); }
/* the clock: scoreboard numerals */
.tile.use .trio .tr-time { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 1.7em; line-height: 1; letter-spacing: .03em; }
.tile.alert-warn { border-color: var(--held); box-shadow: 0 0 0 4px var(--held); }
.tile.alert-over { background: var(--ta-bg); border-color: var(--ta-bg); color: var(--ta-ink); animation: flashfill 1s steps(1) infinite; box-shadow: none; }
.tile.alert-over .trio > div, .tile.alert-over .trio .tr-name, .tile.alert-over .t-pp, .tile.alert-over .ppflag { color: var(--ta-ink); }
@media (prefers-reduced-motion: reduce) { .tile.alert-over { animation: none; background: var(--ta-bg); box-shadow: 0 0 0 5px var(--ta-bg2); } }
/* free tables recede */
.tile.free { background: var(--surface); }
.tile.free .st { font-weight: 600; }

/* ---------- other pages ---------- */
.datenav { display: inline-flex; gap: 6px; align-items: center; }
.datenav input[type=date] { min-width: 150px; }
.datenav .btn { min-width: 40px; }
.empty p { margin: 0 0 12px; }
.empty .btn { margin: 0 auto; }
/* timeline: banded rows, clear table names */
.tl-row:nth-child(even) .tl-cells { background-color: color-mix(in srgb, var(--surface2) 55%, transparent); }
.tl-name { font-size: 14px; }
.tl-name .hint { font-weight: 600; font-size: 12px; }
.tl-hours .hr { font-weight: 600; }
/* statistics numbers read at a glance */
.kpi { padding: 14px; } .kpi .l { margin-top: 2px; font-size: 13px; }
/* admin: opening hours in a compact two-column block */
table.hours td { padding: 2px 6px; } table.hours td input[type=time] { min-height: 32px; padding: 3px 6px; width: 118px; }
table.hours { max-width: 400px; }
table.hours input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.tabs button { padding: 11px 16px; font-size: 15px; }
@media (max-width: 640px) {
  .alertbar { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; gap: 6px; }
  .alertbar .a { white-space: nowrap; flex: 0 0 auto; }
  .page-head h2 { flex: 1 0 100%; margin-right: 0; font-size: 26px; }
  .datenav { width: 100%; } .datenav input[type=date] { flex: 1; }
  .page-head > .btn { flex: 1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
  table.hours { max-width: none; }
}
.grid > * { min-width: 0; }
@media (max-width: 640px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 10px 12px; font-size: 14px; }
  table.hours td input[type=time] { width: 100px; }
  .dialog, .card { min-width: 0; }
}
@media (max-width: 640px) { table.hours input[type=time]::-webkit-calendar-picker-indicator { display: none; } table.hours td input[type=time] { width: 96px; font-size: 14px; } }
table.t th.right, table.t td.right { text-align: right; }

/* the running clock never grows wider than its tile (rotated tables are narrow) */
.plan .tile.use .trio .tr-time { font-size: 1.3em; white-space: nowrap; overflow: hidden; }

/* ---------- menu icons ---------- */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* floor plan editor: resize grip */

/* ---------- booking emails ---------- */
.mailstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.mailstrip.err { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.mailstrip .grow { flex: 1; min-width: 180px; }
.mailrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mailtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mailtop .muted { margin-left: auto; }
pre.code { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 13px; margin: 6px 0; }

/* ---------- customers: badges, page ---------- */
.cb { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .64em; font-weight: 800; letter-spacing: .05em; line-height: 1.5; vertical-align: middle; white-space: nowrap; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.45); }
.cb.new { background: #1f8f55; }
.cb.returning { background: #0f7f86; }
.cb.regular { background: #7446b5; }
.cb.top { background: #f2b300; color: #3a2a00; }
.cb.bl { background: #c62828; }
.cb.vip { background: #111; color: #f2c230; box-shadow: 0 0 0 1px #f2c230; }
.blk .cb, .tile .cb { font-size: .7em; padding: 0 5px; margin: 0 4px 0 0; }
.tile .sub .cb { margin-left: 5px; }
.banner.bl { background: #fde4e1; color: #7f1710; border: 1px solid #e8a39b; }
.closed-why { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner.bl { background: #3b1613; color: #ffb4ab; border-color: #7a2c26; } }
:root[data-theme="dark"] .banner.bl { background: #3b1613; color: #ffb4ab; border-color: #7a2c26; }
.headtools { display: flex; flex-wrap: wrap; gap: 8px; }
.headtools .search { min-width: 240px; }
@media (max-width: 640px) { .headtools { width: 100%; } .headtools .search { flex: 1; min-width: 0; } }
.custchips { margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.custchips .chip b { margin-left: 4px; }
/* data requests */
.pvform { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; }
.pvbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pvbar .spacer { flex: 1; }
.pvrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.pvrow input { width: 22px; height: 22px; margin-top: 2px; }
.blbox { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.blbox input { width: 22px; height: 22px; accent-color: #c62828; }

/* ---------- customers: picker in the booking form ---------- */
.custpick { position: relative; }
.custpick-res { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.custpick-res:empty { display: none; }
.custpick-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 10px; min-height: 44px; cursor: pointer; }
.custpick-row:hover, .custpick-row:focus-visible { background: var(--accent-soft); border-color: var(--accent); outline: none; }
.custpick-row .cb { margin-left: 0; }
.custmatch { margin: -2px 0 10px; font-size: 13px; color: var(--ink2); }

/* ---------- dialogs with their own header (bare) ---------- */
.dialog.bare { padding: 0; }
.dialog.bare .dlg-err { margin: 10px 24px 0; }
.dlg-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--line); margin-top: 6px; }
.dlg-foot .dlg-actions { margin: 0 0 0 auto; }
.dlg-note { font-size: 13px; color: var(--ink3); }

/* ---------- customer profile (design B) ---------- */
.cp-head { background: var(--surface2); padding: 22px 24px 0; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--line); }
.cp-top { display: flex; align-items: center; gap: 16px; }
.cp-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: .04em; }
.cp-id { flex: 1; min-width: 0; }
.cp-namerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; }
.dialog h2.cp-name { margin: 0 6px 0 0; font-size: 32px; line-height: 1; overflow-wrap: anywhere; }
.cp-badges .cb { margin: 0 6px 0 0; font-size: 11px; }
.cp-badges .loy { margin-left: 0; font-size: 11px; padding: 1px 8px; }
.cp-contact { margin-top: 6px; color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cp-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cp-edit { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-edit .field { margin: 0; }
.cp-editbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cp-editbar .hint { flex: 1; min-width: 180px; }
.cp-editwrap .banner { margin: 12px 0 0; }
.cp-tabs { display: flex; gap: 22px; margin-top: 16px; }
.cp-tab { border: 0; background: none; padding: 10px 2px; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--ink3); border-bottom: 3px solid transparent; cursor: pointer; }
.cp-tab:hover { color: var(--ink); }
.cp-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cp-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cp-panel { padding: 20px 24px 8px; min-height: 340px; }
.cp-panel-in { display: flex; flex-direction: column; gap: 22px; }
.cp-h { font-size: 20px; margin: 0 0 10px; }
.cp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cp-stat { background: var(--surface); padding: 12px 14px; min-width: 0; }
.cp-stat-l { font-size: 12px; color: var(--ink3); }
.cp-stat-v { font-size: 20px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-togs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-tog { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.cp-tog:hover { border-color: var(--ink3); }
.cp-tog:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cp-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink3); box-sizing: border-box; }
.cp-tog[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.cp-tog[aria-pressed="true"] .cp-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.cp-tog.gold[aria-pressed="true"] { border-color: var(--held); background: var(--held-bg); }
.cp-tog.gold[aria-pressed="true"] .cp-dot { border-color: var(--held); background: var(--held); box-shadow: inset 0 0 0 3px var(--held-bg); }
.cp-tog.red[aria-pressed="true"] { border-color: var(--danger); background: var(--danger-bg); }
.cp-tog.red[aria-pressed="true"] .cp-dot { border-color: var(--danger); background: var(--danger); box-shadow: inset 0 0 0 3px var(--danger-bg); }
.cp-toghint { margin: 8px 0 0; }
.cp-lno { max-width: 340px; margin-top: 12px; }
.cp-cards { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cp-cards .linkbtn { align-self: flex-start; }
.cp-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; color: inherit; font: inherit; width: 100%; }
button.cp-card { cursor: pointer; } button.cp-card:hover { border-color: var(--accent); }
button.cp-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cp-date { flex: none; width: 46px; text-align: center; display: flex; flex-direction: column; }
.cp-date span { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .05em; }
.cp-date b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 30px; line-height: 1; }
.cp-when { flex: 1; min-width: 0; }
.cp-empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; }
.cp-hist td { vertical-align: middle; }
.cp-notelbl { display: block; margin-bottom: 6px; }
textarea.cp-note { min-height: 140px; }
.cp-notefoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
@media (max-width: 640px) {
  .cp-head { padding: 18px 16px 0; border-radius: 16px 16px 0 0; }
  .cp-top { flex-wrap: wrap; }
  .cp-avatar { width: 48px; height: 48px; font-size: 22px; }
  .cp-acts { width: 100%; justify-content: stretch; } .cp-acts .btn { flex: 1; }
  .cp-edit { grid-template-columns: 1fr; flex-basis: 100%; }
  .cp-panel { padding: 16px; }
  .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-togs { grid-template-columns: 1fr; }
  .dlg-foot { padding: 12px 16px; } .dlg-foot .dlg-actions { margin: 0; width: 100%; }
}

/* ---------- booking pop-ups (design 3): summary rail + form ---------- */
.dialog.xwide { max-width: 1100px; }
.bk-split { display: flex; align-items: stretch; }
.bk-rail { width: 340px; flex: none; box-sizing: border-box; padding: 22px; background: var(--surface2); border-right: 1px solid var(--line); border-radius: 14px 0 0 0; display: flex; flex-direction: column; gap: 18px; }
.bk-main { flex: 1; min-width: 0; padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 20px; }
.bk-title { font-size: 28px; margin: 0; }
.bk-sec { display: flex; flex-direction: column; gap: 8px; }
.bk-sec .field { margin-bottom: 0; }
.bk-sec .row { margin-bottom: 0; }
.bk-h { font-size: 21px; margin: 0; }
.bk-sub { margin: -4px 0 0; }
.bk-cap { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); }
.bk-rail .bk-sec { border-top: 1px solid var(--line); padding-top: 16px; gap: 10px; }
.bk-when { display: flex; align-items: center; gap: 14px; }
.bk-date { flex: none; width: 64px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 7px 0 6px; display: flex; flex-direction: column; line-height: 1.1; }
.bk-date span { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
.bk-date b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 34px; line-height: 1; }
.bk-date small { font-size: 11px; font-weight: 700; color: var(--ink3); }
.bk-time { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; letter-spacing: .03em; line-height: 1; }
.bk-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-pills .cb { margin-left: 0; font-size: 11px; }
.bk-acts { display: flex; flex-direction: column; gap: 8px; }
.bk-acts2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-acts .btn { justify-content: center; min-height: 44px; }
.bk-wide { width: 100%; }
.bk-note { margin: 0; font-size: 13px; color: var(--ink2); }
.bk-cust { display: flex; flex-direction: column; gap: 10px; }
.bk-cust-top { display: flex; align-items: center; gap: 12px; }
.bk-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; letter-spacing: .04em; }
.bk-cust-name { font-size: 16px; overflow-wrap: anywhere; }
.bk-cust-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.bk-cust-badges .cb, .bk-cust-badges .loy { margin: 0; font-size: 10px; }
.bk-cust-badges .loy { padding: 1px 7px; }
.bk-cust-contact { font-size: 14px; color: var(--ink2); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.bk-cust-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-rail .custmatch { margin: 0; }
.bk-rail .banner { margin: 0; font-size: 13px; }
.bk-detail-link { align-self: flex-start; padding: 2px 0; text-align: left; }
.bk-details { display: flex; flex-direction: column; gap: 8px; }
.bk-details[hidden], .bk-detail-link[hidden] { display: none; }
.bk-mail .field { margin: 0; } .bk-mail .field > .lbl { display: none; }
.bk-ok { font-size: 13px; color: var(--free); font-weight: 600; }
.bk-log { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.bk-log .kv { margin: 0; }
.bk-head { display: flex; align-items: center; gap: 14px; background: var(--surface2); padding: 20px 22px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--line); }
.bk-head-id { min-width: 0; }
.dialog h2.bk-head-name { margin: 2px 0 4px; font-size: 28px; line-height: 1; overflow-wrap: anywhere; }
.bk-head-name .cb { font-size: 11px; vertical-align: middle; }
.bk-body { padding: 18px 22px 4px; }
@media (max-width: 820px) {
  .bk-split { flex-direction: column; }
  .bk-rail { width: auto; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 18px 16px; }
  .bk-main { padding: 18px 16px 8px; }
  .bk-head { border-radius: 16px 16px 0 0; padding: 18px 16px; } .bk-body { padding: 16px 16px 4px; }
}
.bk-mail:has(.confbox:empty) { display: none; }
.bk-rail .pill:not(.held):not(.use):not(.bad) { background: var(--surface); border: 1px solid var(--line); }

/* ---------- customer list (design 1): one row per customer, the whole row opens the profile ---------- */
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 4px; }
.cl-title h1 { margin: 0; }
.cl-title .small { margin-top: 4px; }
.cl { padding: 0; overflow: hidden; }
.cl-row { display: grid; grid-template-columns: minmax(0, 3fr) 90px 120px 130px 100px minmax(0, 1.4fr) 20px; gap: 12px; align-items: center; padding: 10px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; width: 100%; }
button.cl-row { cursor: pointer; min-height: 60px; }
button.cl-row:hover { background: var(--surface2); }
button.cl-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cl-row.isbl { background: var(--danger-bg); }
.cl-row:last-of-type { border-bottom: 0; }
.cl-th { background: var(--surface2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); min-height: 0; padding-top: 11px; padding-bottom: 11px; }
.cl-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cl-av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 17px; letter-spacing: .04em; }
.cl-av.bl { background: var(--danger); color: #fff; }
.cl-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-namerow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.cl-namerow .cb { margin: 0; font-size: 10px; }
.cb.loy { background: var(--accent); color: var(--accent-ink); }
.cl-contact, .cl-note { font-size: 13px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ns { display: block; font-size: 12px; color: var(--danger); }
.cl-go { font-size: 20px; color: var(--ink3); text-align: right; }
.cl-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.cl-pager { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cl-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cl-sort:hover, .cl-sort.on { color: var(--ink); }
.cl-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cl-arrow { font-size: 10px; opacity: .55; } .cl-sort.on .cl-arrow { opacity: 1; }
.cl-th .right .cl-sort { justify-content: flex-end; width: 100%; }
@media (max-width: 900px) {
  .cl-row { grid-template-columns: minmax(0, 1fr) 70px 80px 16px; }
  .cl-opt { display: none; }
}
.cl-head .headtools { align-items: center; }
.cl-head .headtools .search { width: 300px; }
.cl-head .headtools select { width: auto; }
.cl-head { margin-bottom: 12px; }
@media (max-width: 640px) { .cl-head .headtools .search { flex: 1 1 100%; width: auto; } .cl-head .headtools select { flex: 1; } .cl-av { display: none; } .cl-row { padding-left: 14px; padding-right: 12px; } }
.cb.whale { background: #0b2f4a; color: #7fd3ff; box-shadow: 0 0 0 1px #2f8fce; }

/* ---------- Tables page: head, floor plan with side panel (plan view), board (cards view) ---------- */
.tb-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tb-head h2 { margin-right: 4px; }
.tb-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.tb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink2); }
.tb-pill b { color: var(--ink); }
.tb-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tb-dot.k-use { background: var(--use); } .tb-dot.k-free { background: var(--free); } .tb-dot.k-held { background: var(--held); } .tb-dot.k-event { background: var(--event); } .tb-dot.k-closed { background: var(--shut); }
.tb-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tb-hours { white-space: nowrap; }
.tb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tb-plans { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tb-floor { margin: 0; padding: 0; overflow: hidden; border-radius: 14px; }
/* Floor plan header matches the Cards view's floor header (.tb-fhead): same band, padding, line and name size */
.tb-floor .floor-head { gap: 8px 12px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.tb-floor .floor-head h3 { margin: 0; font-size: 24px; }
.tb-floor > .floor-head ~ * { margin: 14px; }
.tb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tb-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 92px); overflow-y: auto; }
.tb-rail > * { flex-shrink: 0; }   /* the rail scrolls; its cards keep their full height (a selected table was squashed to a sliver on short screens) */
.tb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tb-cap { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tb-h { font-size: 21px; margin: 0; }
.tb-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.tb-attn { border-color: var(--held); background: var(--held-bg); } .tb-attn .tb-cap { color: var(--held); }
.tb-attn.over { border-color: var(--danger); background: var(--danger-bg); } .tb-attn.over .tb-cap { color: var(--danger); }
.tb-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-acts .btn { flex: 1 1 auto; }
.tb-none { border-style: dashed; color: var(--ink2); }
.tb-sel { padding: 0; overflow: auto; gap: 0; }   /* auto, not hidden: on small screens the buttons at the bottom could be cut off */
.tb-sel-head { position: relative; background: var(--surface2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tb-sel-name { font-size: 28px; margin: 4px 0 2px; }
.tb-x { position: absolute; top: 10px; right: 10px; font-size: 16px; min-width: 32px; min-height: 32px; }
.tb-sel .tb-detail { padding: 14px 16px; }
.st-use { color: var(--use); } .st-free { color: var(--free); } .st-held { color: var(--held); } .st-event { color: var(--event); } .st-shut, .st-out, .st-floorclosed { color: var(--shut); }
.tb-detail { display: flex; flex-direction: column; gap: 10px; }
.tb-detail p { margin: 0; }
.tb-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.tb-who .cb, .tb-who .loy { margin: 0; font-size: 10px; }
.tb-live { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.tb-clock { font-family: "Bebas Neue", Impact, sans-serif; font-size: 42px; line-height: 1; letter-spacing: .03em; color: var(--use); }
.tb-cost b { font-size: 20px; }
.tb-pp { display: flex; flex-direction: column; gap: 4px; }
.tb-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tb-bar b { display: block; height: 100%; width: 0; background: var(--use); }
.tb-detail .morerow, .tb-play .morerow { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.warn { background: var(--danger); border-color: var(--danger); color: #fff; }
.tb-leg { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; padding: 8px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: grab; touch-action: none; }
.tb-leg.held { border-color: var(--held); background: var(--held-bg); }
.tb-leg-who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-leg .cb { margin: 0; font-size: 10px; }
.tile.sel { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 4; }
.plan .tile .trio > div, .plan .tile .nm, .plan .tile .st, .plan .tile .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* board */
.tb-boardwrap { display: flex; flex-direction: column; gap: 14px; }
.tb-floors { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.tb-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--held); background: var(--held-bg); }
.tb-banner .tb-cap { color: var(--held); } .tb-banner.over { border-color: var(--danger); background: var(--danger-bg); } .tb-banner.over .tb-cap { color: var(--danger); }
.tb-banner-who { flex: 1; min-width: 200px; }
.tb-board { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tb-colhead { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0; }
.tb-play, .tb-due { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tb-play { border-color: var(--use); cursor: grab; touch-action: none; }
.tb-play.alert-warn { border-color: var(--held); box-shadow: 0 0 0 3px var(--held); }
.tb-play.alert-over { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger); }
.tb-play.dragging-src { opacity: .4; }
.tb-due.held { border-color: var(--held); background: var(--held-bg); }
.tb-due[class] { touch-action: none; }
.tb-due-top { display: flex; align-items: baseline; gap: 10px; }
.tb-due-time { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 1; }
.tb-due.held .tb-due-time { color: var(--held); }
.tb-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink3); text-align: center; }
@media (max-width: 1100px) { .tb-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tb-board > :first-child { grid-column: 1 / -1; } }
@media (max-width: 899px) { .tb-split { grid-template-columns: minmax(0, 1fr); } .tb-rail { position: static; max-height: none; } .tb-rail .tb-none { display: none; } }
@media (max-width: 700px) { .tb-board { grid-template-columns: minmax(0, 1fr); } .tb-pills { flex-basis: 100%; order: 3; } }
/* Cards view: floor sections with table cards in rows and columns, "Coming up today" alongside */
.tb-cards { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tb-floorsecs { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-fsec { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tb-fhead { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.tb-fname { margin: 0; font-size: 24px; }
.tb-fcounts { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--ink2); }
.tb-fcounts span { display: inline-flex; align-items: center; gap: 5px; }
.tb-fcounts .tb-dot { width: 9px; height: 9px; }
.tb-fhead > .btn { margin-left: auto; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 14px; }
.tb-tile { border: 1px solid var(--line); border-top: 5px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; background: var(--surface); min-width: 0; }
.tb-tile.k-use { border-top-color: var(--use); background: color-mix(in srgb, var(--use-bg) 45%, var(--surface)); cursor: grab; touch-action: none; }
.tb-tile.k-free { border-top-color: var(--free); }
.tb-tile.k-held { border-top-color: var(--held); background: color-mix(in srgb, var(--held-bg) 45%, var(--surface)); }
.tb-tile.k-closed { border-top-color: var(--shut); opacity: .75; }
.tb-tile.alert-warn { box-shadow: 0 0 0 3px var(--held); } .tb-tile.alert-over { box-shadow: 0 0 0 3px var(--danger); }
.tb-tile.droptarget { outline: 3px solid var(--accent); outline-offset: 2px; }
.tb-tile.dragging-src { opacity: .4; }
.tb-tile-top { display: flex; align-items: baseline; gap: 6px; }
.tb-tile-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 18px; font-weight: 800; color: inherit; cursor: pointer; }
.tb-tile-name:hover { text-decoration: underline; }
.tb-tile-top .ppflag { color: var(--danger); font-weight: 800; }
.tb-tile-st { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.k-use .tb-tile-st { color: var(--use); } .k-free .tb-tile-st { color: var(--free); } .k-held .tb-tile-st { color: var(--held); } .k-closed .tb-tile-st { color: var(--shut); }
.tb-tile-live { display: flex; align-items: baseline; gap: 10px; }
.tb-tile-live .tb-clock { font-size: 38px; }
.tb-tile .pp-chip { align-self: flex-start; }
.tb-tile-acts { margin-top: auto; padding-top: 4px; }
.tb-uprail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 1100px) { .tb-cards { grid-template-columns: minmax(0, 1fr); } .tb-uprail { position: static; max-height: none; } }
@media (max-width: 520px) { .tb-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; } .tb-tile { min-height: 0; } .tb-fhead > .btn { margin-left: 0; } }
/* plan tiles show name, customer and clock only (badges are in the side panel); next to the panel the plan may be narrower */
.plan .tile .sub .cb { display: none; }
.tb-split .plan { min-width: 620px; }
.tb-leg { flex-wrap: wrap; row-gap: 4px; }
.tb-leg-who { flex: 1 1 60%; }

/* ---------- Start timer: Quick start ---------- */
.qs-head { background: var(--surface2); padding: 18px 22px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--line); }
.dialog h2.qs-title { font-size: 30px; margin: 2px 0; }
.qs-body { padding: 18px 22px 6px; display: flex; flex-direction: column; gap: 16px; }
.qs-sec { display: flex; flex-direction: column; gap: 10px; }
.qs-who { display: flex; flex-direction: column; gap: 6px; }
.qs-search { min-height: 52px; font-size: 17px; }
.qs-card { padding: 12px 14px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; }
.qs-card .bk-cust-top > div:not(.bk-av) { flex: 1; min-width: 0; }
.qs-named { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.qs-named b { flex: 1; }
.qs-asname { color: var(--ink2); }
.qs-loy { width: 100%; }
.qs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qs-quick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; padding: 6px; }
.qs-quick b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .03em; line-height: 1; }
.qs-quick span { font-size: 12px; color: var(--ink3); }
.qs-quick:hover { border-color: var(--accent); }
.qs-quick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.qs-quick.main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qs-quick.main span { color: var(--accent-ink); opacity: .8; }
.qs-other { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.qs-other[hidden] { display: none; }
@media (max-width: 640px) { .qs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qs-head { border-radius: 16px 16px 0 0; padding: 16px; } .qs-body { padding: 16px 16px 6px; } }

/* ---------- New event / event window: design "Event 2 · Summary rail + form" ---------- */
.ev-title { font-size: 30px; margin: 4px 0 0; overflow-wrap: anywhere; }
.ev-kinds { display: flex; flex-direction: column; gap: 8px; }
.ev-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 56px; }
.ev-kind b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .03em; line-height: 1; }
.ev-kind span { font-size: 12px; color: var(--ink3); }
.ev-kind:hover { border-color: var(--event); }
.ev-kind[aria-pressed="true"] { border-color: var(--event); background: var(--event-bg); }
.ev-kind[aria-pressed="true"] b { color: var(--event); }
.ev-kind:focus-visible, .ev-floor:focus-visible, .ev-pk:focus-visible, .ev-box:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ev-line { font-size: 14px; overflow-wrap: anywhere; }
.ev-floors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ev-floor { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 72px; }
.ev-floor > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-floor b { font-size: 16px; }
.ev-floor[aria-pressed="true"] { border-color: var(--event); background: var(--event-bg); }
.ev-floor.some { border-style: dashed; border-color: var(--event); }
.ev-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ink3); box-sizing: border-box; background: none; cursor: pointer; padding: 0; position: relative; }
.ev-floor[aria-pressed="true"] .ev-box, .ev-seat.on .ev-box { background: var(--event); border-color: var(--event); }
.ev-floor[aria-pressed="true"] .ev-box::after, .ev-seat.on .ev-box::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--surface); font-size: 13px; font-weight: 800; }
.ev-floor.some .ev-box { background: linear-gradient(var(--event), var(--event)) center / 10px 2px no-repeat; border-color: var(--event); }
.ev-seats { display: flex; flex-direction: column; gap: 8px; }
.ev-acts .ea-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ea-row { display: grid; grid-template-columns: minmax(90px, 1fr) 118px 84px 134px 212px; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ea-row:first-child { border-top: 0; }
.ea-head { background: color-mix(in srgb, var(--ink2) 10%, transparent); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); padding-top: 8px; padding-bottom: 8px; }
.ea-name b { display: block; } .ea-name span { font-size: .8rem; color: var(--ink2); }
.ea-row .seg button { padding: 6px 8px; font-size: .8rem; }
.ea-dep .seg button { padding: 6px 7px; font-size: .76rem; }
.ea-step { display: inline-flex; align-items: center; gap: 4px; } .ea-step b { min-width: 22px; text-align: center; } .ea-step small { white-space: nowrap; color: var(--ink2); font-size: .75rem; }
.ea-dep { display: flex; align-items: center; gap: 8px; }
.ea-money { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; height: 34px; width: 66px; background: var(--surface); color: var(--ink2); }
.ea-money input.ea-amt { border: 0; padding: 0; min-height: 0; height: 30px; width: 100%; background: transparent; box-shadow: none; -moz-appearance: textfield; }
.ea-money input.ea-amt::-webkit-outer-spin-button, .ea-money input.ea-amt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ea-money:focus-within { border-color: var(--link, var(--accent)); }
.ea-sw { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; position: relative; }
.ea-sw input { position: absolute; opacity: 0; width: 36px; height: 20px; margin: 0; cursor: pointer; }
.ea-sw i { width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; display: inline-block; flex: none; }
.ea-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.ea-sw input:checked + i { background: #065f46; } .ea-sw input:checked + i::after { left: 18px; }
.ea-sw input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--chalk, #38bdf8) 70%, transparent); outline-offset: 1px; }
.ea-sw input:disabled + i, .ea-sw input:disabled ~ span { opacity: .45; cursor: not-allowed; }
.ea-closed { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(148,163,184,.12) 8px 16px); }
.ea-closed .ea-off { grid-column: 3 / -1; color: var(--ink2); font-size: .85rem; }
.ea-closed .seg button[aria-pressed="true"] { background: #fee2e2; color: #991b1b; }
.ea-all { margin: 0 0 10px; } .ea-note { margin: -4px 0 10px; } .ea-sum { margin-top: 8px; }
@media (max-width: 760px) {
  .ea-head { display: none; }
  .ea-row { grid-template-columns: 1fr auto; }
  .ea-row > :nth-child(3), .ea-row > :nth-child(4) { justify-self: start; }
  .ea-dep { grid-column: 1 / -1; }
  .ea-closed .ea-off { grid-column: 1 / -1; }
}
.ev-seat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ev-seat.on { border-color: var(--event); }
.ev-seats .ev-seat.on { background: var(--event-bg); }
.ev-seat-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-step { flex: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.ev-step:disabled { opacity: .4; cursor: default; }
.ev-num { width: 64px; text-align: center; min-height: 38px; }
.ev-count { width: 34px; text-align: center; font-size: 16px; }
.ev-seat-total { margin: 0; }
.ev-pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-pk { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.ev-pk b { font-size: 14px; } .ev-pk span { font-size: 12px; color: var(--ink3); }
.ev-pk[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ev-kitchen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-kitchen .ev-seat.on { border-color: var(--line); }
.chip.ev-add { border-style: dashed; }
.bk-main section[hidden] { display: none; }
@media (max-width: 760px) { .ev-pkgs, .ev-kitchen { grid-template-columns: 1fr; } }

/* ---------- seat sheet and seating template: design "Seat sheet 2 · Map + side panel" ---------- */
.ss-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 24px 16px; background: var(--surface2); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.ss-head > div:first-child { flex: 1; min-width: 220px; }
.ss-name { font-size: 30px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.ss-totals { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-split { display: flex; align-items: stretch; }
.ss-left { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.ss-left .bk-cap { margin-top: 8px; } .ss-left .bk-cap:first-child { margin-top: 0; }
.ss-left .hint { margin: 0; }
.ss-panel { width: 380px; flex: none; box-sizing: border-box; padding: 20px 22px; background: var(--surface2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ss-title { font-size: 28px; margin: 8px 0 2px; }
.pill.ss-rowpill, .pill.ss-p-row { background: var(--event-bg); color: var(--event); }
.pill.ss-p-table { background: var(--free-bg); color: var(--free); }
.pill.ss-p-room { background: var(--held-bg); color: var(--held); }
.ss-rowpill { flex: none; min-width: 52px; justify-content: center; text-align: center; }
.ss-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; width: 100%; box-sizing: border-box; }
button.ss-row { cursor: pointer; } button.ss-row:hover { border-color: var(--event); }
.ss-row.sel { border-color: var(--event); background: var(--event-bg); }
.ss-row-name { width: 120px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.ss-dots { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.ss-dots i { width: 18px; height: 18px; border-radius: 6px 6px 3px 3px; border: 2px solid var(--event); opacity: .45; box-sizing: border-box; }
.ss-dots i.on { background: var(--event); opacity: 1; }
.ss-dots i.gap { margin-left: 10px; }   /* where one sofa or block of a joined row ends and the next begins */
.ss-meter { flex: 1; }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--event); }
.meter.k-table i { background: var(--free); } .meter.k-room i { background: var(--held); }
.ss-meter-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.ss-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ss-tiles.rooms { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ss-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--free); background: var(--free-bg); color: var(--ink); font: inherit; text-align: left; min-height: 78px; box-sizing: border-box; }
button.ss-tile { cursor: pointer; }
.ss-tile.room { border-color: var(--held); background: var(--held-bg); }
.ss-tile.taken { background: var(--surface); }
.ss-tile.taken b { color: var(--ink2); }
.ss-tile.closed { background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface2) 8px 16px); border-color: var(--line); border-style: dashed; }
.ss-tile.closed b { color: var(--ink2); }
.ss-tile.sel { outline: 3px solid var(--accent); outline-offset: 2px; }
.ss-row:focus-visible, .ss-tile:focus-visible, .ss-group-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ss-groups { display: flex; flex-direction: column; gap: 8px; }
.ss-group { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ss-group.editing { border-color: var(--accent); }
.ss-group-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.ss-group-main:hover { background: var(--surface2); }
.ss-group .dep { font-size: 11px; font-weight: 800; color: var(--free); white-space: nowrap; }
.x { background: none; border: 0; color: var(--ink3); cursor: pointer; font-size: 18px; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.x:hover { background: var(--danger-bg); color: var(--danger); }
.ss-form { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.ss-form .field, .ss-form .row { margin-bottom: 0; }
.ss-form .field[hidden] { display: none; }
.ss-guests { display: flex; align-items: center; gap: 10px; }
.ss-guests > span { flex: 1; display: flex; flex-direction: column; }
.ss-err { color: var(--danger); font-size: 13px; font-weight: 600; } .ss-err:empty { display: none; }
@media (max-width: 860px) { .ss-split { flex-direction: column; } .ss-panel { width: auto; border-left: 0; border-top: 1px solid var(--line); } .ss-row-name { width: 96px; } }

/* ---------- walk-outs ---------- */
.cb.wo { background: #7a1712; color: #fff; box-shadow: 0 0 0 1px #e0574d; }
.wo-owed { color: var(--danger); font-weight: 700; }
tr.wo-row td { background: var(--danger-bg); }
.kpi.kpi-bad { border-color: var(--danger); background: var(--danger-bg); }
.kpi.kpi-bad .v { color: var(--danger); }
.cp-walkout { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--danger); background: var(--danger-bg); color: var(--danger); margin-top: 12px; }
.cp-walkout span { color: var(--ink2); font-size: 13px; }
.wo-sum { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--danger); background: var(--danger-bg); margin-bottom: 14px; }
.wo-amt { font-family: "Bebas Neue", Impact, sans-serif; font-size: 40px; line-height: 1; color: var(--danger); }
.wo-new { margin-top: 10px; }

/* ---------- logo ---------- */
.brand.has-logo { display: flex; align-items: center; }
.brand-logo { display: block; height: 36px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 640px) { .brand-logo { height: 28px; max-width: 150px; } }
.lg-previews { margin: 12px 0; max-width: 640px; }
.lg-sample { display: flex; flex-direction: column; gap: 6px; }
/* the logo page's preview of the menu on the left, full size and made smaller (version 136, GitHub issue 41) */
.lg-sides { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lg-side { width: 248px; box-sizing: border-box; padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.lg-side.mini { width: 76px; padding: 20px 12px; }
.lg-brand { display: flex; align-items: center; justify-content: center; margin: 2px 6px 14px; min-height: 36px; font-weight: 700; font-size: 20px; }
.lg-side.mini .lg-brand { margin: 2px 0 14px; }
.lg-brand .lg-logo { display: block; width: 100%; height: auto; max-height: 96px; object-fit: contain; }
.lg-side.mini .lg-brand .lg-logo { width: auto; height: 36px; max-width: 48px; max-height: 36px; }
.lg-brand .login-logo img { height: 34px; width: auto; }
.lg-brand .lg-mini-mark { display: block; width: 36px; height: 36px; }
.lg-name { overflow-wrap: anywhere; }
.lg-venue { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; }
.lg-venue b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-side.mini .lg-venue { justify-content: center; padding: 8px 0; }
.lg-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 11px; color: var(--ink2); font-size: 14px; }
.lg-item.on { background: var(--pill); color: var(--pill-ink); }
.lg-side.mini .lg-item { justify-content: center; padding: 0; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lg-actions input[type=file] { max-width: 100%; }

/* ---------- prepaid tables: teal hourglass, a teal edge, and a countdown pill under the time played ---------- */
:root { --pp: #0b7f78; --pp-bg: #d9f3f0; --pp-edge: #19c2b2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pp: #2dd4bf; --pp-bg: #0d2b29; --pp-edge: #2dd4bf; } }
:root[data-theme="dark"] { --pp: #2dd4bf; --pp-bg: #0d2b29; --pp-edge: #2dd4bf; }
.pp-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; background: var(--pp-bg); color: var(--pp); border: 1px solid var(--pp); white-space: nowrap; }
/* the countdown: a solid pill, readable on a blue playing tile, a card or the side panel */
.t-cd:empty { display: none; }
.tile .trio .tr-cd, .tb-cd { align-self: flex-start; display: inline-flex; padding: .08em .5em; border-radius: 999px; background: var(--pp); color: var(--surface); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .trio .tr-cd { font-size: .72em; line-height: 1.25; justify-content: flex-start; margin-top: .1em; }
.tile.use .trio .tr-cd { color: var(--surface); }
.tile .trio .tr-cd.cd-warn, .tb-cd.cd-warn { background: var(--held); color: var(--surface); }
.tile .trio .tr-cd.cd-over, .tb-cd.cd-over, .tile.alert-over .trio .tr-cd { background: var(--danger); color: var(--surface); }
.tile.alert-over .trio .tr-cd { background: var(--ta-ink); color: var(--ta-bg); }
.tb-cd { font-size: 15px; letter-spacing: .02em; padding: 2px 10px; }
/* a teal edge marks a prepaid table (the amber / red alert outlines take over when time is nearly or fully up).
   The same width all round: a thicker bar down the left looked like a glitch and pushed against the name (GitHub issue 5). */
.tile.pp:not(.alert-warn):not(.alert-over) { border-color: var(--pp-edge); }
.tb-play.pp:not(.alert-warn):not(.alert-over) { border-color: var(--pp-edge); }
.tile.pp .pp-ico { margin-left: .3em; font-size: .9em; }
.plan .tile.use.pp .trio .tr-time { font-size: min(1.4em, max(var(--clk, 1.4em), 9px)); }
.tb-clockcol { display: flex; flex-direction: column; gap: 4px; }
.tb-pp .t-bar { background: var(--pp); }
.tb-who .pp-chip { margin-left: 2px; }

/* ---------- No table yet (bookings waiting for a table) ---------- */
.tl { --tl-name: 120px; }
@media (max-width: 640px) { .tl { --tl-name: 90px; } }
.tl.lb { border: 2px dashed var(--held); background: repeating-linear-gradient(135deg, var(--held-bg) 0 12px, color-mix(in srgb, var(--held-bg) 55%, var(--surface)) 12px 24px); }
.tl.lb .tl-hours { background: color-mix(in srgb, var(--held-bg) 80%, var(--surface)); }
.tl.lb .tl-hours .tl-name, .tl.lb .tl-row .tl-name { background: color-mix(in srgb, var(--held-bg) 70%, var(--surface)); color: var(--held); }
.tl.lb .tl-cells { background-color: transparent !important; }
.tl.lb.row-drop { outline: 3px solid var(--held); outline-offset: 2px; }
.lb-row .tl-cells { height: 46px; }
.lb-row .tl-name .lb-bump { color: var(--danger); font-weight: 800; text-transform: uppercase; font-size: 11px; }
.lb-row .tl-name .lb-none { color: var(--danger); font-weight: 800; }
.lb-empty { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.blk.limbo { background: var(--held-bg); color: var(--held); border: 2px dashed var(--held); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.blk.limbo.bump { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.blk.limbo.sel, .blk.slot:hover { box-shadow: 0 0 0 3px var(--accent); }
.blk.slot { background: transparent; border: 2px dashed var(--ink2); color: var(--ink); cursor: pointer; text-align: center; z-index: 5; }
.blk.slot:hover { background: var(--accent-soft); border-color: var(--accent); }
.lb-say { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--held); background: var(--held-bg); color: var(--ink); }
.lb-say > span { flex: 1 1 260px; }
.nt-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; border: 1.5px dashed var(--held); color: var(--held); background: var(--held-bg); margin-right: 6px; vertical-align: 1px; white-space: nowrap; }
.tb-due.limbo { border: 2px dashed var(--held); }
.tb-leg.limbo { border: 2px dashed var(--held); background: var(--held-bg); }
.tb-leg.limbo .nt-tag { margin: 0 0 0 auto; }
.bk-later { width: 100%; margin-bottom: 10px; min-height: 44px; }
.bk-later .hint { font-weight: 600; }
.picker.bk-dim { opacity: .45; }
.bk-limbo { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 2px dashed var(--held); background: var(--held-bg); color: var(--ink); font-size: 13px; }
.bk-limbo-note { color: var(--held); font-weight: 700; }
.ci-pick { margin-bottom: 14px; }
.ci-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ci-table { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.ci-table[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.qs-bump { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: 13px; }
.toast.warn { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--held); }
.lb-lab { position: absolute; top: 50%; transform: translateY(-50%); margin: 0 8px; font-size: 12px; color: var(--ink2); white-space: nowrap; pointer-events: none; }
.lb-lab b { color: var(--held); }
.blk.slot { font-size: 11px; padding: 2px 4px; text-overflow: clip; }
.qs-bump { margin: 12px 22px 0; }

/* ---------- dragging: silhouette and landing outline ---------- */
.drag-sil { position: fixed !important; z-index: 450; pointer-events: none; margin: 0 !important; opacity: .8; box-shadow: 0 10px 28px rgba(0,0,0,.35); outline: 2px solid var(--accent); outline-offset: 1px; cursor: grabbing; }
.drag-sil.blk { bottom: auto; right: auto; }
.blk.landing { z-index: 7; pointer-events: none; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--ink); cursor: grabbing; }
.blk.landing.bad { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.dragging-src { opacity: .35; }

/* ---------- table wanted (UK / US…) ---------- */
.want-chip { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 1px 6px; border-radius: 5px; border: 1.5px solid var(--use); color: var(--use); background: var(--use-bg); margin: 0 4px; vertical-align: 1px; white-space: nowrap; }
.want-chip.off { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.blk .want-chip { font-size: .7em; padding: 0 5px; margin: 0 4px 0 0; }
.bk-want { margin: 4px 0 12px; }
.bk-wantwarn { margin-top: 8px; }
.blk.slot.other { opacity: .5; border-style: dotted; }
.blk.slot.other:hover { opacity: 1; }
.ghost.bad { background: var(--danger); color: #fff; }
.drag-sil.blk { opacity: .7; }
body.is-dragging, body.is-dragging * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }

/* ---------- waitlist ---------- */
.wl-form .row { display: flex; gap: 10px; flex-wrap: wrap; } .wl-form .row > * { flex: 1 1 140px; }
/* waitlist parties on the timeline (under No table yet) */
.blk.wait { background: var(--surface); color: var(--accent); border: 2px dotted var(--accent); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.blk.wait.sel { box-shadow: 0 0 0 3px var(--accent); }
.wl-tag { font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 0 5px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.wl-win { position: absolute; top: 8px; bottom: 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); pointer-events: none; }
.tl.lb .wl-row-tl .tl-name { color: var(--accent); }
.wl-lab b { color: var(--accent); }
.lb-say.wl-say { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Cancelled section (bottom of the Bookings timeline) ---------- */
.tl.cx { border: 1px dashed var(--danger); background: color-mix(in srgb, var(--danger-bg) 35%, var(--surface)); }
.tl.cx .tl-hours, .tl.cx .tl-row .tl-name { background: color-mix(in srgb, var(--danger-bg) 55%, var(--surface)); }
.tl.cx .tl-cells { background-color: transparent !important; }
.tl.cx .tl-name > span:first-child { color: var(--danger); font-size: 13px; }
.tl.cx .blk.cancelled { cursor: pointer; }

/* ---------- timeline click menu: booking or walk-in ---------- */
.tl-menu { position: fixed; z-index: 400; min-width: 240px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.tl-menu-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: 4px 10px 6px; }
.tl-menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tl-menu-item b { font-size: 14px; }
.tl-menu-item:hover:not(:disabled), .tl-menu-item:focus-visible { background: var(--accent-soft); outline: none; }
.tl-menu-item:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- quick "Add to the waitlist" window ---------- */
.wq { display: flex; flex-direction: column; gap: 18px; min-width: min(460px, 82vw); }
.wq-field { display: flex; flex-direction: column; gap: 8px; }
.wq-lbl { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.wq-name { font-size: 18px; padding: 12px 14px; }
.wq-match { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 0; }
.wq-cust { border: 1px solid var(--line); background: var(--surface2); color: var(--ink); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.wq-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.wq-kind { padding: 12px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.wq-kind[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.wq-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 12px; width: max-content; overflow: hidden; }
.wq-step { width: 52px; height: 48px; border: 0; background: var(--surface2); color: var(--ink); font-size: 24px; cursor: pointer; }
.wq-step:disabled { opacity: .35; cursor: default; }
.wq-count { min-width: 64px; text-align: center; font-size: 22px; }
.wq-sum { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface2); font-size: 13px; }
.wq-free { font-weight: 700; color: var(--danger); } .wq-free.ok { color: var(--free); }
.wq-more { align-self: flex-start; font-size: 13px; }
.blk.live, .blk.arrived { cursor: grab; }

/* A floor closed for the day: one bar instead of its tables */
.fl-bar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 16px; min-height: 56px; border: 1px dashed var(--line); border-left: 5px solid var(--shut); border-radius: 12px; background: var(--surface2); }
.fl-bar-ico { color: var(--shut); font-size: 14px; }
.fl-bar-name { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.fl-bar-warn { font-size: 13px; font-weight: 700; color: var(--danger); background: var(--danger-bg); border-radius: 999px; padding: 3px 10px; }
.fl-bar-gap { flex: 1; }
.fl-bar { margin: 12px 0; }
.tb-floorsecs .fl-bar, .tb-plans .fl-bar { margin: 0; }
.fl-bar-tog { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font: inherit; color: var(--shut); }


/* ---------- Floor plans (floorplan.js): pale table colours, pockets, labels, immovable objects, sofas, stadium seating ---------- */
.felt-mint { --felt: #ecf8f1; } .felt-sky { --felt: #eef5fd; } .felt-blush { --felt: #fdf0f2; } .felt-lemon { --felt: #fdf9e4; }
.felt-lilac { --felt: #f5f1fc; } .felt-peach { --felt: #fef2e9; } .felt-sage { --felt: #f1f5ec; } .felt-cloud { --felt: #f6f7f9; }
/* pockets: the box covers the table and its rail and hides anything past the edge (quarter circles in the corners, half circles on the sides) */
.pkbox { position: absolute; inset: -2px; overflow: hidden; border-radius: 8px; pointer-events: none; z-index: 1; }
.pk { position: absolute; width: clamp(10px, 1.35cqw, 18px); height: clamp(10px, 1.35cqw, 18px); border-radius: 50%; background: #8f969e; transform: translate(-50%, -50%); }
.pk.c { width: clamp(16px, 2.1cqw, 26px); height: clamp(16px, 2.1cqw, 26px); }
.tile.pooltbl { overflow: visible; padding: clamp(5px, 1.05cqw, 12px) clamp(10px, 1.75cqw, 18px); }   /* keeps the name and clock clear of the pockets */
.tile.pooltbl > :not(.pkbox) { position: relative; z-index: 2; max-width: 100%; overflow: hidden; }
.tile.free.pooltbl[class*="felt-"] { background: var(--felt); color: #1d232b; }
.tile.free.pooltbl[class*="felt-"] .st { color: #17663a; } .tile.free.pooltbl[class*="felt-"] .sub { color: #3f4954; }
/* activity looks (fpLook in floorplan.js): drawn in the table's own ink, faintly, under its name. Pockets are above (.pkbox). */
.lk { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; border-radius: inherit; }
.lk i { position: absolute; display: block; opacity: .38; }
.tile.has-look > :not(.lk):not(.pkbox), .fpt > :not(.lk):not(.pkbox) { position: relative; z-index: 2; }
.lk-tt .net { left: 50%; top: 4%; bottom: 4%; border-left: 3px solid; transform: translateX(-1.5px); opacity: .5; }
.lk-tt .mid { top: 50%; left: 5%; right: 5%; border-top: 1px dashed; }
.lk-tt.v .net { left: 4%; right: 4%; top: 50%; bottom: auto; border-left: 0; border-top: 3px solid; transform: translateY(-1.5px); }
.lk-tt.v .mid { left: 50%; top: 5%; bottom: 5%; right: auto; border-top: 0; border-left: 1px dashed; }
.lk-darts .oche { left: 18%; top: 12%; bottom: 12%; border-left: 3px solid; }
.lk-darts .wall { right: 1.5%; top: 50%; height: 64%; aspect-ratio: 20.4 / 54; transform: translateY(-50%); opacity: .6; }
.lk-darts .wall svg { display: block; width: 100%; height: 100%; }
.lk-darts.v .wall { right: auto; left: 50%; top: auto; bottom: 1.5%; height: auto; width: 64%; aspect-ratio: 54 / 20.4; transform: translateX(-50%); }
.lk-darts.v .oche { left: 12%; right: 12%; top: 30%; bottom: auto; border-left: 0; border-top: 3px solid; }
.lk-room .sofa { left: 8%; right: 8%; bottom: 9%; height: 52%; border: max(4px, .7cqw) solid; border-top: 0; border-radius: 0 0 10px 10px; }
.lk-room .low { left: 34%; right: 34%; bottom: 25%; height: 15%; border: 2px solid; border-radius: 4px; }
.lk-room.v .sofa { left: 9%; right: 9%; top: 8%; bottom: 8%; height: auto; border-top: 0; }
.lk-room.v .low { left: 32%; right: 32%; top: 40%; bottom: 40%; height: auto; }
/* the activity's icon before a table's name on the Cards view and the timeline (not on the floor plan) */
.act-ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .35em; stroke-width: 1.9; opacity: .8; }
.fplan { position: relative; width: 100%; min-width: 760px; aspect-ratio: 24 / 14; background-color: var(--plan); border: 1px solid var(--line); border-radius: 12px; container-type: inline-size;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 24) calc(100% / 14); }
.fpt, .fpc { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; font-size: max(9px, 1.2cqw); color: #1d232b; user-select: none; }
.fpt { border-radius: 8px; padding: 2px 4px; }
.fpt.pool { padding: clamp(6px, 1.1cqw, 12px) clamp(12px, 2cqw, 20px); }
.fpt .n { font-weight: 800; font-size: max(10px, 1.45cqw); position: relative; z-index: 2; }
.fpt.pool { border: 3px solid #8a7458; background: var(--felt, #f3f5f7); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.fpt.pool .pkbox { inset: -3px; }
.fpt.room { border: 2px solid #7d6aa8; background: #f4effc; border-radius: 12px; }
.fpt.plain { border: 2px solid #9aa5b1; background: #fff; }
.fpt.dim { opacity: .35; filter: grayscale(1); }
.fp-type { font-size: max(9px, .95cqw); color: #6b7682; }
.fp-who { position: relative; z-index: 2; font-size: max(9px, 1.05cqw); font-weight: 600; max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.fp-who.free { color: #5b6672; font-weight: 500; }
.fpc.k-label { border: 2px dashed var(--ink3); border-radius: 6px; color: var(--ink2); font-weight: 700; padding: 2px; background: color-mix(in srgb, var(--surface) 55%, transparent); overflow: hidden; }
.fpc.k-object { border-radius: 6px; color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: max(9px, 1.1cqw); overflow: hidden; }
.fpc.k-object span { padding: 1px 6px; border-radius: 4px; }
.o-bar { background: #6b4f3a; border: 3px solid #4a3627; box-shadow: inset 0 0 0 4px #8a6a4f; }
.o-pillar { background: repeating-linear-gradient(45deg, #4b5563, #4b5563 4px, #6b7280 4px, #6b7280 8px); border-radius: 50% !important; }
.o-stage { background: #334155; border: 3px solid #1e293b; }
.o-stairs { background: repeating-linear-gradient(0deg, #64748b, #64748b 6px, #94a3b8 6px, #94a3b8 12px); border: 2px solid #475569; }
.o-stairs span, .o-toilets span, .o-other span { background: rgba(30,41,59,.85); }
.o-toilets { background: #64748b; border: 2px solid #475569; }
.o-wall { background: #1f2937; }
.o-other { background: repeating-linear-gradient(45deg, #6b7280, #6b7280 5px, #7c8592 5px, #7c8592 10px); border: 2px solid #4b5563; }
/* the sofa's name sits top left like stadium seating, on a pale tag so it reads over the cushions however thin the sofa is */
.fpc.k-sofa { color: #3a2b1e; align-items: flex-start; justify-content: flex-start; padding: 3px 6px; overflow: hidden; }
.fpc.k-sofa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fpc.k-sofa .cap, .fpc.k-sofa .fp-who { position: relative; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; padding: 0 4px; border-radius: 4px; background: rgba(255, 249, 241, .9); line-height: 1.35; }
.fpc.k-sofa .cap { font-weight: 800; font-size: max(9px, 1.05cqw); letter-spacing: .06em; text-transform: uppercase; }
.fpc.k-sofa .fp-who { font-weight: 600; }
.fpc.k-stadium { align-items: stretch; justify-content: flex-start; padding: 3px 6px; border: 2px solid #5b6b80; background: #eef2f7; border-radius: 6px; color: #22303f; overflow: hidden; }
.fpc.k-stadium .cap { display: flex; justify-content: space-between; gap: 6px; font-weight: 800; font-size: max(9px, 1.05cqw); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.fpc.k-stadium .cap span { overflow: hidden; text-overflow: ellipsis; }
.fp-seats { display: grid; gap: 2px; flex: 1; margin-top: 3px; min-height: 0; }
.fp-seats i { background: #c7d2e0; border-radius: 3px 3px 6px 6px; border-top: 3px solid #5b6b80; min-width: 0; min-height: 0; }
.fp-seats i.on { background: #7aa7d9; }
.fp-seats.tight { gap: 1px; } .fp-seats.tight i { border-top-width: 2px; }
.fpc.k-stadium .fp-who { text-align: left; max-width: 100%; }
/* the designer */
.fpd-copy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 14px; }
.fpd-copy > div { flex: 1; min-width: 240px; } .fpd-copy p { margin: 4px 0 0; }
.fpd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fpd-tip { flex: 1; text-align: right; }
.fpd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fpd-canvas { min-width: 0; }
.fpd-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.fpd-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
.fpd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.fpd-card .hint { margin: 0; }
.fpd-none { border-style: dashed; }
.fpd-name { margin: 0; }
.fpd-add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fpd-add button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 72px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; }
.fpd-add button:hover { border-color: var(--accent); }
.fpd-add svg { width: 46px; height: 26px; }
.fpd-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.fpd-sw button { display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-size: 11px; font-weight: 700; color: var(--ink2); background: none; border: 0; cursor: pointer; padding: 0; }
.fpd-sw i { width: 100%; height: 28px; border-radius: 8px; border: 2px solid rgba(0,0,0,.14); background: var(--felt); }
.fpd-sw i.none { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #e6e9ed 4px, #e6e9ed 8px); }
.fpd-sw button[aria-pressed="true"] i { outline: 3px solid var(--accent); outline-offset: 2px; }
.fpd-card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpd-acts { display: flex; gap: 8px; } .fpd-acts .btn { flex: 1; }
.fpd-it { cursor: grab; touch-action: none; }
.fpd-it.sel { outline: 3px solid var(--accent); outline-offset: 3px; z-index: 5; }
.fpd-it.blocked { outline: 3px solid var(--danger); outline-offset: 3px; }
.fpd-it.dragging-src { opacity: .85; z-index: 6; }
.fpd-it.fpd-hidden { opacity: .55; outline: 2px dashed var(--ink3); outline-offset: 2px; }   /* hidden from Live View or Main Event plans */
.fpd-it.fpd-hidden.sel { outline: 3px solid var(--accent); }
.fpd-vis { display: grid; gap: 4px; margin: 8px 0; }
.fpd-vis .checkline { margin: 0; }
.fp-grip { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); border: 2px solid var(--surface); cursor: nwse-resize; z-index: 7; touch-action: none; }
@media (pointer: coarse) { .fp-grip { width: 26px; height: 26px; right: -11px; bottom: -11px; } }
.fpd-copylist ul { margin: 4px 0 12px; padding-left: 20px; }
.fpd-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
@media (max-width: 1000px) { .fpd-wrap { grid-template-columns: minmax(0, 1fr); } .fpd-side { position: static; } .fpd-tip { text-align: left; flex-basis: 100%; order: 3; } }
/* Main Event: printouts and deposit */
.ev-prints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ss-depwrap { display: flex; flex-direction: column; gap: 6px; }
.ss-dep button { flex: 1; }
.pv-back { position: fixed; inset: 0; z-index: 300; background: #5d6670; overflow: auto; padding: 72px 16px 40px; }
.pv-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 301; display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #2b333c; color: #fff; }
.pv-bar b { flex: 1; font-size: 15px; }
.pv-bar .pv-close { background: #fff; color: #222; border-color: #fff; }
.pv-page { --ink: #111; --ink2: #444; --ink3: #777; --plan: #fff; --line: #d5dbe1; --surface: #fff; background: #fff; color: #111; width: 742px; max-width: 100%; min-height: 1050px; margin: 0 auto 24px; padding: 34px 40px; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: 13px; }
.pv-page.land { width: 1050px; min-height: 742px; }
.pv-page h1 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 34px; margin: 0; letter-spacing: .02em; color: #111; }
.pv-page h2 { font-size: 15px; margin: 0 0 14px; color: #444; font-weight: 600; }
.pv-page .fplan { min-width: 0; border-color: #999; }
.pv-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a33; border: 2px solid #a33; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.pv-page table { width: 100%; border-collapse: collapse; }
.pv-page th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #555; border-bottom: 2px solid #222; padding: 6px 8px; }
.pv-page td { border-bottom: 1px solid #ccc; padding: 7px 8px; vertical-align: top; color: #111; }
.pv-page tr:nth-child(even) td { background: #f6f6f6; }
.pv-page .tick { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #333; border-radius: 3px; vertical-align: middle; }
.pv-dep { font-weight: 700; } .pv-dep.no { color: #a33; } .pv-dep.na { color: #777; font-weight: 500; }
.pv-list { columns: 2; column-gap: 28px; margin-top: 12px; font-size: 12px; }
.pv-list div { break-inside: avoid; padding: 3px 0; border-bottom: 1px dotted #bbb; }
.pv-note { font-size: 12px; color: #555; margin-top: 12px; }
.pv-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: #555; }
@media print {
  body.pv-printing > *:not(.pv-back), body:has(.pv-back) > *:not(.pv-back) { display: none !important; }
  .pv-back { position: static; padding: 0; background: none; overflow: visible; }
  .pv-bar { display: none !important; }
  .pv-page, .pv-page.land { box-shadow: none; margin: 0; padding: 0; width: auto; min-height: 0; break-after: page; }
  .pv-page:last-child { break-after: auto; }
  html, body { background: #fff !important; }
  .pv-page.land .fplan { width: 200mm; max-width: 100%; margin: 0 auto; }   /* leaves room on a landscape A4 page for the heading and the who's-where list */
  .pv-page.land { break-inside: avoid; }
  .pv-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Admin → Floors & tables: one section per floor */
.ft-floor { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.ft-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.ft-title { display: flex; flex-direction: column; gap: 2px; }
.ft-title h3 { margin: 0; }
.ft-gap { flex: 1; }
.ft-table { margin: 0; }
.ft-table th:first-child, .ft-table td:first-child { padding-left: 16px; width: 130px; }
.ft-empty { padding: 18px 16px; color: var(--ink2); }
@media (max-width: 640px) { .ft-gap { display: none; } }
.ft-table { table-layout: fixed; width: 100%; min-width: 620px; }
.ft-table th:nth-child(2) { width: 26%; } .ft-table th:nth-child(3) { width: 20%; } .ft-table th:nth-child(5) { width: 90px; }
/* Floors, Tables and Seating: each floor's sofas and stadium seating */
.ft-seating { border-top: 1px solid var(--line); }
.ft-subhead { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 16px; background: color-mix(in srgb, var(--surface2) 50%, var(--surface)); }
.ft-subhead > div { flex: 1 1 320px; }
.ft-icon svg { width: 38px; height: 22px; display: block; }
.ev-seat .ft-icon { margin-right: 4px; }
.cv { display: flex; flex-direction: column; gap: 10px; }
.cv-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cv-row.skip { opacity: .55; } .cv-row.skip select, .cv-row.skip input { pointer-events: none; }
.cv-name { display: flex; align-items: center; gap: 8px; }
.cv-seats { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.cv-drawn { line-height: 1.3; }
@media (max-width: 700px) { .cv-row { grid-template-columns: 1fr; } }
.ft-rowcell { display: flex; align-items: center; gap: 8px; }

/* Floor plan text: one size on every table whatever its size or turn, growing with the plan but never below 12.5px.
   It is sized to fit the narrowest table (a turned UK table, 2 squares wide). */
.plan { --tile-font: max(12.5px, 1.32cqw); }
.plan .tile { font-size: var(--tile-font); justify-content: flex-start; gap: .25em; }
.plan .tile .nm { font-size: 1.05em; }
.tile.pooltbl.upright { padding: clamp(11px, 1.4cqw, 15px) 5px 5px; }   /* turned: side pockets are on the long sides, so only clear the top corners */
/* Booking / Walk-in on a playing table, in the same style as the VIP / returning badges */
.cb.bkg { background: #b7791f; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.cb.wlk { background: #fff; color: #1d4f7a; box-shadow: 0 0 0 1px #9cc3e6; }
.tile .tr-kind { display: flex; }
.tile .tr-kind .cb { margin: 1px 0 1px 1px; font-size: .7em; padding: 1px 5px; letter-spacing: .02em; }

/* Undo end: the card on a just-ended table, the undo window, and toasts with a button */
.ue-card { border: 1px solid var(--held); background: var(--held-bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ue-card .tb-cap { color: var(--held); }
.ue-opts { display: grid; gap: 10px; }
.ue-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.ue-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.ue-opt:disabled { opacity: .6; cursor: not-allowed; }
.ue-opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink3); flex: none; margin-top: 2px; }
.ue-opt[aria-pressed="true"] i { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.ue-opt b { display: block; font-size: 16px; }
.ue-opt span { font-size: 13px; color: var(--ink2); }
.ue-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ue-sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin: 0; }
.ue-sum dt { color: var(--ink2); } .ue-sum dd { margin: 0; font-weight: 600; }
.ue-diff { font-weight: 800; } .ue-diff.less { color: #17663a; } .ue-diff.more, .ue-bad { color: var(--danger); }
.ue-head { background: var(--surface2); padding: 16px 20px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.ue-head h2 { margin: 2px 0; font-size: 28px; }
.ue-body { padding: 16px 20px 6px; display: flex; flex-direction: column; gap: 14px; }
.toast.withbtn { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toast .toast-btn { background: #fff; color: #111; border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 800; cursor: pointer; flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ue-diff.less { color: #6fd29a; } }
:root[data-theme="dark"] .ue-diff.less { color: #6fd29a; }

/* Admin: three sections, each with pill tabs */
.ad-groups button { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.ad-sub { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 16px; }
.ad-sub button { border: 1px solid var(--line); background: var(--surface); color: var(--ink2); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.ad-sub button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ad-view { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
/* Admin → Venue settings: the venue chooser beside its tabs; Company settings → Timers & prices (version 117) */
.cfg-vbar { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; flex-wrap: wrap; }
.cfg-vbar .ad-sub { margin: 0; }
.cfg-stack { max-width: 980px; } .cfg-stack > * + * { margin-top: 12px; }
.cfg-narrow { max-width: 620px; }
.cfg-actions { margin-top: 10px; }
.pt-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.pt-mode { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; font: inherit; color: var(--ink); }
.pt-mode i { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; box-sizing: border-box; }
.pt-mode b { display: block; margin-bottom: 3px; } .pt-mode span { color: var(--ink2); font-size: 13px; }
.pt-mode[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pt-mode[aria-pressed="true"] i { border: 5px solid var(--accent); }
.pt-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-h { margin: 16px 0 4px; }
.pt-note { margin: 10px 0 0; color: var(--ink2); }
.pt-off { opacity: .55; }
.pt-table td { vertical-align: middle; } .pt-table .seg button { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.pt-price { display: flex; align-items: center; gap: 6px; } .pt-price[hidden] { display: none; } .pt-price input { width: 96px; } .pt-cur { color: var(--ink2); font-weight: 600; }
.pt-eg { color: var(--ink2); font-size: 13px; white-space: nowrap; }
@media (max-width: 700px) {
  .pt-modes { grid-template-columns: 1fr; }
  .pt-table thead { display: none; } .pt-table, .pt-table tbody { display: block; }
  .pt-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pt-table td { border: 0; padding: 0; } .pt-table td:nth-child(2) { grid-column: 1 / -1; order: 3; } .pt-table td:nth-child(3) { order: 4; } .pt-table td:nth-child(4) { order: 5; align-self: center; }
  .pt-table .seg { display: flex; } .pt-table .seg button { flex: 1; justify-content: center; padding: 8px 4px; }
}
.bx { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.bx-keep { display: flex; gap: 10px; align-items: flex-start; }
.bx-warn { margin: 0; }

/* BilliardFlow login page */
.login-logo { display: block; max-width: 300px; margin: 0 auto 14px; }
.login-logo img { display: block; width: 100%; height: auto; }
.login-logo .dk { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-logo .lt { display: none; } :root:not([data-theme="light"]) .login-logo .dk { display: block; } }
:root[data-theme="dark"] .login-logo .lt { display: none; } :root[data-theme="dark"] .login-logo .dk { display: block; }

/* BilliardFlow platform console (platform/index.html) */
.pf-tag { display: inline-block; background: #f5b942; color: #1d2733; border-radius: 6px; padding: 2px 8px; font: 800 12px/1.4 "Maven Pro", system-ui, sans-serif; letter-spacing: .05em; margin-left: 10px; vertical-align: middle; }
.pf-top { background: #1d2733; border-bottom-color: #3fae7f; }
.pf-main { max-width: 1240px; margin: 0 auto; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.pf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .pf-row2 { grid-template-columns: 1fr; } }
.pf-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pf-note { background: var(--surface2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-co b { display: block; } .pf-co span { font-size: 12px; color: var(--ink2); }
.pill.trial { background: #ece6fb; color: #5a3fb0; } .pill.due { background: var(--warn-bg); color: var(--warn-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.trial { background: #2a2147; color: #c9b8f2; } }
:root[data-theme="dark"] .pill.trial { background: #2a2147; color: #c9b8f2; }

/* BilliardFlow in the app: the bar under the menu, Billing, forgot password */
.bf-bar { display: none; flex-direction: column; }
.bf-bar.show { display: flex; }
.bf-msg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; font-size: 14px; }
.bf-msg .btn { padding: 4px 10px; min-height: 0; }
.bf-msg.trial { background: #f4effe; color: #3d2a80; border-bottom: 1px solid #c9b8f2; }
.bf-msg.due { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--held); }
.bf-msg.locked { background: #fde4e1; color: #7f1710; border-bottom: 1px solid #e8a39b; }
.bf-msg.support { background: #e2f5ec; color: #14532d; border-bottom: 1px solid #9fd8bb; }
.bf-msg.block { border: 1px solid currentColor; border-radius: 12px; margin-bottom: 14px; padding: 12px 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bf-msg.trial { background: #231b3d; color: #d9ccff; } :root:not([data-theme="light"]) .bf-msg.locked { background: #3a1513; color: #ffc9c2; } :root:not([data-theme="light"]) .bf-msg.support { background: #10291d; color: #b8ecd0; } }
:root[data-theme="dark"] .bf-msg.trial { background: #231b3d; color: #d9ccff; } :root[data-theme="dark"] .bf-msg.locked { background: #3a1513; color: #ffc9c2; } :root[data-theme="dark"] .bf-msg.support { background: #10291d; color: #b8ecd0; }
.bf-bill { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .bf-bill { grid-template-columns: 1fr; } }
.bf-plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bf-price { font-family: "Bebas Neue", Impact, sans-serif; font-size: 44px; line-height: 1; margin: 8px 0 2px; } .bf-price span { font: 500 15px "Maven Pro", system-ui, sans-serif; color: var(--ink2); }
.bf-tiers { max-width: 360px; margin: 6px 0; } .bf-tiers td { padding: 5px 8px; }
.bf-col { display: grid; gap: 8px; }
.bf-forgot { margin-top: 12px; text-align: center; font-size: 14px; }
.login .pf-tag { margin-left: 0; }

/* ---------- BilliardFlow addons ---------- */
.bf-addons { display: grid; gap: 10px; }
.bf-addon { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bf-addon.on { border-color: var(--free); background: var(--free-bg); }
.bf-addon p { margin: 4px 0 0; max-width: 60ch; }
.bf-addon-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.bf-addon-price { font-family: "Bebas Neue", Impact, sans-serif; font-size: 26px; line-height: 1; }
.bf-addon-price span { font-family: "Maven Pro", system-ui, sans-serif; font-size: 13px; color: var(--ink2); }
.bf-addon-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 12px; border-radius: 10px; background: var(--event-bg); color: var(--ink); font-size: 14px; }
.bk-rail .bf-addon-note { margin: 8px 0 0; font-size: 13px; }
.ev-kind-locked { opacity: .55; cursor: not-allowed; }
.ev-kind-locked:hover { border-color: var(--line); }
.ev-kind-locked[aria-pressed="true"] { opacity: 1; }
.ev-addon-tag { font-family: "Maven Pro", system-ui, sans-serif; font-size: 11px; letter-spacing: 0; margin-left: 6px; vertical-align: middle; }
@media (max-width: 560px) { .bf-addon { flex-direction: column; align-items: stretch; } .bf-addon-side { flex-direction: row; justify-content: space-between; align-items: center; } }
.pf-addon { padding: 10px 0; border-top: 1px solid var(--line); }
.pf-addon-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pf-addon-head .pill { margin-left: auto; }

/* ---------- Inventory Control ---------- */
.inv-head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-tools { margin: 0 0 12px; }
.inv-search { width: 100%; max-width: 420px; }
.inv-list { padding: 0; overflow: hidden; }
.inv-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 110px 70px; gap: 12px; align-items: center; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; width: 100%; }
button.inv-row { cursor: pointer; }
button.inv-row:hover { background: var(--surface2); }
.inv-row:last-child { border-bottom: 0; }
.inv-th { background: var(--surface2); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); padding-top: 10px; padding-bottom: 10px; }
.inv-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.inv-name .hint { flex-basis: 100%; }
.inv-cat { font-size: 11px; background: var(--surface2); color: var(--ink2); }
.inv-where { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-at { background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 3px 9px; font-size: 13px; white-space: nowrap; }
.inv-dmg { color: var(--danger); font-style: normal; font-weight: 600; }
.inv-short { color: var(--held); font-weight: 700; font-size: 13px; }
.inv-total b { font-size: 18px; }
.inv-log { margin-top: 14px; }
.inv-item-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.inv-places { margin: 6px 0 10px; }
.inv-addplace { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.inv-sub { margin: 14px 0 4px; font-size: 18px; }
.inv-item-hq { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.inv-what { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.inv-what .chip:disabled { opacity: .45; cursor: not-allowed; }
.inv-start { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }
.inv-start-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.inv-start-row input { width: 80px; }
@media (max-width: 760px) {
  .inv-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .inv-row > :nth-child(2) { grid-column: 1 / -1; order: 3; }
  .inv-row > :nth-child(4), .inv-th > :nth-child(2), .inv-th > :nth-child(4) { display: none; }
}

/* ---------- Inventory in sections: Hardware, Wet and Dry (v142) ---------- */
.stk-secs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.stk-sec { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 16px 10px 12px; font: inherit; cursor: pointer; min-width: 190px; }
.stk-sec b { display: block; } .stk-sec small { color: var(--ink2); font-size: 12px; }
.stk-sec[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stk-sec:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stk-sec-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface2); display: grid; place-items: center; font-size: 18px; flex: none; }
.stk-sec[aria-selected="true"] .stk-sec-ico { background: var(--accent-soft); }
.stk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--held); margin-left: 6px; vertical-align: middle; }
.stk-check { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stk-card { padding: 4px 12px; margin-bottom: 12px; }
.stk-card > h3, .stk-card .stk-box-head { margin: 10px 0 6px; }
table.t tr.stk-cat td { background: var(--surface2); font-weight: 700; font-size: 13px; }
table.t tr.stk-click { cursor: pointer; } table.t tr.stk-click:hover td { background: var(--surface2); }
table.t tfoot td { border-bottom: 0; }
.pill.stk-kl { margin-left: 8px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; background: #e0f2fe; color: #0369a1; }
.stk-klsw { margin: 10px 0 4px; }
.stk-lbl { display: block; margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.stk-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.stk-drop { display: flex; flex-direction: column; gap: 4px; border: 2px dashed var(--line); border-radius: 12px; padding: 18px; cursor: pointer; background: var(--surface2); }
.stk-drop input { margin-bottom: 6px; }
.stk-imp { display: flex; flex-direction: column; gap: 12px; }
.stk-imp-file { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.stk-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill.stk-p-wet { background: #e0f2fe; color: #0369a1; } .pill.stk-p-dry { background: var(--held-bg); color: var(--held); } .pill.stk-p-hardware { background: var(--free-bg); color: var(--free); }
.stk-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.stk-box h3 { font-size: 19px; margin-bottom: 6px; }
.stk-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stk-look { border-color: #e6c35c; background: var(--warn-bg); }
.stk-look-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.stk-look-name { display: flex; flex-direction: column; }
.stk-look-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.stk-uses { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stk-use { display: flex; gap: 6px; align-items: center; width: 100%; }
.stk-use input { width: 70px; text-align: right; } .stk-use select { flex: 1; min-width: 0; }
.stk-new { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.stk-new.off { opacity: .55; }
.stk-new-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.stk-new-head input, .stk-new-head select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; width: 140px; }
.stk-new-head .stk-new-name { font-weight: 700; width: 220px; }
.stk-size { display: inline-flex; align-items: center; gap: 5px; }
.stk-size input { width: 80px; text-align: right; }
.stk-note { color: var(--held); font-weight: 600; font-size: 12px; }
.stk-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(120px, auto) 80px auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.stk-line:last-child { border-bottom: 0; }
.stk-amt { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.stk-amt input { width: 70px; text-align: right; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stk-plus { max-height: 60vh; overflow: auto; margin-top: 8px; }
.stk-dlines { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.stk-dline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stk-dline > select:first-child { flex: 1 1 220px; min-width: 0; }
.stk-start h3 { margin-bottom: 6px; }
.stk-past { margin-top: 12px; }
.stk-count-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.stk-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stk-warn div + div { margin-top: 4px; }
.stk-count td { vertical-align: middle; }
.stk-cell { white-space: nowrap; }
.stk-in { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; }
.stk-in input { width: 58px; text-align: right; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stk-in input.stk-open { width: 76px; }
.stk-in.saving input { border-color: var(--brand-hi); } .stk-in.ok input { border-color: var(--free); } .stk-in.err input { border-color: var(--danger); }
.stk-count-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.stk-count-acts .danger { margin-right: auto; }
.stk-rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.stk-how { margin-bottom: 12px; }
.stk-how pre { background: var(--surface2); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; white-space: pre-wrap; margin: 8px 0; }
.stk-set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.stk-set-row:first-of-type { border-top: 0; }
:root[data-theme="dark"] .pill.stk-kl, :root[data-theme="dark"] .pill.stk-p-wet { background: #082f49; color: #7dd3fc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.stk-kl, :root:not([data-theme="light"]) .pill.stk-p-wet { background: #082f49; color: #7dd3fc; } }
@media (max-width: 760px) {
  .stk-sec { min-width: 0; flex: 1 1 140px; }
  .stk-modes { grid-template-columns: 1fr; }
  .stk-look-row { grid-template-columns: 1fr; }
  .stk-look-acts { justify-content: flex-start; }
  .stk-line { grid-template-columns: minmax(0, 1fr) auto; }
  .stk-line > :first-child { display: none; }
}
@media print { .no-print, .page-head .inv-head-acts { display: none !important; } .stk-card { overflow: visible; } }

/* ---------- design and typography pass (v91) ---------- */
main p { max-width: 80ch; }   /* comfortable line length for help text; tables and cards are unaffected */
@media (max-width: 640px) {
  table.t td, table.t th { white-space: nowrap; }   /* names and phone numbers stay on one line; the table scrolls sideways */
}
@media (max-width: 640px) {
  .page-head > .btn { flex: 1 1 auto; white-space: nowrap; }   /* buttons share rows instead of each squeezing onto three lines */
  .tb-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }   /* Tables: view, floor and + Booking on one sideways-scrolling row */
  .tb-tools > * { flex: 0 0 auto; }
  .tb-pills { gap: 6px; } .tb-pill { min-height: 30px; padding: 0 10px; font-size: 12px; }
  .tb-banner-who { flex-basis: 100%; } .tb-banner .btn { flex: 1; }   /* prepaid warning: who on one line, both buttons side by side under it */
}

/* Admin → Spaces and activities: the list of activities, look previews and the icon picker (v96) */
.act-sec .ft-table th:nth-child(2) { width: 30%; }
.act-look { display: flex; align-items: center; gap: 10px; }
.lookprev { position: relative; width: 88px; aspect-ratio: 2 / 1; flex: 0 0 auto; container-type: inline-size; }
.lookprev .fpt { inset: 0; font-size: 11px; }
.lookprev .fpt .n { font-size: 11px; }
.lookprev .fpt.pool { padding: 4px 10px; }
.lookprev .pk { width: 9px; height: 9px; } .lookprev .pk.c { width: 13px; height: 13px; }
.lookprev .lk-room .sofa { border-width: 5px; }
.look-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.look-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.look-opt .lookprev { width: 100%; margin-bottom: 4px; }
.look-opt b { font-size: 14px; }
.look-opt[aria-pressed="true"], .icon-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.icon-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-opt { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-opt .ico { width: 24px; height: 24px; }
.look-opt:focus-visible, .icon-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* on the live Tables plan the drawing stays faint and low, so the name, state and clock read first */
.tile .lk i { opacity: .2; }
.tile .lk-darts .wall { opacity: .4; }
.tile .lk-darts:not(.v) .oche { top: 45%; }
.tile .lk-tt:not(.v) .net { top: 40%; }
.tile .lk-room:not(.v) .sofa { height: 42%; }
/* uploaded activity icons (v97): square pictures, shown the size of the drawn ones; a dark outline-free icon stays readable on both themes */
img.act-ico.act-img { width: 1.4em; height: 1.4em; object-fit: contain; vertical-align: -.35em; opacity: 1; border-radius: 4px; }
.act-imgrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0; }
.act-imgprev { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.act-imgbig { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--surface2); }
.act-imgsample { display: inline-flex; align-items: center; font-size: 18px; }
.icon-opts.dim { opacity: .45; }

/* ---------- bookable seating (v103): sofas and stadium seating booked by the seat ---------- */
/* timeline: one row per sofa or stadium seating; overlapping bookings join into one "Multiple bookings" slot that opens a line per booking */
.seat-ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.blk .seat-n { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 6px; margin-right: 5px; border-radius: 999px; background: var(--held); color: var(--surface); }
.blk.arrived .seat-n { background: var(--use); }
.blk.seatb { cursor: pointer; }
.blk.multi { background: repeating-linear-gradient(135deg, var(--held-bg) 0 8px, color-mix(in srgb, var(--held-bg) 60%, var(--surface)) 8px 16px); color: var(--held); border: 2px solid var(--held); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.blk.multi .mb-count { background: var(--held); color: var(--surface); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.blk.multi .mb-seats { font-weight: 600; opacity: .9; overflow: hidden; text-overflow: ellipsis; }
.blk.multi.open { box-shadow: 0 0 0 3px color-mix(in srgb, var(--held) 35%, transparent); }
.legend i.blk.multi { border-width: 1px; }
.tl-row.seat-lane .tl-cells { height: 34px; background-color: color-mix(in srgb, var(--held-bg) 25%, var(--surface)) !important; }
.tl-row.seat-lane .tl-name { padding: 4px 8px 4px 22px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.tl-row.seat-lane .blk { top: 3px; bottom: 3px; font-size: 11.5px; }
.tl-row.seat-lane.last .tl-cells { border-bottom: 2px solid var(--held); }
/* booking pop-up: tables or seating */
.bk-mode { align-self: flex-start; }
.bk-seatpick .chip { display: inline-flex; align-items: center; gap: 6px; }
.bk-seatpick .seat-ico { width: 16px; height: 16px; }
/* Tables page: seats taken now */
.fpc.seat-live { cursor: pointer; }
.fpc.seat-live:hover, .fpc.seat-live:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fpc.k-stadium.seat-live.some { border-color: var(--held); }
.fpc.k-stadium.seat-live.full { border-color: var(--danger); }
.tb-tile.tb-seat .tb-tile-name .seat-ico { width: 18px; height: 18px; }
.seat-meter { height: 8px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; }
.seat-meter b { display: block; height: 100%; background: var(--held); }
.tb-tile.tb-seat.k-use .seat-meter b { background: var(--danger); }
.tb-leg.seatleg .tb-leg-who { white-space: normal; }
.pill.ss-web { margin-left: 6px; font-size: 10px; padding: 0 6px; background: var(--accent-soft); color: var(--accent); vertical-align: 1px; }

/* The ? beside a page's title: its description shows on hover, tap or keyboard focus (GitHub issue 15) */
.page-help { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink2); color: var(--ink2); font-size: 13px; font-weight: 800; line-height: 1; cursor: help; user-select: none; }
.page-help:hover, .page-help:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.page-help-pop { display: none; position: absolute; top: calc(100% + 8px); left: -8px; z-index: 50; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); white-space: normal; letter-spacing: 0; text-transform: none; }
.page-help:hover .page-help-pop, .page-help:focus .page-help-pop { display: block; }
.page-head h2 { margin-right: 0; }
.page-head > .page-help { margin-right: auto; }
@media (max-width: 640px) { .page-head h2 { flex: 0 1 calc(100% - 40px); } }
.cl-titlerow { display: flex; align-items: center; gap: 10px; }
select.tb-spacesel { width: auto; min-width: 160px; min-height: 40px; }
.tb-spaces { display: inline-flex; max-width: 100%; min-width: 0; }
.tb-spaces .seg { max-width: 100%; overflow: hidden; }
.tb-spaces .tb-spacesel, .tb-spaces.as-select .seg { display: none; }
.tb-spaces.as-select .tb-spacesel { display: block; }
.bk-del { color: var(--danger); margin-top: 6px; align-self: flex-start; }

/* Compressed activities (Admin → Spaces and activities → Compress): one Timeline row and one Live View card for all their tables */
.tl-row.act-row .tl-name { gap: 2px; }
.act-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 0; }
.act-toggle .mb-arr, .tl-row.act-row .mb-arr { font-size: 11px; color: var(--ink2); }
.tl-row.act-row .tl-cells { cursor: pointer; }
.tl-row.act-lane .tl-name { padding-left: 22px; font-size: 12.5px; }
.tl-row.act-lane .tl-cells { background-color: color-mix(in srgb, var(--line) 18%, var(--surface)) !important; }
.tl-row.act-lane.last .tl-cells { border-bottom: 2px solid var(--line); }
.tb-tile.tb-group { border-top-style: double; border-top-width: 7px; }
.tb-group-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; font-size: 14px; }
.tb-group-counts span { display: inline-flex; align-items: center; gap: 6px; }
.tb-group-list { display: flex; flex-direction: column; gap: 4px; }
.tb-group-line { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; text-align: left; border: 0; background: color-mix(in srgb, var(--line) 25%, transparent); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.tb-group-line:hover { background: color-mix(in srgb, var(--line) 45%, transparent); }
.tb-group-line > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-group .tb-tile-acts { margin-top: auto; }
.act-dlg .checkline > span { font-weight: 400; }

/* Admin → Website bookings → Put it on your website (widgets for the venue's website) */
.embed-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.embed-colour { display: flex; gap: 8px; align-items: center; }
.embed-colour input[type=color] { width: 48px; height: 36px; padding: 2px; }
.embed-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.embed-frame { display: block; width: 100%; height: 480px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface2); }
.embed-frame.on-dark { background: #0f172a; }   /* a dark widget is for a dark website */
.embed-code { margin-bottom: 12px; }
.embed-code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.embed-code pre.code { white-space: pre-wrap; word-break: break-all; max-height: 140px; overflow-y: auto; }
.embed-code .hint { margin: 2px 0 0; }
.embed-how summary { cursor: pointer; font-weight: 600; }
.embed-how ol { margin: 8px 0; padding-left: 20px; }
@media (max-width: 900px) { .embed-grid { grid-template-columns: 1fr; } }

/* Admin → Main Events (version 116) */
.me-bar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 8px 0; margin-bottom: 4px; }
.me-intro { color: var(--ink2); margin: 0; max-width: 760px; }
.me-sec { margin: 20px 0 10px; display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.me-sec h3 { margin: 0; } .me-sec > span { color: var(--ink2); font-size: .85rem; max-width: 900px; }
.me-table { min-width: 760px; } .me-wide { min-width: 1180px; }
.me-grid { display: grid; grid-template-columns: 100px minmax(110px, 1fr) 150px 112px 112px 118px 118px 92px 200px; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.me-h { border-top: 0; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); background: color-mix(in srgb, var(--ink2) 8%, transparent); }
.me-band-row { background: none; padding-bottom: 0; padding-top: 8px; }
.me-defs { grid-column: 7 / -1; color: var(--event); border-bottom: 2px solid color-mix(in srgb, var(--event) 50%, transparent); padding-bottom: 2px; }
.me-grid .seg button, .me-seat .seg button { padding: 6px 8px; font-size: .78rem; }
.me-act { display: inline-flex; align-items: center; gap: 6px; }
.me-num { display: inline-flex; align-items: center; gap: 4px; } .me-num b { min-width: 24px; text-align: center; }
.me-off > :not(:nth-child(3)) { opacity: .5; }
.me-band { grid-column: 4 / -1; color: var(--ink2); font-size: .82rem; }
.me-seat { display: grid; grid-template-columns: 100px minmax(140px, 1fr) 160px 110px 150px 200px; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.me-seat.me-h, .me-other.me-h { border-top: 0; }
.me-row { width: 80px; min-height: 0; height: 32px; padding: 4px 8px; }
.me-other { display: grid; grid-template-columns: minmax(140px, 1fr) 200px 150px; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); }
.me-chips { padding: 10px 16px; border-top: 1px solid var(--line); margin: 0; }
.me-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; max-width: 900px; }
.me-line { display: flex; gap: 12px; align-items: center; }
.me-floor .scroll-x { overflow-x: auto; }
.me-grid .ea-dep, .me-seat .ea-dep { grid-column: auto; }

/* ---------- seat sheet views (version 116): the floor plan as the website draws it, the list, and the guest list ---------- */
:root { --sp-floor: #eef2f6; --sp-line: #cbd5e1; --sp-act: #94a3b8; --sp-felt: #c4d9cf; --sp-seat: #ffffff; --sp-seat-line: #475569; --sp-taken: #6a3fb5; --sp-sofa: #d9c3ad; --sp-sofa-back: #b89a7e; --sp-stand: #e2e8f0; --sp-text: #334155; --sp-mine: #d97706; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sp-floor: #0b1222; --sp-line: #1e293b; --sp-act: #334155; --sp-felt: #1f3b33; --sp-seat: #0f172a; --sp-seat-line: #94a3b8; --sp-taken: #b7a0ee; --sp-sofa: #5b4636; --sp-sofa-back: #47362a; --sp-stand: #1e293b; --sp-text: #cbd5e1; --sp-mine: #f59e0b; } }
:root[data-theme="dark"] { --sp-floor: #0b1222; --sp-line: #1e293b; --sp-act: #334155; --sp-felt: #1f3b33; --sp-seat: #0f172a; --sp-seat-line: #94a3b8; --sp-taken: #b7a0ee; --sp-sofa: #5b4636; --sp-sofa-back: #47362a; --sp-stand: #1e293b; --sp-text: #cbd5e1; --sp-mine: #f59e0b; }
.ss-views { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ss-views .seg button { padding: 0 16px; }
.ssp-box { border: 1px solid var(--line); border-radius: 12px; background: var(--sp-floor); padding: 8px; }
.ssp-svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.ssp-svg text { pointer-events: none; }
.ssp-floor { fill: var(--sp-floor); stroke: var(--sp-line); stroke-width: .08; }
.ssp-act { cursor: pointer; }
.ssp-act > rect:first-of-type { fill: var(--sp-act); opacity: .6; stroke: var(--sp-seat-line); stroke-width: .05; }
.ssp-act .felt { fill: var(--sp-felt); }
.ssp-act text { fill: var(--sp-text); font-size: .5px; font-weight: 700; text-anchor: middle; }
.ssp-act text.who { font-size: .4px; font-weight: 600; }
.ssp-act.free > rect:first-of-type { stroke: var(--free); stroke-width: .09; opacity: .9; }
.ssp-act.taken > rect:first-of-type { fill: var(--sp-taken); opacity: .85; stroke: var(--sp-taken); }
.ssp-act.taken .felt { opacity: .35; }
.ssp-act.taken text { fill: #fff; }
.ssp-act.mine > rect:first-of-type { fill: var(--sp-mine); opacity: 1; stroke: var(--sp-mine); }
.ssp-act.mine .felt { opacity: .3; }
.ssp-act.mine text { fill: #fff; }
.ssp-act.closed, .ssp-act.off { opacity: .35; cursor: default; }
.ssp-act.closed > rect:first-of-type, .ssp-act.off > rect:first-of-type { stroke-dasharray: .2 .15; }
.ssp-act.sel > rect:first-of-type, .ssp-unit.sel > rect, .ssp-unit.sel > g > rect:first-child { stroke: var(--accent); stroke-width: .16; }
.ssp-act:focus, .ssp-seat:focus { outline: none; }   /* the browser's ring is drawn in plan units, so it comes out huge */
.ssp-act:focus-visible > rect:first-of-type, .ssp-seat:focus-visible rect { stroke: var(--accent); stroke-width: .16; }
.ssp-obj rect { fill: #6b4f3a; } .ssp-obj.pillar rect { fill: var(--sp-act); }
.ssp-obj text { fill: #f8fafc; font-size: .5px; font-weight: 700; text-anchor: middle; }
.ssp-label { fill: var(--sp-text); font-size: .42px; font-weight: 700; letter-spacing: .06px; text-anchor: middle; opacity: .8; }
.ssp-sofa { fill: var(--sp-sofa); } .ssp-sofa-back { fill: var(--sp-sofa-back); }
.ssp-stand { fill: var(--sp-stand); stroke: var(--sp-line); stroke-width: .05; }
.ssp-unit.off { opacity: .35; }
.ssp-seat { cursor: pointer; }
.ssp-seat rect { fill: var(--sp-seat); stroke: var(--sp-seat-line); stroke-width: .06; }
.ssp-seat.taken rect { fill: var(--sp-taken); stroke: var(--sp-taken); }
.ssp-seat.mine rect { fill: var(--sp-mine); stroke: var(--sp-mine); }
.ssp-seat.off { cursor: default; }
.ssp-seat:hover rect { stroke: var(--accent); stroke-width: .12; }
.ssp-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; font-size: 13px; color: var(--ink2); }
.ssp-key li { display: flex; align-items: center; gap: 7px; }
.ssp-key .k { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--sp-seat-line); background: var(--sp-seat); box-sizing: border-box; }
.ssp-key .k.taken { background: var(--sp-taken); border-color: var(--sp-taken); }
.ssp-key .k.mine { background: var(--sp-mine); border-color: var(--sp-mine); }
.ssp-key .k.closed { opacity: .4; border-style: dashed; }
.ssp-booking { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--sp-mine); border-radius: 12px; background: var(--surface); }
.ssg-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ssg-tools input { flex: 1; min-width: 200px; }
.ssg-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ssg-row { display: grid; grid-template-columns: minmax(140px, 1.6fr) 60px minmax(110px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ssg-row:first-child { border-top: 0; }
.ssg-row.ssg-head { background: var(--surface2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); cursor: default; }
.ssg-row:not(.ssg-head):hover { background: var(--surface2); }
.ssg-row.sel { box-shadow: inset 4px 0 0 var(--sp-mine); background: var(--surface2); }
.ssg-row:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ssg-row b { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ssg-row .dep-ok { color: var(--free); font-weight: 700; } .ssg-row .dep-no { color: var(--danger); font-weight: 700; }
@media (max-width: 760px) { .ssg-row { grid-template-columns: 1fr auto; } .ssg-row > :nth-child(3), .ssg-row > :nth-child(4) { grid-column: 1 / -1; font-size: 13px; } .ssg-row.ssg-head { display: none; } }
/* moving a booking on the seat sheet (version 116) */
.ss-move { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.ss-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.ss-ghost { position: fixed; z-index: 1000; pointer-events: none; padding: 6px 12px; border-radius: 999px; background: var(--sp-mine); color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
body.ss-dragging, body.ss-dragging * { cursor: grabbing !important; user-select: none; }
.ssp-svg [data-grp] { touch-action: none; }
[data-grp] { cursor: grab; }
.ss-row.drop-on, .ss-tile.drop-on { outline: 3px dashed var(--sp-mine); outline-offset: 2px; }
.ssp-seat.drop-on rect, .ssp-act.drop-on > rect:first-of-type { stroke: var(--sp-mine); stroke-width: .2; }

/* ===================== Version 130: the new look (the venue app only: everything here sits under .app2) =====================
   A left sidebar with a dark pill for the open page and a phone tab bar; white rounded cards with soft borders on a light grey page;
   Inter throughout; stat cards with small round icons; outlined chips. The palette is the BilliardFlow one. */
.app2 { --page: #f1f5f9; --soft: #f1f5f9; --line2: #eef2f6; --pill: #0f172a; --pill-ink: #ffffff; --badge: #e5484d;
  --card-shadow: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04); --side-w: 248px;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: var(--page);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11"; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app2 { --page: #0b1120; --soft: #1b263d; --line2: #1b263d; --pill: #f8fafc; --pill-ink: #0f172a; --card-shadow: 0 1px 2px rgba(0,0,0,.4); } }
:root[data-theme="dark"] .app2 { --page: #0b1120; --soft: #1b263d; --line2: #1b263d; --pill: #f8fafc; --pill-ink: #0f172a; --card-shadow: 0 1px 2px rgba(0,0,0,.4); }
.app2 h1, .app2 h2, .app2 h3, .app2 .btn, .app2 table.t th, .app2 .kpi .v, .app2 .paybox .big { font-family: inherit; }
.app2 h2 { text-transform: none; letter-spacing: -.02em; font-weight: 600; font-size: 26px; }
.app2 h3 { text-transform: none; letter-spacing: -.01em; font-weight: 600; font-size: 17px; }
.app2 .btn { font-weight: 550; border-radius: 10px; }
.app2 .btn.primary { box-shadow: 0 2px 6px rgba(6,95,70,.22); }
.app2 .card, .app2 .tl, .app2 .tb-card { border-radius: 16px; box-shadow: var(--card-shadow); }
.app2 .seg { border-radius: 11px; padding: 3px; gap: 2px; background: var(--soft); }
.app2 .seg button { border-radius: 8px; font-weight: 500; }
.app2 .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.app2 .pill { background: transparent; border: 1px solid var(--line); border-radius: 7px; font-weight: 600; }
.app2 .pill.free { border-color: #a7e3c9; } .app2 .pill.use { border-color: #bae6fd; } .app2 .pill.held { border-color: #f5c46b; } .app2 .pill.bad { border-color: #f5b5b0; }
.app2 table.t th { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; color: var(--ink3); }

/* the sidebar */
.app2 .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 20px 16px; background: var(--bg); border-right: 1px solid var(--line); }
.app2 .side .brand { font-family: inherit; font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--ink); margin: 2px 6px 14px; white-space: normal; }
.app2 .side .brand .login-logo img { height: 34px; width: auto; }
/* an uploaded logo fills the width of the full sidebar, centred, up to 96 pixels tall (GitHub issue 43) */
.app2 .side .brand.own-logo { justify-content: center; }
.app2 .side .brand .brand-logo { width: 100%; height: auto; max-height: 96px; max-width: 100%; object-fit: contain; }
.app2 .venue-box { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; }
.app2 .venue-dot { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.app2 .venue-txt { min-width: 0; display: flex; flex-direction: column; }
.app2 .venue-txt b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app2 .venue-txt small { color: var(--ink3); font-size: 12px; }
.app2 .venue-box select.venuesel { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; min-height: 0; }
.app2 .side-sec { color: var(--ink3); font-size: 12.5px; margin: 8px 10px 4px; }
.app2 .side .nav { flex-direction: column; flex: none; gap: 2px; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.app2 .side .nav button { min-height: 42px; padding: 0 12px; border-radius: 11px; color: var(--ink2); font-weight: 500; justify-content: flex-start; gap: 11px; }
.app2 .side .nav button:hover { background: var(--soft); color: var(--ink); }
.app2 .side .nav button[aria-current="page"] { background: var(--pill); color: var(--pill-ink); box-shadow: 0 6px 14px rgba(15,23,42,.18); }
.app2 .side-gap { flex: 1; min-height: 12px; }
.app2 .side-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 10px 10px 12px; }
.app2 .me-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #dbeafe; color: #1e3a8a; display: grid; place-items: center; font-weight: 600; }
.app2 .me-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.app2 .me-txt b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app2 .me-txt small { color: var(--ink3); font-size: 12px; }
.app2 .me-btns, .app2 .top-acts { display: flex; gap: 2px; }
.app2 .me-btns { flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.app2 .side-me .btn.iconbtn, .app2 .topbar .btn.iconbtn { width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--ink2); }
.app2 .side-me .btn.iconbtn:hover, .app2 .topbar .btn.iconbtn:hover { background: var(--soft); color: var(--ink); }

/* the main column and its slim top bar */
.app2-main { min-width: 0; display: flex; flex-direction: column; }
.app2 .topbar { position: static; flex-wrap: nowrap; gap: 10px; padding: 12px 24px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.app2 .topbar .crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-weight: 500; }
.app2 .topbar .crumb .ico { width: 18px; height: 18px; }
.app2 .topbar .grow { flex: 1; }
.app2 .topbar .top-acts, .app2 .topbar .phone-venue { display: none; }
.app2 main { max-width: 1600px; width: 100%; padding: 22px 24px 28px; }
.app2 .tabbar, .app2 .more-sheet { display: none; }

/* stat cards */
.app2 .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.app2 .stat { position: relative; padding: 18px 20px; }
.app2 .stat-t { color: var(--ink2); font-size: 14.5px; padding-right: 44px; }
.app2 .stat-n { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.app2 .stat-n small { font-size: 15px; color: var(--ink3); font-weight: 400; }
.app2 .stat-d { font-size: 12.5px; color: var(--ink3); }
.app2 .stat-ico { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px rgba(15,23,42,.10); display: grid; place-items: center; }
.app2 .stat-ico .ico { width: 17px; height: 17px; }
.app2 .tone-blue { color: #0369a1; } .app2 .tone-sky { color: #0ea5e9; } .app2 .tone-green { color: #059669; } .app2 .tone-amber { color: #d97706; }
:root[data-theme="dark"] .app2 .stat-ico { background: var(--surface2); box-shadow: none; }
:root[data-theme="dark"] .app2 .tone-blue { color: #38bdf8; }

/* Timeline */
.app2 .page-head h2 { margin-right: auto; }
.app2 .page-head h2:has(+ .page-help) { margin-right: 0; }   /* the ? sits beside the title, and buttons go to the right (version 159) */
.app2 .legend span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.app2 .legend i { margin: 0; border-radius: 3px; }
.app2 .tl { border-radius: 16px; overflow-x: auto; }
.app2 .tl-hours { background: var(--surface); }
.app2 .tl-hours .hr { color: var(--ink3); }
.app2 .tl-name { border-right: 0; font-weight: 600; }
.app2 .tl-name .hint { font-weight: 400; color: var(--ink3); }
.app2 .tl-cells { height: 50px; border-bottom-color: var(--line2); background-image: linear-gradient(90deg, var(--line2) 1px, transparent 1px); }
.app2 .tl-row:nth-child(even) .tl-cells { background-color: transparent; }
.app2 .blk { top: 7px; bottom: 7px; border-radius: 10px; border-width: 1px; border-style: solid; padding: 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.app2 .blk.booked { background: #fff7e6; border-color: #f5c46b; color: #8a5a00; }
.app2 .blk.arrived, .app2 .blk.live { background: #e0f2fe; border-color: #38bdf8; color: #0c4a6e; }
.app2 .blk.live { border-style: dashed; }
:root[data-theme="dark"] .app2 .blk.booked { background: #33270d; border-color: #9a6b12; color: #f5c46b; }
:root[data-theme="dark"] .app2 .blk.arrived, :root[data-theme="dark"] .app2 .blk.live { background: #082f49; border-color: #38bdf8; color: #bae6fd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app2 .blk.booked { background: #33270d; border-color: #9a6b12; color: #f5c46b; }
  :root:not([data-theme="light"]) .app2 .blk.arrived, :root:not([data-theme="light"]) .app2 .blk.live { background: #082f49; border-color: #38bdf8; color: #bae6fd; } }
.app2 .nowline { background: #e5484d; width: 2px; }
.app2 .tl.lb { border-style: dashed; box-shadow: none; }

/* Live View */
.app2 .tb-head h2 { margin-right: 8px; }
.app2 .tb-pill { border-radius: 8px; min-height: 30px; font-weight: 500; }
.app2 .tb-split { grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.app2 .tb-floor { border-radius: 16px; box-shadow: var(--card-shadow); }
.app2 .tb-floor .floor-head { background: var(--surface); border-bottom-color: var(--line2); padding: 14px 20px; }
.app2 .tb-floor .floor-head h3 { font-size: 17px; }
.app2 .plan { min-width: 720px; border-radius: 14px; background-color: var(--bg); background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: calc(100% / 24) calc(100% / 14); background-position: calc(100% / 48) calc(100% / 28); }
.app2 .plan .tile { border-width: 1px; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 12px rgba(15,23,42,.06); }
.app2 .plan .tile .nm { font-weight: 600; letter-spacing: -.01em; }
.app2 .plan .tile .st { font-weight: 600; }
.app2 .tile.free { border-color: #a7e3c9; }
.app2 .tile.free.pooltbl[class*="felt-"] .st { color: #047857; }
.app2 .tile.held { border-color: #f5c46b; }
.app2 .tile.use { background: #0f172a; border-color: #0f172a; color: #f8fafc; box-shadow: 0 8px 20px rgba(15,23,42,.22); }
.app2 .tile.use .trio > div, .app2 .tile.use .trio .tr-name { color: #f8fafc; }
.app2 .tile.use .trio .tr-time { font-family: inherit; font-weight: 600; font-size: 1.5em; letter-spacing: -.02em; color: #7dd3fc; }
:root[data-theme="dark"] .app2 .tile.use { background: #e0f2fe; border-color: #e0f2fe; color: #0f172a; }
:root[data-theme="dark"] .app2 .tile.use .trio > div, :root[data-theme="dark"] .app2 .tile.use .trio .tr-name { color: #0f172a; }
:root[data-theme="dark"] .app2 .tile.use .trio .tr-time { color: #0369a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app2 .tile.use { background: #e0f2fe; border-color: #e0f2fe; color: #0f172a; }
  :root:not([data-theme="light"]) .app2 .tile.use .trio > div, :root:not([data-theme="light"]) .app2 .tile.use .trio .tr-name { color: #0f172a; }
  :root:not([data-theme="light"]) .app2 .tile.use .trio .tr-time { color: #0369a1; } }
.app2 .tile .pk { opacity: .45; transform: translate(-50%, -50%) scale(.7); }
.app2 .tile.sel { outline: 3px solid #38bdf8; outline-offset: 3px; }
.app2 .tb-rail { top: 16px; }
.app2 .tb-card { padding: 16px 20px; }
.app2 .tb-cap { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink2); }
.app2 .tb-plans .stats { margin: 0; }

/* Version 133: the sidebar shrinks to a rail of icons (the button at the top left of the page; remembered in this browser) */
.app2 { transition: grid-template-columns .18s ease; }
.app2 .topbar .sidebtn { margin-left: -8px; }
.app2 .side .brand-mini { display: none; }
:root[data-side="mini"] .app2 { --side-w: 76px; }
:root[data-side="mini"] .app2 .side { padding: 20px 12px; }
:root[data-side="mini"] .app2 .side .brand { justify-content: center; margin: 2px 0 14px; }
:root[data-side="mini"] .app2 .side .brand:not(.has-logo), :root[data-side="mini"] .app2 .side .brand .login-logo,
:root[data-side="mini"] .app2 .venue-txt, :root[data-side="mini"] .app2 .side-sec, :root[data-side="mini"] .app2 .side .nav span,
:root[data-side="mini"] .app2 .me-txt { display: none; }
:root[data-side="mini"] .app2 .side .brand-mini { display: block; width: 36px; height: 36px; }
:root[data-side="mini"] .app2 .side .brand .brand-logo { width: auto; height: 36px; max-width: 48px; max-height: 36px; }
:root[data-side="mini"] .app2 .venue-box { justify-content: center; padding: 8px 0; }
:root[data-side="mini"] .app2 .side .nav button { justify-content: center; padding: 0; }
:root[data-side="mini"] .app2 .side-me { flex-direction: column; padding: 10px 0; gap: 8px; }
:root[data-side="mini"] .app2 .me-btns { flex-direction: column; align-items: center; flex-basis: auto; padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .app2 { transition: none; } }
/* phones: no sidebar; a slim bar at the top and the tab bar at the bottom */
@media (max-width: 760px) {
  .app2 { display: block; padding-bottom: 76px; }
  .app2 .side { display: none; }
  .app2 .topbar { padding: 10px 16px; }
  .app2 .topbar .crumb, .app2 .topbar .sidebtn { display: none; }
  .app2 .topbar .phone-venue { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .app2 .topbar .top-acts { display: flex; }
  .app2 main { padding: 16px; }
  .app2 h2 { font-size: 22px; }
  .app2 .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app2 .stat { padding: 14px; }
  .app2 .stat-n { font-size: 24px; margin: 10px 0 4px; }
  .app2 .stat-ico { width: 32px; height: 32px; top: 10px; right: 10px; }
  .app2 .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .app2 .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--ink3); font: inherit; font-size: 11px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
  .app2 .tabbar button[aria-current="page"] { background: var(--pill); color: var(--pill-ink); }
  .app2 .more-sheet { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15,23,42,.35); }
  .app2 .more-card { position: absolute; left: 0; right: 0; bottom: 70px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 -10px 30px rgba(15,23,42,.18); }
  .app2 .more-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
  .app2 .more-item[aria-current="page"] { background: var(--pill); color: var(--pill-ink); }
}

/* ---------- Checklists (an addon, v135): forms in the style of Google Forms. checklists.tsx (the page and filling in) and
   checklist-builder.tsx (Admin → Checklists). A coloured band on the title card, white cards, a blue bar on the card being edited. ---------- */
.ck { --ck-band: #065f46; --ck-sel: #38bdf8; --ck-soft: var(--surface2); --ck-link: #0369a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ck { --ck-band: #10b981; --ck-link: #38bdf8; } }
:root[data-theme="dark"] .ck { --ck-band: #10b981; --ck-link: #38bdf8; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-day { margin: -4px 0 16px; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 600; }
.ck-back .ico { width: 16px; height: 16px; }
.ck-crumbs { color: var(--ink3); font-size: 14px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ck-crumbs .linkbtn { color: var(--ink2); }
.ck-head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ck-head h2 { margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.ck-tabs { display: flex; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 22px; }
.ck-tabs button { border: 0; background: none; padding: 10px 18px 12px; font: inherit; font-weight: 600; color: var(--ink2); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.ck-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ck-tabs .n { background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 12px; padding: 1px 7px; }
.ck-canvas { max-width: 780px; margin: 0 auto; position: relative; display: flex; flex-direction: column; gap: 14px; }
.ck-stack { display: flex; flex-direction: column; }
.ck-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; position: relative; box-shadow: var(--card-shadow, none); }
.ck-card.title { border-top: 10px solid var(--ck-band); padding-top: 20px; }
.ckb-canvas .ck-card { cursor: default; }
.ckb-canvas .ck-card:not(.sel):hover { border-color: var(--ink3); }
.ck-card.sel { border-left: 6px solid var(--ck-sel); padding-left: 19px; box-shadow: 0 2px 4px rgba(15,23,42,.06), 0 10px 28px rgba(15,23,42,.10); }
.ck-card.flag { border-color: #f59e0b; }
.ck-card.err { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.ck-stack > .ck-card { border-top-left-radius: 0; }
.ck-title { display: block; width: 100%; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; padding: 0 0 6px; margin-bottom: 10px; overflow-wrap: anywhere; }
input.ck-title { border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: 0; }
input.ck-title:focus { border-bottom: 2px solid var(--ck-sel); padding-bottom: 5px; }
.ck-desc { color: var(--ink2); white-space: pre-wrap; }
textarea.ck-desc, .ck-auto { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; resize: none; padding: 4px 0 6px; outline: 0; overflow: hidden; line-height: 1.45; field-sizing: content; min-height: 0; }
.ck-auto:focus { border-bottom: 2px solid var(--ck-sel); padding-bottom: 5px; }
.ck-card .ck-auto { margin-top: 8px; }
.ck-sec { display: inline-flex; align-self: flex-start; background: var(--ck-band); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 10px 10px 0 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ck-sec { color: #052e22; } }
:root[data-theme="dark"] .ck-sec { color: #052e22; }
.ck-texttitle { font-size: 20px; font-weight: 600; }
.ck-qlabel { font-size: 16px; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.ck-qlabel .req, .ck-tick .req { color: var(--danger); margin-left: 2px; }
.ck-qhint { color: var(--ink3); font-size: 13.5px; margin-bottom: 10px; }
.ck-qhint.pre { white-space: pre-wrap; }
.ck-qtype { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 13px; font-weight: 500; }
.ck-qtype .ico { width: 15px; height: 15px; }
.ck-reqnote { color: var(--danger); font-size: 13px; margin-top: 10px; }
.ck-late { color: var(--danger); font-weight: 600; }

/* building: the question, its kind and answers */
.ck-q { display: flex; gap: 14px; align-items: flex-start; }
.ck-qtext { flex: 1; min-width: 0; width: 100%; background: var(--ck-soft); border: 0; border-bottom: 1px solid var(--ink3); padding: 14px 14px 10px; border-radius: 6px 6px 0 0; font-weight: 500; font-size: 16px; outline: 0; }
.ck-qtext:focus { border-bottom: 2px solid var(--ck-sel); padding-bottom: 9px; }
.ck-helpin { display: block; width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink2); font-size: 14px; padding: 8px 2px 6px; margin: 4px 0 8px; outline: 0; }
.ck-helpin:hover { border-bottom-color: var(--line); } .ck-helpin:focus { border-bottom: 2px solid var(--ck-sel); }
.ck-typewrap { position: relative; flex: 0 0 230px; }
.ck-type { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-weight: 500; background: var(--surface); cursor: pointer; text-align: left; }
.ck-type .chev { margin-left: auto; color: var(--ink3); display: inline-flex; }
.ck-type .ico, .ck-menu .ico { width: 18px; height: 18px; color: var(--ink2); flex: 0 0 auto; }
.ck-menu { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(15,23,42,.22); padding: 6px 0; width: 250px; max-height: min(70vh, 560px); overflow-y: auto; }
.ck-menu-g + .ck-menu-g { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.ck-menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 16px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; }
.ck-menu button:hover { background: var(--surface2); }
.ck-menu button.on { background: var(--accent-soft); }
.ck-opts { margin-top: 4px; }
.ck-opt { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--ink); min-height: 40px; }
.ck-opt .mk { width: 20px; height: 20px; border: 2px solid var(--ink3); border-radius: 50%; flex: 0 0 auto; }
.ck-opt .mk.sq { border-radius: 5px; }
.ck-opt .mk.num { border: 0; width: auto; min-width: 20px; height: auto; color: var(--ink3); font-size: 14px; }
.ck-optin { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; padding: 6px 0; outline: 0; }
.ck-optin:hover { border-bottom-color: var(--line); } .ck-optin:focus { border-bottom: 2px solid var(--ck-sel); }
.ck-opt.add .linkbtn { color: var(--ck-link); font-weight: 600; }
.ck-flagchip { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; border: 1px dashed var(--line); background: transparent; color: var(--ink3); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ck-flagchip .ico { width: 13px; height: 13px; }
.ck-flagchip:hover { border-color: var(--ink3); color: var(--ink2); }
.ck-flagchip.on { border: 1px solid transparent; color: var(--danger); background: var(--danger-bg); }
.ck-flagchip.static { cursor: default; margin-left: 4px; }
.ck-opt > .ck-flagchip:not(.static) { margin-left: auto; }
.ck .ib { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink2); cursor: pointer; flex: 0 0 auto; }
.ck .ib:hover:not(:disabled) { background: var(--surface2); color: var(--ink); }
.ck .ib:disabled { opacity: .35; cursor: default; }
.ck .ib .ico { width: 20px; height: 20px; }
.ck-opt .ib.x { width: 34px; height: 34px; }
.ck-range { display: flex; align-items: center; gap: 8px 10px; margin-top: 10px; flex-wrap: wrap; color: var(--ink2); font-size: 14px; }
.ck-range .ico { width: 16px; height: 16px; color: var(--held); }
.ck-range .box { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 84px; color: var(--ink); background: var(--surface); font-weight: 500; }
.ck-line { border-bottom: 1px dotted var(--ink3); color: var(--ink3); padding: 6px 0; width: 55%; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.ck-line .ico { width: 16px; height: 16px; }
.ck-line.wide { width: 100%; padding-bottom: 22px; }
.ck-sigshape { border: 1.5px dashed var(--line); border-radius: 10px; height: 84px; display: flex; align-items: flex-end; padding: 10px 14px; color: var(--ink3); font-size: 14px; max-width: 420px; }
.ck-askphoto { display: flex; align-items: center; gap: 6px; margin-top: 8px; } .ck-askphoto .ico { width: 15px; height: 15px; }
.ck-foot { display: flex; justify-content: flex-end; align-items: center; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; color: var(--ink2); }
.ck-foot .more { margin-right: auto; display: flex; gap: 8px; }
.ck-foot .sep { width: 1px; height: 28px; background: var(--line); margin: 0 10px; }
.ck-tools { position: absolute; right: -66px; top: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--card-shadow, var(--shadow)); gap: 2px; z-index: 2; }
.ck-tools button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink2); border: 0; background: transparent; cursor: pointer; }
.ck-tools button:hover { background: var(--surface2); color: var(--accent); }
.ck-tools .ico { width: 21px; height: 21px; }
.ckb-addrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 4px 0 8px; }
/* a switch: a checkbox drawn as a sliding toggle */
.tg { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; position: relative; }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg i { width: 36px; height: 20px; border-radius: 99px; background: var(--line); position: relative; flex: 0 0 auto; transition: background .15s; }
.tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.tg input:checked + i { background: var(--accent); }
.tg input:checked + i::after { left: 18px; }
.tg input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tg i, .tg i::after { transition: none; } }

/* Admin → Checklists: the list, templates and staff names */
.ckb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ckb-head p { margin: 4px 0 0; }
.ckb-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ckb-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 14px 0 0; }
.ckb-row:last-child { border-bottom: 0; }
.ckb-row.off .ckb-main b { color: var(--ink3); }
.ckb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; border-left: 5px solid var(--accent); }
.ckb-row.off .ckb-main { border-left-color: var(--line); }
.ckb-main:hover { background: var(--surface2); }
.ckb-main b { font-size: 16px; }
.ckb-main .pill { margin-left: 0; }
.ckb-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ckb-acts .btn.iconbtn { width: 34px; padding: 0; }
.ckb-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.ckb-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 12px; padding: 14px; background: var(--surface); cursor: pointer; }
.ckb-tpl:hover { background: var(--surface2); } .ckb-tpl:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ckb-tpl span { color: var(--ink2); font-size: 13px; }
.ckb-preview-bar { max-width: 780px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.ckb-preview-bar span { display: inline-flex; align-items: center; gap: 8px; }
.ckb-preview-bar .ico { width: 18px; height: 18px; }
.ckb-settings h3 { margin-bottom: 10px; }
.ckb-settings .seg { margin-bottom: 12px; }
.ckb-settings .chiprow { margin: 8px 0; }
.ckb-due { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ckb-due .field { min-width: 160px; }
.ckb-due .field:last-child { flex: 1; min-width: 220px; }
.ckb-venuesel { min-width: 180px; }

/* the Checklists page */
.ck-group { margin: 22px 0 10px; color: var(--ink2); }
.ck-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.ck-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--card-shadow, none); }
.ck-item .band { height: 6px; background: var(--ck-band, #065f46); }
:root[data-theme="dark"] .ck-item .band { background: #10b981; }
.ck-item.over .band { background: var(--danger); }
.ck-item.done .band { background: var(--line); }
.ck-item .in { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ck-item .meta { color: var(--ink2); font-size: 14px; }
.ck-item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.ck-item .row .btn { flex: 0 0 auto; min-width: 88px; }
.ck-flagline { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 14px; font-weight: 600; }
.ck-flagline .ico { width: 16px; height: 16px; }
.ck-st { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ck-st.sm { font-size: 12px; padding: 2px 8px; }
.ck-st .ico { width: 15px; height: 15px; flex: 0 0 auto; }
.ck-st.done { background: var(--free-bg); color: var(--free); }
.ck-st.due { background: var(--held-bg); color: var(--held); }
.ck-st.over { background: var(--danger-bg); color: var(--danger); }
.ck-st.any { background: var(--surface2); color: var(--ink2); }
.ck-recent { margin-top: 24px; padding: 18px 0 6px; }
.ck-recent h3 { padding: 0 18px 8px; }
.ck-recent .empty { padding: 20px; }
.ck-rows { display: flex; flex-direction: column; }
.ck-rrow { display: grid; grid-template-columns: 170px minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 14px; width: 100%; }
.ck-rrow:hover { background: var(--surface2); }
.ck-rwhen { color: var(--ink2); }
.ck-rname { overflow-wrap: anywhere; }
.ck-rtags { display: flex; gap: 6px; justify-content: flex-end; }
.ck-more { display: flex; justify-content: center; padding: 12px; }
.ck-card .ck-rows { margin: 0 -24px -22px; }
/* one response */
.ck-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink2); font-size: 14px; }
.ck-meta > span:not(.ck-st) { display: inline-flex; align-items: center; gap: 6px; }
.ck-meta .ico { width: 16px; height: 16px; }
.ck-view-acts { margin-top: 14px; }
.ck-flagtag { margin-left: 4px; }
.ck-ans { font-size: 15px; overflow-wrap: anywhere; }
.ck-ans.long { white-space: pre-wrap; }
.ck-ticked { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.ck-ticked .ico { width: 16px; height: 16px; color: var(--free); }
.ck-missed { color: var(--danger); font-size: 14px; margin-top: 6px; }
.ck-thumb { display: inline-block; margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.ck-thumb img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.ck-thumb.sig { background: #fff; }
.ck-thumb.sig img { max-height: 140px; }
.dialog.ck-respdlg { background: var(--bg); }
.dialog.ck-respdlg .ck-view { padding: 20px 20px 0; }
.dialog.ck-respdlg .dlg-foot { background: var(--surface); border-radius: 0 0 14px 14px; }

/* filling in */
.ck-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ck-bar .prog { flex: 1; min-width: 80px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ck-bar .prog i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.ck-who { margin: 4px 0 6px; }
.ck-line-in { display: block; width: 60%; border: 0; border-bottom: 1px solid var(--ink3); background: transparent; padding: 8px 2px; font-size: 16px; outline: 0; margin-top: 4px; }
.ck-line-in.short { width: auto; min-width: 180px; }
textarea.ck-line-in { width: 100%; resize: vertical; }
.ck-line-in:focus { border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
.ck-line-in.warn { border-bottom-color: #f59e0b; }
.ck-select { min-width: 220px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 15px; }
.ck-yn { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-yn button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 26px; min-height: 44px; font-weight: 600; cursor: pointer; }
.ck-yn button:hover { border-color: var(--ink3); }
.ck-yn button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ck-yn button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ck-tick { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 40px; cursor: pointer; position: relative; }
.ck-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-tick .bx { width: 22px; height: 22px; border: 2px solid var(--ink3); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: transparent; }
.ck-tick .bx .ico { width: 15px; height: 15px; stroke-width: 3; }
.ck-tick .bx.round { border-radius: 50%; }
.ck-tick input:checked + .bx { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ck-tick input:checked + .bx.round { background: transparent; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 12px var(--accent); }
.ck-tick input:focus-visible + .bx { outline: 3px solid var(--accent); outline-offset: 2px; }
.ck-tick.big { font-size: 16px; font-weight: 500; }
.ck-tick.big .bx { width: 26px; height: 26px; }
.ck-tickhelp { margin: 0 0 0 38px; }
.ck-clearone { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ck-link); }
.ck-warn { margin-top: 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.ck-warn .ico, .ck-errmsg .ico { width: 17px; height: 17px; flex: 0 0 auto; }
.ck-errmsg { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 12px; }
.ck-photo { display: inline-flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 12px 18px; color: var(--ink2); font-weight: 500; cursor: pointer; position: relative; margin-top: 8px; min-height: 48px; }
.ck-photo:hover { border-color: var(--ink3); color: var(--ink); }
.ck-photo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-photo:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ck-photo.busy { opacity: .6; cursor: progress; }
.ck-photo.static { cursor: default; margin-top: 0; }
.ck-photo .ico { width: 20px; height: 20px; }
.ck-photo-done { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ck-photo-done img { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.ck-sig canvas { display: block; width: 100%; max-width: 520px; height: 150px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair; }
.ck-sig-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; max-width: 520px; justify-content: space-between; }
.ck-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 24px; }
.ck-submit .btn.primary { min-width: 110px; }
.ck-clear { margin-left: auto; color: var(--ck-link); font-weight: 600; }

/* narrower screens: the side toolbar joins the add buttons, and the type menu goes under the question */
@media (max-width: 960px) { .ck-tools { display: none; } }
@media (max-width: 640px) {
  .ck-card { padding: 18px 16px; border-radius: 12px; }
  .ck-card.sel { padding-left: 12px; }
  .ck-card .ck-rows { margin: 0 -16px -18px; }
  .ck-title { font-size: 24px; }
  .ck-tabs button { padding: 10px 12px 12px; }
  .ck-q { flex-direction: column; gap: 10px; }
  .ck-typewrap { flex: none; width: 100%; }
  .ck-menu { left: 0; right: auto; width: 100%; }
  .ck-line, .ck-line-in { width: 100%; }
  .ck-line-in.short { width: 100%; min-width: 0; }
  .ck-foot .sep { margin: 0 4px; }
  .ck-foot .more { flex-basis: 100%; margin-bottom: 4px; }
  .ck-opt { flex-wrap: wrap; }
  .ck-opt > .ck-flagchip:not(.static) { margin-left: 32px; }
  .ck-rrow { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 16px; }
  .ck-rrow .ck-rwhen { grid-column: 1; grid-row: 2; font-size: 13px; }
  .ck-rrow .ck-rname { grid-column: 1; grid-row: 1; }
  .ck-rrow > span:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; color: var(--ink2); }
  .ck-rrow .ck-rtags { grid-column: 2; grid-row: 2; }
  .ck-recent h3 { padding: 0 16px 8px; }
  .ckb-row { flex-wrap: wrap; padding: 0 0 12px; }
  .ckb-acts { padding-left: 21px; }
  .ck-clear { margin-left: 0; }
  .dialog.ck-respdlg .ck-view { padding: 12px 12px 0; }
}

/* ---------- Cashing-up (a custom addon made for Sharkeys, v137) ---------- */
/* The tag on anything from a custom addon, so it stands apart from the general addons. */
.bf-custom { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font: 700 12px/1.3 Inter, system-ui, sans-serif; letter-spacing: .01em; text-transform: none; white-space: nowrap; vertical-align: middle; }
.bf-custom .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.nav-custom { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nav button[aria-current="page"] .nav-custom { background: #5b21b6; color: #ede9fe; }
.bf-addon.custom { border-color: #c4b5fd; background: linear-gradient(90deg, #f5f3ff, transparent 60%); }
.cu-key i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: #fef9c3; border: 1px solid #ead96b; vertical-align: -2px; margin-right: 6px; }
.cu-key { margin-left: auto; font-size: 13px; color: var(--ink2); }
.cu-daynav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cu-signed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cu-signed .ico { width: 18px; height: 18px; }
.cu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cu-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cu-side { position: sticky; top: 76px; }
.cu-sec h3, .cu-signoff h3, .cu-chart h3, .cu-tablecard h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cu-letter { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; }
.cu-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.cu-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cu-ref { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--ink3); }
.cu-in { width: 120px; min-height: 34px; padding: 5px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.cu-in.bad { border-color: var(--danger); background: var(--danger-bg); }
.cu-in:disabled { background: var(--surface2); color: var(--ink2); }
.cu-grid4 .cu-in { width: 100%; }
.cu-tot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fef9c3; border: 1px solid #ead96b; color: #0f172a; font-variant-numeric: tabular-nums; }
.cu-tot small { display: block; font-size: 12px; color: #64748b; }
.cu-grid4 { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px 92px; gap: 6px 8px; align-items: center; margin-top: 10px; font-size: 14px; }
.cu-grid4 small { display: block; font-size: 11px; }
.cu-h { font-size: 12px; color: var(--ink3); text-align: right; line-height: 1.2; }
.cu-num { text-align: right; font-variant-numeric: tabular-nums; }
.cu-calc { display: block; min-height: 34px; padding: 6px 10px; border-radius: 8px; background: #fef9c3; border: 1px solid #ead96b; color: #0f172a; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cu-neg { color: var(--danger); } .cu-pos { color: var(--held); } .cu-zero { color: var(--free); }
.cu-calc.cu-neg { color: #b3261e; } .cu-calc.cu-pos { color: #8a5a00; } .cu-calc.cu-zero { color: #157347; }
.cu-big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.cu-formula { margin: 10px 0; padding: 7px 10px; border-radius: 8px; background: var(--surface2); font: 12px ui-monospace, Menlo, monospace; color: var(--ink2); }
.cu-sl { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.cu-sl span { color: var(--ink2); }
.cu-signoff { margin-top: 16px; }
.cu-signer { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.cu-signer.done { border-color: var(--free); background: var(--free-bg); }
.cu-signer .btn.primary { width: 100%; }
.cu-role { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); }
.cu-tick { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cu-tick input { width: 18px; height: 18px; accent-color: var(--accent); }
.cu-found { display: flex; flex-direction: column; gap: 4px; width: 100%; font-size: 14px; }
.cu-found textarea { min-height: 70px; }
.cu-names { display: flex; flex-wrap: wrap; gap: 6px; }
.cu-name { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.cu-name.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cu-bottom { display: none; }
.cu-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cu-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink2); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.cu-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cu-rbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cu-rbar .grow { flex: 1; }
.cu-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cu-seg button { border: 0; border-right: 1px solid var(--line); background: none; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.cu-seg button:last-child { border-right: 0; }
.cu-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cu-period, .cu-custom { display: inline-flex; align-items: center; gap: 8px; }
.cu-custom input { width: auto; }
.cu-chart, .cu-tablecard { margin-top: 16px; }
.cu-chart svg { display: block; margin-top: 8px; }
.cu-axis { stroke: var(--ink3); stroke-opacity: .5; }
.cu-tick-t { font-size: 11px; fill: var(--ink3); }
.cu-bar-neg { fill: #b3261e; background: #b3261e; } .cu-bar-pos { fill: #c08400; background: #c08400; } .cu-bar-zero { fill: var(--ink3); } .cu-bar-open { background: #e2a0a0; }
.cu-tablecard { overflow-x: auto; }
.cu-table td, .cu-table th { white-space: nowrap; }
.cu-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.cu-table tfoot td { font-weight: 700; }
.cu-why { white-space: normal !important; max-width: 280px; color: var(--ink2); }
.cu-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink2); margin-top: 6px; }
.cu-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cu-pbars { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cu-pbar { display: grid; grid-template-columns: 120px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.cu-pbar .n { text-align: right; }
.cu-track { position: relative; height: 14px; border-radius: 99px; background: var(--surface2); }
.cu-track > span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.cu-track .cu-mid { left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink3); border-radius: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bf-custom, :root:not([data-theme="light"]) .nav-custom { background: #2a1c4f; color: #c4b5fd; } :root:not([data-theme="light"]) .bf-addon.custom { border-color: #4c1d95; background: linear-gradient(90deg, #1e1538, transparent 60%); } }
:root[data-theme="dark"] .bf-custom, :root[data-theme="dark"] .nav-custom { background: #2a1c4f; color: #c4b5fd; }
:root[data-theme="dark"] .bf-addon.custom { border-color: #4c1d95; background: linear-gradient(90deg, #1e1538, transparent 60%); }
@media (max-width: 1180px) { .cu-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cu-side { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) {
  .cu-grid { grid-template-columns: minmax(0, 1fr); }
  .cu-in { width: 108px; }
  .cu-grid4 { grid-template-columns: minmax(0, 1fr) 74px 74px 74px; gap: 6px; }
  .cu-key { margin-left: 0; }
  .cu-bottom { display: flex; position: sticky; bottom: 76px; z-index: 5; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
  .cu-bottom b { font-size: 20px; }
  .cu-pbar { grid-template-columns: 80px 1fr 80px; }
}
/* Timeline: an activity's name opens its pop-up, as on Live View (GitHub issue 50); an opened-out closed space folds back (GitHub issue 47). */
.tl-name .tl-sp { font-weight: 700; font-size: inherit; color: var(--ink); text-align: left; padding: 0; text-decoration: underline dotted var(--line); text-underline-offset: 3px; }
.tl-name .tl-sp:hover { color: var(--accent); }
.tl-hours .tl-flhide { align-self: flex-start; padding: 2px 0; font-size: 12px; }
.tl-row.closedfloor:nth-child(n) .tl-cells { background-color: var(--shut-bg); }   /* every row of an opened-out closed space, not every other one */

/* Version 139: the shared BilliardFlow sign-in (accounts.billiardflow.com), and "Continue with Google" on the app's and the console's sign-in pages. */
.so-wide { width: 100%; }
.so-title { font-size: 24px; margin: 4px 0 0; text-align: center; }
.login .so-title + .muted { text-align: center; margin: 0 0 16px; }
.so-err { display: block; margin: 0 0 12px; }
.btn.so-google { gap: 10px; background: #fff; color: #1f1f1f; border-color: #747775; font-family: Roboto, Arial, sans-serif; font-weight: 500; text-decoration: none; }
.btn.so-google:hover { background: #f3f6fb; }
.btn.so-google img { width: 18px; height: 18px; }
.so-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ink3); font-size: 13px; }
.so-or::before, .so-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.so-foot { margin: 14px 0 0; text-align: center; }
.so-foot a { color: #0369a1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .so-foot a { color: #38bdf8; } }
:root[data-theme="dark"] .so-foot a { color: #38bdf8; }
.so-msg { margin: 8px 0 16px; }
.login a.btn { text-decoration: none; }

/* ---------- Admin → Company settings → Staff (version 140) ---------- */
.st-head { flex-wrap: wrap; }
.st-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.st-tools select { width: auto; }
.st-left, .st-check { display: flex; gap: 8px; align-items: center; }
.st-left { white-space: nowrap; color: var(--muted); }
.st-intro { margin: -4px 0 14px; max-width: 80ch; }
.t tr.st-gone td { opacity: .6; }
.st-dlg .dlg-actions .btn.danger { margin-right: auto; }
@media (max-width: 700px) { .st-tools { width: 100%; justify-content: space-between; } .st-tools select { flex: 1 1 100%; } }

/* ---------- Office → Handover (version 165): the daily handover; .ho-print is its A4 sheet ---------- */
.ho-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ho-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ho-caption { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.ho-caption .linkbtn { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ho-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.ho-empty .ico { width: 36px; height: 36px; color: var(--ink3); }
.ho-sheet { padding: 0; overflow: hidden; }
.ho-sheet-head { display: flex; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.ho-sheet-head > div:first-child { margin-right: auto; min-width: 0; }
.ho-sheet-head h3 { font-size: 22px; }
.ho-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ho-who span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface2); font-weight: 600; font-size: 14px; }
.ho-who small { background: var(--ink); color: var(--surface); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ho-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ho-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ho-fig { display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; min-width: 0; }
.ho-fig + .ho-fig { border-left: 1px solid var(--line); }
.ho-fig > span { font-size: 13px; color: var(--ink2); }
.ho-fig b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ho-fig small { font-size: 12.5px; color: var(--ink3); }
.ho-fig.todo b { color: var(--held); } .ho-fig.good b { color: var(--free); }
.ho-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.ho-two .ho-block { border-bottom: 0; }
.ho-two .ho-block + .ho-block { border-left: 1px solid var(--line); }
.ho-block { padding: 16px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.ho-sheet > .ho-block:last-of-type { border-bottom: 0; }
.ho-block h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); }
.ho-block h4 .ico { width: 17px; height: 17px; color: var(--accent); }
.ho-block p { margin: 0; }
.ho-plain, .ho-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.ho-bullets li { position: relative; padding-left: 18px; }
.ho-bullets li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ho-plain li { font-weight: 500; }
.ho-company { background: var(--surface2); }
.ho-sec .ho-company { margin: 16px -20px -20px; border-radius: 0 0 14px 14px; border-bottom: 0; }
.ho-lock { margin-left: auto; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink3); }
.ho-foot { padding: 10px 22px 14px; }
.ho-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 96px); overflow: hidden; }
.ho-side h3 { font-size: 18px; }
.ho-find { display: flex; gap: 8px; } .ho-find input { flex: 1; min-width: 0; }
.ho-list { list-style: none; margin: 0 -8px; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ho-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.ho-list button:hover { background: var(--surface2); }
.ho-list button.on { background: var(--accent-soft); }
.ho-list .d { display: flex; align-items: center; gap: 8px; } .ho-list .d .pill { font-size: 11px; padding: 1px 8px; }
.ho-list .w { grid-column: 1; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-list .m { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ho-form { display: flex; flex-direction: column; gap: 14px; }
.ho-sec { padding: 20px; }
.ho-sec h3 { font-size: 18px; margin-bottom: 12px; }
.ho-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ho-sec-head h3 { margin-right: auto; }
.ho-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ho-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ho-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 14px; }
.ho-field + .ho-field { margin-top: 0; }
.ho-sec > .ho-field + .ho-field { margin-top: 14px; }
.ho-field textarea { min-height: 0; resize: vertical; }
.ho-field .cu-calc { min-height: 40px; padding: 9px 12px; font-size: 16px; }
.ho-pound { position: relative; display: block; }
.ho-pound i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink3); }
.ho-pound .cu-in { width: 100%; min-height: 40px; padding-left: 26px; font-size: 16px; }
.ho-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.hm-wrap { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.hm-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.hm-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.hm-row > .ho-field { flex: 1 1 220px; }
.hm-tools { display: flex; gap: 6px; }
@media (max-width: 1100px) { .ho-grid { grid-template-columns: minmax(0, 1fr); } .ho-side { position: static; max-height: none; } .ho-list { max-height: 360px; } }
@media (max-width: 720px) {
  .ho-figs, .ho-money { grid-template-columns: minmax(0, 1fr); }
  .ho-fig + .ho-fig { border-left: 0; border-top: 1px solid var(--line); }
  .ho-fig { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 16px; }
  .ho-fig > span { flex: 1 0 40%; } .ho-fig b { font-size: 22px; } .ho-fig small { flex: 1 0 100%; }
  .ho-two, .ho-pair { grid-template-columns: minmax(0, 1fr); }
  .ho-two .ho-block + .ho-block { border-left: 0; border-top: 1px solid var(--line); }
  .ho-block, .ho-sheet-head { padding-left: 16px; padding-right: 16px; }
  .ho-sec { padding: 16px; } .ho-sec .ho-company { margin: 16px -16px -16px; }
  .ho-actions .btn { flex: 1; }
}
.pv-page.ho-print { font-size: 12.5px; padding: 30px 36px; }
.ho-p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid #0f172a; padding-bottom: 8px; margin-bottom: 14px; }
.ho-p-top h1 { font-size: 40px; color: #0f172a; }
.ho-p-top span { font-size: 15px; font-weight: 700; color: #065f46; }
.pv-page table.ho-p-who, .pv-page table.ho-p-tbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; table-layout: fixed; }
.pv-page .ho-p-who th, .pv-page .ho-p-who td, .pv-page .ho-p-tbl th, .pv-page .ho-p-tbl td { border: 1px solid #334155; padding: 7px 10px; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: #0f172a; background: #fff; }
.pv-page .ho-p-who th { background: #e2e8f0; text-align: center; width: 11%; font-weight: 700; }
.pv-page .ho-p-who td { text-align: center; }
.pv-page .ho-p-who td:nth-child(2) { width: 25%; }
.pv-page .ho-p-tbl th { width: 26%; text-align: right; background: #f1f5f9; font-weight: 700; }
.pv-page .ho-p-tbl tr:nth-child(even) td { background: #fff; }
.ho-p-tbl ul { margin: 0; padding-left: 0; list-style: none; }
.ho-p-tbl li + li { margin-top: 3px; }
.ho-p-bul ul { padding-left: 16px; list-style: disc; }
.ho-p-sub { color: #475569; }
.ho-p-none { color: #64748b; }
.hm-row.top { align-items: flex-start; }
.ho-sec-head .pill { margin-bottom: 12px; }
/* Handover saved for later (version 166) */
.ho-draftnote { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 14px 18px; border-color: var(--held); background: var(--held-bg); }
.ho-draftnote > .ico { width: 26px; height: 26px; color: var(--held); flex: 0 0 auto; }
.ho-draftnote > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.ho-draftnote .muted { color: var(--ink2); }
.ho-draftpill { margin-left: 10px; vertical-align: middle; font-size: 12px; }
@media (max-width: 720px) { .ho-draftnote .btn { flex: 1 1 100%; } }
