#gx-public-agent-x{font-family:inherit;color:#102b45}#gx-public-agent-x [hidden]{display:none!important}
#gx-public-agent-x-open{position:fixed;right:20px;bottom:20px;z-index:800;border:1px solid #b3d0e8;border-radius:999px;background:#073158;color:#fff;padding:12px 24px;box-shadow:0 8px 22px #061c3540;cursor:pointer;display:grid;gap:3px;text-align:left;font:inherit}
#gx-public-agent-x-open strong{font-size:16px}#gx-public-agent-x-open small{font-size:11px;color:#c5e2ff}
#gx-public-agent-x-dialog{position:fixed;inset:auto 20px 90px auto;margin:0;width:min(430px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 112px);padding:0;border:1px solid #bdcddd;border-radius:18px;background:#fff;color:#102b45;box-shadow:0 16px 50px #061c3550;overflow:auto}
#gx-public-agent-x-dialog::backdrop{background:#081c3433}#gx-public-agent-x-dialog header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#073158;color:#fff}
#gx-public-agent-x-dialog h2{font-size:22px;line-height:1.2;margin:0}#gx-public-agent-x-dialog header small{font-size:12px;color:#d0e7ff}#gx-public-agent-x-dialog [data-agent-close]{font-size:26px;line-height:1;background:transparent;color:#fff;border:1px solid #89b6dd;border-radius:8px;padding:6px 12px;cursor:pointer}
#gx-public-agent-x-dialog .gx-agent-body{padding:20px}#gx-public-agent-x-dialog p{font-size:14px;line-height:1.6;margin:0 0 16px}#gx-public-agent-x-dialog [data-agent-welcome]{display:grid;gap:12px}
#gx-public-agent-x-dialog a,#gx-public-agent-x-dialog .gx-agent-body button{display:block;padding:11px 14px;background:#edf5fc;border:1px solid #b9d2e7;border-radius:10px;color:#102b45;text-align:left;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}
#gx-public-agent-x-dialog [data-agent-brief]{background:#005bab;color:#fff}#gx-public-agent-x-dialog [data-agent-back]{margin-bottom:16px}#gx-public-agent-x-dialog button:disabled{opacity:.55;cursor:default}
#gx-public-agent-x-dialog .client-review-card{border:0;padding:0;margin:0;box-shadow:none;background:#fff}#gx-public-agent-x-dialog .client-review-card h2{font-size:20px;margin:0 0 12px}#gx-public-agent-x-dialog .client-review-card h3{font-size:17px;margin:18px 0 12px}#gx-public-agent-x-dialog .client-review-card button{margin:12px 0;width:100%}
#gx-public-agent-x-dialog .client-review-card label{display:block;font-size:13px;line-height:1.6;margin:12px 0}#gx-public-agent-x-dialog .client-review-card input{width:auto;margin-right:6px}#gx-public-agent-x-dialog .client-review-card dl{font-size:13px;overflow-wrap:anywhere}#gx-public-agent-x-dialog .staging-digest{font-size:11px;overflow-wrap:anywhere}#gx-public-agent-x-dialog .staging-error,#gx-public-agent-x-dialog [data-agent-error]{color:#992b24}
#gx-public-agent-x :focus-visible{outline:3px solid #43b8ff;outline-offset:3px}
@media(max-width:560px){#gx-public-agent-x-open{right:12px;bottom:12px;padding:10px 20px}#gx-public-agent-x-dialog{right:12px;bottom:78px;width:calc(100vw - 24px);max-height:calc(100dvh - 94px)}#gx-public-agent-x-dialog .gx-agent-body{padding:16px}}
@media(prefers-reduced-motion:reduce){#gx-public-agent-x *{scroll-behavior:auto;animation:none;transition:none}}
#gx-public-agent-x[data-review="275"] #gx-public-agent-x-open{width:96px;height:96px;padding:0;display:grid;place-items:center;background:transparent;border:0;box-shadow:none;text-align:center}
#gx-public-agent-x[data-review="275"] .gx-agent-orb{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;background:transparent!important;border-radius:0!important;box-shadow:none!important}
#gx-public-agent-x[data-review="275"] .gx-agent-orb[data-orb-state="CSS_FALLBACK"]{background:radial-gradient(circle at 35% 30%,#5AA6FF 0%,#0078FF 40%,#176BD7 65%,#B7B7B7 70%,transparent 75%)}
#gx-public-agent-x[data-review="275"] #gx-public-agent-x-open strong{position:absolute;bottom:-2px;left:10px;right:10px;font-size:12px;line-height:1.3;border-radius:99px;background:#073158;color:#fff;padding:5px 8px;pointer-events:none}
#gx-public-agent-x[data-review="275"] #gx-public-agent-x-open small{display:none}
#gx-public-agent-x[data-review="275"] #gx-public-agent-x-dialog{bottom:126px;max-height:calc(100dvh - 146px)}
@media(max-width:560px){#gx-public-agent-x[data-review="275"] #gx-public-agent-x-open{width:84px;height:84px}#gx-public-agent-x[data-review="275"] #gx-public-agent-x-dialog{bottom:108px;max-height:calc(100dvh - 124px)}}
#gx-public-agent-x-dialog:has([data-agent-avatar-slot]){overflow:visible;bottom:32px!important;max-height:calc(100dvh - 64px)!important}
#gx-public-agent-x-dialog:has([data-agent-avatar-slot]) header{position:relative;min-height:92px;box-sizing:border-box;padding-left:90px;border-radius:17px 17px 0 0}
#gx-public-agent-x-dialog [data-agent-avatar-slot]{position:absolute;left:-8px;top:-18px;width:96px;height:96px;pointer-events:none}
#gx-public-agent-x-dialog:has([data-agent-avatar-slot]) .gx-agent-body{max-height:calc(100dvh - 158px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;border-radius:0 0 17px 17px}
@media(max-width:560px){#gx-public-agent-x-dialog:has([data-agent-avatar-slot]){bottom:16px!important;max-height:calc(100dvh - 48px)!important}#gx-public-agent-x-dialog:has([data-agent-avatar-slot]) header{padding-left:80px;min-height:84px}#gx-public-agent-x-dialog [data-agent-avatar-slot]{width:84px;height:84px;left:-4px;top:-14px}#gx-public-agent-x-dialog:has([data-agent-avatar-slot]) .gx-agent-body{max-height:calc(100dvh - 134px)}}

/* R298 chat-first ES; original orb and modal layout remain unchanged. */
.gx-agent-chat-messages{list-style:none;margin:0 0 14px;padding:0;max-height:min(300px,35dvh);overflow:auto;overscroll-behavior:contain}
.gx-agent-chat-messages li{padding:12px;margin:8px 0;border-radius:12px;background:#edf5fd;color:#163957;white-space:pre-wrap;overflow-wrap:anywhere}
.gx-agent-chat-messages li[data-role="user"]{background:#e2edf5}.gx-agent-chat-messages p{margin:5px 0 0}
[data-agent-chat-form]>label{display:block;margin:8px 0;font-weight:700}[data-agent-chat-question]{box-sizing:border-box;width:100%;font:inherit;color:#163957;border:1px solid #94b7d7;border-radius:10px;padding:10px;resize:vertical;min-height:88px}
[data-agent-chat-question]:focus-visible,.gx-agent-chat-notice input:focus-visible,.gx-agent-chat-secondary summary:focus-visible{outline:3px solid #1767b6;outline-offset:3px}
.gx-agent-chat-notice{font-size:12px!important;font-weight:400!important;line-height:1.5}.gx-agent-chat-notice input{margin-right:7px;min-width:18px;min-height:18px}
.gx-agent-chat-actions{display:flex;gap:6px;flex-wrap:wrap}.gx-agent-chat-actions button{flex:1;margin:4px 0!important;min-height:44px!important;padding:8px!important;font:inherit!important}
[data-agent-chat-status]{font-size:12px!important;line-height:1.5!important}.gx-agent-chat-secondary{margin-top:12px}.gx-agent-chat-secondary summary{cursor:pointer;min-height:44px;display:flex;align-items:center}

/* Bounded public chat; preserve GX marks and existing accessibility. */
#gx-public-agent-x .gx-agent-chat-messages{list-style:none;margin:0;padding:0;display:grid;gap:12px;overflow-wrap:anywhere}#gx-public-agent-x .gx-agent-chat-messages li{padding:12px;border:1px solid #0078ff44;border-radius:12px}#gx-public-agent-x .gx-agent-chat-messages p{margin:.4em 0}#gx-public-agent-x [data-agent-chat-form]{display:grid;gap:12px;margin:16px 0}#gx-public-agent-x textarea{width:100%;box-sizing:border-box;min-height:88px;font:inherit;padding:12px;border-radius:10px}#gx-public-agent-x .gx-agent-chat-notice{display:flex;gap:10px;align-items:flex-start}#gx-public-agent-x .gx-agent-chat-notice input{flex:none;width:20px;height:20px}#gx-public-agent-x .gx-agent-chat-actions{display:flex;flex-wrap:wrap;gap:8px}#gx-public-agent-x [data-agent-chat-status]{font-size:.85rem;overflow-wrap:anywhere}#gx-public-agent-x dialog{max-height:calc(100dvh - 24px);overflow-y:auto}@media(max-width:600px){#gx-public-agent-x dialog{max-width:calc(100vw - 20px);width:calc(100vw - 20px);margin:10px;padding:0}#gx-public-agent-x .gx-agent-body{padding:16px}#gx-public-agent-x .gx-agent-chat-actions button{min-height:44px}}
