/* AyaPOS QR ordering page. Flat colours only: no gradients, no glows. Tokens: design-system/ayapos/MASTER.md */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans/latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --primary: #4F2A8A; --primary-hover: #432377; --primary-tint: #F3EFF9;
    --text: #18181B; --muted: #52525B; --border: #E4E4E7; --surface: #FFFFFF; --bg: #FAFAFA; --band: #F4F4F5;
    --warning: #B45309; --danger: #B91C1C; --success: #15803D;
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px;
    --r-badge: 4px; --r-control: 6px; --r-panel: 8px;
    --control: 48px; --col: 560px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0; background: var(--band); color: var(--text);
    font: 400 16px/24px 'IBM Plex Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 28px; font-weight: 600; }
h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
button, input, textarea { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; touch-action: manipulation; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.sm { width: 16px; height: 16px; }
svg.ic.lg { width: 24px; height: 24px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Page column: full width on phones, centred column on larger screens. */
.col { width: 100%; max-width: var(--col); margin: 0 auto; }
#app { min-height: 100vh; min-height: 100dvh; background: var(--surface); display: flex; flex-direction: column; }
@media (min-width: 600px) { #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); } }
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--control); padding: 0 var(--s4);
    border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; }
.btn:active { background: var(--band); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #FFFFFF; font-weight: 600; }
.btn.primary:active { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--danger); }
.btn.block { display: flex; width: 100%; }
.btn.compact { min-height: 40px; padding: 0 var(--s3); font-size: 14px; line-height: 20px; }
.btn:disabled { opacity: .5; }
.btn.primary .sep { opacity: .6; }
.link { color: var(--primary); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; gap: var(--s2); }
.link.danger { color: var(--danger); }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-control); color: var(--text); flex: 0 0 auto; }
.iconbtn:active { background: var(--band); }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s2); border: 1px solid var(--border); border-radius: var(--r-badge);
    font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tag.danger { border-color: var(--danger); color: var(--danger); }
.tag.warning { border-color: var(--warning); color: var(--warning); }
.tag.success { border-color: var(--success); color: var(--success); }
.tag.primary { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

/* Store header */
.store { padding: var(--s4) var(--s4) var(--s3); }
.store-id { display: flex; align-items: center; gap: var(--s3); }
.logo { width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--r-panel); border: 1px solid var(--border); background: var(--surface); overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--primary); background: var(--primary-tint); }
.logo img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.store-text { flex: 1 1 auto; min-width: 0; }
.store-text h1 { font-size: 18px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-text p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-pill { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.table-pill strong { font-size: 18px; line-height: 24px; font-weight: 600; }
.store-actions { display: flex; gap: var(--s2); margin-top: var(--s4); }
.store-actions .btn { flex: 1 1 0; min-width: 0; }

/* Notices */
.notice { display: flex; gap: var(--s3); align-items: flex-start; margin: 0 var(--s4) var(--s3); padding: var(--s3) var(--s4);
    border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--r-control); background: var(--surface); font-size: 14px; line-height: 20px; }
.notice svg { color: var(--warning); margin-top: 0; }
.notice.danger { border-left-color: var(--danger); }
.notice.danger svg { color: var(--danger); }
.notice.info { border-left-color: var(--primary); }
.notice.info svg { color: var(--primary); }
.notice.flush { margin-left: 0; margin-right: 0; }

/* Orders banner */
.orders-banner { display: flex; align-items: center; gap: var(--s3); width: calc(100% - 2 * var(--s4)); margin: 0 var(--s4) var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s4);
    border: 1px solid var(--primary); border-radius: var(--r-panel); background: var(--primary-tint); min-height: 64px; }
.orders-banner .grow { flex: 1 1 auto; min-width: 0; }
.orders-banner .head { display: flex; align-items: center; gap: var(--s2); }
.orders-banner strong { font-weight: 600; }
.orders-banner .sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-banner svg { color: var(--primary); }

/* Sticky toolbar: section picker and search */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--s2) var(--s4); }
.toolbar-row { display: flex; align-items: center; gap: var(--s2); }
.section-pill { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s3) 0 var(--s4);
    border: 1px solid var(--border); border-radius: 9999px; background: var(--bg); font-weight: 500; }
.section-pill .label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-pill svg:first-child { color: var(--primary); }
.search-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: var(--s2); height: 44px; padding: 0 var(--s2) 0 var(--s4);
    border: 1px solid var(--primary); border-radius: 9999px; background: var(--surface); }
