/* Layout: quiet white page, one centred column up to 1200px. A single pill search
   bar, cards in an auto-fill grid, and a sticky booking card on restaurant pages.
   Colour is reserved for the one action that matters on each screen. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f3;
  --softer: #fafaf9;
  --ink: #111110;
  --ink-2: #3b3b38;
  --muted: #73736d;
  --line: #e7e7e3;
  --accent: #d0102f;        /* the red of the flag, used sparingly */
  --accent-ink: #ffffff;
  --accent-soft: #fdecef;
  --slot: #111110;          /* available time pills */
  --slot-ink: #ffffff;
  --wa-bar: #0b5c4f;
  --wa-bg: #efeae2;
  --wa-in: #d9fdd3;
  --wa-in-ink: #10261f;
  --ok: #1d7a46; --ok-soft: #e5f4ea;
  --warn: #9a5b00; --warn-soft: #fbf0dc;
  --bad: #b42318; --bad-soft: #fdeceb;
  --info: #1f56a8; --info-soft: #e8effa;
  --gold: #8a6100; --gold-soft: #f7efd9;
  --ring: 0 0 0 1px var(--line);
  --lift: 0 1px 2px rgb(17 17 16 / 0.04), 0 12px 32px -12px rgb(17 17 16 / 0.12);

  --f-ui: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --t-xs: 0.75rem; --t-sm: 0.8125rem; --t-base: 0.9375rem; --t-md: 1.0625rem; --t-lg: 1.375rem; --t-xl: 2rem; --t-2xl: clamp(2.25rem, 5.5vw, 4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c; --soft: #181817; --softer: #131312; --ink: #f3f3f0; --ink-2: #cfcfca; --muted: #93938c; --line: #2a2a27;
    --accent: #ff4560; --accent-ink: #160206; --accent-soft: #3a0f17; --slot: #f3f3f0; --slot-ink: #0d0d0c;
    --wa-bar: #1f2c33; --wa-bg: #0b141a; --wa-in: #005c4b; --wa-in-ink: #e9fff8;
    --ok: #5fd08f; --ok-soft: #12271b; --warn: #f0b552; --warn-soft: #2e230f; --bad: #ff8a7f; --bad-soft: #351513;
    --info: #8fb6ff; --info-soft: #16233a; --gold: #e8c46a; --gold-soft: #2c2410;
    --lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0c; --soft: #181817; --softer: #131312; --ink: #f3f3f0; --ink-2: #cfcfca; --muted: #93938c; --line: #2a2a27;
  --accent: #ff4560; --accent-ink: #160206; --accent-soft: #3a0f17; --slot: #f3f3f0; --slot-ink: #0d0d0c;
  --wa-bar: #1f2c33; --wa-bg: #0b141a; --wa-in: #005c4b; --wa-in-ink: #e9fff8;
  --ok: #5fd08f; --ok-soft: #12271b; --warn: #f0b552; --warn-soft: #2e230f; --bad: #ff8a7f; --bad-soft: #351513;
  --info: #8fb6ff; --info-soft: #16233a; --gold: #e8c46a; --gold-soft: #2c2410;
  --lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 var(--t-base)/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .code { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.copy-fallback { position: fixed; opacity: 0; inset-inline-start: -9999px; }
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 8px 72px;
}

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 4px auto; height: 3px; border-radius: 2px; background: var(--accent-ink); box-shadow: 0 6px 0 -0.5px var(--accent-ink); clip-path: inset(0 0 -7px 0); }
.brand-ar { font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-lat { font-weight: 400; font-size: 1rem; color: var(--muted); letter-spacing: -0.01em; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-link { background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: var(--t-sm); }
.nav-link:hover { color: var(--ink); }
.nav-link.is-on { color: var(--ink); background: var(--soft); }
.lang { display: flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 999px; }
.lang button { background: none; border: 0; min-width: 32px; height: 28px; border-radius: 999px; cursor: pointer; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.lang button.is-on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
@media (max-width: 700px) {
  .nav { order: 3; width: 100%; margin-inline-start: 0; justify-content: space-between; }
  .lang { margin-inline-start: auto; }
  .brand-lat { display: none; }
}

.banner { padding: 10px 14px; font-size: var(--t-sm); border-radius: var(--r-sm); margin: 12px 0; }
.banner-warn { background: var(--warn-soft); color: var(--ink); }
.foot {
  max-width: 1200px; margin: 0 auto; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: var(--t-xs); color: var(--muted);
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-block: 20px 32px; border-top: 1px solid var(--line);
}
.link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.link-plain { background: none; border: 0; padding: 0; cursor: pointer; text-align: start; font: inherit; color: inherit; letter-spacing: inherit; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; font-weight: 500; font-size: var(--t-sm); white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.07); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
.btn-wide { width: 100%; height: 52px; font-size: var(--t-base); }
.btn-sm { height: 34px; padding: 0 12px; font-size: var(--t-xs); }
.btn-icon { width: 44px; padding: 0; font-size: 1.25rem; }
[dir="rtl"] .btn-icon { transform: scaleX(-1); }

.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span, legend { font-size: var(--t-xs); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
[dir="rtl"] .f > span, [dir="rtl"] legend { text-transform: none; letter-spacing: 0; }
.f small { color: var(--muted); font-size: var(--t-xs); }
input, select, textarea {
  border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; min-height: 46px; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.form-err { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: var(--r-sm); font-size: var(--t-sm); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 7vw, 80px) 28px; display: grid; gap: 14px; }
.hero h1 { font-size: var(--t-2xl); font-weight: 600; max-width: 16ch; letter-spacing: -0.035em; line-height: 1.02; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; max-width: 18ch; }
.lede { color: var(--muted); font-size: var(--t-md); max-width: 54ch; }
.finder {
  margin-top: 18px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr auto; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--lift);
}
.seg { display: flex; flex-direction: column; padding: 6px 18px; border-inline-end: 1px solid var(--line); min-width: 0; cursor: pointer; }
.seg:nth-last-child(2) { border-inline-end: 0; }
.seg span { font-size: var(--t-xs); font-weight: 600; }
.seg input, .seg select { border: 0; padding: 0; min-height: 26px; background: transparent; color: var(--muted); box-shadow: none !important; cursor: pointer; }
.seg select { appearance: none; -webkit-appearance: none; }
.go { height: 52px; min-width: 52px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; gap: 8px; padding: 0 20px; cursor: pointer; font-weight: 600; }
.go:hover { filter: brightness(1.07); }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr 1fr 1fr; border-radius: var(--r-lg); gap: 0; }
  .seg { padding: 10px 14px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .seg-q { grid-column: 1 / -1; border-inline-end: 0 !important; }
  .seg:nth-last-child(2) { border-inline-end: 0; }
  .go { grid-column: 1 / -1; margin-top: 6px; justify-content: center; border-radius: var(--r); }
}
@media (max-width: 420px) {
  .finder { grid-template-columns: 1fr 1fr; }
  .seg:nth-child(2) { grid-column: 1 / -1; border-inline-end: 0; }
  .seg:nth-child(3) { border-inline-end: 1px solid var(--line); }
}

.rail { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px; scrollbar-width: none; margin-top: 8px; }
.rail::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; height: 38px; padding: 0 16px; cursor: pointer; font-size: var(--t-sm); font-weight: 500; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-quiet { margin-top: 4px; }
.chip-quiet { border-color: transparent; background: transparent; color: var(--muted); padding: 0 12px; height: 32px; }
.chip-quiet.is-on { background: var(--soft); color: var(--ink); border-color: transparent; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.count { font-size: var(--t-md); font-weight: 500; }
.select-quiet { width: auto; border-radius: 999px; min-height: 38px; padding: 6px 14px; font-size: var(--t-sm); }

/* ---------- restaurant art (generated, no photos yet) ---------- */
.art {
  --h: 0;
  position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; max-width: 100%; isolation: isolate;
  background:
    radial-gradient(120% 90% at 15% 10%, hsl(calc(var(--h) + 30) 75% 72%) 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 85%, hsl(calc(var(--h) - 25) 70% 38%) 0%, transparent 60%),
    radial-gradient(70% 70% at 70% 20%, hsl(var(--h) 80% 58%) 0%, transparent 65%),
    hsl(var(--h) 45% 30%);
}
.art::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.art-word {
  position: absolute; inset-inline-start: 18px; bottom: 12px; direction: rtl;
  font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1; color: rgb(255 255 255 / 0.9); letter-spacing: 0;
}
.art-hero { aspect-ratio: 21 / 8; border-radius: var(--r-lg); margin-block: 8px 28px; }
.art-hero .art-word { font-size: clamp(2.6rem, 8vw, 5.5rem); inset-inline-start: 28px; bottom: 22px; }
.art-sm { width: 56px; aspect-ratio: 1; flex: none; border-radius: 12px; }
.art-sm .art-word { display: none; }

/* ---------- result cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 36px 24px; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-media { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; border-radius: var(--r); }
.card-media .art { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.card-media:hover .art { transform: scale(1.015); }
.card-tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.card-tags span { background: rgb(255 255 255 / 0.92); color: #111; font-size: var(--t-xs); font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.card-body { display: grid; gap: 4px; min-width: 0; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.card-meta { color: var(--muted); font-size: var(--t-sm); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 600; }
.price { letter-spacing: 0.04em; }
.price i { font-style: normal; color: var(--line); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.slot {
  border: 0; background: var(--slot); color: var(--slot-ink); font-weight: 500; font-size: var(--t-sm);
  height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.slot:hover { background: var(--accent); color: var(--accent-ink); }
.slot.is-full { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.slot.is-full:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.slot:disabled { cursor: not-allowed; }
.slot.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: none; text-decoration: none; }
.none { color: var(--muted); font-size: var(--t-sm); margin-inline-end: 8px; }
.empty { color: var(--muted); padding: 24px 0; }

/* why */
.why { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--line); }
.why h2 { font-size: var(--t-xl); margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.why-item { display: grid; gap: 8px; align-content: start; }
.why-n { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; font-size: var(--t-sm); }
.why-item h3 { font-size: var(--t-md); }
.why-item p { color: var(--muted); max-width: 40ch; }

/* ---------- restaurant page ---------- */
.back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 18px 0 8px; font-weight: 500; font-size: var(--t-sm); }
.back::before { content: '← '; }
[dir="rtl"] .back::before { content: '→ '; }
.rest { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.kicker { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.rest-name { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.rest-meta { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--t-sm); }
.blurb { font-size: var(--t-md); margin-block: 22px; max-width: 58ch; color: var(--ink-2); line-height: 1.65; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-soft { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-gold { background: var(--gold-soft); color: var(--gold); }
.h-sm { font-size: var(--t-md); font-weight: 600; margin: 36px 0 14px; letter-spacing: -0.01em; }
.gtk { list-style: none; margin: 0; padding: 0; display: grid; }
.gtk li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.gtk li:last-child { border-bottom: 1px solid var(--line); }
.gtk svg { color: var(--muted); margin-top: 2px; }

.book {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--lift);
  display: grid; gap: 16px; min-width: 0;
}
.book .h-sm { margin: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper output { font-weight: 500; }
.step { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; font-size: 1.2rem; }
.step:disabled { opacity: 0.35; cursor: not-allowed; }
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: var(--t-sm); white-space: nowrap; }
.day.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 248px; overflow-y: auto; padding: 2px; }
.slot-grid .slot { padding: 0 6px; }
.hint { font-size: var(--t-xs); color: var(--muted); }
.book-form { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.summary { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: var(--t-sm); }
.summary b { font-size: var(--t-md); }
.summary span { color: var(--muted); }
.summary-wait { background: var(--accent-soft); }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.choice legend { margin-bottom: 8px; padding: 0; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--t-sm); }
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rules { display: grid; gap: 2px; font-size: var(--t-xs); color: var(--muted); padding: 12px 14px; border-radius: var(--r-sm); border: 1px dashed var(--line); }
.rules b { color: var(--ink); font-weight: 600; }
.mobile-cta { display: none; }
@media (max-width: 960px) {
  .rest { grid-template-columns: 1fr; gap: 8px; }
  .book { position: static; margin-top: 28px; }
  .art-hero { aspect-ratio: 16 / 9; }
  .wrap:has(.mobile-cta) { padding-bottom: 140px; }
  .mobile-cta {
    display: block; position: fixed; inset: auto 0 0; z-index: 4; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line);
  }
}

/* ---------- booking / waitlist ---------- */
.confirm { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 28px; }
.ticket { display: grid; gap: 18px; min-width: 0; }
.ticket-narrow { max-width: 560px; padding-top: 40px; }
.ticket h1 { font-size: var(--t-xl); }
.ticket .kicker { margin: 0; color: var(--accent); }
.ticket-when { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.big-time { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-when span:last-child { color: var(--muted); font-size: var(--t-md); }
.ticket-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--line); }
.ticket-grid div { padding: 14px 0; }
.ticket-grid dt { font-size: var(--t-xs); color: var(--muted); }
.ticket-grid dd { margin: 4px 0 0; font-weight: 500; }
@media (max-width: 560px) { .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.code { font-family: var(--f-mono); letter-spacing: 0.1em; }
.getthere .h-sm { margin: 0 0 6px; }
.getthere p + p { margin-top: 2px; font-size: var(--t-sm); }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.change { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--softer); border: 1px solid var(--line); }
.change .h-sm { margin: 0; }
.held { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); }
.held > div:first-child { display: grid; }
.held span { color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.wait-state { display: grid; gap: 10px; padding: 20px; border-radius: var(--r); background: var(--soft); }
.position { font-size: var(--t-lg); font-weight: 600; }
@media (max-width: 960px) { .confirm { grid-template-columns: 1fr; } }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
.pill-confirmed { background: var(--info-soft); color: var(--info); }
.pill-seated { background: var(--ok-soft); color: var(--ok); }
.pill-completed, .pill-expired { background: var(--soft); color: var(--muted); }
.pill-cancelled { background: var(--bad-soft); color: var(--bad); }
.pill-no_show { background: var(--warn-soft); color: var(--warn); }
.pill-held, .pill-wait, .pill-awaiting_deposit { background: var(--accent-soft); color: var(--accent); }

/* WhatsApp preview */
.phone { border-radius: 28px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: var(--lift); position: sticky; top: 96px; }
.phone-bar { background: var(--wa-bar); color: #fff; padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.phone-bar small { display: block; font-size: var(--t-xs); opacity: 0.75; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.phone-body { padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; max-height: 420px; min-height: 240px; overflow-y: auto; }
.bubble { max-width: 86%; padding: 8px 10px 4px; border-radius: 12px; font-size: var(--t-sm); line-height: 1.45; box-shadow: 0 1px 0.5px rgb(0 0 0 / 0.13); }
.bubble-out { background: var(--bg); color: var(--ink); align-self: flex-start; border-start-start-radius: 4px; }
.bubble-in { background: var(--wa-in); color: var(--wa-in-ink); align-self: flex-end; border-start-end-radius: 4px; }
.bubble-meta { display: block; text-align: end; font-size: 0.68rem; opacity: 0.6; margin-top: 2px; }
.phone-reply { display: flex; gap: 8px; padding: 10px; background: var(--wa-bg); }
.phone-reply input { border-radius: 999px; border: 0; background: var(--bg); min-height: 42px; }
.send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: #1fa855; color: #fff; display: grid; place-items: center; cursor: pointer; }
[dir="rtl"] .send svg { transform: scaleX(-1); }
@media (max-width: 960px) { .phone { position: static; } }

/* my bookings */
.page-title { font-size: var(--t-xl); margin: 28px 0 20px; }
.mine-list { display: grid; gap: 4px; margin-bottom: 32px; max-width: 720px; }
.mine-row { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--bg); border: 0; border-radius: var(--r); cursor: pointer; text-align: start; width: 100%; }
.mine-row:hover { background: var(--soft); }
.mine-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mine-main .dim { font-size: var(--t-sm); }
.lookup { display: flex; gap: 8px; align-items: end; max-width: 440px; }

/* ---------- dashboard ---------- */
.login { max-width: 440px; margin: 40px auto; display: grid; gap: 16px; }
.login .page-title { margin: 0 0 6px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 28px 0 18px; }
.dash-head .kicker { margin-bottom: 6px; }
.dash-head h1 { font-size: var(--t-xl); }
.daybar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.daybar input { width: auto; border-radius: 999px; min-height: 44px; }
.daybar-label { font-weight: 500; margin-inline-start: 6px; }
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.totals div { background: var(--soft); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.totals b { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.totals span { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 560px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px 12px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: var(--t-sm); white-space: nowrap; margin-bottom: -1px; }
.tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }

.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.quick-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--softer); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.quick-form select, .quick-form input { width: auto; min-width: 0; min-height: 40px; }
.quick-form > input { flex: 1 1 120px; }
.phone-form { flex: 1 1 320px; display: block; }
.phone-form summary { cursor: pointer; padding: 8px 0; }
.pb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.pb-grid input, .pb-grid select { width: 100%; }

.blist { list-style: none; margin: 0; padding: 0; display: grid; }
.brow {
  display: grid; align-items: center; gap: 10px 18px;
  grid-template-columns: 84px minmax(0, 1fr) 150px 120px auto;
  padding: 16px 4px; border-bottom: 1px solid var(--line); position: relative;
}
.brow::before { content: ""; position: absolute; inset-inline-start: -14px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--info); }
.brow.st-seated::before { background: var(--ok); }
.brow.st-completed::before, .brow.st-cancelled::before { background: var(--line); }
.brow.st-no_show::before { background: var(--warn); }
.brow.st-held::before { background: var(--accent); }
.brow.st-completed, .brow.st-cancelled { opacity: 0.55; }
.brow-time { font-weight: 600; font-size: var(--t-md); white-space: nowrap; }
.brow-who { display: grid; gap: 3px; min-width: 0; }
.party { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--soft); font-size: var(--t-xs); margin-inline-start: 4px; }
.brow-who .dim { font-size: var(--t-xs); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badges:empty { display: none; }
.note { font-size: var(--t-xs); color: var(--ink-2); }
.note::before { content: '“'; }
.note::after { content: '”'; }
.note-guest { color: var(--gold); }
.note-guest::before { content: '★ '; }
.note-guest::after { content: ''; }
.brow-table select { min-height: 36px; padding: 4px 10px; font-size: var(--t-xs); border-radius: 999px; }
.brow-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 960px) {
  .brow { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .brow-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .brow-table { grid-column: 2; }
  .brow-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
.wl-head { margin-top: 32px; }
.wlist { list-style: none; margin: 0; padding: 0; display: grid; }
.wlist li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }

/* floor timeline */
.floor-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.floor { min-width: calc(var(--w) + 110px); }
.floor-row { display: grid; grid-template-columns: 110px var(--w); border-bottom: 1px solid var(--line); min-height: 50px; }
.floor-row:last-child { border-bottom: 0; }
.floor-row.is-off { opacity: 0.4; }
.floor-label { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--bg); padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; border-inline-end: 1px solid var(--line); }
.floor-label span { font-size: 0.7rem; color: var(--muted); }
.floor-track { position: relative; }
.floor-axis { min-height: 32px; }
.floor-axis .floor-label, .floor-axis { background: var(--softer); }
.tick { position: absolute; top: 8px; font-size: 0.7rem; color: var(--muted); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
[dir="rtl"] .tick { transform: translateX(50%); }
.tick.tick-first { transform: none; padding-inline-start: 4px; }
.grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.blk {
  position: absolute; top: 7px; bottom: 7px; border-radius: 8px; padding: 0 10px; font-size: 0.75rem; overflow: hidden; white-space: nowrap;
  background: var(--info-soft); color: var(--info); display: flex; gap: 6px; align-items: center;
}
.blk span { opacity: 0.7; }
.blk.st-seated { background: var(--ok-soft); color: var(--ok); }
.blk.st-completed { background: var(--soft); color: var(--muted); }
.blk.st-no_show { background: var(--warn-soft); color: var(--warn); }
.blk.st-held { background: var(--accent-soft); color: var(--accent); }
.now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 1; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; font-size: var(--t-xs); color: var(--muted); margin-top: 12px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: -10px; }
.lg.st-confirmed { background: var(--info); }
.lg.st-seated { background: var(--ok); }
.lg.st-completed { background: var(--line); }
.lg.st-no_show { background: var(--warn); }

/* tables + guests */
.guests-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.import-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; }
.import-box textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.file-btn { cursor: pointer; }
.ttable-scroll { overflow-x: auto; }
.ttable { border-collapse: collapse; width: 100%; min-width: 600px; }
.ttable th { text-align: start; font-size: var(--t-xs); color: var(--muted); font-weight: 500; padding: 10px; border-bottom: 1px solid var(--line); }
.ttable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ttable input[type="number"] { width: 84px; }
.ttable input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--ink); }
.note-input { min-height: 38px; font-size: var(--t-sm); }

