@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: block; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-VF.woff2") format("woff2"); font-weight: 400 700; font-display: block; }

:root {
  --bg: #f7f1e8;
  --panel: #fffcf7;
  --card: #ffffff;
  --card-2: #f3ebdf;
  --line: rgba(74, 48, 24, .10);
  --line-2: rgba(74, 48, 24, .16);
  --ink: #24190f;
  --ink-2: #57483a;
  --ink-3: #7c6a59;
  --ember: #e8964a;
  --ember-2: #a8541a;
  --ember-bg: rgba(232, 150, 74, .16);
  --basil: #3d7a2c;
  --basil-bg: rgba(77, 140, 56, .12);
  --wine: #b8432f;
  --wine-bg: rgba(200, 80, 60, .11);
  --r: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; }
.tnum { font-variant-numeric: tabular-nums; }

/* ======================= STAFF ======================= */
.staff { display: grid; grid-template-columns: 72px 1fr 404px; height: 100vh; min-height: 760px; }

.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0; border-right: 1px solid var(--line); background: #f0e7da; }
.rail .mark { width: 36px; height: 36px; color: var(--ember); margin-bottom: 18px; }
.rail .mark svg { width: 100%; height: 100%; }
.rail a { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.rail a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail a.on { background: var(--ember-bg); color: var(--ember-2); }
.rail a.on svg rect { fill: currentColor; stroke: none; opacity: .9; }
.rail a.bottom { margin-top: auto; }
.rail .dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--wine); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.board { display: flex; flex-direction: column; min-width: 0; padding: 0 24px 24px; background:
  radial-gradient(900px 400px at 30% -10%, rgba(232,150,74,.12), transparent 70%), var(--bg); }

