/* B-SIDE design tokens: the listening room after dark. Taken from the venue (warm dark, walnut shelves, lamp
   brass, the blue of the speakers) with the brandbook's BS bolt and Montserrat. Dark everywhere by default;
   light only when a person picks it in Settings (boot.js sets html[data-theme] before the first paint). */
:root {
  --ink-dark: #161311;     /* the room's dark, also the text on speaker and brass fills */
  --brass: #C9A26B;        /* the lamps: people (walk-ins, promoters, requests, staff) */
  --speaker: #8DB6D4;      /* the speakers: the action colour */
  --danger: #E5484D;
  --ok: #2EA66B;
  --gold: #E9A23B;
  /* Fills that carry white text (5:1 and up); the plain --ok / --danger are for icons, borders and big text. */
  --ok-strong: #1F7A4D;
  --danger-strong: #C4262C;
  /* Text on speaker-blue and brass fills: the room's dark reads at 8:1 and up. */
  --on-accent: #161311;

  --page: #161311;
  --surface: #201C19;
  --surface-2: color-mix(in srgb, var(--text) 7%, var(--surface));
  --text: #EEE7DD;         /* paper, not screen white: easier on eyes in a dark room */
  --hint: #A69C91;
  --sub: var(--hint);
  --header: var(--hint);
  --line: color-mix(in srgb, var(--hint) 22%, transparent);
  --accent: var(--speaker);
  --accent-text: var(--speaker);
  --ok-text: #4CC38A;
  --pink-text: #D8B886;
  --danger-text: #FF8589;
  --accent-soft: color-mix(in srgb, var(--speaker) 12%, var(--surface));
  --pink-soft: color-mix(in srgb, var(--brass) 18%, var(--surface));
  --danger-soft: color-mix(in srgb, var(--danger) 14%, var(--surface));
  --ok-soft: color-mix(in srgb, var(--ok) 16%, var(--surface));
  --radius: 16px;
  --radius-s: 12px;
  --shadow: none;
  /* What floats over the page (a sheet, a toast, a chart tip) lifts; everything else lies flat. */
  --lift: 0 8px 24px rgba(0, 0, 0, .5);
  /* Montserrat, as the brandbook's own layouts set it (not the Alternates: its Cyrillic misreads). */
  --display: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  /* Chart palette from the room (speaker, brass, plant green, walnut, paper / slate in light). Measured: every mark
     ≥3:1 on its card; the five series stay ≥13 ΔE apart under protan, deutan and tritan simulation (Machado 2009). */
  --cat-1: #8DB6D4; --cat-2: #C9A26B; --cat-3: #7FA07A; --cat-4: #99623E; --cat-5: #D9CFC2; --cat-other: #857A6E;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --page: #F3EEE7;
  --surface: #FBF8F4;
  --text: #1F1A17;
  --hint: #6B6158;
  --accent-text: #2B5F80;
  --ok-text: #186B42;
  --pink-text: #7A5A2B;
  --danger-text: #C4262C;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --lift: 0 8px 24px rgba(31, 26, 23, .16);
  --cat-1: #3F7298; --cat-2: #A07A3C; --cat-3: #55804F; --cat-4: #6E4426; --cat-5: #4A5560; --cat-other: #8F8579;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--text);
  font: 1rem/1.4 var(--text-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--speaker) 40%, transparent); color: var(--text); }
input, textarea { caret-color: var(--speaker); }
::placeholder { color: var(--hint); opacity: 1; }
:focus-visible { outline: 2px solid var(--speaker); outline-offset: 2px; }
button { cursor: pointer; }
/* Controls are not text: no selection or callout on a long press, no double-tap-zoom wait. */
button, [role="button"], summary, .tap, .chip, .seg button, .tabbar button {
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
a { color: var(--accent-text); text-decoration: none; }
.icon { flex: none; display: block; }
.icon.flip { transform: scaleX(-1); }

.screen {
  padding: 8px 16px calc(110px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto;
}
/* Reduced motion keeps the fades that say something changed and drops the movement. */
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: fade-in .15s; }
  .toast { transition: opacity 150ms; }
  .btn, .chip, .seg button, .check-btn, .till-btn, .punch-btn, .rate { transition: none; }
}

/* ---- top bar ---- */
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 0 16px; }
.topbar .titles { min-width: 0; }
h1 { font: 600 1.625rem/1.15 var(--display); letter-spacing: -.01em; margin: 2px 0 0; overflow-wrap: anywhere; text-wrap: balance; }
.subtitle { font: 600 .8125rem/1.3 var(--display); color: var(--hint); margin-top: 4px; overflow-wrap: anywhere; }
/* Brand bar on the main screens: the BS bolt, where we are, a rule (the brandbook's social layout). */
.brandbar { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px; border-bottom: 1px solid var(--line); min-height: 40px; }
/* The bolt is drawn in the ink colour through its outline, so it follows the theme. */
.brandbar .mark { width: 24px; height: 20px; flex: none; background: var(--text);
  -webkit-mask: url(/static/brand/bs-mark.svg) center / contain no-repeat; mask: url(/static/brand/bs-mark.svg) center / contain no-repeat; }
