@font-face{
  font-family:"Domi Hero";
  src:url("/V3/fonts/brandon-grotesque-regular.otf") format("opentype");
  font-display:swap;
  font-style:normal;
  font-weight:400;
}
@font-face{font-family:"Domi Counter";src:url("/V3/fonts/manrope-variable.ttf") format("truetype");font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:"Inter Variable";src:url("/V3/fonts/inter-variable.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}
/* Domi 3.0 · quiet glass, warm light, little moments */
:root{--page:#eeefec;--surface:#fff;--surface-soft:#f4f5f1;--ink:#242820;--muted:#7a7f75;--line:#e5e7df;--accent:#464d35;--accent-soft:#e9eddf;--data-primary:#818f4b;--data-primary-soft:#c9d4ab;--data-violet:#9b89b4;--data-urine:#8ebec4;--data-warning:#cca56a;--shadow:0 8px 40px #30362604}
body{background:var(--page);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
body::before{content:"";position:fixed;z-index:-1;inset:0;background:radial-gradient(ellipse at 80% 0%,#faf8eaa8,transparent 45%),radial-gradient(ellipse at 38% 45%,#e5eae6aa,transparent 58%),linear-gradient(140deg,#f1f2f0,#eaece8);pointer-events:none}
button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #626f38;outline-offset:4px}button{transition:background .2s,transform .2s,color .2s}button:active{transform:scale(.97)}
.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);gap:0;max-width:1660px;background:transparent;min-height:100vh;padding:18px 22px 0 18px}
.app-sidebar{top:18px;height:calc(100dvh - 36px);padding:27px 15px 20px;border:1px solid #ffffffd9;border-radius:30px;background:#ffffff69;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:inset 0 1px 0 #fff,0 12px 50px #30362603;z-index:20}
.brand{gap:11px;padding:0 9px;font-size:23px;font-weight:650;letter-spacing:-1px}.brand-avatar{width:42px;height:42px;flex-basis:42px;border:3px solid #fff;box-shadow:0 4px 12px #393f2c13}.brand small{margin-top:5px;font-size:7px;letter-spacing:1.4px;color:#8b9181}
.sidebar-label{display:flex;justify-content:space-between;margin:39px 13px 13px;font-size:10px;letter-spacing:1px;color:#9a9f91}.sidebar-label span{font-size:8px;letter-spacing:0}.side-nav{gap:5px}.side-nav button{position:relative;gap:12px;min-height:45px;padding:0 15px;border-radius:16px;font-size:12px;color:#777d6f;letter-spacing:.2px}.side-nav button:hover{background:#ffffffb0;color:#343a2a}.side-nav button.active{background:#292e24;color:#fbfcf8;box-shadow:0 5px 14px #2b342b12;font-weight:500}.side-nav button.active::after{content:"";position:absolute;right:15px;width:4px;height:4px;background:#d6e1a7;border-radius:50%}.nav-icon{width:18px;height:18px;flex-basis:18px;stroke-width:1.4}.side-nav button[data-view="jaundice"]{margin-top:19px}.side-nav button[data-view="jaundice"]::before{content:"";position:absolute;left:15px;right:15px;top:-11px;border-top:1px solid #dce0d580}
.sidebar-footer{margin-top:auto;padding:30px 12px 0}.journal-seal{display:inline-block;font-family:DomiVoyage,serif;font-size:34px;line-height:1;color:#8c9678}.sidebar-footer p{font-size:10px;color:#939987;letter-spacing:1px;margin:11px 0 17px}.sidebar-note{display:block;margin:0;padding:0;font-size:8px;color:#a2a795}.sidebar-note strong{display:block;font-size:9px;font-weight:400;color:#8d9581}
.wrap{max-width:1450px;margin:0;align-self:start;padding:0 12px 40px 38px;min-width:0}.journal-topbar{display:flex;align-items:center;justify-content:space-between;min-height:58px;gap:16px;padding-bottom:8px;border-bottom:1px solid #d7dbd05c}.journal-crumb{display:flex;align-items:center;gap:9px;font-size:8px;letter-spacing:1.8px;color:#818875;white-space:nowrap}.crumb-dot{width:5px;height:5px;border-radius:50%;background:#738150}.crumb-divider{padding:0 5px;color:#b8beac}.journal-crumb #current-view-label{font-size:10px;letter-spacing:.4px;color:#49503f}.topbar-actions{display:flex;align-items:center;gap:20px}.preview-badge{color:#8b927e;font-size:9px;white-space:nowrap}.source-pill{gap:10px;min-height:34px;padding:7px 12px;background:#ffffff65;border:1px solid #fff;border-radius:20px;box-shadow:none;font-size:10px;color:#5a624f}.source-pill svg,.stat-top svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.source-pill svg{width:13px;height:13px}.source-pill:hover{background:#fff}
.top{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:20px;padding:36px 4px 35px;margin:0;min-height:250px}.hero-copy{min-width:0}.eyebrow{font-size:8px;letter-spacing:2px;font-weight:500;color:#8b947e}.title{font-family:"Inter Variable",Arial,sans-serif;font-size:clamp(33px,3.8vw,62px);line-height:1.12;letter-spacing:-.7px;margin:14px 0 14px;max-width:820px;font-weight:700}.title-dot{color:#929e61}.hero-note{margin:0 0 15px;font-size:14px;letter-spacing:2px;color:#59634d;font-weight:400}.sub{font-size:9px;color:#959d89;letter-spacing:.4px}.sub-dot{padding:0 9px}
.age-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:end;width:205px;height:180px;background:radial-gradient(ellipse at 70% 20%,#ffffffcc,#fafbf252 65%),linear-gradient(130deg,#e4eadbb0,#ffffff20);border:1px solid #ffffffe0;border-radius:50% 45% 46% 43%;box-shadow:inset 0 2px 12px #fff8,0 18px 40px #64704b05;isolation:isolate}.birth-age{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0;padding:0;border:0;border-radius:0;background:none;color:#495335;line-height:1}.birth-age[hidden]{display:none}.age-kicker{font-size:7px;letter-spacing:1.5px;color:#95a080}.age-main{display:flex;align-items:baseline;gap:6px;margin:8px 0 4px}.age-main strong{font-size:65px;font-weight:300;letter-spacing:-4px;line-height:1}.age-main>span{font-size:11px;color:#8c9876}.birth-age small{margin:3px 0 0;font-size:9px;color:#8e997d}.age-caption{font-size:8px;letter-spacing:.5px;color:#9ba58a;margin-top:15px}.age-orbit{position:absolute;border:1px solid #e0e6d890;inset:6px -10px;z-index:-1;border-radius:50%;transform:rotate(-25deg)}.orbit-two{inset:-10px 10px;transform:rotate(25deg);border-color:#ffffff80}.age-star{position:absolute;right:6px;top:14px;font-size:33px;color:#a2af7a}
.section-context{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 19px}.section-context>div{display:flex;align-items:baseline;gap:11px}.section-index{font-size:9px;color:#a2aa96;font-family:ui-monospace,monospace}.section-context h2{margin:0;font-size:16px;font-weight:500;letter-spacing:.6px}.view-subtitle{font-size:9px;color:#9aA28d;letter-spacing:.4px}.update-label{display:flex;align-items:center;gap:6px;font-size:9px;color:#929b84;white-space:nowrap}.update-label>span:first-child{width:4px;height:4px;background:#90a06d;border-radius:50%}
.intro{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.intro .stat{position:relative;display:flex;flex-direction:column;gap:0;min-height:239px;padding:21px 22px 17px;border-radius:30px;border:1px solid #ffffffa0;color:#2e3625;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:inset 0 1px 1px #ffffff9c,0 10px 30px #42552806;isolation:isolate;overflow:hidden}.intro .stat::before{content:"";position:absolute;z-index:-1;width:180px;height:140px;right:-60px;bottom:-35px;border-radius:50%;filter:blur(23px);opacity:.65;background:var(--glow)}.intro .stat::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(130deg,#ffffff52,transparent 60%);pointer-events:none}.intro .stat:nth-child(1){--glow:#d8f36c;background:linear-gradient(145deg,#e0e8bbcc,#c1cf8aaa 65%,#dceba88a);border-color:#fff9}.intro .stat:nth-child(2){--glow:#f3d5be;background:linear-gradient(140deg,#e8cec6aa,#dcaaa399 65%,#edd1a7aa);border-color:#fff9}.intro .stat:nth-child(3){--glow:#caeaee;background:linear-gradient(140deg,#d5e6e3cc,#a8c8c6a6 65%,#c0dfd78c);border-color:#fff9}.intro .stat:nth-child(4){--glow:#e3cbf5;background:linear-gradient(140deg,#e1dbeacc,#b8acd3aa 70%,#d2c4e4b0);border-color:#fff9}
.stat-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1;margin-bottom:18px}.stat-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid #ffffffa8;border-radius:50%;color:#5c654b;background:#ffffff14}.stat-open{display:grid;place-items:center;width:29px;height:29px;border:0;border-radius:50%;background:#ffffff32;color:#555e49}.stat-open:hover{background:#fff9}.intro .stat .stat-label{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px;white-space:normal;font-size:11px;font-weight:450;color:#48513b;letter-spacing:.3px}.intro .stat .stat-label span{color:#626b54;font-size:8px}.stat-metric{height:auto;gap:8px;align-items:baseline;justify-content:flex-start;margin-top:12px;flex-wrap:wrap}.intro .stat .stat-value{font-size:34px;font-weight:400;line-height:1.1;letter-spacing:-1.5px;color:#303927}.intro .stat .stat-value small{font-size:11px;font-weight:400;color:#58644a;letter-spacing:0;margin-left:5px}.intro .stat .stat-delta,.intro .stat .stat-delta.neutral,.intro .stat .stat-delta.sleep{font-size:8px;font-weight:400;border-radius:20px;color:#5c674d;background:#ffffff4d;padding:4px 7px}.intro .stat .stat-foot{font-size:8px;line-height:1.5;color:#788063;margin-top:10px;letter-spacing:.3px}.stat-chart{height:27px;margin-top:auto;padding-top:12px;display:flex;align-items:flex-end;gap:4px;opacity:.5;min-height:32px}.stat-chart i{height:var(--bar);max-height:28px;flex:1;border-radius:2px;background:#fff9}.stat-chart svg{display:block;width:100%;height:25px;overflow:visible}.stat-chart path{fill:none;stroke:#606e37;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.stat-chart circle{fill:#697543;stroke:#fff8;stroke-width:2}
.grid,.rhythm,.bottom-grid{gap:22px}.grid{grid-template-columns:1.15fr 1fr}.card{border-radius:34px;padding:27px 28px;border:1px solid #ffffffdc;background:#ffffffd9;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);box-shadow:inset 0 1px 0 #fff,0 10px 40px #39462c03}.card h2{font-size:19px;letter-spacing:.3px;font-weight:500;color:#3c4332}.card-kicker{font-size:7px;letter-spacing:1.7px;margin-bottom:9px;color:#a1aa92;font-weight:500}.caption{font-size:10px;margin-top:9px;line-height:1.7;color:#929b83}.card-head{gap:10px}.switch{background:#f0f2eb9c;border:1px solid #e5e9dd8c;border-radius:18px;padding:3px;gap:1px;flex:none}.switch button{font-size:10px;min-height:27px;padding:4px 11px;border-radius:14px;color:#969e8b}.switch button.active,.switch button[data-metric].active{color:#f7f9f0;background:#404833;box-shadow:0 3px 6px #26351c0a}.switch button:hover:not(.active){background:#e5e9dc}.growth-chart-shell{margin-top:24px}.growth-rate-fixed{font-size:10px;min-width:74px;padding:4px 9px;background:#e9efdc;color:#73844e;border-radius:14px;line-height:17px;box-shadow:none}.chart-wrap text{fill:#969f89!important}.chart-wrap .axis,.elimination-chart .gridline{stroke:#edf0e7}.chart-wrap .bar.center{fill:#a9b982}.chart-wrap .bar.hospital{fill:#d9e0cd}.chart-wrap .bar.estimate{fill:#c7d5b5}#growth-chart .line,#growth-chart .growth-guide{stroke:#8b9f58}#growth-chart .dot{fill:#8b9f58}#growth-chart .growth-point:hover .dot{fill:#576b2f}.chart-wrap .point-tooltip text{fill:#fff!important}.chart-wrap .bar+text{fill:#8a947a!important}.feed-source-legend{margin-top:19px;color:#98a18b;font-size:9px;gap:12px}.feed-source-legend i{background:#d4ddc5}.feed-source-legend .center i{background:#a9b982}.feed-source-legend .estimated i{background:#c7d5b5}.card details{margin-top:17px;padding-top:9px;border-top:1px solid #e9ede18a}.card details>summary{font-size:9px;color:#9aa48c;min-height:24px}.chart-summary,.note-block{background:#f2f5ec;border-radius:18px;color:#717d60}.rhythm-note,.event-context,.feed-note{font-size:10px;color:#99a28c}.rhythm,.analysis-section,.bottom,.birth-card{margin-top:22px}.analysis-overview,.analysis-guidance section,.analysis-item{border-radius:24px}.analysis-item.mint{background:linear-gradient(140deg,#dfebd6,#c2d2bb)}.analysis-item.sky{background:linear-gradient(140deg,#dfeceb,#bdd9d6)}.analysis-item.lime{background:linear-gradient(140deg,#e7ebcf,#d0dba7)}.analysis-item.violet{background:linear-gradient(140deg,#e8e1ee,#c9bbdb)}.analysis-item{border:1px solid #fff8;box-shadow:inset 0 1px 0 #fff9}.analysis-overview{border-color:#e6eadb;background:#f2f5ed}.analysis-overview>div:first-child>span{color:#7e8e5c}.analysis-priority{border-radius:20px;background:#ede8d98c}.analysis-guidance section{background:#f6f7f2;border-color:#ecede5}.analysis-date,.chip,.birth-data{border-radius:18px;background:#f3f5ee;border-color:#e9eddf}.birth-grid{gap:16px}.birth-data{padding:24px}.links a,.theme-control-grid label{border-radius:18px;border-color:#e6eadf;background:#f8faf4}.settings-button{border-radius:20px}.jaundice-latest{gap:25px}
.moments-section{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-top:24px}.memory-card{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:300px;padding:28px;border-radius:34px;border:1px solid #fff;background:#ffffff8c;backdrop-filter:blur(25px);overflow:hidden}.memory-copy{display:flex;flex-direction:column;align-items:flex-start;padding:9px 0 0 3px}.memory-copy h2,.rhythm-invite h2{font-size:23px;line-height:1.6;font-weight:450;letter-spacing:1px;color:#525c43;margin:12px 0 0}.memory-copy p,.rhythm-invite p{font-size:10px;line-height:1.9;letter-spacing:.3px;color:#9aa58b;margin:15px 0 22px}.round-link{display:flex;align-items:center;gap:25px;margin-top:auto;padding:0;border:0;background:none;color:#6b7858;font-size:10px}.round-link>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dde4d0;border-radius:50%;font-size:17px}.round-link:hover>span{background:#e9eedf}.memory-photo-wrap{position:relative;min-height:250px;border-radius:90px 90px 24px 24px;overflow:hidden;transform:rotate(3deg);background:#e2e7db;box-shadow:0 5px 24px #37492a0b}.memory-photo-wrap img{width:100%;height:100%;max-height:280px;object-fit:cover;display:block}.moment-day{position:absolute;bottom:14px;left:14px;padding:7px 12px;border:1px solid #ffffff60;background:#ffffff85;backdrop-filter:blur(14px);border-radius:20px;font-size:9px;color:#4c5640}.photo-corner{position:absolute;right:12px;top:12px;color:#e3eac9;font-size:30px}.rhythm-invite{position:relative;padding:30px 32px;border:1px solid #fff9;border-radius:34px;background:radial-gradient(ellipse at 95% 95%,#d8e6baaa,transparent 70%),linear-gradient(145deg,#e4e9ddaa,#e3e7dccc);display:flex;flex-direction:column;overflow:hidden;backdrop-filter:blur(20px)}.invite-header{display:flex;justify-content:space-between;align-items:center}.invite-moon{font-size:29px;color:#99a880;line-height:1}.rhythm-invite h2{font-size:24px;margin:4px 0 0}.rhythm-invite p{margin:12px 0}.rhythm-illustration{position:absolute;right:30px;top:117px;width:115px;height:100px;display:flex;gap:4px;align-items:center;opacity:.4;transform:rotate(-10deg)}.rhythm-illustration i{display:block;width:4px;height:36px;border-radius:8px;background:#a2b57a}.rhythm-illustration i:nth-child(3n){height:80px}.rhythm-illustration i:nth-child(2n){height:54px}.rhythm-illustration i:nth-child(4n){height:23px}.rhythm-invite .round-link{margin-top:14px;justify-content:space-between}
.gallery-section .card,.fullmoon-section .card{background:transparent;border:0;padding:8px 0;box-shadow:none;backdrop-filter:none}.gallery-heading{padding:0 4px 14px}.gallery-grid{gap:18px}.gallery-item{border-radius:26px;overflow:hidden;box-shadow:0 4px 20px #30382005}.gallery-photo-button{border-radius:26px}.gallery-item figcaption{padding:26px 18px 16px}.gallery-item figcaption strong{font-size:12px;font-weight:400;letter-spacing:.4px}.gallery-count{border-radius:20px;border:1px solid #fff;background:#ffffff70;color:#8a947c;font-size:10px;padding:8px 13px}.gallery-lightbox{background:#282f24b8;backdrop-filter:blur(25px)}.lightbox-figure img{border-radius:18px}.lightbox-control{border-color:#ffffff50}.lightbox-download{color:#f6f8ef}.event-tooltip{background:#3e4732;border-radius:16px;font-weight:450}.rhythm-y-axis{background:#fafbf7;color:#9aa48b}.rhythm-day.active{color:#657743}.rhythm-track{border-color:#e9eddf}.elimination-chart .axis-label{fill:#969f89}
footer{display:flex;align-items:center;margin:26px 0 0;padding:19px 4px 0;border-top:1px solid #d6ddcb73;font-size:8px;color:#a1aa92;letter-spacing:.2px}
@media(min-width:1500px){.wrap{padding-left:52px}.top{padding:48px 5px 48px}.intro .stat{min-height:255px;padding:25px}.intro .stat .stat-value{font-size:39px}.title{font-size:61px}.section-context{margin-bottom:23px}.intro{gap:20px;margin-bottom:30px}}
@media(max-width:1150px) and (min-width:851px){.app-shell{grid-template-columns:180px minmax(0,1fr);padding:12px}.app-sidebar{top:12px;height:calc(100dvh - 24px);padding:24px 10px}.brand{font-size:21px;gap:8px;padding:0 4px}.brand small{font-size:6px;letter-spacing:1px}.brand-avatar{width:35px;height:35px;flex-basis:35px}.wrap{padding:0 4px 30px 24px}.top{grid-template-columns:1fr 150px}.title{font-size:36px}.age-card{width:145px;height:145px}.age-main strong{font-size:51px}.age-caption{font-size:7px}.age-star{font-size:24px}.intro{gap:10px}.intro .stat{padding:17px 15px;min-height:230px;border-radius:25px}.intro .stat .stat-value{font-size:29px}.stat-label span{display:block}.stat-top{margin-bottom:16px}.card{padding:23px;border-radius:29px}.view-subtitle{display:none}.grid{grid-template-columns:1fr}.moments-section{grid-template-columns:1.25fr 1fr}.memory-card{grid-template-columns:1fr;padding:23px}.memory-photo-wrap{display:none}.rhythm-invite{padding:25px}.journal-crumb{letter-spacing:1px;font-size:7px}.topbar-actions{gap:10px}}
@media(max-width:850px){.app-shell{display:block;padding:0}.app-sidebar{position:sticky;top:0;display:block;height:auto;padding:14px 22px 11px;border-radius:0;border:0;border-bottom:1px solid #ffffffc4;background:#eef1e7bb;backdrop-filter:blur(30px);z-index:30}.brand{font-size:21px;gap:9px;padding:0}.brand-avatar{width:31px;height:31px;flex-basis:31px}.brand small{font-size:6px;letter-spacing:1.1px;margin-top:3px}.sidebar-label,.sidebar-footer{display:none}.side-nav{display:flex;gap:6px;margin-top:13px;padding:1px 0 2px;overflow-x:auto;scrollbar-width:none}.side-nav button{flex-shrink:0;min-height:34px;padding:0 12px;border-radius:20px;font-size:10px;gap:7px}.side-nav button[data-view="jaundice"]{margin:0}.side-nav button[data-view="jaundice"]::before,.side-nav button.active::after{display:none}.nav-icon{display:block;width:14px;height:14px;flex-basis:14px}.wrap{padding:0 24px 28px}.journal-topbar{min-height:50px}.topbar-actions{gap:12px}.journal-crumb{font-size:7px;letter-spacing:1.2px}.preview-badge{font-size:8px}.source-pill{font-size:9px;min-height:29px;padding:5px 10px}.top{grid-template-columns:minmax(0,1fr) 160px;min-height:232px;padding:30px 0}.title{font-size:39px;max-width:480px}.hero-note{font-size:12px;letter-spacing:1px}.sub{font-size:8px}.age-card{width:153px;height:153px}.age-main strong{font-size:55px}.age-caption{font-size:7px}.age-star{font-size:27px}.intro{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.intro .stat:first-child{grid-column:auto}.intro .stat{min-height:225px;padding:18px 15px;border-radius:26px}.intro .stat .stat-value{font-size:29px}.intro .stat .stat-label{font-size:10px}.intro .stat .stat-label span{font-size:7px}.stat-top{margin-bottom:17px}.stat-icon{width:30px;height:30px}.stat-top svg{width:16px;height:16px}.stat-chart{height:25px}.intro .stat .stat-foot{font-size:7px}.grid,.rhythm,.bottom-grid{grid-template-columns:1fr}.card{padding:26px;border-radius:30px}.view-subtitle{display:none}.section-context{margin:4px 0 18px}.moments-section{grid-template-columns:1.4fr 1fr}.memory-card{grid-template-columns:1fr;padding:25px}.memory-photo-wrap{display:none}.rhythm-invite{padding:25px}.memory-copy h2,.rhythm-invite h2{font-size:22px}}
@media(max-width:570px){.app-sidebar{padding:12px 18px 9px}.wrap{padding:0 17px 28px}.journal-topbar{padding:0;min-height:43px}.journal-crumb{font-size:6px;letter-spacing:1px;gap:6px}.crumb-divider{padding:0}.journal-crumb #current-view-label{font-size:8px}.source-pill{display:none}.preview-badge{font-size:7px}.top{grid-template-columns:minmax(0,1fr) 112px;gap:6px;min-height:205px;padding:28px 0}.eyebrow{font-size:5.5px;letter-spacing:1.2px}.title{font-size:33px;line-height:1.05;max-width:230px;letter-spacing:-.6px;margin:12px 0 12px}.hero-note{font-size:9px;letter-spacing:.7px;margin-bottom:9px}.sub{font-size:6px;line-height:1.8;max-width:220px;letter-spacing:0}.sub-dot{padding:0 2px}.age-card{width:110px;height:127px;margin-right:2px;border-radius:48%;background:radial-gradient(ellipse at 70% 20%,#ffffffcc,#fafbf252 65%),linear-gradient(130deg,#e4eadbb0,#ffffff20)}.age-orbit{inset:6px -5px}.orbit-two{inset:-5px 7px}.age-kicker{font-size:5px;letter-spacing:1px}.age-main{gap:3px;margin-top:7px}.age-main strong{font-size:43px;letter-spacing:-2px}.age-main>span{font-size:8px}.birth-age small{font-size:7px}.age-caption{margin-top:11px;font-size:5px;letter-spacing:0}.age-star{font-size:20px;top:4px;right:-1px}.section-context{margin:2px 0 15px;gap:8px}.section-context>div{gap:7px}.section-index{font-size:7px}.section-context h2{font-size:12px;letter-spacing:.3px}.update-label{font-size:7px;gap:4px}.intro{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.intro .stat,.intro .stat:nth-child(2),.intro .stat:nth-child(3){min-height:220px;padding:18px 18px 15px;border-radius:29px}.stat-top{margin-bottom:17px}.stat-icon{width:33px;height:33px}.stat-open{width:26px;height:26px}.intro .stat .stat-label{font-size:10px;gap:4px;line-height:1.5}.intro .stat .stat-label span{display:inline;font-size:7px;margin:0}.stat-metric{margin-top:10px;gap:7px}.intro .stat .stat-value{font-size:31px;letter-spacing:-1.3px}.intro .stat .stat-value small{font-size:10px;margin-left:3px}.intro .stat .stat-delta{font-size:7px;padding:3px 5px}.intro .stat .stat-foot{font-size:7px;margin-top:9px}.stat-chart{padding-top:8px;min-height:25px}.card{padding:23px 19px;border-radius:29px}.card h2{font-size:17px}.card-kicker{font-size:6px;letter-spacing:1.4px}.caption{font-size:9px;line-height:1.7}.card-head{display:flex;flex-wrap:wrap}.card-head .switch{margin-top:5px}.switch{width:auto;max-width:100%}.switch button{min-height:28px;font-size:9px;padding:4px 10px}.card-head>div:first-child{min-width:0}.grid,.rhythm,.bottom-grid{gap:20px}.growth-rate-fixed{font-size:8px;min-width:66px}.growth-chart-shell{margin-top:15px}#growth-chart,#feed-chart{height:260px}.growth-scroll-hint,.feed-scroll-hint{font-size:8px;color:#a2aa96}.card details>summary{font-size:8px}.moments-section{grid-template-columns:1fr;gap:17px;margin-top:20px}.memory-card{grid-template-columns:1fr 1fr;min-height:245px;padding:22px;gap:8px;border-radius:29px}.memory-photo-wrap{display:block;min-height:205px;border-radius:65px 65px 20px 20px}.memory-photo-wrap img{max-height:235px}.memory-copy{padding:0}.memory-copy h2{font-size:16px;line-height:1.7;letter-spacing:.5px;margin-top:11px}.memory-copy p{font-size:8px;line-height:1.8;margin-top:13px}.round-link{font-size:8px;gap:9px}.round-link>span{width:26px;height:26px;font-size:15px}.moment-day{left:9px;bottom:10px;font-size:7px;padding:6px 9px}.photo-corner{font-size:22px}.rhythm-invite{padding:24px;border-radius:29px;min-height:245px}.rhythm-invite h2{font-size:23px}.rhythm-invite p{font-size:9px}.rhythm-illustration{top:75px;right:35px}.rhythm-invite .round-link{margin-top:18px}.gallery-heading{padding-bottom:8px}.gallery-grid{gap:16px}.gallery-item,.gallery-photo-button{border-radius:25px}.gallery-section .card,.fullmoon-section .card{padding-top:5px}.gallery-count{font-size:8px}.analysis-overview h3{font-size:16px}.analysis-guidance section{border-radius:20px}.analysis-item{border-radius:23px}footer{font-size:7px;line-height:1.9}.birth-grid{gap:10px}.birth-data{padding:17px}.theme-control-grid label{border-radius:20px}}
/* Readable fine print and a contained sidebar surface. */
body{isolation:isolate;background:transparent;overflow-x:clip}.app-sidebar{backdrop-filter:none;-webkit-backdrop-filter:none;background:#ffffff75}.top{overflow:clip;padding-right:12px}.intro .stat .stat-foot{align-self:auto;color:#667257;font-size:10px}.intro .stat .stat-label{font-size:12px}.intro .stat .stat-label span{font-size:9px;color:#667157}.caption{font-size:12px;color:#7e8872}.card-kicker{font-size:9px;color:#8d987e}.sub{font-size:10px;color:#7e8970}.view-subtitle,.update-label{font-size:10px;color:#7f8a71}.preview-badge{font-size:10px}.journal-crumb{font-size:9px}.switch button{font-size:11px}.card details>summary{font-size:11px;color:#839073}.feed-source-legend{font-size:10px}.memory-copy p,.rhythm-invite p{font-size:12px;color:#7d896d}.round-link{font-size:12px}.sidebar-note{font-size:9px}.sidebar-note strong{font-size:10px}.sidebar-footer p{font-size:11px;color:#828e71}.memory-copy .card-kicker,.rhythm-invite .card-kicker{font-size:8px}.stat-chart i{background:#ffffffbb}.topbar-actions{gap:16px}
@media(max-width:570px){.caption{font-size:11px}.card-kicker{font-size:8px}.intro .stat .stat-label{font-size:11px}.intro .stat .stat-label span{font-size:8px}.intro .stat .stat-foot{font-size:9px}.journal-crumb{font-size:7px;letter-spacing:.8px}.preview-badge{font-size:8px}.update-label{font-size:8px}.sub{font-size:8px;max-width:210px}.top{padding-right:4px}.memory-copy p{font-size:10px}.round-link{font-size:10px}.rhythm-invite p{font-size:11px}.switch button{font-size:10px}.card details>summary{font-size:10px}.feed-source-legend{font-size:9px}.side-nav button{font-size:11px;min-height:38px}.section-context h2{font-size:13px}}

/* Shared four-column bento grid: every half-width module shares the same seam. */
:root{--bento-gap:20px;--bento-radius:32px}
#dashboard-content{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--bento-gap)}
#dashboard-content>.intro,#dashboard-content>#growth,#dashboard-content>#v3-moments{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--bento-gap);margin:0}
#dashboard-content>#growth>.card,#dashboard-content>#v3-moments>article{grid-column:span 2;border-radius:var(--bento-radius)}
#dashboard-content>.intro .stat{border-radius:var(--bento-radius)}
#growth>.card{display:flex;flex-direction:column;min-width:0}

#growth .growth-chart-shell{height:264px;margin:0;padding-top:0}
#growth #growth-chart{height:264px;margin:0;aspect-ratio:auto}
#growth .growth-chart-meta{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;min-height:34px;color:var(--weight);font-size:12px}
#growth .growth-chart-meta > span{align-self:flex-start;padding-top:6px}
#growth .growth-chart-meta .growth-rate-fixed{position:static;min-width:0;padding:3px 10px;font-size:clamp(15px,1.5vw,19px);line-height:1.25;white-space:nowrap}
#growth #feed-chart{height:264px;margin:0;aspect-ratio:auto}
#growth>.card>details{margin-top:auto;padding-top:9px}
#growth>.card>details:not([open]){min-height:41px}
#v3-moments .memory-card{grid-template-columns:1fr 1fr;min-height:285px}
#v3-moments .memory-photo-wrap{display:block;min-height:225px;border-radius:24px;transform:none}
#v3-moments .memory-photo-wrap img{max-height:250px}
#v3-moments .memory-copy{min-width:0}
#v3-moments .memory-copy h2,#v3-moments .rhythm-invite h2{line-height:1.35;font-size:24px;letter-spacing:0}
#v3-moments .rhythm-invite .round-link{margin-top:auto}
/* Calendar: stable rectangular silhouette at all viewport sizes. */
.age-card{width:178px;height:196px;border-radius:22px;background:#ffffffa8;border:1px solid #fff;box-shadow:0 5px 0 -1px #e4e7de,0 9px 0 -2px #f8f9f3,0 16px 32px #38462c0a;justify-content:flex-start;padding:0 0 14px;overflow:visible}
.calendar-header{width:100%;height:44px;display:flex;align-items:center;justify-content:center;background:#e0e7d3a8;border-bottom:1px solid #d4ddc778;border-radius:21px 21px 0 0;font-size:11px;letter-spacing:1px;color:#65734e;flex-shrink:0}
.calendar-binding{position:absolute;top:-7px;width:6px;height:17px;border-radius:4px;background:#a6af94;border:1px solid #f8faf3;box-shadow:0 1px 2px #59644220;z-index:1}
.binding-left{left:37px}.binding-right{right:37px}
.age-card .birth-age{margin-top:13px}.age-kicker{font-size:9px;letter-spacing:1px;color:#7e886f}.age-card .age-main{margin:4px 0 0;gap:5px}.age-card .age-main strong{font-family:"Inter Variable",Arial,sans-serif;font-size:54px;letter-spacing:-3px;font-weight:400}.age-card .birth-age small{margin-top:4px;font-size:9px;color:#89937c}.age-card .age-caption{margin-top:10px;font-size:8px;color:#8b957e;letter-spacing:.3px}
/* Real gallery images diffuse beneath the original mint / blue / lime / violet palette. */
.intro .stat:nth-child(1){--stat-color:#9eddd3;--stat-tint:#a4e4d8b8;--stat-light:#e1fff26b;--photo-position:30% 55%;background:var(--stat-color)}
.intro .stat:nth-child(2){--stat-color:#a9c9f2;--stat-tint:#a2c9f5b8;--stat-light:#e4e8ff75;--photo-position:65% 40%;background:var(--stat-color)}
.intro .stat:nth-child(3){--stat-color:#d2ec91;--stat-tint:#d4ef8db8;--stat-light:#ffedb975;--photo-position:40% 70%;background:var(--stat-color)}
.intro .stat:nth-child(4){--stat-color:#b8a1f2;--stat-tint:#c2a9f2b8;--stat-light:#f6d5ee75;--photo-position:65% 55%;background:var(--stat-color)}
.intro .stat::before{inset:-35px;width:auto;height:auto;border-radius:0;background-image:var(--stat-photo);background-size:cover;background-position:var(--photo-position);filter:blur(25px) saturate(1.6);opacity:.72;transform:scale(1.15);z-index:-2}
.intro .stat::after{background:radial-gradient(ellipse at 10% 0%,#ffffff9c,transparent 60%),radial-gradient(ellipse at 90% 90%,var(--stat-light),transparent 65%),linear-gradient(var(--stat-tint),var(--stat-tint));z-index:-1}
.intro .stat .stat-label,.intro .stat .stat-value{color:#283c36}.intro .stat .stat-foot,.intro .stat .stat-label span{color:#4e665b}
@media(max-width:1150px){:root{--bento-gap:16px;--bento-radius:28px}.age-card{width:140px;height:175px}.calendar-header{height:37px;font-size:9px}.age-card .age-main strong{font-size:46px}.age-card .birth-age{margin-top:11px}#v3-moments .memory-card{padding:23px;gap:12px}#v3-moments .memory-copy h2,#v3-moments .rhythm-invite h2{font-size:21px}}
@media(max-width:850px){#dashboard-content>#growth>.card{grid-column:1/-1}#v3-moments .memory-card{grid-template-columns:1fr}#v3-moments .memory-photo-wrap{display:none}.age-card{width:145px;height:175px}}
@media(max-width:570px){:root{--bento-gap:14px;--bento-radius:28px}#dashboard-content,#dashboard-content>.intro,#dashboard-content>#growth,#dashboard-content>#v3-moments{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard-content>#v3-moments>article{grid-column:1/-1}#dashboard-content>.intro .stat:first-child{grid-column:auto}#v3-moments .memory-card{grid-template-columns:1fr 1fr;min-height:245px}#v3-moments .memory-photo-wrap{display:block;min-height:195px}#v3-moments .memory-copy h2{font-size:20px}.age-card{width:108px;height:149px;border-radius:18px;padding-bottom:10px;margin-right:0}.calendar-header{height:31px;border-radius:17px 17px 0 0;font-size:8px;letter-spacing:.4px}.binding-left{left:23px}.binding-right{right:23px}.calendar-binding{height:14px;top:-6px;width:5px}.age-card .birth-age{margin-top:8px}.age-kicker{font-size:7px}.age-card .age-main strong{font-size:38px;letter-spacing:-2px}.age-card .birth-age small{font-size:7px}.age-card .age-caption{margin-top:8px;font-size:6px}.title{letter-spacing:-1px}.intro .stat .stat-value{font-size:29px}#growth .growth-chart-shell,#growth #growth-chart,#growth #feed-chart{height:260px}}

/* Four semantic families: one palette per subject across cards, charts and controls. */
:root{--weight:#ed741d;--weight-soft:#ffebdb;--feeding:#b28b59;--feeding-soft:#f4eadd;--elimination:#97b84c;--elimination-soft:#edf4d8;--sleep:var(--data-violet,#9f7ad1);--sleep-soft:#eee5fa}
.intro .stat:nth-child(1){--module-color:var(--weight);--module-soft:var(--weight-soft)}
.intro .stat:nth-child(2){--module-color:var(--feeding);--module-soft:var(--feeding-soft)}
.intro .stat:nth-child(3){--module-color:var(--elimination);--module-soft:var(--elimination-soft)}
.intro .stat:nth-child(4){--module-color:var(--sleep);--module-soft:var(--sleep-soft)}
.stat-top .stat-open{width:32px;height:32px;background:#181a18;color:#fff;border:1px solid #ffffff18;box-shadow:0 3px 9px #0000000a}
.stat-top .stat-open:hover{background:#333633;color:#fff}
#dashboard-content>.intro .stat{min-height:288px}
.intro .stat .stat-chart{display:block;height:93px;min-height:93px;margin-top:auto;padding-top:16px;opacity:1}
.mini-plot{height:60px}.stat-chart .mini-plot svg{display:block;width:100%;height:60px;overflow:visible}
.stat-chart .mini-plot path{stroke:var(--module-color);stroke-width:1.7;fill:none}
.stat-chart .mini-plot circle{fill:var(--module-color);stroke:#ffffffaa;stroke-width:1}
.stat-chart .mini-axis{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-top:6px;font-size:7px;color:#43554e;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.stat-chart .mini-axis span:nth-child(2){opacity:.72;font-size:6.5px}
.stat-chart .mini-plot .matrix-base{fill:#ffffff38;stroke:none}
.stat-chart .mini-plot .matrix-active{fill:#fff;opacity:.86;stroke:none}
.stat-chart .mini-plot .matrix-latest{fill:#304b75;opacity:.9}
.stat:nth-child(3) .stat-chart .matrix-latest{fill:#5c702b}
.stat:nth-child(4) .stat-chart .matrix-latest{fill:#695085}
.stat-chart .mini-plot .matrix-missing{font-size:8px;fill:#586b7e}
.stat-chart g:focus{outline:none}.stat-chart g:focus-visible .matrix-base{stroke:var(--module-color);stroke-width:1}
#growth>.card:first-child{--module-color:var(--weight);--module-soft:var(--weight-soft)}
#growth>.card:nth-child(2){--module-color:var(--feeding);--module-soft:var(--feeding-soft)}
#growth .card-kicker{color:var(--module-color)}
#growth .switch{background:color-mix(in srgb,var(--module-soft) 48%,white);border-color:color-mix(in srgb,var(--module-color) 12%,white)}
#growth .switch button:not(.active):not(:hover){color:color-mix(in srgb,var(--module-color) 65%,#515762)}
#growth #growth-switch button:not(.active):not(:hover){color:#bd5410}
#growth .switch button:hover:not(.active){background:var(--module-soft);color:var(--module-color)}
#growth .switch button.active,#growth .switch button[data-metric].active{background:var(--module-color);color:white}
#growth .card details>summary{color:var(--module-color)}
#growth .chart-summary{background:var(--module-soft);color:color-mix(in srgb,var(--module-color) 65%,#26332f)}
#growth-chart .line,#growth-chart .growth-guide{stroke:var(--weight)}
#growth-chart .dot{fill:var(--weight)}
#growth-chart .growth-point:hover .dot,#growth-chart .growth-point:focus .dot{fill:color-mix(in srgb,var(--weight) 70%,#182d28)}
#growth .growth-rate-fixed{background:var(--weight-soft);color:var(--weight)}
#feed-chart .bar.center{fill:var(--feeding)}
#feed-chart .bar.hospital{fill:color-mix(in srgb,var(--feeding) 45%,white)}
#feed-chart .bar.estimate{fill:color-mix(in srgb,var(--feeding) 24%,white)}
#feed-chart .bar+text{fill:color-mix(in srgb,var(--feeding) 65%,#25394e)!important}
.feed-source-legend i{background:color-mix(in srgb,var(--feeding) 45%,white)}
.feed-source-legend .center i{background:var(--feeding)}
.feed-source-legend .estimated i{background:color-mix(in srgb,var(--feeding) 24%,white)}
.analysis-item.mint{background:linear-gradient(140deg,#e0f3ee,#9eddd3)}
.analysis-item.sky{background:linear-gradient(140deg,#e1eafa,#a9c9f2)}
.analysis-item.lime{background:linear-gradient(140deg,#f0f5dc,#d2ec91)}
.analysis-item.violet{background:linear-gradient(140deg,#eee8fa,#b8a1f2)}
#rhythm>.card:first-child{--module-color:var(--elimination);--module-soft:var(--elimination-soft)}
#rhythm>.card:nth-child(2){--module-color:var(--sleep);--module-soft:var(--sleep-soft)}
#rhythm .card h2{color:color-mix(in srgb,var(--module-color) 70%,#253326)}
#rhythm .chart-summary{background:var(--module-soft);color:var(--module-color)}
#rhythm .switch button.active,#rhythm .switch button[data-metric].active{background:var(--module-color);color:#fff}
.rhythm-invite{background:radial-gradient(ellipse at 90% 90%,#c8b7e455,transparent 70%),linear-gradient(140deg,#f4f0f7cc,#e7def2cc)}
.rhythm-invite h2,.rhythm-invite .round-link,.invite-moon{color:#806699}
.rhythm-invite .card-kicker{color:var(--sleep)}
.rhythm-illustration i{background:var(--sleep)}
@media(max-width:570px){#dashboard-content>.intro .stat{min-height:276px}.stat-chart .mini-axis{font-size:6px}.stat-chart .mini-axis span:nth-child(2){font-size:5.5px}.stat-top .stat-open{width:29px;height:29px}}
.intro .stat .stat-icon{color:color-mix(in srgb,var(--module-color) 65%,#263b32)}
.stat-chart .mini-axis{font-size:8px}.stat-chart .mini-axis span:nth-child(2){font-size:7px}
#growth-chart text{fill:#8b9c95!important}#feed-chart text{fill:#8795a8!important}
.feed-source-legend{color:#8795a8}
#rhythm>.card:nth-child(2):has(#rhythm-switch [data-metric="喂奶"].active){--module-color:var(--feeding);--module-soft:var(--feeding-soft)}
#rhythm>.card:nth-child(2):has(#rhythm-switch [data-metric="便便"].active),#rhythm>.card:nth-child(2):has(#rhythm-switch [data-metric="尿尿"].active){--module-color:var(--elimination);--module-soft:var(--elimination-soft)}
.event-mark:not(.stool):not(.urine){background:var(--feeding);box-shadow:0 0 0 1px var(--feeding)}
.event-item:not(.stool):not(.urine):not(.sleep){background:var(--feeding-soft);border-color:color-mix(in srgb,var(--feeding) 22%,white);color:color-mix(in srgb,var(--feeding) 75%,#34291e)}
.event-item.sleep{background:var(--sleep-soft);border-color:#dacbed;color:#80639e}
.event-item.urine{background:var(--elimination-soft);border-color:#dae7b7;color:#708e33}
.event-tooltip{background:#242824}
@media(max-width:570px){.stat-chart .mini-axis{font-size:7px}.stat-chart .mini-axis span:nth-child(2){font-size:6.5px}}

/* Compact optical dot fields: quiet texture and real relative trends, no repeated axes. */
#dashboard-content>.intro .stat{min-height:251px}
.intro .stat .stat-chart{height:58px;min-height:58px;padding-top:17px}
.stat-chart .mini-plot{height:38px}.stat-chart .mini-plot svg{height:38px}
.stat-chart .mini-axis{display:none}
.stat-chart .dot-field svg{overflow:visible}
.stat-chart .mini-plot .trend-dot{fill:color-mix(in srgb,var(--module-color) 23%,white);stroke:none}
.stat-chart .dot-field g:focus-visible .trend-dot{fill:var(--module-color);stroke:#fff9;stroke-width:.6;opacity:1!important}
@media(max-width:570px){#dashboard-content>.intro .stat{min-height:246px}}

/* Reference-led editorial greeting and a fine, unfilled measurement curve. */
.top{min-height:233px;padding-top:28px;padding-bottom:28px}
.hero-copy .eyebrow{font-size:8px;letter-spacing:1.6px;color:#98a095;margin-bottom:17px}
.hero-copy .title{font-family:"Inter Variable",Arial,sans-serif;font-size:clamp(48px,4vw,54px);font-weight:530;letter-spacing:-1.3px;line-height:1.15;margin:0 0 5px}
.hero-copy .hero-note{font-size:25px;line-height:1.35;letter-spacing:-.5px;color:#92998e;margin:0 0 21px;font-weight:400}
.hero-copy .sub{font-size:9px;color:#98a18f;letter-spacing:.2px}
#growth-chart .line{stroke:#657b74;stroke-width:1.65}
#growth-chart .dot{fill:#50665f;stroke:#fff;stroke-width:1.5}
#growth-chart .growth-point:hover .dot,#growth-chart .growth-point:focus .dot{fill:#50665f;stroke-width:1.5}
#growth-chart .axis{stroke:#f0f3ef}
.growth-selected-marker{pointer-events:none}
#growth-chart .selected-guide{stroke:#a1b9ae;stroke-width:1;stroke-dasharray:3 4}
#growth-chart .selected-triangle{fill:#5a7368}
#growth-chart .selected-halo{fill:#b6eddd33}
#growth-chart .selected-bubble{fill:#a1e4d0;stroke:#d0f0e5;stroke-width:1}
#growth-chart .selected-value{fill:#254d40!important;font-family:"Inter Variable",Arial,sans-serif;font-size:12px;font-weight:550}
#growth-chart .selected-unit{fill:#527c6b!important;font-size:7px;letter-spacing:.5px}
@media(max-width:850px){.hero-copy .title{font-size:31px}.hero-copy .hero-note{font-size:21px}}
@media(max-width:570px){.top{min-height:215px;padding-top:25px;padding-bottom:25px}.hero-copy .eyebrow{font-size:6px;letter-spacing:.9px;margin-bottom:13px}.hero-copy .title{font-size:29px;letter-spacing:-.9px}.hero-copy .hero-note{font-size:17px;line-height:1.45;letter-spacing:0;max-width:205px;margin-bottom:13px}.hero-copy .sub{font-size:7px;line-height:1.8;max-width:205px}}
#growth-chart .selected-value{font-size:12px!important}
#growth-chart .selected-unit{font-size:7px!important}

/* Give the weekly curve its own proportions; dot fields stay open and uncompressed. */
#dashboard-content>.intro .stat{min-height:280px}
.intro .stat .stat-chart{height:91px;min-height:91px;padding-top:13px;display:flex;flex-direction:column;justify-content:flex-end}
.stat-chart .weight-plot{height:78px}
.stat-chart .weight-plot svg{height:78px;max-height:none}
.stat-chart .dot-field{height:48px;margin-bottom:3px}
.stat-chart .dot-field svg{height:48px}
.hero-copy .title,.hero-copy .hero-note{font-family:"Domi Hero","Inter Variable",Arial,sans-serif;font-weight:400}
.hero-copy .title{letter-spacing:-1.1px}
.hero-copy .hero-note{letter-spacing:-.65px;font-size:24px}
@media(max-width:570px){#dashboard-content>.intro .stat{min-height:275px}.stat-chart .weight-plot,.stat-chart .weight-plot svg{height:78px}.stat-chart .dot-field,.stat-chart .dot-field svg{height:44px}.hero-copy .hero-note{font-size:17px;letter-spacing:-.4px}.hero-copy .sub{font-size:7px}}
/* Mobile identity shares the navigation row; the avatar remains a home button. */
@media(max-width:850px){
  .app-sidebar{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;padding:11px 18px}
  .app-sidebar .brand{width:34px;min-width:34px;height:38px;min-height:38px;padding:0;justify-content:center;border-radius:50%;background:none}
  .app-sidebar .brand>span{display:none}
  .app-sidebar .brand-avatar{width:32px;height:32px;flex-basis:32px;margin:0;border-width:2px}
  .app-sidebar .side-nav{min-width:0;margin:0;padding:1px 0;align-items:center}
}
/* Deeper photo-tinted summary surfaces with light foregrounds. */
.intro .stat:nth-child(1){--stat-color:#246a60;--stat-tint:#287b6fe0;--stat-light:#67e0bc28;background:var(--stat-color)}
.intro .stat:nth-child(2){--stat-color:#385881;--stat-tint:#42669cde;--stat-light:#8ab7ff28;background:var(--stat-color)}
.intro .stat:nth-child(3){--stat-color:#53652e;--stat-tint:#607a31e0;--stat-light:#d0ed7428;background:var(--stat-color)}
.intro .stat:nth-child(4){--stat-color:#624575;--stat-tint:#77518fde;--stat-light:#d9a9ed28;background:var(--stat-color)}
.intro .stat::after{background:radial-gradient(ellipse at 10% 0%,#ffffff15,transparent 65%),radial-gradient(ellipse at 90% 90%,var(--stat-light),transparent 70%),linear-gradient(var(--stat-tint),var(--stat-tint))}
.intro .stat .stat-label,.intro .stat .stat-value{color:#f8fcf9}
.intro .stat .stat-label span,.intro .stat .stat-value small,.intro .stat .stat-foot{color:#ffffffc2}
.intro .stat .stat-delta,.intro .stat .stat-delta.neutral,.intro .stat .stat-delta.sleep{color:#ffffffde;background:#ffffff1f}
.intro .stat .stat-icon{color:#f4faf5;border-color:#ffffff5e;background:#ffffff08}
.stat-chart .weight-plot path{stroke:#f4fff9;stroke-width:1.8;fill:none}
.stat-chart .weight-plot circle{fill:#f4fff9;stroke:none;stroke-width:0}
.stat-chart .dot-field,.stat-chart .dot-field svg{height:66px}
.stat-chart .dot-field{margin-bottom:0}
.stat-chart .mini-plot .trend-dot,.stat-chart .dot-field g:focus-visible .trend-dot{fill:#f6fcf8;stroke:none;opacity:1}
#growth-chart .line{stroke:var(--weight);stroke-width:1.7}
#growth-chart .dot,#growth-chart .growth-point:hover .dot,#growth-chart .growth-point:focus .dot{fill:var(--weight);stroke:none}
#growth-chart .selected-bubble{fill:var(--weight-soft);stroke:none}
#growth-chart .selected-halo{fill:color-mix(in srgb,var(--weight) 10%,transparent)}
#growth-chart .selected-value{font-size:24px!important;font-weight:500;letter-spacing:-.7px}
#growth-chart .selected-unit{font-size:12px!important}
@media(max-width:570px){.stat-chart .dot-field,.stat-chart .dot-field svg{height:66px}}
/* Reference card anatomy: ring + title, primary reading, quiet trend, dated footer. */
#dashboard-content>.intro .stat{padding:22px 22px 18px;min-height:304px;border:0;box-shadow:0 12px 28px #243c2b08}
.intro .stat .stat-top{display:grid;grid-template-columns:42px minmax(0,1fr) 38px;gap:10px;align-items:center;margin:0 0 26px}
.intro .stat .stat-icon{position:relative;width:42px;height:42px;border:0;background:none;color:#f7fff8}
.stat-icon .stat-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke:none}
.stat-ring .ring-track{stroke:#ffffff28;stroke-width:1.1}
.stat-ring .ring-arc{stroke:#f5fff3;stroke-width:1.7;stroke-dasharray:102 37;stroke-linecap:round}
.stat-icon>svg:not(.stat-ring){width:19px;height:19px;stroke-width:1.25}
.stat-heading{min-width:0}.stat-heading h3{font-size:13px;font-weight:450;color:#f4fcf7;line-height:1.4;margin:0;letter-spacing:.1px}
.stat-heading>span{display:block;font-family:"Inter Variable",Arial,sans-serif;font-size:10px;line-height:1.5;margin-top:1px;color:#ffffffb8;letter-spacing:.1px}
.stat-top .stat-open{width:38px;height:38px;background:#111713;border:0;box-shadow:0 4px 9px #1021160d}
.stat-open svg{width:18px;height:18px;stroke-width:1.4}
.intro .stat .stat-foot{margin:0 0 7px;line-height:1.4;color:#ffffffae;font-size:10px;font-weight:400;letter-spacing:.1px}
.intro .stat .stat-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;margin:0;min-height:40px}
.intro .stat .stat-value{font-family:"Inter Variable",Arial,sans-serif;font-size:45.5px;font-weight:400;line-height:calc(1.1em / 1.3);letter-spacing:-1.4px;white-space:nowrap}
.intro .stat .stat-value small{font-family:inherit;font-size:11px;line-height:1;margin-left:3px;color:#ffffffb8;font-weight:400;letter-spacing:0}
.intro .stat .stat-delta,.intro .stat .stat-delta.neutral,.intro .stat .stat-delta.sleep{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:10px;color:#f5fff7;background:none;padding:0 0 2px;border-radius:0;line-height:1.2;white-space:nowrap}
.stat:nth-child(2) .stat-delta::before{content:"喂养次数";font-size:8px;color:#ffffff9e}
.intro .stat:nth-child(3) .stat-delta,.intro .stat:nth-child(4) .stat-delta{display:none}
.intro .stat .stat-chart{min-height:82px;height:82px;margin-top:auto;padding-top:12px;flex-shrink:0}
.stat-chart .weight-plot,.stat-chart .weight-plot svg{height:70px}
.stat-chart .dot-field,.stat-chart .dot-field svg{height:64px}
.stat-bottom{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:12px;color:#ffffffad;font-size:9px;line-height:1.5;font-variant-numeric:tabular-nums}
.stat-bottom time{font-family:"Inter Variable",Arial,sans-serif;color:#f5fff5;letter-spacing:.2px;font-size:10px}
.intro .stat:nth-child(1){--stat-shade:#103f37ed;--stat-tint:#2e8e75a8;--stat-bloom:#6ef7bd70}
.intro .stat:nth-child(2){--stat-shade:#182d50ed;--stat-tint:#436da8ad;--stat-bloom:#88b9fa65}
.intro .stat:nth-child(3){--stat-shade:#303d0bed;--stat-tint:#657d2baa;--stat-bloom:#d3f24d80}
.intro .stat:nth-child(4){--stat-shade:#33213fed;--stat-tint:#79539bad;--stat-bloom:#dc9ee470}
.intro .stat::before{filter:blur(28px) saturate(1.6);opacity:.75}
.intro .stat::after{background:radial-gradient(ellipse at 76% 80%,var(--stat-bloom),transparent 67%),radial-gradient(ellipse at 18% 0%,#ffffff0f,transparent 60%),linear-gradient(145deg,var(--stat-shade) 10%,var(--stat-tint) 100%)}
@media(min-width:1500px){#dashboard-content>.intro .stat{min-height:325px;padding:26px 25px 22px}.intro .stat .stat-value{font-size:52px}.intro .stat .stat-top{margin-bottom:30px}.stat-heading h3{font-size:15px}.stat-heading>span{font-size:11px}}
@media(max-width:1150px) and (min-width:851px){#dashboard-content>.intro .stat{padding:18px 14px 16px}.intro .stat .stat-top{grid-template-columns:34px minmax(0,1fr) 29px;gap:7px}.intro .stat .stat-icon{width:34px;height:34px}.stat-top .stat-open{width:29px;height:29px}.stat-heading h3{font-size:11px}.stat-heading>span{font-size:9px}.intro .stat .stat-value{font-size:36.4px}.intro .stat .stat-delta{font-size:8px}.stat-bottom{font-size:8px}.stat-bottom time{font-size:9px}}
@media(max-width:570px){#dashboard-content>.intro .stat{padding:19px 16px 17px;min-height:295px}.intro .stat .stat-top{grid-template-columns:34px minmax(0,1fr) 30px;gap:7px;margin-bottom:25px}.intro .stat .stat-icon{width:34px;height:34px}.stat-top .stat-open{width:30px;height:30px}.stat-icon>svg:not(.stat-ring){width:16px;height:16px}.stat-heading h3{font-size:11px;line-height:1.5}.stat-heading>span{font-size:9px}.intro .stat .stat-foot{font-size:9px;margin-bottom:7px}.intro .stat .stat-value{font-size:36.4px;letter-spacing:-1.2px}.intro .stat:first-child .stat-value{font-size:35.1px}.intro .stat .stat-value small{font-size:9px;margin-left:2px}.intro .stat .stat-delta{font-size:8px;gap:4px}.stat:nth-child(2) .stat-delta::before{font-size:7px}.intro .stat .stat-chart{height:80px;min-height:80px}.stat-chart .weight-plot,.stat-chart .weight-plot svg{height:68px}.stat-bottom{font-size:8px;margin-top:10px;gap:4px}.stat-bottom time{font-size:8px;letter-spacing:0}}

/* Phone bento: square tiles, with compact information hierarchy rather than stretched content. */
@media(max-width:570px){
  #dashboard-content>.intro .stat{aspect-ratio:1;min-height:0;height:auto;padding:13px;display:grid;grid-template-rows:26px 34px minmax(0,1fr) 12px;gap:6px;border-radius:25px}
  .intro .stat .stat-top{grid-template-columns:26px minmax(0,1fr) 26px;gap:6px;margin:0}
  .intro .stat .stat-icon,.stat-top .stat-open{width:26px;height:26px}
  .stat-icon>svg:not(.stat-ring){width:14px;height:14px}
  .stat-open svg{width:14px;height:14px}
  .stat-heading h3{font-size:10px;line-height:1.3;white-space:nowrap}
  .stat-heading>span,.intro .stat .stat-foot{display:none}
  .intro .stat .stat-metric{min-height:0;gap:4px;align-items:center}
  .intro .stat .stat-value,.intro .stat:first-child .stat-value{font-size:35.1px;letter-spacing:-1.1px}
  .intro .stat .stat-value small{font-size:8px;margin-left:2px}
  .intro .stat .stat-delta{font-size:8px;padding:0;gap:3px}
  .stat:nth-child(2) .stat-delta::before{font-size:6px}
  .intro .stat .stat-chart{min-height:0;height:100%;padding:0;margin:0;overflow:hidden}
  .stat-chart .mini-plot,.stat-chart .mini-plot svg{height:100%;min-height:0;width:100%;margin:0}
  .stat-bottom{font-size:7px;line-height:12px;margin:0;gap:3px}
  .stat-bottom time{font-size:8px}
}
@media(max-width:360px){
  #dashboard-content>.intro .stat{padding:10px;grid-template-rows:24px 29px minmax(0,1fr) 12px;gap:4px;border-radius:22px}
  .intro .stat .stat-top{grid-template-columns:22px minmax(0,1fr) 22px;gap:4px}
  .intro .stat .stat-icon,.stat-top .stat-open{width:22px;height:22px}
  .stat-heading h3{font-size:9px}
  .intro .stat .stat-value,.intro .stat:first-child .stat-value{font-size:29.9px}
  .intro .stat .stat-delta{font-size:7px}
}

/* Keep secondary readings on the same row, sized by the available card space. */
#dashboard-content>.intro .stat{container-type:inline-size}
@container (max-width:200px){
  #feed-stat-count{font-size:8px;gap:2px}
}
@container (max-width:145px){
  .intro .stat #feed-stat-count{display:none}
}

/* Translucent photo glass: retain real photographic light beneath a light colour veil. */
.intro .stat:nth-child(1){--stat-color:#6b91bc;--glass-veil:#798ee0b5;--glass-clear:#a1e8f36b;--glass-light:#cee7ff}
.intro .stat:nth-child(2){--stat-color:#b69b78;--glass-veil:#d8b54eb5;--glass-clear:#da88316b;--glass-light:#cee7ff}
/* Figma 852:1133, colour overlay on the diaper card's blurred photo. */
.intro .stat:nth-child(3){--stat-color:#8a9e47;--glass-veil:rgb(158 153 1 / .71);--glass-clear:rgb(244 255 125 / .42);--glass-light:#eaff9c}
.intro .stat:nth-child(4){--stat-color:#9977b3;--glass-veil:#9866b4b5;--glass-clear:#c6a2df6b;--glass-light:#f1d6ff}
#dashboard-content>.intro .stat{box-shadow:0 10px 28px #31484009;backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3)}
.intro .stat::before{inset:-20px;transform:scale(1.08);filter:blur(18px) saturate(1.5) brightness(1.18);opacity:1}
.intro .stat::after{background:radial-gradient(ellipse at 90% 90%,color-mix(in srgb,var(--glass-light) 46%,transparent),transparent 65%),linear-gradient(125deg,#ffffff21,transparent 38%),linear-gradient(150deg,var(--glass-veil),var(--glass-clear));backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.intro .stat .stat-foot,.stat-heading>span,.stat-bottom{color:#ffffffdc}
.stat:nth-child(2) .stat-delta::before{color:#ffffffc9}

/* Keep the desktop reading, trend and date together in a compact vertical rhythm. */
@media(min-width:571px){
  #dashboard-content>.intro .stat{min-height:260px;padding-top:20px;padding-bottom:16px}
  .intro .stat .stat-top{margin-bottom:18px}
  .intro .stat .stat-chart{height:57px;min-height:57px;padding-top:5px;margin-top:12px}
  .stat-chart .weight-plot,.stat-chart .weight-plot svg{height:52px}
  .stat-chart .dot-field,.stat-chart .dot-field svg{height:52px}
  .stat-bottom{margin-top:8px}
}

/* Every view occupies the full dashboard; only overview content uses the bento grid internally. */
#dashboard-content > section{grid-column:1 / -1;min-width:0}

/* Cropped, pre-blurred Figma photo layers for the summary cards. */
.intro .stat:nth-child(1){--card-photo:url('/V3/assets/figma/growth-card.webp')}
.intro .stat::before{
  inset:0;width:auto;height:auto;background:var(--card-photo) center / 100% 100% no-repeat;
  opacity:1;transform:none;filter:none;pointer-events:none;
}
.intro .stat::after{background:radial-gradient(ellipse 127.28% 127.28% at 90% 90%,color-mix(in srgb,var(--glass-light) 46%,transparent) 0%,transparent 65%),linear-gradient(125deg,#ffffff21 0%,transparent 38%),linear-gradient(150deg,var(--glass-veil) 0%,var(--glass-clear) 100%)}
/* Card fills from Figma Frame 2, expressed relative to its 320 × 260 cards. */
.intro .stat:nth-child(1)::before{
  inset:-85.5% auto auto -49.7%;width:230.8%;height:270.9%;
  background:#f3d5be url('/V3/assets/figma/frame2-feeding-orange.png') center bottom / cover no-repeat;
  transform:rotate(-164.11deg);filter:blur(18px);
}
.intro .stat:nth-child(1)::after{
  background:radial-gradient(ellipse 127.28% 127.28% at 90% 90%,#ffcd9b75,transparent 65%),linear-gradient(125deg,#ffffff21,transparent 38%),linear-gradient(150deg,#ff8c34,#ff7b17e6);
}
.intro .stat:nth-child(2){--glass-veil:#774617e6;--glass-clear:#c5a77099}
.intro .stat:nth-child(2)::before{
  inset:-105.4% auto auto -100.8%;width:322.5%;height:330.4%;
  background:#f3d5be url('/V3/assets/figma/frame2-feeding.png') center bottom / cover no-repeat;
  transform:rotate(45deg);filter:blur(18px);
}
.intro .stat .feeding-photo-overlay{
  position:absolute;z-index:-2;pointer-events:none;
  inset:-36.15% auto auto -.31%;width:216.56%;height:400%;
  background:url('/V3/assets/figma/frame2-feeding-overlay.png') center / cover no-repeat;
  opacity:.8;filter:blur(25px);
}
.intro .stat:nth-child(2)::after{
  background:linear-gradient(125deg,#ffffff21,transparent 38%),linear-gradient(150deg,var(--glass-veil),var(--glass-clear));
}
.intro .stat:nth-child(3){--glass-veil:#8e7b00e6;--glass-clear:#fff06599}
.intro .stat:nth-child(3)::before{
  inset:0;background:#8a9e47;filter:none;
}
.intro .stat .diaper-photo-overlay{
  position:absolute;z-index:-2;pointer-events:none;
  inset:74.2% auto auto -82.5%;width:190.3%;height:195%;
  background:#ffe11f url('/V3/assets/figma/frame2-diaper.png') center bottom / cover no-repeat;
  opacity:.8;transform:rotate(-30deg);filter:blur(18px);
}
.intro .stat:nth-child(3){--glass-light:#eaff9c}
.intro .stat:nth-child(3)::after{
  background:radial-gradient(ellipse 127.28% 127.28% at 90% 90%,#eaff9c3b,transparent 65%),linear-gradient(125deg,#ffffff21,transparent 38%),linear-gradient(150deg,var(--glass-veil),var(--glass-clear));
}
.intro .stat:nth-child(4)::before{
  inset:-25% auto auto -60.6%;width:166.9%;height:171.2%;
  background:#e3cbf5 url('/V3/assets/figma/frame2-sleep.png') center bottom / cover no-repeat;
  filter:blur(40px);
}


/* IconMCP native 16-unit grid; preserve the library’s light outline. */
.stat-icon>svg.iconmcp{fill:none;stroke:currentColor;stroke-width:.833}

/* Quiet, optically balanced summary icons; no competing decorative progress ring. */
.intro .stat .stat-icon{background:none;border:0;box-shadow:none}
.stat-icon>svg.iconmcp{width:25px;height:25px;stroke-width:.85;opacity:.95}
@media(max-width:1150px) and (min-width:851px){.stat-icon>svg.iconmcp{width:23px;height:23px}}
@media(max-width:570px){.stat-icon>svg.iconmcp{width:21px;height:21px;stroke-width:.9}}
@media(max-width:360px){.stat-icon>svg.iconmcp{width:19px;height:19px}}

/* Four complete, quiet icon rings. */
.stat-icon>svg.iconmcp{width:23px;height:23px}
@media(max-width:1150px) and (min-width:851px){.stat-icon>svg.iconmcp{width:21px;height:21px}}
@media(max-width:570px){.stat-icon>svg.iconmcp{width:17px;height:17px}}
@media(max-width:360px){.stat-icon>svg.iconmcp{width:15px;height:15px}}

/* Recent bowel movements: exact, open circles instead of relative dots. */
.stat-chart .stool-rings{width:158px;max-width:100%;height:68px;margin-left:auto}
.stat-chart .stool-rings svg{width:100%;height:100%;overflow:visible}
.stat-chart .stool-rings circle{fill:none;stroke:#fff;stroke-width:1.15}
@media(max-width:570px){.stat-chart .stool-rings{width:100%;max-height:100%;height:100%}}

/* Forecast remains visibly separate from recorded measurements. */
#growth-chart .growth-forecast{fill:none;stroke:var(--weight);stroke-width:1.7;stroke-dasharray:5 5;stroke-linecap:round;opacity:.65}
#growth-chart .forecast-caption text{fill:var(--weight);font-size:11px;letter-spacing:.5px}
#growth-chart .forecast-date{fill:var(--weight);opacity:.6}

/* Latest feed count: two quiet rows of bottles, aligned to the card’s right edge. */
.stat-chart .feed-bottles{margin-left:auto;width:min(100%,calc(var(--bottle-columns)*24px));display:grid;gap:3px;align-self:flex-end}
.feed-bottle-row{display:flex;justify-content:flex-end;gap:3px}
.stat-chart .feed-bottles svg{width:21px;height:23px;flex:0 1 21px;min-width:0;overflow:visible;fill:none;stroke:#fff;stroke-width:.85;stroke-linecap:round;stroke-linejoin:round}
.stat-chart .feed-bottles path,.stat-chart .feed-bottles rect{fill:none;stroke:#fff;stroke-width:.85}
@media(max-width:570px){.stat-chart .feed-bottles{gap:2px}.feed-bottle-row{gap:2px}.stat-chart .feed-bottles svg{width:17px;height:20px;flex-basis:17px}}

.stat-chart .stool-rings .stool-zero{stroke-dasharray:2 2;stroke-linecap:round;opacity:.8}

/* Up to eight supplied bottle glyphs per row; shrink evenly on narrow cards. */
.feed-bottle-row{min-width:0}
.stat-chart .feed-bottles svg{aspect-ratio:1;height:auto}

/* Photo glass capsules use the same source and blue veil as the feeding summary. */
#feed-chart .bar.center,#feed-chart .bar.hospital,#feed-chart .bar.estimate{fill:url(#feed-photo-glass);stroke:#ffffff73;stroke-width:.7}
#feed-chart .bar.hospital{opacity:.58}
#feed-chart .bar.estimate{opacity:.33}

#growth-chart .growth-photo-area{fill:url(#weight-photo-glass);stroke:none;pointer-events:none}

/* Shared purple photographic field, clipped by the recorded sleep intervals. */
.sleep-block{overflow:hidden;isolation:isolate;background:#9977b3!important;opacity:.9;border:0;box-shadow:none}
.sleep-block::before{content:"";position:absolute;inset:-20px;z-index:-1;background-image:linear-gradient(125deg,#9866b49e,#c6a2df66),url('/V3/assets/figma/sleep-chart-texture.webp');background-size:var(--sleep-field-width,500px) 306px;background-position:calc(var(--sleep-field-x,0px) + 20px) calc(var(--sleep-field-y,0px) + 20px);filter:blur(16px);pointer-events:none}
.sleep-block:hover,.sleep-block:focus-visible{opacity:1}
#elimination-chart .bar-urine{fill:url(#elim-glass-urine);stroke:#ffffff73;stroke-width:.7}

/* Daily bowel status: one clear circle per day, without the urine series. */
#elimination-chart.stool-calendar{height:380px;margin-top:24px!important;overflow:hidden}
#elimination-chart.stool-calendar svg{width:100%;height:100%;min-width:0;max-width:100%}
.stool-calendar-day circle{fill:none;stroke:#9bb774;stroke-width:1.5}
.stool-calendar-day.filled circle{fill:#adb649;stroke:none}
.stool-calendar-day.unknown circle{stroke:#c8cec0;stroke-dasharray:none}
.stool-calendar-day .axis-label{font-size:9px;fill:#939c89}
.stool-calendar-day:focus circle,.stool-calendar-day:hover circle{stroke:#6a8d49;stroke-width:2}
.stool-status-legend .stool-key{width:9px;height:9px;border-radius:50%;background:none;border:1px solid #9bb774;box-sizing:border-box}
.stool-status-legend .stool-key.filled{background:#adb649;border:0}
.stool-status-legend .stool-key.unknown{border-style:solid;border-color:#c8cec0}
[data-view="analysis"],#analysis{display:none!important}

/* One shared page header and section rhythm; view changes only content. */
:root{--page-hero-min:208px;--page-hero-pad:28px;--page-hero-bottom:12px;--page-heading-gap:20px}
.wrap .top{min-height:var(--page-hero-min);padding-block:var(--page-hero-pad) var(--page-hero-bottom);margin:0;align-items:center}
.section-context{min-height:38px;margin:0 0 var(--page-heading-gap);align-items:center}
#dashboard-content>section{margin-top:0}
.gallery-heading{display:flex;justify-content:flex-end;min-height:32px;padding:0 0 14px;margin:0}
.gallery-section>.card{padding-top:0}
@media(max-width:850px){:root{--page-hero-min:195px;--page-hero-pad:25px}}
@media(max-width:570px){:root{--page-hero-min:180px;--page-hero-bottom:10px;--page-heading-gap:16px}.section-context{min-height:30px}}

/* View changes start at the same header origin instead of browser scroll anchoring. */
.wrap{overflow-anchor:none}
#elimination-chart.stool-calendar{overflow-x:auto;overflow-y:hidden}
#elimination-chart.stool-calendar svg{width:auto;max-width:none;min-width:100%;height:380px}

/* Give the feed count a clear secondary reading beside the milk volume. */
.intro .stat #feed-stat-count{font-family:"Inter Variable",Arial,sans-serif;font-size:20px;font-weight:550;line-height:1.15;color:#fff;gap:5px;padding-bottom:1px;letter-spacing:-.3px}
.intro .stat #feed-stat-count::before{font-size:9px;font-weight:400;line-height:1.2;letter-spacing:.2px;color:#ffffffe6}
@media(max-width:570px){.intro .stat #feed-stat-count{font-size:16px;gap:3px}.intro .stat #feed-stat-count::before{font-size:7px}}
@media(max-width:360px){.intro .stat #feed-stat-count{font-size:14px}}

#elimination-chart .stool-calendar-day.filled circle{fill:url(#stool-photo-glass);stroke:none}
#elimination-chart .stool-calendar-day.hollow circle{stroke:#aaba63;stroke-width:1.4}
#elimination-chart .stool-calendar-day.unknown circle{stroke:#c9ceac}
#elimination-chart .stool-overflow-count{fill:#81945e;font-size:11px}
#elimination-chart .stool-calendar-day .axis-label{font-size:11px}

/* All empty bowel-status circles use an unbroken outline. */
#elimination-chart .stool-calendar-day.hollow circle,#elimination-chart .stool-calendar-day.unknown circle{fill:none;stroke-dasharray:none}

/* A short page must never vertically center the main column in the app grid. */
html{overflow-y:scroll;scrollbar-gutter:stable;scroll-behavior:auto}
.app-shell{align-items:start}
.wrap{margin-block:0;align-self:start;width:100%}
.journal-topbar,.top,.section-context{animation:none;transition:none}

/* Progressive top-to-bottom reveal, including the shared header. */
@media(prefers-reduced-motion:no-preference){
  html.reveal-boot .wrap{opacity:0}
  [data-reveal-pending]{opacity:0;pointer-events:none}
  [data-reveal-order]{animation:card-reveal 1s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--reveal-delay,0ms)}
  @keyframes card-reveal{from{opacity:0;transform:translateY(16px);filter:blur(1px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
}

/* Shared subject colours also own chart annotations and event details. */
#growth-chart .selected-guide{stroke:color-mix(in srgb,var(--weight) 50%,white)}
#growth-chart .selected-triangle{fill:var(--weight)}
#growth-chart text{fill:color-mix(in srgb,var(--weight) 55%,#a4511b)!important}
#growth-chart .selected-value{fill:color-mix(in srgb,var(--weight) 68%,#a74406)!important}
#growth-chart .selected-unit{fill:color-mix(in srgb,var(--weight) 65%,#a74406)!important}
#feed-chart text,.feed-source-legend{fill:color-mix(in srgb,var(--feeding) 50%,#8d8275)!important;color:color-mix(in srgb,var(--feeding) 50%,#8d8275)}
#feed-chart .bar+text{fill:color-mix(in srgb,var(--feeding) 75%,#4c3b2a)!important}

/* A single inset owns all four edges; responsive cards never accumulate extra footer space. */
:root{--stat-inset:22px}
#dashboard-content>.intro .stat{padding:var(--stat-inset)}
.intro .stat .stat-top{padding:0}
.intro .stat .stat-bottom{margin-top:auto;padding-top:8px}
@media(min-width:1500px){:root{--stat-inset:25px}}
@media(max-width:1150px) and (min-width:851px){:root{--stat-inset:16px}}
@media(max-width:570px){:root{--stat-inset:13px}.intro .stat .stat-bottom{margin:0;padding-top:0}}
@media(max-width:360px){:root{--stat-inset:10px}}

/* Keep the visible bottle, ring and dot artwork on the same footer-relative baseline. */
.intro .stat .stat-chart:is([data-stat-chart="1"],[data-stat-chart="2"],[data-stat-chart="3"]){
  padding-bottom:8px;
}
@media(max-width:570px){
  .intro .stat .stat-chart:is([data-stat-chart="1"],[data-stat-chart="2"],[data-stat-chart="3"]){padding-bottom:5px}
}
.intro .stat .stat-chart[data-stat-chart="3"] .dot-field{width:100%}
.intro .stat .stat-chart[data-stat-chart="3"] .dot-field svg{height:100%}
@media(min-width:571px){
  .intro .stat .stat-chart:is([data-stat-chart="1"],[data-stat-chart="2"],[data-stat-chart="3"]){margin-top:auto}
  .intro .stat:has(.stat-chart:is([data-stat-chart="1"],[data-stat-chart="2"],[data-stat-chart="3"])) .stat-bottom{margin-top:0}
}

/* Quiet chart scaffolding; recorded intervals and filled circles have no decorative outlines. */
#elimination-chart .stool-grid line{stroke:#aab889;stroke-opacity:.15;stroke-width:1;vector-effect:non-scaling-stroke}
.sleep-lane{border:0}
.sleep-block:hover{outline:none}
.sleep-block:focus-visible{outline:2px solid var(--sleep);outline-offset:2px}

/* Softer continuous corners for the four summary cards, with a rounded fallback. */
#dashboard-content>.intro .stat{border-radius:36px}
@supports(corner-shape:superellipse(1.25)){#dashboard-content>.intro .stat{corner-shape:superellipse(1.25)}}
@media(max-width:570px){#dashboard-content>.intro .stat{border-radius:28px}}

/* Photo-first feature: flexible image area and a compact, shared footer. */
#v3-moments{padding-top:4px}
#v3-moments .memory-card{position:relative;display:flex;flex-direction:column;gap:0;min-height:350px;min-width:0;padding:0 10px 10px;overflow:hidden;isolation:isolate;background:#ffffff8c;border:1px solid #fff;border-radius:34px}
#v3-moments .memory-photo-wrap{position:relative;display:block;flex:1 1 auto;align-self:stretch;width:100%;height:auto;min-height:245px;margin:0;padding:0;border:0;border-radius:25px;overflow:hidden;background:#e8ece5;transform:none;box-shadow:none;cursor:pointer}
#v3-moments .memory-card{container-type:inline-size}
#v3-moments .memory-photos{display:flex;flex:1 1 auto;gap:10px;min-width:0}
#v3-moments .memory-photos .memory-photo-wrap{flex:1 1 0;min-width:0}
#v3-moments .memory-photo-secondary{display:none}
@container (min-width:520px){
  #v3-moments .memory-photo-secondary:not([hidden]){display:block}
}
#v3-moments .memory-photo-wrap img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center;display:block;border-radius:0;transition:transform .6s cubic-bezier(.2,.7,.3,1)}
#v3-moments .memory-photo-wrap:hover img{transform:scale(1.025)}
#v3-moments .memory-photo-wrap:focus-visible{outline:2px solid #6c96d8;outline-offset:-3px}
#v3-moments .moment-day{position:absolute;left:15px;bottom:15px;padding:6px 10px;border:1px solid #ffffff70;border-radius:20px;background:#ffffffa3;backdrop-filter:blur(16px);font:400 10px "Inter Variable",Arial,sans-serif;letter-spacing:.2px;color:#465047}
#v3-moments .memory-copy{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:24px 16px 19px;min-width:0;order:-1}
#v3-moments .memory-title .card-kicker{display:block;font-size:7px;letter-spacing:1.8px;margin:0 0 14px;color:#929d87}
#v3-moments .memory-title h2{font-size:21px;font-weight:450;line-height:1.3;letter-spacing:.5px;margin:0;color:#525c43}
#v3-moments .memory-copy .round-link{margin:0;flex:none}
#v3-moments .memory-copy .round-link>span{width:36px;height:36px;background:#ffffff70;border-color:#dfe5d9;font-size:20px}
#v3-moments .rhythm-invite{min-height:350px;padding:27px 29px;background:#ffffff8c}
#v3-moments .rhythm-invite h2{margin-top:9px;font-size:22px}
#v3-moments .invite-moon{font-size:23px;opacity:.75}
.sleep-preview-reading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:13px 0 19px;color:#705883}
.sleep-preview-reading strong{font-family:"Inter Variable",Arial,sans-serif;font-size:29px;font-weight:400;letter-spacing:-1px;white-space:nowrap}
.sleep-preview-reading small{font-size:12px;font-weight:400;letter-spacing:0;color:#a18eaf}
.sleep-preview-reading>span{font-size:9px;color:#a18eaf}
.sleep-preview{width:100%;margin:0 0 23px;display:flex;flex-direction:column;gap:9px}
.sleep-preview-axis{display:flex;justify-content:space-between;margin-left:31px;margin-bottom:2px;font-family:"Inter Variable",Arial,sans-serif;font-size:8px;color:#aa9bb5;line-height:1}
.sleep-preview-row{display:grid;grid-template-columns:25px minmax(0,1fr);gap:6px;align-items:center;min-height:9px}
.sleep-preview-row>span{font-family:"Inter Variable",Arial,sans-serif;font-size:8px;color:#aa9bb5}
.sleep-preview-row.latest>span{color:#7d6195;font-weight:550}
.sleep-preview-lane{height:10px;position:relative;background:linear-gradient(90deg,#c5b5d61c,#c5b5d62e);border-radius:999px;overflow:hidden}
.sleep-preview-lane::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent calc(50% - .5px),#ffffff70 50%,transparent calc(50% + .5px));pointer-events:none}
.sleep-preview-lane i{position:absolute;top:0;bottom:0;display:block;min-width:1px;border-radius:999px;background:#a68abb;opacity:.75}
.sleep-preview-row.latest .sleep-preview-lane i{background:#9270ad;opacity:1}
.sleep-preview-missing{display:block;text-align:center;font-size:7px;line-height:8px;color:#baaac6}
#v3-moments .rhythm-invite .round-link{padding-top:0;margin-top:auto}
@media(max-width:1150px){#v3-moments .rhythm-invite{padding:24px}.sleep-preview-reading{gap:7px}.sleep-preview-reading>span{font-size:8px}}
@media(max-width:850px) and (min-width:571px){#v3-moments .memory-photo-wrap{min-height:240px}}
@media(max-width:570px){#v3-moments{row-gap:20px!important}#v3-moments .memory-card{min-height:350px;padding:0 8px 8px;border-radius:29px}#v3-moments .memory-photo-wrap{min-height:250px;border-radius:22px}#v3-moments .memory-copy{padding:24px 15px 19px}#v3-moments .memory-title h2{font-size:21px}#v3-moments .moment-day{left:13px;bottom:13px;font-size:10px}#v3-moments .rhythm-invite{min-height:350px}.sleep-preview-reading strong{font-size:29px}.sleep-preview-axis{font-size:8px}.sleep-preview-row>span{font-size:9px}}

/* Arrow fills from Figma Frame 2. */
.intro .stat:nth-child(1){--arrow-bg:#883A00}
.intro .stat:nth-child(2){--arrow-bg:#5e3600}
.intro .stat:nth-child(3){--arrow-bg:#595716}
.intro .stat:nth-child(4){--arrow-bg:#634794}
.intro .stat .stat-open{background:var(--arrow-bg);color:#fff}
.intro .stat .stat-open:hover{background:color-mix(in srgb,var(--arrow-bg) 88%,white)}
/* Sleep header: title left, latest duration and date right. */
#v3-moments .rhythm-invite{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto 1fr auto;column-gap:12px;row-gap:7px}
.rhythm-invite .invite-header{grid-column:1;grid-row:1}
.rhythm-invite .invite-moon{display:none}
#v3-moments .rhythm-invite h2{grid-column:1;grid-row:2;margin:0;font-size:21px}
.rhythm-invite .sleep-preview-reading{grid-column:2;grid-row:1/span 2;display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin:0}
.rhythm-invite .sleep-preview-reading>span{font-size:9px}
.rhythm-invite .sleep-preview{grid-column:1/-1;grid-row:3;align-self:center;margin:12px 0 17px}
#v3-moments .rhythm-invite .round-link{grid-column:1/-1;grid-row:4;width:100%;margin:0}

/* One photographic glass field, clipped into the sleep intervals. */
.sleep-preview-lane i,.sleep-preview-row.latest .sleep-preview-lane i{isolation:isolate;overflow:hidden;background:#9977b3;opacity:.88}
.sleep-preview-lane i::before{content:"";position:absolute;z-index:-1;inset:-12px;background-image:linear-gradient(150deg,#9866b4b5,#c6a2df6b),url('/V3/assets/figma/sleep-chart-texture.webp');background-size:var(--preview-field-w) var(--preview-field-h),var(--preview-photo-w) var(--preview-photo-h);background-position:var(--preview-x) var(--preview-y),var(--preview-photo-x) var(--preview-photo-y);background-repeat:no-repeat;filter:blur(9px);pointer-events:none}
.sleep-preview-row.latest .sleep-preview-lane i{opacity:1}

/* Shared page utility strip lives below the content on every view. */
.wrap>.journal-topbar{margin-top:28px;border-bottom:0;border-top:1px solid #dfe3da80;min-height:62px}
.wrap>footer{margin-top:0;border-top:0;padding-top:0}
.side-nav .nav-icon{stroke-width:1}
/* Pearl split-flap counter. Shared dimensions preserve hero alignment across views. */
.age-card.flip-age-card{--flap-h:96px;--flap-w:69px;--flap-radius:14px;width:178px;height:196px;border:0;border-radius:0;background:none;box-shadow:none;padding:23px 0 0;display:flex;align-items:center;justify-content:flex-start;overflow:visible}
.flip-age-card .birth-age{display:flex;flex-direction:column;align-items:center;margin:0}
.flip-age-card .birth-age[hidden]{display:none}
.flip-age-card .age-kicker{font:500 9px "Inter Variable",Arial,sans-serif;letter-spacing:2.3px;color:#8b948d}
.flip-age-card .age-main{margin:16px 0 0}
.flip-age-card #birth-age-days{display:flex;gap:6px;font:400 64px/var(--flap-h) "Domi Counter","Inter Variable",Arial,sans-serif;font-variant-numeric:tabular-nums lining-nums;font-synthesis:none;letter-spacing:0;color:#46534f;perspective:650px}
.flip-digit{position:relative;display:block;width:var(--flap-w);height:var(--flap-h);border-radius:var(--flap-radius);background:rgb(236 236 236 / .16);--flap-outline:rgb(116 116 116 / .25);box-shadow:0 0 0 1px var(--flap-outline),0 2px 0 rgb(226 226 226 / .82),0 3px 0 var(--flap-outline),0 4px 0 rgb(207 207 207 / .8),0 5px 0 var(--flap-outline)}
.flip-digit::after{content:"";position:absolute;z-index:5;left:0;right:0;top:50%;height:1px;background:rgb(171 171 171 / .32);pointer-events:none}
.flip-leaf{position:absolute;left:0;right:0;height:50%;overflow:hidden;backface-visibility:hidden;transform-style:preserve-3d}
.flip-leaf span{position:absolute;display:block;left:0;right:0;height:var(--flap-h);text-align:center;padding-right:0;box-sizing:border-box}
.flip-upper{top:0;background:rgb(224 224 224 / .83);border-radius:var(--flap-radius) var(--flap-radius) 0 0}
.flip-upper span{top:0}
.flip-lower{bottom:0;background:rgb(245 245 245 / .86);border-radius:0 0 var(--flap-radius) var(--flap-radius)}
.flip-lower span{bottom:0;color:#596560}
.flip-fold{z-index:4;transform-origin:center bottom;animation:flip-down var(--flip-fold-duration,.46s) cubic-bezier(.55,.08,.76,.5) both;animation-delay:var(--flip-delay)}
.flip-rise{z-index:4;transform-origin:center top;animation:flip-settle var(--flip-rise-duration,.6s) cubic-bezier(.16,.75,.25,1) both;animation-delay:calc(var(--flip-delay) + var(--flip-fold-duration,.46s))}
@keyframes flip-down{from{transform:rotateX(0)}to{transform:rotateX(-90deg)}}
@keyframes flip-settle{from{transform:rotateX(90deg)}to{transform:rotateX(0)}}
@media(prefers-reduced-motion:reduce){.flip-fold,.flip-rise{animation:none}.flip-fold{display:none}}
@media(max-width:1150px){.age-card.flip-age-card{--flap-h:87px;--flap-w:62px;width:140px;height:175px;padding-top:19px}.flip-age-card #birth-age-days{font-size:57px}.flip-age-card .age-kicker{font-size:8px}}
@media(max-width:570px){.age-card.flip-age-card{--flap-h:71px;--flap-w:49px;--flap-radius:11px;width:108px;height:149px;padding-top:18px}.flip-age-card #birth-age-days{font-size:46px;letter-spacing:0;gap:4px}.flip-age-card .age-kicker{font-size:7px;letter-spacing:1.8px}.wrap>.journal-topbar{margin-top:22px;min-height:54px}.journal-topbar .source-pill{display:flex;font-size:8px}.journal-topbar{flex-wrap:wrap;gap:10px}}

/* Fast opening flaps smear only the passing numerals; the final page stays crisp. */
.flip-digit.is-rushing .flip-leaf span{animation:flap-motion-blur .105s linear both}
@keyframes flap-motion-blur{0%,100%{filter:blur(.4px);transform:translateY(0) scaleY(1)}35%,70%{filter:blur(2px);transform:translateY(2px) scaleY(1.12)}}
.sleep-preview-history{height:124px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:9px;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#b5a5c555 transparent;outline-offset:5px}
.sleep-preview-history .sleep-preview-row{flex:0 0 10px}
#feed-chart .bar{transition:filter .16s ease}
#feed-chart .bar:hover,#feed-chart .bar:focus{filter:brightness(1.18) saturate(1.04)}
@media(prefers-reduced-motion:reduce){.flip-digit.is-rushing .flip-leaf span{animation:none}}

.section-context .gallery-count{font-size:10px;font-weight:400;color:#929b84;padding:0;border:0;background:none;white-space:nowrap}.section-context .gallery-count[hidden]{display:none}

/* Birth record: a personal archive header and consistent metric colour strips. */
#birth{padding:30px}
#birth .birth-profile-head{align-items:center;flex-wrap:nowrap;padding-bottom:26px;border-bottom:1px solid #e6e9e080}
#birth .birth-profile{display:flex;align-items:center;gap:20px;min-width:0}
.birth-portrait{width:84px;height:84px;flex:none;object-fit:cover;border-radius:26px;border:4px solid #fff;box-shadow:0 5px 18px #39483c10}
#birth .birth-identity .card-kicker{display:block;color:#98a293;font-size:8px;letter-spacing:2px;margin:0 0 8px}
#birth .birth-identity h2{font-size:26px;font-weight:500;letter-spacing:.5px}
#birth .birth-identity h2 span{font:400 20px "Inter Variable",Arial,sans-serif;color:#8c978d;letter-spacing:-.5px;margin-left:7px}
#birth .birth-identity .caption{margin:7px 0 4px;font-size:11px;color:#748171}
.birth-provenance{font-size:9px;color:#a0a89c;letter-spacing:.3px}
#birth .birth-grid{margin-top:25px;gap:16px}
#birth .birth-data{--metric-color:#6c96d8;--metric-tint:#edf3fc;position:relative;overflow:hidden;border:0;border-radius:22px;padding:22px 23px 28px;background:#ffffffb3;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);box-shadow:inset 0 0 0 1px #ffffffdc,0 6px 22px #39462c03}
#birth .birth-data:nth-child(2){--metric-color:#b28b59;--metric-tint:#f7f0e6}
#birth .birth-data:nth-child(3){--metric-color:#99ad53;--metric-tint:#f0f4e5}
#birth .birth-data:nth-child(4){--metric-color:#a186bb;--metric-tint:#f1ecf7}
#birth .birth-data::after{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;background:var(--metric-color)}
#birth .birth-data>span{font-size:11px;color:#849082}
#birth .birth-data strong{font-family:"Inter Variable",Arial,sans-serif;font-size:27px;font-weight:500;letter-spacing:-.8px;color:#3f4a40;margin-top:10px}
#birth .birth-foot{margin-top:24px;padding-top:18px;border-top:1px solid #e6e9e080;gap:12px;color:#919a8d;font-size:10px;line-height:1.8}
@media(max-width:570px){#birth{padding:23px 20px}#birth .birth-profile-head{flex-wrap:wrap;gap:17px;padding-bottom:20px}#birth .birth-profile{gap:13px}.birth-portrait{width:66px;height:66px;border-radius:21px;border-width:3px}#birth .birth-identity h2{font-size:23px}#birth .birth-identity h2 span{font-size:17px}#birth .birth-identity .caption{font-size:9px}#birth .source-pill{margin:0;min-height:29px;font-size:9px}#birth .birth-grid{gap:12px;margin-top:20px}#birth .birth-data{padding:18px 16px 24px;border-radius:18px}#birth .birth-data strong{font-size:23px}#birth .birth-foot{font-size:9px}}

/* Mobile navigation floats above the safe area as a translucent glass dock. */
@media(max-width:850px){
  .app-shell>.app-sidebar{position:fixed;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));width:auto;height:68px;display:flex;flex-direction:row;align-items:center;gap:7px;padding:6px 9px;border:1px solid #ffffff6b;border-radius:35px;background:#f3f6efdb;box-shadow:inset 0 1px 2px #ffffff85,inset 0 -1px 2px #ffffff4a,0 10px 27px #28392e24,0 2px 6px #28392e12;z-index:100;overflow:hidden;isolation:isolate}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
    .app-shell>.app-sidebar{background:linear-gradient(155deg,#ffffff70,#f4f8f13b 50%,#edf2e974);backdrop-filter:blur(13px) saturate(1.55);-webkit-backdrop-filter:blur(13px) saturate(1.55)}
  }
  .app-shell>.app-sidebar::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(ellipse at 20% 0%,#ffffff60,transparent 55%),radial-gradient(ellipse at 85% 100%,#ffffff39,transparent 52%);pointer-events:none}
  .app-sidebar>.brand{display:flex;flex:0 0 48px;width:48px;min-width:48px;height:48px;margin:0;padding:0;background:none;border:0;box-shadow:none;align-items:center;justify-content:center}
  .app-sidebar>.brand>span,.app-sidebar>.sidebar-label,.app-sidebar>.sidebar-footer{display:none}
  .app-sidebar .brand-avatar{width:48px;height:48px;flex-basis:48px;border:2px solid #fff9;box-shadow:0 2px 7px #273c2820}
  .app-sidebar>.side-nav{position:relative;display:flex;flex:1;min-width:0;align-items:center;gap:3px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;scroll-padding-inline:8px}
  .app-sidebar>.side-nav::-webkit-scrollbar{display:none}
  .app-sidebar>.side-nav::before{
    content:"";position:absolute;left:0;top:3px;width:var(--dock-selection-width,0px);height:48px;border-radius:999px;pointer-events:none;
    background:#fffc;
    transform:translateX(var(--dock-selection-x,0px)) scale(var(--dock-selection-scale,1));
  }
  .app-sidebar>.side-nav.dock-ready::before{transition:transform .42s cubic-bezier(.2,.78,.24,1.14),width .32s ease}
  .app-sidebar>.side-nav.dock-dragging::before{--dock-selection-scale:1.045;transition:none}
  .app-sidebar>.side-nav>button{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;flex:0 0 70px;min-width:70px;height:54px;min-height:54px;padding:5px 4px;margin:0;border:1px solid transparent;border-radius:27px;font-size:10px;line-height:1.1;letter-spacing:0;color:#48574a;background:transparent;transition:color .2s}
  .app-sidebar>.side-nav>button .nav-icon{width:19px;height:19px;flex-basis:19px}
  .app-sidebar>.side-nav>button.active{color:#253b2e;background:transparent;border-color:transparent;box-shadow:none;font-weight:650;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
  .app-sidebar>.side-nav>button.active .nav-icon{color:#d45d0b}
  .app-sidebar>.side-nav>button:hover{background:transparent}
  .app-sidebar>.side-nav>button:focus-visible{outline:2px solid #526c56;outline-offset:-4px}
  .app-sidebar>.side-nav>button.active::after,.app-sidebar>.side-nav>button[data-view="jaundice"]::before{display:none}
  .wrap{padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
  .gallery-lightbox{z-index:200}
}
@media(max-width:850px) and (prefers-reduced-motion:no-preference){
  .app-sidebar>.brand .brand-avatar{transition:transform 100ms ease-out}
  .app-sidebar>.brand:active .brand-avatar{transform:scale(.91)}
}
@media(max-width:850px) and (prefers-reduced-motion:reduce){
  .app-sidebar>.side-nav.dock-ready::before,.app-sidebar>.side-nav>button{transition:none}
}

/* Daily rhythm shares the overview’s horizontal timeline. */
#rhythm .rhythm-chart{display:block;position:relative;height:380px;overflow-y:auto;overflow-x:hidden;margin-top:24px;scrollbar-width:thin;overscroll-behavior-y:contain}
#rhythm .rhythm-y-axis{position:sticky;top:0;left:0;z-index:8;display:flex;flex-direction:row;justify-content:space-between;width:auto;height:27px;margin:0 62px 9px 46px;padding:0;background:#fcfcfaed;backdrop-filter:blur(12px);font-size:9px;line-height:20px}
#rhythm #hospital-rhythm{display:flex;flex-direction:column;width:100%!important;min-width:0!important;height:auto;gap:13px;padding:0 0 12px}
#rhythm .rhythm-day-row{display:grid;grid-template-columns:38px minmax(0,1fr) 55px;gap:8px;align-items:center;flex:none;width:100%;height:27px;min-width:0}
#rhythm .rhythm-day{grid-area:auto;position:static;font-size:10px;line-height:1.2;padding:5px 0;text-align:left;white-space:nowrap}
#rhythm .rhythm-day small{display:none}
#rhythm .rhythm-track-stack{grid-area:auto;display:block;width:auto;height:16px}
#rhythm .rhythm-lane{width:100%;height:16px;border:0;border-radius:999px;background:repeating-linear-gradient(90deg,#c5b5d61b 0,#c5b5d61b calc(25% - 1px),#ffffffa0 calc(25% - 1px),#ffffffa0 25%)}
#rhythm .sleep-block{top:0;bottom:0;height:16px;border-radius:999px;min-width:2px}
#rhythm .rhythm-count{grid-area:auto;position:static;font-size:10px;text-align:right;font-weight:450;color:#a18eaf;white-space:nowrap}
#rhythm .event-mark{top:3px;width:10px;height:10px}
#rhythm .rhythm-placeholder{line-height:16px;font-size:8px}
#rhythm .sleep-block:hover{filter:brightness(1.13)}
@media(max-width:570px){#rhythm .rhythm-y-axis{font-size:7px;margin-left:38px;margin-right:48px}#rhythm .rhythm-day-row{grid-template-columns:32px minmax(0,1fr) 44px;gap:6px}#rhythm .rhythm-day,#rhythm .rhythm-count{font-size:8px}}

#rhythm .sleep-block{right:auto;transform:none}

/* Quiet historical marks; retain the selected value and pointer/keyboard hit targets. */
#growth-chart .growth-point .dot{display:none}
.sleep-preview-history .sleep-preview-row:not(.latest) .sleep-preview-lane{height:6px}

/* Event times use the same horizontal window as sleep, overriding legacy vertical positioning. */
#rhythm .rhythm-day-row{grid-template-rows:none}
#rhythm .event-mark{top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;border:0;box-shadow:none}
#rhythm .event-mark:is(.overlap,.boundary):not(:focus-visible){outline:none}
#rhythm .event-mark.reported{background:#16858e}
#rhythm .event-mark.estimated{background:#b68442}

/* Day 47 portrait for navigation; the birth archive keeps its Day 0 photo. */
.app-sidebar .brand .brand-avatar{border:0;outline:0;box-shadow:none;border-radius:50%;object-fit:cover;object-position:55% 0;background:#b6c4ac}

/* Birth measurements give numerals priority; portrait crop stays inside its frame. */
.birth-portrait-frame{display:block;width:84px;height:84px;flex:none;overflow:hidden;border-radius:26px;border:4px solid #fff;box-shadow:0 5px 18px #39483c10}
.birth-portrait-frame .birth-portrait{display:block;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;object-fit:cover;object-position:40% 50%;transform:scale(1.8);transform-origin:40% 52%}
#birth .birth-data strong{font-size:33px;font-weight:450;line-height:1.2;white-space:nowrap}
#birth .birth-data strong small{font-size:12px;font-weight:400;letter-spacing:0;color:#869184;margin-left:2px}
@media(max-width:570px){.birth-portrait-frame{width:66px;height:66px;border-radius:21px;border-width:3px}#birth .birth-data strong{font-size:30px}#birth .birth-data strong small{font-size:11px}}

/* Initialization failures must never leave Safari looking like a blank page. */
html.reveal-fallback .wrap,html.reveal-fallback [data-reveal-pending],html.reveal-fallback [data-reveal-order]{opacity:1!important;transform:none!important;filter:none!important;animation:none!important;pointer-events:auto}

/* Align the visible numerals with the two hero text lines. */
.wrap .top{--hero-eyebrow-gap:17px;align-items:start}
.hero-copy .eyebrow{line-height:10px;margin-bottom:var(--hero-eyebrow-gap)}
.top .flip-age-card{
  --flap-h:108px;
  --counter-size:86px;
  --counter-lift:18px;
  position:relative;
  top:calc(-1 * var(--counter-lift));
  align-self:start;
  height:auto;
  padding-top:calc(10px + var(--hero-eyebrow-gap));
}
.top .flip-age-card #birth-age-days{font-size:var(--counter-size)}
@media(max-width:1150px){
  .top .flip-age-card{--flap-h:105px;--counter-lift:17px}
}
.flip-age-card .age-main{margin:0}
.flip-age-card .age-kicker{position:absolute;top:0;line-height:10px}
@media(max-width:570px){
  .wrap .top{--hero-eyebrow-gap:13px}
  .top .flip-age-card{--flap-h:85px;--counter-size:72px;--counter-lift:13px}
  .hero-copy .hero-note{max-width:none}
  .flip-age-card .age-kicker{display:none}
  #growth .growth-card-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    column-gap:8px;
    row-gap:0;
  }
  .growth-card-head>div:first-child{display:contents}
  .growth-card-head .card-kicker{grid-area:1 / 1}
  .growth-card-head h2{grid-area:2 / 1}
  .growth-card-head .caption{grid-area:3 / 1 / 4 / -1}
  :is(#growth-switch,#feed-switch){
    grid-area:1 / 2 / 3 / 3;
    display:inline-flex;
    flex-wrap:nowrap;
    margin:0;
  }
  #growth-switch button{flex:0 0 auto;white-space:nowrap}
}
@media(max-width:360px){
  .wrap .top{grid-template-columns:minmax(0,1fr) 100px}
  .hero-copy .title{font-size:21px}
  .hero-copy .hero-note{font-size:13px}
  .top .flip-age-card{width:100%;--flap-w:45px;--flap-h:75px;--counter-size:58px;--counter-lift:12px}
}

/* Slide a single indicator behind the equal-width growth tabs. */
#growth :is(#growth-switch,#feed-switch){
  --tab-index:0;
  --tab-count:3;
  position:relative;
  isolation:isolate;
  display:inline-grid;
  grid-template-columns:repeat(var(--tab-count),1fr);
  gap:1px;
  padding:3px;
}
#growth #feed-switch{--tab-count:2}
#growth :is(#growth-switch,#feed-switch):has(button:nth-child(2).active){--tab-index:1}
#growth :is(#growth-switch,#feed-switch):has(button:nth-child(3).active){--tab-index:2}
:is(#growth-switch,#feed-switch)::before{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  inset:3px auto 3px 3px;
  width:calc((100% - 5px) / var(--tab-count) - 1px);
  border-radius:14px;
  background:var(--module-color);
  transform:translateX(calc(var(--tab-index) * (100% + 1px)));
  transition:transform 240ms cubic-bezier(.22,.8,.3,1);
}
#growth :is(#growth-switch,#feed-switch) button{white-space:nowrap}
#growth :is(#growth-switch,#feed-switch) button.active{background:transparent;box-shadow:none}
@media(prefers-reduced-motion:reduce){
  :is(#growth-switch,#feed-switch)::before{transition:none}
}

@media(min-width:851px){
  #rhythm{align-items:stretch}
  #rhythm > .card:first-child{
    contain:size;
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  #elimination-chart.stool-calendar{
    flex:1 1 0;
    min-height:0;
    align-content:center;
  }
  #elimination-chart.stool-calendar svg{max-height:100%}
}

#elimination-chart .stool-calendar-layout{height:100%;display:flex;flex-direction:column}
#elimination-chart .stool-calendar-plot{flex:1;min-height:0;display:grid;align-items:center;overflow:hidden}
#elimination-chart.stool-calendar .stool-calendar-layout svg{display:block;width:100%;max-height:none}
#elimination-chart .stool-calendar-axis{flex:none}
#elimination-chart .stool-calendar-axis .axis-label{font-size:11px}

.app-sidebar .brand > .brand-avatar{display:block;position:relative;overflow:hidden}
.app-sidebar .brand-avatar img{
  position:absolute;
  width:111%;
  max-width:none;
  height:auto;
  left:-1.5%;
  top:-2%;
}

/* Hide horizontal guides in the growth and feeding plots. */
#growth-chart line.axis,#feed-chart line.axis{display:none}

/* Soft contact and ambient shadows for the white glass panels. */
:root{
  --white-card-shadow:inset 0 1px 0 #ffffffd9,
    0 2px 5px -2px #5b49361a,
    0 14px 32px -12px #5b493622,
    0 28px 52px -28px #5b493619;
}
#dashboard-content .card:not(.gallery-section .card),
#v3-moments :is(.memory-card,.rhythm-invite){
  box-shadow:var(--white-card-shadow);
}

/* Page-level glass sits behind the existing translucent panels. */
body:has(#overview[data-view="rhythm"])::before{
  background:
    repeating-linear-gradient(90deg,#fff7 0,transparent 9px,#b49bd012 104px,#bdcb831e 110px),
    linear-gradient(110deg,#f0e9fb 0%,#f0f5d8 34%,#f2ebfb 67%,#f1f6dc 100%);
}
body:has(#overview[data-view="fullmoon"])::before{
  background:
    repeating-linear-gradient(90deg,#fff6 0,transparent 9px,#af34331a 104px,#c7584e22 110px),
    radial-gradient(ellipse at 84% 8%,#eaa39b 0%,transparent 66%),
    radial-gradient(ellipse at 4% 94%,#edb5ad 0%,transparent 60%),
    linear-gradient(145deg,#fff8f5,#f6dbd6);
}
body:has(#overview[data-view="gallery"])::before{
  background:
    repeating-linear-gradient(90deg,#fff6 0,transparent 9px,#73787e0c 104px,#7a838c12 110px),
    radial-gradient(ellipse at 84% 10%,#e4e7ea,transparent 65%),
    linear-gradient(145deg,#f8f8f8,#eaeaea);
}
body::before{
  background:
    repeating-linear-gradient(90deg,#fff7 0,transparent 9px,#c79b7912 104px,#d4af901e 110px),
    radial-gradient(ellipse at 82% 8%,#fcf0e5,transparent 67%),
    linear-gradient(145deg,#fdfcf9,#f8f4ee);
}
@media (min-width:851px){
  .app-sidebar{
    background:
      radial-gradient(ellipse 120% 42% at 38% 0%,#ffffff98,transparent 100%),
      linear-gradient(172deg,#ffffff57,#ffffff29 56%,#fffaf246);
    border-color:#ffffff79;
    border-top-color:#ffffffe0;
    -webkit-backdrop-filter:blur(15px) saturate(1.12);
    backdrop-filter:blur(15px) saturate(1.12);
    box-shadow:
      inset 0 1px 0 #ffffffa6,
      0 2px 4px -2px #4d39261f,
      0 12px 26px -14px #4d392625,
      0 24px 48px -28px #4d39261e;
  }
}
#journal-glass{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s ease;
}
#journal-glass[data-ready]{opacity:.76}
@media (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce){
  #journal-glass{display:none}
}

.hero-copy .sub{font-size:clamp(11px,1.15vw,14px);line-height:1.55}
.section-context .update-label{margin-inline-start:auto;flex:none;justify-content:flex-end;text-align:right}
#birth-age-weeks:not(:empty){margin-inline-end:6px}
#birth-age-weeks:empty{display:none}

.wrap{--counter-right-inset:12px}
.wrap .top{padding-inline-end:var(--counter-right-inset)}
.wrap .top .flip-age-card{align-items:flex-end;margin-inline-end:0}
.section-context .update-label{margin-inline-end:var(--counter-right-inset)}
@media(max-width:570px){.wrap{--counter-right-inset:4px}}

/* Keep the footer at the viewport bottom when the active view is short. */
.app-shell > .wrap{
  display:flex;
  flex-direction:column;
  align-self:stretch;
}
.wrap > #dashboard-content{flex:1 0 auto}
@media(max-width:850px){
  .app-shell > .wrap{min-height:100vh;min-height:100dvh}
}
.gallery-section .gallery-item{border:0}

.gallery-lightbox .lightbox-figure{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) auto;
  width:100%;
  max-width:1100px;
  min-height:0;
}
.lightbox-stage{
  display:grid;
  place-items:center;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  width:100%;
  height:100%;
  min-height:0;
}
.lightbox-figure .lightbox-stage img{max-height:100%;box-shadow:none}
.lightbox-stage img[hidden],.lightbox-status:empty{display:none}
.lightbox-status{display:grid;justify-items:center;gap:12px;color:#fff;font-size:13px}
.lightbox-stage[aria-busy="true"] .lightbox-status::before{
  content:"";
  width:24px;
  height:24px;
  border:2px solid #fff4;
  border-top-color:#fff;
  border-radius:50%;
  animation:lightbox-loading .8s linear infinite;
}
@keyframes lightbox-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  .lightbox-stage[aria-busy="true"] .lightbox-status::before{animation:none}
}
.gallery-lightbox .lightbox-shell{
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  justify-items:stretch;
}

/* Tabular digits keep each position steady during the count. */
.stat-countup{font-variant-numeric:tabular-nums}


#growth > .card{padding-block:clamp(17px,2vw,23px)}
#growth .card-head{min-height:0;align-content:flex-start;margin-bottom:8px}
#growth .growth-chart-meta{min-height:27px}
.feed-stage-row{position:relative;height:29px;flex:none;color:var(--feeding);font-size:11px}
.feed-stage-row span{position:absolute;top:2px;padding:2px 3px;border-bottom:1px solid currentColor;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.feed-stage-row span{padding-bottom:6px}
.feed-stage-row span:not(.feed-stage-home)::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  translate:-50% 0;
  border:3px solid transparent;
  border-top-color:currentColor;
  border-bottom:0;
}
.feed-stage-row .feed-stage-home{
  padding-inline-start:0;
  border-bottom:0;
  text-align:start;
}
.feed-stage-row .feed-stage-home::before{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  margin-inline-end:5px;
  border-radius:50%;
  background:currentColor;
  vertical-align:2px;
}