.top { display: flex; align-items: center; gap: 28px; height: 92px; border-bottom: 1px solid var(--line); }
.title h1 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.01em; line-height: 1.1; font-variation-settings: "opsz" 72; }
.title h1 em { font-style: italic; color: var(--ember-2); font-weight: 400; }
.title p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.stats { display: flex; gap: 28px; margin-left: auto; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.stats .v { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.stats .v small { font-size: 13px; color: var(--ink-2); font-weight: 500; margin-left: 1px; }
.accepting { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 20px; background: var(--basil-bg); color: var(--basil); font-weight: 600; font-size: 13px; border: 1px solid rgba(61,122,44,.28); }
.accepting .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(61,122,44,.16); }
.accepting[aria-pressed="false"] { background: var(--wine-bg); color: var(--wine); border-color: rgba(184,67,47,.3); }
.accepting[aria-pressed="false"] .pulse { box-shadow: 0 0 0 4px rgba(184,67,47,.16); }

.cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; min-height: 0; }
.col { display: flex; flex-direction: column; min-width: 0; background: rgba(240,229,213,.45); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px; }
.col-h h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.col-h .sw { width: 8px; height: 8px; border-radius: 3px; }
.sw.new { background: var(--ember); } .sw.cooking { background: var(--wine); } .sw.ready { background: var(--basil); }
.col-h .count { margin-left: auto; font-size: 12px; color: var(--ink-3); background: var(--card); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.tk { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; box-shadow: 0 1px 2px rgba(74,48,24,.05), 0 8px 20px -14px rgba(74,48,24,.28); animation: in .35s ease both; }
.tk.fresh { border-color: rgba(214,128,52,.6); box-shadow: 0 0 0 3px rgba(232,150,74,.16), 0 8px 20px -14px rgba(74,48,24,.28); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.tk-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tk-h .no { font-weight: 700; font-size: 13px; color: var(--ember-2); }
.tk-h .who { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-h .due { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--card-2); padding: 2px 7px; border-radius: 6px; }
.tk-h .due::before { content: "Pickup "; color: var(--ink-3); font-weight: 500; }
.tk-h .due.late { color: var(--wine); background: var(--wine-bg); }
.tk ul { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.tk li { display: flex; gap: 8px; }
.tk li b { width: 18px; color: var(--ink); font-weight: 600; }
.tk li span { margin-left: auto; color: var(--ink-3); }
.note, .shelf { margin-top: 8px; font-size: 12px; padding: 5px 8px; border-radius: 6px; background: var(--ember-bg); color: var(--ember-2); }
.note.allergy { background: var(--wine-bg); color: var(--wine); }
.shelf { background: var(--basil-bg); color: var(--basil); }
.bar { margin-top: 10px; height: 4px; border-radius: 2px; background: var(--card-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--wine), var(--ember)); }
.tk-f { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.tk-f .tot { font-weight: 700; font-size: 15px; }
.tk-f .src { font-size: 12px; color: var(--ink-3); }
.tk-f .timer { color: var(--ember-2); }
.act { margin-left: auto; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--ember); color: #1b1009; }
.act:hover { background: #f0a862; }
[data-col="cooking"] .act { background: var(--card-2); color: var(--ink); border: 1px solid var(--line-2); }
[data-col="ready"] .act { background: var(--basil-bg); color: var(--basil); border: 1px solid rgba(61,122,44,.3); }

/* menu editor */
.menu { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); min-width: 0; }
.menu-hero { position: relative; height: 176px; overflow: hidden; }
.menu-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.menu-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,252,247,0) 0%, rgba(255,252,247,.35) 35%, rgba(255,252,247,.86) 66%, var(--panel) 100%); }
.mh-txt { position: absolute; left: 24px; right: 24px; bottom: 14px; z-index: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--basil); background: rgba(255,255,255,.88); padding: 4px 9px; border-radius: 12px; backdrop-filter: blur(6px); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mh-txt h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 8px; letter-spacing: -.01em; }
.mh-txt p { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.tabs { display: flex; gap: 4px; padding: 10px 24px 12px; border-bottom: 1px solid var(--line); }
.tabs button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.tabs button.on { background: var(--card-2); color: var(--ink); }
.dishes { padding: 6px 12px; overflow: hidden; }
.dish { display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; transition: opacity .2s; }
.dish + .dish { border-top: 1px solid var(--line); }
.dish img, .dish .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.dish .ph { display: grid; place-items: center; background: var(--card-2); color: var(--ink-3); border: 1px solid var(--line-2); }
.dish .ph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.d-t { min-width: 0; }
.d-t h3 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-t p { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warn { color: var(--ember-2); font-weight: 600; }
.eighty { display: inline-block; font-weight: 700; color: var(--wine); background: var(--wine-bg); padding: 0 6px; border-radius: 4px; margin-right: 2px; }
.price { font-weight: 600; font-size: 14px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card); }
.dish.off img, .dish.off .ph, .dish.off h3, .dish.off .price { opacity: .5; }
.dish.off h3 { text-decoration: line-through; text-decoration-color: rgba(184,67,47,.7); }
.tg { position: relative; width: 40px; height: 24px; border-radius: 12px; background: #ddd2c3; transition: background .2s; }
.tg i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(74,48,24,.25); transition: transform .2s, background .2s; }
.tg.on { background: var(--basil); }
.tg.on i { transform: translateX(16px); background: #fff; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* additions */
.tk-h .due { flex: none; white-space: nowrap; }
.done { margin-top: auto; padding: 12px 4px 2px; }
.done h3 { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.done li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line); }
.done li .no { color: var(--ink-3); font-weight: 600; width: 42px; }
.done li span:nth-child(2) { margin-left: auto; color: var(--ink-3); }
.done li b { width: 58px; text-align: right; font-weight: 600; color: var(--ink-2); }
.sell { margin: 0; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sell-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sell-h h3 { font-family: var(--serif); font-weight: 500; font-size: 16px; }
.sell-h span { font-size: 11px; color: var(--ink-3); }
.sell li { display: grid; grid-template-columns: 136px 1fr 24px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding: 4px 0; }
.sell li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sell li i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(232,150,74,.4), var(--ember)); width: var(--w); }
.sell li b { text-align: right; font-weight: 600; color: var(--ink); }

