*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,sans-serif;background:#f4f6f8;color:#101828}button,input{font:inherit}button{cursor:pointer;border:1px solid #e4e7ec;background:#fff;border-radius:12px;padding:11px 13px;font-weight:800}button:disabled{opacity:.4}.hidden{display:none!important}.screen{min-height:100dvh}.splash{display:grid;place-items:center;text-align:center;background:#101828;color:#fff}.splash h1,.hero h1{font-size:48px;margin:0}.hero{background:#101828;color:#fff;padding:34px max(20px,calc((100vw - 980px)/2))}.grid,.page{max-width:980px;margin:auto;padding:16px;display:grid;gap:14px}.grid{grid-template-columns:1fr 1fr}.card{background:#fff;border:1px solid #e4e7ec;border-radius:20px;padding:17px}.card h2,.card h3{margin:4px 0 10px}small,label,.sub{color:#667085;font-size:10px}small{font-weight:900;letter-spacing:1.4px}label{display:block;font-weight:800;text-transform:uppercase;margin:12px 0 6px}input{width:100%;border:1px solid #e4e7ec;background:#f9fafb;border-radius:12px;padding:12px}.primary{background:#101828;color:#fff}.card>.primary,.grid .card>button{width:100%;margin-top:14px}.top{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid #e4e7ec;padding:12px max(16px,calc((100vw - 980px)/2));display:flex;justify-content:space-between;align-items:center}.top h2{margin:2px 0}.danger{color:#d92d20;background:#fef3f2}.access{background:#101828;color:#fff;border-radius:20px;padding:17px}.access h3{margin:4px 0}.accessGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.accessGrid div{background:#1d2939;border:1px solid #344054;border-radius:13px;padding:12px}.accessGrid span{display:block;font-size:9px;color:#98a2b3;font-weight:800}.accessGrid b{display:block;font-size:20px;margin-top:4px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.stats div{background:#fff;border:1px solid #e4e7ec;border-radius:15px;padding:12px}.stats b{display:block;font-size:23px}.stats span{font-size:10px;color:#667085}.sex{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.sexBtn,.editSex{font-size:20px}.sexBtn span{display:block;font-size:9px}.sexBtn.active,.editSex.active{background:#0b6ef3;color:#fff}.sexBtn[data-sex="F"].active,.editSex[data-sex="F"].active{background:#d14d8b}.entry{display:grid;grid-template-columns:50px 1fr 50px;gap:7px}.entry>b{display:grid;place-items:center;background:#101828;color:#fff;border-radius:12px}.rowHead{display:flex;justify-content:space-between;align-items:center}.pill{font-size:9px;font-weight:900;color:#039855;background:#ecfdf3;padding:6px 9px;border-radius:99px}.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.slot{border:1px solid #e4e7ec;border-radius:12px;padding:9px;font-size:10px}.slot b{display:block;margin-top:3px}.free b{color:#039855}.occupied b{color:#d92d20}.qrow,.orow,.rrow{display:flex;gap:8px;align-items:center;border-top:1px solid #e4e7ec;padding:11px 0}.pos{width:28px;height:28px;display:grid;place-items:center;background:#f2f4f7;border-radius:9px;font-size:11px}.grow{flex:1}.code{font-weight:900;font-size:18px}.meta{font-size:9px;color:#667085}.acts{display:flex;gap:3px}.acts button{padding:7px 9px}.assign,.call{background:#101828;color:#fff}.locIcon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f2f4f7;font-size:20px}.exports{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.rrow{justify-content:space-between}.offline{position:sticky;top:0;z-index:99;background:#b42318;color:#fff;text-align:center;padding:8px;font-size:11px;font-weight:900}dialog{border:0;border-radius:20px;width:min(460px,calc(100% - 28px));padding:0}dialog::backdrop{background:#101828aa}.dialog{padding:18px}.dlgBtns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#101828;color:#fff;padding:10px 14px;border-radius:10px;font-size:11px}.empty{background:#f9fafb;border-radius:12px;padding:18px;text-align:center;color:#667085;font-size:11px}@media(max-width:700px){.grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.slots{grid-template-columns:1fr}.qrow,.orow{flex-wrap:wrap}.acts{margin-left:auto}}.copyAccess{width:100%;margin-top:12px;background:#fff;color:#101828}.timeoutBtn{width:100%;margin:10px 0 4px;background:#fff3f2;color:#b42318;border-color:#fecdca}.timeoutBtn.resume{background:#ecfdf3;color:#027a48;border-color:#abefc6}.timeoutBanner{margin:10px 0;border-radius:12px;padding:11px 12px;background:#b42318;color:#fff}.timeoutBanner b,.timeoutBanner span{display:block}.timeoutBanner b{font-size:12px}.timeoutBanner span{font-size:10px;margin-top:3px;opacity:.9}.callAlertDlg{max-width:460px}.callAlertCard{text-align:center}.callAlertCard h2{font-size:28px;margin:5px 0 8px}.callAlertCard p{color:#475467;line-height:1.5}.callAlertStatus{display:inline-block;margin:8px 0 2px;background:#ecfdf3;color:#027a48;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:900}.callAlertActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.statusOnWay{color:#027a48;font-weight:900}.statusCalled{color:#b54708;font-weight:900}

