/* =====================================================================
   STORE 3331 TOURIST COMPANION — PREMIUM CUSTOMER EXPERIENCE
   Design direction: Market Lane / premium convenience-store travel guide
   8px spacing rhythm · vanilla CSS · no external font or icon dependency
   ===================================================================== */
:root {
  color-scheme: light;
  --canvas: #f5f4ee;
  --surface: #ffffff;
  --surface-soft: #f0f2ed;
  --surface-tint: #e9eee8;
  --ink: #17251f;
  --ink-strong: #102b23;
  --muted: #65736c;
  --muted-soft: #89948e;
  --line: #dfe5df;
  --line-strong: #cbd5cd;
  --forest: #173d32;
  --forest-deep: #102e25;
  --forest-mid: #28654a;
  --forest-soft: #e5eee8;
  --red: #d62f3c;
  --orange: #e78335;
  --gold: #d8ad61;
  --warning-bg: #fff5df;
  --warning-line: #ead4a6;
  --warning-ink: #71501b;
  --success-bg: #e9f3ec;
  --success-ink: #24593a;
  --danger-bg: #fff0ee;
  --danger-ink: #9b332e;
  --shadow-xs: 0 2px 8px rgba(18, 44, 32, .04);
  --shadow-sm: 0 8px 24px rgba(18, 44, 32, .065);
  --shadow-md: 0 18px 48px rgba(18, 44, 32, .11);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --theme-accent: #28654a;
  --theme-accent-soft: #e5eee8;
  --theme-border: #dfe5df;
  --touch-target: 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); -webkit-tap-highlight-color: transparent; }
