.subhero #editPatient,.subhero #archivePatient{min-height:32px;padding:7px 11px;font-size:11px;border-radius:9px;box-shadow:none}
.patient-sheet{margin-top:20px}
.sheet-stage:focus-visible{outline:2px solid #318796;outline-offset:3px}
.sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.sheet-toolbar h2{margin:0;font:800 20px Manrope,sans-serif}.sheet-toolbar p{margin:7px 0 0;font-size:13px}
.sheet-date-controls{display:flex;align-items:end;gap:10px;flex-shrink:0}.sheet-date-controls label{display:grid;gap:5px;color:#52717a;font-size:11px;font-weight:700}.sheet-date-controls input{padding:9px;border:1px solid #cee4e9;border-radius:9px;background:white;color:#294b55}
.sheet-date-strip{display:flex;align-items:center;gap:8px;margin:16px 0}.sheet-arrow{flex:none;width:36px;height:36px;border:1px solid #cee4e9;border-radius:50%;background:white;color:#277889;font-size:25px}.sheet-arrow:disabled{opacity:.3}
#sheetDateLabels{flex:1;display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px}#sheetDateLabels button{background:none;border:0;padding:10px 4px;color:#79939b;font-size:16px}#sheetDateLabels button.selected{color:#163640;font-weight:800;font-size:20px}#sheetDateLabels small{display:block;font-size:11px;margin-top:5px;font-weight:400}
.sheet-stage{position:relative;isolation:isolate;padding:12px 0 24px;touch-action:pan-y;overflow:hidden;border-radius:22px}
.sheet-active{position:relative;z-index:2;width:78%;margin:auto;padding:20px;background:#e3f0f3;border:1px solid #ccE2e8;border-radius:20px;box-shadow:0 15px 30px #365f7526}
.sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.sheet-heading h2{font:800 21px Manrope,sans-serif;margin:7px 0 0}.sheet-heading .eyebrow{font-size:10px}
.sheet-panel{background:white;padding:23px;border:1px solid #e0edf0;border-radius:15px;box-shadow:0 5px 13px #365f7510}.sheet-panel+.sheet-panel{margin-top:16px}.sheet-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.sheet-panel-heading h3{margin:0;font:800 18px Manrope,sans-serif}.sheet-explanation{font-size:12px;line-height:1.6;color:#718c95;margin:12px 0 18px}.sheet-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sheet-results>.empty{grid-column:1/-1}.sheet-results strong{display:block;margin-top:8px}.sheet-results p{white-space:pre-wrap;overflow-wrap:anywhere}
.sheet-side{position:absolute;top:33px;bottom:24px;width:41%;height:auto;z-index:1;padding:20px;background:#dce9ee;border:1px solid #d1e2e7;border-radius:18px;color:#52717a;text-align:left;opacity:.4;transform:scaleX(.93);transition:opacity .2s;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;cursor:pointer}.sheet-side:hover{opacity:.65}.sheet-side:focus-visible{opacity:.75;outline:2px solid #318796;outline-offset:-3px}.sheet-side--left{left:-25%}.sheet-side--right{right:-25%}.sheet-side--blank{visibility:hidden}.sheet-mini-panel{display:grid;gap:12px;min-height:185px;padding:16px;margin-bottom:14px;border-radius:12px;background:#fff;box-shadow:0 6px 15px #365f7520}.sheet-mini-panel strong{font-size:14px}.sheet-mini-panel>span{font-size:12px}.sheet-mini-lines{height:65px;background:repeating-linear-gradient(transparent 0 18px,#cfdee3 18px 20px)}.sheet-side-hint{font-size:11px}
.sheet-history{margin-top:18px;border-top:1px solid #e3eef1;padding-top:14px}.sheet-history summary{cursor:pointer;font-size:12px;font-weight:700;color:#277889}.sheet-history .feed{margin-top:12px}.sheet-editor{margin:16px auto;width:78%}.sheet-editor[hidden]{display:none}.sheet-editor .history-composer{border:0;margin:0;padding-top:18px}.sheet-enter--next{animation:sheetFromRight .35s ease both}.sheet-enter--previous{animation:sheetFromLeft .35s ease both}
.sheet-side{width:16%}.sheet-side--left{left:0}.sheet-side--right{right:0}
.sheet-stage--compare{overflow:visible}
.sheet-compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;font-size:12px;color:#52717a}.sheet-compare-toolbar p{margin:0}.sheet-compare-toolbar button{flex-shrink:0}
.sheet-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;animation:sheetCompareIn .25s ease both}
.sheet-compare-card{min-width:0;padding:16px;border:1px solid #cce2e8;border-radius:18px;background:#e3f0f3;box-shadow:0 8px 22px #365f7520;cursor:pointer}
.sheet-compare-card>.btn{margin-top:14px}.sheet-compare-card .sheet-panel{padding:16px}.sheet-compare-card h3{font-size:16px;margin:0 0 12px}.sheet-compare-card .sheet-heading h2{font-size:19px}
.sheet-compare-open{display:block;margin-top:7px;border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}.sheet-compare-open:hover{text-decoration:underline}.sheet-compare-open:focus-visible{outline:2px solid #318796;outline-offset:4px}
.sheet-compare-notes{display:grid;gap:12px}.sheet-compare-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sheet-compare-vitals,.sheet-compare-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sheet-compare-field{min-width:0;padding:8px;border:1px solid #dce9ed;border-radius:8px;background:#fbfdfe;overflow-wrap:anywhere}.sheet-compare-field strong{display:block;font-size:12px}.sheet-compare-field small{font-size:10px;color:#708991;line-height:1.4}.sheet-compare-field p{margin:6px 0;font-size:13px;line-height:1.5;white-space:pre-wrap}.sheet-compare-changed{background:#fff7e8;border-color:#edcf92}
.sheet-compare-field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.sheet-compare-field>input,.sheet-compare-field>textarea{width:100%;min-width:0;padding:7px 8px;border:1px solid #cbdfe6;border-radius:7px;font:inherit;font-size:13px;line-height:1.5;color:#23404c;background:#fff}.sheet-compare-field>input{height:34px}.sheet-compare-field>textarea{min-height:72px;resize:vertical}.sheet-compare-field input:focus,.sheet-compare-field textarea:focus{outline:2px solid #70aebc;outline-offset:1px}.sheet-compare-field [aria-invalid=true]{border-color:#c1473a;background:#fff4f2}.sheet-compare-field [data-compare-note-error]{color:#b43d36}.sheet-compare-field>[data-compare-note-source],.sheet-compare-field>[data-compare-result-source],.sheet-compare-field>[role=status]{display:block;margin-top:4px}.sheet-compare-field small:empty{display:none}.sheet-compare-card [hidden]{display:none!important}.sheet-compare-card [data-status=error],.sheet-compare-card [data-status=invalid]{color:#b43d36}.sheet-compare-card [data-status=saved]{color:#287f63}.sheet-compare-field:has(input,textarea){cursor:text}
@keyframes sheetCompareIn{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.sheet-compare-grid{animation:none}}
@media(max-width:740px){.sheet-stage .sheet-side{width:7%;padding:0}.sheet-stage .sheet-side--left{left:0}.sheet-stage .sheet-side--right{right:0}}
@keyframes sheetFromRight{from{opacity:.5;transform:translateX(55px) scale(.98)}to{opacity:1;transform:none}}@keyframes sheetFromLeft{from{opacity:.5;transform:translateX(-55px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.sheet-enter--next,.sheet-enter--previous{animation:none}}
@media(max-width:740px){.sheet-toolbar{align-items:start;flex-direction:column;gap:12px}.sheet-date-controls{width:100%;justify-content:space-between}.sheet-active{width:90%;padding:12px}.sheet-side{width:50%;padding:12px;top:25px}.sheet-side--left{left:-43%}.sheet-side--right{right:-43%}.sheet-panel{padding:16px}.sheet-panel-heading{align-items:start;flex-wrap:wrap}.sheet-heading{align-items:start;flex-direction:column}.sheet-heading h2{font-size:19px}.sheet-results{grid-template-columns:1fr}.sheet-editor{width:100%}#sheetDateLabels{gap:0;grid-template-columns:1fr 1.4fr 1fr}#sheetDateLabels button{font-size:11px}#sheetDateLabels button.selected{font-size:14px}#sheetDateLabels small{font-size:10px}.sheet-arrow{width:30px;height:30px}.sheet-date-strip{gap:2px}.sheet-toolbar h2{font-size:18px}}
