/* TABLET-FIRST TOKENS. All dimensions are reconstruction choices, not extracted Tesla CSS. */
:root {
  color-scheme: dark;
  --canvas: #171a20; --photo-bg: #0b0d10; --surface: #22252b;
  --surface-raised: #30343b; --surface-hover: #383d45;
  --ink: #f4f4f4; --muted: #b5b8bf; --dim: #969ba5;
  --line: #363a42; --white-button: #e8e8eb; --button-ink: #25272d;
  --error: #ffb4ab; --focus: #becfff;
  --font: "Universal Sans Text", "Universal Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-pad: 24px; --gap: 16px; --header: 72px; --toolbar: 36px;
  --radius: 4px; --motion: 160ms;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--canvas); }
body { font: 400 14px/1.5 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a, input, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--focus); }
button:disabled { opacity: .4; cursor: not-allowed; }
button { border: 0; }
a { color: inherit; text-underline-offset: 3px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--white-button); color: var(--button-ink); padding: 12px 24px; z-index: 100; }
.skip-link:focus { top: 12px; }
.experience { width: 100%; height: calc(100dvh - var(--toolbar)); display: flex; }
.app-shell { width: 100%; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.topbar { height: var(--header); flex-shrink: 0; display: flex; gap: 16px; align-items: center; padding: 0 var(--page-pad); background: var(--canvas); z-index: 3; }
.category-nav-wrapper { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; overflow: hidden; }
.category-nav { display: flex; min-width: 0; overflow-x: auto; gap: 4px; white-space: nowrap; flex: 1; align-items: center; height: 100%; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; padding-right: 32px; }
.category-nav::-webkit-scrollbar { display: none; }
.category-scroll-affordance { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; background: linear-gradient(to right, rgba(23, 26, 32, 0), rgba(23, 26, 32, 0.95) 60%); display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; color: #a0a6b2; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--motion), color var(--motion); z-index: 2; }
.category-scroll-affordance.can-scroll { opacity: 1; pointer-events: auto; }
.category-scroll-affordance:hover { color: #fff; }
.category-scroll-affordance svg { width: 18px; height: 18px; filter: drop-shadow(0 0 3px rgba(0,0,0,0.8)); }
.category-button { flex: none; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; border-radius: 22px; position: relative; transition: color var(--motion); }
.category-button::before { content: ''; position: absolute; inset: 6px 0; z-index: -1; border-radius: 22px; transition: background var(--motion); }
.category-button[aria-current="true"] { color: var(--ink); }
.category-button[aria-current="true"]::before { background: var(--surface-raised); }
.category-button:hover { color: var(--ink); }
.lang-button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; transition: background var(--motion), border-color var(--motion); flex-shrink: 0; cursor: pointer; }
.lang-button:hover { background: var(--surface-raised); border-color: #525866; }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { font-size: 12px; letter-spacing: .08em; }
.photo-mode-switch { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2px; flex-shrink: 0; }
.photo-mode-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 17px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: background var(--motion), color var(--motion); }
.photo-mode-btn:hover { color: var(--ink); }
.photo-mode-btn[aria-pressed="true"] { background: var(--surface-raised); color: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.photo-mode-btn .mode-emoji { font-size: 13px; line-height: 1; }
@media (max-width: 880px) { .photo-mode-btn .mode-text { display: none; } .photo-mode-btn { padding: 0 8px; } }
.bag-button { height: 44px; min-width: 86px; border-radius: 24px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 0 19px; background: var(--white-button); color: var(--button-ink); font-size: 14px; font-weight: 500; flex-shrink: 0; transition: background var(--motion); }
.bag-button svg { width: 21px; height: 21px; }
.bag-button:hover { background: #fff; }
.bag-button.just-added { min-width: 168px; }
.main { flex: 1; min-height: 0; display: flex; position: relative; outline: none; }
.browse-scroll { width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #454b54 transparent; padding: 0 var(--page-pad) 28px; scroll-behavior: smooth; }
.category-section { margin-bottom: 36px; scroll-margin-top: 8px; }
.category-section-header { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.category-section-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.category-section-count { font-size: 13px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { padding: 0; display: block; overflow: hidden; background: var(--surface); text-align: center; width: 100%; border-radius: var(--radius); position: relative; transition: background var(--motion); }
.product-card:hover { background: #2c3037; }
.product-card:active { background: #343942; }
.food-image { position: relative; background: var(--photo-bg); overflow: hidden; isolation: isolate; }
.card-photo { aspect-ratio: 1.45; }
.food-image img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: opacity 220ms; opacity: 0; }
.food-image.is-loaded img { opacity: 1; }
.food-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.03) 70%,rgba(0,0,0,.13)); z-index: 1; }
.image-fallback { display: flex; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9da2ab; font-size: 12px; text-align: center; padding: 20px; }
.image-fallback svg { width: 30px; height: 30px; }
.food-image.is-loaded .image-fallback { display: none; }
.food-image.is-error img { display: none; }
.food-image .photo-credit { display: none; }
.product-name { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 16px; line-height: 1.35; font-size: 18px; font-weight: 500; }
.popular-badge { position: absolute; z-index: 2; top: 12px; left: 12px; border-radius: 3px; background: var(--white-button); color: #34363b; padding: 5px 8px; line-height: 1.35; font-size: 11px; font-weight: 500; letter-spacing: .015em; }
.in-bag-badge { position: absolute; right: 12px; bottom: 68px; border-radius: 20px; min-width: 28px; height: 28px; padding: 0 8px; display: grid; place-items: center; background: #eeeff1; color: #25272d; z-index: 2; font-size: 12px; font-weight: 500; }
.screen { width: 100%; min-height: 0; display: flex; flex-direction: column; padding: 0 var(--page-pad); }
.screen-header { position: relative; flex: none; padding: 16px 52px 22px 0; border-top: 1px solid var(--line); }
.screen-header h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }
.screen-header p { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 9px; max-width: 850px; }
.screen-header .base-price { color: var(--ink); white-space: nowrap; margin-left: 12px; }
.icon-button { padding: 0; width: 44px; height: 44px; background: transparent; border-radius: var(--radius); display: inline-grid; place-items: center; }
.icon-button:hover { background: var(--surface); }
.screen-close { position: absolute; top: 8px; right: 0; }
.screen-heading { outline: none; }
.detail-layout { display: grid; grid-template-columns: 44% minmax(0,1fr); gap: 20px; flex: 1; min-height: 0; }
.detail-photo { height: 100%; min-height: 220px; border-radius: var(--radius); align-self: start; }
.detail-photo img { object-fit: cover; }
.detail-photo::after { background: linear-gradient(0deg,rgba(0,0,0,.18),transparent 30%); }
.modifiers-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #454b54 transparent; padding: 1px 4px 1px 0; }
.modifier-group { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; padding: 0 18px 10px; min-width: 0; }
.modifier-group legend { float: left; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 15px 0 8px; font-size: 13px; font-weight: 500; }
.modifier-group legend + * { clear: both; }
.group-hint { color: var(--muted); font-size: 12px; font-weight: 400; text-align: right; }
.option { min-height: 48px; display: flex; gap: 13px; align-items: center; cursor: pointer; border-radius: 3px; padding: 8px 0; }
.option:hover { color: #fff; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option input:focus-visible + .option-control { outline: 2px solid var(--focus); outline-offset: 4px; }
.option-control { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid #797f89; border-radius: 3px; background: #555b65; }
.option input[type=radio] + .option-control { border-radius: 50%; background: transparent; }
.option-control svg { width: 16px; height: 16px; display: none; stroke-width: 2.3; color: #20242b; }
.option input:checked + .option-control { background: #eef0f2; border-color: #eef0f2; }
.option input:checked + .option-control svg { display: block; }
.option input[type=radio]:checked + .option-control::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #262b32; }
.option input[type=radio] + .option-control svg { display: none; }
.option-name { flex: 1; font-size: 14px; font-weight: 500; }
.option-price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.modifier-group.has-error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; margin: 5px 0 8px; }
.quantity-line { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 12px; }
.quantity-line > span { font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 4px; height: 44px; }
.stepper button { width: 44px; height: 42px; background: transparent; display: grid; place-items: center; }
.stepper button svg { width: 17px; height: 17px; }
.stepper button:hover:not(:disabled) { background: var(--surface-raised); }
.stepper output, .stepper .qty { min-width: 32px; text-align: center; font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.notes-details { margin: 8px 0 16px; color: var(--muted); }
.notes-details summary { cursor: pointer; padding: 10px 0; font-size: 13px; }
.notes-details label { font-size: 12px; display: block; padding-bottom: 8px; }
textarea, input[type=text] { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 100%; }
textarea { resize: vertical; min-height: 72px; max-height: 160px; }
.action-footer { padding: 16px 0; background: var(--canvas); flex: none; }
.primary-button, .secondary-button { min-height: 52px; width: 100%; border-radius: 4px; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface-raised); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background var(--motion); }
.primary-button:hover:not(:disabled) { background: var(--surface-hover); }
.primary-button:active:not(:disabled) { background: #444a54; }
.primary-button.light { background: var(--white-button); color: var(--button-ink); }
.primary-button.light:hover { background: #fff; }
.secondary-button { background: transparent; border: 1px solid var(--line); }
.secondary-button:hover { background: var(--surface); }
.button-price { font-variant-numeric: tabular-nums; }
.page-subtitle { display: block; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,1fr); gap: 36px; min-height: 0; flex: 1; padding-bottom: 22px; }
.cart-lines { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #454b54 transparent; padding-right: 8px; }
.cart-line { display: grid; grid-template-columns: 128px minmax(0,1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-photo { width: 128px; height: 108px; border-radius: 4px; }
.cart-info h2 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.cart-info p { font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.cart-info .cart-note { font-style: italic; }
.cart-actions { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.text-button { min-height: 40px; background: transparent; color: var(--muted); padding: 6px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.cart-price { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-panel { border: 1px solid var(--line); border-radius: 4px; padding: 24px; align-self: start; max-height: 100%; overflow-y: auto; }
.summary-panel h2 { font-size: 19px; margin: 0 0 24px; }
.summary-rows { margin: 0; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; padding: 8px 0; }
.summary-rows dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-rows .total-row { color: var(--ink); font-weight: 500; font-size: 20px; margin-top: 13px; padding: 22px 0; border-top: 1px solid var(--line); }
.summary-caption { font-size: 12px; line-height: 1.65; color: var(--dim); margin: 16px 0 0; text-align: center; }
.summary-panel .secondary-button { margin-top: 12px; }
.empty-bag { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 70px; gap: 16px; text-align: center; }
.empty-bag > svg { width: 52px; height: 52px; color: var(--muted); margin-bottom: 6px; }
.empty-bag h2 { font-size: 25px; }
.empty-bag p { color: var(--muted); }
.empty-bag button { width: min(320px,100%); margin-top: 12px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,1fr); gap: 36px; min-height: 0; flex: 1; padding-bottom: 24px; }
.checkout-fields { overflow-y: auto; min-height: 0; padding-right: 8px; }
.checkout-fields h2 { font-size: 19px; margin-bottom: 18px; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.fulfillment-option { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 22px 16px; cursor: pointer; position: relative; display: block; }
.fulfillment-option:has(input:checked) { border-color: #e4e5e8; background: #2c3037; }
.fulfillment-option input { position: absolute; opacity: 0; }
.fulfillment-option input:focus-visible ~ strong { outline: 2px solid var(--focus); outline-offset: 4px; }
.fulfillment-option svg { width: 26px; height: 26px; margin-bottom: 15px; }
.fulfillment-option strong { display: block; font-size: 15px; }
.fulfillment-option p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.input-group { margin-bottom: 22px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.input-group small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.demo-payment { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: flex-start; gap: 16px; }
.demo-payment h3 { font-size: 15px; margin-bottom: 4px; }
.demo-payment p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.checkout-item-list { border-bottom: 1px solid var(--line); margin: 0 0 14px; padding-bottom: 14px; }
.checkout-item-list p, .checkout-item-list > div { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 13px; color: var(--muted); }
.checkout-item-list span:last-child, .checkout-item-list strong { white-space: nowrap; font-weight: 600; color: var(--ink); }
.order-scroll { flex: 1; overflow-y: auto; padding: 12px 0 40px; }
.order-confirmation { max-width: 720px; margin: 0 auto; text-align: center; }
.confirmation-check { width: 58px; height: 58px; border-radius: 50%; background: var(--surface-raised); display: grid; place-items: center; margin: 4px auto 20px; }
.confirmation-check svg { width: 28px; height: 28px; }
.order-eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.order-confirmation h2 { font-size: 32px; letter-spacing: -.025em; }
.order-confirmation > p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.order-number { font-size: 16px; color: var(--ink); padding: 7px 14px; background: var(--surface); border-radius: 4px; display: inline-block; margin-top: 18px; font-variant-numeric: tabular-nums; }
.order-timeline { display: grid; grid-template-columns: repeat(3,1fr); margin: 35px 0 25px; text-align: center; }
.timeline-step { position: relative; padding: 26px 4px 0; font-size: 13px; color: var(--muted); }
.timeline-step::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: #414650; }
.timeline-step:first-child::before { left: 50%; }
.timeline-step:last-child::before { right: 50%; }
.timeline-step::after { content: ''; position: absolute; width: 14px; height: 14px; top: 1px; left: calc(50% - 7px); background: #444a54; border-radius: 50%; border: 3px solid var(--canvas); box-sizing: content-box; transform: translate(-3px,-3px); }
.timeline-step.done { color: var(--ink); }
.timeline-step.done::after, .timeline-step.done::before { background: #e5e6ea; }
.order-box { border: 1px solid var(--line); padding: 20px; border-radius: 4px; display: flex; justify-content: space-between; gap: 20px; margin: 0 0 22px; text-align: left; }
.order-box small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.order-box strong { font-size: 16px; }
.order-confirmation .primary-button { max-width: 360px; margin: 0 auto; }
.receipt-details { text-align: left; border: 1px solid var(--line); border-radius: 4px; margin-top: 25px; padding: 0 20px; }
.receipt-details summary { padding: 16px 0; cursor: pointer; }
.receipt-details .summary-rows { padding-bottom: 10px; }
.session-table-summary-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.session-table-summary-note strong { color: #e5be75; font-size: 14px; }
.table-session-panel { margin-top: 24px; text-align: left; }
.session-summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; margin-bottom: 24px; text-align: left; width: 100%; box-sizing: border-box; }
.session-summary-card.large { width: 100%; margin: 0 0 32px; background: linear-gradient(180deg, #1e222a 0%, #15181e 100%); border-color: #3b4250; box-shadow: 0 8px 24px rgba(0,0,0,0.3); padding: 28px 32px; }
.session-summary-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.session-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #e5be75; background: rgba(229, 190, 117, 0.12); border: 1px solid rgba(229, 190, 117, 0.3); padding: 4px 10px; border-radius: 4px; margin-bottom: 8px; }
.session-badge svg { width: 14px; height: 14px; }
.session-summary-header h2, .session-summary-header h3 { margin: 2px 0 0; font-size: 22px; font-weight: 600; color: #ffffff; letter-spacing: -.01em; }
.session-grand-total { font-size: 34px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.session-summary-meta { font-size: 15px; color: #c4c8d2; font-weight: 500; margin: 0 0 8px; }
.session-actions { margin-top: 20px; display: flex; gap: 12px; }
.session-actions .primary-button { max-width: 320px; }
.previous-orders-section { width: 100%; margin-top: 36px; text-align: left; }
.previous-orders-section h3, .previous-orders-section h4 { font-size: 16px; font-weight: 600; color: #ffffff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .08em; }
.previous-orders-list { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.previous-order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; width: 100%; box-sizing: border-box; }
.previous-order-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 17px; }
.previous-order-head strong { color: #ffffff; font-size: 17px; font-weight: 600; }
.previous-order-head .order-time { color: #8c93a0; font-size: 14px; font-weight: normal; }
.previous-order-price { color: #e5be75; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; }
.checkout-item-list { border-bottom: 1px solid var(--line); margin: 0 0 14px; padding-bottom: 14px; }
.checkout-item-row { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.checkout-item-row:last-child { border-bottom: none; padding-bottom: 4px; }
.checkout-item-main { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.checkout-item-name { font-size: 16px; font-weight: 500; color: #ffffff; }
.checkout-item-price { font-size: 16px; font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.checkout-item-sub { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.checkout-item-options { font-size: 14px; color: #abb2bf; line-height: 1.4; }
.checkout-item-note { font-size: 14px; color: #e5be75; font-style: italic; line-height: 1.4; }
.active-orders-layout { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #454b54 transparent; padding: 20px 24px 60px; }
.active-orders-content { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.demo-toolbar { height: var(--toolbar); border-top: 1px solid #2b2e35; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #12151a; color: var(--muted); user-select: none; }
.demo-label { font-size: 10px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.demo-label > i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #858c98; }
.demo-controls { display: flex; align-items: center; gap: 10px; height: 100%; }
.view-switch { display: flex; gap: 2px; }
.view-switch button { padding: 4px 12px; background: transparent; color: var(--dim); border-radius: 3px; font-size: 11px; min-height: 28px; }
.view-switch button[aria-pressed=true] { background: #2e333c; color: #fff; }
.tool-button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; background: transparent; color: var(--muted); border-radius: 4px; }
.tool-button:hover { background: var(--surface); }
.tool-button svg { width: 17px; height: 17px; }
.toast { position: fixed; z-index: 15; bottom: calc(var(--toolbar) + 20px); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: #e7e8eb; color: #262b32; padding: 12px 20px; min-height: 48px; border-radius: 4px; box-shadow: 0 4px 32px #0006; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.lang-dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); background: var(--canvas); box-shadow: 0 16px 48px rgba(0,0,0,0.7); overflow: hidden; }
.lang-dialog::backdrop { background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(8px); }
.lang-dialog-card { padding: 28px 24px; }
.lang-dialog-header { text-align: center; margin-bottom: 22px; }
.lang-welcome-sub { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #e5be75; margin-bottom: 8px; font-weight: 600; }
.lang-dialog-header h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.lang-options { display: flex; flex-direction: column; gap: 10px; }
.lang-choice { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-align: left; transition: background var(--motion), border-color var(--motion), transform var(--motion); cursor: pointer; }
.lang-choice:hover { background: var(--surface-raised); border-color: #555c68; transform: translateY(-1px); }
.lang-choice:active { transform: translateY(0); }
.lang-choice-flag { font-size: 28px; line-height: 1; flex-shrink: 0; }
.lang-choice-text { display: flex; flex-direction: column; gap: 2px; }
.lang-choice-text strong { font-size: 16px; font-weight: 600; }
.lang-choice-text span { font-size: 12px; color: var(--muted); }
.settings-dialog { width: min(500px,calc(100% - 32px)); max-height: calc(100dvh - 64px); border: 1px solid var(--line); border-radius: 8px; padding: 26px; color: var(--ink); background: var(--canvas); }
.settings-dialog::backdrop { background: #000b; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-top h2 { font-size: 22px; }
.settings-dialog > p { color: var(--muted); line-height: 1.7; }
.settings-facts { margin: 22px 0; }
.settings-facts > div { border-top: 1px solid var(--line); padding: 12px 0; }
.settings-facts dt { font-weight: 500; }
.settings-facts dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.small-copy { font-size: 12px; }
.doc-link { margin-top: 22px; }
.reset-button { margin-top: 10px; }
#reset-hint { margin-top: 10px; color: var(--error); }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: var(--canvas); z-index: 99; padding: 24px; }
/* Optional context frame; the ordering application above is shared unchanged. */
.vehicle { width: 27%; min-width: 240px; max-width: 400px; flex-shrink: 0; border-right: 1px solid #31353d; background: #1b1e24; padding: 30px 28px 18px; overflow: auto; scrollbar-width: none; display: flex; flex-direction: column; align-items: stretch; }
.vehicle-top { display: flex; align-items: center; justify-content: space-between; }
.park { font-size: 26px; }
.battery-value { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.battery { width: 25px; height: 12px; border: 1px solid #c6c9ce; padding: 2px; border-radius: 2px; display: inline-block; position: relative; }
.battery::after { content: ''; width: 2px; height: 5px; background: #c6c9ce; position: absolute; right: -4px; top: 2.5px; }
.battery i { display: block; width: 62%; height: 100%; background: #c6c9ce; }
.vehicle-title { text-align: center; margin-top: 36px; }
.vehicle-title > span { color: var(--dim); font-size: 12px; }
.vehicle-title h2 { font-size: 25px; margin-top: 8px; }
.vehicle-title p { font-size: 13px; margin-top: 8px; color: var(--muted); }
.car-drawing { width: 100%; height: clamp(180px,37vh,390px); flex: 1 1 180px; min-height: 180px; margin: 14px 0; stroke-width: 0; }
.charge-progress { height: 4px; width: 100%; background: #414752; border-radius: 4px; }
.charge-progress i { width: 62%; height: 100%; background: #bcc6c3; border-radius: inherit; display: block; }
.charge-stats { display: flex; justify-content: space-between; margin-top: 22px; text-align: center; }
.charge-stats strong { display: block; font-size: 19px; }
.charge-stats span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.stall-label { border: 1px solid var(--line); border-radius: 4px; padding: 13px 8px; font-size: 11px; text-align: center; margin-top: 28px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #bac7c1; display: inline-block; margin-right: 5px; vertical-align: 2px; }
.vehicle-disclaimer { color: var(--dim); font-size: 10px; text-align: center; margin-top: 15px; }
@container (min-width: 1600px) {
  .browse-scroll, .screen { padding-left: 36px; padding-right: 36px; }
  .topbar { padding-left: 36px; padding-right: 36px; }
  .product-name { font-size: 20px; min-height: 64px; }
}
@container (max-width: 1050px) {
  .topbar { gap: 14px; }
  .category-button { font-size: 13px; padding-left: 11px; padding-right: 11px; }
  .product-name { font-size: 16px; }
  .cart-layout, .checkout-layout { gap: 24px; grid-template-columns: minmax(0,1.2fr) minmax(270px,1fr); }
  .cart-line { grid-template-columns: 90px minmax(0,1fr); gap: 14px; }
  .cart-photo { width: 90px; height: 84px; }
  .cart-price { grid-column: 2; font-size: 14px; margin-top: -8px; }
  .summary-panel { padding: 20px; }
}
@container (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; gap: 10px; }
  .browse-scroll { padding-left: 16px; padding-right: 16px; }
  .menu-section { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
  .screen { padding-left: 16px; padding-right: 16px; }
  .screen-header { padding-top: 14px; padding-bottom: 18px; }
  .screen-header h1 { font-size: 23px; }
  .screen-header p { font-size: 13px; }
  .detail-layout { grid-template-columns: 42% minmax(0,1fr); gap: 14px; }
  .modifier-group { padding-left: 12px; padding-right: 12px; }
  .option-name { font-size: 13px; }
  .option { gap: 9px; }
  .modifier-group legend { align-items: start; }
  .group-hint { font-size: 11px; }
  .cart-layout, .checkout-layout { display: block; overflow-y: auto; }
  .cart-lines, .checkout-fields { overflow: visible; padding-right: 0; }
  .cart-line { grid-template-columns: 100px minmax(0,1fr) auto; padding: 16px 0; }
  .cart-photo { width: 100px; height: 90px; }
  .cart-price { grid-column: auto; margin: 0; }
  .summary-panel { margin-top: 24px; overflow: visible; max-height: none; }
  .checkout-layout .summary-panel { margin-top: 26px; }
}
@container (max-width: 520px) {
  .category-button { font-size: 12px; padding-left: 10px; padding-right: 10px; }
  .bag-button { min-width: 70px; padding: 0 14px; gap: 8px; }
  .bag-button.just-added { min-width: 140px; font-size: 12px; }
  .product-name { min-height: 52px; font-size: 14px; padding: 10px; }
  .popular-badge { top: 8px; left: 8px; font-size: 9px; padding: 4px 6px; }
  .in-bag-badge { bottom: 61px; right: 8px; }
  .screen-header h1 { font-size: 22px; }
  .screen-header p { line-height: 1.5; }
  .detail-layout { display: block; overflow-y: auto; }
  .detail-photo { width: 100%; height: auto; aspect-ratio: 1.6; min-height: 0; margin-bottom: 16px; }
  .modifiers-scroll { overflow: visible; padding-right: 0; }
  .modifier-group legend { font-size: 13px; }
  .option-name { font-size: 14px; }
  .group-hint { font-size: 12px; }
  .action-footer { padding: 12px 0; }
  .cart-line { grid-template-columns: 76px minmax(0,1fr); }
  .cart-photo { width: 76px; height: 74px; }
  .cart-price { grid-column: 2; margin-top: -8px; }
  .cart-info h2 { font-size: 15px; }
  .cart-actions { gap: 14px; }
  .fulfillment-options { gap: 10px; }
  .fulfillment-option { padding: 16px 12px; }
  .fulfillment-option strong { font-size: 14px; }
  .order-confirmation h2 { font-size: 28px; }
}
@container (max-width: 340px) {
  .menu-section { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .vehicle { width: 25%; min-width: 200px; padding: 20px 16px; }
  .vehicle-title h2 { font-size: 21px; }
  .charge-stats strong { font-size: 16px; }
}
@media (max-width: 640px) {
  .vehicle { display: none !important; }
  .demo-toolbar { padding-left: 12px; padding-right: 8px; }
  .toolbar-explainer { display: none; }
  .demo-controls { gap: 4px; }
  .view-switch button { padding-left: 9px; padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  html, body { overflow: visible; height: auto; }
  .topbar, .demo-toolbar, .vehicle, .action-footer, .screen-close, .toast { display: none !important; }
  .experience, .main, .screen, .order-scroll { height: auto; overflow: visible; display: block; }
}
/* Final interaction states. */
.checkout-item-list > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:10px 0; font-size:13px; color:var(--muted); }
.checkout-item-list strong { flex-shrink:0; color:var(--ink); }
.summary-panel .primary-button { margin-top:20px; }
.order-confirmation > .primary-button { margin-top:22px; }
.cart-info .cart-notes { font-style:italic; }
.tax-label { font-size:12px; }
@media (max-height:600px) and (min-width:761px) {
 .screen-header { padding-top:12px; padding-bottom:12px; }
 .screen-header h1 { font-size:22px; }
 .screen-header p { margin-top:6px; font-size:13px; }
 .action-footer { padding-top:10px; padding-bottom:10px; }
 .detail-photo { min-height:0; }
}
.input-group > p.small-copy { margin-top:10px; color:var(--muted); }