/* v2.1.1 cross-device overlays + version marker */
.alertOverlay{position:fixed;inset:0;z-index:10000;background:rgba(16,24,40,.72);display:grid;place-items:center;padding:16px;backdrop-filter:blur(3px)}
.alertOverlay.hidden{display:none!important}.alertCard{width:min(460px,100%);background:#fff;border-radius:20px;padding:20px;box-shadow:0 24px 72px rgba(16,24,40,.35);text-align:center}.alertCard h2{font-size:28px;margin:5px 0 8px}.alertCard p{color:#475467;line-height:1.5}.wideAlertBtn{width:100%;margin-top:14px}.systemAlertCard.timeout h2{color:#b42318}.systemAlertCard.resume h2{color:#027a48}.appVersion{text-align:center;color:#98a2b3;font-size:9px;padding:4px 8px 14px}.callAlertDlg{display:none!important}

.roomSelectRow{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}
.roomSelectRow button{white-space:nowrap}
.roomHint{margin:6px 0 2px}
.roomBadge{display:inline-block;margin-top:4px;padding:3px 7px;border-radius:999px;background:#eef2f6;color:#344054;font-size:9px;font-weight:800}

.toiletControlGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.handicappedToggleBtn{background:#f4f3ff;color:#5925dc;border-color:#d9d6fe}
.handicappedToggleBtn.enable{background:#ecfdf3;color:#027a48;border-color:#abefc6}
.handicappedBanner{display:flex;flex-direction:column;gap:3px;background:#fffaeb;border:1px solid #fedf89;color:#93370d;border-radius:12px;padding:10px 12px;margin:9px 0;font-size:10px}
.handicappedBanner b{font-size:10px}
.slot.disabled{background:#f2f4f7;color:#98a2b3;border-style:dashed}
.slot.disabled b{color:#667085}
.pinActionError{margin-top:8px;padding:8px 10px;border-radius:10px;background:#fef3f2;color:#b42318;font-size:10px;font-weight:800}
@media(max-width:700px){.toiletControlGrid{grid-template-columns:1fr}}

.accessActionGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.qrJoinCard{max-width:430px}
.qrCodeBox{display:grid;place-items:center;background:white;border-radius:16px;padding:14px;margin:14px auto;width:max-content;max-width:100%}
.qrCodeBox img,.qrCodeBox canvas{max-width:250px;width:72vw;height:auto!important}
.qrEventCode{text-align:center;font-size:13px;margin:8px 0;font-weight:700}
.qrActionGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
@media(max-width:700px){.accessActionGrid,.qrActionGrid{grid-template-columns:1fr}}


/* v2.3.0 Phase 1A — Examination Operations Hub */
.hubIntro{background:linear-gradient(135deg,#101828,#1d2939);color:#fff;border-radius:22px;padding:22px}
.hubIntro h1{font-size:30px;margin:4px 0 6px}.hubIntro p{margin:0;color:#d0d5dd;font-size:12px}
.accessCollapsible{padding:0;overflow:hidden}.accessCollapsible summary{list-style:none;cursor:pointer;padding:16px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.accessCollapsible summary::-webkit-details-marker{display:none}.accessCollapsible summary span:first-child{display:flex;flex-direction:column;gap:3px}.accessCollapsible summary strong{font-size:15px}.summaryHint{font-size:10px;color:#98a2b3;font-weight:800}.accessInner{padding:0 17px 16px}.hubAccessNote{font-size:10px;color:#98a2b3;margin:10px 0 0}
.moduleGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.moduleCard{min-height:132px;text-align:left;padding:17px;border-radius:20px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;background:#fff}.moduleCard:disabled{opacity:1;cursor:default;background:#f9fafb}.moduleLive{border-color:#98a2b3;box-shadow:0 5px 18px rgba(16,24,40,.06)}.moduleLive:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(16,24,40,.10)}.moduleIcon{font-size:28px;line-height:1}.moduleCopy{display:flex;flex-direction:column;gap:4px}.moduleCopy b{font-size:17px}.moduleCopy small{font-size:8px;color:#667085}.moduleLive .moduleCopy small{color:#027a48}.moduleCopy>span{font-size:11px;font-weight:500;line-height:1.45;color:#667085}.moduleArrow{font-size:28px;color:#667085;align-self:center}.phaseNote{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:#eef4ff;color:#3538cd;font-size:10px}.phaseNote span{color:#475467;line-height:1.45}.topLeft{display:flex;gap:10px;align-items:center}.backBtn{padding:8px 10px;background:#f2f4f7}.topLeft h2{margin:2px 0}
@media(max-width:700px){.moduleGrid{grid-template-columns:1fr}.hubIntro h1{font-size:26px}.topLeft{gap:6px}.backBtn{padding:8px;font-size:11px}}

/* v2.4.0 Phase 1B — Candidate End Times */
.endIntro{display:flex;justify-content:space-between;align-items:center;gap:16px}.endIntro h2{margin:4px 0}.endIntro .primary{width:auto;margin:0}.endRoomGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.endRoomCard{min-height:128px;text-align:left;padding:16px;border-radius:18px;display:grid;grid-template-columns:1fr auto;gap:8px;background:#fff}.endRoomCard>span:first-child{display:flex;flex-direction:column;gap:4px}.endRoomCard b{font-size:20px}.endRoomCard em{font-style:normal;font-size:11px;color:#667085;font-weight:600}.endRoomStatus{align-self:start;padding:5px 8px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:9px;font-weight:900}.endRoomStatus.closed{background:#f2f4f7;color:#475467}.endRoomTotal{grid-column:1/-1;color:#667085;font-size:10px;font-weight:800}.endEmpty{grid-column:1/-1}.endRoomHead{display:flex;justify-content:space-between;align-items:center;gap:12px}.endRoomHead h2{margin:4px 0}.endRoomHead .backBtn{margin-bottom:9px}.endProgress{text-align:right}.endProgress b{display:block;font-size:23px}.endProgress span{font-size:8px;color:#667085;font-weight:900;letter-spacing:.8px}.endEntry{grid-template-columns:52px 1fr 76px}.seatLabel{display:grid;place-items:center;background:#f2f4f7;border-radius:12px;font-size:10px;font-weight:900;color:#475467}.endRecordBtn{background:#b42318;color:#fff;border-color:#b42318}.endActionGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dangerStrong{background:#b42318;color:#fff;border-color:#b42318}.roomWideBanner{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;border:1px solid #fedf89;background:#fffaeb;color:#93370d;border-radius:16px;padding:13px 14px}.roomWideBanner b{font-size:11px}.roomWideBanner span{font-size:10px;line-height:1.4}.roomWideBanner button{grid-row:1/3;grid-column:2;background:#fff}.endSeatRow{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e4e7ec;padding:11px 0}.endSeatRow:first-child{border-top:0}.endSeatRow div{display:flex;flex-direction:column;gap:3px}.endSeatRow b{font-size:17px}.endSeatRow span{font-size:10px;color:#667085}.endSeatRow button{color:#b42318;background:#fef3f2;border-color:#fecdca}
@media(max-width:700px){.endIntro,.endRoomHead{align-items:stretch;flex-direction:column}.endIntro .primary{width:100%}.endRoomGrid{grid-template-columns:1fr}.endProgress{text-align:left}.endActionGrid{grid-template-columns:1fr}.roomWideBanner{grid-template-columns:1fr}.roomWideBanner button{grid-row:auto;grid-column:auto;width:100%;margin-top:5px}}

/* Phase 1B.1 refinements retained */
.hubQrSection{display:grid;grid-template-columns:minmax(230px,280px) 1fr;gap:16px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid #344054}.hubQrLabel{display:block;font-size:9px;color:#98a2b3;font-weight:800;margin-bottom:7px}.hubQrCode{width:220px;min-height:220px;background:#fff;border-radius:14px;padding:10px;display:grid;place-items:center}.hubQrCode img,.hubQrCode canvas{max-width:100%;height:auto!important}.hubQrStatus{font-size:10px;color:#98a2b3;margin:7px 0 0}.hubQrActions{display:grid;gap:8px}.hubQrActions button{width:100%;background:#fff;color:#101828}.endRoomListActions{display:flex;justify-content:flex-end;margin:0 0 12px}.endRoomListActions .primary{width:auto}.qrow.femaleHighlight,.orow.femaleHighlight{background:#f8f5ff;border:1px solid #d9d6fe;border-radius:14px;padding:11px 10px;margin:5px 0}.qrow.femaleHighlight .pos,.orow.femaleHighlight .locIcon{background:#eee9ff;color:#6941c6}.qrow.femaleHighlight .code,.orow.femaleHighlight .code{color:#53389e}.femaleMark{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;background:#eee9ff;color:#6941c6;font-size:8px;font-weight:900;vertical-align:middle}.undoLastEndBtn{background:#fffaeb;color:#b54708;border-color:#fedf89}.undoRoomWideBtn{background:#fff1f0!important;color:#b42318!important;border-color:#fecdca!important}.endRoomStatusLine{display:block;margin-top:5px;font-style:normal;font-size:9px;font-weight:900;color:#475467}.endProgress.overLimit b{color:#b54708}.endProgress.overLimit .endRoomStatusLine{color:#b54708}.roomWideBanner.modified{background:#fff6ed;border-color:#fedf89;color:#b54708}
@media(max-width:700px){.hubQrSection{grid-template-columns:1fr}.hubQrCode{width:min(220px,100%);margin:auto}.endRoomListActions .primary{width:100%}}

/* Phase 1B.2 refinements */
.endRoomNav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px}.endRoomNav .backBtn{margin-bottom:0}.editRoomBtn{background:#f2f4f7;color:#344054;border-color:#d0d5dd;width:auto}.endSeatRangeMeta{margin-top:2px;font-weight:700}.checkRow{display:flex!important;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #d0d5dd;border-radius:13px;background:#f9fafb;cursor:pointer}.checkRow input{width:18px!important;height:18px!important;min-width:18px;margin:2px 0 0}.checkRow span{display:flex;flex-direction:column;gap:2px}.checkRow b{font-size:11px}.checkRow small{font-size:9px;line-height:1.35;color:#667085}.seatRangeBlocked{color:#b42318!important;font-weight:800}.seatRangeOk{color:#027a48!important;font-weight:700}@media(max-width:700px){.endRoomNav{align-items:stretch}.endRoomNav button{flex:1}.editRoomBtn{width:100%}}


/* v2.5.0 Phase 1C — Incident Reports */
.incidentHero{display:flex;justify-content:space-between;align-items:center;gap:16px}.incidentHero h2{margin:4px 0}.incidentHero .primary{width:auto;margin:0}.incidentStatusGrid{display:grid;grid-template-columns:150px 150px 1fr;gap:12px}.incidentStat{text-align:center;display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:105px}.incidentStat b{font-size:28px}.incidentStat span{font-size:9px;font-weight:900;color:#667085;text-transform:uppercase}.incidentAdminCard{display:flex;justify-content:space-between;align-items:center;gap:12px}.incidentAdminCard>div{display:flex;flex-direction:column;gap:4px}.incidentAdminCard small{font-size:8px;color:#667085}.incidentAdminCard b{font-size:18px}.incidentAdminCard span{font-size:10px;color:#667085}.incidentAdminCard button{width:auto}.incidentColumns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.incidentRow{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border-top:1px solid #e4e7ec;padding:13px 0}.incidentRow:first-child{border-top:0}.incidentRowMain{display:flex;flex-direction:column;gap:3px;min-width:0}.incidentRowTop{display:flex;align-items:center;gap:7px}.incidentRowTop small{font-size:8px;color:#667085;font-weight:800}.incidentStatusTag{display:inline-block;padding:3px 6px;border-radius:999px;background:#fffaeb;color:#b54708;font-size:8px;font-weight:900}.incidentStatusTag.submitted{background:#ecfdf3;color:#027a48}.incidentRowMain>b{font-size:14px;overflow-wrap:anywhere}.incidentRowMain>span{font-size:10px;color:#475467}.incidentRowMain>em{font-style:normal;font-size:9px;color:#98a2b3}.incidentRow button{white-space:nowrap}.examLockBanner{display:flex;flex-direction:column;gap:3px;background:#fef3f2;border:1px solid #fecdca;color:#b42318;border-radius:16px;padding:13px 14px}.examLockBanner b{font-size:11px}.examLockBanner span{font-size:10px;color:#912018}.incidentDialog{width:min(650px,calc(100vw - 28px))}.incidentDialog textarea{width:100%;resize:vertical;min-height:86px}.incidentDialog select{width:100%}.incidentTwoCol{display:grid;grid-template-columns:1fr 1fr;gap:10px}.incidentDlgBtns{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}.incidentDlgBtns button{width:100%}.incidentSubmittedInfo{margin:10px 0;padding:10px 12px;border-radius:12px;background:#eef4ff;color:#3538cd;font-size:10px;font-weight:700;line-height:1.45}
@media(max-width:850px){.incidentStatusGrid{grid-template-columns:1fr 1fr}.incidentAdminCard{grid-column:1/-1}.incidentColumns{grid-template-columns:1fr}.incidentDlgBtns{grid-template-columns:1fr 1fr}.incidentDlgBtns .primary{grid-column:auto}}
@media(max-width:600px){.incidentHero,.incidentAdminCard{align-items:stretch;flex-direction:column}.incidentHero .primary,.incidentAdminCard button{width:100%}.incidentStatusGrid{grid-template-columns:1fr 1fr}.incidentTwoCol{grid-template-columns:1fr}.incidentDlgBtns{grid-template-columns:1fr}.incidentRow{grid-template-columns:1fr}.incidentRow button{width:100%}}


/* v2.5.1 Phase 1C.1 — Incident Reports interface refinements */
#incidentDlg{width:min(880px,calc(100vw - 40px));max-width:none;max-height:min(92dvh,900px);overflow:hidden}
#incidentDlg .incidentDialog{width:100%;max-width:none;max-height:min(92dvh,900px);overflow-y:auto;overscroll-behavior:contain;padding:22px}
#incidentCategory{min-height:46px;padding:11px 12px;border:1px solid #e4e7ec;background:#f9fafb;border-radius:12px;font:inherit}
@media(max-width:900px){#incidentDlg{width:min(760px,calc(100vw - 28px))}}
@media(max-width:600px){#incidentDlg{width:calc(100vw - 16px);max-height:94dvh;border-radius:18px}#incidentDlg .incidentDialog{max-height:94dvh;padding:16px}}


/* v2.6.0 Phase 1D — Team Chat */
.chatHubBadge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;margin-left:5px;border-radius:999px;background:#b42318;color:#fff;font-size:9px;letter-spacing:0}.chatPage{max-width:980px}.chatHero{display:flex;justify-content:space-between;align-items:center;gap:16px}.chatHero h2{margin:4px 0}.chatHero button{width:auto}.chatIdentityBar{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;background:#101828;color:#fff;border-radius:16px;padding:11px 14px}.chatIdentityBar span{font-size:8px;font-weight:900;color:#98a2b3}.chatIdentityBar b{font-size:12px}.chatIdentityBar em{font-style:normal;font-size:9px;color:#d0d5dd}.chatCard{padding-bottom:12px}.chatHead{display:flex;justify-content:space-between;align-items:center;gap:10px}.chatMessages{height:min(54dvh,560px);min-height:300px;overflow-y:auto;overscroll-behavior:contain;background:#f9fafb;border:1px solid #eaecf0;border-radius:16px;padding:12px;margin:12px 0;display:flex;flex-direction:column;gap:9px}.chatMsg{max-width:82%;align-self:flex-start}.chatMsg.mine{align-self:flex-end}.chatMsgMeta{display:flex;align-items:center;gap:6px;margin:0 5px 4px}.chatMsgMeta b{font-size:9px}.chatMsgMeta span{font-size:8px;color:#98a2b3}.chatMsgMeta em{font-style:normal;font-size:7px;font-weight:900;color:#6941c6;background:#f4f3ff;padding:3px 5px;border-radius:999px}.chatBubble{background:#fff;border:1px solid #e4e7ec;border-radius:15px 15px 15px 5px;padding:10px 12px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;box-shadow:0 2px 5px rgba(16,24,40,.04)}.chatMsg.mine .chatBubble{background:#101828;color:#fff;border-color:#101828;border-radius:15px 15px 5px 15px}.chatMsg.mentioned .chatBubble{border:2px solid #9b8afb;background:#f9f5ff;color:#42307d}.chatMsg.mine.mentioned .chatBubble{background:#101828;color:#fff;border-color:#9b8afb}.chatComposer{border-top:1px solid #eaecf0;padding-top:12px}.chatTagRow{display:grid;grid-template-columns:auto minmax(190px,320px);align-items:center;gap:8px;margin-bottom:8px}.chatTagRow label{margin:0}.chatTagRow select{width:100%;min-height:40px;border:1px solid #e4e7ec;background:#f9fafb;border-radius:12px;padding:9px 10px;font:inherit}.chatComposer textarea{width:100%;resize:vertical;min-height:82px;border:1px solid #d0d5dd;background:#fff;border-radius:14px;padding:12px;font:inherit}.chatComposerActions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.chatComposerActions span{font-size:9px;color:#98a2b3}.chatComposerActions button{width:auto;min-width:140px}#chatNameDlg .dialog{width:100%}
@media(max-width:700px){.chatHero{align-items:stretch;flex-direction:column}.chatHero button{width:100%}.chatIdentityBar{grid-template-columns:1fr auto}.chatIdentityBar span{grid-column:1/-1}.chatMessages{height:52dvh;min-height:280px;padding:9px}.chatMsg{max-width:92%}.chatTagRow{grid-template-columns:1fr}.chatComposerActions button{min-width:120px}}

/* v2.7.0 Phase 1E — Cross-module candidate movement awareness */
.endOperationalAwareness{border-color:#fedf89;background:#fffcf5}.endOperationalAwareness h3{margin:0}.endOperationalAwareness .pill{background:#fff1f0;color:#b42318}.endAwayRow{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #f2e6c9;padding:10px 0}.endAwayRow:first-child{border-top:0}.endAwayRow b{font-size:14px}.endAwayRow span{font-size:10px;color:#667085}.endAwayStatus{font-size:9px!important;font-weight:900;padding:4px 7px;border-radius:999px;white-space:nowrap}.endAwayStatus.inToilet{background:#fef3f2;color:#b42318}.endAwayStatus.queued{background:#fffaeb;color:#b54708}


/* Phase 1F — shared event room registry */
.eventRoomsCard{margin-top:18px}
.eventRoomsCard .rowHead{gap:12px;align-items:flex-start}
.hubRoomList{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.hubRoomChip{display:flex;align-items:center;gap:8px;border:1px solid #d0d5dd;background:#fff;border-radius:999px;padding:7px 9px 7px 12px}
.hubRoomChip b{font-size:.9rem}
.hubRoomChip button{padding:4px 8px;border-radius:999px;font-size:.75rem}
.hubRoomEmpty{color:#667085;font-size:.9rem;padding:8px 0}
.roomSelectRow select{min-width:0;flex:1}
.roomSelectRow{flex-wrap:wrap}
.sharedRoomDialog{width:min(560px,calc(100vw - 32px))}
.incidentOtherLocation{margin-top:8px}
.roomModuleBadges{display:flex;gap:5px;flex-wrap:wrap}
.roomModuleBadge{font-size:.68rem;padding:2px 6px;border-radius:999px;background:#f2f4f7;color:#475467}
@media(max-width:600px){.eventRoomsCard .rowHead{flex-direction:column}.eventRoomsCard .rowHead button{width:100%}.roomSelectRow button{flex:0 0 auto}}


/* Phase 1F.1 — collapsible rooms, larger selectors, scoped chat */
.sharedRoomsCollapsible{padding:0;overflow:hidden}
.sharedRoomsCollapsible>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px}
.sharedRoomsCollapsible>summary::-webkit-details-marker{display:none}
.sharedRoomsCollapsible>summary span:first-child{display:flex;flex-direction:column;gap:3px}
.sharedRoomsCollapsible>summary small{font-size:8px;color:#667085;font-weight:900}
.sharedRoomsCollapsible>summary strong{font-size:18px}
.sharedRoomsCollapsible>summary em{font-style:normal;font-size:10px;color:#667085;font-weight:500}
.sharedRoomsCollapsible .summaryHint{font-size:9px;color:#667085;font-weight:800;white-space:nowrap}
.eventRoomsInner{border-top:1px solid #eaecf0;padding:14px 20px 18px}
.eventRoomActions{display:flex;justify-content:flex-end}
.eventRoomActions .primary{width:auto}
#roomInput,#editRoom,#endRoomName,#incidentRoomSelect{min-height:48px;padding-top:10px;padding-bottom:10px;font-size:16px}
.chatScopeCard{display:grid;grid-template-columns:130px minmax(220px,1fr);align-items:center;gap:7px 12px}
.chatScopeCard label{margin:0;font-weight:900}
.chatScopeCard select{min-height:48px;border:1px solid #d0d5dd;background:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:16px}
.chatScopeCard .sub{grid-column:2;margin:0}
.chatScopeUnread{color:#b42318;font-weight:900}
@media(max-width:700px){.sharedRoomsCollapsible>summary{padding:16px}.eventRoomsInner{padding:12px 16px 16px}.eventRoomActions .primary{width:100%}.chatScopeCard{grid-template-columns:1fr}.chatScopeCard .sub{grid-column:1}}

/* Phase 1F.2 — room chat membership */
.chatRoomMembership{grid-column:1/-1;border-top:1px solid #eaecf0;margin-top:8px;padding-top:12px}
.chatRoomMembershipHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.chatRoomMembershipHead small{display:block;font-size:8px;font-weight:900;color:#667085;margin-bottom:4px}
.chatRoomMembershipHead b{font-size:11px}
.chatRoomMembershipActions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.chatRoomMembershipActions button{width:auto;min-height:38px}
.chatRoomMemberList{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chatMemberChip{display:inline-flex;align-items:center;background:#f2f4f7;border:1px solid #e4e7ec;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:800;color:#344054}
.chatManageMemberList{display:grid;gap:7px;max-height:min(52vh,480px);overflow:auto;margin:12px 0;padding-right:3px}
.chatManageMemberRow{display:flex;align-items:center;gap:10px;border:1px solid #eaecf0;border-radius:12px;padding:10px 12px;margin:0;background:#fff}
.chatManageMemberRow input{width:18px;height:18px;margin:0}
.chatManageMemberRow span{font-size:11px;font-weight:800}
#chatMembersDlg .chatMembersDialog{width:min(620px,calc(100vw - 28px));max-height:88dvh;overflow:auto}
.chatComposer textarea:disabled,.chatTagRow select:disabled{background:#f2f4f7;color:#98a2b3}
.chatComposerActions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:700px){.chatRoomMembershipHead{flex-direction:column}.chatRoomMembershipActions{width:100%;display:grid;grid-template-columns:1fr 1fr}.chatRoomMembershipActions button{width:100%}.chatRoomMembershipActions .primary{grid-column:1/-1}}

/* Phase 1G — Event Records & Exports */
.exportHero{display:flex;align-items:center;justify-content:space-between;gap:24px}
.exportHero h2{margin:.2rem 0 .35rem}
.exportAllBtn{min-width:210px;min-height:48px}
.exportGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.exportModuleCard{display:flex;align-items:center;justify-content:space-between;gap:18px}
.exportModuleCard>div{min-width:0}
.exportModuleCard h3{margin:.25rem 0}
.exportModuleCard button{flex:0 0 auto;min-height:44px}
.exportIcon{font-size:1.55rem;display:block;margin-bottom:4px}
.exportNote{margin-top:16px}
@media(max-width:760px){
  .exportHero{align-items:stretch;flex-direction:column}
  .exportAllBtn{width:100%}
  .exportGrid{grid-template-columns:1fr}
  .exportModuleCard{align-items:stretch;flex-direction:column}
  .exportModuleCard button{width:100%}
}


/* Phase 1H v3.0.0 — UI/UX polish baseline */
:root{
  --tw-ink:#101828;--tw-muted:#667085;--tw-line:#e4e7ec;--tw-bg:#f5f7fa;
  --tw-teal:#0f766e;--tw-teal-soft:#f0fdfa;--tw-blue-soft:#eff8ff;
  --tw-purple-soft:#f4f3ff;--tw-amber-soft:#fffaeb;--tw-rose-soft:#fff1f3;
  --tw-shadow:0 8px 24px rgba(16,24,40,.065)
}
body{background:linear-gradient(180deg,#f8fafc 0,#f4f6f8 280px,#f4f6f8 100%)}
.card{box-shadow:0 1px 2px rgba(16,24,40,.025);transition:border-color .18s ease,box-shadow .18s ease}
.card:hover{border-color:#d0d5dd}
button{transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease}
button:not(:disabled):active{transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(47,128,237,.20);outline-offset:2px}
.top{box-shadow:0 3px 12px rgba(16,24,40,.035);backdrop-filter:saturate(1.1) blur(9px);background:rgba(255,255,255,.95)}
.hubIntro{position:relative;overflow:hidden;background:linear-gradient(135deg,#101828 0%,#1d2939 58%,#164e63 140%);box-shadow:0 12px 30px rgba(16,24,40,.14)}
.hubIntro:after{content:"🚻  ⏱️  ⚠️  💬";position:absolute;right:18px;bottom:-8px;font-size:34px;letter-spacing:8px;opacity:.10;white-space:nowrap;pointer-events:none}
.moduleCard{border-width:1px;box-shadow:var(--tw-shadow);overflow:hidden;position:relative}
.moduleCard:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;border-radius:20px 0 0 20px;background:#98a2b3}
.moduleGrid .moduleCard:nth-child(1){background:linear-gradient(135deg,#fff 65%,var(--tw-blue-soft))}.moduleGrid .moduleCard:nth-child(1):before{background:#2e90fa}
.moduleGrid .moduleCard:nth-child(2){background:linear-gradient(135deg,#fff 65%,var(--tw-teal-soft))}.moduleGrid .moduleCard:nth-child(2):before{background:#12b76a}
.moduleGrid .moduleCard:nth-child(3){background:linear-gradient(135deg,#fff 65%,var(--tw-amber-soft))}.moduleGrid .moduleCard:nth-child(3):before{background:#f79009}
.moduleGrid .moduleCard:nth-child(4){background:linear-gradient(135deg,#fff 65%,var(--tw-purple-soft))}.moduleGrid .moduleCard:nth-child(4):before{background:#7f56d9}
.moduleGrid .moduleCard:nth-child(5){background:linear-gradient(135deg,#fff 65%,#f2f4f7)}.moduleGrid .moduleCard:nth-child(5):before{background:#475467}
.moduleLive:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,24,40,.11)}
.stats div{position:relative;overflow:hidden;box-shadow:0 4px 14px rgba(16,24,40,.045)}
.stats div:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#98a2b3}.stats div:nth-child(1):after{background:#2e90fa}.stats div:nth-child(2):after{background:#344054}.stats div:nth-child(3):after{background:#a855f7}.stats div:nth-child(4):after{background:#12b76a}
#addBtn{background:var(--tw-teal);border-color:var(--tw-teal);color:#fff;font-size:21px;box-shadow:0 5px 12px rgba(15,118,110,.18)}
#addBtn:hover{background:#115e59;border-color:#115e59}
.queueTitleRow{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:2px}
.queueTitleRow h3{margin-bottom:2px}
.catQueue{display:flex;align-items:flex-end;gap:2px;background:linear-gradient(180deg,#fff7ed,#fffbeb);border:1px solid #fde68a;border-radius:999px;padding:4px 8px;line-height:1;white-space:nowrap;user-select:none}
.catQueue span{display:inline-block;font-size:15px;transform:scaleX(-1)}
.catQueue span:nth-child(2){font-size:14px;opacity:.92}.catQueue span:nth-child(3){font-size:13px;opacity:.84}.catQueue span:nth-child(4){font-size:12px;opacity:.76}.catQueue span:last-child{transform:none;font-size:15px;margin-left:2px}
.liveQueueCard{border-top:3px solid #2e90fa}.toiletStatusCard{border-top:3px solid #12b76a}
.qrow,.orow,.rrow{border-top-color:#edf0f3}.qrow:hover,.orow:hover{background:#fafbfc;border-radius:10px}
.sexBtn[data-sex="F"]{border-color:#e9d7fe;background:#fdf4ff;color:#7f1d8d}.sexBtn[data-sex="F"].active,.editSex[data-sex="F"].active{background:#9333a8;border-color:#9333a8;color:#fff}
.endRecordBtn{box-shadow:0 5px 12px rgba(16,24,40,.12)}
.chatMessages{background:linear-gradient(180deg,#f9fafb,#f7f9fc)}
.phaseNote{border:1px solid #d9e3ff}
@media(max-width:700px){
  .page{padding:12px}.card{border-radius:18px;padding:15px}.moduleCard{min-height:112px;padding:15px}.moduleIcon{font-size:26px}
  .queueTitleRow{align-items:center}.catQueue{padding:4px 6px}.catQueue span{font-size:14px}.catQueue span:nth-child(4){display:none}
  .stats{gap:6px}.stats div{padding:10px}.stats b{font-size:21px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Phase 1H.1 — PULSE branding, mascots and desktop chat readability */
.pulseStartHero{position:relative;overflow:hidden;background:linear-gradient(135deg,#101828 0%,#1d2939 58%,#164e63 140%)}
.pulseStartHero small{display:block;font-size:10px;font-weight:900;letter-spacing:.18em;color:#a5f3fc;margin-bottom:4px}
.pulseStartHero h1{letter-spacing:.04em}
.pulseStartHero p{max-width:720px}

.liveQueueHeading{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 12px;width:100%}
.liveQueueHeading h3{margin:0}
.liveQueueHeading .sub{grid-column:1/-1;margin:0}
.mascotQueue{display:flex;align-items:flex-end;gap:3px;justify-content:flex-start;white-space:nowrap;line-height:1;user-select:none;pointer-events:none}
.mascotQueue span{display:inline-block;font-size:22px;filter:drop-shadow(0 2px 2px rgba(16,24,40,.12));transform:scaleX(-1)}
.mascotQueue span:nth-child(2){font-size:24px}.mascotQueue span:nth-child(3){font-size:23px}.mascotQueue span:nth-child(4){font-size:25px}.mascotQueue span:nth-child(5){font-size:22px}

.mascotSafeZone{position:relative;overflow:hidden}
.randomMascotSticker{position:absolute;right:16px;bottom:-5px;font-size:36px;line-height:1;opacity:.22;filter:drop-shadow(0 4px 5px rgba(16,24,40,.12));transform:rotate(var(--mascot-tilt,0deg)) scaleX(-1);pointer-events:none;user-select:none;z-index:0}
.mascotSafeZone>*:not(.randomMascotSticker){position:relative;z-index:1}
.hubIntro .randomMascotSticker,.hero .randomMascotSticker{font-size:44px;opacity:.15}
.chatHero .randomMascotSticker,.incidentHero .randomMascotSticker,.endIntro .randomMascotSticker,.exportHero .randomMascotSticker{font-size:38px;opacity:.17}

@media(min-width:900px){
  .chatPage{max-width:1120px}
  .chatMessages{height:min(58dvh,640px);padding:16px;gap:12px}
  .chatMsg{max-width:76%}
  .chatBubble{font-size:15px;line-height:1.55;padding:13px 16px;border-radius:18px 18px 18px 6px}
  .chatMsg.mine .chatBubble{border-radius:18px 18px 6px 18px}
  .chatMsgMeta{margin:0 6px 5px;gap:8px}
  .chatMsgMeta b{font-size:11px}.chatMsgMeta span{font-size:10px}.chatMsgMeta em{font-size:9px;padding:3px 6px}
  .chatComposer textarea{min-height:100px;font-size:15px;padding:14px 15px}
  .chatComposerActions span{font-size:10px}
}

@media(max-width:700px){
  .liveQueueHeading{grid-template-columns:auto 1fr;gap:4px 8px}
  .mascotQueue{gap:1px}
  .mascotQueue span{font-size:18px}.mascotQueue span:nth-child(2){font-size:20px}.mascotQueue span:nth-child(3){font-size:19px}.mascotQueue span:nth-child(4){font-size:21px}.mascotQueue span:nth-child(5){display:none}
  .randomMascotSticker{font-size:30px;right:10px;bottom:-3px;opacity:.16}
}

@media(prefers-reduced-motion:reduce){.randomMascotSticker,.mascotQueue span{transform:none}}


/* Phase 1H.2 — Branded splash and pre-event landing */
.splash{position:relative;overflow:hidden;background:radial-gradient(circle at top right,rgba(103,232,249,.18),transparent 32%),linear-gradient(135deg,#0b1220 0%,#101828 48%,#164e63 132%);color:#fff}
.splash:before,.splash:after{content:"";position:absolute;border-radius:999px;filter:blur(14px);opacity:.16;pointer-events:none}.splash:before{width:220px;height:220px;right:-42px;top:-38px;background:#67e8f9}.splash:after{width:260px;height:260px;left:-70px;bottom:-90px;background:#7f56d9}
.splashInner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:680px;padding:28px 22px}.splashBrandIcon{width:96px;height:96px;border-radius:24px;box-shadow:0 12px 30px rgba(0,0,0,.22);margin-bottom:18px}.pulseBrandIcon{display:block;object-fit:cover}
.splashEyebrow{margin:0 0 6px;font-size:11px;font-weight:900;letter-spacing:.24em;color:#a5f3fc;text-transform:uppercase}.splashTagline{max-width:560px;margin:8px auto 0;color:#d0d5dd;font-size:14px;line-height:1.6}.splashStatus{margin:14px 0 0;color:#f8fafc;font-size:13px;font-weight:700}
.splashPulse{display:flex;align-items:flex-end;justify-content:center;gap:8px;margin-top:22px;min-height:42px}.splashPulse span{display:block;width:12px;border-radius:999px;background:linear-gradient(180deg,#67e8f9,#22d3ee);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 4px 14px rgba(34,211,238,.18)}.splashPulse span:nth-child(1),.splashPulse span:nth-child(7){height:14px}.splashPulse span:nth-child(2),.splashPulse span:nth-child(6){height:22px}.splashPulse span:nth-child(3),.splashPulse span:nth-child(5){height:34px}.splashPulse span:nth-child(4){height:18px;background:linear-gradient(180deg,#ffffff,#cbd5e1)}
.pulseStartHero{padding-top:30px;padding-bottom:30px}.pulseHeroBrand{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;max-width:860px}.pulseHeroBrand .pulseBrandIcon{width:84px;height:84px;border-radius:22px;box-shadow:0 12px 26px rgba(0,0,0,.18)}.pulseHeroBrand h1{margin:0 0 6px;letter-spacing:.04em}.pulseHeroBrand p{margin:0;color:#e4e7ec;max-width:720px;font-size:15px;line-height:1.6}.pulseHeroHint{display:inline-block;margin-top:10px;color:#a5f3fc;font-size:12px;font-weight:700}
.pulseStartHero:after{content:"";position:absolute;inset:auto -8% -34px auto;width:340px;height:160px;border-radius:999px;background:radial-gradient(circle at center,rgba(165,243,252,.16),transparent 68%);pointer-events:none}
@media(max-width:700px){.splashInner{padding:24px 18px}.splashBrandIcon{width:84px;height:84px;border-radius:20px;margin-bottom:14px}.splash h1{font-size:38px}.splashTagline{font-size:13px}.splashPulse{gap:6px;margin-top:18px}.splashPulse span{width:10px}.pulseHeroBrand{grid-template-columns:1fr;gap:14px;text-align:center}.pulseHeroBrand .pulseBrandIcon{margin:0 auto;width:76px;height:76px;border-radius:20px}.pulseHeroHint{display:block}.pulseStartHero{padding-top:24px;padding-bottom:24px}}


/* Phase 1H.3 — Slimmer in-event PULSE identity */
.hubSlimBrand{padding:14px 16px;background:linear-gradient(135deg,#101828 0%,#1d2939 58%,#164e63 140%);color:#fff;border:1px solid rgba(255,255,255,.06);box-shadow:0 10px 24px rgba(16,24,40,.10)}
.hubSlimBrandInner{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.hubSlimBrandIcon{width:54px;height:54px;border-radius:14px;display:block;object-fit:cover;box-shadow:0 8px 18px rgba(0,0,0,.18)}
.hubSlimBrand small{display:block;font-size:9px;font-weight:900;letter-spacing:.18em;color:#a5f3fc;margin-bottom:4px}.hubSlimBrand h2{margin:0 0 2px;font-size:22px;letter-spacing:.04em}.hubSlimBrand p{margin:0;color:#d0d5dd;font-size:12px;line-height:1.45}
@media(max-width:700px){.hubSlimBrand{padding:12px 14px}.hubSlimBrandInner{gap:10px}.hubSlimBrandIcon{width:46px;height:46px;border-radius:12px}.hubSlimBrand h2{font-size:19px}.hubSlimBrand p{font-size:11px}}


/* v3.1.0-rc2 — Post-pilot one-shot refinement */
.sharedRoomDialog{width:min(760px,calc(100vw - 40px))}
#eventRoomDlg{width:min(800px,calc(100vw - 40px))}
.hubSlimBrandInner{grid-template-columns:auto 1fr auto}.helpBtn{align-self:center;background:#fff;color:#164e63;border-color:#bae6fd;white-space:nowrap}
.moduleQuickNav{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 0 8px;scrollbar-width:thin}.moduleQuickNav button{flex:0 0 auto;min-height:42px;padding:9px 12px;font-size:11px;background:#fff}.moduleQuickNav button.active{background:#101828;color:#fff;border-color:#101828}.moduleQuickNav .quickHelp{color:#0369a1;background:#f0f9ff;border-color:#bae6fd}
.helpDialog{width:min(760px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto}.helpGuideGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.helpGuideGrid>div{display:flex;flex-direction:column;gap:4px;border:1px solid #e4e7ec;background:#f9fafb;border-radius:13px;padding:12px}.helpGuideGrid b{font-size:12px}.helpGuideGrid span{font-size:10px;color:#667085;line-height:1.45}.helpDetails{border:1px solid #d0d5dd;border-radius:13px;padding:11px 12px}.helpDetails summary{font-weight:800;cursor:pointer}.helpDetails li{font-size:10px;color:#475467;margin:5px 0}
.backBtn{min-height:42px}.topLeft>.backBtn{padding:10px 12px}
.endExceptionCard .rowHead{gap:10px}.endExceptionCard .rowHead>button{width:auto}.seatStatusRow{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border-top:1px solid #eaecf0;padding:11px 0}.seatStatusRow:first-child{border-top:0}.seatStatusSeat{width:44px;height:44px;border-radius:12px;background:#f2f4f7;display:grid;place-items:center;font-weight:900}.seatStatusInfo{display:flex;flex-direction:column;gap:3px}.seatStatusInfo b{font-size:12px}.seatStatusInfo span{font-size:10px;color:#667085}.seatStatusTag{font-size:8px;font-weight:900;border-radius:999px;padding:5px 8px;background:#fff4e5;color:#b54708}.seatStatusTag.absent{background:#fef3f2;color:#b42318}.seatStatusTag.different_venue{background:#eef4ff;color:#3538cd}.seatStatusTag.late{background:#fffaeb;color:#b54708}.seatStatusDialog{width:min(620px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto}.seatStatusDialog select,.seatStatusDialog textarea{width:100%}.statusTwoCol{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.exportHeroActions{display:grid;gap:8px;min-width:210px}.exportHeroActions button{width:100%;margin:0}.emailReportsBtn{background:#f0f9ff;color:#0369a1;border-color:#bae6fd}.emailReportsDialog{width:min(680px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto}.emailReportsDialog textarea{width:100%;resize:vertical}
.integrityBanner{margin:10px 0;border:1px solid #fedf89;background:#fffaeb;color:#93370d;border-radius:14px;padding:11px 12px;font-size:10px;font-weight:700}
@media(max-width:700px){
  #eventRoomDlg,.sharedRoomDialog{width:calc(100vw - 16px)}
  .hubSlimBrandInner{grid-template-columns:auto 1fr}.hubSlimBrand .helpBtn{grid-column:1/-1;width:100%}
  .topLeft>.backBtn{min-height:46px;padding:11px 13px;font-size:12px}
  .moduleQuickNav{margin:-2px 0 2px;padding-bottom:7px}.moduleQuickNav button{min-height:44px}
  .helpGuideGrid{grid-template-columns:1fr}.statusTwoCol{grid-template-columns:1fr}
  .endExceptionCard .rowHead{align-items:stretch;flex-direction:column}.endExceptionCard .rowHead>button{width:100%}
  .exportHeroActions{width:100%;min-width:0}.seatStatusRow{grid-template-columns:auto 1fr}.seatStatusRow .seatStatusTag{grid-column:2}
}


/* RC2.1 — adaptive desktop dialogs and clearer status control */
.emailReportsDialog,.seatStatusDialog{box-sizing:border-box}
.statusTypeSelect{}
#statusTypeSelect{min-height:52px;padding:12px 14px;border:1px solid #d0d5dd;background:#fff;border-radius:12px;font:inherit;font-size:15px}
@media(min-width:900px){
  #emailReportsDlg{width:min(920px,calc(100vw - 64px));max-width:none}
  #emailReportsDlg .emailReportsDialog{width:100%;padding:24px 28px;max-height:88dvh;overflow-y:auto}
  #emailReportsDlg h3{font-size:24px;margin:6px 0 10px}
  #emailReportsDlg input,#emailReportsDlg textarea{font-size:15px;padding:13px 14px}
  #emailReportsDlg textarea{min-height:130px}
  #endSeatStatusDlg{width:min(820px,calc(100vw - 64px));max-width:none}
  #endSeatStatusDlg .seatStatusDialog{width:100%;padding:24px 28px;max-height:88dvh;overflow-y:auto}
  #endSeatStatusDlg h3{font-size:24px;margin:6px 0 10px}
  #endSeatStatusDlg input,#endSeatStatusDlg textarea,#endSeatStatusDlg select{font-size:15px}
}
@media(max-width:899px){#emailReportsDlg,#endSeatStatusDlg{width:min(96vw,680px)}}


/* RC2.3 — consistent adaptive dialogs / pop-ups */
dialog{
  box-sizing:border-box;
  max-height:92dvh;
  overflow:hidden;
}
dialog>.dialog{
  box-sizing:border-box;
  width:100%;
  max-height:90dvh;
  overflow-y:auto;
  overflow-x:hidden;
}
dialog input,
dialog select,
dialog textarea{
  box-sizing:border-box;
  max-width:100%;
}
dialog select,
dialog textarea{
  width:100%;
}

/* Larger working dialogs on laptop / desktop */
@media(min-width:900px){
  /* General operational forms */
  #endRoomDlg,
  #chatMembersDlg,
  #incidentDlg,
  #eventRoomDlg,
  #editDlg{
    width:min(820px,calc(100vw - 64px));
    max-width:none;
  }

  /* Help benefits from a little more breathing room */
  #helpDlg{
    width:min(960px,calc(100vw - 64px));
    max-width:none;
  }
  #helpDlg .helpDialog{
    width:100%;
    padding:26px 30px;
    max-height:88dvh;
  }
  #helpDlg h3{
    font-size:26px;
    margin:6px 0 10px;
  }
  #helpDlg .helpGuideGrid{
    gap:12px;
  }
  #helpDlg .helpGuideGrid>div{
    padding:15px;
  }
  #helpDlg .helpGuideGrid b{
    font-size:14px;
  }
  #helpDlg .helpGuideGrid span,
  #helpDlg .helpDetails li{
    font-size:12px;
  }

  /* Simple action dialogs should still be comfortably sized, not oversized */
  #chatNameDlg,
  #adminPinDlg{
    width:min(620px,calc(100vw - 64px));
    max-width:none;
  }
  #assignDlg{
    width:min(700px,calc(100vw - 64px));
    max-width:none;
  }

  #endRoomDlg>.dialog,
  #chatMembersDlg>.dialog,
  #incidentDlg>.dialog,
  #eventRoomDlg>.dialog,
  #editDlg>.dialog,
  #chatNameDlg>.dialog,
  #adminPinDlg>.dialog,
  #assignDlg>.dialog{
    padding:24px 28px;
  }
}

/* Phone / tablet: use nearly all available width, with safe edge margins */
@media(max-width:899px){
  dialog,
  #helpDlg,
  #endRoomDlg,
  #chatMembersDlg,
  #chatNameDlg,
  #incidentDlg,
  #adminPinDlg,
  #eventRoomDlg,
  #editDlg,
  #assignDlg,
  #emailReportsDlg,
  #endSeatStatusDlg{
    width:min(96vw,760px);
    max-width:none;
  }
  dialog>.dialog{
    padding:18px;
  }
}

/* Very narrow phones */
@media(max-width:420px){
  dialog,
  #helpDlg,
  #endRoomDlg,
  #chatMembersDlg,
  #chatNameDlg,
  #incidentDlg,
  #adminPinDlg,
  #eventRoomDlg,
  #editDlg,
  #assignDlg,
  #emailReportsDlg,
  #endSeatStatusDlg{
    width:calc(100vw - 12px);
  }
  dialog>.dialog{
    padding:16px;
  }
}