.brandbar .where { flex: 1; min-width: 0; font: 600 0.6875rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--hint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

h1.small { font-size: 1.312rem; }
h1.long { font-size: 1.125rem; }
/* Long titles in lists and subtitles: a few lines, the full text is one tap away. */
.cell.clamp .title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.subtitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; position: relative;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.icon-btn::after { content: ""; position: absolute; inset: -2px; }
.icon-btn.accent { background: var(--accent); color: var(--on-accent); }

/* ---- grouped sections ---- */
.group { margin: 0 0 16px; }
.group-title { font: 600 0.6875rem var(--display); color: var(--header); text-transform: uppercase; letter-spacing: .14em; padding: 0 4px 8px; }
.group-body { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.group-foot { font-size: 0.8125rem; color: var(--hint); padding: 8px 4px 0; }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
.cell + .cell { border-top: 1px solid var(--line); }
.cell.tap:active, .card.tap:active, .tile:active { filter: brightness(.96); }
.cell .main { flex: 1; min-width: 0; }
.cell .title { font-family: var(--display); font-weight: 600; overflow-wrap: break-word; }
.cell .meta { font-size: 0.8125rem; color: var(--sub); margin-top: 1px; }
.cell .trail { color: var(--hint); display: flex; align-items: center; gap: 8px; flex: none; }
.cell-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.cell.danger { color: var(--danger); justify-content: center; font-weight: 600; }

.empty { text-align: center; color: var(--hint); padding: 32px 16px; }
.empty .icon { margin: 0 auto 8px; opacity: .6; }

/* ---- event cards ---- */
details.group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding-bottom: 0; }
details.group > summary::-webkit-details-marker { display: none; }
/* A folded group shows it opens: a chevron that turns when open. */
details.group > summary::after { content: '›'; font-size: 1.062rem; line-height: 1; transition: transform 150ms var(--ease-out); transform: rotate(90deg); }
details.group[open] > summary::after { transform: rotate(-90deg); }
details.cancelled .cell { opacity: .55; }
details.cancelled .cell .title { text-decoration: line-through; }
/* The next event: a warm card with a brass hairline on top, like the lamp line over the shelves. No frame, no ornament. */
.event-hero {
  position: relative; padding: 16px 16px 16px; margin: 16px 0 24px; color: var(--text); cursor: pointer;
  background: color-mix(in srgb, #8A5A35 14%, var(--surface)); border-radius: var(--radius); border-top: 1px solid var(--brass);
}
.event-hero .name { font: 600 1.5rem/1.15 var(--display); margin: 0 0 8px; overflow-wrap: anywhere; text-wrap: balance; }
.event-hero .when { font: 600 .6875rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--pink-text); }
.event-hero .lineup { font-size: .875rem; color: var(--hint); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-hero .stat-line { display: flex; justify-content: space-between; font: 600 .8125rem var(--display); color: var(--sub); margin-top: 16px; }

.date-tile { width: 48px; flex: none; text-align: center; border-radius: 12px; border: 1px solid var(--line); color: var(--text); padding: 4px 0; }
.date-tile .m { color: var(--accent-text); }
.date-tile .d { font: 600 1.188rem/1.1 var(--display); }
.date-tile .m { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.date-tile.muted { background: var(--surface-2); color: var(--hint); }

.bar { height: 4px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .3s var(--ease-out); }
.bar.pink > i { background: var(--brass); }

/* ---- stat tiles & action tiles ---- */
/* Counts and actions sit in a ruled grid (the record shelves behind the DJ booth), not in floating cards. */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 12px 12px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .v { font: 300 1.75rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat .l { font: 600 0.75rem var(--display); color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 16px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.tile {
  border: 0; border-radius: 0; background: var(--page); box-shadow: none;
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 600 0.8125rem var(--display); color: var(--text); min-height: 76px; justify-content: center; text-align: center;
}
.tile .icon { color: var(--accent-text); }
.tile.primary { background: var(--accent); color: var(--on-accent); }
.tile.primary .icon { color: var(--on-accent); }

/* ---- guests ---- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: 0.9375rem; color: var(--on-accent); letter-spacing: .02em;
}
.avatar.big { width: 64px; height: 64px; font-size: 1.375rem; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px;
  font: 600 .75rem var(--display); white-space: nowrap; background: var(--surface-2); color: var(--sub);
}
.pill.pink { background: var(--pink-soft); color: var(--pink-text); }
.pill.teal { background: var(--accent-soft); color: var(--accent-text); }
.pill.blue { background: var(--surface-2); color: var(--accent-text); }
.pill.gold { background: var(--pink-soft); color: var(--pink-text); }
.pill.red { background: var(--danger-strong); color: #fff; }
.pill.ok { background: var(--ok-soft); color: var(--ok-text); }
.pill.solid-ok { background: var(--ok-strong); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cell.flag { background: var(--danger-soft); }

/* ---- search ---- */
.search { position: relative; margin-bottom: 12px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hint); pointer-events: none; }
.search input {
  width: 100%; border: 0; border-radius: 14px; padding: 12px 16px 12px 48px; min-height: 48px;
  background: var(--surface); box-shadow: var(--shadow); outline: none;
}
.search input:focus { box-shadow: 0 0 0 2px var(--accent); }
.section-label { font-size: 0.8125rem; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .05em; margin: 16px 4px 8px; }

/* ---- buttons ---- */
.btn {
  appearance: none; border: 0; border-radius: var(--radius-s); padding: 12px 16px; min-height: 48px; position: relative;
  background: var(--surface); color: var(--text); font-family: var(--display); font-weight: 600; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform 120ms var(--ease-out);
}
.btn:active:not(:disabled), .chip:active, .seg button:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.pink { background: var(--brass); color: var(--on-accent); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--accent-text); }
.btn.danger { background: var(--danger-soft); color: var(--danger-text); box-shadow: none; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: 0.875rem; border-radius: 10px; }
/* Small buttons look small but take a 48px tap. */
.btn.small::after, .chip::after, .seg button::after, .steps button::after { content: ""; position: absolute; inset: -4px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- forms ---- */
.form .group-body { padding: 4px 0; }
.field { display: block; padding: 8px 16px; }
.field + .field { border-top: 1px solid var(--line); }
.field > span { display: block; font-size: 0.75rem; font-weight: 600; color: var(--hint); margin-bottom: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; background: transparent; outline: none; padding: 4px 0; min-height: 30px; font-size: 1rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field.invalid { box-shadow: inset 3px 0 0 var(--danger); background: var(--danger-soft); }
.field.invalid > span { color: var(--danger); }
.field select { appearance: none; -webkit-appearance: none; background-image: none; min-height: 44px; }
.field input:disabled { color: var(--hint); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent-text); font-size: 1.25rem; font-weight: 600; }
.stepper output { font: 600 1.25rem var(--display); min-width: 40px; text-align: center; }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 8px; min-height: 40px; position: relative; border-radius: 9px; font: 600 0.875rem var(--display); color: var(--sub);
  transition: transform 120ms var(--ease-out); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.switch + .switch, .field + .switch, .switch + .field { border-top: 1px solid var(--line); }
.switch .main { flex: 1; min-width: 0; }
.switch .meta { font-size: 0.75rem; color: var(--hint); }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); position: relative; flex: none; transition: background 150ms var(--ease-out); margin: 0; box-shadow: inset 0 0 0 1px var(--line); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 150ms var(--ease-out); }
.switch input:checked { background: var(--accent); box-shadow: none; }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .5; }
/* One-of choice (a role): a round check instead of a toggle. */
.switch input[type=radio] { width: 26px; height: 26px; border-radius: 50%; }
/* The dot grows from half size with a fade, never from nothing. */
.switch input[type=radio]::after { top: 7px; left: 7px; width: 12px; height: 12px; box-shadow: none; transform: scale(.5); opacity: 0;
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out); }
.switch input[type=radio]:checked::after { transform: scale(1); opacity: 1; }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-s); padding: 12px 12px; margin: 0 0 12px; font-size: 0.875rem; background: var(--surface-2); }
.notice.red { background: var(--danger-soft); color: var(--text); }
.notice.red .icon { color: var(--danger); }
.notice.teal { background: var(--surface-2); }
.notice.teal > .icon { color: var(--accent-text); }
.notice .icon { margin-top: 1px; }
.notice.amber > .icon { color: var(--gold); }