/* messages */
.msgs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.msg-in { background: var(--wa-in); color: var(--wa-in-ink); border-color: transparent; }
.msg-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: var(--t-xs); margin-bottom: 6px; }
.msg-in .dim { color: inherit; opacity: 0.7; }
.msg p { font-size: var(--t-sm); }

/* toasts */
.toasts { position: fixed; inset-inline: 0; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; z-index: 20; pointer-events: none; padding-inline: 16px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; box-shadow: var(--lift); font-size: var(--t-sm); max-width: 520px; white-space: pre-line; }
.toast-err { background: var(--bad); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .slot, .btn, .chip, .day, .go { transition: background-color 0.15s, color 0.15s, border-color 0.15s, filter 0.15s; }
  .toast { animation: rise 0.25s cubic-bezier(.2,.7,.2,1); }
  #view > * { animation: fade 0.3s ease-out both; }
  @keyframes rise { from { transform: translateY(10px); opacity: 0.3; } }
  @keyframes fade { from { opacity: 0.6; transform: translateY(4px); } }
}

/* ---------- billing ---------- */
.banner-ok { background: var(--ok-soft); color: var(--ok); }
.banner-bad { background: var(--bad-soft); color: var(--bad); }
.banner-info { background: var(--info-soft); color: var(--info); }
.pill-b-trial { background: var(--info-soft); color: var(--info); }
.pill-b-active { background: var(--ok-soft); color: var(--ok); }
.pill-b-past_due { background: var(--warn-soft); color: var(--warn); }
.pill-b-paused { background: var(--bad-soft); color: var(--bad); }
.pill-b-cancelled { background: var(--soft); color: var(--muted); }
.bill { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 860px; }
.bill > section { min-width: 0; }
.bill .h-sm { margin: 0 0 6px; }
.bill-hero { border-radius: var(--r-lg); padding: 26px 28px; background: var(--softer); box-shadow: var(--ring); display: grid; gap: 6px; }
.bill-hero .banner { margin: 8px 0 0; }
.bill-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: var(--t-sm); }
.bill-hero .kicker { margin: 0; }
.bill-amount { font-size: clamp(2.4rem, 7vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bill-amount-ok { font-size: var(--t-lg); letter-spacing: -0.02em; }
.bill-next { margin-top: 10px; font-size: var(--t-sm); }
.methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: var(--t-sm); font-weight: 500; text-align: start; min-height: 84px; }
.method:hover { border-color: var(--ink-2); }
.method.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.method svg { color: var(--muted); }
.method.is-on svg { color: var(--accent); }
@media (max-width: 640px) { .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .method:last-child { grid-column: span 2; } }
.method-panel { margin-top: 12px; padding: 20px; border-radius: var(--r); background: var(--soft); display: grid; gap: 14px; }
.payto { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 10px 10px 14px; border-radius: var(--r-sm); background: var(--bg); box-shadow: var(--ring); min-width: 0; }
.payto code { font-family: var(--f-mono); font-size: var(--t-sm); overflow-wrap: anywhere; min-width: 0; }
.bill-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: end; }
.bill-form .f-wide { grid-column: 1 / -1; }
.bill-form .btn { height: 44px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; justify-items: start; align-content: start; }
.plan.is-cur { border-color: var(--ink); }
.plan .dim { font-size: var(--t-sm); }
.ttable td svg { vertical-align: -4px; color: var(--muted); }
.staff-link { justify-self: center; color: var(--muted); font-size: var(--t-sm); }

