/* Full source text, flat controls and one-screen health checks. */
body[data-page=health] .flow-steps{display:none}body[data-scheme=b][data-page=health] .app-shell{grid-template-columns:1fr}body[data-scheme=b][data-page=health] .main-view{grid-column:1}body[data-scheme=c][data-page=health] .app-shell{grid-template-rows:70px minmax(0,1fr) 86px}
.source-gender{display:flex;align-items:center;gap:12px;font-size:16px;min-height:44px}
.source-gender button{border:1px solid var(--line);background:transparent;color:var(--ink);min-width:56px;min-height:44px;border-radius:4px;font-size:17px}
.source-gender button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.source-gender small{color:var(--muted);font-size:12px;white-space:nowrap}
.source-question-note{font-size:13px;line-height:1.8;color:var(--muted);margin:-12px 0 20px}
.qi-overview .qi-supplement{height:60px;padding-top:5px}
.source-profile-extra{display:grid;grid-template-columns:1fr 120px minmax(110px,180px);align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:15px}
.source-profile-extra .source-gender{grid-column:1/-1}.source-profile-extra>label{grid-column:1/3;font-size:18px}.source-profile-extra>input{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:18px;padding:10px 0;min-height:44px}.source-profile-extra .field-error{display:none}.source-profile-extra label small{font-size:12px;color:var(--muted)}
.source-profile-extra .gender-error:not(:empty){display:inline;font-size:13px;line-height:1.5;min-height:0;margin:0;color:var(--red)}
.source-profile-extra{grid-column:1/-1}
body[data-scheme=c] .profile-form{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;align-content:center}
body[data-scheme=c] .profile-form .age-entry{grid-column:1/-1}
body[data-scheme=c] .profile-form .age-entry legend{float:none;width:auto;margin-bottom:14px}
body[data-scheme=c] .source-profile-extra{display:flex;padding-top:8px;gap:18px;min-width:0}
body[data-scheme=c] .source-profile-extra .source-gender{margin-right:auto}
body[data-scheme=c] .source-profile-extra .source-gender small{display:none}
body[data-scheme=c] .source-profile-extra label{white-space:nowrap;font-size:16px}
body[data-scheme=c] .source-profile-extra input{width:150px;font-size:17px}
body[data-scheme=c] .profile-form .entry-field,body[data-scheme=c] .profile-form .age-entry{padding-top:12px;padding-bottom:12px;min-height:0}
.all-terms{grid-template-rows:min-content min-content;max-height:none;align-content:center;row-gap:28px}.all-terms p{font-size:20px;line-height:1.8}
body .profile-form{gap:18px}body .profile-form .age-choices{gap:12px}body .profile-form .quiet-button{display:none}
body .source-health{max-width:1400px;height:100%;gap:18px;min-height:0;margin:auto}
body .source-health>.page-title{padding:0;align-items:center;flex-shrink:0}
body .source-health .page-title h1{font-size:32px;line-height:1.45}
body .source-health .page-title>p{font-size:16px;max-width:30%;line-height:1.7}
body .source-health .eyebrow{font-size:11px;margin-bottom:6px}
.source-health-groups{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1.8fr);gap:36px;flex:1;min-height:0}
.source-health-group{display:flex;flex-direction:column;gap:10px;min-height:0}
.source-health-group+section{border-left:1px solid var(--line);padding-left:36px}
.source-health-group>header{display:flex;align-items:center;gap:12px;height:34px;flex-shrink:0}
.source-health-group>header>span{font:14px Georgia,serif;color:var(--accent)}
.source-health-group>header h2{font-size:23px;font-weight:400;letter-spacing:2px}
.source-health-group>header small{font-size:12px;color:var(--muted);margin-left:auto}
.source-health-list{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(9,auto);align-content:space-between;gap:3px;flex:1;min-height:0}
[data-group=relative] .source-health-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(7,auto);grid-auto-flow:column;column-gap:24px}
.source-health-list>button{border:0;border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent);border-radius:0;background:transparent;color:var(--ink);text-align:left;display:grid;grid-template-columns:20px minmax(0,1fr) 18px;align-items:center;column-gap:10px;padding:5px 0;min-height:0;font-size:18px;line-height:1.5}
.source-health-list .source-item-number{font:11px/1.5 Georgia,serif;color:var(--muted);opacity:.6;align-self:start;padding-top:6px}
.source-health-list>button>i{font-size:20px;font-style:normal;font-weight:300;color:var(--muted)}
.source-health-list>button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.source-health-list>button[aria-pressed=true]>i{color:var(--accent)}
.source-health-warning,.source-health-hint{min-height:43px;display:flex;align-items:center;gap:18px;font-size:14px;line-height:1.7;color:var(--muted);flex-shrink:0}
.source-health-warning b{font-weight:400;color:var(--accent)}
.source-health .inline-message{min-height:0;padding:0;font-size:13px}
.neutral-health .neutral-health-list{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(var(--health-rows,8),auto);grid-auto-flow:column;column-gap:40px;row-gap:5px;align-content:space-evenly;padding:10px 0}
.neutral-health .source-health-list>button{padding:8px 0;min-height:44px}
@media(max-width:1400px){.neutral-health .neutral-health-list{column-gap:28px}.neutral-health .source-health-list>button{font-size:16px}}
@media(max-height:860px){.neutral-health .neutral-health-list{row-gap:3px;padding:0}.neutral-health .source-health-list>button{padding:5px 0;font-size:16px;min-height:42px}}
.source-report-types{display:flex;gap:12px;align-items:center;flex-wrap:wrap;flex-shrink:0}
.constitution-portrait{width:25%;min-width:220px;min-height:0;display:flex;flex-direction:column;gap:18px;border-right:1px solid var(--line);padding:0 25px 0 0}
.constitution-portrait figure{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,var(--accent-soft),transparent 70%)}
.constitution-portrait img{height:100%;max-width:100%;min-height:0;object-fit:contain}
.constitution-portrait p{font:18px/1.9 "Songti SC",serif;color:var(--muted)}
@media(max-width:1400px){.constitution-portrait{min-width:210px;padding-right:20px;gap:14px}.constitution-portrait p{font-size:16px}}
@media(max-height:860px){.constitution-portrait{gap:12px}.constitution-portrait p{font-size:16px;line-height:1.8}}
.source-moxa-supplement{font-size:14px;line-height:1.85;color:var(--muted);margin-top:20px}
.source-report-types button,.source-report-tabs button,.source-report-reference button,.source-reference,.source-care .page-footnote button,.data-note button{background:transparent;border:0;color:var(--muted);min-height:40px;padding:4px 0;font-size:15px}
.source-report-types button{padding:6px 10px;border:1px solid var(--line);border-radius:3px;font-size:16px}.source-report-types button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.source-report-types small{font-size:13px}
.source-care{gap:12px}.source-care .care-body{flex:1;min-height:0}.source-report-content{display:flex;flex-direction:column;min-width:0;flex:1;gap:12px}.source-report-tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);flex-shrink:0}.source-report-tabs button{font-size:18px;min-height:44px}.source-report-tabs [aria-pressed=true]{color:var(--accent);border-bottom:1px solid var(--accent)}.source-report-body{flex:1;min-height:0;display:flex}.source-report-body>.care-directions{width:100%}.source-care .care-card ul{font-size:18px;line-height:1.9}.source-care .care-card{min-width:0}.source-care .care-card li{overflow-wrap:anywhere}
.source-moxa{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.source-moxa h2{font:27px/1.7 "Songti SC",serif;margin:10px 0 20px}.source-moxa dl{font-size:20px;line-height:1.8}.source-moxa dt{color:var(--muted);font-size:14px;margin-top:20px}.source-moxa dd{margin:4px 0}.source-moxa aside{border-left:1px solid var(--line);padding-left:30px}.source-moxa aside h3{font-size:20px;font-weight:400}.source-moxa aside p{font-size:16px;line-height:1.85;margin-top:20px;color:var(--muted)}
.source-traits{width:100%;align-content:center}.source-definition{font-size:21px;line-height:1.8;margin-bottom:14px}.source-traits h3{font-size:14px;color:var(--muted);font-weight:400;margin:10px 0}.source-traits ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;column-gap:35px;row-gap:12px;padding-left:20px;font-size:18px;line-height:1.8}.source-keypoints{font-size:16px;line-height:1.8;color:var(--muted);margin-top:20px}
.source-report-reference{align-content:center;font-size:19px;line-height:1.9;display:flex;flex-direction:column;justify-content:center;gap:18px}.source-report-reference>div{display:flex;gap:30px}.source-care>.page-footnote{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.source-reader{inset:0;margin:auto;width:min(1180px,calc(100vw - 80px));height:min(780px,calc(100vh - 70px));max-height:none;padding:28px 35px;border:1px solid var(--accent);border-radius:8px;background:var(--bg);color:var(--ink);overflow:hidden;box-shadow:0 24px 90px #0005}
.source-reader[open]{display:flex;flex-direction:column;gap:18px}.source-reader::backdrop{background:#05120ec0;backdrop-filter:blur(5px)}.source-reader header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.source-reader h2{font:29px/1.5 "Songti SC",serif}.source-reader header>button{background:transparent;border:0;color:var(--muted);font-size:30px;width:48px;height:48px}.source-reader .eyebrow{font-size:11px}.source-reader-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);flex-shrink:0}.source-reader-tabs button{min-height:44px;border:0;background:transparent;color:var(--muted);font-size:16px}.source-reader-tabs [aria-pressed=true]{color:var(--accent);border-bottom:1px solid var(--accent)}.source-reader-body{flex:1;min-height:0;align-content:center;display:flex;flex-direction:column;justify-content:center;gap:17px}.source-reader-body article small{font-size:10px;color:var(--muted)}.source-reader-body article p{font-size:18px;line-height:1.85;margin-top:4px;white-space:normal}.source-reader footer{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border-top:1px solid var(--line);padding-top:12px}.source-reader footer button{border:0;color:var(--ink);background:var(--accent-soft);min-height:44px;padding:8px 22px;font-size:17px}.source-reader footer span{font:15px Georgia,serif;color:var(--muted)}.source-reader button:disabled{opacity:.3}
@media(max-width:1400px){.source-health-groups{gap:26px}.source-health-group+section{padding-left:26px}.source-health-list>button{font-size:16px;column-gap:8px}.source-health-group>header h2{font-size:21px}[data-group=relative] .source-health-list{column-gap:22px}.source-care .care-card ul{font-size:16px;line-height:1.85}.source-moxa dl{font-size:18px}.source-moxa aside p{font-size:14px}.source-traits ul{font-size:16px;gap:8px 24px}.source-definition{font-size:18px}.source-keypoints{font-size:14px}.source-report-reference{font-size:17px;gap:13px}.source-profile-extra{padding-top:8px}body .profile-form{gap:12px}}
@media(max-height:860px){body .source-health{gap:10px}.source-health-group{gap:6px}.source-health-groups{gap:28px}.source-health-list>button{font-size:16px;line-height:1.5;padding:4px 0}.source-health-group>header{height:30px}.source-health-group>header h2{font-size:20px}.source-health-list .source-item-number{padding-top:3px}.source-health-warning,.source-health-hint{min-height:32px;font-size:12px;line-height:1.6}.source-health-warning{gap:12px}.source-health-list{gap:2px}.source-care .care-card ul{font-size:16px;line-height:1.8}.source-care .care-card{padding:15px!important;gap:10px!important}.source-care .care-card h2{font-size:22px!important}.source-care .care-symbol{font-size:25px}.source-report-types button{font-size:14px;min-height:34px}.source-report-tabs button{font-size:16px;min-height:40px}.source-care .page-title h1{font-size:26px}.source-report-content{gap:8px}.source-report-body .care-card button{min-height:40px;font-size:13px}.source-care{gap:9px}.source-moxa h2{font-size:22px;margin-bottom:9px}.source-moxa dt{margin-top:12px}.source-moxa aside p{font-size:13px;margin-top:12px}.source-traits ul{font-size:16px;line-height:1.65;gap:6px 20px}.source-definition{font-size:17px;margin-bottom:10px}.source-keypoints{font-size:14px;margin-top:12px}.source-report-reference{font-size:16px;gap:11px}body .profile-form{gap:10px}.source-profile-extra{padding-top:6px}.source-profile-extra .source-gender{min-height:40px}.source-reader{padding:20px 28px;gap:12px!important}.source-reader h2{font-size:25px}.source-reader-body{gap:10px}.source-reader-body article p{font-size:16px;line-height:1.65}.source-reader-tabs{gap:20px}}

/* Concrete age entry; ranges remain internal for historical records. */
.age-input-wrap{position:relative;width:220px;max-width:100%}
body .age-input-wrap input{width:100%;padding-right:52px}
.age-input-wrap>span{position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:19px;color:var(--muted);pointer-events:none}
body[data-scheme=c] .profile-form .age-entry{display:flex;align-items:flex-start}

.source-health-known{display:flex;align-items:center;gap:16px;min-height:38px;color:var(--muted);font-size:15px;line-height:1.6;flex-shrink:0}
.source-health-known>span{font-size:12px;border:1px solid var(--line);border-radius:4px;padding:3px 9px}
.source-health-known>p{color:var(--accent)}
/* Read-only management result after the final submission. */
body[data-page=completion] .flow-steps{display:none}
body[data-scheme=b][data-page=completion] .app-shell{grid-template-columns:1fr}
body[data-scheme=b][data-page=completion] .main-view{grid-column:1}
body .staff-result-page{display:flex;align-items:stretch;justify-content:flex-start;text-align:left;gap:13px;min-height:0}
.staff-result-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-shrink:0}
.staff-result-heading .eyebrow{font-size:11px;letter-spacing:2px}
body .staff-result-heading h1{font-size:30px;line-height:1.45;letter-spacing:2px}
.staff-result-status{font-size:16px;color:var(--red);border:1px solid var(--line);border-radius:4px;padding:8px 14px}
.staff-profile{display:flex;align-items:center;gap:30px;padding:15px 20px;border:1px solid var(--line);border-radius:8px;background:var(--accent-soft);flex-shrink:0}
.staff-profile>div{display:flex;align-items:center;gap:18px}
.staff-profile h2{font-size:25px;white-space:nowrap}
.staff-profile span{font-size:16px;color:var(--muted);white-space:nowrap}
.staff-profile dl{display:flex;gap:28px;font-size:16px}
.staff-profile dl>div{display:flex;gap:12px;align-items:center}
.staff-profile dt{color:var(--muted);font-size:12px}
.staff-profile time{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.staff-result-body{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;flex:1;min-height:0}
.staff-result-body[data-has-attention=false]{grid-template-columns:1fr}
.staff-result-body[data-has-attention=true]:has(.staff-observations){grid-template-columns:.8fr 1.2fr}
.staff-attention,.staff-assessment-panel{min-height:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.staff-attention{padding:17px 18px;border:1px solid var(--line);border-radius:8px}
.staff-attention>h2,.staff-observations>h2{font:20px/1.5 var(--serif);flex-shrink:0}
.staff-flag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px;align-content:start;min-height:0}
.staff-flag{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.45;min-height:27px}
.staff-flag-kind{font-size:10px;white-space:nowrap;padding:3px 5px;border-radius:3px;background:var(--accent-soft);color:var(--accent)}
.staff-flag[data-category=absolute] .staff-flag-kind{color:var(--red);border:1px solid color-mix(in srgb,var(--red) 25%,transparent);background:transparent}
.staff-instruction{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:13px;line-height:1.65;color:var(--muted)}
.staff-constitution{border:1px solid var(--line);border-radius:8px;padding:15px 18px;flex-shrink:0}
.staff-constitution>p:first-child{font-size:12px;color:var(--muted)}
.staff-constitution h2{font-size:29px;line-height:1.55;color:var(--accent)}
.staff-constitution h2 small{font:12px sans-serif;color:var(--muted)}
.staff-constitution .staff-secondary{font-size:14px;line-height:1.7;color:var(--muted)}
.staff-observations{display:flex;flex-direction:column;gap:8px;min-height:0}
.staff-observation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;align-content:start;min-height:0}
.staff-observation-grid>div{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;padding:3px 6px;border:1px solid var(--line);border-radius:4px;font-size:13px;line-height:1.4}
.staff-observation-grid b{font-size:11px;white-space:nowrap;color:var(--accent);font-weight:400}
body .staff-result-page .staff-consent{font-size:12px;line-height:1.5;color:var(--muted);flex-shrink:0;max-width:none}
@media(max-width:1200px){.staff-profile{gap:18px}.staff-profile dl{gap:16px}.staff-profile>div{gap:12px}.staff-profile time{font-size:11px}}
@media(max-height:860px){body .staff-result-page{gap:9px}body .staff-result-heading h1{font-size:26px}.staff-profile{padding:10px 16px}.staff-constitution{padding:10px 14px}.staff-constitution h2{font-size:25px}.staff-attention{padding:12px 14px;gap:8px}.staff-attention>h2,.staff-observations>h2{font-size:18px}.staff-flag-grid{gap:3px 10px}.staff-flag{font-size:13px;min-height:24px}.staff-instruction{padding-top:8px;font-size:12px}.staff-assessment-panel{gap:9px}.staff-observation-grid>div{font-size:12px;padding:2px 5px}.staff-observation-grid{gap:3px}.staff-observations{gap:6px}}
