@font-face {
  font-family: Manrope;
  src: url('/static/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #292724;
  --muted: #716d65;
  --green: #292724;
  --green-dark: #424039;
  --lime: #faf9f6;
  --paper: #faf9f6;
  --surface: #fff;
  --line: #e4e1da;
  --soft: #f0eee8;
  --danger: #a33e36;
  --danger-bg: #fcf0ee;
  font-family: Manrope, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, input, textarea, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; min-height: 48px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 56px; font-weight: 400; line-height: 1.1; letter-spacing: -2px; margin-bottom: 0; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.6px; margin-bottom: 0; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 0; }
p { line-height: 1.65; }
label { display: block; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-height: 48px; padding: 13px 14px; margin-top: 8px; }
input::placeholder, textarea::placeholder { color: #827d74; }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--ink); width: 18px; min-height: 18px; margin: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--ink); color: white; padding: 15px; z-index: 10; }
.skip-link:focus { top: 10px; }
.muted { font-size: 12px; color: var(--muted); line-height: 1.7; }
.eyebrow { display: block; font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* The menu is a list, with colour reserved for interaction and omissions. */
.topbar { height: 76px; padding: 0 max(32px, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; }
.brand img, .brand-word > span { display: none; }
.brand-word { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 400; letter-spacing: -1px; }
.brand-word::after { content: '.'; }
.topnav { display: flex; align-items: center; gap: 24px; height: 100%; }
.topnav a, .topnav button { display: flex; align-items: center; border: 0; background: transparent; padding: 0; min-height: 48px; font-size: 12px; font-weight: 500; color: var(--muted); }
.topnav .active { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.topnav a:hover, .topnav button:hover { color: var(--ink); }
.workspace { max-width: 1200px; margin: 0 auto; padding: 52px 32px 90px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.catalog-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.catalog-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.menu-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.language-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 40px; }
.language-switch { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.language-switch button { min-height: 48px; padding: 10px 11px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 12px; font-weight: 500; color: var(--muted); }
.language-switch button[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }
.search-field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-height: 52px; padding: 0 15px; color: var(--muted); margin-bottom: 22px; }
.search-field input { border: 0; background: transparent; padding: 0; min-height: 50px; margin: 0; font-size: 14px; font-weight: 400; }
.search-field:focus-within { border-color: var(--ink); }
.search-field input:focus-visible { outline: none; }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 12px 15px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; position: relative; }
.category-name { font-size: 12px; font-weight: 500; line-height: 1.45; }
.category-button.active { background: var(--soft); }
.category-button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.category-button.active .category-name { font-weight: 700; }
.category-button:hover:not(.active) { background: #f5f3ee; }
.category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 38px 0 12px; }
.category-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 27px; letter-spacing: -.6px; }
.category-heading span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.products { display: grid; grid-template-columns: 1fr; }
.product-card { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); min-width: 0; }
.product-button { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex: 1; min-width: 0; border: 0; background: transparent; min-height: 76px; padding: 18px 4px; text-align: left; }
.product-button:hover { background: #f3f1eb; }
.product-name { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.product-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.product-price { display: block; font-size: 13px; font-weight: 600; margin-top: 5px; }
.product-plus { width: 19px; height: 19px; margin-right: 8px; }
.customize { align-self: center; padding: 8px 4px 8px 15px; margin-left: 8px; min-height: 48px; color: var(--muted); font-size: 11px; border: 0; border-left: 1px solid var(--line); background: transparent; text-align: right; }
.customize:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.no-results { padding: 32px 0; margin: 0; color: var(--muted); font-size: 14px; }

/* The basket keeps form fields and portions together, without receipt decoration. */
.cart { position: sticky; top: 28px; border-left: 1px solid var(--line); padding: 0 0 0 28px; max-height: calc(100dvh - 56px); overflow: auto; scrollbar-width: thin; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cart h2 { font-size: 19px; font-weight: 600; }
.badge { font-size: 11px; color: var(--muted); white-space: nowrap; }
.empty { padding: 18px 0 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.empty strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 12px; margin-bottom: 0; max-width: 26ch; }
.cart-line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.portion-label { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.cart-line h3 { font-size: 15px; }
.selection-summary { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 6px 0 10px; overflow-wrap: anywhere; }
.omit-summary { display: block; color: var(--danger); font-weight: 700; padding-top: 3px; }
.line-actions { display: flex; gap: 7px; }
.line-actions button { border: 1px solid var(--line); background: transparent; border-radius: 4px; min-height: 48px; font-size: 11px; font-weight: 500; padding: 8px 10px; flex: 1; }
.line-actions button:hover { background: var(--soft); }
.line-actions .delete { flex: 0; min-width: 48px; color: var(--muted); }
.line-actions .delete:hover { color: var(--danger); }
.collection-field { margin: 24px 0; }
.collection-field label { font-size: 13px; font-weight: 600; }
.collection-field input { min-height: 52px; font-size: 16px; }
.collection-field p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }
.order-fields { display: grid; gap: 17px; margin: 22px 0 24px; }
.order-fields label { font-size: 12px; }
.order-fields input, .order-fields textarea { font-size: 14px; }
.order-fields label .muted { font-size: 11px; font-weight: 400; margin-left: 4px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: white; border: 0; border-radius: 6px; padding: 15px 20px; min-height: 54px; width: 100%; font-size: 14px; font-weight: 600; }
.primary:hover { background: var(--green-dark); }
.message { font-size: 12px; line-height: 1.65; padding: 12px 14px; background: var(--soft); border-radius: 6px; overflow-wrap: anywhere; }
.error { background: var(--danger-bg); color: var(--danger); }
.mobile-cart { display: none; }
.secondary, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 12px; font-weight: 500; white-space: nowrap; }
.secondary:hover { background: var(--soft); }
.text-button { border: 0; padding: 8px 10px; }

/* Dialogs stay plain; included and excluded ingredients remain distinct. */
.icon-button { width: 48px; min-height: 48px; flex-shrink: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 22px; }
.icon-button:hover { background: var(--soft); }
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: calc(100% - 32px); max-width: 560px; max-height: 90dvh; color: var(--ink); background: var(--paper); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgb(41 39 36 / .42); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 24px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.dialog-header .eyebrow { font-size: 10px; margin-bottom: 7px; }
.dialog-body { padding: 0 24px 28px; overflow: auto; overscroll-behavior: contain; }
.hint { font-size: 12px; color: var(--muted); margin: 18px 0 26px; }
.modifier-group { margin-top: 26px; }
.group-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.group-title h3 { font-size: 15px; }
.group-title span { font-size: 11px; color: var(--muted); }
.modifier-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.modifier { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); min-height: 54px; padding: 13px 14px; text-align: left; font-size: 13px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.modifier:hover { border-color: #a7a197; }
.modifier.included { background: #eeeee7; border-color: var(--ink); font-weight: 600; }
.modifier.omitted { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); font-weight: 700; }
.dialog-footer { padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.dialog-footer .message { margin-bottom: 12px; }
#cart-dialog { max-height: 94dvh; }
#mobile-cart-content { overflow: auto; overscroll-behavior: contain; }
.receipt-preview { display: block; width: 576px; max-width: 100%; height: auto; margin: 20px auto; border: 1px solid var(--line); }

/* Admin data uses dividers and alignment, rather than coloured panels. */
.admin-main { max-width: 1200px; margin: 0 auto; padding: 44px 32px 70px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.admin-heading h1 { font-size: 44px; }
.admin-heading .eyebrow { margin-bottom: 10px; }
.admin-date { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.live-indicator::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #748369; }
.admin-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.admin-tabs { display: flex; gap: 24px; }
.admin-tab { display: flex; align-items: center; padding: 15px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); min-height: 52px; }
.admin-tab.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.admin-tab .icon { display: none; }
.admin-tools { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.period-switch { display: flex; gap: 4px; }
.period-switch button { border: 0; background: transparent; min-height: 48px; padding: 10px 14px; font-size: 12px; font-weight: 500; border-radius: 4px; color: var(--muted); }
.period-switch button:first-child { padding-left: 0; padding-right: 18px; }
.period-switch .active { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.test-switch { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 400; }
.finance-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 6px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.revenue-label { font-size: 12px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }
.revenue-amount { font-size: 48px; letter-spacing: -2px; line-height: 1.15; font-weight: 500; margin: 0 0 12px; }
.revenue-currency { font-size: 16px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 7px; }
.revenue-context { font-size: 12px; color: var(--muted); margin: 0; max-width: 34ch; }
.revenue-foot { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 16px; }
.revenue-foot .icon { display: none; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-left: 1px solid var(--line); padding-left: 36px; align-items: start; }
.metric-value { font-size: 38px; font-weight: 500; letter-spacing: -1.5px; margin: 15px 0 12px; line-height: 1; }
.metric-label, .metric-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.metric-label { font-weight: 500; }
.simulation-note { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 0 26px; margin-bottom: 6px; }
.simulation-note strong { font-size: 11px; font-weight: 500; color: var(--muted); }
.simulation-note p { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.simulation-amount { font-size: 17px; white-space: nowrap; font-weight: 500; color: var(--muted); }
.analytics-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 42px; margin-bottom: 34px; }
.panel { border-top: 1px solid var(--line); padding: 22px 0 0; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.panel-heading p { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.panel-heading > .icon { display: none; }
.chart-total { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart { height: 180px; display: flex; align-items: end; gap: 6px; border-bottom: 1px solid var(--line); padding-top: 15px; position: relative; }
.chart-column { height: 100%; min-width: 0; flex: 1; display: flex; align-items: end; position: relative; }
.chart-bar { width: 100%; min-height: 2px; background: #d5d0c6; border-radius: 2px 2px 0 0; }
.chart-column.peak .chart-bar { background: var(--ink); }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 12px; gap: 4px; }
.chart-description { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.product-ranking { display: flex; flex-direction: column; gap: 20px; }
.rank-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; }
.rank-index { font-size: 10px; color: var(--muted); }
.rank-name { font-size: 13px; font-weight: 500; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.rank-category { font-size: 10px; color: var(--muted); margin: 3px 0 0; }
.rank-count { font-size: 13px; font-weight: 600; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 1.3fr; gap: 42px; margin-bottom: 34px; }
.category-distribution { display: grid; gap: 17px; }
.category-stat { display: grid; grid-template-columns: 1fr 36px; gap: 12px; align-items: center; }
.category-stat > .icon { display: none; }
.category-stat strong { font-size: 12px; font-weight: 500; }
.category-stat small { font-size: 11px; color: var(--muted); text-align: right; }
.progress-track { height: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.progress-fill { height: 100%; background: #a9a293; }
.status-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.status-block { padding: 8px 0; }
.status-block strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -1px; margin-bottom: 8px; }
.status-block span { font-size: 11px; color: var(--muted); line-height: 1.5; display: block; }
.status-block.failure strong { color: var(--danger); }
.orders-panel { padding: 0; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.orders-toolbar h2 { font-size: 17px; }
.order-filters { display: flex; gap: 10px; align-items: center; }
.order-filters input, .order-filters select { font-size: 12px; min-height: 48px; margin: 0; max-width: 220px; }
.order-filters select { max-width: 160px; }
.order-header, .order-summary { display: grid; grid-template-columns: 1fr 1fr .7fr .8fr 1fr 24px; gap: 16px; align-items: center; padding: 16px 8px; }
.order-header { color: var(--muted); font-size: 11px; font-weight: 500; }
.order-record { border-top: 1px solid var(--line); }
.order-record > summary { cursor: pointer; list-style: none; min-height: 80px; }
.order-record > summary::-webkit-details-marker { display: none; }
.order-record[open] > summary, .order-record > summary:hover { background: var(--soft); }
.order-summary strong { font-size: 12px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.order-summary small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.order-summary > .icon { width: 16px; height: 16px; color: var(--muted); }
.order-record[open] > summary > .icon { transform: rotate(90deg); }
.state-chip { font-size: 11px; padding: 5px 7px; border-radius: 3px; background: var(--soft); display: inline-block; white-space: nowrap; }
.state-chip.completed { background: #edf3ec; color: #346538; }
.state-chip.failed { background: var(--danger-bg); color: var(--danger); }
.order-money { font-size: 12px; font-weight: 500; }
.order-detail { padding: 8px 12px 25px; }
.order-portions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-bottom: 20px; }
.order-portion { padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-portion strong { font-size: 12px; font-weight: 600; }
.order-portion p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 6px 0 0; }
.order-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pagination-actions { display: flex; gap: 6px; }
.pagination button { min-height: 48px; min-width: 48px; border: 1px solid var(--line); background: transparent; border-radius: 4px; font-size: 18px; }
.queue-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.queue-card h2 { font-size: 17px; margin: 6px 0; }
.queue-card p { font-size: 12px; margin-bottom: 0; }
.job-status { font-size: 11px; color: var(--muted); }
.job-status.failed { color: var(--danger); }
.queue-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-key { max-width: 360px; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 36px; color: var(--muted); font-size: 11px; }
.admin-footer a { color: var(--ink); }
.admin-empty { padding: 30px 0; color: var(--muted); font-size: 12px; }
.admin-empty .icon { display: none; }
.admin-empty strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 500; }
.key-panel { border: 1px solid var(--line); padding: 24px; border-radius: 6px; margin-bottom: 22px; }
.custom-dates { display: flex; gap: 10px; margin-bottom: 20px; }
.custom-dates input { max-width: 180px; margin-top: 5px; min-height: 48px; font-size: 12px; }
.custom-dates label { font-size: 12px; }

/* Login shares the menu's typography and does not require external assets. */
.login-shell { max-width: 470px; margin: 72px auto; padding: 0 24px 40px; }
.login-card { padding: 0; }
.login-card .eyebrow { margin-bottom: 14px; }
.login-card h1 { font-size: 48px; letter-spacing: -1.6px; margin-bottom: 18px; }
.login-intro { color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.login-card label { font-size: 13px; }
.password-field { display: flex; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.password-field:focus-within { border-color: var(--ink); }
.password-field input { border: 0; background: transparent; margin: 0; min-width: 0; flex: 1; font-size: 16px; min-height: 52px; }
.password-field button { border: 0; border-left: 1px solid var(--line); background: transparent; min-width: 80px; padding: 8px 13px; font-size: 11px; color: var(--muted); }
.remember-note { font-size: 12px; color: var(--muted); margin: 13px 0 26px; }
.login-privacy { font-size: 11px; color: var(--muted); margin: 24px 0 0; }

@media (max-width: 1050px) {
  .workspace { gap: 36px; grid-template-columns: minmax(0, 1fr) 310px; }
  .catalog-intro h1 { font-size: 44px; }
  .catalog-intro { align-items: flex-start; }
  .category-button { padding: 12px 10px; }
  .metric-grid { padding-left: 24px; gap: 14px; }
  .analytics-grid, .dashboard-bottom { gap: 28px; }
}

@media (max-width: 850px) {
  .topbar { height: 68px; padding: 0 22px; gap: 12px; }
  .brand-word { font-size: 28px; }
  .topnav { gap: 17px; }
  .topnav a, .topnav button { font-size: 11px; }
  .workspace { display: block; max-width: 680px; padding: 34px 22px 110px; }
  .catalog-intro { align-items: flex-end; margin-bottom: 26px; }
  .catalog-intro h1 { font-size: 44px; }
  .catalog-tools { gap: 8px; }
  .language-switch button { padding: 10px 9px; font-size: 11px; }
  .search-field { margin-bottom: 20px; }
  .category-button { min-height: 58px; }
  .category-name { font-size: 12px; }
  .category-heading { margin-top: 32px; }
  .category-heading h2 { font-size: 25px; }
  .category-heading span { font-size: 10px; }
  .product-button { min-height: 76px; }
  .product-name { font-size: 16px; }
  .product-plus { margin-right: 3px; }
  .mobile-cart { display: flex; position: fixed; z-index: 3; bottom: max(16px, env(safe-area-inset-bottom)); left: 22px; right: 22px; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); border: 0; color: white; border-radius: 6px; padding: 15px 18px; font-size: 13px; font-weight: 500; }
  .mobile-cart > #mobile-cart-count { color: #c9c5bc; font-size: 12px; white-space: nowrap; }
  .cart { position: static; border: 0; max-height: none; padding: 8px 22px 24px; }
  #cart-dialog .cart .section-heading { display: none; }
  #cart-dialog .dialog-header { padding: 20px 22px; align-items: center; }
  #cart-dialog .dialog-header h2 { font-size: 20px; }
  .order-fields input, .order-fields textarea { font-size: 16px; }
  .admin-main { padding: 32px 22px 50px; }
  .admin-heading h1 { font-size: 38px; }
  .admin-heading { margin-bottom: 24px; }
  .admin-heading .live-indicator { font-size: 0; }
  .admin-navigation { flex-wrap: wrap; gap: 10px; }
  .admin-tabs { gap: 23px; }
  .admin-tools { margin-left: auto; }
  .admin-tools .secondary { padding: 8px 10px; font-size: 11px; }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 25px; }
  .period-switch { width: 100%; justify-content: space-between; }
  .period-switch button { font-size: 11px; padding: 10px; }
  .test-switch { font-size: 11px; margin-bottom: 12px; }
  .finance-panel { grid-template-columns: 1fr; gap: 27px; padding-bottom: 26px; }
  .metric-grid { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; gap: 15px; }
  .revenue-amount { font-size: 44px; }
  .metric-value { font-size: 31px; margin-top: 13px; }
  .metric-label, .metric-note { font-size: 11px; }
  .simulation-note { gap: 15px; align-items: flex-start; }
  .simulation-amount { font-size: 15px; }
  .analytics-grid, .dashboard-bottom { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .panel { padding-top: 22px; }
  .chart { height: 155px; gap: 4px; }
  .status-overview { gap: 10px; }
  .status-block strong { font-size: 27px; }
  .orders-toolbar { flex-direction: column; align-items: flex-start; }
  .order-filters { width: 100%; }
  .order-filters input { max-width: none; flex: 1; min-width: 0; }
  .order-filters select { max-width: 140px; }
  .order-header { display: none; }
  .order-summary { grid-template-columns: 1fr 1fr 20px; gap: 14px; padding: 18px 6px; }
  .order-summary > .order-count { display: none; }
  .order-summary > .order-money { grid-column: 1; }
  .order-summary > .order-state { grid-column: 2; }
  .order-summary > .icon { grid-column: 3; grid-row: 1 / 3; }
  .order-portions { grid-template-columns: 1fr; }
  .order-detail { padding: 8px 6px 22px; }
  .queue-card { align-items: flex-start; flex-direction: column; gap: 16px; }
  .queue-actions { width: 100%; }
  #print-view > .panel-heading { flex-wrap: wrap; }
  .admin-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .custom-dates label { flex: 1; min-width: 0; }
  .custom-dates input { max-width: none; }
  .login-shell { margin-top: 46px; padding: 0 26px 40px; }
  .login-card h1 { font-size: 44px; }
}

@media (max-width: 380px) {
  .topbar { padding: 0 18px; }
  .brand-word { font-size: 25px; }
  .topnav { gap: 11px; }
  .topnav a, .topnav button { font-size: 10px; }
  .workspace { padding-left: 18px; padding-right: 18px; }
  .catalog-intro { gap: 8px; }
  .catalog-intro h1 { font-size: 39px; }
  .catalog-intro:has(h1:not(:empty)) { flex-wrap: wrap; }
  .catalog-tools { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .catalog-intro .eyebrow { margin-bottom: 8px; }
  .catalog-intro { margin-bottom: 20px; }
  .category-button { padding: 10px 8px; min-height: 60px; gap: 5px; }
  .category-name { font-size: 12px; }
  .category-heading h2 { font-size: 22px; }
  .product-name { font-size: 15px; }
  .mobile-cart { left: 18px; right: 18px; font-size: 12px; gap: 10px; padding: 14px 16px; }
  .dialog-header, .dialog-body { padding-left: 18px; padding-right: 18px; }
  .dialog-footer { padding: 16px 18px 20px; }
  .modifier { padding: 12px 10px; font-size: 12px; }
  .admin-main { padding-left: 18px; padding-right: 18px; }
  .admin-heading h1 { font-size: 34px; }
  .admin-tabs { justify-content: space-between; width: 100%; gap: 20px; }
  .admin-tab { font-size: 12px; }
  .admin-tools { padding-bottom: 12px; }
  .metric-grid { gap: 10px; }
  .metric-value { font-size: 28px; }
  .status-block span { font-size: 10px; }
  .simulation-note { flex-wrap: wrap; }
  .order-filters { flex-wrap: wrap; }
  .login-card h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background .15s ease, color .15s ease, border-color .15s ease; }
}
