.apnp-module{--apnp-accent:var(--brand-primary,#6d41c6);--apnp-bg:#fff;--apnp-ink:#17253a;--apnp-muted:#64748b;--apnp-line:#dce3eb;color:var(--apnp-ink);background:var(--apnp-bg);border:1px solid var(--apnp-line);border-radius:18px;padding:22px;min-width:0}.apnp-module[hidden]{display:none!important}[data-theme=dark] .apnp-module{--apnp-bg:#171a22;--apnp-ink:#edf0f6;--apnp-muted:#b4bdcb;--apnp-line:#39414e}.apnp-module *{box-sizing:border-box}.apnp-module h2,.apnp-module h3,.apnp-module p{margin:0}.apnp-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:22px}.apnp-heading small{color:var(--apnp-accent);font-weight:700;letter-spacing:.1em}.apnp-heading h2{font-size:25px;margin:5px 0}.apnp-heading p,.apnp-form p{color:var(--apnp-muted);font-size:13px;line-height:1.6}.apnp-module button{background:var(--apnp-bg);color:var(--apnp-ink);border:1px solid var(--apnp-line);border-radius:10px;padding:10px 15px;font:inherit;cursor:pointer}.apnp-module button.apnp-primary{background:var(--apnp-accent);color:#fff;border-color:var(--apnp-accent)}.apnp-module button:disabled{opacity:.55;cursor:wait}.apnp-module label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}.apnp-module input,.apnp-module select{background:var(--apnp-bg);color:var(--apnp-ink);border:1px solid var(--apnp-line);border-radius:9px;padding:10px;font:inherit;min-width:0;width:100%}.apnp-module input:focus,.apnp-module select:focus{outline:2px solid var(--apnp-accent);outline-offset:2px}.apnp-toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.apnp-toolbar label{min-width:160px}.apnp-form fieldset{border:1px solid var(--apnp-line);border-radius:12px;padding:18px;margin:0 0 18px}.apnp-form legend{padding:0 8px;font-weight:700}.apnp-form legend small{font-weight:400;font-size:12px}.apnp-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.apnp-form p{margin-top:12px}.apnp-form footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.apnp-form [data-error]{color:#d84545}.apnp-note{background:color-mix(in srgb,var(--apnp-accent) 8%,transparent);padding:14px;border-radius:10px}.apnp-report{padding:20px;border:1px solid var(--apnp-line);border-radius:14px;margin-top:15px}.apnp-report-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.apnp-report-header small{display:block;font-size:11px;color:var(--apnp-muted);margin:5px 0}.apnp-report-header h2{font-size:24px;color:var(--apnp-accent)}.apnp-report-header p{font-size:16px}.apnp-report-header>div:last-child{text-align:right}.apnp-person{display:flex;gap:14px;justify-content:space-between;flex-wrap:wrap;margin:18px 0;padding:14px;background:color-mix(in srgb,var(--apnp-accent) 6%,transparent);border:1px solid var(--apnp-line);border-radius:10px;font-size:12px}.apnp-person strong{font-size:15px}.apnp-report-band{background:var(--apnp-accent);color:white;padding:10px 14px;border-radius:8px;font-size:12px;font-weight:700;letter-spacing:.04em}.apnp-body-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,.62fr) minmax(0,1fr);gap:12px;margin:15px 0}.apnp-region,.apnp-total,.apnp-secondary article,.apnp-classification{border:1px solid var(--apnp-line);border-radius:10px;padding:14px;margin-bottom:12px;min-width:0}.apnp-region h3,.apnp-total h3,.apnp-secondary h3,.apnp-classification h3{font-size:12px;line-height:1.4;margin-bottom:5px}.apnp-region{border-left:5px solid var(--region);--region:#2788cf}.apnp-region h3{color:var(--region)}.apnp-lower{--region:#e77d25}.apnp-trunk{--region:#38a465}.apnp-report small{color:var(--apnp-muted);font-size:10px}.apnp-report dl{margin:10px 0 0}.apnp-report dl>div{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid var(--apnp-line);font-size:11px}.apnp-report dt{font-weight:400}.apnp-report dd{margin:0;text-align:right;font-weight:700;white-space:nowrap}.apnp-report dd small{font-weight:400}.apnp-unavailable{font-size:10px;color:var(--apnp-muted);line-height:1.5;margin-top:10px!important}.apnp-avatar{margin:0;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0}.apnp-avatar img{width:100%;max-height:450px;object-fit:contain}.apnp-avatar figcaption{font-size:9px;color:var(--apnp-muted);text-align:center}.apnp-secondary{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}.apnp-secondary p{font-size:11px;line-height:1.6;margin:7px 0}.apnp-composition{height:18px;border-radius:10px;background:#4aa66a;margin:18px 0 10px;overflow:hidden}.apnp-composition span{height:100%;display:block;background:#e9993f}.apnp-bone-value{font-size:28px;display:block;margin:10px 0}.apnp-bottom{display:grid;grid-template-columns:2fr 1fr;gap:12px}.apnp-classification dd{white-space:normal}.apnp-evolution{border:1px solid var(--apnp-line);border-radius:10px;padding:12px;overflow-x:auto;margin-bottom:12px}.apnp-history-grid{min-width:390px}.apnp-history-head{display:grid;grid-template-columns:105px repeat(var(--dates),1fr);font-size:9px;align-items:center;border-bottom:1px solid var(--apnp-line);padding-bottom:9px;gap:2px}.apnp-history-head span{text-align:center;font-size:8px}.apnp-history-row{display:grid;grid-template-columns:105px 1fr;border-bottom:1px solid var(--apnp-line);min-height:65px;align-items:center;font-size:10px}.apnp-history-row small{display:block;margin-top:4px}.apnp-history-series{display:grid;grid-template-columns:repeat(var(--dates),1fr);position:relative;height:65px;text-align:center}.apnp-history-series>span{padding-top:3px;font-weight:700;z-index:1}.apnp-history-series svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.apnp-history-series line{stroke:var(--apnp-accent);stroke-width:1.8}.apnp-history-series circle{fill:var(--apnp-accent)}.apnp-disclaimer{font-size:10px;line-height:1.6;color:var(--apnp-muted);border-top:1px solid var(--apnp-line);padding-top:12px}.apnp-patient>summary{cursor:pointer;display:flex;gap:12px;align-items:center;list-style:none}.apnp-patient>summary small{display:block;color:var(--apnp-muted);font-size:12px;margin-top:5px}.apnp-symbol{display:grid;place-items:center;width:42px;height:42px;background:color-mix(in srgb,var(--apnp-accent) 12%,transparent);color:var(--apnp-accent);border-radius:12px;font-size:28px}.apnp-patient>div{margin-top:20px}.apnp-empty{padding:25px 0;color:var(--apnp-muted)}@media(max-width:1050px){.apnp-body-grid{grid-template-columns:1fr 140px 1fr}.apnp-bottom{grid-template-columns:1fr}.apnp-report{padding:12px}.apnp-region{padding:10px}.apnp-report dl>div{font-size:10px}}@media(max-width:700px){.apnp-module{padding:14px}.apnp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.apnp-heading{align-items:start}.apnp-heading h2{font-size:21px}.apnp-body-grid{grid-template-columns:1fr 1fr}.apnp-avatar{grid-row:1;grid-column:1/-1;height:250px}.apnp-avatar img{height:230px;width:auto}.apnp-secondary{grid-template-columns:1fr}.apnp-report-header h2{font-size:20px}.apnp-report-header p{font-size:12px}.apnp-person{gap:9px}.apnp-report-band{font-size:10px}.apnp-history-grid{min-width:460px}.apnp-form footer{flex-wrap:wrap}.apnp-region h3{font-size:11px}}@media(max-width:420px){.apnp-body-grid{grid-template-columns:1fr}.apnp-fields{grid-template-columns:1fr}.apnp-report-header{align-items:start;flex-direction:column}.apnp-report-header>div:last-child{text-align:left}}
[data-theme=dark] .apnp-report-header h2{color:color-mix(in srgb,var(--apnp-accent) 65%,white)}[data-theme=dark] .apnp-history-series line{stroke:color-mix(in srgb,var(--apnp-accent) 60%,white)}[data-theme=dark] .apnp-history-series circle{fill:color-mix(in srgb,var(--apnp-accent) 60%,white)}

.apnp-module .apnp-field-help{display:block;font-size:11px;line-height:1.45;font-weight:400;margin-top:4px}.apnp-module .apnp-notes{margin:12px 0;font-size:12px}.apnp-module .apnp-notes summary{cursor:pointer;font-weight:600}.apnp-module .apnp-notes li{margin:6px 0}
/* v186: compact clinical form, clear labels, independent contrast in both themes. */
.apnp-module{--apnp-muted:#475569;padding:18px;font-size:14px}
.apnp-module .apnp-heading{margin-bottom:12px;gap:12px}.apnp-module .apnp-heading h2{font-size:22px;margin:0 0 4px}.apnp-module .apnp-heading p{font-size:13px;color:var(--apnp-muted);opacity:1}
.apnp-module .apnp-form[hidden]{display:none!important}.apnp-module .apnp-form fieldset{padding:10px 12px;margin:0 0 12px}.apnp-module .apnp-form legend{font-size:14px}.apnp-module .apnp-fields{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px;align-items:end}.apnp-module .apnp-reference-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.apnp-module .apnp-fields label{gap:5px;font-size:13px;line-height:1.35;color:var(--apnp-ink);opacity:1}.apnp-module input,.apnp-module select{font-size:15px;padding:8px 10px;height:39px;color:var(--apnp-ink);opacity:1}.apnp-module .apnp-form p{font-size:12px;line-height:1.45;margin-top:7px;color:var(--apnp-muted);opacity:1}.apnp-module .apnp-form [data-error]{color:#bc2424;font-weight:600}.apnp-module [data-status]{color:var(--apnp-ink);font-size:14px;font-weight:600;margin-bottom:10px}.apnp-module [data-reference-status]:empty,.apnp-module [data-import-note]:empty,.apnp-module [data-error]:empty{display:none}
.apnp-module .apnp-editor-select{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}.apnp-module .apnp-editor-select label{min-width:230px}.apnp-module .apnp-form footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}.apnp-module .apnp-form footer button{font-size:13px;font-weight:600;padding:10px 8px;background:var(--apnp-accent);color:white;border-color:var(--apnp-accent)}.apnp-module .apnp-circumferences,.apnp-module .apnp-collection-help{border:1px solid var(--apnp-line);padding:10px 12px;border-radius:10px;margin:9px 0}.apnp-module .apnp-circumferences summary,.apnp-module .apnp-collection-help summary{font-size:14px;font-weight:600;cursor:pointer;color:var(--apnp-ink)}.apnp-module .apnp-circumferences .apnp-fields{margin-top:12px}.apnp-module .apnp-collection-help dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;font-size:13px}.apnp-module .apnp-collection-help dt{font-weight:700}.apnp-module .apnp-collection-help dd{margin:4px 0;color:var(--apnp-muted)}
.apnp-module .apnp-report{color:var(--apnp-ink)}.apnp-module .apnp-report p,.apnp-module .apnp-report dt,.apnp-module .apnp-report dd,.apnp-module .apnp-report strong{color:var(--apnp-ink);opacity:1}.apnp-module .apnp-report small,.apnp-module .apnp-report .apnp-disclaimer{color:var(--apnp-muted);opacity:1}.apnp-module .apnp-report dl>div{font-size:14px;padding:9px 0}.apnp-module .apnp-report small{font-size:12px}.apnp-module .apnp-body-grid{grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr);align-items:stretch;gap:20px}.apnp-module .apnp-avatar{grid-column:1;grid-row:1;height:auto;min-height:340px}.apnp-module .apnp-avatar img{width:100%;height:380px;max-height:440px;object-fit:contain}.apnp-module .apnp-region-stack{grid-column:2;grid-row:1;display:grid;gap:10px}.apnp-module .apnp-region{margin:0;padding:12px 16px}.apnp-module .apnp-region h3{font-size:15px}.apnp-module .apnp-region dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 0}.apnp-module .apnp-region dl>div{display:block;border:0;padding:0;font-size:13px}.apnp-module .apnp-region dd{text-align:left;font-size:20px;margin-top:4px}.apnp-module .apnp-region dd small{font-size:12px}.apnp-module .apnp-total h3,.apnp-module .apnp-secondary h3,.apnp-module .apnp-classification h3{font-size:14px}.apnp-module .apnp-secondary{grid-template-columns:1.2fr 1fr}.apnp-module .apnp-secondary p{font-size:13px}.apnp-module .apnp-bottom{grid-template-columns:2fr 1fr}.apnp-module .apnp-classification dl>div{font-size:12px}.apnp-module .apnp-disclaimer{font-size:11px}.apnp-module .apnp-bone-track{height:12px;border-radius:6px;background:color-mix(in srgb,var(--apnp-accent) 18%,var(--apnp-bg));position:relative;margin:22px 8px 8px}.apnp-module .apnp-bone-track i{position:absolute;width:14px;height:14px;border-radius:50%;top:-1px;transform:translateX(-50%);background:var(--apnp-accent);border:2px solid var(--apnp-bg);box-shadow:0 0 0 1px var(--apnp-accent)}.apnp-module .apnp-bone-ticks{display:flex;justify-content:space-between;font-size:12px;color:var(--apnp-ink);margin:0 5px 12px}
[data-theme=dark] .apnp-module{--apnp-muted:#c3cbd7}[data-theme=dark] .apnp-module .apnp-form [data-error]{color:#ff9f9f}
@media(max-width:1100px){.apnp-module .apnp-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.apnp-module .apnp-bottom{grid-template-columns:1fr}.apnp-module .apnp-region dl>div{font-size:12px}.apnp-module .apnp-region dd{font-size:18px}}
@media(max-width:700px){.apnp-module{padding:12px}.apnp-module .apnp-fields,.apnp-module .apnp-reference-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.apnp-module .apnp-form footer{grid-template-columns:1fr 1fr}.apnp-module .apnp-body-grid{grid-template-columns:minmax(80px,.5fr) minmax(0,1.5fr);gap:8px}.apnp-module .apnp-avatar img{height:330px}.apnp-module .apnp-region{padding:10px}.apnp-module .apnp-region h3{font-size:12px}.apnp-module .apnp-region dl{display:block}.apnp-module .apnp-region dl>div{display:flex;justify-content:space-between;align-items:center;padding:5px 0;gap:6px}.apnp-module .apnp-region dd{font-size:15px;margin:0}.apnp-module .apnp-region small{font-size:10px}.apnp-module .apnp-secondary{grid-template-columns:1fr}.apnp-module .apnp-collection-help dl{grid-template-columns:1fr}.apnp-module .apnp-editor-select label{min-width:0;flex:1}}
.apnp-module .apnp-history-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--apnp-accent);transform:translate(-50%,-50%)}[data-theme=dark] .apnp-module .apnp-history-dot{background:color-mix(in srgb,var(--apnp-accent) 60%,white)}
.apnp-module .apnp-history-grid{min-width:var(--apnp-history-min,390px)}
@media(max-width:520px){.apnp-module .apnp-body-grid{grid-template-columns:1fr}.apnp-module .apnp-avatar{grid-column:1;grid-row:1;min-height:0;height:250px}.apnp-module .apnp-avatar img{height:225px;width:auto;max-width:100%}.apnp-module .apnp-region-stack{grid-column:1;grid-row:2}}