button, select, input, textarea { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: #dbe9df; color: var(--forest-deep); }
:focus-visible { outline: 3px solid #e6a33f; outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 200; transform: translateY(-160%); padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--forest-deep); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* App frame and masthead */
.app-shell { width: min(100%, 1280px); min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; background: var(--canvas); }
.topbar { position: sticky; top: 0; z-index: 40; padding: max(10px, env(safe-area-inset-top)) 28px 10px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(211,220,213,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-inner { width: min(100%, 1120px); min-height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border-radius: 12px 12px 5px 12px; background: var(--forest); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.brand-mark::before { content: ""; position: absolute; left: 7px; top: 8px; width: 21px; height: 5px; background: var(--orange); transform: skew(-26deg); }
.brand-mark span { position: relative; top: 3px; font-size: 27px; line-height: 1; font-weight: 950; font-style: italic; letter-spacing: -2px; }
.brand-copy { display: grid; min-width: 0; gap: 4px; line-height: 1; }
.brand-copy strong { color: var(--ink-strong); font-size: 16px; font-weight: 900; letter-spacing: -.45px; }
.brand-copy small { color: var(--muted-soft); font-size: 9px; font-weight: 850; letter-spacing: 1.25px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.store-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .9px; white-space: nowrap; }
.store-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: #4b9a64; box-shadow: 0 0 0 3px #e8f2e9; }
.language-control { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.language-control > span { font-size: 10px; font-weight: 800; letter-spacing: .45px; }
.language-control select { min-width: 132px; min-height: 44px; padding: 9px 34px 9px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink-strong); font-size: 12px; font-weight: 800; outline-offset: 2px; }
.main-content { flex: 1; width: min(100%, 1120px); margin: 0 auto; padding: 32px 28px 72px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px max(28px, calc((100vw - 1064px)/2)) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--muted-soft); font-size: 9px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.site-footer span:last-child { text-align: right; }

/* Homepage */
.home-page { display: grid; gap: 28px; }
.hero { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); align-items: center; gap: 28px; padding: 34px 42px; border-radius: var(--radius-2xl); background: var(--forest-deep); color: #fff; box-shadow: var(--shadow-md); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 80% 15%, rgba(220,239,224,.12), transparent 28%), linear-gradient(125deg, transparent 45%, rgba(255,255,255,.035) 45% 46%, transparent 46%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -95px; bottom: -210px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.02); }
.hero-content { position: relative; z-index: 2; max-width: 610px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #c8ddce; font-size: 9px; font-weight: 900; letter-spacing: 1.45px; text-transform: uppercase; }
.eyebrow-rule { width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.hero h1 { max-width: 650px; margin: 17px 0 13px; color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: .99; letter-spacing: -2.3px; font-weight: 900; text-wrap: balance; }
.hero p { max-width: 540px; margin: 0; color: #d8e6dc; font-size: 15px; line-height: 1.65; }
.hero-foot { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: #d1e3d7; font-size: 10px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.hero-foot-mark { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.09); color: #d7efdc; font-size: 11px; }
.hero-help { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 18px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.075); color: #fff; font-size: 11px; font-weight: 800; transition: background .16s ease, transform .16s ease; }
.hero-help:hover { background: rgba(255,255,255,.14); }
.hero-help span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hero-art { position: relative; align-self: stretch; min-height: 220px; }
.hero-art-orbit { position: absolute; width: 270px; height: 270px; right: 25px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.035), 0 0 0 47px rgba(255,255,255,.025); }
.hero-art-panel { position: absolute; overflow: hidden; display: grid; place-items: center; background: #f3ead8; border: 7px solid rgba(255,255,255,.88); box-shadow: 0 20px 36px rgba(0,0,0,.22); }
.hero-art-panel img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-panel-main { right: 48px; top: 18px; width: 220px; height: 174px; border-radius: 18px 18px 6px 18px; transform: rotate(4deg); }
.hero-art-panel-small { right: 8px; bottom: 10px; width: 116px; height: 116px; border-radius: 50%; transform: rotate(-9deg); }
.hero-art-note { position: absolute; left: 3px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.19); border-radius: 9px; background: rgba(9,35,26,.55); backdrop-filter: blur(8px); }
.hero-art-note span { color: #f3bd74; font-size: 20px; font-weight: 900; }
.hero-art-note small { color: #e4eee7; font-size: 10px; font-weight: 750; letter-spacing: .35px; }
.promotion-section { display: grid; gap: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 1px; }
.section-head h2 { margin: 5px 0 0; color: var(--ink-strong); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.12; letter-spacing: -.85px; font-weight: 900; }
.section-kicker { color: var(--theme-accent); font-size: 9px; font-weight: 900; letter-spacing: 1.25px; }
.section-aside { max-width: 240px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: right; line-height: 1.4; }
.promo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.promo-card { min-width: 0; min-height: 250px; display: grid; grid-template-columns: minmax(155px,.84fr) minmax(0,1.16fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.promo-card:hover { transform: translateY(-3px); border-color: #c5d2c8; box-shadow: var(--shadow-md); }
.promo-media { position: relative; min-width: 0; min-height: 100%; overflow: hidden; display: grid; place-items: center; background: #f0eadf; }
.promo-media::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent,rgba(24,35,28,.36)); pointer-events: none; }
.promo-preview { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.promo-card:hover .promo-preview { transform: scale(1.045); }
.promo-media.image-failed::before { content: "7"; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px; background: var(--forest); color: white; font-size: 48px; font-weight: 950; }
.promo-media-label { position: absolute; z-index: 1; left: 12px; bottom: 11px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.38); }
.promo-tag { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 8px; border-radius: 5px; background: #fff0d2; color: #8b4e20; font-size: 9px; font-weight: 900; }
.promo-body { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 20px 18px 17px; }
.promo-title-line h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 0; color: var(--ink-strong); font-size: 20px; font-weight: 900; letter-spacing: -.65px; }
.promo-title-line h3 span { color: var(--muted-soft); font-size: 11px; font-weight: 750; letter-spacing: .2px; }
.promo-price-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 18px; }
.promo-price-row > div > small { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.promo-price { margin-top: 2px; color: var(--red); font-size: clamp(28px, 3.2vw, 37px); line-height: 1; font-weight: 950; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; }
.promo-includes { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 750; white-space: nowrap; }
.promo-includes b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-soft); color: var(--forest); font-size: 9px; }
.promo-includes i { color: var(--orange); font-style: normal; font-weight: 900; }
.promo-detail { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pricing-status-note { display: block; margin: 12px 0 0; padding: 8px 10px; border: 1px solid var(--warning-line); border-radius: 8px; background: var(--warning-bg); color: var(--warning-ink); font-size: 10px; font-weight: 700; line-height: 1.45; }
.promo-body .primary-button { margin-top: auto; }
.primary-button, .secondary-button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 850; line-height: 1.2; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.primary-button { width: 100%; color: #fff; background: var(--forest); box-shadow: 0 4px 0 #0f3026; }
.primary-button:hover { background: #205440; box-shadow: 0 5px 0 #0f3026, 0 8px 18px rgba(18,55,38,.13); }
.primary-button:active, .secondary-button:active, .ghost-button:active, .product-card:active, .list-card:active { transform: scale(.985); }
.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; transform: none; }
.secondary-button { border-color: var(--line-strong); background: #fff; color: var(--forest); }
.secondary-button:hover { border-color: var(--theme-accent); background: var(--theme-accent-soft); }
.ghost-button { border-color: var(--line); background: transparent; color: var(--forest); }
.ghost-button:hover { background: var(--surface-soft); }
.poster-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin-top: 7px; color: var(--theme-accent); font-size: 10px; font-weight: 850; text-decoration: none; }
.poster-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 3-step explainer and trust note */
.quick-flow { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.quick-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.quick-flow-head h2 { margin: 5px 0 0; color: var(--ink-strong); font-size: 18px; letter-spacing: -.45px; }
.mini-eyebrow { color: var(--theme-accent); font-size: 9px; font-weight: 900; letter-spacing: 1.05px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--forest); font-size: 11px; font-weight: 850; }
.text-button:hover { background: var(--theme-accent-soft); }
.quick-flow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.quick-flow-item { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 11px; row-gap: 4px; padding: 12px 13px; border: 1px solid #edf0ec; border-radius: 11px; background: #f8f9f6; }
.quick-flow-item > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d4e2d8; border-radius: 9px; background: #e8f0e9; color: var(--forest); font-size: 10px; font-weight: 950; }
.quick-flow-item strong { color: var(--ink-strong); font-size: 11px; line-height: 1.2; }
.quick-flow-item small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.home-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.72); color: var(--muted); }
.home-note p { margin: 0; font-size: 11px; line-height: 1.6; }
.home-note strong { color: var(--ink-strong); }
.home-note-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--theme-accent-soft); color: var(--theme-accent); font-size: 11px; font-weight: 900; }

/* Combo builder */
.builder-top { margin: 0 0 18px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px 8px 0; border: 0; background: transparent; color: var(--theme-accent); font-size: 11px; font-weight: 850; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.builder-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 9px; }
.builder-heading h1 { margin: 0 0 5px; color: var(--ink-strong); font-size: clamp(25px,3.5vw,33px); line-height: 1.05; letter-spacing: -1px; font-weight: 900; }
.builder-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.price-pill { min-width: 128px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: right; box-shadow: var(--shadow-xs); }
.price-pill small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.price-pill strong { display: block; color: var(--red); font-size: 22px; line-height: 1; font-weight: 950; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.builder-price-status { max-width: 640px; }
.help-inline { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 9px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--theme-accent); font-size: 10px; font-weight: 850; }
.help-inline:hover { background: var(--theme-accent-soft); }
.stepper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 20px 0 12px; }
.step-chip { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); text-align: left; transition: background .18s ease, border-color .18s ease; }
.step-chip > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid var(--line); border-radius: 7px; background: #f6f7f4; color: var(--muted); font-size: 9px; font-weight: 900; }
.step-chip strong { overflow: hidden; color: inherit; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.step-chip.active { border-color: var(--forest); background: var(--forest); color: #fff; box-shadow: 0 4px 10px rgba(23,61,50,.12); }
.step-chip.active > span { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.step-chip.done { border-color: #cbdccf; background: #edf4ee; color: var(--forest); }
.step-chip.done > span { border-color: #c9dbcd; background: #dbe9de; color: var(--forest); }
.step-chip:disabled { cursor: default; opacity: .6; }
.tap-guidance { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #e5eae4; border-radius: 9px; background: #f8faf7; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tap-guidance-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 7px; background: var(--theme-accent-soft); color: var(--theme-accent); font-size: 13px; }
.content-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.content-panel h2 { margin: 0 0 5px; color: var(--ink-strong); font-size: 21px; line-height: 1.15; letter-spacing: -.6px; font-weight: 900; }
.panel-hint { max-width: 730px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.group-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; color: var(--ink-strong); font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.group-label small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.product-card { position: relative; width: 100%; min-width: 0; min-height: 198px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.product-card:hover { border-color: #b5c7ba; box-shadow: var(--shadow-sm); }
.product-card.selected { border: 2px solid var(--theme-accent); padding: 9px; background: #f5f9f5; box-shadow: 0 0 0 3px var(--theme-accent-soft); }
.product-card.selected::after { content: "✓"; position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--theme-accent); color: #fff; font-size: 12px; font-weight: 950; box-shadow: var(--shadow-xs); }
.product-thumb { position: relative; width: 100%; height: 112px; overflow: hidden; display: grid; place-items: center; border-radius: 8px; background: #f3f0e8; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb.emoji { color: var(--forest); font-size: 34px; }
.product-thumb.image-failed::before { content: attr(data-fallback); color: var(--forest); font-size: 31px; }
.product-name { padding-right: 20px; color: var(--ink-strong); font-size: 11px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
.product-original { display: block; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.product-detail { color: var(--muted); font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.price-tag { display: inline-flex; align-items: center; width: fit-content; margin-top: auto; padding: 5px 7px; border-radius: 5px; background: #fff1db; color: #85511e; font-size: 9px; font-weight: 900; }
.list-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.list-card { width: 100%; min-width: 0; min-height: 68px; display: grid; grid-template-columns: 46px minmax(0,1fr) 23px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.list-card:hover { border-color: #b5c7ba; }
.list-card.selected { border: 2px solid var(--theme-accent); padding: 9px 11px; background: #f5f9f5; box-shadow: 0 0 0 3px var(--theme-accent-soft); }
.list-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: #f3f0e8; color: var(--forest); font-size: 21px; }
.list-copy { min-width: 0; }
.list-copy strong { display: block; color: var(--ink-strong); font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.list-copy em { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; line-height: 1.3; }
.list-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.radio-dot { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid #bdc9c1; border-radius: 50%; color: #fff; font-size: 11px; }
.selected .radio-dot { border-color: var(--theme-accent); background: var(--theme-accent); }
.source-thumb { height: 96px; margin: 4px 0 14px; overflow: hidden; border-radius: 9px; background: #f5efe2; }
.source-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sticky-action { position: sticky; bottom: 0; z-index: 30; margin: 14px -28px -72px; padding: 12px 28px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(210,219,211,.92); background: rgba(250,250,247,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.sticky-inner { width: min(100%, 1000px); min-height: 64px; margin: 0 auto; display: grid; grid-template-columns: minmax(100px,.7fr) minmax(160px,1.2fr) minmax(145px,.9fr); align-items: center; gap: 14px; }
.sticky-total small { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.sticky-total strong { display: block; margin-top: 3px; color: var(--red); font-size: 23px; line-height: 1; font-weight: 950; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.sticky-selection { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sticky-selection-state { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 9px; font-weight: 800; }
.sticky-selection small { width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.sticky-inner .primary-button { min-height: 52px; }

/* Cashier handoff */
.summary-card { width: min(100%, 720px); min-height: 0; margin: 0 auto; padding: 24px 26px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); background: var(--forest-deep); color: #fff; box-shadow: var(--shadow-md); overflow-wrap: anywhere; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.17); color: #c7dbce; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.summary-price { margin: 19px 0 3px; color: #fff; font-size: clamp(44px,8vw,62px); line-height: .95; font-weight: 950; letter-spacing: -2.4px; font-variant-numeric: tabular-nums; }
.summary-caption { margin: 0 0 18px; color: #c5d9cc; font-size: 11px; line-height: 1.5; }
.summary-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.15); }
.summary-line > div { min-width: 0; }
.summary-line small { display: block; margin-bottom: 4px; color: #bad0c1; font-size: 9px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; line-height: 1.4; }
.summary-line strong { display: block; color: #fff; font-size: 13px; line-height: 1.35; }
.summary-line .amount { color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-line.savings-line { color: #d7f0dc; }
.summary-line.savings-line .amount, .summary-line.savings-line strong { color: #c9f0d2; }
.summary-card .pricing-status-note { margin-top: 15px; border-color: rgba(245,205,120,.3); background: rgba(255,242,211,.1); color: #f5dfb6; }
.cashier-callout { margin-top: 19px; padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.09); color: #fff; text-align: center; }
.cashier-callout strong { display: block; font-size: 15px; }
.cashier-callout small { display: block; margin-top: 5px; color: #ccded2; font-size: 10px; line-height: 1.5; }
.cashier-actions { width: min(100%,720px); margin: 14px auto 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.cashier-actions .primary-button { grid-column: 1 / -1; }
.cashier-actions .ghost-button { grid-column: 1 / -1; }
.price-disclaimer { width: min(100%,720px); margin: 12px auto 0; color: var(--muted); font-size: 10px; line-height: 1.55; text-align: center; }
.summary-error { background: #fff; border-color: #eed4d1; color: var(--danger-ink); }
.summary-error .summary-head { border-color: #eed4d1; color: var(--danger-ink); }
.summary-error p { line-height: 1.55; }
body.cashier-mode { background: #f1f2ed; }
body.cashier-mode .app-shell { width: min(100%, 860px); background: transparent; }
body.cashier-mode .topbar { position: relative; background: rgba(255,255,255,.94); }
body.cashier-mode .site-footer, body.cashier-mode .ambient-player { display: none !important; }
body.cashier-mode .main-content { padding-top: 22px; }
body.cashier-mode .builder-heading { margin-bottom: 16px; }

/* Help dialog and overlays */
.help-inline:focus-visible, .text-button:focus-visible, .step-chip:focus-visible, .product-card:focus-visible, .list-card:focus-visible { outline: 3px solid #e6a33f; outline-offset: 3px; }
.help-dialog { width: min(480px, calc(100vw - 28px)); max-width: 480px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 28px 80px rgba(10,30,20,.28); }
.help-dialog::backdrop { background: rgba(10,25,18,.52); backdrop-filter: blur(3px); }
.help-sheet { padding: 22px; }
.help-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-kicker { color: var(--theme-accent); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.help-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--ink); font-size: 24px; line-height: 1; }
.help-sheet h2 { margin: 16px 0 14px; color: var(--ink-strong); font-size: 27px; line-height: 1.05; letter-spacing: -.9px; }
.help-step { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.help-step > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--forest); color: #fff; font-size: 10px; font-weight: 950; }
.help-step strong { color: var(--ink-strong); font-size: 13px; }
.help-step p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.help-sheet .primary-button { margin-top: 12px; min-height: 52px; }

/* Ambient player: secondary utility, never obscures cashier or sticky choices */
.ambient-player { position: relative; z-index: 50; display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; justify-content: center; gap: 9px; pointer-events: auto; }
.ambient-dock { pointer-events: auto; min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(255,255,255,.65); border-radius: 9px; background: var(--forest); color: #fff; box-shadow: 0 8px 24px rgba(10,30,20,.19); font-size: 11px; font-weight: 900; transition: width .2s ease, padding .2s ease, transform .2s ease, box-shadow .2s ease; }
.ambient-note { font-size: 17px; line-height: 1; }
.ambient-dock.is-compact { width: 48px; min-width: 48px; padding: 0; }
.ambient-dock.is-compact .ambient-dock-label { display: none; }
.ambient-dock.is-open { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,30,20,.24); }
.ambient-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 100; pointer-events: auto; width: min(320px,calc(100vw - 28px)); padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-md); transform-origin: bottom right; animation: ambient-rise .2s ease-out both; }
.ambient-panel[hidden] { display: none; }
.ambient-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ambient-panel-head div { display: grid; gap: 5px; }
.ambient-panel-head small { color: var(--theme-accent); font-size: 8px; font-weight: 950; letter-spacing: 1px; }
.ambient-panel-head strong { color: var(--ink-strong); font-size: 15px; }
.ambient-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--ink); font-size: 23px; line-height: 1; }
#ambientStatus { margin: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ambient-empty { display: grid; justify-items: center; gap: 8px; padding: 18px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #f8f9f6; text-align: center; }
.ambient-empty > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--theme-accent-soft); color: var(--theme-accent); font-size: 19px; }
.ambient-empty strong { color: var(--ink-strong); font-size: 12px; }
.ambient-empty small { max-width: 240px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ambient-tracks { display: grid; gap: 7px; max-height: 180px; overflow: auto; }
.ambient-track { min-height: 44px; display: grid; grid-template-columns: 26px minmax(0,1fr) 14px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; font-size: 11px; }
.ambient-track.active { border-color: var(--theme-accent); background: var(--theme-accent-soft); }
.ambient-track > span:first-child { color: var(--theme-accent); font-size: 16px; text-align: center; }
.ambient-track small { color: var(--theme-accent); }
.ambient-controls { display: flex; gap: 8px; margin-top: 10px; }
.ambient-controls[hidden] { display: none; }
.ambient-controls button { min-height: 42px; flex: 1; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--forest); font-size: 12px; font-weight: 850; }
.ambient-controls button:nth-child(2) { border-color: var(--forest); background: var(--forest); color: #fff; }
.ambient-footnote { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }

/* Cultural accents: an accent system, not a change to information architecture */
body[data-culture="ms-MY"] { --theme-accent: #315a42; --theme-accent-soft: #edf1e5; --theme-border: #dfd4bf; }
body[data-culture="ms-MY"] .hero { background: linear-gradient(118deg,#173d32 0%,#315b43 100%); border-radius: 22px 22px 14px 22px; }
body[data-culture="ms-MY"] .hero::before { background: repeating-linear-gradient(45deg,transparent 0 21px,rgba(226,198,143,.1) 22px 23px,transparent 24px 44px); }
body[data-culture="ms-MY"] .brand-mark { box-shadow: inset 0 -4px 0 rgba(0,0,0,.16), 0 0 0 2px #dbc698; }
body[data-culture="ms-MY"] .promo-card { border-color: #e5dac5; }
body[data-culture="ms-MY"] .primary-button { border-radius: 10px 10px 5px 10px; }
body[data-culture="zh-CN"] { --theme-accent: #a9362d; --theme-accent-soft: #faeee5; --theme-border: #ead6c7; }
body[data-culture="zh-CN"] .hero { background: linear-gradient(125deg,#7f2827 0%,#a9362d 68%,#b96a38 100%); }
body[data-culture="zh-CN"] .hero::before { background: radial-gradient(circle at 22px 22px,rgba(255,231,194,.2) 1.4px,transparent 1.8px); background-size: 30px 30px; }
body[data-culture="zh-CN"] .brand-mark { background: #a9362d; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16), 0 0 0 2px #dfbd79; }
body[data-culture="zh-TW"] { --theme-accent: #246a6c; --theme-accent-soft: #e8f2ef; --theme-border: #d3e3df; }
body[data-culture="zh-TW"] .hero { background: linear-gradient(125deg,#173d46 0%,#246a6c 72%,#b66a50 100%); }
body[data-culture="zh-TW"] .hero::before { background: repeating-linear-gradient(0deg,transparent 0 19px,rgba(255,255,255,.1) 20px 21px,transparent 22px 40px); }
body[data-culture="ja"] { --theme-accent: #324b73; --theme-accent-soft: #edf1f7; --theme-border: #dbe2eb; }
body[data-culture="ja"] .hero { background: linear-gradient(125deg,#1c3152,#324b73); border-radius: 12px; }
body[data-culture="ja"] .brand-mark { background: #324b73; border-radius: 7px; box-shadow: none; }
body[data-culture="ja"] .primary-button { border-radius: 7px; }
body[data-culture="ko"] { --theme-accent: #5b4b75; --theme-accent-soft: #f2edf7; --theme-border: #e6ddeb; }
body[data-culture="ko"] .hero { background: linear-gradient(125deg,#3f375a,#66547d 72%,#a86d70 100%); border-radius: 22px 22px 14px 22px; }
body[data-culture="ko"] .brand-mark { background: #5b4b75; border-radius: 13px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.13), 0 0 0 2px #e9dce9; }

/* Focus, selection and state */
.product-card, .list-card, .primary-button, .secondary-button, .ghost-button, .step-chip, .text-button, .help-close, .ambient-dock, .ambient-close { touch-action: manipulation; }
.product-card, .list-card, .primary-button, .secondary-button, .ghost-button, .step-chip, .language-control select, .ambient-dock, .ambient-close, .help-close { min-height: var(--touch-target); }
.product-card, .list-card { -webkit-user-select: none; user-select: none; }
.screen-enter { animation: screen-enter .22s cubic-bezier(.2,.7,.2,1) both; }
@keyframes screen-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ambient-rise { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-art-panel-main { animation: hero-float 7s ease-in-out infinite; }
  .hero-art-panel-small { animation: hero-float 6s ease-in-out -1.8s infinite; }
  @keyframes hero-float { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Responsive layout */
@media (max-width: 900px) {
  .main-content { padding: 24px 20px 64px; }
  .hero { min-height: 280px; padding: 30px; gap: 18px; }
  .hero-art-panel-main { right: 28px; width: 190px; height: 154px; }
  .hero-art-panel-small { right: 0; width: 100px; height: 100px; }
  .promo-card { grid-template-columns: minmax(130px,.8fr) minmax(0,1.2fr); }
  .promo-body { padding: 17px 15px 14px; }
  .option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .topbar { padding-right: 16px; padding-left: 16px; }
  .topbar-inner { min-height: 54px; }
  .store-indicator { display: none; }
  .header-tools { gap: 9px; }
  .ambient-dock { min-width: 44px; min-height: 44px; padding: 0 11px; }
  .ambient-dock.is-compact { width: 44px; min-width: 44px; }
  .language-control { gap: 0; }
  .language-control > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .language-control select { min-width: 118px; max-width: 152px; }
  .main-content { padding: 18px 16px 58px; }
  .home-page { gap: 22px; }
  .hero { min-height: 0; grid-template-columns: minmax(0,1fr) 118px; gap: 4px; padding: 23px 19px 21px; border-radius: 17px; }
  .hero h1 { margin: 13px 0 9px; font-size: clamp(28px,7vw,38px); letter-spacing: -1.2px; }
  .hero p { max-width: 370px; font-size: 12px; line-height: 1.55; }
  .hero-foot { margin-top: 16px; font-size: 8px; }
  .hero-help { margin-top: 12px; min-height: 40px; }
  .hero-art { min-height: 185px; }
  .hero-art-orbit { width: 150px; height: 150px; right: -22px; top: 46%; }
  .hero-art-panel-main { top: 33px; right: 2px; width: 116px; height: 106px; border-width: 5px; border-radius: 12px; }
  .hero-art-panel-small { right: -8px; bottom: 2px; width: 62px; height: 62px; border-width: 4px; }
  .hero-art-note { left: -16px; bottom: 5px; gap: 6px; padding: 7px 8px; }
  .hero-art-note span { font-size: 15px; }
  .hero-art-note small { font-size: 8px; }
  .section-head { align-items: flex-end; gap: 8px; }
  .section-head h2 { font-size: 20px; }
  .section-aside { max-width: 115px; font-size: 8px; }
  .promo-grid { grid-template-columns: 1fr; gap: 11px; }
  .promo-card { min-height: 0; grid-template-columns: 112px minmax(0,1fr); border-radius: 13px; }
  .promo-media { min-height: 100%; }
  .promo-preview { min-height: 100%; height: 100%; object-fit: cover; }
  .promo-media-label { left: 8px; bottom: 8px; font-size: 7px; letter-spacing: .45px; }
  .promo-tag { top: 8px; left: 8px; font-size: 7px; padding: 5px 6px; }
  .promo-body { padding: 12px 12px 10px; }
  .promo-title-line h3 { gap: 5px; font-size: 16px; }
  .promo-title-line h3 span { font-size: 9px; }
  .promo-price-row { margin-top: 10px; align-items: flex-end; }
  .promo-price-row > div > small { font-size: 8px; }
  .promo-price { font-size: 27px; }
  .promo-includes { display: none; }
  .pricing-status-note { margin-top: 8px; padding: 6px 7px; font-size: 9px; }
  .promo-body .primary-button { min-height: 42px; margin-top: 10px; padding: 9px 10px; font-size: 10px; }
  .poster-link { min-height: 32px; justify-content: flex-start; margin-top: 3px; font-size: 9px; }
  .quick-flow { padding: 15px 13px 14px; }
  .quick-flow-head { align-items: center; margin-bottom: 12px; }
  .quick-flow-head h2 { font-size: 16px; }
  .quick-flow-grid { gap: 6px; }
  .quick-flow-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 110px; padding: 9px 8px; }
  .quick-flow-item > span { width: 26px; height: 26px; flex-basis: 26px; }
  .quick-flow-item strong { font-size: 9px; }
  .quick-flow-item small { font-size: 8px; line-height: 1.35; }
  .home-note { padding: 11px 12px; }
  .home-note p { font-size: 10px; }
  .builder-heading { align-items: flex-end; gap: 8px; }
  .builder-heading h1 { font-size: 24px; }
  .builder-heading p { font-size: 10px; }
  .price-pill { min-width: 94px; padding: 8px 9px; }
  .price-pill strong { font-size: 18px; }
  .stepper { gap: 5px; margin: 14px 0 10px; }
  .step-chip { gap: 6px; padding: 8px 7px; }
  .step-chip > span { width: 22px; height: 22px; flex-basis: 22px; }
  .step-chip strong { font-size: 9px; }
  .content-panel { padding: 17px 13px; }
  .content-panel h2 { font-size: 19px; }
  .panel-hint { font-size: 10px; }
  .option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .product-card { min-height: 166px; padding: 8px; gap: 6px; }
  .product-card.selected { padding: 7px; }
  .product-thumb { height: 88px; }
  .product-name { font-size: 10px; }
  .product-detail, .product-original { font-size: 8px; }
  .list-options { grid-template-columns: 1fr; }
  .sticky-action { margin: 12px -16px -58px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); }
  .sticky-inner { min-height: 58px; grid-template-columns: 74px minmax(0,1fr) 100px; gap: 8px; }
  .sticky-total strong { font-size: 20px; }
  .sticky-selection { gap: 4px; }
  .sticky-selection-state { padding: 3px 5px; font-size: 8px; }
  .sticky-selection small { font-size: 8px; }
  .sticky-inner .primary-button { min-height: 48px; padding: 9px 8px; font-size: 10px; }
  .summary-card { padding: 19px 17px; border-radius: 13px; }
  .summary-head { font-size: 8px; }
  .summary-line strong, .summary-line .amount { font-size: 12px; }
  .cashier-actions { gap: 8px; }
  .cashier-actions .primary-button, .cashier-actions .secondary-button, .cashier-actions .ghost-button { min-height: 46px; font-size: 11px; }
  body.cashier-mode .main-content { padding: 14px 14px 26px; }
  .ambient-player { position: relative; right: auto; bottom: auto; }
  body.cashier-mode .ambient-player { display: none; }
}
@media (max-width: 370px) {
  .topbar-inner { gap: 6px; }
  .brand { gap: 8px; }
  .brand-copy { white-space: nowrap; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 6.5px; letter-spacing: .55px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .header-tools { gap: 6px; }
  .language-control select { width: 106px; min-width: 100px; max-width: 106px; padding: 7px 22px 7px 8px; font-size: 10px; }
  .ambient-dock { width: 40px; min-width: 40px; min-height: 40px; padding: 0; }
  .ambient-dock.is-compact { width: 40px; min-width: 40px; }
  .hero { grid-template-columns: minmax(0,1fr) 94px; padding: 20px 15px; }
  .hero h1 { font-size: 27px; }
  .hero-art-panel-main { width: 100px; height: 94px; right: 0; }
  .hero-art-panel-small { width: 54px; height: 54px; }
  .hero-art-note { left: -19px; }
  .promo-card { grid-template-columns: 96px minmax(0,1fr); }
  .promo-price { font-size: 25px; }
  .sticky-inner { grid-template-columns: 66px minmax(0,1fr) 86px; gap: 6px; }
  .sticky-total strong { font-size: 18px; }
  .sticky-inner .primary-button { font-size: 9px; }
  .quick-flow-item small { font-size: 7px; }
}
@media (min-width: 1000px) {
  .builder-top, .stepper, .tap-guidance, .content-panel { width: min(100%, 960px); margin-left: auto; margin-right: auto; }
  .sticky-action { margin-left: calc((1120px - 100vw)/2); margin-right: calc((1120px - 100vw)/2); }
}
@media (forced-colors: active) {
  .product-card.selected, .list-card.selected, .step-chip.active { outline: 2px solid Highlight; }
  .primary-button, .secondary-button, .ghost-button, .nav-item { border: 1px solid ButtonText; }
}
@media print {
  .topbar, .site-footer, .ambient-player, .sticky-action, .cashier-actions, .hero-help { display: none !important; }
  body, .app-shell { background: #fff; }
  .main-content { width: 100%; padding: 0; }
}

/* V1.5 field-test panel support */
.field-test-launcher { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--forest); font-size: 10px; font-weight: 900; box-shadow: var(--shadow-sm); }
.field-test-panel { position: fixed; left: 12px; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 85; width: min(360px,calc(100vw - 24px)); max-height: min(74vh,620px); overflow: auto; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.field-test-panel[hidden] { display: none; }
.field-test-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-test-head strong { font-size: 14px; }
.field-test-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--ink); font-size: 22px; }
.field-test-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.field-test-meta div { min-width: 0; padding: 9px; border-radius: 8px; background: var(--surface-soft); }
.field-test-meta small { display: block; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.field-test-meta strong { display: block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.field-test-checks { display: grid; gap: 7px; margin: 12px 0; }
.field-test-check { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; line-height: 1.4; }
.field-test-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--forest); }
.field-test-status { padding: 9px 10px; border-radius: 8px; background: var(--surface-soft); font-size: 10px; line-height: 1.45; }
.field-test-status strong { color: var(--forest); }
.field-test-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.field-test-actions button { min-height: 44px; padding: 8px; border: 1px solid var(--forest); border-radius: 8px; background: var(--forest); color: #fff; font-size: 10px; font-weight: 850; }
.field-test-actions button.secondary { background: #fff; color: var(--forest); }
.field-test-foot { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; line-height: 1.45; }
@media (max-width: 370px) { .field-test-panel { left: 8px; width: calc(100vw - 16px); } }
