:root{color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;background:linear-gradient(135deg,#ecfdf5,#f0fdf4,#ecfeff);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer}input,textarea{font-size:16px}.page-shell{position:relative;height:100%;overflow:hidden;background:radial-gradient(1200px 800px at 10% -10%,rgba(16,185,129,.26),transparent 60%),radial-gradient(900px 700px at 100% 0%,rgba(132,204,22,.22),transparent 55%),radial-gradient(900px 600px at 50% 120%,rgba(45,212,191,.2),transparent 55%),linear-gradient(135deg,#ecfdf5,#f0fdf4,#ecfeff)}.page-glow{pointer-events:none;position:absolute;border-radius:999px;filter:blur(64px)}.page-glow-left{top:-96px;left:-80px;width:288px;height:288px;background:#6ee7b773}.page-glow-right{top:40px;right:0;width:256px;height:256px;background:#bef26459}.page-glow-bottom{bottom:0;left:50%;width:320px;height:320px;transform:translate(-50%);background:#5eead459}.app-frame{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;height:100%;max-width:960px;margin:0 auto;padding:12px}.page-shell.has-left-drawer .app-frame{max-width:none}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border:1px solid rgba(255,255,255,.7);border-radius:20px;background:#ffffff8c;box-shadow:0 8px 24px #0f172a0f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.page-header.is-hidden{display:none}.page-brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo,.chat-logo{border-radius:14px;object-fit:cover;box-shadow:0 10px 24px #0f172a1f}.brand-logo{width:36px;height:36px}.page-brand h1{margin:0;font-size:18px;font-weight:700;background:linear-gradient(90deg,#059669,#65a30d,#0d9488);-webkit-background-clip:text;background-clip:text;color:transparent}.page-brand p,.page-header-note{margin:0;color:#475569;font-size:12px}.card{position:relative;flex:1;min-height:0;border:1px solid rgba(255,255,255,.7);border-radius:24px;background:#ffffffdb;box-shadow:0 20px 40px #0f172a1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-card{width:min(100%,380px);flex:none;margin:0 auto;padding:20px}.login-form{display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#475569}.field input{width:100%;padding:12px 14px;border:1px solid rgba(203,213,225,.9);border-radius:16px;background:#ffffffe6;outline:none}.field input:focus{border-color:#10b981;box-shadow:0 0 0 3px #10b9812e}.primary-wide-btn,.ghost-btn,.small-btn,.composer-btn{border:0;border-radius:16px;transition:transform .16s ease,opacity .16s ease,background .16s ease}.primary-wide-btn{width:100%;padding:11px 14px;color:#fff;background:linear-gradient(90deg,#4f46e5,#0ea5e9);box-shadow:0 14px 28px #6366f12e}.primary-wide-btn:hover,.composer-btn-send:hover{transform:translateY(-1px)}.login-message,.login-error{font-size:12px}.login-message{color:#64748b}.login-error{color:#e11d48}.login-note{margin-top:16px;padding:14px;border:1px solid rgba(167,243,208,.9);border-radius:18px;background:#ecfdf5b3}.login-note-row{display:flex;gap:8px;align-items:flex-start;margin-bottom:10px;color:#047857;font-size:12px}.dot{width:8px;height:8px;margin-top:5px;border-radius:999px;background:#10b981;flex:none}.ghost-btn{width:100%;padding:9px 12px;color:#047857;background:#ffffffe0;border:1px solid rgba(167,243,208,.9)}.menu-anchor{position:absolute;top:16px;right:16px;z-index:16}.icon-btn{width:36px;height:36px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:#ffffffe0;color:#334155;box-shadow:0 12px 24px #0f172a1f}.drawer-root{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:15}.drawer-root.is-open{pointer-events:auto}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#0f172a00;transition:background .18s ease}.drawer-root.is-open .drawer-backdrop{background:#0f172a52}.drawer-panel{position:absolute;top:0;left:0;display:flex;flex-direction:column;width:min(86vw,360px);height:100%;overflow:hidden;border-right:1px solid rgba(226,232,240,.92);background:#f8fafcf5;box-shadow:18px 0 42px #0f172a29;transform:translate(-102%);transition:transform .2s ease;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.drawer-root.is-open .drawer-panel{transform:translate(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid rgba(226,232,240,.9);background:#ffffffb3}.drawer-profile{display:flex;align-items:center;gap:10px;min-width:0}.drawer-logo{width:34px;height:34px;flex:none;border-radius:12px;object-fit:cover}.drawer-profile-text{min-width:0}.drawer-title{color:#0f172a;font-size:15px;font-weight:700}.drawer-account{overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.drawer-close{flex:none;box-shadow:none}.drawer-new-session-wrap{padding:14px 14px 0}.drawer-new-session{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;border:0;border-radius:14px;color:#fff;background:#0f766e;font-size:14px;font-weight:700;box-shadow:0 12px 24px #0f766e2e}.drawer-new-session:hover{background:#0d9488}.drawer-new-session-icon{font-size:17px;line-height:1}.drawer-section{display:flex;flex:1;flex-direction:column;min-height:0;padding:14px}.drawer-section-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:12px}.drawer-section-header span:first-child{color:#0f172a;font-size:14px;font-weight:700}.drawer-session-list{min-height:0;margin-top:10px;overflow-y:auto}.drawer-session-item{width:100%;margin-bottom:8px;padding:11px 12px;border:0;border-radius:14px;background:#ffffffe0;color:#334155;text-align:left;box-shadow:inset 0 0 0 1px #e2e8f0f2}.drawer-session-item:hover{background:#fff}.drawer-session-item:disabled{cursor:wait;opacity:.7}.drawer-session-item.is-active{background:#ecfdf5;box-shadow:inset 0 0 0 1px #10b98152}.drawer-session-meta{display:flex;justify-content:space-between;gap:8px;color:#64748b;font-size:11px}.drawer-session-text{margin-top:7px;overflow:hidden;color:#1e293b;font-size:13px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.drawer-session-time,.drawer-empty{color:#94a3b8;font-size:11px}.drawer-session-time{margin-top:5px}.drawer-empty{padding:16px 4px}.drawer-actions{display:flex;flex-direction:column;gap:8px;padding:14px;border-top:1px solid rgba(226,232,240,.9);background:#ffffffb8}.drawer-action-btn{width:100%;min-height:42px;padding:0 12px;border:0;border-radius:14px;background:#f1f5f9f5;color:#334155;text-align:left}.drawer-action-btn:hover{background:#e2e8f0}.danger-text{color:#e11d48}.chat-card{display:flex;flex-direction:column;overflow:hidden}.chat-header{display:flex;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.74)}.chat-brand{display:flex;gap:12px;min-width:0}.chat-logo{width:34px;height:34px}.chat-brand-text{min-width:0}.chat-brand-top{display:flex;align-items:center;gap:8px}.chat-title{font-size:14px;font-weight:700;color:#0f172a}.status-badge,.intent-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px}.status-badge{color:#047857;background:#ecfdf5}.chat-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-meta{color:#64748b;font-size:12px}.chat-quota{color:#047857;font-size:11px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.intent-pill{max-width:220px;align-self:flex-start;color:#4f46e5;background:#eef2ff;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-header-spacer{width:36px;flex:none}.chat-body{flex:1;min-height:0}.thread-root{display:flex;flex-direction:column;height:100%}.thread-viewport{display:flex;flex:1;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;padding:16px;background:linear-gradient(180deg,#ffffffb3,#ecfdf5b3)}.thread-welcome{max-width:420px;margin:auto 0 24px;padding:18px;border:1px solid rgba(187,247,208,.9);border-radius:22px;background:#fffc}.thread-welcome-badge{display:inline-flex;margin-bottom:8px;padding:4px 10px;border-radius:999px;color:#047857;font-size:12px;background:#ecfdf5}.thread-welcome h2,.thread-welcome p{margin:0}.thread-welcome h2{font-size:22px}.thread-welcome p{margin-top:8px;color:#475569}.message-row{display:flex;justify-content:flex-start}.message-row-user{justify-content:flex-end}.bubble{min-width:0;max-width:min(100%,780px);padding:12px 14px;border-radius:20px}.bubble-user{max-width:72%;color:#fff;background:#059669;box-shadow:0 14px 28px #10b9812e}.bubble-assistant{width:100%;overflow:hidden;color:#1e293b;border:1px solid rgba(255,255,255,.75);background:#ffffffe0}.markdown-body{min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.65}.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-table-scroll,.markdown-body pre,.markdown-body blockquote{margin:8px 0}.markdown-body a{word-break:break-word;overflow-wrap:anywhere}.markdown-body a{color:#0f766e}.markdown-body img{display:block;width:auto;max-width:100%;max-height:420px;height:auto;margin:10px 0;border-radius:8px;object-fit:contain}.markdown-table-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.markdown-body table{width:max-content;min-width:100%;border-collapse:collapse}.markdown-body pre{max-width:100%;overflow-x:auto}.markdown-body th,.markdown-body td{padding:6px 8px;border:1px solid #d1fae5;text-align:left;vertical-align:top;font-size:14px;white-space:nowrap;word-break:normal;overflow-wrap:normal}.markdown-body th{background:#ecfdf5}.experience-card{margin-top:14px;padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:linear-gradient(180deg,#f0fdfaf5,#fffffff5)}.experience-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.experience-card-title{color:#0f172a;font-size:14px;font-weight:700}.experience-card-meta{color:#64748b;font-size:12px}.experience-card-body{display:flex;align-items:center;gap:14px;margin-top:12px}.experience-qr-wrap{flex:0 0 auto;width:128px;height:128px;padding:8px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;box-shadow:0 10px 24px #0f172a14}.experience-qr-image{display:block;width:100%;height:100%;border-radius:12px;object-fit:cover}.experience-card-copy{min-width:0;display:flex;flex-direction:column;gap:8px}.experience-card-tip,.experience-card-name{color:#334155;font-size:13px;line-height:1.6}.experience-card-link{display:inline-flex;align-items:center;justify-content:center;width:fit-content;min-height:36px;padding:0 14px;border-radius:999px;color:#fff;background:#0f766e;font-size:13px;font-weight:600;text-decoration:none}@media (max-width: 640px){.experience-card-body{align-items:flex-start;flex-direction:column}}.composer-shell{padding:12px;border-top:1px solid rgba(255,255,255,.74)}.composer-root{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid rgba(203,213,225,.8);border-radius:20px;background:#ffffffeb}.composer-input{width:100%;min-height:72px;resize:none;padding:4px 2px;border:0;background:transparent;outline:none;box-shadow:none}.composer-input:focus{border:0;outline:none;box-shadow:none}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-tools{display:flex;align-items:center;gap:8px;min-width:0}.composer-status{min-height:18px;color:#64748b;font-size:12px}.composer-human-btn{flex:none;min-height:34px;padding:0 12px;border:1px solid rgba(16,185,129,.32);border-radius:999px;color:#047857;background:#ecfdf5;font-size:13px;font-weight:700}.composer-human-btn:hover{background:#d1fae5}.composer-btn{padding:9px 14px;color:#fff}.composer-btn-send{background:#4f46e5}.composer-btn-cancel{background:#0f172a}.small-btn{padding:8px 12px}.primary-btn{color:#fff;background:#4f46e5}.modal-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:#0f172a61;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.modal-card{width:min(100%,420px);overflow:hidden;border:1px solid rgba(255,255,255,.74);border-radius:24px;background:#fffffff2;box-shadow:0 24px 48px #0f172a29}.modal-header,.modal-footer{padding:16px 18px}.modal-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(226,232,240,.9)}.modal-title,.modal-section-title{font-weight:700}.modal-body{padding:16px 18px;color:#334155;font-size:14px;max-height:min(60vh,460px);overflow-y:auto;-webkit-overflow-scrolling:touch;border-bottom:1px solid rgba(226,232,240,.9)}.modal-tip,.modal-warning{padding:12px 14px;border-radius:16px}.wechat-bind-title{font-size:18px;font-weight:700}.wechat-bind-tip{color:#64748b;font-size:13px;line-height:20px}.modal-tip{background:#f8fafc;color:#475569}.modal-section{margin-top:14px}.modal-section ul{margin:8px 0 0;padding-left:18px;line-height:21px}.modal-section li+li{margin-top:6px}.modal-section li b{color:#0f172a}.modal-warning{margin-top:14px;color:#b45309;background:#fffbeb;border:1px solid #fde68a}@media (max-width: 768px){.app-frame{padding:10px}.page-header{gap:10px;padding-right:12px}.page-header-note,.intent-pill{display:none}.chat-header{padding-right:52px}.bubble-user{max-width:88%}}@media (min-width: 769px){.page-shell.has-left-drawer .app-frame{margin-left:360px;padding-left:16px}.menu-anchor{display:none}.drawer-root.is-open{pointer-events:none}.drawer-root.is-open .drawer-backdrop{display:none}.drawer-root.is-open .drawer-panel{pointer-events:auto;box-shadow:10px 0 28px #0f172a14}.drawer-panel{width:360px}.drawer-close{display:none}}.thread-welcome h2,.thread-welcome p,.modal-tip{white-space:pre-wrap;overflow-wrap:anywhere}.chat-title,.drawer-title,.page-brand h1{overflow-wrap:anywhere}.composer-images{display:flex;flex-wrap:wrap;gap:8px}.trace{margin:-2px 0 8px;font-size:13px;color:#64748b}.trace-head{display:flex;align-items:center;gap:8px;width:100%;padding:4px 0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.trace-head:disabled{cursor:default}.trace-state{display:inline-flex;width:16px;height:16px;flex:none;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#15803d}.trace.has-error .trace-state{color:#b91c1c}.trace-spinner{width:12px;height:12px;border:2px solid rgba(100,116,139,.25);border-top-color:#16a34a;border-radius:50%;animation:trace-spin .8s linear infinite}.trace-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trace-label.is-shimmer{background:linear-gradient(90deg,#64748b,#64748b 40%,#cbd5e1,#64748b 60%,#64748b);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:trace-shimmer 1.8s linear infinite}.trace-time{flex:none;color:#94a3b8;font-variant-numeric:tabular-nums}.trace-chevron{flex:none;margin-left:auto;color:#94a3b8;font-size:16px;line-height:1;transition:transform .15s ease}.trace-chevron.is-open{transform:rotate(90deg)}.trace-steps{position:relative;margin:2px 0 0 7px;padding:0 0 0 16px;list-style:none;border-left:1px solid rgba(148,163,184,.4)}.trace-step{position:relative;padding:3px 0 7px}.trace-dot{position:absolute;left:-20px;top:9px;width:7px;height:7px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px #fff}.trace-step.is-done .trace-dot{background:#16a34a}.trace-step.is-running .trace-dot{background:#f59e0b}.trace-step.is-error .trace-dot{background:#dc2626}.trace-step-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.trace-step-time{flex:none;color:#94a3b8;font-size:12px;font-variant-numeric:tabular-nums}.trace-thought{color:#64748b;font-style:italic;line-height:1.55}.trace-step.is-thought .trace-dot{background:#cbd5e1}.trace-step-input{margin-top:3px;padding:3px 8px;border-radius:6px;background:#f1f5f9e6;color:#475569;font-size:12px;line-height:1.5;word-break:break-all}.trace-step-sql{margin:4px 0 0;padding:6px 8px;border-radius:6px;background:#0f172a;color:#e2e8f0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-all}.trace-step-title{color:#334155}.trace-step-detail{margin-top:1px;color:#94a3b8;font-size:12px}@keyframes trace-spin{to{transform:rotate(360deg)}}@keyframes trace-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion: reduce){.trace-spinner,.trace-label.is-shimmer{animation:none}}.composer-image{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;border:1px solid rgba(203,213,225,.9)}.composer-image img{width:100%;height:100%;object-fit:cover;display:block}.composer-image-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;padding:0;border:0;border-radius:999px;color:#fff;background:#0f172ab3;font-size:14px;line-height:20px;cursor:pointer}.composer-image-error{color:#b91c1c;font-size:12px}.composer-attach-btn{flex:none;min-height:34px;padding:0 12px;border:1px solid rgba(79,70,229,.28);border-radius:999px;color:#4338ca;background:#eef2ff;font-size:13px;font-weight:700;cursor:pointer}.composer-attach-btn:disabled{opacity:.5;cursor:not-allowed}.bubble-images{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.bubble-image{display:block;max-width:180px;max-height:180px;border-radius:10px;object-fit:cover}@keyframes aui-pulse{50%{opacity:.5}}:where(.aui-md[data-status=running]):empty:after,:where(.aui-md[data-status=running])>:where(:not(ol):not(ul):not(pre)):last-child:after,:where(.aui-md[data-status=running])>pre:last-child code:after,:where(.aui-md[data-status=running])>:where(:is(ol,ul):last-child)>:where(li:last-child:not(:has(*>li))):after,:where(.aui-md[data-status=running])>:where(:is(ol,ul):last-child)>:where(li:last-child)>:where(:is(ol,ul):last-child)>:where(li:last-child:not(:has(*>li))):after,:where(.aui-md[data-status=running])>:where(:is(ol,ul):last-child)>:where(li:last-child)>:where(:is(ol,ul):last-child)>:where(li:last-child)>:where(:is(ol,ul):last-child)>:where(li:last-child):after{animation:aui-pulse 2s cubic-bezier(.4,0,.6,1) infinite;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";--aui-content: "●";content:var(--aui-content);margin-left:.25rem;margin-right:.25rem}