/* billing console */
.totals-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.totals-6 b { font-size: var(--t-lg); }
@media (max-width: 1000px) { .totals-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .totals-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.6875rem; font-weight: 600; margin-inline-start: 4px; }
.a-table { min-width: 980px; }
.a-actions { white-space: nowrap; text-align: end; }
.a-actions .btn + .btn { margin-inline-start: 4px; }
.a-form-row td { background: var(--soft); padding: 16px; }
.a-lede { margin-bottom: 18px; max-width: 70ch; }
.a-list { list-style: none; margin: 0; padding: 0; display: grid; }
.a-list > li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.a-list > li:last-child { border-bottom: 1px solid var(--line); }
.a-list .tag-soft { margin-inline-start: 6px; }
.a-list code { font-family: var(--f-mono); }
.a-pick { align-items: flex-start !important; }
.a-pick > div { flex: 1 1 260px; }
.a-pick .bill-form { flex: 2 1 460px; }
.a-area { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 22px 0 6px; }
.flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.flow-node { flex: 1 1 150px; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: var(--r); background: var(--soft); font-size: var(--t-sm); }
.flow-node b { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.flow-arrow { align-self: center; font-size: 1.5rem; color: var(--muted); padding: 0 4px; }
.flow-abroad { background: var(--ink); color: var(--bg); flex: 1.3 1 200px; }
.flow-abroad .dim { color: color-mix(in srgb, var(--bg) 65%, transparent); }
@media (max-width: 640px) { .flow-arrow { transform: rotate(90deg); width: 100%; text-align: center; } }
.a-settings { max-width: 760px; }
.ttable td.code { white-space: nowrap; }

/* staff accounts */
.staff-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.staff-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.staff-row.is-off { opacity: .6; }
.staff-main { display: grid; gap: .15rem; min-width: 0; }
.staff-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.radio { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; }
.login .hint { margin-top: .75rem; }

/* deposits */
.deposit-box { display: grid; gap: 12px; }
.pay-to { display: grid; gap: 6px; margin: 0; }
.pay-to div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pay-to dt { color: var(--muted); min-width: 110px; }
.pay-to dd { margin: 0; font-weight: 600; }
.dep-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.dep-form .btn { grid-column: 1 / -1; }
.deposit-note { line-height: 1.5; }
.set-sec { margin-bottom: 28px; }
.day-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.day-checks label, .f.check { display: flex; gap: 8px; align-items: center; }

/* sign-up and profile */
.join-points { padding-inline-start: 1.2em; margin: 8px 0 16px; display: grid; gap: 6px; }
.join-cta { margin-top: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 3.5em auto minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.hours-row input[type=time] { min-width: 0; }
.a-app { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.a-app p { margin: 4px 0; }
.a-app-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.f input[type=checkbox], .day-checks input[type=checkbox], .hours input[type=checkbox], .check input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
fieldset.f { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.f legend { padding: 0; margin-bottom: 8px; }
label.f.check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.hours-row { grid-template-columns: 2.6em auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.hours-row .check { display: flex; gap: 6px; align-items: center; font-size: var(--t-sm); }
.hours-row input[type=time] { padding: 8px 6px; font-size: 14px; }

/* reviews */
.reviews { margin-top: 28px; }
.rv-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.rv { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rv.is-off { opacity: .5; }
.rv p { margin: 6px 0 0; }
.rv-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.stars { color: var(--accent); letter-spacing: 1px; }
.stars i { color: var(--line); font-style: normal; }
.rv-reply { padding-inline-start: 12px; border-inline-start: 2px solid var(--line); color: var(--ink-2); }
.rv-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.rv-mine { display: grid; gap: 10px; margin: 20px 0; }
.rv-mine textarea { width: 100%; }
.star-pick { display: flex; gap: 6px; font-size: 30px; }
.star-pick label { cursor: pointer; color: var(--line); }
.star-pick label.is-on { color: var(--accent); }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------- floor plans (editor + live service) ---------- */
.seg-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--soft); margin-bottom: 16px; }
.seg-toggle button { border: 0; background: transparent; height: 32px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 500 var(--t-sm) var(--f-ui); color: var(--muted); }
.seg-toggle button.is-on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), var(--ring); }
.chip-sm { height: 32px; padding: 0 12px; font-size: var(--t-xs); display: inline-flex; align-items: center; gap: 6px; }
.chip-n { font-family: var(--f-mono); font-size: 0.7rem; opacity: 0.6; }
.room-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.small { font-size: var(--t-xs); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-inline-end: 6px; vertical-align: 0; }

.fp-bar, .live-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fp-bar-end { display: flex; gap: 8px; align-items: center; }
.fp-bar-end .btn-icon { width: 40px; height: 40px; }
[dir="rtl"] .fp-bar-end .btn-icon { transform: none; }
.unsaved { font-size: var(--t-xs); color: var(--warn); background: var(--warn-soft); padding: 4px 10px; border-radius: 999px; }
.fp-warn { margin-bottom: 12px; }
.fp-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.palette { display: flex; flex-direction: column; gap: 8px; }
.pal-h { margin: 4px 0 0; font-size: var(--t-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font: 500 0.68rem/1.2 var(--f-ui); color: var(--ink-2); text-align: center; }
.pal:hover { border-color: var(--ink-2); background: var(--softer); }
.pal-ico { width: 38px; height: 38px; display: block; pointer-events: none; }
.pal-ico .tb-sub, .pal-ico .tb-label { display: none; }
.canvas-wrap { background: var(--softer); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; }
.canvas { outline: none; border-radius: 10px; }
.canvas:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.fp-svg { display: block; width: 100%; height: auto; max-height: 74vh; touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--f-ui); }
.live-canvas .fp-svg { touch-action: manipulation; }
.scale { margin: 8px 4px 0; font-size: var(--t-xs); }

/* drawing */
.fp-floor { fill: var(--bg); }
.fp-gridline { stroke: var(--line); stroke-width: 0.15; }
.fp-walls { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.fp-hatch-bg { fill: var(--softer); }
.fp-hatch-line { stroke: var(--line); stroke-width: 0.6; }
.fx-solid { fill: var(--ink-2); }
.fx-window { fill: var(--info-soft); stroke: var(--info); stroke-width: 0.25; }
.fx-door { fill: var(--bg); stroke: var(--muted); stroke-width: 0.25; }
.fx-swing { fill: none; stroke: var(--muted); stroke-width: 0.2; stroke-dasharray: 0.7 0.5; }
.fx-bar { fill: var(--soft); stroke: var(--ink-2); stroke-width: 0.3; }
.fx-kitchen { fill: url(#fp-hatch); stroke: var(--muted); stroke-width: 0.25; }
.fx-plant { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 0.25; }
.fx-plant-in { fill: var(--ok); opacity: 0.3; }
.fx-host { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 0.25; }
.fx-stage { fill: var(--soft); stroke: var(--muted); stroke-width: 0.25; stroke-dasharray: 1 0.6; }
.fx-stairs { fill: var(--softer); stroke: var(--muted); stroke-width: 0.25; }
.fx-step { stroke: var(--muted); stroke-width: 0.2; }
.fx-label, .tb-label, .tb-sub { text-anchor: middle; pointer-events: none; }
.fx-label { fill: var(--muted); font-weight: 500; }
.tb-label { fill: var(--ink); font-weight: 600; }
.tb-sub { fill: var(--muted); font-weight: 500; }
.chair { fill: var(--soft); stroke: var(--line); stroke-width: 0.2; }
.bench { fill: var(--soft); stroke: var(--line); stroke-width: 0.25; }
.tb-body { fill: var(--bg); stroke: var(--sec, var(--ink-2)); stroke-width: 0.35; transition: fill 0.15s, stroke 0.15s; }
.tb-ring { fill: none; stroke-width: 0.7; stroke-linecap: round; }
.tb, .fx { cursor: pointer; }
.fp-ed .tb, .fp-ed .fx { cursor: grab; }
.fp-ed .tb .tb-body { fill: color-mix(in srgb, var(--sec, transparent) 12%, var(--bg)); }
.fp-ed .tb .chair { fill: color-mix(in srgb, var(--sec, var(--line)) 22%, var(--bg)); }
.tb.is-sel .tb-body { stroke: var(--accent); stroke-width: 0.7; }
.fx.is-sel { filter: drop-shadow(0 0 0.6px var(--accent)); }
.sel-ring { fill: none; stroke: var(--accent); stroke-width: 0.3; stroke-dasharray: 1 0.6; }
.handle { fill: var(--bg); stroke: var(--accent); stroke-width: 0.4; cursor: nwse-resize; }
.tb.is-bad .tb-body { stroke: var(--bad); stroke-dasharray: 1 0.6; }
.tb.is-off { opacity: 0.35; }
.tb.is-hl .tb-body { fill: var(--accent-soft); }
.guide { stroke: var(--accent); stroke-width: 0.2; stroke-dasharray: 1 1; }
.combo-link { stroke: var(--muted); stroke-width: 0.35; stroke-dasharray: 0.8 0.8; pointer-events: none; }

/* inspector */
.inspector { position: sticky; top: 12px; }
.ins { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.ins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ins-sep { padding-top: 12px; border-top: 1px solid var(--line); }
.ins label { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.ins input:not([type="checkbox"]):not([type="color"]), .ins select { height: 38px; font-size: var(--t-sm); width: 100%; min-width: 0; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.ins-row { display: flex; flex-direction: column; gap: 6px; }
.ins-k { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.segs { display: flex; flex-wrap: wrap; gap: 4px; }
.segb { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; height: 30px; padding: 0 10px; font: 500 var(--t-xs) var(--f-ui); cursor: pointer; color: var(--ink-2); }
.segb.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ins label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--t-sm); cursor: pointer; }
.ins label.chk.mini { font-size: var(--t-xs); }
.ins-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.danger { color: var(--bad) !important; }
.sec-list, .combo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sec-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; align-items: center; }
.sec-list input[type="color"] { width: 34px; height: 34px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.combo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 12px; background: var(--softer); font-size: var(--t-sm); }
.combo-list li .btn { margin-inline-start: auto; }

/* live service */
.scrub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scrub input[type="range"] { width: 200px; accent-color: var(--ink); }
.scrub-t { min-width: 54px; font-size: var(--t-md); }
.btn.is-live { color: var(--accent); border-color: var(--accent); }
.sec-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sec-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--softer); border: 1px solid var(--line); font-size: var(--t-xs); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.live-panel { position: sticky; top: 12px; }
.lp-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.lp-pick { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lp-pick p { margin: 0; }
.lp-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.lp-head .btn-icon { width: 32px; height: 32px; font-size: 1rem; }
.lp-occ { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--softer); }
.lp-occ .note { margin: 0; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stage { height: 34px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font: 500 var(--t-xs) var(--f-ui); cursor: pointer; color: var(--ink-2); }
.stage.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lp-walk { display: flex; gap: 8px; }
.lp-walk select { width: 90px; }
.lp-sub { margin: 4px 0 0; font-size: var(--t-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-later { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--t-sm); }
.lp-later li { display: flex; gap: 10px; align-items: center; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.arr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.arr-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.arr-row:hover, .arr-row:focus-visible { background: var(--softer); outline: none; }
.arr-t { font-size: var(--t-sm); font-weight: 600; }
.arr-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--t-sm); min-width: 0; }
.arr-tb { font-family: var(--f-mono); font-size: var(--t-xs); padding: 3px 8px; border-radius: 8px; background: var(--soft); }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--t-sm); box-shadow: var(--lift); }
.drag-ghost .party { background: color-mix(in srgb, var(--bg) 20%, transparent); }

/* table status colours on the live plan */
.live .tb .chair { fill: color-mix(in srgb, var(--sec, var(--line)) 30%, var(--bg)); stroke: none; }
.live .st-free .tb-body { stroke: var(--line); stroke-width: 0.35; }
.live .st-soon .tb-body { stroke: var(--warn); stroke-width: 0.5; }
.live .st-soon .tb-sub { fill: var(--warn); }
.live .st-due .tb-body { fill: var(--warn-soft); stroke: var(--warn); stroke-width: 0.5; }
.live .st-due .tb-sub { fill: var(--warn); }
.live .is-late .tb-sub { fill: var(--bad); font-weight: 700; }
.live .st-seated .tb-body { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 0.35; }
.live .st-seated .tb-ring { stroke: var(--ok); }
.live .st-bill .tb-body { fill: var(--info-soft); stroke: var(--info); stroke-width: 0.35; }
.live .st-bill .tb-ring { stroke: var(--info); }
.live .st-over .tb-body { fill: var(--bad-soft); stroke: var(--bad); stroke-width: 0.35; }
.live .st-over .tb-ring { stroke: var(--bad); }
.live .st-over .tb-sub { fill: var(--bad); }
.live .is-held .tb-body { stroke-dasharray: 1 0.7; }
.live .is-mine .tb-body { stroke: var(--accent); stroke-dasharray: 1 0.7; stroke-width: 0.6; }
.live .is-pick .tb-body { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 0.8; }
.live .is-focus .tb-body { stroke: var(--ink); stroke-width: 0.8; }
.tb.is-drop .tb-body { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 0.9; }
.fp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-tb { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--bg); }
.lg-tb.st-soon { border-color: var(--warn); }
.lg-tb.st-due { border-color: var(--warn); background: var(--warn-soft); }
.lg-tb.st-seated { border-color: var(--ok); background: var(--ok-soft); }
.lg-tb.st-bill { border-color: var(--info); background: var(--info-soft); }
.lg-tb.st-over { border-color: var(--bad); background: var(--bad-soft); }

@media (max-width: 1080px) {
  .fp-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .palette { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pal-h { display: none; }
  .pal-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .pal { flex: none; width: 74px; }
}
@media (max-width: 860px) {
  .fp-grid, .live-grid { grid-template-columns: 1fr; }
  .inspector, .live-panel { position: static; }
  .palette { flex-wrap: nowrap; overflow-x: auto; }
  .scrub input[type="range"] { width: 140px; flex: 1; }
  .scrub { width: 100%; }
}
.ins input[type="checkbox"], .combo-list input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--ink); }
.ins-full { width: 100%; }
.arr-row { grid-template-columns: 70px 1fr auto; }
.arr-t { white-space: nowrap; }
@media (max-width: 640px) {
  .live-canvas { overflow-x: auto; }
  .live-canvas .fp-svg { min-width: 560px; max-height: none; }
}

/* ======================================================================
   Tawleh Control: the platform owner's panel (public/admin.js)
   A calm, dense workspace: sidebar, sticky top bar, cards on a soft canvas,
   a slide-over drawer for details. Colour only where something needs a decision.
   ====================================================================== */
.cp-root { min-height: 100vh; background: var(--softer); }
.cp { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; overflow-x: clip; }
.cp-root, .cp-root ~ * { max-width: 100vw; }
.cp .ic { flex: none; }
.cp code { font-family: var(--f-mono); font-size: 0.8em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.cp .num { font-variant-numeric: tabular-nums; }
.cp .is-warn { color: var(--warn); }
.cp .is-bad { color: var(--bad); }
.cp .r { text-align: end; }
.cp .c { text-align: center; }
.cp .nowrap { white-space: nowrap; }
.cp .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--t-sm); }

/* sidebar */
.cp-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px 14px; border-inline-end: 1px solid var(--line); background: var(--bg); overflow-y: auto;
}
.cp-side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 14px; }
.cp-brand { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.cp-brand .brand-ar { font-size: 1.2rem; }
.cp-brand-tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.cp-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.cp-nav-group { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.cp-nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--ink-2); font-size: var(--t-sm); font-weight: 500; cursor: pointer; text-align: start; position: relative;
}
.cp-nav-item .ic { color: var(--muted); }
.cp-nav-item:hover { background: var(--soft); color: var(--ink); }
.cp-nav-item.is-on { background: var(--soft); color: var(--ink); font-weight: 600; }
.cp-nav-item.is-on .ic { color: var(--accent); }
.cp-nav-item.is-on::before { content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.cp-nav-item span { flex: 1; }
.cp-badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.6875rem; font-weight: 600; display: inline-grid; place-items: center; }
.cp-me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.cp-me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cp-me-txt b { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-me-txt span { font-size: var(--t-xs); color: var(--muted); }
.cp-reset { font-size: var(--t-xs); color: var(--muted); padding: 6px 8px; text-align: start; }
.cp-iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cp-iconbtn:hover { background: var(--soft); color: var(--ink); }
.cp-menu { display: none; }

/* main column */
.cp-main { min-width: 0; padding: 0 clamp(16px, 3vw, 36px) 72px; }
.cp-top {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  margin: 0 calc(-1 * clamp(16px, 3vw, 36px)) 22px; padding: 14px clamp(16px, 3vw, 36px);
  background: color-mix(in srgb, var(--softer) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.cp-top h1 { font-size: var(--t-lg); }
.cp-search { position: relative; display: flex; align-items: center; gap: 8px; width: min(420px, 50%); height: 40px; padding: 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.cp-search:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
.cp-search input { border: 0; padding: 0; min-height: 0; height: 100%; background: none; outline: none; font-size: var(--t-sm); color: var(--ink); }
.cp-search kbd { font-family: var(--f-mono); font-size: 0.6875rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.cp-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--lift); padding: 6px; max-height: 70vh; overflow-y: auto; z-index: 10; }
.cp-res-h { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.cp-res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: start; color: var(--muted); }
.cp-res:hover, .cp-res:focus-visible { background: var(--soft); }
.cp-res span { display: flex; flex-direction: column; min-width: 0; }
.cp-res b { color: var(--ink); font-weight: 500; font-size: var(--t-sm); }
.cp-res i { font-style: normal; font-size: var(--t-xs); }
.cp-res-none { padding: 14px; color: var(--muted); font-size: var(--t-sm); }
.cp-boot { display: grid; place-items: center; min-height: 40vh; }
.cp-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: cp-spin 0.8s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* building blocks */
.cp-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.cp-flush { padding: 0; overflow: hidden; }
.cp-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cp-card-h h3 { font-size: var(--t-base); font-weight: 600; letter-spacing: -0.01em; }
.cp-card-h .dim { font-size: var(--t-xs); }
.cp-mt { margin-top: 22px; }
.cp-h3 { font-size: var(--t-sm); font-weight: 600; margin: 26px 0 10px; color: var(--ink-2); }
.cp-lede { max-width: 72ch; margin-bottom: 16px; font-size: var(--t-sm); }
.cp-foot { font-size: var(--t-xs); color: var(--muted); padding: 12px 16px; }
.cp-card .cp-foot { padding: 12px 0 0; }
.cp-flush .cp-foot { padding: 12px 16px; border-top: 1px solid var(--line); }
.cp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cp-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 40px 16px; color: var(--muted); font-size: var(--t-sm); }
.cp-empty b { color: var(--ink-2); font-weight: 600; }
.cp-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 0.71875rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.cp-tag + .cp-tag { margin-inline-start: 4px; }
.cp-tag-ok { background: var(--ok-soft); color: var(--ok); }
.cp-tag-info { background: var(--info-soft); color: var(--info); }
.cp-tag-warn { background: var(--warn-soft); color: var(--warn); }
.cp-tag-bad { background: var(--bad-soft); color: var(--bad); }
.cp-tag-accent { background: var(--accent-soft); color: var(--accent); }
.cp-tag-mute { background: var(--soft); color: var(--muted); }
.cp-av { --h: 220; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.cp-av[style] { border-radius: 10px; background: hsl(var(--h) 70% 93%); color: hsl(var(--h) 55% 32%); }
.cp-av-lg { width: 48px; height: 48px; font-size: 1.125rem; border-radius: 14px; background: var(--ink); color: var(--bg); }
.cp-stars { color: var(--gold); letter-spacing: 1px; font-size: 0.9rem; white-space: nowrap; }
.cp-stars i { font-style: normal; color: var(--line); }
.cp-feat { color: var(--gold); }
.cp-pin { font-family: var(--f-mono); font-size: 1.5rem; letter-spacing: 0.12em; color: var(--ink); }
.cp-note { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; font-size: var(--t-sm); margin-bottom: 16px; }
.cp-note-bad { background: var(--bad-soft); color: var(--ink); }
.cp-note-bad b { color: var(--bad); }
.cp-note-ok { background: var(--ok-soft); color: var(--ink); }

/* toolbars and filters */
.cp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cp-toolbar select { width: auto; min-height: 36px; padding: 6px 30px 6px 12px; font-size: var(--t-sm); border-radius: 10px; }
.cp-toolbar > .dim { flex: 1; font-size: var(--t-sm); }
.cp-sum { margin-inline-start: auto; font-size: var(--t-xs); color: var(--muted); }
.cp-filter-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); width: min(320px, 100%); }
.cp-filter-q:focus-within { border-color: var(--ink-2); }
.cp-filter-q input { border: 0; padding: 0; min-height: 0; height: 100%; background: none; outline: none; font-size: var(--t-sm); color: var(--ink); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: var(--t-xs); font-weight: 500; cursor: pointer; white-space: nowrap; }
.cp-chip:hover { border-color: var(--ink-2); }
.cp-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cp-chip i { font-style: normal; opacity: 0.6; font-variant-numeric: tabular-nums; }
.cp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cp-subtabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cp-subtab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px 11px; font-size: var(--t-sm); font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cp-subtab:hover { color: var(--ink); }
.cp-subtab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.cp-count { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.65rem; font-weight: 600; margin-inline-start: 4px; }

/* tables */
.cp-scroll { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.cp-table th { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--softer); white-space: nowrap; }
.cp-table th.r { text-align: end; }
.cp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-table tr.is-click { cursor: pointer; }
.cp-table tr.is-click:hover td { background: var(--softer); }
.cp-table .dim { font-size: var(--t-xs); }
.cp-table-tight td, .cp-table-tight th { padding: 9px 10px; }
.cp-card .cp-table-tight th { background: none; padding-top: 0; }
.cp-cell-main { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cp-cell-main > span { display: flex; flex-direction: column; min-width: 0; }
.cp-cell-main i { font-style: normal; font-size: var(--t-xs); color: var(--muted); }
.cp-bar { display: block; height: 3px; border-radius: 3px; background: var(--soft); margin: 5px 0 0 auto; width: 90px; }
.cp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-2); }
.cp-actions { text-align: end; white-space: nowrap; }
.cp-actions .btn + .btn { margin-inline-start: 4px; }
.cp-form-row td { background: var(--softer); padding: 16px; }
.cp-matrix td:first-child { min-width: 240px; }
.cp-yes { color: var(--ok); display: inline-flex; }
.cp-no { color: var(--line); }

