/* ─────────────────────────────────────────────────────────────
   Nepo but Competent · styles
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #FBF7F2;
  --bg-deep: #F2EBE4;
  --card: #FFFDFA;
  --ink: #352E3B;
  --ink-2: #665C69;
  --ink-3: #988E99;
  --line: #ECE3DC;
  --accent: #6A5A9E;
  --accent-soft: #EFEAF7;
  --danger: #B14A42;
  --shadow-sm: 0 1px 2px rgba(70, 50, 66, .07);
  --shadow: 0 1px 2px rgba(70, 50, 66, .05), 0 12px 30px -14px rgba(70, 50, 66, .28);
  --shadow-lg: 0 2px 4px rgba(70, 50, 66, .05), 0 28px 60px -22px rgba(70, 50, 66, .36);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --c: #A898CF; --c-deep: #6A5A9E; --c-soft: #F0ECF7;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font: 500 16.5px/1.55 var(--body);
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 46vw at -5% -8%, #FBE6D8 0%, transparent 62%),
    radial-gradient(52vw 42vw at 108% 12%, #ECE6F6 0%, transparent 62%),
    radial-gradient(60vw 46vw at 50% 118%, #E3EEF5 0%, transparent 62%);
}
h1, h2, h3, .display { font-variation-settings: "SOFT" 100, "WONK" 0; }
a { color: var(--c-deep); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 75%, #fff); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { background: var(--bg-deep); padding: 2px 7px; border-radius: 6px; font-size: .9em; }

.eyebrow { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.display {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.022em; text-wrap: balance;
  margin: .25em 0 .35em;
}
.display em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ── icons & buttons ───────────────────────────────────────── */
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
  font: 700 15px/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--c-deep); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--c) 65%, var(--line)); color: var(--c-deep); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.wide { width: 100%; padding: 14px; font-size: 16px; }
