/* ============================================================
   FoodManager — Restaurant Management System
   Warm hospitality design system · light mode · phone-first
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

/* ---- Tokens ---- */
:root {
  /* surfaces */
  --bg:        #FBF7F1;
  --bg-2:      #F4EBDF;
  --surface:   #FFFFFF;
  --surface-2: #FBF7F1;
  --border:    #ECE1D2;
  --border-2:  #DECCB4;

  /* ink */
  --ink:   #251D16;
  --ink-2: #6F6256;
  --ink-3: #A2937F;

  /* brand — terracotta */
  --brand:        #BF5638;
  --brand-strong: #A4452B;
  --brand-ink:    #7C3320;
  --brand-tint:   #F8E9E1;

  /* gold accent */
  --gold:      #CE8E1E;
  --gold-tint: #FBF0D6;

  /* status */
  --ok:        #3E9568;  --ok-tint:      #E6F1EA;
  --busy:      #B23A53;  --busy-tint:    #FAE7EC;  /* occupied = wine */
  --warn:      #CE8E1E;  --warn-tint:    #FBF0D6;  /* billing  = gold */
  --neutral:   #94897B;  --neutral-tint: #EFE9E0;  /* cleaning = stone */
  --danger:    #C23B2B;  --danger-tint:  #FBE7E3;
  --info:      #3B6FB2;  --info-tint:    #E6EEF7;
  --purple:    #7A5AA8;  --purple-tint:  #EEE8F6;

  /* type */
  --sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:  ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* radius */
  --r-sm: 9px;  --r: 13px;  --r-lg: 18px;  --r-xl: 24px;  --pill: 999px;

  /* shadow */
  --sh-sm: 0 1px 2px rgba(60,40,24,.05), 0 1px 3px rgba(60,40,24,.04);
  --sh-md: 0 6px 20px rgba(60,40,24,.09), 0 2px 6px rgba(60,40,24,.05);
  --sh-lg: 0 18px 50px rgba(50,32,18,.20), 0 6px 16px rgba(50,32,18,.10);

  --nav-w: 252px;
  --bottom-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-tint); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #E0D3C0; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* ============================================================ TYPE */
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; }
.serif   { font-family: var(--serif); }
h1,h2,h3 { letter-spacing: -.012em; line-height: 1.18; font-weight: 600; }
.t-xs { font-size: 11.5px; } .t-sm { font-size: 13px; } .t-base { font-size: 15px; }
.t-lg { font-size: 17px; } .t-xl { font-size: 20px; } .t-2xl { font-size: 26px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; } .bold { font-weight: 700; }

/* ============================================================ LAYOUT SHELL */
#app { min-height: 100%; }

.shell { display: flex; min-height: 100vh; }

