/* Coconuts app UX (2026-11-03): bottom tabs on mobile, filters + saved views, palette, toasts, skeletons, card motion, onboarding.
   Brand palette only; WCAG AA; every animation off under prefers-reduced-motion (styles.css). */
.app-top { position: sticky; top: 0; z-index: 30; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: 600 13px var(--font-body); }
.icon-btn kbd { font: 600 11px var(--font-body); color: var(--gray-1); }
.navlink { color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.navlink[aria-current="page"] { background: var(--surface-2); font-weight: 700; }

/* bottom tab bar (mobile) */
.btabs { display: none; }
@media (max-width: 720px) {
  .who .navlink { display: none; }
  .btabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .btabs a { display: grid; justify-items: center; gap: 2px; font: 600 11px var(--font-body); color: var(--gray-1); text-decoration: none; padding: 4px 0; border-radius: 10px; }
  .btabs a svg { width: 22px; height: 22px; }
  .btabs a[aria-current="page"] { color: var(--green); }
  body.app { padding-bottom: 76px; }
  .app-top .tagline, .app-top #btn-out { display: none; }
  .app-top .who { margin-left: auto; }
  .top-actions .icon-btn kbd { display: none; }
}

/* filters + saved views */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 6px 0 8px; }
.filters label { font-size: 12px; color: var(--gray-1); }
.filters input, .filters select { font-size: 14px; padding: 7px 8px; }
.views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.view-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.view-chip.active { border-color: var(--green); background: var(--surface-2); }
.view-chip .x { color: var(--gray-1); font-size: 12px; }

/* skeletons */
.skel-card { height: 148px; border-radius: var(--radius-card); border: 1px solid var(--line); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* card motion: new cards slide in, a changed price ticks, stale cards fade (styles.css .expired) */
.card-in { animation: cardIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.ticked .odds { animation: tick 1.6s ease-out; border-radius: 4px; }
@keyframes tick { 0% { background: color-mix(in srgb, var(--sun) 70%, transparent); } 100% { background: transparent; } }
.expired { transition: opacity .6s; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); }
@media (max-width: 720px) { .toasts { bottom: 86px; } }
.toast { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: cardIn .25s both; font-size: 14px; }
.toast .link { color: var(--sun); font-weight: 700; }
.toast.out { opacity: 0; transition: opacity .2s; }

/* command palette */
dialog.palette { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(92vw, 560px); background: var(--surface); color: var(--ink); margin-top: 12vh; }
dialog.palette::backdrop, dialog.tshare::backdrop, dialog.onb::backdrop { background: rgba(15, 27, 45, .45); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; font-size: 17px; padding: 16px 18px; background: transparent; }
.palette input:focus { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--surface-2); }
.palette .fine { margin: 0; padding: 8px 14px 12px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font: 600 12px var(--font-body); background: var(--bg); }
.help-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }

