/* Aisle (המדף) — light boutique. Navy + blush + powder-blue on soft grey. RTL. */
:root {
  --bg:        #eef1f6;
  --bg-2:      #e4e9f1;
  --surface:   #ffffff;
  --surface-2: #f5f7fb;
  --line:      #e2e7f0;
  --ink:       #1e2733;
  --ink-2:     #5a6b80;
  --ink-3:     #94a2b5;
  --accent:    #22405e;
  --accent-2:  #35618c;
  --accent-soft: rgba(34,64,94,.09);
  --blush:     #f7cac9;
  --blush-ink: #b56b68;
  --powder:    #b4c7dd;
  --on-accent: #ffffff;
  --ok:        #2c3e50;
  --danger:    #d9695f;
  --disp:      'Suez One', 'Rubik', serif;
  --ui:        'Rubik', system-ui, 'Heebo', sans-serif;
  --r: 16px; --r-lg: 22px;
  --sh: 0 12px 30px rgba(44,62,80,.13);
  --sh-sm: 0 3px 12px rgba(44,62,80,.07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --z1:#5a9e5a; --z2:#c79a4a; --z3:#4a90c4; --z4:#c88a4e; --z5:#3fabbc; --z6:#9a7bc4;
  --z7:#c0625e; --z8:#cf7fa8; --z9:#2fa89a;
  --nav-bg: rgba(255,255,255,.9);
  --glow-a: rgba(150,180,215,.55); --glow-b: rgba(240,180,178,.45);
  --toast-bg: #2c3e50; --toast-ink: #ffffff;
  --scrim: rgba(44,62,80,.32);
}
:root[data-skin='blush']  { --accent:#d17b78; --accent-2:#b8615e; --accent-soft:rgba(209,123,120,.12); }
:root[data-skin='powder'] { --accent:#4f7fb5; --accent-2:#3d689a; --accent-soft:rgba(79,127,181,.12); }
:root[data-skin='sage']   { --accent:#5b9068; --accent-2:#477653; --accent-soft:rgba(91,144,104,.12); }
:root[data-skin='plum']   { --accent:#7a5aa8; --accent-2:#63468c; --accent-soft:rgba(122,90,168,.12); }
:root[data-skin='ocean']  { --accent:#1f7a8c; --accent-2:#16606f; --accent-soft:rgba(31,122,140,.12); }
:root[data-skin='sunset'] { --accent:#d1743f; --accent-2:#b25c2c; --accent-soft:rgba(209,116,63,.12); }
:root[data-skin='forest'] { --accent:#2f6b4f; --accent-2:#23543d; --accent-soft:rgba(47,107,79,.12); }
:root[data-skin='cocoa']  { --accent:#7a5c48; --accent-2:#614635; --accent-soft:rgba(122,92,72,.12); }
:root[data-skin='slate']  { --accent:#4a5a6b; --accent-2:#374553; --accent-soft:rgba(74,90,107,.12); }
:root[data-skin='berry']  { --accent:#a8437a; --accent-2:#8b3363; --accent-soft:rgba(168,67,122,.12); }
:root[data-skin='mint']   { --accent:#2b9179; --accent-2:#1f7562; --accent-soft:rgba(43,145,121,.12); }

/* ── dark mode ── (after skins so the dark accent wins; skin+dark pairs below) */
:root[data-theme='dark'] {
  --bg:#111620; --bg-2:#171d29; --surface:#1b2331; --surface-2:#232d3d; --line:#2d3849;
  --ink:#eaeff7; --ink-2:#a9b7c9; --ink-3:#748399;
  --accent:#7fb2e8; --accent-2:#5e93cf; --accent-soft:rgba(127,178,232,.16);
  --on-accent:#121820; --danger:#e0796f;
  --nav-bg:rgba(30,36,44,.92);
  --glow-a:rgba(90,130,185,.42); --glow-b:rgba(150,95,112,.34);
  --toast-bg:#e9edf2; --toast-ink:#14181d;
  --scrim: rgba(0,0,0,.55);
  --sh: 0 12px 30px rgba(0,0,0,.5); --sh-sm: 0 3px 12px rgba(0,0,0,.35);
  --z1:#6fb86f; --z2:#dbb063; --z3:#63a8dc; --z4:#dda067; --z5:#56c3d4; --z6:#b192dc;
  --z7:#d87b77; --z8:#e298bf; --z9:#45c0b2;
}
:root[data-theme='dark'][data-skin='blush']  { --accent:#e8a5a2; --accent-2:#cf8b88; --accent-soft:rgba(232,165,162,.15); }
:root[data-theme='dark'][data-skin='powder'] { --accent:#8fb6e0; --accent-2:#7099c7; --accent-soft:rgba(143,182,224,.15); }
:root[data-theme='dark'][data-skin='sage']   { --accent:#8dc49a; --accent-2:#72a880; --accent-soft:rgba(141,196,154,.15); }
:root[data-theme='dark'][data-skin='plum']   { --accent:#b79ce0; --accent-2:#9b7fc7; --accent-soft:rgba(183,156,224,.15); }
:root[data-theme='dark'][data-skin='ocean']  { --accent:#63bccd; --accent-2:#48a0b1; --accent-soft:rgba(99,188,205,.15); }
:root[data-theme='dark'][data-skin='sunset'] { --accent:#eda471; --accent-2:#d68a56; --accent-soft:rgba(237,164,113,.15); }
:root[data-theme='dark'][data-skin='forest'] { --accent:#6fb98e; --accent-2:#559c74; --accent-soft:rgba(111,185,142,.15); }
:root[data-theme='dark'][data-skin='cocoa']  { --accent:#c2a08a; --accent-2:#a6836e; --accent-soft:rgba(194,160,138,.15); }
:root[data-theme='dark'][data-skin='slate']  { --accent:#9db0c4; --accent-2:#8194a9; --accent-soft:rgba(157,176,196,.15); }
:root[data-theme='dark'][data-skin='berry']  { --accent:#e08ab8; --accent-2:#c76d9c; --accent-soft:rgba(224,138,184,.15); }
:root[data-theme='dark'][data-skin='mint']   { --accent:#5fc9ae; --accent-2:#45ad93; --accent-soft:rgba(95,201,174,.15); }


/* ── wallpapers (background art, chosen in Appearance) ────────────────────
   Painted on <body>; every layer sits behind the UI and respects the theme. */
body { background-attachment: fixed; }
:root[data-wall='plain'] body { background: var(--bg); }
:root[data-wall='mesh'] body {
  background:
    radial-gradient(680px 440px at 88% -6%, var(--glow-a), transparent 66%),
    radial-gradient(600px 400px at -8% 106%, var(--glow-b), transparent 66%),
    var(--bg);
}
:root[data-wall='aurora'] body {
  background:
    radial-gradient(700px 460px at 15% -10%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 64%),
    radial-gradient(600px 420px at 95% 15%, color-mix(in srgb, var(--z9) 38%, transparent), transparent 66%),
    radial-gradient(680px 480px at 40% 110%, color-mix(in srgb, var(--z6) 34%, transparent), transparent 68%),
    var(--bg);
}
:root[data-wall='dots'] body {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 1.6px, transparent 1.6px) 0 0 / 20px 20px,
    linear-gradient(170deg, var(--bg-2), var(--bg));
}
:root[data-wall='grid'] body {
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(160deg, var(--bg-2), var(--bg));
}
:root[data-wall='waves'] body {
  background:
    radial-gradient(120% 62% at 50% 106%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 64%),
    radial-gradient(120% 55% at 50% 116%, color-mix(in srgb, var(--z3) 36%, transparent), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
:root[data-wall='citrus'] body {
  background:
    radial-gradient(560px 400px at 100% 0%, color-mix(in srgb, var(--z2) 50%, transparent), transparent 64%),
    radial-gradient(520px 380px at 0% 100%, color-mix(in srgb, var(--z8) 42%, transparent), transparent 66%),
    var(--bg);
}
/* wallpaper picker */

.set-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px 11px; margin-bottom: 9px; box-shadow: var(--sh-sm); }
.sb-h { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.sb-h .ic { color: var(--accent); } .sb-h b { font-weight: 700; } .sb-h .mut { flex-basis: 100%; }
.set-block .check-picker { margin-bottom: 0; }
/* wallpaper swatch previews (mirror the body backgrounds) */
[data-wp='plain']  { background: var(--bg); }
[data-wp='mesh']   { background: radial-gradient(70% 60% at 85% 5%, var(--glow-a), transparent 62%), radial-gradient(70% 60% at 10% 95%, var(--glow-b), transparent 62%), var(--bg); }
[data-wp='aurora'] { background: radial-gradient(80% 70% at 15% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 62%), radial-gradient(70% 60% at 100% 20%, color-mix(in srgb, var(--z9) 34%, transparent), transparent 64%), radial-gradient(80% 70% at 40% 110%, color-mix(in srgb, var(--z6) 30%, transparent), transparent 66%), var(--bg); }
[data-wp='dots']   { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 1.3px, transparent 1.3px) 0 0 / 9px 9px, linear-gradient(170deg, var(--bg-2), var(--bg)); }
[data-wp='grid']   { background: linear-gradient(color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 100% 11px, linear-gradient(90deg, color-mix(in srgb, var(--accent) 20%, transparent) 1px, transparent 1px) 0 0 / 11px 100%, linear-gradient(160deg, var(--bg-2), var(--bg)); }
[data-wp='waves']  { background: radial-gradient(120% 60% at 50% 108%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 62%), radial-gradient(120% 55% at 50% 122%, color-mix(in srgb, var(--z3) 34%, transparent), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
[data-wp='citrus'] { background: radial-gradient(75% 70% at 100% 0%, color-mix(in srgb, var(--z2) 50%, transparent), transparent 62%), radial-gradient(70% 65% at 0% 100%, color-mix(in srgb, var(--z8) 42%, transparent), transparent 64%), var(--bg); }
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 6px; }
.wall-btn { aspect-ratio: 1; border-radius: 15px; border: 2px solid var(--line); overflow: hidden; position: relative; box-shadow: var(--sh-sm); }
.wall-btn.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wall-btn i { position: absolute; inset: 0; display: block; }
.wall-btn span { position: absolute; inset-inline-start: 0; inset-block-end: 0; width: 100%; font-size: 9.5px; font-weight: 700; text-align: center; padding: 3px 0; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink-2); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* no visible scroll rails anywhere — the phone showed a grey bar on the edge */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
/* iOS silently inflates body text ("text autosizing") unless this is pinned,
   which is what made every label balloon and wrap on the phone. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.45;
  background:
    radial-gradient(620px 400px at 88% -6%, var(--glow-a), transparent 62%),
    radial-gradient(540px 360px at -8% 106%, var(--glow-b), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
#app { height: 100dvh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input { border: 0; }
h1, h2 { margin: 0; font-family: var(--disp); font-weight: 400; letter-spacing: .01em; }
h1 { font-size: 1.4rem; } h2 { font-size: 1.12rem; }
.mut { color: var(--ink-2); } .sm { font-size: 13.5px; }
.ic { flex: none; display: block; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot { height: 100dvh; display: grid; place-items: center; }

/* ── logo / buttons ── */
.al-logo { flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--on-accent); background: linear-gradient(150deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 18px rgba(44,62,80,.24); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 22px; border-radius: 15px; font-weight: 700; font-size: 16px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: transform .1s, filter .2s; }
.btn:active { transform: scale(.97); } .btn:disabled { opacity: .5; pointer-events: none; }
.btn.wide { width: 100%; }
.btn.gold { background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--on-accent); border: 0; font-weight: 800; box-shadow: 0 10px 26px rgba(44,62,80,.24); }
.btn.ghost { background: var(--surface); color: var(--ink-2); }
.btn.finish { background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--on-accent); border: 0; font-weight: 800; height: 58px; margin: 18px 0 8px; box-shadow: 0 12px 28px rgba(44,62,80,.24); }
.inp { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.inp::placeholder { color: var(--ink-3); }
.link { color: var(--accent); font-weight: 700; }
.link-row { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--ink-2); font-size: 14px; padding: 4px 2px; } .link-row .ic { color: var(--accent); }

/* ── auth ── */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 30px 22px calc(30px + var(--safe-b)); max-width: 440px; margin: 0 auto; }
.auth-hero { text-align: center; margin-bottom: 26px; } .auth-hero .al-logo { margin: 0 auto 16px; width: 76px; height: 76px; border-radius: 22px; }
.auth-hero h1 { font-size: 2rem; margin-bottom: 6px; } .auth-hero p { color: var(--ink-2); font-size: 14.5px; }
.auth-form { display: grid; gap: 12px; }
.auth-err { background: rgba(217,105,95,.12); border: 1px solid rgba(217,105,95,.35); color: #e0897f; border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: 14px; }

/* ── shell ── */
.screen { height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--safe-t)) 16px 10px; }
.topbar.sub { justify-content: space-between; } .topbar.sub h1 { flex: 1; text-align: center; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand > div { min-width: 0; }
.brand b { font-family: var(--disp); font-size: 18px; display: block; line-height: 1.05; white-space: nowrap; }
.brand .hh { font-size: 10.5px; color: var(--accent); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.net { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); } .net.on { color: var(--ok); } .net.off { color: var(--danger); }
.chip-code { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.back { width: 42px; height: 42px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.spacer { flex: 1; }
.progress { height: 4px; margin: 4px 16px 0; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pg-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--powder)); border-radius: 4px; transition: width .4s cubic-bezier(.16,1,.3,1); }
.add-bar { display: flex; gap: 9px; padding: 12px 16px 8px; }
.add-bar .add { flex: 1; }
.add-go { flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(44,62,80,.22); }
.body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(96px + var(--safe-b)); }

/* ── zones + items ── */
.zone-sec { margin-bottom: 14px; animation: rise .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.zone-head { display: flex; align-items: center; gap: 10px; margin: 6px 2px 8px; }
.zone-head h2 { flex: 1; font-size: 1.02rem; }
.zh-ic { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.z-1 { color: var(--z1); } .z-2 { color: var(--z2); } .z-3 { color: var(--z3); } .z-4 { color: var(--z4); } .z-5 { color: var(--z5); } .z-6 { color: var(--z6); } .z-7 { color: var(--z7); } .z-8 { color: var(--z8); } .z-9 { color: var(--z9); } .z-0 { color: var(--ink-3); }
.zh-count { font-size: 12px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.items { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: opacity .3s, background .3s, transform .12s; }
.item:active { transform: scale(.99); }
.chk { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; color: var(--on-accent); transition: background .2s, border-color .2s; }
.chk .ic, .cp-btn .ic { display: block; margin: 0 auto; }
.item.done .chk { background: var(--accent); border-color: var(--accent); }
.it-text { flex: 1; font-weight: 600; transition: color .3s; }
.item.done { opacity: .55; background: var(--surface-2); }
.item.done .it-text { text-decoration: line-through; color: var(--ink-3); }
.it-del { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); }
.it-del:active { color: var(--danger); }
.empty { text-align: center; padding: 50px 24px; color: var(--ink-2); } .empty .ic { margin: 0 auto 14px; color: var(--ink-3); }

/* ── layout (custom supermarket) ── */
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin: 8px 0 16px; } .hint .ic { color: var(--accent); flex: none; margin-top: 1px; }
.layout-list { display: flex; flex-direction: column; gap: 9px; }
.layout-zone { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.layout-zone b { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lz-num { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-family: var(--disp); display: grid; place-items: center; font-size: 14px; }
.lz-move { display: flex; gap: 4px; }
.lz-move button { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); display: grid; place-items: center; }
.lz-move button:first-child .ic { transform: rotate(-90deg); } .lz-move button:last-child .ic { transform: rotate(90deg); }
.lz-move button:disabled { opacity: .35; }

/* ── profile / shop ── */
.prof-hero { text-align: center; padding: 12px 0 6px; } .prof-hero .al-logo { margin: 0 auto 12px; }
.prof-hero h2 { font-size: 1.5rem; }
.title-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--accent); font-size: 13px; font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 16px 0; }
.stat { padding: 16px 8px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); text-align: center; box-shadow: var(--sh-sm); }
.stat b { display: block; font-family: var(--disp); font-size: 1.5rem; color: var(--accent); } .stat span { font-size: 12px; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-sm); }
.hh-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hh-card b { font-family: var(--disp); display: block; } .hh-card .mut { display: block; margin-top: 2px; }
.hh-big { display: inline-flex; align-items: center; gap: 8px; font-family: var(--disp); font-size: 1.3rem; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(44,62,80,.2); padding: 8px 16px; border-radius: 13px; }
.settings-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 13px 14px; margin-bottom: 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.settings-row:active { transform: scale(.99); }
.sr-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sr-t { flex: 1; min-width: 0; }
.sr-t b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.sr-t span { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-2); margin-top: 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
/* h2 must be a flex row — .ic is display:block, so an inline icon would
   otherwise break onto its own line and overflow the container. */
.sect-h { margin: 22px 0 11px; }
.sect-h h2 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sect-h h2 .ic { color: var(--accent); }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cosmetic { padding: 15px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; box-shadow: var(--sh-sm); }
.cosmetic.equipped { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cosmetic .prev { height: 46px; display: grid; place-items: center; color: var(--accent); margin-bottom: 8px; }
.cosmetic .cn { font-weight: 700; font-size: 14px; } .cosmetic .cp { font-size: 12px; color: var(--ink-3); margin-top: 3px; } .cp.gold { color: var(--accent); }
.swatch { width: 38px; height: 38px; border-radius: 11px; border: 2px solid var(--line); margin: 0 auto; }
.cos-btn { margin-top: 10px; width: 100%; height: 38px; border-radius: 11px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.cos-btn.buy { background: var(--accent); color: var(--on-accent); border: 0; } .cos-btn.on { background: var(--accent); color: var(--on-accent); border: 0; }
.cos-btn:disabled { opacity: .5; }

/* ── bottom nav ── */
.botnav {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
  height: calc(68px + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  box-shadow: 0 -10px 34px rgba(0,0,0,.16);
}
.nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; height: 100%; padding-top: 4px;
}
.nav-item .ni-ic, .nav-item .ni-l { position: relative; z-index: 1; }
.nav-item .ni-l { transition: opacity .2s; }
.nav-item.on { color: var(--accent); }
.nav-item.on .ni-l { font-weight: 800; }
.nav-item .ni-ic, .nav-item .ni-l { transition: color .28s ease, transform .28s cubic-bezier(.2,1.3,.4,1); }
/* raised centre "home" — the cart */
.nav-home {
  position: relative; width: 62px; height: 62px; margin-top: -22px; border-radius: 22px;
  display: grid; place-items: center; color: var(--on-accent);
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--accent) 55%, transparent), 0 2px 0 rgba(255,255,255,.14) inset;
  border: 3px solid var(--nav-bg);
  transition: transform .24s cubic-bezier(.2,1.5,.4,1), box-shadow .24s;
}
.nav-home:active { transform: scale(.9); }
.nav-home.on { transform: translateY(-3px) scale(1.04); }
.nav-home .nh-ring { position: absolute; inset: -7px; border-radius: 27px; border: 2px solid var(--accent); opacity: 0; transition: opacity .3s, transform .3s; }
.nav-home.on .nh-ring { opacity: .32; transform: scale(1.03); }
.nav-home .nh-ic { display: grid; place-items: center; }

/* ── nav bar life: the tab that becomes active actually animates ── */
.nav-item .ni-ic { transition: transform .26s cubic-bezier(.2,1.3,.4,1), color .2s; }
.nav-item.on .ni-ic { transform: translateY(-2px); }
.nav-item .ni-l { transition: opacity .22s ease, color .2s; }
.nav-home .nh-ic { transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.nav-home.on .nh-ic { transform: scale(1.06); }
.nav-home.on .nh-ring { animation: ringPulse 2.6s ease-in-out infinite; }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: .3; } 50% { transform: scale(1.09); opacity: .13; } }
@media (prefers-reduced-motion: reduce) {
  .nav-item.on .ni-ic, .nav-item.on .ni-l, .nav-home.on .nh-ic, .nav-home.on .nh-ring { animation: none; }
}
/* ── tab indicator: a droplet dashes over, a vessel lands, then it fills ── */
.goo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.goo {
  position: absolute; inset-block-start: 8px; inset-inline-start: 0; width: 100%; height: 42px;
  pointer-events: none; z-index: 0;
}
/* the vessel it lands in */
.vessel {
  will-change: transform;
  position: absolute; inset-block-start: 3px; inset-inline-start: 0;
  width: 46px; height: 34px; display: block; overflow: hidden; opacity: 0;
  border-radius: 15px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  transform: translateX(-100px) translateX(-50%);
  will-change: transform, opacity;
}
/* the liquid that rises inside it */
.vessel .fill {
  position: absolute; inset-inline: -6%; inset-block-end: -2px; height: 0;
  display: block; background: color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 46% 54% 8px 8px / 26px 22px 8px 8px;   /* curved meniscus */
  animation: meniscus 2.4s ease-in-out infinite;
  will-change: height;
}
@keyframes meniscus {
  0%, 100% { border-radius: 46% 54% 8px 8px / 26px 22px 8px 8px; }
  50%      { border-radius: 54% 46% 8px 8px / 22px 26px 8px 8px; }
}
.nav-item, .nav-home { position: relative; z-index: 1; }
.nav-item .ni-ic, .nav-item .ni-l { position: relative; z-index: 1; }
.ni-pill { display: none; }
@media (prefers-reduced-motion: reduce) { .vessel .fill { animation: none; } }
.ni-ripple {
  position: fixed; z-index: 55; width: 84px; height: 84px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 90; background: var(--toast-bg); color: var(--toast-ink); border: 0; padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: var(--sh); max-width: 90%; text-align: center; animation: toastUp .28s cubic-bezier(.16,1,.3,1) both; }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ── app-like polish: page transitions, item + check animations, splash, nav ── */
/* MUST stay transparent — an opaque #app hides the body wallpaper entirely. */
#app { background: transparent; }
.page { height: 100%; }
.page.push, .page.pop, .page.fade { animation: pgIn .16s ease-out both; }
@keyframes pgIn { from { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .page.push, .page.pop, .page.fade { animation: none; } }

.chk { transition: background .2s, border-color .2s, transform .15s; }
.chk:active { transform: scale(.85); }
.item.done .chk .ic { animation: chkPop .34s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes chkPop { from { transform: scale(0) rotate(-20deg); } }
.item.checking { animation: itemCheck .3s ease; }
@keyframes itemCheck { 40% { transform: scale(.97); background: var(--accent-soft); } }
.zh-ic { background: color-mix(in srgb, currentColor 12%, var(--surface)); border-color: color-mix(in srgb, currentColor 22%, var(--line)); box-shadow: var(--sh-sm); }
.add-go { transition: transform .12s, box-shadow .2s; } .add-go:active { transform: scale(.9); }
.nav-item .ni-ic { transition: transform .22s cubic-bezier(.2,1.4,.4,1); }
.nav-item:active .ni-ic { transform: scale(.86); }
.nav-item.on .ni-ic { transform: translateY(-2px); }
.finish { animation: finishIn .4s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes finishIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* splash */
/* ── splash: trolley rolls past a shelf, grabs one product, speeds off ── */
.splash .scene { color: var(--ink-2); margin-bottom: 6px; animation: rise .5s both; }
.splash .scene svg { max-width: 88vw; height: auto; overflow: visible; }
.sc-shelf { animation: shelfIn .6s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes shelfIn { from { opacity: 0; transform: translateY(-10px); } }
.sc-goods rect { animation: goodIn .45s cubic-bezier(.2,1.5,.4,1) both; transform-box: fill-box; transform-origin: 50% 100%; }
.sc-goods rect:nth-child(1){animation-delay:.10s}.sc-goods rect:nth-child(2){animation-delay:.15s}
.sc-goods rect:nth-child(3){animation-delay:.20s}.sc-goods rect:nth-child(4){animation-delay:.25s}
.sc-goods rect:nth-child(5){animation-delay:.30s}.sc-goods rect:nth-child(6){animation-delay:.35s}
.sc-goods rect:nth-child(7){animation-delay:.40s}.sc-goods rect:nth-child(8){animation-delay:.45s}
.sc-goods rect:nth-child(9){animation-delay:.28s}.sc-goods rect:nth-child(10){animation-delay:.33s}
.sc-goods rect:nth-child(11){animation-delay:.38s}.sc-goods rect:nth-child(12){animation-delay:.43s}
.sc-goods rect:nth-child(13){animation-delay:.48s}
@keyframes goodIn { from { opacity: 0; transform: scaleY(.2); } }

/* trolley: rolls in, pauses at the shelf, then accelerates away */
.sc-cart { animation: cartRun 3.4s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes cartRun {
  0%   { transform: translateX(-70px); }
  26%  { transform: translateX(78px); }
  46%  { transform: translateX(78px); }              /* pause to pick */
  72%  { transform: translateX(150px); }
  100% { transform: translateX(330px); }
}
/* the picked product lifts off the shelf and drops into the basket */
.sc-pick { animation: pickUp 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pickUp {
  0%, 28%   { opacity: 1; transform: translate(0,0) scale(1); }
  36%       { opacity: 1; transform: translate(-6px,-22px) scale(.95); }
  44%       { opacity: 1; transform: translate(-18px,16px) scale(.8); }
  46%, 100% { opacity: 0; transform: translate(-18px,16px) scale(.8); }
}
.sc-inbasket { animation: inBasket 3.4s ease-out infinite; }
@keyframes inBasket { 0%,44% { opacity: 0; } 47%,100% { opacity: 1; } }
/* speed lines only while the trolley is moving fast */
.sc-speed line { animation: speedy 3.4s ease-out infinite; }
.sc-speed line:nth-child(2) { animation-delay: .06s; }
.sc-speed line:nth-child(3) { animation-delay: .12s; }
@keyframes speedy {
  0%,50% { opacity: 0; transform: translateX(0) scaleX(.3); }
  64%    { opacity: .45; transform: translateX(90px) scaleX(1.5); }
  86%    { opacity: 0; transform: translateX(220px) scaleX(.6); }
  100%   { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-cart, .sc-pick, .sc-inbasket, .sc-speed line, .sc-goods rect { animation: none; }
  .sc-pick { opacity: 1; }
}

.splash { height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(520px 360px at 50% 30%, rgba(180,199,221,.4), transparent 65%), var(--bg); }
.splash .al-logo { width: 92px; height: 92px; border-radius: 28px; animation: splashLogo .7s cubic-bezier(.2,1.4,.4,1) both; }
.splash b { font-family: var(--disp); font-size: 2.2rem; color: var(--accent); animation: rise .5s .12s both; }
.splash span { color: var(--ink-2); font-size: 13.5px; animation: rise .5s .2s both; }
@keyframes splashLogo { from { opacity: 0; transform: scale(.5) rotate(-14deg); } }

/* ── quantities, frequent chips, item sheet, templates, stores ── */
.round-btn { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.it-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: start; padding: 2px 0; }
.item .it-text { flex: none; }
.qty-badge { flex: none; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.item.done .qty-badge { color: var(--ink-3); background: var(--surface-2); }
.freq-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; } .freq-row::-webkit-scrollbar { display: none; }
.freq-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: var(--sh-sm); }
.freq-chip .ic { color: var(--accent); }

.sheet-back { position: fixed; inset: 0; z-index: 80; background: var(--scrim); backdrop-filter: blur(2px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -14px 44px rgba(44,62,80,.2); padding: 10px 18px calc(18px + var(--safe-b)); max-height: 82dvh; overflow-y: auto; animation: sheetUp .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .sheet-head b { flex: 1; font-family: var(--disp); font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.sheet-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 6px 2px 10px; } .sheet-label .ic { color: var(--accent); }
.qty-ctl { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; } .qty-ctl > span { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; }
.stepper b { min-width: 34px; text-align: center; font-family: var(--disp); font-size: 1.2rem; }
/* Category picker — compact tiles so every category fits on ONE screen
   (no scrolling, no "zoomed-in" feel on small iPhones). */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.zone-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 5px; border-radius: 13px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.15; min-height: 68px; }
.zone-pick .zh-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.zone-pick span:last-child { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.zone-pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (min-width: 430px) { .zone-grid { grid-template-columns: repeat(4, 1fr); } }













/* ── destructive action + tip + consent ── */
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 34%, transparent); }
.btn.danger:active { background: color-mix(in srgb, var(--danger) 20%, var(--surface)); }
.danger-hero { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.dh-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.danger-hero b { font-family: var(--disp); font-size: 1.25rem; line-height: 1.2; }
.danger-warn { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 2px 16px; }
.pp-buttons { min-height: 52px; margin-top: 4px; }
.tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tip-btn { height: 46px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink); font-family: var(--disp); font-size: 1rem; }
.tip-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tip-btn:active { transform: scale(.96); }
.legal-note { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; line-height: 1.55; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; margin: 12px 0 12px; }
.legal-note .ic { flex: none; color: var(--accent); margin-top: 1px; }
.agree { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: start; padding: 2px; }
.agree-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid var(--line); display: grid; place-items: center; color: var(--on-accent); transition: background .18s, border-color .18s; }
.agree-box.on { background: var(--accent); border-color: var(--accent); }
.agree-t { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.agree-t b { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── rating, feedback, legal, support ── */
.rate-hero { text-align: center; padding: 4px 0 12px; }
.rate-hero .al-logo { margin: 0 auto 10px; }
.rate-hero b { display: block; font-family: var(--disp); font-size: 1.35rem; }
.rate-hero .mut { display: block; margin-top: 3px; }
.stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 2px; }
.star { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-3); transition: transform .18s cubic-bezier(.2,1.5,.4,1), color .18s; }
.star.on { color: var(--accent); transform: scale(1.12); }
.star:active { transform: scale(.9); }
.star-label { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--accent); min-height: 18px; margin-bottom: 8px; }
.pp-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; color: #0070ba; }
.pp-card > div { flex: 1; min-width: 0; } .pp-card b { display: block; color: var(--ink); font-size: 15px; }
.pp-soon { flex: none; font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--line); color: var(--ink-3); }
.legal-sheet { max-height: 88dvh; }
.legal-sheet .sheet-head b { font-size: 1.15rem; }
.legal-date { font-size: 11.5px; color: var(--ink-3); margin: -6px 2px 12px; }
.legal-body section { margin-bottom: 15px; }
.legal-body h3 { font-family: var(--disp); font-size: 15px; margin: 0 0 4px; color: var(--accent); }
.legal-body p { font-size: 13.5px; line-height: 1.62; color: var(--ink-2); margin: 0; }
.legal-foot { display: block; text-align: center; padding: 12px 0 4px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
.legal-foot b { color: var(--accent); }
.copyright { display: flex; align-items: center; gap: 11px; padding: 13px 14px; margin-top: 4px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 12px; line-height: 1.5; box-shadow: var(--sh-sm); }
.copyright .cr-t { flex: 1; min-width: 0; } .copyright b { color: var(--accent); }
.copyright .al-logo { flex: none; }
.copyright .al-logo { width: 26px; height: 26px; border-radius: 9px; }

/* ── family scoreboard ── */
.board { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.bd-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.bd-row.me { border-color: var(--accent); background: var(--accent-soft); }
.bd-pos { flex: none; width: 19px; text-align: center; font-family: var(--disp); color: var(--ink-3); font-size: 13px; }
.bd-m { flex: 1; min-width: 0; }
.bd-m b { display: block; font-size: 13.5px; }
.bd-m .mut { display: block; font-size: 11.5px; }
.bd-kid { font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 999px; }
.bd-bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 5px; }
.bd-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s cubic-bezier(.16,1,.3,1); }
.bd-c { flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 12.5px; color: var(--accent); }

/* ── kid permissions + notices ── */
.kid-note { display: flex; align-items: center; gap: 6px; margin: 0 16px 8px; padding: 8px 11px; border-radius: 11px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.kid-note .ic { color: var(--accent); flex: none; }
.perm-list { display: flex; flex-direction: column; gap: 7px; }
.perm-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; text-align: start; }
.perm-row span { flex: 1; min-width: 0; }
.perm-row i { flex: none; width: 40px; height: 23px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.perm-row i::after { content: ''; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s cubic-bezier(.2,1.3,.4,1); }
.perm-row.on { border-color: var(--accent); color: var(--accent); }
.perm-row.on i { background: var(--accent); }
.perm-row.on i::after { transform: translateX(17px); }
:root[dir='rtl'] .perm-row.on i::after, [dir='rtl'] .perm-row.on i::after { transform: translateX(-17px); }
.chk:disabled { opacity: .45; }

/* ── kid requests ── */
.ask-box, .req-box { margin: 12px 0 4px; padding: 12px; border-radius: 15px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--line)); }
.req-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.req-row:first-of-type { border-top: 0; }
.rq-m { flex: 1; min-width: 0; } .rq-m b { display: block; font-size: 14px; } .rq-m .mut { display: block; }
.rq-ok, .rq-no { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); }
.rq-ok { background: rgba(63,157,106,.14); color: #3f9d6a; border-color: rgba(63,157,106,.3); }
.rq-no { background: var(--surface-2); color: var(--ink-3); }
.rq-ok:active, .rq-no:active { transform: scale(.93); }

/* ── onboarding wizard ── */
.wizard { height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 18px calc(18px + var(--safe-b)); }
.wz-top { flex: none; }
.wz-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.wz-dot { flex: 1; height: 4px; border-radius: 3px; background: var(--line); transition: background .3s; }
.wz-dot.done { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.wz-dot.on { background: var(--accent); }
.wz-title b { display: block; font-family: var(--disp); font-size: 1.5rem; }
.wz-body { flex: 1; min-height: 0; overflow-y: auto; padding-top: 18px; }
.wz-body h2 { font-size: 1.25rem; margin-bottom: 4px; }
.wz-body > .mut { margin-bottom: 14px; }
.wz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wz-opt { padding: 15px 12px; border-radius: 15px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-align: center; }
.wz-opt b { display: block; font-size: 15px; } .wz-opt span { font-size: 11px; color: var(--ink-3); }
.wz-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wz-aisles { display: flex; flex-direction: column; gap: 7px; }
.wz-aisle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); }
.wz-aisle b { flex: 1; font-size: 14px; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wz-colours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wz-col { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 15px; background: var(--surface); border: 2px solid var(--line); color: var(--ink-2); font-size: 10.5px; font-weight: 700; }
.wz-col i { width: 34px; height: 34px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.wz-col.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.wz-foot { flex: none; display: flex; gap: 9px; padding-top: 14px; }
.wz-foot .btn { flex: 1; }
.wz-foot .btn.gold { flex: 2; }

/* ── parked ("not needed") items + filter ── */
.bulk-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.parked-box { margin: 14px 0 4px; padding: 11px 12px; border-radius: 15px; background: var(--surface-2); border: 1px dashed var(--line); }
.pk-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; font-size: 12.5px; }
.pk-h .ic { color: var(--ink-3); } .pk-h b { color: var(--ink-2); }
.pk-h .mut { flex-basis: 100%; }
.pk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; font-weight: 600;
  text-decoration: line-through; text-decoration-color: var(--ink-3); }
.pk-chip .ic { color: var(--accent); }
.pk-chip:active { transform: scale(.95); }

/* ── household / family sheet ── */
.hh-hero { text-align: center; padding: 6px 0 14px; }
.hh-hero .mut { display: block; margin-bottom: 4px; }
.hh-hero b { font-family: var(--disp); font-size: 2.4rem; letter-spacing: .16em; color: var(--accent); }
.hh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.hh-actions .btn { height: 48px; font-size: 14px; }
.cart-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cs-btn { position: relative; padding: 13px 12px; border-radius: 15px; background: var(--surface-2); border: 1.5px solid var(--line); text-align: start; color: var(--ink); }
.cs-btn b { display: block; font-size: 14px; }
.cs-btn span { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; margin-top: 2px; }
.cs-btn i { position: absolute; inset-block-start: 9px; inset-inline-end: 10px; font-style: normal; font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: var(--accent); }
.cs-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.join-row { display: flex; gap: 8px; margin-bottom: 10px; }
.join-row .inp { flex: 1; text-transform: uppercase; letter-spacing: .16em; font-family: var(--disp); text-align: center; }
.join-row .btn { flex: none; height: 52px; padding: 0 20px; }
.lk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 9px 12px; border-radius: 12px; }
.lk.ok { background: rgba(63,157,106,.12); color: #3f9d6a; }
.lk.no { background: rgba(217,105,95,.12); color: var(--danger); }
.lk b { font-weight: 800; }

/* ── repeats + suggestions ── */
.rep-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.rep-btn { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.rep-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.rep-btn:active { transform: scale(.96); }
.sugg { margin: 4px 16px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 34%, var(--line)); }
.sg-h { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12.5px; }
.sg-h .ic { color: var(--accent); } .sg-h b { flex: 1; }
.sg-x { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.sg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.sg-chip:active { transform: scale(.95); }

/* ── barcode scanner ── */
.scan-stage { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: #000; margin-bottom: 10px; }
.scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 14% 10%; border-radius: 14px; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
.scan-laser { position: absolute; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); animation: laser 2s ease-in-out infinite; }
@keyframes laser { 0%,100% { top: 18%; } 50% { top: 78%; } }
.scan-hint { display: flex; align-items: center; gap: 7px; justify-content: center; margin-bottom: 4px; }
.scan-hint .ic { color: var(--accent); }
.scan-found { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); margin-bottom: 12px; }
.scan-found .ic { color: var(--accent); }
.scan-found b { display: block; font-size: 14.5px; }
.scan-found .mono { font-family: var(--mono, ui-monospace, monospace); font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .scan-laser { animation: none; top: 48%; } }

/* ── people: avatars, assignment, task split ── */
.av { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 8px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h) 52% 52%), hsl(var(--h) 52% 40%));
  box-shadow: 0 2px 6px hsl(var(--h) 40% 30% / .3); }
.av.as { margin-inline-start: 7px; }
.av.tick { margin-inline-start: 6px; outline: 2px solid var(--surface); }
.who-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 2px 12px; }
.who-row b { color: var(--ink); }
.assign-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.as-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.as-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.as-btn:active { transform: scale(.96); }
.chip-code.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ── prices + bill split ── */
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 8px 16px 0; padding: 8px 13px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.cart-total span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.cart-total span .ic { color: var(--accent); }
.cart-total b { font-family: var(--disp); font-size: 1.12rem; color: var(--accent); }
.price-badge { margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-in { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; }
.price-in .cur { color: var(--accent); font-weight: 800; }
.price-in .inp { width: 92px; height: 44px; border: 0; background: transparent; padding: 0; text-align: center; font-family: var(--disp); font-size: 1.05rem; }
/* the tip sheet uses the same shell but must stretch to the full width */
.sheet .price-in { width: 100%; }
.sheet .price-in .inp { flex: 1; width: auto; min-width: 0; text-align: start; }
.price-in .inp:focus { box-shadow: none; }
.price-hist { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 2px 12px; font-size: 12.5px; color: var(--ink-2); }
.price-hist .ic { color: var(--accent); vertical-align: -2px; }
.price-hist b { color: var(--ink); }
.price-hist .trend { font-weight: 700; }
.price-hist .trend.up { color: var(--danger); } .price-hist .trend.down { color: #3f9d6a; }
.split-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 13px 14px; margin-bottom: 16px; box-shadow: var(--sh-sm); }
.split-rows { display: flex; flex-direction: column; gap: 11px; }
.split-row { display: flex; align-items: center; gap: 11px; }
.sp-av { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 800; font-size: 12.5px; }
.sp-m { flex: 1; min-width: 0; } .sp-m b { display: block; font-size: 14px; } .sp-m .mut { display: block; }
.sp-bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.sp-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sp-plus, .sp-minus, .sp-ok { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.sp-plus { background: rgba(63,157,106,.14); color: #3f9d6a; }
.sp-minus { background: rgba(217,105,95,.14); color: var(--danger); }
.sp-ok { background: var(--surface-2); color: var(--ink-3); }
.split-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.split-foot b { font-family: var(--disp); font-size: 1.1rem; color: var(--accent); }

/* ── shopping archive ── */
.arc-day { margin-bottom: 18px; }
.arc-date { font-family: var(--disp); font-size: 1.02rem; color: var(--accent); margin: 4px 2px 9px; display: flex; align-items: center; gap: 9px; }
.arc-date::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.arc-trip { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 13px 14px; margin-bottom: 9px; box-shadow: var(--sh-sm); }
.arc-head { display: flex; align-items: center; gap: 11px; }
.arc-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.arc-meta { flex: 1; min-width: 0; } .arc-meta b { display: block; font-size: 14.5px; }
.arc-meta .mut { display: block; }
.arc-total { font-family: var(--disp); color: var(--accent); font-size: 1.05rem; }
.arc-items { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0 10px; }
.arc-chip { padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.arc-chip.more { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.arc-actions { display: flex; gap: 8px; }
.arc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; }
.arc-btn .ic { color: var(--accent); }
.arc-btn:active { transform: scale(.97); }
.arc-del { flex: none; width: 40px; height: 36px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); display: grid; place-items: center; }
.arc-del:active { color: var(--danger); border-color: var(--danger); }

/* ── bulk actions + text-file import ── */
.bulk-bar { display: flex; gap: 7px; padding: 0 16px 8px; }
.bulk-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; padding: 0 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; font-weight: 700; box-shadow: var(--sh-sm); white-space: nowrap; }
.bulk-btn .ic { flex: none; }
.bulk-btn:active { transform: scale(.97); } .bulk-btn .ic { color: var(--accent); }
.io-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 15px; margin-bottom: 9px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); text-align: start; color: var(--ink); }
.io-row:active { transform: scale(.985); }
.io-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.io-t { flex: 1; min-width: 0; } .io-t b { display: block; font-family: var(--disp); font-size: 15px; }
.io-t span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.io-row > .ic:last-child { color: var(--ink-3); }
.paste-ta { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; font-family: var(--ui); }
.imp-file { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; } .imp-file .ic { color: var(--accent); }
.imp-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.imp-mode { flex: 1; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.imp-mode.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.imp-count { font-size: 15px; font-weight: 700; margin-bottom: 10px; } .imp-count b { font-family: var(--disp); font-size: 1.4rem; color: var(--accent); }
.imp-preview { display: flex; flex-wrap: wrap; gap: 6px; max-height: 30dvh; overflow-y: auto; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.imp-chip { padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.imp-chip.more { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tpl-save { display: flex; gap: 8px; margin-bottom: 14px; } .tpl-save .inp { flex: 1; } .tpl-save .btn { flex: none; height: 52px; }
.tpl-list { display: flex; flex-direction: column; gap: 9px; }
.tpl-row { display: flex; gap: 8px; }
.tpl-main { flex: 1; text-align: start; padding: 14px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); } .tpl-main b { display: block; font-family: var(--disp); }
.tpl-del { flex: none; width: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); display: grid; place-items: center; }
.store-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; } .store-row::-webkit-scrollbar { display: none; }
.store-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;  flex: none; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 13.5px; }
.store-chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.store-chip.add { color: var(--accent); border-style: dashed; display: inline-flex; align-items: center; gap: 4px; }

/* ── check picker, custom categories, store rename, prep wizard ── */
.btn.mega { height: 60px; font-size: 18px; border-radius: 16px; }
.check-picker { display: flex; gap: 10px; margin-bottom: 6px; }
.cp-btn { flex: 1; height: 58px; border-radius: 15px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--sh-sm); transition: all .15s; }
.cp-btn.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.cat-new { display: flex; gap: 8px; margin-bottom: 14px; }
.cat-new .inp { flex: 1; } .cat-new .btn { flex: none; height: 52px; width: 56px; padding: 0; }
.icon-pick { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--accent); display: grid; place-items: center; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.cat-head { display: flex; align-items: center; gap: 10px; } .cat-head b { flex: 1; font-family: var(--disp); }
.cat-del { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); background: var(--surface-2); }
.kw-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kw-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.kw-add { flex: 1; min-width: 90px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px dashed var(--line); color: var(--ink); font-size: 13px; outline: none; }
.store-rename { display: flex; gap: 8px; margin-bottom: 14px; } .store-rename .inp { flex: 1; } .store-rename .btn { flex: none; height: 52px; }
.tpl-prep { flex: none; width: 46px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; }

/* prep wizard (full-screen cards) */
.prep { position: fixed; inset: 0; z-index: 60; background: radial-gradient(560px 420px at 50% 18%, rgba(180,199,221,.4), transparent 66%), var(--bg); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 20px calc(24px + var(--safe-b)); }
.prep-top { display: flex; align-items: center; gap: 12px; }
.prep-prog { flex: 1; height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; box-shadow: var(--sh-sm); } .prep-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--powder)); border-radius: 6px; transition: width .3s cubic-bezier(.16,1,.3,1); }
.prep-top > span { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.prep-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; animation: prepIn .34s cubic-bezier(.16,1,.3,1) both; }
@keyframes prepIn { from { opacity: 0; transform: translateX(28px) scale(.97); } }
.prep-ic { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 12%, var(--surface)); box-shadow: var(--sh); margin-bottom: 8px; }
.prep-card h1 { font-size: 2.1rem; }
.prep-qty { display: flex; align-items: center; gap: 14px; margin: 16px 0 22px; } .prep-qty > span { font-weight: 700; color: var(--ink-2); }
.prep-actions { width: 100%; display: grid; gap: 10px; max-width: 380px; }
.prep-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; animation: rise .4s both; }
.prep-done .prep-ic { width: 108px; height: 108px; } .prep-done h1 { font-size: 2rem; margin-top: 6px; } .prep-done .btn { max-width: 360px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; } .page { animation: none !important; } .prep-card { animation: none !important; } }

/* ---- RTL: mirror the direction-based motion ------------------------------
   `dir=rtl` flips layout, but it does NOT flip `transform: translateX` or a
   `linear-gradient(90deg, ...)`. Without these overrides the splash trolley
   drove against the reading direction and straight off the visible area, and
   every progress bar filled with its gradient reversed — which is why the app
   felt like it had been built for one language only.
   -------------------------------------------------------------------------- */



/* Progress fills: the gradient must run with the fill, not against it. */
[dir='rtl'] .pg-fill,
[dir='rtl'] .sp-bar i,
[dir='rtl'] .bd-bar i { background: linear-gradient(270deg, var(--accent), var(--powder)); }
[dir='rtl'] .sp-bar i,
[dir='rtl'] .bd-bar i { background: linear-gradient(270deg, var(--accent), var(--accent-2)); }

/* The page-enter slide should come from the reading edge. */
[dir='rtl'] .page.push, [dir='rtl'] .page.pop { animation-name: pgInRtl; }
@keyframes pgInRtl { from { opacity: .55; } }
[dir='rtl'] .prep-card { animation-name: prepInRtl; }
@keyframes prepInRtl { from { opacity: 0; transform: translateX(-28px) scale(.97); } }


/* The vessel's off-screen resting position must also flip: parked at -100px it
   sat inside the bar under RTL instead of hidden beside it. */
[dir='rtl'] .vessel { transform: translateX(100px) translateX(50%); }