.btn.danger { color: var(--danger); }
.btn.armed, .x.armed { background: var(--danger); color: #fff; border-color: transparent; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { color: var(--ink); background: #fff; }
.link-btn { all: unset; cursor: pointer; justify-self: start; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ── splash & login ────────────────────────────────────────── */
.splash { min-height: 100vh; display: grid; place-items: center; color: var(--ink-2); padding: 24px; text-align: center; }
.splash-logo { width: 110px; animation: breathe 1.6s ease-in-out infinite; }

.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  display: grid; gap: 14px; text-align: center;
  padding: 34px 30px 26px; border-radius: var(--r-xl);
  background: rgba(255, 252, 247, .88); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: rise .7s both;
}
.login-logo { width: 112px; margin: -4px auto -4px; }
.login h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.login h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.login-sub { margin: 0 0 4px; color: var(--ink-2); font-size: 15.5px; }
.login .field { text-align: left; }
.login-err { margin: 0; min-height: 1.3em; color: var(--danger); font-weight: 700; font-size: 14px; }
.login-hint { margin: -6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.login { background: linear-gradient(175deg, #ECE6F6 0%, #F7EDF1 45%, #FDF1E6 100%); }
.login-decor .ld { position: absolute; width: clamp(70px, 10vw, 132px); animation: drift 16s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(90, 60, 80, .13)); }
.login-decor .ld .charm { display: block; width: 100%; height: auto; }
.ld-0 { top: 6%; left: 6%; transform: rotate(-12deg); }
.ld-1 { top: 10%; right: 8%; animation-delay: -3s; }
.ld-2 { bottom: 8%; left: 10%; animation-delay: -6s; }
.ld-3 { bottom: 6%; right: 6%; animation-delay: -9s; }
.ld-4 { top: 44%; left: -2%; animation-delay: -2s; }
.ld-5 { top: 46%; right: -1%; animation-delay: -11s; }
.ld-6 { top: -3%; left: 42%; animation-delay: -7s; width: clamp(70px, 9vw, 120px); }
.ld-7 { bottom: -4%; left: 46%; animation-delay: -13s; width: clamp(70px, 9vw, 120px); }
@media (max-width: 640px) { .ld-4, .ld-5, .ld-6, .ld-7 { display: none; } .login-decor .ld { opacity: .55; } }
.shake { animation: shake .42s; }

/* ── header, banner, footer ────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
}
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 21px; font-weight: 600; white-space: nowrap; font-variation-settings: "SOFT" 100; }
.brand em { font-style: italic; font-weight: 400; color: var(--accent); }
.logo { width: 46px; height: auto; flex: none; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.nav-link:hover, .nav-link.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.unit-toggle { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: 800 13px/1 var(--body); }
.unit-toggle span { padding: 7px 10px; border-radius: 999px; color: var(--ink-3); transition: background .2s, color .2s; }
.unit-toggle span.on { background: var(--ink); color: #fff; }
@media (max-width: 600px) {
  .brand { font-size: 17px; gap: 8px; }
  .logo { width: 38px; }
  .nav-link { padding: 7px 9px; font-size: 14px; }
  .nav-link .hide-sm { display: none; }
}
@media (max-width: 400px) { .brand span { display: none; } }

.preview-bar {
  max-width: 1180px; margin: 8px auto 0; width: calc(100% - 2 * clamp(16px, 4vw, 40px));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: #FFF4D8; border: 1px solid #F0DDA9; border-radius: 16px; font-size: 14px; color: #6E5A2A;
}
.preview-bar p { margin: 0; flex: 1; }
.preview-bar code { background: rgba(255, 255, 255, .7); }
.preview-bar .icon-btn { width: 32px; height: 32px; background: transparent; border-color: transparent; }

.page { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 40px; }

.foot { text-align: center; padding: 30px 20px 50px; color: var(--ink-2); }
.foot p { margin: 4px 0; }
.foot-logo { width: 64px; opacity: .9; }
.foot-small { font-size: 13.5px; color: var(--ink-3); }
.foot-tag { font: italic 500 19px/1.3 var(--display); color: var(--accent); }

/* ── home hero: the baby mobile ────────────────────────────── */
.home-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 0 28px;
  margin-top: 10px; padding: 0 clamp(22px, 5vw, 64px); min-height: 520px; border-radius: 40px;
  background: linear-gradient(168deg, #ECE6F6 0%, #F6ECF2 48%, #FDF0E4 100%);
  border: 1px solid #ECE2EA; box-shadow: var(--shadow-sm);
  animation: rise .6s both;
}
.hero-copy { padding: clamp(36px, 5vw, 64px) 0; }
.hero-copy .display { margin-top: .22em; }
.lede { max-width: 520px; margin: 0; font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2); text-wrap: pretty; }
.lede b { color: var(--ink); }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky i {
  position: absolute; width: var(--s, 10px); height: var(--s, 10px); background: #fff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 4.2s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.sky i.g { background: #F2CC70; }

.mobile { position: relative; align-self: stretch; min-height: 520px; --size: calc(clamp(104px, 11.5vw, 148px) * var(--fit, 1)); --k: 1; }
.mb-hook { position: absolute; left: 50%; top: 0; width: 2px; height: 59px; margin-left: -1px; background: #A88566; }
.mb-hook::before { content: ""; position: absolute; left: 50%; top: 46px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #B98E64; }
.mb-bar { position: absolute; left: 6%; width: 88%; top: 52px; height: 30px; overflow: visible; }
.hang {
  position: absolute; left: var(--x); top: var(--top); width: 0; height: 0; color: inherit; text-decoration: none;
  transform-origin: 0 0; animation: sway var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}
.hang-str { position: absolute; left: -.75px; top: 0; width: 1.5px; height: calc(var(--len) * var(--k)); background: rgba(110, 86, 100, .42); }
.hang-charm {
  position: absolute; left: 0; top: calc(var(--len) * var(--k) - var(--size) * var(--at)); width: var(--size); translate: -50% 0;
  filter: drop-shadow(0 14px 14px rgba(90, 60, 80, .15)); transition: scale .35s cubic-bezier(.2, .8, .3, 1.4); transform-origin: 50% 0;
}
.hang-charm .charm { display: block; width: 100%; height: auto; }
.hang-tag {
  position: absolute; left: 0; top: calc(var(--len) * var(--k) + var(--size) * (var(--bt) - var(--at)) + 8px); translate: -50% 0;
  white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: background .2s;
}
.hang-tag b { color: var(--ink); margin-right: 5px; }
a.hang:hover .hang-charm, a.hang:focus-visible .hang-charm { scale: 1.07; }
a.hang:hover .hang-tag { background: #fff; }
a.hang:focus-visible { outline: none; }
a.hang:focus-visible .hang-tag { outline: 3px solid var(--accent); }
.hang.small .hang-charm { width: calc(var(--size) * .27); filter: none; }
/* five or more charms: two-line name tags, so neighbours never bump */
.mobile.is-busy .hang-tag { display: grid; justify-items: center; padding: 5px 12px 6px; border-radius: 16px; line-height: 1.2; font-size: 12.5px; }
.mobile.is-busy .hang-tag b { margin: 0; font-size: 14px; }

/* ── together: journey + coming up ─────────────────────────── */
.together { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr); gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.panel .sec-head { margin-bottom: 4px; }
.journey { display: flex; flex-direction: column; }
.journey .track { margin: auto 0; }
.panel .sec-head h2 { font-size: 25px; }
.track { padding: 58px 16px 4px; }
.track-line { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #E6DEF2, #F5DCE2 50%, #FBE1CC); }
.track-line > i { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; border-radius: 2px; background: #fff; }
.tk { position: absolute; top: 50%; translate: -50% -50%; z-index: 1; color: inherit; text-decoration: none; }
.tk:hover { z-index: 3; }
.tk-dot {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px var(--c), 0 8px 16px -6px rgba(74, 52, 70, .4); transition: transform .2s;
}
.tk-dot .charm { width: 28px; }
.tk:hover .tk-dot { transform: scale(1.1); }
.tk-label {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 13.5px; color: var(--ink-2); background: var(--card); padding: 4px 11px; border-radius: 999px;
  box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line));
}
.tk-label b { color: var(--ink); }
.tk.below .tk-label { bottom: auto; top: calc(100% + 10px); }
.tk.edge-r .tk-label { left: auto; right: -8px; transform: none; }
.tk.edge-l .tk-label { left: -8px; transform: none; }
.track-scale { position: relative; height: 18px; margin-top: 18px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.track-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.track-scale span:first-child { transform: none; }
.track-scale span:last-child { transform: translateX(-100%); }
.track-scale .tri { font-weight: 800; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 60%, var(--ink-3)); }
.journey-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 22px 0 0; font-size: 14.5px; color: var(--ink-2); }
.journey-foot a:not(.guide-link) { color: var(--ink); font-weight: 800; }

.soon-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.soon-list a {
  display: grid; grid-template-columns: 52px 1fr 30px; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
  border-radius: 18px; color: inherit; text-decoration: none; background: var(--c-soft); transition: transform .2s;
}
.soon-list a:hover { transform: translateX(3px); }
.soon-date { display: grid; place-items: center; align-content: center; gap: 3px; height: 52px; border-radius: 14px; background: #fff; line-height: 1; }
.soon-date small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-deep); }
.soon-date b { font: 600 22px/1 var(--display); }
.soon-what { min-width: 0; }
.soon-what b { display: block; font-size: 15px; line-height: 1.25; }
.soon-what small { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.soon-list .charm { width: 30px; }
.soon-empty { margin: 10px 0 0; color: var(--ink-3); }
.cards-head { margin: 48px 0 14px; align-items: flex-end; }
.cards-head h2 + p { margin-top: 4px; }

@media (max-width: 880px) {
  .home-hero { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .mobile { order: -1; min-height: 0; height: 350px; --size: calc(100px * var(--fit, 1)); --k: .56; margin: 0 -12px; }
  .mobile.is-busy { height: 372px; }
  .hero-copy { padding: 6px 0 34px; }
  .lede { margin: 0 auto; }
  .together { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .mobile { --size: calc(88px * var(--fit, 1)); height: 326px; } .hang-tag { font-size: 12.5px; padding: 3px 9px; }
  .mobile.is-busy { height: 340px; }
  .mobile.is-busy .hang-tag { font-size: 11.5px; padding: 4px 8px 5px; } .mobile.is-busy .hang-tag b { font-size: 12.5px; }
}

/* ── cards ─────────────────────────────────────────────────── */
/* three to a row; a short last row sits in the middle */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
.cards > * { grid-column: span 2; }
.cards > :nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
.cards > :last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .cards > *, .cards > :nth-last-child(2):nth-child(3n + 1), .cards > :last-child:nth-child(3n + 1) { grid-column: span 2; }
  .cards > :last-child:nth-child(2n + 1) { grid-column: 2 / span 2; }
}
@media (max-width: 640px) {
  .cards { display: flex; flex-direction: column; }
}
.kid-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 22px 18px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--c-soft) 0%, var(--card) 48%);
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
  box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
  animation: rise .7s both; animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.kid-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.kid-card:hover .plate-art .produce, .kid-card:hover .arch .charm { transform: scale(1.05) rotate(-2deg); }
.arch .charm { transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.pc-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.pc-who { min-width: 0; }
.pc-who h3 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.1; }
.pc-who p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-deep); background: #fff; padding: 5px 10px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--c); color: #fff;
  font: 600 21px/1 var(--display);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px color-mix(in srgb, var(--c) 45%, transparent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 68px; height: 68px; font-size: 30px; }

.plate { position: relative; width: min(232px, 68vw); aspect-ratio: 1; margin: 14px auto 6px; }
.plate .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-bg { fill: none; stroke: color-mix(in srgb, var(--c) 22%, transparent); stroke-width: 2.4; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; }
.ring-dot { fill: var(--c-deep); stroke: #fff; stroke-width: 1.6; }
.plate-art {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fff 46%, var(--c-soft) 100%);
  box-shadow: inset 0 -8px 20px -8px color-mix(in srgb, var(--c) 40%, transparent), 0 10px 22px -12px rgba(70, 50, 66, .3);
}
.plate-art .produce { width: 80%; height: 80%; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.plate-art.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.bob .produce { animation: bob 6.5s ease-in-out infinite; animation-delay: var(--d, 0s); }

.wk { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 0; }
.wk-num { font: 500 58px/1 var(--display); color: var(--c-deep); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }
.wk-label { display: flex; flex-direction: column; text-align: left; font-size: 15px; font-weight: 800; color: var(--ink-2); line-height: 1.15; }
.wk-label small { font-weight: 700; color: var(--ink-3); font-size: 13px; }
.size { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.size strong { display: block; margin-top: 2px; font: 600 25px/1.12 var(--display); color: var(--ink); font-variation-settings: "SOFT" 100; text-wrap: balance; }
.stats { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.welcome { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.baby-name { margin: 0; font: italic 500 40px/1.05 var(--display); color: var(--c-deep); font-variation-settings: "SOFT" 100; }
.due {
  width: 100%; margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.kid-card .due { margin-top: 16px; }
.due span:last-child { color: var(--c-deep); }

/* ── sections ──────────────────────────────────────────────── */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font: 500 29px/1.1 var(--display); letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.recent { margin-top: 56px; }

/* ── moments grid ──────────────────────────────────────────── */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.tile {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s;
}
.tile:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow); }
.tile:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.tile-img { display: block; aspect-ratio: 4 / 5; background: var(--c-soft); overflow: hidden; }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px 0; font-size: 12.5px; font-weight: 700; }
.tile > .tile-meta:last-child { padding-bottom: 12px; }
.tile-wk { color: var(--c-deep); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tile-mom { display: flex; align-items: center; gap: 5px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-mom i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.tile-cap { padding: 4px 12px 12px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-note { justify-content: space-between; min-height: 232px; padding: 16px; background: linear-gradient(160deg, var(--c-soft), var(--card)); }
.tile-note .tile-meta { padding: 0; }
.tile-kind { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c-deep); }
.tile-quote { flex: 1; margin: 12px 0; font: italic 400 19px/1.32 var(--display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tile-quote::before { content: "“"; }
.tile-quote::after { content: "”"; }

/* ── a mama's page ─────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 0; color: var(--ink-2); font-weight: 700; text-decoration: none; font-size: 15px; padding: 6px 12px 6px 6px; border-radius: 999px; }
.back:hover { background: var(--card); }
.hero-mom {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr; align-items: center;
  gap: clamp(24px, 5vw, 64px); padding: 18px 0 0; animation: rise .55s both;
  scroll-margin-top: 90px;
}
.hm-art { display: grid; justify-items: center; gap: 14px; }
.plate-lg { width: min(390px, 82vw); margin: 0; }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hm-chips:empty { display: none; }
.chip-static { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--c-deep); font-weight: 800; font-size: 13.5px; }
.hm-info { min-width: 0; }
.hm-title { margin: 8px 0 6px; font: 500 clamp(2.8rem, 6.5vw, 4.6rem)/1 var(--display); letter-spacing: -.025em; }
.hm-title em { font-style: italic; font-weight: 400; color: var(--c-deep); }
.hm-plus { margin-left: .3em; font-size: .4em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; vertical-align: .95em; }
.hm-size { margin: 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); text-wrap: balance; }
.hm-size em { font: italic 500 1.32em/1.1 var(--display); color: var(--c-deep); }
.is-peek .hm-title, .is-peek .hm-size em { color: var(--ink-2); }
.is-peek .eyebrow { color: var(--c-deep); }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 14px; }
.statgrid > div, .g-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
dt { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
dd { margin: 3px 0 1px; font: 600 23px/1.15 var(--display); font-variation-settings: "SOFT" 100; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
dl { margin: 0; }
.statgrid small, .g-stats small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.notes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note-card { padding: 14px 16px; border-radius: var(--r-md); background: var(--c-soft); text-align: left; }
.note-card.fact { background: #FBF3DF; }
.note-card h3 { margin: 0 0 4px; font: 600 17px/1.25 var(--display); }
.note-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.note-card .typ { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--c-deep); }
.note-card.crop { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.note-card.sib { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--c-soft) 60%, #fff); border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.note-card.sib a { color: var(--c-deep); font-weight: 800; }
.sib-charm { width: 52px; height: auto; flex: none; }
.crop-art .produce { width: 76px; height: 76px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 880px) {
  .hero-mom { grid-template-columns: 1fr; text-align: center; }
  .hm-actions { justify-content: center; }
  .plate-lg { width: min(330px, 78vw); }
}
@media (max-width: 560px) {
  .notes2 { grid-template-columns: 1fr; }
  .statgrid { gap: 6px; }
  .statgrid > div { padding: 10px 8px; }
  dd { font-size: 18px; }
  dt { font-size: 10.5px; letter-spacing: .06em; }
}

/* produce aisle */
.aisle { margin-top: 52px; }
.aisle-wrap { position: relative; }
.aisle-track {
  display: flex; gap: 10px; overflow-x: auto; padding: 16px 30px 18px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
}
.aisle-track::-webkit-scrollbar { display: none; }
.aisle-item {
  position: relative; flex: none; width: 112px; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 8px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card);
  font: inherit; color: inherit; cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s, opacity .2s;
}
.aisle-item:not(:disabled):hover { transform: translateY(-3px); }
.aisle-item:disabled { cursor: default; color: inherit; }
.ai-art .produce { display: block; width: 66px; height: 66px; }
.ai-wk { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ai-name { font-size: 13px; font-weight: 700; line-height: 1.2; min-height: 2.4em; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aisle-item.is-past { background: color-mix(in srgb, var(--c-soft) 70%, var(--card)); border-color: color-mix(in srgb, var(--c) 25%, var(--line)); }
.aisle-item.is-now { border-color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.aisle-item.is-view { background: var(--c-soft); border-color: var(--c-deep); box-shadow: inset 0 0 0 2px var(--c-deep), var(--shadow); transform: translateY(-3px); }
.aisle-item.is-birth { border-color: #E2B64A; box-shadow: inset 0 0 0 2px #E2B64A; background: #FFF7E0; }
.aisle-item.is-after { opacity: .4; }
.ai-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--c-deep); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.is-birth .ai-tag { background: #C9962A; }
.aisle-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); box-shadow: var(--shadow); cursor: pointer; }
.aisle-nav.prev { left: -8px; } .aisle-nav.next { right: -8px; }
@media (hover: none) { .aisle-nav { display: none; } }

/* tabs */
.tabs-sec { margin-top: 46px; }
.tabs { display: flex; gap: 4px; padding: 5px; width: fit-content; max-width: 100%; overflow-x: auto; background: var(--bg-deep); border-radius: 999px; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 15px/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.count { min-width: 22px; padding: 3px 7px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--c) 24%, transparent); color: var(--c-deep); }
.tab-panel { margin-top: 18px; animation: fade .35s both; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-intro { margin: 0; color: var(--ink-2); max-width: 560px; }
.panel-note { margin: -6px 0 14px; font-size: 14px; color: var(--ink-3); font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 700 14px/1.2 var(--body); cursor: pointer; }
.chip span { color: var(--ink-3); font-weight: 700; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: rgba(255, 255, 255, .65); }

.empty { padding: 30px 20px 40px; text-align: center; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty .produce { width: 104px; height: 104px; }
.panel-bar + .ms-next { margin-top: -4px; }
.empty h3 { margin: 4px 0; font: 500 25px/1.2 var(--display); }
.empty p { max-width: 430px; margin: 0 auto 16px; color: var(--ink-2); }

/* love notes */
.notes-wall { columns: 280px; column-gap: 16px; }
.love-note {
  position: relative; break-inside: avoid; margin: 0 0 16px; padding: 22px 22px 16px;
  border-radius: 6px 24px 24px 24px; background: #FFF7EA; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.love-note.n1 { background: var(--c-soft); }
.love-note.n2 { background: #F4EFF8; }
.love-note.n3 { background: #FDF0E8; }
.love-note blockquote { margin: 0; font: 400 19px/1.42 var(--display); color: var(--ink); }
.love-note figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.love-note time { color: var(--ink-3); font-weight: 700; }
.x {
  position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-3); font: 800 12px/1 var(--body); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.x .ico { width: 16px; height: 16px; }
.x:hover { background: rgba(0, 0, 0, .05); }
.love-note:hover .x, .g-list li:hover .x, .x:focus-visible, .x.armed { opacity: 1; }
.x.armed { padding: 0 10px; }
@media (hover: none) { .x { opacity: .55; } }

/* guesses */
.spread { position: relative; height: 92px; margin: 4px 14px 14px; }
.spread-line { position: absolute; left: 0; right: 0; top: 46px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 50%, transparent) 12%, color-mix(in srgb, var(--c) 50%, transparent) 88%, transparent); }
.spread-due { position: absolute; top: 58px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.spread-due b { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.spread-due::before { content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 12px; background: var(--ink-3); border-radius: 2px; }
.spread-dot { position: absolute; top: 8px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 2.5px solid #fff; font: 600 14px/1 var(--display); box-shadow: var(--shadow); }
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-list li { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 30px; align-items: center; gap: 10px; padding: 12px 10px 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.g-list.results li { grid-template-columns: 1.3fr 1fr 1fr; padding-right: 18px; }
.g-who { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.g-date, .g-wt { display: flex; flex-direction: column; font-weight: 800; }
.g-date small, .g-wt small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.g-list .x { position: static; }
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.winner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(135deg, #FFF2D2, var(--c-soft)); border: 1px solid #F0DDA9; }
.winner .ico { width: 40px; height: 40px; color: #B8902F; stroke-width: 1.7; }
.winner small { color: var(--ink-2); font-weight: 700; }
@media (max-width: 560px) { .g-stats { gap: 6px; } .g-stats > div { padding: 10px 8px; } .g-list li { grid-template-columns: 1fr 1fr 1fr 26px; padding-left: 12px; font-size: 14.5px; } }

/* ── produce guide ─────────────────────────────────────────── */
.guide-hero { max-width: 840px; margin: 0 auto 30px; padding-top: clamp(16px, 4vw, 44px); text-align: center; }
.method { display: grid; gap: 10px; text-align: left; padding: 22px 26px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.method p { margin: 0; }
.method b { color: var(--ink); }
.method .fine { font-size: 13.5px; color: var(--ink-3); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.g-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 90px; }
.g-card.has-mom { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
.gc-art { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 30%, #F3ECE1); }
.gc-art .produce { width: 84%; height: 84%; }
.gc-wk { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.gc-mom { padding: 2px 9px; border-radius: 999px; background: var(--c-deep); color: #fff; letter-spacing: .02em; text-transform: none; font-size: 12px; }
.g-card h3 { margin: 2px 0 6px; font: 600 21px/1.15 var(--display); }
.gc-stats { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.gc-stats b { color: var(--ink); }
.gc-why { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* ── dialogs ───────────────────────────────────────────────── */
dialog { width: 100%; max-width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
dialog::backdrop { background: rgba(58, 44, 34, .4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: pop .32s cubic-bezier(.2, .9, .3, 1.15); }
.sheet { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 4px; }
.sheet-head h2 { margin: 0; font: 500 27px/1.15 var(--display); }
.sheet-body { display: grid; gap: 16px; padding: 12px 22px 10px; overflow-y: auto; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.sheet-lede { margin: 0; color: var(--ink-2); }
.sheet-thumb { width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }
.form-err { margin: 0; color: var(--danger); font-weight: 700; font-size: 14px; }
.form-err:empty { display: none; }
@media (max-width: 600px) {
  dialog.modal-sheet { margin: auto 0 0; max-width: 100vw; max-height: 94dvh; }
  dialog.modal-sheet[open] { animation: slideup .34s cubic-bezier(.2, .9, .3, 1); }
  .modal-sheet .sheet { border-radius: 26px 26px 0 0; max-height: 94dvh; padding-bottom: env(safe-area-inset-bottom); }
}

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 800; }
.field > span i { font-style: normal; font-weight: 600; color: var(--ink-3); }
.field .hint { font-size: 13px; font-weight: 700; color: var(--c-deep); min-height: 1em; }
input, textarea, select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: 500 16px/1.35 var(--body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.unit-row { display: flex; gap: 10px; }
.unit-row label { position: relative; flex: 1; }
.unit-row input { padding-right: 42px; }
.unit-row i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; color: var(--ink-3); pointer-events: none; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px;
  text-align: center; cursor: pointer; border-radius: 20px; background: var(--c-soft);
  border: 2px dashed color-mix(in srgb, var(--c) 55%, var(--line)); transition: background .2s;
}
.drop:hover, .drop:focus-within { background: color-mix(in srgb, var(--c-soft) 60%, #fff); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico .ico { width: 32px; height: 32px; color: var(--c-deep); }
.drop-t { font-weight: 800; }
.drop-s { font-size: 13.5px; color: var(--ink-2); }
.drop.has-files { border-style: solid; }
.previews { display: flex; gap: 8px; overflow-x: auto; }
.previews:empty { display: none; }
.previews img { width: 72px; height: 90px; flex: none; object-fit: cover; border-radius: 10px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.kind-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-pick label, .swatches label { position: relative; }
.kind-pick input, .swatches input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.kind-pick span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.kind-pick input:checked + span { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }
.kind-pick input:focus-visible + span, .swatches input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.swatches > div, .swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatches legend { width: 100%; }
.swatches label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.swatches span { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: box-shadow .2s; }
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatches i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.avatar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-row .btn { position: relative; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.check input { width: auto; }

/* lightbox */
dialog.modal-lb { max-width: min(980px, calc(100vw - 24px)); }
.lb { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); overflow: hidden; background: var(--card); border-radius: 26px; box-shadow: var(--shadow-lg); }
.lb-media { position: relative; display: grid; place-items: center; min-height: 240px; background: #2E2622; }
.lb-img { display: block; max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; }
.lb-note { width: 100%; margin: 0; padding: 70px clamp(28px, 6vw, 80px); text-align: center; background: linear-gradient(160deg, var(--c-soft), var(--card)); font: italic 400 clamp(22px, 3.4vw, 32px)/1.35 var(--display); color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); }
.lb-info { padding: 16px 22px 20px; }
.lb-info .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--c); }
.lb-cap { margin: 6px 0 0; font: 400 20px/1.4 var(--display); }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* toast & confetti */
#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 150; pointer-events: none; display: none; }
#confetti.on { display: block; }


/* sign-in choices, who's-here pill, "you" tags */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-deep); }
.seg button { padding: 9px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 800 14px/1.1 var(--body); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.login-note { margin: 0; font-size: 14px; color: var(--ink-3); text-align: left; }
.who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 13px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.who i { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px/1 var(--display); font-style: normal; }
.who.is-mom { padding: 7px 13px 7px 11px; gap: 6px; color: var(--accent); background: var(--accent-soft); border-color: #DDD4EE; }
.who.is-mom .ico { width: 16px; height: 16px; }
.you { margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--c-deep); color: #fff; font: 800 10px/1.3 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.g-list li.is-mine { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.g-list:not(.can-del) li { grid-template-columns: 1.3fr 1fr 1fr; padding-right: 18px; }
@media (max-width: 520px) { .who > span { display: none; } .who { padding: 3px; } .who.is-mom { padding: 9px; } }

/* small-screen polish */
.guide-link { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.guide-link:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .tk .tk-label, .tk.below .tk-label { top: auto; bottom: calc(100% + 10px); }
  .tk:nth-of-type(even) .tk-label { bottom: auto; top: calc(100% + 30px); }
  .track:has(.tk:nth-of-type(2)) { padding-bottom: 40px; }
  .tk-dot { width: 36px; height: 36px; } .tk-dot .charm { width: 24px; }
  .tk-label { font-size: 12.5px; padding: 3px 9px; }
  .track { padding: 54px 8px 4px; }
  .panel { padding: 18px 16px; }
  .track-scale .tri { display: none; }
}
@media (max-width: 480px) {
  .m-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-note { min-height: 180px; padding: 14px; }
  .tile-quote { font-size: 16.5px; }
  .tabs { width: 100%; }
  .tab { flex: 1 0 auto; justify-content: center; padding: 10px 11px; font-size: 14px; gap: 6px; }
  .tab .hide-sm { display: none; }
  .tab .show-sm { display: inline; }
  .ms-title { font-size: 18px; }
  .ms-thumb { width: 54px; height: 54px; }
  .panel-bar .btn { width: 100%; }
}
@media (max-width: 440px) {
  .top-nav .nav-link { display: none; }
  .brand span { display: inline !important; }
}

/* ── charms in places ──────────────────────────────────────── */
.avatar.is-charm { background: #fff; }
.avatar .charm { width: 74%; height: auto; }
.plate-art.is-charm .charm { width: 62%; height: auto; }
.empty .charm { width: 92px; height: auto; margin-bottom: 4px; }
.arch {
  position: relative; width: min(212px, 60vw); aspect-ratio: 5 / 6; margin: 14px auto 8px; overflow: hidden;
  display: grid; place-items: center; border: 6px solid #fff; border-radius: 999px 999px 28px 28px;
  background: radial-gradient(circle at 50% 42%, #fff 0 28%, var(--c-soft) 100%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 50%, transparent), var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .charm { width: 64%; height: auto; }
.arch-lg { width: min(340px, 74vw); margin: 0; }
.kid-card .baby-name { margin-top: 4px; }
.is-born .note-card.crop { grid-column: auto; }
.is-born .notes2 > :only-child { grid-column: 1 / -1; }
@media (min-width: 641px) {
  .track:has(.below) { padding-bottom: 40px; }
  .tk.below .tk-label { top: calc(100% + 30px); }
}

/* ── milestones ────────────────────────────────────────────── */
.ms-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 22px; }
.ms-next-h { margin-right: 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chip .ico { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.chip-quiet { cursor: default; background: transparent; border-style: dashed; }
.ms-line { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 10px; }
.ms-line::before {
  content: ""; position: absolute; left: 25px; top: 22px; bottom: 22px; width: 2px;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--c) 60%, transparent) 0 6px, transparent 6px 12px);
}
.ms-card {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 10px 14px 10px 0;
  border-radius: 20px; transition: background .2s;
}
.ms-card:hover { background: color-mix(in srgb, var(--c-soft) 75%, transparent); }
.ms-card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.ms-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 50%, transparent); }
.ms-star { width: 30px; height: auto; }
.ms-body { min-width: 0; }
.ms-when { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-deep); }
.ms-title { display: block; margin-top: 1px; font: 600 21px/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.ms-cap { display: block; margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.ms-thumb { width: 66px; height: 66px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── growth ────────────────────────────────────────────────── */
.growth { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ruler-wrap { padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #FFFDF9, var(--c-soft)); }
.ruler { display: block; width: 100%; height: auto; overflow: visible; }
.r-ticks path { stroke: #8C6E55; fill: none; }
.r-ticks text { font: 800 12px var(--body); fill: #7A5C44; }
.r-unit { font: 800 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-3); }
.rm-l { font: 700 13px var(--body); fill: var(--ink-2); }
.rm-v { font-weight: 800; fill: var(--ink); }
.r-empty { font: 700 13px var(--body); fill: var(--ink-3); }
.rm { cursor: default; }
.rm:hover path { stroke-width: 3.5; }
.gt-wrap { min-width: 0; overflow-x: auto; }
.gt { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; }
.gt th { padding: 0 14px; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.gt td { padding: 11px 14px; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.gt td:first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.gt td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.gt td small { display: block; font-size: 12.5px; color: var(--ink-3); }
.gt .x { position: static; opacity: .55; }
.gt tr:hover .x { opacity: 1; }
@media (max-width: 760px) { .growth { grid-template-columns: 1fr; } .ruler-wrap { max-width: 380px; } }

/* ── forms, tiles, lightbox extras ─────────────────────────── */
.charm-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.charm-pick legend { width: 100%; }
.charm-pick label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.charm-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.charm-pick span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.charm-pick .cp { width: 38px; height: auto; }
.charm-pick input:checked + span { border-color: var(--c-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.charm-pick input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }
.charm-pick i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tile-kind .ico { width: 13px; height: 13px; vertical-align: -2px; }
.tile-quote.is-title { font-style: normal; font-weight: 500; font-size: 24px; line-height: 1.15; flex: 0 1 auto; margin-bottom: 6px; }
.tile-quote.is-title::before, .tile-quote.is-title::after { content: none; }
.tile-sub { flex: 1; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.tile-cap b { color: var(--ink); }
.lb-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 600 24px/1.2 var(--display); }
.lb-title .ico { color: var(--c-deep); }
.tab .show-sm { display: none; }
#tip {
  position: fixed; z-index: 300; left: 0; top: 0; max-width: 260px; padding: 8px 12px; border-radius: 12px; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.35; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .15s;
}
#tip.show { opacity: 1; }

/* ── motion ────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes sway { from { rotate: -2.4deg; } to { rotate: 2.4deg; } }
@keyframes twinkle { 0%, 100% { opacity: .25; scale: .7; } 50% { opacity: 1; scale: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: 4deg; } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
