/* Shared palette for the patient journey and the specialist workspace. */
:root{--ink:#14243b;--muted:#53657c;--bg:#f5f7fc;--line:#dde4ee;--white:#fff;--brand:#306c73;--brand-hover:#24545a;--navy:#306c73;--lime:#e2f1ef;--teal:#28664f;--orange:#815b22;--purple:#665184;--blue-tint:#e9f2f9;--teal-tint:#e2f1ef;--focus:#3c728c}
body{background:var(--bg);color:var(--ink)}
.primary{background:var(--brand);color:#fff;border-color:var(--brand)}
.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.secondary{background:#fff;border-color:#91a6b3;color:var(--ink)}
.secondary:hover{background:var(--blue-tint)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
input,textarea,select{border-color:#91a6b3;color:var(--ink)}
input[type=radio]{accent-color:var(--brand)}
.demo-banner,.test-banner{background:var(--blue-tint);color:#36596f;border-bottom:1px solid #d4e4ee}
.sidebar{background:#e9f1f7;border-right:1px solid #d6e3ec;color:var(--ink)}
.sidebar .brand{color:var(--ink)}
.sidebar .brand small,.workspace-label,.side-bottom a{color:#516b7c}
.mark{background:#d3e8e6;color:#245d64}
.nav{color:#526d7e}
.nav.active{background:#d5e9e7;color:#245d64}
.nav:hover{background:#dde9f1}
.side-note{border-color:#c9dbe6}.tiny-label{color:#516b7c}
.avatar{background:#e0edf4;color:#3b6076}
.topbar,.profile,.muted,.eyebrow,.quiet,footer{color:var(--muted)}
.mobile-brand,.storage-bar strong{color:var(--ink)}
.panel,.profile-card,.booking,.receipt,.storage-bar{border-color:var(--line);background:#fff;box-shadow:0 6px 28px #29496005}
.stats>div{background:transparent;border-color:#d3e0e8}
.stats>div:first-child strong{color:var(--brand)}
.filters,.mobile-tabs{background:#e8f0f5}
.filters .selected,.mobile-tabs button.active{background:#fff;color:#285f6a;box-shadow:0 2px 6px #214e6310}
.mobile-tabs b{background:#dcebe9;color:#2a6267}
.request:hover,.day-card:hover{background:#f2f7fa}
.request.selected{background:#eaf4f3;box-shadow:inset 3px 0 #41808a}
.badge{background:#fff1d9;color:#78531d}
.badge.confirmed{background:#e0f1e8;color:#286149}
.badge.question,.badge.proposal{background:#eeeafa;color:#654f83}
.badge.cancelled,.badge.expired{background:#f8e8eb;color:#934653}
.badge.neutral{background:#eaf1f6;color:#4f6778}
.confirmed-dot{background:#398368}.pending-dot{background:#b88435}.proposal-dot{background:#8169a2}
.info-block,.review,.receipt-summary{background:#edf5f8}
.notice{background:#f4f1fb;border-color:#d9d0e9}
.danger{color:#963d4c;border-color:#d6aab3;background:#fff}
.danger:hover{background:#fbf0f2}
#reset{color:#963d4c}
.internal-tag select{border-color:#91a6b3}
.day-buffer,.open-chevron,.day-time small,.day-patient small{color:var(--muted)}
.day-buffer span{background:#9bb1bd}
.patient-break{background:#edf3f7;color:#536d7d;border-color:#afc2ce}
.slot,.slots button{color:var(--ink);border-color:#91a6b3;background:#fff}
.slot:hover,.slots button:hover{background:#edf5f7}
.slot.chosen,.slots button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 0 0 1px var(--brand)}
.channel-picker label,.visit-options label,.channel-options label{border-color:#91a6b3;background:#fff}
.channel-picker label:has(input:checked),.visit-options label:has(input:checked),.channel-options label:has(input:checked){background:#eaf5f3;border-color:#3b7982;box-shadow:0 0 0 1px #3b7982}
.monogram,.mini-avatar{background:#d6eae8;color:#265f65}
.profile-facts span::before{color:#2d7160}
.steps [aria-current=step]{color:var(--brand)}
.steps [aria-current=step] span{background:var(--brand);border-color:var(--brand);color:#fff}
.steps .completed span{background:#e0f0e9;border-color:#d2e8dd;color:#32684e}
.receipt-mark{background:#deeee8;color:#306b54}
.how>span{color:#4b7183;border-color:#afc6d3;background:#edf4f8}
.profile-note h2{color:#315d73}
.text-button,.patient-link,.specialist-access{color:#286775}
.conversation .chat-body{background:#edf4f7}
.bubble.patient{background:#326d7c;color:#fff}
.bubble.patient small{color:#e0f0f4}
.sheet-toolbar{background:#fff;border-color:var(--line)}
.icon-button{background:#eaf2f7;color:#40667b}
#toast{background:#285c6b;color:#fff;border-color:#447988}
.error,.form-error{color:#a33443}
dialog::backdrop{background:#233e506b;backdrop-filter:blur(3px)}
@media(max-width:760px){.sidebar{background:none;border:0}.sidebar nav{background:#fff;border-color:#d7e4ec;box-shadow:0 -4px 24px #31546a08}.nav{color:#536e7e}.nav.active{background:#e1f0ee;color:#28656d}.nav:hover{background:#eaf2f7}.form-actions{background:#fff}}
/* The beta guide is separate from everyday booking. */
.beta-guide{max-width:760px;margin:24px auto 48px}.beta-guide>h1{font-size:34px}.beta-intro{color:var(--muted);max-width:580px}.beta-card{border:1px solid var(--line);border-radius:18px;padding:24px;background:#fff;margin:18px 0}.beta-card h2{font-size:23px;margin-bottom:14px}.beta-card p,.beta-card li{font-size:16px}.beta-card ol,.beta-card ul{padding-left:22px;color:var(--muted)}.beta-card li{margin:10px 0}.beta-card .primary,.beta-card .secondary{font-size:15px;min-height:48px}.beta-tag{display:inline-block;padding:4px 8px;border-radius:6px;background:var(--blue-tint);color:#36596f;font-size:12px;font-weight:650;margin-bottom:12px}.beta-guide details{margin-top:18px}.beta-guide summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:600}.beta-guide details p{font-size:14px;color:var(--muted)}.beta-notes{border-left:3px solid #73a4ae;padding:4px 0 4px 18px;margin-top:28px}.beta-notes h2{font-size:21px;margin-bottom:12px}.beta-notes p{font-size:15px;color:var(--muted)}
@media(max-width:760px){.beta-guide{margin-top:16px}.beta-guide>h1{font-size:29px}.beta-card{padding:20px}.beta-card h2{font-size:21px}.beta-card .primary,.beta-card .secondary{width:100%}}

/* Calm. Claritate. Conexiune. — shared brand system */
@font-face{font-family:Inter;src:url('/assets/InterVariable.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:'Space Grotesk';src:url('/assets/SpaceGrotesk.ttf') format('truetype');font-weight:300 700;font-display:swap}
body{font-family:Inter,system-ui,sans-serif}
h1,h2,h3,.brand,.mobile-brand{font-family:'Space Grotesk',Inter,sans-serif}
h1,h2{font-weight:600;letter-spacing:-.035em}
body::before{content:'';height:4px;display:block;background:linear-gradient(90deg,#306c73,#8570ac)}
.profile-card,.booking,.receipt{border-radius:20px;box-shadow:0 12px 40px #14243b06}
.brand{display:flex;align-items:center;gap:10px;letter-spacing:-.025em}
.brand-icon{width:44px;height:44px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:12px;padding:3px}
.brand-wordmark{display:block;font-size:19px;line-height:1.2;font-weight:600}
.brand-wordmark small{display:block;font-family:Inter,sans-serif;font-size:12px;font-weight:400;letter-spacing:.025em;color:var(--muted);margin-top:4px}
.profile-layout{gap:32px;grid-template-columns:1fr 1fr;align-items:stretch}
.profile-card{position:relative;padding:32px}
.cabinet-emblem{display:block;width:84px;height:84px;object-fit:contain;margin-bottom:24px}
.profile-card h1{font-size:38px;line-height:1.15}
.profile-facts{font-size:14px;gap:12px;margin-bottom:20px}
.profile-card>.primary{justify-content:center}
.profile-card>.quiet{font-size:14px}
.profile-note{margin:0;display:flex;flex-direction:column;min-width:0;gap:0}
.care-photo{display:block;width:100%;height:320px;object-fit:cover;object-position:center;border-radius:20px}
.photo-caption{font-size:12px;color:var(--muted);margin:8px 2px 20px}
.profile-note h2{font-size:30px;color:var(--ink);line-height:1.2;margin:0 0 12px}
.profile-note>p:not(.eyebrow){font-size:16px;margin:0;max-width:440px;line-height:1.6}
.mini-avatar{padding:3px;background:#fff;width:48px;height:48px;flex-shrink:0}
.mini-avatar img{display:block;width:100%;height:100%;object-fit:contain}
.eyebrow{font-size:12px;letter-spacing:.12em}
.sidebar{background:#14243b;border-right:0}
.sidebar .brand,.sidebar .nav{color:#dceae7}
.sidebar .brand small,.sidebar .workspace-label,.sidebar .side-bottom a{color:#b8c7da}
.sidebar .nav.active{background:#dceae7;color:#14243b}
.sidebar .nav:hover{background:#243953;color:#fff}
.sidebar .nav.active:hover{background:#c9dfda;color:#14243b}
.mobile-brand img{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:8px;margin-right:7px;vertical-align:middle}
.info-block,.review,.receipt-summary{background:#edf3f5}
.notice{background:#f1edf7}
.steps .completed span{background:#dceae7;color:#24545a}
.primary{box-shadow:0 3px 9px #306c7314}
.slots button,.slot{min-height:48px}
@media(max-width:760px){
 .brand-wordmark{font-size:16px}.brand-wordmark small{font-size:12px}.brand-icon{width:36px;height:36px}
 header{padding:12px 16px}.specialist-access{font-size:14px}
 .profile-card{padding:24px}.profile-card h1{font-size:32px}.cabinet-emblem{width:60px;height:60px;margin-bottom:16px}
 .profile-layout{display:flex;flex-direction:column;gap:24px}.profile-note{display:flex;padding:0 4px}.care-photo{height:210px}
 .profile-note h2{font-size:26px}.profile-note>p:not(.eyebrow){font-size:16px}.photo-caption{margin-bottom:16px}
 .sidebar{background:none}.sidebar .nav{color:#53657c}.sidebar .nav:hover{background:#edf3f5;color:#14243b}.sidebar .nav.active{background:#dceae7;color:#14243b}
 .mobile-brand{font-size:15px;white-space:nowrap}.mini-profile strong,.channel-options label,.steps{font-size:14px}
 .channel-options label{flex-wrap:wrap;gap:6px}.steps li{gap:5px}.steps span{flex-shrink:0}
 .booking{padding:20px 16px}.session-rule{font-size:12px}.patient-link{font-size:13px}
}
@media(max-width:360px){.brand-wordmark{font-size:14px}.brand-icon{width:32px;height:32px}.specialist-access{font-size:13px}.steps{font-size:13px}.steps li{gap:4px}.mobile-brand b{display:none}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .18s ease,box-shadow .18s ease}}
/* Keep the additional patient-management shortcut within narrow cabinet headers. */
@media(max-width:760px){.topbar{height:auto;min-height:80px;flex-wrap:wrap;gap:8px;padding:10px 0}.topbar .mobile-brand{flex:1 1 55%}.topbar .patient-link{font-size:13px;min-height:32px;display:flex;align-items:center}.topbar .session-rule{margin-left:auto}}

/* Anthera — quiet light, compact surfaces, a restrained teal/lilac accent. */
:root{--bg:#f5f7fc;--line:#dce2ed;--brand:#386c70;--brand-hover:#285458;--ink:#243449;--muted:#58677d}
body::before{height:2px;background:linear-gradient(90deg,#386c70,#9580ba,#c5deda)}
.brand-wordmark{font-size:22px!important;font-weight:600!important;letter-spacing:-.04em}
.brand-icon{background:transparent;padding:0;width:38px;height:38px}
.primary,.secondary{border-radius:14px;gap:8px}.secondary{border-color:var(--line);background:#ffffffb3}
.panel,.booking,.receipt,.flow-card{box-shadow:0 8px 30px #343d6605;border-color:var(--line)}
.demo-banner,.test-banner{background:#edf0f7;border:0;color:#58677d;font-size:12px;min-height:28px;padding:4px 12px}
.patient-portal>header{max-width:1000px;padding:18px 24px}
.patient-portal>main{max-width:952px;margin:12px auto 28px;padding:0 24px}
.patient-portal .profile-layout{grid-template-columns:1.1fr 1fr;gap:0;align-items:stretch;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 12px 48px #423d6507}
.patient-portal .profile-card{border:0;border-radius:0;box-shadow:none;padding:32px;background:linear-gradient(135deg,#fff,#f1f0f8)}
.patient-portal .profile-card h1{font-size:32px;line-height:1.15;max-width:340px;margin-bottom:10px}
.patient-portal .specialty{font-size:16px;margin-bottom:16px}
.patient-portal .profile-facts{padding:14px 0;margin-bottom:8px;gap:8px;border-color:#dde1ec}
.patient-portal .profile-note{position:relative;min-width:0;padding:0;background:#e7edee;overflow:hidden}
.patient-portal .care-photo{height:100%;min-height:280px;border-radius:0;object-fit:cover;object-position:52% top}
.patient-portal .photo-caption{position:absolute;left:12px;bottom:12px;margin:0;padding:5px 9px;border-radius:8px;background:#ffffffeb;color:#43586a;font-size:12px;max-width:calc(100% - 24px)}
.patient-portal .booking{padding:22px 28px}.patient-portal .booking-top{margin-bottom:12px}
.patient-portal .steps{margin:18px 0 22px;padding:14px 0}
.patient-portal h2{font-size:27px;margin-bottom:20px}
.patient-portal fieldset{margin-bottom:18px}.patient-portal label{margin-bottom:14px}
.patient-portal .visit-options label{margin:0;padding:12px 14px}
.patient-portal .form-actions{margin-top:18px}.patient-portal .receipt{margin:16px auto;padding:28px}
.patient-portal>footer{max-width:904px;margin:0 auto;padding:14px 0;align-items:start;gap:16px}
.patient-portal>footer details{max-width:480px}.patient-portal>footer summary{min-height:32px;font-weight:500}
.cabinet-workspace .sidebar{background:var(--bg);border-right:1px solid var(--line);padding:24px 14px}
.cabinet-workspace .sidebar .brand{color:var(--ink);font-size:23px;font-weight:600;gap:8px}
.cabinet-workspace .workspace-label{color:var(--muted);text-transform:none;letter-spacing:0;line-height:1.5;font-size:14px;margin:16px 4px 24px}
.cabinet-workspace .sidebar .nav{color:var(--muted);border-radius:14px}
.cabinet-workspace .sidebar .nav.active{color:#315e65;background:#e2edee}
.cabinet-workspace .sidebar .nav:hover{background:#eaeaf4;color:var(--ink)}
.cabinet-workspace .topbar{height:56px;min-height:0;justify-content:flex-end;gap:20px;border-bottom:1px solid var(--line)}
.cabinet-workspace .topbar #breadcrumb{display:none}
.cabinet-workspace .page-head{padding:20px 0 14px;align-items:center}
.cabinet-workspace .page-head h1{font-size:29px}
.cabinet-workspace .stats{gap:18px;margin-bottom:18px;flex-wrap:wrap}
.cabinet-workspace .stats>div{flex:0 1 auto;max-width:none;padding:0;border:0;display:flex;align-items:center;gap:8px}
.cabinet-workspace .stats strong{font-size:16px;line-height:1.5;background:#e9edf5;border-radius:8px;padding:2px 8px}
.cabinet-workspace .stats span{font-size:14px}
.cabinet-workspace .work-grid{gap:18px;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr)}
.cabinet-workspace .panel-head{padding:16px 18px 10px}
.cabinet-workspace .filters{margin:0 12px 8px}.cabinet-workspace .request{padding:14px 16px}
.cabinet-workspace .request-bottom{margin-top:7px}.cabinet-workspace .empty{padding:22px 16px}
.cabinet-workspace footer{margin-top:16px;padding:14px 0;font-size:13px}
.flow-main{margin-top:14px;margin-bottom:28px}.flow-card{padding:20px;margin:12px 0;border-radius:18px}
.flow-main>h1{margin-bottom:12px}.flow-main h2{margin:22px 0 12px;font-size:24px}
.flow-card h2{margin-top:0}.flow-actions{margin-top:12px;gap:8px}
@media(min-width:761px) and (max-width:1100px){.cabinet-workspace .work-grid{grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr)}.cabinet-workspace main{padding:0 18px}.cabinet-workspace .shell{grid-template-columns:174px minmax(0,1fr)}}
@media(max-width:900px) and (min-width:761px){.cabinet-workspace .work-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 .patient-portal>header{padding:12px 16px;gap:10px}.brand-wordmark{font-size:21px!important}.brand-icon{width:34px;height:34px}
 .patient-portal>main{margin:8px auto 20px;padding:0 16px}
 .patient-portal .profile-layout{display:grid;grid-template-columns:1fr;border-radius:20px}
 .patient-portal .profile-card{padding:24px}.patient-portal .profile-card h1{font-size:29px;max-width:100%}
 .patient-portal .profile-note{display:block}.patient-portal .care-photo{height:auto;min-height:0;aspect-ratio:3/2;object-fit:contain;object-position:center}
 .patient-portal .profile-facts{padding:12px 0}.patient-portal .photo-caption{left:10px;bottom:10px}
 .patient-portal .booking{padding:16px;border-radius:18px}.patient-portal h2{font-size:25px}
 .patient-portal .mini-profile small{font-size:12px}.patient-portal .steps{margin:14px 0 18px;padding:12px 0;gap:6px}
 .patient-portal .steps li{font-size:14px}.patient-portal .steps span{width:25px;height:25px}
 .patient-portal .form-actions{position:static;padding:0;background:transparent}.patient-portal .receipt{padding:24px 18px}
 .patient-portal>footer{margin:0 16px;padding:12px 0;flex-direction:row;font-size:13px}.patient-portal>footer details{max-width:78%}
 .cabinet-workspace .sidebar{padding:0;border:0;background:none}.cabinet-workspace .sidebar nav{background:#f5f7fcf5;backdrop-filter:blur(16px);border-color:var(--line)}
 .cabinet-workspace main{padding:0 14px calc(92px + env(safe-area-inset-bottom))}
 .cabinet-workspace .topbar{flex-wrap:wrap;padding:10px 0;gap:6px 14px;justify-content:space-between}
 .cabinet-workspace .topbar .mobile-brand{display:flex;align-items:center;flex:1 1 auto;font-family:'Space Grotesk',sans-serif;font-size:20px;letter-spacing:-.04em}
 .cabinet-workspace .topbar .patient-link{font-size:14px;font-weight:500;min-height:40px}
 .cabinet-workspace .topbar .mobile-brand img{width:28px;height:28px;background:none}
 .cabinet-workspace .page-head{padding:14px 0 12px}.cabinet-workspace .page-head h1{font-size:26px}
 .cabinet-workspace .stats{gap:10px 16px;margin-bottom:12px}.cabinet-workspace .stats>div{gap:6px}.cabinet-workspace .stats span{font-size:13px}.cabinet-workspace .stats strong{font-size:14px;padding:2px 6px}
 .cabinet-workspace .mobile-tabs{margin-bottom:12px}.cabinet-workspace .work-grid{display:block}
 .flow-card{padding:16px;margin:10px 0}.flow-main h2{font-size:22px;margin:20px 0 10px}
}
@media(max-width:390px){.cabinet-workspace .topbar .mobile-brand{flex-basis:100%}.patient-portal .profile-card{padding:20px}.patient-portal .profile-card h1{font-size:27px}}

/* Distinct, readable wordmark; generous logo size on phone and desktop. */
.brand-wordmark,.cabinet-workspace .sidebar .brand,.cabinet-workspace .topbar .mobile-brand{font-family:Georgia,'Times New Roman',serif!important;font-weight:500!important;letter-spacing:-.035em!important;font-size:36px!important;line-height:1.1}
.brand-icon{width:66px!important;height:66px!important;flex-shrink:0}
.cabinet-workspace .topbar .mobile-brand img{width:54px!important;height:54px!important}
.cabinet-workspace .sidebar .brand{flex-wrap:wrap;font-size:32px!important}
.patient-portal>footer{display:flex;flex-wrap:wrap;align-items:start;gap:8px 24px}
.patient-portal>footer .copyright{flex:1 0 100%;font-size:12px;line-height:1.6}
.patient-portal>footer details{flex:1 1 280px;max-width:100%}
.booking-policies p{margin:8px 0 12px}.booking-policies strong{color:var(--ink)}
.steps button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:inherit;font:inherit;padding:4px 0;min-height:44px;cursor:pointer}
.steps button:disabled{opacity:1;cursor:default}.steps button:not(:disabled):hover{color:var(--brand)}
.steps button[aria-current=step]{font-weight:700}.steps button:focus-visible{border-radius:6px}
.contact-phone{grid-column:1/-1}.field-error{display:block;color:#a33443;font-size:14px;font-weight:400;line-height:1.45;margin-top:6px}
.field-error:empty{display:none}input[aria-invalid=true]{border-color:#a33443;box-shadow:0 0 0 1px #a33443}
input[type=date],input[type=time]{box-sizing:border-box;display:block;min-width:0;max-width:100%;width:100%;min-inline-size:0;appearance:none;-webkit-appearance:none}
input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.5em}label,.contact-fields,.form-grid,.booking{min-width:0}
input,textarea,select{scroll-margin-top:24px;scroll-margin-bottom:100px}
@media(max-width:760px){
 .brand-wordmark{font-size:32px!important}.brand-icon{width:56px!important;height:56px!important}
 .patient-portal>header{gap:8px;padding:12px 14px;flex-wrap:wrap}.patient-portal>header .brand{gap:6px}.patient-portal .specialist-access{font-size:14px}
 .patient-portal>footer{flex-direction:column;gap:6px}.patient-portal>footer details{flex:auto;max-width:100%;width:100%}
 .patient-portal .steps li{min-width:0}.patient-portal .steps button{gap:5px;font-size:14px}
 body{padding-bottom:var(--keyboard-space,0px)}.patient-portal .contact-fields{grid-template-columns:1fr}
 .cabinet-workspace .topbar .mobile-brand{font-size:30px!important}
}
@media(max-width:370px){.patient-portal>header .brand{flex:1 1 100%}.patient-portal>header .specialist-access{margin-left:auto;min-height:32px}}
.consent-box{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}.consent-box label{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:400;line-height:1.5}.consent-box input[type=checkbox]{display:inline-block;flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:2px 0 0;accent-color:var(--brand)}.consent-box .field-error{margin:0 0 12px 30px}.consent-box a{color:var(--brand)}

.mini-avatar.specialist-portrait{width:64px;height:64px;padding:0;overflow:hidden;border-radius:50%;border:2px solid #d6eae8}
.mini-avatar.specialist-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 30%}

/* Fluid page gutters and compact icon navigation. */
.patient-portal>header,.patient-portal>main,.patient-portal>footer{width:100%;max-width:none;margin-left:0;margin-right:0;padding-left:clamp(12px,2.5vw,48px);padding-right:clamp(12px,2.5vw,48px)}
.patient-portal>main{margin-top:8px;margin-bottom:16px}
.patient-portal .booking{width:100%;max-width:none;margin:0;padding:clamp(16px,2vw,28px)}
.patient-portal .steps{display:flex;justify-content:center;gap:clamp(8px,2vw,24px);margin:12px 0 18px;padding:6px 0;border-top:0}
.patient-portal .steps li{min-width:0;font-size:16px}
.patient-portal .steps button{position:relative;gap:6px;padding:8px 2px;min-height:44px;font-size:16px;white-space:nowrap;line-height:1.3}
.patient-portal .steps .step-icon{display:block;width:24px;height:24px;flex-shrink:0}
.patient-portal .steps button[aria-current=step]{color:var(--brand)}
.patient-portal .steps button[aria-current=step]::after{content:'';position:absolute;height:3px;left:0;right:0;bottom:-7px;background:var(--brand);border-radius:3px}
.patient-portal .steps button:disabled{opacity:.5;cursor:default}
.patient-portal .submission-notice{margin:8px 0 0;padding:0;border:0;background:transparent;font-size:13px;line-height:1.5;color:var(--muted)}
.patient-portal .submission-notice p{margin:0}.patient-portal .submission-notice a{display:inline;font-size:inherit;text-underline-offset:3px}
.patient-portal .review{margin-top:12px;padding:12px 14px}.patient-portal .mode-note{margin:8px 0;font-size:13px}
.patient-portal .form-actions{margin-top:12px;gap:10px}
.cabinet-workspace main{min-width:0;padding-left:clamp(12px,2vw,34px);padding-right:clamp(12px,2vw,34px)}
.profile-layout,.work-grid,.contact-fields,.form-grid,.panel{min-width:0}
@media(max-width:760px){
 .patient-portal .profile-card{padding:20px}.patient-portal .profile-layout{border-radius:16px}
 .patient-portal .steps{gap:12px}.patient-portal .steps button{font-size:16px}
 .patient-portal>footer{margin:0}.patient-portal .booking h2{margin-bottom:16px}
 .patient-portal .channel-options label{padding:10px 5px}
}
@media(min-width:1100px){
 .patient-portal .profile-card{padding:clamp(28px,3vw,56px)}
 .patient-portal .profile-card h1{max-width:none;font-size:clamp(32px,2.5vw,48px)}
 .patient-portal .profile-note{max-height:520px}
}

/* Specialist identity, complete service list and full-width steps. */
.specialist-heading{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.profile-portrait{width:96px;height:96px;flex:0 0 96px;object-fit:cover;object-position:center 25%;border-radius:18px}
.specialist-heading .eyebrow{margin-bottom:6px}.specialist-heading h1{margin:0}
.patient-portal .service-list{font-size:clamp(14px,1.1vw,17px);line-height:1.65;white-space:normal;overflow-wrap:break-word;max-width:none}
.patient-portal .mini-profile{align-items:flex-start}.patient-portal .mini-profile>div:last-child{min-width:0}
.patient-portal .mini-profile .service-list{font-size:14px;margin-top:6px;line-height:1.6}
.patient-portal .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.patient-portal .steps li{display:block}.patient-portal .steps button{width:100%;justify-content:center;font-size:clamp(16px,1.3vw,20px);padding:10px 2px}
.patient-portal .required-details label{margin-bottom:6px}
#toast{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:var(--ink)!important;padding:8px 12px!important;font-size:14px;pointer-events:none}
@media(max-width:760px){
 .specialist-heading{gap:12px}.profile-portrait{width:76px;height:76px;flex-basis:76px;border-radius:14px}
 .patient-portal .specialist-heading h1{font-size:clamp(22px,6vw,29px);line-height:1.15}
 .patient-portal .steps button{font-size:16px;gap:5px}.patient-portal .steps .step-icon{width:22px;height:22px}
}

textarea[aria-invalid=true]{border-color:#a33443;box-shadow:0 0 0 1px #a33443}

.booking-confirm-note{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.patient-portal .mini-profile strong{font-size:clamp(22px,2vw,28px);line-height:1.2;display:block}
.patient-portal .mini-avatar.specialist-portrait{width:84px;height:84px;flex:0 0 84px;border-radius:16px}
.patient-portal .specialist-portrait img,.patient-portal .profile-portrait{object-position:41% top}
.steps.returning{grid-template-columns:repeat(2,minmax(0,1fr))}
#return-verification{margin-bottom:12px}#return-status{margin:8px 0}
#return-submission-slot:not(:empty){margin-top:16px}.consent-box label{margin-bottom:0}

.portrait-frame{width:96px;height:96px;flex:0 0 96px;overflow:hidden;border-radius:18px}
.portrait-frame .profile-portrait{display:block;width:100%;height:100%;border-radius:0;object-fit:cover;object-position:41% top;transform:scale(2.3);transform-origin:41% top}
.patient-portal .specialist-portrait img{transform:scale(2.3);transform-origin:41% top}
@media(max-width:760px){.portrait-frame{width:76px;height:76px;flex-basis:76px;border-radius:14px}}

/* Restore the original professional headshot in both specialist profiles. */
.portrait-frame .profile-portrait,.patient-portal .specialist-portrait img{transform:none;object-position:center 25%;}

/* Service disclosure keeps the profile compact without implying a selection. */
.patient-portal .specializations{margin:12px 0 18px;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent;overflow:visible}
.patient-portal .specializations>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px;min-height:44px;cursor:pointer;font-size:15px;font-weight:600;list-style:none;color:var(--ink)}
.patient-portal .specializations>summary::-webkit-details-marker{display:none}
.patient-portal .specializations>summary::after{content:'+';display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;font-size:18px;font-weight:400;color:var(--brand);transition:background .15s}
.patient-portal .specializations[open]>summary::after{content:'−';background:#edf5f3}
.patient-portal .specializations ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px 20px;list-style:none;padding:10px 2px 14px;margin:0;border-top:1px solid var(--line);font-size:14px;line-height:1.5}
.patient-portal .specializations li{min-width:0;overflow-wrap:anywhere}
.patient-portal .mini-profile .specializations{margin:8px 0 0}.patient-portal .mini-profile>div:last-child{flex:1}
.patient-portal .booking-confirm-note{text-align:center;margin-top:10px}.note-star{color:var(--brand);font-size:15px;margin-right:3px}
.booking-for{margin:20px 0 18px}.other-patient{margin:10px 0 16px}.other-patient .consent-box{margin-top:2px}.proxy-consent label{font-size:13px}.mini-profile{margin:6px 0 18px}.mini-profile strong{font-size:18px!important}
.patient-portal .mini-profile .specialist-role{display:block;margin:0 0 3px;color:var(--muted);font-size:10px;font-weight:700;line-height:1.2;letter-spacing:1.3px;text-transform:uppercase}

.patient-portal .submission-notice{margin-top:12px;font-size:12px;line-height:1.5}.patient-portal .form-actions{margin-bottom:0}

/* Specialties remain part of the profile text, with a compact inline disclosure. */
.patient-portal .specializations{display:block;margin:12px 0 18px;padding:0;border:0;font-size:14px;line-height:1.8;color:var(--muted)}
.patient-portal .specialties-label{font-weight:650;color:var(--ink);margin-right:2px}
.patient-portal .specialty-separator{color:#91a5aa}
.patient-portal .specialties-rest[hidden]{display:none!important}
.patient-portal .specialties-more{display:inline;margin:0 0 0 6px;padding:0;border:0;background:none;color:var(--brand);font:inherit;font-size:13px;font-weight:650;line-height:inherit;text-decoration:underline;text-decoration-color:#b4cdca;text-underline-offset:3px;cursor:pointer;white-space:normal}
.patient-portal .specialties-more::after{content:'⌄';display:inline-block;margin-left:7px;font-size:17px;line-height:0;vertical-align:-1px;text-decoration:none}
.patient-portal .specialties-more[aria-expanded=true]::after{content:'⌃'}
.patient-portal .specialties-more:hover{color:var(--brand-hover)}

.waitlist-link{display:flex!important;flex:1 1 auto;min-width:0;width:auto!important;min-height:52px;margin:0;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding:10px clamp(8px,2vw,16px);font-size:clamp(13px,3.7vw,15px)}
.waitlist-link[hidden]{display:none!important}
.patient-portal .waitlist-form>label{margin-bottom:18px}
.patient-portal .waitlist-form fieldset{margin-bottom:18px}
.patient-portal .waitlist-form .consent-box{margin:12px 0 16px;padding-top:14px}
.patient-portal .waitlist-form .consent-box label{display:flex;align-items:flex-start;gap:12px;line-height:1.45}
.patient-portal .waitlist-form .consent-box input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin:2px 0 0}
.patient-portal .waitlist-form .consent-box a{display:inline-block;margin:8px 0 0 34px}
.patient-portal .waitlist-submit{width:100%;min-height:56px;margin-top:10px}
.patient-portal .waitlist-note{margin:14px 0 0;font-size:13px}
.patient-portal .waitlist-intro{max-width:650px}
.patient-portal .waitlist-submission-notice{margin:10px 0 0;font-size:12px;line-height:1.5}
.patient-portal .waitlist-submission-notice a{color:var(--brand)}
.patient-portal .form-actions:has(#continue[hidden]){justify-content:flex-start}
.patient-portal .form-actions:has(.waitlist-link:not([hidden])){display:flex;align-items:stretch;gap:10px}
.patient-portal .form-actions:has(.waitlist-link:not([hidden])) #previous{flex:0 0 auto;min-width:82px;padding-inline:14px}
.patient-portal .form-actions:has(.waitlist-link:not([hidden])) .waitlist-link{flex:1 1 0}
.patient-portal .form-actions #continue:disabled{opacity:.65}
.patient-portal #submission-notice[hidden]{display:none!important}
.management-portal .appointment-specialist{margin:0 0 20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.management-portal .appointment-specialist .specialist-heading{gap:12px;margin:0 0 8px}
.management-portal .appointment-specialist .portrait-frame{width:68px;height:68px;flex:0 0 68px;border-radius:14px}
.management-portal .appointment-specialist .specialist-heading>div:last-child{min-width:0}
.management-portal .appointment-specialist h3{margin:0;font-size:clamp(19px,4.5vw,25px);line-height:1.2;overflow-wrap:normal}
.management-portal .appointment-specialist .eyebrow{font-size:10px;margin:0 0 5px}
.management-portal .appointment-specialist .specializations{margin:0;overflow-wrap:normal;font-size:13px;line-height:1.7}
.management-portal .appointment-specialist .specialties-more{min-height:32px;padding:0;border-radius:0}

.proxy-booking-info{margin:0 0 20px;padding:16px 18px;border:1px solid #d5e5e4;background:#f0f7f6;border-radius:14px}
.proxy-booking-heading{display:flex;align-items:center;gap:9px;margin-bottom:12px;color:#245d64}
.proxy-booking-heading>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#dcecea;font-size:16px}
.proxy-booking-heading h3{margin:0;font-size:16px;line-height:1.35;color:var(--ink)}
.proxy-booking-info dl{display:flex;flex-direction:column;gap:0;margin:0}
.proxy-booking-info dl>div{min-width:0;padding:9px 0;border-bottom:1px solid #d5e5e4}
.proxy-booking-info dl>div:last-child{border-bottom:0;padding-bottom:0}
.proxy-booking-info dt{font-size:12px;color:var(--muted)}
.proxy-booking-info dd{margin:2px 0 0;font-size:15px;font-weight:650;overflow-wrap:anywhere}
.proxy-attestation{margin:14px 0 0;padding-top:11px;border-top:1px solid #d5e5e4;font-size:13px;line-height:1.45;color:#315e56}
.proxy-attestation.needs-review{color:#80551e}
#cancel-confirm{border-color:var(--line);color:#963d4c;background:#fff}
#cancel-confirm:hover{border-color:var(--line);background:#fff}
#cancel-confirm:focus-visible{outline:none;box-shadow:none}
@media(max-width:480px){.proxy-booking-info{padding:14px}.proxy-booking-info dd{font-size:14px}}
/* Compact specialist filters and separate continuity sections. */
.cabinet-workspace .agenda-status-tabs{display:flex;gap:6px;margin:0 16px 12px;flex-wrap:nowrap}
.cabinet-workspace .agenda-status-tabs button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:10px 7px;min-height:44px;border:1px solid var(--line,#dbe2ed);border-radius:12px;background:transparent;color:var(--ink,#25354a);font-size:13px;cursor:pointer}
.cabinet-workspace .agenda-status-tabs button.selected,.continuity-tabs [aria-selected=true]{background:#e4f1ef;border-color:#397579;color:#285c60}
.cabinet-workspace .all-requests{background:none;border:0;color:var(--brand,#397579);min-height:44px;padding:8px;cursor:pointer}
.cabinet-workspace .all-requests.selected{font-weight:700;text-decoration:underline}
.cabinet-workspace .continuity-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #bad5d5;border-radius:12px;background:#e8f2f1;text-decoration:none;font-weight:600}
.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#a33e56;color:white;font-size:12px;line-height:1}
.notification-count[hidden]{display:none}
.continuity-tabs{display:flex;gap:8px;margin:20px 0}
.continuity-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid #d5deea;border-radius:12px;background:white;color:#25354a;font:inherit;font-weight:600;cursor:pointer}
.continuity-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.continuity-heading h1{margin-bottom:0}
.refresh-quiet{flex-shrink:0;background:transparent;border:1px solid #d5deea;border-radius:10px;padding:8px 10px;min-height:44px;color:#397579;font:inherit;font-size:13px;cursor:pointer}
.refresh-quiet:disabled{opacity:.6;cursor:wait}
.refresh-status{font-size:12px;color:var(--muted,#617086);margin:6px 0 14px;text-align:right;min-height:18px}
@media(max-width:600px){.continuity-heading h1{font-size:25px}.refresh-quiet{font-size:12px}.cabinet-workspace .agenda-status-tabs{margin:0 12px 12px}.cabinet-workspace .agenda-status-tabs button{font-size:12px}}
