.hf-modern-report{--hf-view-ink:#142b42;--hf-view-muted:#64748b;--hf-view-line:#d6dce3;color:var(--hf-view-ink);padding:18px 12px;min-width:0;font-size:14px}
.hf-modern-report *{box-sizing:border-box}.hf-modern-report h3,.hf-modern-report h4,.hf-modern-report p{margin:0}
.hf-report-current-date{color:var(--hf-view-muted);text-align:right;font-size:12px;margin-bottom:12px}
.hf-modern-report .hf-report-section{margin:0 0 22px}.hf-modern-report .hf-report-section>h3{font-size:17px;font-weight:800;border-bottom:2px solid currentColor;padding:0 0 9px;margin-bottom:16px}
.hf-analysis-row,.hf-analysis-head{display:grid;grid-template-columns:minmax(125px,30%) minmax(0,1fr);align-items:center;gap:12px;margin-bottom:15px}
.hf-analysis-head>div{display:flex;justify-content:space-around;font-size:12px;font-weight:700}.hf-analysis-row>b{font-size:13px}
.hf-analysis-track{height:22px;background:linear-gradient(to right,#eff0f2 0 33.333%,#dfe3e6 33.333% 66.666%,#eff0f2 66.666%);position:relative;overflow:visible}
.hf-analysis-fill{position:absolute;height:12px;top:5px;left:0;background:#111}.hf-analysis-value{position:absolute;top:2px;transform:translateX(5px);font-size:12px;white-space:nowrap}
.hf-modern-report .hf-report-protocol{font-size:11px;font-weight:700;margin:16px 0}.hf-report-table-scroll{overflow:auto}.hf-modern-report .hf-report-table{width:100%;border-collapse:collapse;min-width:350px;font-size:13px}
.hf-report-table th,.hf-report-table td{padding:12px 8px;border-bottom:1px solid currentColor;text-align:center;white-space:nowrap}.hf-report-table tbody th{text-align:left;min-width:125px}.hf-report-table tbody th>span{border-left:3px solid currentColor;padding-left:8px}.hf-report-table tbody tr:nth-child(even){background:rgba(127,127,127,.06)}.hf-report-reference,.hf-report-footnote{color:var(--hf-view-muted)}
.hf-modern-report .hf-report-footnote{font-size:11px;line-height:1.5;margin:8px 0}.hf-report-empty{color:#64748b;padding:20px 12px}
.hf-cal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hf-cal-card{border:1px solid var(--hf-view-line);border-radius:7px;padding:15px 12px;display:grid;gap:12px;min-width:0}.hf-cal-card>b{font-size:13px}.hf-cal-card>strong{text-align:center;font-size:27px;font-weight:800;line-height:1.3}.hf-cal-card strong small{font-size:13px;margin-left:6px;font-weight:400}.hf-respiratory-cards{margin-top:20px}.hf-respiratory-cards .hf-cal-card>strong{font-size:23px}
.hf-modern-report h4{font-size:13px;margin:20px 0 28px}.hf-metabolism-gauge{height:8px;position:relative;background:linear-gradient(to right,#59aff2 0 45%,#57bf6d 45% 56%,#f1787d 56%);margin:0 2px}.hf-metabolism-marker{position:absolute;height:8px;width:8px;border-radius:50%;background:var(--hf-view-ink);transform:translateX(-50%)}.hf-metabolism-marker b{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);font-size:11px;white-space:nowrap}.hf-gauge-scale{display:flex;justify-content:space-between;color:var(--hf-view-muted);font-size:11px;margin-top:7px}
.hf-substrate-bar{display:flex;height:12px;background:#087ac6;border-radius:5px;overflow:hidden}.hf-substrate-bar>span{background:#d19d09}.hf-substrate-labels{display:flex;justify-content:space-between;font-size:12px;margin-top:8px;gap:12px}.hf-substrate-labels>b:first-child{color:#b58500}.hf-substrate-labels>b:last-child{color:#0676c5}.hf-modern-report .hf-fat-burn{font-size:12px;margin-top:12px}
.hf-evolution-row{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;margin-top:18px}.hf-trend-label{padding-top:28px;font-size:12px}.hf-trend-label small{display:block;color:var(--hf-view-muted);margin-top:5px}.hf-trend-scroll{overflow-x:auto;min-width:0}.hf-trend-plot{height:124px;position:relative;background:repeating-linear-gradient(to bottom,transparent 0 29px,var(--hf-view-line) 30px,transparent 31px 59px);background-size:100% 90px;background-repeat:no-repeat}
.hf-trend-plot svg{position:absolute;top:0;left:0;width:100%;height:100px;stroke:var(--hf-chart-color);stroke-width:1.5;fill:none}.hf-trend-point{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--hf-chart-color);transform:translate(-50%,-50%)}.hf-trend-value{position:absolute;transform:translateX(-50%);font-size:12px;color:var(--hf-chart-color);white-space:nowrap}.hf-trend-date{position:absolute;bottom:4px;transform:translateX(-50%);font-size:10px;color:var(--hf-view-muted);white-space:nowrap}
.hf-trend-scroll{padding:0 32px}.hf-substrate-bar:empty{background:var(--hf-view-line)}
html[data-theme=dark] .hf-modern-report{--hf-view-ink:#eef2f8;--hf-view-muted:#b4c0ce;--hf-view-line:#414b59}.hf-modern-report .hf-report-delta{white-space:nowrap}
html[data-theme=dark] .hf-cal-report .hf-evolution-row:first-of-type{--hf-chart-color:#b2c8e3!important}
@media(max-width:650px){.hf-modern-report{padding:16px 0}.hf-modern-report .hf-report-section>h3{font-size:15px}.hf-cal-cards{gap:8px}.hf-cal-card{padding:12px 8px}.hf-cal-card>strong{font-size:22px}.hf-respiratory-cards .hf-cal-card>strong{font-size:20px}.hf-cal-card strong small{display:block;margin:4px 0 0;font-size:12px}.hf-evolution-row{grid-template-columns:1fr;gap:6px}.hf-trend-label{padding-top:0}.hf-trend-label small{display:inline;margin-left:5px}.hf-analysis-row,.hf-analysis-head{grid-template-columns:115px minmax(0,1fr);gap:7px}.hf-analysis-value{font-size:10px}.hf-analysis-row>b{font-size:12px}.hf-report-table th,.hf-report-table td{padding:10px 7px}.hf-analysis-track{margin-right:28px}}

/* V372: same result actions for professional and patient reports. */
html[data-theme] body :is(.assessment-card,.apnp-module) .hf-assessment-date-action-buttons button{box-sizing:border-box;flex:0 0 auto!important;width:auto!important;height:34px!important;min-height:34px!important;padding:7px 11px!important;font-size:12px!important;line-height:1.2!important;font-weight:700!important;border:0!important;border-radius:9px!important;background:#111!important;color:#fff!important;margin:0!important;box-shadow:none!important;white-space:nowrap!important}
html[data-theme] body :is(.assessment-card,.apnp-module) .hf-assessment-date-action-buttons{display:flex!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;margin-left:auto!important;flex-wrap:wrap!important}
html[data-theme] body .apnp-comparison-actions:not([hidden]){display:flex!important;gap:8px!important}
html[data-theme] body .hf-assessment-date-action-buttons button:disabled{opacity:.55;cursor:default}
.hf-cal-edit-dialog{width:min(560px,calc(100% - 28px));border:1px solid #aab3bf;border-radius:12px;padding:22px;color:inherit;background:var(--surface,#fff)}
.hf-cal-edit-dialog::backdrop{background:#0008}.hf-cal-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.hf-cal-edit-fields label{display:grid;gap:6px;font-size:13px}.hf-cal-edit-fields input{width:100%;padding:9px;border:1px solid #98a3b2;border-radius:7px}.hf-cal-edit-dialog footer{display:flex;justify-content:flex-end;gap:10px}.hf-cal-edit-dialog footer button{padding:8px 14px;border-radius:8px}.hf-cal-edit-dialog [data-error]{color:#c63838}html[data-theme=dark] .hf-cal-edit-dialog{background:#202632;color:#eef2f8}@media(max-width:500px){.hf-cal-edit-fields{grid-template-columns:1fr}}

.hf-cal-card{position:relative}.hf-metric-icon{position:absolute;left:18px;bottom:20px;width:32px;height:32px}.hf-metric-icon svg{width:100%;height:100%}.hf-icon-fire{color:#df591a}.hf-icon-run{color:#309351}.hf-icon-lung{color:#197bad}
.hf-metabolism-gauge{margin:42px 4px 0;overflow:visible}.hf-metabolism-marker{top:-31px;width:22px;height:29px;background:none;border-radius:0}.hf-metabolism-marker svg{display:block;width:22px;height:29px}.hf-metabolism-marker b{bottom:33px;color:#de2935}.hf-gauge-tick{position:absolute;top:-2px;height:13px;border-left:1px solid #64748b}.hf-gauge-tick small{position:absolute;top:16px;left:0;transform:translateX(-50%);font-size:10px;white-space:nowrap}.hf-gauge-tick:first-child small{transform:none}.hf-gauge-tick:nth-child(4) small{transform:translateX(-100%)}.hf-gauge-legend{display:grid;grid-template-columns:45fr 11fr 44fr;text-align:center;margin:28px 0 18px;font-size:11px}.hf-gauge-legend b:nth-child(1){color:#2e91d6}.hf-gauge-legend b:nth-child(2){color:#309f54}.hf-gauge-legend b:nth-child(3){color:#de3d45}

.hf-cal-card>strong{padding-left:44px}.hf-metric-icon{left:12px;width:28px;height:28px}
