/* ===== Splash ===== */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.splash-mark svg { filter: drop-shadow(0 10px 20px rgba(15, 118, 110, .25)); }
.splash-spinner { width: 26px; height: 26px; border: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }

/* ===== Shell ===== */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main {
  flex: 1; width: 100%; min-width: 0;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 44px);
  /* "Notebook" background: a soft teal glow at the top over faint ruled lines that fade out. */
  background:
    radial-gradient(1100px 380px at 50% -150px, var(--glow), transparent 70%),
    linear-gradient(to bottom, transparent 0, var(--bg) 380px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--line-color) 33px 34px),
    var(--bg);
  background-repeat: no-repeat;
}
.page { padding: 4px 16px 24px; max-width: var(--content-max); margin: 0 auto; width: 100%; }
.page.narrow { max-width: 640px; }
.screen { min-height: 1px; }
.sidebar { display: none; }

/* Topbar is transparent over the background art, solid once the page scrolls */
/* Solid top bar (an installed iPhone app shows page content under the status bar otherwise, which looks blurry). */
.topbar { background: var(--bg); transition: box-shadow var(--dur); }
.is-scrolled .topbar { box-shadow: 0 1px 0 var(--border), 0 6px 14px -12px rgba(14, 40, 36, .35); }

/* Bottom navigation (phone) — solid bar, raised round "+" with a notch ring */
.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px -16px rgba(14, 40, 36, .35);
}
.bn-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h); font-size: 11.5px; font-weight: 700; color: var(--text-3); text-decoration: none; min-width: 0; }
.bn-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.bn-item.active { color: var(--brand); }
.bn-item.active::before { content: ''; position: absolute; top: -1px; width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.bn-item:hover { text-decoration: none; color: var(--text-2); }
.bn-item.active:hover { color: var(--brand); }
.bn-item .bn-dot { position: absolute; top: 9px; inset-inline-end: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-elevated); }
.bn-add { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: var(--nav-h); padding-bottom: 9px; font-size: 11.5px; font-weight: 800; color: var(--brand); }
.bn-fab {
  position: absolute; top: -23px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--bg-elevated), 0 6px 12px -4px rgba(11, 94, 87, .55);
  transition: transform 120ms var(--ease), background var(--dur);
}
.bn-add:active .bn-fab { transform: translateX(-50%) scale(.93); }
.bn-add:hover .bn-fab { background: var(--brand-hover); }

@media (min-width: 721px) {
  .shell { flex-direction: row; }
  .bottom-nav { display: none; }
  .main { padding-bottom: 40px; }
  .sidebar { display: flex; flex-direction: column; gap: 6px; width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 18px 14px; border-inline-end: 1px solid var(--border); background: var(--bg-elevated); overflow-y: auto; }
  .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; font-size: var(--fs-xl); font-weight: 800; color: var(--text); text-decoration: none; }
  .sidebar-brand:hover { text-decoration: none; }
  .sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 700; color: var(--text-2); text-decoration: none; transition: background var(--dur), color var(--dur); }
  .sidebar-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
  .sidebar-link.active { background: var(--brand-soft); color: var(--brand-strong); }
  .sidebar-link .bn-dot { position: static; margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .sidebar-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 48px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; box-shadow: var(--shadow-sm); }
  .sidebar-cta:hover { background: var(--brand-hover); }
  .sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .sidebar-shop { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
  .sidebar-shop:hover { background: var(--surface-2); text-decoration: none; }
  .topbar { padding-inline: 24px 18px; }
  .page { padding-inline: 24px; }
  .topbar-global { display: none !important; }
}
.sidebar-tools { display: flex; gap: 4px; padding: 6px 4px 0; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); }

/* Split (master–detail on wide screens) */
.split { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 0; min-height: 100vh; align-items: start; }
.pane { min-width: 0; }
.pane-list { border-inline-end: 1px solid var(--border); background: color-mix(in srgb, var(--bg-elevated) 55%, transparent); min-height: 100vh; }
.pane-list .page, .pane-detail .page { max-width: none; }
.pane-detail { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.pane-empty { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.pane-empty-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px; }
.pane-empty-mark { color: var(--brand); opacity: .18; }

/* Topbar global actions (bell + settings) — phones only; the sidebar has them on desktop */
.topbar-global { display: inline-flex; align-items: center; gap: 0; }
.bell { position: relative; }
.bell-badge { position: absolute; top: 4px; inset-inline-end: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #2B1600; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }

/* ===== Home: moved to css/pages/home.css (V5) ===== */
.all-clear { padding: 16px; display: flex; align-items: center; gap: 12px; } /* also used by installments */

/* ===== Customers ===== */
.customers .chip-row { margin: 12px 0 10px; }
.customers .list { margin-top: 8px; }
.customers .list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.sort-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); white-space: nowrap; flex: 0 0 auto; }
.add-suggest { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--border-strong)); background: var(--brand-softer); color: var(--text); text-align: start; }
.add-suggest:hover { background: var(--brand-soft); }
.add-suggest .add-suggest-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); flex: 0 0 auto; }
.add-suggest .grow { display: flex; flex-direction: column; gap: 1px; }
.add-suggest b { font-weight: 800; color: var(--brand-strong); }
.add-suggest .xs { color: var(--text-3); font-weight: 500; }
.search-empty { text-align: center; padding: 22px 12px 6px; color: var(--text-3); font-weight: 600; }

