/* Avaliação por foto - HF Pacientes */
.hf-photo-open{white-space:nowrap;width:46px!important;min-width:46px!important;padding:0!important;display:grid!important;place-items:center}.hf-photo-open svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.hf-photo-dialog-open,.hf-photo-camera-open{overflow:hidden}.hf-photo-dialog{position:fixed;inset:0;z-index:99990;background:rgba(0,0,0,.62);display:grid;place-items:center;padding:18px;color:var(--text,#17191d)}.hf-photo-dialog[hidden],.hf-photo-camera-modal[hidden]{display:none!important}.hf-photo-dialog-panel{width:min(680px,100%);max-height:calc(100dvh - 36px);overflow:auto;background:var(--card,#fff);color:inherit;border:1px solid var(--border,#d9dce1);border-radius:22px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.35)}.hf-photo-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.hf-photo-dialog-head h2{margin:0;font-size:1.25rem}.hf-photo-dialog-head p{margin:4px 0 0;opacity:.7}.hf-photo-dialog-close{flex:0 0 auto;width:40px;height:40px;border:1px solid var(--border,#d9dce1);border-radius:50%;background:transparent;color:inherit;font-size:27px;line-height:1}.hf-photo-date-wrap{display:flex;align-items:center;gap:10px;font-size:.84rem;font-weight:700;margin:0 0 12px}.hf-photo-date{font:inherit;color:inherit;background:transparent;border:1px solid var(--border,#d9dce1);border-radius:10px;padding:8px 10px}
.hf-photo-captures{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hf-photo-capture{min-height:330px;border:1px solid color-mix(in srgb,currentColor 45%,transparent);border-radius:18px;background:transparent;color:inherit;overflow:hidden;padding:0;position:relative}.hf-photo-capture img{width:100%;height:330px;object-fit:contain;background:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:330px;gap:6px;padding:14px}.hf-photo-placeholder svg{width:115px;height:225px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;opacity:.68}.hf-photo-placeholder svg .body{fill:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-placeholder .axis{stroke-width:1;stroke-dasharray:6 10;opacity:.18}.hf-photo-camera-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:currentColor;color:var(--card,#fff);font-size:26px}.hf-photo-placeholder b{font-size:1rem}.hf-photo-placeholder small{font-size:.78rem;opacity:.62}.hf-photo-retake{position:absolute;right:10px;bottom:10px;border-radius:999px;padding:7px 10px;background:rgba(0,0,0,.68);color:#fff;font-size:.76rem;font-weight:700}.hf-photo-dialog-help{font-size:.82rem;opacity:.68;margin:12px 0}.hf-photo-save{width:100%;min-height:46px}.hf-photo-notice{margin:10px 0 0;font-size:.88rem}.hf-photo-notice.success{color:#16803b}.hf-photo-notice.warning{color:#9a6700}.hf-photo-notice.error{color:#b42318}
.hf-photo-camera-modal{position:fixed;inset:0;z-index:99999;background:#000}.hf-photo-camera-shell{position:absolute;inset:0;overflow:hidden}.hf-photo-camera-shell video{width:100%;height:100%;object-fit:cover}.hf-photo-guide{position:absolute;inset:4% 12% 13%;display:grid;place-items:center;color:rgba(255,255,255,.82);pointer-events:none}.hf-photo-guide svg{height:100%;max-width:100%;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 3px #000)}.hf-photo-guide svg .body{fill:rgba(255,255,255,.035)}.hf-photo-guide .axis{stroke-width:1;stroke-dasharray:6 10;opacity:.35}.hf-photo-camera-top{position:absolute;top:max(16px,env(safe-area-inset-top));left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;color:#fff;text-shadow:0 1px 3px #000}.hf-photo-close{width:44px;height:44px;border-radius:50%;border:0;background:rgba(0,0,0,.48);color:#fff;font-size:30px}.hf-photo-camera-tip{position:absolute;left:18px;right:18px;bottom:112px;text-align:center;color:#fff;font-size:13px;text-shadow:0 1px 3px #000}.hf-photo-shutter{position:absolute;z-index:5;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:76px;height:76px;border-radius:50%;border:4px solid #fff;background:rgba(0,0,0,.15);padding:6px;touch-action:manipulation}.hf-photo-shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#fff}
.hf-photo-results{margin-top:16px}.hf-photo-results-title{width:100%}.hf-photo-results-icon{display:grid;place-items:center}.hf-photo-date-selector{padding:0 18px 14px}.hf-photo-date-selector>strong{display:block;margin-bottom:8px;font-size:.88rem}.hf-photo-date-selector>div{display:flex;flex-wrap:wrap;gap:8px}.hf-photo-date-selector label{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border,#d9dce1);border-radius:999px;padding:7px 11px;cursor:pointer}.hf-photo-date-selector label.is-selected{font-weight:700}.hf-photo-date-selector input{margin:0}.hf-photo-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 18px 18px}.hf-photo-results figure{margin:0}.hf-photo-results figure img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:14px;background:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-results figcaption{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:.82rem}.hf-photo-patient-note{padding:0 18px 16px;opacity:.65}
@media(min-width:641px){#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker{order:1}#hf-anthropometry-card .anthro-head-actions .hf-photo-open{order:2}#hf-anthropometry-card .anthro-head-actions .anthro-section-toggle:not(.hf-photo-open){order:3}}
@media(max-width:640px){#hf-anthropometry-card .anthro-head-actions{display:grid!important;grid-template-columns:46px 1fr;gap:10px;width:100%}#hf-anthropometry-card .anthro-head-actions .hf-photo-open{grid-column:1;grid-row:1}#hf-anthropometry-card .anthro-head-actions .anthro-section-toggle:not(.hf-photo-open){grid-column:2;grid-row:1;width:100%}#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker{grid-column:1 / -1;grid-row:2;width:100%;margin:0!important}#hf-anthropometry-card .anthro-head-actions .anthro-protocol-picker select{width:100%}.hf-photo-dialog{padding:10px}.hf-photo-dialog-panel{padding:16px;border-radius:18px;max-height:calc(100dvh - 20px)}.hf-photo-captures{gap:8px}.hf-photo-capture,.hf-photo-placeholder{min-height:250px}.hf-photo-capture img{height:250px}.hf-photo-placeholder svg{height:150px;width:76px}.hf-photo-placeholder small{display:none}.hf-photo-results-grid{gap:8px;padding-left:12px;padding-right:12px}.hf-photo-results figcaption{display:block}.hf-photo-results figcaption span{display:block;opacity:.65;margin-top:2px}}

/* V294 — coleta fotográfica exclusiva pelo painel profissional no smartphone */
.hf-photo-dashboard-action{display:none!important}
.hf-photo-patient-picker{position:fixed;inset:0;z-index:100020;background:rgba(0,0,0,.62);display:flex;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 18px) 14px 18px;overflow:auto}
.hf-photo-patient-picker[hidden]{display:none!important}
.hf-photo-picker-panel{width:min(100%,560px);margin:auto;background:var(--card,#fff);color:var(--text,#151515);border:1px solid var(--border,#d9d9d9);border-radius:24px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.hf-photo-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.hf-photo-picker-head h2{margin:0;font-size:1.35rem}.hf-photo-picker-head p{margin:5px 0 0;opacity:.68}.hf-photo-picker-close{border:0;background:transparent;color:inherit;font-size:30px;line-height:1;cursor:pointer}
.hf-photo-picker-search{display:flex;align-items:center;gap:10px;border:1px solid var(--border,#ccc);border-radius:16px;padding:0 14px;background:var(--input-bg,transparent)}.hf-photo-picker-search svg{width:22px;flex:none}.hf-photo-picker-search input{width:100%;min-width:0;border:0!important;outline:0;background:transparent!important;color:inherit!important;padding:15px 0!important;font-size:16px!important;font-weight:400!important}
.hf-photo-picker-results{display:grid;gap:8px;margin-top:12px;max-height:55vh;overflow:auto}.hf-photo-picker-patient{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid var(--border,#ddd);border-radius:14px;padding:13px 14px;background:transparent;color:inherit;cursor:pointer}.hf-photo-picker-patient strong{display:block}.hf-photo-picker-patient small{display:block;margin-top:3px;opacity:.65}.hf-photo-picker-patient span:last-child{font-size:22px}.hf-photo-picker-empty{padding:18px 8px;text-align:center;opacity:.65}
@media (max-width: 760px){
  .admin-head-actions .hf-photo-dashboard-action{display:flex!important}
  .admin-head-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .hf-photo-dashboard-action{align-items:center;justify-content:center;flex-direction:column;gap:8px}
  .hf-photo-dashboard-action .hf-action-icon svg{width:30px;height:30px}
  .hf-photo-dashboard-action .hf-action-text{display:block}
}

/* V295 — refinamentos do dashboard, captura preenchida e resultados */
.hf-photo-results{margin-top:18px!important}
.hf-photo-results-title{position:relative}
.hf-photo-results-chevron{margin-left:auto;font-size:22px;line-height:1;transition:transform .18s ease}
.hf-photo-results-title[aria-expanded="true"] .hf-photo-results-chevron{transform:rotate(180deg)}
.hf-photo-results-content[hidden]{display:none!important}
.hf-photo-capture.has-photo{min-height:0!important}
.hf-photo-capture.has-photo .hf-photo-placeholder{display:none!important}
.hf-photo-capture.has-photo img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:3/4;object-fit:cover!important;background:transparent!important}
@media(max-width:760px){
 body:has(main.admin) .hf-admin-quick-actions{display:none!important}
 body:has(main.admin) .page-head:has(.hf-admin-quick-actions)>.admin-head-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
 body:has(main.admin) .admin-head-actions>.primary{min-width:0!important;min-height:86px!important;padding:9px 6px!important;border-radius:13px!important;white-space:normal!important;flex-direction:column!important;gap:5px!important;grid-column:auto!important}
 body:has(main.admin) .admin-head-actions>.hf-photo-dashboard-action{order:1!important}
 body:has(main.admin) .admin-head-actions>.hf-new-patient-action{order:4!important}
 body:has(main.admin) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important}
 body:has(main.admin) .admin-head-actions>.hf-open-agenda{order:2!important}
 body:has(main.admin) .admin-head-actions>.hf-open-employees{order:5!important}
 body:has(main.admin) .admin-head-actions>.hf-export-button{order:6!important}
 body:has(main.admin) .admin-head-actions>.hf-dashboard-patient-summary{order:10!important}
 body:has(main.admin) .admin-head-actions>.apn-pulse-launch{order:11!important}
 body:has(main.admin) .admin-head-actions>.primary:last-child:nth-child(odd){grid-column:auto!important}
 .hf-photo-capture.has-photo img{aspect-ratio:3/4!important}
}

/* V296 — grade móvel, resultados estáveis e histórico fotográfico */
.hf-photo-results{margin-top:11px!important}
.hf-photo-results-title .assessment-chevron{margin-left:auto!important;flex:0 0 auto!important;width:22px!important;height:22px!important;background:transparent!important;color:inherit!important;transition:transform .22s ease}
.hf-photo-results-title[aria-expanded="true"] .assessment-chevron{transform:rotate(180deg)}
.hf-photo-history-group{display:grid;gap:10px;margin-top:16px}.hf-photo-history-title{margin-top:0!important}.hf-photo-history-row .anthro-history-metrics{grid-template-columns:minmax(150px,1fr)!important}
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .page-head{display:block!important}
 body:has(main.admin:has(.patient-list)) .page-head>.hf-admin-quick-actions{display:none!important}
 body:has(main.admin:has(.patient-list)) .page-head>.admin-head-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.primary{width:100%!important;min-width:0!important;max-width:none!important;min-height:86px!important;padding:9px 6px!important;border-radius:13px!important;white-space:normal!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;grid-column:auto!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-photo-dashboard-action{order:1!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-new-patient-action{order:4!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-agenda{order:2!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-employees{order:5!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-export-button{order:6!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.apn-management-action{order:9!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-patient-summary{order:10!important;grid-column:auto!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.apn-pulse-launch{order:11!important;grid-column:auto!important;width:100%!important;max-width:none!important}
}

/* V297 — ordem exata do painel profissional no smartphone */
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-photo-dashboard-action{order:1!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-new-patient-action{order:4!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-agenda{order:2!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-employees{order:5!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-export-button{order:6!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.primary:not(.hf-photo-dashboard-action):not(.hf-new-patient-action):not(.hf-dashboard-memory-summary):not(.hf-open-agenda):not(.hf-open-employees):not(.hf-export-button):not(.apn-management-action):not(.hf-dashboard-patient-summary):not(.apn-pulse-launch){order:7!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.apn-management-action{order:9!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-patient-summary{order:10!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.apn-pulse-launch{order:11!important}
}

/* V299 — acabamento histórico/resultados + ordem móvel final */
.hf-photo-results{margin-top:18px!important;}
.hf-photo-history-group{margin-top:16px!important;}
.hf-photo-history-row .anthro-history-actions{margin-left:auto!important;justify-content:flex-end!important;}
.hf-photo-history-row .anthro-history-delete{display:inline-flex!important;align-items:center!important;justify-content:center!important;}
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-photo-dashboard-action{order:1!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-agenda{order:2!important}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important}
}

/* V300 — correções confirmadas: ordem mobile, separação dos cards e exclusão fotográfica */
.hf-professional-anthropometry-results > .hf-photo-results{
  margin-top:11px!important;
}
.hf-photo-history-group{
  margin-top:14px!important;
  padding-top:0!important;
}
.hf-photo-history-title{
  margin-top:0!important;
  padding-top:0!important;
}
.hf-photo-history-actions{
  display:flex!important;
  grid-template-columns:none!important;
  min-width:0!important;
  margin-left:auto!important;
  justify-content:flex-end!important;
}
.hf-photo-history-actions .anthro-history-delete{
  width:auto!important;
  min-width:96px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .admin-head-actions{
   display:grid!important;
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:9px!important;
 }
 body:has(main.admin:has(.patient-list)) .admin-head-actions > .primary{order:initial!important;grid-column:auto!important;}
}


/* V301 — correções finais confirmadas */
.hf-professional-anthropometry-results > .hf-photo-results,
.assessments > .hf-photo-results{
  margin-top:18px!important;
}
.hf-photo-results-title .assessment-chevron{transform:rotate(0deg)!important;}
.hf-photo-results-title[aria-expanded="true"] .assessment-chevron{transform:rotate(90deg)!important;}
.hf-photo-history-group{margin-top:18px!important;}
.hf-photo-history-row{position:relative!important;}
.hf-photo-history-row .hf-photo-history-actions{margin-left:auto!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;}
.hf-photo-history-row .anthro-history-delete{margin-left:auto!important;}
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-photo-dashboard-action{order:1!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-agenda{order:2!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important;}
}


/* V302 — espaçamento definitivo e shell imediato da avaliação por foto */
html body .hf-professional-anthropometry-results > .hf-photo-results,
html body .hf-professional-anthropometry-results > .assessments + .hf-photo-results,
html body .assessments > .assessment-card + .hf-photo-results{
  margin-top:18px!important;
}
.hf-photo-results.hf-photo-loading .hf-photo-results-content{display:none!important;}


/* V304 — restaura os 11 acessos no painel móvel; primeira linha fixa: Foto | Agenda | Memória */
@media(max-width:760px){
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-photo-dashboard-action{order:1!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-open-agenda{order:2!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{order:3!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-new-patient-action{display:flex!important;}
 body:has(main.admin:has(.patient-list)) .admin-head-actions>.hf-dashboard-memory-summary{display:flex!important;}
}


/* V306 — avaliação por foto no fluxo correto do histórico profissional */
html body .hf-professional-anthropometry-results > .assessments > .hf-photo-results{
  margin-top:0!important;
}

/* V312 — análise fotográfica estimativa persistida */
.hf-photo-analysis{margin-top:18px;border:1px solid var(--border,#d1d5db);border-radius:18px;padding:16px;background:var(--card,#fff)}
.hf-photo-analysis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.hf-photo-analysis-head h4{margin:0;font-size:17px}.hf-photo-analysis-head small,.hf-photo-analysis-head span{color:var(--muted,#6b7280);font-size:12px}.hf-photo-analysis-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hf-photo-analysis-table>div{border:1px solid var(--border,#d1d5db);border-radius:12px;padding:11px 12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.hf-photo-analysis-table span{font-size:13px;color:var(--muted,#6b7280)}.hf-photo-analysis-table strong{font-size:14px;text-align:right}.hf-photo-analysis-warning{font-size:11px;line-height:1.45;color:var(--muted,#6b7280);margin:12px 2px 0}.hf-photo-analysis-warning strong{color:inherit}
@media(max-width:760px){.hf-photo-analysis{padding:13px}.hf-photo-analysis-head{display:block}.hf-photo-analysis-head span{display:block;margin-top:4px}.hf-photo-analysis-table{grid-template-columns:1fr}.hf-photo-analysis-table>div{padding:10px 11px}.hf-photo-analysis-warning{font-size:10.5px}}

/* V315 — histórico individual, cards por avaliação e comparativo */
.hf-photo-evaluation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 18px 18px}.hf-photo-evaluation{min-width:0}.hf-photo-evaluation figure{margin:0}.hf-photo-evaluation figure img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:14px;background:color-mix(in srgb,currentColor 5%,transparent)}.hf-photo-evaluation figcaption{display:flex;justify-content:space-between;gap:8px;margin-top:7px;font-size:.82rem}.hf-photo-evaluation .hf-photo-analysis{margin-top:10px}.hf-photo-evaluation .hf-photo-analysis-table{grid-template-columns:1fr}.hf-photo-comparison{margin:0 18px 18px;border:1px solid var(--border,#d1d5db);border-radius:18px;padding:16px;background:var(--card,#fff)}.hf-photo-comparison-head h4{margin:0;font-size:17px}.hf-photo-comparison-head small{color:var(--muted,#6b7280)}.hf-photo-comparison-table{margin-top:12px}.hf-photo-comparison-table>div{display:grid;grid-template-columns:minmax(160px,1.35fr) repeat(3,minmax(90px,1fr));gap:10px;align-items:center;padding:10px 8px;border-bottom:1px solid var(--border,#e5e7eb)}.hf-photo-comparison-table>div>*:not(:first-child){text-align:right}.hf-photo-comparison-table .head{font-size:11px;text-transform:uppercase;color:var(--muted,#6b7280)}.hf-photo-fat-chart{margin-top:16px;border-top:1px solid var(--border,#e5e7eb);padding-top:14px}.hf-photo-fat-chart-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.hf-photo-fat-chart-title span{color:var(--muted,#6b7280);font-size:12px}.hf-photo-fat-chart svg{display:block;width:100%;height:auto;max-height:190px;margin-top:8px;overflow:visible}.hf-photo-fat-chart .axis{stroke:currentColor;opacity:.18;stroke-width:1}.hf-photo-fat-chart .trend{stroke:currentColor;stroke-width:2;fill:none}.hf-photo-fat-chart circle{fill:currentColor}.hf-photo-fat-chart text{fill:currentColor;font-size:11px}.hf-photo-analysis-empty{opacity:.7;font-size:12px}.hf-photo-analysis-empty p{margin:0}
@media(max-width:760px){.hf-photo-evaluation-grid{grid-template-columns:1fr;padding-left:12px;padding-right:12px}.hf-photo-comparison{margin-left:12px;margin-right:12px;padding:13px;overflow-x:auto}.hf-photo-comparison-table{min-width:560px}.hf-photo-fat-chart{min-width:500px}.hf-photo-evaluation figcaption{display:flex}.hf-photo-date-selector{padding-left:12px;padding-right:12px}}

.hf-photo-image-unavailable{display:grid;place-items:center;aspect-ratio:1;border:1px dashed var(--border,#d1d5db);border-radius:14px;color:var(--muted,#6b7280);text-align:center;padding:18px;background:color-mix(in srgb,currentColor 3%,transparent)}

.hf-professional-anthropometry-results:has(.hf-photo-only-results .hf-photo-results) > .hf-professional-results-empty{display:none}

/* Upload de fotos existentes, em paralelo à captura pela câmera */
.hf-photo-capture-unit{min-width:0}.hf-photo-input-actions{display:flex;gap:8px;margin-top:10px}.hf-photo-input-actions button{flex:1;min-width:0;border:1px solid var(--border,#d9dce1);border-radius:12px;padding:10px 7px;background:var(--card,#fff);color:inherit;font:inherit;font-size:.85rem;font-weight:700;cursor:pointer}.hf-photo-input-actions button:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
@media(max-width:640px){.hf-photo-input-actions{flex-direction:column;gap:6px}.hf-photo-input-actions button{padding:9px 5px;font-size:.78rem}}

@media(max-width:640px){.hf-photo-dialog{display:block;overflow-y:auto;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.hf-photo-dialog-panel{max-height:none;margin:0 auto}.hf-photo-dialog-head h2{line-height:1.25}}

.hf-photo-results-slot,.hf-photo-history-slot{display:contents}

/* v340 — professional workspace only; patient portal keeps its styles. */
main.admin .hf-photo-professional-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
main.admin .hf-photo-professional-head h2{margin:0 0 6px}
main.admin .hf-photo-professional-head p{margin:0;font-size:13px;opacity:.75}
main.admin .hf-photo-new{display:flex;align-items:center;gap:8px;padding:12px 16px}
main.admin .hf-photo-new svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
main.admin .hf-photo-pdf-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:0 18px 18px}
main.admin .hf-photo-pdf-actions button{padding:11px 16px}
main.admin .hf-photo-pdf-notice{color:#bd3647}
html[data-theme="dark"] main.admin :is(.hf-photo-analysis,.hf-photo-comparison){--card:#191c20;--border:#3b4048;--muted:#b1b7c1;background:#191c20!important;color:#f4f5f6!important;border-color:#3b4048!important}
html[data-theme="dark"] main.admin :is(.hf-photo-analysis,.hf-photo-comparison) :is(h4,strong,b){color:inherit!important}
html[data-theme="dark"] main.admin .hf-photo-analysis-table>div{background:#15171a;border-color:#3b4048}
html[data-theme="dark"] main.admin .hf-photo-dialog-panel{background:#191c20;color:#f4f5f6}
@media(max-width:760px){main.admin .hf-photo-professional-head{align-items:flex-start;flex-direction:column}}
