@import url('./fonts.css');
.active-alert-title{color:#c64431}
:root{font-family:Inter,'Segoe UI',sans-serif;color:#21372f;background:#f5f5ef;font-synthesis:none;--green:#173d30;--red:#c64431;--muted:#6b7970;--line:#dfe3da;--paper:#fff;--radius:16px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #cd973c;outline-offset:4px}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:36px;line-height:1.12;letter-spacing:-1.3px;margin-bottom:12px}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}p{line-height:1.6}small,.muted{color:var(--muted)}.loading{padding:15vh 10%;font-size:30px;font-weight:800}.loading span{display:block;font-size:16px;font-weight:400;margin-top:20px}
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:#132b22;color:#dde9de;position:sticky;top:0;height:100vh;padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:800;letter-spacing:2px;color:white}.brand svg{width:38px;height:44px;flex-shrink:0}.brand>div{min-width:0}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:1px;line-height:1.6;margin-top:5px;color:#a6beaf}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted)}.sidebar .eyebrow{color:#93ad9e;margin:48px 14px 14px}.nav{display:grid;gap:8px}.nav button{border:0;background:transparent;color:#b6cabd;padding:14px;text-align:left;border-radius:9px;display:flex;align-items:center;gap:12px;font-size:14px}.nav button.active{background:#294738;color:#fff}.nav button:hover{background:#223e31}.nav svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto;border-top:1px solid #355042;padding-top:22px;font-size:12px;line-height:1.7;color:#a8bdaf}.sidebar-bottom strong{display:block;color:#e2eade}.avatar{display:inline-grid;place-items:center;border-radius:50%;background:#e8ede6;width:38px;height:38px;font-size:12px;font-weight:700;color:#36543d;flex-shrink:0}.sidebar .avatar{background:#395844;color:white}.profile{display:flex;gap:11px;align-items:center;margin-top:20px}.profile small{display:block;color:#a8bdaf}.content{min-width:0}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 44px;gap:15px;background:#fafaf6}.org-label{font-weight:650;font-size:14px}.org-label small{display:block;font-weight:400;font-size:11px;margin-top:5px}.top-actions{display:flex;gap:12px;align-items:center}.pill{border-radius:30px;padding:7px 11px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:6px;background:#e8ede4;color:#426042;white-space:nowrap}.pill.amber{background:#faf0d7;color:#866020}.pill.red{background:#ffebe6;color:#a13d2e}.pill.gray{background:#edf0ed;color:#65746a}.dot{width:6px;height:6px;background:currentColor;border-radius:50%}.main{max-width:1400px;padding:38px 44px 44px;margin:0 auto}.intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:26px}.intro p{color:var(--muted);font-size:14px;margin:0}.intro .eyebrow{margin-bottom:12px}.outline,.solid,.danger,.subtle{border:1px solid var(--line);padding:11px 16px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:13px;font-weight:650;background:white;color:var(--green)}.solid{background:var(--green);color:white;border-color:var(--green)}.danger{background:var(--red);border-color:var(--red);color:white}.subtle{background:transparent;border-color:transparent}.outline:hover{background:#f0f3ed}.banner{background:#fff5dc;border:1px solid #efdfb3;color:#745827;border-radius:9px;font-size:12px;padding:12px 16px;line-height:1.6;margin-bottom:24px}.banner.offline{background:#ffebe6;color:#9d382b}.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:23px}.card{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:25px;min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.card-header h2{margin:0}.card-header small{font-size:11px}.alert-launch{background:#f8ebe3;border:1px solid #e9c6b8;display:flex;align-items:center;gap:22px;padding:29px;border-radius:var(--radius);margin-bottom:24px}.alert-symbol{width:72px;height:72px;display:grid;place-items:center;background:#c64431;color:white;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 8px #f2d9ce}.alert-symbol svg{width:32px;height:32px}.alert-launch h2{margin-bottom:6px;font-size:23px;color:#622c22}.alert-launch p{margin-bottom:14px;font-size:13px;color:#795d51}.alert-launch .danger{padding:12px 22px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.stat{padding:20px;border:1px solid var(--line);background:#fff;border-radius:12px}.stat strong{display:block;font-size:31px;line-height:1;margin:12px 0 9px;font-weight:650}.stat .eyebrow{font-size:9px;letter-spacing:1px}.stat small{font-size:11px}.incident{padding:19px 0;border-top:1px solid var(--line)}.incident:first-of-type{border-top:0}.incident-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.incident h3{margin:11px 0 5px}.incident p{font-size:13px;color:var(--muted);margin-bottom:12px;overflow-wrap:anywhere}.incident small{font-size:11px}.incident-footer{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-top:16px}.count{display:inline-flex;gap:5px;font-size:12px;color:#436048}.empty{text-align:center;padding:32px 10px;color:var(--muted);line-height:1.7;font-size:14px}.notice{padding:16px;background:#f6f7f1;border-radius:10px;font-size:12px;line-height:1.7;color:#617162;margin-top:20px}.contact-row{display:flex;gap:11px;align-items:center;border-bottom:1px solid #edf0e9;padding:14px 0}.contact-row:last-child{border:0}.contact-row .name{flex:1;min-width:0;font-size:13px}.contact-row small{display:block;margin-top:4px;font-size:11px}.linkbutton{color:#486343;border:0;background:none;font-size:12px;font-weight:650;padding:4px}.service-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:11px 0}.service-row span:last-child{color:#8b6b39}.section-gap{margin-top:23px}.progress{height:6px;background:#edf0e7;border-radius:6px;margin:13px 0;overflow:hidden}.progress span{display:block;background:#638157;height:100%}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions button.selected{outline:2px solid #78936c;background:#e8f0e3;color:#25412a}.detail-top{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}.detail-top h1{margin-top:15px;font-size:29px}.detail-location{font-size:17px;overflow-wrap:anywhere}.description{white-space:pre-wrap;overflow-wrap:anywhere;color:#55665a;font-size:14px}.label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}.field{width:100%;border:1px solid #cfd7ca;border-radius:8px;padding:12px;background:#fff;color:#21372f;outline:none}.field:focus{border-color:#527e51;box-shadow:0 0 0 3px #e9efdf}.field-group{margin-bottom:18px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 17px}textarea.field{min-height:94px;resize:vertical}.help{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}.member-table{width:100%;border-collapse:collapse;text-align:left}.member-table th{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid var(--line);padding:12px 8px}.member-table td{padding:15px 8px;border-bottom:1px solid #edf0e9;font-size:13px}.table-scroll{overflow-x:auto}.message-list{max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:6px;margin-bottom:20px}.message{font-size:13px;background:#f4f6ef;padding:8px 11px;border-radius:10px;max-width:92%}.message.mine{align-self:flex-end;background:#e8efdf}.message strong{font-size:11px}.message p{margin:2px 0 0;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.message small{font-size:10px}.chat-form{display:flex;gap:10px;align-items:flex-end}.chat-form textarea{min-height:52px}.chat-form button{height:52px}.auth{max-width:490px;margin:40px auto}.auth h1{font-size:27px}.auth-tabs{display:flex;gap:10px;margin-bottom:25px}.auth-tabs button{flex:1}.page-footer{font-size:11px;color:#849082;display:flex;justify-content:space-between;gap:15px;margin-top:30px;line-height:1.6}.readiness{font-size:12px;line-height:1.8;color:#66725f}.readiness li{margin-bottom:9px}.review{background:#f6f7f1;padding:18px;border-radius:10px;margin:18px 0}.review p{overflow-wrap:anywhere}.error{color:#a62e24;font-size:13px;line-height:1.6}.mobile-brand{display:none}.small-select{max-width:260px;border:1px solid var(--line);border-radius:8px;background:white;padding:8px;font-size:12px}dialog{width:calc(100% - 28px);max-width:590px;padding:28px;border:1px solid var(--line);border-radius:18px;color:#21372f;box-shadow:0 25px 100px #13251f40}dialog::backdrop{background:#13251f88;backdrop-filter:blur(3px)}dialog h2{margin-bottom:9px}.dialog-top{display:flex;justify-content:space-between;gap:10px}.dialog-top button{border:0;background:none;font-size:25px;line-height:1;align-self:flex-start;color:#66725f}.dialog-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-buttons button{min-width:120px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);background:#173d30;color:white;padding:14px 22px;border-radius:10px;font-size:13px;box-shadow:0 8px 30px #10221933;display:none;z-index:100}#toast.visible{display:block}.hidden{display:none!important}.brand-sub{color:#90a895;font-size:10px}.tagline{max-width:190px;margin-top:21px;font-size:11px;line-height:1.7;color:#a5bba8}.form-status{min-height:22px;margin-top:12px}
@media(min-width:1500px){.main{padding-top:46px}.grid{gap:28px}}
@media(max-width:1100px){.shell{grid-template-columns:210px 1fr}.main{padding:28px}.topbar{padding:0 28px}.grid{grid-template-columns:1fr}.side-stack{display:grid;grid-template-columns:1fr 1fr;gap:20px}.side-stack>.card{margin:0}.intro h1{font-size:30px}}
@media(max-width:720px){.shell{display:block}.sidebar{height:auto;position:relative;padding:20px;display:block}.sidebar .brand{font-size:22px}.sidebar .brand svg{height:34px}.sidebar .eyebrow,.sidebar-bottom,.tagline{display:none}.nav{display:flex;gap:6px;margin-top:20px;overflow-x:auto}.nav button{padding:10px 12px;white-space:nowrap;gap:6px;font-size:12px}.nav svg{width:16px}.topbar{height:auto;min-height:68px;padding:14px 20px;flex-wrap:wrap}.main{padding:24px 18px}.intro{gap:12px}.intro h1{font-size:27px}.intro .outline{padding:9px;font-size:11px}.intro p{font-size:12px}.stats{gap:8px}.stat{padding:13px 10px}.stat strong{font-size:26px}.stat .eyebrow{font-size:8px}.stat small{font-size:10px}.alert-launch{padding:23px 18px;gap:19px}.alert-symbol{width:49px;height:49px;box-shadow:0 0 0 5px #f2d9ce}.alert-symbol svg{width:24px}.alert-launch h2{font-size:21px}.alert-launch p{font-size:12px}.card{padding:20px}.side-stack{display:block}.side-stack>.card+.card{margin-top:20px}.field-grid{grid-template-columns:1fr}.page-footer{display:block}.top-actions{gap:6px}.detail-top h1{font-size:26px}.actions button{flex:1}.pill{font-size:10px}.member-table td{font-size:12px}.chat-form{flex-wrap:wrap}.chat-form button{width:100%}.small-select{max-width:100%}dialog{padding:22px}.dialog-buttons{flex-wrap:wrap}.dialog-buttons button{flex:1}.banner{font-size:11px}.auth{margin-top:10px}}

#location-dialog{width:min(900px,96vw);max-width:96vw;padding:14px}#location-frame{display:block;width:100%;height:75vh;border:0;margin-top:10px}
.information-links{display:flex;gap:14px;flex-wrap:wrap}.information-links a{display:inline-block;padding:8px 0}
@media(max-width:720px){.page-footer{display:flex;flex-direction:column;align-items:flex-start;gap:14px}.page-footer>span{display:block;max-width:100%;overflow-wrap:anywhere}}

.delete-content{color:#a62f26;border-color:#d7a6a0;margin:10px 0;min-height:44px;white-space:normal}.message .delete-content{display:inline-block;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#a62f26;font-size:11px;font-weight:400;line-height:1.4;padding:0;margin:3px 0 0;text-decoration:underline;text-underline-offset:2px}.message .delete-content:hover{color:#7f211b;background:transparent}

.suspension-reason { white-space: pre-wrap; overflow-wrap: anywhere; }

.member-activity{min-width:130px;font-size:12px;color:#617065;font-variant-numeric:tabular-nums}

.message-header{display:flex;align-items:baseline;justify-content:space-between;gap:3px 10px;flex-wrap:wrap;line-height:1.35}.message-header strong{min-width:0;overflow-wrap:anywhere}.message-header small{white-space:nowrap;color:var(--muted)}

/* Compact phone header with comfortable navigation touch targets. */
@media(max-width:720px){.sidebar{padding-top:10px;padding-bottom:6px}.sidebar .brand{gap:10px}.sidebar .brand svg{width:30px;height:32px}.sidebar .brand small{margin-top:2px;line-height:1.35}.nav{margin-top:8px}.nav button{min-height:44px;padding-top:8px;padding-bottom:8px}}
/* Let the association selector shrink inside the mobile header. */
/* Active incidents use the soft red highlight shared with the mobile app. */
.incident.incident-active,.card.incident-active{background:#fce4e0;border:1px solid #e5aaa0;border-left:4px solid #c64431}
.incident.incident-active{padding:16px 12px;margin:10px 0;border-radius:9px}
.pill.active-alert{background:#c64431;color:#fff}
.incident-active h3,.incident-active .detail-top h1,.incident-active .active-alert-title{color:#8c3022}
.incident-active .incident-footer .outline{color:#8c3022;border-color:#e9c6b8}
.incident-active .incident-footer .outline:hover{background:#f2d9ce}
.topbar .org-label{flex:1 1 180px;min-width:0;max-width:100%;overflow-wrap:anywhere}
#association-select{display:block;width:100%;max-width:260px;min-width:0;box-sizing:border-box;text-overflow:ellipsis}
@media(max-width:720px){#association-select{max-width:100%}}

/* Full-width name above the selector and alert status on phones. */
.org-controls{display:contents}.org-switch{min-width:0;max-width:260px}.org-switch:empty{display:none}
@media(max-width:720px){.topbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}.topbar .org-label{flex:none;width:100%;max-width:100%}.org-controls{display:flex;align-items:center;gap:10px;width:100%;min-width:0}.org-switch{flex:1;min-width:0;max-width:none}.org-controls .top-actions{margin-left:auto;flex-shrink:0}.org-controls #association-select{width:100%;max-width:100%}}

@media(max-width:720px){.topbar.single-association{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px}.single-association .org-label,.single-association .org-controls{display:contents}.single-association .org-name{grid-column:1 / -1;min-width:0;overflow-wrap:anywhere}.single-association .org-label small{grid-column:1;grid-row:2;margin-top:0;min-width:0}.single-association .top-actions{grid-column:2;grid-row:2;margin-left:0}.single-association .org-switch{display:none}}

.auth .association-login-link{display:flex;margin-top:16px;min-height:44px}

.brand .relay-indicator{display:inline-block;width:10px;height:10px;margin-left:8px;vertical-align:middle;border-radius:50%;background:#ef4444;letter-spacing:0}.brand .relay-indicator.connected{background:#4ade80}.brand .relay-indicator[hidden]{display:none}
.chat-unread-icon,.chat-unread-button{display:inline-flex;align-items:center;gap:5px}.chat-unread-icon{margin-left:6px}.chat-unread-icon svg,.chat-unread-button svg{width:20px;height:20px;flex-shrink:0}.chat-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border:1px solid #b91c1c;border-radius:12px;background:#dc2626;color:#fff;font-size:12px;font-weight:700;line-height:1}.chat-unread-count[hidden]{display:none}
