:root { --paper:#f4f6f5; --white:#fff; --red:#176b55; --red-dark:#105440; --line:#dce5df; }
body { font-size:16px; touch-action:manipulation; }
.page-shell { width:min(1440px,100%); padding:0 28px 110px; }
.masthead { height:86px; position:sticky; top:0; z-index:5; background:var(--paper); }
.brand { font-size:19px; } .brand small { font-size:11px; }
.store-status { font-size:14px; } #locale-select { min-height:48px; font-size:16px; max-width:150px; }
.hero { height:190px; margin-top:20px; border-radius:20px; }
.hero h1 { font-size:34px; } .hero-copy > p:last-child { font-size:19px; }
.hero-stamp { display:none; }
.menu-toolbar { margin:25px 0 18px; } .menu-heading h2 { font-size:25px; }
.search-box { width:300px; height:52px; border-radius:12px; }
.search-box input { font-size:16px; } .allergen-filter-button { min-height:52px; font-size:14px; border-radius:12px; }
.category-nav { top:86px; padding-top:16px; padding-bottom:16px; }
.category-button { min-height:52px; padding:0 22px; font-size:17px; border-radius:14px; }
.category-button[aria-pressed=true] { background:var(--green); border-color:var(--green); color:#fff; }
.menu-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.menu-item { display:flex; flex-direction:column; gap:0; padding:0; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:#fff; }
.menu-photo { width:100%; height:180px; object-fit:cover; }
.menu-copy { padding:16px; display:flex; flex-direction:column; flex:1; }
.menu-copy h3 { font-size:22px; } .menu-copy p { font-size:14px; min-height:36px; }
.menu-item-bottom { margin-top:auto; gap:8px; } .menu-price { font-size:21px; }
.add-button { width:52px; height:52px; font-size:28px; border-radius:15px; }
.cart-button { min-height:68px; width:min(700px,calc(100% - 40px)); font-size:18px; border-radius:18px; bottom:max(20px,env(safe-area-inset-bottom)); }
.dialog { width:min(760px,calc(100vw - 32px)); border-radius:20px 20px 0 0; }
.dialog h2,.cart-line h3 { font-size:22px; } .cart-line p,.summary-row { font-size:16px; }
.dialog-close { width:48px; height:48px; flex-basis:48px; } .modifier-option { min-height:52px; font-size:16px; }
.quantity-control button { width:48px; height:48px; font-size:23px; border-radius:10px; }
.quantity-control span { font-size:18px; } .cart-line-total { font-size:20px; }
.primary-button,.quiet-button { min-height:54px; font-size:17px; border-radius:12px; }
.tablet-login { max-width:540px; margin:48px auto; padding:34px; background:#fff; border:1px solid var(--line); border-radius:22px; }
.tablet-kicker { margin:0 0 10px; color:var(--green); font-size:13px; font-weight:700; letter-spacing:1px; }
.tablet-login h1,.tablet-picker h1 { margin:0 0 12px; font-size:30px; }
.tablet-login p,.tablet-picker-heading p { color:var(--muted); line-height:1.7; }
.tablet-login form { display:grid; gap:20px; margin-top:28px; }
.tablet-login label { display:grid; gap:8px; font-size:15px; }
.tablet-login input,.tablet-table-search input { width:100%; min-height:54px; padding:12px 16px; border:1px solid #c8d7ce; border-radius:12px; background:#fafcfb; color:var(--ink); font:inherit; }
.tablet-login output,.tablet-picker output,.tablet-loading output { display:block; min-height:24px; color:#a22; font-size:15px; line-height:1.6; }
.tablet-loading { margin:70px auto; max-width:540px; text-align:center; }
.tablet-picker { padding:32px 0; }
.tablet-picker-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:28px; }
.tablet-picker-actions { display:flex; flex-wrap:wrap; gap:10px; }
.tablet-picker-actions .quiet-button,.tablet-change-table { padding:10px 18px; border:1px solid #c8d7ce; background:white; color:var(--green); cursor:pointer; white-space:nowrap; }
.tablet-table-search { display:grid; gap:8px; max-width:440px; margin:20px 0; }
.tablet-areas { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.tablet-areas button { min-height:50px; padding:10px 22px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--ink); font:inherit; cursor:pointer; }
.tablet-areas button[aria-pressed=true] { color:white; background:var(--green); border-color:var(--green); }
.tablet-table-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:18px; margin-top:12px; }
.tablet-table-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-height:176px; padding:20px; border:1px solid #b9d6c7; border-radius:20px; background:white; color:var(--ink); font:inherit; text-align:left; cursor:pointer; box-shadow:0 6px 18px #12332408; }
.tablet-table-card strong { font-size:30px; }
.tablet-table-card small { color:var(--muted); }
.tablet-table-state { color:#19684a; font-size:13px; background:#e6f4ed; border-radius:20px; padding:4px 10px; }
.tablet-table-card.in-use { border-color:#dfc38c; }
.tablet-table-card.in-use .tablet-table-state { color:#855b13; background:#fff3d8; }
.tablet-table-card:hover { border-color:var(--green); }
.tablet-table-card:disabled { opacity:.55; cursor:wait; }
.tablet-empty { grid-column:1/-1; color:var(--muted); padding:25px 0; }
.tablet-change-confirm { width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 24px); box-sizing:border-box; overflow:auto; padding:clamp(14px,3vw,30px); border:1px solid var(--line); border-radius:22px; }
.tablet-change-confirm::backdrop { background:#102d22a6; }
.tablet-change-confirm h2 { font-size:23px; margin-top:0; }
.tablet-change-confirm p { color:var(--muted); line-height:1.7; }
.tablet-change-confirm > div { display:flex; flex-wrap:wrap; gap:12px; margin-top:25px; }
.tablet-change-confirm button { padding:10px 20px; }
.tablet-reauth-form,.tablet-reauth-form label { display:grid; gap:12px; }
.tablet-reauth-form input { min-width:0; width:100%; box-sizing:border-box; min-height:50px; padding:12px; border:1px solid var(--line); border-radius:10px; font:inherit; }
.tablet-reauth-form label,.tablet-reauth-form small { min-width:0; overflow-wrap:anywhere; }
.tablet-reauth-form output { min-height:24px; color:#a22; line-height:1.6; }
.tablet-reauth-form > div { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.category-nav { top:var(--tablet-header-height,86px); }
.masthead { height:auto; min-height:86px; flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
.tablet-orders-button { min-height:48px; padding:8px 16px; border:1px solid #c8d7ce; border-radius:12px; background:#fff; color:var(--green); font:inherit; cursor:pointer; }
.tablet-reviewed-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); box-sizing:border-box; padding:24px; border:1px solid var(--line); border-radius:20px; color:var(--ink); background:var(--paper); }
.tablet-reviewed-dialog::backdrop { background:#102d22a6; }
.tablet-reviewed-dialog h2 { margin:0 0 18px; font-size:24px; overflow-wrap:anywhere; }
.tablet-reviewed-order { margin-bottom:18px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.tablet-reviewed-order header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.tablet-reviewed-order header span { color:var(--green); }
.tablet-reviewed-line { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding:14px 0; margin-top:12px; }
.tablet-reviewed-line > div { min-width:0; overflow-wrap:anywhere; }
.tablet-reviewed-line > span { flex-shrink:0; }
.tablet-reviewed-line p { color:var(--muted); margin:8px 0 0; line-height:1.7; }
.tablet-reviewed-order footer { text-align:right; font-weight:700; }
.tablet-reviewed-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; position:sticky; bottom:-24px; padding:16px 0; background:var(--paper); }
.tablet-reviewed-actions button { padding-left:22px; padding-right:22px; }
.tablet-pending-warning { padding:20px; margin:20px 0; border:1px solid #dfc38c; border-radius:16px; background:#fff3d8; line-height:1.7; }
.tablet-pending-warning button { padding:10px 18px; margin:8px 12px 0 0; }
@media(max-width:700px) { .masthead { gap:8px; } .brand { margin-right:auto; } .tablet-change-table,.tablet-orders-button { min-height:48px; max-width:100%; white-space:normal; } .tablet-reviewed-dialog { padding:18px; } .tablet-reviewed-line { gap:8px; } }
@media(min-width:1100px) { .menu-list { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:700px) { .page-shell { padding-left:16px; padding-right:16px; } .menu-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .menu-photo { height:140px; } .menu-copy h3 { font-size:18px; } .menu-toolbar { flex-wrap:wrap; } .menu-toolbar-actions { width:100%; } .search-box { flex:1; } .store-status { display:none; } .hero h1 { font-size:28px; } .category-nav { margin-left:-16px; margin-right:-16px; padding-left:16px; } }
@media(max-width:700px) { .tablet-login { margin:24px 0; padding:24px; } .tablet-picker-heading { flex-direction:column; gap:12px; } .tablet-table-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .tablet-table-card { min-height:150px; padding:16px; } .tablet-change-table { font-size:14px; padding:8px; } .masthead { gap:10px; } }

/* Staff ordering: categories and dishes only; the order opens by an explicit tap. */
.menu-item { position:relative; min-width:0; }
.menu-list { touch-action:pan-y pinch-zoom; }
.menu-copy h3,.menu-price { overflow-wrap:anywhere; }
.menu-item-bottom { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; }
.menu-photo { background:#e8ede9; }
.add-button { min-width:56px; min-height:56px; touch-action:manipulation; }
.tablet-card-spec { box-sizing:border-box; width:100%; min-height:44px; margin:10px 0; padding:10px 12px; border:1px solid #9ab6a6; border-radius:10px; background:white; color:var(--ink); font:inherit; font-size:16px; }
.tablet-entry-number { display:grid; gap:8px; margin:14px 0; font-size:18px; }
.tablet-entry-number input,.tablet-settings-dialog select { box-sizing:border-box; width:100%; min-height:48px; padding:10px 12px; font:inherit; border:1px solid #9ab6a6; border-radius:10px; }
.tablet-settings-dialog label { display:block; margin:16px 0; line-height:1.6; }
.tablet-settings-dialog input[type=checkbox] { width:28px; height:28px; vertical-align:middle; margin:8px; }
.tablet-settings-dialog form > div { display:flex; gap:12px; margin-top:20px; }
.tablet-settings-dialog .tablet-settings-operations { display:grid; gap:12px; }
.tablet-settings-operations > button { width:100%; min-height:48px; text-align:left; }
.tablet-settings-dialog button:disabled { opacity:.55; }
.tablet-settings-dialog { max-height:calc(100dvh - 24px); overflow-y:auto; }
@media (orientation:portrait) and (max-height:680px) {
  .tablet-settings-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 12px); padding:10px 12px; }
  .tablet-settings-dialog h2 { margin:0 0 4px; font-size:20px; line-height:1.25; }
  .tablet-settings-dialog form {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 6px;
    grid-template-areas:"guests swipe" "zoom password" "table table" "actions actions" "hint hint" "status status" "footer footer";
  }
  .tablet-settings-dialog label { margin:0; line-height:1.35; }
  .tablet-settings-dialog label:not([for]) { grid-area:table; }
  .tablet-settings-dialog label[for] { display:grid; grid-template-columns:22px minmax(0,1fr); align-content:center; align-items:center; gap:1px 4px; min-height:44px; font-size:14px; overflow-wrap:anywhere; }
  .tablet-settings-dialog label[for="tablet-ask-guests"] { grid-area:guests; }
  .tablet-settings-dialog label[for="tablet-category-swipe"] { grid-area:swipe; }
  .tablet-settings-dialog label[for="tablet-image-zoom"] { grid-area:zoom; }
  .tablet-settings-dialog label[for="tablet-order-require-password"] { grid-area:password; }
  .tablet-settings-dialog label[for] small { grid-column:2; }
  .tablet-settings-dialog input[type=checkbox] { grid-row:span 2; margin:0; width:22px; height:22px; }
  .tablet-settings-dialog select { min-height:44px; padding:6px 8px; }
  .tablet-settings-dialog form > div { grid-area:footer; margin:0; gap:4px; }
  .tablet-settings-dialog form > .tablet-settings-operations { grid-area:actions; }
  .tablet-settings-dialog form > p { grid-area:hint; margin:2px 0; font-size:14px; line-height:1.35; }
  .tablet-settings-dialog output { grid-area:status; }
  .tablet-settings-dialog output:empty { display:none; }
  .tablet-settings-dialog button { min-height:44px; padding:4px 8px; font-size:16px; line-height:1.35; }
}
.dialog-body input[data-tablet-guests],.dialog-body input[data-deferred-table-search] { display:block; box-sizing:border-box; width:100%; min-height:48px; margin:10px 0; padding:10px 12px; border:1px solid #9ab6a6; border-radius:10px; font:inherit; font-size:18px; }
[data-deferred-table-list] { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-top:16px; }
[data-deferred-table-list] > button { min-height:54px; padding:12px; overflow-wrap:anywhere; }
.tablet-action-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:12px; margin:16px 0; }
.tablet-action-list > button { min-height:54px; padding:14px; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.tablet-settings-action-dialog > div > label,.tablet-settings-action-dialog form > label { display:grid; gap:10px; margin:16px 0; font-size:17px; }
.tablet-settings-action-dialog input:not([type=checkbox]),.tablet-settings-action-dialog select { box-sizing:border-box; width:100%; min-height:48px; padding:12px; border:1px solid #9ab6a6; border-radius:10px; font:inherit; }
.tablet-settings-action-dialog input[type=checkbox] { width:28px; height:28px; }
.tablet-settings-action-dialog button { min-height:48px; padding:12px 18px; margin:4px; }
.tablet-settings-action-dialog .tablet-action-header { display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.tablet-settings-action-dialog .tablet-action-header h2 { flex:1; min-width:0; margin:0; }
.tablet-settings-action-dialog [data-action-close] { flex:0 0 auto; min-width:48px; min-height:48px; border-radius:12px; }
.tablet-clearance-list { grid-template-columns:1fr; }
.tablet-clearance-row { display:grid!important; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:14px!important; min-height:64px; padding:8px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.tablet-clearance-row input[type=checkbox] { width:28px; height:28px; margin:0; accent-color:var(--accent); }
.tablet-clearance-name { min-width:0; overflow-wrap:anywhere; font-weight:700; }
.tablet-clearance-status { white-space:nowrap; color:var(--muted); }
.tablet-clearance-confirm { width:100%; text-align:center!important; }
output.tablet-draft-count { position:absolute; top:12px; right:12px; z-index:2; display:grid; place-items:center; min-width:36px; height:36px; padding:0 9px; border:3px solid white; border-radius:22px; background:#143e2e; color:white; font-size:18px; font-weight:800; line-height:1; box-shadow:0 3px 12px #0005; pointer-events:none; }
output.tablet-draft-count[hidden] { display:none!important; }
.tablet-order-note { display:grid; gap:10px; margin:20px 0; font-size:19px; font-weight:700; }
.tablet-order-note textarea { box-sizing:border-box; width:100%; min-height:112px; resize:vertical; padding:14px; border:1px solid #9ab6a6; border-radius:12px; font:inherit; font-size:18px; font-weight:400; line-height:1.5; color:var(--ink); background:white; }
.tablet-order-note textarea:read-only { background:#edf1ee; }
.tablet-order-note small { color:var(--muted); font-size:14px; font-weight:400; }
.tablet-note-review { white-space:pre-wrap; overflow-wrap:anywhere; padding:14px; background:#edf1ee; border-radius:10px; }
.tablet-login select { box-sizing:border-box; width:100%; min-height:54px; padding:12px; border:1px solid #9ab6a6; border-radius:12px; background:white; font:inherit; }
.tablet-discovery-store { padding:14px; border:1px solid var(--line); border-radius:12px; background:#edf4ef; overflow-wrap:anywhere; }
@media (orientation:landscape) and (max-height:540px) and (min-width:480px) {
  .tablet-settings-dialog { width:min(760px,calc(100vw - 16px)); max-height:calc(100dvh - 12px); padding:8px 12px; }
  .tablet-settings-dialog h2 { margin:0 0 4px; font-size:20px; line-height:1.2; }
  .tablet-settings-dialog form {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px;
    grid-template-areas:"guests table" "swipe zoom" "password footer" "actions actions" "hint hint" "status status";
    align-items:center;
  }
  .tablet-settings-dialog label { grid-area:table; min-width:0; margin:0; line-height:1.3; }
  .tablet-settings-dialog label[for] { display:grid; grid-template-columns:auto 1fr; align-content:center; align-items:center; gap:2px 4px; min-height:44px; }
  .tablet-settings-dialog label[for] input { grid-row:span 2; }
  .tablet-settings-dialog label[for] small { grid-column:2; }
  .tablet-settings-dialog label[for="tablet-ask-guests"] { grid-area:guests; }
  .tablet-settings-dialog label[for="tablet-category-swipe"] { grid-area:swipe; }
  .tablet-settings-dialog label[for="tablet-image-zoom"] { grid-area:zoom; }
  .tablet-settings-dialog label[for="tablet-order-require-password"] { grid-area:password; }
  .tablet-settings-dialog input[type=checkbox] { flex:none; margin:0 4px 0 0; }
  .tablet-settings-dialog select { display:block; margin-top:3px; min-height:44px; padding:6px; }
  .tablet-settings-dialog form > div { grid-area:footer; justify-content:end; margin:0; gap:6px; }
  .tablet-settings-dialog form > .tablet-settings-operations { grid-area:actions; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tablet-settings-dialog form > p { grid-area:hint; margin:0; font-size:14px; line-height:1.35; }
  .tablet-settings-dialog output { grid-area:status; }
  .tablet-settings-dialog output:empty { display:none; }
  .tablet-settings-dialog button { min-height:44px; padding:4px 8px; font-size:16px; line-height:1.3; }
  body .bundle-picker-overlay { padding:4px; }
  .bundle-picker-overlay .bundle-picker-panel {
    display:grid; grid-template-columns:minmax(0,1fr) clamp(144px,27vw,232px);
    grid-template-rows:auto minmax(0,1fr); width:min(960px,100%); height:100%;
    max-height:100%; border-radius:12px;
  }
  .bundle-picker-panel .bundle-picker-header {
    grid-column:1; grid-row:1; min-width:0; max-height:30dvh; overflow:auto;
    display:flex; align-items:center; gap:6px 10px; flex-wrap:wrap; padding:6px 10px;
  }
  .bundle-picker-header h2, .bundle-picker-header p { overflow-wrap:anywhere; }
  .bundle-picker-panel .bundle-picker-header h2 { font-size:17px; line-height:1.2; }
  .bundle-picker-panel .bundle-picker-header p { margin:0; font-size:14px; }
  .bundle-picker-header .hotpot195-change-mode { margin:0; min-height:44px; padding:4px 8px; }
  .bundle-picker-panel .bundle-picker-body { grid-column:1; grid-row:2; min-width:0; padding:4px 8px 8px; }
  .bundle-picker-body .bundle-picker-group { margin:4px 0; padding:6px; }
  .bundle-picker-body .bundle-picker-group-heading { margin-bottom:6px; gap:5px; }
  .bundle-picker-body .bundle-picker-group-heading h3 { flex-basis:auto; font-size:15px; }
  .bundle-picker-body .bundle-picker-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .bundle-picker-body .bundle-picker-option { min-height:48px; padding:6px; gap:6px; }
  .bundle-picker-panel .bundle-picker-footer {
    grid-column:2; grid-row:1 / span 2; min-width:0; min-height:0; overflow:auto;
    display:flex; flex-direction:column; gap:7px; padding:8px; border-top:0; border-left:1px solid var(--line);
  }
  .bundle-picker-footer .bundle-picker-error { min-height:0; margin:0; }
  .bundle-picker-footer .bundle-picker-totals { margin:0; gap:4px; }
  .bundle-picker-footer .bundle-picker-actions { display:grid; grid-template-columns:1fr; gap:4px; margin-top:auto; }
  .bundle-picker-footer .bundle-picker-actions button { min-height:44px; padding:5px 8px; white-space:normal; }
  .page-shell:has(> .tablet-login) .masthead { height:auto; min-height:48px; }
  #tablet-access.tablet-login { margin:8px auto; padding:12px 16px; max-width:780px; }
  .tablet-login > .tablet-kicker { display:none; }
  .tablet-login h1 { margin:0; font-size:21px; line-height:1.2; }
  .tablet-login:has([data-discovered-store]) > [data-tablet-copy=loginHint] { display:none; }
  .tablet-login form { grid-template-columns:repeat(2,minmax(0,1fr)) auto; align-items:end; gap:6px 10px; margin-top:6px; }
  .tablet-login form > [data-store-choice], .tablet-login form > output { grid-column:1 / -1; }
  .tablet-login .tablet-discovery-store { margin:0; padding:4px 8px; }
  .tablet-login label { min-width:0; gap:2px; }
  .tablet-login input, .tablet-login select, .tablet-login button { box-sizing:border-box; min-height:44px; padding:6px 10px; }
  .tablet-login form > output:empty { display:none; }
}
.cart-button { min-width:0; bottom:max(16px,env(safe-area-inset-bottom)); }
.hero { display:flex; align-items:center; height:auto; min-height:156px; padding:18px 20px; }
.hero > img { position:absolute; inset:0; }
.hero-copy { position:relative; left:auto; right:auto; bottom:auto; z-index:1; }
.hero-kicker { display:none; }
.hero h1 { max-width:none; }
.hero-copy > p:last-child { font-size:16px; line-height:1.3; }
.modal-root.tablet-order-page { align-items:stretch; padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px); background:var(--paper); }
.tablet-order-page .dialog { flex:1; width:100%; max-width:none; max-height:none; min-height:0; border-radius:0; box-shadow:none; animation:none; }
.tablet-order-page .dialog-head,.tablet-order-page .dialog-footer { flex:none; }
.tablet-order-page .dialog-body { flex:1; min-height:0; overflow-y:auto; }
.tablet-order-page .dialog-head h2 { font-size:26px; }
.tablet-order-page .dialog-footer { flex-wrap:wrap; }
.tablet-order-page .dialog-footer > strong { font-size:20px; }
@media(orientation:landscape) {
  .page-shell { width:100%; padding:0 20px 108px; }
  .masthead { display:flex; flex-wrap:wrap; min-height:64px; gap:12px; }
  #app:not([hidden]) { display:grid; grid-template-columns:clamp(100px,18vw,230px) minmax(0,1fr); column-gap:20px; align-items:start; }
  #app > .hero { grid-column:1 / -1; min-height:96px; margin-top:12px; padding:14px 20px; border-radius:14px; }
  .hero h1 { font-size:28px; }
  #app > .menu-toolbar { grid-column:2; margin:18px 0 14px; }
  .menu-heading .section-index,.menu-heading .eyebrow { display:none; }
  #app > .category-nav { grid-column:1; grid-row:2 / span 2; display:flex; flex-direction:column; flex-wrap:nowrap; gap:10px; align-items:stretch; position:sticky; top:calc(var(--tablet-header-height,64px) + 12px); max-height:max(72px,calc(100dvh - var(--tablet-header-height,64px) - 100px)); margin:18px 0 0; padding:0 0 12px; overflow-y:auto; white-space:normal; border:0; background:transparent; }
  .category-button { width:100%; min-height:52px; padding:12px 14px; text-align:left; font-size:19px; line-height:1.35; overflow-wrap:anywhere; }
  #app > .menu-list { grid-column:2; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .menu-photo { height:clamp(160px,22vw,260px); }
  .menu-copy { padding:16px; }
  .menu-copy h3 { font-size:24px; line-height:1.35; }
  .menu-copy p { font-size:16px; }
  .menu-price { font-size:24px; line-height:1.3; }
  .cart-button { left:auto; right:20px; transform:none; width:min(560px,calc(82% - 48px)); min-height:72px; font-size:19px; }
  #app > .page-footer { grid-column:1 / -1; }
}
@media(min-width:1000px) and (orientation:landscape) { #app > .menu-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:1700px) and (orientation:landscape) { #app > .menu-list { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:899px) and (orientation:landscape) {
  .page-shell { padding:0 12px 96px; }
  .masthead { flex-wrap:nowrap; min-height:58px; gap:8px; }
  .masthead .brand { font-size:17px; }
  #locale-select { width:100px; max-width:100px; }
  .tablet-orders-button,.tablet-change-table { min-height:44px; padding:8px 10px; font-size:15px; }
  #app:not([hidden]) { grid-template-columns:clamp(96px,18vw,140px) minmax(0,1fr); gap:12px; }
  #app > .hero { min-height:84px; padding:12px 16px; }
  .hero h1 { font-size:22px; }
  #app > .menu-toolbar { margin:10px 0; }
  .menu-heading { display:none; }
  .menu-toolbar-actions { min-width:0; flex-wrap:wrap; }
  .search-box { width:100%; min-width:0; height:46px; }
  .category-button { min-height:46px; padding:10px; font-size:16px; }
  .menu-photo { height:150px; }
  .menu-copy h3,.menu-price { font-size:20px; }
  .cart-button { width:calc(82% - 36px); right:12px; min-height:60px; display:grid; grid-template-columns:26px minmax(0,1fr) 16px; grid-template-rows:20px 20px; gap:2px 8px; padding:8px 12px; }
  .cart-button .cart-count { grid-column:1; grid-row:1 / span 2; }
  .cart-button > span:nth-child(2) { grid-column:2; grid-row:1; text-align:left; }
  .cart-button > strong { grid-column:2; grid-row:2; margin:0; text-align:left; font-size:12px; white-space:nowrap; }
  .cart-button > span:last-child { grid-column:3; grid-row:1 / span 2; }
}
@media(orientation:portrait) {
  .category-nav { flex-direction:row; overflow-x:auto; }
  .cart-button { bottom:max(16px,env(safe-area-inset-bottom)); }
}
@media (orientation:landscape) and (max-height:540px) and (max-width:1100px) {
  .page-shell:has(#app:not([hidden])) {
    --category-width:clamp(82px,16vw,146px);
    padding:0 6px max(4px,env(safe-area-inset-bottom));
  }
  .page-shell:has(#app:not([hidden])) .masthead {
    display:flex; flex-wrap:nowrap; min-height:48px; padding:2px 0; gap:4px;
  }
  .masthead .brand { flex:0 1 auto; }
  .masthead .brand small { display:none; }
  .masthead .tablet-change-table,.masthead .tablet-orders-button,#locale-select {
    min-height:44px; padding:4px 7px; font-size:14px;
  }
  #locale-select { width:clamp(65px,11vw,100px); }
  #app:not([hidden]) {
    height:calc(100dvh - var(--tablet-header-height,48px) - max(4px,env(safe-area-inset-bottom)));
    grid-template-columns:var(--category-width) minmax(0,1fr);
    grid-template-rows:auto auto minmax(0,1fr); gap:2px 6px; align-items:stretch;
  }
  #app > .hero {
    grid-area:1/1; display:flex; align-items:center; height:auto; min-height:0; margin:0;
    padding:0 4px; border-radius:0; background:transparent;
  }
  .hero > img,.hero-shade,.hero-kicker,.menu-heading,#app > .page-footer { display:none; }
  .hero .hero-copy { position:static; min-width:0; color:var(--ink); }
  .hero h1,.hero-copy > p:last-child { margin:0; color:inherit; font-family:inherit; font-size:12px; font-weight:600; line-height:1.35; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  #app > .local-test-notice { grid-area:2/1/3/-1; margin:0; }
  #app > .menu-toolbar { grid-area:1/2; min-width:0; margin:0; }
  .menu-toolbar-actions { width:100%; display:flex; flex-wrap:nowrap; align-items:center; gap:4px; }
  .menu-toolbar-actions .search-box { flex:1; min-width:0; width:auto; height:44px; }
  .menu-toolbar-actions .allergen-filter-button { min-height:44px; padding:4px 8px; font-size:13px; }
  #app > .category-nav { grid-area:3/1; position:static; min-height:0; max-height:none; margin:0; padding:0; gap:4px; overflow-y:auto; }
  .category-button { min-height:44px; padding:4px 7px; font-size:14px; }
  body:has(#cart-button:not([hidden])) #app > .category-nav { margin-bottom:58px; }
  #app > .menu-list {
    grid-area:3/2; min-height:0; overflow-y:auto; grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:calc((100% - 4px)/2); gap:4px; align-content:start; scrollbar-width:thin;
  }
  .menu-item { display:grid; grid-template:1fr/1fr; position:relative; min-height:0; border-radius:8px; }
  .menu-item > .menu-photo,.menu-item > .menu-copy { grid-area:1/1; }
  .menu-photo { width:100%; height:100%; min-height:0; object-fit:cover; }
  .menu-copy {
    min-height:0; align-self:end; display:grid; grid-template-columns:minmax(0,1fr) auto;
    align-items:end; gap:0 3px; padding:14px 4px 3px 6px; color:white;
    background:linear-gradient(transparent,rgba(12,24,19,.85) 28%,rgba(12,24,19,.96));
  }
  .menu-copy h3 { grid-column:1; margin:0; color:white; font-size:clamp(13px,1.85vw,17px); line-height:1.2; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .menu-copy p { display:none; }
  .menu-item-bottom { display:contents; }
  .menu-item:has([data-tablet-photo-zoom]) .menu-copy { pointer-events:none; }
  .menu-item:has([data-tablet-photo-zoom]) :is(.add-button,.tablet-card-spec) { pointer-events:auto; }
  .menu-copy .menu-price { grid-column:1; color:white; margin:0; font-size:clamp(12px,1.65vw,16px); line-height:1.3; overflow-wrap:anywhere; }
  .menu-price small { color:#e1ebe6; }
  .menu-item .add-button { grid-column:2; grid-row:1 / span 3; align-self:end; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; font-size:25px; border-radius:10px; }
  .menu-copy .tablet-card-spec { position:absolute; top:2px; left:2px; z-index:1; width:clamp(48px,8vw,80px); max-width:55%; margin:0; padding:0 2px; min-height:44px; font-size:13px; }
  .menu-item .clearance-badge { position:absolute; top:3px; left:4px; }
  .menu-item .tablet-draft-count { z-index:1; top:3px; right:3px; min-width:24px; min-height:24px; padding:0 4px; font-size:14px; }
  #cart-button:not([hidden]) { left:6px; right:auto; bottom:max(4px,env(safe-area-inset-bottom)); transform:none; width:clamp(82px,16vw,146px); min-width:0; height:54px; min-height:54px; padding:3px; display:grid; grid-template:1fr 1fr/auto 1fr; gap:0 2px; font-size:12px; border-radius:8px; }
  #cart-button .cart-count { grid-area:1/1; }
  #cart-button > span:nth-child(2) { grid-area:1/2; }
  #cart-button > strong { grid-area:2/1/3/-1; min-width:0; margin:0; font-size:clamp(10px,1.6vw,12px); line-height:1.1; text-align:center; white-space:normal; overflow-wrap:anywhere; }
  #cart-button > span:last-child { display:none; }
}
@media (orientation:landscape) and (max-height:300px) and (min-width:480px) {
  .tablet-settings-dialog { width:min(760px,calc(100vw - 8px)); max-width:calc(100vw - 8px); max-height:calc(100dvh - 4px); padding:4px 8px; }
  .tablet-settings-dialog h2 { margin:0; font-size:18px; }
  .tablet-settings-dialog form { gap:2px 6px; }
  .tablet-settings-dialog label[for] small { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media(max-width:480px) and (orientation:portrait) {
  .menu-list { grid-template-columns:1fr; }
  .menu-photo { height:220px; }
  .menu-copy h3,.menu-price { font-size:23px; }
  .cart-button { min-height:70px; font-size:17px; }
  .tablet-order-note textarea { font-size:17px; }
}
.tablet-picker {
  display:grid; grid-template-columns:minmax(138px,240px) minmax(0,1fr);
  align-items:center; gap:8px 12px; padding:12px 0;
}
.menu-photo[data-tablet-photo-zoom] { cursor:zoom-in; }
.tablet-secondary-price { display:block; font-size:.83em; font-weight:550; line-height:1.2; }
.tablet-reviewed-prices { display:flex; flex-wrap:wrap; gap:6px 18px; }
.tablet-reviewed-prices > span { font-variant-numeric:tabular-nums; }
.menu-photo[data-tablet-photo-zoom]:focus-visible { outline:3px solid #e2ad4f; outline-offset:-3px; }
.tablet-photo-dialog[open] {
  box-sizing:border-box; display:grid; grid-template: minmax(0,1fr) auto / minmax(0,1fr) auto;
  gap:8px 12px; width:min(940px,calc(100vw - 16px)); height:min(860px,calc(100dvh - 16px));
  max-width:100vw; max-height:100dvh; padding:10px; border:0; border-radius:12px; background:#17231e; color:#fff;
}
.tablet-photo-dialog::backdrop { background:rgba(7,15,12,.82); }
.tablet-photo-dialog img { grid-column:1/-1; width:100%; height:100%; min-height:0; object-fit:contain; cursor:zoom-out; touch-action:manipulation; }
.tablet-photo-dialog h2 { min-width:0; align-self:center; margin:0; font-size:17px; line-height:1.35; overflow-wrap:anywhere; }
.tablet-photo-dialog button { align-self:center; min-height:44px; padding:6px 16px; }
.dialog-body:has([data-custom-name]) > .tablet-entry-number {
  display:block; margin:8px 0; min-width:0;
}
.dialog-body:has([data-custom-name]) > .tablet-entry-number input {
  display:block; margin-top:4px;
}
@media (orientation:landscape) {
  .dialog-body:has([data-custom-name]) {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px;
  }
  .dialog-body:has([data-custom-name]) > :not(.tablet-entry-number) { grid-column:1/-1; }
  .dialog-body:has([data-custom-name]) > .tablet-entry-number { margin:0; }
}
@media (orientation:landscape) and (max-height:540px) {
  .dialog:has([data-custom-name]) { max-height:calc(100dvh - 8px); }
  .dialog:has([data-custom-name]) .dialog-head,
  .dialog:has([data-custom-name]) .dialog-footer { padding:5px 14px; }
  .dialog-body:has([data-custom-name]) { padding:6px 14px; gap:6px 12px; }
  .dialog-body:has([data-custom-name]) > .tablet-entry-number { font-size:15px; line-height:1.2; }
  .dialog-body:has([data-custom-name]) > .tablet-entry-number input { min-height:44px; padding:6px 10px; }
}
@media (orientation:landscape) and (max-height:300px) {
  .dialog:has([data-custom-name]) .dialog-head,
  .dialog:has([data-custom-name]) .dialog-footer { padding-block:2px; }
  .dialog:has([data-custom-name]) .dialog-footer .primary-button { min-height:44px; padding-block:4px; }
  .dialog-body:has([data-custom-name]) { padding-block:4px; row-gap:4px; }
  .dialog-body:has([data-custom-name]) > .tablet-entry-number input { margin-top:2px; }
}
@media (orientation:portrait) and (max-height:540px), (orientation:landscape) and (max-height:360px) {
  .tablet-settings-dialog label[for] small,
  .tablet-settings-dialog form:not(:has([name="askGuests"]:disabled)) > p {
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%);
  }
  .tablet-settings-dialog label[for] { font-size:14px; line-height:1.25; }
}
.tablet-picker > * { min-width:0; grid-column:1/-1; }
.tablet-picker-heading { flex-direction:row; align-items:center; gap:8px; }
.tablet-picker-heading .tablet-kicker,.tablet-picker h1,.tablet-picker-heading p { margin:0; }
.tablet-picker h1 { font-size:clamp(19px,2.6vw,25px); line-height:1.25; }
.tablet-picker-heading [data-tablet-copy="chooseHint"] { font-size:13px; line-height:1.4; }
.tablet-picker-actions { gap:4px; }
.tablet-picker-actions .quiet-button,.tablet-areas button { min-height:44px; padding:4px 10px; font-size:14px; }
.tablet-table-search { grid-column:1; display:block; margin:0; }
.tablet-table-search span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.tablet-table-search input { min-height:44px; padding:5px 10px; font-size:15px; border-radius:9px; }
.tablet-areas { grid-column:2; margin:0; gap:4px; }
.tablet-picker output:empty { display:none; }
.tablet-table-grid { grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr)); gap:6px; margin:0; }
.tablet-table-card {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-content:center; align-items:center;
  gap:3px 4px; min-height:72px; padding:7px 8px; border-radius:9px; overflow-wrap:anywhere;
}
.tablet-table-card strong { grid-area:1/1; font-size:clamp(17px,2.3vw,23px); line-height:1.2; }
.tablet-table-state { grid-area:1/2; max-width:100%; padding:2px 5px; font-size:12px; line-height:1.3; }
.tablet-table-card > span:not(.tablet-table-state),.tablet-table-card small { font-size:12px; line-height:1.35; }
.tablet-table-card small { text-align:right; }
@media(max-width:600px) {
  .tablet-picker { grid-template-columns:minmax(94px,34%) minmax(0,1fr); gap:6px; }
  .tablet-table-grid { grid-template-columns:repeat(auto-fill,minmax(min(96px,100%),1fr)); }
  .tablet-picker-heading [data-tablet-copy="chooseHint"] { display:none; }
  .tablet-table-card { min-height:60px; padding:5px; }
  .tablet-picker-actions .quiet-button,.tablet-areas button { padding:4px 6px; }
}
@media(orientation:landscape) and (max-height:540px) {
  .page-shell:has(.tablet-picker) { padding:0 6px 6px; }
  .page-shell:has(.tablet-picker) .masthead { min-height:46px; padding:2px 0; }
  .tablet-picker { gap:5px 8px; padding:5px 0; }
  .tablet-picker-heading [data-tablet-copy="chooseHint"] { display:none; }
  .tablet-table-card { min-height:60px; }
}

/* IME215: preserve usable form controls even with a 117 CSS-pixel viewport.
   The ordinary dialog/card layout is untouched once the keyboard closes. */
html[data-tablet-ime215] #modal-root:has([data-custom-name], [data-entry-market], [data-entry-weight]) {
  top:var(--tablet-ime215-top,0px); bottom:auto;
  height:var(--tablet-ime215-height,100dvh); box-sizing:border-box;
  padding:4px; align-items:stretch;
}
html[data-tablet-ime215] #modal-root .dialog:has([data-custom-name], [data-entry-market], [data-entry-weight]) {
  display:block; height:100%; max-height:100%; min-height:0;
  overflow-y:auto; overscroll-behavior:contain; scroll-padding-block:4px;
}
html[data-tablet-ime215] #modal-root .dialog:has([data-custom-name], [data-entry-market], [data-entry-weight]) .dialog-body {
  overflow:visible; min-height:0; flex:none;
}
html[data-tablet-ime215] #modal-root .dialog:has([data-custom-name], [data-entry-market], [data-entry-weight]) .dialog-head,
html[data-tablet-ime215] #modal-root .dialog:has([data-custom-name], [data-entry-market], [data-entry-weight]) .dialog-footer {
  position:static; flex:none;
}
html[data-tablet-ime215] #modal-root .dialog-body:has([data-custom-name], [data-entry-market], [data-entry-weight]) > .tablet-entry-number {
  display:block; margin:0; font-size:15px; line-height:1.2;
  scroll-margin-block:4px;
}
html[data-tablet-ime215] #modal-root .dialog-body:has([data-custom-name], [data-entry-market], [data-entry-weight]) > .tablet-entry-number > [data-i18n-ignore] { display:inline; }
html[data-tablet-ime215] #modal-root .dialog-body:has([data-custom-name], [data-entry-market], [data-entry-weight]) > .tablet-entry-number input { display:block; width:100%; min-height:44px; margin-top:2px; padding:6px 10px; }
