/* Soft lavender surfaces with readable type; dark mode remains an opt-in. */
:root{--ink:#302744;--muted:#645975;--green:#74549c;--lime:#eee5fb;--line:#d9cce8;--paper:#fffdfad9;--bg:#faf8ff;--shadow:0 10px 36px #80639b0c;color-scheme:light;font-size:calc(17px * var(--font-scale))}
html,body{background:#faf8ff;color:var(--ink)}body:before{background:radial-gradient(ellipse at 15% 10%,#e7d9fa99,transparent 55%),radial-gradient(ellipse at 90% 80%,#ffe9e699,transparent 60%);opacity:.85}
.card,.auth-card,.sidebar,.topbar,.mobile-nav,dialog,.modal-head,.modal-footer{background:#fffdfacc!important;color:var(--ink)!important;border-color:#dfd3ed!important;box-shadow:0 10px 34px #7b61900b}
.card{border-radius:30px}.sidebar{background:#f4eff9ee!important}.topbar,.mobile-nav{background:#fffcf9e8!important}.btn{background:#e2d0f5;color:#422e5f;border-color:#cab1e1;font-size:1rem;font-weight:650}.btn.secondary,.btn.ghost,.icon-btn,.patient-id{background:#fcf9ff;color:#544067;border-color:#dfd2eb}.btn.danger{background:#f9dce6;color:#822749}.btn:hover{filter:brightness(.98)}
input,select,textarea{background:#fffdfa!important;color:#302744!important;border-color:#cbbada!important;font-size:1rem!important}input::placeholder,textarea::placeholder{color:#7b6b8c}.field label{color:#463651}.brand,.brand-name,.brand-name small{color:var(--ink)!important}.logo-symbol{background:#dfcdf3;color:#5b3d80}.brand-home{border:0;padding:0;background:transparent;text-align:inherit;border-radius:14px;cursor:pointer;min-height:44px;flex-shrink:0}.brand-home:focus-visible{outline:2px solid #8861af;outline-offset:4px}
.nav-item,.mobile-nav button{color:#695777}.nav-item.active,.mobile-nav button.active{background:#ece0f7;color:#513174}.pill{background:#eee4f8;color:#63457c;border-color:#e0d0ed}.caption,.small,.muted,.auth-description,.stat small,.report-info p,.setting p,.timeline-date,.eyebrow{color:#695c78!important}.caption,.small,.stat-label,.stat small,.report-info p,.answer-row,.answer-group summary,.answer-value,.timeline-date{font-size:.94rem!important;line-height:1.65}.eyebrow{font-size:.79rem!important;letter-spacing:1px}.top-date,.nav-label,.role,.name,.timeline h3{font-size:.86rem!important}.stat strong{color:#3e2d54;font-size:1.65rem}.stat-heading{display:flex;gap:10px;align-items:center}.stat-heading svg{width:26px;height:26px;stroke:#8760aa;stroke-width:1.7}.stat{gap:12px!important}.stat-icon{display:none}
.health-hero{background:linear-gradient(120deg,#f0e6fae6,#fff6efe6)!important;border-color:#e8ddef!important}.health-hero h2{color:#4a335e}.health-hero p{color:#6f5c7b}.health-orbit{background:radial-gradient(circle,#e4d3f555,transparent 65%)}.health-orbit svg{stroke:#b28dcd;filter:drop-shadow(0 0 24px #d9b7f2)}.health-orbit span{color:#796287}.notice,.summary-box,.profile-facts{background:#f3edf9!important;color:#564262;border-color:#e2d5ed}.report-icon,.timeline-icon,.alert-icon{background:#eee3f6;color:#8860a4}.calendar-day{color:#544063;font-size:1rem}.calendar-day.today{background:#dfc6f2;color:#47205d}.calendar-day.test-taken:before{background:#9260b9}.calendar-head button{color:#654777}.calendar-day.event:after{background:#73b6a6}.date-square{background:#eee0f6;color:#705186}.calendar-head strong{font-size:1rem}.data-table th,.data-table td{color:var(--ink)!important;font-size:.92rem}.data-table th{background:#f1e9f8}.data-table-wrap{border-color:#e4d7ed}
.single-question{background:radial-gradient(ellipse at top right,#efe1fc77,transparent 55%),#fffdf9e8!important;border-color:#e1d1ef!important;box-shadow:0 16px 50px #a389b20d}.single-question .question-text{color:#42304f;font-weight:600}.single-question .answer-option{background:#fffcfa;border:1px solid #dac9e8;color:#614a70;border-radius:22px;transition:background .22s,box-shadow .22s,border-color .22s}.single-question .answer-option.selected{background:#efe2fc;border-color:#b391ce;box-shadow:0 3px 16px #be9adb14}.single-question input{accent-color:#9c77ba}.question-track{background:#eee5f4}.question-track span{background:linear-gradient(90deg,#d2b4ec,#b78dd7)}.single-question .answer-option span{font-size:1.04rem!important}.text-button{color:#7b509c}.comfort-guide{display:grid!important;gap:16px!important;padding:20px!important;background:#fbf7ff!important;border:1px solid #e5d8ef!important;border-radius:24px}.comfort-guide>div{display:flex;align-items:center;gap:14px;background:transparent!important;padding:0!important}.comfort-guide p{font-size:1rem;line-height:1.6;color:#695674}.comfort-guide strong{font-size:1.05rem;color:#493257}.guide-symbol{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#ede0f8;color:#8e63ae;font-size:22px;flex:none}.comfort-guide .caption{margin:0}.modal-head h2{color:var(--ink)}.modal-footer .btn{font-size:.95rem}.viewport-controls{background:transparent}.viewport-controls .caption{font-size:.9rem!important}.modal-body,.modal-body *{max-width:100%}.modal-body .btn{white-space:normal}.modal-body .more-grid{gap:10px}.modal-body .more-grid .btn{min-height:50px}.modal-head{min-height:62px}.modal-footer{flex-wrap:wrap}.icon-btn{font-size:22px}.auth-preferences{display:flex;align-items:center;gap:8px}.auth-preferences .icon-btn{width:44px;min-width:44px}.auth-heading h1{color:#634377}.auth-description{font-size:1rem}.auth-card .auth-switch,.auth-card .demo-area p{font-size:.94rem}.auth-fit-content .caption{font-size:.92rem!important}.demo-buttons .btn{font-size:.94rem}.top-actions{gap:6px}
.star-burst{position:fixed;inset:0;pointer-events:none;z-index:1000;display:flex;justify-content:center;align-items:center;gap:24px}.star-burst span{color:#c7a0e2;font-size:25px;animation:starFloat 1s ease-out both}.star-burst span:nth-child(2){animation-delay:.05s}.star-burst span:nth-child(3){font-size:40px;animation-delay:.1s}.star-burst span:nth-child(4){animation-delay:.15s}.star-burst span:nth-child(5){animation-delay:.2s}@keyframes starFloat{0%{opacity:0;transform:translateY(35px) scale(.3) rotate(-20deg)}25%{opacity:.9}100%{opacity:0;transform:translateY(-100px) scale(1.1) rotate(20deg)}}
:root[data-theme=dark]{--ink:#eee7f6;--muted:#c3b4d1;--line:#5b4969;color-scheme:dark}html[data-theme=dark],html[data-theme=dark] body{background:#171322;color:var(--ink)}[data-theme=dark] body:before{background:radial-gradient(ellipse at 15% 10%,#64417e44,transparent 60%),radial-gradient(ellipse at 90% 80%,#43385855,transparent 55%)}[data-theme=dark] :is(.card,.auth-card,.sidebar,.topbar,.mobile-nav,dialog,.modal-head,.modal-footer){background:#241d31ed!important;color:#eee7f6!important;border-color:#574362!important}[data-theme=dark] :is(.btn.secondary,.btn.ghost,.icon-btn,.patient-id){background:#33253f;color:#ecdef8;border-color:#604b6f}[data-theme=dark] :is(input,select,textarea){background:#21172c!important;color:#f4e9ff!important}[data-theme=dark] :is(.caption,.small,.muted,.auth-description,.stat small,.report-info p,.timeline-date,.eyebrow,.health-hero p){color:#c9b9d7!important}[data-theme=dark] :is(.single-question .question-text,.stat strong,.field label,.modal-head h2){color:#f3e8fc}[data-theme=dark] .health-hero{background:linear-gradient(120deg,#35213f,#262035)!important}[data-theme=dark] .health-hero h2{color:#f5e6ff}[data-theme=dark] :is(.notice,.summary-box,.profile-facts,.comfort-guide){background:#34243f!important;color:#eadcf3}[data-theme=dark] .comfort-guide p,[data-theme=dark] .comfort-guide strong{color:#e4d5ee}[data-theme=dark] .single-question .answer-option{background:#2c2138;color:#e7daf1;border-color:#715784}[data-theme=dark] .single-question .answer-option.selected{background:#503761}[data-theme=dark] .calendar-day,[data-theme=dark] .nav-item,[data-theme=dark] .mobile-nav button{color:#d9c7e7}[data-theme=dark] .pill{background:#493255;color:#eed8ff}[data-theme=dark] .single-question{background:#2a2035!important}[data-theme=dark] .text-button{color:#d7b2f3}
@media(max-width:900px){.top-actions .icon-btn{min-width:40px;min-height:44px}.topbar{padding:8px 10px}.mobile-brand .brand-name{font-size:21px}.mobile-brand .logo-symbol{width:36px;height:36px}.health-hero{padding:22px}.card.stat{padding:18px}.stat-heading{align-items:flex-start}.stat-heading svg{width:24px;height:24px}.stat-heading .stat-label{font-size:.94rem!important}.single-question .question-text{font-size:21px;line-height:1.55}.comfort-guide{padding:18px!important}.page-heading p{font-size:.98rem}.btn.compact,.language-toggle{font-size:.9rem!important}.auth-card{border-radius:28px}.top-date{display:none}}
@media(prefers-reduced-motion:reduce){.star-burst{display:none}}
@media print{:root,html,body{background:white!important;color:#182238!important}.star-burst{display:none}}

.viewport-controls.single-screen{height:0!important;min-height:0;padding:0;overflow:hidden}.single-page-dialog[open]{top:50%!important;bottom:auto!important;transform:translateY(-50%)!important}.modal-head,.modal-footer,.viewport-controls{position:relative;z-index:2}.modal-head,.modal-footer{isolation:isolate}.eyebrow,.calendar-grid .weekday,.nav-label,.role,.name,.timeline h3{font-size:.9rem!important}.answer-Yes,.answer-yes{color:#b63261!important}.answer-No,.answer-no{color:#48658e!important}.answer-unknown{color:#936a1a!important}[data-theme=dark] .nav-item.active,[data-theme=dark] .mobile-nav button.active,[data-theme=dark] .calendar-day.today{background:#553768;color:#fff}[data-theme=dark] .answer-Yes{color:#ffa7c6!important}[data-theme=dark] .answer-No{color:#a8c6ff!important}[data-theme=dark] .answer-unknown{color:#f0ce80!important}


#app{position:relative;z-index:1}.single-question{position:relative;background:transparent!important;border-color:transparent!important;box-shadow:none!important}.ambient-stars{position:fixed;inset:0;pointer-events:none;z-index:0;display:none}.question-mode .ambient-stars{display:block}.ambient-stars span{position:absolute;left:calc(7% + var(--star)*13%);top:calc(18% + var(--star)*9%);color:#c9a4e6;font-size:calc(15px + var(--star)*2px);opacity:.28;animation:ambientTwinkle 5s ease-in-out infinite alternate;animation-delay:calc(var(--star)*-.65s)}@keyframes ambientTwinkle{to{opacity:.6;transform:translateY(-14px) rotate(12deg)}}@media(prefers-reduced-motion:reduce){.ambient-stars span{animation:none;opacity:.25}}


body:before{z-index:0}.stats{gap:0!important;background:#f5effa80;border:1px solid #e4d7ee;border-radius:26px;overflow:hidden}.stats .card.stat{background:transparent!important;border:0!important;border-radius:0;box-shadow:none}.stats .stat+.stat{border-inline-start:1px solid #e4d7ee!important}.more-grid .btn{background:transparent;border-color:transparent;justify-content:flex-start}.more-grid .btn:hover{background:#eee1f8}[data-theme=dark] .stats{background:#302339;border-color:#60466c}[data-theme=dark] .stats .stat+.stat{border-color:#60466c!important}@media(max-width:900px){.stats .stat:last-child{border-inline-start:0!important;border-top:1px solid #e4d7ee!important}}

@media(max-width:900px){.top-actions>[aria-label="Notifications"]{display:none}.top-actions .icon-btn{min-width:44px}}
html:not([data-theme=dark]) dialog{background:#fffdfa!important}[data-theme=dark] dialog{background:#241d31!important}.pill{font-size:.88rem}
