/* Calm first-use surface. Clinical workspace and existing module navigation stay intact. */
body:not(.clinical-workspace){background:#e8f3f4;color:#173e4b;background-image:radial-gradient(ellipse at 18% 18%,#c8e9e7,transparent 55%),linear-gradient(145deg,#eaf5f5,#dbecef 78%);background-attachment:fixed}
body:not(.clinical-workspace)::before{opacity:0}
body:not(.clinical-workspace) .entrance-header{border-bottom:1px solid #aacccd;padding-block:20px}
.entrance-brand,.entrance-brand span{color:#133e4c}.entrance-brand span{opacity:.7}
.entrance-edition{color:#436c76;font-weight:600;letter-spacing:.07em;font-size:.75rem}
.entrance-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.entrance-nav-link{color:#174b56;border-color:#90bdbf;font-weight:600;background:#fff9}
.entrance-nav-link:hover{background:#fff;color:#064959}
.entrance-register{background:#155e70;color:#fff;border-color:#155e70}.entrance-register:hover{background:#0d4a5a;color:#fff}
body:not(.clinical-workspace) .shell{grid-template-columns:minmax(0,1.1fr) minmax(335px,.9fr);gap:clamp(30px,5vw,78px);padding-block:clamp(34px,6vh,70px)}
.entrance-kicker{color:#266577;font-size:.8rem;letter-spacing:.1em}.entrance-kicker>span{background:#207c82;box-shadow:none}
body:not(.clinical-workspace) .entrance-wordmark{font-size:clamp(68px,8vw,117px);color:#104c5b;text-shadow:none;margin:25px 0 15px}
body:not(.clinical-workspace) .brand-message .entrance-slogan{color:#315e68;font-size:clamp(1rem,1.45vw,1.25rem);line-height:1.55;letter-spacing:.01em}
.entrance-slogan strong{color:#08777e}.entrance-divider{background:linear-gradient(90deg,#5da5a8,transparent);margin:24px 0}
body:not(.clinical-workspace) .brand-message .entrance-description{color:#315563;font-size:1.13rem;line-height:1.65;max-width:38rem;margin-bottom:24px}
.entrance-actions{gap:12px;flex-wrap:wrap}
.entrance-main-action,.entrance-actions button{display:inline-flex;align-items:center;justify-content:center;gap:1rem;min-height:52px;padding:13px 23px;border-radius:10px;font-size:1rem;font-weight:700;text-decoration:none}
.entrance-main-action{color:#fff;background:#126579;box-shadow:0 8px 24px #12657929;border:1px solid #126579}.entrance-main-action:hover{background:#0c4b5d;color:#fff}
.entrance-actions button{background:#fff9;color:#14586a;border:1px solid #7cadb4;box-shadow:none;min-width:0}.entrance-actions button:hover{background:#fff;box-shadow:0 7px 20px #42768718}
.entrance-assurance{font-size:.94rem;line-height:1.6;color:#355a65;margin:18px 0 0;max-width:38rem}
.entrance-principles{margin-top:23px;color:#38636b;font-size:.87rem;gap:12px 20px}.entrance-principles span:before{color:#087c83}
body:not(.clinical-workspace) main{background:#fafdfe;border:1px solid #bed8da;box-shadow:0 22px 54px #1d536725,inset 0 1px #fff;border-radius:22px;padding:clamp(24px,3vw,40px)}
body:not(.clinical-workspace) main:before{background:linear-gradient(90deg,transparent,#53aaa9,transparent)}
body:not(.clinical-workspace) .eyebrow{color:#376875;font-size:.77rem;letter-spacing:.1em}.entrance-card-mark{color:#287b82}
body:not(.clinical-workspace) #auth-title,body:not(.clinical-workspace) #clinic-title,body:not(.clinical-workspace) #recovery-title{color:#153e4c;font-size:clamp(2rem,3vw,2.5rem);line-height:1.14}
body:not(.clinical-workspace) .intro{color:#3e626b;font-size:1rem;line-height:1.55}
body:not(.clinical-workspace) .mode-switch{border-color:#b7d2d3}.mode-switch button{min-height:46px!important}
body:not(.clinical-workspace) .mode-switch button{color:#476b75;font-size:1rem}body:not(.clinical-workspace) .mode-switch .selected{color:#086a76;border-bottom-color:#087b83}
body:not(.clinical-workspace) label{color:#274d5a;font-size:.95rem;font-weight:600}body:not(.clinical-workspace) input{background:#fff;color:#183d4b;border:1px solid #9dbfc4;font-size:1rem;min-height:50px}body:not(.clinical-workspace) input::placeholder{color:#617d83}
body:not(.clinical-workspace) .password-wrap button,body:not(.clinical-workspace) .text-button{color:#17616d;font-size:.9rem}body:not(.clinical-workspace) .password-wrap button:hover,body:not(.clinical-workspace) .text-button:hover{color:#073f4a}
body:not(.clinical-workspace) .primary{font-size:1rem;min-height:52px;background:#126579;border-color:#126579}body:not(.clinical-workspace) .primary:hover{background:#0d5060}
body:not(.clinical-workspace) .privacy-note{font-size:.85rem;color:#40646e;border-color:#bed4d8}body:not(.clinical-workspace) .entrance-pilot-link{font-size:.94rem;color:#17616d;margin-top:16px}body:not(.clinical-workspace) .entrance-pilot-link a{color:#0b6474}body:not(.clinical-workspace) .entrance-pilot-link a:hover{color:#004852}
body:not(.clinical-workspace) .field-hint,body:not(.clinical-workspace) .info-note{color:#446772}
body:not(.clinical-workspace) .status{color:#133e4b;background:#e8f5f4;border-color:#80b3b6}
body:not(.clinical-workspace) .status.error{background:#fff1ef;color:#862f36;border-color:#d6a2a3}
.entrance-journey{max-width:1360px;margin:0 auto 35px;padding:29px clamp(18px,3vw,35px);background:#ffffffd9;border:1px solid #b9d5d8;border-radius:20px;box-shadow:0 12px 38px #215c7110}
.journey-heading{display:flex;align-items:baseline;gap:24px;flex-wrap:wrap;margin-bottom:23px}.journey-heading span{color:#327b84;font-size:.78rem;font-weight:700;letter-spacing:.11em}.journey-heading h2{margin:0;color:#163f4a;font:500 clamp(1.3rem,2vw,1.75rem)/1.3 Fraunces,Georgia,serif}
.entrance-journey ol{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.entrance-journey li{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid #c5dcdd;border-radius:13px;background:#f0f8f8;color:#315763}
.entrance-journey li b{flex:none;display:grid;place-items:center;background:#d1ebe9;color:#0b6070;width:34px;height:34px;border-radius:50%;font-size:1rem}.entrance-journey strong{font-size:1rem;color:#174956}.entrance-journey p{font-size:.93rem;line-height:1.55;margin:7px 0 0}
#brand-intro{background:radial-gradient(circle at 50% 46%,#1e6f78 0%,#104957 46%,#092d3d 100%)}
.brand-intro-pending .entrance-lockup{color:#f3fbfa}
.brand-intro-pending body:not(.clinical-workspace) .entrance-wordmark{color:#f3fbfa}
.brand-intro-pending body:not(.clinical-workspace) .entrance-slogan{color:#d9f1ee}
.brand-intro-pending body:not(.clinical-workspace) .entrance-slogan strong{color:#a7f1e2}
.brand-intro-flight body:not(.clinical-workspace) .entrance-wordmark{color:#104c5b;transition:color 800ms ease}
.brand-intro-flight body:not(.clinical-workspace) .entrance-slogan{color:#315e68;transition:color 800ms ease}
.brand-intro-flight body:not(.clinical-workspace) .entrance-slogan strong{color:#08777e;transition:color 800ms ease}
@media(max-width:970px){.entrance-edition{display:none}body:not(.clinical-workspace) .shell{grid-template-columns:1fr 1fr;gap:25px}.entrance-journey{margin-inline:4%}}
@media(max-width:760px){body:not(.clinical-workspace) .entrance-header{align-items:flex-start;padding:17px 5%}.entrance-header-actions{gap:6px}.entrance-header-actions .entrance-nav-link{font-size:.84rem;padding:9px 11px}.entrance-header-actions a:first-child{display:none}body:not(.clinical-workspace) .shell{grid-template-columns:1fr;padding:30px 5%;gap:23px}body:not(.clinical-workspace) main{padding:24px}.entrance-journey{margin:0 5% 28px}.entrance-journey ol{grid-template-columns:1fr}.entrance-journey li{padding:14px}body:not(.clinical-workspace) .entrance-wordmark{font-size:clamp(62px,16vw,100px)}body:not(.clinical-workspace) .brand-message .entrance-slogan{font-size:1rem}}
@media(max-width:430px){.entrance-header-actions .entrance-signin{display:none}.entrance-actions>*{width:100%}.entrance-main-action{justify-content:space-between}body:not(.clinical-workspace) .entrance-description{font-size:1rem!important}}
.brand-intro-pending body>.entrance-journey{visibility:hidden}
.brand-intro-flight body>.entrance-journey{visibility:visible}
@media(prefers-reduced-motion:reduce){.brand-intro-pending body>.entrance-journey{visibility:visible}}
body:not(.clinical-workspace) .brand-message .entrance-assurance{color:#355a65;font-size:.96rem;line-height:1.6;max-width:38rem}
body:not(.clinical-workspace) #piacere-helper-button:not(.piacere-moved){position:relative;inset:auto;margin-top:22px;max-width:100%;text-align:left}
body:not(.clinical-workspace) #piacere-helper-button.piacere-moved{position:fixed}
/* On narrow screens keep Help within reach, clear of the hero text and controls. */
@media(max-width:600px){
 body:not(.clinical-workspace) #piacere-helper-button:not(.piacere-moved):not([hidden]){position:fixed;left:auto;top:auto;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));margin:0;max-width:calc(100vw - 24px);z-index:120}
 body:not(.clinical-workspace) #piacere-helper-button.piacere-moved:not([hidden]){position:fixed;margin:0;z-index:120}
 #piacere-helper-button .piacere-move-hint{display:none}
 #piacere-helper-panel:not([hidden]){position:fixed;width:min(24rem,calc(100vw - 16px));max-height:calc(100dvh - 96px - env(safe-area-inset-bottom));z-index:121}
}
@media(max-width:760px){
 .brand-intro-pending #brand-intro{display:none}
 .brand-intro-pending body>.entrance-header,.brand-intro-pending body>.shell,.brand-intro-pending body>.entrance-modules,.brand-intro-pending body>.entrance-journey,.brand-intro-pending .entrance-lockup{visibility:visible}
}
/* Distinguish a returning clinician from a first-time visitor. */
body:not(.clinical-workspace) .mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:0;margin:18px 0 22px}
body:not(.clinical-workspace) .mode-switch button{border:1px solid #9fbfc3;border-radius:9px;background:#eef6f6;color:#255463;font-weight:700;box-shadow:none;padding:10px 8px}
body:not(.clinical-workspace) .mode-switch button.selected{background:#135e70;border-color:#135e70;color:#fff;box-shadow:0 5px 13px #164e6529}
body:not(.clinical-workspace) .mode-switch button:not(.selected):hover{background:#e0eeee;border-color:#4e9a9e}
body:not(.clinical-workspace) .mode-switch button:focus-visible{outline:3px solid #d19227;outline-offset:2px}
