:root{
  /* Accent is ink: colour is reserved for the child's avatar and the chart. */
  --blue:#1f1d1c;
  --blue-soft:#f3f2f1;
  --ink:#1f1d1c;
  --muted:#6e6a66;        /* was #747980 — 4.38:1 on white, under AA */
  --line:#eae8e5;
  --bg:#f1f0ef;
  --surface:#fff;
  --chip:#f3f2f1;
  --chip-2:#e7e5e3;
  --success:#2f6b52;
  --series-a:#1f1d1c;     /* 身高 */
  --series-b:#0e9b8e;     /* 体重 — must stay distinct from series-a */
  /* Colour lives on the child, nowhere else in the UI. */
  --av-girl:#d94f86; --av-girl-bg:#fbebf1;
  --av-boy:#5b63c4;  --av-boy-bg:#eaeaf7;
  --shadow:none;
  --radius:14px;
  --radius-lg:20px;
  --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:74px;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;min-width:0}
.brand-logo{display:block;width:174px;height:40px;flex:none;background:url('./assets/ninipapa-logo.png') center 51.3%/100% auto no-repeat}
.sync-button{display:flex;align-items:center;gap:6px;background:var(--chip);padding:7px 10px;border-radius:8px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap;transition:background .18s,color .18s,padding .18s}
.sync-button:disabled{opacity:1;cursor:default}
.sync-button.passive{background:transparent;padding-left:0;padding-right:0}
.sync-button.retry{background:var(--ink);color:#fff;cursor:pointer;padding-left:10px;padding-right:10px}
.sync-button.retry .sync-dot{background:#fff}
.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:20px 16px 112px}
.member-hero{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:18px;padding:20px 22px;background:var(--surface);border:0;border-radius:var(--radius-lg);margin:0 0 12px;text-align:left}
.member-avatar{width:72px;height:72px;display:block;margin:0}
.member-copy{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:24px}
.eyebrow{display:block;font-size:11px;color:var(--muted);font-weight:650;margin-bottom:2px}
.member-copy h1{grid-column:1;grid-row:1;font-size:26px;font-weight:800;line-height:1.2;margin:0 0 6px;letter-spacing:-.03em}
.member-copy p{grid-column:1;grid-row:2;margin:0;color:var(--muted);font-size:13px;font-weight:600}
.publish-time{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin:0;padding-left:22px;border-left:1px solid var(--line);white-space:nowrap;max-width:260px;text-align:right}
.publish-time span,.publish-time b{display:inline}
.publish-time span{font-size:12px;color:var(--muted);font-weight:600}
.publish-time b{font-size:12px;font-weight:700;margin:0}
.view{display:none}.view.active{display:block}
.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}
[data-view="home"]>.section-heading:first-of-type h2{font-size:24px}
.published-badge{flex:none;max-width:46%;color:var(--muted);font-size:11px;font-weight:700;line-height:1.4;text-align:right;display:flex;align-items:center;justify-content:flex-end;gap:6px}
.published-badge.neutral{max-width:none;background:var(--chip);color:var(--muted);border-radius:999px;padding:4px 11px}
.care-stack{display:grid;gap:0;background:var(--surface);border:0;border-radius:var(--radius-lg);overflow:hidden}
.care-card{display:block;padding:18px 17px;background:var(--surface);border-top:1px solid var(--line)}
.care-card:first-child{border-top:0}.care-primary{padding-top:20px;padding-bottom:20px;background:var(--surface)}
.care-head{display:flex;align-items:center;gap:11px}
.care-index{font-variant-numeric:tabular-nums;display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:7px;background:var(--ink);color:#fff;font-size:12px;font-weight:800}
.care-head h3{margin:0;font-size:16px;line-height:1.35;font-weight:800;letter-spacing:-.015em}
.care-content{margin-top:9px;color:var(--muted);font-size:14px;line-height:1.68;overflow-wrap:anywhere}.care-contact .care-content{color:var(--muted)}
.care-list{counter-reset:care-step;display:grid;gap:4px;margin:4px 0 0;padding:0;list-style:none;color:var(--ink);font-size:14px;line-height:1.64}
.care-list li{counter-increment:care-step;display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:10px 0;border-top:0;overflow-wrap:anywhere}
.care-list li::before{content:counter(care-step);display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--chip);color:var(--muted);font-size:11px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.care-item-text,.care-item-lead,.care-item-detail{min-width:0}.care-item-lead{display:block;color:var(--ink);font-size:14px;line-height:1.55;font-weight:750}.care-item-detail{display:block;margin-top:3px;color:var(--muted);line-height:1.68}.care-item-text{display:block;color:var(--ink)}

.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(--ink);color:#fff;padding:0 18px;justify-content:space-between}
.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:var(--chip);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}.interaction-heading[hidden],.feedback-thread[hidden]{display:none!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:var(--muted);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:block;background:var(--surface);border:0;border-radius:var(--radius-lg);overflow:hidden}
.measurement-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 16px 0;border-bottom:0;color:var(--muted);font-size:12px;font-weight:600}.measurement-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.measurement-meta b{color:var(--ink);font-size:12px;flex:none}
.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px}
.metric{padding:15px 12px;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--chip);border-radius:14px}
.metric+.metric{border-left:0}
.metric span{font-size:12px;color:var(--muted);font-weight:700}
.metric b{font-size:30px;font-weight:800;letter-spacing:-.035em;line-height:1;margin:8px 0 0;font-variant-numeric:tabular-nums}
.metric small{font-size:13px;font-weight:700;color:var(--muted);margin-left:2px}
.metric em{margin-top:10px;min-height:31px;padding:0;color:var(--muted);font-size:11px;font-weight:650;line-height:1.25;font-style:normal;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-variant-numeric:tabular-nums}
.metric em span{font-size:9.5px;color:var(--muted);font-weight:600;white-space:nowrap}
.metric em strong{font-size:13px;line-height:1.2;color:var(--success);font-weight:800;white-space:nowrap}
.metric em.is-placeholder{font-size:10px;color:var(--muted)}
.service-strip{margin-top:18px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-lg);padding:17px;display:flex;align-items:center;justify-content:space-between;gap:12px;transition:background .18s,color .18s,border-color .18s}
.service-strip .eyebrow{color:var(--muted)}.service-strip h3{font-size:16px;margin:3px 0}.service-strip p{font-size:12px;color:var(--muted);margin:0}
.service-strip.due-soon,.service-strip.overdue{background:var(--ink);color:#fff;border-color:var(--ink)}
.service-strip.due-soon .eyebrow,.service-strip.overdue .eyebrow,.service-strip.due-soon p,.service-strip.overdue p{color:#cfccc8}
.date-block{width:54px;height:54px;background:var(--chip);color:var(--ink);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}
.service-strip.due-soon .date-block,.service-strip.overdue .date-block{background:#fff}
.date-block b{font-size:22px;line-height:1}.date-block small{font-size:10px;color:var(--muted);margin-top:3px}
.nutrition-list,.report-list{background:var(--surface);border:0;border-radius:var(--radius-lg);overflow:hidden}
.nutrition-item{margin:8px;padding:14px;border-top:0;background:var(--chip);border-radius:14px}.nutrition-item:first-child{margin-top:8px}
.nutrition-current{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.nutrition-current>span{display:flex;flex-direction:column;align-items:flex-start}
.nutrition-current small{font-size:11px;color:var(--muted);font-weight:600}
.nutrition-current b{font-size:15.5px;font-weight:800;letter-spacing:-.01em;margin-top:2px}
.nutrition-usage{max-width:100%;align-items:flex-start!important;text-align:left}
.nutrition-usage strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.nutrition-usage small{margin-top:3px;color:var(--muted)}
.nutrition-item>p{display:flex;align-items:center;gap:7px;margin:8px 0 0;color:var(--muted);font-size:11px}.nutrition-item>p em{padding:2px 6px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-style:normal;font-weight:700}
.nutrition-next{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:11px;padding:10px 11px;border-radius:7px;background:var(--chip)}.nutrition-next small{color:var(--muted);font-size:11px}.nutrition-next>span{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.nutrition-next b{font-size:12px}.nutrition-next em{margin-top:3px;color:var(--muted);font-size:10px;font-style:normal}
.nutrition-empty{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px}.nutrition-empty b{font-size:13px}.nutrition-empty span{font-size:11px;color:var(--muted);text-align:right}
.assessment-panel{background:var(--surface);border-radius:var(--radius-lg);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:var(--chip);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:8px;border-radius:999px;background:#d8d5d1;position:relative;margin:0 8px}
/* The extreme percentile tails are expanded so P3/P97 remain legible on mobile. */
.percentile-scale::before,.percentile-scale::after{content:'';position:absolute;z-index:2;top:-4px;bottom:-4px;width:2px;border-radius:2px;background:var(--muted)}
.percentile-scale::before{left:9%}.percentile-scale::after{right:9%}
.percentile-scale i{position:absolute;top:50%;z-index:1;width:15px;height:15px;border-radius:50%;background:var(--ink);border:0;box-shadow:0 0 0 3px var(--surface);transform:translate(-50%,-50%)}
.percentile-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:11px}
.assessment-disclaimer{margin:0 -1px;padding:15px 1px 17px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;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-lg);padding:17px 14px 12px}.chart-context{margin:0 3px 13px;color:var(--muted);font-size:13px;font-weight:650}
.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:var(--chip);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{min-height:30px;font-style:normal;line-height:1.25;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;font-variant-numeric:tabular-nums}.growth-stat-grid em span{font-size:9px;color:var(--muted);font-weight:600;white-space:nowrap}.growth-stat-grid em strong{font-size:12px;color:var(--success);font-weight:800;white-space:nowrap}.growth-stat-grid em.is-placeholder{font-size:10px;color:var(--muted)}
.growth-chart{width:100%;height:auto;display:block;overflow:visible}
.growth-chart text{font-family:var(--font);font-size:12px;fill:var(--muted)}.growth-chart .series-label{font-size:11px;font-weight:700;fill:var(--muted)}.grid-line{stroke:var(--chip-2);stroke-width:1}.axis-line{stroke:var(--chip-2);stroke-width:1.5}.trend-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-line.height{stroke:var(--series-a)}.trend-line.weight{stroke:var(--series-b)}.chart-point{fill:#fff;stroke-width:3}.chart-point.height{stroke:var(--series-a)}.chart-point.weight{stroke:var(--series-b)}
.chart-legend{display:flex;justify-content:center;gap:22px;margin:-1px 0 5px;color:var(--muted);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(--series-a)}.chart-legend .weight::before{background:var(--series-b)}
.chart-note{font-size:12.5px;line-height:1.65;color:var(--muted);margin:6px 4px 0}
.history-list{display:grid;gap:7px;padding:8px;background:var(--surface);border:0;border-radius:var(--radius-lg);overflow:hidden}
.history-list div{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:14px 15px;border:0;border-radius:10px;background:var(--chip)}
.history-list time{font-size:12px;line-height:1.25;color:var(--muted)}.history-list b{font-size:15px;line-height:1.25}.history-list span{font-size:13px;line-height:1.25;color:var(--muted)}
.service-record-heading{margin-top:2px}.service-record-list{background:var(--surface);border-radius:var(--radius-lg);overflow:hidden}
.service-record-row{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:start;gap:13px;padding:16px;text-align:left;background:var(--surface);border-top:1px solid var(--line)}
.service-record-row:first-child{border-top:0}.service-record-row:active{background:var(--chip)}
.service-record-date{width:48px;height:48px;border-radius:8px;background:var(--chip);display:flex;flex-direction:column;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.service-record-date b{font-size:17px;line-height:1}.service-record-date small{font-size:9px;color:var(--muted);margin-top:4px}
.service-record-copy{min-width:0}.service-record-top{display:flex;align-items:center;gap:8px;min-width:0}.service-record-kind{flex:none;padding:3px 7px;border-radius:999px;background:var(--chip);color:var(--muted);font-size:10px;font-weight:750;line-height:1.4}.service-record-top b{min-width:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.service-record-summary{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.65;overflow-wrap:anywhere}.service-record-arrow{align-self:center;color:var(--muted);font-size:18px;line-height:1}
.service-record-detail-summary{margin:0 0 16px;padding:14px;border-radius:10px;background:var(--chip);font-size:14px;line-height:1.75;overflow-wrap:anywhere}.service-record-facts{display:grid}.service-record-fact{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;padding:13px 0;border-top:1px solid var(--line)}.service-record-fact:first-child{border-top:0}.service-record-fact span{color:var(--muted);font-size:12px}.service-record-fact b{font-size:14px;line-height:1.7;font-weight:650;overflow-wrap:anywhere}
.share-panel{margin-top:22px;background:var(--ink);color:#fff;border-radius:var(--radius-lg);padding:19px}
.share-panel .eyebrow{color:#cfccc8}.share-panel h3{font-size:18px;margin:5px 0}.share-panel p{color:#cfccc8;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}.secondary-action:disabled{cursor:not-allowed;opacity:.45}
.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:var(--chip);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(3,1fr)}
.bottom-nav[hidden]{display:none}
.bottom-nav button{position:relative;background:transparent;color:#a5a09b;font-size:11px;font-weight:650;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 0}.bottom-nav-icon{width:27px;height:27px;display:block;fill:currentColor}.bottom-nav-icon.stroke-icon{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.bottom-nav button.active{color: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:var(--chip-2);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:var(--chip);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:var(--chip);font-weight:650}.segment button.active{background:var(--ink);color:#fff}
textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;background:var(--chip);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:#a5a09b}.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:var(--muted);line-height:1.75;margin:0}.growth-card-preview{background:var(--ink);color:#fff;border-radius:8px;padding:24px 20px;margin-bottom:12px}.growth-card-preview small{color:#cfccc8}.growth-card-preview h3{font-size:28px;margin:28px 0 8px}.growth-card-preview p{color:#cfccc8;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:#cfccc8;margin-top:3px}.growth-card-note{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.portal-report-full{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);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:560px){
  .topbar{height:66px;padding-left:16px;padding-right:16px}.brand-logo{width:166px;height:38px}
  main{padding-top:14px}.member-hero{grid-template-columns:68px minmax(0,1fr);gap:17px;padding:19px 18px;margin-bottom:10px}.member-avatar{width:68px;height:68px}.member-copy{display:block}.member-copy h1{font-size:25px;line-height:1.15;margin-bottom:5px}.member-copy p{font-size:13px}.publish-time{display:flex;flex-direction:row;align-items:baseline;gap:7px;margin-top:10px;padding:9px 0 0;border-top:1px solid var(--line);border-left:0;max-width:290px;text-align:left}.publish-time span{font-size:12px}.publish-time b{font-size:13px}
}
@media(max-width:430px){
  .topbar{padding-left:14px;padding-right:14px}.brand-logo{width:154px;height:36px}main{padding-left:12px;padding-right:12px}.member-hero{grid-template-columns:64px minmax(0,1fr);gap:15px;padding:18px}.member-avatar{width:64px;height:64px}.member-copy h1{font-size:24px}.member-copy p{font-size:13px}.publish-time{max-width:none}.publish-time span{font-size:12px}.publish-time b{font-size:13px}.section-heading h2{font-size:18px}[data-view="home"]>.section-heading:first-of-type h2{font-size:22px}.care-card{padding:17px 14px}.metric b{font-size:27px}.service-strip p{max-width:240px}.feedback-state span{text-align:left}.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(max-width:359px){.member-hero{grid-template-columns:60px minmax(0,1fr);gap:13px;padding:17px 15px}.member-avatar{width:60px;height:60px}.member-copy h1{font-size:23px}.member-copy p{font-size:12px}.publish-time span{font-size:11px}.publish-time b{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