/* tracker: swipe to settle, share */
.tbet.swipe { touch-action: pan-y; position: relative; transition: transform .15s; }
.tbet[data-hint="win"] { box-shadow: inset 6px 0 0 var(--green); }
.tbet[data-hint="loss"] { box-shadow: inset -6px 0 0 var(--danger); }
dialog.tshare { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); width: min(94vw, 640px); }
.tshare-prev { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* onboarding */
dialog.onb { border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(94vw, 520px); padding: 22px; }
.onb-steps { display: flex; gap: 6px; margin-bottom: 12px; }
.onb-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.onb-steps i.on { background: var(--green); }
.onb h2 { margin: 6px 0; }
.onb .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.onb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.coach { position: fixed; z-index: 55; max-width: 280px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.coach img { float: left; margin: 0 8px 4px 0; }
.coach .stack-row { margin-top: 8px; }
.coach .btn { padding: 6px 12px; font-size: 13px; }
.coach-ring { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 12px; }

/* referral dashboard */
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ref-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.ref-stats b { display: block; font: 700 22px var(--font-display); color: var(--green); }
.signout-row { display: none; }
@media (max-width: 720px) { .signout-row { display: block; text-align: center; } }

/* admin funnel */
.fbar { display: grid; grid-template-columns: 170px 1fr 56px; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.fbar-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.fbar-track i { display: block; height: 100%; background: var(--green); border-radius: 7px; }
.fbar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .fbar { grid-template-columns: 120px 1fr 44px; } }

/* ===== Dashboard layout (Jake 2026-11-03: same look as the edgefinder dashboard; design ported, no code or data shared) ===== */
body.app { --gutter: 16px; --shadow: var(--shadow-card); --shadow-lift: var(--shadow-pop); }
body.app main { max-width: 1240px; padding: 8px var(--gutter) 40px; }
.app-top { display: block; padding: 0; background: var(--bg); border-bottom: 0; }
.app-top .top-inner { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-top .brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.app-top .palm-logo { width: 36px; height: 36px; border-radius: 12px; }
.app-top .word { font: 700 24px var(--font-display); color: var(--green); }
.app-top .sub { color: var(--gray-1); font-size: 13px; font-family: var(--font-body); font-weight: 400; }
.app-top .status { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-1); flex-wrap: wrap; justify-content: flex-end; }
.app-top .status b { color: var(--ink); font-weight: 600; }
.app-top .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gray-1); margin-right: 6px; vertical-align: -1px; }
.app-top .dot.on { background: var(--green); }
.app-top .dot.off { background: var(--danger); }
.shell { max-width: 1240px; margin: 0 auto; }
.greet { margin: 0; padding: 0 var(--gutter); font: 600 18px var(--font-display); color: var(--ink); }
.greet-sub { color: var(--gray-1); font: 500 14px var(--font-body); margin-left: 6px; }
.topbar { padding: 10px var(--gutter) 10px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tb-total { position: relative; padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; min-width: 280px; }
.tb-periods { display: flex; gap: 4px; margin-bottom: 4px; }
.tb-periods button { border: 0; background: transparent; color: var(--gray-1); font: 600 12px var(--font-body); padding: 2px 10px; min-height: 26px; min-width: 32px; border-radius: 999px; cursor: pointer; }
.tb-periods button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tb-big { font: 700 34px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; min-height: 38px; }
.tb-big.neg { color: var(--danger); }
.tb-empty { font: 600 19px var(--font-display); color: var(--ink); }
.tb-sub { font-size: 13px; color: var(--gray-1); margin-top: 2px; min-height: 22px; }
.tb-sub .btn { margin: 6px 0 0; }
.tb-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; padding: 8px 2px 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.tb-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tb-bal { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tb-bal.neg { color: var(--danger); }
.tb-st { font-size: 10px; font-weight: 700; color: var(--gray-1); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-add .plus { width: 34px; height: 34px; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; font: 700 20px var(--font-display); color: var(--gray-1); }
.simple-tabs { padding: 8px var(--gutter) 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.simple-tabs::-webkit-scrollbar { display: none; }
.simple-tabs a { flex: none; padding: 10px 2px; margin-right: var(--space-5); border-bottom: 2px solid transparent; font: 600 16px var(--font-body); color: var(--gray-1); text-decoration: none; min-height: var(--tap); }
.simple-tabs a:hover { color: var(--ink); }
.simple-tabs a.active { color: var(--ink); border-bottom-color: var(--green); }
.simple-tabs a.adv { margin-left: auto; font-weight: 500; color: var(--gray-1); }
.simple-tabs a.adv.active { color: var(--ink); }
/* feed panel: Today on Coconuts, bankroll banner, best right now, pre/in-game pills */
.today-box { padding: 12px 16px; margin: 8px 0 12px; }
.today-box summary { display: flex; align-items: center; gap: 8px; }
.today-body ul { margin: 8px 0 4px; padding-left: 20px; }
.feed-panel { background: var(--surface-2); border-radius: var(--radius-card); padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 10px; }
.bank-banner { margin: 0; background: color-mix(in srgb, var(--sun) 22%, var(--surface)); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.best-now { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.best-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.best-item { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; color: var(--ink); }
.best-kind { font-weight: 700; } .best-kind.arb { color: var(--green); } .best-kind.value { color: var(--ink); }
.best-up { font-size: 13px; color: var(--gray-1); }
.pills { display: flex; gap: 6px; }
.pill-f { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 14px; font: 500 14px var(--font-body); cursor: pointer; }
.pill-f.active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-f.active { color: #1E2A24; } }
:root[data-theme="dark"] .pill-f.active { color: #1E2A24; }
#view-feed .cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.sc-card { padding: 14px 16px; overflow-x: auto; }
.sc-card h3 { margin: 0 0 8px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.learn-grid .hub-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.learn-grid .hub-card:hover { border-color: var(--green); }
.learn-grid h3 { margin: 0 0 4px; font: 600 17px var(--font-display); color: var(--green); }
.learn-grid p { margin: 0; font-size: 14px; }
@media (max-width: 720px) {
  .app-top .sub, .app-top #scan-run { display: none; }
  .app-top .top-inner { flex-wrap: nowrap; }
  .tb-total { min-width: 0; width: 100%; }
  .tb-buttons { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .tb-btn { flex: none; }
  .simple-tabs a.adv { margin-left: 0; }
  #view-feed .cards, .sc-grid { grid-template-columns: 1fr; }
}
.upsell-details summary { cursor: pointer; font-weight: 700; color: var(--green); margin-top: 6px; }
.upsell-details[open] summary { margin-bottom: 8px; }

/* Phase 3.2: quick calc + card detail sparkline */
details.qcalc { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 0; }
details.qcalc output { display: grid; gap: 4px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 60px; } .spark polyline { fill: none; stroke: var(--green); stroke-width: 2; }
dialog.card-detail { max-width: min(94vw, 520px); }

/* Phase 3.4 onboarding: progress dots + Coco tip */
.onb-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.onb-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: transform .2s, background .2s; }
.onb-dots i.done { background: var(--ink); opacity: .55; } .onb-dots i.on { background: var(--ink); transform: scale(1.25); }   /* coconut progress (DESIGN.md) */
.onb-tip { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; font-size: 14px; }

/* Phase 3.6: install bar + safe areas (notch / home indicator) */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 14px; }
.install-bar span { flex: 1; }
@media (max-width: 720px) { .install-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (display-mode: standalone) { .app-top .top-inner { padding-top: calc(14px + env(safe-area-inset-top)); } }
.app-top .top-inner, .shell, body.app main { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
/* Invite-only beta (2026-11-05): badge, feedback dialog, admin invite table */
.badge.beta { border-color: var(--green); color: var(--green); }
dialog.fb-dialog { border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); width: min(94vw, 480px); padding: 22px; }
dialog.fb-dialog::backdrop { background: rgba(15, 27, 45, .45); }
dialog.fb-dialog textarea { width: 100%; font: inherit; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.admin-grid .card.wide { grid-column: 1 / -1; overflow-x: auto; }
.fb-item { border-top: 1px solid var(--line); padding: 8px 0; }
.fb-item p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#invite-form { justify-content: center; margin-top: 12px; }
@media (max-width: 600px) { #btn-feedback .fb-word, #btn-palette { display: none; } }

/* UI audit batch 1 (2026-11-06): one job per screen. The greeting + P&L sit on the card feed and the tracker only; other tabs open on
   their own title. On iPhone the bottom bar is the navigation, so the chip row keeps only what the bar lacks (Value, Learn, Admin) and
   the first card lands on the first screen. main reserves the screen so late content never pushes the footer through the viewport. */
main { min-height: 100vh; min-height: 100dvh; }
body:not([data-nav="tracker"]) .greet { display: none; }   /* the feed opens on its own title and first card (polish 2026-11-23) */
body:not([data-nav="tracker"]) .topbar { display: none; }
@media (max-width: 600px) {
  #btn-theme { display: none; }                                       /* theme lives in Settings on iPhone */
  .app-top .status { flex-wrap: nowrap; gap: 8px; }                  /* the header stays one row */
  .app-top .scan { font-size: 0; white-space: nowrap; flex: none; display: inline-flex; align-items: center; } .app-top .scan .dot, .app-top .scan #scan-age { font-size: 12px; } .app-top .scan .dot { margin-right: 4px; }
  .status #who-plan:has(~ #who-beta:not([hidden])) { display: none; } /* one plan chip at a time */
  .app-top .brand .sub { display: none; }
  body[data-nav="bet"] .tb-buttons, body[data-nav="value"] .tb-buttons, body[data-nav="lines"] .tb-buttons { display: none; }
  body[data-nav="bet"] .topbar, body[data-nav="value"] .topbar, body[data-nav="lines"] .topbar { padding-block: 4px; }
  .tb-total { padding-block: 10px; }
  #today-box, #bank-banner, #best-now { display: none !important; }
  .simple-tabs a[data-nav="lines"], .simple-tabs a[data-nav="tracker"], .simple-tabs a[data-nav="scorecard"], .simple-tabs a.adv { display: none; }
  body:not([data-nav="bet"]):not([data-nav="value"]) .simple-tabs { display: none; }
}

.tb-name { font: 600 12px var(--font-body); color: var(--ink); max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-line { margin-top: 14px; }
.co-form fieldset { margin: 0; } .co-terms { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.price-change { border: 1.5px solid var(--sun); border-radius: 12px; padding: 12px 14px; }
/* iOS app (2026-11-19): guest preview, native-only bits, notch/home-indicator insets (the web view runs edge to edge) */
.native-only { display: none; } body.native .native-only { display: block; }
.guest { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.guest-head { display: flex; gap: 14px; align-items: center; }
.guest-head h1 { font-size: 1.35rem; }
.si-back { text-align: center; margin-top: 8px; }
.upsell-web { margin: 6px 0 0; }
.explainer-app { max-width: 66ch; } .explainer-app h2 { font: 600 24px var(--font-display); margin: 6px 0 10px; } .explainer-app h3 { font: 600 19px var(--font-display); margin: 22px 0 6px; }
.explainer-app p, .explainer-app li { font-size: 17px; line-height: 1.6; }
body.native .app-top .top-inner { padding-top: calc(14px + env(safe-area-inset-top)); }   /* same as the installed web app */
body.native .signin, body.native .guest { padding-top: env(safe-area-inset-top); }
/* iOS app: modal sheets (onboarding, share, palette) start below the notch and scroll when the keyboard leaves little room */
body.native dialog[open] { margin-top: calc(env(safe-area-inset-top) + 8px); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px); overflow: auto; }
/* iOS launch animation (2026-11-19). Geometry matches the native splash: the palm is 420/2732 of the screen height, centred (aspect-fill
   splash); --u = one palm.svg unit. The bottom coconut (264,250) is an element so it can drop; it lands, bounces, turns green and
   stretches into the wordmark while the overlay fades. */
#launch { display: none; }
html.launching #launch { display: block; position: fixed; inset: 0; z-index: 9999; background: #FFFFFF; overflow: hidden;
  --w: calc(100vh * 420 / 2732); --u: calc(var(--w) / 348); transition: opacity .22s ease; }
html.launch-out #launch { opacity: 0; }
#launch .l-palm { position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--u) * 356); transform: translate(-50%, -50%); }
#launch .l-nut { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 40); height: calc(var(--u) * 40); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8A5A34, #4E3019 75%); transform: translate(calc(-50% + var(--u) * 4), calc(-50% - var(--u) * 14)); }
#launch .l-nut::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #1F6B4A; opacity: 0; }
#launch .l-word { position: absolute; left: 50%; top: calc(50% + var(--u) * 268); transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font: 600 calc(var(--u) * 120)/1 Fredoka, system-ui, sans-serif; color: #1F6B4A; letter-spacing: .01em; white-space: nowrap; }
html.launch-play #launch .l-nut { animation: l-drop .9s forwards; }
html.launch-play #launch .l-nut::after { animation: l-green .9s forwards; }
html.launch-play #launch .l-word { animation: l-word .9s forwards; }
@keyframes l-drop {
  0% { transform: translate(calc(-50% + var(--u) * 4), calc(-50% - var(--u) * 14)); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  40% { transform: translate(calc(-50% + var(--u) * 4), calc(-50% + var(--u) * 136)) scale(1, 1); animation-timing-function: ease-out; }
  47% { transform: translate(calc(-50% + var(--u) * 4), calc(-50% + var(--u) * 141)) scale(1.3, .72); animation-timing-function: ease-out; }
  58% { transform: translate(calc(-50% + var(--u) * 4), calc(-50% + var(--u) * 116)) scale(.94, 1.06); opacity: 1; animation-timing-function: ease-in-out; }
  80% { opacity: 1; }
  100% { transform: translate(-50%, calc(-50% + var(--u) * 268)) scale(5.6, 1.2); opacity: 0; }
}
@keyframes l-green { 0%, 60% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes l-word { 0%, 62% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html.launch-play #launch .l-nut, html.launch-play #launch .l-nut::after { animation: none; }   /* the coconut stays on the palm */
  html.launch-play #launch .l-word { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== Polish 2026-11-23 (docs/DESIGN_SYSTEM.md): large titles, quiet chrome, the first card on the first screen */
.lt { font: 700 var(--text-h1)/1.1 var(--font-display); margin: var(--space-3) 0 var(--space-1); }
.feed-head { display: block; } .feed-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
.feed-meta .pill { border: 0; padding: 0; font-size: 13px; color: var(--gray-1); background: none; } .feed-meta .pill + .pill:not([hidden])::before { content: "· "; }
.ptr { height: 0; overflow: hidden; margin: 0; text-align: center; font-size: 13px; color: var(--gray-2); transition: height var(--dur) var(--ease); }
.pro-strip { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: var(--space-2) var(--space-4); margin: 0 0 var(--space-3); border-radius: var(--radius-card); background: var(--surface-2); color: var(--gray-1); font-size: 14px; text-decoration: none; }
.pro-strip b { color: var(--green); flex: none; }
#view-feed details.filters-box { box-shadow: none; border: 0; background: none; padding: 0; margin: 0 0 var(--space-2); } #view-feed .filters-box > summary b { font-weight: 500; color: var(--green); }
.feed-note { margin-top: var(--space-5); }
.today-box { box-shadow: var(--shadow-card); border: 0; }
.pro-list { padding-left: 20px; margin: var(--space-3) 0 var(--space-5); display: grid; gap: var(--space-2); font-size: 17px; }
#view-pro { max-width: 640px; } #view-pro .upsell { background: none; margin: 0; } #view-pro .upsell-details { background: var(--surface); border: 0; box-shadow: var(--shadow-card); border-radius: var(--radius-card); padding: var(--space-4); } #view-pro .upsell-details > summary { display: none; }
#view-settings { max-width: 760px; } #view-settings .card { border: 0; box-shadow: var(--shadow-card); padding: var(--space-4); } 
.set-sec > summary, .set-sub > summary { min-height: 52px; } .set-sec > summary h3 { margin: 0; font: 600 17px var(--font-body); }
.set-sec:not([open]) { padding-block: 0 !important; } details.set-sub { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 0; margin: 0; } .set-sub > summary { font: 600 16px var(--font-body); } .set-sub fieldset { border: 0; padding: 0 0 var(--space-3); margin: 0; }
#view-tracker .money-card { border: 0; box-shadow: var(--shadow-card); } #view-tracker .card, .sc-card { border: 0; box-shadow: var(--shadow-card); padding: var(--space-4); }
@media (max-width: 720px) { #view-feed .cards { gap: var(--space-3); } .greet { padding-top: var(--space-2); } }
.feed-head .lt { margin-top: 0; } #view-feed { padding-top: 0; }
.set-sub > summary > span { display: inline; }
@media (max-width: 600px) { .app-top .scan { display: none !important; } body[data-nav="tracker"] .tb-buttons { display: none; } .simple-tabs { padding-top: 0; padding-bottom: 0; } }
