
:root{--navy:#102e3d;--navy2:#173f4b;--teal:#8b6a57;--ivory:#f6f8f8;--slate:#52636d;--line:#dce5e7;--font:Inter,Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--accent:#6d5446;--accent2:#8b6a57}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;color:var(--navy);background:var(--ivory);font-family:var(--font);font-size:15px;line-height:1.6}a{text-decoration:none}button,select{font:inherit}
header{background:#fff;border-bottom:1px solid var(--line)}.top{max-width:1160px;min-height:94px;margin:auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:14px;color:var(--navy)}.brandlogo{display:block;height:54px;width:auto;max-width:250px}.brandtext{display:flex;flex-direction:column}.brandtext small{display:block;font-size:10px;letter-spacing:2.2px;text-transform:uppercase;color:#7a888f;margin-top:4px;font-weight:600}.utility{display:flex;align-items:center;gap:18px}nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}nav a{color:#43616c;font-size:13px;font-weight:600;padding:10px 14px;border:1px solid transparent;border-radius:9px}nav a:hover{color:#135e69;background:#f7fbfb;border-color:#dbe6e8}
main{max-width:1120px;margin:0 auto;padding:68px 28px 72px}.intro{text-align:center;max-width:740px;margin:0 auto 34px}.eyebrow{text-transform:uppercase;color:#8b6a57;letter-spacing:2.9px;font-size:11px;font-weight:750}.intro h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1.7px;line-height:1.16;margin:16px 0 17px;font-weight:650}.intro p{font-size:16px;color:#687a83;line-height:1.8;margin:0}.panel-card{background:#fff;border:1px solid #dbe5e8;border-radius:12px;padding:36px 37px 33px;box-shadow:0 10px 32px rgba(19,54,67,.035);max-width:940px;margin:0 auto}.panel-card>h1{margin:0 0 14px;font-size:34px;letter-spacing:-1px;line-height:1.18}.lead{font-size:16px;color:#687a83;line-height:1.8;margin:0 0 18px}label{display:block;margin:14px 0 0;font-weight:600;color:#3a4b54}input,select,textarea{display:block;width:100%;margin-top:6px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#21333b;font:inherit;outline:none;transition:.18s ease}input:focus,select:focus,textarea:focus{border-color:#b89a85;box-shadow:0 0 0 4px rgba(184,154,133,.18)}textarea{min-height:98px;resize:vertical}input[type=checkbox]{display:inline-block;width:auto;margin:0 8px 0 0;vertical-align:middle}button,.btn,a.buttonlink{display:inline-flex;align-items:center;justify-content:center;margin:12px 0 0;padding:11px 18px;background:linear-gradient(180deg,#876958,#735646);color:#fff;border:0;border-radius:10px;text-decoration:none;font-weight:700;letter-spacing:.1px;cursor:pointer;box-shadow:0 10px 24px rgba(115,86,70,.16);transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease}button:hover,.btn:hover,a.buttonlink:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(115,86,70,.22)}form{max-width:700px}.auth-form{max-width:560px}.auth-alt{margin-top:16px;color:#647883}fieldset{border:1px solid #eadfd3;border-radius:16px;margin:20px 0;padding:16px 16px 18px;background:linear-gradient(180deg,#fffdfa,#fdf9f5)}legend{padding:0 10px;font-weight:700;color:#5f4a3f;letter-spacing:.15px}.hint,.warning,.error{margin-top:12px;padding:13px 14px;border-radius:12px;font-size:13px}.hint,.warning{background:#faf5ef;border:1px solid #e9d9ca;color:#6f5846}.error{background:#fff4ef;border:1px solid #f2d1c3;color:#904e3b}.message{padding:15px 17px;background:#faf6f2;border:1px solid #eadfd3;border-radius:15px;margin:10px 0}.message p{margin:6px 0}.message small{color:#7b878c}table{border-collapse:separate;border-spacing:0;width:100%;margin:16px 0;border:1px solid #ece3da;border-radius:16px;overflow:hidden;background:#fff}th,td{text-align:left;padding:12px 14px;vertical-align:top;border-bottom:1px solid #f1e9e1;overflow-wrap:anywhere}th{background:#fbf6f1;color:#5d554e;font-size:13px;text-transform:uppercase;letter-spacing:.6px}tr:last-child td{border-bottom:0}.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:18px 0}.tiles>div{background:linear-gradient(180deg,#fffdfa,#faf4ef);border:1px solid #eadfd3;padding:20px 18px;border-radius:18px;min-width:0}.tiles b{display:block;font-size:32px;line-height:1.05;color:#5f4a3f}.tiles span{font-size:13px;color:#6f7d83}.paper{padding:30px;border:1px solid #e6d9ce;border-radius:20px;background:#fffdfa}.eyebrow2{letter-spacing:2px;color:#8a7767;font-size:12px;text-transform:uppercase}.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px}.service-card{border:1px solid #eadfd3;padding:18px 18px 16px;border-radius:18px;background:linear-gradient(180deg,#fffdfa,#fdf8f3);box-shadow:0 8px 18px rgba(102,78,60,.04)}.service-card a{color:#5f4a3f;font-weight:700}.service-card a:hover{color:#7b6050}.service-group{margin:26px 0}.service-card ul{margin:10px 0 0 18px;padding:0;color:#5a666c}footer{border-top:1px solid #e1e7e9;text-align:center;padding:24px 20px;color:#75848b;font-size:12px;background:#fff}footer a{color:#4b6e76}a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #b89a85;outline-offset:4px}
@media(max-width:760px){.top{min-height:80px;padding:16px}.brandlogo{height:46px;max-width:210px}.brandtext small{font-size:8px;letter-spacing:1px}main{padding:42px 16px}.intro{margin-bottom:30px}.panel-card{padding:26px}.intro p,.lead{font-size:14px}.utility{gap:6px}}html[dir=rtl] .brandtext{text-align:right}
@media print{header,footer,button,.btn,a.buttonlink{display:none!important}body,main{background:#fff;box-shadow:none;margin:0;padding:0}.panel-card,.paper{border:0;padding:0;box-shadow:none}a{color:#000;text-decoration:none}}

/* HPT PREMIUM DASHBOARD V1 – appended overrides, other forms and pages remain functional */
:root{--navy:#102d45;--navy2:#164660;--teal:#087e8c;--ivory:#f6f8f9;--accent:#087e8c;--accent2:#127c88}
body{background:#f5f8fa;color:#15344a}
header{box-shadow:0 2px 16px rgba(10,43,63,.035)}
.top{max-width:1260px;min-height:104px}
nav{gap:4px}
nav a{padding:9px 11px;color:#28485c;font-size:12px}
nav a:hover{color:#076c7e;background:#eaf5f6;border-color:#e1ebed}
main{max-width:1240px;padding:48px 28px 80px}
.panel-card{max-width:1120px;border-color:#e2eaf0;border-radius:20px;box-shadow:0 18px 45px rgba(19,55,80,.065)}
.dashboard-hero{position:relative;overflow:hidden;isolation:isolate;padding:42px 44px;border-radius:17px;background:linear-gradient(113deg,#f2f9fa 0%,#ffffff 63%,#fbf2e7 100%);border:1px solid #e2eaf0;margin-bottom:22px}
.dashboard-hero:after{content:"";position:absolute;pointer-events:none;z-index:-1;width:370px;height:370px;border:1px solid rgba(8,126,140,.14);border-radius:50%;right:-145px;top:-195px;box-shadow:0 0 0 38px rgba(8,126,140,.025),0 0 0 78px rgba(8,126,140,.025),0 0 0 124px rgba(206,172,130,.028)}
.dashboard-kicker{font-size:11px;letter-spacing:2.5px;color:#137d8b;font-weight:800}
.dashboard-hero h1{font-size:clamp(26px,3.4vw,40px);letter-spacing:-1.25px;margin:14px 0 10px;line-height:1.16;color:#102d45}
.dashboard-hero p{color:#5a7280;font-size:15px;max-width:680px;margin:0;line-height:1.85}
a.dashboard-cta{display:inline-flex;align-items:center;border-radius:10px;padding:12px 19px;background:#0b6275;color:#fff;font-weight:750;margin-top:23px;box-shadow:0 10px 24px rgba(10,98,117,.18)}
a.dashboard-cta:hover{background:#084f60}
.dashboard-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) repeat(2,minmax(0,.7fr));gap:14px;margin:0 0 30px}
.dashboard-stats-partner{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,.85fr)}
.dashboard-stat{min-height:152px;display:flex;flex-direction:column;justify-content:center;position:relative;padding:25px;border-radius:17px;color:#12374a;background:#fff;border:1px solid #dfebee;box-shadow:0 8px 25px rgba(11,42,63,.035);overflow:hidden}
.dashboard-stat:hover{transform:translateY(-2px);border-color:#8ac5cb;transition:.2s}
.dashboard-stat-primary{background:linear-gradient(135deg,#114863,#08314b);color:#fff;border-color:transparent}
.dashboard-stat-light{background:linear-gradient(135deg,#fbf5ee,#f9e8d4);border-color:#efe2d4}
.dashboard-stat-icon{position:absolute;right:20px;top:13px;font-size:25px;opacity:.35}
.dashboard-stat-value{font-size:39px;line-height:1.1;font-weight:750;letter-spacing:-1px}
.dashboard-stat-label{font-size:13px;margin-top:9px;font-weight:600;color:inherit;opacity:.84}
.dashboard-section-heading{margin-bottom:16px}
.dashboard-section-heading h2{margin:0;font-size:22px;letter-spacing:-.4px;color:#13364a}
.dashboard-section-heading p{color:#69808d;font-size:13px;margin:5px 0}
.dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dashboard-actions a{display:flex;align-items:center;justify-content:space-between;min-height:70px;padding:16px 18px;border:1px solid #e2ebef;border-radius:13px;background:#f7fafb;color:#24495d;font-size:14px;font-weight:700}
.dashboard-actions a:hover{background:#eaf6f8;border-color:#b6dce1}
.dashboard-actions a span{color:#087e8c;font-size:20px}
.dashboard-security-note{border-top:1px solid #e9eff2;padding-top:20px;margin:28px 0 0;color:#71838d;font-size:12px}
/* Responsive and readable on phones */
@media(max-width:960px){.dashboard-stats{grid-template-columns:repeat(2,1fr)}.dashboard-stats-partner{grid-template-columns:repeat(2,1fr)}.dashboard-actions{grid-template-columns:repeat(2,1fr)}.top{flex-wrap:wrap}}
@media(max-width:600px){main{padding:22px 12px 54px}.panel-card{padding:16px}.dashboard-hero{padding:26px 20px}.dashboard-stats,.dashboard-stats-partner,.dashboard-actions{grid-template-columns:1fr}.dashboard-stat{min-height:115px}.top{padding:14px}.utility,nav{width:100%}nav a{padding:7px 9px}.brandtext small{max-width:170px}}

/* HPT V2 persistent sidebar and operational workspace */
body:has(.app-shell){background:#f4f7fa}.app-shell{display:flex;min-height:100vh}.app-sidebar{width:250px;flex:0 0 250px;position:sticky;top:0;align-self:flex-start;height:100vh;overflow:auto;background:#102d45;color:#fff;padding:28px 14px;box-shadow:7px 0 25px rgba(10,35,51,.07)}.sidebar-brand{font-weight:800;font-size:15px;padding:4px 12px 28px;letter-spacing:.9px;color:#fff}.side-caption{font-size:10px;color:#9eb9c7;letter-spacing:1.7px;padding:10px 12px 13px;font-weight:800}.app-sidebar nav{display:flex;flex-direction:column;align-items:stretch;gap:5px}.app-sidebar nav a.side-link{display:block;color:#d8e8ef;padding:12px 14px;border:0;border-radius:10px;font-size:13px}.app-sidebar nav a.side-link.active,.app-sidebar nav a.side-link:hover{background:#23546b;color:#fff}.app-sidebar nav .side-logout{margin-top:25px;border-top:1px solid #32566b!important;padding-top:20px!important}.app-workspace{min-width:0;flex:1}.app-workspace .mobile-header{background:#fff;box-shadow:0 1px 12px #12344b0c;padding:18px 30px;display:flex;align-items:center;justify-content:space-between}.mobile-header .brandlogo{height:55px;max-width:230px;object-fit:contain}.mobile-menu-toggle{display:none;color:#12516e;font-weight:700}.app-workspace main{max-width:1320px;padding:30px 32px 60px}.app-workspace .panel-card{max-width:none}.journey-header h2{margin-bottom:0}.journey-header p{color:#627b89;margin-top:5px}.journey-section{margin:28px 0;border:1px solid #dae6ed;border-radius:17px;padding:24px;background:#fafdff}.journey-list{list-style:none;margin:24px 0;padding:0 0 0 17px;border-left:2px solid #84b7bf}.journey-event{position:relative;padding:0 0 24px 22px;display:grid;grid-template-columns:175px 1fr;gap:15px}.journey-event:before{content:"";position:absolute;top:5px;left:-23px;width:10px;height:10px;background:#118494;border:3px solid white;border-radius:50%;box-shadow:0 0 0 2px #a1c8d2}.journey-event time{font-size:12px;color:#617b89}.journey-event strong{display:block;font-size:14px}.journey-event p{margin:6px 0 0;color:#5b6f7e}.journey-status{display:inline-block;margin-top:5px;background:#e8f5f6;color:#0a6675;border-radius:20px;padding:3px 10px;font-size:11px}.journey-editor{margin-top:15px;background:white;padding:16px;border:1px solid #deebf0;border-radius:14px}.journey-editor summary{font-weight:750;cursor:pointer;color:#126478}.selected-services{margin:25px 0}.service-chips{display:flex;gap:7px;flex-wrap:wrap}.service-chip{background:#e6f3f5;color:#124e64;border-radius:40px;padding:7px 12px;font-size:12px;font-weight:600}.catalog-group{border:1px solid #dde8ee;border-radius:15px;margin:14px 0;padding:15px;background:#fff}.catalog-group summary{font-weight:750;cursor:pointer;color:#1d435b}.service-pick{display:flex;align-items:center;gap:9px;border:1px solid #e0e8ed;border-radius:12px;padding:12px;margin:0;font-size:13px;font-weight:600;cursor:pointer;background:#f9fbfc}.service-pick:has(input:checked){background:#e5f3f5;border-color:#7cbbc3}.service-pick input{width:17px;flex:0 0 17px;margin:0}.catalog-select{max-width:none}.catalog-group .service-grid{margin-top:15px}.package-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:15px}.package-card{border:1px solid #dfe9ef;padding:22px;border-radius:17px;background:#fff;box-shadow:0 8px 30px #214b630a}.package-card h3{margin:10px 0}.package-card p{color:#627586}.package-city{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#148497}.package-price{font-weight:800;margin:18px 0}.cases-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.case-table-wrap{overflow-x:auto}.status-pill{background:#eaf4f5;padding:5px 9px;border-radius:30px;color:#195d6b;font-size:12px}.empty-state{color:#67808c;background:#fff;border-radius:10px;padding:15px}.app-workspace footer{background:transparent}@media(max-width:900px){.app-sidebar{width:220px;flex-basis:220px}.app-workspace main{padding:22px 14px 40px}.journey-event{grid-template-columns:1fr;gap:3px}}@media(max-width:640px){.app-shell{display:block}.app-sidebar{position:static;width:auto;height:auto;display:block;padding:9px 12px}.sidebar-brand{padding:8px 10px 8px}.app-sidebar nav{display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap;padding-bottom:4px;gap:4px}.app-sidebar nav a.side-link{padding:9px 10px;font-size:12px;flex-shrink:0}.side-caption{display:none}.app-workspace .mobile-header{padding:13px 15px}.mobile-header .brandlogo{height:40px}.app-workspace main{padding:14px 10px 35px}.journey-section{padding:14px}.journey-event{padding-left:17px}.cases-top{display:block}.app-workspace .panel-card{padding:16px}}

/* V3 accessible category-to-treatment picker */
.treatment-intro{padding:16px 18px;background:#f2f8fa;border:1px solid #dae8ed;border-radius:12px;margin:19px 0}.treatment-intro p{margin:5px 0 0;font-size:13px;color:#5c7280}.treatment-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 24px}.treatment-group{border:1px solid #dce7ed;border-radius:12px;background:#fff;align-self:start;min-width:0;overflow:hidden}.treatment-group[open]{grid-column:span 2;border-color:#83bbc7;background:#f9fcfd}.treatment-group summary{cursor:pointer;padding:15px;display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:750;list-style:none}.treatment-group summary::-webkit-details-marker{display:none}.category-indicator{color:#137a87;font-size:11px;font-weight:600}.treatment-group[open] .category-indicator{font-size:0}.treatment-group[open] .category-indicator:after{content:'Hide options −';font-size:11px}.treatment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 14px 16px}.treatment-choice{display:flex;align-items:center;gap:9px;margin:0;padding:11px 13px;background:#f6f9fb;border:1px solid #e2eaee;border-radius:9px;cursor:pointer;font-size:12px;line-height:1.3}.treatment-choice:has(input:checked){background:#e2f4f5;border-color:#4babb6}.treatment-choice input{width:17px;flex:0 0 17px;margin:0}.patient-file-summary,.secure-documents{margin:22px 0;padding:20px;border:1px solid #dce7ed;border-radius:14px;background:#f9fcfd}.file-kicker{font-size:10px;font-weight:800;letter-spacing:1px;color:#087988}.file-meta{display:flex;flex-wrap:wrap;gap:15px;font-size:12px}.edit-patient{margin-top:18px;padding:14px;background:#fff;border:1px solid #deebef;border-radius:12px}.edit-patient summary{cursor:pointer;font-weight:700}.tracking-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tracking-card{display:flex;flex-direction:column;align-items:flex-start;gap:9px;color:#123a4f;border-radius:13px;padding:20px;border:1px solid #deebef;background:#fff;text-decoration:none}.tracking-card small{color:#678390}.tracking-card:hover{border-color:#5eaeb9;background:#f7fcfd}.secure-documents p{color:#536f7c;font-size:13px}
@media(max-width:700px){.treatment-groups,.treatment-options,.tracking-cards{grid-template-columns:1fr}.treatment-group[open]{grid-column:auto}.file-meta{display:grid;gap:5px}}

/* HPT V4 refined specialty selector — scoped to referral page only */
.hpt-specialties{margin:30px 0 32px;--hpt-ink:#123449;--hpt-sea:#0c7783;--hpt-border:#dbe5e9;color:var(--hpt-ink)}
.hpt-specialties-header{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(275px,.95fr);align-items:center;gap:20px;margin-bottom:18px}
.hpt-specialties-heading{display:flex;align-items:flex-start;gap:14px;min-width:0}
.hpt-specialties-mark{display:grid;place-items:center;background:linear-gradient(145deg,#e3f8f7,#d2eff1);height:44px;width:44px;border-radius:14px;color:#0b7380;flex:none;font-size:22px}
.hpt-specialties-heading h2{font-size:21px;line-height:1.3;margin:0 0 5px;color:#10334c;letter-spacing:-.4px}
.hpt-specialties-heading p{margin:0;color:#637b87;font-size:12.5px;line-height:1.55}
.hpt-selected-panel{background:linear-gradient(112deg,#f3f8f8,#faf7f3);border:1px solid #e1e9ea;border-radius:14px;padding:14px 17px;min-height:82px}
.hpt-selected-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}
.hpt-selected-heading strong{font-size:12px;font-weight:800;color:#163b4c}.hpt-selected-heading strong span{background:#ccebea;color:#065d68;border-radius:30px;padding:3px 7px;margin-left:4px}
.hpt-reset{background:none!important;border:0!important;color:#0c7b84!important;text-decoration:underline!important;padding:2px!important;margin:0!important;box-shadow:none!important;font-size:11px!important;min-height:0!important}
.hpt-selected-chips{display:flex;flex-wrap:wrap;gap:6px}.hpt-selection-empty{font-size:12px;color:#7a8b91}.hpt-selected-chip{padding:5px 10px!important;margin:0!important;min-height:0!important;font-weight:650!important;font-size:11px!important;border-radius:50px!important;color:#0a5f6d!important;background:#e0f0ef!important;border:1px solid #c0dedc!important;box-shadow:none!important}
.hpt-specialty-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}.hpt-specialty-search-label{font-size:12px;font-weight:750;margin:0!important}
.hpt-specialty-search{width:min(320px,100%)!important;max-width:320px!important;padding:11px 14px!important;font-size:12px!important;border:1px solid #d5e2e8!important;background:#fff!important;border-radius:10px!important;margin:0!important;height:43px!important}
.hpt-specialty-help{color:#758894;font-size:11px}.hpt-specialties .treatment-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px;margin:0}
.hpt-specialties .treatment-group{border:1px solid var(--hpt-border);border-radius:13px;background:#fff;overflow:hidden;align-self:start;min-width:0;box-shadow:0 3px 12px rgba(16,56,76,.028);transition:border-color .18s,box-shadow .18s}
.hpt-specialties .treatment-group[hidden]{display:none!important}
.hpt-specialties .treatment-group[open]{grid-column:span 2;border-color:#a0cdd1;background:linear-gradient(180deg,#f2fbfa 0%,#fff 78%);box-shadow:0 7px 22px rgba(24,100,114,.08)}
.hpt-specialties .treatment-group.has-selection{border-color:#76bdc3}
.hpt-specialties .treatment-group summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;background:transparent;min-height:75px}
.hpt-specialties .treatment-group summary::-webkit-details-marker{display:none}
.hpt-specialty-glyph{height:42px;width:42px;display:grid;place-items:center;flex:none;background:#f5eee7;color:#786657;border-radius:12px}
.hpt-specialties .treatment-group[open] .hpt-specialty-glyph,.hpt-specialties .treatment-group.has-selection .hpt-specialty-glyph{background:#ddf3f0;color:#056978}
.hpt-specialty-text{display:block;min-width:0;flex:1}.hpt-specialty-text strong{display:block;font-size:13px;font-weight:800;color:#17384d;line-height:1.35}.hpt-specialty-text small{display:block;font-size:11px;line-height:1.45;font-weight:450;color:#71818b;margin-top:3px}
.hpt-specialties .category-indicator{white-space:nowrap;font-size:10.5px;color:#147480;font-weight:800;display:inline-flex;align-items:center;gap:6px}
.hpt-specialties .category-indicator b{font-size:18px;transition:transform .2s}.hpt-specialties .treatment-group[open] .category-indicator b{transform:rotate(180deg)}
.hpt-specialties .treatment-group[open] .category-indicator{font-size:10.5px}.hpt-specialties .treatment-group[open] .category-indicator:after{display:none}
.hpt-specialties .treatment-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 16px 17px;border-top:1px solid #dfecec}
.hpt-specialties .treatment-choice{display:flex;align-items:center;gap:9px;margin:0!important;padding:11px 12px;border:1px solid #e0e8eb;background:#fff;border-radius:9px;cursor:pointer;min-height:48px;line-height:1.4;color:#324f60;font-size:11.5px;font-weight:650}
.hpt-specialties .treatment-choice:hover{border-color:#a2cbd0;background:#f8fcfc}.hpt-specialties .treatment-choice:has(input:checked){background:#e6f7f5;border-color:#79bbc1;color:#0b5260}
.hpt-specialties .treatment-choice input{accent-color:#0a8390;width:17px;height:17px;min-width:17px;flex:none;margin:0}
.hpt-specialty-footer{font-size:11px;color:#687e8a;line-height:1.6;border-left:3px solid #94d0d1;padding-left:11px;margin:17px 0 0}
@media(max-width:1050px){.hpt-specialties-header{grid-template-columns:1fr}.hpt-specialties .treatment-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hpt-specialties{margin:22px 0}.hpt-specialties-heading h2{font-size:18px}.hpt-specialties .treatment-groups{grid-template-columns:1fr}.hpt-specialties .treatment-group[open]{grid-column:span 1}.hpt-specialties .treatment-options{grid-template-columns:1fr}.hpt-specialties .treatment-group summary{padding:12px;gap:9px}.hpt-specialties .category-indicator{font-size:10px}.hpt-specialty-glyph{width:36px;height:36px}.hpt-specialty-text small{font-size:10px}.hpt-specialty-toolbar{align-items:flex-start;flex-direction:column}.hpt-specialty-search{max-width:none!important;width:100%!important}}


/* HPT V5 — refined company profile and verified milestone tracker */
:root{--navy:#102b42;--navy2:#183e57;--teal:#0d7780;--accent:#0d7780;--accent2:#0c7d82;--ivory:#f7f9fb;--line:#dfe7ec;--slate:#5f7282}
.app-sidebar{background:linear-gradient(180deg,#0d293f,#12384f)!important;border-right:1px solid rgba(255,255,255,.12)}
.app-sidebar nav a.side-link{transition:background .15s,color .15s;border-radius:10px;margin:2px 8px;letter-spacing:.01em}
.app-sidebar nav a.side-link:hover,.app-sidebar nav a.side-link.active{background:rgba(32,161,167,.23)!important;color:#fff!important}
.app-workspace{background:linear-gradient(140deg,#f7f9fb,#eef4f6 75%)}
.app-workspace .panel-card{box-shadow:0 18px 60px rgba(13,39,59,.065);border:1px solid #e2eaf0;border-radius:22px}
.app-workspace table{border-collapse:separate;border-spacing:0;width:100%;overflow:hidden}
.app-workspace table th{background:#eff5f7;color:#27455c;font-size:12px;letter-spacing:.025em}
.app-workspace table td{border-bottom:1px solid #e6edf0;vertical-align:middle}
.app-workspace input,.app-workspace textarea,.app-workspace select{border-radius:10px;border-color:#d4e0e7;background:#fff;max-width:100%}
.app-workspace button,.app-workspace .btn{border-radius:10px}
.journey-section{border:1px solid #e2eaf0;background:#fff;border-radius:20px;padding:28px;margin:24px 0;box-shadow:0 9px 25px rgba(13,44,62,.045)}
.journey-header h2{color:#15354b;font-size:25px;margin:5px 0}.journey-header p{color:#668091;font-size:13px}
.journey-progress{margin:18px 0 24px;background:#f2f7f8;border-radius:14px;padding:14px 16px;color:#28576b;font-size:13px}
.journey-track{height:8px;margin-top:10px;border-radius:10px;background:#dbe9ed;overflow:hidden}.journey-track span{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#0e7b83,#14ab97)}
.hpt-milestones{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:0}
.hpt-milestone{display:flex;align-items:flex-start;gap:16px;position:relative;padding:14px 4px 17px;border-bottom:1px solid #eef2f4}
.hpt-milestone:last-child{border-bottom:0}.hpt-milestone .milestone-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#ecf2f5;color:#81949d;border:1px solid #dfe7eb;font-weight:800;font-size:23px}
.hpt-milestone.is-confirmed .milestone-icon{background:#dbf3e8;color:#087957;border:1px solid #99d9c0;font-size:20px}
.hpt-milestone.is-progress .milestone-icon{background:#e3f3f7;color:#127b8a}
.milestone-details{flex:1;min-width:0}.milestone-details strong{display:block;color:#15384a;font-size:14px}.milestone-details small{color:#7a8d9b;font-size:12px}.milestone-details p{font-size:12px;margin:7px 0 0;color:#50697b}
.milestone-status{border-radius:99px;padding:6px 10px;background:#eef2f4;color:#526775;font-size:11px;font-weight:750;white-space:nowrap}
.is-confirmed .milestone-status{background:#e2f5eb;color:#087854}.is-progress .milestone-status{background:#e1f3f8;color:#0b7587}
.journey-editor{margin-top:25px;background:#f5f9fa;border:1px solid #deeaee;border-radius:12px;padding:17px}.journey-editor summary{font-weight:750;cursor:pointer;color:#0a6876}
.profile-heading{margin-bottom:23px}.profile-heading h2{font-size:27px;letter-spacing:-.7px;margin:7px 0;color:#173a50}.profile-heading p{font-size:13px;color:#657b8a}
.profile-section{background:#fff;border:1px solid #dfe9ee;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 7px 25px rgba(16,48,65,.035)}
.profile-section h3{font-size:17px;color:#1a3b51;margin:0 0 18px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.profile-grid label{display:flex;flex-direction:column;font-size:12px;font-weight:700;color:#314f61;gap:7px;margin:0}.profile-grid input,.profile-grid select{width:100%;margin:0!important;padding:12px 14px!important}
.profile-safety{padding:14px 16px;background:#f7f4ed;border-left:3px solid #bea987;border-radius:8px;font-size:12px;color:#60594d}
.profile-readonly>div{background:#f8fafb;border:1px solid #e3ebef;border-radius:12px;padding:13px}.profile-readonly small{display:block;font-size:11px;color:#728695}.profile-readonly strong{font-size:13px;overflow-wrap:anywhere}
@media(max-width:740px){.profile-grid{grid-template-columns:1fr}.journey-section{padding:17px}.hpt-milestone{gap:9px}.milestone-status{font-size:10px}.milestone-details strong{font-size:12px}}


/* HPT V6 case communications + account-private notes */
.hpt-premium-section{background:#fff;border:1px solid #dfe9ed;box-shadow:0 12px 38px rgba(20,50,73,.055);border-radius:20px;margin:26px 0;padding:27px;color:#183b51}
.hpt-section-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}.hpt-section-top h2{font-size:24px;letter-spacing:-.5px;margin:4px 0 7px;color:#102f45}.hpt-section-top p{margin:0;color:#657d8c;font-size:13px;line-height:1.6}.hpt-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#0a7d87}.hpt-private-pill{border:1px solid #cde7e7;color:#0c6872;background:#ebf8f7;padding:7px 12px;border-radius:30px;font-size:11px;font-weight:750;white-space:nowrap}
.hpt-note-warning{background:#f7f5f0;border-left:3px solid #ba9f7c;padding:13px 15px;border-radius:9px;margin:14px 0 18px;color:#655948;font-size:12px;line-height:1.6}
.hpt-note-form{padding:18px;background:#f7fafb;border:1px solid #e4edf0;border-radius:13px}.hpt-note-form label{color:#213d50;font-size:13px;font-weight:700;display:block;margin-bottom:8px}.hpt-note-form textarea,.hpt-note details textarea{width:100%;background:#fff;border:1px solid #d4e1e7;border-radius:10px;padding:13px;line-height:1.6;box-sizing:border-box;resize:vertical}.hpt-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.hpt-form-actions span{font-size:11px;color:#738594}.hpt-premium-section button{border:0;background:#0d6674;color:#fff;border-radius:9px;padding:11px 17px;font-weight:750;font-size:12px;cursor:pointer}.hpt-premium-section button:hover{background:#104c5d}.hpt-premium-section button.hpt-delete-note{background:#fff;color:#a33e3e;border:1px solid #e8c9c9;margin-top:10px}.hpt-empty-notes{background:#f8fafb;border:1px dashed #cfdee4;padding:24px;text-align:center;border-radius:12px;color:#708492;font-size:13px;margin-top:15px}
.hpt-note{margin-top:14px;border:1px solid #e3ecef;border-radius:13px;padding:16px 18px}.hpt-note-meta{display:flex;justify-content:space-between;gap:12px;color:#6e8894;font-size:11px}.hpt-note-meta span{font-weight:800;color:#0f6674;text-transform:uppercase;letter-spacing:.09em}.hpt-note p{white-space:normal;line-height:1.6;color:#314c5d;font-size:13px}.hpt-note details summary{cursor:pointer;color:#0d7380;font-size:12px;font-weight:700}.hpt-note details form{margin-top:12px}.hpt-note details form label{font-size:12px;color:#314c5d}
.hpt-msg-list{display:grid;gap:9px}.hpt-msg-row{display:flex;align-items:center;gap:14px;justify-content:space-between;border:1px solid #e2edf0;border-radius:13px;padding:16px 19px;text-decoration:none!important;color:#21445b!important;background:#fff}.hpt-msg-row:hover{background:#f1f8f8;border-color:#a9d4d4}.hpt-msg-row>div:first-child{display:grid;gap:5px;min-width:0}.hpt-msg-row strong{font-size:13px}.hpt-msg-row small{font-size:11px;color:#7b8e9a}.hpt-msg-row-side{display:grid;gap:5px;text-align:right;margin-left:auto;color:#276677;font-size:12px}
@media(max-width:700px){.hpt-premium-section{padding:17px;border-radius:14px}.hpt-section-top{align-items:flex-start}.hpt-section-top h2{font-size:20px}.hpt-form-actions{flex-wrap:wrap}.hpt-msg-row{padding:13px}.hpt-msg-row-side{font-size:10px}}
/* V7: Secure patient file uploads */
.hpt-med-docs{margin:24px 0;padding:26px;border:1px solid #dce6eb;border-radius:20px;background:#fff;box-shadow:0 12px 35px rgba(10,39,59,.035)}
.hpt-doc-header{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px}.hpt-doc-header h2{margin:5px 0 8px;color:#123a51;font-size:1.55rem}.hpt-doc-header p{margin:0;color:#536b7a;line-height:1.55}.hpt-doc-eyebrow{font-size:.69rem;color:#087b83;letter-spacing:.19em;font-weight:800}.hpt-doc-lock{border-radius:30px;padding:8px 12px;background:#e8f4f2;color:#076b65;white-space:nowrap;font-size:.77rem;font-weight:700}
.hpt-doc-upload{border:1px solid #cde2e6;border-radius:14px;background:#f7fbfc;padding:18px;margin:16px 0 20px}.hpt-doc-drop{display:flex;flex-direction:column;gap:7px;cursor:pointer}.hpt-doc-drop span{font-weight:800;color:#0a5366}.hpt-doc-drop small{color:#607c86}.hpt-doc-drop input{width:100%;max-width:100%;margin-top:8px;background:white}.hpt-doc-consent{display:flex!important;gap:8px;align-items:flex-start!important;font-size:.8rem;font-weight:400!important;line-height:1.4;margin:13px 0!important}.hpt-doc-consent input{width:auto!important;flex:0 0 auto;margin-top:2px!important}.hpt-doc-upload button{margin-top:6px}
.hpt-doc-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e9eef2;flex-wrap:wrap}.hpt-doc-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:13px;background:#e6f2f3;color:#145e69;font-size:.65rem;font-weight:900}.hpt-doc-name{flex:1;min-width:180px;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.hpt-doc-name strong{color:#14384d;font-size:.91rem}.hpt-doc-name small{color:#6e8290;font-size:.73rem}.hpt-doc-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hpt-doc-actions a{color:#087b83;font-weight:700;font-size:.84rem}.hpt-doc-actions details{max-width:240px}.hpt-doc-actions summary{font-size:.84rem;font-weight:700;color:#087b83;cursor:pointer}.hpt-doc-actions details form{padding:8px;border:1px solid #dce6eb;border-radius:10px}.hpt-doc-actions details input{max-width:100%}.hpt-doc-actions form{margin:0}.hpt-doc-remove{background:#fbf0ef!important;color:#9b443c!important;border:1px solid #f0d6d1!important;font-size:.75rem!important;padding:9px 11px!important}.hpt-doc-empty{padding:22px;text-align:center;border-radius:14px;background:#f6f9fa;color:#6b7f8c}.hpt-doc-footnote{font-size:.73rem;line-height:1.6;color:#6f818d;margin-top:18px}
@media(max-width:700px){.hpt-med-docs{padding:16px}.hpt-doc-header{flex-direction:column}.hpt-doc-actions{width:100%}.hpt-doc-row{align-items:flex-start}}


/* HPT V8 — premium referral experience, shared with existing portal brand */
.v8-wizard-intro{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(112deg,#102e45 0%,#16465a 72%,#19566a 100%);border:1px solid #284e62;border-radius:23px;padding:35px 38px;color:#fff;margin:0 0 20px;box-shadow:0 18px 34px rgba(13,45,63,.12)}
.v8-wizard-intro:after{content:"";position:absolute;z-index:-1;width:320px;height:320px;border:1px solid rgba(226,216,194,.2);border-radius:50%;right:-90px;top:-205px;box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.023)}
.v8-overline{font-size:10px;letter-spacing:2.6px;font-weight:800;color:#a3dcd9}.v8-wizard-intro h2{font-size:clamp(27px,3vw,38px);color:#fff;letter-spacing:-1px;line-height:1.14;margin:14px 0 12px}.v8-wizard-intro p{max-width:740px;color:#dceaf0;font-size:14px;line-height:1.7;margin:0 0 24px}.v8-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:720px}.v8-steps span{display:flex;align-items:center;gap:9px;color:#d5e6ed;font-size:12px;font-weight:650;border-top:1px solid rgba(255,255,255,.23);padding-top:12px}.v8-steps b{color:#b2e5de;font-size:12px;letter-spacing:1px}
.v8-privacy{border-radius:13px;border:1px solid #eddfcb;background:#fcf8f1;padding:16px 20px;color:#6b5847;line-height:1.7;font-size:13px;margin:0 0 23px}
.v8-referral-form{display:block}.v8-country{background:#fff;border:1px solid #e5edf1;border-radius:16px;padding:23px 25px;margin-bottom:22px;max-width:100%}.v8-country label{max-width:580px;margin:0}.v8-form-section{background:#fff;border:1px solid #e1eaf0;border-radius:20px;padding:26px 29px;margin:0 0 23px;box-shadow:0 8px 28px rgba(16,46,67,.035)}.v8-section-head{display:flex;align-items:flex-start;gap:15px;margin:0 0 23px}.v8-section-num{display:flex;align-items:center;justify-content:center;flex:none;width:39px;height:39px;background:#e5f5f5;border:1px solid #cae8e8;border-radius:12px;color:#116b75;font-size:14px;font-weight:800}.v8-section-head h3{margin:0 0 5px;color:#132f44;font-size:20px;font-weight:800;letter-spacing:-.5px}.v8-section-head p{color:#708490;margin:0;font-size:13px;line-height:1.55}.v8-optional{background:#f4f0e9;border-radius:50px;color:#836e57;font-size:11px;font-weight:650;padding:5px 9px;letter-spacing:0;vertical-align:middle}
.v8-doc-section{background:linear-gradient(140deg,#fff 0%,#fbfdfd 100%)}.v8-doc-drop{display:flex;align-items:center;flex-wrap:wrap;gap:17px;border:1.5px dashed #86c8ce;background:linear-gradient(135deg,#f6fbfc,#fff);border-radius:16px;padding:22px;max-width:100%}.v8-upload-icon{display:flex;justify-content:center;align-items:center;background:#e1f4f2;width:54px;height:54px;border-radius:14px;color:#0b7881;font-size:30px;font-weight:650;flex:none}.v8-upload-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:180px}.v8-upload-copy strong{color:#153b50;font-size:15px}.v8-upload-copy span{color:#68818e;font-size:12px}.v8-doc-drop input[type=file]{max-width:100%;flex:1 1 280px;border:1px solid #d7e5eb;background:#fff;padding:11px;border-radius:10px;font-size:12px}.v8-file-help{color:#6f8390;font-size:12px;line-height:1.6;margin:14px 0}.v8-consent{display:flex;align-items:flex-start;gap:11px!important;border:1px solid #ebeff0;border-radius:11px;background:#fff;padding:15px;color:#344b57;font-size:12px;font-weight:500;line-height:1.55}.v8-consent input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;margin:2px 0 0}.v8-format-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.v8-format-tags span{background:#eff6f7;color:#52747f;padding:6px 10px;font-size:11px;border-radius:50px}
.v8-travel-section>label,.v8-travel-section>fieldset{max-width:none}.v8-travel-section fieldset{border:1px solid #e4ecf0;border-radius:14px;background:#fafcfd;padding:19px;margin:20px 0}.v8-travel-section fieldset legend{font-weight:800;color:#193e51;padding:0 9px}.v8-submit{display:flex;gap:20px;align-items:center;justify-content:space-between;background:linear-gradient(105deg,#f1f8f9,#fdfaf5);border:1px solid #dbe8eb;border-radius:17px;padding:24px 28px;margin:0 0 15px}.v8-submit div{display:flex;flex-direction:column;gap:6px}.v8-submit strong{color:#163d50;font-size:17px}.v8-submit small{color:#627d8d;line-height:1.5}.v8-submit button{white-space:nowrap;border-radius:11px;background:#0c6571;color:#fff;padding:15px 23px;box-shadow:0 10px 22px #12657724}.v8-submit button span{padding-left:15px}
@media(max-width:760px){.v8-wizard-intro{padding:24px 19px}.v8-steps{grid-template-columns:repeat(2,1fr)}.v8-form-section{padding:19px 15px}.v8-country{padding:19px}.v8-section-head h3{font-size:18px}.v8-doc-drop{padding:15px}.v8-submit{flex-direction:column;align-items:stretch;padding:19px}.v8-submit button{width:100%}}

/* V9 — Confirmed patient registration and HPT-controlled partner commission */
.hpt-secure-card{margin:28px 0;padding:clamp(20px,3vw,34px);border:1px solid #dbe5e9;border-radius:20px;background:linear-gradient(155deg,#fff 0%,#fcfdfd 68%,#f3f8f8 100%);box-shadow:0 12px 32px rgba(17,43,67,.045)}
.hpt-section-top{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;margin-bottom:22px}
.hpt-section-top h2{font-size:clamp(20px,2vw,27px);line-height:1.2;margin:6px 0 8px;color:#142f43;letter-spacing:-.025em}
.hpt-section-top p{color:#667b86;max-width:780px;line-height:1.7;margin:0}
.hpt-eyebrow{font-size:11px;font-weight:800;color:#00858c;letter-spacing:.14em}
.hpt-form-group{margin:0 0 26px;padding:22px;border:1px solid #e5edf0;border-radius:16px;background:rgba(246,250,251,.8)}
.hpt-form-group h3{font-size:16px;color:#173c4e;margin:0 0 18px}
.hpt-form-group p{color:#657a85;margin:0 0 14px}
.hpt-patient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 19px}
.hpt-patient-grid label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#344d5d;font-weight:650;min-width:0}
.hpt-patient-grid input,.hpt-patient-grid select{width:100%;border:1px solid #d0dee3;border-radius:10px;background:#fff;padding:12px 13px;color:#183344;min-height:46px;box-sizing:border-box;font:inherit}
.hpt-patient-grid input:focus,.hpt-patient-grid select:focus{outline:2px solid #86c5c8;outline-offset:1px;border-color:#008b91}
.hpt-info-tile{padding:15px;background:#f7fafb;border:1px solid #e5eef0;border-radius:12px;min-width:0;overflow-wrap:anywhere}
.hpt-info-tile small{display:block;color:#687f89;margin-bottom:6px}
.hpt-info-tile strong{font-size:14px;color:#173b4c;font-weight:650}
.hpt-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.6;font-size:13px;margin:15px 0 21px;color:#425965}
.hpt-consent input{margin-top:4px;flex:0 0 auto}
.hpt-form-actions{display:flex;gap:12px;flex-wrap:wrap}
.hpt-form-actions button,.hpt-secure-card form>button{padding:13px 21px;border-radius:10px;background:#173d51;color:#fff;border:0;font-weight:700;cursor:pointer}
.hpt-form-actions button:last-child{background:#007f89}
.hpt-callout{background:#eef7f7;border-left:3px solid #12969b;border-radius:8px;padding:14px 17px;color:#3c6872;line-height:1.6;margin:20px 0 0}
.hpt-finance-amount{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:24px;background:#15374a;border-radius:13px;color:#fff;margin-bottom:20px}
.hpt-finance-amount small{color:#d7e6ea;font-size:13px}.hpt-finance-amount strong{font-size:clamp(22px,3vw,31px);white-space:nowrap}
@media(max-width:760px){.hpt-patient-grid{grid-template-columns:1fr}.hpt-secure-card{margin:16px 0;padding:17px}.hpt-form-group{padding:15px}.hpt-section-top{flex-direction:column}.hpt-finance-amount{align-items:flex-start;flex-direction:column}}

/* V10: explicit active navigation and distinct patient journey screen */
.app-sidebar nav a.side-link.active{background:#147c89!important;color:#fff!important;font-weight:750;box-shadow:inset 3px 0 0 #b9e4df,0 6px 16px rgba(0,0,0,.14)}
.app-sidebar nav a.side-link.active::before{content:"●";color:#b7e9e2;font-size:9px;margin-right:10px;vertical-align:middle}
.app-sidebar nav a.side-link:focus-visible{outline:3px solid #8bdfd5;outline-offset:2px}
.hpt-location{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 16px;font-size:12px;font-weight:650;color:#708391;letter-spacing:.04em}
.hpt-location strong{color:#163f55;letter-spacing:0;font-weight:780}
.hpt-location-sep{color:#16a0a7}
.hpt-screen-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
.hpt-screen-intro h2{margin:4px 0;color:#15354c;font-size:26px}
.hpt-screen-intro p{margin:6px 0;color:#647987;max-width:600px}
.hpt-link-muted{color:#146c7c;font-weight:700;text-decoration:none;white-space:nowrap}
.hpt-patient-reference{display:flex;gap:15px;flex-wrap:wrap;align-items:center;background:#f1f8f8;border:1px solid #d8e9e8;padding:16px 20px;border-radius:14px;margin-bottom:20px}
.hpt-patient-reference span:first-child{font-size:10px;letter-spacing:.12em;color:#527781;font-weight:800}
.hpt-patient-reference strong{color:#123f53;font-size:17px}
.hpt-patient-reference span:last-child{color:#52727b;font-size:13px}
.hpt-journey-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:20px 0;padding:25px;background:linear-gradient(115deg,#f5fafb,#eaf4f4);border:1px solid #d6e6e9;border-radius:18px}
.hpt-journey-cta h3{font-size:21px;margin:5px 0;color:#13384d}
.hpt-journey-cta p{margin:5px 0;color:#617887;max-width:570px}
.hpt-journey-cta .btn{white-space:nowrap}
@media(max-width:720px){.hpt-screen-intro,.hpt-journey-cta{align-items:stretch;flex-direction:column}.hpt-journey-cta .btn{text-align:center}.hpt-location{font-size:11px}}

/* V11 — patient file and stage-two navigation only */
.hpt-patient-breadcrumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#597385;font-size:13px;font-weight:600;margin:0 0 14px}
.hpt-patient-breadcrumb a{color:#08778a;text-decoration:none}
.hpt-patient-breadcrumb a:hover,.hpt-back-link:hover{text-decoration:underline}
.hpt-patient-toolbar,.hpt-confirm-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 18px}
.hpt-back-link,.hpt-case-link,.hpt-confirm-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:700;text-decoration:none!important}
.hpt-back-link{color:#183a50;background:#edf3f6;border:1px solid #d6e3eb}
.hpt-case-link{color:#183a50;background:#fff;border:1px solid #d6e3eb}
.hpt-confirm-link{color:#fff;background:#087a83}
.hpt-confirm-nav{margin:4px 0 22px}
.hpt-unsaved-hint{color:#617887;font-size:12px;margin:12px 0 0}
@media(max-width:600px){.hpt-patient-toolbar,.hpt-confirm-nav{align-items:stretch}.hpt-back-link,.hpt-case-link,.hpt-confirm-link{flex:1}}


/* HPT V12 — unified authenticated workspace layer; one design language, scoped to .app-shell. */
:root {--hpt-ink:#1b3446;--hpt-muted:#667b88;--hpt-navy:#102c40;--hpt-deep:#173950;--hpt-sea:#197b80;--hpt-soft:#eff5f4;--hpt-bg:#f6f7f7;--hpt-stroke:#e5e8e8;--hpt-radius:14px;--hpt-shadow:0 10px 32px rgba(19,42,57,.045)}
body:has(.app-shell){background:var(--hpt-bg);color:var(--hpt-ink);font-family:Manrope,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;letter-spacing:-.008em}
.app-shell{min-height:100vh;align-items:stretch}
.app-shell .app-sidebar{width:264px;flex-basis:264px;background:linear-gradient(180deg,#102f45 0%,#122b3e 100%);box-shadow:none;border-right:1px solid #2d4857;padding:25px 15px;z-index:4}
.app-shell .sidebar-brand{padding:2px 10px 24px;font-size:0;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:15px}
.app-shell .sidebar-brand img{display:block;max-width:193px;width:100%;max-height:67px;object-fit:contain;object-position:left center}
.app-shell .sidebar-brand small{display:block;color:#b5c8d0;font-size:9px;font-weight:600;letter-spacing:1.45px;line-height:1.5;margin-top:12px}
.app-shell .side-caption{color:#a7bdc7;font-size:9px;letter-spacing:1.8px;padding:10px 12px 9px;font-weight:700}
.app-shell .app-sidebar nav{gap:4px}
.app-shell .app-sidebar nav a.side-link{font-weight:550;font-size:12.5px;line-height:1.45;border-radius:9px;padding:12px 14px;border:1px solid transparent;color:#dbe8ef;transition:background .18s ease,border-color .18s ease}
.app-shell .app-sidebar nav a.side-link:hover{background:#29485a;color:white}
.app-shell .app-sidebar nav a.side-link.active{background:#285469;color:white;border-color:#497082;box-shadow:inset 3px 0 0 #93d1c9;font-weight:750}
.app-shell .app-sidebar nav a.side-link:focus-visible{outline:2px solid #a6e1d9;outline-offset:2px}
.app-shell .app-workspace{background:#f7f8f8}
.app-shell .app-workspace .mobile-header{height:90px;min-height:90px;padding:17px clamp(20px,3.3vw,52px);background:#fff;box-shadow:none;border-bottom:1px solid var(--hpt-stroke)}
.app-shell .mobile-header .brandlogo{height:54px;max-width:220px;object-fit:contain}
.app-shell .app-workspace main{max-width:1500px;padding:25px clamp(18px,3.3vw,52px) 70px;margin:0 auto}
.app-shell .hpt-location{color:#8a969c;font-weight:550;font-size:11px;letter-spacing:.02em;padding:0 0 18px;margin:0;background:none;border:0;display:flex;align-items:center;gap:10px}
.app-shell .hpt-location a{color:#507984}.app-shell .hpt-location a:hover{text-decoration:underline}
.app-shell .hpt-location strong{color:#4b6270;font-weight:650}
.app-shell .workspace-heading{padding:0 1px 23px}
.app-shell .workspace-eyebrow{font-size:10px;font-weight:720;letter-spacing:1.75px;color:#64858d}
.app-shell .workspace-heading h1{margin:7px 0 0;font-size:clamp(25px,2.7vw,35px);font-weight:720;color:#173449;line-height:1.2;letter-spacing:-.9px}
.app-shell .app-workspace .panel-card{background:transparent;box-shadow:none;border:0;padding:0;margin:0;max-width:none;border-radius:0}
.app-shell .panel-card > h1,.app-shell .panel-card > h2:first-child{color:#1d3a4e;font-size:clamp(20px,2vw,27px);letter-spacing:-.5px;margin-top:4px}
.app-shell .dashboard-hero{border-radius:17px;border:1px solid #e5e9e8;background:linear-gradient(118deg,#f5faf9 0%,#fff 60%,#f7f2eb 100%);padding:37px 38px;box-shadow:var(--hpt-shadow)}
.app-shell .dashboard-hero h1{font-size:clamp(25px,3vw,38px);font-weight:720;line-height:1.23}
.app-shell .dashboard-stat,.app-shell .dashboard-actions a{border-radius:13px;box-shadow:var(--hpt-shadow)}
.app-shell .dashboard-stat-primary{background:#1d4a61;border-color:#1d4a61}
.app-shell .dashboard-stat-light{background:#fbf6f0;border-color:#eee7df}
.app-shell .dashboard-stat-value{font-weight:650}
.app-shell .dashboard-actions a{background:white;border-color:var(--hpt-stroke);min-height:68px}
.app-shell .dashboard-actions a:hover{background:#eff7f6;border-color:#badbd5}
.app-shell .panel-card form:not(.inline-form){max-width:100%}
.app-shell .panel-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),.app-shell .panel-card select,.app-shell .panel-card textarea{background:#fff;border:1px solid #dce5e7;border-radius:9px;min-height:44px;color:#223e4f;box-shadow:none;font-family:inherit}
.app-shell .panel-card input:focus-visible,.app-shell .panel-card select:focus-visible,.app-shell .panel-card textarea:focus-visible{outline:2px solid #a0d4d0;outline-offset:1px;border-color:#398c8e}
.app-shell .panel-card label{font-size:12px;font-weight:650;color:#334c5d;letter-spacing:0}
.app-shell .panel-card button,.app-shell .panel-card .btn,.app-shell .panel-card a.buttonlink{font-family:inherit;border-radius:9px;font-weight:650;letter-spacing:0;transition:background .16s ease,box-shadow .16s ease}
.app-shell .panel-card button:focus-visible,.app-shell .panel-card a:focus-visible{outline:2px solid #2b8c90;outline-offset:3px}
.app-shell .panel-card table{border-collapse:separate;border-spacing:0;width:100%;background:#fff;border:1px solid #e4e9e9;border-radius:13px;overflow:hidden;box-shadow:var(--hpt-shadow)}
.app-shell .panel-card table th{background:#f4f7f7;color:#627681;font-size:11px;font-weight:720;letter-spacing:.03em;padding:14px 15px;border-bottom:1px solid #e6ebec;text-align:left}
.app-shell .panel-card table td{padding:15px;border-bottom:1px solid #edf0f0;color:#304858;font-size:12.5px;vertical-align:middle}
.app-shell .panel-card table tr:last-child td{border-bottom:none}
.app-shell .panel-card table tr:hover td{background:#f8fbfa}
.app-shell .panel-card .status-pill,.app-shell .panel-card .journey-status{border-radius:40px;font-size:11px;padding:5px 10px;font-weight:650}
.app-shell .cases-top{margin-bottom:18px}
.app-shell .hpt-premium-section,.app-shell .v8-form-section,.app-shell .hpt-secure-card,.app-shell .profile-card,.app-shell .journey-section,.app-shell .hpt-form-group,.app-shell .hpt-med-docs{background:#fff;border:1px solid #e5e9e9;border-radius:14px;box-shadow:var(--hpt-shadow)}
.app-shell .hpt-specialties .treatment-group,.app-shell .package-card{border-radius:12px;border:1px solid #e3e9e9;box-shadow:0 4px 16px rgba(18,45,60,.025)}
.app-shell .hpt-specialties .treatment-group[open]{border-color:#a8d5d1;background:#fafdfe}
.app-shell .hpt-patient-breadcrumb{font-size:12px;letter-spacing:0}
.app-shell .app-workspace footer{margin:18px auto 25px;color:#8a989e;font-size:11px;text-align:center}
@media(max-width:900px){.app-shell .app-sidebar{width:218px;flex-basis:218px}.app-shell .app-workspace main{padding:22px 18px 50px}.app-shell .dashboard-hero{padding:24px}}
@media(max-width:640px){.app-shell{display:block}.app-shell .app-sidebar{width:100%;height:auto;position:static;padding:12px}.app-shell .sidebar-brand{padding:3px 9px 10px;margin-bottom:9px;display:flex;align-items:center;gap:10px}.app-shell .sidebar-brand img{width:115px;max-height:42px}.app-shell .sidebar-brand small{font-size:8px;letter-spacing:.5px;margin:0}.app-shell .app-sidebar nav{flex-direction:row;gap:5px;overflow-x:auto;padding-bottom:6px}.app-shell .app-sidebar nav a.side-link{white-space:nowrap;padding:9px 12px}.app-shell .app-workspace .mobile-header{min-height:68px;height:68px;padding:11px 15px}.app-shell .mobile-header .brandlogo{height:43px}.app-shell .app-workspace main{padding:19px 13px 42px}.app-shell .workspace-heading{padding-bottom:18px}.app-shell .dashboard-hero{padding:24px 20px}.app-shell .panel-card table th,.app-shell .panel-card table td{padding:10px 12px}.app-shell .panel-card{overflow-wrap:anywhere}}

/* V13: Cohesive patient workspace, no duplicate desktop brand */
.app-shell .app-workspace .mobile-header{display:none!important}
.app-shell .sidebar-brand img.hpt-white-brand{filter:brightness(0) invert(1);width:176px;max-height:78px;object-fit:contain}
.app-shell .app-sidebar{background:#102c41;}
.app-shell .app-workspace main{padding-top:29px}
.app-shell .app-workspace .workspace-heading{padding-bottom:21px}
.app-shell .app-workspace .workspace-heading h1{font-size:clamp(24px,2.5vw,32px);font-weight:650}
.hpt-file-header{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:0 0 24px}
.hpt-file-header h2{margin:8px 0 8px;color:#17364a;font-weight:690;font-size:clamp(20px,2.2vw,27px);letter-spacing:-.5px;overflow-wrap:anywhere}
.hpt-file-header p{margin:0;color:#526d7b;font-size:13px}
.hpt-file-kicker{font-size:10px;letter-spacing:1.5px;color:#718995;font-weight:750;margin-top:16px}
.hpt-file-return{color:#187987;text-decoration:none;font-weight:650;font-size:12px}
.hpt-file-journey{display:inline-block;white-space:nowrap;background:#e9f4f2;color:#14656d;text-decoration:none;border-radius:9px;padding:12px 16px;font-weight:700;font-size:12px}
.hpt-file-journey:hover{background:#d7eeea}
.hpt-dot{padding:0 5px;color:#93a5ab}
.hpt-file-tabs{display:flex;align-items:stretch;gap:4px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #dbe5e7;margin-bottom:22px;padding-bottom:0}
.hpt-file-tabs .hpt-file-tab{display:inline-flex;align-items:center;min-height:47px;white-space:nowrap;text-decoration:none;color:#627986;font-size:12.5px;font-weight:650;padding:12px 14px;border-bottom:2px solid transparent;transition:color .14s,border-color .14s,background .14s}
.hpt-file-tabs .hpt-file-tab:hover{background:#f1f6f5;color:#126776}
.hpt-file-tabs .hpt-file-tab.is-current{border-bottom-color:#19858b;color:#126978;background:linear-gradient(180deg,transparent 70%,#f3f9f8)}
.hpt-file-panel{max-width:1110px;min-height:270px}
.hpt-file-panel > .hpt-secure-card:first-child,.hpt-file-panel > .patient-file-summary:first-child,.hpt-file-panel > .hpt-med-docs:first-child{margin-top:0}
.hpt-file-panel .hpt-secure-card .hpt-section-top h2{font-size:clamp(20px,2vw,26px)}
.hpt-file-panel .hpt-form-group{box-shadow:none;background:#fcfdfd}
.hpt-workspace-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.hpt-workspace-shortcuts a{display:inline-block;padding:12px 16px;border:1px solid #d6e8e7;border-radius:9px;text-decoration:none;color:#18717e;font-size:12.5px;font-weight:650;background:#fff}
.hpt-workspace-shortcuts a:hover{background:#edf8f6}
.hpt-action-separator{color:#b3c3c7;padding:0 5px}
@media(max-width:740px){.hpt-file-header{flex-direction:column;align-items:flex-start}.hpt-file-journey{white-space:normal}.hpt-file-tabs{margin-right:-13px}.hpt-file-tabs .hpt-file-tab{padding:12px 10px;font-size:12px}.app-shell .app-sidebar .sidebar-brand img.hpt-white-brand{width:132px;max-height:54px}}

/* V14 Consolidated wayfinding + refined patient portal (V13 preserved). */
.app-shell .sidebar-brand{padding-top:10px;padding-bottom:22px}
.app-shell .sidebar-brand a.hpt-brand-link{display:block;width:100%;max-width:198px;text-decoration:none}
.app-shell .sidebar-brand img.hpt-white-brand{filter:none!important;width:100%;height:auto;max-height:90px;object-fit:contain;object-position:left center}
.app-shell .sidebar-brand small{margin-top:7px;letter-spacing:1.2px}
.app-shell .app-sidebar{background:#102d40;border-right:1px solid rgba(255,255,255,.06)}
.app-shell .app-sidebar .side-link.active{background:#177f86!important;box-shadow:inset 3px 0 0 #b5e5df!important;border-color:#177f86!important}
.app-shell .app-workspace{background:#f7f9fa}
.app-shell .app-workspace main{padding-top:26px}
.app-shell .app-workspace .workspace-heading{padding-bottom:18px}
.app-shell .app-workspace .workspace-heading h1{font-size:clamp(22px,2.3vw,30px);letter-spacing:-.65px}
.app-shell .hpt-location{padding-bottom:12px}
.app-shell .dashboard-hero{padding:28px 32px;border-radius:13px;box-shadow:none}
.app-shell .dashboard-hero h1{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.8px}
.app-shell .dashboard-stat{min-height:124px;box-shadow:none;border:1px solid #e3eaea}
.app-shell .dashboard-stat-value{font-size:28px}
.app-shell .dashboard-actions a{min-height:56px;box-shadow:none}
.hpt-recents{margin:24px 0 22px;background:#fff;border:1px solid #e2e9eb;border-radius:13px;padding:24px 26px;box-shadow:0 5px 25px rgba(18,42,57,.025)}
.hpt-recents-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.hpt-recents-heading h2{font-size:19px;color:#1a3749;margin:4px 0;font-weight:700;letter-spacing:-.3px}
.hpt-recents-heading p{font-size:12px;color:#6a7c87;margin:0}
.hpt-kicker{color:#137b86;letter-spacing:.16em;font-size:10px;font-weight:800}
.hpt-text-link{font-weight:700;color:#0e7481;text-decoration:none;font-size:12px;white-space:nowrap}
.hpt-recent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.hpt-recent-patient{display:flex;gap:12px;align-items:center;background:#fbfcfc;border:1px solid #e4ebed;border-radius:10px;padding:14px 16px;color:#193e53;text-decoration:none;transition:background .15s,border-color .15s}
.hpt-recent-patient:hover{background:#eef8f6;border-color:#9fd2ce}
.hpt-recent-icon{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;background:#e9f5f3;border-radius:8px;color:#13747c;font-size:18px}
.hpt-recent-content{display:flex;flex-direction:column;gap:3px;min-width:0}
.hpt-recent-content strong{font-size:12px;overflow-wrap:anywhere}
.hpt-recent-content small{color:#657c87;font-size:11px}
.hpt-recent-open{margin-left:auto;color:#0f7781;font-size:11px;font-weight:750;white-space:nowrap}
.app-shell .cases-top h2{font-size:19px;margin:0 0 6px;color:#1b3b4d}
.app-shell .cases-top p{font-size:12.5px;color:#617985;margin:0}
.app-shell .case-table-wrap{border-radius:12px;box-shadow:none}
.app-shell .case-table-wrap table{box-shadow:none}
.app-shell .case-table-wrap th{font-size:10px!important;letter-spacing:.03em}
.app-shell .case-table-wrap td{font-size:12px!important}
.hpt-ref-link{color:#116f7c;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.hpt-ref-link:hover{text-decoration:underline}
.hpt-patient-actions{min-width:170px}
.hpt-patient-actions a{display:block;text-decoration:none;font-weight:700;font-size:11px}
.hpt-patient-actions .hpt-primary-file-link{display:inline-flex;padding:9px 12px;border-radius:8px;background:#eaf5f3;color:#0f6974}
.hpt-patient-actions .hpt-primary-file-link:hover{background:#d4ece8}
.hpt-patient-actions .hpt-secondary-file-link{margin:9px 0 0;color:#607b87}
.app-shell .hpt-file-header{border-bottom:1px solid #e1e8e9;padding-bottom:20px;margin-bottom:13px}
.app-shell .hpt-file-tabs{background:#fff;border:1px solid #e2e9ea;border-radius:11px;padding:0 7px;margin-bottom:22px}
.app-shell .hpt-file-tab.is-current{background:#eaf6f4!important;color:#0a6974!important}
.app-shell .hpt-file-panel .patient-file-summary{box-shadow:none;background:#fff;border-color:#e3e9ea}
@media(max-width:900px){.hpt-recents{padding:18px}.hpt-recent-open{display:none}}
@media(max-width:640px){.hpt-recents-heading{align-items:flex-start;flex-direction:column}.app-shell .sidebar-brand a.hpt-brand-link{width:135px}.app-shell .sidebar-brand img.hpt-white-brand{max-height:60px}.hpt-patient-actions{min-width:140px}}

/* V15: one left-side navigation system; one content panel, no nested tab hunting. */
.app-shell .app-sidebar{width:254px;flex:0 0 254px;overflow-y:auto;scrollbar-width:thin}
.app-shell .app-sidebar nav{display:flex;flex-direction:column;gap:2px;padding-bottom:24px}
.app-shell .app-sidebar .side-link{min-height:37px;padding:10px 12px;font-size:12px;border-radius:8px;line-height:1.3}
.app-shell .hpt-side-patient{margin:19px 0 7px;padding:15px 12px 10px;border-top:1px solid rgba(255,255,255,.16);border-bottom:1px solid rgba(255,255,255,.12)}
.app-shell .hpt-side-section-caption{font-size:9px;font-weight:750;letter-spacing:1.7px;color:#a6c7d3;margin-bottom:8px}
.app-shell .hpt-side-patient-ref{color:#fff;font-size:11px;font-weight:700;overflow-wrap:anywhere;line-height:1.55}
.app-shell .hpt-side-change{display:inline-block;color:#a8e0dd!important;text-decoration:underline;text-underline-offset:3px;font-size:11px;margin-top:8px}
.app-shell .app-sidebar .side-link.hpt-side-sub{padding-left:20px;font-weight:500;color:#d4e3e9;position:relative}
.app-shell .app-sidebar .side-link.hpt-side-sub:before{content:'';position:absolute;left:10px;top:16px;width:4px;height:4px;border-radius:50%;background:#79aab4}
.app-shell .app-sidebar .side-link.hpt-side-sub.active{background:#177f86!important;color:white!important;font-weight:700}
.app-shell .hpt-file-header-compact{padding:0 0 15px;margin:0 0 20px;border-bottom:1px solid #e5eced}
.app-shell .hpt-file-header-compact h2{font-size:19px;margin:5px 0 3px}
.app-shell .hpt-file-header-compact .hpt-file-kicker{margin:0;font-size:9px}
.app-shell .hpt-file-header-compact .hpt-file-return{background:#f2f7f7;border:1px solid #dce8e9;border-radius:8px;padding:9px 12px}
.app-shell .panel-card{max-width:1200px}
.app-shell .hpt-file-panel{width:100%;max-width:1100px;min-height:240px}
.app-shell .hpt-file-panel > h2{font-size:20px}
.app-shell .workspace-heading{margin-bottom:12px}
.app-shell .hpt-file-panel .hpt-secure-card,.app-shell .hpt-file-panel .patient-file-summary{border-radius:12px}
@media(max-width:900px){.app-shell .app-sidebar{width:226px;flex-basis:226px}}
@media(max-width:640px){.app-shell .app-sidebar{width:100%;height:auto;max-height:250px;overflow:auto}.app-shell .app-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.app-shell .hpt-side-patient{grid-column:1/-1}.app-shell .app-sidebar .side-link.hpt-side-sub{white-space:normal;min-width:0}.app-shell .hpt-file-header-compact{align-items:flex-start;flex-direction:column}}

/* V16: confirmed-patient directory matches the existing patient listing */
.hpt-confirmed-empty{padding:26px 18px;text-align:center;color:#526b78}.hpt-confirmed-empty strong{display:block;color:#15384a;font-size:16px;margin-bottom:8px}.hpt-confirmed-empty p{margin:0 auto 12px;max-width:520px;line-height:1.6}.hpt-confirmed-empty a{color:#117c87;font-weight:650}

/* V17 - source-built, restrained partner UI; no remote icon fonts. */
.app-shell .app-sidebar{background:#092c42;scrollbar-width:thin;scrollbar-color:#49677a transparent}
.app-shell .app-sidebar nav .side-link:not(.hpt-side-sub){display:flex;align-items:center;gap:12px;font-size:12.5px;font-weight:560;min-height:43px;padding:11px 13px;border-radius:9px}
.app-shell .app-sidebar nav .side-link .hpt-icon{flex:none;width:17px;height:17px;stroke:#e1edf3;opacity:.91}
.app-shell .app-sidebar nav .side-link.active{background:#326d84!important;box-shadow:none!important;border-color:transparent!important;color:#fff}
.app-shell .app-sidebar nav .side-link:hover:not(.active){background:rgba(255,255,255,.075)}
.app-shell .app-sidebar .side-link.hpt-side-sub{font-size:11.5px;min-height:35px}
.app-shell .app-workspace{background:#fbfaf9}
.app-shell .app-workspace main{max-width:1600px;padding-top:27px}
.app-shell .app-workspace .workspace-heading h1{font-size:clamp(26px,2.5vw,35px);font-weight:700;letter-spacing:-.8px}
.app-shell .app-workspace .workspace-eyebrow{letter-spacing:1.5px}
.app-shell .app-workspace .panel-card{max-width:none}
.hpt-page-description{font-size:13.5px;color:#60727d;line-height:1.55;margin:0 0 23px}
.hpt-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 24px}
.hpt-stat-card{border:1px solid #e8ebed;border-radius:15px;min-height:100px;display:flex;align-items:center;gap:14px;padding:20px 19px;background:#fff;box-shadow:0 5px 22px rgba(16,45,61,.035)}
.hpt-stat-ico{width:44px;height:44px;flex:0 0 44px;border-radius:12px;display:grid;place-items:center;background:#edf7f7;color:#168694}
.hpt-stat-ico .hpt-icon{width:23px;height:23px}
.hpt-stat-card strong,.hpt-stat-card span{display:block}.hpt-stat-card strong{font-weight:750;font-size:28px;line-height:1.1;color:#12354b}.hpt-stat-card span{margin-top:6px;font-size:12.5px;color:#526874}
.hpt-list-box{background:#fff;border:1px solid #e8eaeb;border-radius:17px;padding:21px;box-shadow:0 8px 30px rgba(20,40,55,.03)}
.hpt-list-toolbar{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:19px}
.hpt-patient-search{flex:1;max-width:520px;display:block!important;margin:0!important}
.hpt-patient-search input{width:100%;border:1px solid #e0e7e9;border-radius:10px;min-height:43px;background:#fff!important;box-shadow:none!important;font-size:13px;padding:10px 16px}
.hpt-status-select{display:block!important;margin:0!important}.hpt-status-select select{min-width:155px;min-height:43px;background:#fff;border:1px solid #e0e7e9;border-radius:10px;font-size:12px;padding:10px}
.hpt-list-box .cases-top{margin-bottom:17px}.hpt-list-box .cases-top h2{font-size:17px}.hpt-list-box .cases-top .btn{border-radius:9px;font-size:12px;background:#07516b;color:#fff;padding:12px 16px}
.hpt-list-box .case-table-wrap{border:1px solid #ebeeef;border-radius:11px;overflow-x:auto}
.hpt-list-box .case-table-wrap table{width:100%}.hpt-list-box .case-table-wrap th{background:#f7f9f9!important;color:#4d626f}.hpt-list-box .case-table-wrap td{padding:15px 11px!important}
.hpt-list-box .hpt-primary-file-link{background:#edf6f6;border:1px solid #dce9e9;color:#096875;white-space:nowrap}
.hpt-list-box tr[hidden]{display:none!important}
.hpt-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1110px){.hpt-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.hpt-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hpt-stat-card{padding:12px;gap:8px}.hpt-stat-ico{width:34px;height:34px;flex-basis:34px}.hpt-stat-card strong{font-size:21px}.hpt-list-box{padding:13px}.hpt-list-toolbar{flex-direction:column;align-items:stretch}.hpt-patient-search{max-width:none}}

.app-shell .app-sidebar nav .hpt-side-sub{display:flex;align-items:center;gap:9px}.app-shell .app-sidebar nav .hpt-side-sub:before{display:none!important}.hpt-side-item-index{font-size:10px;color:#93bdca;letter-spacing:.03em;flex:0 0 17px}.hpt-side-sub.active .hpt-side-item-index{color:#fff}

/* V17: calm, consistent partner navigation */
.app-shell .app-sidebar{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent}
.app-shell .app-sidebar .hpt-side-patient{margin-top:14px;border-top:1px solid rgba(255,255,255,.15)}
.app-shell .hpt-side-sub{font-size:11.5px!important;min-height:34px!important}
.app-shell .app-sidebar .side-link:focus-visible{outline:2px solid #bce7e8;outline-offset:2px}
.app-shell main{max-width:1440px}
.hpt-patient-page .hpt-page-description{margin-bottom:16px;color:#60717c;font-size:13px}
.hpt-list-box .cases-top{margin-bottom:15px}
.hpt-list-box .case-table-wrap{overflow-x:auto}
.hpt-stat-card{box-shadow:0 3px 16px rgba(11,43,61,.025)}

/* HPT V18: restrained report controls, aligned to patient file. */
.hpt-export-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 20px;padding:12px 0;border-top:1px solid #e4edef;border-bottom:1px solid #e4edef}.hpt-export-actions span{color:#66818d;font-size:12px;margin-right:7px;font-weight:600}.hpt-export-actions a{color:#17667a;background:#fff;border:1px solid #dce8eb;border-radius:7px;font-size:12px;padding:9px 12px;text-decoration:none;font-weight:600}.hpt-export-actions a:hover,.hpt-export-actions a:focus-visible{background:#eaf6f7;border-color:#8ac1c8}.hpt-export-actions a:focus-visible{outline:2px solid #177f8b;outline-offset:2px}

/* V19: a referral stays anonymous until the verified partner has entered a name. */
.hpt-row-patient-name,.hpt-row-patient-country{display:block;margin-top:5px;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.hpt-row-patient-name{font-weight:600;color:#18354a}
.hpt-row-patient-country{font-weight:400;color:#738794}


/* V20 · Harmonious facility preferences, aligned with existing light portal */
.hpt-fp-card{margin:18px 0;padding:22px 24px;background:#fff;border:1px solid #e1e9ec;border-radius:14px;box-shadow:0 5px 20px rgba(16,47,65,.035)}
.hpt-fp-card h2{margin:5px 0 16px;font-size:1.28rem}.hpt-fp-card h3{font-size:1rem;margin:18px 0 10px}
.hpt-fp-overline{font-size:10px;font-weight:700;letter-spacing:.18em;color:#187d85}
.hpt-fp-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hpt-fp-selects label{width:100%;min-width:0}
.hpt-fp-selects select{width:100%;max-width:100%;background:#fff;border:1px solid #d6e3e6;border-radius:9px;padding:12px}
.hpt-fp-hint,.hpt-fp-empty,.hpt-fp-secondary{font-size:.82rem;color:#667d8a;line-height:1.6;margin:8px 0}
.hpt-fp-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hpt-fp-summary>div{min-width:0;border:1px solid #e4ecee;border-radius:10px;padding:12px}
.hpt-fp-summary small,.hpt-fp-summary strong{display:block;overflow-wrap:anywhere}.hpt-fp-summary small{color:#718493;font-size:11px;margin-bottom:5px}.hpt-fp-summary strong{font-size:.86rem;color:#123449}
.hpt-fp-confirmed{margin:15px 0;padding:14px 16px;background:#f2f8f8;border-radius:10px}.hpt-fp-confirmed p{margin:8px 0 0}
.hpt-fp-edit{margin-top:13px;border-top:1px solid #e8eef0;padding-top:14px}.hpt-fp-edit summary{color:#0d7280;cursor:pointer;font-weight:700}.hpt-fp-edit form{padding-top:16px}
.hpt-fp-scroll{overflow-x:auto}.hpt-fp-tiny{padding:7px 12px;font-size:12px;border-radius:7px}
@media(max-width:750px){.hpt-fp-card{padding:16px}.hpt-fp-selects,.hpt-fp-summary{grid-template-columns:1fr}}

/* V21 · HPT admin-only coordination screen. No changes to partner layouts. */
.hpt-aq-intro{color:#526b79;font-size:14px;margin:0 0 22px;line-height:1.6}
.hpt-aq-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
.hpt-aq-stat{display:block;border:1px solid #e1e9ec;background:#fff;border-radius:14px;padding:19px 20px;text-decoration:none;color:#17394c;transition:border-color .2s,background .2s}
.hpt-aq-stat:hover,.hpt-aq-stat[aria-current=page]{border-color:#93bfc4;background:#f1f8f8}
.hpt-aq-stat strong{display:block;font-size:30px;line-height:1.25;letter-spacing:-.04em}
.hpt-aq-stat span{display:block;font-size:12px;color:#526b79;margin-top:6px}
.hpt-aq-table{background:#fff;border:1px solid #e1e9ec;border-radius:16px;padding:18px;overflow-x:auto}
.hpt-aq-table table{min-width:730px;width:100%;border-collapse:collapse}
.hpt-aq-table th{font-size:11px;text-align:left;color:#54717d;text-transform:uppercase;letter-spacing:.055em;padding:13px 11px;background:#f4f8f9}
.hpt-aq-table td{font-size:12px;vertical-align:middle;padding:15px 11px;border-bottom:1px solid #edf1f2}
.hpt-aq-ref{font-weight:700;color:#0c6471;text-decoration:none;overflow-wrap:anywhere}
.hpt-aq-secondary{display:block;color:#607886;font-size:11px;margin-top:4px}
.hpt-aq-button{display:inline-block;text-decoration:none;padding:9px 13px;border-radius:8px;background:#eaf4f4;color:#0b6471;font-weight:700;white-space:nowrap}
.hpt-aq-tips{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}
.hpt-aq-tips a{font-size:12px;color:#126674;background:#eaf4f4;padding:9px 12px;border-radius:8px;text-decoration:none}
.hpt-aq-empty{padding:24px;color:#57717e}
@media(max-width:1050px){.hpt-aq-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.hpt-aq-stats{grid-template-columns:1fr}}

/* V22 scoped confidential pricing workspace */
.hpt-price-intro{margin-bottom:22px}.hpt-price-intro h2{margin:5px 0 8px;font-size:1.5rem;font-weight:650;letter-spacing:-.025em}.hpt-price-intro p{color:#61717d;line-height:1.65}.hpt-price-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.hpt-price-box{border:1px solid #e6eaed;border-radius:15px;background:#fff;padding:22px;margin:17px 0;box-shadow:0 2px 14px rgba(25,55,70,.025)}.hpt-price-box h3{font-size:1.02rem;font-weight:650;letter-spacing:-.015em;margin:0 0 18px}.hpt-price-box form{display:grid;gap:10px}.hpt-price-box label{font-size:.85rem;color:#304b59}.hpt-price-box input,.hpt-price-box select,.hpt-price-box textarea{width:100%;margin-top:6px;max-width:100%;box-sizing:border-box}.hpt-price-checkbox{display:flex;align-items:center;gap:8px}.hpt-price-checkbox input{width:auto;margin:0}.hpt-price-table{overflow-x:auto}.hpt-price-table table{width:100%;min-width:650px}.hpt-price-table td,.hpt-price-table th{padding:12px 14px}.hpt-price-table small{display:block;color:#758792;margin-top:4px}.hpt-price-small{font-size:.75rem;padding:7px 12px}.hpt-price-table td form{margin:0}@media(max-width:900px){.hpt-price-split{grid-template-columns:1fr}.hpt-price-box{padding:17px}}

/* V23: compact editable record tools */
.hpt-manage{margin-top:7px;max-width:450px;border:1px solid #dfe8ed;border-radius:8px;padding:8px 11px;background:#f9fbfc}
.hpt-manage summary{cursor:pointer;color:#176b7b;font-weight:600;font-size:13px}
.hpt-manage form{padding:10px 0;border-bottom:1px solid #edf1f3}
.hpt-manage label{display:block;margin-bottom:9px;font-size:12px}
.hpt-manage input,.hpt-manage select,.hpt-manage textarea{width:100%;max-width:100%;box-sizing:border-box}
.hpt-record-actions{display:flex;gap:8px;flex-wrap:wrap}
.hpt-price-table td,.hpt-fp-scroll td{vertical-align:top}

/* V24 - shared package details, identical content for HPT and authorized partner */
.hpt-package-details{margin-top:9px;max-width:660px;font-size:13px}
.hpt-package-details summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;color:#126c7a;background:#edf6f6;border:1px solid #dceaea;border-radius:8px;padding:6px 11px;list-style:none}
.hpt-package-details summary::-webkit-details-marker{display:none}
.hpt-package-details summary::before{content:'+';font-size:16px;font-weight:500}
.hpt-package-details[open] summary::before{content:'−'}
.hpt-package-details summary:hover,.hpt-package-details summary:focus-visible{background:#dceeee;outline-offset:2px}
.hpt-package-detail-body{background:#fff;border:1px solid #e3e9eb;border-radius:10px;padding:12px;margin-top:8px;max-width:100%;overflow-x:auto}
.hpt-package-detail-body p{font-size:13px;line-height:1.6;margin:3px 0 12px;color:#355264}
.hpt-contents-grid{width:100%;border-collapse:collapse;font-size:12px;min-width:380px}
.hpt-contents-grid th{background:#f6f9f8;text-align:left;font-size:11px;letter-spacing:.02em;color:#536d79}
.hpt-contents-grid th,.hpt-contents-grid td{padding:9px 11px;border-bottom:1px solid #e9eeef;vertical-align:top;white-space:normal}
.hpt-contents-grid tbody tr:last-child td{border-bottom:0}
.hpt-muted{color:#8496a2;font-size:12px}
@media(max-width:680px){.hpt-package-detail-body{padding:9px}.hpt-contents-grid{min-width:320px}}


/* V25 — filtered pricing ledger; no third-party assets required */
.hpt-price-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end;margin:18px 0;padding:18px;background:#f5f8fa;border:1px solid #e4eaed;border-radius:14px}
.hpt-price-filters label{font-size:12px;color:#526778;margin:0;display:flex;flex-direction:column;gap:6px}
.hpt-price-filters select,.hpt-price-filters input{width:100%;min-height:42px;border:1px solid #dbe4e9;border-radius:9px;background:white;color:#173147;padding:8px 10px;box-sizing:border-box}
.hpt-price-filters button{min-height:42px}
.hpt-price-reset{padding:12px 8px;text-align:center;font-size:13px}
.hpt-price-count{font-size:13px;color:#627689;margin:10px 0}
.hpt-price-pages{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:13px}
.hpt-price-pages a{padding:8px 12px;border:1px solid #dce5e9;border-radius:8px;text-decoration:none}
.hpt-agreements-fold>summary{cursor:pointer;font-weight:600;padding:8px 0;color:#173147}
@media(max-width:600px){.hpt-price-filters{grid-template-columns:1fr;padding:12px}.hpt-price-pages{justify-content:center}}
