/* ==========================================================================
   TabldNow back office — layout modelled on Tableo's diary workflow.
   Plain CSS, no build step. Brand colours are CSS variables.
   ========================================================================== */
:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-soft: #ffe4e6;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f6f7fb;
  --card: #ffffff;
  --side: #111827;
  --side-2: #1f2937;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --row-h: 44px;
  --label-w: 120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 76px 1fr; height: 100vh; }
.side { background: var(--side); color: #cbd5e1; display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; }
.side .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.side a { width: 64px; padding: 10px 0 8px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #94a3b8; }
.side a svg { width: 22px; height: 22px; }
.side a:hover { background: var(--side-2); color: #fff; }
.side a.on { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.side a.soon { opacity: .45; pointer-events: none; }
.side .grow { flex: 1; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }

/* ---------- Top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.venue-switch select { border: 0; font-weight: 700; font-size: 15px; background: transparent; padding: 4px 2px; }
.datenav { display: flex; align-items: center; gap: 4px; background: var(--line-2); border-radius: 10px; padding: 3px; }
.datenav a, .datenav button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.datenav a:hover { background: #fff; }
.datenav .day { padding: 6px 12px; font-weight: 700; color: var(--ink); background: #fff; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; }
.datenav input[type=date] { border: 0; background: transparent; width: 34px; color: transparent; cursor: pointer; }
.datenav input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.seg { display: flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.stats { display: flex; gap: 8px; margin-left: auto; }
.stat { background: var(--line-2); border-radius: 10px; padding: 5px 12px; line-height: 1.15; }
.stat b { display: block; font-size: 16px; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.btn { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.btn:hover { border-color: #cbd5e1; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; }

.flash { margin: 10px 18px 0; padding: 10px 14px; border-radius: 10px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.errors { margin: 10px 18px 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.content { flex: 1; overflow: auto; padding: 16px 18px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Service strip ---------- */
.services { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 160px; }
.svc .name { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.svc .bar { height: 6px; background: var(--line-2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.svc .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.svc .num { font-weight: 700; font-size: 15px; }

/* ---------- Timeline diary ---------- */
.tl { position: relative; overflow-x: auto; }
.tl-inner { position: relative; min-width: 900px; }
.tl-head { display: flex; position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.tl-head .corner { width: var(--label-w); flex: 0 0 var(--label-w); border-right: 1px solid var(--line); padding: 8px 12px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tl-head .hours { position: relative; flex: 1; height: 34px; }
.tl-head .hours span { position: absolute; top: 9px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.tl-head .hours span:last-child { transform: translateX(-100%); padding-right: 6px; }
.tl-area { display: flex; background: var(--line-2); border-bottom: 1px solid var(--line); }
.tl-area div { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.tl-row { display: flex; height: var(--row-h); border-bottom: 1px solid var(--line-2); }
.tl-row:hover { background: #fafbff; }
.tl-row .label { width: var(--label-w); flex: 0 0 var(--label-w); border-right: 1px solid var(--line); padding: 0 12px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.tl-row .label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.tl-row .lane { position: relative; flex: 1; cursor: copy; }
.tl-row.unassigned .label { color: var(--warn); font-size: 12px; }
.grid-lines { position: absolute; inset: 0 0 0 var(--label-w); pointer-events: none; z-index: 0; }
.grid-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.grid-lines i.hour { background: var(--line); }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }

.bk { position: absolute; top: 5px; bottom: 5px; border-radius: 8px; padding: 3px 8px; color: #fff; font-size: 12px; line-height: 1.25; overflow: hidden; white-space: nowrap; cursor: grab; z-index: 1;
      background: var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.15); border-left: 4px solid rgba(0,0,0,.18); user-select: none; }
.bk:hover { filter: brightness(1.06); z-index: 4; }
.bk.dragging { opacity: .85; cursor: grabbing; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.bk b { font-weight: 700; }
.bk .meta { opacity: .9; font-size: 11px; }
.bk .flags { position: absolute; right: 6px; top: 4px; font-size: 11px; }
.bk.st-finished, .bk.st-cancelled, .bk.st-no_show { opacity: .55; }
.bk.st-pending { background: repeating-linear-gradient(45deg, var(--c), var(--c) 6px, #fbbf24 6px, #fbbf24 12px); color: #451a03; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- List view ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tr:hover td { background: #fafbff; }
table.list tr.svc-row td { background: var(--line-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.time { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #fef3c7; color: #92400e; font-weight: 600; margin-left: 4px; }
.tag.vip { background: #ede9fe; color: #5b21b6; }
.tag.allergy { background: #fee2e2; color: #991b1b; }

/* ---------- Drawer (booking detail + new booking) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(15,23,42,.18); }
.drawer.open { transform: none; }
.drawer header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer header h2 { margin: 0; font-size: 17px; }
.drawer .body { padding: 16px 18px; overflow: auto; flex: 1; }
.drawer footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.x { border: 0; background: var(--line-2); width: 32px; height: 32px; border-radius: 8px; font-size: 18px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 11px; font-weight: 600; min-width: 44px; text-align: center; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.off { color: #cbd5e1; border-style: dashed; }
.chip.off.on { background: #94a3b8; border-color: #94a3b8; color: #fff; }
.svc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; margin: 10px 0 6px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px; font-weight: 600; }
.tabs button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 16px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.status-grid button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 4px; font-size: 12px; font-weight: 600; }
.status-grid button.on { background: var(--c); border-color: var(--c); color: #fff; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; padding: 10px; margin-bottom: 12px; font-size: 13px; }
.log { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.log div { padding: 3px 0; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- Floor plan ---------- */
.floor-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.floor { position: relative; height: 620px; background:
  radial-gradient(circle, #e2e8f0 1px, transparent 1px) 0 0 / 20px 20px, #fff; overflow: auto; }
.ftable { position: absolute; display: grid; place-items: center; text-align: center; border: 2px solid #cbd5e1; background: #fff; border-radius: 10px; font-weight: 700; line-height: 1.1; padding: 4px; box-shadow: var(--shadow); }
.ftable.round { border-radius: 50%; }
.ftable small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.ftable.busy { background: var(--c); border-color: var(--c); color: #fff; }
.ftable.busy small { color: rgba(255,255,255,.9); }
.ftable.soon { border-color: var(--warn); background: #fffbeb; }
.ftable .covers { position: absolute; top: -9px; right: -9px; background: var(--ink); color: #fff; font-size: 10px; border-radius: 999px; padding: 2px 6px; }
.area-tabs { display: flex; gap: 6px; margin-bottom: 12px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #111827, #1f2937 60%, #3f0d1a); }
.auth .card { width: 380px; padding: 28px; }
.auth h1 { margin: 0 0 4px; font-size: 22px; }

/* ---------- Guests ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.page-head h1 { margin: 0; font-size: 20px; }
.search { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 280px; background: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: inline-grid; place-items: center; font-weight: 700; margin-right: 10px; vertical-align: middle; }
.pager { display: flex; gap: 6px; margin-top: 12px; }
.pager a, .pager span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { flex-direction: row; justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 6px; }
  .side .logo, .side .grow { display: none; }
  .main { height: calc(100vh - 64px); }
  .stats { margin-left: 0; width: 100%; }
  .floor-wrap { grid-template-columns: 1fr; }
  :root { --label-w: 80px; }
}

/* ==========================================================================
   Settings
   ========================================================================== */
.settings-tabs { flex-wrap: wrap; }
.settings-tabs a { white-space: nowrap; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.pad { padding: 18px 20px; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.save-bar { grid-column: 1 / -1; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding: 18px 0 4px; display: flex; justify-content: flex-end; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row4 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; }
.prefix, .suffix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.prefix span, .suffix span { background: var(--line-2); color: var(--muted); padding: 9px 10px; font-size: 13px; white-space: nowrap; display: flex; align-items: center; }
.prefix input, .suffix input { border: 0 !important; border-radius: 0 !important; outline: none !important; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13px; }
.switch input { display: none; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; flex: 0 0 auto; transition: .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 19px; }
.copy { display: flex; gap: 8px; align-items: flex-start; }
.copy input, .copy textarea { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: #f8fafc; resize: vertical; }
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.day-card { padding: 12px 14px; }
.day-name { font-weight: 800; margin-bottom: 8px; }
.closed { color: var(--muted); font-size: 13px; padding: 10px; background: var(--line-2); border-radius: 8px; text-align: center; }
.svc-item { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; }
.svc-item summary { padding: 9px 12px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.svc-item summary::after { content: "Edit"; margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 600; }
.svc-item[open] summary::after { content: "Close"; }
.svc-item.inactive { opacity: .6; }
.svc-form { padding: 4px 12px 12px; border-top: 1px solid var(--line-2); }
.form-actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 6px; }
.danger { color: var(--bad) !important; }
table.turns { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
table.turns th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 4px; }
table.turns td { padding: 2px 4px; }
table.turns input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; font-weight: 600; cursor: pointer; background: #fff; }
.chip-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-type-tabs] label { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 8px; font-weight: 600; cursor: pointer; }
[data-type-tabs] label.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.override { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }

/* ==========================================================================
   Floor plan editor
   ========================================================================== */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.editor-toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor-toolbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.canvas { position: relative; height: 640px; overflow: auto; background: radial-gradient(circle, #dbe2ea 1px, transparent 1px) 0 0 / 20px 20px, #fcfdff; touch-action: none; }
.canvas-inner { position: relative; width: 1400px; height: 1000px; }
.etable { position: absolute; display: grid; place-items: center; text-align: center; border: 2px solid #94a3b8; background: #fff; border-radius: 10px; font-weight: 800; cursor: move; user-select: none; box-shadow: var(--shadow); line-height: 1.1; }
.etable.round { border-radius: 50%; }
.etable small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.etable.offline { border-style: dashed; background: #f8fafc; }
.etable.sel { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow); z-index: 2; }
.etable .handle { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 4px; background: var(--brand); cursor: nwse-resize; display: none; }
.etable.sel .handle { display: block; }
.etable.in-combo { outline: 3px dashed var(--ok); outline-offset: 3px; }
.panel h3 { margin: 0 0 10px; font-size: 14px; }
.panel .empty { color: var(--muted); font-size: 13px; padding: 20px 0; text-align: center; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: none; }
.dirty .dirty-dot { display: inline-block; }
.combo-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .row3, .row4 { grid-template-columns: 1fr 1fr; } }
.day-card:has(details[open]) { grid-column: span 2; }
.svc-form .row3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 700px) { .day-card:has(details[open]) { grid-column: auto; } .svc-form .row3 { grid-template-columns: 1fr; } }
.field label.switch { display: flex; margin: 10px 0 0; font-size: 13px; color: var(--ink); }
.field label.switch input { display: none; }

/* ==========================================================================
   Messages
   ========================================================================== */
.channel-toggles { display: flex; gap: 6px; }
.toggle-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.toggle-pill.on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.msg-cols { display: grid; gap: 8px; }
.msg-ch { border: 1px solid var(--line); border-radius: 10px; }
.msg-ch.off { opacity: .6; }
.msg-ch summary { list-style: none; padding: 10px 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.msg-ch summary .edit-link { margin-left: auto; color: var(--brand); font-size: 12px; font-weight: 600; }
.msg-ch[open] summary .edit-link::after { content: " ▲"; }
.ch-badge { font-size: 11px; font-weight: 800; background: var(--line-2); border-radius: 6px; padding: 2px 7px; color: var(--ink-2); }
.preview { margin: 0 12px 12px; padding: 14px 16px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.preview.sms { background: #e9f7ef; border-color: #c8ecd6; border-radius: 16px 16px 16px 4px; max-width: 420px; }
.tpl-form { padding: 0 12px 12px; }
.tpl-form textarea { font-family: inherit; }
.tags-list { display: grid; gap: 5px; font-size: 12px; }
.tags-list code { background: var(--line-2); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.msgs { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.msgs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.msg { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.msg .ch { font-weight: 800; font-size: 10px; text-align: center; background: var(--line-2); border-radius: 5px; padding: 2px 0; }
.msg .st { font-weight: 600; font-size: 11px; }
.msg-sent .st { color: var(--ok); }
.msg-queued .st { color: var(--warn); }
.msg-failed .st { color: var(--bad); }
.msg-skipped .st { color: var(--muted); max-width: 140px; text-align: right; }
.live-badge { display: none; background: var(--warn); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 8px; }
.live-badge.show { display: inline-block; }

/* Billing */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan .price { font-size: 22px; font-weight: 800; }
.plan .price span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pay-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }

/* ==========================================================================
   Floor plan v2 — tables with chairs, fixtures, live status (live view + editor)
   ========================================================================== */
.plan-stage { position: relative; overflow: auto; border-radius: 12px;
  background: radial-gradient(circle, rgba(120,113,108,.14) 1px, transparent 1.2px) 0 0 / 24px 24px, linear-gradient(180deg, #faf8f4, #f3efe8); }
.plan-stage.editing { background: linear-gradient(rgba(148,163,184,.16) 1px, transparent 1px) 0 0 / 20px 20px,
  linear-gradient(90deg, rgba(148,163,184,.16) 1px, transparent 1px) 0 0 / 20px 20px, #fbfaf7; }
.plan-inner { position: relative; transform-origin: 0 0; }

.ft { position: absolute; --st: #94a3b8; user-select: none; }
.ft-chair { position: absolute; height: 10px; border-radius: 6px 6px 3px 3px; background: #d6dbe2; box-shadow: inset 0 -2px 0 rgba(0,0,0,.06); transition: background .2s; }
.ft-top { position: absolute; inset: 0; background: #fff; border: 1.5px solid #cdd4dd; border-radius: 12px; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 14px rgba(15,23,42,.07); transition: background .2s, border-color .2s; overflow: hidden; }
.ft-round .ft-top { border-radius: 50%; }
.ft-text { text-align: center; line-height: 1.15; padding: 2px 4px; max-width: 100%; }
.ft-label { font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.ft-sub { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.ft-bar { width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); margin: 4px auto 0; overflow: hidden; }
.ft-bar i { display: block; height: 100%; background: #fff; border-radius: 2px; }
.ft-chip { position: absolute; top: -12px; right: -14px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; white-space: nowrap; box-shadow: 0 2px 6px rgba(15,23,42,.12); z-index: 2; }
.ft-chip.warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ft-chip.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.ft.offline .ft-top { border-style: dashed; }

/* Live states */
.ft.st-reserved .ft-top { border: 2px solid #f59e0b; background: #fffbeb; }
.ft.st-reserved .ft-chair { background: #fcd9a0; }
.ft.st-seated .ft-top, .ft.st-arrived .ft-top, .ft.st-overdue .ft-top { background: var(--st); border-color: var(--st); }
.ft.st-seated .ft-label, .ft.st-arrived .ft-label, .ft.st-overdue .ft-label { color: #fff; }
.ft.st-seated .ft-sub, .ft.st-arrived .ft-sub, .ft.st-overdue .ft-sub { color: rgba(255,255,255,.92); }
.ft.st-seated .ft-chair, .ft.st-arrived .ft-chair { background: color-mix(in srgb, var(--st) 55%, white); }
.ft.st-overdue { --st: #ef4444; }
.ft.st-overdue .ft-chair { background: #fca5a5; }
.ft.st-overdue .ft-top { animation: ft-pulse 1.6s ease-in-out infinite; }
@keyframes ft-pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.18), 0 6px 14px rgba(15,23,42,.07); } }
.live .ft { cursor: pointer; }
.live .ft:hover .ft-top { filter: brightness(1.03); box-shadow: 0 0 0 3px rgba(15,23,42,.08), 0 8px 18px rgba(15,23,42,.12); }

/* Editor states */
.editing .ft, .editing .fo { cursor: move; }
.ft.sel .ft-top, .fo.sel { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; }
.ft.in-combo .ft-top { outline: 3px dashed var(--ok); outline-offset: 4px; }
.ft .handle, .fo .handle { position: absolute; right: -8px; bottom: -8px; width: 14px; height: 14px; border-radius: 4px; background: var(--brand); cursor: nwse-resize; display: none; z-index: 3; border: 2px solid #fff; }
.ft.sel .handle, .fo.sel .handle { display: block; }

/* Fixtures */
.fo { position: absolute; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; user-select: none; }
.fo-bar { background: linear-gradient(180deg, #6b4f3a, #57402f); color: #f5e9dc; border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 4px 10px rgba(87,64,47,.25); }
.fo-counter { background: #e7e1d8; color: #78716c; border: 1px solid #d6cfc4; border-radius: 8px; }
.fo-wall { background: #57534e; border-radius: 3px; }
.fo-window { background: repeating-linear-gradient(90deg, #bae6fd 0 18px, #e0f2fe 18px 20px); border: 1px solid #7dd3fc; border-radius: 3px; }
.fo-door { background: repeating-linear-gradient(90deg, #d6a46c 0 6px, transparent 6px 10px); border-radius: 2px; }
.fo-plant { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #86efac, #16a34a 60%, #166534); box-shadow: 0 3px 6px rgba(22,101,52,.3); }
.fo-pillar { background: #d6d3d1; border: 1px solid #a8a29e; border-radius: 4px; box-shadow: inset 0 0 0 4px #e7e5e4; }

/* Live floor layout */
.floor2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.floor2 .plan-stage { height: calc(100vh - 190px); min-height: 440px; }
.floor-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.floor-bar input[type=range] { flex: 1; min-width: 180px; accent-color: var(--brand); }
.floor-bar .clock { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 48px; }
.floor-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.floor-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; border: 1.5px solid #cdd4dd; background: #fff; }
.side-list h3 { font-size: 13px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.side-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.side-item:hover { background: var(--line-2); }
.side-item .t { font-weight: 800; font-variant-numeric: tabular-nums; }
.side-item .tb { font-size: 11px; font-weight: 700; background: var(--line-2); border-radius: 6px; padding: 2px 6px; }
.zoom-ctl { display: flex; gap: 4px; }
.zoom-ctl button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
@media (max-width: 1100px) { .floor2 { grid-template-columns: 1fr; } }

/* ---------- Phase 7: waitlist, events, vouchers, reports ---------- */
.side a { position: relative; }
.nav-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { max-width: 460px; margin: 0 auto 16px; }
.linkish { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; cursor: pointer; font-size: 14px; }
.switch-row .switch { flex: 0 0 auto; margin-top: 2px; }

.wl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.wl-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 110px auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.wl-row:last-child { border-bottom: 0; }
.wl-row.late { background: #fff7ed; }
.wl-row.is-notified { background: #f0fdf4; }
.wl-row.is-offered { background: #eef2ff; }
.wl-pos { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.wl-who strong { font-size: 15px; margin-right: 6px; }
.wl-party { font-weight: 800; margin-right: 6px; }
.wl-party small { font-weight: 500; color: var(--muted); }
.wl-who .pill { margin-left: 4px; }
.wl-time b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-time span { font-size: 11px; color: var(--muted); }
.wl-row.late .wl-time b { color: #c2410c; }
.wl-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.wl-seat { display: flex; gap: 6px; }
.wl-seat select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; max-width: 190px; }
.wl-open { font-size: 12px; font-weight: 700; color: #047857; background: #ecfdf5; border-radius: 6px; padding: 3px 8px; }
.aside-list .side-item { grid-template-columns: 1fr auto auto; }
.wl-layout .side-item { grid-template-columns: 1fr auto auto; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ev-card { display: flex; gap: 14px; padding: 16px; transition: box-shadow .15s, transform .15s; }
.ev-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-1px); }
.ev-card.off { opacity: .6; }
.ev-date { flex: 0 0 56px; height: 64px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ev-date small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ev-date b { font-size: 22px; }
.ev-body { flex: 1; min-width: 0; }
.ev-body h3 { margin: 0 0 3px; font-size: 15px; }
.ev-cap { height: 6px; border-radius: 3px; background: var(--line-2); margin: 10px 0 6px; overflow: hidden; }
.ev-cap i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.ev-meta { font-size: 13px; color: var(--muted); }
.ev-meta strong { color: var(--ink); }

.voucher-find .search { width: 240px; }
code.vcode { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .04em; background: var(--line-2); padding: 3px 7px; border-radius: 6px; font-size: 12px; }
code.vcode.big { font-size: 18px; padding: 10px 14px; border: 2px dashed var(--line); background: #fff; }
.voucher-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, white), #fff); }
.v-balance { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 2px 0; }
.redeem-form { display: grid; grid-template-columns: 170px 140px 1fr auto; gap: 10px; align-items: end; }
.redeem-form .field { margin: 0; }

.rp { display: grid; gap: 14px; }
.rp-sub { margin: 0; }
.rp-range { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.rp-range input { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13px; }
.rp-head { display: flex; justify-content: space-between; align-items: baseline; }
.rp-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi > span:first-child { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-d { font-size: 11px; color: var(--muted); }
.kpi-d.up { color: #047857; }
.kpi-d.down { color: #b91c1c; }
/* Single-series bar charts: one hue, thin marks, 2px gaps, rounded data ends. */
.rp { --series-1: #2a78d6; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 190px; border-bottom: 1px solid var(--line); padding-top: 8px; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.bar-col i { display: block; width: 100%; max-width: 28px; margin: 0 auto; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 0; }
.bar-col:hover i, .bar-col:focus i { background: #1d5fae; }
.bar-col:hover::after, .bar-col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none; }
.bar-col:first-child:hover::after, .bar-col:nth-child(2):hover::after { left: 0; transform: none; }
.bar-col:last-child:hover::after, .bar-col:nth-last-child(2):hover::after { left: auto; right: 0; transform: none; }
.bar-axis { display: flex; gap: 2px; margin-top: 6px; }
.bar-axis span { flex: 1; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: visible; }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: 52px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.hbar > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar div { height: 14px; }
.hbar i { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.share { display: inline-block; width: 60px; height: 6px; background: var(--line-2); border-radius: 3px; vertical-align: middle; overflow: hidden; margin-right: 4px; }
.share i { display: block; height: 100%; background: var(--series-1); }
table.list.compact td, table.list.compact th { padding: 8px 10px; }
@media (max-width: 1100px) { .wl-layout, .rp-2, .rp-3 { grid-template-columns: 1fr; } .redeem-form { grid-template-columns: 1fr 1fr; } }

/* ---------- Phase 8: platform admin ---------- */
.impersonating { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 12px; background: #1e1b4b; color: #e0e7ff; font-size: 13px; }
.impersonating .btn { background: #fff; }
body.platform .side { background: #111827; }
a.msg { color: inherit; }
a.msg:hover { background: var(--line-2); }
a.hbar { color: inherit; }

/* ---------- Phase 9 ---------- */
.privacy-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.privacy-box summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); }
.auth { grid-template-rows: 1fr auto; }
.auth-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.auth-foot { text-align: center; font-size: 12px; margin: 0 0 18px; }
.auth-foot a { color: #94a3b8; }
.auth-foot a:hover { color: #fff; }
.team-row summary { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.team-row summary .avatar { margin: 0; }
.team-who { display: flex; flex-direction: column; min-width: 0; }
.team-who .hint { overflow: hidden; text-overflow: ellipsis; }
.invite-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.invite-row:last-child { border-bottom: 0; }
.roles-kv { grid-template-columns: 80px 1fr; font-size: 13px; }
.roles-kv dd { font-weight: 500; }
/* Legal pages */
.legal-page { background: #fff; }
.legal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.legal-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.legal-brand > span:first-child { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.legal-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.legal-head nav a { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legal-head nav a.on, .legal-head nav a:hover { background: var(--line-2); color: var(--ink); }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 60px; line-height: 1.65; font-size: 15px; }
.legal h1 { font-size: 30px; margin: 0 0 4px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal a { text-decoration: underline; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }

/* ---------- Tablets (iPad at the host stand) ---------- */
/* Fingers, not mice: bigger tap targets on touch screens. */
@media (pointer: coarse) {
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; padding-left: 12px; padding-right: 12px; }
  .seg a { padding: 8px 14px; }
  .chip-check span, .chip { padding: 9px 13px; }
  .linkish { padding: 6px 4px; }
  .drawer .x { width: 40px; height: 40px; }
  .wl-seat select, .search, .field input, .field select { min-height: 40px; }
  .side a { padding: 12px 0 10px; }
}
/* iPad landscape and small laptops */
@media (max-width: 1200px) {
  .topbar { gap: 10px; padding: 8px 14px; }
  .stats { gap: 6px; }
  .stat { padding: 6px 10px; }
  .content { padding: 14px 14px 40px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .team-row summary { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .team-row summary > .hint { display: none; }
  .wl-row { grid-template-columns: 30px minmax(0, 1fr) 90px; }
  .wl-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .ev-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
/* iPad portrait: bottom tab bar, full-width drawers, stacked panels */
@media (max-width: 900px) {
  .side { overflow-x: auto; justify-content: flex-start; gap: 2px; }
  .side a { flex: 0 0 auto; width: 70px; }
  .side form { flex: 0 0 auto; }
  .drawer { width: 100vw; }
  .topbar .stats { order: 10; }
  .floor2 .plan-stage { height: 60vh; }
  .redeem-form { grid-template-columns: 1fr; }
  .voucher-hero { flex-direction: column; align-items: flex-start; }
  .rp-range { display: none; }
  .impersonating { margin: 8px 10px 0; flex-direction: column; align-items: flex-start; }
  .main { height: calc(100vh - 68px); }
}
/* Floor: keep the arrivals list beside the plan on iPad landscape; stack only in portrait. */
@media (max-width: 1200px) { .floor2 { grid-template-columns: minmax(0, 1fr) 240px !important; } .floor2 .plan-stage { height: calc(100vh - 210px); } }
@media (max-width: 900px) { .floor2 { grid-template-columns: minmax(0, 1fr) !important; } }
/* Diary: on tablets keep each hour wide enough to read names — swipe sideways for the rest of the day. */
@media (max-width: 1200px) { .tl-inner { min-width: 1250px; } .tl { -webkit-overflow-scrolling: touch; } }

/* ---------- Plans & upgrades ---------- */
.nav-lock { position: absolute; top: 6px; right: 10px; font-size: 10px; filter: grayscale(1); opacity: .8; }
.plan-note { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.plan-note a { font-weight: 700; text-decoration: underline; color: inherit; }
.upgrade-card { max-width: 560px; margin: 40px auto; padding: 32px; text-align: center; }
.upgrade-card h1 { margin: 6px 0; }
.upgrade-card .lead { color: var(--muted); font-size: 15px; }
.upgrade-lock { font-size: 34px; }
.upgrade-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--brand); border-radius: 14px; padding: 14px 18px; margin: 18px 0 12px; text-align: left; }
.upgrade-plan > div:first-child { display: flex; flex-direction: column; }
.upgrade-plan strong { font-size: 18px; }
.upgrade-plan .price { font-size: 24px; font-weight: 800; }
.upgrade-plan .price span { font-size: 13px; font-weight: 500; color: var(--muted); }
/* Plan comparison (sign-up and billing) */
.pt-toggle { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; margin: 4px 0 14px; }
.pt-toggle button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.pt-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pt-save { font-size: 11px; color: #047857; background: #ecfdf5; border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.pt-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.pt-col { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.pt-col.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgba(225,29,72,.12); }
.pt-col.current { background: #f8fafc; }
.pt-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pt-col h3 { margin: 0; font-size: 18px; }
.pt-tag { margin: 0; font-size: 13px; color: var(--muted); min-height: 34px; }
.pt-price { margin: 4px 0 2px; }
.pt-price span { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pt-price small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pt .pt-price .y { display: none; }
.pt[data-interval="year"] .pt-price .m { display: none; }
.pt[data-interval="year"] .pt-price .y { display: inline; }
.pt-note { margin: 0; font-size: 12px; color: var(--muted); }
.pt-cta { width: 100%; justify-content: center; margin: 6px 0 4px; }
label.pt-cta input { margin: 0 6px 0 0; }
.pt-col form { margin: 0; }
.pt-limits, .pt-feats { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; display: grid; gap: 5px; }
.pt-limits { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.pt-limits b { font-weight: 800; }
.pt-feats li { padding-left: 20px; position: relative; }
.pt-feats li::before { position: absolute; left: 0; font-weight: 800; }
.pt-feats li.yes::before { content: "✓"; color: #059669; }
.pt-feats li.no { color: #a3acb9; }
.pt-feats li.no::before { content: "–"; color: #cbd5e1; }
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.usage div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.usage b { display: block; font-size: 18px; color: var(--ink); }
.usage i { display: block; height: 5px; border-radius: 3px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.usage i em { display: block; height: 100%; background: var(--brand); }
@media (max-width: 1100px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 600px) { .pt-grid { grid-template-columns: 1fr; } }
.billing-plans { grid-column: 1 / -1; }
.auth .card.signup-card { width: min(1180px, 100%); padding: 28px; }
.signup-details { max-width: 620px; margin: 0 auto; }
.signup-page .pt-col.picked { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 4%, white); }
.signup-page label.pt-cta { cursor: pointer; }
.plans-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.plan-admin { padding: 16px; display: flex; flex-direction: column; gap: 6px; color: inherit; transition: box-shadow .15s; }
.plan-admin:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.plan-admin.off { opacity: .55; }
.plan-admin.featured { border: 2px solid var(--brand); }
.pa-head { display: flex; justify-content: space-between; gap: 8px; }
.pa-head h3 { margin: 0; }
.pa-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-start; }
.pa-price { font-size: 22px; font-weight: 800; }
.pa-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.pa-limits { list-style: none; padding: 0; margin: 4px 0; font-size: 13px; display: grid; gap: 3px; }
.pa-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: auto; font-size: 13px; }
.feat-group { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.feat-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: 14px; }
.feat-check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.feat-check input { margin-top: 3px; }
.price-table input { width: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
/* TabldNow wordmark */
.wordmark { font-weight: 800; letter-spacing: -.01em; }
.wordmark span { color: var(--brand, #e11d48); }