/* ---- stats ---- */
.stat-row { padding: 12px 16px; }
.stat-row + .stat-row { border-top: 1px solid var(--line); }
.stat-row .top { display: flex; justify-content: space-between; gap: 8px; }
.stat-row .nums { color: var(--hint); font-size: 0.875rem; white-space: nowrap; }
.stat-row .rate { font-weight: 600; color: var(--text); }

/* ---- charts ---- */
.chart-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.chart-card h2 { font-size: 0.8125rem; font-weight: 600; color: var(--header); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.chart-hint { font-size: 0.8125rem; color: var(--hint); margin: 0 0 12px; }
/* Sections of the stats page: the night, money, people. */
.shelf-title { font: 600 1.125rem/1.2 var(--display); color: var(--text); margin: 24px 4px 12px; }
/* A card heading with its own controls on the right (the time charts' step). */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -8px 0 4px; }
.card-head h2 { margin: 0; min-width: 0; }
.steps { display: flex; align-items: center; flex: none; }
.steps button { position: relative; border: 0; background: none; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 8px;
  font: 600 0.8125rem var(--display); font-variant-numeric: tabular-nums; color: var(--hint); transition: transform 120ms var(--ease-out); }
.steps button.on { color: var(--accent-text); background: var(--accent-soft); }
.steps button:active { transform: scale(.97); }
.steps span { font-size: 0.75rem; color: var(--hint); padding-left: 4px; }
/* The night in two numbers, ruled like a shelf: guests in | the till. */
.night-shelf { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.night-shelf.single { grid-template-columns: 1fr; }
.night-col { padding: 12px 0 0; min-width: 0; }
.night-col + .night-col { border-left: 1px solid var(--line); padding-left: 12px; }
.night-col:first-child { padding-right: 12px; }
.night-v { font: 300 2.5rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.night-l { font-size: 0.8125rem; color: var(--hint); margin: 4px 0 12px; }
.night-rows { list-style: none; margin: 0; padding: 0; font-size: 0.8125rem; }
.night-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.night-rows span { color: var(--hint); min-width: 0; }
.night-rows small { display: block; font-size: 0.75rem; margin-top: 2px; }
.night-rows b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--text); font-family: inherit; }
.chart .c-value { font: 300 2rem var(--display); }
.chart .c-value.big { font-size: 2.375rem; }
.chart .c-label { font-size: 0.75rem; fill: var(--hint); }
.chart .track { stroke: var(--surface-2); }
.donut { display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: 16px; align-items: center; }
.donut .seg { transition: opacity .15s; cursor: pointer; }
.donut.focus .seg:not(.on) { opacity: .25; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto 40px; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.legend li + li { border-top: 1px solid var(--line); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .lbl { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; word-break: break-word; }
.legend .val { font-weight: 600; }
.legend .pc { color: var(--hint); text-align: right; }
.donut.focus .legend li:not(.on) { opacity: .4; }
.ring { display: flex; flex-direction: column; align-items: center; }
.ring svg { max-width: 190px; }
.ring-track { stroke: var(--accent-soft); }
.ring-value { stroke: var(--accent); transition: stroke-dasharray 300ms var(--ease-out); }
.ring-caption { font-size: 0.8125rem; color: var(--hint); margin-top: 4px; }
.turnout { display: grid; grid-template-columns: 46% 1fr; gap: 12px; align-items: center; }
.turnout .kpis { display: grid; gap: 8px; }
.kpi .v { font: 300 1.75rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 0.75rem; color: var(--hint); }
.columns { position: relative; }
.columns .grid { stroke: var(--line); stroke-width: 1; }
.columns .axis { font-size: 0.625rem; fill: var(--hint); }
.columns .bar-mark { fill: var(--accent); transition: opacity .15s; }
.columns .hit { fill: transparent; cursor: pointer; }
.columns.has-on .bar-mark { opacity: .35; }
.columns .col.on .bar-mark { opacity: 1; }
.columns .tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink-dark); color: #EEE7DD; font-size: 0.8125rem; padding: 4px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: var(--lift); }
.line-chart { position: relative; }
.line-chart .grid { stroke: var(--line); stroke-width: 1; }
.line-chart .axis { font-size: 0.625rem; fill: var(--hint); }
.line-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .area { opacity: .14; }
.line-chart .hit { fill: transparent; cursor: pointer; }
.line-chart .cross { stroke: var(--hint); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.line-chart .dot { stroke: var(--surface); stroke-width: 2; opacity: 0; }
.line-chart.has-on .cross, .line-chart.has-on .dot { opacity: 1; }
.line-chart .tip { position: absolute; top: 34px; transform: translateX(-50%); background: var(--ink-dark); color: #EEE7DD; font-size: 0.8125rem; padding: 8px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; display: grid; gap: 2px; box-shadow: var(--lift); }
.line-chart .tip .row { display: flex; align-items: center; gap: 8px; }
.line-chart .tip .row b { margin-left: auto; padding-left: 12px; }
.line-chart .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.line-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; font-size: 0.75rem; color: var(--hint); }
.line-legend li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 400px) { .donut { grid-template-columns: 1fr; } .donut svg { max-width: 170px; margin: 0 auto; } }

/* ---- sandbox banner ---- */
.mode-banner {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-accent); background: repeating-linear-gradient(135deg, #C9A26B 0 12px, #BE965F 12px 24px);
}
body.sandbox-mode .door-head { top: 28px; }

.delta { margin-top: 12px; font-size: 0.875rem; font-weight: 600; }
.delta.up { color: var(--ok-text); }
.delta.down { color: var(--danger); }

/* ---- bottom nav ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: center;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  /* Solid, in the page colour: no glass. The hairline above separates it from the list. */
  background: var(--page);
  border-top: 1px solid var(--line);
}
.tabbar button { flex: 1; max-width: 160px; border: 0; background: none; color: var(--hint); display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 0.6875rem var(--display); padding: 4px; }
.tabbar button.on { color: var(--accent-text); }

.main-fallback {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  border: 0; border-radius: 14px; min-height: 52px; background: var(--accent); color: var(--on-accent); font: 600 1.062rem var(--display);
  max-width: 608px; margin: 0 auto;
  /* A band of page colour around the pinned button, so the form never shows through beside it. */
  box-shadow: 0 0 0 16px var(--page);
}
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 40;
  background: #2A2420; color: #EEE7DD; padding: 12px 16px; border-radius: 14px; max-width: calc(100% - 32px);
  font-weight: 600; box-shadow: var(--lift); pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@starting-style { .toast { opacity: 0; transform: translate(-50%, 8px); } }