/* overview */
.cp-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cp-hello h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.cp-hello .dim { font-size: var(--t-sm); margin-top: 6px; }
.cp-live { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: var(--t-xs); font-weight: 600; border: 0; }
.cp-live.is-off { background: var(--bad); color: #fff; cursor: pointer; }
.cp-attn { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cp-attn-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  cursor: pointer; text-align: start; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.3; transition: border-color 0.15s, transform 0.15s;
}
.cp-attn-item:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.cp-attn-item b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.cp-attn-failed b, .cp-attn-switch b { background: var(--bad-soft); color: var(--bad); }
.cp-attn-signups b, .cp-attn-payments b { background: var(--info-soft); color: var(--info); }
.cp-attn-item span { flex: 1; }
.cp-attn-item .ic { color: var(--muted); }
.cp-attn-item.is-clear { cursor: default; color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.cp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cp-kpis-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cp-kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-kpi-l { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.cp-kpi-v { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-kpi-x { font-size: var(--t-xs); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 18px; }
.cp-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--muted); }
.cp-delta.is-good { color: var(--ok); }
.cp-delta.is-bad { color: var(--bad); }
.cp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cp-span2 { grid-column: span 2; }
.cp-chart { position: relative; min-height: 200px; }
.cp-chart svg { display: block; overflow: visible; }
.cp-chart .grid { stroke: var(--line); stroke-width: 1; }
.cp-chart .tick, .cp-chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-ui); }
.cp-chart text.is-today { fill: var(--ink); font-weight: 600; }
.cp-chart .bar path { fill: var(--ink-2); transition: fill 0.12s; }
.cp-chart .bar.is-future path { fill: color-mix(in srgb, var(--ink-2) 28%, var(--bg)); }
.cp-chart .bar.is-today path { fill: var(--ink); }
.cp-chart .bar.is-hover path { fill: var(--accent); }
.cp-chart .hit { fill: transparent; cursor: pointer; }
.cp-tip { position: absolute; top: -6px; width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: var(--t-xs); display: flex; flex-direction: column; gap: 1px; pointer-events: none; box-shadow: var(--lift); }
.cp-tip .dim { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.cp-legend { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-start: 6px; }
.sw-past { background: var(--ink-2); }
.sw-future { background: color-mix(in srgb, var(--ink-2) 28%, var(--bg)); }
.cp-stack { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.cp-stack .seg { min-width: 2px; }
.seg-online { background: var(--ink-2); }
.seg-phone { background: var(--info); }
.seg-walkin { background: var(--gold); }
.cp-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.cp-legend-list li { display: flex; align-items: center; gap: 8px; }
.cp-legend-list .sw { margin: 0; }
.cp-legend-list b { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.cp-legend-list .dim { font-size: var(--t-xs); min-width: 42px; text-align: end; }
.cp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cp-feed li { display: flex; gap: 10px; font-size: var(--t-sm); line-height: 1.4; }
.cp-feed .cp-av { width: 28px; height: 28px; font-size: 0.6875rem; }
.cp-feed .dim { font-size: var(--t-xs); }
.cp-feed-t { color: var(--ink); font-weight: 500; }

/* drawer */
.cp-scrim { position: fixed; inset: 0; z-index: 30; background: rgb(10 10 9 / 0.28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cp-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 31; width: min(620px, 100vw); background: var(--bg);
  border-inline-start: 1px solid var(--line); box-shadow: -24px 0 60px -30px rgb(0 0 0 / 0.35); overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 28px 48px; transform: translateX(104%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1); visibility: hidden; outline: none;
}
.cp-drawer.is-open { transform: none; visibility: visible; }
.cp-drawer-x { position: absolute; top: 16px; inset-inline-end: 16px; }
.cp-dh { display: flex; align-items: center; gap: 14px; padding-inline-end: 40px; }
.cp-dh .cp-av { width: 48px; height: 48px; font-size: 1rem; }
.cp-dh h2 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.cp-dh p { font-size: var(--t-sm); margin-top: 4px; }
.cp-dh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.cp-dh-tags .cp-tag + .cp-tag { margin: 0; }
.cp-dh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.cp-danger { color: var(--bad) !important; }
.cp-danger:hover { border-color: var(--bad) !important; }
.cp-dtabs { display: flex; gap: 2px; margin: 18px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cp-dtab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 10px 10px; font-size: var(--t-sm); color: var(--muted); font-weight: 500; cursor: pointer; white-space: nowrap; }
.cp-dtab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.cp-dbody { margin-top: 18px; }
.cp-dtabs + .cp-dbody { margin-top: 0; }
.cp-mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 18px; }
.cp-mini-kpis .cp-kpi { padding: 12px 14px; background: var(--softer); border: 0; }
.cp-mini-kpis .cp-kpi-v { font-size: 1.25rem; }
.cp-dl { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0 0 18px; font-size: var(--t-sm); }
.cp-dl dt { color: var(--muted); }
.cp-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cp-form { display: grid; gap: 12px; }
.cp-form + .cp-form, .cp-dl + .cp-form { margin-top: 6px; }
.cp-form .btn { justify-self: start; }
.cp-form-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cp-form-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; }
.cp-wide { grid-column: 1 / -1; }
.cp-form-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--t-xs); }
.cp-form input, .cp-form select, .cp-form textarea { min-height: 40px; padding: 8px 12px; font-size: var(--t-sm); border-radius: 10px; }
.cp-form fieldset { border: 0; padding: 0; margin: 0; }
.cp-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.cp-hours { display: grid; gap: 6px; margin-top: 6px; }
.cp-hour { display: grid; grid-template-columns: 80px 1fr auto 1fr; gap: 8px; align-items: center; }
.cp-hour input[type="time"] { min-height: 36px; padding: 4px 8px; }
.cp-floor { display: grid; gap: 14px; }
.cp-room { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--softer); }
.cp-room figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-xs); color: var(--muted); padding: 2px 4px 8px; }
.cp-room figcaption b { color: var(--ink); font-weight: 600; }
.cp-room .fp-svg { max-height: 340px; }
.cp-floor + .cp-form-btns { margin-top: 14px; }
.cp-blist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cp-bitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: start; }
.cp-bitem:hover { border-color: var(--ink-2); }
.cp-bdate { display: flex; flex-direction: column; min-width: 58px; font-size: var(--t-xs); }
.cp-bdate i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-bmain { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: var(--t-sm); }
.cp-bmain i { font-style: normal; color: var(--muted); font-size: var(--t-xs); }
.cp-diner-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 18px; padding: 12px 14px; border: 1px solid var(--line); background: var(--softer); border-radius: 14px; cursor: pointer; text-align: start; }
.cp-diner-card > span:not(.cp-av) { flex: 1; display: flex; flex-direction: column; font-size: var(--t-sm); }
.cp-diner-card i { font-style: normal; color: var(--muted); font-size: var(--t-xs); }
.cp-thread { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--wa-bg); }
.cp-bub { max-width: 86%; padding: 8px 11px 6px; border-radius: 12px; font-size: var(--t-sm); background: var(--bg); justify-self: start; box-shadow: 0 1px 0 rgb(0 0 0 / 0.06); }
.cp-bub.is-out { justify-self: end; background: var(--wa-in); color: var(--wa-in-ink); }
.cp-bub.is-failed { outline: 1.5px solid var(--bad); }
.cp-bub p { white-space: pre-line; overflow-wrap: anywhere; }
.cp-bub span { display: block; font-size: 0.6875rem; opacity: 0.7; margin-top: 3px; }
.cp-simple { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.cp-people { list-style: none; margin: 0; padding: 0; }
.cp-card.cp-people { padding: 4px 18px; }
.cp-person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cp-person:last-child { border-bottom: 0; }
.cp-person.is-off { opacity: 0.55; }
.cp-person-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; font-size: var(--t-sm); }
.cp-person-main .dim { font-size: var(--t-xs); }
.cp-person-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.cp-person-actions select { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: var(--t-xs); border-radius: 8px; }
.cp-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cp-role { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-sm); padding: 14px 16px; }
.cp-role .dim { font-size: var(--t-xs); }

