@font-face{font-family:'DSEG7-Classic';src:url('/fonts/DSEG7Classic-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
/* Visual system based on HeroUI Pro's public component previews. */
:root{--page:#f4f4f5;--surface:#fff;--surface-soft:#f7f7f8;--ink:#18181b;--muted:#71717a;--line:#e8e8eb;--accent:#006fee;--accent-soft:#e6f1fe;--data-primary:#248aff;--data-primary-soft:#8bb5f8;--data-urine:#5bc7f5;--data-warning:#f5a524;--data-lime:#c8cb15;--data-violet:#9353d3;--data-neutral:#3f3f46;--data-unknown:#a1a1aa;--shadow:0 2px 4px #00000004,0 1px 2px #00000006;color:var(--ink);background:var(--page);font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}
body{background:var(--page);color:var(--ink);-webkit-font-smoothing:antialiased}a{color:var(--accent)}
.app-shell{display:grid;grid-template-columns:200px minmax(0,1fr);max-width:1600px;min-height:100vh;margin:0 auto;background:var(--page)}
.app-sidebar{display:flex;flex-direction:column;align-self:start;position:sticky;top:0;height:100vh;min-width:0;padding:30px 14px 24px;border-right:1px solid var(--line);background:var(--surface)}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px;color:var(--ink);font-size:17px;font-weight:750;letter-spacing:-.02em;text-decoration:none}.brand-avatar{display:block;width:40px;height:40px;flex:0 0 40px;border:2px solid #fff;border-radius:50%;object-fit:cover;object-position:50% 44%;box-shadow:0 0 0 1px var(--line),0 2px 7px #00000014}.brand small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:450;letter-spacing:.02em}
.sidebar-label{margin:42px 12px 12px;font-size:12px;color:#a1a1aa;font-weight:500}.side-nav{display:grid;gap:6px}.side-nav button{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:10px;color:#71717a;font-size:14px;font-weight:500;text-decoration:none;transition:background .12s,color .12s}.side-nav button:hover{background:#f4f4f5;color:var(--ink)}.side-nav button.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.nav-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-note{margin:auto 12px 0;padding-top:24px;color:#a1a1aa;font-size:12px;line-height:1.8}.sidebar-note strong{color:#71717a;font-weight:500}
.wrap{width:100%;max-width:none;margin:0;padding:30px 32px 48px}.top{align-items:center;gap:24px;margin-bottom:22px;padding:0;border:0}.eyebrow{display:flex;align-items:center;gap:9px;color:#a1a1aa;font-size:12px;font-weight:450;letter-spacing:0}.eyebrow span{color:#d4d4d8}.title{margin:10px 0 8px;color:var(--ink);font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.045em}.sub{font-size:14px;color:var(--muted);line-height:1.6}
.source-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--surface);box-shadow:var(--shadow);font-size:14px;font-weight:500;transition:background .12s,transform .12s}.source-pill:hover{background:#fafafa;text-decoration:none}.source-pill:active,.switch button:active{transform:scale(.98)}
.overview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;border-bottom:1px solid #e4e4e7}.overview-tabs{display:flex;gap:26px}.overview-tabs button{position:relative;padding:12px 0 15px;color:var(--muted);font-size:14px;font-weight:500;text-decoration:none}.overview-tabs button.active{color:var(--ink)}.overview-tabs button.active::after{position:absolute;content:"";left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--ink)}.period-pill{padding:5px 10px;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa;color:var(--muted);font-size:12px;white-space:nowrap}
.intro{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.intro .stat{display:grid;grid-template-rows:20px 40px 18px;align-content:start;row-gap:10px;min-height:140px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;color:#52525b;font-size:13px;font-weight:500;line-height:20px;opacity:1;white-space:nowrap}.stat-label span{color:#a1a1aa;font-size:11px;font-weight:400}.stat-metric{display:flex;height:40px;align-items:center;justify-content:space-between;gap:6px;flex-wrap:nowrap}.stat-value{color:var(--ink);font-size:30px;font-weight:650;letter-spacing:-.045em;line-height:1.15;white-space:nowrap}.stat-value small{margin-left:3px;margin-right:2px;color:#a1a1aa;font-size:14px;font-weight:450;letter-spacing:0}.stat-delta{padding:4px 7px;border-radius:6px;background:#e8faf0;color:#15803d;font-size:11px;font-weight:550;white-space:nowrap}.stat-delta.neutral{background:#f4f4f5;color:#71717a}.stat-delta.sleep{background:#f0eafe;color:#7828c8}.stat-foot{align-self:end;margin:0;color:#a1a1aa;font-size:12px;line-height:18px}
.grid,.rhythm,.bottom-grid{gap:20px}.rhythm,.bottom,.birth-card{margin-top:20px}.card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}.card-kicker{display:block;margin-bottom:7px;color:#a1a1aa;font-size:10px;font-weight:600;letter-spacing:.12em}.card h2{color:var(--ink);font-size:18px;line-height:1.35;font-weight:650;letter-spacing:-.025em}.card-head{gap:16px;align-items:flex-start}.caption{margin-top:7px;color:var(--muted);font-size:13px;line-height:1.65}
.switch{display:inline-flex;align-items:center;gap:2px;padding:4px;border:0;border-radius:10px;background:#f4f4f5}.switch button{min-height:32px;padding:5px 11px;border-radius:7px;color:#71717a;font-size:13px;font-weight:500;transition:background .12s,color .12s,box-shadow .12s}.switch button:hover:not(.active){color:var(--ink);background:#eaeaec}.switch button.active{color:var(--ink);background:white;box-shadow:0 1px 3px #00000016,0 1px 2px #0000000d}.switch button[data-metric="睡眠"].active{color:var(--data-violet)}.switch button[data-metric="便便"].active{color:#b97509}.switch button[data-metric="尿尿"].active{color:var(--data-primary)}
.source-pill:focus-visible,.switch button:focus-visible,summary:focus-visible,.side-nav button:focus-visible,.overview-tabs button:focus-visible,.links a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.chart-wrap{margin-top:22px}.chart-wrap text{fill:#8b8b95;font-size:15px!important}.chart-wrap .axis,.elimination-chart .gridline{stroke:#eeeef0;stroke-width:1}.chart-wrap .line{stroke:var(--data-primary);stroke-width:3}.chart-wrap .dot{fill:var(--data-primary);stroke-width:2.5}.chart-wrap .growth-point:hover .dot,.chart-wrap .growth-point:focus .dot{fill:#005bc4;stroke-width:3}.chart-wrap .point-tooltip rect{fill:#27272a}.chart-wrap .point-tooltip text{fill:white;font-size:20px!important;font-weight:650}.chart-wrap .bar.center{fill:var(--data-primary)}.chart-wrap .bar.hospital{fill:var(--data-primary-soft)}.chart-wrap .bar.estimate{fill:#7edbd2;stroke:none}.chart-wrap .bar+text{fill:#52525b!important}
#growth-chart,#feed-chart{height:260px;aspect-ratio:auto;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#c7c7cc transparent}#growth-chart svg,#feed-chart svg{display:block;max-width:none;flex:none}
.growth-chart-shell{position:relative;margin-top:22px;padding-top:33px}.growth-chart-shell #growth-chart{margin-top:0}.growth-rate-fixed{position:absolute;z-index:4;top:0;right:12px;min-width:95px;padding:6px 12px;border-radius:9px;background:#d9f7ee;color:#078c75;font-size:13px;font-weight:750;line-height:16px;text-align:center;box-shadow:0 1px 2px #078c7514;pointer-events:none}
.chart-summary{margin-top:12px;padding:13px 15px;border:0;border-radius:10px;background:#f7f7f8;color:#52525b;font-size:13px;line-height:1.75}.feed-source-legend,.elimination-legend{gap:8px 14px;color:#71717a;font-size:12px;line-height:1.5}.feed-source-legend i,.elimination-legend i{width:9px;height:9px;border-radius:3px}.feed-source-legend i{background:var(--data-primary-soft)}.feed-source-legend .center i{background:var(--data-primary)}.feed-source-legend .estimated i{background:#7edbd2;border-color:transparent}.feed-note,.rhythm-note,.event-context{color:#8b8b95;font-size:12px;line-height:1.8}
.card details{margin-top:15px;border-top:1px solid #f0f0f2;padding-top:12px}.card details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;padding:2px 0;border:0;border-radius:5px;color:#71717a;background:transparent;font-size:12px;font-weight:500;list-style:none}.card details>summary::-webkit-details-marker{display:none}.card details>summary::after{content:"";flex:none;width:6px;height:6px;margin-right:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .12s}.card details[open]>summary::after{transform:rotate(225deg)}.card details>summary:hover{color:var(--ink)}
.overlap-note{border-left:2px solid var(--data-warning);border-radius:8px;background:#fffbeb;color:#785821;font-size:13px}.overlap-note strong,.overlap-note a{color:#785821}.feed-table-wrap{margin-top:14px}.data-table{font-size:13px}.data-table th{color:#71717a;background:#fafafa;border-bottom-color:var(--line);font-size:12px;font-weight:500}.data-table td{color:#52525b;border-bottom-color:#f1f1f3;padding-top:12px;padding-bottom:12px}.data-table td a{color:var(--accent)}
.rhythm-axis{margin-left:90px;margin-right:72px;margin-top:24px;margin-bottom:10px;color:#a1a1aa;font-size:11px}.rhythm-day-row{grid-template-columns:78px minmax(0,1fr) 60px;gap:12px}.rhythm-days{gap:15px}.rhythm-day{padding:5px 3px;border-radius:8px;color:#52525b;font-size:13px;font-weight:600}.rhythm-day small,.rhythm-day.range small{font-size:11px;color:#a1a1aa;font-weight:400;line-height:1.4;white-space:normal}.rhythm-day.range{font-size:12px}.rhythm-day.range small{white-space:nowrap}.rhythm-day:hover{background:#f4f4f5}.rhythm-day.active{background:#eff6ff;color:#006fee}.rhythm-count{color:#52525b;font-size:13px;font-weight:600}.rhythm-count small{margin-top:4px;color:#a1a1aa;font-size:10px;font-weight:400}
.rhythm-lane{border-color:#e8e8ed;border-radius:5px;background:repeating-linear-gradient(90deg,#f7f7f8 0,#f7f7f8 calc(100% / 6 - 1px),#e8e8ed calc(100% / 6 - 1px),#e8e8ed calc(100% / 6))}.sleep-lane{background:repeating-linear-gradient(90deg,#f7f5fb 0,#f7f5fb calc(100% / 6 - 1px),#eee9f6 calc(100% / 6 - 1px),#eee9f6 calc(100% / 6))}.rhythm-lane.no-timestamps{background:#f7f7f8}.rhythm-placeholder{color:#a1a1aa;font-size:10px;line-height:22px}.sleep-block{background:var(--data-violet);border-radius:4px;opacity:.72}.sleep-block:hover,.sleep-block:focus-visible{background:var(--data-violet);opacity:1;outline-color:#e9d5ff}.sleep-block::after{background:#27272a;border-radius:8px;box-shadow:0 3px 12px #0000001a;font-weight:600}.elimination-chart .axis-label{fill:#8b8b95;font-size:13px}.elimination-chart .bar-value{fill:#52525b;font-size:13px;font-weight:600}.elimination-chart .bar-urine{fill:var(--data-urine)}
.event-mark{background:var(--data-primary);box-shadow:0 0 0 1px var(--data-primary)}.event-mark.stool{background:var(--data-warning);box-shadow:0 0 0 1px var(--data-warning)}.event-mark.urine{background:var(--data-urine);box-shadow:0 0 0 1px var(--data-urine)}.event-mark.reported{background:#fff;border-color:var(--data-primary)}.event-mark.estimated{background:#fffbeb;border-color:#b97509}.event-mark.boundary{outline-color:var(--data-warning)}.event-item{border:1px solid #d6e8ff;border-radius:8px;background:#eff6ff;color:#005bc4;font-size:12px}.event-item.stool{border-color:#fde7b0;background:#fffbeb;color:#995700}.event-item.urine{border-color:#d6e8ff;background:#eef5ff;color:#2b6fc6}.event-item.sleep{background:#f7f1ff;color:#7828c8;border-color:#eadcff}.birth-grid{gap:12px;margin-top:22px}.birth-data{padding:18px;border:1px solid #eeeef0;border-radius:12px;background:#fafafa}.birth-data span{color:#8b8b95;font-size:12px}.birth-data strong{margin-top:8px;color:var(--ink);font-size:23px;font-weight:600;letter-spacing:-.04em}.birth-foot{color:#8b8b95;font-size:12px;line-height:1.7}.note-block{border:0;border-radius:10px;background:#f7f7f8;color:#71717a;font-size:13px;line-height:1.8}.links a{align-items:center;min-height:44px;padding:12px 14px;border:1px solid #eeeef0;border-radius:10px;background:#fafafa;color:#52525b;font-size:13px;font-weight:500}.links a:hover{background:#f4f4f5;color:var(--ink);text-decoration:none}footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);color:#a1a1aa;font-size:11px;line-height:1.8}
@media(min-width:851px) and (max-width:1250px){.app-shell{grid-template-columns:170px minmax(0,1fr)}.wrap{padding:26px 24px 44px}.card{padding:20px}.intro{gap:12px}.intro .stat{padding:16px}.stat-label{flex-wrap:wrap;gap:5px}.stat-value{font-size:27px}.stat-metric{gap:8px}.rhythm-day-row{grid-template-columns:70px minmax(0,1fr) 54px;gap:8px}.rhythm-axis{margin-left:78px;margin-right:62px;font-size:10px}}
@media(max-width:850px){.app-shell{display:block}.app-sidebar{position:static;display:block;height:auto;padding:16px 20px 12px;border:0;border-bottom:1px solid var(--line)}.brand{padding:0}.brand-avatar{width:34px;height:34px;flex-basis:34px}.brand small,.sidebar-label,.sidebar-note{display:none}.side-nav{display:flex;gap:4px;margin-top:14px;overflow:auto;scrollbar-width:none}.side-nav button{min-height:36px;padding:0 10px;font-size:12px;white-space:nowrap}.nav-icon{font-size:17px;width:16px}.wrap{padding:24px 20px 40px}.intro{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.intro .stat:first-child{grid-column:auto}.grid,.rhythm,.bottom-grid{grid-template-columns:1fr}.title{font-size:30px}.card{padding:24px}.stat-label{font-size:13px}.stat-value{font-size:30px}.rhythm-axis{font-size:12px}}
@media(max-width:570px){.app-sidebar{padding:14px 16px 10px}.side-nav{gap:2px}.side-nav button{padding:0 8px}.nav-icon{display:none}.wrap{padding:22px 14px 36px}.top{display:block;margin-bottom:20px}.title{font-size:28px}.sub{font-size:13px}.source-pill{margin-top:15px;min-height:36px;padding:7px 12px;font-size:13px}.overview-toolbar{flex-wrap:wrap;gap:10px;margin-bottom:18px}.overview-tabs{gap:21px}.overview-tabs button{font-size:13px;padding-top:5px}.period-pill{margin-bottom:10px;font-size:11px}.intro{gap:10px}.intro .stat,.intro .stat:nth-child(2),.intro .stat:nth-child(3){min-height:148px;padding:16px;border-radius:14px}.stat-label{display:block;font-size:12px;margin-bottom:10px}.stat-label span{display:block;margin-top:4px;font-size:11px}.stat-value{font-size:27px}.stat-value small{font-size:12px}.stat-delta{font-size:10px;padding:3px 5px}.stat-foot{font-size:11px}.card{padding:20px 16px;border-radius:14px}.card h2{font-size:18px}.caption{font-size:12px}.switch{display:flex;width:100%}.switch button{flex:1;font-size:13px;min-height:34px}.card-head .switch{margin-top:14px}.card-kicker{font-size:10px}.chart-summary{font-size:13px}.feed-source-legend,.elimination-legend{font-size:11px;gap:7px 11px}.rhythm-day-row{grid-template-columns:65px minmax(0,1fr) 48px;gap:7px}.rhythm-day{font-size:12px}.rhythm-day small,.rhythm-day.range small{font-size:10px}.rhythm-day.range{font-size:11px}.rhythm-count{font-size:12px}.rhythm-count small{font-size:9px}.rhythm-axis{height:34px;margin-left:72px;margin-right:55px;align-items:flex-end;overflow:visible;font-size:10px}.rhythm-axis span{width:0;white-space:nowrap;transform:translate(-12px,-7px) rotate(-45deg);transform-origin:0 100%}.rhythm-axis span:last-child{transform:translate(-20px,-7px) rotate(-45deg)}.rhythm-placeholder{font-size:9px}.birth-data{padding:14px}.birth-data strong{font-size:21px}.birth-foot{font-size:12px}.card details>summary{font-size:12px}.chart-wrap .point-tooltip text{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Rhythm chart: time runs vertically and dates form the bottom x-axis. */
.rhythm-chart{display:grid;width:100%;max-width:100%;grid-template-columns:44px minmax(0,1fr);gap:12px;margin-top:22px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#d4d4d8 transparent}
.rhythm-chart::-webkit-scrollbar{height:7px}.rhythm-chart::-webkit-scrollbar-thumb{border-radius:999px;background:#d4d4d8}
.rhythm-y-axis{position:sticky;left:0;z-index:2;display:flex;height:346px;flex-direction:column;justify-content:space-between;padding:25px 0 34px;background:var(--surface);color:#a1a1aa;font-size:11px;line-height:1;white-space:nowrap}
.rhythm-days{display:grid;grid-template-columns:repeat(var(--rhythm-columns,7),minmax(40px,1fr));gap:6px;min-width:max(100%,var(--rhythm-width,350px))}
.rhythm-day-row{display:grid;grid-template:22px 290px 39px/1fr;gap:8px;min-width:0;align-items:stretch}
.rhythm-count{grid-row:1;text-align:center;align-self:end;font-size:12px;line-height:1.15;white-space:normal}.rhythm-count small{display:block;margin-top:2px}
.rhythm-track-stack{grid-row:2;display:grid;height:290px;min-width:0}
.rhythm-lane{width:100%;height:290px;border-top:1px solid #e8e8ed;border-bottom:1px solid #e8e8ed;background:repeating-linear-gradient(180deg,#f7f7f8 0,#f7f7f8 calc(100% / 6 - 1px),#e8e8ed calc(100% / 6 - 1px),#e8e8ed calc(100% / 6));overflow:visible}
.sleep-lane{background:repeating-linear-gradient(180deg,#f7f5fb 0,#f7f5fb calc(100% / 6 - 1px),#eee9f6 calc(100% / 6 - 1px),#eee9f6 calc(100% / 6))}
.sleep-block{left:4px!important;right:4px;width:auto!important;min-width:0;top:0;height:auto;border-radius:4px}
.sleep-block::after{left:calc(100% + 8px);top:50%;bottom:auto;transform:translateY(-50%)}
.event-mark{left:50%!important;top:0;transform:translate(-50%,-50%)}
.rhythm-placeholder{display:flex;height:100%;align-items:center;justify-content:center;padding:4px;line-height:1.35;writing-mode:vertical-rl}
.rhythm-day{grid-row:3;align-self:end;min-width:0;height:22px;padding:5px 2px;text-align:center;color:#8a8a93;font-size:13px;font-weight:400;line-height:1}.rhythm-day small,.rhythm-day.range small{display:none}.rhythm-day.active{background:transparent;color:var(--accent);font-weight:600}
@media(min-width:851px) and (max-width:1250px){.rhythm-chart{grid-template-columns:40px minmax(0,1fr);gap:8px}.rhythm-days{gap:6px}.rhythm-day-row{grid-template-rows:22px 286px 39px}.rhythm-track-stack,.rhythm-lane{height:286px}.rhythm-y-axis{height:342px;font-size:10px}.rhythm-day,.rhythm-day.range{font-size:13px}}
@media(max-width:570px){.rhythm-chart{grid-template-columns:36px minmax(0,1fr);gap:6px;padding-bottom:2px}.rhythm-y-axis{height:266px;padding:25px 0 34px;font-size:10px}.rhythm-days{min-width:max(350px,var(--rhythm-width,350px));gap:5px}.rhythm-day-row{grid-template-rows:22px 210px auto}.rhythm-track-stack,.rhythm-lane{height:210px}.rhythm-day,.rhythm-day.range{font-size:10px}.rhythm-day small,.rhythm-day.range small{font-size:9px}}

/* Views switch in place; navigation never scrolls to an anchor. */
button[data-view]{font-family:inherit;cursor:pointer}.brand,.side-nav button,.overview-tabs button{border:0;text-align:left;background:transparent}.overview-tabs button{line-height:inherit}#dashboard-content>[hidden]{display:none!important}.wrap:not([data-view="overview"]) #dashboard-content>section{margin-top:0}

/* Growth gallery */
.wrap[data-view="gallery"] .period-pill{visibility:hidden}
.gallery-section{margin-top:20px}.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.gallery-count{flex:none;padding:6px 10px;border-radius:8px;background:var(--surface-soft);color:var(--muted);font-size:12px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;grid-auto-rows:var(--gallery-row-height,220px);gap:14px;margin-top:22px}.gallery-item{position:relative;display:flex;height:100%;min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.gallery-item.portrait{grid-row:span 2}.gallery-photo-button{display:block;width:100%;height:100%;overflow:hidden;padding:0;border:0;background:#ececee;cursor:zoom-in}.gallery-photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s ease,filter .22s ease}.gallery-photo-button:hover .gallery-photo,.gallery-photo-button:focus-visible .gallery-photo{transform:scale(1.018);filter:brightness(.96)}.gallery-photo-button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.gallery-item figcaption{position:absolute;right:0;bottom:0;left:0;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:36px 13px 12px;background:linear-gradient(180deg,transparent,rgba(9,9,11,.42));pointer-events:none;isolation:isolate}.gallery-item figcaption strong{color:#fff;font-size:14px;font-weight:600;text-shadow:0 1px 2px #0008}.gallery-item figcaption span{color:#f4f4f5;font-size:12px;text-align:right;text-shadow:0 1px 2px #0008}.gallery-lightbox{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:rgba(9,9,11,.94);color:#fff;opacity:0;transform:scale(.985);transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}.gallery-lightbox[open]{opacity:1;transform:scale(1)}.gallery-lightbox::backdrop{background:transparent}.lightbox-shell{position:relative;display:grid;place-items:center;width:100%;height:100%;padding:28px 76px 24px}.lightbox-figure{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;height:100%;margin:0}.lightbox-figure img{display:block;max-width:100%;max-height:calc(100dvh - 104px);width:auto;height:auto;border-radius:10px;object-fit:contain;box-shadow:0 18px 60px #0008}.lightbox-figure figcaption{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;padding-top:13px;color:#d4d4d8}.lightbox-figure figcaption div{display:flex;align-items:baseline;gap:12px}.lightbox-figure figcaption strong{color:#fff;font-size:14px}.lightbox-figure figcaption span{font-size:12px}.lightbox-counter{margin-left:auto}.lightbox-control{position:absolute;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff25;border-radius:50%;background:#ffffff16;color:#fff;backdrop-filter:blur(12px);transition:background .14s,transform .14s}.lightbox-control:hover{background:#ffffff2b}.lightbox-control:active{transform:scale(.94)}.lightbox-control:focus-visible{outline:2px solid #fff;outline-offset:3px}.lightbox-control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.lightbox-close{top:22px;right:22px}.lightbox-previous{left:20px;top:50%;transform:translateY(-50%)}.lightbox-next{right:20px;top:50%;transform:translateY(-50%)}.lightbox-previous:active,.lightbox-next:active{transform:translateY(-50%) scale(.94)}
.gallery-meta{display:grid;justify-items:end}.gallery-meta>span{grid-area:1/1;white-space:nowrap}.gallery-date-only{opacity:0}.gallery-full-date{color:#ff8a32!important;font-family:"DSEG7-Classic",monospace!important;font-size:13px!important;font-weight:400;line-height:1;letter-spacing:.08em;font-variant-numeric:tabular-nums;text-shadow:0 0 1px #ffd0a1,0 0 4px #ff6400a8!important;opacity:0;transform:translateY(3px);transition:opacity .12s ease,transform .12s ease}.gallery-item:hover .gallery-full-date,.gallery-photo-button:focus-visible+figcaption .gallery-full-date{opacity:.96;transform:translateY(0)}
@starting-style{.gallery-lightbox[open]{opacity:0;transform:scale(.985)}}
@media(max-width:850px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.gallery-heading{align-items:flex-start}.gallery-grid{grid-template-columns:1fr}.gallery-item figcaption{gap:8px}.lightbox-shell{padding:68px 14px 18px}.lightbox-figure img{max-height:calc(100dvh - 150px)}.lightbox-figure figcaption{align-items:flex-start;gap:8px}.lightbox-figure figcaption div{flex-direction:column;gap:3px}.lightbox-previous{left:12px}.lightbox-next{right:12px}.lightbox-control{width:40px;height:40px}.lightbox-close{top:14px;right:14px}}

/* Softer gallery overlay */
.gallery-lightbox{background:rgba(24,24,27,.72);backdrop-filter:blur(10px)}

/* Reference palette: lavender, lime, sky and mint teal */
.intro .stat{border-color:#18181b0d;color:#18181b;box-shadow:0 10px 24px #27272a12}.intro .stat:nth-child(1){border-color:#18181b0d;background:#9eddd3}.intro .stat:nth-child(2){border-color:#18181b0d;background:#a9c9f2}.intro .stat:nth-child(3){border-color:#18181b0d;background:#d2ec91}.intro .stat:nth-child(4){border-color:#18181b0d;background:#b8a1f2}.intro .stat .stat-label,.intro .stat .stat-value{color:#18181b}.intro .stat .stat-label span,.intro .stat .stat-foot,.intro .stat .stat-value small{color:#3f3f46c9}.intro .stat .stat-delta,.intro .stat .stat-delta.neutral,.intro .stat .stat-delta.sleep{background:#ffffff70;color:#27272a}


/* Editable design language */
.wrap[data-view="settings"] .period-pill{visibility:hidden}
.settings-section{margin-top:20px}.settings-card{max-width:980px}.settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.settings-actions{display:flex;gap:8px;flex:none}.settings-button{min-height:38px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:600}.settings-button.primary{border-color:var(--accent);background:var(--accent);color:#fff}.settings-button:hover{filter:brightness(.97)}.settings-button:focus-visible,.theme-form input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.theme-form{display:grid;gap:22px;margin-top:28px}.theme-form fieldset{margin:0;padding:0;border:0}.theme-form legend{margin-bottom:12px;color:var(--ink);font-size:14px;font-weight:650}.theme-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-control-grid label{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:66px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 92%,var(--page))}.theme-control-grid label span{color:var(--ink);font-size:13px;font-weight:550}.theme-control-grid label small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:450}.theme-control-grid input[type="color"]{width:38px;height:38px;flex:none;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}.theme-control-grid input[type="color"]::-webkit-color-swatch-wrapper{padding:0}.theme-control-grid input[type="color"]::-webkit-color-swatch{border:0;border-radius:7px}.theme-preview{display:grid;grid-template-columns:repeat(5,1fr);height:48px;overflow:hidden;border-radius:12px}.theme-preview i{background:var(--swatch)}.theme-status{min-height:20px;margin:0;color:var(--muted);font-size:12px}
.side-nav button.active{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.rhythm-day.active{background:transparent;color:var(--accent)}
@media(max-width:850px){.settings-heading{display:grid}.settings-actions{order:2}.theme-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.settings-actions{display:grid;grid-template-columns:1fr 1fr}.theme-control-grid{grid-template-columns:1fr}.theme-preview{height:40px}}

/* Automatically recomputed growth analysis */
.analysis-section{margin:16px 0}.analysis-card{overflow:hidden}.analysis-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.analysis-date{flex:none;padding:6px 10px;border-radius:8px;background:var(--surface-soft);color:var(--muted);font-size:12px}.analysis-overview{display:grid;grid-template-columns:92px 1fr;gap:18px;align-items:start;margin-top:22px;padding:18px 20px;border-radius:14px;background:color-mix(in srgb,var(--data-primary) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--data-primary) 18%,var(--line))}.analysis-overview>span{color:var(--data-primary);font-size:12px;font-weight:700}.analysis-overview p{margin:0;color:var(--ink);font-size:15px;line-height:1.75}.analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.analysis-item{min-height:154px;padding:18px;border:1px solid transparent;border-radius:14px}.analysis-item>span{display:block;color:#3f3f46;font-size:12px;font-weight:650}.analysis-item strong{display:block;margin-top:15px;color:#18181b;font-size:20px;line-height:1.2;letter-spacing:-.025em}.analysis-item p{margin:10px 0 0;color:#52525b;font-size:12px;line-height:1.65}.analysis-item.mint{background:#9eddd3}.analysis-item.lime{background:#d2ec91}.analysis-item.sky{background:#a9c9f2}.analysis-item.violet{background:#b8a1f2}.analysis-foot{margin:14px 2px 0;color:var(--muted);font-size:11px;line-height:1.6}
@media(max-width:1050px){.analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.analysis-heading{display:grid;gap:10px}.analysis-date{width:max-content}.analysis-overview{grid-template-columns:1fr;gap:8px;padding:16px}.analysis-overview p{font-size:13px}.analysis-grid{grid-template-columns:1fr}.analysis-item{min-height:132px}}

/* Analysis v2: decisions, actions and escalation cues */
.analysis-overview{grid-template-columns:minmax(0,1fr) 240px;gap:24px;align-items:stretch}.analysis-overview>div:first-child>span,.analysis-priority span{display:block;color:var(--data-primary);font-size:11px;font-weight:700;letter-spacing:.04em}.analysis-overview h3{margin:7px 0 7px;color:var(--ink);font-size:20px;line-height:1.4;letter-spacing:-.02em}.analysis-priority{display:flex;flex-direction:column;justify-content:center;padding:16px;border-radius:11px;background:color-mix(in srgb,var(--data-warning) 16%,var(--surface))}.analysis-priority span{color:#9a5b00}.analysis-priority strong{margin-top:9px;color:var(--ink);font-size:14px;line-height:1.65}.analysis-item{position:relative;min-height:210px}.analysis-item .analysis-status{display:inline-flex;width:max-content;margin-bottom:14px;padding:4px 7px;border-radius:999px;background:#ffffff80;color:#3f3f46;font-size:10px;font-weight:650}.analysis-item .analysis-status+span{font-size:12px;font-weight:650}.analysis-item strong{font-size:22px}.analysis-item p{font-size:12px;line-height:1.75}.analysis-guidance{display:grid;grid-template-columns:1.25fr 1fr;gap:14px;margin-top:14px}.analysis-guidance section{padding:19px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.analysis-guidance h3{margin:0;color:var(--ink);font-size:14px}.analysis-guidance ol,.analysis-guidance ul{display:grid;gap:10px;margin:14px 0 0;padding-left:21px;color:#52525b;font-size:12px;line-height:1.7}.analysis-guidance li::marker{color:var(--data-primary);font-weight:700}.analysis-guidance section:last-child li::marker{color:var(--data-warning)}.analysis-sources{margin-top:14px!important}.analysis-source-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.analysis-source-links a{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted);font-size:11px;text-decoration:none}.analysis-source-links a:hover{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}.analysis-foot{margin-top:12px}
@media(max-width:1050px){.analysis-overview{grid-template-columns:1fr}.analysis-guidance{grid-template-columns:1fr}.analysis-item{min-height:190px}}
@media(max-width:570px){.analysis-overview{grid-template-columns:1fr}.analysis-overview h3{font-size:17px}.analysis-priority{padding:14px}.analysis-item{min-height:0}.analysis-guidance section{padding:16px}.analysis-guidance ol,.analysis-guidance ul{font-size:12px}}

/* Growth chart: teal trend, fade and hover crosshair */
#growth-chart .line{stroke:#16aeb4;stroke-width:3.5}#growth-chart .growth-area{fill:url(#growth-area-gradient);pointer-events:none}#growth-chart .dot{fill:#16aeb4;stroke:#fff}#growth-chart .growth-point:hover .dot,#growth-chart .growth-point:focus .dot{fill:#087f89}#growth-chart .growth-guide{opacity:0;stroke:#16aeb4;stroke-width:1.5;stroke-dasharray:0;pointer-events:none;transition:opacity .1s}#growth-chart .growth-point:hover .growth-guide,#growth-chart .growth-point:focus .growth-guide{opacity:.5}#growth-chart .growth-rate rect{fill:#d9f7ee}#growth-chart .growth-rate text{fill:#078c75!important;font-size:13px!important;font-weight:750}

/* Jaundice trend: three measured locations with an instant crosshair. */
.jaundice-section{margin-top:16px}.jaundice-card{overflow:hidden}.jaundice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:28px}.jaundice-latest{display:flex;flex:none;gap:34px;padding-top:2px}.jaundice-metric{display:grid;grid-template-columns:5px auto;gap:10px;align-items:stretch;min-width:70px}.jaundice-metric i{display:block;width:5px;min-height:58px;border-radius:99px;background:var(--series-color);box-shadow:0 0 8px color-mix(in srgb,var(--series-color) 35%,transparent)}.jaundice-metric span{color:var(--muted);font-size:13px}.jaundice-metric strong{display:block;margin-top:4px;color:var(--ink);font-size:27px;line-height:1;font-weight:650;letter-spacing:-.025em}.jaundice-chart-scroll{margin-top:22px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#d4d4d8 transparent}.jaundice-chart-scroll::-webkit-scrollbar{height:7px}.jaundice-chart-scroll::-webkit-scrollbar-thumb{border-radius:999px;background:#d4d4d8}.jaundice-chart{min-width:820px}.jaundice-chart svg{display:block;width:100%;height:auto;overflow:visible;font-family:inherit}.jaundice-gridline{stroke:#e4e4e7;stroke-width:1;stroke-dasharray:5 8}.jaundice-axis-label,.jaundice-date-label{fill:#8a8a93;font-size:12px}.jaundice-line{fill:none;stroke:var(--series-color);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.jaundice-point{fill:var(--series-color);stroke:#fff;stroke-width:2;pointer-events:none}.jaundice-hit{fill:transparent;cursor:pointer}.jaundice-crosshair{opacity:0;stroke:#71717a;stroke-width:1.4;pointer-events:none}.jaundice-tooltip{opacity:0;pointer-events:none}.jaundice-tooltip rect{fill:#fff;stroke:#e4e4e7;stroke-width:1;filter:drop-shadow(0 7px 12px #18181b1f)}.jaundice-tooltip text{fill:var(--ink);font-size:13px;font-weight:650}.jaundice-tooltip-values{font-size:12px!important}.jaundice-hover:hover .jaundice-crosshair,.jaundice-hover:hover .jaundice-tooltip,.jaundice-hover:focus .jaundice-crosshair,.jaundice-hover:focus .jaundice-tooltip{opacity:1}.jaundice-hover:focus{outline:none}.jaundice-note{margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.75}.event-tooltip{position:fixed;z-index:1200;max-width:min(320px,calc(100vw - 20px));padding:10px 13px;border-radius:10px;background:#18181b;color:#fff;font-size:14px;font-weight:650;line-height:1.45;box-shadow:0 10px 30px #18181b38;pointer-events:none;opacity:0;visibility:hidden}.event-tooltip.visible{opacity:1;visibility:visible}.overview-tabs{overflow-x:auto;scrollbar-width:none}.overview-tabs::-webkit-scrollbar{display:none}.overview-tabs button{white-space:nowrap}
@media(max-width:850px){.jaundice-heading{display:grid}.jaundice-latest{justify-content:flex-start}}
@media(max-width:570px){.jaundice-latest{width:100%;gap:20px;justify-content:space-between}.jaundice-metric{min-width:0}.jaundice-metric strong{font-size:24px}.jaundice-chart-scroll{margin-right:-16px;padding-right:16px}.jaundice-note{font-size:11px}}

/* Soft photo protection: masked backdrop blur fades upward beneath crisp text. */
.gallery-item figcaption::before{content:"";position:absolute;inset:-20px 0 0;z-index:-1;pointer-events:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.15) 30%,rgba(0,0,0,.65) 65%,#000 100%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.15) 30%,rgba(0,0,0,.65) 65%,#000 100%)}
.gallery-photo-button{position:relative}.gallery-slide{position:absolute;inset:0;opacity:0;transition:opacity .45s ease,transform .22s ease,filter .22s ease}.gallery-slide.active{opacity:1}@media(prefers-reduced-motion:reduce){.gallery-slide{transition:none}}

/* Tooltips float outside the scrolling grid and never widen a sleep lane. */
.sleep-block::after{display:none!important;content:none}.event-tooltip{width:max-content;box-sizing:border-box;overflow-wrap:anywhere}

.elimination-day:focus{outline:none}.elimination-day:focus-visible>rect:first-child{stroke:var(--data-urine,#71c4e3);stroke-width:1;rx:4}

.birth-age{display:inline-flex;align-items:baseline;gap:6px;margin:0 0 10px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:14px;line-height:1.4}.birth-age[hidden]{display:none}.birth-age strong{font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-.025em}.birth-age small{margin-left:6px;color:var(--muted);font-size:12px}

.gallery-item.cloud-photo .gallery-photo{object-fit:cover}.gallery-item.cloud-photo .gallery-photo-button:hover .gallery-photo,.gallery-item.cloud-photo .gallery-photo-button:focus-visible .gallery-photo{transform:none}
@font-face{font-family:DomiVoyage;src:url('/fonts/voyage-bold.otf') format('opentype');font-weight:700;font-display:swap}
.title{font-family:DomiVoyage,serif;letter-spacing:0}