body.door-mode .toast { bottom: auto; top: calc(8px + env(safe-area-inset-top)); }
.toast.error { background: var(--danger-strong); }
.toast.ok { background: var(--ok-strong); }
.toast.with-action { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.toast.with-action span { flex: 1; min-width: 0; overflow-wrap: break-word; }
.toast.with-action button { pointer-events: auto; border: 0; border-radius: 10px; background: rgba(255,255,255,.22); color: #fff; font: inherit; font-weight: 600; padding: 8px 16px; cursor: pointer; white-space: nowrap; }

.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: fade-in .15s; }
@keyframes fade-in { from { opacity: 0; } }
.sheet { background: var(--surface); color: var(--text); box-shadow: var(--lift); border-radius: 24px; padding: 24px; width: 100%; max-width: 480px; margin-bottom: env(safe-area-inset-bottom); animation: sheet-in .2s var(--ease-out);
  /* Tall sheets scroll inside instead of running off the screen. */
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
@keyframes sheet-in { from { transform: translateY(30px); } }
.sheet .big { font: 600 1.5rem/1.2 var(--display); overflow-wrap: anywhere; }
.sheet.already { background: var(--danger-strong); color: #fff; text-align: center; }
.sheet.already .icon { margin: 0 auto 12px; }
.sheet.already .btn { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 16px 0 12px; }
.count-grid .btn { min-height: 64px; font: 600 1.5rem var(--display); }
.count-other { display: flex; gap: 8px; margin: 0 0 12px; }
.count-other input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 1.25rem var(--display); }
.count-other input::placeholder { font-family: inherit; font-weight: 400; font-size: 1rem; color: var(--hint); }
.sheet .btn:not(.primary):not(.brass):not(.pink) { background: var(--surface-2); box-shadow: none; }

/* ---- door screen: always dark, big targets ---- */
body.door-mode {
  --page: #120F0E; --surface: #1D1916; --surface-2: #28221E; --text: #EEE7DD; --hint: #A69C91; --sub: #C4BAAE;
  --line: rgba(255,255,255,.08); --shadow: none;
  --accent-text: var(--speaker); --ok-text: #4CC38A; --pink-text: #D8B886; --danger-text: #FF8589; color-scheme: dark;
  --accent-soft: rgba(141,182,212,.14); --pink-soft: rgba(201,162,107,.16); --danger-soft: rgba(229,72,77,.22); --ok-soft: rgba(46,166,107,.2);
  background: var(--page); color: var(--text);
}
.door-head { position: sticky; top: 0; isolation: isolate; z-index: 6; background: var(--page); padding: 4px 0 4px; }
.door-head .brandbar { margin-bottom: 0; }
.door-head { display: flow-root; }
.mini-count { display: none; position: absolute; right: 0; top: 8px; font: 300 1.25rem/1.6 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.door-head.searching .mini-count { display: block; }
.door-head.searching :is(.door-top, #progress, #till) { display: none; }
/* The typed name can be long: the offer wraps instead of running off the screen. */
#add-unlisted { white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.door-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.door-top #walkin { margin-top: 8px; }
.door-count { font: 300 3rem/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; }
.door-count small { font-size: 1.25rem; color: var(--hint); font-weight: 300; }
.door-head .search { margin: 8px 0 4px; }
/* Door till: two big tally buttons (cash / card) with running totals, replacing the paper sheet. */
.till { display: flex; gap: 8px; margin-top: 8px; }
.till-btn { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; text-align: left;
  padding: 8px 12px; border-radius: 16px; border: 0; background: var(--surface); color: inherit; cursor: pointer;
  transition: transform 120ms var(--ease-out), background 150ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.till-btn .m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-weight: 600; font-size: 0.9375rem; grid-column: 1 / -1; min-width: 0; }
.till-btn .m small { font-weight: 600; color: var(--hint); font-size: 0.75rem; }
.till-btn .n { font: 300 1.75rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.till-btn .s { font-size: 0.8125rem; color: var(--sub); font-weight: 600; justify-self: end; }
.till-btn .m svg { color: var(--hint); }
.till-btn:active, .till-btn.hit { transform: scale(.97); background: var(--accent-soft, var(--surface-2)); }
.till-btn:disabled { opacity: .55; cursor: default; }
.till-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.till-actions .btn:only-child { grid-column: 1 / -1; }
.seg button:has(svg) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg button svg { display: inline-block; flex: none; }
.cell .struck { text-decoration: line-through; color: var(--hint); }
.cell .refund { color: var(--danger); }
/* Pay sheet at check-in of a discounted guest: two big buttons, cash or card. */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.pay-grid .btn { min-height: 64px; flex-direction: column; gap: 2px; font-size: 1rem; }
.pay-grid .btn small { font-weight: 600; opacity: .8; }
.split { display: grid; gap: 8px; margin: 12px 0; }
.split-row { display: grid; grid-template-columns: auto 1fr auto 72px; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; }
.split-row b { text-align: right; }
.split-row .split-n { font: 600 1.25rem var(--display); text-align: center; width: 112px; }
.till-icon { flex: none; width: 48px; border: 0; border-radius: 14px; background: var(--surface); color: inherit; display: grid; place-items: center; cursor: pointer; }
#t-amount, #t-note { font-size: 1.125rem; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.door-head .search input { font-size: 1.25rem; min-height: 56px; border-radius: 16px; background: var(--surface); }
.offline { font-size: 0.8125rem; color: var(--brass); min-height: 0; }
/* Door rows stay dense: more guests on one screen beats air at the door. */
.door-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface); margin-top: 8px; }
.door-row .who { flex: 1; min-width: 0; }
/* Long names wrap at word or hyphen breaks (hyphenated by the page language), never mid-letter. */
.door-row .name { font: 600 1.25rem/1.2 var(--display); overflow-wrap: break-word; hyphens: auto; }
.door-row .note { font-size: 0.8125rem; color: var(--sub); margin-top: 4px; }
/* Already in: the name goes grey; pills, the status button and "undo" stay readable. */
.door-row.in .name { color: var(--sub); }
.door-row.red { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
.check-btn {
  flex: none; min-width: 112px; height: 58px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent);
  font: 600 1.062rem var(--display); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 100ms var(--ease-out), filter 100ms var(--ease-out);
}
.check-btn.done { background: var(--ok-soft); color: var(--ok-text); box-shadow: none; }
.check-btn.locked { background: var(--surface-2); color: var(--hint); box-shadow: none; }
/* Pressed and locked while the check-in is in flight. */
.check-btn.pending, .btn.pending { filter: brightness(.78); transform: scale(.96); box-shadow: none; }
.check-btn:disabled, .btn:disabled { cursor: default; }
.btn.pending:disabled { opacity: 1; }
.check-btn:active { transform: scale(.96); }
.undo-btn { position: relative; border: 0; background: none; color: var(--sub); font: 600 0.8125rem var(--display); padding: 8px 0 0; display: inline-flex; gap: 4px; align-items: center; }
/* A 24px line of text with a thumb-sized tap around it. */
.undo-btn::after { content: ""; position: absolute; inset: -12px -12px -12px -8px; }
@media (max-width: 360px) { .check-btn { min-width: 96px; padding: 0 12px; } }

/* ---- invite (DJ) page ---- */
.invite-head { align-items: center; }
.invite-head .brandbar { flex: 1; border: 0; padding: 0; }
.invite-head .brandbar { min-width: 0; }
.lang-switch { flex: none; }
/* DJ form: "Bringing  − +1 +" on one line; a full list greys out the plus. */
.field.plus-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field.plus-row > span { margin: 0; }
.stepper button:disabled { opacity: .35; }
.dj-hero { margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dj-hero .name { font: 600 1.5rem/1.15 var(--display); margin: 0 0 4px; overflow-wrap: anywhere; }
.dj-hero .when { font: 600 .6875rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--pink-text); }
.dj-hero .spots { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.dj-hero .spots .icon { display: inline-block; vertical-align: -2px; margin-right: 2px; }
.lang-switch { display: flex; gap: 4px; background: var(--surface); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.lang-switch button { border: 0; background: none; border-radius: 8px; padding: 4px 12px; font-weight: 600; font-size: 0.8125rem; color: var(--hint); }
.lang-switch button.on { background: var(--accent); color: var(--on-accent); }
.guest-entry .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 0.8125rem; flex: none; }

.hint { color: var(--hint); font-size: 0.875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.center { text-align: center; }
/* ---- Splash: the lined B·SIDE wordmark in ink, one quiet line under it ---- */
.splash {
  position: fixed; inset: 0; z-index: 100; background: var(--page); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.splash .wordmark { width: min(70vw, 300px); aspect-ratio: 800 / 241; background: var(--text);
  -webkit-mask: url(/static/brand/bside-wordmark.webp) center / contain no-repeat; mask: url(/static/brand/bside-wordmark.webp) center / contain no-repeat; }
.splash .slogan { font: 600 .6875rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--hint); opacity: 0; }
.splash.full .wordmark { animation: rise .6s var(--ease-out) both; }
.splash.full .slogan { animation: fade .4s var(--ease-out) .35s forwards; }
.splash.still .slogan, .splash.short .slogan { opacity: 1; }
.splash.out { opacity: 0; transform: scale(.98); pointer-events: none; }
.splash.still.out { transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .splash, .splash * { animation: none !important; transition: opacity .2s linear !important; }
  .splash .slogan { opacity: 1; }
  .splash.out { transform: none; }
}


/* Shifts: one big button to mark arriving / leaving, the running time above it. */
.punch-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px; text-align: center; margin: 0 0 16px; }
.punch-state { color: var(--sub); font-weight: 600; font-size: 0.875rem; }
.punch-timer { font: 300 2.75rem/1.1 var(--display); font-variant-numeric: tabular-nums; margin: 8px 0 16px; }
.punch-timer:empty { margin: 4px 0 12px; }
.punch-btn { width: 100%; min-height: 64px; border: 0; border-radius: 16px; color: #fff; font: 600 1.188rem var(--display);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform 120ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.punch-btn.in { background: var(--ok-strong); }
.punch-btn.out { background: var(--danger-strong); }
.punch-btn:active { transform: scale(.98); }
.punch-btn:disabled { opacity: .6; cursor: default; }
.punch-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--hint); font-size: 0.8125rem; margin-top: 12px; }
.stats-row.two { grid-template-columns: 1fr 1fr; }
.cell.muted .title, .cell.muted .meta { color: var(--hint); }
.punch-plan { color: var(--hint); font-size: 0.8125rem; font-weight: 600; margin-top: 2px; }

/* Shift schedule calendar */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 40px; position: relative; background: var(--surface); color: var(--text); font: 600 0.875rem/1.2 inherit; box-shadow: var(--shadow); white-space: nowrap;
  transition: transform 120ms var(--ease-out); }
.chip.on { background: var(--accent); color: var(--on-accent); }
.cal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 8px 12px; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.cal-nav b { font-size: 1rem; }
.cal-nav .btn { min-width: 40px; font-size: 1.125rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--hint); text-transform: uppercase; padding-bottom: 2px; }
.cal-day { position: relative; min-height: 54px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; cursor: pointer; }
.cal-day.empty { background: none; cursor: default; }
.cal-day.past { color: var(--hint); }
.cal-day.past .cal-num { color: var(--hint); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { font-size: 0.8125rem; font-weight: 600; }
.cal-time { font-size: 0.75rem; font-weight: 600; line-height: 1.1; white-space: nowrap; letter-spacing: -.2px; }
.cal-day.on.planned { background: var(--accent-soft); }
.cal-day.on.came { background: var(--ok-soft); }
.cal-day.on.absent { background: var(--danger-soft); }
/* A day someone can't work: hatched. */
.cal-day.unavail { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, var(--danger-soft) 5px 10px); }
.cal-day.unavail .cal-time { color: var(--danger); }
.cal-legend i.unavail { background: repeating-linear-gradient(135deg, var(--surface-2) 0 2px, var(--danger) 2px 4px); border-radius: 2px; }
.cal-day:disabled { cursor: default; }
.cal-count { font-size: 0.6875rem; font-weight: 600; color: var(--sub); }
.cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 34px; }
.cal-dots i, .cal-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.cal-dots i.came, .cal-legend i.came { background: var(--ok); }
.cal-dots i.absent, .cal-legend i.absent { background: var(--danger); }
.cal-dots i.off, .cal-legend i.off { background: var(--hint); }
.cell .cal-dots i { width: 10px; height: 10px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 12px; font-size: 0.75rem; color: var(--sub); }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }

/* Checklist tick box */
.check-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.check-box.done { background: var(--ok); border-color: var(--ok); }
.check-box.late { border-color: var(--danger); background: var(--danger-soft); }
.check-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
/* A night with tasks */
.cal-task { color: var(--accent-text); line-height: 0; }
.cal-task .icon, .cal-legend .icon { width: 11px; height: 11px; }
.cal-legend .icon { color: var(--accent-text); }
.role-move { display: inline-flex; gap: 4px; }
.role-move .btn { min-width: 34px; padding: 8px 0; }
.role-move .btn.off { opacity: .35; pointer-events: none; }
.chip:has(.icon) { display: inline-flex; align-items: center; gap: 4px; }
.day-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
.month-nav { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-bottom: 16px; }
.month-nav .btn:disabled { opacity: .35; }
.wd-chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; padding: 4px 0; margin: 0; }
.wd-chips .chip { padding: 8px 0; text-align: center; }
/* Dark theme has no shadows: buttons and chips on a card need their own fill to read as buttons. */
:root:not([data-theme="light"]) :is(.group-body, .sheet:not(.already), .month-nav) :is(.btn, .chip):not(.primary):not(.on):not(.brass):not(.pink) { background: var(--surface-2); }
:root:not([data-theme="light"]) .seg button.on { background: color-mix(in srgb, var(--text) 16%, var(--surface)); }
/* A night's list for managers: boxes there show state, they are not ticked. */
.check-box.ro { opacity: .7; }
.sheet-foot { position: sticky; bottom: -24px; margin: 12px -24px -24px; padding: 12px 24px 24px; background: inherit; }
.cell.me { background: var(--accent-soft); }
.cell.me .meta { color: var(--text); }

