/* Shared platform chat styles, isolated from page layout. */

.landing-chat{position:fixed;right:24px;bottom:24px;z-index:55;width:min(390px,calc(100vw - 32px));font-size:13px}.landing-chat[data-side=left]{left:24px;right:auto}.chat-launcher{margin-left:auto;display:flex;align-items:center;gap:12px;border:1px solid #a370d2;border-radius:100px;padding:17px 22px;background:#7615ed;color:white;box-shadow:0 8px 30px #6321ae33;font-size:13px;font-weight:600}.landing-chat[data-side=left] .chat-launcher{margin-left:0}.chat-launcher-dot{width:8px;height:8px;border-radius:50%;background:#d2f3dc;box-shadow:0 0 0 4px #ffffff12}.landing-chat-panel{display:flex;flex-direction:column;height:min(690px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);border:1px solid #e2d4ef;border-radius:20px;box-shadow:0 18px 70px #35214829;background:#fff;overflow:hidden}.landing-chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(120deg,#f6efff,#fdfbff);padding:24px 22px 19px;flex-shrink:0}.landing-chat-header .eyebrow{font-size:8px}.landing-chat-header h2{font-size:21px;margin:8px 0 5px;overflow-wrap:anywhere;max-width:250px}.landing-chat-header p{font-size:10px;color:#9379a8;margin:0}.chat-header-actions{display:flex;align-self:start;gap:5px}.chat-header-actions button{width:29px;height:29px;display:grid;place-items:center;border:1px solid #e7dff0;border-radius:50%;background:white;color:#8d69a6;font-size:18px}.landing-chat-tabs{display:flex;gap:10px;padding:10px 20px;border-top:1px solid #f0e8f6;border-bottom:1px solid #f0e8f6;flex-shrink:0}.landing-chat-tabs button{border:0;background:transparent;border-radius:7px;padding:9px 14px;font-size:12px;color:#9d85ad}.landing-chat-tabs [aria-selected=true]{background:#f1e7fe;color:#7925cd;font-weight:600}.landing-chat-log{flex:1;min-height:75px;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:17px;overscroll-behavior:contain;scroll-behavior:smooth}.landing-chat-message{align-self:start;max-width:92%;padding:13px 15px;background:#f7f2fc;border-radius:2px 14px 14px 14px;color:#694b7b;overflow-wrap:anywhere}.landing-chat-message.user{align-self:end;background:#7831cb;color:white;border-radius:14px 2px 14px 14px}.landing-chat-speaker{display:block;font-size:9px;font-weight:700;opacity:.7;margin-bottom:6px}.landing-chat-message p{font-size:12px;line-height:1.8;white-space:pre-wrap;margin:0}.landing-chat-message small{display:block;font-size:9px;margin-top:9px;opacity:.65}.landing-chat-message.pending p{color:#a18ab1}.landing-chat-message.failed{background:#fff3ef;color:#a84f41}.landing-chat-message figure{margin:12px 0 0}.landing-chat-message img{display:block;width:100%;max-height:220px;object-fit:contain;background:#fff;border-radius:9px}.landing-chat-message figcaption{font-size:9px;margin-top:7px;color:#96809f}.landing-chat-status{min-height:13px;font-size:10px;color:#9b82ab;padding:0 20px;margin:5px 0 10px}.landing-chat-form{display:flex;gap:10px;margin:0 16px 12px;padding:7px;border:1px solid #e3d8ee;border-radius:12px;background:#fff;flex-shrink:0}.landing-chat-form:focus-within{border-color:#a668e6;box-shadow:0 0 0 2px #9958df14}.landing-chat-form input{padding:8px;border:0;min-width:0;outline:none;font-size:12px;background:transparent}.landing-chat-form button{width:36px;height:36px;flex-shrink:0;border:0;border-radius:9px;background:#7a22da;color:white;font-size:21px}.chat-privacy{font-size:9px;line-height:1.5;color:#ac97b8;text-align:center;padding:0 18px 14px;flex-shrink:0}.chat-quick-prompts{display:flex;gap:7px;flex-wrap:wrap;padding:0 20px 6px}.chat-quick-prompts button{border:1px solid #e7dced;background:white;border-radius:30px;color:#8b5da8;padding:7px 12px;font-size:10px}.landing-chat-character{position:fixed;pointer-events:none;z-index:56;filter:drop-shadow(0 8px 14px #49236315)}.landing-chat-character img,.landing-chat-character iframe{display:block;width:100%;height:100%;border:0;object-fit:contain;background:transparent}.chat-voice-controls{padding:12px 20px;background:#fcfaff;border-bottom:1px solid #eee4f6;flex-shrink:0}.chat-voice-controls>p{font-size:10px;color:#a08aaf;line-height:1.6;margin:0 0 10px}.chat-call-buttons{display:flex;gap:6px;flex-wrap:wrap}.chat-call-buttons .button{padding:9px 12px;font-size:10px}.chat-effect-label{display:flex;align-items:center;gap:12px;font-size:10px;color:#977da7;margin-top:11px}.chat-effect-label select{width:auto;flex:1;min-width:0;font-size:10px;padding:7px 9px}.scene-message[role=button]{cursor:pointer}.scene-message[role=button]:hover{border-color:#b997dd}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.landing-chat,.landing-chat[data-side=left]{right:16px;left:16px;bottom:max(12px,env(safe-area-inset-bottom));width:auto}.landing-chat-panel{height:min(700px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:17px}.landing-chat-header{min-height:var(--chat-head-height,125px);padding:18px 14px 15px 112px;align-items:center}.landing-chat-header h2{font-size:18px;max-width:180px}.landing-chat-header p{font-size:9px}.chat-header-actions{position:absolute;right:12px;top:10px}.chat-header-actions button{width:25px;height:25px;font-size:16px}.landing-chat-log{padding:16px}.landing-chat-tabs{padding:7px 16px}.chat-launcher{padding:15px 20px}.landing-chat-character{z-index:56}.chat-voice-controls{padding:9px 16px}.chat-voice-controls>p{font-size:9px;margin-bottom:8px}.chat-effect-label{margin-top:8px}}
@media(max-height:500px){.landing-chat-panel{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.landing-chat-header{padding-top:10px;padding-bottom:10px;min-height:75px}.landing-chat-header .eyebrow{display:none}.landing-chat-header h2{font-size:17px;margin-top:0}.chat-voice-controls>p,.chat-effect-label{display:none}.landing-chat-tabs{padding:3px 14px}.landing-chat-log{min-height:60px;padding:10px 16px}.chat-privacy{padding-bottom:7px}}
@media(prefers-reduced-motion:reduce){.landing-chat-log{scroll-behavior:auto}}
.chat-transcript-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#977da7;margin-top:10px}.chat-transcript-label input{width:auto;accent-color:#812bd8}#landing-chat-log[data-transcript=off] .voice-entry p,#landing-chat-log[data-transcript=off] .voice-entry .landing-chat-speaker{display:none}#landing-chat-log[data-transcript=off] .voice-entry:not(:has(figure)){display:none}
.chat-voice-settings{display:inline-block;font-size:10px;line-height:1.6;color:#8a3bcd;text-decoration:underline;margin-bottom:10px}

.landing-chat-header{min-height:var(--chat-head-height,auto);padding-left:var(--chat-header-padding,22px)}

/* Brand preview overrides, limited to the conversation widget. */
.landing-chat{line-height:1.5}.landing-chat .chat-launcher{background:var(--violet,#6600ff);border-color:#934dff;min-height:54px;font-size:13px}.landing-chat .chat-launcher:hover{background:#5200cc}.landing-chat-panel{color:#1c1c1c}.landing-chat-header h2{letter-spacing:-.6px;line-height:1.3}.landing-chat-header p{font-size:12px;color:#736d81}.landing-chat-header .eyebrow{font-size:9px}.landing-chat-tabs button{font-size:12px}.landing-chat-tabs [aria-selected=true]{color:var(--violet,#6600ff);background:#f0e5ff}.landing-chat-log{font-size:14px}.landing-chat-message p{font-size:14px;line-height:1.6;white-space:pre-wrap}.landing-chat-speaker{font-size:11px}.landing-chat-message small{font-size:11px}.landing-chat .landing-chat-status{font-size:11px;line-height:1.5}.landing-chat-form input{flex:1;width:100%;font-size:14px}.landing-chat-form button{background:var(--violet,#6600ff)}.landing-chat .button{border:1px solid #ddd5ee;background:#fff;color:var(--violet,#6600ff);min-height:36px;border-radius:9px;box-shadow:none;gap:8px}.landing-chat .button.primary{background:var(--violet,#6600ff);color:#fff}.landing-chat .button.danger{color:#a23848}.chat-quick-prompts button{font-size:11px;color:var(--violet,#6600ff)}.chat-privacy{font-size:10px;color:#736d81}.chat-privacy a{text-decoration:underline}.chat-voice-controls>p{font-size:11px;color:#736d81}.chat-effect-label,.chat-transcript-label{font-size:11px}.chat-effect-label select{border:1px solid #ddd5ee;border-radius:7px;background:white;color:#1c1c1c}.landing-chat-character video,.landing-chat-character canvas{width:100%;height:100%;object-fit:contain}.landing-chat-message.pending p:after{content:' …';color:var(--violet,#6600ff)}.landing-chat [aria-busy=true]{cursor:progress}
@media(max-width:760px){.landing-chat .chat-header-actions{position:static}.landing-chat-header h2{max-width:200px}.landing-chat-log{min-height:70px}.chat-launcher{font-size:12px}.landing-chat .button{font-size:11px}}

/* Preserve complete character framing for stills, animation and live mouths. */
.landing-chat-character{overflow:hidden}.landing-chat-character>img,.landing-chat-character>iframe,.landing-chat-character>video[data-character-media],.landing-chat-character>canvas[data-lip-sync]{position:absolute!important;width:var(--avatar-media-width,100%)!important;height:var(--avatar-media-height,100%)!important;left:var(--avatar-media-left,0)!important;top:var(--avatar-media-top,0)!important;max-width:none!important;max-height:none!important;object-fit:contain;border:0;background:transparent;pointer-events:none;user-select:none}.landing-chat-header>div:first-child{min-width:0}