/* dialog */
.cp-dialog { border: 0; padding: 0; border-radius: 20px; background: var(--bg); color: var(--ink); width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.45); }
.cp-dialog::backdrop { background: rgb(10 10 9 / 0.4); backdrop-filter: blur(3px); }
.cp-dlg { display: grid; gap: 14px; padding: 24px; }
.cp-dlg h2 { font-size: var(--t-md); }
.cp-dlg .dim { font-size: var(--t-sm); line-height: 1.5; }
.cp-dlg textarea { font-size: var(--t-sm); }
.cp-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.cp-presets { display: flex; flex-wrap: wrap; gap: 6px; }

/* sign-ups, reviews, messages, audit */
.cp-app { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.cp-app-main { flex: 1 1 360px; display: grid; gap: 4px; font-size: var(--t-sm); }
.cp-app-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 4px; }
.cp-app-h h3 { font-size: var(--t-md); }
.cp-app blockquote { margin: 8px 0 0; padding: 8px 12px; border-inline-start: 3px solid var(--line); color: var(--ink-2); }
.cp-app-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.cp-rows { list-style: none; margin: 0; padding: 0; }
.cp-rows > li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.cp-rows > li:last-child { border-bottom: 0; }
.cp-rows .cp-tag { margin-inline-start: 6px; }
.cp-pick { align-items: flex-start !important; }
.cp-pick > div { flex: 1 1 240px; }
.cp-pick .cp-pay { flex: 2 1 460px; }
.cp-pay { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
.cp-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 8px; }
.cp-flow-node { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: var(--t-xs); }
.cp-flow-node b { font-size: var(--t-lg); }
.cp-flow-node.is-abroad { background: var(--ok-soft); border-color: transparent; }
.cp-flow-arrow { display: grid; place-items: center; color: var(--muted); font-size: 1.25rem; }
.cp-revhead { display: grid; grid-template-columns: auto minmax(200px, 1fr); gap: 12px 32px; align-items: center; margin-bottom: 16px; }
.cp-revavg { display: flex; flex-direction: column; gap: 2px; }
.cp-revavg b { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cp-revavg .dim { font-size: var(--t-xs); }
.cp-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: var(--t-xs); }
.cp-dist li { display: grid; grid-template-columns: 24px 1fr 32px; gap: 8px; align-items: center; }
.cp-dist i { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.cp-dist em { display: block; height: 100%; border-radius: 4px; background: var(--gold); }
.cp-dist b { text-align: end; font-weight: 500; }
.cp-revnote { grid-column: 1 / -1; font-size: var(--t-xs); }
.cp-reviews { display: grid; gap: 10px; }
.cp-review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-sm); margin-bottom: 8px; }
.cp-review header .dim { font-size: var(--t-xs); }
.cp-review.is-hidden { background: var(--softer); }
.cp-review.is-hidden .cp-review-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.cp-review-text { font-size: var(--t-base); line-height: 1.55; }
.cp-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: var(--t-sm); }
.cp-reply b { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.cp-hidden-why { font-size: var(--t-xs); color: var(--muted); margin-top: 8px; }
.cp-review footer { display: flex; gap: 6px; margin-top: 12px; }
.cp-msgs { list-style: none; margin: 0; padding: 0; }
.cp-msg { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cp-msg:last-child { border-bottom: 0; }
.cp-msg.is-failed { background: color-mix(in srgb, var(--bad-soft) 55%, var(--bg)); }
.cp-msg-dir { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.cp-msg-dir.is-in { background: var(--wa-in); color: var(--wa-in-ink); }
.cp-msg-main { flex: 1; min-width: 0; }
.cp-msg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-sm); }
.cp-msg-h .dim { font-size: var(--t-xs); }
.cp-msg-h time { margin-inline-start: auto; font-size: var(--t-xs); white-space: nowrap; }
.cp-msg-body { margin-top: 4px; font-size: var(--t-sm); color: var(--ink-2); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; cursor: pointer; overflow-wrap: anywhere; }
.cp-msg-body.is-open { -webkit-line-clamp: unset; display: block; }
.cp-msg-err { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: var(--t-xs); color: var(--bad); }
.cp-msg .cp-row { margin-top: 8px; }
.cp-audit { list-style: none; margin: 0; padding: 4px 18px; }
.cp-audit li { display: grid; grid-template-columns: 48px 30px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.cp-audit li:last-child { border-bottom: 0; }
.cp-audit time { color: var(--muted); font-size: var(--t-xs); padding-top: 6px; }
.cp-audit .cp-av { width: 30px; height: 30px; font-size: 0.6875rem; }
.cp-audit .dim { font-size: var(--t-xs); margin-top: 2px; }
.cp-audit-k { font-size: 0.6875rem !important; color: var(--muted); align-self: center; }

/* settings */
.cp-settings { display: grid; gap: 14px; max-width: 820px; }
.cp-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cp-switch-row:last-child { border-bottom: 0; }
.cp-switch-row > span { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-sm); }
.cp-switch-row .dim { font-size: var(--t-xs); max-width: 60ch; }
.cp-switch-row.is-danger b { color: var(--bad); }
.cp-switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px !important; height: 26px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.18s; }
.cp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.18s; }
.cp-switch:checked { background: var(--ok); }
.cp-switch:checked::after { transform: translateX(18px); }
.cp-ann-preview { margin: 0; }

