:root{
  --blue:#0961f6;
  --blue-soft:#eaf1ff;
  --ink:#262626;
  --muted:#747980;
  --line:#e5e7eb;
  --bg:#f4f5f7;
  --surface:#fff;
  --success:#257b57;
  --shadow:0 10px 28px rgba(38,38,38,.07),0 1px 2px rgba(38,38,38,.04);
  --radius:8px;
  --font:'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
button,textarea{font:inherit}
button{border:0;cursor:pointer;color:inherit}
.app-shell{width:min(100%,760px);min-height:100vh;margin:0 auto;background:var(--bg);position:relative}
.topbar{height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.brand-lockup{display:flex;align-items:center;gap:10px;min-width:0}
.brand-mark{width:34px;height:34px;border-radius:8px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:15px}
.brand-lockup div{display:flex;flex-direction:column;min-width:0}
.brand-lockup b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-lockup span{font-size:11px;color:var(--muted)}
.sync-button{display:flex;align-items:center;gap:6px;background:#f0f2f4;padding:7px 10px;border-radius:8px;color:#5e646b;font-size:12px;font-weight:650}
.sync-dot{width:7px;height:7px;border-radius:50%;background:var(--success)}
.sync-button.loading .sync-dot{background:var(--blue);animation:pulse .8s infinite alternate}
@keyframes pulse{to{opacity:.28}}
main{padding:18px 16px 112px}
.member-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;background:var(--surface);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);margin-bottom:28px}
.member-hero img{width:60px;height:60px;border-radius:50%;object-fit:cover;background:#eef3fa;border:3px solid #fff;box-shadow:0 0 0 1px #dce1e7}
.member-copy{min-width:0}
.eyebrow{display:block;font-size:11px;color:var(--muted);font-weight:650;margin-bottom:2px}
.member-copy h1{font-size:23px;line-height:1.1;margin:2px 0 5px;letter-spacing:0}
.member-copy p{margin:0;color:var(--muted);font-size:13px}
.publish-time{text-align:right;align-self:start}
.publish-time span,.publish-time b{display:block}
.publish-time span{font-size:10px;color:var(--muted)}
.publish-time b{font-size:12px;margin-top:3px}
.view{display:none}.view.active{display:block}
.update-strip{margin:-12px 0 26px;padding:11px 13px;background:#e9f0ff;border-radius:var(--radius);display:flex;align-items:center;justify-content:space-between;gap:14px;color:#345273}
.update-strip div{display:flex;align-items:center;gap:8px;min-width:0}.update-strip span{font-size:11px;color:var(--blue);font-weight:750}.update-strip b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.update-strip time{font-size:10px;color:#6a7684;flex:none}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 2px 13px}
.section-heading.compact{margin-top:28px}
.section-heading h2{font-size:20px;line-height:1.25;margin:0;letter-spacing:0}
.published-badge{flex:none;background:var(--blue-soft);color:var(--blue);font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px}
.published-badge.neutral{background:#e9ebee;color:#5d636a}
.care-panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.care-row{display:grid;grid-template-columns:35px 1fr;gap:10px;padding:17px 16px;border-top:1px solid var(--line)}
.care-row:first-child{border-top:0}
.care-primary{padding-top:19px;padding-bottom:19px}
.care-index{font-variant-numeric:tabular-nums;color:var(--blue);font-size:11px;font-weight:750;padding-top:2px}
.care-row b{font-size:14px}.care-row p{margin:4px 0 0;color:#555b62;font-size:14px;line-height:1.65}
.care-secondary{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.care-secondary>div{padding:13px 15px;min-width:0}.care-secondary>div+div{border-left:1px solid var(--line)}.care-secondary span,.care-secondary b{display:block}.care-secondary span{font-size:10px;color:var(--muted);margin-bottom:4px}.care-secondary b{font-size:12px;line-height:1.5}
.primary-action,.secondary-action{width:100%;min-height:52px;border-radius:var(--radius);font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px}
.primary-action{margin-top:12px;background:var(--blue);color:#fff;padding:0 18px;justify-content:space-between;box-shadow:0 8px 18px rgba(9,97,246,.18)}
.family-actions{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(108px,1fr);gap:10px}.contact-action{min-height:52px;margin-top:12px;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);font-weight:700}
.feedback-state{width:100%;margin-top:10px;padding:12px 14px;background:#e8f4ee;border-radius:var(--radius);color:#32634f;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}
.feedback-state[hidden]{display:none}
.feedback-state span{display:flex;flex-direction:column}.feedback-state b{font-size:13px}.feedback-state small{font-size:11px;margin-top:2px}.feedback-state em{font-size:11px;font-style:normal;font-weight:700}
.interaction-heading{margin-bottom:10px!important}.feedback-thread{width:100%;position:relative;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:15px 16px;text-align:left;display:flex;flex-direction:column}.thread-label{font-size:10px;color:var(--muted)}.feedback-thread b{font-size:13px;margin:5px 0 9px}.thread-reply{font-size:12px;line-height:1.6;color:#596068;padding-top:9px;border-top:1px solid var(--line)}.feedback-thread em{font-size:11px;color:var(--blue);font-style:normal;font-weight:700;margin-top:9px;align-self:flex-end}
.text-action{padding:4px;background:transparent;color:var(--blue);font-size:12px;font-weight:700}
.muted-label{color:var(--muted);font-size:11px}
.metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.metric{background:var(--surface);border-radius:var(--radius);padding:15px 16px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.metric span{font-size:12px;color:var(--muted)}
.metric b{font-size:28px;line-height:1.25;margin:5px 0 3px;font-variant-numeric:tabular-nums}
.metric small{font-size:12px;margin-left:3px}.metric em{font-size:11px;color:var(--success);font-style:normal}
.service-strip{margin-top:12px;background:var(--ink);color:#fff;border-radius:var(--radius);padding:17px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.service-strip .eyebrow{color:#bfc2c6}.service-strip h3{font-size:16px;margin:3px 0}.service-strip p{font-size:12px;color:#ced0d3;margin:0}
.date-block{width:54px;height:54px;background:#fff;color:var(--ink);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}
.date-block b{font-size:22px;line-height:1}.date-block small{font-size:10px;color:var(--muted);margin-top:3px}
.nutrition-list,.history-list,.report-list{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.nutrition-list div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border-top:1px solid var(--line)}
.nutrition-list div:first-child{border-top:0}.nutrition-list b{font-size:14px}.nutrition-list span{font-size:12px;color:var(--muted);text-align:right}
.assessment-panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:0 17px}
.growth-assessment{padding:19px 0 18px;border-top:1px solid var(--line)}
.growth-assessment:first-child{border-top:0}
.assessment-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.assessment-top>b{font-size:14px}.assessment-top strong{font-size:22px;margin-left:4px;font-variant-numeric:tabular-nums}.assessment-top strong small{font-size:11px;margin-left:2px}
.assessment-top>span{flex:none;background:#f1f2f4;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:700}.assessment-top>span small{font-size:10px;color:var(--muted);margin-left:3px}
.percentile-scale{height:7px;border-radius:999px;background:linear-gradient(90deg,#efc8c4 0%,#f2dfbb 24%,#dbe8fb 48%,#cfe5da 74%,#d4e0c9 100%);box-shadow:inset 0 1px 2px rgba(38,38,38,.1);position:relative;margin:0 5px}
.percentile-scale i{position:absolute;top:50%;width:15px;height:15px;border-radius:50%;background:#fff;border:2px solid var(--ink);box-shadow:0 2px 5px rgba(38,38,38,.16);transform:translate(-50%,-50%)}
.percentile-labels{display:flex;justify-content:space-between;color:#92979d;font-size:9px;font-variant-numeric:tabular-nums;margin-top:10px}
.growth-assessment p{margin:13px 0 0;padding:11px 12px;border-radius:7px;background:#f5f6f7;color:#52585f;font-size:12px;line-height:1.7}
.assessment-disclaimer{margin:0 -1px;padding:15px 1px 17px;border-top:1px dashed #dfe2e6;color:#858a90;font-size:10px;line-height:1.7}
.growth-empty{padding:32px 18px;text-align:center;color:var(--muted);font-size:13px}
.chart-panel{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:17px 14px 12px}
.chart-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 4px 12px}.chart-summary b{font-size:15px}.chart-summary span{font-size:12px;color:var(--success)}
.growth-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.growth-stat-grid>div{min-width:0;background:#f5f6f7;border-radius:7px;padding:11px 12px;display:flex;flex-direction:column}
.growth-stat-grid span{font-size:10px;color:var(--muted)}.growth-stat-grid b{font-size:17px;line-height:1.25;margin:5px 0 2px;font-variant-numeric:tabular-nums;white-space:nowrap}.growth-stat-grid b small{font-size:10px;margin-left:2px}.growth-stat-grid em{font-style:normal;font-size:10px;color:var(--success);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.growth-chart{width:100%;height:auto;display:block;overflow:visible}
.growth-chart text{font-family:var(--font);font-size:12px;fill:#8a8f95}.grid-line{stroke:#e8eaed;stroke-width:1}.axis-line{stroke:#cfd3d8;stroke-width:1.5}.trend-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-line.height{stroke:var(--blue)}.trend-line.weight{stroke:var(--ink)}.chart-point{fill:#fff;stroke-width:3}.chart-point.height{stroke:var(--blue)}.chart-point.weight{stroke:var(--ink)}
.chart-legend{display:flex;justify-content:center;gap:22px;margin:-1px 0 5px;color:#555b62;font-size:11px;font-weight:650}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend span::before{content:'';width:20px;height:3px;border-radius:3px;background:var(--blue)}.chart-legend .weight::before{background:var(--ink)}
.chart-note{font-size:11px;line-height:1.6;color:var(--muted);margin:4px 4px 0}
.history-list div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:20px;padding:15px 16px;border-top:1px solid var(--line)}
.history-list div:first-child{border-top:0}.history-list time{font-size:12px;color:var(--muted)}.history-list b{font-size:15px}.history-list span{font-size:13px;color:#666c73}
.share-panel{margin-top:22px;background:var(--ink);color:#fff;border-radius:var(--radius);padding:19px}
.share-panel .eyebrow{color:#bfc2c6}.share-panel h3{font-size:18px;margin:5px 0}.share-panel p{color:#cfd1d4;font-size:13px;line-height:1.65;margin:0 0 16px}
.secondary-action{width:auto;min-height:42px;background:#fff;color:var(--ink);padding:0 16px}
.report-list button{width:100%;background:#fff;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px;text-align:left;padding:16px;border-top:1px solid var(--line)}
.report-list button:first-child{border-top:0}.report-date{height:48px;border-radius:8px;background:#f0f2f4;display:flex;flex-direction:column;align-items:center;justify-content:center}.report-date b{font-size:17px;line-height:1}.report-date small{font-size:9px;color:var(--muted);margin-top:3px}.report-copy{display:flex;flex-direction:column;min-width:0}.report-copy b{font-size:14px}.report-copy small{font-size:12px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-arrow{color:var(--blue);font-size:19px}
.bottom-nav{position:fixed;z-index:18;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,760px);height:calc(72px + env(safe-area-inset-bottom));padding:0 18px env(safe-area-inset-bottom);background:rgba(255,255,255,.97);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,1fr)}
.bottom-nav button{position:relative;background:transparent;font-size:13px;color:#7a7f85;font-weight:650}.bottom-nav button.active{color:var(--ink)}.bottom-nav button.active::after{content:'';position:absolute;left:50%;bottom:13px;transform:translateX(-50%);width:18px;height:3px;border-radius:3px;background:var(--blue)}
.sheet-backdrop{position:fixed;inset:0;z-index:50;background:rgba(24,27,31,.44);display:flex;align-items:flex-end;justify-content:center}
.sheet-backdrop[hidden]{display:none}.sheet{width:min(100%,760px);max-height:min(88vh,760px);overflow:auto;background:#fff;border-radius:8px 8px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px rgba(0,0,0,.15)}
.sheet-handle{width:34px;height:3px;border-radius:3px;background:#d6d9dd;margin:0 auto 16px}.sheet-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:22px}.sheet-head h2{font-size:21px;margin:2px 0 0}.close-button{width:38px;height:38px;border-radius:8px;background:#f0f2f4;font-size:25px;line-height:1}
.field-label{display:block;font-size:13px;font-weight:700;margin:16px 0 8px}.segment{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.segment button{min-height:44px;border-radius:8px;background:#f0f2f4;font-weight:650}.segment button.active{background:var(--ink);color:#fff}
textarea{width:100%;resize:vertical;border:1px solid #dfe2e6;border-radius:8px;background:#f7f8f9;padding:13px 14px;outline:none;color:var(--ink);line-height:1.6}textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}textarea::placeholder{color:#a7acb1}.submit-feedback{justify-content:center;margin-top:16px}
.content-sheet{min-height:430px}.content-body-section{padding:14px 0;border-top:1px solid var(--line)}.content-body-section:first-child{border-top:0}.content-body-section span{font-size:11px;color:var(--muted)}.content-body-section h3{font-size:16px;margin:4px 0 7px}.content-body-section p{font-size:14px;color:#555b62;line-height:1.75;margin:0}.growth-card-preview{background:var(--ink);color:#fff;border-radius:8px;padding:24px 20px;margin-bottom:16px}.growth-card-preview small{color:#c6c9cd}.growth-card-preview h3{font-size:28px;margin:28px 0 8px}.growth-card-preview p{color:#d4d6d8;margin:0}.growth-card-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:30px}.growth-card-numbers div{border-top:1px solid #555;padding-top:12px}.growth-card-numbers b,.growth-card-numbers span{display:block}.growth-card-numbers b{font-size:22px}.growth-card-numbers span{font-size:11px;color:#bfc2c6;margin-top:3px}
.portal-report-full{white-space:pre-wrap;overflow-wrap:anywhere;color:#454b52;font-size:14px;line-height:1.85;padding-bottom:18px}.portal-empty{padding:34px 18px;text-align:center;color:var(--muted);font-size:13px}.portal-error{margin:54px auto;padding:28px 22px;max-width:520px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}.portal-error b{display:block;font-size:18px}.portal-error p{margin:10px 0 20px;color:var(--muted);font-size:13px;line-height:1.7}.portal-error button{min-height:42px;padding:0 18px;border-radius:8px;background:var(--ink);color:#fff;font-weight:700}
.toast{position:fixed;z-index:80;left:50%;bottom:98px;transform:translate(-50%,20px);background:var(--ink);color:#fff;border-radius:8px;padding:10px 14px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:820px){
  body{padding:28px 0}.app-shell{min-height:calc(100vh - 56px);border-radius:8px;overflow:hidden;box-shadow:0 22px 70px rgba(38,38,38,.11)}
  .topbar{position:relative}.bottom-nav{bottom:28px;border-radius:0 0 8px 8px}.sheet-backdrop{align-items:center}.sheet{border-radius:8px;max-width:620px;padding-bottom:24px}
}
@media(max-width:430px){
  .topbar{padding:0 15px}.brand-lockup b{font-size:12px}.brand-lockup div>span{display:none}main{padding-left:12px;padding-right:12px}.member-hero{grid-template-columns:auto 1fr}.publish-time{display:none}.member-hero img{width:54px;height:54px}.member-copy h1{font-size:21px}.section-heading h2{font-size:18px}.care-row{padding:15px 14px}.metric b{font-size:25px}.service-strip p{max-width:240px}.feedback-state span{text-align:left}.update-strip time{display:none}.update-strip{margin-top:-13px}.assessment-panel{padding:0 14px}.assessment-top{align-items:flex-start}.assessment-top>span{font-size:11px}.growth-stat-grid{grid-template-columns:1fr 1fr}.growth-stat-grid>div:last-child{grid-column:1/-1}.growth-stat-grid>div:last-child{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.growth-stat-grid>div:last-child span{margin-right:auto}.growth-stat-grid>div:last-child b{margin:0}.growth-stat-grid>div:last-child em{flex:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
