/* OutboundFix shared AI chat widget (public/v6-chat.js). V6 identity: monochrome, Archivo V6 / Chivo V6, no mascots,
   no gradients beyond the V6 button. Everything is scoped under .ofx-chat* so it cannot restyle page content. */
.ofx-chat,.ofx-chat-panel{--ofx-ink:#f3f3f3;--ofx-muted:#b5b5b5;--ofx-line:#ffffff29;--ofx-bg:#0d0d0d;--ofx-raise:#141414;font-family:"Archivo V6",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ofx-ink)}
.ofx-chat-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Launcher */
.ofx-chat-launcher{position:fixed;z-index:70;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border:1px solid silver;border-radius:999px;background:linear-gradient(120deg,#f7f6f2,#d4d3cf);color:#151515;font:780 13px/1 "Archivo V6",sans-serif;letter-spacing:-.01em;cursor:pointer;box-shadow:0 10px 34px #0000008c,0 0 0 1px #00000040;transition:transform .2s,box-shadow .2s}
.ofx-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 40px #000000a6,0 0 0 1px #00000040}
.ofx-chat-launcher:focus-visible{outline:2px solid #fff;outline-offset:4px}
.ofx-chat-launcher[hidden]{display:none}
.ofx-chat-launcher-dot{width:8px;height:8px;border-radius:50%;background:#151515;box-shadow:0 0 0 3px #15151524}
.ofx-chat-launcher[data-live=true] .ofx-chat-launcher-dot{background:#2b2b2b;box-shadow:0 0 0 3px #2b2b2b33}
.ofx-chat-launcher[data-unread=true] .ofx-chat-launcher-dot{background:#000;box-shadow:0 0 0 4px #00000059}

/* Panel. The panel itself is the scroll container: on short viewports (320x568, landscape phones, short desktop windows,
   larger text) the header, disclosure, consent, Turnstile and Start can exceed its height, and every control must stay
   reachable by touch, wheel and keyboard focus (Codex R2 P2). Rows keep their natural height; only the conversation
   body flexes, never below 96px, and its log scrolls on its own when the panel has room. The log must NOT contain
   overscroll: a swipe that starts on it has to chain to the panel (which contains it, so the locked page never moves). */
.ofx-chat-panel{position:fixed;z-index:80;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;width:min(420px,calc(100vw - 40px));max-height:calc(100vh - 40px);max-height:min(680px,calc(100dvh - 40px));padding:18px 18px 16px;background:linear-gradient(160deg,#151515,#0b0b0b 40%,#090909);border:1px solid #ffffff3b;border-radius:8px;box-shadow:0 30px 90px -20px #000,0 0 0 1px #00000080;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px;line-height:1.5}
.ofx-chat-panel>:not(.ofx-chat-body){flex-shrink:0}
.ofx-chat-panel[hidden]{display:none}
.ofx-chat-panel.is-inline{position:static;width:100%;max-width:760px;max-height:none;margin:0 auto;box-shadow:none}
.ofx-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--ofx-line)}
.ofx-chat-title{margin:0;font:560 20px/1.15 "Archivo V6",sans-serif;letter-spacing:-.04em;color:var(--ofx-ink)}
.ofx-chat-title:focus{outline:none}
.ofx-chat-title:focus-visible{outline:2px solid #dbdbdb;outline-offset:4px}
.ofx-chat-subtitle{margin:4px 0 0;color:var(--ofx-muted);font-size:13px}
.ofx-chat-head-actions{display:flex;gap:6px}
.ofx-chat-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #ffffff38;border-radius:4px;background:transparent;color:var(--ofx-ink);font:500 20px/1 "Archivo V6",sans-serif;cursor:pointer}
.ofx-chat-icon:hover{border-color:#d0d0d0}
.ofx-chat-disclosure{margin:0;padding:10px 12px;border:1px solid #ffffff38;border-left:3px solid #d6d6d6;border-radius:4px;background:#ffffff0a;font-size:13px;line-height:1.5;color:var(--ofx-ink)}
.ofx-chat-badge{display:inline-block;padding:1px 6px;border:1px solid #ffffff6b;border-radius:3px;font:600 10px/1.5 "Chivo V6",ui-monospace,monospace;letter-spacing:.12em}
.ofx-chat-body{min-height:96px;flex:1 1 auto;display:flex}.ofx-chat-body[hidden]{display:none}
.ofx-chat-log{flex:1;min-height:0;max-height:100%;margin:0;padding:12px;list-style:none;display:grid;align-content:start;gap:12px;overflow-y:auto;background:var(--ofx-bg);border:1px solid #ffffff24;border-radius:4px}
.ofx-chat-panel.is-inline .ofx-chat-log{max-height:min(52vh,520px)}
.ofx-chat-log:focus-visible{outline:2px solid #dbdbdb;outline-offset:2px}
.ofx-chat-turn{display:grid;gap:3px;max-width:92%}
.ofx-chat-turn.is-you{justify-self:end;text-align:right}
.ofx-chat-turn p{margin:0;color:#e6e6e6;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.ofx-chat-turn.is-static p{color:#d6d6d6}
.ofx-chat-turn[data-final=false] p{color:#a9a9a9}
.ofx-chat-who{color:#a2a2a2;font:550 10px/1.5 "Chivo V6",ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}
.ofx-chat-status{margin:0;min-height:1.5em;color:#e2e2e2;font-size:13px}
.ofx-chat-status:empty{display:none}
.ofx-chat-intro,.ofx-chat-unavailable,.ofx-chat-after,.ofx-chat-compose{display:grid;gap:10px}
.ofx-chat-intro[hidden],.ofx-chat-unavailable[hidden],.ofx-chat-after[hidden],.ofx-chat-compose[hidden],.ofx-chat-session[hidden]{display:none}
.ofx-chat-unavailable p{margin:0;font-size:14px}
.ofx-chat-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:550;line-height:1.5;cursor:pointer;color:#e6e6e6}
.ofx-chat-check input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:#c4c4c4}
.ofx-chat-note,.ofx-chat-hint{margin:0;color:#b1b1b1;font-size:12px;line-height:1.5}
.ofx-chat-note a,.ofx-chat-link{color:#e6e6e6;text-decoration:underline;text-underline-offset:3px}
.ofx-chat-turnstile:empty{display:none}
.ofx-chat-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px;border:1px solid silver;border-radius:3px;background:linear-gradient(120deg,#f7f6f2,#d4d3cf);color:#151515;font:780 13px/1 "Archivo V6",sans-serif;cursor:pointer;text-decoration:none}
.ofx-chat-primary:disabled{opacity:.5;cursor:not-allowed}
.ofx-chat-link-button{justify-self:start}
.ofx-chat-secondary{min-height:44px;padding:0 18px;border:1px solid #ffffff6b;border-radius:4px;background:transparent;color:#ececec;font:650 13px "Archivo V6",sans-serif;cursor:pointer;justify-self:start}
.ofx-chat-secondary:hover{border-color:#d0d0d0;color:#fff}
.ofx-chat-compose-row{display:flex;gap:8px;align-items:stretch}
.ofx-chat-compose textarea{flex:1;min-width:0;min-height:48px;max-height:140px;padding:10px 12px;resize:vertical;background:#171717;color:#f3f3f3;border:1px solid #5d5d5d;border-radius:4px;font:16px/1.4 "Archivo V6",sans-serif}
.ofx-chat-compose textarea:disabled{opacity:.6}
.ofx-chat-send{padding:0 16px}
.ofx-chat-session{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #ffffff1f}
.ofx-chat-timer{color:#b5b5b5;font:12px "Chivo V6",ui-monospace,monospace;letter-spacing:.06em}
.ofx-chat-after{grid-template-columns:auto auto;align-items:center;justify-content:start;gap:16px}
.ofx-chat-panel :is(a,button,textarea,input):focus-visible{outline:2px solid #dbdbdb;outline-offset:3px}

/* Small screens: the panel becomes a full-screen sheet above the page, respecting safe areas and the keyboard. */
@media (max-width:560px){
 .ofx-chat-panel:not(.is-inline){inset:0;width:100%;max-height:none;height:100vh;height:100dvh;border-radius:0;border:0;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 html.ofx-chat-open,html.ofx-chat-open body{overflow:hidden}
 .ofx-chat-launcher{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));min-height:44px;padding:0 16px}
 .ofx-chat-after{grid-template-columns:1fr}
}
/* Keep the last footer row reachable above the launcher. */
.v6-footer{padding-bottom:max(96px,calc(40px + 56px))}

/* V6 CTA layout additions for the unified contract. */
.v6-closer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;flex:none}
@media (max-width:900px){.v6-closer-actions{justify-self:start}}
.v6-ask-page{min-height:100svh;padding:152px clamp(16px,5.5vw,110px) 110px;background:radial-gradient(35% 45% at 18% 0,#8e8e8e12,#0000),linear-gradient(160deg,#121212,#0b0b0b 30%,#080808 80%)}
.v6-ask-page .v6-ask-intro{max-width:760px;margin:0 auto 28px}
.v6-ask-noscript{max-width:760px;margin:0 auto;color:#d6d6d6}
@media (max-width:560px){.v6-ask-page{padding:120px 16px 72px}}

@media (prefers-reduced-motion:reduce){.ofx-chat-launcher{transition:none}.ofx-chat-launcher:hover{transform:none}.ofx-chat-panel,.ofx-chat-log{scroll-behavior:auto}}
/* React legal pages insert the canonical chrome through a wrapper that must not affect layout. */
.v6-chrome-slot{display:contents}
/* Public 404 inside the V6 chrome. */
.v6-not-found h1{margin:6px 0 14px}
.v6-not-found-links{margin:18px 0;padding-left:20px;display:grid;gap:10px}
.v6-not-found-signin{margin-top:22px;padding-top:16px;border-top:1px solid #ffffff1f}
