/* Header proportions observed in the reference: search, channel, then quiet tools. */
.inbox-thread-head{column-gap:12px;flex-wrap:nowrap;min-height:80px}
.chat-contact-trigger{flex:1 1 220px;min-width:135px;max-width:420px}
.chat-message-search{display:flex;align-items:center;flex:0 1 352px;min-width:140px;height:36px;border:1px solid var(--chat-line);border-radius:13px;background:var(--chat-side);color:var(--muted)}
.chat-message-search label{display:flex;align-items:center;gap:10px;min-width:0;flex:1;margin:0;padding:0 11px}.chat-message-search svg{width:16px;height:16px;flex:none}
.chat-message-search input{border:0!important;box-shadow:none!important;background:transparent!important;width:100%;min-width:0;padding:0;margin:0;height:34px;min-height:34px;font-size:12px;color:var(--ink)}
.chat-message-search input::placeholder{color:var(--muted);opacity:1}.chat-message-search:focus-within{border-color:#009ff5;box-shadow:0 0 0 1px #009ff530}
.chat-message-search output{font-size:10px;white-space:nowrap}.chat-message-search>button{border:0;background:transparent;color:var(--muted);padding:3px;width:23px;height:29px;display:grid;place-items:center;flex:none}.chat-message-search>button:last-child{margin-right:5px}.chat-message-search>button:disabled{display:none}
.chat-native-channel{display:none!important}.chat-channel-menu{position:relative;flex:none;color:var(--ink);font-size:12px;width:196px}
.chat-channel-menu>summary{list-style:none;display:flex;align-items:center;gap:12px;height:36px;padding:0 12px;border:1px solid var(--chat-line);border-radius:8px;cursor:pointer;background:var(--chat-side)}.chat-channel-menu>summary::-webkit-details-marker{display:none}.chat-channel-menu>summary svg{width:18px;height:18px;color:var(--muted);flex:none}.chat-channel-menu>summary span{flex:1}.chat-channel-menu>summary svg:last-child{width:16px;height:16px}
.chat-channel-menu[open]>summary{border-color:#00a5ff;box-shadow:0 0 0 1px #00a5ff}.chat-channel-menu[open]>summary svg:last-child{transform:rotate(180deg)}
.chat-channel-options{position:absolute;top:43px;left:0;right:0;z-index:20;border:1px solid #4b5567;border-radius:7px;background:#1e2a39;box-shadow:0 12px 24px #0003;padding:4px 0;overflow:hidden}
.chat-channel-options button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 15px;text-align:left;color:#f4f6fb;border:0;background:transparent;cursor:pointer;min-height:58px}.chat-channel-options button:hover,.chat-channel-options button:focus-visible{background:#344457;outline:0}.chat-channel-options button[aria-pressed=true]{background:#006392}.chat-channel-options button>svg{width:18px;height:18px;color:#93a1b7;flex:none}.chat-channel-options button>svg:last-child:not(:first-child){margin-left:auto;color:#00b5ff;width:16px}.chat-channel-options button>span{display:flex;align-items:flex-start;flex-direction:column;gap:5px}.chat-channel-options strong{font-size:12px;font-weight:400}.chat-channel-options small{font-size:8px;font-weight:400;line-height:1.15;padding:1px 6px;border-radius:7px;background:#88415f;color:#ffd9e0}.chat-channel-options small.connected{background:#17664f;color:#a6f8d7}.chat-channel-options small.verified{background:#695522;color:#ffe2a0}
.chat-header-tools{gap:8px}.chat-header-tools .chat-icon-action{width:32px;height:36px;min-height:36px}.chat-header-tools .chat-icon-action svg{width:18px;height:18px;stroke-width:1.6}.chat-header-tools .chat-theme-toggle{position:relative;width:34px;background:var(--chat-side);border:0;isolation:isolate}.chat-theme-toggle:before{content:'';position:absolute;z-index:-1;width:33px;height:18px;right:15px;top:9px;border-radius:10px;background:var(--chat-line)}.chat-theme-toggle:after{content:'';position:absolute;inset:0;z-index:-1;background:var(--chat-side);border:1px solid var(--chat-line);border-radius:50%}.chat-header-tools .chat-theme-toggle svg{fill:#ffe600;stroke:none}
.inbox-log mark{background:#ffdc6770;color:inherit;border-radius:2px}.chat-search-current .inbox-bubble{outline:1px solid #e6b72d;outline-offset:3px}
@media(max-width:1250px){.chat-channel-menu{width:164px}.chat-message-search{flex-basis:230px}.chat-header-tools{gap:4px}.chat-contact-trigger{flex-basis:160px}}
@media(max-width:1000px){.chat-message-search{flex-basis:180px}.chat-channel-menu{width:136px}.chat-message-search label{gap:6px;padding:0 8px}.chat-message-search input{font-size:11px}.chat-contact-trigger{min-width:110px}}
@media(max-width:800px){.inbox-thread-head{flex-wrap:wrap}.chat-contact-trigger{max-width:none;flex:1 1 180px}.chat-header-tools{margin-left:auto}.chat-message-search{order:3;flex:1 0 100%;height:32px}.chat-message-search input{height:30px;min-height:30px}.chat-channel-menu{width:126px}}
@media(prefers-reduced-motion:reduce){.chat-channel-menu svg{transition:none}}
@media(max-width:1450px){.campaign-panel-open .inbox-thread-head{flex-wrap:wrap}.campaign-panel-open .chat-message-search{order:3;flex:1 0 100%}.campaign-panel-open .chat-contact-trigger{flex:1 1 180px;max-width:none}.campaign-panel-open .chat-header-tools{margin-left:auto}.campaign-panel-open .chat-channel-menu{width:136px}}.chat-contact-trigger .inbox-person small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
/* A single shared focus surface: the inner search input must not draw a second ring. */
.chat-message-search{border-radius:12px;overflow:hidden}.chat-message-search label{padding:0 12px;gap:10px}.chat-message-search input,.chat-message-search input:focus,.chat-message-search input:focus-visible{outline:none!important;outline-offset:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;font-size:13px;line-height:1.4;appearance:none;-webkit-appearance:none}.chat-message-search label>svg{width:15px;height:15px}.chat-message-search:focus-within{border-color:#00a5ff;box-shadow:0 0 0 1px #00a5ff;background:#edf7ff}[data-theme="dark"] .chat-message-search:focus-within{background:#2b2d48}.chat-message-search input::placeholder{color:#94a0b5}
/* Channel labels and option rhythm match the reference at normal browser zoom. */
.chat-channel-menu>summary{font-size:13px}.chat-channel-options{padding:4px 10px 4px 0;background:#1e293b;border-color:#475569}.chat-channel-options button{min-height:60px;padding:10px 16px;gap:13px}.chat-channel-options strong{font-size:14px;line-height:1.2}.chat-channel-options small{font-size:9px;padding:1px 6px;line-height:1.1}.chat-channel-options button>span{gap:5px}.chat-channel-options button[aria-pressed=true]{background:#006392}.chat-channel-options button:disabled{cursor:not-allowed;opacity:1;color:#a5afbf}.chat-channel-options button:disabled:hover{background:transparent}.chat-channel-options small.unconfigured{background:#38445a;color:#c1cad8}
