/* Phase 2 — app-like patient experience, auth refinement and dashboard contrast. */
:root{--v26-forest:#243c36;--v26-forest-deep:#192e29;--v26-sage:#7f8e7c;--v26-sage-soft:#eef1eb;--v26-coral:#c98268;--v26-gold:#c6a15b;--v26-cream:#faf7f1;--v26-ink:#243c36}
.field-help{display:block;margin-top:6px;color:#74817c;font-size:11px;font-weight:500}.phone-auto-hint{grid-column:1/-1;margin:-10px 0 4px;padding:10px 13px;border-radius:12px;background:#eef4ef;color:#315d4d;font-size:12px}.auth-v26{padding:70px 20px;background:radial-gradient(circle at 12% 20%,rgba(127,142,124,.18),transparent 35%),linear-gradient(135deg,#f8f5ef,#f2f6f2)}.auth-experience{width:min(980px,100%);display:grid;grid-template-columns:.9fr 1.1fr;overflow:hidden;border:1px solid #dfe6e0;border-radius:32px;background:#fff;box-shadow:0 30px 90px rgba(25,46,41,.13)}.auth-experience .auth-card{width:auto;border:0;border-radius:0;box-shadow:none;padding:52px;text-align:start}.auth-experience .brand-mark{display:grid;margin-inline:auto}.auth-story{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:54px;color:#fff;background:radial-gradient(circle at 20% 110%,rgba(198,161,91,.27),transparent 38%),linear-gradient(150deg,var(--v26-forest-deep),#35594d)}.auth-story:after{content:"";position:absolute;width:280px;height:280px;border:45px solid rgba(255,255,255,.035);border-radius:50%;inset-inline-end:-110px;top:-90px}.auth-story-badge{position:relative;z-index:1;color:#e4c28f;font-size:11px;letter-spacing:2px;font-weight:800}.auth-story h2{position:relative;z-index:1;margin:14px 0 8px;font-size:34px;line-height:1.35}.auth-story p{position:relative;z-index:1;color:rgba(255,255,255,.72);line-height:1.9}.auth-story-features{position:relative;z-index:1;display:grid;gap:11px;margin-top:24px;font-size:13px}.auth-remember{width:max-content;min-height:28px;cursor:pointer}.auth-remember input{appearance:none;width:20px!important;height:20px!important;margin:0!important;padding:0!important;border:1.5px solid #aebbb4;border-radius:6px;background:#fff}.auth-remember input:checked{border-color:var(--v26-forest);background:var(--v26-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' d='m5 10 3 3 7-7'/%3E%3C/svg%3E") center/15px no-repeat}

/* Fix dashboard text disappearing on light surfaces. */
.dashboard-body :is(.panel,.nutrition-calculator-card,.nutrition-form-section,.workspace-panel,.management-module,.care-form-card,.care-list-card){color:var(--v26-ink)}.dashboard-body :is(.panel,.nutrition-calculator-card,.workspace-panel) :is(h1,h2,h3,h4,b,strong,label,legend){color:var(--v26-ink)}.dashboard-body .sidebar,.dashboard-body .sidebar :is(b,strong,a,button){color:#fff}.dashboard-body .btn-primary,.dashboard-body .btn-primary :is(b,strong){color:#fff}.dashboard-body .calorie-result-card,.dashboard-body .calorie-result-card :is(h1,h2,h3,h4,b,strong){color:#fff!important}.dashboard-body .calorie-result-card :is(p,small,.panel-kicker,.equation-used){color:rgba(255,255,255,.72)!important}.calorie-result-card .energy-result-grid div{background:rgba(255,255,255,.11)}.calorie-result-card .macro-result-list small{color:rgba(255,255,255,.75)!important}.nutrition-results-column .calorie-result-card{box-shadow:0 20px 50px rgba(25,46,41,.19)}

.patient-app-welcome{display:none}.patient-mobile-tabbar{display:none}.patient-notification-list,.reminder-control-list{display:grid;gap:9px}.patient-notification-list article,.reminder-control-list article{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:12px;border:1px solid #e4eae5;border-radius:14px;background:#fafcfa}.reminder-control-list article{grid-template-columns:42px 1fr auto auto auto}.notification-channel,.reminder-control-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e7f1e5;color:#245d44;font-size:10px;font-weight:900}.patient-notification-list b,.patient-notification-list small,.reminder-control-list b,.reminder-control-list small{display:block}.patient-notification-list small,.reminder-control-list small{color:#75827d;font-size:10px}.notification-state{padding:5px 9px;border-radius:20px;background:#edf1ed;color:#53635c;font-size:9px;font-weight:800}.notification-state.state-sent,.notification-state.state-delivered{background:#e6f3e6;color:#28643f}.notification-state.state-failed{background:#faeae6;color:#9d4d3c}.reminder-days{border:1px solid #e0e7e1;border-radius:14px;padding:13px}.reminder-days legend{padding:0 8px}.reminder-days label{display:inline-flex;align-items:center;gap:5px;margin:4px;padding:7px 10px;border-radius:10px;background:#f2f5f1}.reminder-days input{width:auto;margin:0}.patient-notification-center{scroll-margin-top:90px}

@media(max-width:820px){.auth-v26{padding:24px 14px;min-height:calc(100dvh - 68px)}.auth-experience{grid-template-columns:1fr;border-radius:26px}.auth-story{display:none}.auth-experience .auth-card{padding:30px 24px}.auth-experience .auth-card h1{font-size:30px}.auth-experience .btn-lg{min-height:52px}.reminder-control-list article{grid-template-columns:40px 1fr auto}.reminder-control-list article form{grid-column:auto}.reminder-control-list article .status{grid-column:3}}

@media(max-width:680px){
 body.patient-app-body{background:#f4f2ed;padding-top:env(safe-area-inset-top);overscroll-behavior-y:none}.patient-app-body .sidebar{display:none}.patient-app-body .dashboard-main{margin:0;padding-bottom:calc(78px + env(safe-area-inset-bottom))}.patient-app-body .dashboard-topbar{position:sticky;top:0;z-index:80;height:64px;padding:0 16px;background:rgba(250,247,241,.92);border-bottom:1px solid #dde4de;backdrop-filter:blur(18px)}.patient-app-body .topbar-context small{display:none}.patient-app-body .topbar-context h2{font-size:13px}.patient-app-body .dashboard-language-switch,.patient-app-body .topbar-site-link,.patient-app-body .role-badge{display:none}.patient-app-body .topbar-notification{display:grid;width:40px;height:40px;text-decoration:none}.patient-app-body .dashboard-content{padding:14px 13px 24px;max-width:520px}.patient-app-welcome{display:flex;flex-direction:column;margin:2px 2px 13px}.patient-app-welcome span{font-size:11px;color:#718078}.patient-app-welcome b{font-size:21px;color:var(--v26-forest)}.patient-app-welcome small{font-size:11px;color:#7a8781}.patient-app-body .patient-hero-card{min-height:185px;margin-bottom:12px;padding:20px;border-radius:24px;background:radial-gradient(circle at 15% 120%,rgba(198,161,91,.32),transparent 36%),linear-gradient(145deg,#203b34,#31584a);box-shadow:0 16px 38px rgba(26,53,43,.18)}.patient-app-body .patient-hero-copy h1{display:none}.patient-app-body .patient-hero-copy>p{font-size:12px;line-height:1.75}.patient-app-body .patient-doctor-row{margin-top:18px}.patient-app-body .patient-kpi-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding:1px 1px 9px;margin-inline:-1px}.patient-app-body .patient-kpi-grid .kpi-card{flex:0 0 145px;min-height:125px;scroll-snap-align:start;border-radius:19px}.patient-app-body :is(.patient-focus-grid,.patient-analytics-grid,.patient-resources-grid){display:block}.patient-app-body :is(.patient-focus-grid,.patient-analytics-grid,.patient-resources-grid)>.panel{margin-bottom:12px;border-radius:22px}.patient-app-body .patient-focus-card{display:flex;min-height:165px}.patient-app-body .focus-icon{flex-basis:52px;width:52px;height:52px}.patient-app-body .followup-form-panel{border-radius:22px}.patient-app-body .followup-intro ul{display:none}.patient-app-body .patient-notification-list article{grid-template-columns:38px 1fr auto}.patient-app-body .notification-channel{width:37px;height:37px}.patient-mobile-tabbar{position:fixed;z-index:150;inset-inline:9px;bottom:max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);min-height:64px;padding:7px 5px;border:1px solid rgba(221,228,222,.9);border-radius:21px;background:rgba(255,255,255,.94);box-shadow:0 18px 50px rgba(21,48,38,.22);backdrop-filter:blur(18px)}.patient-mobile-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:14px;color:#78857f;text-decoration:none}.patient-mobile-tabbar a span{font-size:19px;line-height:1}.patient-mobile-tabbar a small{font-size:9px;font-weight:700}.patient-mobile-tabbar a.active,.patient-mobile-tabbar a:focus{background:#eaf0e8;color:var(--v26-forest)}.patient-app-body [id^="patient-"]{scroll-margin-top:76px}.patient-app-body input,.patient-app-body select,.patient-app-body textarea{min-height:46px;font-size:16px}.patient-app-body input[type=range],.patient-app-body input[type=checkbox]{min-height:0}
}
@media(max-width:420px){.patient-app-body .patient-kpi-grid .kpi-card{flex-basis:136px}.auth-v26{padding:0;align-items:stretch}.auth-experience{min-height:calc(100dvh - 68px);border-radius:0;border-inline:0}.auth-experience .auth-card{display:flex;flex-direction:column;justify-content:center;padding:28px 20px}.reminder-days label{padding:6px 8px}.reminder-control-list article{grid-template-columns:38px 1fr}.reminder-control-list article>:not(.reminder-control-icon):not(div){grid-column:auto}.reminder-control-list article form{display:inline-flex}}

/* Public section rhythm and contrast refinements for the NS palette. */
body.doctor-public-v17.nutrition-v22 .ns-audience{padding-block:clamp(70px,8vw,110px);background:radial-gradient(circle at 12% 25%,rgba(127,142,124,.12),transparent 34%),#f6f8f4}
body.doctor-public-v17.nutrition-v22 .ns-audience-card{min-height:310px;padding:30px;border-color:#dedfd7;border-radius:26px;box-shadow:0 16px 45px rgba(36,60,54,.07)}
body.doctor-public-v17.nutrition-v22 .ns-audience-card h3{color:var(--v26-forest-deep)}
body.doctor-public-v17.nutrition-v22 .ns-audience-card p{color:#65736d;line-height:1.9}
body.doctor-public-v17.nutrition-v22 .v17-final{padding-block:54px;background:#fff}
body.doctor-public-v17.nutrition-v22 .v17-final-card{min-height:230px;padding:48px 52px;background:linear-gradient(120deg,#f8f4ec,#fff);box-shadow:0 24px 65px rgba(36,60,54,.08)}
body.doctor-public-v17.nutrition-v22 .site-footer{margin-top:0;border-radius:34px 34px 0 0}
@media(max-width:760px){body.doctor-public-v17.nutrition-v22 .ns-audience{padding-block:58px}body.doctor-public-v17.nutrition-v22 .ns-audience-card{min-height:auto;padding:22px;text-align:start;align-items:flex-start}body.doctor-public-v17.nutrition-v22 .v17-final{padding:28px 0}body.doctor-public-v17.nutrition-v22 .v17-final-card{min-height:auto;padding:27px 22px}body.doctor-public-v17.nutrition-v22 .site-footer{border-radius:26px 26px 0 0}}

.water-schedule-builder{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(100px,.7fr)) auto;align-items:end;gap:10px;margin-bottom:22px;padding:16px;border:1px solid #dce6dd;border-radius:18px;background:linear-gradient(135deg,#eff6ee,#fafcf9)}.water-schedule-copy{display:flex;align-items:center;gap:10px}.water-schedule-copy>span{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#dfeff5}.water-schedule-copy p{margin:0}.water-schedule-copy b,.water-schedule-copy small{display:block}.water-schedule-copy small{color:#6d7b75;font-size:9px}.water-schedule-builder :is(input,select){margin-top:0}.manual-reminder-form{padding-top:18px;border-top:1px solid #e5eae6}@media(max-width:1200px){.water-schedule-builder{grid-template-columns:repeat(3,1fr)}.water-schedule-copy{grid-column:1/-1}}@media(max-width:680px){.water-schedule-builder{grid-template-columns:1fr 1fr}.water-schedule-copy,.water-schedule-builder>select:first-of-type,.water-schedule-builder .btn{grid-column:1/-1}}
.health-passport-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.health-passport-grid article{display:flex;gap:10px;padding:14px;border:1px solid #e4eae5;border-radius:15px;background:#fafcfa}.health-passport-grid article>span{flex:0 0 35px;width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#edf3eb;color:var(--v26-forest);font-weight:900}.health-passport-grid b,.health-passport-grid p{display:block}.health-passport-grid b{font-size:11px}.health-passport-grid p{margin:3px 0 0;color:#74817b;font-size:10px;line-height:1.6}@media(max-width:900px){.health-passport-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.health-passport-grid{grid-template-columns:1fr}}
.doctor-followup-entry{margin-bottom:14px;padding:0;overflow:hidden}.doctor-followup-form{padding:20px 24px;grid-template-columns:repeat(5,minmax(0,1fr))}.doctor-followup-form .full{grid-column:1/-1}.doctor-followup-form label{font-size:11px;font-weight:800}.doctor-followup-form :is(input,textarea){margin-top:6px;background:#fff}@media(max-width:960px){.doctor-followup-form{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.doctor-followup-form{grid-template-columns:1fr;padding:15px}.doctor-followup-form .full{grid-column:auto}}
.otp-code-input{min-height:62px!important;text-align:center;font-size:25px!important;font-weight:900;letter-spacing:12px;color:var(--v26-forest);background:#f8faf7!important;border-color:#b9c9bd!important}.otp-code-input::placeholder{font-size:17px;letter-spacing:8px;color:#a7b2aa}.auth-activation-experience .auth-story{background:radial-gradient(circle at 15% 100%,rgba(201,130,104,.28),transparent 38%),linear-gradient(150deg,var(--v26-forest-deep),#35594d)}

/* v27 — isolate the new auth experience from legacy public-card rules. */
body.doctor-public-v17 .auth-v26 .auth-experience{width:min(980px,calc(100% - 32px));min-height:630px;margin-inline:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:0;border:1px solid #d9e2db;border-radius:32px;background:#fff;box-shadow:0 28px 80px rgba(25,46,41,.14)}
body.doctor-public-v17 .auth-v26 .auth-experience .auth-card{box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:630px;margin:0;padding:48px 52px;border:0;border-radius:0;background:#fff;box-shadow:none;transform:none}
body.doctor-public-v17 .auth-v26 .auth-experience .auth-story{box-sizing:border-box;min-width:0;min-height:630px;margin:0;border:0;border-radius:0;box-shadow:none}
body.doctor-public-v17 .auth-v26 .auth-experience .form-stack{width:100%}
body.doctor-public-v17 .auth-v26 .auth-experience .auth-remember{display:inline-flex;align-items:center;gap:9px;width:auto;min-height:28px}
body.doctor-public-v17 .auth-v26 .auth-experience .auth-remember input{flex:0 0 20px;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important}
body.doctor-public-v17.nutrition-v22 .site-footer .footer-cta-column .btn.btn-light{display:inline-flex;align-items:center;justify-content:center;min-width:148px;background:#fff!important;border:1px solid rgba(255,255,255,.9)!important;color:#173f30!important;opacity:1!important;text-indent:0!important;-webkit-text-fill-color:#173f30!important}
.dashboard-body .nutrition-results-column .calorie-result-card{background:linear-gradient(150deg,#173f30,#2d654c)!important;color:#fff!important}
.dashboard-body .nutrition-results-column .calorie-result-card :is(h1,h2,h3,h4,b,strong,span){color:#fff!important}
@media(max-width:820px){body.doctor-public-v17 .auth-v26 .auth-experience{width:min(560px,calc(100% - 24px));min-height:auto;grid-template-columns:1fr;border-radius:25px}body.doctor-public-v17 .auth-v26 .auth-experience .auth-card{min-height:auto;padding:34px 27px}body.doctor-public-v17 .auth-v26 .auth-experience .auth-story{display:none}}
@media(max-width:420px){body.doctor-public-v17 .auth-v26 .auth-experience{width:100%;border-radius:0;border-inline:0}body.doctor-public-v17 .auth-v26 .auth-experience .auth-card{min-height:calc(100dvh - 68px);padding:27px 20px}}