/* desktop sidebar */
.sidebar {
  width: var(--nav-w); flex: 0 0 var(--nav-w);
  background: #FFFFFF; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 22px 22px 16px; display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  background: linear-gradient(150deg, var(--brand), var(--brand-strong));
  color: #fff; display: grid; place-items: center; box-shadow: var(--sh-sm);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-name b { color: var(--brand); font-weight: 600; }
.nav-group { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-section { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  transition: background .12s, color .12s; position: relative;
}
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.nav-item .badge-dot { margin-left: auto; }
.sidebar .user-card {
  margin: 10px; padding: 11px 12px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--brand-tint); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

/* main column */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; flex: 0 0 62px; background: rgba(251,247,241,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 19px; }
.page { padding: 24px 22px 40px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }
.page.narrow { max-width: 880px; }

/* mobile bottom nav */
.bottomnav { display: none; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .14s, box-shadow .14s, transform .04s, border-color .14s, color .14s;
  border: 1px solid transparent; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-soft { background: var(--brand-tint); color: var(--brand-ink); }
.btn-soft:hover { background: #F3DDD2; }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #A8311F; }
.btn-danger-soft { background: var(--danger-tint); color: var(--danger); }
.btn-danger-soft:hover { background: #F6D8D1; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 22px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--ink-2); transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ============================================================ CARD */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.card-pad { padding: 18px; }
.card-hd { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-hd h2, .card-hd h3 { font-size: 16px; }
.card-hover { transition: box-shadow .15s, transform .12s, border-color .15s; }
.card-hover:hover { box-shadow: var(--sh-md); border-color: var(--border-2); }
.tappable { cursor: pointer; }
.tappable:active { transform: scale(.985); }

/* ============================================================ BADGE / PILL */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: var(--pill); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-lg { height: 28px; font-size: 12px; padding: 0 11px; }
.b-ok      { background: var(--ok-tint);      color: #277A4F; }
.b-busy    { background: var(--busy-tint);    color: #97304A; }
.b-warn    { background: var(--warn-tint);    color: #9C6A12; }
.b-neutral { background: var(--neutral-tint); color: #6F6657; }
.b-danger  { background: var(--danger-tint);  color: #A8311F; }
.b-info    { background: var(--info-tint);    color: #2F5C96; }
.b-purple  { background: var(--purple-tint);  color: #5E4488; }
.b-brand   { background: var(--brand-tint);   color: var(--brand-ink); }
.b-gold    { background: var(--gold-tint);    color: #9C6A12; }
.b-plain   { background: var(--surface-2);    color: var(--ink-2); }

/* chips / filter tabs */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 15px; border-radius: var(--pill); font-weight: 600; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; transition: all .12s; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .cnt { font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }

/* segmented */
.seg { display: inline-flex; background: var(--bg-2); border-radius: var(--r); padding: 4px; gap: 3px; }
.seg button { padding: 8px 15px; border-radius: var(--r-sm); font-weight: 600; font-size: 13.5px; color: var(--ink-2); min-height: 38px; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

/* ============================================================ FORM */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--danger); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink);
  font-size: 15px; transition: border-color .12s, box-shadow .12s;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input-group { position: relative; }
.input-group svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.input-group .input { padding-left: 40px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A2937F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-2); border-radius: 99px; transition: background .16s; }
.switch .track::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .16s; box-shadow: var(--sh-sm); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* qty stepper */
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border-2); border-radius: var(--pill); background: var(--surface); }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--brand); border-radius: 50%; }
.stepper button:hover { background: var(--brand-tint); }
.stepper .q { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================ TABLE (data) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .row-alert { background: var(--danger-tint); }
.tbl .row-alert:hover { background: #F8DED7; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================ LIST ROW */
.row {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.row:last-child { border-bottom: none; }
.row.tappable:hover { background: var(--surface-2); }

/* ============================================================ STAT */
.stat { padding: 18px; border-radius: var(--r-lg); }
.stat .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.stat .value { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; margin-top: 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }

/* ============================================================ TABLE FLOOR GRID */
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.table-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-sm);
  transition: box-shadow .15s, transform .1s, border-color .15s; overflow: hidden;
}
.table-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--neutral); }
.table-card.s-AVAILABLE::before { background: var(--ok); }
.table-card.s-OCCUPIED::before  { background: var(--busy); }
.table-card.s-BILLING::before   { background: var(--warn); }
.table-card.s-CLEANING::before  { background: var(--neutral); }
.table-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--border-2); }
.table-card .tnum { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1; }
.table-card .tcap { display: flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }

/* ============================================================ MODAL / SHEET */
.scrim { position: fixed; inset: 0; background: rgba(40,26,14,.42); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: center; padding: 18px; animation: fade .16s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg); width: 100%; max-width: 460px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; animation: pop .18s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { max-width: 620px; }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(8px); } }
.modal-hd { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal-hd h2 { font-size: 18px; flex: 1; }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); }

/* ============================================================ TOAST */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: var(--r);
  background: var(--ink); color: #fff; box-shadow: var(--sh-lg); font-weight: 500; font-size: 14px;
  animation: slideIn .22s cubic-bezier(.2,.9,.3,1.1); min-width: 240px;
}
.toast.out { animation: slideOut .2s forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(20px); } }
.toast svg { width: 19px; height: 19px; flex: 0 0 19px; }
.toast.ok  { background: #1F6B45; }
.toast.err { background: #9E2D1E; }
.toast.warn{ background: #8A5D11; }

/* ============================================================ SKELETON */
.sk { background: linear-gradient(100deg, #EFE7DA 30%, #F6F0E6 50%, #EFE7DA 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-card { height: 110px; border-radius: var(--r-lg); }

/* ============================================================ EMPTY */
.empty { text-align: center; padding: 54px 20px; color: var(--ink-3); }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 16px; color: var(--ink-3); }
.empty .ico svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink-2); font-size: 16px; margin-bottom: 5px; }

/* ============================================================ RECEIPT */
.receipt { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre; background: #FFFDF9; color: #2A2118; padding: 18px; border-radius: var(--r); border: 1px dashed var(--border-2); overflow-x: auto; }

/* ============================================================ MISC UTIL */
.flex { display: flex; } .col { flex-direction: column; } .wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.grow { flex: 1; } .shrink0 { flex-shrink: 0; }
.grid { display: grid; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-6{margin-top:24px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.mb-6{margin-bottom:24px}
.hidden { display: none !important; }
.text-center { text-align: center; } .text-right { text-align: right; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.dashed { border-top: 1px dashed var(--border-2); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.page-head h1 { line-height: 1.14; margin-bottom: 1px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cols-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.dot-pulse { position: relative; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(62,149,104,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(62,149,104,.45);} 70%{box-shadow:0 0 0 7px rgba(62,149,104,0);} 100%{box-shadow:0 0 0 0 rgba(62,149,104,0);} }

/* fullscreen waiter views (table detail / new order) */
.fs { position: fixed; inset: 0; background: var(--bg); z-index: 60; display: flex; flex-direction: column; animation: slideUp .2s ease; }
@keyframes slideUp { from { transform: translateY(14px); opacity: .4; } }
.fs-top { height: 58px; flex: 0 0 58px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 6px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; }
.fs-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fs-foot { flex: 0 0 auto; border-top: 1px solid var(--border); background: var(--surface); padding: 12px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(60,40,24,.06); }

/* cart bar */
.cartbar { display: flex; align-items: center; gap: 12px; }
.cartbar .meta { flex: 1; min-width: 0; }
.cartbar .meta .tot { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 22px; background:
  radial-gradient(120% 90% at 100% 0%, #F6E6DC 0%, transparent 55%),
  radial-gradient(100% 80% at 0% 100%, #F4EEDD 0%, transparent 50%), var(--bg); }
.login-card { width: 100%; max-width: 400px; }

/* ============================================================ RESPONSIVE */
@media (max-width: 880px) {
  body { font-size: 15px; }
  .sidebar { display: none; }
  .shell { display: block; }
  .topbar { padding: 0 14px; height: 56px; flex-basis: 56px; }
  .topbar h1 { font-size: 17px; }
  .page { padding: 16px 14px calc(var(--bottom-h) + 28px); }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-h);
    padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); z-index: 50;
  }
  .bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--ink-3); font-size: 10.5px; font-weight: 600; position: relative;
  }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.active { color: var(--brand); }
  .bottomnav a.active::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .page-head { margin-bottom: 16px; }
  .modal { max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; align-self: flex-end; margin-top: auto; }
  .scrim { place-items: end center; padding: 0; }
  .floor-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none !important; }
  .floor-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (min-width: 881px) { .only-mobile { display: none !important; } .fs { position: static; animation: none; } }
@media (max-width: 880px) { .only-desktop { display: none !important; } }
