/* Reservation System — dashboard styles (no build step needed) */
:root {
  --bg: #f4f3ef;
  --panel: #ffffff;
  --ink: #1b1c1e;
  --ink-2: #55575c;
  --ink-3: #8a8c91;
  --line: #e3e1db;
  --line-2: #d2cfc7;
  --side: #18191b;
  --side-ink: #c9cacd;
  --accent: #2f6f5e;
  --accent-2: #255a4c;
  --accent-tint: #e6f0ec;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --warn-tint: #fff5df;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { -webkit-tap-highlight-color: transparent; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { color: #fff; font-weight: 650; font-size: 15px; padding: 4px 10px 2px; }
.brand-sub { color: #8b8d92; font-size: 12px; padding: 0 10px 16px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #74767b; padding: 14px 10px 6px; }
.side a { color: var(--side-ink); padding: 10px 12px; min-height: 44px; border-radius: 7px; display: flex; align-items: center; gap: 8px; }
.side a:hover { background: #26282b; color: #fff; text-decoration: none; }
.side a.active { background: #2c2e32; color: #fff; }
.side .soon { margin-left: auto; font-size: 10.5px; color: #74767b; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #2a2c30; font-size: 12.5px; }
.side-foot form { margin-top: 6px; }
.side-foot button { background: none; border: 0; color: var(--side-ink); padding: 0; cursor: pointer; font: inherit; }
.side-foot button:hover { color: #fff; text-decoration: underline; }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.btn.menu-toggle { display: none; }

/* Panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head p { margin: 2px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack > * + * { margin-top: 14px; }
.narrow { max-width: 760px; }

/* Forms */
label { display: block; font-weight: 550; font-size: 13px; margin-bottom: 6px; line-height: 1.3; }
.hint { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-top: 6px; line-height: 1.4; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=search], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 46px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type=date], input[type=time] { min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.check { min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
input[type=radio] { accent-color: var(--accent); }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.row.end { align-items: flex-end; }
.row > .field { flex: 1 1 160px; margin-bottom: 0; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

.btn { touch-action: manipulation; user-select: none; -webkit-user-select: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 10px 16px; min-height: 44px; border: 1px solid transparent; cursor: pointer; background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: #f7f6f3; }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn.ghost:hover { background: #ecebe6; }
.btn.danger { background: #fff; color: var(--danger); border-color: #efc6c2; }
.btn.danger:hover { background: var(--danger-tint); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 13px; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.block { width: 100%; }
button:active.btn { transform: translateY(1px); }

/* Steppers: big − / + buttons for touch */
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { touch-action: manipulation; width: 46px; flex: none; border: 0; background: #f4f3ef; font-size: 20px; font-weight: 600; color: var(--ink); cursor: pointer; }
.stepper button:active { background: #e6e4de; }
.stepper input { border: 0; border-radius: 0; text-align: center; min-width: 0; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper.lg button { width: 56px; font-size: 24px; }
.stepper.lg input { font-size: 22px; min-height: 56px; }

/* Messages */
.flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { background: var(--accent-tint); border-color: #c4dcd3; color: #1d4c40; }
.flash.err { background: var(--danger-tint); border-color: #f3c7c1; color: #8a1c12; }
.flash ul { margin: 0; padding-left: 18px; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; }

/* Tables */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eeede8; color: var(--ink-2); }
.badge.green { background: var(--accent-tint); color: var(--accent-2); }
.badge.red { background: var(--danger-tint); color: var(--danger); }
.badge.amber { background: var(--warn-tint); color: #8a5a00; }

/* Weekday grid */
.days { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 8px 14px; align-items: center; }
.days .head { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.days input[type=time]:disabled { background: #f6f5f2; color: var(--ink-3); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 12px; }
.tick.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.checklist a { margin-left: auto; font-size: 13px; }
.stat { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.stat-label { color: var(--ink-2); font-size: 13px; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: 100%; max-width: 420px; padding: 28px; }
.auth h1 { margin-bottom: 6px; }

/* Floor plan editor */
.fp-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fp-tab { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 550; }
.fp-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fp-tab:hover { text-decoration: none; }
.fp { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.fp-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.fp-toolbar .spacer { flex: 1; }
.fp-status { font-size: 12.5px; color: var(--ink-3); }
.fp-status.dirty { color: #8a5a00; }
.fp-canvas-wrap { overflow: auto; background: #faf9f6; border-radius: 0 0 var(--radius) var(--radius); }
.fp-canvas { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
.fp-board { padding: 0; overflow: hidden; }
.fp-side .card { padding: 16px; }
.fp-side h3 { margin-bottom: 10px; }
.fp-side .field { margin-bottom: 10px; }
.fp-side .row > .field { flex-basis: 100px; }
.fp-combo { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; cursor: pointer; }
.fp-combo:hover, .fp-combo.on { border-color: var(--accent); background: var(--accent-tint); }
.fp-combo .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fp-help { font-size: 12.5px; color: var(--ink-2); }
.fp-help li { margin-bottom: 4px; }
.fp-help ul { padding-left: 18px; margin: 6px 0 0; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(420px, 92vw); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
dialog::backdrop { background: rgba(20, 20, 20, .35); }

@media (max-width: 1240px) {
  .shell { grid-template-columns: 208px 1fr; }
  .main { padding: 24px 22px 60px; }
}
@media (max-width: 1020px) {
  .fp { grid-template-columns: 1fr; }
  .fp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .fp-side .card { margin-bottom: 0; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  .btn.menu-toggle { display: inline-flex; margin-bottom: 12px; }
  .main { padding: 18px 16px 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .days { grid-template-columns: 1fr 1fr; }
  .fp-side { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  h1 { font-size: 20px; }
  .days .day-name { grid-column: 1 / -1; margin-top: 6px; }
  .days .head { display: none; }
}

/* ===== Milestone 2: bookings, calendar, live floor plan ===== */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.datenav { display: flex; align-items: center; gap: 6px; }
.datenav .btn { min-width: 44px; padding: 10px; }
.datenav input[type=date] { width: auto; }
.searchbox { flex: 1 1 220px; max-width: 340px; }
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.chip strong { color: var(--ink); font-size: 15px; }
.chip.warn { background: var(--warn-tint); border-color: #f0dca8; color: #8a5a00; }

.svc { margin-bottom: 18px; }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 8px; }
.svc-head h2 { font-size: 15px; }
.svc-head .muted { font-size: 13px; }
.bk-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bk-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; min-height: 64px; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none; background: #fff; }
.bk-row:last-child { border-bottom: 0; }
.bk-row:hover { background: #faf9f6; text-decoration: none; }
.bk-row:active { background: #f1efe9; }
.bk-row.dim { opacity: .55; }
.bk-time { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bk-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-meta { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.bk-party { font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.bk-table { display: inline-block; min-width: 44px; text-align: center; padding: 6px 10px; border-radius: 8px; background: #f1efe9; font-weight: 650; font-size: 13px; }
.bk-table.none { background: var(--warn-tint); color: #8a5a00; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill.confirmed { background: #e8eefc; color: #2949a8; }
.pill.seated { background: var(--accent-tint); color: var(--accent-2); }
.pill.completed { background: #eeede8; color: var(--ink-2); }
.pill.no_show { background: var(--danger-tint); color: var(--danger); }
.pill.cancelled { background: #f4f3ef; color: var(--ink-3); text-decoration: line-through; }
.pill.pending_payment { background: var(--warn-tint); color: #8a5a00; }
.tag { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; letter-spacing: .02em; }
.tag.vip { background: #1b1c1e; color: #f6d37a; }
.tag.allergy { background: var(--danger-tint); color: var(--danger); }
.tag.regular { background: var(--accent-tint); color: var(--accent-2); }

/* Drawer (booking details) */
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100vw); max-width: 100vw; border: 0; border-radius: 0; padding: 0; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
dialog.drawer[open] { animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; z-index: 1; }
.drawer-head h2 { flex: 1; font-size: 18px; }
.drawer-body { padding: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.detail-grid .k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.detail-grid .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.note-box { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.note-box.alert { background: var(--danger-tint); border-color: #f3c7c1; }
.note-box .k { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.status-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.status-actions form { display: contents; }
.status-actions .btn { min-height: 52px; font-size: 15px; }

/* Booking form */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { touch-action: manipulation; min-height: 56px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; font: inherit; font-weight: 650; font-size: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink); padding: 6px 4px; }
.slot small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.slot:hover { border-color: var(--accent); }
.slot.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot.on small { color: #d9ebe4; }
.slot.pacing { border-color: #e6c46b; background: #fffaf0; }
.slot.pacing.on { background: #b7791f; border-color: #b7791f; }
.slot.full { color: var(--ink-3); background: #f6f5f2; border-style: dashed; }
.slot.full.on { background: var(--ink-2); color: #fff; border-style: solid; }
.slot-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.slot-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line-2); }
.svc-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 14px 0 8px; }
.chips-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-choice label { margin: 0; }
.chips-choice input { position: absolute; opacity: 0; pointer-events: none; }
.chips-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-weight: 550; cursor: pointer; }
.chips-choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips-choice input:focus-visible + span { outline: 2px solid var(--accent); }
.override { border: 1px solid #f0dca8; background: var(--warn-tint); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.form-foot { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 14px 0 4px; display: flex; gap: 10px; }
.form-foot .btn { min-height: 52px; font-size: 15px; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { font-size: 12px; font-weight: 650; text-transform: uppercase; color: var(--ink-3); letter-spacing: .05em; padding: 4px 6px; }
.cal-day { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 96px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.cal-day:hover { border-color: var(--accent); text-decoration: none; }
.cal-day.out { background: transparent; border-style: dashed; color: var(--ink-3); }
.cal-day.closed { background: repeating-linear-gradient(135deg, #f6f5f2, #f6f5f2 6px, #efede7 6px, #efede7 12px); }
.cal-day.today { border: 2px solid var(--accent); }
.cal-num { font-weight: 650; font-size: 15px; }
.cal-stat { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.cal-stat strong { font-size: 18px; color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 240px; overflow: hidden; }
.week-day.today { border: 2px solid var(--accent); }
.week-day .head { padding: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.week-day .head a { color: var(--ink); font-weight: 650; }
.week-item { display: block; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.week-item:hover { background: #faf9f6; text-decoration: none; }
.week-item b { font-variant-numeric: tabular-nums; }

/* Live floor plan */
.live { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.live-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px; border-bottom: 1px solid var(--line); }
.live-time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.live-range { flex: 1 1 200px; accent-color: var(--accent); height: 44px; }
.live-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); padding: 8px 12px; border-top: 1px solid var(--line); }
.live-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1.5px solid; }
.live-canvas { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.live-side .card { padding: 16px; }
.live-side h3 { margin-bottom: 10px; }
.mini-bk { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; cursor: pointer; min-height: 56px; }
.mini-bk:active, .mini-bk.on { border-color: var(--accent); background: var(--accent-tint); }
.mini-bk b { font-variant-numeric: tabular-nums; }
.banner { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.banner .btn { margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 90vw; font-weight: 550; }

/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 1240px) {
  .live { grid-template-columns: 1fr 300px; }
}
@media (max-width: 1020px) {
  .live { grid-template-columns: 1fr; }
  .live-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .live-side .card { margin-bottom: 0; }
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
}
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--ink-2); font-size: 11.5px; font-weight: 600; border-radius: 10px; }
  .tabbar a.active { color: var(--accent); background: var(--accent-tint); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; }
  .main { padding-bottom: 96px; }
  .live-side { grid-template-columns: 1fr; }
  .bk-row { grid-template-columns: 54px 1fr auto; padding: 12px; }
  .bk-row .bk-party { display: none; }
  .bk-time { font-size: 16px; }
  .cal { gap: 3px; }
  .cal-day { min-height: 64px; padding: 6px; border-radius: 8px; }
  .cal-stat { margin-top: 4px; font-size: 11px; }
  .cal-stat strong { font-size: 14px; }
  .cal-stat .lbl { display: none; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .form-foot { bottom: 64px; }
}
@media (max-width: 860px) {
  .live .fp-canvas-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .live-canvas { min-width: 680px; }
  .live-bar input[type=date] { flex: 1 1 100%; }
}