/* sign-in */
.cp-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-login-side { background: var(--ink); color: var(--bg); padding: 40px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; }
.cp-login-side .cp-brand { color: var(--bg); }
.cp-login-side .cp-brand-tag { background: var(--bg); color: var(--ink); }
.cp-login-copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; max-width: 16ch; margin-bottom: 24px; }
.cp-login-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: color-mix(in srgb, var(--bg) 75%, var(--ink)); font-size: var(--t-sm); }
.cp-login-copy li { display: flex; gap: 8px; align-items: center; }
.cp-login-form { align-self: center; justify-self: center; width: min(400px, 100%); display: grid; gap: 14px; padding: 40px 24px; }
.cp-login-form h1 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.cp-login-form .kicker { margin: 0; }
.cp-back { justify-self: center; font-size: var(--t-xs); color: var(--muted); }

/* the banner on the diner site */
.announce { background: var(--info-soft); color: var(--info); font-size: var(--t-sm); font-weight: 500; text-align: center; padding: 10px 20px; }
.announce-warn { background: var(--warn-soft); color: var(--warn); }
/* restaurant dashboard opened from Control */
.viewas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: var(--t-sm); }
.viewas .btn { background: var(--bg); color: var(--ink); border-color: transparent; }

@media (max-width: 1100px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cp-span2 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cp { grid-template-columns: minmax(0, 1fr); }
  .cp-side { position: sticky; top: 0; z-index: 8; height: auto; padding: 10px 12px; border-inline-end: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .cp-side-top { padding: 0; }
  .cp-menu { display: inline-grid; }
  .cp-nav, .cp-me, .cp-reset { display: none; }
  .cp-side.is-open .cp-nav, .cp-side.is-open .cp-me { display: flex; }
  .cp-side.is-open .cp-reset { display: block; }
  .cp-side.is-open { max-height: 100vh; overflow-y: auto; box-shadow: var(--lift); }
  .cp-top { position: static; flex-wrap: wrap; }
  .cp-search { width: 100%; }
  .cp-search kbd { display: none; }
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-login { grid-template-columns: minmax(0, 1fr); }
  .cp-login-side { display: none; }
  .cp-revhead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cp-drawer { padding: 20px 16px 40px; }
  .cp-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cp-dl dd { margin-bottom: 8px; }
  .cp-audit li { grid-template-columns: 40px 1fr; }
  .cp-audit li .cp-av, .cp-audit-k { display: none; }
  .cp-hour { grid-template-columns: 70px 1fr auto 1fr; }
  .cp-kpi-v { font-size: 1.375rem; }
  .cp-toolbar select { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-drawer, .cp-attn-item, .cp-switch, .cp-switch::after { transition: none; }
}

/* ======================================================================
   Launch additions: tab bar, favourites, photos, menu, accounts, reports
   ====================================================================== */

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }
#view:focus { outline: none; }
.nav-sep { width: 1px; height: 18px; background: var(--line); align-self: center; margin-inline: 6px; }
.link-quiet { background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; font: inherit; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot { align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-demo { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Bottom tab bar on phones, like the native apps */
.tabbar { display: none; }
@media (max-width: 700px) {
  .top .nav { display: none; }
  .top-inner { flex-wrap: nowrap; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 6;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  }
  .tabbar-item { display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); font: 500 0.6875rem var(--f-ui); min-width: 0; }
  .tabbar-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-item.is-on { color: var(--accent); }
  .tabbar-item.is-on svg { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
  .wrap.has-tabbar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body:has(.tabbar) .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body:has(.tabbar) .mobile-cta { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
  body:has(.tabbar) .toasts { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  .foot { flex-direction: column; align-items: flex-start; }
}
.mobile-cta { transition: transform .25s ease, opacity .25s ease; }
.mobile-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* Favourites */
.card { position: relative; }
.heart {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.92); color: #111; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); transition: transform .15s ease;
}
.heart:active { transform: scale(0.9); }
.heart.is-on { color: var(--accent); }
.heart.is-on svg { fill: currentColor; }
.heart-card { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; }
.heart-lg { background: var(--soft); box-shadow: none; color: var(--ink); width: 44px; height: 44px; }
.heart-lg.is-on { color: var(--accent); background: var(--accent-soft); }
.btn-round { border-radius: 999px; width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; }
.rest-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rest-acts { display: flex; gap: 8px; flex: none; padding-top: 8px; }

/* Photos */
.art-photo { background: var(--soft); }
.art-photo::after { display: none; }
.art-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(280px, 38vw, 460px); margin-block: 8px 28px; border-radius: var(--r-lg); overflow: hidden; }
.gal-item { padding: 0; border: 0; cursor: zoom-in; background: var(--soft); overflow: hidden; min-height: 0; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.gal-item:hover img { transform: scale(1.03); }
.gal-item:first-child { grid-row: span 2; }
.gal:has(.gal-item:nth-child(2):last-of-type) { grid-template-columns: 2fr 1fr; }
.gal:has(.gal-item:nth-child(2):last-of-type) .gal-item:nth-child(2) { grid-row: span 2; }
.gal:has(.gal-item:nth-child(3):last-of-type) { grid-template-columns: 2fr 1fr; }
.gal:has(.gal-item:nth-child(4):last-of-type) .gal-item:nth-child(4) { grid-column: span 2; }
.gal-one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal-more { position: absolute; inset-inline-end: 14px; bottom: 14px; background: rgb(0 0 0 / 0.6); color: #fff; font-weight: 600; font-size: var(--t-sm); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
@media (max-width: 700px) {
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: auto; border-radius: var(--r); margin-inline: -20px; padding-inline: 20px; gap: 8px; scrollbar-width: none; }
  .gal::-webkit-scrollbar { display: none; }
  .gal-item { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; border-radius: var(--r); }
  .gal-one .gal-item { flex-basis: 100%; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgb(255 255 255 / 0.14); color: #fff; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgb(255 255 255 / 0.24); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; font-size: 1.1rem; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lb-prev, [dir="rtl"] .lb-next { transform: scaleX(-1); }
.lb-count { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; text-align: center; color: rgb(255 255 255 / 0.8); font-size: var(--t-sm); }

/* Special days and menu on the restaurant page */
.special { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-soft); font-size: var(--t-sm); }
.special ul { margin: 6px 0 0; padding-inline-start: 18px; }
.big-party { margin: -4px 0 0; }
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; padding-bottom: 2px; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.menu-line { display: flex; align-items: baseline; gap: 8px; }
.menu-line b { font-weight: 600; }
.menu-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.menu-price { font-weight: 600; }
.menu-sub { color: var(--muted); font-size: var(--t-sm); }
.menu-item p { font-size: var(--t-sm); }
.menu-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.menu .hint { margin-top: 12px; }

/* My bookings, saved, account */
.mine-sec { margin-bottom: 28px; max-width: 720px; }
.mine-sec .h-sm { margin: 0 0 8px; }
.signin-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--soft); margin-bottom: 18px; max-width: 720px; flex-wrap: wrap; }
.signin-card p { flex: 1; min-width: 200px; }
.signin-card > span { color: var(--muted); display: grid; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 56px 20px; color: var(--muted); }
.empty-state p { max-width: 36ch; }
.saved-hint { margin: -8px 0 20px; }
.acct { max-width: 720px; margin: 0 auto; }
.acct-head { display: flex; gap: 16px; align-items: center; margin: 28px 0 22px; }
.acct-head .page-title { margin: 0 0 2px; }
.avatar { width: 64px; height: 64px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.6rem; font-weight: 600; flex: none; }
.acct-form { display: grid; gap: 16px; }
.acct-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.acct-card .h-sm { margin: 0; }
.acct-save { position: sticky; bottom: 0; z-index: 2; padding: 14px 0 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
@media (min-width: 701px) { .acct-save { position: static; background: none; padding: 4px 0 0; } .acct-save .btn { width: auto; min-width: 200px; } }
@media (max-width: 700px) { .acct-save { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }
.acct-more { margin-top: 16px; gap: 0; padding-block: 8px; }
.acct-more .h-sm { padding: 10px 0; }
.acct-link { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-top: 1px solid var(--line); padding: 14px 0; cursor: pointer; font: inherit; text-align: start; color: var(--ink); }
.acct-link span { color: var(--muted); font-size: 1.2rem; }
[dir="rtl"] .acct-link span { transform: scaleX(-1); }
.acct-danger { color: var(--bad); }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--t-sm); font-weight: 500; transition: background .15s, color .15s; }
.pick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: inset-inline-start .2s; }
.switch:checked { background: var(--ok); }
.switch:checked::after { inset-inline-start: 21px; }
.switch-sm { font-size: var(--t-xs); color: var(--muted); }
.switch-sm .switch { transform: scale(0.85); }
.code-flow .why-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.code-flow .why-list li { display: flex; gap: 10px; align-items: baseline; }
.code-flow .why-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.otp { font: 600 1.5rem/1 var(--f-mono); letter-spacing: 0.4em; text-align: center; }
.code-flow .row-btns { justify-content: space-between; }
.legal { max-width: 760px; }
.legal p { max-width: 70ch; color: var(--ink-2); }
.legal .h-sm { margin: 28px 0 8px; }
.legal-tabs { margin-top: 24px; flex-wrap: wrap; border-radius: var(--r); }
.needs-note { margin: 0; }

/* Dashboard additions */
.dash-head-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag-bad { background: var(--bad-soft); color: var(--bad); white-space: normal; }
.staff-main .tag-soft { justify-self: start; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sec-head .h-sm { margin-top: 0; }
.ph-add { cursor: pointer; }
.ph-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.ph-item { position: relative; display: grid; gap: 8px; }
.ph-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--soft); }
.ph-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--ink); color: var(--bg); font-size: var(--t-xs); font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ph-cap { width: 100%; }
.ph-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mn-sec { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; display: grid; gap: 12px; min-width: 0; }
.mn-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.mn-row-sec { grid-template-columns: 1fr 1fr auto; }
.mn-price { width: 110px; }
.mn-item { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--softer); }
.mn-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--t-sm); }
.mn-rmi { margin-inline-start: auto; color: var(--bad); }
.mini-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mini-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
@media (max-width: 640px) { .mn-row, .mn-row-sec { grid-template-columns: 1fr 1fr; } .mn-row .mn-price, .mn-row-sec .btn { grid-column: span 2; width: auto; } }
.sd-list { display: grid; gap: 10px; margin-bottom: 14px; }
.sd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px; border-radius: var(--r-sm); background: var(--softer); }
.sd-row .seg-toggle { margin: 0; }
.sd-row input[type=time] { width: 120px; }
.sd-note { flex: 1; min-width: 160px; }
.pc-form { display: grid; gap: 10px; max-width: 520px; }
.pc-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; }
.pc-row small { color: var(--muted); font-size: var(--t-xs); }
@media (max-width: 520px) { .pc-row { grid-template-columns: 1fr 90px; } .pc-row small { grid-column: span 2; margin-top: -6px; } }

