@font-face{font-family:Roboto;src:url("../fnts/Roboto-Regular.ttf") format("truetype");font-display:swap}*{box-sizing:border-box}:root{color-scheme:light;font-family:Roboto,Arial,sans-serif;color:#262626;background:#fafafa}body{margin:0;min-height:100dvh;background:#e9ecef}.app-shell{width:100%;max-width:500px;min-height:100vh;min-height:100dvh;margin:0 auto;display:flex;flex-direction:column;background:#fafafa;box-shadow:0 0 24px #00000010}header{background:white;border-bottom:1px solid #04afda;padding:18px max(18px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand img{width:46px;height:46px}.brand strong{display:block;font-size:22px;font-weight:400}.brand span{display:block;font-size:15px;margin-top:4px}button,input{font:inherit}button{cursor:pointer}main{flex:1;display:flex;align-items:center;justify-content:center;padding:28px 16px}.access{background:white;border-radius:20px;box-shadow:0 4px 20px #00000016;width:100%;max-width:400px;padding:26px 20px}.heading{display:flex;align-items:center;gap:16px}.heading>svg{width:29px;height:29px;color:#777;flex-shrink:0}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1{font-size:20px;font-weight:400;line-height:1.4;margin:0}.hint{font-size:14px;color:#666;line-height:1.5;margin:18px 0 28px}.field{display:flex;align-items:center;position:relative;border:1px solid #b6b6b6;border-radius:30px;height:58px;margin:0 0 30px;padding:0 17px;gap:12px}.field:focus-within{border-color:#049ac0;outline:2px solid #04afda25}.field label{position:absolute;left:30px;top:-9px;padding:0 7px;background:white;font-size:12px}.field>svg{width:19px;height:21px;flex-shrink:0}.field input{min-width:0;width:100%;height:48px;border:0;background:transparent;outline:0;font-size:16px;color:#262626}.field button{border:0;background:none;color:#04afda;width:44px;height:44px;padding:11px;flex-shrink:0}.field button svg{width:22px;height:22px}.notice{display:flex;gap:10px;background:#f0fafc;padding:14px;border-radius:12px}.notice svg{width:22px;height:22px;color:#049ac0;flex-shrink:0}.notice p{margin:0;font-size:13px;line-height:1.5;color:#454545}.actions{display:flex;justify-content:flex-end;margin-top:18px}.actions button{min-height:44px;border:0;background:none;color:#049ac0;padding:10px 14px;font-size:15px}.actions button:disabled{opacity:.5;cursor:wait}#message{font-size:14px;line-height:1.5;color:#b42318}footer{font-size:12px;color:#777;padding:14px 20px;text-align:center}button:focus-visible{outline:2px solid #049ac0;outline-offset:3px}@media(max-width:360px){header{padding:12px}.brand{gap:8px}.brand strong{font-size:20px}.access{padding:24px 16px}h1{font-size:18px}}
[hidden]{display:none!important}main{flex-direction:column;gap:18px}#startup{width:100%;max-width:400px;text-align:center;padding:20px;font-size:14px;line-height:1.5}#retry-init{border:0;background:#04afda;color:#fff;border-radius:22px;padding:12px 20px;min-height:44px}

.image-spinner-container{position:relative;width:200px;height:200px;margin:0 auto;display:flex;align-items:center;justify-content:center}.image-spinner-container img{position:absolute;width:80%;height:80%;object-fit:contain;border-radius:50%;z-index:2}.spinner-ring{position:absolute;inset:0;border:3px solid transparent;border-top-color:#04afda;border-right-color:#04afda;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.icon-button{border:0;background:transparent;color:#04afda;width:44px;height:44px;padding:10px}.icon-button svg{width:24px;height:24px}.app-menu{background:#fff;padding:8px 16px;border-bottom:1px solid #eee}.app-menu button,.app-menu a{display:flex;gap:12px;align-items:center;width:100%;border:0;background:none;text-decoration:none;color:#333;text-align:left;padding:13px 10px;font-size:15px;min-height:48px}.app-menu svg{width:21px;height:21px;color:#04afda;flex-shrink:0}.app-menu .menu-docs{border-top:1px solid #eee;margin-top:8px;padding-top:8px}dialog{border:0;border-radius:20px;padding:24px 20px;width:calc(100% - 32px);max-width:400px;max-height:calc(100dvh - 32px);overflow:auto;color:#262626;background:#fff;box-shadow:0 0 20px #0003}dialog::backdrop{background:#0006}.dialog-heading{display:flex;gap:14px;align-items:center;margin-bottom:25px}.dialog-heading svg{width:28px;height:28px;color:#777;flex-shrink:0}.dialog-heading h2{font-size:20px;font-weight:400;margin:0}.form-control{position:relative;margin-top:26px}.form-control label{position:absolute;top:-8px;left:20px;background:#fff;padding:0 6px;font-size:12px;z-index:1}.form-control input,.form-control select{width:100%;min-height:56px;border:1px solid #b6b6b6;border-radius:28px;padding:12px 20px;background:white;color:#262626;font:inherit;font-size:16px}.form-control :is(input,select):focus{outline:2px solid #04afda55;border-color:#049ac0}#new-user-message{text-align:center;font-size:14px;line-height:1.5;color:#b42318}#new-user-message.success{color:#27763b}

.header-actions{display:flex;align-items:center;gap:2px}.popup-backdrop{position:fixed;inset:0;background:#0003;z-index:20}.app-menu.popup{position:fixed;z-index:21;width:280px;max-width:calc(100vw - 16px);border:0;border-radius:10px;padding:8px 0;box-shadow:0 6px 24px #0004;overflow:auto}.app-menu.popup a,.app-menu.popup button{padding:13px 18px}.app-menu.popup a:hover,.app-menu.popup button:hover{background:#f2f8fa}header{position:relative;z-index:22}.brand{min-width:0}.header-actions{flex-shrink:0}@media(max-width:360px){.brand img{width:40px;height:40px}.brand strong{font-size:18px}.brand span{font-size:13px}}

/* Foreground notifications: centered within the mobile app. */
#push-notification-dialog{margin:auto;width:calc(100% - 32px);max-width:400px;padding:24px 20px;border-top:4px solid #04afda}
#push-notification-title{margin:0;font-size:20px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
#push-notification-body{margin:18px 0 0;font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#push-notification-dialog .actions{margin-top:20px}

#app-update-notice{position:fixed;z-index:30;bottom:16px;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:468px;background:#fff;border:1px solid #04afda;border-radius:12px;padding:14px 16px;box-shadow:0 4px 20px #0003;display:flex;align-items:center;gap:12px}
#app-update-notice p{margin:0;font-size:14px;line-height:1.4}
#app-update-notice button{border:0;border-radius:20px;background:#04afda;color:#fff;min-height:44px;padding:10px 14px;font:inherit}

/* Mobile supervisor dashboard. */
main.dashboard-active{display:block;padding:22px 16px 16px}#supervisor-dashboard{width:100%;min-width:0}.dashboard-title{font-size:23px;margin-bottom:20px}.dashboard-label{display:block;font-size:12px;color:#666;margin-bottom:7px}.dashboard-select{width:100%;min-height:48px;border:1px solid #ccc;border-radius:12px;background:#fff;padding:10px 12px;font:inherit;font-size:16px;color:#262626}.dashboard-tabs{display:flex;background:#e8edf0;border-radius:12px;padding:4px;margin-top:16px;gap:4px}.dashboard-tabs button{flex:1;border:0;border-radius:9px;min-height:44px;background:transparent;color:#555;font-size:14px;padding:8px}.dashboard-tabs button[aria-pressed=true]{background:#fff;color:#0085a8;box-shadow:0 1px 5px #0001}.dashboard-note{font-size:12px;line-height:1.5;color:#666;margin:10px 0 18px;overflow-wrap:anywhere}.dashboard-heading{font-size:17px;font-weight:500;margin:24px 0 12px}.dashboard-open{display:flex;align-items:center;gap:18px;border:1px solid #efc6c7;border-left:4px solid #cd333e;background:#fff1f1;border-radius:14px;padding:18px;color:#a72731}.dashboard-big{font-size:40px;font-weight:500}.dashboard-open span{font-size:17px}.dashboard-previous{display:block;border:0;background:transparent;color:#0085a8;text-align:left;padding:12px 0;min-height:44px;font-size:13px}.dashboard-caption{margin-top:-6px;margin-bottom:12px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-card{background:white;border:1px solid #e5e5e5;border-top:3px solid #ce3942;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;font-size:14px}.dashboard-card strong{font-size:32px;font-weight:500;color:#b52d36}.dashboard-card.orange{border-top-color:#e99426}.dashboard-card.orange strong{color:#b66c0a}.dashboard-color{font-size:12px;color:#777}.dashboard-notifications{list-style:none;padding:0;margin:0;border:1px solid #e5e5e5;border-radius:12px;background:#fff;overflow:hidden}.dashboard-notifications li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 14px;font-size:14px;line-height:1.4}.dashboard-notifications li+li{border-top:1px solid #eee}.dashboard-notifications strong{background:#edf7fa;color:#0085a8;border-radius:18px;min-width:32px;padding:5px 9px;text-align:center;font-size:15px;flex-shrink:0}.dashboard-select:focus-visible{outline:2px solid #04afda;outline-offset:3px}

/* Visual dashboard controls and consistent outline icons. */
main.dashboard-active{padding-top:16px}.dashboard-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.dashboard-group-control{position:relative;display:flex;align-items:center;background:#fff;border:1px solid #dce7ed;border-radius:12px}.dashboard-group-control>svg{position:absolute;left:14px;width:24px;height:24px;color:#4c6378;pointer-events:none}.dashboard-group-control .dashboard-select{border:0;background:transparent;padding-left:50px;font-weight:600}.dashboard-tabs{background:#f0f7fb;border:1px solid #e1edf3;padding:0;gap:0;margin-top:12px;overflow:hidden}.dashboard-tabs button{border-radius:10px;color:#334b63}.dashboard-tabs button[aria-pressed=true]{background:#04afda;color:white;box-shadow:none;font-weight:600}.dashboard-schedule{text-align:center;margin:7px 0 12px}.dashboard-heading{margin-top:20px;margin-bottom:10px}.dashboard-open{padding:14px 16px;gap:22px;min-height:90px}.dashboard-open>svg{width:40px;height:40px;flex-shrink:0;color:#e52332;stroke-width:2.2}.dashboard-open-text{display:flex;flex-direction:column;gap:1px}.dashboard-big{font-size:36px;line-height:1.1;color:#df1b2c}.dashboard-open-text>span{font-size:15px;font-weight:600;color:#262626}.dashboard-previous{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #efc6c7;border-radius:12px;padding:10px 14px;margin-top:8px;color:#40586b;text-align:left}.dashboard-previous>svg{width:23px;height:23px;flex-shrink:0}.dashboard-card{display:flex;flex-direction:row;align-items:center;gap:9px;padding:13px 10px;border:1px solid #e1e9ef;min-height:82px;box-shadow:0 2px 5px #00000004}.dashboard-icon-badge{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:40px;border-radius:50%;background:#fff0f0;color:#e52332}.dashboard-icon-badge svg{width:25px;height:28px}.dashboard-card-text{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.dashboard-card-text>span:first-child{font-size:13px;font-weight:600}.dashboard-card strong{margin-left:auto;font-size:30px;color:#e52332;overflow-wrap:anywhere}.dashboard-card.orange{border-top-color:#e1e9ef}.dashboard-card.orange .dashboard-icon-badge{background:#fff6e8;color:#ed920c}.dashboard-card.orange strong{color:#dc8200}.dashboard-notifications li{gap:12px;padding:14px 12px}.dashboard-notifications li>svg{width:25px;height:25px;flex-shrink:0;color:#04afda}.dashboard-notifications li.red_voice>svg{color:#e52332}.dashboard-notifications li.awake>svg{color:#ed920c}.dashboard-notifications li>span{flex:1}.dashboard-notifications strong{background:#fff0f0;color:#d71e2e}@media(max-width:360px){.dashboard-grid{gap:8px}.dashboard-card{gap:6px;padding:12px 8px}.dashboard-icon-badge{width:27px;height:34px}.dashboard-icon-badge svg{width:22px}.dashboard-card-text>span:first-child{font-size:12px}.dashboard-card strong{font-size:26px}}

button.dashboard-open{width:100%;font:inherit;text-align:left;cursor:pointer}button.dashboard-open:hover{background:#ffe8e8}.alert-list-back{min-height:44px;border:1px solid #dce7ed;border-radius:12px;padding:10px 16px;background:white;color:#0085a8;font:inherit;font-size:14px;margin-bottom:12px}.alert-list-title{font-size:22px}.alert-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}.alert-list-card{background:white;border:1px solid #e1e9ef;border-radius:14px;padding:16px;overflow-wrap:anywhere}.alert-list-card h3{font-size:16px;line-height:1.4;margin:0 0 8px;font-weight:600}.alert-list-meta{font-size:12px;color:#666;line-height:1.5;margin:3px 0}.alert-list-results{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.alert-risk{display:flex;align-items:center;gap:6px;font-size:12px;border-radius:8px;padding:8px;background:#f2f4f5;color:#555}.alert-risk svg{width:19px;height:19px;flex-shrink:0}.alert-risk.RED{background:#fff0f0;color:#b42331}.alert-risk.ORANGE{background:#fff4e2;color:#945600}.alert-risk.GREEN{background:#edf8f0;color:#26743b}.alert-list-state{font-size:13px;line-height:1.5;margin:12px 0 0;color:#40586b}.alert-list-empty{font-size:14px;line-height:1.6;padding:20px 16px;background:white;border:1px solid #e1e9ef;border-radius:12px}.alert-list-group{margin-bottom:24px}

/* Alert list: compact mobile navigation and clearer card hierarchy. */
.alert-list-header{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-height:48px}.alert-list-header .alert-list-back{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;margin:0;padding:10px;border:0;background:transparent;border-radius:50%;color:#0085a8}.alert-list-back svg{width:25px;height:25px}.alert-list-header .alert-list-back:hover{background:#e8f6fb}.alert-list-heading{display:flex;align-items:center;gap:10px;min-width:0}.alert-list-heading>svg{width:25px;height:25px;color:#d42535;flex-shrink:0}.alert-list-title{font-size:20px;font-weight:500;line-height:1.3}.alert-list-context{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:12px 14px;border:1px solid #e1e9ef;border-radius:12px;background:#fff;color:#40586b;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.alert-list-context svg{width:22px;height:22px;flex-shrink:0;color:#587084}.alert-list-group>.dashboard-heading{font-size:14px;color:#40586b;margin-bottom:4px}.alert-list-group>.dashboard-note{margin-top:4px}.alert-list-person{display:flex;align-items:center;gap:11px}.alert-list-avatar{width:38px;height:38px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eaf8fc;color:#0099c1}.alert-list-avatar svg{width:23px;height:23px}.alert-list-person h3{margin:0 0 2px}.alert-list-recorded{display:flex;align-items:center;gap:7px;color:#637585;font-size:12px;line-height:1.5;margin:13px 0 0}.alert-list-recorded svg{width:16px;height:16px;flex-shrink:0}.alert-list-card{padding:15px;box-shadow:0 2px 8px #213b5505}.alert-list-state{border-top:1px solid #eef1f4;padding-top:11px;margin-top:13px;font-size:12px}.alert-list-results{margin-top:13px}.alert-list-empty{color:#637585;text-align:center;padding:32px 20px;border-style:dashed;background:#fcfeff}.alert-list-retry{min-height:44px;padding:10px 18px;background:#04afda;color:#fff;border:0;border-radius:22px;font:inherit;font-size:14px}

button.dashboard-card{width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer}button.dashboard-card:hover{background:#fff9f9}button.dashboard-card.orange:hover{background:#fffaf2}.alert-list-heading.voice_orange>svg{color:#dc8200}

/* Compact recording time and alert status on the same row. */
.alert-list-info{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;column-gap:14px;row-gap:5px;margin-top:13px}.alert-list-info .alert-list-recorded{margin:0}.alert-list-info .alert-list-state{margin:0;padding:0;border:0;font-size:12px;line-height:1.5}

.alert-list-heading.questionnaire_orange>svg{color:#dc8200}.alert-sleep-details{margin-top:13px;border-top:1px solid #edf1f4;padding-top:3px}.alert-sleep-details summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:#0085a8;font-size:13px;list-style:none}.alert-sleep-details summary::-webkit-details-marker{display:none}.alert-sleep-details summary>svg{width:19px;height:19px;flex-shrink:0}.alert-sleep-details summary::after{content:'⌄';margin-left:auto;font-size:19px}.alert-sleep-details[open] summary::after{transform:rotate(180deg)}.alert-sleep-details summary:focus-visible{outline:2px solid #04afda;outline-offset:2px;border-radius:6px}.alert-sleep-values{margin:2px 0 0;background:#f4fafc;border-radius:10px;padding:4px 12px}.alert-sleep-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:10px 0;font-size:12px;line-height:1.5}.alert-sleep-values>div+div{border-top:1px solid #e3edf2}.alert-sleep-values dt{color:#526b7d}.alert-sleep-values dd{margin:0;white-space:nowrap;font-size:15px;font-weight:600;color:#263e50}

/* Independent interventions; red voice risk is emphasized without reordering time. */
.alert-list-card.urgent-voice{border-left:4px solid #d42535;background:#fffdfd}.alert-urgent-label{display:flex;align-items:center;gap:7px;margin:0 0 12px;font-size:12px;font-weight:600;color:#b42331}.alert-urgent-label svg{width:18px;height:18px;flex-shrink:0}.dashboard-notifications li.additional_awake>svg{color:#ed920c}

/* Always-visible, two-row sleep support table. */
.alert-list-info .alert-list-state.unreviewed{color:#c82434;font-weight:600}.alert-sleep-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;margin-top:13px;background:#f2f8fb;border:1px solid #e3edf2;border-radius:9px;overflow:hidden;text-align:center}.alert-sleep-table th{font-size:11px;font-weight:400;color:#526b7d;line-height:1.35;padding:9px 5px 5px;vertical-align:middle}.alert-sleep-table td{font-size:16px;font-weight:600;color:#263e50;padding:0 5px 9px;line-height:1.4}.alert-sleep-table th+th,.alert-sleep-table td+td{border-left:1px solid #e0eaf0}

.alert-card-actions{display:flex;justify-content:flex-end;margin-top:10px}.alert-action-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 12px;border:1px solid #04afda;border-radius:22px;background:#fff;color:#0085a8;font:inherit;font-size:13px}.alert-action-button svg{width:18px;height:18px}.alert-action-button:hover{background:#edf9fd}.alert-action-heading{display:flex;align-items:center;gap:10px}.alert-action-heading>svg{width:25px;height:25px;color:#0099c1;flex-shrink:0}.alert-action-heading h2{margin:0;font-size:20px;font-weight:500}.alert-action-preview-note{padding:10px 12px;border-radius:9px;background:#edf8fc;color:#456475;font-size:12px;line-height:1.5;margin:16px 0}.alert-action-user{font-size:16px;margin:16px 0 6px}.alert-action-preview .alert-list-state{border:0;margin:8px 0 0;padding:0}.alert-action-preview .alert-list-state.unreviewed{color:#c82434;font-weight:600}.alert-action-label{display:block;font-size:12px;margin:18px 0 7px;color:#526b7d}.alert-action-select,.alert-action-comment{width:100%;border:1px solid #cddae2;border-radius:10px;background:#fff;color:#263e50;padding:12px;font:inherit;font-size:15px}.alert-action-select{min-height:48px}.alert-action-comment{resize:vertical;min-height:80px}.alert-action-select:focus,.alert-action-comment:focus{outline:2px solid #04afda55;border-color:#04afda}.alert-action-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}.alert-action-footer button{min-height:44px;padding:10px 14px;border-radius:22px;font:inherit;font-size:14px}.alert-preview-close{border:1px solid #dce7ed;color:#0085a8;background:#fff}.alert-preview-save{border:0;background:#04afda;color:white}.alert-preview-save:disabled{background:#e2e8ed;color:#71818d;cursor:default}

.alert-sleep-table td.sleep-low{color:#c82434;background:#fff0f0}

/* Keep source results in consistent left/right columns. */
.alert-list-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.alert-list-results .alert-risk{min-width:0}.alert-list-results .alert-risk>span{overflow-wrap:anywhere}

.alert-management{margin-top:16px;border-top:1px solid #e4edf2;padding-top:12px;min-height:48px}.alert-management .alert-list-state.unreviewed{color:#c82434;font-weight:600}.alert-management-ack{font-size:12px;color:#526b7d;line-height:1.5;margin:8px 0}.alert-history-title{font-size:14px;font-weight:500;margin:16px 0 10px}.alert-history{list-style:none;margin:0;padding:0}.alert-history li{border-left:2px solid #cfe7f1;padding:0 0 14px 12px}.alert-history li+li{padding-top:4px}.alert-history strong{font-size:13px;font-weight:500;color:#263e50}.alert-history-comment{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0;color:#526b7d}.alert-management-message,.alert-management-error{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.alert-management-error{color:#b42331}.alert-management-message:empty{display:none}.alert-management-message .alert-list-retry{display:block;margin-top:8px}.alert-management-spinner{display:block;width:30px;height:30px;margin:12px auto;border:3px solid #e0f2f8;border-top-color:#04afda;border-radius:50%;animation:spin .9s linear infinite}

/* Signed-in supervisor identity in the anchored menu. */

/* Signed-in identity remains visible without opening a menu. */
.brand{flex:1;min-width:0}.brand>img{flex-shrink:0}.brand>div{min-width:0}.brand span.supervisor-identity{font-size:12px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}.header-actions{margin-left:8px}
.dashboard-notifications li{padding:0}.dashboard-notification-button{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;border:0;background:transparent;text-align:left;color:inherit;padding:14px 12px;font-size:14px;line-height:1.4}.dashboard-notification-button>span{flex:1}.dashboard-notification-button>svg{width:25px;height:25px;flex-shrink:0;color:#04afda}.dashboard-notification-button>svg:last-child{width:17px;height:17px;color:#66818e}.additional_awake .dashboard-notification-button>svg:first-child{color:#ed920c}.dashboard-notification-button:hover{background:#f3fafc}.notification-message{font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.notification-card .alert-list-recorded{margin-top:12px}.notification-card .alert-sleep-table{margin-top:14px}

/* Severity-first lists and clear management states. */
.alert-list-state.reviewed-state{color:#00749c;font-weight:700}.alert-list-state.closed-state{color:#237640;font-weight:700}.alert-list-state.unreviewed{color:#c82434;font-weight:700}.alert-card-group{font-size:12px;color:#526b7d;margin:0 0 10px;font-weight:500}.questionnaire-voice-list{list-style:none;margin:16px 0 0;padding:0}.questionnaire-voice-row{padding:13px 0;border-top:1px solid #e1e9ef}.questionnaire-voice-row .alert-risk{display:inline-flex;margin-top:5px}.questionnaire-voice-row .alert-action-button{margin-top:10px}.questionnaire-voice-row .alert-list-state{border:0;padding:0;margin-top:7px}.brand strong{font-size:17px;line-height:1.3}.brand strong b{font-weight:700}.brand .brand-role{display:inline;font-size:15px;font-style:normal;font-weight:400}.brand span.supervisor-identity{font-size:11px;line-height:1.4}@media(max-width:360px){.brand strong{font-size:15px}.brand .brand-role{font-size:13px}}

.questionnaire-voice-metadata,.questionnaire-voice-result{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:8px 12px}.questionnaire-voice-metadata>p{margin:0}.questionnaire-voice-result{margin-top:7px}.questionnaire-voice-result .alert-risk{justify-self:start;margin:0}.questionnaire-voice-result .alert-list-state,.questionnaire-voice-result>.alert-list-meta{margin:0;padding:0;border:0}.questionnaire-voice-metadata>p:last-child,.questionnaire-voice-result>p:last-child{text-align:right}.questionnaire-voice-row{padding:12px 0}

/* Back always returns one level in the current navigation path. */
.alert-action-heading>.alert-preview-close,.dialog-heading>.dialog-back{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;border:0;border-radius:50%;padding:10px;background:transparent;color:#0085a8;margin-left:-6px}.alert-action-heading>.alert-preview-close svg,.dialog-heading>.dialog-back svg{width:24px;height:24px}.alert-action-heading>.alert-preview-close:hover,.dialog-heading>.dialog-back:hover{background:#e8f6fb}.alert-action-heading>.alert-preview-close:disabled,.dialog-heading>.dialog-back:disabled{opacity:.5;cursor:wait}.alert-action-heading h2{min-width:0}.dialog-heading>.dialog-back+svg{flex-shrink:0}

/* Compact action buttons, aligned consistently with card actions. */
.alert-action-button{min-height:36px;padding:6px 12px;border-radius:9px;line-height:1.35}
.questionnaire-voice-row>.alert-action-button{margin-left:auto}
.alert-action-footer button,.actions button,.alert-list-retry{min-height:36px;padding:6px 13px;border-radius:9px;line-height:1.35}
.alert-action-footer,.actions{margin-top:14px}

/* Equal-width recording badges, matching the two-column result summary. */
.questionnaire-voice-metadata,.questionnaire-voice-result{grid-template-columns:repeat(2,minmax(0,1fr))}.questionnaire-voice-result>.alert-risk{display:flex;width:100%;min-width:0;justify-self:stretch;box-sizing:border-box}

/* Open state and urgent voice risk are independent. */
button.dashboard-open.orange{border-color:#efd5ac;border-left-color:#d78716;background:#fff5e7;color:#925600}
button.dashboard-open.orange:hover{background:#ffeed5}
button.dashboard-open.neutral{border-color:#dce5eb;border-left-color:#8a9eac;background:#f4f7f9;color:#526b7d}
button.dashboard-open.neutral:hover{background:#eaf0f4}

.notification-dates{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:13px}.notification-dates .alert-list-recorded,.notification-dates .alert-list-meta{margin:0;font-size:11px;line-height:1.5}.notification-dates .alert-list-recorded{gap:4px}.notification-dates .alert-list-recorded svg{width:14px;height:14px}.notification-dates>p{white-space:nowrap}

/* Touch tablets use the available width while desktop retains the mobile preview. */
@media (min-width:600px) and (pointer:coarse){
  .app-shell{max-width:none;box-shadow:none}
  main.dashboard-active{padding:24px}
  .dashboard-select{max-width:560px}
  .alert-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
  .alert-list-card{min-width:0}
  .notification-dates{flex-wrap:wrap}
  .alert-action-preview{width:calc(100% - 48px);max-width:640px}
}
@media (min-width:900px) and (pointer:coarse){
  .dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:600px) and (max-width:759px) and (pointer:coarse){
  .alert-list{grid-template-columns:minmax(0,1fr)}
}

/* App-owned group picker: consistent touch and keyboard presentation. */
.custom-group-control{isolation:isolate;z-index:10;width:100%;border-radius:12px}
.custom-group-control .group-picker-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:10px 14px;text-align:left;color:#263e50;cursor:pointer;font-size:15px;border-radius:12px}
.group-picker-trigger>svg:first-child{width:24px;height:24px;flex-shrink:0;color:#526b7d}
.group-picker-trigger>svg:last-child{width:20px;height:20px;flex-shrink:0;margin-left:auto;color:#0085a8;transition:transform .15s}
.group-picker-trigger[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.group-picker-value{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.custom-group-control:focus-within{border-color:#04afda;box-shadow:0 0 0 2px #04afda1c}
.group-picker-menu{position:absolute;top:calc(100% + 7px);left:0;right:0;max-height:min(320px,50dvh);overflow-y:auto;overscroll-behavior:contain;padding:5px;background:#fff;border:1px solid #dce7ed;border-radius:12px;box-shadow:0 8px 24px #213b5526;z-index:30}
.group-picker-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;border:0;border-radius:8px;background:#fff;color:#40586b;padding:11px 12px;text-align:left;font:inherit;font-size:14px;line-height:1.4}
.group-picker-option>span:first-child{min-width:0;overflow-wrap:anywhere}
.group-picker-option.selected{background:#e9f8fc;color:#007b9d;font-weight:600}
.group-picker-option:hover,.group-picker-option:focus-visible{background:#f0f9fc}
.group-picker-option.selected:hover,.group-picker-option.selected:focus-visible{background:#ddf3fa}
.group-picker-check{width:20px;flex-shrink:0;text-align:center;color:#009bc2;font-size:17px}
@media(min-width:600px) and (pointer:coarse){.custom-group-control{max-width:560px}}
@media(prefers-reduced-motion:reduce){.group-picker-trigger>svg:last-child{transition:none}}

/* Header popups match the rounded, neutral menus in WISS-APP. */
.app-menu.popup{width:260px;border-radius:22px;padding:8px 0;background:#fff;box-shadow:0 10px 30px #0003}
.app-menu.popup a,.app-menu.popup button{min-height:49px;padding:12px 18px;gap:24px;font-size:15px;line-height:1.4;color:#171717}
.app-menu.popup svg{width:24px;height:24px;color:#808080;stroke-width:1.6}
.app-menu.popup a:hover,.app-menu.popup button:hover{background:#f4f6f7}
.app-menu.popup a:focus-visible,.app-menu.popup button:focus-visible{outline-offset:-3px;border-radius:8px;background:#f0f7fa}

/* Notice metadata and the shared action picker presentation. */
.notification-dates{align-items:center;flex-wrap:wrap}
.notification-dates>.alert-list-recorded{display:flex;align-items:center;gap:4px}
.notification-dates svg{flex:0 0 14px}
.notification-device{display:inline-flex;align-items:center;gap:5px;margin:12px 0 2px;padding:6px 10px;border-radius:7px;background:#e9f8fc;color:#176078;font-size:13px}
.notification-device strong{font-weight:700}
.action-choice-control{position:relative;display:block;width:100%;max-width:none}
.action-choice-control .group-picker-trigger:disabled{opacity:.6;cursor:default}
.alert-action-select[hidden]{display:none}

/* Keep action choices inside the dialog scroll area, including on small phones. */
.action-choice-control .group-picker-menu{position:relative;top:auto;left:auto;right:auto;width:100%;margin-top:7px;max-height:min(260px,40dvh);touch-action:pan-y;-webkit-overflow-scrolling:touch}
.alert-action-preview .alert-management{margin-top:24px;padding-top:16px;border-top:1px solid #dce7ed}

.notification-audio-player{display:block;width:100%;margin-top:18px}.notification-audio-player[hidden]{display:none}

.questionnaire-sleep-four{table-layout:fixed;width:100%}
.questionnaire-sleep-four th{width:25%;font-size:10px;overflow-wrap:anywhere;padding:8px 4px}
.questionnaire-sleep-four td{padding:8px 4px;font-size:14px}
.questionnaire-assessment{margin-top:12px}
.questionnaire-assessment-title{font-size:12px;margin:0 0 7px;color:#263e50;font-weight:600}
.questionnaire-assessment .alert-risk{font-size:11px;line-height:1.4;align-items:flex-start}
.questionnaire-assessment-reason{font-size:12px;line-height:1.5;color:#263e50;font-weight:600;margin:8px 0}
.questionnaire-assessment-note{font-size:11px;line-height:1.5;color:#526b7d;margin:10px 0 5px}
