@font-face{font-family:WissRoboto;src:url(../fonts/roboto.ttf) format('truetype');font-weight:400;font-display:swap}
:root{--ink:#222e36;--muted:#737e86;--accent:#09a9c7;--line:#e5eaed;--surface:#fff;--bg:#f5f7f9;--empty-bar:#e7e9eb;--shadow:0 3px 13px #26384609}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px WissRoboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #078fa9;outline-offset:4px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}header{position:sticky;top:0;z-index:5;background:#fffffff5;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.headerInner{max-width:680px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:17px 20px;gap:16px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);min-width:0}.brand img{width:53px;height:53px}.brand>span{font-size:24px;letter-spacing:.3px;font-weight:bold;white-space:nowrap}.brand small{font-size:9px;letter-spacing:1px;text-transform:uppercase;font-weight:400;display:block;margin-top:5px}.headActions{display:flex;gap:7px;flex-shrink:0}.iconBtn{display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#47545d;min-width:40px;height:42px;font-size:27px}.iconBtn:hover{background:#edf5f7}.iconBtn svg{width:24px;height:24px}main{max-width:640px;margin:auto;padding:23px 18px 15px}.intro{padding:0 4px;margin-bottom:22px}.intro h1{font-size:25px;font-weight:bold;line-height:1.25;margin:4px 0 9px;letter-spacing:-.4px}.intro p{font-size:16px;line-height:1.45;margin:0;color:#4a565f}h2{font-size:17px;line-height:1.35;margin:0;font-weight:bold;letter-spacing:-.2px}.card{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:19px 18px;margin-bottom:13px;box-shadow:var(--shadow)}.card h2{color:#5e6b74}.forecast{padding:21px 20px 18px}.gauge{display:block;width:min(100%,340px);height:auto;aspect-ratio:320/175;stroke:none;margin:14px auto 0;overflow:visible}.gauge .needle{fill:none;stroke:#27343c;stroke-width:4;stroke-linecap:round}.gauge .needleCenter{fill:#27343c}.forecastNote{text-align:center;color:#77838b;line-height:1.4;font-size:12px;margin:9px auto 0;max-width:340px}.counters{display:grid;grid-template-columns:repeat(var(--count),minmax(0,1fr));gap:15px;margin-top:17px}.counter{text-align:center;min-width:0}.counterNumber{border:1px solid var(--category);border-radius:12px;font-size:24px;font-weight:bold;min-height:61px;display:flex;align-items:center;justify-content:center;color:#28363e;background:white}.counterNumber.filled{background:var(--category);border-color:var(--category)}.counter>span{display:block;color:#6c767e;font-size:10px;font-weight:bold;text-transform:uppercase;margin-top:9px;line-height:1.3;overflow-wrap:anywhere}.sleepCard{padding-bottom:21px}.sleepHeading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.sleepHeading>span{font-size:9px;color:#88939b;max-width:120px;text-align:right;line-height:1.4}.sleepRows{margin-top:13px}.sleepRow{display:grid;grid-template-columns:42px minmax(0,1fr) 37px;align-items:center;gap:9px;min-height:48px}.sleepDate{font-size:11px;color:#6b7780;line-height:1.25}.sleepDate strong{display:block;font-weight:400}.sleepDate span{font-size:10px}.sleepRail{height:17px;position:relative;border-radius:4px;overflow:hidden}.sleepRail i{display:block;height:100%;border-radius:4px}.sleepValue{font-size:11px;text-align:right;font-variant-numeric:tabular-nums}.pageVersion{max-width:640px;margin:0 auto;padding:0 23px 25px;font-size:9px;color:#929ba2}footer{position:fixed;right:max(20px,calc((100vw - 620px)/2));bottom:max(24px,env(safe-area-inset-bottom));z-index:6}.micButton{display:grid;place-items:center;width:60px;height:60px;border:0;border-radius:50%;background:var(--accent);color:#073c49;box-shadow:0 5px 17px #087f9d38;transition:transform .15s}.micButton:hover{transform:translateY(-2px)}.micButton svg{width:27px;height:31px;stroke-width:1.7}.srOnly{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;border:0!important}.primary{border:0;background:var(--accent);color:#073c49;border-radius:12px;padding:13px 18px;min-height:46px;font-weight:bold}.secondary{border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:12px 17px;min-height:45px}.wide{display:block;width:100%;margin-top:12px}.muted{color:var(--muted);line-height:1.6;font-size:14px}.empty{text-align:center;min-height:65vh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 15px}.empty img{width:150px;opacity:.18;margin:0 0 28px}.empty h1{font-size:24px;line-height:1.3;letter-spacing:-.5px;margin:5px 0}.empty p{max-width:320px}.emptyHelp{font-size:12px;color:#8b969e;line-height:1.5;max-width:300px}.session{padding:18px;margin-bottom:20px;border:1px solid #a8dce5;border-radius:16px;background:#edfafd}.sessionType{font-size:10px;color:#148ba4;text-transform:uppercase;letter-spacing:1px;display:block;margin-bottom:5px}.session p{font-size:13px;color:#5d737d;line-height:1.5}.session h2{font-size:18px}.session button{font-size:12px}.banner{padding:13px 15px;border:1px solid #e5c994;background:#fff8eb;border-radius:12px;margin-bottom:18px;font-size:13px;line-height:1.5}.banner button{border:0;background:none;color:#087f9d;text-decoration:underline;font-size:12px;margin-left:10px}.error{color:#c13f4a;font-size:13px;line-height:1.5}dialog{border:1px solid #e5eaed;border-radius:22px;box-shadow:0 20px 80px #152e4440;background:white;color:var(--ink);width:calc(100% - 32px);max-width:390px;padding:24px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#172b3f65;backdrop-filter:blur(2px)}.dialogHead{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialogHead h2{font-size:17px}.dialogHead .iconBtn{height:33px;min-width:33px;color:#75838c;background:#f5f7f8;font-size:24px}.popover{position:fixed;inset:90px max(14px,calc((100vw - 640px)/2)) auto auto;margin:0;width:300px;padding:13px 17px;border-radius:19px}.popover .dialogHead{padding:3px 0 7px}.popover .dialogHead h2{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:#89949b;font-weight:400}.menuItem{display:flex;align-items:center;gap:15px;background:none;border:0;border-bottom:1px solid #f0f3f5;width:100%;padding:17px 0;text-align:left;color:#34424b;font-size:15px;min-height:57px}.menuItem:last-child{border-bottom:0}.menuItem svg{width:22px;height:22px;color:#84939c;flex-shrink:0}.menuItem .chevron{margin-left:auto;color:#a6b1b8;font-size:19px}.menuItem.danger{color:#ae525c}.menuItem.danger svg{color:#ae7279}.eyebrow{font-size:10px;color:#1598b0;letter-spacing:1px;text-transform:uppercase}#login h2{font-size:21px;margin-top:18px}#loginHint{font-size:13px;margin:9px 0 19px}label{font-size:11px;color:#7d8b94;display:block}#code{width:100%;font:24px WissRoboto,Arial,sans-serif;letter-spacing:5px;text-align:center;padding:14px 8px;margin:7px 0 17px;border:1px solid #dce9ee;border-radius:12px;background:#f6fafb;color:#243e4a;caret-color:transparent}#code::placeholder{font-size:15px;color:#9eb4c0;letter-spacing:1px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.key{background:#f4fbfd;border:1px solid #acdce7;border-radius:14px;min-height:60px;font-size:27px;color:#059fbd}.key:active{background:#d9f2f7;transform:scale(.98)}.keyAction{font-size:15px;color:#4593a4}.confirmActions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.scanner{position:relative;border-radius:17px;overflow:hidden;background:#1b2e3b;height:330px;margin-top:18px}.scanner video{width:100%;height:100%;object-fit:cover}.scanFrame{position:absolute;inset:55px 35px;border:2px solid #3dd7e8;border-radius:14px}.fileButton{cursor:pointer;text-align:center;font-size:13px}#splash{position:fixed;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:23px;z-index:30}#splash img{width:100px}#splash p{font-size:13px;color:var(--muted)}.spinner{width:25px;height:25px;border:3px solid #e0edf1;border-top-color:var(--accent);border-radius:50%;animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.wiss-update{position:fixed;z-index:100;top:12px;left:50%;transform:translateX(-50%);width:calc(100% - 28px);max-width:620px;background:#fff8e9;border:1px solid #dfb564;padding:14px 17px;border-radius:16px;box-shadow:0 8px 30px #102c3920;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.wiss-update button{border:0;border-radius:10px;background:var(--accent);color:#073c49;padding:11px 14px;white-space:nowrap}.wiss-update button:disabled{opacity:.5}@media(max-width:360px){.headerInner{padding:13px 14px;gap:10px}.brand{gap:9px}.brand img{width:45px;height:45px}.brand>span{font-size:21px}.brand small{font-size:8px}.headActions{gap:0}.iconBtn{min-width:34px}main{padding:20px 12px 12px}.card{padding:17px 14px}.counters{gap:10px}.counterNumber{min-height:53px}.sleepHeading>span{max-width:100px}.key{min-height:54px}}@media(min-width:700px){.headerInner{padding:19px 20px}.brand img{width:54px;height:54px}main{padding-top:30px}.intro h1{font-size:28px}.intro p{font-size:17px}.card{padding:23px 25px;margin-bottom:17px}.forecastNote{font-size:13px}.counterNumber{min-height:68px;font-size:27px}.counter>span{font-size:11px}.sleepRow{min-height:53px;grid-template-columns:55px minmax(0,1fr) 42px;gap:13px}.sleepDate,.sleepValue{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation-duration:2s}}

/* Fixed application frame: only main scrolls; version stays at the bottom. */
html,body{height:100%;overflow:hidden}#shell{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{position:relative;flex-shrink:0}main{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;width:100%;padding-bottom:88px;scrollbar-gutter:stable}.pageVersion{flex-shrink:0;width:100%;max-width:none;text-align:center;padding:8px 20px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #edf0f2;color:#87929a;font-size:10px;z-index:7}footer{bottom:calc(45px + env(safe-area-inset-bottom));right:max(22px,calc((100vw - 620px)/2))}.micButton{width:64px;height:64px;background:linear-gradient(145deg,#25c5de 0%,#06a6c5 60%,#0794b5 100%);border:1px solid #ffffff80;box-shadow:0 4px 10px #07566c26,inset 0 1px 1px #ffffff80;position:relative;isolation:isolate}.micButton::after{display:none;content:'';position:absolute;z-index:-1;width:55px;height:14px;border-radius:50%;background:#155b7538;filter:blur(8px);bottom:-12px;left:4px}.micButton:active{transform:translateY(1px);box-shadow:0 2px 5px #07566c20,inset 0 1px 1px #ffffff80}#code{font-family:WissRoboto,Arial,sans-serif;font-size:29px;letter-spacing:8px;-webkit-text-security:none}.empty{min-height:calc(100% - 25px)}.webViewer{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}.webViewer[open]{display:flex;flex-direction:column}.viewerBar{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;background:white;border-bottom:1px solid var(--line);flex-shrink:0}.viewerBar h2{flex:1;font-size:16px}.viewerBar .close{font-size:27px}.webViewer iframe{display:block;flex:1;min-height:0;width:100%;border:0;background:white;padding-bottom:env(safe-area-inset-bottom)}.viewerLoading{position:absolute;inset:75px 0 0;display:grid;place-items:center;background:#ffffffd9;pointer-events:none}.webViewer .error{padding:12px}.emptyHelp{display:none}

/* User identity and dashboard readability. */
.brand{gap:10px;flex:1;min-width:0}.brand img{width:48px;height:48px;flex-shrink:0}.brand>.brandText{min-width:0;flex:1;overflow:hidden}.brandTitle{display:block;font-size:23px;font-weight:600;white-space:nowrap;letter-spacing:-.3px}.brandUsers{font-size:13px;font-weight:500;letter-spacing:0;color:#586873;white-space:nowrap}.brand small{font-size:12px;line-height:1.4;text-transform:none;letter-spacing:0;font-weight:500;color:#455966;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.headerInner{gap:10px}.intro{margin-bottom:16px}.intro p{font-size:17px;font-weight:500;line-height:1.5;color:#344956}.forecast{padding:17px 17px 14px}.gauge{margin:4px auto -4px;max-width:320px}.forecastNote{color:#4b5e6b;font-weight:500;line-height:1.45;margin:7px auto 0}.card h2{color:#394f5e;font-weight:600}.counter>span{color:#455864;font-weight:500;font-size:11px}.counterNumber{font-weight:600}.sleepDate{font-size:12px;color:#4f626e;font-weight:500}.sleepDate strong{font-weight:500}.sleepDate span{font-size:11px;font-weight:500}.sleepValue{font-size:12px;font-weight:500;color:#354f5e}.sleepHeading>span{color:#5f7380;font-weight:500}.pageVersion{color:#6d7f8b}@media(max-width:360px){.brand img{width:42px;height:42px}.brandTitle{font-size:20px}.brandUsers{font-size:11px}.brand small{font-size:11px}.brand{gap:8px}.headerInner{gap:7px}.intro p{font-size:16px}}@media(min-width:700px){.brandTitle{font-size:25px}.brandUsers{font-size:14px}.brand small{font-size:13px}.forecast{padding:19px 22px 16px}.intro p{font-size:18px}}

/* Shared WISS visual family: light cards, line icons and restrained color. */
:root{--bg:#f8f9f9;--line:#e4e9e9;--ink:#26363c;--shadow:0 2px 5px #253b4505}
header{border-bottom:1px solid #74ccdb;background:#fff}.headerInner{padding:18px 18px}.headActions .iconBtn{color:#10a5bd}.brandTitle{font-size:22px;letter-spacing:-.35px}.brandUsers{font-size:17px;font-weight:500;color:#29373c}.brand small{font-weight:600;color:#42565f;font-size:12px}
main{padding-top:20px}.intro{padding:0 2px;margin-bottom:17px}.intro p{font-size:17px;color:#35464e;font-weight:500}.card{border-radius:18px;border-color:#e3e9e9;padding:18px 17px;margin-bottom:16px;box-shadow:var(--shadow)}
.sectionTitle{display:flex;align-items:center;gap:10px;min-height:34px;font-size:17px;line-height:1.3}.sectionIcon{width:34px;height:34px;display:inline-grid;place-items:center;flex-shrink:0;border-radius:11px;background:#edf9fb;color:#079cb5}.sectionIcon svg{width:22px;height:22px;stroke-width:1.7}.card h2{color:#30434c;font-weight:600}
.forecast{padding:16px 17px 17px}.gauge{margin:2px auto -6px;max-width:310px}.forecastNote{color:#52656e;font-weight:500}.counters{gap:10px;margin-top:17px}.counter{padding:12px 4px 10px;border:1px solid #e9eded;border-radius:12px;background:#fcfdfd;display:flex;flex-direction:column;align-items:center;justify-content:center}.counterNumber,.counterNumber.filled{border:0;border-radius:0;min-height:38px;background:transparent;color:#354b55;color:color-mix(in srgb,var(--category) 52%,#172d36);font-size:29px;font-weight:600}.counter>span{margin-top:5px;font-size:11px;line-height:1.4;color:#4c606a;font-weight:500;text-transform:none}.sleepHeading{align-items:center}.sleepHeading>span{font-size:10px;max-width:100px}.sleepRows{margin-top:12px}.sleepRow{min-height:49px;border-bottom:1px solid #f0f3f3}.sleepRow:last-child{border-bottom:0}.sleepRail{height:14px;border-radius:7px;background:#f4f6f6}.sleepRail i{border-radius:7px}.sleepValue{font-weight:600}.sleepDate strong{font-weight:600}.pageVersion{background:var(--bg);border-top:0;color:#77858b;padding-top:9px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.menuItem svg{color:#119eb5}.primary{color:#fff}.micButton{color:#fff;background:#08abc5}
@media(max-width:380px){.headerInner{padding:15px 12px;gap:5px}.brand{gap:7px}.brand img{width:40px;height:40px}.brandTitle{font-size:19px}.brandUsers{font-size:15px}.brand small{font-size:11px}.headActions{gap:0}.headActions .iconBtn{min-width:32px}.card{padding:16px 14px}.sectionTitle{font-size:16px}.counters{gap:7px}.counterNumber{font-size:26px}.counter>span{font-size:10px}}
@media(min-width:700px){.brandTitle{font-size:25px}.brandUsers{font-size:19px}.brand small{font-size:13px}.card{padding:21px 23px}.forecast{padding:18px 23px}.intro p{font-size:18px}.counter{padding:15px 6px 12px}.counterNumber{font-size:32px}.counter>span{font-size:12px}}

/* Category tint and weekly completion. */
.counter{background:color-mix(in srgb,var(--category) 25%,white);border-color:color-mix(in srgb,var(--category) 30%,#e9eded)}
.weeklyProgress{display:flex;align-items:flex-start;gap:11px}.progressIcon{display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;border-radius:50%;background:#e9f6ed;color:#368851;margin-top:2px}.progressIcon svg{width:22px;height:22px}.weeklyProgress p{margin:3px 0 0}
/* Assessment flow */
.flowIdentity{display:flex;flex-direction:column;gap:5px;margin:0 3px 18px}.flowIdentity>span{font-size:12px;color:#63808c}.flowIdentity strong{font-size:20px;font-weight:600}.assessmentCard h3{font-size:15px;color:#405660;font-weight:500;margin:24px 0 12px}.readingText{font-size:18px;line-height:1.65;color:#3e555e;background:#f4fafb;border-radius:13px;padding:17px;margin:18px 0 8px}.recordMeter{width:180px;height:180px;margin:20px auto 12px;position:relative}.recordMeter>svg{width:100%;height:100%;stroke-width:10;transform:rotate(-90deg)}.recordMeter circle{stroke:#e8eef0;fill:none}.recordMeter #recordArc{stroke:#08abc5;stroke-dasharray:415;stroke-dashoffset:415;transition:stroke-dashoffset .1s linear}.recordMeter>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#079eb6}.recordMeter span svg{width:38px;height:38px}.recordMeter strong{font-size:26px;font-weight:500;font-variant-numeric:tabular-nums}.recordStatus{min-height:42px;text-align:center;font-size:14px;line-height:1.5;color:#546b76}.recordControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.recordControls button{font-size:13px;padding:11px 6px}.assessmentActions{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.assessmentActions>button{flex:1;max-width:280px}.flowChoices{display:grid;gap:12px;margin-top:19px}.answerList{margin:17px 0 0}.answerList>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #edf0f1;font-size:14px;line-height:1.5}.answerList>div:last-child{border-bottom:0}.answerList dt{color:#516772;flex:1}.answerList dd{margin:0;color:#137e95;font-weight:600;text-align:right;max-width:55%}.voiceHistory{margin-top:12px}.voiceHistory>div{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0f1;font-size:12px}.voiceHistory strong{font-weight:500}.dateField{display:flex;flex-direction:column;gap:10px;font-size:14px;color:#47616e;margin:15px 0}.dateField input{width:100%;min-width:0;color:#234552;background:#f7fafb;border:1px solid #dce8eb;border-radius:11px;padding:12px 8px;min-height:46px;font-size:15px;accent-color:#08abc5}.dateField input[type=range]{padding:0;border:0;background:transparent;min-height:25px}.dateField output{color:#0c839c;font-size:19px;font-weight:600;text-align:right}.datePair{display:grid;grid-template-columns:1fr;gap:0}.smartSleepNote{font-size:12px;color:#13879e}.reviewAudio{width:100%;margin-top:20px}.resultColumns{display:flex;justify-content:space-around;gap:16px;margin:23px 0}.resultColumns>div{display:flex;align-items:center;flex-direction:column;gap:12px;font-size:14px;color:#4c6570}.resultBadge{display:inline-grid;place-items:center;min-width:30px;min-height:30px;border-radius:50%;background:#edf1f3;color:#5a6f7a;padding:5px}.resultBadge[data-result=G]{background:#e3f3e6;color:#338148}.resultBadge[data-result=O]{background:#fff0d7;color:#a16708}.resultBadge[data-result=R]{background:#fce5e7;color:#bd3346}.resultColumns .resultBadge{width:64px;height:64px;font-size:26px}.finalResult{text-align:center}.resultBadge.large{width:88px;height:88px;margin:12px}.resultBadge.large svg{width:53px;height:53px}.finalResult p{font-size:16px;line-height:1.65;font-weight:500;color:#405963}.qualityOutcome{text-align:center;font-size:13px;color:#6a7c85}.assessmentCard input:disabled{opacity:.8;color:#3d6473}.assessmentCard .error:empty{display:none}@media(min-width:700px){.datePair{grid-template-columns:1fr 1fr;gap:14px}}
/* Process screens fit the available viewport; navigation stays visible. */
main.assessmentFlow{display:flex;flex-direction:column;gap:0;overflow:hidden;scrollbar-gutter:auto;padding:12px 16px 8px;--flow-scale:1}
.assessmentFlow>.card,.assessmentFlow>.banner{flex-shrink:0;zoom:var(--flow-scale)}
.assessmentFlow>.assessmentActions{flex-shrink:0;margin:8px 0 0;padding:8px 0 0;min-height:54px;gap:8px;margin-top:auto}
.assessmentFlow>.assessmentActions button{min-height:44px;padding:10px 12px;font-size:14px;max-width:none}
.assessmentFlow .assessmentCard{padding:14px;margin-bottom:10px;border-radius:16px}
.assessmentFlow .sectionTitle{font-size:15px;min-height:30px;gap:8px}.assessmentFlow .sectionIcon{width:30px;height:30px}
.assessmentFlow .readingText{font-size:16px;line-height:1.45;padding:13px;margin:12px 0}
.assessmentFlow .recordMeter{width:150px;height:150px;margin:12px auto 8px}.assessmentFlow .recordStatus{min-height:22px;font-size:13px;margin:9px 0 12px}
.assessmentFlow .datePair{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.assessmentFlow .dateField{margin:10px 0;gap:7px;font-size:13px}
.assessmentFlow .dateField input{font-size:13px;padding:9px 5px;min-height:42px}.assessmentFlow .assessmentCard h3{margin:17px 0 6px;font-size:14px}
.assessmentFlow .answerList{margin-top:10px}.assessmentFlow .answerList>div{padding:9px 0;font-size:13px;gap:10px}
.assessmentFlow .flowChoices{gap:8px;margin-top:12px}.assessmentFlow .voiceHistory>div{padding:7px 0}
.assessmentFlow .resultColumns{margin:14px 0}.assessmentFlow .resultColumns .resultBadge{width:48px;height:48px}.assessmentFlow .resultBadge.large{width:68px;height:68px;margin:6px}.assessmentFlow .resultBadge.large svg{width:43px;height:43px}.assessmentFlow .finalResult p{font-size:14px;line-height:1.45;margin:9px 0}.assessmentFlow .qualityOutcome{margin:8px 0}.assessmentFlow .reviewAudio{margin-top:12px}
@media(max-height:700px){.assessmentFlow .recordMeter{width:120px;height:120px;margin:8px auto}.assessmentFlow .readingText{font-size:15px;padding:10px}.assessmentFlow .assessmentCard{padding:12px}.assessmentFlow .sectionTitle{font-size:14px}}
.assessmentFlow>.flowIdentity{zoom:var(--flow-scale);margin:0 2px 10px}.assessmentFlow>.flowIdentity strong{font-size:16px}
@media(max-width:699px){.assessmentFlow .datePair{grid-template-columns:minmax(0,1fr);gap:0}.assessmentFlow .dateField{margin:6px 0;gap:4px}.assessmentFlow .dateField input{font-size:14px}}
/* Paired time sliders, matching the original interaction. */
.timeRange{margin:10px 0 16px}.rangeValues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rangeValues>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#f4fafb;border:1px solid #deebee;border-radius:12px;padding:10px 5px}.rangeValues span{font-size:12px;color:#5b727d}.rangeValues strong{font-size:14px;color:#176e83;font-weight:500;white-space:nowrap}.dualTrack{position:relative;height:42px;margin:5px 10px 0}.dualRail{position:absolute;left:0;right:0;top:19px;height:5px;background:#d7edf1;border-radius:8px;overflow:hidden}.dualRail i{position:absolute;height:100%;background:#08abc5;border-radius:8px}.dualTrack input[type=range]{position:absolute;inset:0;width:100%;height:42px;margin:0;padding:0;border:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none;outline-offset:1px}.dualTrack input[type=range]::-webkit-slider-runnable-track{height:5px;background:transparent}.dualTrack input[type=range]::-moz-range-track{height:5px;background:transparent}.dualTrack input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;border:2px solid white;background:#08abc5;box-shadow:0 1px 4px #14627a30;margin-top:-10px;pointer-events:auto;cursor:grab}.dualTrack input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;border:2px solid white;background:#08abc5;box-shadow:0 1px 4px #14627a30;pointer-events:auto;cursor:grab}.dualTrack input[type=range]:disabled::-webkit-slider-thumb{background:#8baeb8;pointer-events:none}.dualTrack input[type=range]:disabled::-moz-range-thumb{background:#8baeb8;pointer-events:none}.dualTrack input[type=range]:last-child{z-index:3}.dualTrack input[type=range]:focus-visible{outline:2px solid #078fa9;border-radius:8px}.assessmentFlow .dateField output{font-size:15px;font-weight:500;text-align:center;color:#176e83}.assessmentFlow .timeRange{margin-bottom:8px}
.pendingNotice{flex-shrink:0;border:0;border-bottom:1px solid #d7e9ed;background:#edf8fa;color:#176b80;font-size:13px;padding:9px 16px;text-align:center}.pendingRow{display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #e4ecef;padding:12px 0;font-size:13px;color:#4f6874}.pendingRow strong{color:#294b5c}.pendingRow small{line-height:1.5}#pendingReceipts h3{font-size:14px;color:#335e71;margin-top:22px}

.pullRefresh{position:fixed;top:72px;left:50%;z-index:25;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;box-shadow:0 2px 10px #0002;pointer-events:none}.pullRefresh[hidden]{display:none}.pullRefresh .spinner{width:24px;height:24px;margin:0}

.processingDialog{max-width:300px;text-align:center;padding:28px 24px}.processingDialog .spinner{display:block;margin:0 auto 16px}.processingDialog p{margin:0;line-height:1.5}.processingDialog::backdrop{background:#12333c70}

.assessmentFlow .assessmentCard.resultCard{padding:14px 14px 0}.assessmentFlow .resultCard .qualityOutcome{margin:16px -14px 0;padding:12px 14px;border-radius:0 0 15px 15px;font-size:15px;font-weight:700;letter-spacing:.02em;color:#536a73;background:#edf1f3;border-top:1px solid #00000008}.assessmentFlow .resultCard .qualityOutcome[data-result=G]{color:#276b3b;background:#e3f3e6}.assessmentFlow .resultCard .qualityOutcome[data-result=O]{color:#8a5705;background:#fff0d7}.assessmentFlow .resultCard .qualityOutcome[data-result=R]{color:#a92438;background:#fce5e7}

.assessmentFlow .readingText{text-align:center}

/* Multiple sleep periods remain readable; scroll rather than shrink controls. */
main.assessmentFlow[data-flow-step="question"]{display:block;overflow-y:auto;overscroll-behavior-y:contain;padding-bottom:8px}
.assessmentFlow[data-flow-step="question"]>.assessmentActions{position:sticky;bottom:0;background:var(--bg);padding:10px 0 4px;margin-top:8px;z-index:5}
.sleepPeriod{border:1px solid #dfedef;border-radius:12px;background:#f7fbfc;padding:10px 10px 6px;margin:10px 0}
.sleepPeriodHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#385864;min-height:30px}
.periodRemove{border:0;background:transparent;font-size:24px;line-height:1;color:#697f87;min-height:36px;min-width:36px;padding:4px}
.addSleepPeriod{width:100%;margin-top:4px;font-size:13px;min-height:40px;padding:9px 12px}
.sleepPeriodsHint{font-size:12px;line-height:1.5;color:#667c85;margin:8px 0}
.sleepTotalRow{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#eaf7fa;border-radius:10px;padding:11px 12px;font-size:13px;color:#345660}
.sleepTotalRow strong{color:#087f94;font-size:16px;text-align:right}
.smartSleepReadOnly{background:#f1f7f8;border-radius:12px;padding:8px 12px}
.smartSleepReadOnly>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px;color:#59707a}
.smartSleepReadOnly strong{text-align:right;color:#315e6a}

/* Compact assessment history; quality and fatigue use independent colors. */
.assessmentFlow .compactQuestions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;margin-top:12px}
.assessmentFlow .compactQuestions>div{display:block;padding:9px 0;min-width:0;font-size:12px;border-bottom:1px solid #edf0f1}
.assessmentFlow .compactQuestions dt{font-size:11px;line-height:1.35}
.assessmentFlow .compactQuestions dd{max-width:none;text-align:left;margin:3px 0 0;font-size:13px;line-height:1.4}
.textBadge{display:inline-block;text-align:center;border-radius:8px;padding:6px 9px;background:#edf1f3;color:#536a73;font-size:12px;font-weight:700}
.textBadge[data-result=G]{background:#e3f3e6;color:#338148}.textBadge[data-result=O]{background:#fff0d7;color:#a16708}.textBadge[data-result=R]{background:#fce5e7;color:#bd3346}
.assessmentFlow .voiceHistory .textBadge{font-weight:700}

/* Saved-profile access: compact placement and persistent server wait notice. */
footer{bottom:calc(33px + env(safe-area-inset-bottom))}.micButton{width:58px;height:58px}
.autoLoginWait{position:absolute;right:0;bottom:66px;width:min(250px,calc(100vw - 44px));margin:0;padding:10px 12px;border:1px solid #dce8eb;border-radius:10px;background:#fff;color:#52656e;box-shadow:0 2px 9px #26384612;font-size:12px;line-height:1.4}
.micButton:disabled{cursor:default;opacity:.5}
/* Compact mobile dashboard. */
.compactForecast{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,42%);align-items:center;gap:8px;padding:13px 15px}
.compactForecast .sectionTitle{font-size:14px;line-height:1.3}.compactForecast .sectionIcon{width:28px;height:28px;min-width:28px}.compactForecast .gauge{width:100%;max-width:160px;margin:0 auto}
.compactForecast .forecastNote{font-size:9px;line-height:1.3;margin:3px 0 0}.forecastRisk{display:block;font-size:25px;margin:5px 0 0 38px;color:#338148}.forecastRisk[data-risk=MEDIUM]{color:#a16708}.forecastRisk[data-risk=MEDIUM-HIGH]{color:#d27800}.forecastRisk[data-risk=HIGH]{color:#bd3346}
.dashboardQuestionnaire{padding:13px 15px}.questionnaireHeading{display:flex;justify-content:space-between;align-items:center;gap:8px}.questionnaireHeading .sectionTitle{font-size:14px}.questionnaireHeading .textBadge{font-size:10px;padding:5px 8px;flex-shrink:0}.questionnaireDate{margin:3px 0 8px 39px;font-size:11px;color:#6b7780}
.sleepMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:9px}.sleepMetrics>div{background:#f2f6f8;border-radius:10px;padding:8px 4px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}.sleepMetrics svg{width:21px;height:21px;color:#246b84}.sleepMetrics span{font-size:10px;line-height:1.3;min-height:26px;display:flex;align-items:center}.sleepMetrics strong{font-size:18px;color:#263e4c;font-variant-numeric:tabular-nums}
.weeklyCard{padding:13px 15px}.weeklyCard .sectionTitle{font-size:15px}.weeklyCard h3{font-size:12px;font-weight:500;color:#445b67;margin:9px 0 6px}.weeklyCard hr{border:0;border-top:1px solid #e4eaed;margin:10px 0}
.compactCounters{display:grid;grid-template-columns:repeat(var(--count),minmax(0,1fr));gap:7px}.compactCounter{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;padding:7px 4px;background:#edf1f3;color:#60727c}.compactCounter[data-result=G]{background:#e3f3e6;color:#338148}.compactCounter[data-result=O]{background:#fff0d7;color:#a16708}.compactCounter[data-result=R]{background:#fce5e7;color:#bd3346}.compactCounter strong{font-size:23px;line-height:1.2}.counterIcon{position:relative;display:inline-flex}.counterIcon svg{width:26px;height:26px}.crossedIcon::after{content:'';position:absolute;width:32px;height:2px;left:-3px;top:12px;background:currentColor;transform:rotate(-48deg);border-radius:2px}
.sleepCard{padding:13px 15px}.sleepCard .sectionTitle{font-size:15px}.sleepCard .sleepRows{margin-top:6px}.sleepCard .sleepRow{min-height:32px}.sleepCard .sleepRail{height:10px}.weeklyProgress{margin-bottom:10px}.weeklyProgress p{font-size:13px;line-height:1.35}
@media(max-width:360px){.compactCounter{gap:5px}.compactCounter strong{font-size:21px}.counterIcon svg{width:23px;height:23px}.compactForecast .sectionTitle{font-size:13px}.forecastRisk{font-size:22px;margin-left:0}}

.sleepMetrics strong.sleepLow,.sleepColumnValue.sleepLow{color:#bd3346}
.sleepColumns{display:grid;grid-template-columns:repeat(var(--days),minmax(0,1fr));gap:7px;margin-top:12px}
.sleepColumn{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.sleepColumnValue{font-size:11px;font-weight:700;color:#354b55;white-space:nowrap;font-variant-numeric:tabular-nums}
.sleepColumnTrack{height:76px;display:flex;align-items:flex-end;justify-content:center;width:100%;border-bottom:1px solid #dce7ec;background:linear-gradient(to top,#f2f6f8,transparent);border-radius:4px 4px 0 0}
.sleepColumnTrack i{display:block;width:65%;max-width:28px;background:#14b5e2;border-radius:5px 5px 0 0;min-height:0}
.sleepColumnDay{font-size:10px;color:#536a73;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sleepColumnDate{font-size:9px;color:#77858b;line-height:1.2;white-space:nowrap}
@media(max-width:360px){.sleepColumns{gap:4px}.sleepColumnValue{font-size:10px}.weeklyCard .sectionTitle{font-size:14px}}

.sleepColumnTrack i.sleepLowColumn{background:#dc3545}

/* Mobile questionnaire: one sleep period at a time. */
#main.assessmentFlow[data-flow-step="question"]{overflow:hidden;gap:0}
#main[data-flow-step="question"]>.assessmentCard{min-height:0;flex-shrink:1;padding:12px 14px;margin-bottom:8px;overflow:hidden}
#main[data-flow-step="question"] .sectionTitle{font-size:16px;line-height:1.35;margin:0 0 10px}
.questionTabs{display:flex;gap:7px;margin:0 0 10px}.questionTabs>button{min-height:43px;flex:1;font-size:14px;line-height:1.2;padding:8px 7px;border-radius:8px}.questionTabs .questionHelp{flex:0 0 38px;background:#fff;border:2px solid #09a9c7;color:#078aa4;font-size:22px;font-weight:bold}
.periodTabs{display:flex;gap:6px;margin-bottom:9px}.periodTabs>button{flex:1;min-height:38px;padding:7px 4px;font-size:13px;border-radius:7px}.periodTabs:has(button:only-child){display:none}
#main[data-flow-step="question"] .sleepPeriod{margin:0 0 9px;padding:10px;border-radius:10px}#main[data-flow-step="question"] .sleepPeriodHeading{font-size:14px;margin:0 0 8px}#main[data-flow-step="question"] .rangeValues{gap:8px;margin:0}#main[data-flow-step="question"] .rangeValues>div{padding:8px 4px}#main[data-flow-step="question"] .rangeValues strong{font-size:17px}#main[data-flow-step="question"] .rangeValues span{font-size:13px}#main[data-flow-step="question"] .dualTrack{margin:16px 0 10px;height:34px}
#main[data-flow-step="question"] .addSleepPeriod{font-size:14px;min-height:40px;padding:8px;margin:0}#main[data-flow-step="question"] .sleepPeriodsHint{display:none}#main[data-flow-step="question"] .sleepTotalRow{font-size:14px;min-height:41px;margin-top:9px;padding:9px 10px}#main[data-flow-step="question"] .sleepTotalRow strong{font-size:19px}
#main[data-flow-step="question"] #questionError{font-size:13px;margin:7px 0 0}#main[data-flow-step="question"] .assessmentActions{margin-top:auto;flex-shrink:0}#noticeText{white-space:pre-line}
@media(max-height:740px){#main[data-flow-step="question"]>.assessmentCard{padding:9px 12px}#main[data-flow-step="question"] .sectionTitle{font-size:15px;margin-bottom:7px}.questionTabs{margin-bottom:7px}.periodTabs{margin-bottom:6px}#main[data-flow-step="question"] .sleepPeriod{padding:8px;margin-bottom:6px}#main[data-flow-step="question"] .dualTrack{margin:10px 0 6px;height:28px}#main[data-flow-step="question"] .rangeValues>div{padding:5px 3px}#main[data-flow-step="question"] .sleepTotalRow{margin-top:6px;padding:7px 9px}}

/* Uniform visible release; placement remains native to each layout. */
[data-wiss-footer]{font-size:12px;font-weight:400;line-height:1.4;text-align:center;color:#74858b;}

/* Keep the microphone inside the fixed bottom dock, outside main's scroller. */
#shell{position:relative}
#shell>main:not(.assessmentFlow){padding-top:10px;padding-bottom:8px}
#shell>.pageVersion{min-height:calc(52px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;padding:6px 70px calc(6px + env(safe-area-inset-bottom));}
#shell>footer{position:absolute;inset:auto max(18px,calc((100% - 600px)/2)) calc(4px + env(safe-area-inset-bottom)) auto;height:58px;z-index:8;pointer-events:none}
#shell>footer .micButton,#shell>footer .autoLoginWait{pointer-events:auto}
#shell:has(#primary[hidden])>.pageVersion{min-height:0;padding:9px 20px max(10px,env(safe-area-inset-bottom))}

/* Compact dashboard spacing; keep recording/questionnaire controls unchanged. */
#shell>footer .micButton{width:58px;height:58px}
#shell>footer .micButton svg{width:27px;height:31px}
#shell:has(#primary:not([hidden])) .headerInner{padding-top:12px;padding-bottom:12px}
#main:not(.assessmentFlow)>.card{margin-bottom:8px}
#main:not(.assessmentFlow)>.card:last-child{margin-bottom:0}
#main:not(.assessmentFlow)>.sleepCard .sleepColumns{margin-top:8px}