/* Schedule, everyone: initials of the night's people in each day. */
.cal-people { display: grid; grid-template-columns: repeat(2, 18px); gap: 2px; justify-content: center; }
.cal-people i { width: 18px; height: 14px; border-radius: 4px; font-style: normal; font-size: 0.5312rem; font-weight: 600; line-height: 14px; color: var(--on-accent); text-align: center; letter-spacing: -.3px; overflow: hidden; }
.cal-people i.came { box-shadow: inset 0 -2px 0 var(--ok); }
.cal-people i.absent { opacity: .45; text-decoration: line-through; }
.cal-people i.off { outline: 1px dashed var(--hint); outline-offset: -1px; }
.cal-people i.more { background: var(--surface); color: var(--sub); }
.sched-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.sched-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); padding: 12px 12px; font: inherit; cursor: pointer; }
.sched-row.today { box-shadow: inset 0 0 0 2px var(--accent); }
.sched-row.past { color: var(--hint); }
.sched-day { font-size: 0.8125rem; font-weight: 600; color: var(--sub); }
.sched-people { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.sched-person { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; }
.sched-person i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sched-person small { color: var(--sub); font-size: 0.75rem; }
.sched-person.absent { text-decoration: line-through; opacity: .6; }
.sched-person.off small { font-style: italic; }

/* My week on the shifts screen: seven days, the ones I work filled in. */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: 100%; border: 0; padding: 8px; border-radius: 16px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 10px; background: var(--surface-2); }
.week-day small { font-size: 0.75rem; color: var(--sub); white-space: nowrap; }
.week-day b { font-size: 0.9375rem; }
.week-day.on { background: var(--accent-soft); }
.week-day.on small { color: var(--text); }
.week-day.on small:last-child { font-weight: 600; }
.week-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.week-day.past b, .week-day.past small { color: var(--hint); }

/* ---- night report & finance ---- */
/* Amounts read like the till slip: label left, the figure right in light tabular numerals. */
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 4px 16px; cursor: text; }
.money-row + .money-row, .money-row + .field, .field + .money-row { border-top: 1px solid var(--line); }
.money-row .lbl { min-width: 0; font: 600 0.9375rem/1.3 var(--display); color: var(--text); }
.money-row .lbl small { display: block; font: 400 0.75rem/1.35 var(--text-font); color: var(--hint); margin-top: 2px; }
.money-row .amt { display: flex; align-items: baseline; gap: 4px; flex: none; }
.money-row .amt input { width: 8.5ch; min-height: 44px; border: 0; background: transparent; outline: none; padding: 0; text-align: right;
  font: 300 1.375rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.money-row .amt b { font: 300 1.375rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--sub); }
.money-row .amt i { font-style: normal; font-size: 0.875rem; color: var(--hint); }
.money-row:focus-within { background: var(--surface-2); }
.money-row.info { cursor: default; }
.money-row.info .lbl { color: var(--sub); font-weight: 400; font-family: var(--text-font); }
.money-row.invalid { box-shadow: inset 3px 0 0 var(--danger); background: var(--danger-soft); }
.money-row.invalid .lbl { color: var(--danger); }
.money-row .amt input:disabled { color: var(--sub); -webkit-text-fill-color: var(--sub); opacity: 1; }

.expense + .expense { margin-top: 12px; }
/* A select with search (core.js openPicker): the trigger is a form row, the list a bottom sheet. */
.picker-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 4px 12px 4px 16px; border: 0;
  border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; }
.picker-btn .lbl { flex: none; font-size: 0.875rem; color: var(--sub); }
.picker-btn b { flex: 1; min-width: 0; text-align: right; font: 600 1rem/1.3 var(--display); overflow-wrap: anywhere; }
.picker-btn .icon { flex: none; color: var(--hint); }
.picker-btn:active:not(:disabled) { background: var(--surface-2); }
.picker-btn:disabled { cursor: default; }
.picker-btn:disabled b { color: var(--sub); }
.sheet.picker { padding: 16px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px 4px; font: 600 1.125rem var(--display); }
.sheet.picker .search { margin-bottom: 8px; }
.sheet.picker .search input { background: var(--surface-2); box-shadow: none; }
.sheet.picker .search input:focus { box-shadow: 0 0 0 2px var(--accent); }
.picker-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; font: 400 1rem/1.3 var(--display); touch-action: manipulation; }
.picker-opt span { min-width: 0; overflow-wrap: anywhere; }
.picker-opt.on { color: var(--accent); font-weight: 600; }
.picker-opt:active { background: var(--surface-2); }
.picker-none { padding: 16px 12px; color: var(--sub); }
.chips.sugg { margin: 0; padding: 0 16px 12px; flex-wrap: wrap; overflow: visible; }
.chips.sugg .chip { background: var(--surface-2); box-shadow: none; }
.expense-del { margin: 0 8px 8px; color: var(--hint); }
#add-expense { margin-top: 12px; }

/* The night's result stays in view while typing; above the fallback button outside Telegram. */
.report-sum { position: sticky; bottom: 0; z-index: 5; margin: 8px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--page); border-top: 1px solid var(--line); }
body:has(.main-fallback:not([hidden])) .report-sum { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.report-sum { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.sum-line { display: flex; flex-direction: column; min-width: 0; }
/* Money never gets an ellipsis: the number shrinks to its tile (light digits are ~0.6em wide), labels wrap. */
.stats-row.money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-row.money .stat { container-type: inline-size; }
.stats-row.money .v { white-space: nowrap; font-size: min(1.5rem, calc(160cqi / var(--len, 5))); }
.stats-row.money .l { white-space: normal; overflow: visible; line-height: 1.25; }
.sum-line + .sum-line { align-items: flex-end; text-align: right; }
.sum-line span { font: 600 0.6875rem var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--header); }
.sum-line b { font: 300 1.5rem/1.25 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 359px) { .sum-line b { font-size: 1.25rem; } }
.sum-line b.ok { color: var(--ok-text); }
.sum-act { grid-column: 1 / -1; }
.sum-act:not(:empty) { margin-top: 8px; }
.sum-why { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--hint); text-align: right; font-variant-numeric: tabular-nums; margin-top: 4px; }

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.num.in { color: var(--ok-text); }
.link-btn { position: relative; border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; }
.link-btn::after { content: ""; position: absolute; inset: -12px -8px; }

/* ---- shift feedback ---- */
.rate-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px;
  border: 0; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text);
  /* "Нормально" stays one word at 320px: the label shrinks a little instead of breaking. */
  font: 600 clamp(0.75rem, 3.6vw, 0.875rem) var(--display); white-space: nowrap; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 120ms var(--ease-out); }
.rate:active { transform: scale(.97); }
.rate .face { font-size: 2rem; line-height: 1; }
.rate[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
/* 16px so iOS does not zoom into it; the sheet's own surface, like the other fields. */
#fb textarea { display: block; width: 100%; margin: 8px 0 4px; min-height: 110px; resize: vertical; padding: 12px; font-size: 1rem;
  border: 0; border-radius: var(--radius-s); background: var(--surface-2); outline: none; }
#fb textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.fb-anon .switch { padding: 12px 0; }
.fb-anon { margin-bottom: 12px; }
.fb-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.fb-item + .fb-item { border-top: 1px solid var(--line); }
.fb-item .face { font-size: 1.5rem; line-height: 1.2; flex: none; }
.fb-item .main { min-width: 0; flex: 1; }
.fb-body { white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 4px; }
.fb-item .meta { font-size: 0.8125rem; color: var(--hint); }
.fb-done { display: flex; align-items: center; gap: 8px; color: var(--ok-text); font-weight: 600; font-size: 0.875rem; margin-bottom: 8px; }
#fb-write { display: inline-flex; align-items: center; gap: 8px; }
/* The word under a count wraps instead of being cut ("Нормально" at 320px). */
.fb-stats .l { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* ---- table reservations ---- */
.btn.brass { background: var(--brass); color: var(--on-accent); }
.res-search { display: block; margin-bottom: 16px; }
.res-month-req { margin: 8px 4px 0; }
.res-shelf { margin-bottom: 16px; }
.res-shelf .stat .l { white-space: normal; overflow: visible; line-height: 1.25; }
.res-shelf .v.people { color: var(--pink-text); }
.res-shelf .v.ok { color: var(--ok-text); }
.res-shelf .v.bad { color: var(--danger-text); }
/* Tonight: the one warm card, like the next event's. */
.res-tonight { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--brass); border-radius: var(--radius); padding: 16px;
  margin-bottom: 16px; background: color-mix(in srgb, #8A5A35 14%, var(--surface)); color: var(--text); font: inherit; cursor: pointer; }
.res-tonight .res-shelf { margin: 12px 0; }
.res-date { font: 600 0.6875rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-text); }
.res-next { display: flex; align-items: center; gap: 8px; }
.res-next span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.res-next .icon { flex: none; color: var(--hint); }
.res-day { gap: 2px; }
.res-count { display: flex; flex-direction: column; align-items: center; font: 400 0.625rem/1.2 var(--display); color: var(--hint);
  white-space: nowrap; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.res-count b { font-size: 0.8125rem; font-weight: 600; color: var(--pink-text); }
.res-day.off:not(.closed) { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.res-day.off .res-off { font-size: 0.625rem; color: var(--hint); }
.res-closed { display: inline-flex; align-items: center; gap: 2px; font: 600 0.625rem var(--display); color: var(--danger-text); }
.res-day.closed.full { background: var(--danger-soft); }
.res-seg { margin-bottom: 16px; }
/* A booking row: time, who and where, then the status or the one action. */
.res-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 0; }
.res-row + .res-row { border-top: 1px solid var(--line); }
.res-row.tap { width: 100%; border: 0; background: none; color: var(--text); font: inherit; text-align: left; padding: 12px 16px; gap: 12px; cursor: pointer; }
.res-open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; border: 0; background: none; color: var(--text); font: inherit;
  text-align: left; padding: 4px 0 4px 16px; cursor: pointer; min-height: 48px; }
.res-time { flex: none; width: 56px; font: 600 0.875rem/1.25 var(--display); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.res-row.tap .res-time { width: 96px; }
.res-time small { font: 400 0.75rem var(--text-font); color: var(--hint); }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.res-main b { font: 600 1rem/1.25 var(--display); overflow-wrap: break-word; hyphens: auto; }
.res-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 0.8125rem; color: var(--hint); }
.pill.brass { background: var(--pink-soft); color: var(--pink-text); }
.res-dep { font-size: 0.8125rem; color: var(--hint); }
.res-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 112px; }
.res-act { min-height: 48px; padding: 0 12px; }
.res-st { font: 600 0.8125rem/1.25 var(--display); text-align: right; }
.res-st.ok { color: var(--ok-text); }
.res-st.late { color: var(--gold); }
.res-st.bad { color: var(--danger-text); }
.res-st.hint { color: var(--hint); }
.res-cancelled summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--radius); background: var(--surface);
  font: 600 0.875rem var(--display); color: var(--hint); cursor: pointer; list-style: none; margin-bottom: 8px; }
.res-cancelled summary::-webkit-details-marker { display: none; }
/* Tables now: colour plus words. */
.res-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.8125rem; color: var(--hint); margin: 0 4px 12px; }
.res-legend span { display: inline-flex; align-items: center; gap: 8px; }
.res-legend i { width: 10px; height: 10px; border-radius: 3px; }
.res-legend i.free, .res-table.free .res-badge { background: var(--ok-text); }
.res-legend i.seated, .res-table.seated .res-badge { background: var(--brass); }
.res-legend i.waiting, .res-table.waiting .res-badge { background: var(--gold); }
.res-legend i.block, .res-table.block .res-badge { background: var(--hint); }
.res-table { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 56px; }
.res-table + .res-table { border-top: 1px solid var(--line); }
.res-badge { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font: 600 0.9375rem var(--display); color: var(--on-accent); }
.res-table.free .res-main b { color: var(--ok-text); }
.res-table.waiting .res-main b { color: var(--gold); }
.res-table.block .res-main b { color: var(--hint); }
/* The form. */
.res-label { font: 600 0.6875rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--hint); margin: 16px 4px 8px; }
.res-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.res-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.res-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 4px;
  border: 0; border-radius: var(--radius-s); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; touch-action: manipulation;
  user-select: none; -webkit-user-select: none; transition: transform 120ms var(--ease-out); }
