/* Hyldehelten prototype — the app inside the phone (390 × 844) */

.app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding-top: 54px;
  background: linear-gradient(180deg, #fefbeb 0%, #f4f8e7 42%, #e8f2dc 100%);
  font-size: 14px; line-height: 1.4;
}
:where(.app) button { font: inherit; color: inherit; cursor: pointer; }
.app-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-view.enter { animation: viewIn .26s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.muted { color: var(--ink-2); }
.fine { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }
.fine.center { text-align: center; }
.pad { margin: 0; padding: 4px 2px 2px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 6px; height: 52px; flex: none; padding: 0 12px 0 18px; }
.top h1 { flex: 1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1.wordmark { font-weight: 800; font-size: 17px; letter-spacing: .05em; }
.top .icon-btn:first-child { margin-left: -10px; }
.top .icon-btn:first-child + h1 { font-size: 19px; }
.top-actions { display: flex; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 14px; background: none; }
.icon-btn:hover { background: rgba(18, 36, 59, .07); }
.icon-btn .ic { width: 25px; height: 25px; }
.icon-btn.tilt-l .ic { transform: rotate(-10deg); }
.icon-btn.tilt-r .ic { transform: rotate(12deg); }
.icon-btn .pip { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid var(--cream); }

.scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 4px 16px 26px; scrollbar-width: none; }
.scroll::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.scroll > * { flex: none; }

.card { padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(18, 36, 59, .07); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; }
.sec-head span, .sec-head button { font-size: 12px; color: var(--ink-2); }
.sec-head span b { color: var(--ink); font-weight: 600; }
.sec-head button { border: 0; background: none; padding: 4px 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sec-head.in h3 { font-size: 15px; }
.scroll > .sec-head { margin-bottom: -6px; }

.round { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--coral); color: var(--ink); }
.round .ic { width: 21px; height: 21px; }
.round.delivery { background: var(--ok-soft); color: var(--ok); }
.round.offer { background: #ffe9a6; }

.tag { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 3px 8px; border-radius: 999px; background: rgba(18, 36, 59, .07); font-size: 10.5px; font-weight: 600; }
.tag .ic { width: 12px; height: 12px; }
.tag.low { background: var(--coral-soft); color: var(--coral-ink); }

.thumb { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: color-mix(in srgb, var(--tint) 18%, #fff); }
.thumb .pack { width: 70%; height: 74%; }
.thumb.sm { width: 46px; height: 46px; border-radius: 14px; }
.thumb.xs { width: 36px; height: 36px; border-radius: 11px; }

.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(18, 36, 59, .07); }
.stepper button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; }
.stepper button .ic { width: 16px; height: 16px; }
.stepper span { min-width: 24px; padding: 0 4px; text-align: center; font-weight: 600; font-size: 13px; white-space: nowrap; }

.meter { display: block; height: 6px; border-radius: 3px; background: rgba(18, 36, 59, .1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .4s; }
.meter.low i, .meter.out i { background: var(--coral); }
.meter.ordered i { background: var(--ok); }
.meter.big { height: 10px; border-radius: 5px; margin: 2px 0 10px; }
.meter.big i { border-radius: 5px; }

/* ---------- product cards ---------- */
.hscroll { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll .pcard { width: 146px; flex: none; scroll-snap-align: start; scroll-margin-left: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { display: flex; flex-direction: column; padding: 8px 8px 10px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(18, 36, 59, .07); cursor: pointer; transition: transform .12s; }
.pcard:active { transform: scale(.98); }
.pcard:focus-visible, .sug:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pc-art { position: relative; display: grid; place-items: center; height: 108px; border-radius: 16px; background: color-mix(in srgb, var(--tint) 18%, #fff); }
.pc-art .pack { width: 72%; height: 76%; }
.badge { position: absolute; top: 8px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.offer { left: 8px; padding: 2px 8px; background: var(--coral); color: var(--ink); }
.badge.eco { right: 8px; padding: 4px; background: var(--ok-soft); color: var(--ok); }
.badge.eco .ic { width: 15px; height: 15px; }
.pc-name { margin: 9px 4px 0; font-weight: 600; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.5em; }
.pc-meta { margin: 2px 4px 0; font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin: auto 0 0 4px; padding-top: 8px; }
.price { display: grid; font-weight: 700; font-size: 14px; line-height: 1.2; }
.price s { font-weight: 400; font-size: 11px; color: var(--ink-2); }
.add { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: #000; color: #fff !important; font-weight: 600; font-size: 13.5px; transition: transform .12s; }
.add:active { transform: scale(.9); }
.add .ic { width: 18px; height: 18px; }
.add.has { background: var(--coral); color: var(--ink) !important; }

/* ---------- Home ---------- */
.hello { padding: 2px 2px 0; }
.hello p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.hello h2 { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.18; letter-spacing: -.01em; }
.stack { display: grid; gap: 10px; }
.sug { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px; border-radius: 22px; background: #fff; border: 1.5px solid var(--ink); cursor: pointer; }
.sug-main { display: grid; gap: 2px; align-content: center; min-width: 0; }
.sug-main strong { font-size: 15px; font-weight: 600; }
.sug-main .muted { font-size: 12.5px; }
.sug-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.pill { height: 40px; padding: 0 14px; border: 0; border-radius: 14px; background: rgba(18, 36, 59, .08); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.dark { flex: 1; background: #000; color: #fff !important; }
.pill.quiet { background: none; color: var(--ink-2) !important; padding: 0 8px; }
.calm { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 6px; border-radius: 22px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(18, 36, 59, .07); }
.calm img { width: 96px; flex: none; }
.calm div { display: grid; gap: 2px; }
.calm strong { font-size: 15px; font-weight: 600; }
.calm span { font-size: 12.5px; color: var(--ink-2); }
.deliv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--ink); color: #fff !important; text-align: left; }
.deliv > .ic { width: 28px; height: 28px; transform: rotate(-8deg); }
.deliv > span { flex: 1; display: grid; min-width: 0; }
.deliv strong { font-weight: 600; }
.deliv span span { font-size: 12px; opacity: .8; }
.deliv b { display: grid; justify-items: end; font-weight: 600; font-size: 13px; white-space: nowrap; }
.deliv small { font-weight: 400; font-size: 12px; opacity: .8; }

/* ---------- Search ---------- */
.search-bar { flex: none; display: grid; gap: 10px; padding: 0 16px 12px; }
.field { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ink); }
.field > .ic { width: 20px; height: 20px; transform: rotate(8deg); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--ink-3); }
.field input::-webkit-search-cancel-button { display: none; }
.field:focus-within { box-shadow: 0 0 0 3px rgba(18, 36, 59, .14); }
.clear { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(18, 36, 59, .08); }
.clear .ic { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chip { flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(18, 36, 59, .08); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.on { background: #000; color: #fff !important; font-weight: 600; }
.count { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.quick { display: grid; gap: 8px; }
.quick > span { font-size: 12.5px; color: var(--ink-2); }
.cat-head { margin: 6px 0 -4px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; }
.empty .float { color: #b4bab4; margin-bottom: 6px; }
.empty .float .ic { width: 64px; height: 64px; transform: rotate(12deg); }
.empty strong { font-size: 16px; font-weight: 600; }
.empty > span { font-size: 13px; color: var(--ink-2); }
.empty .chips { justify-content: center; margin-top: 10px; }

/* ---------- My home ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(18, 36, 59, .08); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 12px; background: none; font-size: 13px; font-weight: 500; }
.seg button.on { background: #000; color: #fff !important; font-weight: 600; }
.seg .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.seg.sm { margin-top: 10px; }
.seg.sm button { height: 34px; font-size: 12.5px; }
.sensor-row { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 12.5px; font-weight: 500; }
.sensor-row .muted { margin-left: auto; font-weight: 400; }
.sensor-row .pip { width: 8px; height: 8px; border-radius: 50%; background: #3fbf74; }
.sensor-row.off .pip { background: #9aa5b1; }
.inv { border-radius: 22px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(18, 36, 59, .07); overflow: hidden; }
.inv-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 11px 12px; border: 0; background: none; text-align: left; }
.inv-row + .inv-row { border-top: 1px solid rgba(18, 36, 59, .07); }
.inv-row:hover { background: rgba(255, 255, 255, .6); }
.inv-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.inv-main strong { font-weight: 600; }
.inv-main .muted { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-main .meter { margin-top: 5px; }
.inv-side { display: grid; justify-items: end; gap: 1px; flex: none; }
.inv-side b { font-weight: 600; }
.status { font-size: 11.5px; color: var(--ink-2); }
.status.low, .status.out { color: var(--coral-ink); font-weight: 600; }
.status.ordered { color: var(--ok); font-weight: 600; }

/* ---------- Orders ---------- */
.next { display: grid; gap: 0; }
.next-head { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
.next-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; }
.next-head span { font-size: 12.5px; color: var(--ink-2); }
.next-head .round .ic { transform: rotate(-8deg); }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(18, 36, 59, .08); }
.line:first-of-type { margin-top: 10px; }
.line-art { padding: 0; border: 0; background: none; }
.line-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.line-main strong { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.line-main .muted { font-size: 11.5px; }
.line-main .tag { margin-top: 4px; }
.line-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.line-side b { font-weight: 600; font-size: 13.5px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 8px; border-top: 1px solid rgba(18, 36, 59, .08); }
.total b { font-size: 17px; font-weight: 700; }
.order { padding: 0; }
.order summary { display: flex; align-items: center; gap: 10px; padding: 13px 12px 13px 14px; list-style: none; cursor: pointer; }
.order summary::-webkit-details-marker { display: none; }
.order summary > span { flex: 1; display: grid; }
.order summary strong { font-weight: 600; }
.order summary .muted { font-size: 12px; }
.order summary b { font-weight: 600; }
.order summary .ic { width: 18px; height: 18px; transition: transform .2s; }
.order[open] summary .ic { transform: rotate(90deg); }
.order-lines { display: grid; padding: 0 14px 10px; }
.order-lines button { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border: 0; border-top: 1px solid rgba(18, 36, 59, .07); background: none; font-size: 13px; text-align: left; }
.scroll > .order + .order { margin-top: -6px; }

/* ---------- Spending ---------- */
.figure { display: grid; gap: 2px; padding: 16px 16px 15px; }
.figure .label { font-size: 13px; font-weight: 500; }
.figure .num { font-size: 46px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.figure .muted { font-size: 12px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(18, 36, 59, .1); stroke-width: 1; }
.chart .tick, .chart .xl { font: 500 10px var(--body); fill: var(--ink-2); }
.chart .col { cursor: pointer; outline: none; }
.chart .col path { fill: var(--ink); }
.chart .col.cur path { fill: var(--coral); }
.chart .hitbox { fill: transparent; rx: 8px; }
.chart .col.on .hitbox, .chart .col:focus-visible .hitbox { fill: rgba(18, 36, 59, .06); }
.chart .col.on .xl { font-weight: 700; fill: var(--ink); }
.chart .avg { stroke: var(--ink); stroke-width: 1; opacity: .6; }
.chart .avg-l { font: 500 10px var(--body); fill: var(--ink-2); paint-order: stroke; stroke: #fbfcf3; stroke-width: 4px; stroke-linejoin: round; }
.rank { display: grid; }
.rank-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; }
.rank-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-top b { font-weight: 600; flex: none; }
.bar { display: block; height: 8px; border-radius: 4px; background: rgba(18, 36, 59, .08); }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }

/* ---------- Product page ---------- */
.scroll.product { gap: 14px; }
.p-hero { position: relative; display: grid; place-items: center; height: 214px; border-radius: 28px; background: color-mix(in srgb, var(--tint) 20%, #fff); }
.p-hero .pack { width: 66%; height: 74%; filter: drop-shadow(0 10px 8px rgba(18, 36, 59, .14)); }
.p-hero .badge { top: 14px; font-size: 12.5px; }
.p-hero .badge.offer { left: 14px; padding: 4px 11px; }
.p-hero .badge.eco { right: 14px; padding: 4px 10px 4px 7px; }
.p-head { display: grid; gap: 2px; padding: 0 2px; }
.p-brand { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.p-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.p-price b { font-size: 22px; font-weight: 700; }
.p-price s { font-size: 13px; color: var(--ink-2); }
.p-price .muted { margin-left: auto; font-size: 12px; }

.box { padding: 14px; border-radius: 22px; }
.box.suggest { background: #fff; border: 1.5px solid var(--ink); }
.box.done { background: var(--ok-soft); }
.box.done .round { background: var(--ok); color: #fff; }
.box.muted { background: rgba(18, 36, 59, .07); }
.box.muted .round { background: rgba(18, 36, 59, .12); }
.box-head { display: flex; align-items: flex-start; gap: 12px; }
.box-head > div:not(.stepper) { flex: 1; display: grid; gap: 2px; }
.box-head strong { font-size: 15px; font-weight: 600; }
.box-head span { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.box-head .stepper { align-self: center; background: rgba(255, 255, 255, .6); }
.box-head .stepper span { color: var(--ink); font-size: 13px; }
.box-actions { display: grid; gap: 6px; margin-top: 12px; }
.cta { height: 50px; border: 0; border-radius: 18px; background: #000; color: #fff !important; font-size: 14.5px; font-weight: 600; transition: transform .12s; }
.cta:active { transform: scale(.98); }
.cta.light { height: 42px; background: rgba(18, 36, 59, .08); color: var(--ink) !important; font-size: 13.5px; }
.box.done .cta.light { background: rgba(255, 255, 255, .6); }
.cta.wide { width: 100%; height: 54px; }

.at-home { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid rgba(18, 36, 59, .07); border-radius: 18px; background: rgba(255, 255, 255, .74); text-align: left; }
.at-home > .ic { transform: rotate(-9deg); }
.ah-main { flex: 1; display: grid; gap: 6px; font-size: 12.5px; }
.at-home b { font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.p-desc h3 { margin: 4px 0 6px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.p-desc p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.p-desc dl { margin: 0; border-radius: 18px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(18, 36, 59, .07); }
.p-desc dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; font-size: 13px; }
.p-desc dl div + div { border-top: 1px solid rgba(18, 36, 59, .07); }
.p-desc dt { color: var(--ink-2); flex: none; }
.p-desc dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- Settings ---------- */
.settings { gap: 8px; }
.settings h4 { margin: 12px 6px 0; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.settings .card { padding: 0; overflow: hidden; }
.profile { display: flex; align-items: center; gap: 12px; padding: 14px !important; }
.profile div { display: grid; }
.profile strong { font-size: 16px; font-weight: 600; }
.profile span:not(.avatar) { font-size: 12px; color: var(--ink-2); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--coral); font-family: var(--display); font-weight: 700; font-size: 20px; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; background: none; text-align: left; }
.set-row > .ic:first-child { width: 22px; height: 22px; transform: rotate(-8deg); }
.set-row > .ic:last-child { width: 17px; height: 17px; color: var(--ink-3); }
.set-row + .set-row, .set-block, .set-block + .set-row { border-top: 1px solid rgba(18, 36, 59, .07); }
.set-main { flex: 1; min-width: 0; display: grid; }
.set-main strong, .set-block strong { font-weight: 500; font-size: 14px; }
.set-main span, .set-block > span { font-size: 12px; color: var(--ink-2); }
.set-block { display: grid; padding: 12px 14px 14px; }
.switch { position: relative; width: 48px; height: 29px; flex: none; padding: 0; border: 0; border-radius: 15px; background: rgba(18, 36, 59, .2); transition: background .18s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"] i { transform: translateX(19px); }
.settings .stepper span { min-width: 70px; }

/* ---------- Notifications ---------- */
.alerts-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-size: 12.5px; color: var(--ink-2); }
.alerts-bar button { border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.alerts { display: grid; gap: 8px; }
.alert { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; border: 1px solid rgba(18, 36, 59, .07); border-radius: 20px; background: rgba(255, 255, 255, .6); text-align: left; }
.alert.new { background: #fff; border-color: var(--ink); }
.alert.new::after { content: ''; position: absolute; top: 15px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.alert-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.alert-main strong { font-weight: 600; padding-right: 16px; }
.alert-main span { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.alert-main time { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- tab bar: the "angled" icons ---------- */
.tabbar { flex: none; display: flex; padding: 6px 8px 26px; background: rgba(254, 251, 235, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(18, 36, 59, .08); }
.tab { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 4px 0 0; border: 0; background: none; font-size: 10.5px; font-weight: 500; color: var(--ink-2) !important; }
.tab-ic { position: relative; display: grid; place-items: center; width: 50px; height: 36px; border-radius: 14px; color: var(--ink); transition: background .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tab-ic .ic { width: 27px; height: 27px; }
.tab:nth-child(1) .tab-ic { transform: rotate(-8deg); }
.tab:nth-child(2) .tab-ic { transform: rotate(9deg); }
.tab:nth-child(3) .tab-ic { transform: rotate(-10deg); }
.tab:nth-child(4) .tab-ic { transform: rotate(11deg); }
.tab:nth-child(5) .tab-ic { transform: rotate(-7deg); }
.tab.on { color: var(--ink) !important; font-weight: 600; }
.tab.on .tab-ic { background: var(--coral); }
.tab:nth-child(odd).on .tab-ic { transform: rotate(-4deg) scale(1.04); }
.tab:nth-child(even).on .tab-ic { transform: rotate(4deg) scale(1.04); }
.tab .count { position: absolute; top: -3px; right: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #000; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; }
.onboarding .tabbar { display: none; }

.toast { position: absolute; left: 50%; bottom: 104px; z-index: 20; max-width: 320px; padding: 10px 16px; border-radius: 999px; background: #000; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.toast.show { animation: toast 2.4s ease both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 8%, 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }

/* ---------- start screen (from the mockup) ---------- */
.start { position: absolute; inset: 0; z-index: 5; overflow: hidden; background: linear-gradient(170deg, #fefbeb 0%, #eff5e2 56%, #f7c9b8 76%, #fe7059 106%); text-align: center; }
.start .float { position: absolute; color: #b4bab4; }
.start .float .ic { display: block; width: 100%; height: 100%; }
.start .f1 { left: 152px; top: 122px; width: 94px; height: 94px; transform: rotate(16deg); animation: drift 6s ease-in-out infinite; }
.start .f2 { left: 24px; top: 196px; width: 116px; height: 116px; transform: rotate(18deg); animation: drift 7s ease-in-out -2s infinite; }
.start .f3 { left: 264px; top: 208px; width: 100px; height: 100px; transform: rotate(-20deg); animation: drift 6.5s ease-in-out -4s infinite; }
@keyframes drift { 50% { translate: 0 -8px; } }
.start h1 { position: absolute; left: 0; right: 0; top: 318px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.32; letter-spacing: -.005em; color: #000; }
.start-btn { position: absolute; left: 84px; top: 452px; width: 222px; height: 62px; border: 0; border-radius: 22px; background: #000; color: #fff !important; font-size: 20px !important; font-weight: 600 !important; transition: transform .12s; }
.start-btn:active { transform: scale(.97); }
.start-hero { position: absolute; left: 0; right: 0; bottom: 0; line-height: 0; }
.start-hero img { width: 100%; display: block; }
.start-hero span { position: absolute; left: 63.6%; top: 46.5%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 700; font-size: 10.5px; line-height: 1; letter-spacing: .05em; color: #000; }
