.chart-legend{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:5px;font-size:9px;color:#ad8ca0;line-height:1.5}.chart-legend span{display:inline-flex;align-items:center;gap:5px}.legend-band{display:inline-block;width:15px;height:9px;border-radius:3px;background:#a8d9b9;opacity:.8}.legend-line{display:inline-block;width:15px;height:0;border-top:3px solid var(--legend-color);border-radius:4px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#df6b75}.chart-hint{margin-top:5px;font-size:9px;color:#b89daf;line-height:1.5}
:root{--pink:#ed78aa;--pink-deep:#cf538a;--pink-dark:#985276;--pink-light:#fff0f6;--pink-pale:#fff8fb;--lilac:#f1eaff;--cream:#fffdfd;--ink:#554653;--muted:#a28a9b;--line:#f4dce8;--green:#70b99a;--yellow:#f5be67;--red:#df718b;--shadow:0 10px 28px rgba(199,104,151,.10);--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff9fc;color:var(--ink);font-family:ui-rounded,"SF Pro Rounded","Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #f5a9ce;outline-offset:2px}a{color:inherit;text-decoration:none}.login-wrap{min-height:100vh;display:grid;place-items:center;position:relative;overflow:hidden;padding:28px 18px;background:radial-gradient(circle at 15% 16%,#ffe3f0 0,transparent 27%),radial-gradient(circle at 87% 80%,#eee4ff 0,transparent 30%),linear-gradient(135deg,#fff5fa,#fffafc 55%,#fff4fa)}.login-wrap:before,.login-wrap:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.login-wrap:before{width:360px;height:360px;left:-150px;bottom:-120px;background:#ffdfed80}.login-wrap:after{width:300px;height:300px;right:-100px;top:-100px;background:#e9dfff80}.login-card{width:min(100%,430px);background:#ffffffdc;backdrop-filter:blur(14px);border:1px solid #fff;border-radius:32px;padding:38px 38px 27px;box-shadow:0 24px 70px #c777a51c;position:relative;z-index:1}.brand-mark{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:16px;background:linear-gradient(140deg,#ffaed0,#ec6fa6);color:white;font-size:27px;box-shadow:0 8px 18px #ec6fa63a}.brand-mark.large{width:62px;height:62px;font-size:36px;border-radius:22px}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:800;color:#d88bb0;margin:23px 0 8px}.login-card h1{font-size:32px;line-height:1.38;margin:0;font-weight:800;letter-spacing:-.6px}.login-card h1 span{color:var(--pink-deep)}.login-subtitle{color:#ad91a2;margin:14px 0 25px;font-size:14px}.login-form{display:flex;flex-direction:column;gap:9px}.login-form label{font-size:12px;font-weight:700;color:#94768a;margin-top:5px}.login-form input{width:100%;height:48px;border:1px solid #f3d7e5;background:#fff9fc;border-radius:14px;padding:0 15px;color:var(--ink);transition:.2s}.login-form input:focus{border-color:#ed9ec1;background:#fff}.primary-button{background:linear-gradient(135deg,#ef8ab6,#df65a0);color:white;border:0;border-radius:15px;min-height:46px;padding:11px 18px;font-weight:800;box-shadow:0 8px 18px #ec78ac35;transition:transform .18s,box-shadow .18s}.primary-button:hover{transform:translateY(-1px);box-shadow:0 11px 24px #ec78ac42}.login-button{margin-top:13px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px}.login-button span{font-size:19px}.login-foot{border-top:1px dashed #efd3e2;margin-top:22px;padding-top:15px;text-align:center;color:#bb9eb0;font-size:11px}.login-error{background:#fff0f2;color:#bd496e;border:1px solid #ffd6e2;padding:10px 13px;border-radius:12px;margin-bottom:14px;font-size:13px}.login-decor{position:absolute;z-index:0;color:#ee9cc2;opacity:.7;user-select:none}.decor-one{font-size:75px;top:9%;left:18%;transform:rotate(-18deg)}.decor-two{font-size:80px;right:14%;top:20%;transform:rotate(12deg)}.decor-three{font-size:92px;bottom:12%;right:16%;color:#d6c2ef}.login-bottom-note{position:absolute;bottom:20px;color:#c5a8b8;font-size:10px;letter-spacing:1.5px;z-index:1}
.app-shell{min-height:100vh;display:flex;max-width:1800px;margin:auto}.sidebar{width:252px;flex:0 0 252px;background:linear-gradient(180deg,#fff3f8 0%,#fff7fb 70%,#fff9fc 100%);border-right:1px solid #f6e3ed;padding:26px 17px 18px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:2px 8px 26px;border-bottom:1px solid #f5e0ea}.brand strong{display:block;font-size:15px;color:#a9507b;font-weight:850;white-space:nowrap}.brand small{display:block;font-size:10px;color:#c09caf;margin-top:2px}.side-label{font-size:10px;letter-spacing:1.2px;color:#c2a0b4;font-weight:800;padding:23px 11px 10px}.side-nav{display:grid;gap:5px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#9e8194;padding:12px 13px;border-radius:14px;text-align:left;transition:background .18s,color .18s,transform .18s;font-weight:650;font-size:13px}.nav-item:hover{background:#fff0f7;color:#bf5d8e;transform:translateX(2px)}.nav-item.active{background:linear-gradient(120deg,#f7c3dc,#f8d7e7);box-shadow:0 5px 14px #db83ae20;color:#a64a79;font-weight:800}.nav-emoji{font-size:19px;width:24px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px dashed #f0d9e5;padding-top:14px}.tiny-stars{color:#eaa6c7;text-align:center;letter-spacing:5px;font-size:12px}.sidebar-bottom p{font-size:11px;text-align:center;color:#b795a9;margin:7px 0 13px}.logout-form{margin-top:4px}.logout-button{display:block;border:0;background:none;color:#b69aab;padding:11px 13px;font-size:12px;width:100%;text-align:left;border-radius:12px}.logout-button:hover{background:#fff0f6;color:#bf5d8e}
.main-area{min-width:0;flex:1;padding:30px clamp(20px,3vw,48px) 14px;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:25px}.topbar-kicker{font-size:9px;letter-spacing:2px;color:#c7a3b8;font-weight:800;margin-bottom:5px}.topbar h1{margin:0;color:#80546e;font-size:28px;letter-spacing:-.6px;line-height:1.25}.title-sparkle{font-size:17px;color:#ed9ac1;vertical-align:top;margin-left:4px}.topbar-right{display:flex;align-items:center;gap:14px}.today-chip{background:#fff;border:1px solid #f6e4ed;border-radius:20px;padding:10px 15px;display:flex;gap:9px;align-items:center;color:#ac8aa0;font-size:12px;box-shadow:0 3px 14px #d39bb51c;white-space:nowrap}.mobile-menu{display:none;border:1px solid var(--line);background:#fff;border-radius:12px;width:42px;height:42px;color:var(--pink-deep)}.page-content{flex:1;min-height:300px}.app-footer{padding:18px 0 8px;text-align:center;font-size:11px;color:#c7a7b9}.app-footer span{color:#ed8ab5;font-size:15px}.app-notice{background:#fff3f8;border:1px solid #f7d9e7;border-radius:14px;padding:12px 16px;color:#a95f83;margin:-8px 0 18px;font-size:13px}
.hero-panel{position:relative;overflow:hidden;border-radius:26px;padding:28px 30px;background:linear-gradient(115deg,#fbd5e7 0%,#ffeaf3 50%,#f1e9ff 100%);min-height:186px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow);margin-bottom:22px}.hero-panel:after{content:"✿";position:absolute;right:15%;top:-47px;font-size:165px;line-height:1;color:#ffffff7a;transform:rotate(16deg)}.hero-copy{position:relative;z-index:1;max-width:620px}.hero-copy .kicker{color:#ba7a9c;font-size:10px;font-weight:800;letter-spacing:1.7px}.hero-copy h2{font-size:25px;line-height:1.4;color:#995175;margin:8px 0 7px}.hero-copy p{color:#aa819a;font-size:13px;margin:0;max-width:510px}.hero-actions{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.hero-art{position:relative;z-index:1;flex:0 0 145px;height:130px;display:grid;place-items:center}.hero-moon{width:105px;height:105px;border-radius:50%;background:#fff7fcbd;display:grid;place-items:center;font-size:48px;box-shadow:inset -9px -7px 0 #f9cce0;transform:rotate(-10deg)}.floating-star{position:absolute;color:#fff;font-size:24px;text-shadow:0 2px 6px #d68eb46a}.floating-star.one{top:0;right:11px}.floating-star.two{left:2px;bottom:9px;font-size:17px}.floating-star.three{right:0;bottom:6px;font-size:14px}.soft-button,.outline-button,.danger-button,.icon-button{border:1px solid #f0d6e4;background:#fff9fc;color:#ae6086;border-radius:12px;padding:9px 13px;font-size:12px;font-weight:750;transition:.2s;display:inline-flex;align-items:center;justify-content:center;gap:7px}.soft-button{background:#fff;color:#af5782;border-color:#fff;box-shadow:0 5px 12px #dba4bd24}.soft-button:hover,.outline-button:hover{transform:translateY(-1px);box-shadow:0 7px 16px #dba4bd25}.outline-button{background:#ffffffa8}.danger-button{color:#c85d7d;background:#fff3f5;border-color:#f7d8e0}.danger-button:hover{background:#ffe7ed}.icon-button{width:34px;height:34px;padding:0;font-size:14px}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}.section-head h2{font-size:17px;margin:0;color:#815570}.section-head p{margin:4px 0 0;color:#b39aaa;font-size:12px}.section-title-emoji{margin-right:7px}.muted{color:var(--muted)}.small-muted{font-size:11px;color:#b59aaa}.grid{display:grid;gap:15px}.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.summary-card{border:1px solid #f5e4ec;background:#fff;border-radius:19px;padding:17px 18px;display:flex;align-items:center;gap:13px;box-shadow:0 5px 20px #e6aec61a;min-width:0}.summary-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:16px;font-size:22px;background:#fff0f6}.summary-card:nth-child(2) .summary-icon{background:#f1eaff}.summary-card:nth-child(3) .summary-icon{background:#e9f8f0}.summary-card:nth-child(4) .summary-icon{background:#fff4dd}.summary-value{font-size:23px;font-weight:850;color:#865673;line-height:1.1}.summary-label{font-size:11px;color:#b09aab;margin-top:5px;white-space:nowrap}.two-column{grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr)}.three-column{grid-template-columns:repeat(3,minmax(0,1fr))}.panel{background:#fff;border:1px solid #f5e4ec;border-radius:22px;padding:19px;box-shadow:0 5px 20px #e6aec615;min-width:0}.panel h3{margin:0;color:#875972;font-size:15px}.panel-sub{font-size:11px;color:#b29aac;margin:5px 0 15px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.panel-head .soft-button,.panel-head .outline-button{padding:7px 10px;font-size:11px}.empty-state{min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#b79caf;font-size:12px;padding:20px}.empty-art{font-size:31px;opacity:.85;margin-bottom:7px}.empty-state p{margin:0}.empty-state .soft-button{margin-top:13px}.reminder-list{display:grid;gap:8px}.reminder-item{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border-radius:13px;background:#fff6fa;border:1px solid #fae4ed}.reminder-item.warning{background:#fff8ec;border-color:#f8e8cb}.reminder-item.danger{background:#fff1f3;border-color:#f7d5dd}.reminder-icon{font-size:18px}.reminder-item strong{display:block;font-size:12px;color:#9b5d7c}.reminder-item p{font-size:11px;color:#b08ba0;margin:3px 0 0}.reminder-pill{margin-left:auto;font-size:10px;border-radius:99px;padding:4px 8px;white-space:nowrap;color:#ad5e83;background:#ffe3ef}.reminder-item.warning .reminder-pill{color:#9b752f;background:#ffedc9}.reminder-item.danger .reminder-pill{color:#b64969;background:#ffdbe4}.quick-link{display:flex;align-items:center;gap:10px;background:#fff8fb;border:1px solid #f7e5ef;border-radius:15px;padding:12px;color:#a46b8b;min-width:0;text-align:left}.quick-link:hover{background:#fff0f7}.quick-link span:first-child{font-size:21px}.quick-link strong{display:block;font-size:12px}.quick-link small{display:block;font-size:10px;color:#bf9bb1;margin-top:2px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:13px}.mini-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mini-photo{border-radius:14px;overflow:hidden;aspect-ratio:1;background:#fff0f6;position:relative;border:1px solid #f5dce8}.mini-photo img{width:100%;height:100%;object-fit:cover;display:block}.mini-photo .video-mark{position:absolute;inset:auto 8px 8px auto;background:#ffffffdd;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;color:#d45e96}.mini-photo-label{font-size:10px;color:#ad8da0;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wish-card,.diary-card,.record-card{background:#fff;border:1px solid #f5e3ec;border-radius:20px;padding:18px;box-shadow:0 5px 16px #dfa6c21b;min-width:0;position:relative}.wish-card.done{opacity:.76;background:#fffbfd}.card-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.wish-title{font-size:15px;line-height:1.4;color:#875672;font-weight:800;margin:0}.wish-detail{font-size:12px;color:#af95a7;margin:11px 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.tag{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:800;background:#fff0f6;color:#bc7097;white-space:nowrap}.tag.done{background:#edf9f2;color:#5a9d7c}.tag.warning{background:#fff3da;color:#a57d37}.tag.danger{background:#ffe9ed;color:#bf5475}.card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:14px}.card-actions .outline-button,.card-actions .danger-button{padding:6px 10px;font-size:11px}.album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.album-card{background:#fff;border:1px solid #f4e1eb;border-radius:20px;overflow:hidden;box-shadow:0 5px 16px #dfa6c21b;min-width:0}.album-cover{height:180px;position:relative;background:linear-gradient(130deg,#ffe6f1,#f0e6ff);display:grid;place-items:center;overflow:hidden;cursor:pointer}.album-cover img{width:100%;height:100%;object-fit:cover;display:block}.album-cover .album-cover-count{position:absolute;bottom:10px;right:10px;background:#fffdf3e8;border-radius:99px;padding:5px 10px;font-size:10px;color:#9e6380}.album-cover-placeholder{font-size:46px;color:#db8db3}.album-info{padding:14px 15px}.album-info h3{font-size:14px;margin:0;color:#865670;overflow-wrap:anywhere}.album-info p{font-size:11px;color:#b39aac;min-height:20px;margin:5px 0 12px;overflow-wrap:anywhere}.media-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.media-toolbar select{max-width:230px}.media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.media-card{border:1px solid #f2dce7;background:white;border-radius:16px;overflow:hidden;position:relative;min-width:0}.media-thumb{aspect-ratio:1;display:block;width:100%;border:0;padding:0;background:#fff1f7;position:relative;overflow:hidden}.media-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.media-thumb:hover img{transform:scale(1.04)}.media-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fffdf0e8;color:#d45d96;border-radius:50%;height:42px;width:42px;display:grid;place-items:center;font-size:17px;box-shadow:0 3px 12px #98527626}.media-info{padding:9px 10px 10px}.media-name{display:block;font-size:10px;color:#a9849c;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.media-meta{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:7px}.media-meta .small-muted{font-size:9px}.media-delete{border:0;background:#fff0f5;color:#c16c91;border-radius:8px;padding:4px 7px;font-size:10px}.empty-wide{grid-column:1/-1}
.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.metric-card{padding:17px;background:#fff;border:1px solid #f3e2eb;border-radius:20px;min-width:0;box-shadow:0 5px 18px #e3aac21a}.metric-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.metric-head h3{font-size:13px;color:#8c5d77;margin:0}.metric-unit{font-size:10px;color:#bba3b3;background:#fff6fa;padding:4px 7px;border-radius:9px}.chart-wrap{height:190px;margin-top:12px;position:relative}.growth-chart-panel{margin-bottom:18px;padding:18px 22px 14px}.growth-chart-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:4px;background:#fff7fb;border:1px solid #f7e4ee;border-radius:15px;margin-bottom:19px}.growth-chart-tab{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:11px;padding:11px 14px;background:transparent;color:#a77e96;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}.growth-chart-tab:hover{background:#fff0f7;color:#a95d85}.growth-chart-tab.active{background:#fff;color:#a94e80;border-color:#f1c7dc;box-shadow:0 3px 12px #e3aac21c}.growth-chart-heading{margin:0 2px}.growth-chart-heading h3{font-size:15px}.growth-chart-panel .chart-wrap{height:340px;margin-top:15px}.growth-chart-footnote{font-size:11px;line-height:1.7;color:#b093a5;margin:5px 2px 0}.chart-wrap svg{width:100%;height:100%;display:block;overflow:visible}.chart-empty{height:170px;display:grid;place-items:center;color:#bea5b6;font-size:11px;text-align:center}.growth-table-wrap{overflow:auto;border-radius:14px}.data-table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px}.data-table th{text-align:left;background:#fff6fa;color:#a17b91;font-weight:750;padding:11px 12px;white-space:nowrap}.data-table td{padding:11px 12px;border-bottom:1px solid #f7eaf1;color:#987d91;vertical-align:top}.data-table tr:last-child td{border-bottom:0}.guidance-box{background:linear-gradient(125deg,#fff6fa,#fff9fe);border:1px dashed #f1cbdc;border-radius:16px;padding:14px 16px;margin-bottom:16px}.guidance-box strong{font-size:12px;color:#aa678a}.guidance-box p{font-size:11px;color:#ab8b9f;margin:5px 0 0;line-height:1.7}.diary-card{padding:18px 19px}.diary-date{font-size:11px;color:#c183a4;font-weight:800;letter-spacing:.5px}.diary-content{white-space:pre-wrap;overflow-wrap:anywhere;color:#8f7085;font-size:13px;margin:10px 0 14px;line-height:1.8}.diary-bottom{border-top:1px dashed #f1dfE8;padding-top:10px;display:flex;justify-content:space-between;align-items:center;gap:7px}.vaccine-list,.insurance-list{display:grid;gap:10px}.vaccine-row,.insurance-row{display:flex;gap:12px;align-items:flex-start;border:1px solid #f5e2ec;border-radius:17px;padding:14px;background:#fff;min-width:0}.vaccine-icon,.insurance-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#fff0f7;border-radius:14px;font-size:21px}.vaccine-row .row-main,.insurance-row .row-main{min-width:0;flex:1}.row-main h3{margin:1px 0 5px;color:#855670;font-size:14px;overflow-wrap:anywhere}.row-main p{font-size:11px;color:#b098aa;margin:4px 0;overflow-wrap:anywhere}.row-end{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;align-items:flex-start}.filter-tabs{display:flex;gap:6px;flex-wrap:wrap}.filter-tab{border:1px solid #f4dfea;color:#b38ba4;border-radius:99px;background:white;padding:7px 12px;font-size:11px}.filter-tab.active{background:#ffe8f2;color:#ad5e86;border-color:#f7d3e4;font-weight:800}.profile-panel{max-width:760px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#a8849c;font-weight:800}.field input,.field textarea,.field select,.input-control{width:100%;min-width:0;border:1px solid #efd7e4;border-radius:12px;padding:10px 12px;background:#fffafd;color:#6e5265;transition:.18s}.field input,.field select{min-height:42px}.field textarea{resize:vertical;min-height:94px}.field input:focus,.field textarea:focus,.field select:focus{outline:0;border-color:#e99bc0;box-shadow:0 0 0 3px #fce4ef}.field-help{font-size:10px;color:#bd9daf;font-weight:400}.form-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.modal-backdrop{position:fixed;inset:0;background:#57364b55;backdrop-filter:blur(5px);z-index:50;display:grid;place-items:center;padding:18px;animation:fadeIn .15s ease}.modal-card{width:min(100%,560px);max-height:min(88vh,900px);overflow:auto;background:#fffafd;border:1px solid #fff;border-radius:23px;box-shadow:0 24px 80px #73425a40;animation:popIn .18s ease}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px 13px;border-bottom:1px solid #f5e3ed;position:sticky;top:0;background:#fffafd;z-index:2}.modal-head h2{font-size:17px;color:#875672;margin:0}.modal-close{width:33px;height:33px;border:0;border-radius:11px;background:#fff0f6;color:#b5658d;font-size:18px}.modal-body{padding:18px 22px 21px}.modal-desc{font-size:11px;color:#b093a5;margin:0 0 15px}.modal-card.viewer-modal{width:min(1060px,96vw);background:#231e28;border-color:#42333e;max-height:94vh;display:flex;flex-direction:column}.viewer-modal .modal-head{background:#231e28;border-color:#483542;color:#f7e7f0}.viewer-modal .modal-head h2{color:#f4dce8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-modal .modal-close{background:#3e2f3b;color:white;flex:0 0 33px}.viewer-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:210px;max-height:calc(94vh - 105px);padding:8px 62px 18px;touch-action:pan-y}.viewer-stage img,.viewer-stage video{max-width:100%;max-height:calc(94vh - 155px);width:auto;height:auto;object-fit:contain;display:block;border-radius:8px}.viewer-stage video{width:min(100%,900px);background:#100e12}.viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #725466;background:#ffffff19;color:#fff;font-size:24px;border-radius:15px;width:44px;height:54px}.viewer-arrow:hover{background:#ffffff33}.viewer-arrow.prev{left:11px}.viewer-arrow.next{right:11px}.viewer-footer{text-align:center;color:#c8adbd;font-size:11px;padding:0 15px 18px}.viewer-counter{color:#8f6e82;margin-left:10px}.upload-drop{border:1px dashed #edb4d0;border-radius:16px;padding:25px 16px;text-align:center;background:#fff5fa;color:#b17a9a}.upload-drop strong{display:block;color:#a85b82;font-size:13px}.upload-drop p{font-size:11px;margin:6px 0 13px}.upload-drop input{max-width:100%;font-size:11px;color:#b18fa4}.progress-track{height:8px;background:#f7dfeb;border-radius:99px;overflow:hidden;margin:15px 0 4px}.progress-track span{height:100%;display:block;width:0;background:linear-gradient(90deg,#f5a2c6,#dc66a1);border-radius:99px;transition:width .2s}.toast-root{position:fixed;right:20px;bottom:20px;display:grid;gap:8px;z-index:100;pointer-events:none}.toast{border:1px solid #f1d7e4;background:#fffdfd;color:#95627d;box-shadow:0 8px 26px #8e56751c;border-radius:14px;padding:12px 16px;font-size:12px;min-width:200px;max-width:min(380px,calc(100vw - 35px));animation:popIn .18s ease}.toast.error{color:#b64e70;background:#fff3f5;border-color:#f4d2dd}.loading-state{display:grid;place-items:center;min-height:300px;color:#b293a6}.loading-heart{font-size:46px;display:block;color:#ef91ba;animation:heartbeat 1.1s infinite}.loading-state p{font-size:12px}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes popIn{from{opacity:0;transform:translateY(7px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes heartbeat{0%,100%{transform:scale(1)}35%{transform:scale(1.16)}}
@media(max-width:1200px){.sidebar{width:225px;flex-basis:225px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-grid,.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{flex-basis:120px}.hero-panel{padding:24px}.hero-copy h2{font-size:22px}}
@media(max-width:850px){.app-shell{display:block}.sidebar{position:fixed;z-index:35;top:0;left:0;bottom:0;width:min(280px,84vw);height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 35px #86506b22}.sidebar.open{transform:translateX(0)}.main-area{padding:22px 18px 12px}.mobile-menu{display:block}.topbar{margin-bottom:21px}.topbar h1{font-size:24px}.today-chip{display:none}.sidebar-backdrop{position:fixed;inset:0;background:#4a2d4050;z-index:34}.two-column{grid-template-columns:1fr}.three-column,.metric-grid{grid-template-columns:1fr}.metric-card .chart-wrap{height:205px}.growth-chart-panel .chart-wrap{height:280px}.growth-chart-panel{padding:15px}.hero-panel{min-height:190px}.hero-art{flex-basis:90px}.hero-moon{width:85px;height:85px;font-size:39px}.hero-panel:after{right:7%;font-size:130px}}
@media(max-width:560px){.vaccine-row,.insurance-row{flex-wrap:wrap}.vaccine-row .row-main,.insurance-row .row-main{flex:1 1 calc(100% - 48px);min-width:0;overflow-wrap:break-word;word-break:normal}.vaccine-row .row-main h3,.insurance-row .row-main h3{word-break:normal;overflow-wrap:break-word;line-height:1.45}.vaccine-row .row-main p,.insurance-row .row-main p{font-size:12px;line-height:1.65;word-break:normal;overflow-wrap:anywhere}.vaccine-row .row-end,.insurance-row .row-end{flex:0 0 auto;width:100%;margin-left:45px;justify-content:flex-start}.vaccine-row .tag,.insurance-row .tag{display:inline-flex;max-width:100%;white-space:normal;overflow-wrap:anywhere}.section-head:has([data-action="new-vaccine"]),.section-head:has([data-action="new-insurance"]){flex-wrap:wrap}.section-head:has([data-action="new-vaccine"]) .primary-button,.section-head:has([data-action="new-insurance"]) .primary-button{width:100%}.main-area{padding:18px 13px 10px}.topbar{align-items:flex-start;gap:8px}.topbar-kicker{font-size:8px;letter-spacing:1.1px}.topbar h1{font-size:22px}.topbar-right{margin-top:4px}.hero-panel{padding:21px 18px;align-items:flex-start;min-height:0}.hero-copy h2{font-size:20px}.hero-copy p{font-size:12px}.hero-art{display:none}.hero-panel:after{right:-4px;top:-30px;font-size:105px}.hero-actions{gap:7px}.hero-actions .soft-button,.hero-actions .outline-button{font-size:11px;padding:8px 10px}.summary-grid{gap:9px}.summary-card{padding:12px 11px;gap:9px;border-radius:15px}.summary-icon{width:36px;height:36px;flex-basis:36px;border-radius:12px;font-size:17px}.summary-value{font-size:20px}.summary-label{font-size:10px;white-space:normal}.card-grid,.album-grid{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.media-info{padding:8px}.album-cover{height:155px}.panel{padding:15px;border-radius:18px}.section-head{align-items:flex-start}.section-head h2{font-size:15px}.quick-grid{gap:8px}.quick-link{padding:10px}.mini-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.modal-backdrop{padding:10px}.modal-card{border-radius:19px;max-height:92dvh}.modal-head{padding:16px 16px 12px}.modal-body{padding:15px 16px 18px}.viewer-stage{padding:8px 44px 14px;min-height:180px}.viewer-stage img,.viewer-stage video{max-height:calc(92dvh - 155px)}.viewer-arrow{width:34px;height:45px;font-size:19px;border-radius:12px}.viewer-arrow.prev{left:5px}.viewer-arrow.next{right:5px}.toast-root{right:10px;bottom:10px}.login-card{padding:31px 24px 23px;border-radius:27px}.login-card h1{font-size:29px}.decor-one{left:4%;top:6%}.decor-two{right:2%;top:15%}.decor-three{right:2%;bottom:12%}.growth-chart-tabs{gap:5px;padding:3px;margin-bottom:15px}.growth-chart-tab{padding:10px 7px;font-size:12px;gap:4px}.growth-chart-tab span{font-size:13px}.growth-chart-panel .chart-wrap{height:245px}.growth-chart-heading h3{font-size:14px}.growth-chart-footnote{font-size:10px}.data-table{min-width:600px}.vaccine-row,.insurance-row{gap:9px;padding:12px}.vaccine-icon,.insurance-icon{width:36px;height:36px;flex-basis:36px;font-size:18px}.row-end{flex-basis:100%;justify-content:flex-start}.row-main h3{font-size:13px}.row-main p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Growth chart readability: keep every full measurement date visible and legends from colliding. */
.growth-chart-panel .chart-wrap{height:auto;min-height:278px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#efc9dc #fff5fa;padding-bottom:4px;}
.growth-chart-panel .chart-wrap svg{display:block;height:278px;max-width:none;overflow:visible;}
.chart-legend{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 18px;margin:12px 0 2px;padding:10px 12px;border:1px solid #f4e3ec;border-radius:12px;background:#fffafd;font-size:11px;line-height:1.6;white-space:normal;}
.chart-legend span{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.chart-legend i{flex:0 0 auto;}
.chart-tooltip{position:absolute;z-index:5;max-width:min(300px,calc(100% - 16px));padding:9px 12px;border:1px solid #efccdc;border-radius:11px;background:#fffafd;color:#875672;box-shadow:0 7px 22px #8e56752b;font-size:11px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;pointer-events:none;}
.chart-tooltip[hidden]{display:none;}
.chart-point{cursor:pointer;outline:none;}
.chart-point:focus circle:last-child{stroke-width:4;}
@media(max-width:560px){.growth-chart-panel .chart-wrap{min-height:278px;}.chart-legend{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:10px;font-size:11px;}.chart-legend span{line-height:1.5}.chart-tooltip{font-size:11px;max-width:calc(100% - 16px);}}

/* Keep the growth chart inside the card; swipe horizontally to inspect the full timeline. */
.page-content,.growth-chart-panel,.growth-chart-panel .chart-wrap{min-width:0;max-width:100%;box-sizing:border-box;}
.growth-chart-panel{width:100%;overflow:hidden;}
.growth-chart-panel .chart-wrap{display:block;width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;}
.growth-chart-panel .chart-wrap>svg{flex:none;max-width:none!important;}
@media(max-width:850px){.growth-chart-panel .chart-wrap{width:100%;}}

/* Growth chart: keep legend, tip and notes fixed outside the horizontally scrolling plot. */
.growth-chart-panel .chart-wrap{min-height:0;height:auto;padding:0 0 5px;}
.growth-chart-panel .chart-wrap>svg{display:block;height:278px;max-width:none!important;}
.growth-chart-panel .chart-legend{position:relative;display:flex;flex-wrap:wrap;gap:7px 16px;margin:10px 0 8px;padding:9px 11px;white-space:normal;}
.growth-chart-panel .chart-tooltip-static{position:static;display:block;width:100%;max-width:none;min-height:40px;box-sizing:border-box;margin:8px 0 7px;padding:9px 11px;border:1px solid #efccdc;border-radius:11px;background:#fffafd;color:#a17b91;box-shadow:none;font-size:11px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;pointer-events:auto;}
.growth-chart-panel .chart-tooltip-static.has-content{background:#fff5fa;color:#875672;border-color:#eebed4;}
.growth-chart-panel .growth-chart-footnote{margin-top:5px;}
@media(max-width:560px){
  .growth-chart-panel .chart-wrap{min-height:0;}
  .growth-chart-panel .chart-legend{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px 10px;font-size:10px;}
  .growth-chart-panel .chart-legend span{line-height:1.45;}
  .growth-chart-panel .chart-tooltip-static{min-height:44px;font-size:10px;padding:8px 9px;}
}

/* Per-media note editor in the photo/video viewer */
.viewer-note-editor{padding:0 20px 18px;color:#f4dce8;display:grid;gap:8px}.viewer-note-editor label{font-size:12px;font-weight:800;color:#f4dce8}.viewer-note-editor textarea{width:100%;min-height:72px;max-height:180px;resize:vertical;border:1px solid #5a4050;border-radius:12px;background:#302630;color:#fff7fb;padding:10px 12px;font:inherit;font-size:13px;line-height:1.6;outline:none}.viewer-note-editor textarea:focus{border-color:#e98bb7;box-shadow:0 0 0 3px #e98bb71c}.viewer-note-editor textarea::placeholder{color:#b79baa}.viewer-note-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.viewer-note-actions span{font-size:10px;color:#bda5b5}.viewer-note-actions .primary-button{flex-shrink:0;padding:9px 14px}.media-note-preview{font-size:11px;color:#a77791;line-height:1.45;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:560px){.viewer-note-editor{padding:0 12px 14px}.viewer-note-actions{align-items:flex-start;flex-direction:column}.viewer-note-actions .primary-button{width:100%}.viewer-modal{max-height:94dvh!important;overflow-y:auto}.viewer-stage{flex-shrink:0}}