/* column footers: scheduled orders (New) + station load (Cooking) */
.stations .no { width: 48px; }
.stations li b { width: 54px; text-align: center; font-size: 11px; padding: 2px 0; border-radius: 6px; }
.stations li b.busy { color: var(--ember-2); background: var(--ember-bg); }
.stations li b.ok { color: var(--basil); background: var(--basil-bg); }

/* No italics anywhere (operator rule): accent words stay upright. */
*, *::before, *::after { font-style: normal !important; }

/* ===================== the working app (multi-page) ===================== */
.mb-chat { --mb-accent: #a8541a; }
.rail .dot[hidden], .drawer .dot[hidden] { display: none; }
.rail a.bottom { margin-top: auto; }
.list { overflow-y: auto; min-height: 0; scrollbar-width: thin; padding: 2px; margin: -2px; }
.col { min-height: 0; }
.empty { color: var(--ink-3); font-size: 13px; padding: 18px 8px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }
.mbar, .drawer, .scrim { display: none; }
.menu { min-height: 0; }
.dishes { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.tabs { flex-wrap: wrap; }
.feed-box { margin: 10px 16px 16px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); flex: none; }
.feed-box .mb-feed-list li { background: var(--panel); border: 1px solid var(--line); }
.feed-box .mb-ico { background: var(--ember-bg); color: var(--ember-2); }
.feed-box .mb-live { background: var(--basil); }
.tk-f .src { white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(36,25,15,.6); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* staff pages (menu, reservations) */
.staff.page { grid-template-columns: 72px minmax(0, 1fr); height: auto; min-height: 100vh; }
.staff.page .rail { position: sticky; top: 0; height: 100vh; }
.pg { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 16px; min-width: 0; background: radial-gradient(900px 400px at 30% -10%, rgba(232,150,74,.12), transparent 70%), var(--bg); }
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pg-head h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: -.01em; line-height: 1.1; }
.sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.side-col .feed-box { margin: 0; }
.side-col .sell { margin: 0; }
.btn-ember { height: 40px; padding: 0 16px; border-radius: 10px; background: var(--ember); color: #1b1009; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.btn-ember:hover { background: #f0a862; }
.btn-line { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13.5px; }
.mini-e, .mini-l { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mini-e { background: var(--ember); color: #1b1009; }
.mini-l { border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); }
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chips { display: flex; gap: 6px; }
.chips.wrap { flex-wrap: wrap; }
.chips button { height: 32px; padding: 0 13px; border-radius: 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--card); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chips button span { color: var(--ink-3); margin-left: 2px; }
.chips button.on span { color: #e8d9c6; }

/* menu admin */
.addform { padding: 16px 18px; display: grid; gap: 12px; }
.addform[hidden] { display: none; }
.addform h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.af-grid { display: grid; grid-template-columns: 2fr 1fr 100px; gap: 10px; }
.af-grid .wide { grid-column: 1 / -1; }
.addform label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.addform input, .addform select { height: 38px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); outline: none; min-width: 0; }
.addform input:focus, .addform select:focus { border-color: var(--ember-2); box-shadow: 0 0 0 3px var(--ember-bg); }
.af-f { display: flex; justify-content: flex-end; gap: 8px; }
.mrows { padding: 4px 10px 10px; }
.mrow { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto 40px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow img, .mrow .ph { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.mrow .ph { display: grid; place-items: center; background: var(--card-2); color: var(--ink-3); border: 1px solid var(--line-2); }
.mrow .ph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mr-t h3 { font-size: 15px; font-weight: 600; }
.mr-t p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.newtag { font-size: 10.5px; font-weight: 700; color: var(--basil); background: var(--basil-bg); padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--card-2); color: var(--ink-2); }
.tag.t-v { background: var(--basil-bg); color: var(--basil); }
.tag.t-n { background: var(--wine-bg); color: var(--wine); }
.tag.sold { background: none; color: var(--ink-3); font-weight: 500; }
.mr-left { display: grid; justify-items: center; gap: 3px; }
.mr-left .k { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.step { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; height: 30px; }
.step button { width: 28px; height: 100%; font-size: 16px; color: var(--ink-2); }
.step b { min-width: 26px; text-align: center; font-weight: 600; font-size: 13px; }
.mrow.low .step b { color: var(--ember-2); }
button.price { cursor: pointer; }
button.price:hover { border-color: var(--ember); }
.pedit { display: flex; gap: 4px; }
.pedit input { width: 64px; height: 30px; border: 1px solid var(--ember); border-radius: 7px; padding: 0 6px; font: inherit; font-weight: 600; outline: none; }
.mini-e { cursor: pointer; }
.mrow.off img, .mrow.off .ph, .mrow.off h3, .mrow.off .price { opacity: .5; }
.mrow.off h3 { text-decoration: line-through; text-decoration-color: rgba(184,67,47,.7); }
.sell { padding: 16px; }

/* reservations */
.walkin { display: flex; gap: 8px; }
.walkin input, .walkin select { height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); outline: none; min-width: 0; }
.walkin input { width: 180px; }
.walkin input:focus, .walkin select:focus { border-color: var(--ember-2); box-shadow: 0 0 0 3px var(--ember-bg); }
.rstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rstats > div { padding: 14px 18px; display: grid; gap: 2px; }
.rstats > div + div { border-left: 1px solid var(--line); }
.rstats .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.rstats .v { font-size: 24px; font-weight: 600; }
.rstats .v small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.rrows { list-style: none; padding: 4px 10px 10px; }
.rrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 54px 92px 128px; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow.fresh { background: #fff1e2; border-radius: 10px; }
.rt { font-weight: 700; font-size: 16px; display: grid; line-height: 1.1; }
.rt small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.rt.late, .rt.late small { color: var(--wine); }
.rw b { font-weight: 600; font-size: 14px; }
.rw small { display: block; color: var(--ink-3); font-size: 12px; }
.rnote { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ember-2); background: var(--ember-bg); padding: 2px 7px; border-radius: 6px; }
.rtable { font-weight: 700; font-size: 13px; text-align: center; background: var(--card-2); border-radius: 8px; padding: 5px 0; }
.rtable em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--wine); }
.rpill { font-size: 12px; font-weight: 600; text-align: center; padding: 4px 0; border-radius: 12px; }
.rpill.bk { background: var(--card-2); color: var(--ink-2); }
.rpill.st { background: var(--basil-bg); color: var(--basil); }
.rpill.dn { background: #eee; color: #777; }
.rpill.cx, .rpill.ns { background: var(--wine-bg); color: var(--wine); }
.racts { display: flex; gap: 6px; justify-content: flex-end; }
.rrow.s-done, .rrow.s-cancelled, .rrow.s-noshow { opacity: .62; }
.floor { padding: 16px; }
.tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; grid-auto-flow: dense; }
.tb { border-radius: 12px; padding: 8px; min-height: 58px; display: grid; align-content: center; justify-items: center; text-align: center; border: 1.5px solid var(--line-2); background: var(--panel); }
.tb.seats6, .tb.seats8 { grid-column: span 2; }
.tb b { font-size: 13px; }
.tb small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tb-busy { background: var(--basil-bg); border-color: rgba(61,122,44,.35); }
.tb-busy small { color: var(--basil); }
.tb-soon { background: var(--ember-bg); border-color: rgba(214,128,52,.45); }
.tb-soon small { color: var(--ember-2); }
.legend2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.legend2 i { width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; border: 1.5px solid var(--line-2); background: var(--panel); }
.legend2 i.t-soon { background: var(--ember-bg); border-color: rgba(214,128,52,.45); }
.legend2 i.t-busy { background: var(--basil-bg); border-color: rgba(61,122,44,.35); }

/* ===================== tablet & phone ===================== */
@media (max-width: 1200px) {
  .staff:not(.page) { grid-template-columns: 72px minmax(0, 1fr); height: auto; min-height: 0; }
  .staff:not(.page) .rail { position: sticky; top: 0; height: 100vh; }
  .staff:not(.page) .menu { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .staff:not(.page) .menu-hero { grid-column: 1 / -1; }
  .staff:not(.page) .tabs { grid-column: 1 / -1; }
  .board { padding-bottom: 20px; }
  .cols { min-height: 640px; }
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
}
@media (max-width: 900px) {
  .staff, .staff.page, .staff:not(.page) { display: block; height: auto; min-height: 0; }
  .rail { display: none !important; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 16px; background: #f0e7da; border-bottom: 1px solid var(--line); }
  .burger { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); }
  .burger svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
  .mb-brand { font-family: var(--serif); font-size: 19px; font-weight: 500; }
  .mb-brand em { color: var(--ember-2); }
  .mb-sub { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 600; }
  .drawer { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); z-index: 70; background: var(--panel); padding: 12px; transform: translateX(-102%); transition: transform .25s ease; }
  .nav-open .drawer { transform: none; box-shadow: 20px 0 40px -20px rgba(36,25,15,.4); }
  .dr-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .dr-x { width: 44px; height: 44px; font-size: 26px; color: var(--ink-2); }
  .drawer a { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .drawer a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .drawer a.on { background: var(--ember-bg); color: var(--ember-2); }
  .drawer .dot { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 6px; }
  .dr-me { margin-top: auto; font-size: 12.5px; color: var(--ink-3); padding: 12px; border-top: 1px solid var(--line); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(36,25,15,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .board { padding: 0 16px 16px; }
  .top { height: auto; flex-wrap: wrap; gap: 12px 16px; padding: 14px 0; }
  .title h1 { font-size: 24px; }
  .stats { margin-left: 0; order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats .v { font-size: 18px; }
  .accepting { margin-left: auto; height: 36px; padding: 0 12px; font-size: 12.5px; }
  .cols { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .list { overflow: visible; }
  .staff:not(.page) .menu { display: flex; }
  .feed-box { margin: 12px 16px 90px; }
  .pg { padding: 16px 16px 90px; }
  .pg-head h1 { font-size: 26px; }
  .rstats { grid-template-columns: 1fr 1fr; }
  .rstats > div:nth-child(3) { border-left: 0; }
  .rstats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .walkin { width: 100%; }
  .walkin input { flex: 1; width: auto; }
  .rrow { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "t w tb" "t p a"; gap: 6px 10px; }
  .rt { grid-area: t; align-self: start; }
  .rw { grid-area: w; }
  .rtable { grid-area: tb; padding: 4px 8px; }
  .rpill { grid-area: p; justify-self: start; padding: 3px 10px; }
  .racts { grid-area: a; }
  .mrow { grid-template-columns: 52px minmax(0, 1fr) 40px; grid-template-areas: "i t g" "i l p"; gap: 6px 12px; }
  .mrow img, .mrow .ph { grid-area: i; width: 52px; height: 52px; align-self: start; }
  .mr-t { grid-area: t; }
  .mr-left { grid-area: l; display: flex; align-items: center; gap: 8px; justify-self: start; }
  .mrow .price, .mrow .pedit { grid-area: p; justify-self: end; }
  .mrow .tg { grid-area: g; align-self: start; }
  .af-grid { grid-template-columns: 1fr 1fr; }
  .af-grid label:first-child { grid-column: 1 / -1; }
  .tables { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .dish { grid-template-columns: 48px minmax(0, 1fr) auto 40px; gap: 10px; padding: 10px 6px; }
  .dish img, .dish .ph { width: 48px; height: 48px; }
  .mh-txt { left: 16px; right: 16px; }
  .tabs { padding: 10px 16px 12px; }
  .tk-h .who { min-width: 0; }
}
@media (min-width: 901px) { .staff:not(.page) .menu { padding-bottom: 66px; } .feed-box { margin-bottom: 8px; } }
@media (max-width: 900px) { .drawer { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; } .nav-open .drawer { visibility: visible; transition: transform .25s ease; } }
@media (max-width: 900px) { .title h1 { display: none; } .title p { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0; } }
@media (min-width: 1201px) { .staff:not(.page) { grid-template-rows: 100vh; } .staff:not(.page) .board, .staff:not(.page) .menu { min-height: 0; overflow: hidden; } }
