.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.loading{padding:65px 25px;text-align:center;color:#7182a1}
.org-picker{display:block;margin-top:22px}.org-picker select{width:100%;padding:10px 28px 10px 11px;border:1px solid #e5eaf4;background:#f7f9fc;border-radius:9px;color:#546887;font:inherit;font-size:.875rem}
.org-picker+.search{margin-top:13px}.sync-light{width:6px;height:6px;background:#82a394;border-radius:50%;flex-shrink:0}.sync-light.offline{background:#d59b72}
.blank-state{padding:45px 25px;text-align:center;max-width:520px;margin:15px auto;color:#7988a3}.blank-state h2{margin:20px 0 11px;color:#435875}.blank-state p{line-height:1.8;font-size:1rem;margin-bottom:22px}.blank-icon{width:50px;height:50px;display:grid;place-items:center;background:#e8eefb;border-radius:17px;margin:auto;color:#7f95cc}
.onboarding{max-width:750px;margin:9vh auto;padding:35px}.onboarding-brand{display:flex;align-items:center;gap:13px;margin-bottom:45px}.onboarding-brand .logo{margin:0}.onboarding>h1{font-size:2rem;line-height:1.4;color:#334966}.onboarding>p{font-size:1rem;line-height:1.9;margin:18px 0;color:#7b89a1}.onboarding-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:35px 0}.welcome-option{background:white;border:1px solid #e2e9f4;border-radius:18px;padding:27px;text-align:left;display:flex;flex-direction:column;gap:15px}.welcome-option svg{color:#7f96ca}.welcome-option strong{font-size:1rem;color:#435a80}.welcome-option span{font-size:.875rem;line-height:1.7;color:#8796af}.welcome-option:hover{border-color:#aabbdf;box-shadow:0 5px 20px #33496709}
a{color:#697fc5}a.primary{text-decoration:none;color:#fff}.rail a{text-decoration:none}
.live-dialog{border:1px solid #e3e9f4;border-radius:20px;width:min(560px,calc(100% - 30px));max-height:calc(100dvh - 40px);padding:28px;color:#344a68;background:#fff;box-shadow:0 20px 90px #263d6520}.live-dialog::backdrop{background:#26395766}.live-dialog h2{font-size:1.25rem}.live-dialog .intro{color:#7f8eaa;line-height:1.8;margin:18px 0}.live-dialog form{margin-top:22px}.field{display:flex;flex-direction:column;gap:8px;font-size:.875rem;color:#6b7f9e;margin:17px 0}.field input,.field textarea,.field select{border:1px solid #dfe7f4;border-radius:9px;background:#f9fbfe;padding:12px;color:#435b7e;font:inherit;font-size:1rem;width:100%}.field textarea{resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #b6c7ec;outline-offset:1px}.field input[readonly]{font-size:.8125rem}.check-field{display:flex;gap:9px;align-items:center;color:#6b7f9e;font-size:.875rem;margin:18px 0}.check-field input{accent-color:#5366d8;width:17px;height:17px}.live-dialog fieldset{border:1px solid #e6eaf2;border-radius:12px;padding:3px 17px 10px;margin:20px 0}.live-dialog legend{font-size:.8125rem;color:#8e9bb2;padding:0 6px}.live-dialog form>.primary{margin-top:18px}.live-dialog .sub{line-height:1.8}.form-error{color:#a45850;background:#fcf0ec;border-radius:9px;padding:12px 15px;font-size:.875rem;line-height:1.8;margin-top:18px}.primary:disabled{opacity:.6;cursor:wait}
.management-grid{display:grid;grid-template-columns:1fr;gap:0}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #edf1f7}.admin-row:last-child{border:0}.admin-row strong{font-size:.875rem;font-weight:650;color:#59708f}.admin-row small{display:block;font-size:.8125rem;color:#96a3b9;margin-top:6px;line-height:1.6}.admin-row .secondary{font-size:.8125rem;padding:8px 11px}.access-note{font-size:.8125rem!important;line-height:1.8!important;margin-top:18px!important;color:#8b99ae!important}.screen-card .tag{margin-bottom:13px}.screen-card .post-actions{margin-top:15px}.screen-card .event-card{margin:15px 0 23px}.connection-note{padding:12px 25px;background:#fff0e3;color:#a17b5f;font-size:.875rem;display:flex;align-items:center;gap:12px}.pending{opacity:.7}.pending .text-button{margin-top:9px}.feed>.secondary{display:block;margin:18px auto}.post .sub{font-size:.75rem;margin-top:15px}.profile-row p{margin:6px 0 0;font-size:.875rem}.live-dialog .comments{border:0}.live-dialog .comments p{color:#8291a8;font-size:.9375rem;line-height:1.8}
@media(min-width:760px){.rail-item{font-size:.6875rem}.rail-item span{max-width:100%;overflow:hidden}.back{display:none}}
@media(max-width:760px){.onboarding{margin:3vh auto;padding:24px}.onboarding>h1{font-size:1.5rem}.onboarding-options{grid-template-columns:1fr}.onboarding-brand{margin-bottom:30px}.live-dialog{padding:23px}.rail-item{width:62px;font-size:.625rem}.rail-item svg{width:20px;height:20px}.org-picker{margin-top:18px}.screen>.head-row{flex-wrap:wrap;align-items:center}.header-actions .secondary{font-size:.75rem;padding:8px}.admin-row{gap:10px;flex-wrap:wrap}.screen .intro{font-size:.875rem}.live-dialog .field input,.live-dialog .field select{font-size:1rem}.connection-note{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.signout-link{display:inline-flex;align-items:center;text-decoration:none;color:#7c8296}.signout-link:hover{background:#f5f7fc;color:#445675}

.school-name{margin:22px 0;color:#7185a8;font-size:.875rem;font-weight:600;overflow-wrap:anywhere}.onboarding-options.single-school{grid-template-columns:1fr}

.member-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}

/* Phone chat layout, including safe areas and the on-screen keyboard. */
.composer textarea{flex:1;min-width:0;resize:none;min-height:46px;max-height:144px;padding:11px 14px;border:1px solid #e7ecf5;border-radius:14px;background:#f3f6fb;color:#344a68;font:inherit;font-size:1rem;line-height:1.5;overflow-y:auto}
.nav-short{display:none}.chat-brand{font-size:.75rem;font-weight:700;letter-spacing:.035em;color:#5366d8}.chat-list-title h1{margin:3px 0 0;font-size:1.6rem;line-height:1.2;letter-spacing:-.04em;color:#243350}.school-mark{display:inline-block;width:8px;height:8px;flex-shrink:0;background:#f0b387;border-radius:3px}.school-name{display:flex;align-items:center;gap:8px}.composer-footer>.primary{width:100%;max-width:650px;margin:auto}.chat-list-title{min-width:0}
.composer{align-items:flex-end}.composer button{flex-shrink:0;min-width:46px;min-height:46px}
.message,.post p,.post h3,.screen-card p,.admin-row strong{overflow-wrap:anywhere}
.workspace,.feed,.list-panel,.conversations{min-height:0;min-width:0}
@media(max-width:760px){
 html,body,#app{width:100%;min-height:100%;overscroll-behavior-y:none}
 .shell{height:var(--phone-height,100dvh);min-height:0;padding-top:env(safe-area-inset-top);padding-bottom:calc(68px + env(safe-area-inset-bottom));overflow:hidden}
 .rail{height:calc(68px + env(safe-area-inset-bottom));padding:5px max(6px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));gap:2px;align-items:stretch}
 .rail-item{flex:1;min-width:0;width:auto;min-height:54px;padding:7px 1px;gap:4px;font-size:.75rem;line-height:1.2;color:#64738d}
 .rail-item svg{width:23px;height:23px}.rail-item span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .list-head{padding:18px 18px 12px}.school-name{margin:8px 0 14px;font-size:.875rem}.brand-name{font-size:1.5rem}
 .list-foot{padding:9px 18px;font-size:.75rem}.conversations{padding:0 8px;overscroll-behavior:contain}
 .conversation{min-height:78px;padding:13px 10px;gap:12px}.convo-title{font-size:1rem}.snippet{font-size:.875rem}.search input{font-size:1rem;min-height:44px}
 .filter{min-height:44px}.filter-row{gap:5px}.channel-header{flex-shrink:0;min-height:68px;padding:10px 12px;gap:8px}
 .channel-identity{min-width:0;flex:1}.channel-identity>div{min-width:0}.channel-identity h2{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .channel-identity .sub{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:4px}
 .back,.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:10px}.back{margin-right:2px;flex-shrink:0}
 .header-actions{flex-shrink:0;gap:0}.header-actions .secondary{min-height:44px;max-width:100px;white-space:normal}
 .feed{padding:14px 12px;overscroll-behavior:contain;scroll-behavior:auto}
 .message{max-width:90%;padding:11px 14px;font-size:1rem;line-height:1.5;margin-bottom:10px}.message small{font-size:.75rem;color:#637797}
 .post{padding:17px 15px;margin-bottom:14px;border-radius:16px;box-shadow:none}.post-top{flex-wrap:wrap}.post-top strong{font-size:.875rem}.post-top small{font-size:.75rem;color:#718099}.post-top .tag{font-size:.75rem;margin-left:0}.post p{line-height:1.6}
 .post-actions{flex-wrap:wrap;gap:8px}.primary,.secondary,.text-button,.reaction,.comment-link{min-height:44px}.reaction{min-width:44px}.event-card{gap:10px}.event-info{min-width:0}.event-info strong{font-size:.875rem}.event-info small{font-size:.8125rem}
 .composer{flex-shrink:0;gap:8px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));background:#fff;border-top:1px solid #e6eaf3}.composer textarea{font-size:1rem}.composer-footer{flex-shrink:0;font-size:.75rem;padding:10px 14px}
 .screen{padding:22px 14px;overflow:auto;overscroll-behavior:contain}.screen-card{padding:19px 16px}.screen h1{font-size:1.6rem}.screen-card .head-row{flex-wrap:wrap;gap:8px}.admin-row{align-items:flex-start}.member-actions{justify-content:flex-start;width:100%}
 .profile-row{min-width:0}.profile-row>div{min-width:0}.profile-row p{overflow-wrap:anywhere}.profile-setting{gap:14px}
 .live-dialog{width:calc(100% - 16px);max-height:calc(var(--phone-height,100dvh) - 24px);margin:auto;padding:20px 16px;border-radius:20px;overscroll-behavior:contain}.live-dialog .field input,.live-dialog .field select,.live-dialog .field textarea{font-size:1rem;min-height:46px}
 .onboarding{padding:24px 18px;margin:2vh auto}.onboarding-brand{margin-bottom:22px}.onboarding-options{margin:24px 0}.welcome-option{padding:22px}
 #toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:.875rem}
 .keyboard-open .shell{padding-bottom:0}.keyboard-open .rail{display:none}.keyboard-open #toast{bottom:80px}
}

/* A conversation takes the full screen; the back button returns to the chat list. */
@media(max-width:760px){
 .list-head{padding:20px 18px 10px}.list-head>.head-row{align-items:center}.chat-list-title h1{font-size:1.85rem}.chat-brand{font-size:.8125rem}.list-head>.head-row>.icon-btn{background:#edf1ff;color:#5366d8;border-radius:15px;font-size:1.35rem}
 .school-name{margin:12px 0 17px;line-height:1.4;font-weight:500;color:#65748c;font-size:.875rem}
 .search{padding:0 13px;gap:9px;min-height:48px;margin-top:0;border-radius:14px;background:#f0f3f8}.search input{padding:0;min-height:48px;color:#354560}.search svg{width:19px;height:19px}.search input::placeholder{color:#738099}
 .filter-row{margin-top:12px;gap:8px}.filter{border-radius:20px;min-height:40px;padding:9px 16px;font-size:.875rem}.filter.active{background:#5366d8;color:#fff}
 .conversations{padding:3px 10px}.conversation{border-radius:15px;padding:15px 10px;margin-bottom:2px}.conversation:not(.active){border-bottom:1px solid #f0f2f7}.conversation.active{background:#eef2ff}.conversation.active:before{display:none}.conversation .avatar{width:48px;height:48px;border-radius:17px}.convo-title{font-weight:650;line-height:1.4}.snippet{margin-top:3px;color:#6f7e94}
 .rail{box-shadow:0 -4px 20px #24335004}.rail-item{color:#68768d;border-radius:0;font-weight:500}.rail-item.active{background:transparent;color:#4056bd}.rail-item.active svg{background:#eaf0ff;border-radius:10px;box-sizing:content-box;padding:4px 13px;margin:-4px -13px}.rail-item[data-tab="manage"] .nav-full{display:none}.rail-item[data-tab="manage"] .nav-short{display:block}
 .shell.mobile-detail{padding-bottom:env(safe-area-inset-bottom);background:#fff}.shell.mobile-detail .rail{display:none}.shell.mobile-detail #toast{bottom:90px}
 .channel-header{padding:9px 10px;min-height:66px;border-bottom:1px solid #e6eaf3}.channel-identity h2{font-weight:700}.channel-identity .sub{color:#6c7c94}.header-actions .icon-btn,.back{color:#5367af}
 .feed{background:#f0f3f9;padding:14px 12px 20px}.post{border:0;border-radius:18px;padding:18px 16px;box-shadow:0 1px 3px #24335005}.post-top strong{color:#445775;font-weight:600}.post h3{font-size:1.125rem;line-height:1.45;letter-spacing:-.015em;margin:16px 0 10px}.post p{color:#455774;line-height:1.65}.post-top .tag{background:#fff0e3;color:#88603f;font-size:.75rem;padding:5px 7px}.post-top small{margin-top:3px}
 .post-bottom{margin-top:16px}.reaction{background:#eff3fb;color:#6379ba;border-radius:20px;padding:7px 12px}.reaction:nth-child(2){background:#fff0e5;color:#ad7855}.comment-link{margin-top:13px;padding:12px 0 0;color:#5069ad;border-color:#edf0f6}.post>.secondary{background:#f3f6fc;border-color:#edf1f8;color:#52698e}
 .message{border:0;box-shadow:0 1px 2px #24335008;border-radius:17px 17px 17px 5px;color:#334761;background:#fff}.message.mine{background:#e3eaff;color:#2f4368;border-radius:17px 17px 5px 17px}.message-author{color:#5269af;font-size:.8125rem}.message small{margin-top:5px;color:#71809b;font-size:.75rem}
 .composer textarea{border:0;background:#f0f3f9;border-radius:20px;padding:11px 15px}.composer>button{border-radius:16px;box-shadow:none}.composer-footer{background:#fff;border-top:1px solid #e6eaf3;padding:10px 14px;font-size:.8125rem;color:#75849a}.composer-footer>.primary{min-height:46px;border-radius:14px;box-shadow:none}
 .screen-card{box-shadow:none}.screen-card h3{color:#354865}.screen-card .sub{color:#718099}.live-dialog{box-shadow:0 12px 60px #24335024}.live-dialog h2{color:#2e4263}
}

/* Light glass surfaces; blur stays on small navigation surfaces to limit GPU work. */
:root{background:#edf2fc;--glass-border:rgba(255,255,255,.88)}
.workspace{background:radial-gradient(ellipse at 100% 0%,#ffe9d780,transparent 55%),radial-gradient(ellipse at 0% 45%,#dbe5ff90,transparent 65%),#eef3fb}
.feed{background:transparent}
.post,.screen-card{background:rgba(255,255,255,.9);border:1px solid var(--glass-border);box-shadow:inset 0 1px 0 #fff,0 5px 18px #435a8005}
.channel-header,.composer,.composer-footer{background:rgba(255,255,255,.93)}
.primary{background:linear-gradient(145deg,#7284e8,#5266d0);border:1px solid #ffffff60;box-shadow:inset 0 1px 1px #ffffff55,0 3px 8px #5266d01a}
.primary.done{background:#e4f1eb;color:#456c58}
button,a.primary,.welcome-option{transition:background-color .16s ease,box-shadow .16s ease,transform .16s ease}
button:active,a.primary:active{transform:scale(.97)}
.live-dialog{background:#f9fbfff5;border:1px solid #fff;box-shadow:inset 0 1px 0 white,0 16px 55px #35487629}
.live-dialog[open]{animation:glass-enter .2s ease-out}
@keyframes glass-enter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#toast,#toast.show{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;box-shadow:none!important;transform:none!important}
.feedback-banner{flex-shrink:0;padding:11px 16px;margin:0;background:#edf4ff;color:#415b85;border-bottom:1px solid #dce7f7;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;animation:glass-enter .16s ease-out}
.list-head>.feedback-banner,.screen>.feedback-banner,.live-dialog>.feedback-banner,.onboarding>.feedback-banner{border:1px solid #dce7f7;border-radius:12px;margin:10px 0}
@media(max-width:760px){
 .shell{background:linear-gradient(150deg,#edf3ff,#f7f9fc 50%,#fff2e8)}
 .list-panel{background:transparent}.list-head{background:linear-gradient(130deg,#f5f8ffeb,#fffaf4c9)}
 .list-head>.head-row>.icon-btn{background:#ffffffc9;border:1px solid #fff;box-shadow:inset 0 1px 1px white,0 3px 12px #465d8d0b}
 .search{background:#ffffffad;border:1px solid #fff;box-shadow:inset 0 1px 3px #6b81af08}.filter.active{background:linear-gradient(140deg,#7b8de6,#5367cd);border:1px solid #ffffff80;box-shadow:inset 0 1px 0 #ffffff50}
 .conversation{background:#ffffff4d;border:1px solid transparent}.conversation.active{background:#ffffffbf;border:1px solid #fff;box-shadow:0 3px 14px #50699208}.conversation:not(.active){border-bottom-color:#e4eafa80}
 .avatar{box-shadow:inset 0 1px 0 #ffffffb3}.rail{left:8px;right:8px;bottom:calc(6px + env(safe-area-inset-bottom));height:64px;padding:4px 4px;border:1px solid #fff;border-radius:24px;background:#f9fbfff2;box-shadow:inset 0 1px 0 #fff,0 5px 22px #354c7212}
 .shell{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.rail-item{border-radius:18px;font-size:.75rem}.rail-item.active{background:#e6edffa6;box-shadow:inset 0 1px 0 #fff}.rail-item.active svg{background:transparent;box-shadow:none}
 .channel-header{background:#f8fbfff2;border-bottom:1px solid #ffffffd9}.composer,.composer-footer{background:#ffffffd9;border-top:1px solid #fff}.composer textarea{background:#f0f4fccc;border:1px solid #fff}.post{background:#ffffffdf;box-shadow:inset 0 1px 0 white,0 3px 14px #435a8005;border:1px solid #fff}
 .message.mine{background:linear-gradient(145deg,#e9eeff,#dbe5ff);border:1px solid #ffffff8a}.message:not(.mine){background:#ffffffeb;border:1px solid white}
 .shell.mobile-detail{padding-bottom:env(safe-area-inset-bottom)}.keyboard-open .shell{padding-bottom:0}
 @supports(backdrop-filter:blur(12px)){.rail,.channel-header{background:#f8fbffcc;backdrop-filter:blur(12px) saturate(1.2);-webkit-backdrop-filter:blur(12px) saturate(1.2)}}
}
@media(prefers-reduced-motion:reduce){button,a.primary,.welcome-option{transition:none!important}button:active,a.primary:active{transform:none}.message,.live-dialog[open],.feedback-banner{animation:none!important}.rail,.channel-header{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* School workflows */
.rail-item{position:relative}.nav-unread{position:absolute;right:4px;top:3px;background:#5366d8;color:#fff;border-radius:12px;padding:1px 5px;font-size:10px;min-width:16px}.quiet-times{display:flex;gap:16px}.quiet-times label{flex:1;min-width:0}.pin-action{float:right}.pinned-notices{border:1px solid #d7dcfa;background:#f1f3ff;border-radius:16px;padding:16px;margin-bottom:16px}.pinned-notices summary{cursor:pointer;font-weight:600}.pinned-notices article{padding:12px 0;border-bottom:1px solid #dce0f1}.pinned-notices p,.audit-row p{overflow-wrap:anywhere;white-space:normal}.audit-row{padding:16px 0;border-bottom:1px solid #e8ebf2}.audit-row p{margin:6px 0}.audit-row small{color:#68738a}.member-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-row>div{min-width:0}.admin-row small{overflow-wrap:anywhere}.screen-card form{margin-top:16px}.screen-card .check-field{margin:16px 0}@media(max-width:600px){.admin-row{align-items:flex-start;flex-wrap:wrap;gap:12px}.member-actions{width:100%}.member-actions button{min-height:44px}.header-actions{gap:2px}.header-actions .icon-btn{min-width:40px}}

.content-more{float:right;width:36px;height:36px;min-width:36px;margin-left:8px}.content-more svg{width:20px;height:20px}.message .content-more{float:none;display:inline-flex;vertical-align:middle;margin-left:8px}.content-menu{display:grid;gap:8px}.content-menu button{display:flex;align-items:center;gap:12px;justify-content:flex-start;min-height:48px}.content-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.content-menu .danger{color:#ae3847}.comments article{padding:12px 0;border-bottom:1px solid #e8ebf2}.comments p{overflow-wrap:anywhere}

/* Responsive controls: keep actions together and reserve room for text. */
.list-actions,.header-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.chat-list-title,.channel-identity,.channel-identity>div{min-width:0}
.chat-list-title,.channel-identity{flex:1}
.channel-identity h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-identity .sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icon-btn,.back{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;flex-shrink:0;align-items:center;justify-content:center}
.icon-btn svg,.back svg{width:22px;height:22px;flex-shrink:0}
.primary,.secondary,.text-button,.reaction,.comment-link{min-height:44px}
.list-actions .icon-btn{background:#f3f5fc;border-radius:14px}
.content-more{width:44px;height:44px;min-width:44px;margin:0 0 4px 8px}
.message-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}
.message-heading .message-author{margin:0;min-width:0;overflow-wrap:anywhere}
.message .message-heading .content-more{display:flex;margin:-6px -6px 0 0;flex-shrink:0}
.message-body{overflow-wrap:anywhere}
.message{min-width:0;max-width:min(85%,620px)}
.post-top>div{min-width:0}.post-top strong{overflow-wrap:anywhere}
.post-actions,.member-actions{flex-wrap:wrap;gap:8px}
.admin-row{flex-wrap:wrap}.admin-row>div:first-child{flex:1 1 180px}
.member-actions{justify-content:flex-start}
.live-dialog>.head-row{align-items:flex-start}.live-dialog>.head-row h2{min-width:0;overflow-wrap:anywhere}
.live-dialog form,.screen-card form{min-width:0}
@media(min-width:761px) and (max-width:1100px){
 .shell{grid-template-columns:76px 260px minmax(0,1fr)}
 .channel-header{flex-wrap:wrap;padding:14px 20px;gap:8px}
 .channel-identity{flex-basis:100%}
 .header-actions{margin-left:auto}
 .feed{padding:20px}.post{padding:20px}
 .screen{padding:24px 20px}.screen .head-row{flex-wrap:wrap}
}
@media(max-width:760px){
 .list-head>.head-row{gap:12px}.list-actions{gap:8px}
 .header-actions .icon-btn{min-width:44px}
 .channel-header{gap:8px;flex-wrap:wrap}
 .channel-identity{flex-basis:calc(100% - 156px)}
 .header-actions{max-width:100%}
 .header-actions .secondary{font-size:12px;padding:8px;max-width:88px}
 .message{max-width:92%}
 .post-actions>button{flex:1 1 120px}
 .member-actions>button{flex:1 1 120px}
 .composer{gap:8px}.composer textarea{min-width:0}
 .rail-item{min-width:0;flex:1;font-size:11px}
 .post-top{gap:8px}.post-top>.tag{margin-left:0}
}
@media(max-width:380px){
 .channel-identity{flex-basis:100%}.header-actions{margin-left:auto}
 .quiet-times{flex-wrap:wrap;gap:8px}.quiet-times label{flex-basis:100%}
 .live-dialog{padding:16px 12px}
}
.post-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:0}
.post-tags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.post-toolbar .content-more{float:none;margin:0;flex-shrink:0;background:#f3f5fc;color:#65728e}
.post-toolbar:has(.post-tags:empty):not(:has(button)){display:none}
.message-heading .content-more{color:#65728e}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8295eb;outline-offset:3px}
.event-card>button{min-width:44px;min-height:44px;flex-shrink:0}.event-info{min-width:0;overflow-wrap:anywhere}
.filter{min-height:44px}.check-field{min-height:44px}.check-field input{flex-shrink:0}
@media(min-width:761px){.shell.shell-screen{grid-template-columns:90px minmax(0,1fr)}.shell-screen>.list-panel{display:none}}
@media(min-width:761px) and (max-width:1100px){.shell.shell-screen{grid-template-columns:76px minmax(0,1fr)}}
@media(max-width:760px){.live-dialog form>.primary{width:100%}.post-toolbar{margin-bottom:12px}.screen-card,.post{overflow-wrap:anywhere}}
@media(max-height:500px) and (min-width:761px){.shell{min-height:0;height:100dvh}.rail{overflow-y:auto}.rail .logo{margin-bottom:12px}.rail-item{min-height:44px}.rail-bottom{margin-top:12px}.channel-header{padding-top:8px;padding-bottom:8px}}
@media(max-height:500px) and (min-width:761px){.rail{overflow-x:hidden}.rail-item{width:100%;max-width:100%;flex-shrink:0}.rail .logo{flex-shrink:0}}
/* Chat tools stay compact and use the existing action menu. */
.reply-quote{margin:6px 0 10px;padding:8px 12px;border-left:3px solid #8899df;border-radius:0 8px 8px 0;background:#ffffff80;font-size:.85rem;line-height:1.5;overflow-wrap:anywhere}.reply-quote strong,.reply-quote span{display:block}.reply-quote span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.message-attachment{display:flex;align-items:center;gap:10px;text-decoration:none;padding:10px;margin-top:8px;background:#ffffff85;border-radius:12px;max-width:100%;overflow-wrap:anywhere;color:#435875}.message-attachment img{width:100%;max-height:260px;object-fit:contain;border-radius:8px}.message-attachment:has(img){flex-direction:column;align-items:stretch}.message-attachment>svg{width:24px;height:24px;flex-shrink:0}.message-attachment span{min-width:0}.message-attachment small{display:block;text-align:left!important}
.composer-context{flex-shrink:0;background:#f8faff}.composer-context:empty{display:none}.composer-chip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 18px;border-top:1px solid #e5eaf4;font-size:.82rem}.composer-chip>div{min-width:0}.composer-chip strong,.composer-chip span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.composer-chip span{color:#71829c;margin-top:3px}.composer .attach-button{min-width:44px;width:44px;padding:10px}
.unread-divider{text-align:center;color:#5366b5;font-weight:600;font-size:.8rem;border-top:1px solid #c7d2ef;padding:12px;margin:14px 0;scroll-margin-top:12px}
.jump-latest{align-self:center;position:sticky;bottom:0;z-index:3;flex-shrink:0;margin:4px 8px;display:flex;align-items:center;gap:8px;background:#fff;box-shadow:0 3px 12px #33496715}.jump-latest[hidden]{display:none}.jump-latest svg{width:18px;height:18px;transform:rotate(90deg)}
.search-result{padding:16px 0;border-bottom:1px solid #e3e8f2}.search-result small{display:block;color:#79869b;font-size:.75rem;margin-top:4px}.search-result p{line-height:1.6;overflow-wrap:anywhere;white-space:normal}#upload-state progress{width:100%;accent-color:#657ad7}#chat-file{max-width:100%;font-size:14px}
@media(max-width:760px){.channel-identity{flex-basis:100%}.header-actions{margin-left:auto}.composer{padding-left:8px;padding-right:8px;gap:4px}.composer textarea{padding-left:10px}.composer-chip{padding:6px 12px}.message-attachment img{max-height:200px}}
button { touch-action: manipulation; }
@media(min-width:761px){
 .shell{grid-template-rows:minmax(0,1fr)}
 .rail{min-height:0;overflow-y:auto;scrollbar-width:none}
 .rail::-webkit-scrollbar{display:none}
 .rail .logo,.rail-item,.rail-bottom{flex-shrink:0}
}
button[aria-busy="true"] { cursor: progress; opacity: .65; }
button[aria-busy="true"] svg { opacity: .5; }

.message-status{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}.message-status svg{width:18px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-status.read{color:#536cbe}
