/* Theme 1 retains the existing stylesheet. Theme 2 follows the legacy tablet layout. */
html[data-tablet-theme=theme2] { --paper:#f1f1f1; --white:#fff; --red:#bc3032; --red-dark:#942426; --green:#bc3032; --line:#dedede; --ink:#242424; }
html[data-tablet-theme=theme2] body { background:#f1f1f1; }
html[data-tablet-theme=theme2] .masthead { background:#bc3032; color:#fff; padding:6px 12px; gap:8px; }
html[data-tablet-theme=theme2] .masthead .brand,html[data-tablet-theme=theme2] .masthead .store-status { color:white; }
html[data-tablet-theme=theme2] .masthead .brand small { display:none; }
html[data-tablet-theme=theme2] .masthead .quiet-button { background:transparent; color:white; border:1px solid #ffffff66; border-radius:6px; }
html[data-tablet-theme=theme2] .masthead #locale-select { border-color:#fff8; border-radius:6px; }
html[data-tablet-theme=theme2] #app > .hero { min-height:54px; padding:8px 14px; border-radius:0; margin-top:0; background:#fff; }
html[data-tablet-theme=theme2] #app > .hero > img,html[data-tablet-theme=theme2] .hero-shade { display:none; }
html[data-tablet-theme=theme2] .hero-copy { color:#242424; }
html[data-tablet-theme=theme2] .hero h1 { font-size:22px; text-shadow:none; }
html[data-tablet-theme=theme2] .hero-copy > p:last-child { margin:2px 0; color:#666; font-size:14px; }
html[data-tablet-theme=theme2] .menu-heading { display:none; }
html[data-tablet-theme=theme2] .menu-toolbar-actions { width:100%; gap:8px; }
html[data-tablet-theme=theme2] .search-box { flex:1; width:auto; background:white; }
html[data-tablet-theme=theme2] .category-button { border:0; border-radius:0; background:white; color:#333; }
html[data-tablet-theme=theme2] .category-button[aria-pressed=true] { background:#bc3032; color:white; box-shadow:inset 4px 0 #8e2022; }
html[data-tablet-theme=theme2] .menu-item { border-radius:8px; border:1px solid #e2e2e2; box-shadow:none; }
html[data-tablet-theme=theme2] .menu-copy h3 { color:#222; }
html[data-tablet-theme=theme2] .menu-price { color:#bc3032; }
html[data-tablet-theme=theme2] .add-button { border-radius:50%; background:#bc3032; color:white; }
html[data-tablet-theme=theme2] .tablet-draft-count { background:#bc3032; }
html[data-tablet-theme=theme2] .cart-button { background:#bc3032; color:white; border-radius:8px; }
html[data-tablet-theme=theme2] .primary-button { background:#bc3032; }
.tablet-display214 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; min-width:0; border:1px solid var(--line); padding:12px; margin:10px 0; }
.tablet-display214 legend { font-weight:700; padding:0 6px; }
.tablet-display214 label { display:flex!important; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; margin:0!important; font-size:15px; }
.tablet-display214 label select,.tablet-display214 label input[type=number] { display:block; box-sizing:border-box; width:100%; min-width:0; min-height:42px; font:inherit; padding:6px; border:1px solid var(--line); border-radius:6px; }
.tablet-display214 input[type=checkbox] { width:22px; height:22px; }
.tablet-display214 small { grid-column:1/-1; color:#666; font-size:12px; }
.tablet-settings-dialog:has(.tablet-display214) form { display:flex!important; flex-direction:column; gap:8px; }
.tablet-view214 { min-height:44px; white-space:nowrap; padding:6px 12px; font-size:14px; }
.category-button[data-category-depth214="1"] { padding-left:22px; font-size:.92em; }
html[data-tablet-columns]:not([data-tablet-columns=auto]):not([data-tablet-view=list]) #app > .menu-list { grid-template-columns:repeat(var(--tablet214-columns),minmax(0,1fr)); }
html[data-tablet-theme=theme2][data-tablet-columns=auto]:not([data-tablet-view=list]) #app > .menu-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
html[data-tablet-display214=custom] .menu-photo { width:100%; height:auto; aspect-ratio:var(--tablet214-image-ratio); object-fit:var(--tablet214-image-fit); background:#f5f5f5; }
html[data-tablet-view=list] #app > .menu-list { grid-template-columns:minmax(0,1fr); }
html[data-tablet-view=list] .menu-item { display:grid; grid-template-columns:clamp(84px,18vw,160px) minmax(0,1fr); }
html[data-tablet-view=list] .menu-photo { height:100%; max-height:150px; }
html[data-tablet-view=list] .menu-copy { padding:10px 14px; }
html[data-tablet-view=list] .menu-copy p { min-height:0; }
html[data-tablet-animation=true] .add-button { transition:transform 100ms ease; }
html[data-tablet-animation=true] .add-button:active { transform:scale(.86); }
@media(prefers-reduced-motion:reduce) { html[data-tablet-animation] .add-button { transition:none; transform:none; } }
@media(orientation:landscape) {
 html[data-tablet-theme=theme2] .page-shell { padding:0 10px 84px; }
 html[data-tablet-theme=theme2] #app:not([hidden]) { grid-template-columns:clamp(96px,16vw,210px) minmax(0,1fr); column-gap:12px; }
 html[data-tablet-theme=theme2] #app > .category-nav { background:white; gap:1px; margin-top:10px; }
 html[data-tablet-theme=theme2] #app > .menu-toolbar { margin:10px 0; }
 html[data-tablet-theme=theme2] .menu-copy { padding:10px 12px; }
 html[data-tablet-theme=theme2] .menu-copy h3 { font-size:20px; }
 html[data-tablet-theme=theme2] .menu-price { font-size:19px; }
}
@media(orientation:landscape) and (max-height:540px) {
 html[data-tablet-theme=theme2] .page-shell { padding:0 6px 4px; }
 html[data-tablet-theme=theme2] #app > .hero { display:none; }
 html[data-tablet-theme=theme2] #app > .menu-toolbar { margin:4px 0; }
 html[data-tablet-theme=theme2] #app > .menu-list { gap:8px; grid-auto-rows:calc((100% - 8px)/2); }
 html[data-tablet-theme=theme2] .menu-item { display:flex; flex-direction:column; }
 html[data-tablet-theme=theme2] .menu-photo { flex:1 1 0; height:0; min-height:0; aspect-ratio:var(--tablet214-image-ratio); }
 html[data-tablet-theme=theme2] .menu-copy { flex:0 0 auto; align-self:stretch; display:flex; flex-direction:column; padding:4px 6px; background:#fff; color:#242424; }
 html[data-tablet-theme=theme2] .menu-item-bottom { display:flex; align-items:center; justify-content:space-between; }
 html[data-tablet-theme=theme2] .menu-copy h3 { font-size:14px; margin:0; line-height:1.3; }
 html[data-tablet-theme=theme2] .menu-copy p { font-size:11px; min-height:0; margin:2px 0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
 html[data-tablet-theme=theme2] .menu-price { font-size:14px; }
 html[data-tablet-theme=theme2] .add-button { width:40px; height:40px; font-size:24px; }
 html[data-tablet-theme=theme2] .menu-item-bottom { gap:3px; }
 html[data-tablet-theme=theme2] .category-button { min-height:44px; padding:7px; font-size:14px; }
 html[data-tablet-view=list] .menu-photo { height:100%; }
}
@media(orientation:portrait) and (max-width:600px) {
 html[data-tablet-theme=theme2][data-tablet-columns=auto]:not([data-tablet-view=list]) #app > .menu-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 html[data-tablet-theme=theme2] .masthead { flex-wrap:wrap; height:auto; }
 html[data-tablet-theme=theme2] .category-button { min-width:76px; text-align:center; }
 .tablet-display214 { grid-template-columns:minmax(0,1fr); }
}

/* Clear dish photography: a separate caption keeps the food unobscured. */
html[data-tablet-theme] #menu-list .menu-photo { object-position:center; image-rendering:auto; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-copy h3[role=button] { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-height:44px; max-height:44px; margin:0; overflow:hidden; overflow-wrap:anywhere; font-size:clamp(16px,1.6vw,20px); line-height:22px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-copy p { display:none; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-item-bottom { margin-top:0; padding-top:4px; }
html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-price { font-size:clamp(16px,2vw,22px); line-height:1.25; }
@media (orientation:landscape) and (max-height:540px) and (min-width:480px) {
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-item { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-photo { grid-area:1/1; align-self:center; justify-self:center; object-fit:var(--tablet214-image-fit,cover); }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-copy { grid-area:2/1; align-self:stretch; background:#fff; color:var(--ink); padding:3px 6px 4px; gap:2px 4px; }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-copy h3 { color:var(--ink); white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; max-height:2.4em; font-size:14px; line-height:1.2; }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-copy .menu-price { color:var(--red-dark); font-size:13px; line-height:16px; }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-price small { color:var(--muted); font-size:10px; }
 html[data-tablet-theme=theme1]:not([data-tablet-view=list]) #menu-list .menu-copy .add-button { grid-row:1/3; align-self:center; }
 html[data-tablet-theme]:not([data-tablet-view=list]) #menu-list .menu-price .tablet-secondary-price { display:inline; margin-left:4px; font-size:11px; white-space:nowrap; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-copy { padding:2px 6px 4px; grid-template-rows:44px auto; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-copy h3[role=button] { font-size:14px; line-height:18px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-copy .menu-price { font-size:13px; line-height:16px; }
 html[data-tablet-theme=theme2][data-tablet-legacy214=menu]:not([data-tablet-view=list]) #menu-list .menu-price small { font-size:10px; }
}


/* A smaller visible add control keeps its full touch target. */
html[data-tablet-theme] #menu-list .menu-item .add-button { position:relative; isolation:isolate; display:grid; place-items:center; box-sizing:border-box; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; flex:0 0 44px; background:transparent; color:white; font-size:20px; line-height:1; transform:none; }
html[data-tablet-theme] #menu-list .menu-item .add-button::before { content:""; position:absolute; z-index:-1; inset:0; margin:auto; width:30px; height:30px; border-radius:8px; background:var(--red); }
html[data-tablet-theme=theme2] #menu-list .menu-item .add-button::before { border-radius:50%; background:var(--red); }
html[data-tablet-theme] #menu-list .menu-item .add-button:hover::before { background:var(--red-dark); }
html[data-tablet-theme] #menu-list .menu-item .add-button:disabled::before { background:#aaa; }
html[data-tablet-animation=true] #menu-list .menu-item .add-button::before { transition:transform 100ms ease; }
html[data-tablet-animation=true] #menu-list .menu-item .add-button:active::before { transform:scale(.86); }
@media(prefers-reduced-motion:reduce) { html[data-tablet-animation] #menu-list .menu-item .add-button::before, html[data-tablet-animation] #menu-list .menu-item .add-button:active::before { transition:none; transform:none; } }