/* ===== Customer detail ===== */
.balance-card { position: relative; overflow: hidden; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.balance-card.owes { border-top: 4px solid var(--debt); }
.balance-card.credit, .balance-card.settled { border-top: 4px solid var(--brand); }
.balance-amount { font-size: clamp(28px, 7.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.balance-card > .row { flex-wrap: wrap; }
.balance-card > .row > .grow { flex: 1 1 max-content; }
.balance-card .balance-amount.money { white-space: normal; }
.balance-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.balance-meta span { display: inline-flex; align-items: center; gap: 4px; }
.customer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.customer-actions .btn { min-height: 56px; border-radius: 16px; font-size: var(--fs-md); white-space: normal; line-height: 1.15; }
.customer-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 800; color: var(--text-2); text-align: center; transition: background var(--dur), transform 100ms; text-decoration: none; }
.tool:hover { background: var(--surface-2); text-decoration: none; }
.tool:active { transform: scale(.97); }
.tool:disabled { opacity: .45; }
.tool .icon { color: var(--brand); }
.tool.wa .icon { color: #1DA851; }
.tool.locked .icon { color: var(--text-3); }
.lock-dot { position: absolute; top: 6px; inset-inline-end: 6px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #3b1d05; }
.timeline-group { margin-top: 12px; }
.timeline-month { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); letter-spacing: .02em; margin: 0 6px 6px; }
.entry-detail { padding-top: 2px; }
.entry-amount { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.02em; }
.remind-summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 14px; }

/* ===== Entry sheet ===== */
.entry-form { display: flex; flex-direction: column; gap: 12px; }
.entry-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.entry-who .grow { display: flex; flex-direction: column; min-width: 0; }
/* V5: amount input + calculator rules live in components.css (customer agent) */
.amount-display { font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.balance-preview { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.more-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; font-weight: 800; color: var(--brand); text-align: start; background: var(--brand-softer); }
.more-toggle:hover { background: var(--brand-soft); }
.more-toggle .grow { display: flex; flex-direction: column; gap: 1px; }
.more-toggle .more-sub { color: var(--text-3); font-weight: 600; font-size: var(--fs-xs); }
.more-panel { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.items-editor { display: flex; flex-direction: column; gap: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 58px 104px 34px; gap: 6px; align-items: center; }
.item-row .input { min-height: 42px; padding: 6px 10px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }
.picker-list { margin-top: 10px; }
.picker-list .list-row { min-height: 58px; }

/* ===== Plan card + Pro look (shared by several pages) ===== */
.plan-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; }
.plan-badge.pro { background: var(--accent-soft); color: var(--accent-strong); }
.plan-badge.free { background: var(--surface-3); color: var(--text-3); }
.plan-badge.lg { width: 64px; height: 64px; border-radius: 20px; }
.pro-chip { margin-inline-start: auto; font-size: 10px; font-weight: 900; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #3b1d05; }
.pro-teaser { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px; border-radius: 18px; text-align: start; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); }
.pro-teaser-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); flex: 0 0 auto; }
.pro-teaser .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ===== Pro insights (dark teal "control panel", brand colors only) ===== */
.insights { position: relative; margin-top: 14px; padding: 16px; border-radius: 20px; color: #E6F2EF; overflow: hidden;
  background: radial-gradient(600px 220px at 100% 0%, rgba(45, 212, 191, .22), transparent 60%), radial-gradient(400px 160px at 0% 100%, rgba(251, 191, 36, .10), transparent 60%), linear-gradient(160deg, #0B2725 0%, #0E3532 60%, #0A2220 100%);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .22), 0 20px 40px -24px rgba(6, 30, 28, .8); }
.insights::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.insights > * { position: relative; }
.insights-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.insights-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .02em; color: #5EEAD4; font-size: var(--fs-sm); }
.health { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.health i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.health-good i { background: #2DD4BF; color: #2DD4BF; } .health-ok i { background: #FBBF24; color: #FBBF24; } .health-bad i { background: #F97066; color: #F97066; }
.insights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 721px) { .insights-grid { grid-template-columns: repeat(4, 1fr); } }
.ins-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); min-height: 84px; }
.ins-label { font-size: 11.5px; color: rgba(230, 242, 239, .72); font-weight: 700; }
.ins-value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.ins-value.money { font-size: var(--fs-xl); }
.ins-sub { color: #5EEAD4; margin-top: auto; }
.spark { position: absolute; inset-inline-end: 10px; bottom: 8px; width: 90px; height: 28px; color: #2DD4BF; opacity: .9; }
.ins-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 721px) { .ins-row { grid-template-columns: 1fr 1fr; } }
.ins-block { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); margin-top: 0; }
.ins-block + .ins-block, .ins-row + .ins-block { margin-top: 10px; }
.cash-bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; margin-top: 8px; }
.cash-col { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.cash-stack { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; }
.cash-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; transition: height var(--dur); }
.cash-bar.debt { background: linear-gradient(180deg, #F97066, rgba(249, 112, 102, .3)); }
.cash-bar.pay { background: linear-gradient(180deg, #2DD4BF, rgba(45, 212, 191, .3)); }
.aging-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); margin-top: 8px; }
.aging-bar span { display: block; height: 100%; }
.a0 { background: #2DD4BF; } .a1 { background: #FCD34D; } .a2 { background: #F59E0B; } .a3 { background: #F97066; }
.aging-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 10px; font-size: var(--fs-xs); color: rgba(230, 242, 239, .8); }
.aging-legend li { display: flex; align-items: center; gap: 6px; }
.aging-legend li i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.aging-legend li b { margin-inline-start: auto; color: #fff; font-weight: 800; }
.viewed-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.viewed-list a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 6px 8px; border-radius: 10px; }
.viewed-list a:hover { background: rgba(255, 255, 255, .06); }
.viewed-list .xs { margin-inline-start: auto; color: #5EEAD4; }
.insights .avatar { background: rgba(94, 234, 212, .16); color: #CCFBF1; }

/* ===== Notification center ===== */
.notif-list { display: flex; flex-direction: column; }
.notif-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: start; border-top: 1px solid var(--border); }
.notif-list li:first-child .notif-item { border-top: 0; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.notif-item.unread .notif-title { font-weight: 800; }
.notif-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; background: var(--brand-softer); color: var(--brand); }
.notif-icon.tone-danger { background: var(--danger-soft); color: var(--danger); }
.notif-icon.tone-warn { background: var(--accent-soft); color: var(--accent-strong); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-size: var(--fs-md); }
.notif-sub { font-size: var(--fs-sm); color: var(--text-2); }

/* ===== Documents (invoice / statement) ===== */
.doc-page { min-height: 100vh; background: var(--bg); }
.doc { position: relative; max-width: 720px; margin: 8px auto 40px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--card-shadow); }
.doc-head { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.doc-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.doc-logo-ph { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); }
.doc-shop { font-size: var(--fs-xl); font-weight: 800; }
.doc-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 18px 0; }
.doc-title { font-size: var(--fs-2xl); font-weight: 800; }
.doc-customer { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th, .doc-table td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table th { font-size: var(--fs-xs); color: var(--text-3); font-weight: 800; letter-spacing: .02em; }
.doc-table .num, .doc-table .money, .doc-table th.num { text-align: end; }
.doc-totals { margin: 16px 0 0 auto; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
[dir='rtl'] .doc-totals { margin: 16px auto 0 0; }
.doc-total { padding-top: 10px; border-top: 2px solid var(--text); font-weight: 800; font-size: var(--fs-lg); }
.doc-balance { font-size: var(--fs-2xl); font-weight: 800; }
.doc-foot { margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 4px; text-align: center; color: var(--text-2); }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; margin: 0 auto; padding: 0 16px 8px; }
.doc-actions .btn { flex: 1 1 160px; }
.doc-words { margin-top: 14px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 2px; }
.doc-qr { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.doc-qr .qr { width: 104px; flex: 0 0 auto; }
.doc-qr .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-qr .ltr { overflow-wrap: anywhere; }
/* Phones: the 5-column statement (and the invoice items) must fit the screen — tighter cells, and a long amount
   may put its currency symbol on a second line instead of pushing the whole page sideways. */
@media (max-width: 560px) {
  .doc { margin: 8px 8px 32px; padding: 20px 14px; border-radius: 16px; }
  .doc-table th, .doc-table td { padding: 8px 4px; }
  .doc-table td { font-size: var(--fs-sm); }
  .doc-table td.money { white-space: normal; }
}
.no-print {}

/* ===== Motion (V4) — cheap, compositor-only: each page fades in when it is shown (tabs and pages alike).
   An element leaving display:none restarts its CSS animation, so this needs no JavaScript. */
.screen:not([hidden]) { animation: screen-in 170ms var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
.list-row.clickable, .tool, .stat, .nudge-main, .acc-head, .radio-item, .chip { transition: transform 90ms var(--ease), background var(--dur); }
.list-row.clickable:active, .tool:active, .nudge-main:active { transform: scale(.985); }
.bn-item:active svg { transform: scale(.9); transition: transform 90ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .screen:not([hidden]) { animation: none; } }

/* ===== Home: 7-day chart, business mini card → css/pages/home.css (V5) ===== */
.quick-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: -2px 0 14px; }
.quick-more-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); transition: transform 90ms var(--ease), background var(--dur); }
.quick-more-btn:active { transform: scale(.96); }
.qm-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-softer); color: var(--brand); }

/* V5: a page shown without the app shell (install guide before signing in) */
.public-page { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }
