/* SlimBoodschappen prototype
   Aubergine ink, shelf-label yellow for prices, tomato for "use soon", leaf for "at home".
   One family (Archivo); its width axis makes the condensed shelf-label prices. */
:root {
  --ink: #24163a;
  --ink-2: #4b3f63;
  --muted: #736a8a;
  --line: #e7e2ef;
  --bg: #f3f1f7;
  --card: #ffffff;
  --lilac: #ece6f7;
  --label: #ffd43b;
  --label-deep: #f2b705;
  --tomato: #ee5a36;
  --tomato-ink: #c03a19;
  --tomato-bg: #ffe9e1;
  --leaf: #1c9a62;
  --leaf-ink: #11784a;
  --leaf-bg: #ddf3e6;
  --stage: #dcd6e6;
  --f: "Archivo", "Noto Color Emoji", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--label-deep); outline-offset: 2px; border-radius: 10px; }
.emo { font-family: var(--emoji); font-style: normal; line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- stage: phone on the left, notes on the right (desktop) ---------- */
.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 20% 110%, #cfc5e2 0, transparent 60%),
    radial-gradient(900px 500px at 90% -10%, #fff3c4 0, transparent 55%),
    var(--stage);
}
.device-wrap { flex: none; width: calc(414px * var(--s, 1)); height: calc(868px * var(--s, 1)); }
.device {
  width: 414px; height: 868px;
  transform: scale(var(--s, 1)); transform-origin: top left;
  padding: 12px; border-radius: 62px;
  background: #1a1029;
  box-shadow: 0 0 0 2px #3a2c52 inset, 0 40px 80px -30px rgba(36, 22, 58, .55), 0 18px 36px -18px rgba(36, 22, 58, .4);
}
.app {
  position: relative; width: 390px; height: 844px; overflow: hidden;
  border-radius: 50px; background: var(--bg);
  --top: 54px; --bottom: 22px;
}

.panel { width: min(400px, 36vw); color: var(--ink); max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; padding: 4px; }
.panel::-webkit-scrollbar { display: none; }
.panel-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-brand b { display: block; font-size: 22px; font-weight: 800; font-stretch: 85%; letter-spacing: -.01em; }
.panel-brand span:not(.mark) { color: var(--muted); font-size: 14px; }
.panel-lead { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 26px; max-width: 46ch; }
.panel h2 { font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.demo-list { display: grid; gap: 8px; margin-bottom: 26px; }
.demo {
  text-align: left; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  transition: background .15s;
}
.demo:hover { background: #fff; }
.demo b { display: block; font-size: 15px; }
.demo span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.qr { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; margin-bottom: 18px; }
.qr[hidden] { display: none; }
.qr-code { width: 96px; height: 96px; flex: none; }
.qr-code svg, .qr-code img { width: 100%; height: 100%; display: block; }
.qr b { display: block; font-size: 15px; }
.qr span { font-size: 13px; color: var(--muted); }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* The logo: a yellow shelf tag with an S. */
.mark {
  --h: 44px;
  width: calc(var(--h) * 1.05); height: var(--h); flex: none; position: relative;
  background: var(--label);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 28% 100%, 0 50%);
  border-radius: 6px;
}
.mark::before {
  content: "S"; position: absolute; inset: 0 0 0 22%;
  display: grid; place-items: center;
  font-weight: 900; font-stretch: 70%; font-size: calc(var(--h) * .72); line-height: 1; color: var(--ink);
}
.mark::after {
  content: ""; position: absolute; left: 13%; top: 50%; width: 15%; aspect-ratio: 1;
  border-radius: 50%; background: var(--stage); transform: translate(-50%, -50%);
}
.mark.on-bg::after { background: var(--bg); }
.mark.on-ink::after { background: var(--ink); }

/* ---------- phone: full screen on a real phone ---------- */
@media (max-width: 600px) {
  body { background: var(--bg); }
  .stage { display: block; padding: 0; min-height: 0; background: none; }
  .device-wrap { width: 100%; height: 100dvh; }
  .device { width: 100%; height: 100%; transform: none; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .app { width: 100%; height: 100%; border-radius: 0; --top: max(env(safe-area-inset-top), 14px); --bottom: max(env(safe-area-inset-bottom), 10px); }
  .statusbar { display: none !important; }
  .panel { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .panel { display: none; }
}

.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px;
  font-weight: 700; font-size: 16px; pointer-events: none; color: var(--ink);
  background: linear-gradient(to bottom, var(--bg) 72%, rgba(243, 241, 247, 0));
}
.app[data-dark] .statusbar { background: none; }
.sb-island { width: 122px; height: 34px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { fill: currentColor; }
.app[data-dark] .statusbar { color: #fff; }

/* ---------- views ---------- */
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: calc(var(--top) + 10px) 20px calc(var(--bottom) + 96px);
  scrollbar-width: none; overscroll-behavior: contain;
}
.view::-webkit-scrollbar { display: none; }
.view:focus { outline: none; }
.app[data-pushed] .view { padding-bottom: calc(var(--bottom) + 110px); }
.app.enter .view > * { animation: viewIn .32s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateX(18px); } }
.app.enter-back .view > * { animation: viewBack .28s var(--ease) both; }
@keyframes viewBack { from { opacity: 0; transform: translateX(-14px); } }

/* ---------- type ---------- */
.h1 { font-size: 30px; line-height: 1.08; font-weight: 800; font-stretch: 88%; letter-spacing: -.02em; margin: 0; }
.h2 { font-size: 18px; line-height: 1.2; font-weight: 750; margin: 0; letter-spacing: -.005em; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.small { font-size: 13px; color: var(--muted); }
.strong { font-weight: 700; }

/* The shelf-label price: condensed, heavy, cents raised and underlined. */
.pt { display: inline-flex; align-items: flex-start; font-weight: 850; font-stretch: 68%; line-height: .86; letter-spacing: -.01em; white-space: nowrap; }
.pt-e { font-size: .42em; margin: .1em .08em 0 0; font-weight: 800; }
.pt-i { font-size: 1em; }
.pt-c { font-size: .5em; margin-left: .04em; padding-bottom: .04em; border-bottom: .07em solid currentColor; line-height: .9; }
.pt.big { font-size: 64px; }
.pt.mid { font-size: 40px; }
.pt.sm { font-size: 26px; }
.pt.xs { font-size: 20px; }

/* A yellow price tag with a punched hole: used only for the best choice and the savings total. */
.tag {
  display: inline-flex; align-items: center; position: relative;
  padding: 12px 18px 10px 34px; background: var(--label); color: var(--ink);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
  border-radius: 8px;
}
.tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--hole, var(--ink)); transform: translateY(-50%); }
.tag.tilt { transform: rotate(-3deg); }
.tag.small { padding: 7px 12px 6px 24px; clip-path: polygon(15px 0, 100% 0, 100% 100%, 15px 100%, 0 50%); }
.tag.small::before { left: 9px; width: 6px; height: 6px; }

/* Stickers: Bonus / Actie and other short markers. */
.sticker { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 750; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.sticker.deal { background: var(--label); color: var(--ink); transform: rotate(-2deg); }
.sticker.soon { background: var(--tomato-bg); color: var(--tomato-ink); }
.sticker.ok { background: var(--leaf-bg); color: var(--leaf-ink); }
.sticker.plain { background: var(--lilac); color: var(--ink-2); }
.sticker.dark { background: var(--ink); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 750; font-size: 15px;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.yellow { background: var(--label); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.soft { background: var(--lilac); color: var(--ink); }
.btn.ghost-light { background: rgba(255, 255, 255, .12); color: #fff; }
.btn.line { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.block { width: 100%; }
.btn.slim { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--ink);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.clear { background: transparent; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- top bars ---------- */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.navbar { display: flex; align-items: center; gap: 10px; margin: 0 -6px 16px; }
.navbar .icon-btn { background: #fff; }
.navbar-title { flex: 1; min-width: 0; }
.navbar-title b { display: block; font-size: 17px; line-height: 1.2; }
.navbar-title span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatars { display: flex; }
.av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; border: 2.5px solid var(--bg); margin-left: -9px; color: var(--ink);
}
.av:first-child { margin-left: 0; }
.av.l { background: var(--label); }
.av.d { background: #cfe0ff; }

/* Store badges: initials on a soft tint (not the chains' own colours). */
.store-dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex: none;
  font-size: 11px; font-weight: 850; font-stretch: 80%; color: var(--ink);
}
.store-dots { display: inline-flex; }
.store-dots .store-dot { box-shadow: 0 0 0 2px #fff; }
.store-dots .store-dot + .store-dot { margin-left: -6px; }

/* ---------- sections ---------- */
.sec { margin-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head .small { white-space: nowrap; }
.sec-head button.small { color: var(--ink); font-weight: 700; }

/* Grouped rows, iOS-style. */
.group { background: var(--card); border-radius: 20px; overflow: hidden; }
.group + .group { margin-top: 12px; }
.group-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 750; color: var(--ink-2); margin: 20px 4px 8px; }
.group-title span { font-weight: 500; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.row-emoji { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-size: 22px; flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; }
.row-main span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.row-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-side b { font-size: 15px; font-weight: 750; }
.row-side span { font-size: 12px; color: var(--muted); }
.row-tap { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; align-self: stretch; }
.row:has(.check) + .row::before { left: 102px; }
.row.done .row-main b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.row.done .row-emoji { opacity: .5; }

.check {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px #cbc3d8; color: transparent; transition: background .15s, box-shadow .15s;
}
.check svg { width: 16px; height: 16px; }
.check.on { background: var(--leaf); box-shadow: none; color: #fff; }
.check.on svg { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.4); } }

.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 12px; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; }
.qty button svg { width: 16px; height: 16px; }
.qty b { min-width: 22px; text-align: center; font-size: 15px; }

.switch { width: 50px; height: 30px; border-radius: 99px; background: #d4cce0; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(36, 22, 58, .25); transition: transform .2s var(--ease); }
.switch.on { background: var(--leaf); }
.switch.on::after { transform: translateX(20px); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 650; }
.chip.on { background: var(--ink); color: #fff; }
.chip svg { width: 15px; height: 15px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #e6e0ef; border-radius: 16px; }
.seg button { min-height: 42px; border-radius: 12px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink-2); }
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(36, 22, 58, .12); }

.scroller { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; scroll-snap-type: x mandatory; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }

.note { font-size: 12px; color: var(--muted); margin: 14px 4px 0; line-height: 1.45; }
.empty { text-align: center; padding: 32px 20px; }
.empty .emo { font-size: 40px; display: block; margin-bottom: 10px; }
.empty b { display: block; font-size: 16px; margin-bottom: 4px; }
.empty p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 8px var(--bottom);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--line);
}
.app[data-pushed] .tabbar, .app[data-notabs] .tabbar { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); padding: 4px 0; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.tab.on::after { content: ""; position: absolute; top: -8px; width: 22px; height: 4px; border-radius: 0 0 4px 4px; background: var(--label-deep); }
.tab-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tomato); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.tab-scan { align-self: center; justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 20px; background: var(--ink); color: var(--label); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(36, 22, 58, .6); }
.tab-scan svg { width: 27px; height: 27px; }

/* Bottom action bar on pushed screens. */
.actionbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 20px var(--bottom);
  background: linear-gradient(to top, var(--bg) 70%, rgba(243, 241, 247, 0));
}
.actionbar .btn { width: 100%; min-height: 54px; font-size: 16px; }
.actionbar .small { text-align: center; margin-top: 8px; }

/* ---------- toast & sheets ---------- */
.toast {
  position: absolute; left: 50%; bottom: calc(var(--bottom) + 92px); z-index: 80;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600;
  width: max-content; max-width: calc(100% - 40px); text-align: center; transition: opacity .2s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.app[data-pushed] .toast { bottom: calc(var(--bottom) + 96px); }
.app[data-screen="assistant"] .toast { bottom: calc(var(--bottom) + 128px); }

.sheet-root { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(26, 16, 41, .45); opacity: 0; transition: opacity .25s; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--top) - 10px); overflow-y: auto;
  background: var(--bg); border-radius: 30px 30px 0 0; padding: 10px 20px calc(var(--bottom) + 18px);
  transform: translateY(100%); transition: transform .32s var(--ease); pointer-events: auto; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-root:not(.open) .sheet-bg, .sheet-root:not(.open) .sheet { pointer-events: none; }
.sheet-root.open .sheet-bg { opacity: 1; }
.sheet-root.open .sheet { transform: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #cbc3d8; margin: 0 auto 12px; }
.sheet-close { position: absolute; top: 34px; right: 32px; z-index: 2; }
.sheet-close .icon-btn { width: 36px; height: 36px; border-radius: 50%; background: #fff; }

/* ---------- welcome & onboarding ---------- */
.app[data-screen="welcome"] .view { padding-top: calc(var(--top) + 18px); display: flex; flex-direction: column; }
/* On short screens these columns scroll; nothing may be squeezed (the slips would overlap the title). */
.app[data-screen="welcome"] .view > *, .app[data-screen="onboarding"] .view > * { flex-shrink: 0; }
.welcome-art { position: relative; height: 290px; margin: 6px -20px 10px; }
.welcome-art .slip {
  position: absolute; left: 50%; width: 274px; padding: 14px 16px; border-radius: 18px; background: #fff;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 30px -18px rgba(36, 22, 58, .45);
  animation: slipIn .6s var(--ease) both;
}
.welcome-art .slip b { display: block; font-size: 15px; }
.welcome-art .slip div > span { display: block; font-size: 12px; color: var(--muted); }
.welcome-art .slip .pt { margin-left: auto; font-size: 28px; color: var(--muted); }
.welcome-art .s1 { top: 18px; transform: translateX(-62%) rotate(-4deg); animation-delay: .1s; }
.welcome-art .s2 { top: 92px; transform: translateX(-38%) rotate(3deg); animation-delay: .25s; }
.welcome-art .s2 .pt { color: var(--muted); }
.welcome-art .s3 { top: 172px; transform: translateX(-50%) rotate(-1.5deg); background: var(--ink); color: #fff; animation-delay: .5s; }
.welcome-art .s3 div > span { color: rgba(255, 255, 255, .7); }
.welcome-art .s3 .store-dots .store-dot { box-shadow: 0 0 0 2px var(--ink); }
.welcome-art .s3 .pt { color: var(--label); font-size: 34px; }
.welcome-art .s3 .crown { position: absolute; top: -12px; right: 14px; }
@keyframes slipIn { from { opacity: 0; translate: 0 26px; } }
.welcome-art .strike { position: relative; }
.welcome-art .strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 48%; height: 2.5px; background: var(--tomato); transform: rotate(-8deg) scaleX(0); transform-origin: left; animation: strike .35s .95s var(--ease) forwards; }
@keyframes strike { to { transform: rotate(-8deg) scaleX(1); } }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 85%; font-size: 19px; }
.brandline .mark { --h: 32px; }
.welcome-title { font-size: 36px; line-height: 1.04; font-weight: 850; font-stretch: 82%; letter-spacing: -.025em; margin: 18px 0 12px; }
.welcome-text { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 0; }
.welcome-actions { margin-top: auto; padding-top: 24px; display: grid; gap: 6px; }
.welcome-actions .btn { min-height: 56px; font-size: 16px; }
.install-pill {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  padding: 9px 16px; border-radius: 99px; background: var(--label); color: var(--ink); font-size: 14px; font-weight: 750;
}
.install-pill svg { width: 17px; height: 17px; }
.av.me { width: 42px; height: 42px; margin: 0; border: 0; font-size: 16px; }
.key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--bg); vertical-align: middle; margin: -4px 1px 0; }
.key svg { width: 17px; height: 17px; }
.steps-list li b { font-weight: 750; }
.clear-btn { background: transparent; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.steps i { height: 5px; border-radius: 3px; background: #ddd5e8; }
.steps i.on { background: var(--ink); }
.ob-head { display: flex; align-items: center; gap: 12px; margin: 0 -6px 26px; }
.ob-q { font-size: 28px; line-height: 1.1; font-weight: 800; font-stretch: 86%; letter-spacing: -.02em; margin: 0 0 8px; }
.ob-p { color: var(--muted); margin: 0 0 22px; }
.field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 16px; min-height: 56px; }
.field input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 17px; font-weight: 650; }
.field svg { width: 20px; height: 20px; color: var(--muted); }
.field:focus-within { box-shadow: 0 0 0 2.5px var(--ink); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { background: #fff; border-radius: 20px; padding: 16px; text-align: left; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 2px transparent; }
.choice svg { width: 28px; height: 28px; }
.choice b { font-size: 16px; }
.choice span { font-size: 12px; color: var(--muted); display: block; }
.choice.on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; }
.stepper-row + .stepper-row { margin-top: 8px; }
.stepper-row b { font-size: 15px; display: block; }
.stepper-row span { font-size: 13px; color: var(--muted); }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--lilac); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink); }
.callout b { color: var(--ink); }
.ob-foot { margin-top: auto; padding-top: 22px; }
.app[data-screen="onboarding"] .view { display: flex; flex-direction: column; padding-bottom: calc(var(--bottom) + 16px); }

/* ---------- home ---------- */
.hello-date { color: var(--muted); font-size: 14px; margin: 0 0 2px; }
.hero {
  position: relative; background: var(--ink); color: #fff; border-radius: 30px; padding: 20px 20px 18px;
  overflow: hidden; --hole: var(--ink);
}
.hero::before { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 59, .2), transparent 65%); }
.hero > * { position: relative; }
.hero .av { border-color: var(--ink); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.hero-route { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.hero-route b { font-size: 19px; font-weight: 750; line-height: 1.2; }
.hero-price { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.hero-save { font-size: 14px; line-height: 1.35; color: var(--label); font-weight: 650; padding-bottom: 6px; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 16px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; }
.hero-actions { display: flex; gap: 8px; }
.hero-actions .btn { flex: 1; white-space: nowrap; padding: 0 14px; }
.hero-actions .btn:first-child { flex: 1.7; }

.soon-tile { flex: none; width: 148px; background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.soon-tile .emo { font-size: 34px; }
.soon-tile b { font-size: 15px; display: block; line-height: 1.2; }
.soon-tile .days { font-size: 13px; color: var(--tomato-ink); font-weight: 700; }
.soon-tile .days.mild { color: #9a6a00; }
.soon-tile .btn { margin-top: auto; }

.recipe-hero { background: #fff; border-radius: 26px; overflow: hidden; width: 100%; text-align: left; display: block; }
.cover { position: relative; display: grid; place-items: center; overflow: hidden; }
.cover .a1 { font-size: 64px; position: relative; z-index: 1; filter: drop-shadow(0 8px 10px rgba(36, 22, 58, .18)); }
.cover .a2, .cover .a3 { position: absolute; font-size: 34px; }
.cover .a2 { left: 18%; bottom: 14%; transform: rotate(-14deg); }
.cover .a3 { right: 18%; top: 14%; transform: rotate(12deg); }
.cover .plate { position: absolute; width: 132px; height: 132px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 10px rgba(255, 255, 255, .28); }
.recipe-hero .cover { height: 168px; }
.recipe-hero-body { padding: 14px 18px 16px; }
.recipe-hero-body b { font-size: 18px; display: block; line-height: 1.2; }
.meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; }

/* "4 van 6 in huis": one pip per ingredient. */
.have { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: #ddd5e8; }
.pips i.on { background: var(--leaf); }

.deal-tile { flex: none; width: 168px; background: #fff; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.deal-tile .emo { font-size: 32px; }
.deal-tile .sticker { position: absolute; top: 12px; right: 12px; }
.deal-tile b { font-size: 14px; line-height: 1.25; }
.deal-tile .was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.deal-tile .where { font-size: 12px; color: var(--muted); }
.deal-tile .prow { display: flex; align-items: baseline; gap: 8px; }
.deal-tile .btn { margin-top: 6px; }

.decide { background: #fff; border-radius: 26px; padding: 18px; }
.decide-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.decide-head .emo { font-size: 30px; width: 48px; height: 48px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
.decide-head b { display: block; font-size: 16px; }
.decide-head span { display: block; font-size: 13px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.facts li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); }
.facts li svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--muted); }
.verdict { background: var(--leaf-bg); color: var(--leaf-ink); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.decide-actions { display: flex; gap: 8px; }
.decide-actions .btn { flex: 1; }

.link-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px; padding: 14px 16px; width: 100%; text-align: left; }
.link-row .lr-main { flex: 1; }
.link-row .lr-main b { display: block; font-size: 15px; }
.link-row .lr-main span { font-size: 13px; color: var(--muted); }
.link-row > svg { width: 20px; height: 20px; color: var(--muted); }

/* ---------- list ---------- */
.activity { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); background: var(--lilac); padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; }
.activity .av { width: 26px; height: 26px; font-size: 11px; border: 0; }
.addbar { position: relative; margin-bottom: 10px; }
.addbar .field { padding-right: 6px; }
.addbar .field input { font-size: 16px; font-weight: 500; }
.addbar .icon-btn { width: 40px; height: 40px; background: var(--bg); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 10; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(36, 22, 58, .4); overflow: hidden; }
.suggest:empty { display: none; }
.suggest .row { min-height: 56px; }
.suggest .row-side b { font-size: 13px; }
.freq { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.freq .chip { min-height: 34px; font-size: 13px; padding: 0 12px; }
.freq .chip .emo { font-size: 15px; }
.from { font-size: 12px; color: var(--muted); }
.mult { font-size: 13px; font-weight: 750; color: var(--ink); background: var(--lilac); border-radius: 8px; padding: 1px 6px; margin-left: 6px; }
.toggle-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px 12px 16px; margin-top: 12px; width: 100%; text-align: left; }
.toggle-row div { flex: 1; }
.toggle-row b { display: block; font-size: 14px; }
.toggle-row span { font-size: 12px; color: var(--muted); }
.compare-bar {
  /* Sticky insets count from inside the view's bottom padding (which already clears the tab bar). */
  position: sticky; bottom: -22px; z-index: 5; margin-top: 18px;
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 12px 12px 12px 18px;
  box-shadow: 0 18px 30px -18px rgba(36, 22, 58, .7);
}
.compare-bar .cb-main { flex: 1; min-width: 0; }
.compare-bar .cb-main b { display: block; font-size: 15px; }
.compare-bar .cb-main span { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-bar .pt { color: var(--label); font-size: 30px; }
.compare-bar .go { width: 40px; height: 40px; border-radius: 13px; background: var(--label); color: var(--ink); display: grid; place-items: center; flex: none; }
.compare-bar .go svg { width: 20px; height: 20px; }

/* ---------- compare ---------- */
.map { position: relative; border-radius: 24px; overflow: hidden; background: #e9e4f2; margin: 14px 0 6px; }
.map svg { display: block; width: 100%; height: auto; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.map .route.draw { animation: draw .9s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.map-legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.map-legend svg { width: 15px; height: 15px; }
.costline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin: 12px 2px 0; }
.costline span { flex: 1; }
.costline button { font-weight: 750; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.opt { display: block; width: 100%; text-align: left; background: #fff; border-radius: 24px; padding: 16px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; --hole: #fff; }
.opt + .opt { margin-top: 10px; }
.opt.on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.opt.off { opacity: .62; }
.opt-head { display: flex; align-items: center; gap: 10px; }
.opt-head .name { flex: 1; min-width: 0; }
.opt-head .name b { display: block; font-size: 16px; line-height: 1.2; }
.opt-head .name span { display: block; font-size: 13px; color: var(--muted); }
.opt-sum { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 14px; }
.opt-sum small { display: block; font-size: 12px; color: var(--muted); }
.opt-sum b { font-size: 15px; font-weight: 700; }
.opt-sum .pt { font-size: 32px; }
.opt .tag { --hole: #fff; }
.opt-note { margin-top: 12px; font-size: 13px; padding: 9px 12px; border-radius: 12px; background: var(--bg); color: var(--ink-2); }
.opt-note.good { background: var(--leaf-bg); color: var(--leaf-ink); font-weight: 650; }
.opt-note.bad { background: var(--tomato-bg); color: var(--tomato-ink); }
.split { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.split-store { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 14px; margin: 8px 0 4px; }
.split-store span { margin-left: auto; font-weight: 650; color: var(--muted); font-size: 13px; }
.split-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0 4px 38px; color: var(--ink-2); }
.split-line .sticker { margin-left: 6px; font-size: 11px; padding: 1px 6px; }
.why { margin-top: 10px; font-size: 13px; color: var(--ink-2); background: #fff8d9; border-radius: 12px; padding: 10px 12px; }

/* ---------- shop mode ---------- */
.progress { height: 8px; border-radius: 4px; background: #e2dbec; overflow: hidden; margin: 6px 0 4px; }
.progress i { display: block; height: 100%; background: var(--leaf); border-radius: 4px; transition: width .35s var(--ease); }
.stop-head { display: flex; align-items: center; gap: 12px; margin: 22px 4px 10px; }
.stop-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.stop-head b { display: block; font-size: 16px; }
.stop-head span { font-size: 13px; color: var(--muted); }
.stop-head .pt { margin-left: auto; font-size: 22px; }

.done-hero { text-align: center; padding: 30px 0 10px; --hole: var(--bg); }
.done-hero .big-check { width: 76px; height: 76px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; animation: pop .45s var(--ease); }
.done-hero .big-check svg { width: 40px; height: 40px; }
.done-hero .tag { margin: 14px 0 8px; }

/* ---------- recipes ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 16px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 9px; border-radius: 16px; background: #fff; font-size: 11px; font-weight: 700; color: var(--muted); }
.day .emo { font-size: 20px; }
.day.today { background: var(--ink); color: #fff; }
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--tomato-bg); color: var(--tomato-ink); border-radius: 18px; padding: 13px 14px; font-size: 14px; margin: 14px 0 4px; }
.banner .emo { font-size: 22px; }
.banner b { color: var(--tomato-ink); }
.rcard { display: flex; gap: 14px; width: 100%; text-align: left; background: #fff; border-radius: 22px; padding: 10px; align-items: stretch; }
.rcard + .rcard { margin-top: 10px; }
.rcard .cover { width: 92px; height: 92px; border-radius: 16px; flex: none; }
.rcard .cover .a1 { font-size: 40px; }
.rcard .cover .a2, .rcard .cover .a3 { font-size: 20px; }
.rcard .cover .plate { width: 66px; height: 66px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .28); }
.rcard-body { flex: 1; min-width: 0; padding: 4px 4px 2px 0; display: flex; flex-direction: column; }
.rcard-body .when { font-size: 12px; font-weight: 750; color: var(--muted); }
.rcard-body b { font-size: 15px; line-height: 1.25; margin: 1px 0 6px; }
.rcard-body .have { margin-top: auto; }
.missing { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.missing.all { color: var(--leaf-ink); font-weight: 700; }

.rsheet .cover { height: 190px; border-radius: 24px; margin: 0 0 16px; }
.rsheet .cover .a1 { font-size: 78px; }
.rsheet .cover .a2, .rsheet .cover .a3 { font-size: 40px; }
.rsheet .cover .plate { width: 150px; height: 150px; }
.rsheet h2 { font-size: 24px; line-height: 1.12; font-weight: 800; font-stretch: 88%; margin: 0; letter-spacing: -.015em; }
.ing { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 54px; position: relative; }
.ing + .ing::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--line); }
.ing .emo { font-size: 22px; width: 32px; text-align: center; }
.ing-main { flex: 1; min-width: 0; }
.ing-main b { font-size: 15px; font-weight: 650; display: block; }
.ing-main span { font-size: 12px; color: var(--muted); }
.ing .state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ing .state svg { width: 15px; height: 15px; }
.ing .state.has { background: var(--leaf-bg); color: var(--leaf-ink); }
.ing .state.need { background: var(--tomato-bg); color: var(--tomato-ink); }
.ing .state.listed { background: var(--lilac); color: var(--ink); }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; line-height: 1.45; background: #fff; border-radius: 16px; padding: 12px 14px; }
.steps-list li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--label); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.sheet-actions { display: grid; gap: 8px; margin: 16px 0 6px; }

/* ---------- pantry ---------- */
.fresh { height: 5px; border-radius: 3px; background: #ebe6f2; overflow: hidden; margin-top: 6px; width: 92px; }
.fresh i { display: block; height: 100%; border-radius: 3px; background: var(--leaf); }
.fresh i.soon { background: var(--tomato); }
.fresh i.mid { background: var(--label-deep); }
.days-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.days-label.soon { color: var(--tomato-ink); }
.days-label.mid { color: #946500; }
.days-label.ok { color: var(--muted); font-weight: 600; }
.saved-strip { display: flex; align-items: center; gap: 12px; background: var(--leaf-bg); color: var(--leaf-ink); border-radius: 18px; padding: 12px 16px; font-size: 14px; margin: 14px 0 0; }
.saved-strip svg { width: 22px; height: 22px; flex: none; }
.saved-strip b { color: var(--leaf-ink); }

/* ---------- scan ---------- */
.app[data-screen="scan"] { background: #120b1d; }
.app[data-screen="scan"][data-phase="review"] { background: var(--bg); }
.scan-top { display: flex; justify-content: space-between; align-items: center; color: #fff; margin: 0 -6px 14px; }
.scan-top b { font-size: 17px; }
.scan-top .icon-btn { background: rgba(255, 255, 255, .14); color: #fff; }
.finder { position: relative; height: 560px; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 80% at 50% 40%, #4a3d36 0, #2a211d 60%, #191310 100%); display: grid; place-items: center; }
.finder .corner { position: absolute; width: 46px; height: 46px; border: 4px solid var(--label); }
.finder .c1 { top: 22px; left: 22px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.finder .c2 { top: 22px; right: 22px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.finder .c3 { bottom: 22px; left: 22px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.finder .c4 { bottom: 22px; right: 22px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.receipt {
  width: 228px; background: #fbfaf6; color: #2d2a26; padding: 18px 16px 22px; transform: rotate(-3deg);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.55;
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .7);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
}
.receipt .r-store { text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .2em; }
.receipt .r-sub { text-align: center; margin-bottom: 8px; }
.receipt .r-line { display: flex; justify-content: space-between; gap: 8px; }
.receipt .r-sep { border-top: 1px dashed #8f8a82; margin: 6px 0; }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 12px; }
.scanline { position: absolute; left: 10%; right: 10%; height: 3px; border-radius: 2px; background: var(--label); box-shadow: 0 0 22px 6px rgba(255, 212, 59, .55); top: 12%; opacity: 0; }
.finder.reading .scanline { opacity: 1; animation: scanmove 1.3s ease-in-out infinite alternate; }
@keyframes scanmove { to { top: 86%; } }
.finder-hint { position: absolute; left: 0; right: 0; bottom: 84px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; }
.finder-hint span { background: rgba(0, 0, 0, .45); padding: 8px 14px; border-radius: 99px; }
.shutter-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 22px; color: #fff; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; }
.shutter i { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform .12s; }
.shutter:active i { transform: scale(.9); }
.shutter-side { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; color: #fff; }
.shutter-side svg { width: 24px; height: 24px; }
.doubt { background: var(--tomato-bg); border-radius: 0; padding: 12px 16px 14px 68px; }
.doubt p { margin: 0 0 8px; font-size: 13px; color: var(--tomato-ink); font-weight: 650; }
.doubt .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.doubt .chip { min-height: 34px; font-size: 13px; }
.ocr { font-size: 12px; color: var(--muted); }

/* ---------- assistant ---------- */
.chat { display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 20px 20px 20px 6px; background: #fff; font-size: 15px; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-radius: 20px 20px 6px 20px; }
.bubble p { margin: 0; }
.bubble p + p, .bubble ul + p, .bubble p + ul { margin-top: 8px; }
.bubble ul { margin: 0; padding-left: 18px; }
.bubble li + li { margin-top: 3px; }
.bubble .btn { margin-top: 10px; }
.bubble .who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--muted); margin-bottom: 4px; }
.bubble .who svg { width: 14px; height: 14px; color: var(--label-deep); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #bdb3cc; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.ask-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px var(--bottom); background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.ask-bar .chips { margin: 0 -16px 10px; padding: 0 16px; }
.ask-bar .chip { min-height: 34px; font-size: 13px; background: #fff; }
.ask-bar .field { min-height: 50px; padding-right: 6px; }
.ask-bar .field input { font-size: 15px; font-weight: 500; }
.ask-bar .icon-btn { width: 40px; height: 40px; background: var(--ink); color: #fff; border-radius: 13px; }
.app[data-screen="assistant"] .view { padding-bottom: calc(var(--bottom) + 130px); }

/* ---------- savings ---------- */
.save-hero { background: var(--ink); color: #fff; border-radius: 30px; padding: 22px 20px; --hole: var(--ink); }
.save-hero .small { color: rgba(255, 255, 255, .72); }
.save-hero .tag { margin: 14px 0 12px; }
.bars { background: #fff; border-radius: 24px; padding: 16px 16px 12px; }
.bars svg { width: 100%; height: auto; display: block; }
.bars + .stepper-row { margin-top: 12px; }
.bars text { font-family: var(--f); font-size: 11px; fill: var(--muted); }
.part { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; position: relative; }
.part + .part::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.part b { font-size: 15px; font-weight: 650; }
.part strong { font-size: 15px; }
.part .meter { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #ebe6f2; overflow: hidden; }
.part .meter i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.part span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
