/* 2E.9.6A — Patient dashboard, scoped to the authenticated landing view. */
body.patient-facing-app>header .mark.nf-patient-brand{border-radius:12px;background:#093c27;width:40px;height:40px}
body.patient-facing-app>header .mark.nf-patient-brand img{width:100%;height:100%;object-fit:cover}
#mobile-dashboard-root{margin:0 0 14px}
.nf-dash{color:#172c22}
.nf-dash-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:18px 0 11px}
.nf-dash-section-head h2{font-size:18px;letter-spacing:-.03em;margin:0;color:#183c29;font-weight:850}
.nf-dash-section-head>span{color:#728277;font-size:10px;white-space:nowrap}
.nf-dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:10px}
.nf-dash-metric{min-width:0;min-height:164px;display:grid;grid-template-rows:30px 16px minmax(29px,auto) 17px minmax(33px,1fr);justify-items:center;align-items:center;align-content:stretch;text-align:center;gap:3px;background:#fff;border:1px solid #e5ebe3;border-radius:19px;box-shadow:0 6px 19px #142a1810;padding:11px 10px;transition:transform .15s ease,border-color .15s ease}
.nf-dash-metric:active{transform:scale(.985)}.nf-dash-metric:focus-visible{outline:3px solid #5aa57a;outline-offset:2px}
.nf-dash-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:11px;background:#e8f0ff;color:#557bc4;font-size:21px;line-height:1;margin:0}
.nf-dash-wellness .nf-dash-icon{background:#e6f5e8;color:#276b44}.nf-dash-weight .nf-dash-icon{background:#fff4da;color:#a17c19}.nf-dash-streak .nf-dash-icon{background:#feebdf;color:#dc7540}
.nf-dash-label{font-size:12px;color:#536858;font-weight:650;line-height:1.25}.nf-dash-metric strong{font-size:clamp(20px,5.8vw,27px);letter-spacing:-.045em;line-height:1.12;color:#12291c;font-weight:850;white-space:nowrap;max-width:100%}
.nf-dash-meta{font-size:10px;color:#37794f;line-height:1.25;min-height:12px}.nf-dash-mini{min-height:33px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;margin:0}
.nf-dash-caption{font-size:10px;color:#738277;line-height:1.25;max-width:100%;text-wrap:balance}.nf-dash-chart-note{font-size:9px;color:#8a978d}
.nf-dash-bars{display:flex;gap:4px;align-items:flex-end;height:18px;width:min(100%,90px);padding:0 1px}.nf-dash-bars>i{display:block;flex:1;max-width:22px;border-radius:4px 4px 2px 2px;background:#e3b33d;min-height:4px}
.nf-dash > section.nf-dash-wellness{position:relative;border:1px solid #e4ebe2;border-radius:19px;background:#fff;margin:11px 0 0;box-shadow:0 6px 19px #142a1810;overflow:hidden}
.nf-dash-wellness-head{display:flex;justify-content:space-between;align-items:center;padding:15px 15px 0;gap:10px}
.nf-dash-wellness-head>span{font-size:15px;font-weight:800;color:#19402b;display:grid;gap:4px}.nf-dash-wellness-head small{font-size:10px;color:#839184;font-weight:400}
.nf-dash-more>summary{cursor:pointer;list-style:none;position:absolute;right:15px;top:17px}.nf-dash-more>summary::-webkit-details-marker{display:none}
.nf-dash-detail-cta{font-size:10px;color:#416952;white-space:nowrap}.nf-dash-detail-cta b{font-size:16px;display:inline-block;transition:transform .15s ease}.nf-dash-more[open] .nf-dash-detail-cta b{transform:rotate(180deg)}
.nf-dash-parameters,.nf-dash-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 14px 15px}
.nf-dash-parameter{display:grid;min-width:0;gap:6px}.nf-dash-parameter>span:first-child{font-size:10px;color:#536658;line-height:1.3}.nf-dash-parameter>b{font-size:20px;line-height:1.1;color:#153322}
.nf-dash-segments{display:flex;gap:3px;width:100%;height:6px}.nf-dash-segments i{flex:1;background:#e7ece8;border-radius:4px}.nf-dash-segments i.filled{background:#62ae78}
.nf-dash-extra{display:grid;border-top:1px solid #edf1eb;grid-template-columns:repeat(2,minmax(0,1fr));padding-top:13px}.nf-dash-extra p{grid-column:1/-1;font-size:10px;line-height:1.5;color:#6a7a6b;margin:2px 0 0}
.nf-dash-consent{padding:10px 12px;border:1px solid #f0deb3;border-radius:10px;background:#fffaf0;color:#745721;font-size:11px;line-height:1.4}.nf-dash-help{color:#859186;font-size:10px;line-height:1.5;margin:9px 3px 0}
.nf-dash-loading,.nf-dash-error{border:1px solid #e0e8df;border-radius:15px;background:#fff;padding:16px}.nf-dash-loading .nf-dash-section-head{margin:0 0 8px}.nf-dash-loading p,.nf-dash-error p{color:#667669;font-size:12px;margin:0 0 8px}.nf-dash-error h2{font-size:15px;color:#285d35;margin:0 0 6px}.nf-dash-error button{font-size:12px;padding:8px 12px}
/* Keep the navigation immediately below the welcome banner and above the metrics. */
.mobile-hero + .authenticated-mobile-nav{margin:0 0 18px}
@media(min-width:520px){.nf-dash-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.nf-dash-metric{min-height:170px}.nf-dash-metric strong{font-size:clamp(19px,2.8vw,24px)}}
@media(max-width:350px){.nf-dash-metric{padding:10px 8px;min-height:159px}.nf-dash-metric strong{font-size:20px}.nf-dash-section-head h2{font-size:16px}.nf-dash-parameters{gap:5px;padding:8px 10px 12px}.nf-dash-parameter>span:first-child{font-size:9px}}

/* 2E.9.6A.2 — Seven-day detail charts. */
.nf-dash-detail[hidden]{display:none}.nf-dash-detail{border:1px solid #dbe9df;background:#fff;border-radius:18px;box-shadow:0 6px 19px #142a1810;margin-top:12px;padding:15px;scroll-margin-top:138px}
.nf-dash-metric[aria-expanded="true"]{border-color:#3f9460;box-shadow:0 0 0 2px #b0d7bc}
.nf-dash-detail-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.nf-dash-detail-top h3{margin:0;color:#184329;font-size:16px}.nf-dash-detail-top p,.nf-dash-detail-note{font-size:10px;color:#778578;line-height:1.5;margin:5px 0 0}.nf-dash-detail-close{font-size:24px;padding:2px 8px;border:0;background:#f1f5f0;color:#386447;line-height:1.2}
.nf-dash-svg{width:100%;height:auto;display:block;max-height:190px;margin:6px auto 0;overflow:visible}.nf-chart-bar,.nf-chart-yes{fill:#61aa7e}.nf-chart-no{fill:#edf0ee}.nf-chart-date{font-size:9px;fill:#7c8b80}.nf-chart-symbol{font-size:13px;font-weight:700;fill:#fff}.nf-chart-missing{font-size:12px;fill:#a1a9a2}
.nf-dash-detail-values{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.nf-dash-detail-values span{display:grid;text-align:center;gap:3px;min-width:0}.nf-dash-detail-values small{font-size:9px;color:#6f8071}.nf-dash-detail-values b{font-size:clamp(8px,2.3vw,11px);color:#25432f;white-space:nowrap}.nf-dash-no-data{font-size:12px;color:#728375}