/* v187: unified measurements and readable results. */
.apnp-module button,.apnp-module .apnp-form footer button{font-size:15px;font-weight:700}
.apnp-module [data-minimize],.apnp-module [data-cancel]{background:var(--apnp-accent);border-color:var(--apnp-accent);color:#fff}
.apnp-module .apnp-form footer{grid-template-columns:repeat(3,minmax(0,1fr))}
.apnp-module .apnp-measurements{padding:8px 0}
.apnp-module .apnp-bottom{grid-template-columns:minmax(0,1fr)}
.apnp-module .apnp-history-head{grid-template-columns:160px repeat(var(--dates),1fr);font-size:14px;min-height:42px}
.apnp-module .apnp-history-head span{font-size:14px;font-weight:400;color:var(--apnp-ink)}
.apnp-module .apnp-history-row{grid-template-columns:160px 1fr;font-size:15px}
.apnp-module .apnp-history-series>span{font-size:16px;font-weight:400;color:var(--apnp-ink)}
.apnp-module .apnp-total dt{font-weight:700}
.apnp-module .apnp-download-link{color:var(--apnp-accent);font-weight:700;text-decoration:underline}
@media(max-width:700px){.apnp-module .apnp-form footer{grid-template-columns:1fr}.apnp-module button{min-height:42px}}

/* v188: streamlined form and unified evolution. */
.apnp-module .apnp-report-header h2{color:var(--apnp-ink)}
.apnp-module .apnp-fixed{background:color-mix(in srgb,var(--apnp-ink) 4%,var(--apnp-bg));border-color:color-mix(in srgb,var(--apnp-ink) 22%,var(--apnp-bg))}
.apnp-module button.apnp-delete{background:#dc2626;border-color:#dc2626;color:white}
.apnp-module button.apnp-delete:hover{background:#b91c1c;border-color:#b91c1c}
.apnp-module .apnp-history-head{grid-template-columns:210px repeat(var(--dates),1fr)}
.apnp-module .apnp-history-row{grid-template-columns:210px 1fr}
.apnp-module .apnp-history-row>strong{border-left:3px solid var(--apnp-series);padding-left:9px}
.apnp-module .apnp-history-series line{stroke:var(--apnp-series)}
.apnp-module .apnp-history-dot{background:var(--apnp-series)}
.apnp-module .apnp-inline-help{margin-top:8px;font-size:12px}.apnp-module .apnp-inline-help summary{cursor:pointer}.apnp-module .apnp-inline-help p{font-size:12px;margin-top:6px}

/* v189: shared evolution layout, compact patient labels and white-label navigation. */
.apnp-module .apnp-evolution{overflow:hidden;min-width:0}
.apnp-module .apnp-evolution-title{text-align:center;font-size:14px;margin:0 0 12px}
.apnp-module .apnp-history-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.apnp-module .apnp-history-grid{--apnp-label-width:290px;min-width:calc(var(--apnp-label-width) + var(--apnp-date-width))}
.apnp-module .apnp-history-head{grid-template-columns:var(--apnp-label-width) repeat(var(--dates),minmax(0,1fr));gap:0}
.apnp-module .apnp-history-row{grid-template-columns:var(--apnp-label-width) minmax(0,1fr);min-height:76px}
.apnp-module .apnp-history-row>strong{white-space:nowrap;line-height:1.35;padding-right:10px}
.apnp-module .apnp-history-series{height:76px}
.apnp-module .apnp-history-series svg{height:65px}
.apnp-module .apnp-history-series>span{padding-top:43px;font-weight:400;white-space:nowrap}
.apnp-patient .apnp-history-grid{--apnp-label-width:145px}
.apnp-patient .apnp-history-row>strong{white-space:pre-line;font-size:14px}
.apnp-patient .apnp-symbol{background:var(--apnp-accent);color:#fff;flex-shrink:0}
.apnp-patient .apnp-chevron{margin-left:auto;flex-shrink:0;transition:transform .15s}
.apnp-patient[open] .apnp-chevron{transform:rotate(90deg)}
.apnp-module .apnp-avatar{position:relative;min-height:0;overflow:hidden}
.apnp-module .apnp-avatar img{position:absolute;top:0;height:100%;width:100%;max-height:none;object-fit:contain}
@media(max-width:520px){.apnp-module .apnp-avatar{height:300px}.apnp-module .apnp-avatar img{width:100%;height:100%}}

@media(min-width:521px){
.apnp-module .apnp-avatar img{width:auto;max-width:none;height:110.345%;top:-3.161%}
.apnp-module .apnp-avatar img[src*="female"]{height:104.703%;top:-.886%}
}
/* V190: cabeçalho tabular, faixas e identidade compartilhada. */
.apnp-module .apnp-history-head{align-items:center;border-bottom:1px solid var(--border,#dce2e9);padding:12px 0;margin:0}
.apnp-module .apnp-history-head .apnp-evolution-title{text-align:left;margin:0;padding:0 10px;font-size:16px;line-height:1.35}
.apnp-module .apnp-history-row{padding:0 10px;box-sizing:border-box}
.apnp-module .apnp-history-row:nth-child(odd){background:color-mix(in srgb,var(--apnp-accent) 6%,white)}
[data-theme=dark] .apnp-module .apnp-history-row:nth-child(odd){background:color-mix(in srgb,var(--apnp-accent) 9%,#181b22)}
.apnp-module .apnp-history-row .apnp-history-dot,[data-theme=dark] .apnp-module .apnp-history-row .apnp-history-dot{background:var(--apnp-series)}
.apnp-module .apnp-history-row svg line{stroke:var(--apnp-series)}
.apnp-module .apnp-region dt{font-weight:700}
.apnp-module .apnp-history-date{padding:5px 0;border:0;background:none;box-shadow:none;color:inherit;font:inherit;cursor:pointer}
.apnp-module .apnp-heading .apnp-toolbar{margin:0 0 0 auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.apnp-module .apnp-with-reference{min-width:550px}
.apnp-module .apnp-with-reference .apnp-history-head,.apnp-module .apnp-with-reference .apnp-history-row{grid-template-columns:var(--apnp-label-width) minmax(100px,1fr) minmax(130px,1fr)}
.apnp-module .apnp-reference-range{align-self:center;text-align:center;font-size:14px;font-weight:400}
.apnp-module .apnp-sources{font-size:10px;line-height:1.4;color:var(--muted,#657284);margin:12px 0 0}
.apnp-module:has(>.apnp-patient){padding:16px}
.apnp-patient>summary{gap:10px}
.apnp-patient .apnp-symbol{width:36px;height:36px;min-width:36px;flex-basis:36px;border-radius:11px}
.apnp-patient .apnp-symbol svg{width:22px;height:22px}
.hf-workspace-apn-protocol-parent.is-active .hf-workspace-submenu-arrow{transform:rotate(90deg)}
@media(max-width:600px){.apnp-module .apnp-history-grid{--apnp-label-width:145px}.apnp-module .apnp-history-row>strong{white-space:pre-line}.apnp-module .apnp-heading{flex-wrap:wrap}.apnp-module .apnp-with-reference{min-width:460px}.apnp-module .apnp-history-head .apnp-evolution-title{font-size:14px}}
.apnp-module .apnp-history-head{padding-left:10px;padding-right:10px}

/* V191: each avatar uses its own visible head-to-toe bounds. */
@media(min-width:521px){.apnp-module .apnp-avatar img,.apnp-module .apnp-avatar img[src*="female"]{height:var(--apnp-avatar-height,100%);top:var(--apnp-avatar-top,0);width:auto;max-width:none}}

/* V192: selected assessment header and simplified patient view. */
.apnp-module .apnp-report-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.apnp-module .apnp-report-header .apnp-person{display:flex;flex-direction:column;align-items:flex-start;gap:7px;background:none;border:0;padding:0;margin:0;flex:1;min-width:0}
.apnp-module .apnp-report-date{flex-shrink:0;text-align:right}
.apnp-module .apnp-date-selector{display:flex;flex-direction:column;gap:5px;max-width:230px;margin:0 0 16px}
.apnp-module .apnp-date-selector select{width:100%;padding:9px;border:1px solid var(--apnp-line);border-radius:9px;background:var(--apnp-bg);color:inherit}
.apnp-module .apnp-form footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.apnp-module .apnp-form footer button{flex:0 1 auto;width:auto}
.apnp-module .apnp-patient-report{padding-top:12px}
@media(max-width:600px){.apnp-module .apnp-report-header{flex-wrap:wrap;gap:12px}.apnp-module .apnp-report-date{text-align:left}.apnp-module .apnp-report-header .apnp-person{flex-basis:100%}}

/* V194 — selected comparisons and compact deltas. */
.apnp-delta{font-size:.8em;white-space:nowrap;font-weight:600}
.apnp-history-series>span:has(.apnp-delta){white-space:normal;line-height:1.3}
.apnp-comparison .apnp-history-row>strong{white-space:nowrap}
.apnp-comparison .apnp-history-grid{--apnp-label-width:260px}
.apnp-comparison .hf-assessment-date-selector{margin-top:16px}
.apnp-comparison [data-content]>.apnp-toolbar{margin:14px 0;justify-content:flex-end}
.apnp-comparison [data-content]>.apnp-toolbar[hidden]{display:none}
.apnp-sync-notice{font-size:13px;margin:12px 0}
.apnp-sync-notice button{display:block;margin-top:8px}
@media(max-width:650px){.apnp-comparison .apnp-history-grid{--apnp-label-width:145px}.apnp-comparison .apnp-history-row>strong{white-space:pre-line}}

.apnp-module .apnp-history-row small.apnp-delta{display:inline;margin:0;font-size:.8em}
.apnp-comparison label.hf-assessment-date-option{flex-direction:row;align-items:center;justify-content:flex-start}
.apnp-comparison .hf-assessment-date-option input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;padding:0;margin:0;border-radius:3px}
.hf-professional-anthropometry-results .apnp-module{order:0;margin:0!important}
.apnp-comparison>summary .apnp-symbol{width:42px;height:42px;flex-basis:42px}
.apnp-comparison>summary b{font-size:18px}

.apnp-module .apnp-history-series>span:has(.apnp-delta){white-space:nowrap}

/* Integração HF: identidade visual e cabeçalho do histórico. */
.apnp-module{--apnp-accent:#111111}
.hf-professional-anthropometry-results .hf-anthropometry-title{border-bottom:0!important}
.hf-professional-anthropometry-results>.assessments>.apnp-module{order:0;min-width:0}
.hf-professional-anthropometry-results .section-head{order:-1}

.apnp-module .hf-assessment-compare-button{background:#111!important;color:#fff!important}
html[data-theme="dark"] .apnp-module .hf-assessment-compare-button{background:#eee!important;color:#111!important}

/* HF V349: contraste e alinhamento do formulário e dos resultados. */
.apnp-module{--apnp-line:#9ca3ac;--apnp-ink:#17191d;--apnp-muted:#535a65;border-color:var(--apnp-line)}
.apnp-module.apnp-no-assessments{display:none!important}
html[data-theme=dark] .apnp-module{--apnp-line:#69717d;--apnp-bg:#171a20;--apnp-ink:#f2f3f5;--apnp-muted:#c2c7d0}
.apnp-module .apnp-fields input{border:1px solid var(--apnp-line);background:#f7f8fa;box-shadow:inset 0 1px 2px #00000008}
html[data-theme=dark] .apnp-module .apnp-fields input{background:#22262e}
.apnp-module .apnp-fields label{min-width:0;align-self:stretch;justify-content:flex-end}
.apnp-module .apnp-fields label>span{display:flex;align-items:flex-end;min-height:2.7em;line-height:1.35}
.apnp-module .apnp-reference-fields label>span{min-height:1.35em}
.apnp-module .apnp-reference-fields [data-save-references]{grid-column:-2/-1}
.apnp-module:has(>.apnp-patient){border:1px solid var(--apnp-line);border-radius:16px;background:var(--apnp-bg)}
.apnp-module .apnp-patient>summary{min-height:48px}
.apnp-module .apnp-heading{display:flex!important;visibility:visible!important}
@media(max-width:700px){.apnp-module .apnp-fields{gap:12px}.apnp-module .apnp-fields label>span{min-height:2.7em}}