.search-field input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-field .iconbtn { width: 36px; height: 36px; border-radius: 9999px; }
.search-field input::-webkit-search-cancel-button, .search-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* Menu list */
.menu { flex: 1 1 auto; padding: 0 var(--s4) var(--s6); }
.menu-section { scroll-margin-top: 72px; }
.menu-section > h2 { padding: var(--s6) 0 var(--s1); }
.menu-section > .count { padding-bottom: var(--s2); }
.item { position: relative; display: flex; gap: var(--s3); align-items: stretch; padding: var(--s4) 0; border-bottom: 1px solid var(--border); min-height: 88px; }
.menu-section .item:last-child { border-bottom: 0; }
.item-open { flex: 1 1 auto; min-width: 0; display: flex; gap: var(--s3); align-items: stretch; text-align: left; }
.item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--s1); }
.item-name { font-weight: 600; overflow-wrap: anywhere; }
.item-desc { font-size: 14px; line-height: 20px; color: var(--muted); }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s1); }
.item-price { font-weight: 500; }
.item-price .from { font-weight: 400; color: var(--muted); font-size: 14px; }
.ph { position: relative; width: 96px; height: 96px; flex: 0 0 96px; border-radius: var(--r-panel); background: var(--band); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.failed { display: none; }
.item-side.plain { position: relative; align-self: center; flex: 0 0 auto; }
.item-side.photo { position: absolute; top: var(--s4); right: 0; width: 96px; height: 96px; pointer-events: none; }
.item-side.photo > * { pointer-events: auto; }
.add { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--primary); }
.add::after { content: ''; position: absolute; inset: -6px; }
.add:active { background: var(--primary-tint); }
.item-side.photo .add { position: absolute; right: var(--s1); bottom: var(--s1); box-shadow: 0 1px 3px rgba(24, 24, 27, .18); }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: var(--primary); color: #FFFFFF;
    font-size: 12px; line-height: 22px; font-weight: 600; text-align: center; pointer-events: none; }
.badge[hidden] { display: none; }
.item.sold .item-name, .item.sold .item-desc, .item.sold .item-price { color: #A1A1AA; }
.item.sold .ph img { opacity: .45; filter: grayscale(1); }
.empty { padding: var(--s12) var(--s4); text-align: center; color: var(--muted); }
.empty svg { width: 32px; height: 32px; margin: 0 auto var(--s3); color: #A1A1AA; }
.empty h2 { color: var(--text); margin-bottom: var(--s1); }
.powered { padding: var(--s6) var(--s4) var(--s8); text-align: center; color: #A1A1AA; font-size: 12px; line-height: 16px; font-weight: 500; }

/* Cart bar */
#cartbar { position: sticky; bottom: 0; z-index: 6; }
.cartbar { background: var(--surface); border-top: 1px solid var(--border); padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-bottom)); }
.cartbar-btn { display: flex; align-items: center; gap: var(--s3); width: 100%; }
.cartbar .bag { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.cartbar .bag .badge { top: 0; right: 0; }
.cartbar .total { flex: 1 1 auto; min-width: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.cartbar .go { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 var(--s6); border-radius: var(--r-control); background: var(--primary); color: #FFFFFF; font-weight: 600; }
.cartbar-btn:active .go { background: var(--primary-hover); }

/* Full-screen layers (item, cart, orders) */
.layer { position: fixed; inset: 0; z-index: 20; background: var(--band); display: flex; justify-content: center; }
.page { width: 100%; max-width: var(--col); height: 100%; background: var(--surface); display: flex; flex-direction: column; }
@media (min-width: 600px) { .page { border-left: 1px solid var(--border); border-right: 1px solid var(--border); } }
.page-head { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s1); min-height: 56px; padding: 0 var(--s2); border-bottom: 1px solid var(--border); }
.page-head h2 { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head h2:focus, .item-title h2:focus { outline: 0; }
.page-head .side { padding-right: var(--s2); flex: 0 0 auto; }
.page-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.page-foot { flex: 0 0 auto; border-top: 1px solid var(--border); padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-bottom)); background: var(--surface); }
.page-foot .row { display: flex; gap: var(--s3); align-items: center; }
.page-foot .btn.primary { flex: 1 1 auto; min-width: 0; }
.block { padding: var(--s4); }
.block + .block, .band-top { border-top: 8px solid var(--band); }
@media (prefers-reduced-motion: no-preference) {
    .layer { animation: layer-in .18s ease-out; }
    @keyframes layer-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    .toast { transition: opacity .15s ease, transform .15s ease; }
}

/* Item page */
.hero { position: relative; background: var(--band) center / cover no-repeat; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.round-close { position: absolute; top: var(--s3); left: var(--s3); width: 40px; height: 40px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(24, 24, 27, .18); }
.item-title { display: flex; align-items: baseline; gap: var(--s4); }
.item-title h2 { flex: 1 1 auto; min-width: 0; font-size: 22px; line-height: 28px; overflow-wrap: anywhere; }
.item-title .num { font-size: 18px; line-height: 28px; font-weight: 500; }
.group-head { display: flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--s4) var(--s1); }
.group-head h3 { flex: 1 1 auto; min-width: 0; }
.group.invalid .group-head .tag { border-color: var(--danger); color: var(--danger); }
.group-error { display: none; padding: 0 var(--s4) var(--s1); color: var(--danger); font-size: 14px; line-height: 20px; }
.group.invalid .group-error { display: block; }
.choice { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) var(--s4); border-bottom: 1px solid var(--border); cursor: pointer; }
.group .choice:last-child { border-bottom: 0; }
.choice-text { flex: 1 1 auto; min-width: 0; }
.choice-text .delta { display: block; font-size: 14px; line-height: 20px; color: var(--muted); }
.choice input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--primary); }
.choice.off { color: #A1A1AA; cursor: default; }
.field { display: block; width: 100%; min-height: 72px; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); font-size: 16px; line-height: 24px; resize: none; }
.field:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-control); height: var(--control); flex: 0 0 auto; }
.stepper button { width: 44px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.stepper button:disabled { color: #A1A1AA; }
.stepper .n { min-width: 28px; text-align: center; font-weight: 600; }
.stepper.small { height: 40px; }
.stepper.small button { width: 40px; }

/* Cart */
.line { display: flex; flex-wrap: wrap; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--border); }
.line .thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: var(--r-control); background: var(--band); overflow: hidden; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-main { flex: 1 1 0; min-width: 0; text-align: left; }
.line-issue { flex: 0 0 100%; }
.line-name { font-weight: 600; overflow-wrap: anywhere; }
.line-price { margin-top: var(--s1); font-weight: 500; }
.line-problem { color: var(--danger); font-size: 14px; line-height: 20px; }
.line-fix { display: flex; gap: var(--s2); margin-top: var(--s2); flex-wrap: wrap; }
.totals { padding: var(--s4); }
.totals .r { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s1) 0; }
.totals .r.total { padding-top: var(--s3); margin-top: var(--s2); border-top: 1px solid var(--border); font-size: 18px; line-height: 24px; font-weight: 600; }
.totals .note { margin-top: var(--s3); }

