/* A: warm natural visual system. Existing data, permissions and form contracts stay intact. */
.health-ui.natural-theme{--ui-green:#285b43;--ui-ink:#263e30;--ui-muted:#626f61;--ui-paper:#fffefa;--ui-line:#e2e7db;--ui-soft:#edf2e5;background:linear-gradient(150deg,#faf8ef,#f6f8f0 60%,#faf8f2);color:var(--ui-ink);font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;line-height:1.7}
.natural-theme.family-theme::before{display:none}
.health-ui.natural-theme .shell{max-width:1120px}
.natural-theme .site-header{padding-top:24px}
.health-ui.natural-theme .brand-banner{position:relative;min-height:105px;padding:20px 26px;border:0;border-radius:24px;box-shadow:none;background-image:linear-gradient(90deg,#fbfaf3 28%,#fbfaf39c 65%,#fbfaf300),url('/static/banner-sunflowers-1ee4338e2e07.png');background-size:100% 100%,auto 190px;background-position:center,right center;background-repeat:no-repeat}
.natural-theme .brand-lockup{position:relative;z-index:1}
.health-ui.natural-theme .brand-banner{overflow:visible}
.natural-theme .brand-banner .brand{font-size:29px;letter-spacing:.08em;font-weight:750;color:#244c36}
.natural-theme .brand-banner .brand-sub{font-size:13px;letter-spacing:.25em;color:#697563}
.natural-theme .account-menu{position:relative;z-index:30;align-self:flex-start;margin-left:auto}
.natural-theme .account-menu>summary{display:flex;gap:6px;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px 12px;border:1px solid #ffffffbb;border-radius:24px;background:#fffef4ed;color:#285b43;cursor:pointer;font-size:13px;list-style:none}
.natural-theme .account-menu>summary::-webkit-details-marker{display:none}
.natural-theme .account-panel{position:absolute;right:0;top:52px;min-width:190px;background:#fffefa;border:1px solid var(--ui-line);border-radius:18px;padding:16px;box-shadow:0 14px 40px #253e3020}
.natural-theme .account-panel p{margin:0 0 10px;color:var(--ui-muted);font-size:13px}
.natural-theme .account-panel button{width:100%;display:flex;align-items:center;gap:8px}
.health-ui.natural-theme .page-heading{padding:28px 0 20px;animation:none}
.health-ui.natural-theme h1{font-size:clamp(25px,3vw,34px);font-weight:700;letter-spacing:.01em;line-height:1.45}
.natural-theme .family-heading h1{max-width:24ch}
.natural-theme .family-heading .family-date{font-size:13px;color:#697960;letter-spacing:.03em;margin-bottom:10px}
.natural-theme .page-heading .muted{font-size:15px;margin-top:10px}
.health-ui.natural-theme .card{border:1px solid #e4e8de;border-radius:24px;background:#fffefbee;box-shadow:0 8px 28px #34492c05;padding:26px}
.natural-theme .section-heading{gap:12px;margin-bottom:18px;align-items:center}
.natural-theme .section-heading h2{font-size:22px;letter-spacing:.01em}
.natural-theme .section-heading>a{font-size:13px;white-space:nowrap}
.natural-theme .muted,.natural-theme .hint{color:#65715f}
.natural-theme .hint{font-size:13px;line-height:1.8}
.health-ui.natural-theme .family-weight-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px}
.health-ui.natural-theme .weight-tile{display:block!important;grid-column:auto;padding:14px!important;background:#f6f7f1;border:1px solid transparent;border-radius:18px;min-width:0}
.health-ui.natural-theme .weight-tile[open]{background:#f0f4e8;border-color:#bbcdb0}
.health-ui.natural-theme .family-weight-grid .weight-tile>summary{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;min-height:66px!important;text-align:left;list-style:none}
.natural-theme .weight-tile>summary::-webkit-details-marker{display:none}
.natural-theme .member-avatar{width:56px;height:56px;object-fit:cover;border-radius:50%;flex:none;box-shadow:0 0 0 3px #fffefb}
.natural-theme .avatar-small{width:32px;height:32px;box-shadow:none}
.natural-theme .weight-person{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.health-ui.natural-theme .weight-tile .member-mark{padding:0;margin:0;background:none;border:0;border-radius:0;font-size:16px;font-weight:600;white-space:normal}
.health-ui.natural-theme .weight-tile .weight-state{display:block;max-width:none;font-size:12px;line-height:1.4;color:#627252}
.health-ui.natural-theme .weight-tile .weight-number{margin:0;white-space:nowrap;font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#254b35}
.health-ui.natural-theme .weight-tile .weight-number small{display:inline;margin:0 0 0 3px;font-size:13px;font-weight:400;letter-spacing:0;color:#6a7568}
.natural-theme .weight-edit{display:flex;align-items:center;gap:2px;font-size:12px;color:#55704c;flex:none}
.natural-theme .weight-edit .ui-icon{width:16px;height:16px;flex-basis:16px}
.health-ui.natural-theme .weight-tile[open] .stack{display:grid;grid-template-columns:1fr 90px;gap:12px;margin-top:14px;padding:14px 0 0;border-left:0;border-top:1px solid #dbe4d1}
.natural-theme .weight-tile .stack .hint,.natural-theme .weight-tile .stack button{grid-column:1/-1;margin:0}
.natural-theme .weight-tile input{width:100%}
.natural-theme .weight-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:18px;font-weight:600}
.health-ui.natural-theme button{border-radius:14px;box-shadow:none;transition:background .18s,transform .15s,box-shadow .18s}
.natural-theme button:not(:disabled):active{transform:scale(.985)}
.natural-theme .home-grid>.ai-card{border-top:1px solid #dfe8d5;background:linear-gradient(130deg,#f0f5e8,#fffef9)}
.natural-theme .ai-card .section-heading .pill{background:#e4ecd8;color:#576945;font-size:12px}
.natural-theme .ai-card #message-empty{background:#ffffff9c;border:1px dashed #cbd8be;min-height:80px}
.natural-theme #message-form textarea{background:#fffefb;min-height:115px}
.natural-theme #message-form>button{min-height:48px}
.natural-theme .member-title{display:flex;gap:10px;align-items:center}
.natural-theme .record-access{gap:12px;border-radius:16px;align-items:center}
.natural-theme .record-access>span{flex:1}
.health-ui.natural-theme .member-tabs{gap:10px;margin-bottom:20px;flex-wrap:wrap}
.health-ui.natural-theme .member-tabs a{display:flex;gap:9px;align-items:center;border:1px solid #dce5d4;border-radius:16px;padding:10px 16px;min-height:54px;line-height:1.4}
.natural-theme .member-tabs a.selected{box-shadow:0 4px 14px #285b4310}
.natural-theme .trend-panel .trend-chart{background:#fffefa;border-color:#e1e8d9;border-radius:18px}
.natural-theme .record-filter-card{background:#f0f4e9}
.natural-theme .record-group{border-color:#e0e6d8}
.natural-theme .record-name{color:#365539}
.natural-theme .pill{background:#edf2e3;color:#536348;border-radius:20px}
.health-ui.natural-theme .mom-tabs{display:flex;justify-content:center;padding-top:12px;padding-bottom:12px;gap:12px}
.health-ui.natural-theme .mom-tabs a{border:0;background:transparent;min-width:140px;border-radius:16px}
.health-ui.natural-theme .mom-tabs a[aria-current=page]{background:#e4edda;color:#285b43;font-weight:650}
.natural-theme .admin-nav a{border-radius:14px}
.natural-theme .site-footer{color:#73806a;font-size:12px}
@media(min-width:901px){.health-ui.natural-theme .home-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.natural-theme .home-grid>.ai-card{grid-column:2;grid-row:1 / span 3}.natural-theme .home-grid>.card{animation:none}}
@media(max-width:900px){.natural-theme.front-navigation{padding-bottom:90px}.health-ui.natural-theme .mom-tabs{position:fixed;bottom:0;left:0;right:0;z-index:60;margin:0;max-width:none;width:100%;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:#fffefbf5;border-top:1px solid #e0e6d8;box-shadow:0 -4px 24px #30462e06;gap:4px;backdrop-filter:blur(12px)}.health-ui.natural-theme .mom-tabs a{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;min-height:56px;padding:5px;font-size:12px;border-radius:14px}.health-ui.natural-theme .mom-tabs .ui-icon{display:block;width:22px;height:22px;flex-basis:22px}.natural-theme #main-content{scroll-margin-top:12px}.natural-theme :is(#chat,#measurements,#daily-records){scroll-margin-bottom:100px}.health-ui.natural-theme .home-grid>.card{margin-bottom:18px;animation:none}}
@media(max-width:600px){.health-ui.natural-theme .shell{padding-left:18px;padding-right:18px}.health-ui.natural-theme .site-header{padding-top:16px}.health-ui.natural-theme .brand-banner{min-height:92px;padding:16px 18px;background-size:100% 100%,auto 150px;border-radius:20px}.health-ui.natural-theme .brand-banner .brand{font-size:25px}.natural-theme .account-menu>summary{padding:8px}.natural-theme .account-menu>summary>span{display:none}.health-ui.natural-theme .card{padding:20px 16px;border-radius:22px}.health-ui.natural-theme .page-heading{padding:22px 0 16px}.natural-theme .section-heading h2{font-size:20px}.natural-theme .member-avatar{width:48px;height:48px}.natural-theme .avatar-small{width:30px;height:30px}.health-ui.natural-theme .family-weight-grid .weight-tile>summary{gap:10px}.health-ui.natural-theme .weight-tile .weight-number{font-size:29px}.health-ui.natural-theme .weight-tile .member-mark{font-size:14px}.natural-theme .weight-edit{font-size:0}.natural-theme .weight-edit .ui-icon{width:18px;height:18px}.health-ui.natural-theme .member-tabs a{padding:9px 8px;gap:6px;flex:1;min-width:0;font-size:13px}.health-ui.natural-theme .member-tabs .avatar-small{width:28px;height:28px}.natural-theme .member-tabs a span{overflow-wrap:anywhere}.natural-theme .navigation-note{font-size:12px}.natural-theme .site-footer{padding-bottom:20px}}
@media(max-width:359px){.health-ui.natural-theme .shell{padding-left:12px;padding-right:12px}.health-ui.natural-theme .weight-tile{padding:10px!important}.natural-theme .member-avatar{width:38px;height:38px}.natural-theme .avatar-small{width:26px;height:26px}.health-ui.natural-theme .weight-tile .weight-number{font-size:26px}.health-ui.natural-theme .weight-tile .weight-number small{font-size:11px}.health-ui.natural-theme .member-tabs a{flex-direction:column;font-size:12px;gap:5px}}
@media(prefers-reduced-motion:reduce){.natural-theme *, .natural-theme *::before,.natural-theme *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.health-ui.natural-theme .mom-tabs{top:auto;height:auto;min-height:0}}
@media print{.natural-theme .account-menu,.health-ui.natural-theme .mom-tabs{display:none!important}.natural-theme.front-navigation{padding-bottom:0}.health-ui.natural-theme{background:white}.health-ui.natural-theme .card{box-shadow:none;background:white}}

/* Reference A: open botanical masthead, personal recording and compact companion. */
.health-ui.natural-theme{background:#faf8f0}
.health-ui.natural-theme .brand-banner{background:none;border-radius:0;min-height:84px;padding:0;align-items:center}
.natural-theme .brand-lockup{display:flex;align-items:center;gap:12px}
.natural-theme .botanical-mark{width:44px;height:52px;flex:none}
.natural-theme .brand-words{display:block}
.natural-theme .account-menu{align-self:center}
.natural-theme .account-menu>summary{padding:0;border:0;background:none;gap:9px}
.natural-theme .account-menu>summary .member-avatar{width:38px;height:38px;box-shadow:0 0 0 3px #f0e4d5}
.natural-theme .account-menu>summary>.account-chevron{display:inline;font-size:24px;line-height:1}
.natural-theme .home-page .site-header{position:relative}
.natural-theme.home-page .site-header>.shell{position:relative}
.natural-theme .family-motto{position:relative;z-index:1;width:fit-content;max-width:78%;font-family:KaiTi,STKaiti,"Microsoft YaHei",serif;font-size:18px;letter-spacing:.08em;color:#5f6c57;margin:21px 0 16px;padding-bottom:13px}
.natural-theme .family-motto::after{content:"";position:absolute;left:3px;right:0;bottom:0;height:10px;border-top:3px solid #dbe5c6;border-radius:70% 50% 0 0;transform:rotate(-2deg)}
.natural-theme .hero-sunflower{position:absolute;right:12px;top:70px;width:210px;height:280px;object-fit:contain;object-position:right top;pointer-events:none;opacity:.88;z-index:0}
.health-ui.natural-theme.home-page .family-heading{position:relative;z-index:1;padding:20px 0 18px;margin:0}
.natural-theme.home-page .family-heading h1{font-size:34px;letter-spacing:.08em;margin:7px 0 4px}
.natural-theme.home-page .family-heading .muted{margin-top:4px;max-width:46ch;line-height:1.8}
.natural-theme.home-page .family-heading .family-date{font-weight:400;font-size:13px;letter-spacing:0;margin-bottom:5px;max-width:75%;display:flex;flex-wrap:wrap;gap:4px 8px}
.natural-theme.home-page .family-heading #family-lunar{display:none}
.natural-theme .home-weight .section-heading h2>.ui-icon{box-sizing:content-box;padding:9px;background:#f2f5ec;border-radius:10px;color:#47784b;width:24px;height:24px}
.natural-theme .weight-overview{margin-left:auto;font-size:12px;white-space:nowrap;border-radius:20px;padding:4px 9px;background:#f2f5ec;color:#49694a}
.health-ui.natural-theme .weight-tile,.health-ui.natural-theme .weight-tile[open]{background:#f7f6f2}
.health-ui.natural-theme .weight-tile .member-mark{color:#263e30}
.health-ui.natural-theme .weight-tile .weight-state{display:inline-flex;align-items:center;gap:4px;width:fit-content;font-size:12px;border-radius:16px;padding:2px 7px;white-space:nowrap}
.health-ui.natural-theme .weight-tile .is-recorded{color:#2e633c;background:#edf3e6}
.health-ui.natural-theme .weight-tile .is-unrecorded{color:#6d746e;background:#ededE8}
.natural-theme .status-dot{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:50%;font-size:10px;line-height:1;background:#559049;color:white;font-weight:700}
.natural-theme .is-unrecorded .status-dot{background:#929992}
.natural-theme .weight-edit{font-size:0;color:#898d85}
.health-ui.natural-theme .home-grid>.ai-card{padding:0;background:linear-gradient(115deg,#f0f4e6,#f8f9ef 65%,#e7efda);border:1px solid #e5ebd9;overflow:hidden}
.natural-theme .chat-teaser{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 16px;min-height:126px;position:relative}
.natural-theme .chat-teaser::-webkit-details-marker{display:none}
.natural-theme .chat-copy{flex:1;min-width:0;position:relative;z-index:1}
.natural-theme .chat-title{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:700;white-space:nowrap;color:#254e35}
.natural-theme .sprout-mark{display:flex;width:38px;height:38px;padding:4px;border-radius:10px;background:#f7f9ee;flex:none}
.natural-theme .sprout-mark svg{width:100%;height:100%}
.natural-theme .chat-intro{display:block;margin-top:10px;font-size:14px;line-height:1.75;color:#475242}
.natural-theme .chat-illustration{position:relative;width:112px;height:125px;flex:none;align-self:flex-end;display:flex;align-items:flex-end;justify-content:center}
.natural-theme .chat-illustration img{position:absolute;bottom:22px;left:0;width:112px;height:112px;object-fit:contain}
.natural-theme .chat-cta{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:6px;width:112px;min-height:39px;background:linear-gradient(140deg,#4a7953,#2c563b);border-radius:25px;color:white;font-size:14px;white-space:nowrap}
.natural-theme .chat-cta .ui-icon{width:19px;height:19px}
.natural-theme .chat-close-label{display:none}
.natural-theme .chat-conversation[open] .chat-open-label{display:none}
.natural-theme .chat-conversation[open] .chat-close-label{display:inline}
.natural-theme .chat-content{padding:0 20px 20px;border-top:1px solid #dce6ce}
.natural-theme .chat-teaser:focus-visible{outline:3px solid #a5b883;outline-offset:-4px;border-radius:20px}
.health-ui.natural-theme .mom-tabs a[aria-current=page]{background:transparent;color:#214e35;position:relative}
.health-ui.natural-theme .mom-tabs a[aria-current=page]::after{content:"";position:absolute;bottom:0;width:26px;height:3px;border-radius:3px;background:#285b43;left:calc(50% - 13px)}
@media(min-width:901px){.natural-theme.home-page .site-header>.shell,.natural-theme.home-page #main-content{max-width:860px}.health-ui.natural-theme.home-page .home-grid{display:flex;flex-direction:column;gap:20px}.natural-theme.home-page .home-grid>.card{width:100%;margin:0}.natural-theme .hero-sunflower{width:245px;height:320px;top:55px}.natural-theme .family-motto{max-width:65%}.natural-theme .chat-teaser{padding:24px 30px}.natural-theme .chat-illustration{width:170px;height:150px}.natural-theme .chat-illustration img{width:150px;height:150px;left:10px}.natural-theme .chat-cta{width:150px}.natural-theme .chat-intro{font-size:16px}.natural-theme .chat-title{font-size:24px}}
@media(max-width:900px){.health-ui.natural-theme .mom-tabs a{padding-bottom:9px}.natural-theme .home-grid>.ai-card{margin-top:0}}
@media(max-width:600px){.health-ui.natural-theme .site-header{padding-top:19px}.health-ui.natural-theme .brand-banner{padding:0;min-height:65px}.health-ui.natural-theme .brand-banner .brand{font-size:24px;letter-spacing:.1em}.natural-theme .brand-banner .brand-sub{font-size:13px}.natural-theme .botanical-mark{width:36px;height:46px}.natural-theme .brand-lockup{gap:9px}.natural-theme .family-motto{font-size:14px;margin-top:18px;max-width:80%;letter-spacing:.04em}.natural-theme .hero-sunflower{right:0;top:66px;width:140px;height:215px}.health-ui.natural-theme.home-page .family-heading{padding:11px 0 15px}.natural-theme.home-page .family-heading h1{font-size:29px}.natural-theme.home-page .family-heading .muted{font-size:14px}.natural-theme .home-weight .section-heading{gap:6px;margin-bottom:12px}.natural-theme .home-weight .section-heading h2{font-size:20px;gap:8px}.natural-theme .home-weight .section-heading h2>.ui-icon{padding:7px;width:21px;height:21px}.natural-theme .weight-overview{font-size:10px;padding:3px 7px}.health-ui.natural-theme .family-weight-grid .weight-tile>summary{min-height:57px!important;gap:10px}.health-ui.natural-theme .weight-tile{padding:12px!important}.natural-theme .chat-title{font-size:19px;gap:7px}.natural-theme .chat-intro{font-size:12px}.natural-theme .chat-teaser{gap:5px}.natural-theme .chat-illustration{width:95px;height:115px}.natural-theme .chat-illustration img{width:100px;height:100px;left:-2px}.natural-theme .chat-cta{width:100px;font-size:13px}.natural-theme .sprout-mark{width:32px;height:32px}.natural-theme .chat-content{padding:0 16px 16px}}
@media(max-width:359px){.natural-theme .family-motto{font-size:12px;max-width:85%}.natural-theme .hero-sunflower{width:115px;opacity:.75}.natural-theme .weight-overview{font-size:9px;padding:3px 5px}.natural-theme .home-weight .section-heading h2{font-size:18px}.natural-theme .chat-title{font-size:17px}.natural-theme .chat-illustration{width:80px}.natural-theme .chat-cta{width:84px}.natural-theme .chat-intro{font-size:11px}.health-ui.natural-theme .weight-tile .weight-state{font-size:11px}}
.health-ui.natural-theme .mom-tabs a,.health-ui.natural-theme .mom-tabs a[aria-current=page]{box-shadow:none}.natural-theme .chat-intro{font-size:14px}@media(max-width:600px){.natural-theme .chat-intro{font-size:13px}}@media(max-width:359px){.natural-theme .chat-intro{font-size:12px}}
@media(min-width:901px){.health-ui.natural-theme.home-page .mom-tabs{max-width:860px;background:transparent;box-shadow:none;border:0;backdrop-filter:none}}

.natural-theme .account-menu>summary{flex-direction:column;gap:3px;min-width:52px}.natural-theme .account-menu>summary>.family-account-symbol{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#edf2e5;color:#285b43}.natural-theme .account-menu>summary>.family-account-label{display:block;font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap}.natural-theme .family-account-symbol .ui-icon{width:22px;height:22px}.natural-theme .account-panel{top:64px}

/* Warm cream canvas; green remains an accent, not the page background. */
:root{background:#fbf4e6}.health-ui.natural-theme{background:#fbf4e6;--ui-paper:#fffdf8;--ui-line:#e8e1d4}.natural-theme.family-theme::before{display:none}.health-ui.natural-theme .card{background-color:#fffdf8;border-color:#e8e1d4}.health-ui.natural-theme .weight-tile{background:#fbf4e6}.health-ui.natural-theme .weight-tile[open]{background:#fbf4e6}.health-ui.natural-theme .record-filter-card{background:#f7f1e4}.health-ui.natural-theme .mom-tabs{background:#fffdf8}@media(min-width:901px){.health-ui.natural-theme.home-page .mom-tabs{background:transparent}}@media print{:root,.health-ui.natural-theme{background:white}}

/* Reflow for enlarged system text; keep labels readable instead of shrinking them. */
.health-ui.natural-theme .family-weight-grid .weight-tile>summary{flex-wrap:wrap}
.natural-theme .weight-identity{display:flex;align-items:center;gap:10px;flex:1 0 auto;max-width:100%;min-width:0}
.natural-theme .weight-person{flex:1 1 auto;min-width:0}
.health-ui.natural-theme .weight-tile .member-mark{display:block;width:auto;height:auto;min-height:0;max-width:100%;overflow-wrap:anywhere}
.health-ui.natural-theme .weight-tile .weight-state{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.natural-theme .status-dot{flex:none;width:1.3em;height:1.3em}
.natural-theme .weight-reading{display:flex;align-items:center;justify-content:flex-end;gap:10px;max-width:100%;min-width:0;margin-left:auto}
.health-ui.natural-theme .weight-tile .weight-number{min-width:0;white-space:normal;overflow-wrap:anywhere}
.health-ui.natural-theme .weight-tile .weight-number small{white-space:nowrap}
.health-ui.natural-theme .weight-tile[open] .stack{grid-template-columns:repeat(auto-fit,minmax(min(100%,8em),1fr))}
.natural-theme :is(.weight-overview,.chat-title,.chat-cta,.trend-latest){white-space:normal;overflow-wrap:anywhere}
.natural-theme .section-heading h2{min-width:0;overflow-wrap:anywhere}
.natural-theme .chat-teaser{flex-wrap:wrap;gap:12px}
.natural-theme .chat-copy{flex:1 1 12em}
.natural-theme .chat-illustration{margin-left:auto;max-width:100%}
.natural-theme .chat-cta{width:100%;height:auto;padding:7px;line-height:1.5}
.natural-theme .brand-banner{flex-wrap:wrap}
.natural-theme .brand-lockup{min-width:0;max-width:100%}
.natural-theme .brand-words{min-width:0;overflow-wrap:anywhere}
.natural-theme .account-panel{top:calc(100% + 8px);min-width:0;width:14em;max-width:calc(100vw - 36px)}
.health-ui.natural-theme .member-tabs a{min-width:0;max-width:100%;white-space:normal}
.natural-theme .member-tabs a span{min-width:0;overflow-wrap:anywhere}
.health-ui.natural-theme .mom-tabs a{white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.5}
.health-ui.natural-theme .trend-date-nav{min-width:0;flex:1 1 18em}
.health-ui.natural-theme .trend-date-nav span{white-space:normal;overflow-wrap:anywhere}
.health-ui.natural-theme .trend-nav-button{flex:none}
.natural-theme .trend-toolbar>label{min-width:0;max-width:100%}
.natural-theme .trend-chart-header{flex-wrap:wrap;gap:4px 12px}
.natural-theme .trend-latest{margin-left:auto}
.natural-theme .trend-panel{overflow-anchor:none}
.natural-theme .trend-plot{position:relative}
.natural-theme .trend-plot .trend-empty{position:absolute;inset:0;min-height:0;margin:0;pointer-events:none}
.health-ui.natural-theme .record-filter-field input,.health-ui.natural-theme .record-filter-actions :is(button,a){height:auto;min-height:46px;white-space:normal}
.natural-theme .record-filter-actions{flex-wrap:wrap}
.natural-theme .record-group>summary{flex-wrap:wrap}
.natural-theme .record-name{flex:1 1 6em;overflow-wrap:anywhere}
.natural-theme .site-footer{flex-wrap:wrap}
@media(max-width:900px){.natural-theme.front-navigation{padding-bottom:calc(var(--bottom-nav-height,90px) + 16px)}.natural-theme :is(#chat,#measurements,#daily-records){scroll-margin-bottom:calc(var(--bottom-nav-height,90px) + 16px)}}
@media(max-width:600px){.natural-theme .trend-toolbar>label{flex:1 1 100%}.health-ui.natural-theme .member-tabs a{flex-basis:5em}}
@media print{.natural-theme.front-navigation{padding-bottom:0}}

/* Keep the robot and growing chat action in normal flow, including large text. */
.natural-theme .chat-illustration{flex-direction:column;align-items:center;gap:8px;width:max-content;height:auto}
.natural-theme .chat-illustration img{position:static;flex:none;max-width:100%}
.natural-theme .chat-cta{flex:none;width:auto;min-width:100%;max-width:100%}
.natural-theme .chat-cta>span{white-space:nowrap}

/* Weight cards share alignment at every text size. Safe stacked layout without JS. */
.health-ui.natural-theme .family-weight-grid .weight-tile>summary{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;column-gap:10px;row-gap:6px;align-items:center}
.natural-theme .weight-identity,.natural-theme .weight-person,.natural-theme .weight-reading{display:contents}
.natural-theme .weight-identity>.member-avatar{grid-column:1;grid-row:1 / 4;align-self:start}
.health-ui.natural-theme .weight-tile .member-mark{grid-column:2 / 5;grid-row:1;justify-self:start}
.health-ui.natural-theme .weight-tile .weight-state{grid-column:2 / 5;grid-row:2;justify-self:start;min-width:0}
.health-ui.natural-theme .weight-tile .weight-number{grid-column:2 / 4;grid-row:3;justify-self:start}
.natural-theme .weight-edit{grid-column:4;grid-row:3;justify-self:end;align-self:center}
.natural-theme [data-weight-layout=roomy] .weight-tile:not(.weight-status-below) .member-mark{grid-column:2}
.natural-theme [data-weight-layout=roomy] .weight-tile:not(.weight-status-below) .weight-state{grid-column:3 / 5;grid-row:1;justify-self:end}
.natural-theme [data-weight-layout=roomy] .weight-tile:not(.weight-status-below) :is(.weight-number,.weight-edit){grid-row:2}
.natural-theme [data-weight-layout=compact] .weight-identity>.member-avatar{grid-row:1 / 3;align-self:center}
.natural-theme [data-weight-layout=compact] .weight-tile .member-mark{grid-column:2;grid-row:1;align-self:end}
.natural-theme [data-weight-layout=compact] .weight-tile .weight-state{grid-column:2;grid-row:2;align-self:start}
.natural-theme [data-weight-layout=compact] .weight-tile .weight-number{grid-column:3;grid-row:1 / 3;justify-self:end}
.natural-theme [data-weight-layout=compact] .weight-edit{grid-row:1 / 3}

/* Scale the whole inactive card, never its text or internal grid columns. */
@media(prefers-reduced-motion:no-preference){
 .natural-theme .family-weight-grid .weight-tile{transform-origin:center top;transition:transform .22s cubic-bezier(.2,.7,.2,1),border-color .22s ease}
 .natural-theme .family-weight-grid:has(.weight-tile[open]) .weight-tile:not([open]){transform:scale(.98)}
}
