:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --paper-deep: #eeece3;
  --surface: #fffefa;
  --ink: #17353a;
  --ink-soft: #456267;
  --muted: #718184;
  --line: #e3e4db;
  --teal: #2f7165;
  --teal-deep: #24594f;
  --teal-pale: #e5f0eb;
  --rust: #b96e51;
  --gold: #a87830;
  --navy: #1a3e48;
  --shadow-soft: 0 12px 35px rgba(27, 50, 50, .055);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 94% 2%, rgba(225, 232, 219, .55), transparent 29rem),
    var(--paper);
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 113, 101, .3);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.app-shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding-bottom: 116px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32, 64, 65, .12); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font: italic 24px/1 Georgia, serif; }
.brand-name { font: 600 16px/1 system-ui, sans-serif; letter-spacing: .16em; }
.brand-divider { height: 19px; width: 1px; margin: 0 3px; background: #c8d0ca; }
.brand-section { color: var(--ink-soft); font-size: 13px; letter-spacing: .01em; }
.staff-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #d9dfd8; border-radius: 99px; color: #506967; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.staff-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(47, 113, 101, .1); }

.demo-banner { min-height: 39px; margin-top: 15px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d8e2d9; border-radius: 7px; background: rgba(236, 243, 235, .7); color: #536968; font-size: 11px; }
.demo-copy { display: inline-flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.demo-copy strong { color: var(--teal-deep); font-weight: 700; }
.demo-status { flex: 0 0 auto; color: #7a8077; font-size: 10px; }

main { padding-top: 34px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.eyebrow, .section-kicker, .control-caption { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.eyebrow { margin-bottom: 9px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, .view-intro h2 { margin-bottom: 7px; font: 400 clamp(35px, 5.2vw, 46px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.heading-period { color: var(--rust); }
.page-subtitle, .view-intro p:not(.section-kicker) { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 650; letter-spacing: .005em; cursor: pointer; transition: background .16s ease, transform .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: white; box-shadow: 0 4px 10px rgba(47, 113, 101, .14); }
.button-primary:hover { background: var(--teal-deep); }
.button-secondary { border-color: #cfd9d2; background: #f9faf5; color: var(--teal-deep); }
.button-secondary:hover { border-color: #a9c1b7; background: white; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { background: var(--paper); }
.button-plus { font-size: 19px; font-weight: 400; line-height: .8; }

.date-service-bar { display: flex; align-items: stretch; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.date-control { min-height: 65px; min-width: 260px; display: flex; align-items: center; gap: 13px; padding: 9px 15px; border: 1px solid #dedfd6; border-radius: 10px; background: rgba(255, 254, 250, .74); cursor: pointer; }
.date-icon { color: var(--teal); font-size: 22px; line-height: 1; }
.date-control-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.control-caption { font-size: 8px; letter-spacing: .16em; }
.date-control input { width: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; }
.date-control input:focus-visible { outline: none; }
.date-chevron { margin-left: auto; color: #849390; font-size: 20px; }
.service-control { width: min(350px, 100%); padding: 9px 10px 8px; display: flex; flex-direction: column; gap: 5px; border: 1px solid #dedfd6; border-radius: 10px; background: rgba(255, 254, 250, .74); }
.service-control > .control-caption { padding-left: 6px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; min-height: 33px; }
.segmented button { border: 0; border-radius: 6px; background: transparent; color: #73817e; font-size: 12px; font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: 0 2px 4px rgba(17, 66, 59, .12); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 31px; }
.metric-card { min-height: 98px; padding: 16px 17px 14px; border: 1px solid #e1e2d9; border-radius: 10px; background: rgba(255, 254, 250, .82); box-shadow: 0 4px 12px rgba(30, 51, 50, .025); }
.metric-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.metric-glyph { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--teal-pale); color: var(--teal); font-size: 12px; }
.metric-value { margin: 4px 0 0; color: var(--ink); font: 500 26px/1 Georgia, serif; letter-spacing: -.04em; }
.metric-foot { margin: 4px 0 0; color: #87918e; font-size: 10px; }

.list-section { padding-top: 2px; }
.list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-kicker { margin-bottom: 6px; font-size: 9px; }
.list-heading h2 { margin: 0; font: 400 25px/1.2 Georgia, serif; letter-spacing: -.025em; }
.count-label { margin-left: 4px; color: #8a9691; font: 500 12px/1 system-ui, sans-serif; letter-spacing: 0; }
.search-control { width: min(285px, 43%); height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dedfd6; border-radius: 8px; background: #fffefa; }
.search-icon { color: #72827e; font-size: 22px; line-height: 1; transform: rotate(-15deg); }
.search-control input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 11px; }
.search-control input::placeholder { color: #9aa39f; }
.search-control input:focus-visible { outline: 0; }
.search-shortcut { padding: 3px 5px; border: 1px solid #e4e5dc; border-radius: 4px; color: #97a09c; font-size: 9px; white-space: nowrap; }
.filter-row { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 31px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 1px solid #dfe2da; border-radius: 99px; background: transparent; color: #697a77; font-size: 10px; font-weight: 600; cursor: pointer; }
.filter-chip:hover { background: rgba(255,255,255,.65); }
.filter-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.filter-chip-count { color: #9aa39f; font-size: 9px; }
.filter-chip[aria-pressed="true"] .filter-chip-count { color: #c6d8d0; }

.booking-list { display: grid; gap: 9px; }
.booking-card { min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: stretch; gap: 0; overflow: hidden; border: 1px solid #e3e4dc; border-radius: 10px; background: rgba(255, 254, 250, .88); box-shadow: 0 3px 9px rgba(37, 55, 50, .025); transition: border-color .16s ease, box-shadow .16s ease; }
.booking-card:hover { border-color: #cbd8cf; box-shadow: var(--shadow-soft); }
.booking-time { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 15px 5px; border-right: 1px solid #e9e9e1; color: var(--ink); }
.booking-time strong { font: 500 18px/1 Georgia, serif; letter-spacing: -.04em; }
.booking-time span { color: #899490; font-size: 9px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.booking-primary { min-width: 0; display: block; padding: 14px 17px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.booking-primary:hover .guest-name { color: var(--teal-deep); }
.booking-mainline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.guest-name { overflow-wrap: anywhere; color: var(--ink); font: 500 17px/1.1 Georgia, serif; letter-spacing: -.02em; transition: color .15s ease; }
.vip-mark { color: var(--gold); font-size: 11px; }
.status-pill { min-height: 20px; padding: 3px 8px; display: inline-flex; align-items: center; border-radius: 99px; font-size: 9px; font-weight: 700; letter-spacing: .035em; line-height: 1; }
.status-open { background: #f6eedc; color: #8a6325; }
.status-confirmed { background: #e1f0e9; color: #2b6a56; }
.status-seated { background: #e4edf0; color: #365e6b; }
.status-cancelled { background: #f6e7e1; color: #a2523e; }
.status-no-show { background: #ece8f1; color: #665879; }
.booking-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0; color: #6c7b78; font-size: 10px; }
.booking-meta span + span::before { content: "·"; margin: 0 7px; color: #b3bdb8; }
.booking-note { margin: 6px 0 0; color: #82908c; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.hold-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #778680; font-size: 9px; }
.hold-line.is-overdue { color: #a65c42; }
.hold-line .hold-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.booking-actions { display: flex; align-items: center; padding: 10px 13px 10px 5px; }
.mark-no-show { min-height: 33px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8a7365; font-size: 9px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.mark-no-show:hover { border-color: #efd8cd; background: #fbf1ec; color: #9a503d; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 42px 18px; border: 1px dashed #d3dbd2; border-radius: 10px; text-align: center; }
.empty-ornament { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e9f0e8; color: var(--teal); font: italic 21px Georgia, serif; }
.empty-state h3 { margin: 0; font: 400 19px Georgia, serif; }
.empty-state p { max-width: 280px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.availability-note { display: flex; align-items: flex-start; gap: 8px; margin: 13px 0 0; color: #8a9691; font-size: 10px; line-height: 1.5; }
.note-mark, .definition-icon { flex: 0 0 auto; width: 15px; height: 15px; display: inline-grid; place-items: center; border: 1px solid #a9b5ad; border-radius: 50%; color: #768780; font: italic 10px Georgia, serif; }

.view-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 6px 0 24px; padding: 8px 0 17px; border-bottom: 1px solid var(--line); }
.view-intro h2 { margin-bottom: 7px; font-size: 38px; }
.waiting-list { display: grid; gap: 10px; }
.waiting-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 17px 18px; border: 1px solid #e1e4db; border-radius: 10px; background: var(--surface); }
.waiting-card-main { min-width: 0; }
.waiting-card h3 { margin: 0 0 5px; font: 500 18px Georgia, serif; }
.waiting-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #74827e; font-size: 10px; }
.waiting-note { margin: 8px 0 0; color: #89938e; font-size: 10px; }
.waiting-actions { display: flex; align-items: center; gap: 7px; }
.waiting-actions .button { min-height: 37px; padding: 0 12px; font-size: 10px; }
.remove-waiting { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #86918c; font-size: 19px; cursor: pointer; }
.remove-waiting:hover { border-color: #f0d8ce; background: #fbf2ee; color: #a2523e; }
.waitlist-prompt { margin: 0; color: #82908b; font-size: 11px; }

.report-intro { align-items: center; }
.report-date { padding: 8px 11px; border: 1px solid #dfe2da; border-radius: 7px; color: #647773; font-size: 10px; font-weight: 650; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-card { min-height: 131px; padding: 18px; border: 1px solid #dfe3d9; border-radius: 10px; background: var(--surface); }
.report-card:first-child { background: #f0f5ef; border-color: #dbe6db; }
.report-card .metric-label { display: block; margin-bottom: 18px; }
.report-card .metric-value { font-size: 38px; }
.report-card p:last-child { margin: 8px 0 0; color: #85918c; font-size: 10px; }
.report-definition { display: flex; gap: 12px; margin: 18px 0 28px; padding: 15px 17px; border-radius: 9px; background: #eeeee5; }
.report-definition .definition-icon { margin-top: 1px; }
.report-definition h3 { margin: 0 0 5px; font: 600 11px system-ui, sans-serif; }
.report-definition p { max-width: 800px; margin: 0; color: #687a75; font-size: 10px; line-height: 1.55; }
.report-cancellations { padding-top: 5px; }
.section-heading-small { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 11px; }
.section-heading-small h3 { margin: 0; font: 400 22px Georgia, serif; }
.section-heading-small > span { color: #788680; font-size: 10px; }
.cancellation-list { display: grid; gap: 8px; }
.cancellation-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e4e4db; border-radius: 8px; background: rgba(255,254,250,.8); }
.cancellation-name { font: 500 15px Georgia, serif; }
.cancellation-detail { display: flex; flex-wrap: wrap; gap: 8px; color: #7c8984; font-size: 10px; }
.reset-demo { margin-top: 26px; padding: 7px 0; border: 0; background: transparent; color: #82908b; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset-demo:hover { color: var(--teal-deep); }

.bottom-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; min-height: calc(69px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: clamp(18px, 9vw, 100px); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(38, 65, 62, .13); background: rgba(250, 249, 243, .94); backdrop-filter: blur(18px); }
.nav-item { min-width: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 9px; border: 0; border-radius: 9px; background: transparent; color: #87928d; font-size: 9px; font-weight: 620; cursor: pointer; }
.nav-item.is-active { color: var(--teal-deep); }
.nav-icon { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 17px; line-height: 1; }
.nav-item.is-active .nav-icon { background: var(--teal-pale); }

.form-dialog { width: min(540px, calc(100vw - 28px)); max-width: none; max-height: min(92dvh, 850px); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(219, 224, 215, .95); border-radius: 16px; background: #fffefa; color: var(--ink); box-shadow: 0 30px 90px rgba(21, 43, 44, .24); }
.form-dialog::backdrop { background: rgba(19, 38, 41, .37); backdrop-filter: blur(3px); }
.form-dialog form { padding: 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; font: 400 27px/1.12 Georgia, serif; letter-spacing: -.03em; }
.icon-button { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #73817d; font-size: 23px; line-height: 1; cursor: pointer; }
.icon-button:hover { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; color: #657672; font-size: 10px; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; padding: 9px 10px; border: 1px solid #dfe2d9; border-radius: 7px; background: #fffefa; color: var(--ink); font-size: 12px; font-weight: 450; }
.field textarea { min-height: 68px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #a0aaa4; }
.check-field { display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; border: 1px solid #e5e7df; border-radius: 8px; background: #fbfbf7; cursor: pointer; }
.check-field input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--teal); }
.check-field span { display: flex; flex-direction: column; gap: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.check-field strong { font-size: 10px; font-weight: 650; }
.check-field small { color: #87938e; font-size: 9px; font-weight: 450; }
.hold-field { background: #f7f5ec; }
.form-help { margin: 13px 0 0; color: #82908b; font-size: 9px; line-height: 1.5; }
.form-error { margin: 11px 0 0; padding: 9px 11px; border-radius: 7px; background: #fbefea; color: #984f3a; font-size: 10px; line-height: 1.4; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eaebe4; }
.dialog-actions .button { min-height: 40px; font-size: 11px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: min(440px, calc(100vw - 32px)); padding: 11px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; line-height: 1.45; text-align: center; box-shadow: 0 8px 24px rgba(16, 43, 45, .2); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 900px) {
  .app-shell { padding-bottom: 125px; }
  main { padding-top: 40px; }
  .booking-card { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .booking-primary { padding-right: 24px; padding-left: 20px; }
}

@media (max-width: 700px) {
  .app-shell { width: min(100% - 32px, 560px); padding-bottom: 112px; }
  .topbar { height: 64px; }
  .brand { gap: 8px; }
  .brand-mark { width: 27px; height: 27px; font-size: 21px; }
  .brand-name { font-size: 14px; }
  .brand-section { font-size: 11px; }
  .staff-label { padding: 7px 8px; font-size: 8px; letter-spacing: .09em; }
  .demo-banner { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 10px; padding: 8px 10px; }
  .demo-copy { font-size: 10px; }
  .demo-status { font-size: 9px; }
  main { padding-top: 27px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 39px; }
  .page-subtitle { max-width: 230px; font-size: 12px; }
  .page-action { min-height: 40px; gap: 5px; align-self: flex-end; padding: 0 11px; font-size: 10px; white-space: nowrap; }
  .page-action .button-plus { font-size: 17px; }
  .date-service-bar { gap: 9px; margin-bottom: 15px; }
  .date-control { min-width: 0; flex: 1.05; min-height: 62px; gap: 8px; padding: 8px 9px; }
  .date-icon { font-size: 18px; }
  .date-control input { font-size: 11px; }
  .date-chevron { display: none; }
  .service-control { flex: .95; min-width: 0; padding: 8px 7px 7px; }
  .segmented button { font-size: 10px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 26px; }
  .metric-card { min-height: 83px; padding: 12px 13px; }
  .metric-label { font-size: 9px; }
  .metric-glyph { width: 21px; height: 21px; font-size: 11px; }
  .metric-value { font-size: 23px; }
  .metric-foot { font-size: 9px; }
  .list-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 13px; }
  .list-heading h2 { font-size: 23px; }
  .search-control { width: 100%; }
  .search-shortcut { display: none; }
  .filter-row { width: calc(100vw - 32px); margin-right: -16px; padding-right: 16px; }
  .filter-chip { min-height: 33px; padding: 0 10px; }
  .booking-list { gap: 8px; }
  .booking-card { grid-template-columns: 59px minmax(0,1fr); border-radius: 9px; }
  .booking-time { grid-row: span 2; padding: 11px 3px; }
  .booking-time strong { font-size: 16px; }
  .booking-time span { font-size: 8px; }
  .booking-primary { padding: 12px 11px 6px; }
  .booking-mainline { gap: 6px; margin-bottom: 5px; }
  .guest-name { font-size: 16px; }
  .status-pill { min-height: 19px; padding: 3px 7px; font-size: 8px; }
  .booking-meta { font-size: 9px; row-gap: 4px; }
  .booking-meta span + span::before { margin: 0 5px; }
  .booking-note { margin-top: 5px; font-size: 9px; }
  .hold-line { margin-top: 7px; font-size: 8px; }
  .booking-actions { grid-column: 2; justify-content: flex-start; padding: 0 9px 8px; }
  .mark-no-show { min-height: 29px; padding: 0 7px; font-size: 8px; }
  .availability-note { font-size: 9px; }
  .view-intro { align-items: flex-start; flex-direction: column; margin-bottom: 18px; padding-bottom: 14px; }
  .view-intro h2 { font-size: 34px; }
  .view-intro p:not(.section-kicker) { font-size: 12px; }
  .waiting-card { grid-template-columns: minmax(0,1fr); padding: 15px; }
  .waiting-actions { justify-content: flex-start; }
  .report-intro { flex-direction: row; align-items: flex-end; }
  .report-date { max-width: 46%; padding: 7px 8px; font-size: 9px; text-align: center; }
  .report-grid { grid-template-columns: 1fr; gap: 8px; }
  .report-card { min-height: 90px; padding: 14px; }
  .report-card .metric-label { margin-bottom: 8px; }
  .report-card .metric-value { font-size: 31px; }
  .report-card p:last-child { margin-top: 5px; }
  .report-definition { gap: 9px; margin: 14px 0 24px; padding: 13px; }
  .report-definition p { font-size: 9px; }
  .cancellation-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bottom-nav { justify-content: space-around; gap: 0; }
  .nav-item { min-width: 78px; font-size: 9px; }
  .nav-icon { height: 25px; }
  .form-dialog { position: fixed; width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .form-dialog form { padding: 21px 18px calc(18px + env(safe-area-inset-bottom)); }
  .dialog-heading h2 { font-size: 25px; }
  .form-grid { gap: 11px 9px; }
  .field { font-size: 9px; }
  .field input, .field select, .field textarea { min-height: 42px; font-size: 12px; }
  .dialog-actions { margin-top: 15px; }
  .dialog-actions .button { flex: 1; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); font-size: 10px; }
}

@media (max-width: 370px) {
  .app-shell { width: calc(100% - 24px); }
  .brand-section { font-size: 10px; }
  .staff-label { gap: 5px; font-size: 7px; }
  .page-heading h1 { font-size: 35px; }
  .page-action { padding: 0 8px; font-size: 9px; }
  .date-control { gap: 6px; }
  .control-caption { font-size: 7px; }
  .date-control input { font-size: 10px; }
  .filter-row { width: calc(100vw - 24px); margin-right: -12px; }
  .booking-card { grid-template-columns: 52px minmax(0,1fr); }
  .booking-primary { padding-right: 8px; padding-left: 9px; }
  .guest-name { font-size: 15px; }
}

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