:root {
  --bg: #fbf8fc;
  --bg-tint: #f4eef9;
  --card: #ffffff;
  --text: #1f1b26;
  --muted: #6c6776;
  --line: #ece6f2;
  --brand: #e8577a;
  --brand-2: #9b86f5;
  --grad: linear-gradient(135deg, #ff9eb5 0%, #b3a1ff 100%);
  --feed: #e8577a;
  --pump: #7466e8;
  --formula: #d07e14;
  --danger: #d63c4a;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 30, 90, 0.08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120d18;
    --bg-tint: #1a1322;
    --card: #211a2b;
    --text: #f3eef8;
    --muted: #a79fb3;
    --line: #2f2640;
    --brand: #f07a95;
    --feed: #e0506f;
    --pump: #8579f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(680px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 800; color: var(--brand); margin-bottom: 0.6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font: 700 1rem var(--font);
  box-shadow: 0 8px 20px rgba(232, 87, 122, 0.25); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-small { padding: 8px 18px; font-size: 0.92rem; box-shadow: none; }
.btn-ghost { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand img { border-radius: 9px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; background:
  radial-gradient(600px 400px at 85% 10%, rgba(179, 161, 255, 0.25), transparent 60%),
  radial-gradient(500px 400px at 10% 90%, rgba(255, 158, 181, 0.22), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 18px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; border-radius: 14px; padding: 9px 18px; opacity: 0.9; }
.store-badge span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.store-badge small { font-weight: 500; font-size: 0.68rem; opacity: 0.85; }
.hero-points { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; top: 20px; }
.phone-center { left: 50%; transform: translateX(-50%); z-index: 3; top: 0 !important; }
.phone-left { left: 2%; transform: rotate(-8deg) scale(0.9); z-index: 1; }
.phone-right { right: 2%; transform: rotate(8deg) scale(0.9); z-index: 2; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; }
  .hero-phones .phone { width: 210px; }
}
@media (max-width: 520px) {
  .phone-left, .phone-right { display: none; }
}

/* Phone frame */
.phone { margin: 0; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #2a2233, #0f0b14); box-shadow: 0 30px 60px rgba(40, 20, 60, 0.25); }
.phone img { border-radius: 34px; width: 100%; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; margin-bottom: 44px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.feature-icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-tint); margin-bottom: 14px; }

.showcase { display: grid; gap: 90px; }
.showcase-row { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; }
.showcase-row.reverse { grid-template-columns: 1fr 300px; }
.showcase-row.reverse .phone { order: 2; }
.showcase-row p { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
@media (max-width: 760px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase-row .phone, .showcase-row.reverse .phone { order: 0; width: 240px; margin: 0 auto; }
}

.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.callout { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.callout span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .steps, .callouts { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: center; }
.split p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split .phone { width: 240px; margin: 0 auto; } }

.privacy-summary { max-width: 760px; }
.checks { list-style: none; padding: 0; display: grid; gap: 12px; font-size: 1.05rem; }
.checks li { background: var(--card); padding: 14px 18px 14px 48px; border-radius: 16px; position: relative; box-shadow: var(--shadow); }
.checks li::before { content: "✓"; position: absolute; left: 18px; color: var(--brand); font-weight: 900; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.footer-brand p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; margin: 0; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* Documents */
.doc { padding: 56px 0 40px; max-width: 760px; }
.doc h2 { font-size: 1.35rem; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }

/* Cards & forms */
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
.form input:not([type="checkbox"]) {
  font: 500 1rem var(--font); padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
}
.form input:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 10px 14px; border-radius: 12px; font-weight: 600; margin: 0 0 6px; }
.auth { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(440px, 100%); text-align: center; }
.auth-card .form { text-align: left; margin-top: 18px; }
.auth-icon { margin: 0 auto 14px; border-radius: 16px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); }
.done-card { text-align: center; padding: 40px 0; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--grad); }

/* ===================== Dashboard: a 1:1 copy of the app ===================== */
body.bm-body {
  --app-bg: #f2f2f7;
  --app-card: #ffffff;
  --app-text: #000000;
  --app-muted: rgba(60, 60, 67, 0.6);
  --app-faint: rgba(60, 60, 67, 0.3);
  --app-line: rgba(60, 60, 67, 0.12);
  --feed: #e8577a;
  --pump: #7466e8;
  --formula: #d07e14;
  --brand: #e8577a;
  background: var(--app-bg);
  color: var(--app-text);
}
@media (prefers-color-scheme: dark) {
  body.bm-body {
    --app-bg: #000000;
    --app-card: #1c1c1e;
    --app-text: #ffffff;
    --app-muted: rgba(235, 235, 245, 0.6);
    --app-faint: rgba(235, 235, 245, 0.3);
    --app-line: rgba(84, 84, 88, 0.45);
    --feed: #e0506f;
    --pump: #8579f0;
    --formula: #c9790f;
    --brand: #ec6a88;
  }
}
.bm-app { width: min(560px, 100%); margin: 0 auto; padding: 14px 18px 120px; }
.bm-loading { text-align: center; color: var(--app-muted); padding: 120px 0; }
.bm-stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.bm-stack[hidden] { display: none; }
#bm-main { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.bm-card, .bm-day { min-width: 0; }
#bm-main[hidden] { display: none; }

/* Baby color gradients (same palettes as the app) */
.baby-0 { background: linear-gradient(135deg, #ff9eb5, #f0628a); --baby: #f0628a; }
.baby-1 { background: linear-gradient(135deg, #c6b8ff, #8b78f2); --baby: #8b78f2; }
.baby-2 { background: linear-gradient(135deg, #9fd4ff, #4e9bf0); --baby: #4e9bf0; }
.baby-3 { background: linear-gradient(135deg, #9eebc8, #2fb984); --baby: #2fb984; }
.baby-4 { background: linear-gradient(135deg, #ffc9a0, #f58a4b); --baby: #f58a4b; }
.baby-5 { background: linear-gradient(135deg, #ffe39a, #f2b233); --baby: #f2b233; }

/* Header */
.bm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.bm-top-right { display: flex; align-items: center; gap: 8px; }
.bm-switch, .bm-gear { position: relative; }
.bm-switch summary, .bm-gear summary { list-style: none; cursor: pointer; }
.bm-switch summary::-webkit-details-marker, .bm-gear summary::-webkit-details-marker { display: none; }
.bm-switch summary { display: flex; align-items: center; gap: 12px; }
.bm-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; overflow: hidden; flex: none; box-shadow: 0 4px 10px color-mix(in srgb, var(--baby) 35%, transparent); }
.bm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-avatar.small { width: 38px; height: 38px; font-size: 16px; }
.bm-switch-text { display: flex; flex-direction: column; min-width: 0; }
.bm-switch-name { display: flex; align-items: center; gap: 5px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.bm-switch-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.bm-switch-name svg { width: 12px; height: 12px; color: var(--app-muted); flex: none; }
.bm-switch-age { font-size: 15px; font-weight: 600; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-switch { min-width: 0; flex: 1; }
.bm-switch summary { min-width: 0; }
.bm-unit { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--app-card); }
.bm-unit button { border: 0; background: transparent; font: 700 12px var(--font); color: var(--app-muted); width: 40px; height: 28px; border-radius: 999px; cursor: pointer; }
.bm-unit button.on { background: linear-gradient(135deg, #ff9eb5, #b3a1ff); color: #fff; }
.bm-gear summary { width: 42px; height: 42px; border-radius: 50%; background: var(--app-card); display: grid; place-items: center; color: var(--brand); box-shadow: 0 3px 8px rgba(232, 87, 122, 0.18); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.bm-gear summary svg { width: 20px; height: 20px; }
.bm-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 250px; background: var(--app-card); border-radius: 18px; padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); display: grid; gap: 2px; }
.bm-menu-right { left: auto; right: 0; min-width: 220px; }
.bm-menu button, .bm-menu a { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--app-text); font: 600 15px var(--font); padding: 10px 12px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.bm-menu button:hover, .bm-menu a:hover { background: var(--app-bg); }
.bm-menu button.on { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.bm-menu button strong { display: block; }
.bm-menu button small { display: block; color: var(--app-muted); font-weight: 500; font-size: 12px; }
.bm-menu .danger { color: #ff3b30; }
.bm-menu form { margin: 0; }
.bm-menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--app-line); margin-bottom: 4px; display: grid; }
.bm-menu-head span { color: var(--app-muted); font-size: 13px; }
.bm-title { font-size: 34px; font-weight: 800; margin: 0; }

/* Hero (Today card) */
.bm-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 20px; color: #fff; display: grid; gap: 18px; box-shadow: 0 14px 30px color-mix(in srgb, var(--baby) 35%, transparent); isolation: isolate; }
.bm-hero::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); top: -70px; right: -60px; z-index: -1; }
.bm-hero::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); bottom: -50px; left: -40px; z-index: -1; }
.bm-hero-head { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.bm-hero-head span:last-child { font-size: 12px; opacity: 0.85; }
.bm-hero-stats { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 16px; }
.bm-hero-stats.single { grid-template-columns: 1fr; }
.bm-hero-stats .divider { background: rgba(255, 255, 255, 0.3); width: 1px; }
.bm-hero-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bm-hero-stat .label { font-size: 12px; font-weight: 800; letter-spacing: 0.03em; opacity: 0.85; text-transform: uppercase; }
.bm-hero-stat .value { font-size: 17px; font-weight: 700; opacity: 0.95; }
.bm-hero-stat .value strong { font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; opacity: 1; }
.bm-hero-stat .sub { font-size: 13px; font-weight: 600; opacity: 0.85; }
.bm-hero-stat .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); margin-top: 8px; overflow: hidden; }
.bm-hero-stat .bar span { display: block; height: 100%; width: 4%; border-radius: 3px; background: #fff; transition: width 1s ease; }
.bm-hero-stat .usual { font-size: 11px; font-weight: 700; opacity: 0.85; margin-top: 4px; }
.bm-hero-pill { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 700; margin-top: -10px; }
.bm-hero-pill svg { width: 16px; height: 16px; flex: none; }
.bm-hero-pill em { font-style: normal; opacity: 0.8; }
.bm-bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bm-bubbles i { position: absolute; bottom: -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); animation: bm-rise linear infinite; }
.bm-bubbles i:nth-child(1) { left: 12%; width: 10px; height: 10px; animation-duration: 20s; }
.bm-bubbles i:nth-child(2) { left: 28%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -6s; }
.bm-bubbles i:nth-child(3) { left: 46%; width: 14px; height: 14px; animation-duration: 25s; animation-delay: -10s; }
.bm-bubbles i:nth-child(4) { left: 63%; width: 7px; height: 7px; animation-duration: 15s; animation-delay: -3s; }
.bm-bubbles i:nth-child(5) { left: 78%; width: 11px; height: 11px; animation-duration: 22s; animation-delay: -15s; }
.bm-bubbles i:nth-child(6) { left: 90%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -8s; }
.bm-bubbles i:nth-child(7) { left: 36%; width: 8px; height: 8px; animation-duration: 18s; animation-delay: -12s; }
@keyframes bm-rise {
  0% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(8px, -180px); }
  100% { transform: translate(-6px, -380px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bm-bubbles { display: none; } }

/* Cards */
.bm-card { background: var(--app-card); border-radius: 24px; padding: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); display: grid; gap: 6px; border: 0; color: inherit; font: inherit; text-align: left; width: 100%; }
.bm-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.bm-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bm-card-link { cursor: pointer; }
.bm-muted-label { color: var(--app-muted); font-size: 15px; font-weight: 700; }
.bm-big { font-size: 15px; font-weight: 700; color: var(--app-muted); }
.bm-big strong { font-size: 32px; font-weight: 800; color: var(--app-text); }
.bm-huge { font-size: 20px; font-weight: 700; color: var(--app-muted); }
.bm-huge strong { font-size: 40px; font-weight: 800; color: var(--app-text); font-variant-numeric: tabular-nums; }
.bm-small { font-size: 13px; font-weight: 600; color: var(--app-muted); margin: 0; }
.bm-small b { color: var(--app-text); }
.bm-hint { text-align: center; color: var(--app-faint); font-size: 11px; margin: 4px 0 0; }
.bm-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.bm-legend i, .bm-mix-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.bm-legend i:first-child { margin-left: 0; }
i.feed { background: var(--feed); } i.pump { background: var(--pump); } i.formula { background: var(--formula); }
.bm-empty-chart { text-align: center; color: var(--app-muted); padding: 34px 0; margin: 0; font-size: 15px; }

/* Charts */
.bm-chart { width: 100%; height: auto; display: block; overflow: visible; margin-top: 8px; max-width: 100%; }
.bm-chart .grid { stroke: var(--app-line); stroke-width: 1; }
.bm-chart .axis { fill: var(--app-muted); font: 600 11px var(--font); }
.bm-chart .bar.feed { fill: var(--feed); }
.bm-chart .bar.pump { fill: var(--pump); }
.bm-chart .bar { transition: opacity 0.15s ease; }
.bm-chart .bar.dim { opacity: 0.35; }
.bm-chart .hit { fill: transparent; cursor: crosshair; }
.bm-chart .avg { stroke: var(--app-muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bm-chart .avg-label { fill: var(--app-muted); font: 800 11px var(--font); }

/* Rows (like the app's EntryRow) */
.bm-list { gap: 0; padding: 6px 14px; }
.bm-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.bm-row + .bm-row { border-top: 1px solid var(--app-line); }
.bm-row-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.bm-row-icon svg { width: 18px; height: 18px; }
.bm-row-icon.feed { color: var(--feed); background: color-mix(in srgb, var(--feed) 14%, transparent); }
.bm-row-icon.pump { color: var(--pump); background: color-mix(in srgb, var(--pump) 14%, transparent); }
.bm-row-icon.formula { color: var(--formula); background: color-mix(in srgb, var(--formula) 14%, transparent); }
.bm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--app-muted); }
.bm-row-text strong { font-size: 15px; color: var(--app-text); }
.bm-row-text em { font-style: normal; font-weight: 700; font-size: 11px; color: var(--brand); }
.bm-row-text .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-row-amount { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bm-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: -8px; }
.bm-section-head h2 { font-size: 20px; margin: 0; }
.bm-section-head button { border: 0; background: none; color: var(--brand); font: 700 15px var(--font); cursor: pointer; }

/* Insights */
.bm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: color-mix(in srgb, var(--app-muted) 16%, transparent); padding: 2px; border-radius: 9px; }
.bm-seg button { border: 0; background: transparent; color: var(--app-text); font: 600 13px var(--font); padding: 7px 0; border-radius: 7px; cursor: pointer; }
.bm-seg button.on { background: var(--app-card); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.bm-period { display: flex; align-items: center; justify-content: space-between; }
.bm-period strong { font-size: 17px; }
.bm-period button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--app-card); color: var(--brand); font: 800 22px/1 var(--font); cursor: pointer; }
.bm-period button:disabled { opacity: 0.35; cursor: default; }
.bm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-tile { background: var(--app-card); border-radius: 24px; padding: 14px; display: grid; gap: 4px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); }
.bm-tile-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 13px; margin-bottom: 6px; }
.bm-tile-icon.feed { color: var(--feed); background: color-mix(in srgb, var(--feed) 13%, transparent); }
.bm-tile-icon.pump { color: var(--pump); background: color-mix(in srgb, var(--pump) 13%, transparent); }
.bm-tile-value { font-size: 13px; font-weight: 700; color: var(--app-muted); }
.bm-tile-value strong { font-size: 22px; font-weight: 800; color: var(--app-text); font-variant-numeric: tabular-nums; }
.bm-tile-label { font-size: 12px; font-weight: 600; color: var(--app-muted); }
.bm-mix { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.bm-donut { position: relative; width: 130px; height: 130px; flex: none; }
.bm-donut svg { width: 100%; height: 100%; }
.bm-donut .ring { fill: none; stroke-width: 14; }
.bm-donut .ring.feed { stroke: var(--feed); stroke-linecap: round; }
.bm-donut .ring.formula { stroke: var(--formula); }
.bm-donut span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bm-donut strong { font-size: 22px; font-weight: 800; }
.bm-donut small { font-size: 11px; color: var(--app-muted); font-weight: 600; }
.bm-mix-legend { display: grid; gap: 12px; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.bm-mix-legend div { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.bm-mix-legend i { margin-left: 0; }
.bm-mix-legend strong { grid-column: 1 / -1; font-size: 20px; color: var(--app-text); }
.bm-mix-legend small { grid-column: 1 / -1; }

/* History */
.bm-day { display: grid; gap: 8px; }
.bm-day-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-size: 15px; }
.bm-day-head span { display: flex; gap: 10px; font-size: 12px; font-weight: 800; }
.bm-day-head em { font-style: normal; }
.bm-day-head em.feed { color: var(--feed); } .bm-day-head em.pump { color: var(--pump); }
.bm-pill { border: 0; cursor: pointer; font: 700 15px var(--font); padding: 12px 22px; border-radius: 999px; background: var(--app-card); color: var(--brand); }
.bm-more { justify-self: center; }
.bm-foot { text-align: center; color: var(--app-faint); font-size: 12px; margin: 0; }

/* Floating tab bar */
.bm-tabbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--app-card) 78%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); z-index: 30; }
.bm-tabbar[hidden] { display: none; }
.bm-tabbar button { border: 0; background: transparent; color: var(--app-text); font: 600 11px var(--font); display: grid; justify-items: center; gap: 2px; padding: 8px 22px; border-radius: 999px; cursor: pointer; }
.bm-tabbar button svg { width: 24px; height: 24px; }
.bm-tabbar button.on { color: var(--brand); background: color-mix(in srgb, var(--app-muted) 14%, transparent); }

/* Empty state */
.bm-empty { text-align: center; padding: 80px 10px; display: grid; justify-items: center; gap: 12px; }
.bm-empty[hidden] { display: none; }
.bm-empty img { border-radius: 20px; }
.bm-empty h1 { font-size: 26px; margin: 0; }
.bm-empty p { color: var(--app-muted); max-width: 30em; }