.res-tile:active { transform: scale(.97); }
.res-tile b { font: 600 0.9375rem var(--display); font-variant-numeric: tabular-nums; }
.res-tile small { font-size: 0.6875rem; color: var(--hint); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.res-tile.table { min-height: 72px; }
.res-tile .n { font: 300 1.5rem/1 var(--display); }
.res-tile.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.res-tile.dim { opacity: .5; }
.res-zone { font: 600 0.8125rem var(--display); color: var(--hint); margin: 12px 4px 8px; }
.res-other { display: inline-flex; min-height: 44px; align-items: center; margin: 4px; }
.res-range { margin: 8px 4px 0; }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.res-chips .chip { white-space: normal; }
.res-picked { margin: 12px 4px 0; font-size: 0.875rem; }
.res-picked.warn { color: var(--gold); }
.res-people { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; font: 600 0.9375rem var(--display); }
.res-stepper { display: flex; align-items: center; gap: 8px; }
.res-stepper button { width: 44px; height: 44px; border: 0; border-radius: var(--radius-s); background: var(--surface-2); color: var(--text); font-size: 1.25rem; }
.res-stepper input { width: 56px; text-align: center; border: 0; background: none; color: var(--pink-text); font: 300 1.625rem var(--display); font-size: 1.625rem; outline: none; }
.res-hit { display: flex; flex-direction: column; gap: 2px; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; text-align: left; padding: 12px 16px; min-height: 52px; cursor: pointer; }
.res-hit span { font-size: 0.8125rem; color: var(--hint); }
/* The card. */
.res-card-st { text-align: left; margin: 0 4px 12px; font-size: 0.9375rem; }
.res-cell { display: flex; gap: 12px; padding: 12px 16px; }
.res-cell + .res-cell { border-top: 1px solid var(--line); }
.res-cell > span:first-child { flex: none; width: 96px; font-size: 0.8125rem; color: var(--hint); }
.res-cell > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.res-cell b.brass { font: 600 1rem var(--display); color: var(--pink-text); }
.res-note { white-space: pre-line; }
.res-who { margin: 0 4px 16px; }
.res-actions { display: flex; flex-direction: column; gap: 8px; }
.res-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 8px; }
.res-two:empty { display: none; }
.res-two .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; text-align: center; }
.res-two .btn .icon { flex: none; }
.btn.danger-text { color: var(--danger-text); }
.res-pick { margin-top: 8px; }
.res-hour { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 48px; }
.res-hour + .res-hour { border-top: 1px solid var(--line); }
.res-hour span { flex: 1; font: 600 0.9375rem var(--display); }
.res-hour input { border: 0; background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 1rem; }
.res-hour small { width: 72px; font-size: 0.75rem; color: var(--hint); }
.res-ev { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.res-fits { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 16px; border: 0; text-align: left; font: inherit; cursor: pointer; }
.res-fits span { flex: 1; min-width: 0; }
.res-wl { margin-top: 12px; }
/* Timeline: a sideways scroller; the table number column stays put. */
.tl { --tl-num: 48px; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.tl::-webkit-scrollbar { display: none; }
.tl-body { position: relative; width: max-content; padding-bottom: 8px; }
.tl-row { display: flex; align-items: stretch; height: 48px; }
.tl-row + .tl-row { border-top: 1px solid var(--line); }
.tl-num { position: sticky; left: -16px; z-index: 2; flex: none; width: var(--tl-num); display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: var(--bg); font: 600 1rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tl-num small { font: 400 0.6875rem var(--text-font); color: var(--hint); }
.tl-lane { position: relative; flex: none; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--tl-hour)); }
.tl-head { height: 24px; border: 0; }
.tl-hours { position: relative; flex: none; }
.tl-hours span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 0.6875rem; color: var(--hint); font-variant-numeric: tabular-nums; }
.tl-hours span:first-child { transform: none; }
.tl-zone { position: sticky; left: 0; width: max-content; padding: 12px 0 4px; font: 600 0.6875rem var(--display); letter-spacing: .14em;
  text-transform: uppercase; color: var(--hint); }
.tl-bar { position: absolute; top: 4px; height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: 0; border-radius: 8px;
  overflow: hidden; color: var(--text); font: inherit; text-align: left; cursor: pointer; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tl-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.8125rem var(--display); }
.tl-bar small { flex: none; font-size: 0.75rem; color: var(--hint); font-variant-numeric: tabular-nums; }
.tl-bar.seated { background: var(--pink-soft); box-shadow: inset 3px 0 0 var(--brass); }
.tl-bar.late { background: color-mix(in srgb, var(--gold) 18%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.tl-bar.block { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--hint); color: var(--hint); }
.tl-bar.left { opacity: .45; }
.tl-bar:active { transform: scale(.97); }
.tl-lane.bookable { cursor: copy; }
.tl-now { position: absolute; top: 24px; bottom: 8px; width: 2px; margin-left: -1px; background: var(--danger-text); z-index: 1; pointer-events: none; }
.res-legend i.tl-booked { background: var(--accent); }
.res-legend i.tl-seated { background: var(--brass); }
.res-legend i.tl-late { background: var(--gold); }
.res-legend i.tl-block { background: var(--hint); }
.tl-hint { margin: 12px 4px 0; }
.res-tag-new { flex: 1 1 140px; min-height: 40px; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--surface-2); color: var(--text); font-size: 1rem; }
.res-meta .late { color: var(--gold); }
.res-unseated { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.res-unseated span { flex: 1; min-width: 0; }
.res-unseated .btn { flex: none; }
.res-assign .res-tiles { margin-bottom: 8px; }
.res-add-table { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .res-tile { transition: none; } }
/* Long tags and zone names wrap instead of pushing the page sideways. */
.res-meta .pill { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.res-chips .chip { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
/* Like the money tiles: a long number ("184/546") gets smaller to fit its third, never cut or pushing sideways. */
.res-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-shelf .stat { container-type: inline-size; }
.res-shelf .v { white-space: nowrap; font-size: min(1.75rem, calc(160cqi / var(--len, 4))); }
/* On a sheet (already the surface colour) the tiles take the second surface, like every control there. */
.sheet .res-tile { background: var(--surface-2); }
.sheet .res-tile.on { background: var(--accent-soft); }

/* ---------------------------------------------------------------- the public guest booking form */
.book-title { font: 600 1.75rem/1.2 var(--display); margin: 16px 0 8px; }
.book-lead { margin: 0 4px 16px; }
.book-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; }
.book-days::-webkit-scrollbar { display: none; }
.book-day { flex: none; width: 56px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: center;
  touch-action: manipulation; }
.book-day small { font-size: 0.75rem; color: var(--hint); text-transform: capitalize; }
.book-day b { font: 600 1.25rem var(--display); font-variant-numeric: tabular-nums; }
.book-day.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.book-day.off { opacity: .35; text-decoration: line-through; cursor: default; }
.book-day:active, .res-tile:active { transform: scale(.97); }
.book-more { margin: -4px 4px 16px; }
/* The honeypot: out of sight and out of reach for people, there for bots. */
.book-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 8px 4px; font-size: 1rem; cursor: pointer; }
.book-check input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.book-notice { font-size: 0.75rem; line-height: 1.5; color: var(--hint); margin: 8px 4px 16px; }
.book-notice a, .book-more a, .notice a { color: var(--accent-text); }
.book-send { margin-bottom: 32px; }
.book-link { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; font-size: 0.875rem; }
.book-link a { color: var(--accent-text); }
.book-when { font: 600 1.125rem/1.4 var(--display); margin: 0 4px 16px; }
.book-privacy h2 { font: 600 1rem var(--display); margin: 24px 4px 8px; }
.book-privacy p { margin: 0 4px; line-height: 1.6; color: var(--sub); }
