.omni-inbox{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}.omni-inbox [hidden]{display:none!important}.omni-tabs{display:flex;gap:6px;flex:none;overflow:auto}.omni-tabs .wc-button{min-height:38px;background:var(--panel);color:var(--muted);white-space:nowrap}.omni-tabs .is-active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}.omni-tabs .has-unread{font-weight:700;color:var(--accent-text)}.omni-host{min-height:0;flex:1}.channel-workspace .wc-compose-form{grid-template-columns:minmax(0,1fr) auto}.channel-workspace .wc-inline-error{padding:0 14px}.channel-photo{display:block;max-width:min(100%,360px);max-height:320px;border-radius:10px;object-fit:contain;margin-bottom:8px}.channel-workspace .wc-message-text{white-space:pre-wrap}.channel-workspace .wc-send-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
@media(max-width:760px){.omni-inbox{gap:6px}.omni-tabs{padding:0 6px;gap:5px}.omni-tabs .wc-button{min-height:36px;font-size:12px;padding:7px 12px}}
.channel-source{display:block;color:var(--muted);font-size:12px;line-height:1.4}.channel-role{max-width:155px;font-size:12px;min-height:30px;padding:3px 8px;margin-top:3px}.channel-lead-detail{display:flex;flex-direction:column;gap:14px;padding:28px;max-width:640px;margin:auto}.channel-lead-detail h2{margin:0;font-size:26px;overflow-wrap:anywhere}.channel-lead-hint{color:var(--muted);line-height:1.5}.channel-lead-actions{display:flex;gap:10px;flex-wrap:wrap}.channel-lead-actions .is-active{background:var(--accent);color:var(--accent-ink)}.channel-site-sources{padding:0 14px 10px}.channel-site-sources:empty{display:none}
@media(max-width:760px){.channel-lead-detail{padding:18px}.channel-lead-actions{flex-direction:column}.channel-role{max-width:130px}.channel-workspace .wc-conversation-head{gap:8px}}
.channel-tools{overflow:auto;flex-wrap:nowrap}.channel-tools .wc-command{white-space:nowrap;flex:none}.channel-workspace .wc-composer{gap:8px}.channel-workspace .wc-tools{padding:0}

/* The existing A14 viewport owns keyboard geometry. Keep this task sheet inside
   its visible area; do not anchor it to Safari's obscured layout viewport. */
.staff-message-dialog{position:fixed;inset:auto;left:50%;top:calc(var(--viewport-top) + var(--viewport-height) - 8px);transform:translate(-50%,-100%);margin:0;max-height:calc(var(--viewport-height) - 16px);max-width:calc(100% - 16px)}
.staff-message-dialog textarea{min-height:88px;resize:vertical}
.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus)>.w-dialog-header,.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus)>.w-dialog-footer{display:none}
.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus) .w-dialog-body{padding:4px 8px}
.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus) .w-dialog-body>.w-stack>*:not(.staff-message-form),.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus) .staff-message-form>*:not(.staff-message-input),.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus) .staff-message-input>span{display:none}
.keyboard-open.chat-composer-only .staff-message-dialog:has(textarea:focus) textarea{height:44px;min-height:44px;max-height:calc(var(--viewport-height) - 24px);resize:none}
.omni-inbox>.wc-history-search {justify-self:start;align-self:flex-start;margin:0 .4rem;min-height:32px}
.omni-inbox:has(.wc-chat-open)>.wc-history-search {display:none}
