/* Omnia-X public assistant. Isolated selectors preserve the institutional site. */
.ox-chat-host { --ox-chat-ink: #143249; --ox-chat-muted: #4d687c; --ox-chat-blue: #0864c8; --ox-chat-line: #d7e6ef; font-family: Inter,"Segoe UI",system-ui,-apple-system,sans-serif; }
.ox-chat-host *, .ox-chat-host *::before, .ox-chat-host *::after { box-sizing: border-box; }
.ox-chat-host [hidden] { display: none !important; }
.ox-chat-host button, .ox-chat-host textarea { font: inherit; }
.ox-chat-host button { cursor: pointer; }
.ox-chat-host button:disabled { cursor: default; }
.ox-chat-host :focus-visible { outline: 3px solid #0a70c9; outline-offset: 3px; }
.ox-chat-launcher { position: fixed; z-index: 45; right: max(22px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); width: 66px; height: 66px; display: grid; place-items: center; padding: 10px; border: 1px solid #b8ddee; border-radius: 50%; color: var(--ox-chat-ink); background: radial-gradient(circle at 35% 22%,#fff 25%,#e2f6ff 100%); box-shadow: 0 8px 32px #0a5c9e25,0 0 0 5px #f5fbffcc; transition: transform .2s ease,box-shadow .2s ease; }
.ox-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 36px #0a5c9e38,0 0 0 5px #e9f8ff; }
.ox-chat-launcher-logo { width: 44px; height: 44px; object-fit: contain; }
.ox-chat-launcher::after { content: ""; position: absolute; width: 10px; height: 10px; right: 3px; bottom: 7px; border: 2px solid #fff; border-radius: 50%; background: #0874bd; }
.ox-chat-launcher-label { position: absolute; right: calc(100% + 14px); padding: 9px 13px; width: max-content; max-width: 210px; border: 1px solid var(--ox-chat-line); border-radius: 10px; color: #23475f; background: #fff; box-shadow: 0 4px 15px #173c5612; font-size: 12px; font-weight: 650; opacity: 0; transform: translateX(5px); transition: opacity .18s ease,transform .18s ease; pointer-events: none; }
.ox-chat-launcher:hover .ox-chat-launcher-label, .ox-chat-launcher:focus-visible .ox-chat-launcher-label { opacity: 1; transform: translateX(0); }
.ox-chat-open .ox-chat-launcher { visibility: hidden; }
.ox-chat-panel { position: fixed; inset: auto max(22px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto; width: 420px; max-width: calc(100vw - 32px); height: min(700px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: 0; padding: 0; border: 1px solid #c2ddea; border-radius: 22px; color: var(--ox-chat-ink); background: #fff; overflow: hidden; box-shadow: 0 26px 95px #0d385c2e,0 6px 26px #164c711c; }
.ox-chat-panel[open] { display: flex; flex-direction: column; animation: ox-chat-open .2s ease-out; }
.ox-chat-panel::backdrop { background: #152e420c; }
@keyframes ox-chat-open { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ox-chat-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 10px; padding: 18px 16px 16px 20px; border-bottom: 1px solid var(--ox-chat-line); background: linear-gradient(115deg,#f3fbff,#fff); }
.ox-chat-identity { display: flex; align-items: center; min-width: 0; gap: 11px; }
.ox-chat-header-logo { width: 37px; height: 37px; flex: 0 0 auto; object-fit: contain; }
.ox-chat-heading-group { min-width: 0; }
.ox-chat-title { margin: 0 0 3px; font-size: 16px; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: pretty; }
.ox-chat-subtitle { margin: 0; color: var(--ox-chat-muted); font-size: 11px; line-height: 1.45; text-wrap: pretty; }
.ox-chat-controls { display: flex; flex: 0 0 auto; gap: 2px; }
.ox-chat-icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 9px; color: #34576c; background: transparent; }
.ox-chat-icon-button svg { width: 19px; height: 19px; }
.ox-chat-icon-button:hover { background: #e7f3fa; }
.ox-chat-icon-button:disabled { opacity: .4; }
.ox-chat-transcript { flex: 1 1 auto; min-height: 0; padding: 24px 20px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bdd3e3 transparent; scroll-behavior: auto; background: radial-gradient(circle at 100% 0,#f0f9fe,transparent 55%),#fcfdff; }
.ox-chat-transcript:focus-visible { outline-offset: -3px; }
.ox-chat-empty { padding: 12px 0 16px; }
.ox-chat-empty-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #d7ebf6; border-radius: 18px; background: linear-gradient(135deg,#fff,#e8f7ff); }
.ox-chat-empty-logo { width: 46px; height: 46px; object-fit: contain; }
.ox-chat-empty h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.ox-chat-welcome { margin: 0; color: var(--ox-chat-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.ox-chat-suggestions { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.ox-chat-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 12px 14px; border: 1px solid #cfe1ec; border-radius: 12px; color: #1a526f; background: #fff; text-align: left; font-size: 13px !important; line-height: 1.5; transition: border-color .2s ease,background .2s ease; overflow-wrap: anywhere; }
.ox-chat-suggestion:hover { border-color: #83bcdd; background: #f3fbff; }
.ox-chat-suggestion svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ox-chat-contact { display: inline-flex; align-items: center; align-self: start; gap: 8px; min-height: 44px; color: #075ba9; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ox-chat-contact svg { width: 17px; height: 17px; }
.ox-chat-message { max-width: 100%; margin-bottom: 21px; }
.ox-chat-author { display: block; margin: 0 0 6px; color: #567184; font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.ox-chat-message-text { padding: 14px 16px; border: 1px solid #dce8ef; border-radius: 3px 15px 15px; color: #22465e; background: #fff; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.ox-chat-message-user { margin-left: 30px; }
.ox-chat-message-user .ox-chat-author { text-align: right; }
.ox-chat-message-user .ox-chat-message-text { border-color: #c5dfef; border-radius: 15px 3px 15px 15px; color: #15496b; background: #eaf5fd; }
.ox-chat-message-failed .ox-chat-message-text { border-style: dashed; border-color: #b7bac7; }
.ox-chat-sources { margin-top: 10px; }
.ox-chat-sources-label { margin: 0 0 6px; color: #597184; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ox-chat-source-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.ox-chat-source-list li { max-width: 100%; }
.ox-chat-source { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 6px 9px; border: 1px solid #c6dfed; border-radius: 8px; color: #075a9a; background: #f4faff; font-size: 11px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
a.ox-chat-source:hover { border-color: #8bbad4; background: #e9f7fe; text-decoration: underline; text-underline-offset: 3px; }
.ox-chat-source svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ox-chat-source-static { color: #496577; }
.ox-chat-pending { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; color: #5a7487; font-size: 12px; }
.ox-chat-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3e9ccd; animation: ox-chat-pulse 1.3s ease-in-out infinite alternate; }
@keyframes ox-chat-pulse { from { opacity: .35; } to { opacity: 1; } }
.ox-chat-footer { flex: 0 0 auto; padding: 14px 16px 15px; border-top: 1px solid #dfeaf0; background: #fff; }
.ox-chat-composer { display: flex; align-items: flex-end; gap: 7px; padding: 7px; border: 1px solid #bcd7e7; border-radius: 15px; background: #fbfdff; }
.ox-chat-composer:focus-within { border-color: #3e8cc9; box-shadow: 0 0 0 3px #0864c810; }
.ox-chat-input { display: block; flex: 1 1 auto; min-width: 0; min-height: 42px; max-height: 120px; margin: 0; padding: 10px 8px; border: 0; border-radius: 8px; color: #203f56; background: transparent; font-size: 15px !important; line-height: 1.5; resize: none; overflow-y: auto; }
.ox-chat-input:focus-visible { outline: none; }
.ox-chat-input::placeholder { color: #6a8192; opacity: 1; }
.ox-chat-input:disabled { color: #7c8c98; }
.ox-chat-send { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 11px; color: #fff; background: #0864c8; transition: background .15s ease; }
.ox-chat-send svg { width: 22px; height: 22px; }
.ox-chat-send:hover { background: #064d9d; }
.ox-chat-send:disabled { color: #6f8798; background: #e1ecf3; }
.ox-chat-composer-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-top: 8px; color: #5d7487; font-size: 10px; line-height: 1.5; }
.ox-chat-counter { white-space: nowrap; }
.ox-chat-notice { max-height: 90px; margin: 9px 0 0; color: #587082; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; overflow-y: auto; }
.ox-chat-feedback { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e1d4bb; border-radius: 10px; color: #71551d; background: #fffaf0; }
.ox-chat-feedback p { margin: 0; font-size: 12px; line-height: 1.6; }
.ox-chat-retry { align-self: flex-start; min-height: 36px; padding: 5px 0; border: 0; color: #075ba9; background: transparent; font-size: 12px !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 3px; }
.ox-chat-feedback .ox-chat-retry { color: #71551d; }
.ox-chat-confirm { flex: 0 0 auto; padding: 12px 20px; border-bottom: 1px solid var(--ox-chat-line); background: #f6fafd; }
.ox-chat-confirm p { margin: 0 0 10px; color: #3d596e; font-size: 13px; line-height: 1.5; }
.ox-chat-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ox-chat-small-button { min-height: 38px; padding: 8px 12px; border: 1px solid #cbdeea; border-radius: 8px; color: #31546d; background: #fff; font-size: 12px !important; font-weight: 650 !important; }
.ox-chat-danger { border-color: #d9b6b6; color: #8a2d2d; background: #fff7f7; }
.ox-chat-sr-only { 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; }

/* The existing animation preference remains reachable away from the chat. */
body .motion-toggle { right: auto; left: max(18px,env(safe-area-inset-left)); }
@media (min-width:521px) and (max-width:960px) { .ox-chat-panel { width: 400px; } }
@media (max-width:520px) {
  .ox-chat-launcher { width: 60px; height: 60px; right: max(16px,env(safe-area-inset-right)); bottom: max(14px,env(safe-area-inset-bottom)); padding: 9px; }
  .ox-chat-launcher-logo { width: 40px; height: 40px; }
  .ox-chat-launcher-label { display: none; }
  .ox-chat-panel { inset: max(7px,env(safe-area-inset-top)) 7px max(7px,env(safe-area-inset-bottom)); width: auto; max-width: none; height: auto; max-height: none; border-radius: 18px; }
  .ox-chat-header { padding: 14px 12px 12px 16px; gap: 6px; }
  .ox-chat-identity { gap: 8px; }
  .ox-chat-title { font-size: 15px; }
  .ox-chat-subtitle { font-size: 10px; }
  .ox-chat-header-logo { width: 32px; height: 32px; }
  .ox-chat-controls { gap: 0; }
  .ox-chat-icon-button { width: 44px; }
  .ox-chat-transcript { padding: 22px 16px; }
  .ox-chat-footer { padding: 12px; }
  .ox-chat-input { font-size: 16px !important; }
  .ox-chat-small-button, .ox-chat-retry { min-height: 44px; }
  .ox-chat-message-text { font-size: 14px; }
  .ox-chat-open { overflow: hidden; }
  .ox-chat-open .motion-toggle { visibility: hidden; }
  body .motion-toggle { left: max(12px,env(safe-area-inset-left)); }
}
@media (max-height:520px) {
  .ox-chat-panel { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); bottom: 8px; }
  .ox-chat-header { padding-block: 8px; }
  .ox-chat-footer { padding-block: 8px; }
  .ox-chat-empty { padding-block: 0; }
  .ox-chat-empty-mark { display: none; }
  .ox-chat-notice { max-height: 42px; overflow-y: auto; }
}
@media (prefers-reduced-motion:reduce) { .ox-chat-host *, .ox-chat-host *::before, .ox-chat-host *::after { animation: none !important; transition: none !important; } }

/* Keep the floating launcher compact: the brand mark is the only visible content. */
.ox-chat-launcher { overflow: hidden; font-size: 0 !important; line-height: 0 !important; }
.ox-chat-launcher .ox-chat-launcher-label { display: none !important; }