/* Reports */
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-top .seg-toggle { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: var(--r); background: var(--soft); align-content: start; }
.kpi > span:first-child { font-size: var(--t-xs); color: var(--muted); }
.kpi b { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-d { font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.kpi-d.is-good { color: var(--ok); }
.kpi-d.is-bad { color: var(--bad); }
.rp-vs { font-size: var(--t-xs); margin: 8px 0 20px; }
.rp-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.rp-card .h-sm { margin: 0 0 14px; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .rp-grid { grid-template-columns: 1fr; } }
.rp-bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.rp-bar { flex: 1; height: max(2px, var(--h)); background: var(--ink); border-radius: 4px 4px 0 0; position: relative; min-width: 2px; }
.rp-bar:hover { background: var(--accent); }
.rp-bar i { position: absolute; bottom: 100%; inset-inline-end: 0; font: 600 var(--t-xs) var(--f-ui); font-style: normal; color: var(--ink); padding-bottom: 4px; }
.rp-axis { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); margin-top: 6px; }
.rp-stack { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.sw-online { background: var(--ink); }
.sw-phone { background: var(--info); }
.sw-walkin { background: var(--gold); }
.rp-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-sm); }
.rp-key { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.rp-key b { color: var(--ink); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rp-h { display: grid; grid-template-columns: 64px 1fr 40px; gap: 10px; align-items: center; font-size: var(--t-sm); margin-bottom: 8px; }
.rp-h > span { color: var(--muted); }
.rp-h b { text-align: end; font-weight: 600; }
.rp-h-track { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.rp-h-track div { height: 100%; background: var(--ink); border-radius: 999px; }
.rp-regs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-regs li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.rp-regs .dim { grid-column: 1; font-size: var(--t-xs); }
.rp-regs .tag-soft { grid-row: 1 / span 2; grid-column: 2; }

/* Control: editable roles */
.cp-perm { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.cp-reset-role { display: block; margin: 6px auto 0; font-size: var(--t-xs); }
.cp-matrix tfoot td { padding-block: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   Installable apps: get-the-app page, install banner, host stand mode
   ====================================================================== */

.toast-warn { background: var(--warn-soft); color: var(--ink); box-shadow: var(--lift), inset 0 0 0 1px var(--line); }

.ga { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding-block: 12px 24px; }
.ga-head { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 8px; }
.ga-head .page-title { margin: 16px 0 6px; }
.ga-head .lede { margin-inline: auto; }
.ga-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--lift); margin-top: 20px; }
.ga-card { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 8px; align-content: start; }
.ga-card h3 { font-size: var(--t-base); }
.ga-card .dim { font-size: var(--t-sm); }
.ga-card.is-here { border-color: var(--ink-2); }
.ga-here { background: var(--softer); gap: 14px; }
.ga-here .h-sm { margin: 0; }
.ga-here .btn { justify-self: start; }
.ga-here .btn-wide { justify-self: stretch; }
.ga-done { color: var(--ok); font-weight: 500; }
.ga-steps { margin: 0; padding-inline-start: 0; list-style: none; counter-reset: ga; display: grid; gap: 10px; }
.ga-steps li { counter-increment: ga; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; }
.ga-steps li::before { content: counter(ga); width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 600; }
.ga-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ga-stores, .ga-rest { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.ga-stores .pill { background: var(--soft); color: var(--muted); }
.ga-rest { background: var(--ink); color: var(--bg); border-color: transparent; }
.ga-rest .dim { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ga-rest .btn { background: var(--bg); color: var(--ink); border-color: transparent; text-decoration: none; }
@media (max-width: 640px) {
  .ga-grid { grid-template-columns: minmax(0, 1fr); }
  .ga-stores, .ga-rest { grid-template-columns: minmax(0, 1fr); }
  .ga-rest .btn { justify-self: start; }
}

.ga-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin: 8px 0 4px; padding: 10px 8px 10px 12px; border-radius: var(--r); background: var(--softer); border: 1px solid var(--line); }
.ga-banner p { font-size: var(--t-sm); font-weight: 500; }
.ga-banner-icon { width: 40px; height: 40px; border-radius: 10px; }
.ga-banner .ga-x { width: 34px; height: 34px; font-size: 1.25rem; }
.ga-banner .ga-banner-icon[hidden] + p { grid-column: 1 / 3; }
.sa-hint { margin-top: -4px; }

/* Host stand mode: the dashboard alone on a tablet, with bigger things to tap. */
.kiosk .top, .kiosk .foot, .kiosk .skip { display: none; }
.kiosk .wrap { max-width: none; padding-block-start: calc(4px + env(safe-area-inset-top, 0px)); }
.kiosk .tab { min-height: 48px; padding-inline: 18px; }
.kiosk .btn { height: 48px; }
.kiosk .btn-sm { height: 40px; }
.kiosk .toasts { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.kiosk-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
