:root{--app-height: 100dvh;--sider-width: 288px;--chat-max: 880px;--border: rgba(5, 5, 5, .08);--muted: rgba(0, 0, 0, .45);--surface: #ffffff;--surface-2: #f7f8fa;--code-bg: #f6f8fa;--code-fg: #24292f;--hl-keyword: #cf222e;--hl-string: #0a3069;--hl-number: #0550ae;--hl-comment: #6e7781;--hl-title: #8250df;--hl-attr: #116329;--danger: #ff4d4f}[data-theme=dark]{--border: rgba(253, 253, 253, .12);--muted: rgba(255, 255, 255, .45);--surface: #141414;--surface-2: #1d1d1f;--code-bg: #1f2328;--code-fg: #e6edf3;--hl-keyword: #ff7b72;--hl-string: #a5d6ff;--hl-number: #79c0ff;--hl-comment: #8b949e;--hl-title: #d2a8ff;--hl-attr: #7ee787;color-scheme:dark}html,body,#root{margin:0;height:100%}body{background:var(--surface);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}.ant-app-root{height:100%}.app-shell{display:flex;height:var(--app-height);width:100%;overflow:hidden;background:var(--surface);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);box-sizing:border-box}.sider{width:var(--sider-width);flex:0 0 var(--sider-width);border-right:1px solid var(--border);background:var(--surface-2);padding-top:env(safe-area-inset-top);box-sizing:border-box}.sidebar{display:flex;flex-direction:column;height:100%;min-height:0}.sidebar-drawer .sidebar{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}.sidebar-head{display:flex;align-items:center;gap:10px;padding:16px 16px 8px}.sidebar-logo{width:28px;height:28px}.sidebar-title{font-size:17px;font-weight:600}.sidebar-foot{border-top:1px solid var(--border);padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.sidebar-user{justify-content:flex-start;overflow:hidden;text-overflow:ellipsis}.chat-list{display:flex;flex-direction:column;flex:1;min-height:0}.chat-list-new{padding:8px 12px}.chat-list-scroll{flex:1;overflow-y:auto;padding:0 4px 8px}.chat-list-state{display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 12px;text-align:center}.chat-list-archived{padding:4px 8px}.main{flex:1;min-width:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);box-sizing:border-box}.topbar{display:flex;align-items:center;gap:4px;min-height:52px;padding:0 8px;border-bottom:1px solid var(--border)}.topbar-title{flex:1;min-width:0;padding:0 8px;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-view{flex:1;min-height:0;display:flex;flex-direction:column}.chat-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;max-width:var(--chat-max);margin:0 auto;width:100%;box-sizing:border-box}.welcome-icon{font-size:40px}.bubble-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px max(12px,calc((100% - var(--chat-max)) / 2));box-sizing:border-box}.list-top{display:flex;justify-content:center;width:100%;min-height:24px;font-size:12px}.meta-bubble{justify-content:center}.meta-bubble .ant-bubble-content{width:100%;padding:0}.bubble-list .ant-bubble-content{max-width:min(100%,720px);overflow-wrap:anywhere}.bubble-list .ant-bubble-start .ant-bubble-content-borderless{padding-left:0}.bubble-failed .ant-bubble-content{border:1px solid var(--danger)}.agent-avatar{background:#1677ff}.msg-body{display:flex;flex-direction:column;gap:8px;min-width:0}.user-text{white-space:pre-wrap;word-break:break-word}.msg-foot{font-size:12px;color:var(--muted)}.msg-foot.failed{color:var(--danger)}.msg-foot-agent{display:flex;flex-direction:column;gap:2px}.reactions{font-size:16px}.status-line{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:4px 4px 6px}.status-line.stopped{color:#d48806}.chat-bottom{width:100%;max-width:var(--chat-max);margin:0 auto;padding:0 12px max(12px,env(safe-area-inset-bottom));box-sizing:border-box}.composer-actions{display:flex;align-items:center;gap:4px}.composer-hint{font-size:12px;color:var(--muted);padding:4px 8px 0}.recording-bar{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:16px}.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--danger);animation:rec-pulse 1.2s ease-in-out infinite}.rec-time{flex:1;font-variant-numeric:tabular-nums}@keyframes rec-pulse{50%{opacity:.3}}.img-grid{display:grid;grid-template-columns:minmax(0,320px);gap:6px}.img-grid.multi{grid-template-columns:repeat(auto-fill,minmax(120px,160px))}.img-grid .ant-image,.img-grid .msg-image{width:100%;max-height:320px;object-fit:cover;border-radius:10px}.img-grid.multi .msg-image{height:140px}.img-placeholder{width:160px;height:120px;border-radius:10px;background:var(--surface-2)}.media{display:flex;flex-direction:column;gap:4px}.media-label{font-size:12px;color:var(--muted)}.msg-audio{width:min(320px,100%);height:40px}.msg-video{max-width:min(480px,100%);max-height:360px;border-radius:10px}.media-fallback{display:flex;flex-direction:column;gap:6px}.file-card{position:relative;display:inline-flex;align-items:center;max-width:100%;cursor:pointer;border-radius:8px}.file-card:focus-visible{outline:2px solid #1677ff}.file-card-icon{position:absolute;right:10px;color:var(--muted)}.question-card,.card-view{display:flex;flex-direction:column;gap:8px}.question-title,.card-title{font-weight:600}.question-options,.card-links{display:flex;flex-wrap:wrap;gap:8px}.question-option{white-space:normal;height:auto;min-height:32px;text-align:left}.question-option.locked{cursor:default}.question-state{font-size:13px}.progress{display:flex;flex-direction:column;gap:4px;min-width:min(320px,70vw)}.progress-head{display:flex;align-items:center;gap:8px;font-weight:500}.progress-time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.progress-more{padding:0;font-size:12px;align-self:flex-start}.progress-toggle{padding:0;align-self:flex-start;font-size:12px}.step-icon{font-size:14px;line-height:1}.tokens-line{font-size:12px;color:var(--muted)}.md{line-height:1.6;overflow-wrap:anywhere}.md>:first-child{margin-top:0}.md>:last-child{margin-bottom:0}.md p,.md ul,.md ol,.md blockquote{margin:0 0 .6em}.md h1,.md h2,.md h3,.md h4{margin:.8em 0 .4em;line-height:1.3}.md h1{font-size:1.4em}.md h2{font-size:1.25em}.md h3{font-size:1.1em}.md ul,.md ol{padding-left:1.4em}.md blockquote{padding-left:12px;border-left:3px solid var(--border);color:var(--muted)}.md img{max-width:100%;border-radius:8px}.md hr{border:none;border-top:1px solid var(--border)}.md code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:var(--code-bg);color:var(--code-fg);padding:.1em .35em;border-radius:4px}.md-code{position:relative;margin:0 0 .6em}.md-code pre{margin:0;padding:12px;overflow-x:auto;background:var(--code-bg);color:var(--code-fg);border-radius:8px}.md-code pre code{padding:0;background:none;font-size:13px}.md-copy{position:absolute;top:6px;right:6px;border:none;background:transparent;color:var(--muted);cursor:pointer;padding:4px;opacity:.6}.md-copy:hover,.md-copy:focus-visible{opacity:1}.md-table{overflow-x:auto;margin:0 0 .6em}.md table{border-collapse:collapse;font-size:.95em}.md th,.md td{border:1px solid var(--border);padding:4px 10px;text-align:left}.md th{background:var(--surface-2)}.md .hljs-keyword,.md .hljs-selector-tag,.md .hljs-built_in,.md .hljs-literal{color:var(--hl-keyword)}.md .hljs-string,.md .hljs-regexp,.md .hljs-template-string{color:var(--hl-string)}.md .hljs-number,.md .hljs-symbol{color:var(--hl-number)}.md .hljs-comment,.md .hljs-quote{color:var(--hl-comment);font-style:italic}.md .hljs-title,.md .hljs-function,.md .hljs-section{color:var(--hl-title)}.md .hljs-attr,.md .hljs-attribute,.md .hljs-name,.md .hljs-tag{color:var(--hl-attr)}.login-page{min-height:var(--app-height);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:var(--surface-2)}.login-toolbar{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px}.login-card{width:100%;max-width:380px}.login-card .ant-card-body{display:flex;flex-direction:column;gap:16px}.login-brand{display:flex;flex-direction:column;align-items:center;text-align:center}.login-brand h3{margin:8px 0 0}.login-hint{margin:0!important;font-size:13px;text-align:center}.settings{display:flex;flex-direction:column;gap:16px}.settings section h5{margin-top:0}.settings-logout{display:flex;flex-direction:column;gap:8px}.settings-drawer .ant-drawer-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}@media(max-width:767px){.bubble-list{padding:12px 8px}.bubble-list .ant-bubble-content{max-width:100%}.chat-bottom{padding:0 8px max(8px,env(safe-area-inset-bottom))}textarea,input{font-size:16px!important}}
