.menu-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px}.brand small{font-size:11px;letter-spacing:2px}.section-menu{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:24px;background:var(--panel);color:var(--text);padding:28px;box-shadow:0 24px 100px #0006}.section-menu::backdrop{background:#040a16ac;backdrop-filter:blur(7px)}body.section-menu-open{overflow:hidden}.section-menu-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:24px}.section-menu-head h2{font-size:28px;margin:8px 0}.section-menu-head p{font-size:12px}.section-menu-head>.control{flex-shrink:0;min-width:44px;min-height:44px}.section-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.section-menu-grid button{display:flex;align-items:center;gap:13px;text-align:left;min-height:88px;min-width:0;border:1px solid var(--line);border-radius:15px;padding:16px;background:var(--card);color:var(--text);transition:background .15s,border-color .15s}.section-menu-grid button:hover,.section-menu-grid button[aria-current=page]{border-color:var(--accent);background:var(--soft)}.section-menu-grid button>span:nth-child(2){flex:1;min-width:0}.section-menu-grid strong{display:block;font-size:13px;overflow-wrap:anywhere}.section-menu-grid small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:5px}.menu-route-icon{width:36px;height:40px;display:grid;place-items:center;border-radius:11px;background:var(--soft);color:var(--accent);flex-shrink:0}.section-menu-grid button>.icon{width:15px;color:var(--muted)}.mobile-quick-nav{display:none}.header-inner{gap:12px}.header-actions{gap:8px}.header-main-links{gap:8px}.header-profile{max-width:170px}.header-profile>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1150px){.header-main-links{display:none}.header-inner{padding-left:20px;padding-right:20px}}
@media(max-width:900px){.layout{grid-template-columns:minmax(0,1fr);padding-top:22px}.sidebar{display:none}.has-workspace{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.mobile-quick-nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);box-shadow:0 -8px 35px #0001}.mobile-quick-nav button{border:0;background:transparent;min-width:0;min-height:54px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:10px;line-height:1.3;padding:5px 3px}.mobile-quick-nav button[aria-current=page]{color:var(--accent);background:var(--soft)}.mobile-quick-nav .icon{width:21px;height:21px}.menu-toggle span{display:none}.header-profile>span:last-child{display:none}.header-profile{padding:4px;min-width:44px}.brand>span:last-child{font-size:18px}.section-menu{max-height:calc(100dvh - 24px)}input.input,select.input,textarea{font-size:16px}.section-menu-grid button{min-height:86px}.safety-footer{padding-bottom:24px}}
@media(max-width:600px){.header-inner{padding:12px;gap:8px}.brand>span:last-child{display:none}.header-profile{display:none!important}.header-actions{gap:5px}.header-actions .control{min-height:44px;padding:8px 10px}.header-actions #language{width:88px;max-width:88px;font-size:11px;padding-left:7px;padding-right:3px}.header-actions .theme-button span{display:none}.header-actions .theme-button,.header-actions .menu-toggle{width:44px;min-width:44px;padding:8px;justify-content:center}.brand-mark{width:34px;height:36px}.section-menu{width:calc(100% - 20px);padding:20px 16px;border-radius:20px}.section-menu-head h2{font-size:24px}.section-menu-grid{grid-template-columns:1fr;gap:9px}.section-menu-grid button{min-height:76px;padding:12px}.section-menu-head{margin-bottom:18px}.demo-strip{padding:8px 14px;font-size:10px}.page-head h1{font-size:28px}.layout{padding:18px 14px 36px}.mobile-quick-nav button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.section-menu-grid button{transition:none}}
@media print{.menu-toggle,.mobile-quick-nav,.section-menu{display:none!important}.has-workspace{padding-bottom:0}}

.section-menu-head{position:static;background:var(--panel);padding-bottom:8px}
@media(max-width:900px){.mobile-quick-nav{transition:transform .2s ease,opacity .2s ease,visibility .2s}.mobile-quick-nav.quick-nav-hidden{transform:translateY(110%);opacity:0;visibility:hidden;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.mobile-quick-nav{transition:none}}

.menu-bottom-close{margin-top:18px}.back-home{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:14px}.back-home>.icon{transform:rotate(180deg)}
@media(max-width:900px){.app-header{transition:transform .2s ease,opacity .2s ease,visibility .2s}.app-header.navigation-header-hidden{transform:translateY(calc(-100% - 2px));opacity:0;visibility:hidden;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.app-header{transition:none}}

/* Original supplied artwork; presentation crops only, source PNG is unchanged. */
.project-logo{display:block;position:relative;overflow:hidden;background:#05060c;flex-shrink:0;border-radius:14px;isolation:isolate}
.project-logo img{position:absolute;max-width:none;height:auto;pointer-events:none}
.project-logo-full{width:min(270px,100%);aspect-ratio:765/554;margin-bottom:20px}
.project-logo-full img{width:164%;left:50%;top:50%;transform:translate(-50.5%,-50.5%)}
.brand .brand-mark{width:44px;height:44px;transform:none;background:none;box-shadow:none;border-radius:12px;overflow:hidden}
.project-logo-symbol{width:44px;height:44px;border-radius:12px}
.project-logo-symbol img{width:240%;left:50%;top:50%;transform:translate(-52.5%,-43.5%)}
.section-menu-head .project-logo-full{width:180px;margin-bottom:14px}
@media(max-width:600px){.legacy-onboarding-copy>.project-logo-full{width:210px}.brand .brand-mark,.project-logo-symbol{width:36px;height:36px}.section-menu-head .project-logo-full{width:150px}}

/* Airy brand masthead, with room around the original artwork. */
.app-header{background:var(--glass);box-shadow:0 8px 30px #0000000a}
.header-inner{min-height:80px;padding-top:14px;padding-bottom:14px}
.brand{gap:12px;letter-spacing:-.4px}
.brand em{font-style:normal;color:#9398ff}
.brand .brand-mark{width:48px;height:48px;border:1px solid #a8b4ff40;border-radius:16px;box-shadow:0 4px 18px #667dff20;background:#05060c}
.project-logo-symbol{width:100%;height:100%;border-radius:inherit}
.project-logo-symbol img{width:240%;left:50%;top:50%;transform:translate(-52.5%,-43.3%);clip-path:inset(27% 25% 41% 31%)}
.header-actions .control{border-radius:14px}
.legacy-onboarding-copy>.project-logo-full{width:min(260px,100%);margin:0 auto 26px;border:1px solid #9cafff35;border-radius:22px;box-shadow:0 12px 32px #0002}
.project-logo-full{aspect-ratio:1.38}
.project-logo-full img{width:145%;left:50%;top:50%;transform:translate(-50.5%,-50.5%)}
.section-menu-head .project-logo-full{border:1px solid #9cafff35;border-radius:16px}
@media(max-width:600px){
 .header-inner{min-height:72px;padding:12px 16px;gap:10px}
 .brand .brand-mark{width:44px;height:44px;border-radius:14px}
 .project-logo-symbol{width:100%;height:100%}
 .header-actions{gap:7px;margin-left:auto}
 .header-actions .control{border-radius:13px}
 .header-actions #language{width:94px;max-width:94px}
 .legacy-onboarding-copy>.project-logo-full{width:min(230px,100%);margin:0 auto 24px}
 .demo-strip{border-top:1px solid var(--line);padding:10px 18px}
}
@media(max-width:360px){.header-inner{padding-left:12px;padding-right:12px}.header-actions{gap:5px}.app-header.with-profile .brand .brand-mark{width:36px;height:40px}.app-header.with-profile #language{width:88px;max-width:88px}}

/* Preview variant: large artwork floats on the card, without a logo tile. */
.project-logo-full,.legacy-onboarding-copy>.project-logo-full,.section-menu-head .project-logo-full{background:transparent;border:0;box-shadow:none;border-radius:0}
.project-logo-full img{width:145%;height:auto;object-fit:contain}
html[data-theme=light] .project-logo-full img{filter:drop-shadow(0 1px 2px #263558aa)}

/* Quiet, centered branding inside the section picker. */
.section-menu-head{position:relative;display:block;text-align:center;padding:8px 48px 18px}
.section-menu-head>div{min-width:0}
.section-menu-head .project-logo-full{width:140px;max-width:100%;margin:0 auto 16px}
.section-menu-head>.control{position:absolute;right:0;top:0;width:44px;height:44px;padding:10px;border-radius:14px}
.section-menu-head h2{font-size:26px;margin:8px 0}
.section-menu-head p{max-width:340px;margin:0 auto}
@media(max-width:600px){.section-menu-head{padding:4px 32px 14px}.section-menu-head .project-logo-full{width:120px;margin-bottom:12px}.section-menu-head h2{font-size:22px}.section-menu-head>.control{right:-2px;top:-2px}}

.patient-preparation{padding-top:12px;padding-bottom:24px}.patient-preparation>.panel{display:flex;align-items:center;justify-content:space-between;gap:28px}.patient-preparation h2{margin:9px 0}.patient-preparation p{max-width:640px;font-size:13px}.patient-preparation .button{flex-shrink:0}.preparation-tags{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;color:var(--muted);font-size:12px}.preparation-tags span{display:inline-flex;gap:7px;align-items:center}.preparation-tags .icon{width:16px;color:var(--accent)}
@media(max-width:900px){.has-workspace{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}.mobile-quick-nav{z-index:40}.patient-preparation>.panel{align-items:stretch;flex-direction:column;gap:18px}.patient-preparation .button{width:100%;white-space:normal}}
.account-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:32px;border:1px solid var(--line);border-radius:24px;background:var(--panel);color:var(--text);box-shadow:0 30px 100px #0005}.account-dialog::backdrop{background:#040a16aa;backdrop-filter:blur(8px)}.account-dialog h2{margin:12px 32px 10px 0;font-size:27px}.account-dialog>p{margin-bottom:18px}.account-close{position:absolute;right:16px;top:16px;width:44px;height:44px;font-size:25px}.social-buttons{display:grid;gap:12px;margin:24px 0}.social-login{min-height:52px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--text);padding:12px;font-weight:650}.social-login svg{width:24px;height:24px;flex-shrink:0}.social-login:disabled{opacity:.65;cursor:not-allowed}.account-setup{font-size:12px;color:var(--muted);margin:18px 0}.account-setup summary{cursor:pointer}.account-setup code{display:block;overflow-wrap:anywhere;margin-top:8px}.account-owner{margin:10px 0}.account-dialog #account-status{margin:16px 0 0;overflow-wrap:anywhere}.account-dialog label{display:block;margin:20px 0 12px}.account-dialog input{margin-top:8px}.account-dialog .button{margin-top:16px}.account-header-login{white-space:nowrap}.account-header-login .icon{width:18px}
@media(max-width:600px){.account-dialog{padding:26px 22px}.account-header-login{width:40px;min-width:40px;padding:8px!important}.account-header-login span{display:none}.header-actions{gap:4px}.header-actions #language{width:82px;max-width:82px}.header-inner{padding-left:10px;padding-right:10px;gap:6px}}
.patient-ai-dialog{width:min(620px,calc(100% - 28px))}.patient-ai-log{max-height:35dvh;overflow:auto;overscroll-behavior:contain}.patient-ai-log .chat-message{white-space:pre-wrap;overflow-wrap:anywhere}.patient-ai-consent{font-size:12px;color:var(--muted);line-height:1.6}.patient-ai-consent input{margin:0 5px 0 0}.patient-ai-dialog #patient-ai-status{font-size:12px;margin-top:12px}.patient-ai-dialog .ai-clear{margin:12px 0}.patient-ai-entry{margin:0 0 20px}
/* Center controls by their visual box, independent of text baselines. */
.account-close,.section-menu-head>.control,.icon-button{display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0}
.account-dialog .account-close{margin:0;top:16px;right:16px;width:44px;height:44px;font-family:Arial,sans-serif;font-size:28px}
.account-dialog .account-close svg,.icon-button svg,.back-home svg{display:block;flex-shrink:0}
.back-home{display:inline-flex;align-items:center;justify-content:center;line-height:1.3;gap:8px}
#owner-ai-key{margin:24px 0;padding-top:20px;border-top:1px solid var(--line)}

@media(max-width:360px){.app-header.with-profile .header-actions #language{width:72px;max-width:72px}.app-header.with-profile .header-inner{gap:4px}}

/* An opaque navigation surface is required even before theme overrides load. */
.mobile-quick-nav{background:#181f29;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-theme=light] .mobile-quick-nav{background:#fff}
/* Small, non-modal AI assistant. It does not take over the patient workspace. */
.ai-floating-button{position:fixed;right:24px;bottom:24px;z-index:95;display:flex;align-items:center;justify-content:center;width:58px;height:58px;border:1px solid #83b7ff;border-radius:22px;background:linear-gradient(145deg,#277cea,#1554b4);color:#fff;box-shadow:0 9px 26px #0c4ca840;font:600 17px/1 system-ui;cursor:pointer}.ai-floating-button[hidden]{display:none}.ai-floating-button:hover{transform:translateY(-2px)}.ai-floating-button:focus-visible{outline:3px solid #8ebfff;outline-offset:4px}
#patient-ai-dialog{position:fixed;inset:auto 20px 20px auto;margin:0;width:min(390px,calc(100vw - 28px));height:min(650px,calc(100dvh - 44px));max-height:calc(100dvh - 44px);padding:18px;border-radius:24px;z-index:96;box-sizing:border-box;overflow:auto;background:var(--panel,#fff)}
#patient-ai-dialog[open]{display:flex;flex-direction:column;gap:10px}#patient-ai-dialog .ai-widget-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}#patient-ai-dialog .ai-widget-heading h2{font-size:19px;margin:5px 0 0;padding:0}#patient-ai-dialog .ai-widget-heading .eyebrow{font-size:9px}#patient-ai-dialog .account-close{position:static;width:34px;height:34px;min-width:34px;font-size:23px}#patient-ai-dialog .ai-widget-lead{font-size:12px;line-height:1.5;margin:0;flex:none}#patient-ai-dialog .ai-quick{display:flex;gap:6px;flex-wrap:wrap}#patient-ai-dialog .ai-quick button{border:1px solid var(--line,#b8c9df);border-radius:12px;background:var(--card,#edf3fc);color:inherit;padding:8px;font:inherit;font-size:11px;cursor:pointer}#patient-ai-dialog .patient-ai-log{flex:1;min-height:90px;max-height:none;overflow:auto;padding:5px 0}#patient-ai-dialog .chat-message{font-size:13px;line-height:1.6;padding:11px;border-radius:15px}#patient-ai-dialog form{display:grid;gap:9px;margin:0}#patient-ai-dialog .patient-ai-consent{display:flex;gap:7px;align-items:flex-start;font-size:10px;line-height:1.4;margin:0}#patient-ai-dialog .patient-ai-consent input{flex:none;margin:2px 0 0}#patient-ai-dialog textarea{min-height:62px;font-size:16px;resize:vertical;padding:10px}#patient-ai-dialog .button{margin:0;padding:10px;min-height:40px;font-size:13px}#patient-ai-dialog #patient-ai-status{font-size:11px;margin:0;line-height:1.4}#patient-ai-dialog .ai-widget-footer{display:flex;gap:16px;flex-wrap:wrap}#patient-ai-dialog .ai-clear,#patient-ai-dialog .ai-signin{font-size:11px;margin:0}#patient-ai-dialog .ai-widget-urgent{font-size:10px;line-height:1.4;margin:0}.ai-widget-footer>[hidden]{display:none}
@media(max-width:700px){.ai-floating-button{right:17px;bottom:calc(110px + env(safe-area-inset-bottom,0px));width:52px;height:52px;border-radius:20px}#patient-ai-dialog{right:12px;bottom:calc(105px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);height:min(610px,calc(100dvh - 145px));max-height:calc(100dvh - 145px)}}
@media(prefers-reduced-motion:reduce){.ai-floating-button{transform:none!important;transition:none!important}}

#patient-ai-dialog .ai-voice-details{font-size:12px;line-height:1.4}#patient-ai-dialog .ai-voice-details summary{cursor:pointer;color:var(--accent,#176cce);padding:5px 0}#patient-ai-dialog .voice-input{margin:6px 0;padding:8px;border-radius:12px}#patient-ai-dialog .voice-input .small,#patient-ai-dialog .voice-input p,#patient-ai-dialog .voice-input label{font-size:10px;line-height:1.4;margin:5px 0}#patient-ai-dialog .voice-input .button{font-size:11px;min-height:32px;padding:6px 9px}#patient-ai-dialog .patient-ai-log{flex-shrink:1}#patient-ai-dialog .ai-widget-heading,#patient-ai-dialog .ai-widget-footer{flex-shrink:0}
