/* Scoped, non-modal visitor help. No host-page selectors beyond safe footer room. */
body.has-chanel-chat { padding-bottom: 92px; }
.chanel-widget { color: #ecf5ff; font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; position: relative; z-index: 1200; color-scheme: dark; }
.chanel-widget *, .chanel-widget *::before, .chanel-widget *::after { box-sizing: border-box; }
.chanel-widget button, .chanel-widget input { font: inherit; letter-spacing: normal; }
.chanel-widget button { cursor: pointer; margin: 0; }
.chanel-widget [hidden] { display: none !important; }
.chanel-widget button:focus-visible, .chanel-widget a:focus-visible, .chanel-widget input:focus-visible, .chanel-widget summary:focus-visible, .chanel-chat-log:focus-visible { outline: 3px solid #e3bfff; outline-offset: 3px; }
.chanel-launcher { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 8px; border: 1px solid #80e6f4; border-radius: 32px; background: #152e3e; color: #f1fbff; font-weight: 650 !important; box-shadow: 0 6px 28px #0008; }
.chanel-launcher:hover { background: #1e4052; }
.chanel-badge { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg,#7fe9ef,#cbb6ff); color: #102032; font-size: 18px; font-weight: 700; }
.chanel-panel { margin: 0; padding: 0; position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 64px); width: 390px; max-width: calc(100% - 24px); height: auto; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: #0d1a2b; border: 1px solid #385166; border-radius: 20px; box-shadow: 0 12px 60px #0009; overflow-x: hidden; overflow-y: auto; text-align: left; }
.chanel-panel.chanel-started { height: 680px; }
.chanel-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; background: linear-gradient(110deg,#182f43,#211e39); gap: 12px; flex-shrink: 0; }
.chanel-identity { display: flex; align-items: center; gap: 10px; }
.chanel-panel h2 { margin: 0; color: #fff; font-size: 18px; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.chanel-identity p { margin: 2px 0 0; font-size: 12px; color: #c7dbe9; }
.chanel-close { display: grid; place-items: center; background: #ffffff0b; border: 1px solid #ffffff25; color: #fff; border-radius: 10px; width: 44px; height: 44px; padding: 0; font-size: 26px !important; line-height: 1; }
.chanel-chat-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 4px 14px; gap: 0 8px; border-bottom: 1px solid #ffffff14; font-size: 10px; color: #bacbdc; flex-shrink: 0; }
.chanel-clear { min-height: 44px; padding: 4px 0 4px 6px; background: none; color: #a4eaf1; border: 0; text-decoration: underline; font-size: 11px !important; }
.chanel-chat-log { flex: 1 1 auto; min-height: 80px; overflow: auto; overscroll-behavior: contain; padding: 14px; scrollbar-width: thin; }
.chanel-chat-message { padding: 12px; margin-bottom: 12px; background: #172a3d; border: 1px solid #ffffff0a; border-radius: 3px 13px 13px; overflow-wrap: anywhere; }
.chanel-message-author { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .07em; color: #a6eaf0; }
.chanel-chat-message p { margin: 0; white-space: pre-wrap; color: #e3ebf4; font-size: 13px; line-height: 1.6; }
.chanel-chat-visitor { margin-left: 24px; background: #292c48; border-radius: 13px 3px 13px 13px; }
.chanel-chat-visitor .chanel-message-author { color: #d6c9ff; }
.chanel-answer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.chanel-widget a { color: #9ae5f4; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.chanel-answer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.chanel-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chanel-suggestions button { border: 1px solid #58728a; border-radius: 20px; background: #11263a; color: #cceef8; padding: 7px 10px; min-height: 38px; font-size: 11px; }
.chanel-suggestions button:hover { background: #234259; }
.chanel-composer { padding: 10px 14px 4px; border-top: 1px solid #ffffff14; margin: 0; flex-shrink: 0; }
.chanel-input-label { display: block; margin: 0 0 6px; font-size: 11px; color: #c6d6e6; }
.chanel-input-row { display: flex; gap: 8px; }
.chanel-input-row input { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 10px; border: 1px solid #58728a; border-radius: 10px; background: #081321; color: #fff; font-size: 16px; }
.chanel-input-row input::placeholder { color: #a9bbcd; font-size: 12px; }
.chanel-send { border: 0; border-radius: 10px; background: #a0e7ef; color: #112739; font-weight: 700 !important; padding: 10px 13px; }
.chanel-send:disabled { background: #30485b; color: #b7c8d7; cursor: default; }
.chanel-input-note { margin: 6px 0 0; font-size: 10px; line-height: 1.4; color: #aebfd0; }
.chanel-panel-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 6px 14px 10px; flex-shrink: 0; }
.chanel-panel-footer > a, .chanel-privacy summary { min-height: 32px; display: flex; align-items: center; font-size: 11px; }
.chanel-privacy { max-width: 200px; margin: 0; color: #b8cadc; }
.chanel-privacy summary { cursor: pointer; text-decoration: underline; }
.chanel-privacy p { margin: 0; font-size: 11px; line-height: 1.4; }
.chanel-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) { .chanel-launcher { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); } .chanel-panel { right: 12px; bottom: calc(max(12px,env(safe-area-inset-bottom)) + 64px); max-height: calc(100dvh - 92px - env(safe-area-inset-bottom)); } }
@media (max-height: 520px) { .chanel-panel.chanel-started { top: 8px; bottom: 72px; height: auto; max-height: none; overflow-y: auto; } .chanel-panel-header { padding: 6px 12px; } .chanel-chat-tools { padding: 0 12px; } .chanel-chat-log { min-height: 40px; } .chanel-input-note { display: none; } .chanel-panel-footer { padding: 0 14px 4px; } }
@media print { .chanel-widget { display: none; } body.has-chanel-chat { padding-bottom: 0; } }
/* Compact consent entry. Starting reveals the composer without sending a request. */
.chanel-entry { padding: 20px 18px 12px; flex-shrink: 0; }
.chanel-start { width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 12px; background: #a0e7ef; color: #112739; font-size: 14px; font-weight: 700 !important; }
.chanel-start:hover { background: #c1f4fa; }
.chanel-consent-note { margin: 12px 0 2px; color: #c6d6e6; font-size: 12px; line-height: 1.6; }
.chanel-entry > a { display: inline-flex; align-items: center; min-height: 40px; }
.chanel-chat-prompt > p { margin: 0 0 12px; color: #c6d6e6; font-size: 13px; }
.chanel-generated-label { display: inline-block; margin-left: 8px; font-size: 9px; font-weight: 400; letter-spacing: .02em; color: #b8cadc; }
.chanel-request-status { min-height: 0; margin: 0; padding: 0 14px; color: #c9e3ee; font-size: 11px; line-height: 1.4; flex-shrink: 0; }
.chanel-request-status:not(:empty) { padding-top: 5px; padding-bottom: 5px; }
.chanel-suggestions button:disabled { cursor: default; opacity: .55; }
.chanel-privacy > a { display: inline-flex; align-items: center; min-height: 36px; }
@media (max-height: 700px) {
  /* Keep every control reachable when a keyboard leaves little room. */
  .chanel-panel { overflow-y: auto; }
  .chanel-chat-log { flex-shrink: 0; flex-basis: 100px; min-height: 100px; }
}
