.scene-ai-root{position:fixed;z-index:12;right:1px;bottom:72px;display:flex;flex-direction:column;align-items:flex-end;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;transition:bottom .2s ease,right .2s ease}
.scene-ai-root.is-above-map{bottom:326px}
.scene-ai-root[hidden],body.portal-preview-mode .scene-ai-root,body.portal-handoff-source .scene-ai-root{display:none!important}
.scene-ai-toggle{position:relative;width:84px;height:92px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#dff8ff;cursor:pointer;filter:drop-shadow(0 12px 13px rgba(0,12,27,.48));transition:transform .18s ease,filter .18s ease;animation:scene-ai-float 3.6s ease-in-out infinite}
.scene-ai-toggle:before{content:"";position:absolute;left:17px;right:17px;bottom:3px;height:8px;border-radius:50%;background:rgba(42,176,255,.4);filter:blur(7px);transform:scaleX(.8)}
.scene-ai-toggle:hover,.scene-ai-toggle:focus-visible{transform:translateY(-4px) scale(1.04);filter:drop-shadow(0 0 12px rgba(67,190,255,.75)) drop-shadow(0 13px 15px rgba(0,12,27,.48));outline:none}
.scene-ai-toggle svg{position:relative;width:72px;height:82px;overflow:visible}
.scene-ai-robot-line,.scene-ai-robot-smile{fill:none;stroke:#aeeaff;stroke-width:2;stroke-linecap:round}
.scene-ai-robot-beacon{fill:#e7fbff;filter:drop-shadow(0 0 5px #6bd4ff)}
.scene-ai-robot-shell{fill:#1178ce;stroke:#8bdcff;stroke-width:1.6;filter:drop-shadow(0 0 7px rgba(31,170,255,.65))}
.scene-ai-robot-ear{fill:#0b5da8;stroke:#70cbff;stroke-width:1.5}
.scene-ai-robot-face{fill:#062b54;stroke:#5dc6ff;stroke-width:1.5}
.scene-ai-robot-eye{fill:#d8f8ff;filter:drop-shadow(0 0 4px #4fd3ff)}
.scene-ai-robot-thruster{fill:#0a4f91;stroke:#65c9ff;stroke-width:1.3}
.scene-ai-robot-jet{fill:none;stroke:#82dcff;stroke-width:2;stroke-linecap:round;filter:drop-shadow(0 0 4px #24a9ff);animation:scene-ai-jet 1.15s ease-in-out infinite alternate}
.scene-ai-panel{position:absolute;right:6px;bottom:92px;width:min(370px,calc(100vw - 30px));height:min(520px,calc(100vh - 135px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(117,205,255,.36);border-radius:18px;background:rgba(6,20,34,.95);box-shadow:0 24px 65px rgba(0,0,0,.5),0 0 30px rgba(31,149,226,.18);color:#e6f5ff;backdrop-filter:blur(18px);transform-origin:bottom right;animation:scene-ai-panel-in .18s ease-out}
.scene-ai-panel[hidden]{display:none!important}
.scene-ai-root.is-above-map .scene-ai-panel{position:fixed;right:334px;bottom:18px;height:min(520px,calc(100vh - 36px))}
.scene-ai-header{height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 9px 0 16px;border-bottom:1px solid rgba(135,204,245,.17);background:linear-gradient(100deg,rgba(19,67,103,.62),rgba(6,27,45,.25))}
.scene-ai-heading{min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:9px}
.scene-ai-heading small{color:#6ecbff;font-size:8px;font-weight:850;letter-spacing:.18em}
.scene-ai-heading strong{overflow:hidden;color:#f2faff;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.scene-ai-heading span{grid-column:1/-1;margin-top:4px;color:#8daec3;font-size:9px}
.scene-ai-close{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;padding:0;border:0;border-radius:9px;background:rgba(139,209,249,.09);color:#a9c9dc;font:300 21px/1 sans-serif;cursor:pointer}
.scene-ai-close:hover,.scene-ai-close:focus-visible{background:rgba(105,199,255,.18);color:#fff;outline:none}
.scene-ai-messages{min-height:0;display:flex;flex-direction:column;gap:12px;overflow:auto;padding:16px;scrollbar-width:thin;scrollbar-color:#2a759f transparent}
.scene-ai-message{max-width:88%;align-self:flex-start}
.scene-ai-message.is-user{align-self:flex-end}
.scene-ai-message small{display:block;margin:0 4px 5px;color:#7195ad;font-size:8px;font-weight:750}
.scene-ai-message.is-user small{text-align:right}
.scene-ai-message p{margin:0;padding:10px 12px;border:1px solid rgba(108,183,226,.18);border-radius:5px 13px 13px;background:rgba(24,56,78,.72);color:#dceef8;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.scene-ai-message.is-user p{border-color:rgba(79,174,235,.3);border-radius:13px 5px 13px 13px;background:linear-gradient(135deg,#127cc4,#0b5f9d);color:#fff}
.scene-ai-message.is-pending p{color:#8eb5cd;animation:scene-ai-pulse 1.1s ease-in-out infinite alternate}
.scene-ai-message.is-error p{border-color:rgba(255,123,114,.35);background:rgba(91,37,39,.65);color:#ffb4ae}
.scene-ai-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;padding:11px;border-top:1px solid rgba(135,204,245,.17);background:rgba(4,16,28,.74)}
.scene-ai-input{box-sizing:border-box;width:100%;min-height:42px;max-height:112px;resize:vertical;padding:11px 12px;border:1px solid rgba(119,177,211,.3);border-radius:11px;background:rgba(21,47,66,.78);color:#f0f9ff;font:12px/1.5 inherit;outline:none}
.scene-ai-input::placeholder{color:#718da1}
.scene-ai-input:focus{border-color:#4bb8f5;box-shadow:0 0 0 3px rgba(55,166,229,.13)}
.scene-ai-input:disabled{opacity:.65}
.scene-ai-send{height:42px;padding:0 15px;border:1px solid rgba(113,211,255,.3);border-radius:11px;background:linear-gradient(145deg,#168cd5,#0b67ad);color:#fff;font:750 11px/1 inherit;cursor:pointer;box-shadow:0 7px 16px rgba(0,78,137,.28)}
.scene-ai-send:hover,.scene-ai-send:focus-visible{background:linear-gradient(145deg,#27a3ed,#1178c5);outline:none}
.scene-ai-send:disabled{opacity:.5;cursor:wait}
@keyframes scene-ai-float{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes scene-ai-jet{from{opacity:.45;transform:scaleY(.75);transform-origin:50% 72px}to{opacity:1;transform:scaleY(1.15);transform-origin:50% 72px}}
@keyframes scene-ai-panel-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes scene-ai-pulse{from{opacity:.58}to{opacity:1}}
@media(max-width:760px){.scene-ai-root.is-above-map .scene-ai-panel{right:10px;bottom:10px;width:calc(100vw - 20px);height:min(520px,calc(100vh - 20px))}}
@media(max-width:680px){.scene-ai-root{right:-4px;bottom:59px}.scene-ai-root.is-above-map{bottom:307px}.scene-ai-toggle{width:74px;height:83px}.scene-ai-toggle svg{width:64px;height:74px}.scene-ai-panel{right:6px;bottom:82px;width:min(350px,calc(100vw - 20px));height:min(480px,calc(100vh - 115px))}.scene-ai-root.is-above-map .scene-ai-panel{right:10px;bottom:10px;width:calc(100vw - 20px);height:min(520px,calc(100vh - 20px))}}
@media(prefers-reduced-motion:reduce){.scene-ai-toggle,.scene-ai-robot-jet,.scene-ai-message.is-pending{animation:none}.scene-ai-panel{animation:none}}
