/* Reference positions: E:/素材/旧版平板操作画面 (nine supplied images). */
html[data-tablet-public-welcome214=true] .masthead { display:none!important; }
html[data-tablet-public-welcome214=true] .page-shell { margin:0; padding:0; width:100%; max-width:none; }
.tablet-public-welcome214 { position:fixed; inset:0; z-index:30; margin:0; overflow:auto; background:#fcf5ee; }
.tablet-native-menu214 { position:fixed; z-index:90; right:8px; top:52px; padding:6px; display:flex; flex-direction:column; gap:4px; min-width:156px; background:white; border:1px solid #ddd; border-radius:8px; box-shadow:0 4px 24px #0003; }
.tablet-native-menu214[hidden] { display:none; }
.tablet-native-menu214 > a,.tablet-native-menu214 > button { display:flex; align-items:center; box-sizing:border-box; padding:8px 16px; min-width:44px; min-height:44px; color:#333; text-decoration:none; background:#f5f5f5; border:0; border-radius:4px; font:16px system-ui,sans-serif; }
html[data-tablet-theme=theme1][data-tablet-view=list] #app > .menu-list { grid-auto-rows:minmax(116px,auto); }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-item { min-height:min-content; height:auto; }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-item > .menu-photo { grid-area:1/1; }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-item > .menu-copy { grid-area:1/2; position:relative; align-self:stretch; display:grid; grid-template-columns:minmax(0,1fr) 44px; grid-template-rows:minmax(44px,auto) auto; gap:0 6px; padding:8px; background:#fff; color:var(--ink); }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-copy h3 { grid-area:1/1; margin:0; color:var(--ink); }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-copy p { display:none; }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-item-bottom { display:contents; }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-copy .menu-price { grid-area:2/1; margin:0; color:var(--red); }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-price small { color:var(--green); }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-item .add-button { grid-area:1/2/3/3; align-self:center; width:44px; min-width:44px; height:44px; min-height:44px; }
html[data-tablet-theme=theme1][data-tablet-view=list] .menu-copy .tablet-card-spec { position:static; grid-area:3/1/4/3; max-width:100%; width:100%; margin:0; }
html[data-tablet-theme=theme2] { --legacy214-red:#bd3032; --legacy214-dark:#890600; }
.legacy-top214 { display:grid; grid-template-columns:1fr 2fr 1fr; align-items:center; flex:none; height:clamp(48px,8.5dvh,102px); box-sizing:border-box; background:var(--legacy214-dark); color:#fff; padding:0 1.5%; }
.legacy-top214 h1 { font:inherit; text-align:center; font-size:clamp(20px,2.2vw,42px); font-weight:500; margin:0; color:#fff; }
.legacy-top214 button { border:0; background:none; color:#fff; font:inherit; font-size:clamp(18px,2vw,38px); text-align:left; padding:4px; min-height:44px; }
.legacy-top214 button:last-child { text-align:right; }
html[data-tablet-theme=theme2][data-tablet-legacy214=tables] .page-shell > .masthead { display:none; }
.legacy-tables214 { display:block!important; margin:0!important; padding:0!important; width:100%; max-width:none!important; }
.legacy-tables214 > :not(.legacy-workspace214):not(.tablet-pending-warning) { display:none; }
.legacy-workspace214 { position:fixed; inset:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0); display:flex; flex-direction:column; z-index:8; background:#eee; color:#111; }
.legacy-tabs214 { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); flex:none; min-height:clamp(44px,7.8dvh,94px); background:#fff; box-shadow:0 3px 6px #0001; }
.legacy-tabs214 button { padding:4px; min-height:44px; border:0; border-bottom:4px solid transparent; background:white; font:inherit; font-size:clamp(13px,1.5vw,28px); }
.legacy-tabs214 button[aria-selected=true] { border-color:var(--legacy214-red); }
.legacy-workbody214 { flex:1; min-height:0; display:grid; grid-template-columns:34fr 50fr 14fr; gap:1%; padding:1% 0; }
.legacy-workbody214[hidden],.legacy-operation214[hidden] { display:none!important; }
.legacy-order214 { display:flex; min-width:0; min-height:0; flex-direction:column; background:#fff; }
.legacy-ordercontents214 { flex:1; min-height:0; overflow:auto; padding:8px 3%; }
.legacy-ordercontents214 > p { margin:6px 0; padding:4px 0; }
.legacy-ordercontents214 > p:first-child { border-bottom:2px dashed #aaa; }
.legacy-totals214 { flex:none; padding:6px 3%; border-top:2px dashed #aaa; font-size:clamp(12px,1.2vw,24px); }
.legacy-totals214 p { margin:4px 0; }
.legacy-orderbuttons214 { display:grid; grid-template-columns:1fr 1fr; gap:15%; padding:6px 3%; background:#eee; }
.legacy-orderbuttons214 button,.legacy-wide-confirm214 { border:0; background:var(--legacy214-red); color:#fff; border-radius:clamp(6px,1vw,20px); min-height:44px; font:inherit; font-size:clamp(18px,2vw,38px); padding:8px; }
.legacy-orderbuttons214 button { height:clamp(44px,8dvh,96px); }
.legacy-tablemain214 { display:flex; flex-direction:column; min-width:0; min-height:0; }
.legacy-tablemain214 > .tablet-table-search { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.legacy-tablemain214 .tablet-table-grid { display:grid; flex:1; min-height:0; overflow:auto; align-content:start; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(10px,2vw,40px); padding:1% 2%; margin:0; background:#fff; }
.legacy-tablemain214 .tablet-table-card { padding:4px; min-height:0; aspect-ratio:1; height:auto; border:clamp(3px,.4vw,8px) solid var(--legacy214-red); border-radius:clamp(9px,1.3vw,25px); background:#fff; color:#111; display:grid; place-items:center; }
.legacy-tablemain214 .tablet-table-card strong { font:inherit; font-size:clamp(17px,2.4vw,46px); }
.legacy-tablemain214 .tablet-table-card > :not(strong) { display:none; }
.legacy-tablemain214 .tablet-table-card.in-use { background:var(--legacy214-red); color:white; }
.legacy-tablemain214 .tablet-table-card[aria-pressed=true] { outline:3px solid #222; outline-offset:2px; }
.legacy-start214 { margin:4px 0; min-height:44px; border:0; background:var(--legacy214-red); color:white; font:inherit; }
.legacy-areas214 { min-height:0; overflow:auto; background:#fff; }
.legacy-areas214 .tablet-areas { display:flex; flex-direction:column; gap:0; margin:0; padding:0; overflow:visible; }
.legacy-areas214 button { width:100%; padding:8px 3px; min-height:44px; border:0; border-radius:0; background:#fff; color:#111; font-size:clamp(16px,2vw,38px); white-space:normal; overflow-wrap:anywhere; }
.legacy-areas214 button[aria-pressed=true] { background:#d8d8d8; }
.legacy-result214 { flex:none; padding:0 10px; font-size:14px; overflow-wrap:anywhere; color:#8c2426; }
.legacy-result214:empty { display:none; }
.legacy-operation214 { flex:1; min-height:0; overflow:auto; padding:4dvh 0 8px; }
.legacy-form214 { width:48%; min-width:min(100%,380px); margin:0 auto; display:flex; flex-direction:column; gap:clamp(10px,2dvh,32px); }
.legacy-field214 { display:grid; grid-template-columns:22% minmax(0,1fr); align-items:center; gap:4%; margin:0; color:#111; font:inherit; font-size:clamp(17px,2vw,38px); }
.legacy-field214 > input,.legacy-field214 > select { box-sizing:border-box; width:100%; min-width:0; min-height:clamp(44px,7.2dvh,88px); padding:4px 10px; border:2px solid #111; border-radius:clamp(8px,1vw,20px); background:#fff; color:#111; font:inherit; }
.legacy-wide-confirm214 { margin:clamp(10px,7dvh,120px) 0 0 26%; }
.legacy-keypad214 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(6px,1vw,20px); width:100%; }
.legacy-keypad214 button { min-height:44px; height:clamp(44px,10dvh,128px); border:0; background:#fff; color:#111; font:inherit; font-size:clamp(22px,3vw,56px); }
.legacy-keypad214 .legacy-reset214 { background:#222; color:white; }
.legacy-keypad214 .legacy-confirm214 { background:var(--legacy214-red); color:white; }
.legacy-visually-hidden214 { position:absolute; width:1px; height:1px; min-height:0; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); }
.legacy-orderedlines214 .tablet-reviewed-line { font-size:clamp(12px,1vw,20px); gap:4px; padding:6px 0; }
.legacy-orderedlines214 .tablet-reviewed-order { padding:4px; }
.legacy-orderedlines214 .tablet-reviewed-order header { flex-wrap:wrap; }
.legacy-orderedlines214 .tablet-line-submission small { font-size:11px; }
.legacy-menu-header214 { display:grid; grid-template-columns:20% minmax(100px,1fr) minmax(100px,30%) 46px 44px; align-items:center; gap:6px; padding:4px 8px; height:64px; box-sizing:border-box; background:var(--legacy214-red); color:#fff; }
.legacy-menu-header214 > button { min-height:44px; min-width:0; padding:0 4px; border:0; color:white; background:transparent; font-size:24px; text-align:left; }
.legacy-menu-header214 .legacy-table-label214 { font-size:clamp(15px,2vw,28px); text-align:center; font-weight:400; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.legacy-menu-header214 .search-box { height:40px; min-width:0; width:100%; border-radius:24px; background:white; padding:0 10px; }
.legacy-menu-header214 .search-box input { min-width:0; font-size:16px; }
.legacy-menu-header214 .search-box kbd { display:none; }
.legacy-menu-header214 .legacy-list214 { text-align:center; font-size:0; }
.legacy-menu-header214 .legacy-list214:after { content:'☷'; font-size:32px; }
.legacy-menu-header214 .legacy-reauth215 { grid-area:1/5; text-align:center; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .page-shell { width:100%; max-width:none; padding:0!important; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .page-shell > .masthead { display:none!important; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app[hidden] { display:none!important; }
html[data-tablet-theme=theme2]:has(#app[hidden]) .legacy-menu-header214 { display:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app:not([hidden]) { height:calc(100dvh - 64px)!important; padding:10px 8px 8px 0; box-sizing:border-box; display:grid; grid-template-columns:20% minmax(0,1fr); grid-template-rows:minmax(0,1fr); column-gap:12px; align-items:stretch; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > :is(.hero,.menu-toolbar,.page-footer) { display:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .category-nav { grid-area:1/1; display:flex; flex-direction:column; margin:0; padding:0 0 60px; top:auto; position:static; gap:0; min-height:0; max-height:none; overflow:auto; background:white; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .category-button { padding:12px 8%; font-size:clamp(16px,2vw,28px); min-height:48px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .category-button[aria-pressed=true] { background:#ddd; color:#111; box-shadow:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .menu-list { grid-area:1/2; margin:0; min-height:0; overflow-y:auto; align-content:start; grid-auto-rows:auto; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-item { display:flex; flex-direction:column; min-height:260px; height:auto; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-photo { flex:1 1 0; height:0; min-height:0; aspect-ratio:var(--tablet214-image-ratio); object-fit:var(--tablet214-image-fit); }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-copy { display:flex; flex:0 0 auto; flex-direction:column; align-items:stretch; min-height:0; padding:8px 12px; align-self:stretch; background:#fff; color:#222; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] h3[role=button] { min-width:44px; min-height:44px; display:flex; align-items:center; cursor:pointer; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .cart-button { left:0; right:auto; bottom:max(4px,env(safe-area-inset-bottom)); transform:none; width:20%; min-height:54px; border:0; border-radius:0; background:white; color:var(--legacy214-red); font-size:16px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .cart-button > strong,html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .cart-button > span:last-child { display:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .cart-button .cart-count { background:var(--legacy214-red); color:white; }
html[data-tablet-theme=theme2] .menu-price small { color:#666; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog { border-radius:0; width:100%; max-width:none; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-head { position:relative; background:var(--legacy214-red); color:white; min-height:54px; padding:8px 2%; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-head h2 { color:white; font-weight:400; text-align:center; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-head p { color:#fffc; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-body { background:white; padding:10px 3%; }
.legacy-cart-photo214,.legacy-cart-count214 { display:none; }
.legacy-cart-columns214 { display:grid; grid-template-columns:44% 18% 14% 24%; padding:8px 0; border-bottom:1px solid #ccc; text-align:center; color:#555; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line { position:relative; min-height:96px; padding:14px 0; border-bottom:1px solid #ddd; display:block; }
html[data-tablet-theme=theme2] .tablet-order-page .legacy-cart-photo214 { display:block; position:absolute; left:0; top:14px; width:12%; max-height:96px; aspect-ratio:1; object-fit:contain; }
html[data-tablet-theme=theme2] .tablet-order-page .legacy-cart-count214 { display:block; position:absolute; left:62%; width:14%; text-align:center; top:28px; font-size:18px; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line > div { width:30%; margin-left:14%; display:block; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line h3 { font-size:clamp(17px,2vw,28px); }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line .quantity-control { position:absolute; right:0; top:20px; display:flex; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line .quantity-control { gap:0; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line .quantity-control > span { display:none; }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line .quantity-control button { width:44px; height:44px; border-radius:50%; color:var(--legacy214-red); }
html[data-tablet-theme=theme2] .tablet-order-page .cart-line-total { position:absolute; left:44%; width:18%; top:28px; text-align:center; color:var(--legacy214-red); font-size:clamp(14px,1.5vw,25px); }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-footer { justify-content:center; border-top:1px solid #ddd; background:#fff; }
html[data-tablet-theme=theme2] .tablet-order-page .dialog-footer .primary-button { border-radius:7px; padding:6px 30px; min-height:44px; }
html[data-tablet-theme=theme2] .bundle-picker-overlay { align-items:stretch; padding:0; }
html[data-tablet-theme=theme2] .bundle-picker-panel { border-radius:0; width:100%; max-width:none; height:100dvh; max-height:100dvh; padding:0; display:grid; grid-template-columns:20% minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr); }
html[data-tablet-theme=theme2] .bundle-picker-header { background:var(--legacy214-red); color:white; }
html[data-tablet-theme=theme2] .bundle-picker-header { grid-area:1/1/2/-1; }
html[data-tablet-theme=theme2] .bundle-picker-body { grid-area:3/2; min-height:0; overflow:auto; border-left:12px solid #eee; }
html[data-tablet-theme=theme2] .bundle-picker-footer { grid-area:2/2; border-left:12px solid #eee; display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:flex-start; background:#fff; }
html[data-tablet-theme=theme2] .bundle-picker-totals { display:flex; gap:8px; align-items:center; }
html[data-tablet-theme=theme2] .bundle-picker-actions { display:flex; flex-direction:row; gap:16px; }
html[data-tablet-theme=theme2] .bundle-picker-actions button { background:var(--legacy214-red); color:white; border-radius:6px; min-height:44px; padding:8px 24px; }
html[data-tablet-theme=theme2] .bundle-picker-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
html[data-tablet-theme=theme2] .bundle-picker-option { border-radius:8px; background:white; }
html[data-tablet-theme=theme2] .bundle-picker-option[aria-pressed=true] { border-color:var(--legacy214-red); color:var(--legacy214-red); background:white; }
.legacy-detail214 { position:fixed; inset:0; margin:0; border:0; padding:0; width:100%; max-width:none; height:100dvh; max-height:none; background:#eee; }
.legacy-settings214 { position:fixed; inset:0; margin:0; border:0; border-radius:0; width:100%; max-width:none; height:100dvh; max-height:100dvh; padding:0; box-sizing:border-box; background:#eee; }
.legacy-settings214[open] { display:flex; flex-direction:column; }
.legacy-settings214 > form { flex:1; min-height:0; overflow:auto; padding:4dvh 1% 12px; display:flex!important; flex-direction:column; align-items:stretch!important; }
.legacy-settings-grid214 { display:grid; width:100%; box-sizing:border-box; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3,auto); grid-auto-flow:column; gap:clamp(14px,3dvh,40px) 3%; }
.legacy-settings-grid214 > .legacy-setting-row214 { grid-area:auto!important; }
.legacy-settings-grid214 > label.legacy-setting-row214 { display:grid; }
.legacy-setting-row214 { display:grid; grid-template-columns:28% minmax(0,1fr); gap:3%; align-items:center; min-width:0; font-size:clamp(17px,2vw,38px); margin:0!important; }
.legacy-setting-row214 input { box-sizing:border-box; width:100%; min-width:0; height:clamp(44px,7dvh,88px); padding:4px 8px; border:2px solid #222; border-radius:0; background:#fff; text-align:center; font:inherit; }
.legacy-setting-row214:has(>button) { grid-template-columns:28% 1fr 1fr; gap:3%; }
.legacy-setting-row214 >button { min-width:0; min-height:44px; height:clamp(44px,7dvh,88px); border:2px solid #222; background:white; color:#111; border-radius:0; font:inherit; }
.legacy-setting-row214 >button[aria-pressed=true] { border-color:var(--legacy214-red); color:var(--legacy214-red); }
.legacy-setting-row214:has(.legacy-server-change214) { position:relative; }
.legacy-server-change214 { grid-column:2; font-size:13px; text-align:right; color:var(--legacy214-red); }
.legacy-server-change214[href] { position:absolute; inset:0 0 0 31%; display:inline-flex; justify-content:flex-end; align-items:center; min-width:44px; min-height:44px; padding-right:10px; font-size:20px; }
.legacy-settings-extra214 { margin:16px 0; padding:8px 12px; border:1px solid #ccc; background:#fff; font-size:16px; }
.legacy-settings-extra214 summary { cursor:pointer; min-height:44px; line-height:44px; }
.legacy-settings-footer214 { display:flex; justify-content:center; gap:14px; margin-top:auto!important; }
.legacy-settings214 form > .legacy-settings-footer214 { justify-content:center!important; }
.legacy-settings-footer214 button[type=submit] { width:30%; min-width:180px; min-height:clamp(44px,8dvh,96px); border:0; border-radius:clamp(8px,1vw,20px); background:var(--legacy214-red); color:white; font-size:clamp(18px,2vw,38px); }
.legacy-detail214[open] { display:flex; flex-direction:column; }
.legacy-detail214 .legacy-top214 { background:var(--legacy214-red); }
.legacy-detailbody214 { display:grid; grid-template-columns:80% minmax(0,1fr); gap:1%; padding:8px 1%; flex:1; min-height:0; }
.legacy-detailmain214 { background:#fff; min-height:0; overflow:auto; }
.legacy-large-photo214 { width:100%; max-height:65%; object-fit:cover; aspect-ratio:16/9; }
.legacy-detailinfo214 { padding:8px 2%; position:relative; }
.legacy-detailinfo214 h2 { margin:4px 0; font-weight:400; font-size:24px; }
.legacy-detailinfo214 p { color:#777; }
.legacy-detailinfo214 strong { color:var(--legacy214-red); }
.legacy-detail-add214 { position:absolute; right:2%; top:8px; background:transparent; border:0; min-height:44px; min-width:44px; color:var(--legacy214-red); font-size:28px; }
.legacy-thumbs214 { min-height:0; overflow:auto; display:flex; flex-direction:column; gap:10px; }
.legacy-thumbs214 button { border:0; border-radius:8px; padding:0; overflow:hidden; flex:none; background:#fff; }
.legacy-thumbs214 img { display:block; width:100%; height:100%; min-height:64px; max-height:160px; object-fit:cover; }
@media(orientation:landscape) and (max-height:540px) {
 .legacy-menu-header214 { height:48px; grid-template-columns:19% minmax(76px,1fr) minmax(100px,30%) 44px 44px; gap:4px; padding:2px 4px; }
 .legacy-menu-header214 > button { font-size:18px; }
 .legacy-menu-header214 .legacy-table-label214 { font-size:14px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app:not([hidden]) { height:calc(100dvh - 48px)!important; padding:6px 6px 4px 0; column-gap:8px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .menu-list { grid-auto-rows:calc((100% - 8px)/2); }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .menu-list { grid-auto-rows:max(132px,calc((100% - 8px)/2)); }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-item { min-height:0; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-photo { flex:1 1 0; height:0; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-copy { flex:0 0 auto; min-height:0; padding:4px 6px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-copy { display:grid; grid-template-columns:minmax(0,1fr) 44px; grid-template-rows:44px auto; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-copy h3[role=button] { grid-area:1/1; margin:0; padding:3px 0; box-sizing:border-box; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:18px; max-height:44px; white-space:normal; overflow:hidden; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-copy p { display:none; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-item-bottom { display:contents; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .menu-price { grid-area:2/1; margin:0; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .add-button { grid-area:1/2/3/3; align-self:center; width:44px; height:44px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .category-button { font-size:14px; min-height:44px; }
 .legacy-operation214 { padding-top:4px; }
 .legacy-form214 { width:55%; gap:4px; }
 .legacy-keypad214 { gap:4px; }
 .legacy-keypad214 button { height:44px; }
 .legacy-wide-confirm214 { margin-top:14px; }
 .legacy-orderedlines214 .tablet-reviewed-line p { margin:2px 0; }
 .legacy-settings214 > form { padding:8px 8px 4px; gap:4px!important; }
 .legacy-settings-grid214 { gap:6px 12px; }
 .legacy-setting-row214 input,.legacy-setting-row214 > button { height:44px; }
 .legacy-settings-extra214 { margin:4px 0; padding:0 8px; }
 .legacy-settings-extra214 summary { min-height:44px; line-height:44px; }
 .legacy-settings-footer214 button[type=submit] { min-height:44px; }
}
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] #app > .menu-list { grid-template-columns:minmax(0,1fr); grid-auto-rows:minmax(116px,auto); }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-item { display:grid; grid-template-columns:clamp(84px,18vw,160px) minmax(0,1fr); min-height:116px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-photo { grid-area:1/1; width:100%; height:100%; max-height:160px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-copy { grid-area:1/2; display:grid; grid-template-columns:minmax(0,1fr) 44px; grid-template-rows:minmax(44px,auto) auto; padding:8px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-item-bottom { display:contents; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-copy p { display:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-copy h3 { grid-area:1/1; margin:0; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .menu-price { grid-area:2/1; margin:0; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu][data-tablet-view=list] .add-button { grid-area:1/2/3/3; width:44px; min-width:44px; height:44px; min-height:44px; align-self:center; }
@media(orientation:portrait) and (max-width:600px) {
 .legacy-workbody214 { grid-template-columns:1fr 2fr; gap:8px; }
 .legacy-areas214 { grid-column:1/-1; grid-row:1; max-height:50px; overflow:auto; }
 .legacy-areas214 .tablet-areas { flex-direction:row; }
 .legacy-areas214 button { width:auto; min-width:72px; font-size:15px; }
 .legacy-order214,.legacy-tablemain214 { grid-row:2; }
 .legacy-tablemain214 .tablet-table-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .legacy-tabs214 { overflow-x:auto; }
 .legacy-tabs214 button { font-size:12px; }
 .legacy-form214 { width:94%; }
 .legacy-settings-grid214 { grid-template-columns:minmax(0,1fr); grid-auto-flow:row; grid-template-rows:auto; }
 .legacy-menu-header214 { grid-template-columns:90px minmax(0,1fr) 44px 44px; height:100px; }
 .legacy-menu-header214 .legacy-reauth215 { grid-column:4; }
 .legacy-menu-header214 .search-box { grid-row:2; grid-column:1/-1; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app:not([hidden]) { height:calc(100dvh - 100px)!important; grid-template-columns:100%; grid-template-rows:50px minmax(0,1fr); gap:6px; padding:0 6px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .category-nav { grid-area:1/1; flex-direction:row; padding:0; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] #app > .menu-list { grid-area:2/1; padding-bottom:60px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu] .cart-button { width:100%; }
 .legacy-detailbody214 { grid-template-columns:78% minmax(0,1fr); }
}

/* Ordinary tablet menu: independent category/menu scrolling and direct-card masonry. */
html[data-tablet-menu220=true] body{height:100vh;height:100dvh;overflow:hidden}
html[data-tablet-menu220=true] .page-shell{height:100vh;height:100dvh;overflow:hidden;padding-bottom:0!important}
html[data-tablet-menu220=true] #app:not([hidden]){height:var(--tablet220-app-height)!important;min-height:0;overflow:hidden;align-items:stretch;box-sizing:border-box}
html[data-tablet-menu220=true] #app>#category-nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;position:static}
html[data-tablet-menu220=true] #app>#menu-list{min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:thin;padding-bottom:8px}
html[data-tablet-menu220=true] #app>#menu-list[data-tablet-masonry220=true]{display:grid;grid-auto-flow:row;grid-auto-rows:4px!important;gap:8px;align-items:start}
html[data-tablet-menu220=true] #app>#menu-list[data-tablet-masonry220=true]>.menu-item{display:flex!important;flex-direction:column;align-self:start;min-height:0;height:auto;max-height:none;grid-row-end:span var(--tablet220-row-span,1);margin:0}
html[data-tablet-menu220=true] #app>#menu-list[data-tablet-masonry220=true]>.menu-item>.menu-photo{display:block;flex:none;min-height:0;max-height:none;object-fit:var(--tablet214-image-fit,cover)}
html[data-tablet-menu220=true]:not([data-tablet-ratio-mode=fixed]) #app>#menu-list[data-tablet-masonry220=true]>.menu-item>.menu-photo{width:100%;height:var(--tablet220-photo-height,160px);aspect-ratio:auto}
html[data-tablet-menu220=true] #app>#menu-list[data-tablet-masonry220=true]>.menu-item>.menu-copy{flex:none;min-height:0}
.tablet-home220{display:inline-flex!important;align-items:center;justify-content:flex-start;gap:5px;min-height:44px;min-width:44px}
.tablet-home-icon220{display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain;pointer-events:none}
.tablet-home-label220{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-tablet-menu220=true] .masthead .tablet-home220{max-width:140px;padding-left:5px;padding-right:5px}
@media(orientation:landscape){
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app:not([hidden]){grid-template-rows:auto auto minmax(0,1fr)}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#menu-list{grid-row:3;grid-column:2}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#category-nav{grid-row:2/4;grid-column:1;margin-bottom:68px}
}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#category-nav{grid-row:3;grid-column:1;margin-bottom:58px}
 html[data-tablet-menu220=true] #app>#menu-list[data-tablet-masonry220=true]{gap:8px}
}
@media(orientation:portrait){
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app:not([hidden]){display:grid;grid-template-columns:100%;grid-template-rows:auto auto 52px minmax(0,1fr);gap:6px}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>.hero{grid-area:1/1;min-height:0;margin:0}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>.menu-toolbar{grid-area:2/1;margin:0}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#category-nav{grid-area:3/1;margin:0;padding:0;overflow-x:auto;overflow-y:hidden}
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#menu-list{grid-area:4/1;padding-bottom:90px}
 html[data-tablet-menu220=true][data-tablet-theme=theme2] #app>#menu-list{padding-bottom:62px}
 html[data-tablet-menu220=true] .masthead .tablet-home220{max-width:120px}
 .tablet-home-icon220{width:28px;height:28px;flex-basis:28px}
}

html[data-tablet-menu220=true] .masthead .brand img.tablet-brand-pad220{width:32px;height:32px;object-fit:contain}

/* The fixed landscape category rail fills its own grid area and scrolls internally. */
@media(orientation:landscape){
 html[data-tablet-menu220=true][data-tablet-theme=theme1] #app>#category-nav{align-self:stretch;max-height:none;margin-bottom:0;padding-bottom:68px}
}

/* One expanded view of the existing settings form; every original control keeps its owner. */
.tablet-settings-dialog.tablet-settings-inline228{position:fixed;top:0;right:0;bottom:0;left:0;inset:0;margin:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;padding:0;border:0;border-radius:0;overflow:hidden;background:#f1f5f2;color:#173f2d}
.tablet-settings-dialog.tablet-settings-inline228[open]{display:flex;flex-direction:column}
.tablet-settings-inline228>h2{flex:none;margin:0;padding:14px 18px;font-size:24px;line-height:1.25}
.tablet-settings-inline228>.legacy-top214{flex:none;min-height:44px}
.tablet-settings-inline228>.legacy-tabs214{flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.tablet-settings-inline228>.legacy-tabs214 button{min-width:0;min-height:44px;padding:6px 4px;font-size:16px;white-space:normal}
.tablet-settings-dialog.tablet-settings-inline228>form{display:flex!important;flex-direction:column;align-items:stretch!important;flex:1;min-height:0;gap:12px;margin:0;padding:16px;overflow:auto;overscroll-behavior:contain}
.tablet-settings-inline228 .tablet-settings-groups228{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;gap:14px;margin:0}
.tablet-settings-inline228 .tablet-settings-group228{min-width:0;margin:0;padding:12px;border:1px solid #bed1c3;border-radius:10px;background:#fff;box-sizing:border-box}
.tablet-settings-inline228 .tablet-settings-group228>legend{max-width:100%;padding:0 6px;font-size:18px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.tablet-settings-inline228 .tablet-settings-selection228,.tablet-settings-inline228 .tablet-settings-display228,.tablet-settings-inline228 .tablet-settings-permissions228,.tablet-settings-inline228 .tablet-settings-other228{grid-column:1/-1}
.tablet-settings-inline228 .tablet-settings-display228{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tablet-settings-inline228 .tablet-settings-display228>small,.tablet-settings-inline228 .tablet-settings-display228>button{grid-column:1/-1}
.tablet-settings-dialog.tablet-settings-inline228 label{grid-area:auto!important;min-width:0;margin:6px 0;line-height:1.4;overflow-wrap:anywhere}
.tablet-settings-dialog.tablet-settings-inline228 label[for]{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:3px 8px;min-height:48px;font-size:16px}
.tablet-settings-inline228 label[for]>input{grid-row:1/3}
.tablet-settings-inline228 label[for]>small{grid-column:2;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important;line-height:1.35;font-size:13px}
.tablet-settings-inline228 label:not([for]){display:flex;flex-direction:column;gap:4px}
.tablet-settings-inline228 input:not([type=checkbox]),.tablet-settings-inline228 select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:8px 10px;border:1px solid #9ab6a6;border-radius:6px;background:white;color:#173f2d;font:inherit}
.tablet-settings-inline228 input[type=checkbox]{width:26px;height:26px;margin:0}
.tablet-settings-inline228 .tablet-settings-readonly228 input{background:#f5f7f5;text-overflow:ellipsis}
.tablet-settings-inline228 .tablet-settings-operations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.tablet-settings-inline228 [data-settings-clearance]{display:none}
.tablet-settings-inline228 .tablet-native-admin-settings226{grid-column:1/-1;min-width:0;margin:0;padding:10px}
.tablet-settings-inline228 button,.tablet-settings-inline228 .legacy-server-change214{min-height:44px}
.tablet-settings-inline228 .tablet-settings-operations>button{min-width:0;white-space:normal}
.tablet-settings-dialog.tablet-settings-inline228 form>p{grid-area:auto;margin:0;font-size:14px;line-height:1.5}
.tablet-settings-inline228 output{grid-area:auto;font-size:14px;line-height:1.5;color:#8b211d;overflow-wrap:anywhere}
.tablet-settings-inline228 output:empty{display:none}
.tablet-settings-dialog.tablet-settings-inline228 form>.tablet-settings-footer228{position:sticky;bottom:-16px;z-index:1;display:flex;flex:none;justify-content:flex-end;gap:10px;margin:0 -16px -16px!important;padding:10px 16px;background:#f1f5f2;border-top:1px solid #bed1c3;grid-area:auto}
.tablet-settings-inline228 .tablet-settings-footer228 button{min-width:100px;min-height:44px;padding:8px 16px;font-size:17px}
html[data-tablet-theme=theme2] .tablet-settings-inline228{background:#eee;color:#111}
html[data-tablet-theme=theme2] .tablet-settings-inline228 .tablet-settings-footer228{background:#eee}
html[data-tablet-theme=theme2] .tablet-settings-inline228 .tablet-settings-group228{border-color:#ccc;color:#111}
html[data-tablet-theme=theme2] .tablet-settings-inline228 input:not([type=checkbox]),html[data-tablet-theme=theme2] .tablet-settings-inline228 select{color:#111;border-color:#bbb}
@media(max-width:650px){.tablet-settings-inline228 .tablet-settings-groups228{grid-template-columns:minmax(0,1fr)}.tablet-settings-inline228 .tablet-settings-display228{grid-template-columns:repeat(2,minmax(0,1fr))}.tablet-settings-inline228 .tablet-settings-operations{grid-template-columns:minmax(0,1fr)}.tablet-settings-inline228>.legacy-tabs214 button{font-size:13px}}
@media(max-height:360px) and (orientation:landscape){.tablet-settings-inline228>h2{padding:8px 12px;font-size:20px}.tablet-settings-dialog.tablet-settings-inline228>form{padding:8px;gap:8px}.tablet-settings-inline228 .tablet-settings-groups228{gap:8px}.tablet-settings-inline228 .tablet-settings-group228{padding:8px}.tablet-settings-dialog.tablet-settings-inline228 form>.tablet-settings-footer228{bottom:-8px;margin:0 -8px -8px!important;padding:6px 8px}.tablet-settings-inline228>.legacy-top214 h1{font-size:20px}}

.tablet-settings-inline228 .legacy-server-change214[href]{position:static;inset:auto;align-self:flex-end;justify-content:center;min-width:44px;padding:4px 10px}

.tablet-settings-dialog.tablet-settings-inline228 select,.tablet-settings-dialog.tablet-settings-inline228 input:not([type=checkbox]){min-height:44px}
.tablet-settings-inline228 .tablet-display214 label{flex-direction:column;align-items:stretch}
.tablet-settings-inline228 .tablet-display214 label.tablet-settings-check228{flex-direction:row;align-items:center;min-height:44px;gap:8px}

/* The table workspace exposes five actions; keep their existing grid cells equal. */
.legacy-workspace214>.legacy-tabs214{grid-template-columns:repeat(5,minmax(0,1fr))}

.tablet-settings-connection228>[data-server-detect217]{width:100%;min-height:44px;margin:8px 0 4px}.tablet-server-result217{display:block;min-height:18px;font-size:12px;overflow-wrap:anywhere}