/* Orders */
.status { padding: var(--s4); }
.status-head { display: flex; gap: var(--s3); align-items: flex-start; }
.status-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-panel); background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.status-icon.danger { background: #FEF2F2; color: var(--danger); }
.steps { display: flex; margin-top: var(--s6); }
.step { flex: 1 1 0; min-width: 0; position: relative; text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.step .dot { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto var(--s2); border-radius: 9999px; border: 2px solid var(--border); background: var(--surface); color: transparent;
    display: flex; align-items: center; justify-content: center; }
.step::before { content: ''; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.step:first-child::before { display: none; }
.step.done .dot { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.step.done::before, .step.now::before { background: var(--primary); }
.step.now .dot { border-color: var(--primary); }
.step.now .dot::after { content: ''; width: 10px; height: 10px; border-radius: 9999px; background: var(--primary); }
.step.done, .step.now { color: var(--text); }
.code { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-panel); background: var(--bg); border: 1px solid var(--border); text-align: center; }
.code strong { display: block; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: 2px; }
.pay { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.order-item { display: flex; gap: var(--s3); padding: var(--s2) 0; }
.order-item .q { flex: 0 0 32px; font-weight: 600; }
.order-item .grow { flex: 1 1 auto; min-width: 0; }
.order-card { display: flex; gap: var(--s3); align-items: center; width: calc(100% - 2 * var(--s4)); margin: var(--s3) var(--s4) 0; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); text-align: left; }
.order-card .grow { flex: 1 1 auto; min-width: 0; }
.order-card .top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s1); }
.order-card .top strong { font-weight: 600; }

/* Bottom sheet (section list, confirmations) */
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(24, 24, 27, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--col); max-height: 80vh; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-panel) var(--r-panel) 0 0;
    padding-bottom: var(--safe-bottom); box-shadow: 0 -4px 16px rgba(24, 24, 27, .12); }
.sheet-head { display: flex; align-items: center; min-height: 56px; padding: 0 var(--s2) 0 var(--s4); border-bottom: 1px solid var(--border); }
.sheet-head h2 { flex: 1 1 auto; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-row { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: 0 var(--s4); border-bottom: 1px solid var(--border); }
.sheet-row:last-child { border-bottom: 0; }
.sheet-row .grow { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-row.active { color: var(--primary); font-weight: 600; background: var(--primary-tint); }
.sheet-actions { display: flex; gap: var(--s3); padding: var(--s4); }
.sheet-actions .btn { flex: 1 1 0; min-width: 0; }
.sheet-text { padding: var(--s4) var(--s4) 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); z-index: 40; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
    max-width: calc(100vw - 32px); padding: var(--s3) var(--s4); border-radius: var(--r-control); background: var(--text); color: #FFFFFF; font-size: 14px; line-height: 20px; font-weight: 500; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Loading skeleton and full-page states */
.skel { background: var(--band); border-radius: var(--r-control); }
.skel-row { display: flex; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.skel-row .lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--s2); }
.state { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s2); padding: var(--s12) var(--s6); min-height: 70vh; }
.state svg { width: 40px; height: 40px; color: #A1A1AA; margin-bottom: var(--s2); }
.state .btn { margin-top: var(--s4); min-width: 160px; }
.spin { width: 18px; height: 18px; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #FFFFFF; flex: 0 0 auto; }
.spin.dark { border-color: var(--border); border-top-color: var(--primary); }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin .7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
