
/* Chat workspace. */
.chat-room-modal .room-members{min-width:0}
.chat-room-modal .room-members label{min-width:0}
.chat-room-modal .room-members label>span{min-width:0;overflow-wrap:anywhere}
.chat-room-modal .room-members input{flex:0 0 auto}
body[data-route="chat"]{--chat-progress:#76e4ce;--chat-updates:#8bb8ff;--chat-internal:#b69cff;--chat-system:#f4c95d}
body[data-route="chat"] main{padding:0;overflow:hidden}
body[data-route="chat"] #chatView{height:100%;max-width:none}
body[data-route="chat"] .module-bar{background:var(--bg)}
/* The shared module bar sizes the Chat heading like every module heading. */
body[data-route="chat"] .chat-action-group{display:flex;align-items:center;gap:8px}
body[data-route="chat"] .module-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-route="chat"] .chat-live-status{display:flex;align-items:center;gap:8px;margin-right:8px;color:var(--text)}
body[data-route="chat"] .chat-live-status>i{width:7px;height:7px;border-radius:50%;background:var(--chat-updates);box-shadow:0 0 10px rgba(139,184,255,.55)}
body[data-route="chat"] .chat-live-status>span{display:grid;line-height:1.15}
body[data-route="chat"] .chat-live-status b{font-size:13px}
body[data-route="chat"] .chat-live-status small{color:var(--muted);font-size:11px}
body[data-route="chat"] .chat-workspace{height:100%;min-height:0;display:grid;grid-template-columns:272px minmax(0,1fr);gap:0;max-width:none;margin:0}
body[data-route="chat"] .chat-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;overflow-y:auto;padding:8px;border-right:1px solid var(--line);background:var(--bg)}
body[data-route="chat"] .chat-tabs{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
body[data-route="chat"] .chat-tabs button{height:34px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:13px;font-weight:650}
body[data-route="chat"] .chat-tabs button.is-active{background:var(--surface-2);color:var(--text)}
body[data-route="chat"] .chat-tabs b{color:inherit}
body[data-route="chat"] .chat-search,body[data-route="chat"] .event-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--muted)}
body[data-route="chat"] .chat-search{flex:0 0 auto;margin:8px 0 5px}
body[data-route="chat"] .chat-search svg,body[data-route="chat"] .event-search svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body[data-route="chat"] .chat-search input,body[data-route="chat"] .event-search input{width:100%;min-width:0;border:0;background:transparent;color:var(--text);font-size:14px}
body[data-route="chat"] .overview-card{flex:0 0 auto;width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left}
body[data-route="chat"] .overview-card:hover{background:var(--surface-2)}
body[data-route="chat"] .overview-card.is-selected{border-color:var(--line-strong);background:var(--surface-2);box-shadow:inset 2px 0 var(--module-color)}
body[data-route="chat"] .overview-card>span{display:grid;gap:1px}
body[data-route="chat"] .overview-card strong{font-size:14px}
body[data-route="chat"] .overview-card small{color:var(--muted);font-size:12px}
body[data-route="chat"] .overview-card>b{min-width:26px;padding:3px 7px;border-radius:999px;background:var(--surface-2);color:var(--text);text-align:center;font-size:12px}
body[data-route="chat"] .chat-room-list{flex:0 0 auto;border-top:1px solid var(--line);margin-top:5px;padding-top:3px}
body[data-route="chat"] .chat-room-list>header{display:flex;align-items:center;justify-content:space-between;padding:6px 5px;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:0}
body[data-route="chat"] .chat-room-list>header button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:20px;font-weight:400}
body[data-route="chat"] .channel-card-shell{position:relative;display:flex;align-items:stretch;margin-bottom:5px;transition:transform .16s ease}
body[data-route="chat"] .channel-card-shell:hover{transform:translateY(-1px)}
body[data-route="chat"] .channel-card{width:100%;min-width:0;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:8px 34px 8px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);text-align:left}
body[data-route="chat"] .channel-card:hover{border-color:var(--line-strong);background:var(--surface-2)}
body[data-route="chat"] .channel-card.is-selected{border-color:var(--line-strong);background:var(--surface-2);box-shadow:inset 2px 0 var(--module-color)}
body[data-route="chat"] .channel-glyph{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:var(--accent);background:var(--surface-2)}
body[data-route="chat"] .channel-card-copy{display:grid;min-width:0;gap:1px}
body[data-route="chat"] .channel-card-name-row{min-width:0;display:flex}
body[data-route="chat"] .channel-card-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
body[data-route="chat"] .channel-card-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
body[data-route="chat"] .channel-card-close{position:absolute;right:6px;top:50%;translate:0 -50%;width:27px;height:27px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:18px}
body[data-route="chat"] .sessions-list{flex:0 0 auto;min-height:0;padding:3px 0 8px;}
body[data-route="chat"] .session-card-shell{margin:3px 0}
body[data-route="chat"] .session-card{width:100%;min-width:0;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);text-align:left}
body[data-route="chat"] .session-card:hover{border-color:var(--line-strong);background:var(--surface-2)}
body[data-route="chat"] .session-card.is-selected{border-color:var(--line-strong);background:var(--surface-2);box-shadow:inset 2px 0 var(--module-color)}
body[data-route="chat"] .session-avatar{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);font-size:16px}
.chat-session-glyph{font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:20px;line-height:1}
.chat-room-modal .chat-icon{width:18px;height:18px;vertical-align:middle}
body[data-route="chat"] .session-card-copy{display:grid;min-width:0;gap:1px}
body[data-route="chat"] .session-card-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700}
body[data-route="chat"] .session-card-meta,body[data-route="chat"] .session-card-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
body[data-route="chat"] .session-card-status{display:flex;align-items:center;gap:5px}
body[data-route="chat"] .status-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--muted)}
body[data-route="chat"] .status-dot.running{background:#65e0ce;box-shadow:0 0 8px rgba(101,224,206,.55)}
body[data-route="chat"] .status-dot.open{background:#8bb8ff}
body[data-route="chat"] .list-empty{display:grid;gap:3px;padding:18px 10px;color:var(--muted);text-align:center;font-size:13px}
body[data-route="chat"] .list-empty strong{color:var(--text)}
body[data-route="chat"] .chat-main{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:0;padding:12px 16px;max-width:1100px;width:100%;margin-inline:auto;background:var(--bg)}
body[data-route="chat"] .chat-bar-tools{display:flex;align-items:center;gap:14px}
body[data-route="chat"] .chat-bar-tools .event-search{width:240px;height:36px;margin:0}
body[data-route="chat"] .interaction-filters{display:flex;align-items:center;gap:2px;padding:0;border:0}
body[data-route="chat"] .interaction-filter{position:relative;height:34px;padding:0 8px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;color:var(--muted);font-size:13px;cursor:pointer}
body[data-route="chat"] .interaction-filter input{position:absolute;opacity:0;pointer-events:none}
body[data-route="chat"] .interaction-filter i{width:28px;height:16px;position:relative;border-radius:999px;background:#263242}
body[data-route="chat"] .interaction-filter i::after{content:"";position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:#aeb9c8;transition:.15s}
body[data-route="chat"] .interaction-filter input:checked+i::after{transform:translateX(12px)}
body[data-route="chat"] .filter-progress{color:var(--chat-progress)}
body[data-route="chat"] .filter-progress input:checked+i{background:#215a55}body[data-route="chat"] .filter-progress input:checked+i::after{background:var(--chat-progress)}
body[data-route="chat"] .filter-updates{color:var(--chat-updates)}
body[data-route="chat"] .filter-updates input:checked+i{background:#294c7c}body[data-route="chat"] .filter-updates input:checked+i::after{background:var(--chat-updates)}
body[data-route="chat"] .filter-internal{color:var(--chat-internal)}
body[data-route="chat"] .filter-internal input:checked+i{background:#4c3978}body[data-route="chat"] .filter-internal input:checked+i::after{background:var(--chat-internal)}
body[data-route="chat"] .filter-system{color:var(--chat-system)}
body[data-route="chat"] .filter-system input:checked+i{background:#735a18}body[data-route="chat"] .filter-system input:checked+i::after{background:var(--chat-system)}
body[data-route="chat"] .history-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px;margin-top:10px}
body[data-route="chat"] .history-notice{padding:8px 12px;border:1px solid rgba(182,156,255,.13);border-radius:6px;background:rgba(26,24,42,.55);color:var(--chat-internal);font-size:12px}
body[data-route="chat"] .events-list{min-height:0;overflow-y:auto;padding:10px 0 6px;}
body[data-route="chat"] .stream-event{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px;margin-bottom:10px}
body[data-route="chat"] .event-rail{position:relative;display:flex;justify-content:center}
body[data-route="chat"] .event-rail::after{content:"";position:absolute;top:34px;bottom:-10px;width:1px;background:var(--line)}
body[data-route="chat"] .stream-event:last-child .event-rail::after{display:none}
body[data-route="chat"] .event-icon{z-index:1;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--chat-updates);font-size:13px}
body[data-route="chat"] .event-content{min-width:0;padding:12px 14px;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:var(--surface-2)}
body[data-route="chat"] .event-meta{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:9px}
body[data-route="chat"] .event-heading{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;white-space:normal}.event-label{font-weight:700;overflow-wrap:anywhere}
body[data-route="chat"] .event-group{flex:none;border:1px solid currentColor;border-radius:4px;padding:1px 6px;font-size:11px;line-height:16px;white-space:nowrap}
body[data-route="chat"] .event-group-progress{color:var(--chat-progress)}
body[data-route="chat"] .event-group-updates{color:var(--chat-updates)}
body[data-route="chat"] .event-group-internal{color:var(--chat-internal)}
body[data-route="chat"] .event-group-system{color:var(--chat-system)}
body[data-route="chat"] .event-content.is-metadata .event-meta{margin-bottom:0}
body[data-route="chat"] .event-provider{font-size:11px;white-space:nowrap}
body[data-route="chat"] .event-attribution{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
body[data-route="chat"] .event-context{min-width:0;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}
body[data-route="chat"] .event-session{min-width:0;max-width:260px;padding:3px 8px;border:1px solid var(--line);border-radius:999px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-route="chat"] .event-route{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-route="chat"] .event-time{color:var(--muted);font-size:12px;white-space:nowrap}
body[data-route="chat"] .event-text{overflow-wrap:anywhere;white-space:pre-wrap;font-size:15px;line-height:1.48}
body[data-route="chat"] .event-progress .event-content{border-color:rgba(118,228,206,.23);background:rgba(12,27,27,.9)}
body[data-route="chat"] .event-progress .event-label,body[data-route="chat"] .event-progress .event-icon{color:var(--chat-progress)}
body[data-route="chat"] .event-commentary .event-content,body[data-route="chat"] .event-user .event-content{border-color:rgba(139,184,255,.23);background:rgba(13,22,37,.92)}
body[data-route="chat"] .event-commentary .event-label,body[data-route="chat"] .event-user .event-label,body[data-route="chat"] .event-commentary .event-icon,body[data-route="chat"] .event-user .event-icon{color:var(--chat-updates)}
body[data-route="chat"] .stream-event.is-internal .event-content{border-color:rgba(182,156,255,.24);background:rgba(27,24,42,.9)}
body[data-route="chat"] .stream-event.is-internal .event-label,body[data-route="chat"] .stream-event.is-internal .event-icon{color:var(--chat-internal)}
body[data-route="chat"] .event-error .event-content{border-color:rgba(244,201,93,.25);background:rgba(30,25,12,.88)}
body[data-route="chat"] .event-error .event-label,body[data-route="chat"] .event-error .event-icon{color:var(--chat-system)}
body[data-route="chat"] .stream-event.severity-error .event-content{border-color:rgba(255,112,125,.34);background:rgba(38,15,20,.9)}
body[data-route="chat"] .stream-event.severity-error .event-label,body[data-route="chat"] .stream-event.severity-error .event-icon{color:#ff8e9a}
body[data-route="chat"] .stream-event.severity-success .event-label{color:#74dfbd}
body[data-route="chat"] .event-delivery{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.35}
body[data-route="chat"] .event-delivery::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:50%;background:#718096}
body[data-route="chat"] .delivery-delivered::before{background:#58d6ad}
body[data-route="chat"] .delivery-partial::before,body[data-route="chat"] .delivery-pending::before{background:#f4c95d}
body[data-route="chat"] .delivery-unavailable::before{background:#ff7d89}
body[data-route="chat"] .history-load-button{display:block;margin:0 auto 10px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted)}
body[data-route="chat"] .empty-state{display:grid;place-content:center;min-height:140px;height:100%;text-align:center;color:var(--muted)}
body[data-route="chat"] .empty-state h3{margin:0 0 6px;color:var(--text);font-size:17px}
body[data-route="chat"] .empty-state p{margin:0}
body[data-route="chat"] .message-composer{display:grid;gap:6px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface-2);box-shadow:none}
body[data-route="chat"] .composer-field{display:block}
body[data-route="chat"] .composer-field textarea{width:100%;min-height:40px;max-height:96px;padding:6px 8px;border:0;background:transparent;resize:none;color:var(--text);font-size:15px;line-height:1.45}
body[data-route="chat"] .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
body[data-route="chat"] .composer-toolbar{display:grid;grid-template-columns:auto minmax(130px,1fr) 40px;gap:8px;align-items:center}
body[data-route="chat"] .room-mode-switch{display:inline-grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
body[data-route="chat"] .room-mode-option{min-width:62px;height:28px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:650}
body[data-route="chat"] .room-mode-option[aria-pressed="true"]{color:#effcf8;background:rgba(118,228,206,.13);box-shadow:inset 0 0 0 1px rgba(118,228,206,.22)}
body[data-route="chat"] .room-mode-option:focus-visible{outline:2px solid rgba(118,228,206,.5);outline-offset:1px}
body[data-route="chat"] .recipient-trigger{height:36px;min-width:0;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface);text-align:left}
body[data-route="chat"] .recipient-trigger-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
body[data-route="chat"] .recipient-trigger svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.8}
body[data-route="chat"] .composer-send{width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:var(--text);transition:background 120ms ease,color 120ms ease,transform 120ms ease}
body[data-route="chat"] .composer-send .action-icon{display:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body[data-route="chat"] .composer-send[data-action="microphone"] .action-microphone,body[data-route="chat"] .composer-send[data-action="send"] .action-send,body[data-route="chat"] .composer-send[data-action="task"] .action-task{display:block}
body[data-route="chat"] .composer-send[data-action="send"],body[data-route="chat"] .composer-send[data-action="task"]{background:#f1f3f5;color:#15181d;cursor:pointer}
body[data-route="chat"] .composer-send[data-action="send"]:hover,body[data-route="chat"] .composer-send[data-action="task"]:hover{background:#fff}
body[data-route="chat"] .composer-send:disabled{opacity:.62;cursor:not-allowed}
body[data-route="chat"] .composer-send:not(:disabled):active{transform:scale(.94)}
body[data-route="chat"] .composer-send:focus-visible{outline:2px solid rgba(118,228,206,.58);outline-offset:2px}
body[data-route="chat"] .chat-sidebar-backdrop{display:none}
body[data-route="chat"] .chat-sidebar-toggle{display:none}

@media(max-width:840px){
  body[data-route="chat"] .chat-workspace{grid-template-columns:minmax(0,1fr);position:relative}
  body[data-route="chat"] .chat-sidebar-toggle{display:grid}
  body[data-route="chat"] .chat-sidebar{display:none;position:absolute;z-index:32;inset:0 auto 0 0;width:min(300px,calc(100vw - 24px));padding:8px;background:var(--bg);border:1px solid var(--line-strong);border-radius:0 12px 12px 0;box-shadow:24px 0 70px rgba(0,0,0,.8)}
  body[data-route="chat"] .chat-workspace.sidebar-open .chat-sidebar{display:flex}
  body[data-route="chat"] .chat-workspace.sidebar-open .chat-sidebar-backdrop{display:block;position:absolute;z-index:31;inset:0;width:100%;border:0;background:rgba(0,0,0,.55)}
}

@media(max-width:620px){

  body[data-route="chat"] .chat-live-status{display:none}
  body[data-route="chat"] .module-actions{gap:5px}
  body[data-route="chat"] .module-actions .icon-button{width:36px;height:36px}
  body[data-route="chat"] .chat-main{padding:7px 8px 6px}
  body[data-route="chat"] .interaction-filters{gap:0}
  body[data-route="chat"] .interaction-filter{height:29px;gap:4px;font-size:12px;white-space:nowrap}
  body[data-route="chat"] .interaction-filter i{width:22px;height:14px;flex:0 0 22px}
  body[data-route="chat"] .interaction-filter i::after{width:8px;height:8px}
  body[data-route="chat"] .interaction-filter input:checked+i::after{transform:translateX(8px)}
  body[data-route="chat"] .history-row{grid-template-columns:18px minmax(0,1fr);margin-top:7px}
  body[data-route="chat"] .history-notice{padding:6px 9px;font-size:11px}
  body[data-route="chat"] .events-list{padding-top:7px}
  body[data-route="chat"] .stream-event{grid-template-columns:18px minmax(0,1fr);gap:5px;margin-bottom:7px}
  body[data-route="chat"] .event-icon{width:24px;height:24px;font-size:11px}
  body[data-route="chat"] .event-rail::after{top:29px;bottom:-8px}
  body[data-route="chat"] .event-content{padding:9px 10px;border-radius:8px}
  body[data-route="chat"] .event-meta{grid-template-columns:minmax(0,1fr) auto;gap:4px;margin-bottom:6px}
  body[data-route="chat"] .event-heading{min-width:0}
  body[data-route="chat"] .event-context{grid-column:1/-1;grid-row:2;order:3}
  body[data-route="chat"] .event-session{max-width:220px}
  body[data-route="chat"] .event-text{font-size:14px;line-height:1.42}
  body[data-route="chat"] .message-composer{padding:7px 8px;border-radius:15px}
  body[data-route="chat"] .composer-field textarea{min-height:36px;padding:4px 6px;font-size:15px}
  body[data-route="chat"] .composer-toolbar{grid-template-columns:minmax(0,1fr) 36px;gap:5px}
  body[data-route="chat"] .room-mode-switch{grid-column:1/-1;justify-self:start}
  body[data-route="chat"] .room-mode-option{min-width:54px;height:28px;padding:0 7px;font-size:12px}
  body[data-route="chat"] .recipient-trigger{height:32px;padding:0 8px}
  body[data-route="chat"] .recipient-trigger-label{font-size:12px}
  body[data-route="chat"] .composer-send{width:34px;height:34px}
}

@media(max-width:360px){

  body[data-route="chat"] .room-mode-option{min-width:50px;padding:0 5px;font-size:12px}
  body[data-route="chat"] .event-route{display:none}
}

/* Shared neutral surfaces; color remains a compact activity/status signal. */
body[data-route="chat"] .chat-icon{width:18px;height:18px;flex:none}
body[data-route="chat"] .chat-live-status>i{background:var(--muted);box-shadow:none}
body[data-route="chat"] .chat-room-state{display:flex;gap:4px;padding:0 0 6px}
body[data-route="chat"] .chat-room-state button{height:28px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px}
body[data-route="chat"] .chat-room-state [aria-selected="true"]{background:var(--surface-2);color:var(--text)}
body[data-route="chat"] .interaction-filter:focus-within{outline:1px solid var(--line-strong);border-radius:4px}
body[data-route="chat"] .chat-main .stream-event .event-content{position:relative;background:var(--surface);border-color:var(--line);border-radius:8px;padding-right:44px}
body[data-route="chat"] .event-copy{position:absolute;right:6px;top:6px;width:28px;height:28px;padding:5px;background:transparent;border-color:transparent}
body[data-route="chat"] .event-copy:hover{background:var(--surface-2)}
body[data-route="chat"] .event-session{border:0;padding:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
body[data-route="chat"] .event-context{flex-wrap:wrap}
body[data-route="chat"] .history-notice{border:0;background:transparent;color:var(--muted);text-align:center;padding:4px}
body[data-route="chat"] .empty-state>.chat-icon{width:28px;height:28px;justify-self:center;margin-bottom:12px}
body[data-route="chat"] .room-mode-option[aria-pressed="true"]{color:var(--text);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong)}
body[data-route="chat"] .room-mode-option:disabled{opacity:.4;cursor:not-allowed}
body[data-route="chat"] .event-icon{width:22px;height:22px}
body[data-route="chat"] .chat-sidebar{}
.chat-pending { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 12px; font-size: 12px; }

/* Narrower bars keep the four toggles as colored switches; their names stay in the tooltip and accessible label. */
@media(max-width:1200px){
  body[data-route="chat"] .chat-bar-tools{gap:6px}
  body[data-route="chat"] .interaction-filter{padding:0 5px}
  body[data-route="chat"] .interaction-filter span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
