/* Shared progressive-disclosure layout. Recording, safety and save states stay visible. */
.cosmos-toolbar{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,calc((100vw - 1100px)/2));background:#09172e;color:#e9f0ff;border-bottom:1px solid #31476c;font:15px/1.4 system-ui;position:relative;z-index:100}
.cosmos-toolbar a{color:#d8eaff;text-decoration:none}.cosmos-toolbar .cosmos-wordmark{font-weight:800;letter-spacing:.1em}.cosmos-toolbar .cosmos-app-label{font-weight:650}.cosmos-toolbar .cosmos-menu{position:relative}.cosmos-menu summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 14px;border:1px solid #5a77ad;border-radius:10px;list-style:none}.cosmos-menu nav{position:absolute;right:0;top:calc(100% + 8px);width:230px;max-width:80vw;padding:8px;background:#102649;border:1px solid #5876ad;border-radius:12px;box-shadow:0 12px 34px #0008}.cosmos-menu nav a{display:block;padding:12px;border-radius:8px;min-height:44px}.cosmos-menu nav a:hover,.cosmos-menu nav a[aria-current]{background:#254c83}.cosmos-observer{font-size:13px;color:#c2d1ea}
.cosmos-disclosure{margin:14px 0;border:1px solid #45608b;border-radius:12px;background:#102447;color:#d9e5ff;padding:0 14px;min-width:0;max-width:100%;box-sizing:border-box}.cosmos-disclosure>summary{padding:13px 0;min-height:44px;cursor:pointer;font:600 15px/1.4 system-ui}.cosmos-disclosure[open]{padding-bottom:14px}.cosmos-disclosure p{line-height:1.5}.cosmos-disclosure>section,.cosmos-disclosure>.panel{margin:0!important}.cosmos-disclosure .cosmos-disclosure{background:#132d52}.cosmos-quiet{font-size:13px!important;color:#bdcce5!important;line-height:1.45!important}.cosmos-task-title{font-size:clamp(25px,5vw,34px)!important;margin:12px 0!important}
body[data-cosmos-app] nav[aria-label="COSMOS applications"],body[data-cosmos-app] .branch-nav{display:none!important}
body[data-cosmos-app="supernova"] .banner,body[data-cosmos-app="supernova"] .top .device,body[data-cosmos-app="supernova"] .top .header-privacy{display:none!important}
body[data-cosmos-app="supernova"] .shell{max-width:1050px;padding-top:12px}body[data-cosmos-app="supernova"] .top{margin-bottom:10px;padding:0 0 8px}body[data-cosmos-app="supernova"] .brand img{width:38px;height:38px}body[data-cosmos-app="supernova"] .brand strong{font-size:21px}body[data-cosmos-app="supernova"] .brand small{display:none}body[data-cosmos-app="supernova"] .quick-heading{margin:10px 0 14px}body[data-cosmos-app="supernova"] .quick-heading .eyebrow,body[data-cosmos-app="supernova"] .quick-heading p{display:none}body[data-cosmos-app="supernova"] .quick-heading h2{font-size:28px;margin:0}body[data-cosmos-app="supernova"] .quick-card{padding:15px;margin-bottom:12px}body[data-cosmos-app="supernova"] .quick-card h3,body[data-cosmos-app="supernova"] .photo-attach h3{font-size:18px;margin:0 0 12px}body[data-cosmos-app="supernova"] .photo-attach{padding:15px;margin:12px 0}body[data-cosmos-app="supernova"] #quickSave{min-height:60px;font-size:19px}body[data-cosmos-app="supernova"] .quick-grid button,body[data-cosmos-app="supernova"] .quick-severity button{min-height:56px}body[data-cosmos-app="supernova"] .welcome{padding:12px 0}body[data-cosmos-app="supernova"] .welcome .eyebrow,body[data-cosmos-app="supernova"] .welcome>p{display:none}body[data-cosmos-app="supernova"] .home-option{min-height:105px;padding:14px}.cosmos-code-tools .roster-transfer{margin:10px 0}.cosmos-code-tools .quick-new-row{margin-top:10px}
body[data-cosmos-app="nebula"] #workspace>header{padding:12px 0 16px}body[data-cosmos-app="nebula"] #workspace>header h1{font-size:30px;margin:8px 0}body[data-cosmos-app="nebula"] #workspace>header>p,body[data-cosmos-app="nebula"] #workspace>header .eyebrow{display:none}body[data-cosmos-app="nebula"] #setupForm label:has(#observer){display:none}body[data-cosmos-app="nebula"] #setupForm .actions{margin-top:16px}body[data-cosmos-app="nebula"] .checkin .behavior{min-height:96px}body[data-cosmos-app="nebula"] #active .footer{z-index:110}
body[data-cosmos-app="polaris"] #polarisApp>.top{padding:12px 0;margin:0 0 12px;min-height:0}body[data-cosmos-app="polaris"] #polarisApp>.top h1{font-size:30px;margin:0}body[data-cosmos-app="polaris"] #polarisApp>.top .eyebrow,body[data-cosmos-app="polaris"] #polarisApp>.top strong,body[data-cosmos-app="polaris"] #polarisApp>.top .lead,body[data-cosmos-app="polaris"] #polarisApp>.top .logo{display:none}body[data-cosmos-app="polaris"] #scenario>.grid{display:block}body[data-cosmos-app="polaris"] .tabs{gap:7px;overflow-x:auto;flex-wrap:nowrap;padding:8px 0;margin:8px 0 15px}body[data-cosmos-app="polaris"] .tabs button{min-height:46px;white-space:nowrap;padding:10px 14px}body[data-cosmos-app="polaris"] #setupPanel h2{font-size:23px;margin-top:0}.cosmos-training-brief{padding:10px 14px;border:1px solid #82672d;background:#392c14;color:#ffe6ad;border-radius:10px;margin:8px 0;font-size:14px}.cosmos-optional-setup{margin:12px 0}.cosmos-optional-setup textarea{min-height:70px}
body.cosmos-account main{max-width:850px!important;padding-top:24px!important}body.cosmos-account h1{font-size:32px!important}body.cosmos-account #accessCards{gap:12px}body.cosmos-account #accessCards .app{padding:18px!important}body.cosmos-account #accessCards .app b{font-size:22px}body.cosmos-account #accessCards a{min-height:44px;display:inline-flex;align-items:center}body.cosmos-account .cosmos-disclosure{font-size:14px}body.cosmos-profile main{margin-top:18px}body.cosmos-profile h1{font-size:30px}body.cosmos-profile form~.cosmos-disclosure{margin-top:20px}
body.cosmos-home .hero-inner{padding:65px 0 65px}body.cosmos-home .galaxy{height:100%;background:radial-gradient(ellipse at 75% 5%,#8c467b66,transparent 52%),radial-gradient(ellipse at 20% 15%,#197fae66,transparent 55%);opacity:1}body.cosmos-home .hero h1{font-size:clamp(38px,5vw,66px);margin:6px 0 14px}body.cosmos-home .hero h2{display:none}body.cosmos-home .hero-description{margin:0 auto 26px;max-width:650px}body.cosmos-home .hero .eyebrow{font-size:12px}body.cosmos-home .membership{margin-top:20px}body.cosmos-home .portal{min-height:105px}body.cosmos-home .portal-text small{display:block;color:#c8d7ed;font:14px/1.4 system-ui;margin-top:5px}body.cosmos-home .details{padding-top:24px;padding-bottom:12px}body.cosmos-home .trust{padding:18px 0}body.cosmos-home .footer{padding-top:22px}.cosmos-home .cosmos-disclosure{width:min(1190px,calc(100% - 42px));margin:20px auto}.cosmos-home .cosmos-disclosure .feature-grid{margin-top:15px}.cosmos-home .copyright{font-size:12px}
@media(max-width:700px){.cosmos-toolbar{padding:8px 14px}.cosmos-app-label{display:none}.cosmos-observer{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cosmos-toolbar .cosmos-wordmark{font-size:13px}.cosmos-disclosure{margin:10px 0}body[data-cosmos-app="supernova"] .shell{padding:10px 12px}body[data-cosmos-app="supernova"] .top{gap:8px}body[data-cosmos-app="supernova"] .quick-heading h2{font-size:25px}body[data-cosmos-app="polaris"] .wrap{padding:14px 12px}body.cosmos-home .hero-inner{padding:35px 0 45px}body.cosmos-home .hero h1 span{display:inline;font-size:1em}body.cosmos-home .portals{gap:10px}body.cosmos-home .portal{min-height:82px}body.cosmos-home .membership{padding:15px}body.cosmos-home .head-inner{min-height:64px}.cosmos-home .cosmos-disclosure{width:calc(100% - 30px)}}
@media print{.cosmos-toolbar,.cosmos-menu{display:none!important}.cosmos-disclosure{border:0;background:transparent;color:inherit}.cosmos-disclosure>*{display:revert}}
body[data-cosmos-app="nebula"]:has(#active:not(.hidden)) .cosmos-toolbar{display:none}

.cosmos-preview-toggle{display:block;width:100%;min-height:48px;text-align:left;font:600 15px system-ui;cursor:pointer;padding:12px 14px}

.cosmos-recovery{box-sizing:border-box;width:min(580px,calc(100% - 24px));max-height:88dvh;overflow:auto;background:#101d37;color:#edf3ff;border:1px solid #526b95;border-radius:18px;padding:20px}.cosmos-recovery::backdrop{background:#020815cc}.cosmos-recovery header{display:flex;align-items:center;justify-content:space-between;gap:12px}.cosmos-recovery h2{font-size:1.4rem;margin:0}.cosmos-recovery .recovery-action{padding:14px 0;border-bottom:1px solid #344767}.cosmos-recovery .recovery-action button{width:100%;min-height:48px;font-size:1rem}.cosmos-recovery p{font-size:1rem;line-height:1.5}.cosmos-recovery .recovery-action p{margin:8px 0 0;color:#bfcee3}.cosmos-recovery .recovery-advanced{display:grid;gap:10px;padding:10px 0}.cosmos-recovery .recovery-result:empty{display:none}.cosmos-recovery .recovery-result{padding:12px;background:#1a3553;border-radius:10px;overflow-wrap:anywhere}.cosmos-menu button.home-link{display:block;width:100%;text-align:left;padding:12px;color:inherit}.cosmos-recovery input[hidden]{display:none!important}

/* Live browser checks: contrast and focused log view. */
body[data-cosmos-app="supernova"] button.home-link{background:#1d355a;color:#edf3ff;border:1px solid #6f89af;border-radius:9px;padding:10px 12px;cursor:pointer;font:inherit;min-height:44px}
#workflowView .main[data-mode="logs"]>.panel:not(aside){display:none}

/* COSMOS responsive readability R021. Append after existing shared styles. */
body[data-cosmos-app],body.cosmos-account,body.cosmos-profile{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;color:#edf3ff}
body[data-cosmos-app] *,body.cosmos-account *{box-sizing:border-box}
body[data-cosmos-app] :is(button,input,textarea,select){font-family:inherit;font-size:1rem}
body[data-cosmos-app] :is(input,textarea,select){max-width:100%;min-height:48px}
body[data-cosmos-app] :is(button,summary){touch-action:manipulation}
body[data-cosmos-app] :is(button,a,summary,input,select,textarea):focus-visible{outline:3px solid #ffe18a;outline-offset:4px}
body[data-cosmos-app] :is(.hint,.cosmos-quiet,.mini,.empty){font-size:.9375rem!important;line-height:1.55!important}
body[data-cosmos-app] :is(p,dd,.mini,.followup-timeline){overflow-wrap:anywhere}
body[data-cosmos-app] :is(.panel,.panelBody,.quick-card,.main,aside){min-width:0}
body[data-cosmos-app] .cosmos-toolbar{font-size:1rem;gap:10px}
body[data-cosmos-app] .cosmos-menu nav{width:260px;max-width:calc(100vw - 24px)}
body[data-cosmos-app] .cosmos-menu nav :is(a,button){min-height:48px;font-size:1rem}
body[data-cosmos-app="supernova"] .shell{width:100%;max-width:1120px;padding:16px 20px 100px}
body[data-cosmos-app="supernova"] .quick-card{background:#102347;border:1px solid #45618c;border-radius:16px;padding:20px;margin:0 0 16px}
body[data-cosmos-app="supernova"] :is(.quick-card,.photo-attach) h3{font-size:1.25rem;line-height:1.35;margin:0 0 14px}
body[data-cosmos-app="supernova"] .quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile){display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;width:100%;min-height:106px;padding:16px 12px;border:2px solid #ffffff50;border-radius:14px;color:#fff;font-size:1.125rem;font-weight:750;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal;cursor:pointer;position:relative;box-shadow:0 3px 0 #0003}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile) :is(.emoji,.quick-emoji){font-size:1.5rem;line-height:1;flex:none}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).red{background:#a61d46;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).orange{background:#984109;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).yellow{background:#f9d35c;color:#15213b}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).green{background:#066a53;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).blue{background:#1852aa;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).purple{background:#6526a8;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).cyan{background:#086278;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.tile,.quick-level).gray{background:#384b68;color:#fff}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.quick-level,.quick-student)[aria-pressed="true"],body[data-cosmos-app="supernova"] .tile.selected{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #1b3156}
body[data-cosmos-app="supernova"] :is(.quick-behavior,.quick-level,.quick-student)[aria-pressed="true"]::after{content:'✓';position:absolute;top:4px;right:6px;border-radius:50%;background:#fff;color:#132344;font-weight:900;font-size:15px;line-height:22px;width:22px;height:22px}
body[data-cosmos-app="supernova"] .quick-severity{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-cosmos-app="supernova"] .quick-level{min-width:0;min-height:72px;padding:16px 6px;border:2px solid #ffffff60;border-radius:12px;font-size:1.125rem;font-weight:800;position:relative;cursor:pointer;line-height:1.3}
body[data-cosmos-app="supernova"] .quick-students{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
body[data-cosmos-app="supernova"] .quick-student{position:relative;min-height:52px;padding:12px 32px 12px 16px;border:1px solid #88a7d5;border-radius:11px;background:#203d68;color:#fff;font-weight:750;line-height:1.3}
body[data-cosmos-app="supernova"] :is(.quick-new-row,.quick-heading,.photo-controls,.miniActions){display:flex;flex-wrap:wrap;gap:12px;align-items:center}
body[data-cosmos-app="supernova"] .quick-new-row input{flex:1 1 200px;min-width:0}
body[data-cosmos-app="supernova"] :is(.home-link,.miniActions button,.photo-attach button){min-height:48px;padding:11px 15px;border-radius:10px;background:#203b65;color:#fff;border:1px solid #7897c6;font-weight:650}
body[data-cosmos-app="supernova"] .quick-heading h2{flex:1 1 100%;font-size:1.75rem}
body[data-cosmos-app="supernova"] .photo-attach{padding:20px;background:#102347;border:1px solid #45618c;border-radius:16px}
body[data-cosmos-app="supernova"] #quickSave{width:100%;min-height:60px;font-size:1.25rem;font-weight:800}
body[data-cosmos-app="supernova"] .mini{padding:18px;margin:14px 0;background:#1a3158;border:1px solid #48648f;border-radius:14px}
body[data-cosmos-app="supernova"] .mini :is(summary,.log-photo-button){font-size:1rem;min-height:48px}
body[data-cosmos-app="supernova"] .followup-timeline section{padding:16px 0}
body[data-cosmos-app="supernova"] .bar{position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;border-radius:0;z-index:120;padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:8px}
body[data-cosmos-app="supernova"] .bar :is(button,a){min-height:48px;flex:1;min-width:0;font-size:1rem;line-height:1.25;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e8f0ff;border-radius:10px}
body[data-cosmos-app="supernova"] .bar button.active{color:#fff;background:#314d80}
body[data-cosmos-app="supernova"] .bar .ico{font-size:1.25rem}
:is(.incident-photo-viewer,.incident-followup-dialog,.cosmos-recovery-dialog){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
.incident-photo-viewer img{display:block;max-width:100%;max-height:70dvh;width:auto;height:auto;object-fit:contain;margin:auto}
body[data-cosmos-app="nebula"] .checkin .behavior{font-size:1.125rem;font-weight:750;line-height:1.3;padding:16px;min-height:100px}
body[data-cosmos-app="polaris"] :is(.panel,.tabs){max-width:100%}
body.cosmos-account #accessCards .app{min-width:0}
body.cosmos-account #accessCards .app a{display:block;padding:10px 0;font-size:1.0625rem}
@media(max-width:699px){
 body[data-cosmos-app="supernova"] .shell{padding:12px 12px 110px}
 body[data-cosmos-app="supernova"] .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body[data-cosmos-app="supernova"] .quick-card,body[data-cosmos-app="supernova"] .photo-attach{padding:16px}
 body[data-cosmos-app="supernova"] .quick-behavior{min-height:112px;font-size:1.125rem;padding:14px 8px}
 body[data-cosmos-app="supernova"] .quick-severity{gap:8px}
 body[data-cosmos-app="supernova"] .quick-level{font-size:1rem;min-height:72px}
 body[data-cosmos-app="supernova"] .panelBody{padding:14px}
 body[data-cosmos-app="supernova"] .main{grid-template-columns:minmax(0,1fr)}
 body.cosmos-account #accessCards{grid-template-columns:minmax(0,1fr)!important}
 .cosmos-observer{max-width:32vw}
}
@media(min-width:700px) and (max-width:999px){body[data-cosmos-app="supernova"] .quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1000px){body[data-cosmos-app="supernova"] .quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-cosmos-app="supernova"] .quick-behavior{min-height:100px;font-size:1.1875rem}}
@media(prefers-reduced-motion:reduce){body[data-cosmos-app] *{scroll-behavior:auto!important;transition:none!important}}
@media print{body[data-cosmos-app="supernova"] .bar{display:none!important}}
@media(max-width:359px){body[data-cosmos-app="supernova"] .quick-grid,body[data-cosmos-app="supernova"] .quick-severity{grid-template-columns:minmax(0,1fr)}body[data-cosmos-app="supernova"] .quick-behavior{min-height:84px;flex-direction:row}body[data-cosmos-app="supernova"] .quick-level{min-height:56px}}

/* COSMOS Supernova header R023 */
body[data-cosmos-app="supernova"] .top{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#061127;border:1px solid #3c659b80;border-radius:16px;padding:18px 20px;margin:0 0 16px}
body[data-cosmos-app="supernova"] .cosmos-supernova-brand{display:flex;align-items:center;gap:13px;color:#f5f8ff;text-decoration:none;min-width:0;line-height:1.2}
body[data-cosmos-app="supernova"] .cosmos-supernova-brand .orbit-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:2px solid #50c9ff;border-radius:50%;font-size:28px;color:#79d6ff;transform:rotate(-20deg);box-shadow:0 0 22px #1ba5e94d}
body[data-cosmos-app="supernova"] .cosmos-supernova-brand strong{display:block;font-family:inherit;font-size:clamp(20px,3.2vw,28px);letter-spacing:.1em;font-weight:800;line-height:1.2;color:#f5f8ff;background:none;-webkit-text-fill-color:#f5f8ff}
body[data-cosmos-app="supernova"] .cosmos-supernova-brand small{display:block;font-size:12px;font-weight:500;letter-spacing:.02em;color:#b9c9e4;margin-top:5px}
body[data-cosmos-app="supernova"] .topright{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
body[data-cosmos-app="supernova"] .topright #logout{white-space:nowrap;min-height:44px;font-size:15px;padding:10px 14px;margin:0}
@media(max-width:480px){body[data-cosmos-app="supernova"] .top{padding:14px 12px;gap:10px;flex-wrap:wrap}body[data-cosmos-app="supernova"] .cosmos-supernova-brand{gap:10px}body[data-cosmos-app="supernova"] .cosmos-supernova-brand .orbit-icon{width:38px;height:38px;flex-basis:38px;font-size:25px}body[data-cosmos-app="supernova"] .cosmos-supernova-brand strong{font-size:20px}body[data-cosmos-app="supernova"] .topright{margin-left:auto}}

/* Unified COSMOS account branding R024 */
body.cosmos-account .brand .mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border:2px solid #50c9ff;border-radius:50%;background:#061127;color:#79d6ff;box-shadow:0 0 22px #1ba5e94d;font-size:28px}body.cosmos-account .brand h1{font-size:clamp(24px,5vw,32px)!important;letter-spacing:.06em;line-height:1.2}body.cosmos-account .account-brand-light{font-weight:400;letter-spacing:0}body.cosmos-account #login>p{font-size:16px;line-height:1.5;color:#d7e5fb}body.cosmos-account .brand{align-items:center}
