.a2ui-v2-host{--a2ui-color-primary:var(--primary,#2f9be8);--a2ui-color-primary-hover:var(--primary-deep,#1678c8);--a2ui-color-on-primary:#fff;--a2ui-color-surface:#fff;--a2ui-color-on-surface:#1f2937;--a2ui-color-on-secondary:#1f2937;--a2ui-color-secondary-hover:#f5f7ff;--a2ui-color-border:#d9def0;--a2ui-border-radius:12px;--a2ui-font-size:14px;--a2ui-spacing-m:8px;--a2ui-spacing-l:16px;--a2ui-button-margin:0;--a2ui-card-margin:0 0 8px;--a2ui-card-padding:12px;--a2ui-card-box-shadow:none;color-scheme:light;font-family:-apple-system,PingFang SC,Microsoft YaHei,sans-serif}.a2ui-v2-host *,.a2ui-v2-host :after,.a2ui-v2-host :before{box-sizing:border-box}.a2ui-v2-host.page-mode{align-items:center;background:linear-gradient(135deg,var(--primary-bg) 0,#f5f9fe 100%);display:flex;height:100dvh;top:0;right:0;bottom:0;left:0;justify-content:center;padding:16px;position:fixed;z-index:970}.a2ui-v2-host.page-mode .chat-card{background:#fff;border-radius:16px;box-shadow:0 12px 40px #3c467826;display:flex;flex-direction:column;height:92vh;max-height:840px;max-width:580px;overflow:hidden;width:100%}.a2ui-v2-host.widget-mode{background:#f7f8fc;display:flex;flex-direction:column;height:100%}.a2ui-v2-host.widget-mode .chat-flex{background:#f7f8fc;display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}.a2ui-v2-host .header{align-items:center;background:linear-gradient(135deg,var(--primary),var(--primary-deep));color:#fff;display:flex;gap:12px;padding:14px 18px}.a2ui-v2-host .back{background:transparent;border:none;color:#fff;cursor:pointer;font-size:15px;padding:2px 6px}.a2ui-v2-host .avatar{align-items:center;background:#fff3;border-radius:50%;display:flex;font-size:16px;font-weight:600;height:38px;justify-content:center;width:38px}.a2ui-v2-host .v2-badge{border:1px solid hsla(0,0%,100%,.4);border-radius:8px;font-size:10px;font-weight:500;opacity:.85;padding:1px 5px}.a2ui-v2-host .title .name{font-size:16px;font-weight:600}.a2ui-v2-host .title .status{align-items:center;display:flex;font-size:12px;gap:4px;opacity:.9}.a2ui-v2-host .dot{background:#4ade80;border-radius:50%;display:inline-block;height:7px;width:7px}.a2ui-v2-host .messages{background:#f7f8fc;display:flex;flex:1;flex-direction:column;gap:16px;min-height:0;overflow-y:auto;padding:20px 20px 24px;scroll-behavior:smooth}.a2ui-v2-host .row{align-items:flex-start;display:flex;gap:8px}.a2ui-v2-host .row.user{justify-content:flex-end}.a2ui-v2-host .bubble-avatar{align-items:center;border-radius:50%;color:#fff;display:flex;flex-shrink:0;font-size:12px;font-weight:600;height:32px;justify-content:center;width:32px}.a2ui-v2-host .bubble-avatar.bot{background:linear-gradient(135deg,var(--primary),var(--primary-deep))}.a2ui-v2-host .bubble-avatar.me{background:#94a3b8;overflow:hidden}.a2ui-v2-host .bubble-avatar.me img.avatar-img{border-radius:50%;display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.a2ui-v2-host .bubble{border-radius:14px;font-size:14px;line-height:1.45;max-width:76%;padding:10px 14px;white-space:pre-wrap;word-break:break-word}.a2ui-v2-host .bubble.assistant{background:#fff;border:1px solid #eef0f6;border-top-left-radius:4px;color:#1f2937}.a2ui-v2-host .bubble.user{background:linear-gradient(135deg,var(--primary),var(--primary-deep));border-top-right-radius:4px;color:#fff}.a2ui-v2-host .assistant-col{display:flex;flex-direction:column;gap:6px;max-width:76%;min-width:0}.a2ui-v2-host .assistant-col .bubble{max-width:100%}.a2ui-v2-host .reasoning-box{background:#f3f4f8;border:1px solid #e5e7ef;border-radius:10px;font-size:12.5px;overflow:hidden}.a2ui-v2-host .reasoning-head{align-items:center;color:#6b7280;cursor:pointer;display:flex;gap:6px;padding:7px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.a2ui-v2-host .reasoning-head:hover{background:#eceef4}.a2ui-v2-host .reasoning-toggle{color:#9aa2b1;font-size:11px;margin-left:auto}.a2ui-v2-host .reasoning-body{border-top:1px dashed #e0e3ec;color:#8b92a3;line-height:1.6;max-height:240px;overflow-y:auto;padding:2px 10px 10px;white-space:pre-wrap;word-break:break-word}.a2ui-v2-host .login-prompt,.a2ui-v2-host .new-session-prompt{align-items:center;border-radius:12px;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:8px;padding:14px 16px;transition:all .15s}.a2ui-v2-host .login-prompt{background:linear-gradient(135deg,#fff7ed,#fff);border:1.5px solid #fdba74;color:#c2410c}.a2ui-v2-host .new-session-prompt{background:linear-gradient(135deg,#eff6ff,#fff);border:1.5px solid var(--primary);color:var(--primary-deep)}.a2ui-v2-host .login-prompt:hover,.a2ui-v2-host .new-session-prompt:hover{box-shadow:0 4px 12px #2f9be82e;transform:translateY(-1px)}.a2ui-v2-host .login-arrow,.a2ui-v2-host .ns-arrow{color:var(--primary);font-size:13px;margin-left:auto}.a2ui-v2-host .typing{align-items:center;display:flex;gap:4px}.a2ui-v2-host .typing span{animation:a2ui-v2-blink 1.2s infinite both;background:#c4c9d6;border-radius:50%;height:7px;width:7px}.a2ui-v2-host .typing span:nth-child(2){animation-delay:.2s}.a2ui-v2-host .typing span:nth-child(3){animation-delay:.4s}.a2ui-v2-host .typing .status-text{animation:none;background:transparent;color:var(--primary);font-size:12px;font-weight:500;height:auto;margin-right:2px;width:auto}.a2ui-v2-host .suggestions{background:#f7f8fc;display:flex;flex-wrap:wrap;gap:8px;padding:0 20px 12px}.a2ui-v2-host .chip{background:#fff;border:1px solid #d9def0;border-radius:20px;color:var(--primary);cursor:pointer;font-size:13px;padding:7px 12px;transition:all .15s}.a2ui-v2-host .chip:hover{background:var(--primary);border-color:var(--primary);color:#fff}.a2ui-v2-host .input-bar{background:#fff;border-top:1px solid #eef0f6;display:flex;gap:10px;padding:14px 16px}.a2ui-v2-host .input{border:1px solid #dfe3ee;border-radius:22px;flex:1;font-size:14px;min-width:0;outline:none;padding:10px 16px;transition:border .15s}.a2ui-v2-host .input:focus{border-color:var(--primary)}.a2ui-v2-host .send-btn{background:linear-gradient(135deg,var(--primary),var(--primary-deep));border:none;border-radius:22px;color:#fff;cursor:pointer;font-size:14px;padding:0 22px;transition:opacity .15s}.a2ui-v2-host .send-btn:disabled{cursor:not-allowed;opacity:.5}.a2ui-v2-host .new-session-btn{align-items:center;background:#f8faff;border:1px solid #dfe3ee;border-radius:50%;color:var(--primary);cursor:pointer;display:flex;flex-shrink:0;height:38px;justify-content:center;width:38px}.a2ui-v2-host .new-session-btn:hover{background:var(--primary);border-color:var(--primary);color:#fff}.a2ui-v2-host .new-session-btn:disabled{cursor:not-allowed;opacity:.4}.a2ui-v2-host .bubble.markdown{white-space:normal}.a2ui-v2-host .bubble.markdown p{margin:0 0 6px}.a2ui-v2-host .bubble.markdown p:last-child{margin-bottom:0}.a2ui-v2-host .bubble.markdown strong{color:#111827;font-weight:700}.a2ui-v2-host .bubble.markdown ol,.a2ui-v2-host .bubble.markdown ul{margin:4px 0;padding-left:20px}.a2ui-v2-host .bubble.markdown li{margin:2px 0}.a2ui-v2-host .bubble.markdown code{background:#f1f3f9;border-radius:4px;font-family:ui-monospace,Menlo,monospace;font-size:13px;padding:1px 5px}.a2ui-v2-host .bubble.markdown a{color:var(--primary)}.a2ui-v2-host a2ui-surface{display:block;min-width:0;width:100%}.a2ui-v2-host a2ui-basic-column,.a2ui-v2-host a2ui-basic-row{gap:6px;min-width:0}.a2ui-v2-host a2ui-basic-card{border-color:#e8eef4!important;border-radius:12px!important}.a2ui-v2-host a2ui-basic-text{display:block;min-width:0}.a2ui-v2-host a2ui-basic-text .a2ui-text{color:#1f2937;font-size:14px;line-height:1.55}.a2ui-v2-host a2ui-basic-text .a2ui-text p{margin:0 0 6px}.a2ui-v2-host a2ui-basic-text .a2ui-text p:last-child{margin-bottom:0}.a2ui-v2-host a2ui-basic-text .a2ui-text a{color:var(--primary)}.a2ui-v2-host a2ui-basic-button{display:block;width:100%}.a2ui-v2-host a2ui-basic-button .a2ui-button{font-family:inherit;font-size:14px;min-height:40px;width:100%}.a2ui-v2-host a2ui-basic-button .a2ui-button-primary{box-shadow:0 4px 12px #2f9be838}.a2ui-v2-host kmk-picker,.a2ui-v2-host kmk-price-tiers{display:block;width:100%}.a2ui-v2-host .a2ui-load-error,.a2ui-v2-host .ui-error{background:#fff7ed;border:1px solid #fdba74;border-radius:10px;color:#c2410c;font-size:12px;line-height:1.5;padding:9px 12px}html.a2ui-v2-fullscreen,html.a2ui-v2-fullscreen body{max-width:100vw!important;min-width:0!important;overflow:hidden!important;width:100%}html.a2ui-v2-fullscreen .page-layout{max-width:100vw;overflow:hidden;width:100%}@keyframes a2ui-v2-blink{0%,80%,to{opacity:.3}40%{opacity:1}}@media(max-width:520px){.a2ui-v2-host.page-mode{padding:0}.a2ui-v2-host.page-mode .chat-card{border-radius:0;height:100dvh;max-height:none}.a2ui-v2-host .messages{padding:16px 12px 20px}.a2ui-v2-host .assistant-col{max-width:calc(100% - 40px)}.a2ui-v2-host .bubble{max-width:88%}.a2ui-v2-host .input-bar{gap:7px;padding:12px 10px}.a2ui-v2-host .send-btn{padding:0 15px}}
