/* Responsive presentation only; the original forms and handlers remain shared. */
.lucide { width:20px; height:20px; stroke-width:1.65; flex-shrink:0; vertical-align:middle; }
.primary-navigation { display:grid; gap:5px; }
.primary-navigation .nav-item { display:flex; align-items:center; gap:12px; text-decoration:none; }
.secondary-navigation { display:grid; gap:2px; }
.secondary-navigation a, .sidebar-business-link { display:flex; align-items:center; gap:10px; min-height:42px; padding:8px 10px; color:var(--muted); text-decoration:none; font-size:13px; border-radius:6px; }
.secondary-navigation a:hover, .secondary-navigation a.active { background:var(--workspace-fill); color:var(--ink); }
.sidebar-tools { border-top:1px solid var(--line); margin-top:30px; padding-top:20px; }
.sidebar-tools .nav-group-label { display:block; margin-bottom:8px; }
.sidebar-business-link { margin-top:auto; }
.mobile-navigation { display:none; }
html[data-admin-layout=classic] .admin-sidebar :is(.secondary-navigation a,.sidebar-business-link) { color:#d8d8dd; }
html[data-admin-layout=modern] :is(a,button,summary,input,select,textarea):focus-visible { outline:2px solid var(--workspace-blue); outline-offset:3px; }
.workspace-tools { position:relative; }
.workspace-tools summary { list-style:none; cursor:pointer; }
.workspace-tools summary::-webkit-details-marker { display:none; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; padding:0; color:var(--ink); background:transparent; border:1px solid var(--line); border-radius:6px; text-decoration:none; }
.workspace-tools-popover { position:absolute; top:calc(100% + 10px); right:0; padding:12px; width:280px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 100px); overflow:auto; border:1px solid var(--line); background:var(--white); border-radius:8px; box-shadow:0 12px 40px #0002; }
.workspace-preferences { display:grid; gap:12px; border-top:1px solid var(--line); padding:14px 8px 4px; margin-top:10px; }
.workspace-preferences .workspace-preference { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.workspace-preferences select { max-width:150px; }
.account-menu .account-dropdown { width:320px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 110px); overflow:auto; padding:8px; border-radius:8px; }
.account-menu .account-option { display:flex; align-items:center; justify-content:flex-start; gap:12px; width:100%; min-height:46px; padding:10px 12px; background:transparent; border:0; color:var(--ink); text-align:left; font-size:14px; text-decoration:none; font-weight:400; }
.account-menu .account-option > :last-child:not(:first-child) { margin-left:auto; }
.account-option:hover { background:var(--workspace-fill); }
.account-menu .account-logout { border-top:1px solid var(--line); margin-top:6px; padding-top:6px; }
.account-menu #account-businesses { margin:0 6px 6px; padding:6px; border-left:2px solid var(--gold); background:var(--workspace-fill); }
#account-businesses[hidden] { display:none; }
#account-businesses a { display:block; color:var(--muted); padding:10px; font-size:13px; }
.account-business-form { margin:0; }
.account-menu .account-business-choice { display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; background:transparent; width:100%; text-align:left; white-space:normal; color:var(--ink); padding:12px 8px; font-weight:400; min-height:44px; font-size:14px; }
.account-menu .account-business-choice[aria-current] { color:var(--workspace-blue); font-weight:600; }
.account-business-error { padding:8px; font-size:13px; color:var(--workspace-danger); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-heading h2, .section-heading h3 { margin:0; }
.section-heading a, .overview-serving a { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--workspace-blue); text-decoration:none; min-height:44px; }
.responsive-empty { padding:40px 16px; text-align:center; color:var(--muted); }
.responsive-empty[hidden], [data-catalog-item][hidden], [data-builder-food][hidden] { display:none !important; }
.order-table-head, .order-summary-row { display:grid; grid-template-columns:minmax(0,1fr) 130px 100px 20px; gap:16px; align-items:center; padding:17px 20px; }
.order-table { border-top:1px solid var(--line); background:var(--white); }
.order-table-head { font-size:12px; color:var(--muted); padding-top:12px; padding-bottom:12px; }
.order-table-head > :nth-child(3), .order-summary-row > strong { text-align:right; }
.order-summary-row { color:var(--ink); text-decoration:none; border-top:1px solid var(--line); min-height:76px; }
.order-summary-row:hover { background:var(--workspace-fill); }
.order-summary-row > span:first-child { min-width:0; }
.order-summary-row strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.order-summary-row small { display:block; color:var(--muted); font-size:12px; margin-top:6px; overflow-wrap:anywhere; }
.order-summary-row > .lucide { color:var(--muted); width:16px; }
.order-status { display:inline-block; padding:4px 9px; font-size:12px; font-weight:500; border-radius:5px; background:var(--workspace-fill); color:var(--muted); overflow-wrap:anywhere; }
.status-new, .status-received { color:light-dark(#7a5a16,#f0cc7a); background:light-dark(#f6ecd6,#413822); }
.status-completed { color:light-dark(#356546,#a0dfb5); background:light-dark(#e7f0e8,#243b2d); }
.status-ready { color:light-dark(#326480,#9cd4f2); background:light-dark(#e9f2f5,#243943); }
.order-filters { display:flex; width:max-content; max-width:100%; border-radius:6px; background:var(--workspace-fill); padding:4px; margin-bottom:28px; gap:4px; }
.order-filters a { min-width:140px; text-align:center; padding:11px 16px; text-decoration:none; color:var(--muted); font-size:14px; border-radius:4px; }
.order-filters [aria-current] { background:var(--white); color:var(--ink); box-shadow:0 1px 3px #0001; }
.order-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 0; color:var(--muted); font-size:13px; }
.order-pagination a { display:inline-flex; gap:8px; color:var(--workspace-blue); min-height:44px; align-items:center; }
.screen-back { display:inline-flex; align-items:center; gap:7px; text-decoration:none; color:var(--workspace-blue); font-size:14px; min-height:44px; }
.order-detail-screen { max-width:840px; margin:0 auto; }
.order-detail-screen > .section-heading { margin-top:12px; }
.order-facts { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:24px 0; border-block:1px solid var(--line); }
.order-facts dt { font-size:12px; color:var(--muted); margin-bottom:6px; }
.order-facts dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.order-detail-lines h3 { margin:24px 0 12px; }
.order-line { display:flex; justify-content:space-between; gap:20px; padding:20px 0; border-bottom:1px solid var(--line); }
.order-line small { display:block; color:var(--muted); font-size:13px; margin-top:6px; }
.order-line > span { white-space:nowrap; }
.order-note p { white-space:normal; overflow-wrap:anywhere; }
.order-totals { display:grid; gap:16px; margin-top:30px; }
.order-totals > div { display:flex; justify-content:space-between; gap:20px; }
.order-totals dd { margin:0; }
.order-totals > div:last-child { border-top:1px solid var(--line); padding-top:18px; font-size:20px; font-weight:600; }
.builder-workspace { display:grid; grid-template-columns:220px minmax(0,1fr); gap:30px; align-items:start; }
.builder-content { min-width:0; }
.builder-editor-scroll { min-width:0; }
.assignment-options { position:relative; }
.assignment-options > summary { cursor:pointer; list-style:none; min-height:36px; min-width:36px; display:grid; place-items:center; font-size:17px; }
.assignment-options > summary::-webkit-details-marker { display:none; }
.assignment-options[open] { z-index:8; }
.assignment-options-panel { position:absolute; top:100%; right:0; padding:12px; background:var(--white); border:1px solid var(--line); border-radius:6px; box-shadow:0 6px 18px #0002; min-width:185px; }
.assignment-options-panel .builder-actions { display:flex; gap:8px; margin-top:8px; }
.reorder-actions { display:grid; border-block:1px solid var(--line); margin:8px 0; padding:5px 0; }
.reorder-actions > button { min-height:44px; padding:8px; background:transparent; color:var(--ink); text-align:left; border:0; font-size:13px; }
.opens-up > .assignment-options-panel, .opens-up > .modern-menu-dropdown { top:auto; bottom:100%; }
.builder-reorder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.builder-reorder > button[data-move-assignment] { min-height:28px; width:24px; padding:0; background:transparent; border:0; color:var(--muted); font-size:17px; }
.menu-rail { position:sticky; top:115px; min-width:0; display:grid; gap:8px; }
.menu-rail .section-heading { padding:0 8px; margin:0 0 8px; }
.menu-rail-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 14px; border:1px solid var(--line); background:var(--white); border-radius:6px; text-decoration:none; color:var(--ink); }
.menu-rail-link strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.menu-rail-link small { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.menu-rail-link.selected { background:var(--workspace-selected); border-color:var(--gold); box-shadow:inset 3px 0 var(--gold); }
.menu-rail-link > .lucide { width:16px; }
.builder-menu-details { display:flex; justify-content:space-between; align-items:center; gap:20px; border-block:1px solid var(--line); padding:24px 0; margin:10px 0 24px; }
.field-label { display:block; font-size:12px; color:var(--muted); }
.builder-menu-details h3 { margin:8px 0 0; }
.builder-menu-details > button { width:auto; flex-shrink:0; }
.builder-menu-details p { color:var(--muted); margin-bottom:0; font-size:14px; }
.builder-section-actions { display:flex; gap:8px; flex-wrap:wrap; }
.catalog-add-action { display:inline-flex; align-items:center; gap:8px; color:var(--workspace-blue) !important; border-color:var(--gold) !important; }
.builder-schedule-summary { border-top:1px solid var(--line); margin-top:32px; padding-top:24px; }
.builder-schedule-summary > button { display:flex; align-items:center; gap:12px; width:100%; color:var(--ink); text-align:left; background:var(--white); border:1px solid var(--line); padding:16px; font-weight:400; }
.builder-schedule-summary > button > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.builder-schedule-summary small { display:block; color:var(--muted); margin-top:6px; line-height:1.6; }
.builder-save-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; bottom:0; padding:18px 0 max(18px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--workspace-bg); margin-top:28px; z-index:5; }
.builder-save-bar > span { font-size:13px; color:var(--muted); }
.builder-save-bar .primary { min-width:170px; }
.catalog-toolbar { display:flex; gap:16px; align-items:center; margin:0 0 24px; }
.catalog-toolbar label { font-size:12px; }
.catalog-toolbar > a { color:var(--workspace-blue); font-size:13px; white-space:nowrap; margin-left:auto; }
.catalog-search { position:relative; flex:1; }
.catalog-search .lucide { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); width:18px; }
.catalog-search input { padding-left:38px; width:100%; }
.catalog-price { white-space:nowrap; font-size:14px; }
.admin-item { grid-template-columns:64px minmax(0,1fr) auto auto; }
.picker-category-filter { margin-bottom:14px; }
html[data-admin-layout=modern] {
  --workspace-bg:light-dark(#f6f6f4,#171719); --workspace-side:light-dark(#fafaf8,#202022);
  --workspace-blue:light-dark(#806423,#dfbd77); --workspace-selected:light-dark(#eee7d8,#393326);
  --white:light-dark(#fff,#222224); --line:light-dark(#e6e5e1,#39393d); --soft:light-dark(#f3f3f0,#2b2b2e);
}
html[data-admin-layout=modern] body { background:var(--workspace-bg); }
html[data-admin-layout=modern] .control-layout { grid-template-columns:224px minmax(0,1fr); min-height:100dvh; gap:0; }
html[data-admin-layout=modern] .admin-sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; gap:0; overflow:auto; padding:28px 16px 20px; }
html[data-admin-layout=modern] .sidebar-brand { padding:0 8px 32px; }
html[data-admin-layout=modern] .sidebar-brand strong { font-size:18px; font-weight:600; }
html[data-admin-layout=modern] .sidebar-brand .herekey-wordmark { color:var(--workspace-blue); font-size:18px; font-weight:600; }
html[data-admin-layout=modern] .sidebar-brand > span { font-size:11px; color:var(--muted); margin-top:5px; }
html[data-admin-layout=modern] .primary-navigation .nav-item { min-height:48px; font-size:14px; }
html[data-admin-layout=modern] .primary-navigation .nav-item.active { color:var(--ink); background:var(--workspace-selected); font-weight:600; }
html[data-admin-layout=modern] .workspace-header { display:flex; flex-direction:row; align-items:center; justify-content:space-between; margin:0; padding:20px 34px; min-height:92px; border-bottom:1px solid var(--line); background:var(--white); position:sticky; top:0; z-index:30; }
html[data-admin-layout=modern] .workspace-header h2 { font-size:25px; }
html[data-admin-layout=modern] .workspace-header p { display:none; }
html[data-admin-layout=modern] .restaurant-switcher { padding:0 0 0 4px; min-height:44px; border-radius:0; }
html[data-admin-layout=modern] .account-restaurant { font-size:13px; max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-admin-layout=modern] .account-copy small { display:none; }
html[data-admin-layout=modern] .account-avatar, html[data-admin-layout=modern] .restaurant-switcher > strong { width:36px; height:36px; border-radius:50%; object-fit:cover; }
html[data-admin-layout=modern] .workspace-header-actions { display:flex; flex-direction:row; align-items:center; width:auto; flex-wrap:nowrap; gap:16px; }
html[data-admin-layout=modern] .workspace-header .account-menu { width:auto; flex:0 0 auto; }
html[data-admin-layout=modern] .workspace-header .restaurant-switcher { display:flex; width:auto; gap:10px; }
html[data-admin-layout=modern] .workspace-tools > summary { border:0; color:var(--muted); }
html[data-admin-layout=modern] .admin-workspace > .admin-panel-view { padding:32px 34px; max-width:1420px; margin:0 auto; }
html[data-admin-layout=modern] .admin-workspace > .panel { padding:32px 34px; }
html[data-admin-layout=modern] .admin-workspace > .item-editor-overlay { max-width:none; margin:0; padding:16px; }
html[data-admin-layout=modern] .page-action-header { background:none; border:0; border-radius:0; padding:0 0 24px; box-shadow:none; margin:0; align-items:center; }
html[data-admin-layout=modern] .page-action-header h2 { font-size:22px; }
html[data-admin-layout=modern] .page-action-header p { display:none; }
html[data-admin-layout=modern] :is(.primary,.action-button.primary), html[data-admin-layout=modern] .item-editor-footer .primary { background:light-dark(#222224,#f2f2ef); color:light-dark(#fff,#202022); border:1px solid transparent; min-height:42px; padding:10px 20px; }
html[data-admin-layout=modern] :is(.secondary-action,.small-button) { min-height:40px; background:var(--white); color:var(--ink); border:1px solid var(--line); }
html[data-admin-layout=modern] .small-button { color:var(--workspace-blue); }
html[data-admin-layout=modern] a.primary { display:inline-flex; align-items:center; gap:8px; }
html[data-admin-layout=modern] button.primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
html[data-admin-layout=modern] :is([data-panel=settings],[data-panel=profile]) > .page-action-header .primary,
html[data-admin-layout=modern] .qr-actions .primary { background:var(--white); color:var(--ink); border-color:var(--line); }
html[data-admin-layout=modern] button:disabled { cursor:not-allowed; opacity:.5; }
html[data-admin-layout=modern] .modern-menu-toolbar { padding:0 0 24px; }
html[data-admin-layout=modern] .modern-serving { padding:22px; margin-bottom:16px; border:1px solid var(--line); background:var(--white); border-radius:6px; }
html[data-admin-layout=modern] .modern-menu-row { background:var(--white); padding:22px; }
html[data-admin-layout=modern] .modern-menu-head { padding:14px 22px; }
html[data-admin-layout=modern] .responsive-overview { max-width:980px; margin:0 auto; }
html[data-admin-layout=modern] [data-panel=dashboard] > :not(.responsive-overview) { display:none; }
html[data-admin-layout=modern] .overview-total { padding:28px; display:flex; align-items:center; justify-content:space-between; background:light-dark(#efede5,#302e28); border-radius:8px; margin-bottom:34px; }
html[data-admin-layout=modern] .overview-total > div { display:grid; gap:10px; }
html[data-admin-layout=modern] .overview-total span { font-size:14px; font-weight:500; }
html[data-admin-layout=modern] .overview-total strong { font-size:38px; font-weight:600; }
html[data-admin-layout=modern] .overview-total small { color:var(--muted); font-size:12px; }
html[data-admin-layout=modern] .overview-total > .lucide { width:46px; height:46px; color:var(--workspace-blue); }
html[data-admin-layout=modern] .overview-orders h2 { font-size:19px; }
html[data-admin-layout=modern] .overview-serving { display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:13px; padding:20px 0; color:var(--muted); }
html[data-admin-layout=modern] .builder-flow-steps { display:none; }
html[data-admin-layout=modern] .builder-content { display:flex; flex-direction:column; height:calc(100dvh - 156px - var(--admin-notice-height,0px)); overflow:hidden; }
html[data-admin-layout=modern] .builder-editor-scroll { flex:1; min-height:0; overflow-y:auto; padding-right:4px; overscroll-behavior:contain; }
html[data-admin-layout=modern] .builder-save-bar { flex-shrink:0; position:static; margin-top:0; }
html[data-admin-layout=modern] .menu-rail { max-height:calc(100dvh - 155px); overflow-y:auto; }
html[data-admin-layout=modern] .builder-current .panel-title { align-items:center; }
html[data-admin-layout=modern] .builder-current .panel-title small { display:none; }
html[data-admin-layout=modern] .builder-current .panel-title h2 { font-size:18px; }
html[data-admin-layout=modern] .builder-current { background:transparent; padding:0; }
html[data-admin-layout=modern] .builder-menu-tabs { background:transparent; border-radius:0; border-bottom:1px solid var(--line); padding:0; margin:20px 0; gap:20px; overflow:auto; }
html[data-admin-layout=modern] .builder-menu-tabs button { background:transparent; border:0; color:var(--muted); padding:12px 0; border-radius:0; box-shadow:none; white-space:nowrap; }
html[data-admin-layout=modern] .builder-menu-tabs button.active { color:var(--workspace-blue); border-bottom:2px solid var(--workspace-blue); }
html[data-admin-layout=modern] .builder-category-header h3 { font-size:15px; }
html[data-admin-layout=modern] .builder-category-header small { font-size:12px; }
html[data-admin-layout=modern] .builder-add-food-button { background:transparent; color:var(--workspace-blue); font-size:13px; padding:8px 0; border:0; }
html[data-admin-layout=modern] .builder-assignment-card { display:grid; grid-template-columns:24px 56px minmax(0,1fr); gap:12px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:var(--white); padding:18px 14px; }
html[data-admin-layout=modern] .builder-assignment-card .builder-food-thumb { width:56px; min-width:0; max-width:100%; height:56px; min-height:56px; border-radius:6px; }
html[data-admin-layout=modern] .builder-assignment-form { display:grid; grid-template-columns:minmax(0,1fr) 86px auto 36px; gap:12px; align-items:center; }
html[data-admin-layout=modern] .builder-assignment-title { grid-column:1; }
html[data-admin-layout=modern] .builder-assignment-title strong { font-size:14px; }
html[data-admin-layout=modern] .builder-assignment-title small { font-size:11px; }
html[data-admin-layout=modern] .builder-assignment-form > label:not(.mini-check) { grid-column:2; grid-row:1; min-width:0; font-size:11px; }
html[data-admin-layout=modern] .builder-assignment-form > .mini-check { grid-column:3; grid-row:1; font-size:12px; justify-content:flex-start; }
html[data-admin-layout=modern] .assignment-options { grid-column:4; grid-row:1; }
html[data-admin-layout=modern] .assignment-options-panel .mini-check { font-size:13px; }
html[data-admin-layout=modern] .builder-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:10px; }
html[data-admin-layout=modern] .builder-actions button { background:transparent; border:0; min-height:34px; color:var(--workspace-blue); padding:6px 10px; }
html[data-admin-layout=modern] .builder-actions button[value=remove_menu_assignment] { color:var(--muted); }
html[data-admin-layout=modern] .builder-drag-handle { width:24px; min-width:24px; min-height:24px; padding:0; border:0; background:none; color:var(--muted); }
html[data-admin-layout=modern] .builder-empty-category { border:1px dashed var(--line); background:transparent; border-radius:6px; padding:28px; }
html[data-admin-layout=modern] .admin-item { background:var(--white); border:0; border-bottom:1px solid var(--line); border-radius:0; padding:18px; gap:16px; }
html[data-admin-layout=modern] .admin-item .thumb { width:58px; height:58px; background:var(--soft); border-radius:6px; }
html[data-admin-layout=modern] .admin-item .thumb img { width:100%; height:100%; object-fit:cover; }
html[data-admin-layout=modern] .admin-item strong { font-size:14px; }
html[data-admin-layout=modern] .admin-item p { color:var(--muted); font-size:12px; }
html[data-admin-layout=modern] .row-actions { gap:10px; }
html[data-admin-layout=modern] .row-actions a, html[data-admin-layout=modern] .row-actions button { color:var(--workspace-blue); background:none; border:0; font-size:13px; min-height:44px; }
html[data-admin-layout=modern] .settings-card { border-radius:0; border:0; border-top:1px solid var(--line); background:transparent; padding:24px 0; }
html[data-admin-layout=modern] .kitchen-board { grid-template-columns:repeat(2,minmax(0,1fr)); }
.kitchen-board .order-table-head { display:none; }
.kitchen-board .order-summary-row { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.kitchen-board .order-summary-row > .lucide { display:none; }
@media(max-width:1180px) {
  .builder-workspace { grid-template-columns:180px minmax(0,1fr); gap:22px; }
  html[data-admin-layout=modern] .control-layout { grid-template-columns:190px minmax(0,1fr); }
  html[data-admin-layout=modern] .workspace-header { padding-inline:24px; }
  html[data-admin-layout=modern] .admin-workspace > .admin-panel-view { padding:26px 24px; }
  .catalog-toolbar { flex-wrap:wrap; }
  .catalog-search { flex-basis:100%; }
}
@media(max-width:800px) {
  html[data-admin-layout=modern] .control-layout { display:block; }
  html[data-admin-layout=modern] .admin-sidebar { display:none; }
  html[data-admin-layout=modern] .workspace-header { padding:12px 18px; min-height:72px; }
  html[data-admin-layout=modern] .workspace-header h2 { font-size:23px; }
  html[data-admin-layout=modern] .workspace-header-actions { gap:6px; }
  html[data-admin-layout=modern] .workspace-header .account-restaurant { max-width:130px; }
  html[data-admin-layout=modern] .admin-workspace > .admin-panel-view, html[data-admin-layout=modern] .admin-workspace > .panel { padding:24px 18px 100px; }
  html[data-admin-layout=modern] .admin-workspace > .item-editor-overlay { padding:0; }
  html[data-admin-layout=modern] .page-action-header { flex-wrap:wrap; }
  html[data-admin-layout=modern] .page-action-header > * { max-width:100%; min-width:0; }
  html[data-admin-layout=modern] .action-button { white-space:normal; }
  html[data-admin-layout=modern] :is(.secondary-action,.account-option,.assignment-options-panel button) { min-height:44px; }
  .account-menu .account-dropdown, .workspace-tools-popover { position:fixed; right:12px; top:74px; width:320px; max-height:calc(100dvh - 160px); }
  html[data-admin-layout=modern] .mobile-navigation { position:fixed; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; z-index:35; border-top:1px solid var(--line); background:var(--white); padding:6px 8px max(8px,env(safe-area-inset-bottom)); }
  html[data-admin-layout=modern] .mobile-navigation .nav-item { display:flex; flex-direction:column; justify-content:center; min-height:54px; padding:5px; gap:5px; font-size:10px; background:none; border-radius:0; }
  html[data-admin-layout=modern] .mobile-navigation .nav-item.active { color:var(--workspace-blue); background:none; }
  .builder-workspace { display:block; }
  html[data-admin-layout=modern] .builder-content { height:calc(100dvh - 96px - var(--admin-notice-height,0px)); }
  html[data-admin-layout=modern] .builder-editor-scroll { padding-right:0; }
  .menu-rail { display:none; }
  html[data-admin-layout=modern] .builder-editor-scroll > .page-action-header { flex-direction:column; align-items:stretch; gap:14px; }
  html[data-admin-layout=modern] .builder-editor-scroll > .page-action-header h2 { font-size:26px; }
  html[data-admin-layout=modern] .builder-editor-scroll > .page-action-header .header-actions { display:flex; flex-direction:row; justify-content:space-between; width:100%; }
  .builder-editor-scroll > .page-action-header .header-actions > * { width:auto; }
  .builder-editor-scroll > .page-action-header .eyebrow { display:none; }
  .builder-editor-scroll > .page-action-header > div:first-child { order:2; }
  html[data-admin-layout=modern] .builder-content .builder-back-button { border:0; background:transparent; padding:0; color:var(--workspace-blue); }
  .builder-section-actions { gap:8px; }
  html[data-admin-layout=modern] .builder-current .panel-title { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .builder-section-actions > button { flex:1; }
  .builder-menu-details { padding:18px 0; }
  html[data-admin-layout=modern][data-admin-panel=builder] .mobile-navigation, html[data-admin-layout=modern][data-admin-detail=order] .mobile-navigation { display:none; }
  html[data-admin-layout=modern][data-admin-panel=builder] [data-panel=builder], html[data-admin-layout=modern][data-admin-detail=order] [data-panel=orders] { padding-bottom:0; }
  .builder-save-bar { padding-bottom:max(16px,env(safe-area-inset-bottom)); margin-bottom:0; }
  .builder-save-bar > span { display:none; }
  .builder-save-bar .primary { width:100%; min-height:48px !important; }
  .order-table-head, .order-summary-row { grid-template-columns:minmax(0,1fr) 85px 70px 14px; padding:16px 12px; gap:10px; }
  .order-summary-row strong { font-size:13px; }
  .order-summary-row small { font-size:11px; }
  .order-status { font-size:11px; padding:4px 6px; }
  .order-filters { width:100%; }
  .order-filters a { flex:1; min-width:0; }
  .order-facts { gap:20px 16px; }
  html[data-admin-layout=modern] .overview-total { padding:24px; margin-bottom:28px; }
  html[data-admin-layout=modern] .overview-total strong { font-size:34px; }
  html[data-admin-layout=modern] .overview-serving { align-items:flex-start; flex-direction:column; gap:4px; }
  html[data-admin-layout=modern] .admin-item { grid-template-columns:52px minmax(0,1fr) auto; padding:16px 10px; gap:12px; }
  html[data-admin-layout=modern] .admin-item .thumb { width:52px; height:52px; }
  html[data-admin-layout=modern] .admin-item .row-actions { grid-column:2/-1; justify-content:flex-end; }
  .catalog-toolbar { gap:12px; }
  .catalog-toolbar > label:not(.catalog-search) { flex:1; min-width:0; }
  .catalog-toolbar > a { white-space:normal; }
  html[data-admin-layout=modern] input:not([type=checkbox]):not([type=radio]), html[data-admin-layout=modern] select, html[data-admin-layout=modern] textarea { font-size:16px; }
  html[data-admin-layout=modern] .admin-slide-sheet { max-width:100%; }
  html[data-admin-layout=modern] .builder-add-sheet, html[data-admin-layout=modern] .builder-create-sheet, html[data-admin-layout=modern] .item-editor-sheet { width:100%; height:96dvh; max-height:96dvh; border-radius:8px 8px 0 0; }
  html[data-admin-layout=modern] .table-list article { display:flex; flex-wrap:wrap; gap:12px; }
  html[data-admin-layout=modern] .kitchen-board { grid-template-columns:1fr; }
}
@media(max-width:420px) {
  html[data-admin-layout=modern] .account-copy { display:none; }
  .order-table-head { display:none; }
  .order-summary-row { grid-template-columns:minmax(0,1fr) auto 14px; gap:8px; }
  .order-summary-row > span:first-child { grid-column:1; grid-row:1; }
  .order-summary-row > span:nth-child(2) { grid-column:1; grid-row:2; }
  .order-summary-row > strong { grid-column:2; grid-row:1; }
  .order-summary-row > .lucide { grid-column:3; grid-row:1/3; }
  html[data-admin-layout=modern] .builder-assignment-card { grid-template-columns:16px 42px minmax(0,1fr); gap:8px; padding:14px 8px; }
  html[data-admin-layout=modern] .builder-assignment-card .builder-food-thumb { width:42px; height:48px; min-height:48px; }
  html[data-admin-layout=modern] .builder-assignment-form { grid-template-columns:minmax(0,1fr) 76px; gap:10px; }
  html[data-admin-layout=modern] .builder-assignment-form > .mini-check { grid-column:1; grid-row:2; }
  html[data-admin-layout=modern] .assignment-options { grid-column:2; grid-row:2; justify-self:end; }
}
@media(prefers-reduced-motion:reduce) { .admin-slide-sheet { transition:none; } }
@media print { .mobile-navigation, .workspace-header, .admin-sidebar { display:none !important; } }

/* Saved item cuisines and restaurant defaults share accessible checkbox controls. */
.cuisine-picker{min-width:0;margin:0;padding:16px;border:1px solid var(--line,#dedede);border-radius:10px}
.cuisine-picker legend{padding:0 6px;font-weight:650;font-size:14px}
.cuisine-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px}
.item-cuisine-picker .cuisine-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.cuisine-choices label.cuisine-choice,.settings-form label.cuisine-choice{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:44px;margin:0;font-size:13px;font-weight:500;line-height:1.4}
.cuisine-choice input[type=checkbox]{appearance:auto;width:18px;height:18px;min-width:18px;min-height:18px;padding:0;margin:0;accent-color:#9a782f;flex-shrink:0}
.cuisine-choice:has(input:focus-visible){outline:2px solid #a58845;outline-offset:3px;border-radius:3px}
.cuisine-help{display:block;font-size:12px;line-height:1.6;color:var(--muted,#686868);margin:0 0 12px}
.item-cuisine-picker>small{margin:10px 0 0}
.settings-form .api-visibility{margin-top:14px!important}
@media(max-width:600px){.cuisine-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.cuisine-picker{padding:12px}}
@media(max-width:350px){.cuisine-choices,.item-cuisine-picker .cuisine-choices{grid-template-columns:1fr}}
