:root{--bg: #ffffff;--sidebar-bg: #f7f7f5;--surface-soft: #f3f6f5;--surface-hover: #eef1f0;--border: #e2e6e5;--border-strong: #cfd6d4;--text: #202523;--muted: #707874;--muted-strong: #505954;--accent: #0f766e;--accent-strong: #0b5f59;--accent-soft: #e7f3f1;--cloud: #2563eb;--cloud-soft: #eaf0ff;--danger: #b42318;--danger-soft: #fff1ef;--shadow-sm: 0 1px 2px rgba(20, 30, 26, .06);--shadow-md: 0 8px 24px rgba(20, 30, 26, .1);color-scheme:light}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;min-height:100%;margin:0}body{overflow:hidden;background:var(--bg);color:var(--text);font-family:PingFang SC,Microsoft YaHei,Segoe UI,system-ui,sans-serif;font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid rgba(15,118,110,.34);outline-offset:2px}.app-shell{position:relative;display:grid;grid-template-columns:272px minmax(0,1fr);width:100%;height:100vh;height:100dvh;min-height:620px;overflow:hidden;background:var(--bg)}.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar{position:relative;z-index:20;display:flex;min-width:0;flex-direction:column;border-right:1px solid var(--border);background:var(--sidebar-bg)}.sidebar-head{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:8px;height:62px;padding:0 12px 0 10px}.brand-small{display:flex;min-width:0;align-items:center;gap:9px;font-size:15px;font-weight:700}.brand-mark{display:inline-grid;flex:0 0 auto;place-items:center;border:1px solid rgba(15,118,110,.16);background:var(--accent-soft);color:var(--accent)}.brand-mark.small{width:30px;height:30px;border-radius:9px}.brand-mark.small svg{width:17px;height:17px}.brand-mark.large{width:54px;height:54px;border-radius:16px;box-shadow:inset 0 1px #ffffffbf}.brand-mark.large svg{width:28px;height:28px}.icon-btn{display:inline-grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted-strong);cursor:pointer;transition:background .16s ease,color .16s ease}.icon-btn:hover{background:#1b242012;color:var(--text)}.icon-btn svg{width:18px;height:18px}.mobile-close,.mobile-menu,.desktop-show,.collapsed-sidebar-btn{display:none}.new-chat-btn{display:flex;align-items:center;gap:10px;width:calc(100% - 24px);min-height:42px;margin:2px 12px 14px;padding:9px 12px;border:1px solid var(--border-strong);border-radius:10px;background:#fff;box-shadow:var(--shadow-sm);color:var(--text);cursor:pointer;text-align:left;transition:border-color .16s ease,transform .16s ease}.new-chat-btn:hover{border-color:#0f766e75;transform:translateY(-1px)}.new-chat-btn svg{width:18px;height:18px;color:var(--accent)}.history-nav{min-height:0;flex:1;overflow-y:auto;padding:0 8px 16px;scrollbar-width:thin}.history-group+.history-group{margin-top:15px}.history-label{padding:4px 9px 5px;color:#8a918e;font-size:12px}.history-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 26px;align-items:center;gap:5px;width:100%;min-height:38px;margin:2px 0;padding:7px 5px 7px 10px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left}.history-item:hover,.history-item.active{background:#e9edeb}.history-title{min-width:0;overflow:hidden;color:#333a37;font-size:13.5px;text-overflow:ellipsis;white-space:nowrap}.history-item.active .history-title{color:#17201d;font-weight:650}.history-mode{display:inline-grid;width:20px;height:20px;place-items:center;border:1px solid #d8dddb;border-radius:6px;background:#fff;color:#68716d;font-size:10px;font-weight:700}.history-delete{display:grid;width:26px;height:26px;place-items:center;border-radius:6px;color:transparent}.history-item:hover .history-delete,.history-delete:focus{color:#7a8280}.history-delete:hover{background:#fff;color:var(--danger)}.history-delete svg{width:15px;height:15px}.history-empty{margin:10px;color:var(--muted);font-size:13px}.sidebar-foot{display:flex;align-items:center;gap:8px;min-height:46px;padding:10px 16px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:#a8b0ad}.status-dot.online{background:#16a34a;box-shadow:0 0 0 3px #16a34a1a}.mobile-scrim{display:none}.chat-column{position:relative;display:grid;min-width:0;height:100vh;height:100dvh;grid-template-rows:58px minmax(0,1fr) auto;overflow:hidden;background:radial-gradient(circle at 50% -120px,rgba(15,118,110,.07),transparent 360px),#fff}.topbar{position:relative;z-index:12;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;padding:0 18px;border-bottom:1px solid rgba(226,230,229,.72);background:#ffffffe0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar-left{display:flex;min-width:0;align-items:center;gap:8px}.chat-title{min-width:0;overflow:hidden;color:var(--muted-strong);font-size:13.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.model-switcher{position:relative;justify-self:center}.model-button{display:inline-flex;max-width:min(340px,48vw);min-height:36px;align-items:center;gap:8px;padding:7px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:#303734;font-size:13.5px;font-weight:650;cursor:pointer}.model-button:hover,.model-button[aria-expanded=true]{border-color:var(--border);background:#f6f8f7}.model-button>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-button svg{width:15px;height:15px;color:#77807c}.model-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%}.model-dot.offline{background:var(--accent);box-shadow:0 0 0 3px #0f766e1a}.model-dot.deepseek{background:var(--cloud);box-shadow:0 0 0 3px #2563eb1c}.mode-menu{position:absolute;top:calc(100% + 7px);left:50%;display:none;width:304px;padding:6px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-md);transform:translate(-50%)}.mode-menu.open{display:block;animation:menu-in .14s ease-out}@keyframes menu-in{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}.mode-option{display:grid;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left}.mode-option:hover,.mode-option.selected{background:#f3f6f5}.mode-option:disabled{cursor:not-allowed;opacity:.52}.mode-option-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:9px}.mode-option-icon.offline{background:var(--accent-soft);color:var(--accent)}.mode-option-icon.cloud{background:var(--cloud-soft);color:var(--cloud)}.mode-option-icon svg{width:18px;height:18px}.mode-option-copy{display:flex;min-width:0;flex-direction:column;gap:1px}.mode-option-copy strong{font-size:13.5px;font-weight:650}.mode-option-copy small{overflow:hidden;color:var(--muted);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}.check-icon{width:17px;height:17px;color:var(--accent)}.chat-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-width:thin}.chat-inner{width:min(100%,880px);min-height:100%;margin:0 auto;padding:42px 24px}.empty-state{display:flex;min-height:calc(100vh - 310px);min-height:calc(100dvh - 310px);flex-direction:column;align-items:center;justify-content:center;padding:6vh 0 2vh}.empty-brand{display:flex;flex-direction:column;align-items:center;margin-bottom:32px;text-align:center}.empty-brand h1{margin:15px 0 4px;font-size:27px;font-weight:720;line-height:1.25}.empty-brand p{margin:0;color:var(--muted);font-size:14px}.suggestion-grid{display:grid;width:min(100%,620px);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.suggestion{display:flex;min-height:62px;flex-direction:column;justify-content:center;gap:3px;padding:11px 14px;border:1px solid var(--border);border-radius:10px;background:#f9faf9e0;cursor:pointer;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease}.suggestion:hover{border-color:#0f766e66;background:#fff;transform:translateY(-1px)}.suggestion span{color:#303733;font-size:14px;font-weight:620}.suggestion small{color:var(--muted);font-size:11.5px}.message{width:100%;margin:0 0 32px;animation:message-in .18s ease-out}@keyframes message-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.user-message{display:flex;justify-content:flex-end;padding-left:14%}.user-bubble{max-width:100%;padding:11px 15px;border-radius:16px 16px 5px;background:#eef1f0;color:#222926;line-height:1.65;overflow-wrap:anywhere;white-space:normal}.assistant-message{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:13px}.assistant-avatar{display:grid;width:30px;height:30px;margin-top:1px;place-items:center;border:1px solid rgba(15,118,110,.16);border-radius:9px;background:var(--accent-soft);color:var(--accent)}.assistant-avatar svg{width:17px;height:17px}.assistant-content{min-width:0}.assistant-message.error .assistant-avatar,.assistant-message.emergency .assistant-avatar{border-color:#b4231833;background:var(--danger-soft);color:var(--danger)}.assistant-message.error .markdown-body{padding:11px 13px;border:1px solid rgba(180,35,24,.2);border-radius:8px;background:var(--danger-soft);color:#8f2d24}.thought-box{margin:0 0 13px;border:1px solid #e0e5e3;border-radius:8px;background:#f7f9f8;color:#59615e;font-size:13px}.thought-box summary{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:8px;min-height:38px;padding:8px 11px;cursor:pointer;list-style:none;-webkit-user-select:none;user-select:none}.thought-box summary::-webkit-details-marker{display:none}.thought-box summary span{color:#4e5753;font-weight:620}.thought-box summary small{color:#8a918e;font-size:11.5px}.thought-box summary svg{width:15px;height:15px;color:#7c8581;transition:transform .16s ease}.thought-box[open] summary svg{transform:rotate(180deg)}.thought-box ol{margin:0;padding:0 14px 12px 31px;color:#68716d}.thought-box li{margin:5px 0;padding-left:2px}.markdown-body{color:#252b28;font-size:15px;line-height:1.78;overflow-wrap:anywhere}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h2,.markdown-body h3,.markdown-body h4{margin:22px 0 8px;color:#171d1a;font-weight:700;line-height:1.4}.markdown-body h2{font-size:18px}.markdown-body h3{font-size:16px}.markdown-body h4{font-size:15px}.markdown-body p{margin:0 0 12px}.markdown-body ul,.markdown-body ol{margin:7px 0 14px;padding-left:1.5em}.markdown-body li{margin:4px 0}.markdown-body strong{color:#111714;font-weight:700}.markdown-body code{padding:1px 5px;border:1px solid #e1e5e3;border-radius:5px;background:#f5f7f6;color:#31504a;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}.markdown-body blockquote{margin:14px 0;padding:10px 13px;border-left:3px solid #92b8b2;border-radius:0 7px 7px 0;background:#f4f8f7;color:#56605b;font-size:13.5px}.table-scroll{width:100%;margin:12px 0 16px;overflow-x:auto;border:1px solid var(--border);border-radius:8px}.markdown-body table{width:100%;min-width:520px;border-collapse:collapse;font-size:13.5px}.markdown-body th,.markdown-body td{padding:9px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.markdown-body th{background:#f6f8f7;color:#343c38;font-weight:650;white-space:nowrap}.markdown-body tr:last-child td{border-bottom:0}.quick-replies{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.quick-chip{min-height:30px;padding:5px 10px;border:1px solid #dbe1df;border-radius:999px;background:#fff;color:#53605b;font-size:12.5px;cursor:pointer}.quick-chip:hover{border-color:#0f766e66;background:var(--accent-soft);color:var(--accent-strong)}.message-actions{display:flex;align-items:center;gap:4px;min-height:29px;margin-top:10px;opacity:0;transition:opacity .16s ease}.assistant-message:hover .message-actions,.message-actions:focus-within{opacity:1}.text-action{display:inline-flex;min-height:28px;align-items:center;gap:5px;padding:4px 7px;border:0;border-radius:6px;background:transparent;color:#78817d;font-size:12px;cursor:pointer}.text-action:hover{background:#f1f4f3;color:#3d4742}.text-action.copied{color:var(--accent)}.text-action svg{width:14px;height:14px}.thinking-live{padding:12px 14px;border:1px solid #dfe6e3;border-radius:8px;background:#f8faf9}.thinking-live-title{display:flex;align-items:center;gap:8px;color:#47514c;font-size:13px;font-weight:650}.thinking-pulse{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 #0f766e59;animation:pulse 1.4s ease-out infinite}@keyframes pulse{0%{box-shadow:0 0 #0f766e4d}70%{box-shadow:0 0 0 8px #0f766e00}to{box-shadow:0 0 #0f766e00}}.thinking-live ol{display:flex;flex-direction:column;gap:7px;margin:12px 0 0;padding:0;list-style:none}.thinking-live li{display:flex;align-items:center;gap:9px;color:#9aa19e;font-size:12.5px;transition:color .18s ease}.thinking-live li>span:last-child{display:flex;flex-direction:column;gap:2px}.thinking-live li small{color:#8b9490;font-size:11px;font-weight:450;line-height:1.4}.thinking-live li.current,.thinking-live li.done{color:#59625e}.thinking-live li.error{color:#a33a32}.step-dot{width:7px;height:7px;flex:0 0 auto;border:1px solid #c7cecb;border-radius:50%;background:#fff}.thinking-live li.current .step-dot{border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 3px #0f766e1a}.thinking-live li.done .step-dot{border-color:#66a69f;background:#8bbcb7}.composer-wrap{position:relative;z-index:10;padding:12px 24px 15px;background:linear-gradient(to top,#fff 76%,#fff0)}.composer{display:grid;width:min(100%,820px);min-height:54px;grid-template-columns:minmax(0,1fr) 38px;align-items:end;gap:8px;margin:0 auto;padding:10px 10px 10px 15px;border:1px solid #d8dfdc;border-radius:14px;background:#fff;box-shadow:0 5px 18px #16201c14;transition:border-color .16s ease,box-shadow .16s ease}.composer:focus-within{border-color:#0f766e94;box-shadow:0 5px 20px #0f766e1f}.composer textarea{width:100%;min-height:28px;max-height:180px;padding:3px 0;border:0;outline:0;background:transparent;color:#242a27;line-height:1.55;resize:none;scrollbar-width:thin}.composer textarea::placeholder{color:#a0a7a4}.composer textarea:disabled{cursor:wait}.send-btn{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:10px;background:var(--accent);color:#fff;cursor:pointer;transition:background .16s ease,transform .16s ease}.send-btn:hover:not(:disabled){background:var(--accent-strong);transform:translateY(-1px)}.send-btn:disabled{background:#d6dcda;cursor:not-allowed}.send-btn svg{width:17px;height:17px}.composer-note{width:min(100%,820px);margin:7px auto 0;color:#929996;font-size:11px;text-align:center}.collapsed-sidebar-btn{position:fixed;top:12px;left:12px;z-index:25;display:grid;background:#fff;box-shadow:var(--shadow-sm)}.sidebar-collapsed .topbar-left{padding-left:42px}@media (max-width: 900px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:min(86vw,310px);transform:translate(-104%);transition:transform .22s ease;box-shadow:var(--shadow-md)}.sidebar.mobile-open{transform:translate(0)}.mobile-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:18;display:block;border:0;background:#0f171457;opacity:0;pointer-events:none;transition:opacity .2s ease}.mobile-scrim.show{opacity:1;pointer-events:auto}.desktop-collapse,.desktop-show,.collapsed-sidebar-btn{display:none}.mobile-close,.mobile-menu{display:grid}.sidebar-head{grid-template-columns:minmax(0,1fr) 34px}.sidebar-head .desktop-collapse{display:none}.topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:0 10px}.topbar-left{gap:3px}.chat-title{display:none}.model-button{max-width:52vw}.chat-inner{padding:28px 16px 34px}.composer-wrap{padding:10px 12px 12px}}@media (max-width: 640px){body{font-size:14px}.chat-column{grid-template-rows:54px minmax(0,1fr) auto}.topbar{grid-template-columns:38px minmax(0,1fr) 38px}.model-switcher{grid-column:2;width:100%}.model-button{width:100%;max-width:none;justify-content:center;padding-inline:8px}.mode-menu{width:min(92vw,304px)}.empty-state{min-height:calc(100vh - 270px);min-height:calc(100dvh - 270px);justify-content:flex-start;padding-top:6vh}.empty-brand{margin-bottom:24px}.brand-mark.large{width:48px;height:48px;border-radius:14px}.empty-brand h1{font-size:24px}.suggestion-grid{grid-template-columns:1fr}.suggestion{min-height:56px}.message{margin-bottom:26px}.user-message{padding-left:6%}.assistant-message{grid-template-columns:28px minmax(0,1fr);gap:9px}.assistant-avatar{width:28px;height:28px}.markdown-body{font-size:14.5px;line-height:1.76}.markdown-body table{min-width:480px}.message-actions{opacity:1}.composer{min-height:50px;padding:8px 8px 8px 13px;border-radius:13px}.send-btn{width:34px;height:34px;border-radius:9px}.composer-note{padding:0 4px;line-height:1.45}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}:root{--premium-ink: #10211e;--premium-sidebar: #102320;--premium-sidebar-deep: #0a1917;--premium-canvas: #f5f7f4;--premium-paper: #fffefa;--premium-gold: #b98535;--premium-gold-soft: #f7efe0;--premium-line: rgba(30, 50, 44, .11)}body{background:var(--premium-canvas)}.app-shell{grid-template-columns:286px minmax(0,1fr);background:var(--premium-canvas)}.sidebar{overflow:hidden;border-right:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,var(--premium-sidebar) 0%,var(--premium-sidebar-deep) 100%);color:#eef4f0;box-shadow:inset -1px 0 #ffffff06}.sidebar:before{position:absolute;top:0;right:0;bottom:0;left:0;content:"";pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:36px 36px;-webkit-mask-image:linear-gradient(to bottom,#000,transparent 78%);mask-image:linear-gradient(to bottom,#000,transparent 78%)}.sidebar>*{position:relative;z-index:1}.sidebar-head{height:72px;padding-inline:14px 12px}.sidebar .icon-btn{color:#eef4f0ad}.sidebar .icon-btn:hover{background:#ffffff17;color:#fff}.brand-small{gap:11px}.brand-mark.small{width:34px;height:34px;border-color:#dbb7706b;background:linear-gradient(145deg,#1f6c60eb,#0e3d37f0);color:#f2d8a0;box-shadow:0 8px 22px #0000003d,inset 0 1px #ffffff24}.brand-copy{display:flex;min-width:0;flex-direction:column;gap:0}.brand-copy strong{color:#f8fbf9;font-family:Songti SC,STSong,"Noto Serif SC",serif;font-size:15px;font-weight:650}.brand-copy small{color:#e0eae47a;font-size:10px}.new-chat-btn{display:grid;min-height:54px;grid-template-columns:34px minmax(0,1fr);margin:4px 14px 18px;padding:9px 11px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:#ffffff13;box-shadow:0 12px 28px #0003,inset 0 1px #ffffff0d;color:#f7fbf8}.new-chat-btn:hover{border-color:#dfbb737a;background:#ffffff1c}.new-chat-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#b9853526;color:#e6c47f}.new-chat-icon svg{width:17px;height:17px}.new-chat-copy{display:flex;min-width:0;flex-direction:column;text-align:left}.new-chat-copy strong{font-size:13.5px;font-weight:650}.new-chat-copy small{color:#e0eae473;font-size:10.5px}.history-nav{padding:0 10px 16px}.history-label{padding:6px 10px;color:#e0eae466;font-size:10.5px}.history-item{min-height:42px;margin:3px 0;padding:8px 6px 8px 12px;border:1px solid transparent;border-radius:10px}.history-item:hover{background:#fff1}.history-item.active{border-color:#ffffff14;background:#ffffff18;box-shadow:inset 3px 0 #c89b4c}.history-title{color:#f1f7f3c2}.history-item.active .history-title{color:#fff}.history-mode{border-color:#ffffff1a;background:#ffffff0f;color:#ebf3ee8a}.history-item:hover .history-delete{color:#ebf3ee85}.history-delete:hover{background:#ffffff17;color:#f3b8ae}.history-empty{color:#e0eae466}.sidebar-foot{min-height:54px;border-top-color:#ffffff14}.system-status{display:inline-flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid rgba(255,255,255,.07);border-radius:999px;background:#ffffff0b;color:#ecf4ef9e}.chat-column{background:var(--premium-canvas);grid-template-rows:64px minmax(0,1fr) auto}.chat-column:before{position:absolute;top:64px;right:0;bottom:0;left:0;content:"";pointer-events:none;background-image:linear-gradient(rgba(18,54,47,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(18,54,47,.035) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 68%);mask-image:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 68%)}.chat-column>*{position:relative;z-index:1}.topbar{min-height:64px;z-index:24;border-bottom-color:#223d3517;background:#f5f7f4d1;box-shadow:0 1px #ffffffb3}.chat-title{color:#26393394}.model-button{min-height:44px;gap:10px;padding:6px 12px 6px 8px;border:1px solid rgba(35,63,55,.11);border-radius:13px;background:#ffffffc7;box-shadow:0 8px 26px #1b2f2912,inset 0 1px #ffffffe6}.model-button:hover,.model-button[aria-expanded=true]{border-color:#1f6c6047;background:#fff;box-shadow:0 10px 30px #183d341c}.model-icon{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:9px}.model-icon.offline{background:#e6f2ef;color:#0c6d63}.model-icon.deepseek{background:#edf1fb;color:#315da8}.model-icon svg{width:17px;height:17px}.model-button-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;line-height:1.2}.model-button-copy small{color:#89928e;font-size:9.5px;font-weight:500}.model-button-copy strong{color:#253b35;font-size:12.5px;font-weight:680}.mode-menu{top:calc(100% + 10px);width:324px;padding:8px;border-color:#233f371f;border-radius:16px;box-shadow:0 24px 64px #192b262e,0 2px 8px #192b260f}.mode-option{gap:12px;padding:11px;border-radius:11px}.mode-option.selected{background:linear-gradient(90deg,#edf5f2,#f7f9f7)}.chat-scroll{scrollbar-color:rgba(41,79,68,.2) transparent}.chat-inner{width:min(100%,920px);padding:54px 30px 48px}.empty-state{min-height:calc(100vh - 330px);min-height:calc(100dvh - 330px)}.empty-brand{max-width:620px;margin-bottom:0}.empty-emblem{position:relative;display:grid;width:92px;height:92px;place-items:center;margin-bottom:10px}.emblem-halo{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;background:radial-gradient(circle,rgba(199,151,65,.12) 0 54%,rgba(199,151,65,.035) 55% 72%,transparent 73%)}.brand-glyph{position:relative;z-index:1;font-family:Songti SC,STSong,SimSun,serif;font-weight:700;line-height:1;transform:translateY(-1px)}.brand-mark.small .brand-glyph{font-size:19px}.brand-mark.large .brand-glyph{font-size:34px;color:#f4d69b;text-shadow:0 1px 0 rgba(255,255,255,.12)}.composer-mark .brand-glyph{font-size:16px;color:#9b7131}.brand-mark.large{position:relative;overflow:hidden;width:66px;height:66px;border-color:#b9853557;border-radius:18px;background:linear-gradient(145deg,#1d7165,#0c4f47);color:#f0d49b;box-shadow:0 18px 45px #10423a38,inset 0 1px #ffffff29}.brand-mark.large:before{position:absolute;top:5px;right:5px;bottom:5px;left:5px;content:"";border:1px solid rgba(245,220,164,.22);border-radius:13px;pointer-events:none}.empty-kicker{margin-top:10px;color:var(--premium-gold);font-size:11px;font-weight:650}.empty-brand h1{margin:8px 0;color:#172c27;font-family:Songti SC,STSong,"Noto Serif SC",serif;font-size:36px;font-weight:650;line-height:1.2}.empty-brand p{max-width:420px;color:#6f7d78;font-size:14px;line-height:1.7}.empty-capabilities{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px}.empty-capabilities span{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(34,64,56,.1);border-radius:999px;background:#ffffff9e;color:#61706b;font-size:11px;box-shadow:0 4px 14px #192f280a}.empty-capabilities svg{width:13px;height:13px;color:#438277}.message{margin-bottom:36px}.user-message{padding-left:18%}.user-message-stack{display:flex;max-width:100%;align-items:center;justify-content:flex-end;gap:8px}.user-edit-btn{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border:1px solid rgba(42,78,68,.1);border-radius:9px;background:#fffffcd1;color:#77827e;opacity:0;cursor:pointer;transform:translate(4px);transition:opacity .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}.user-edit-btn svg{width:14px;height:14px}.user-message:hover .user-edit-btn,.user-edit-btn:focus-visible,.user-message.editing .user-edit-btn{opacity:1;transform:translate(0)}.user-edit-btn:hover{border-color:#b0803047;color:#8b6229}.user-message.editing .user-bubble{box-shadow:0 0 0 3px #b985351f,0 10px 30px #35423a12}.user-bubble{padding:12px 16px;border:1px solid rgba(32,72,62,.08);border-radius:18px 18px 6px;background:linear-gradient(145deg,#eef5f1,#e7efeb);color:#20342f;box-shadow:0 8px 24px #1f42390f}.assistant-message{grid-template-columns:38px minmax(0,1fr);gap:16px}.assistant-avatar{width:36px;height:36px;margin-top:20px;border-color:#b9853540;border-radius:12px;background:linear-gradient(145deg,#e7f3ef,#dcebe6);color:#0b7064;box-shadow:0 8px 20px #1d5c5017,inset 0 1px #fffc}.assistant-avatar svg{width:18px;height:18px}.assistant-meta{display:flex;min-height:20px;align-items:center;gap:8px;margin-bottom:7px;color:#4f5e59}.assistant-meta strong{color:#223a34;font-family:Songti SC,STSong,"Noto Serif SC",serif;font-size:14px;font-weight:680}.assistant-meta span{display:inline-flex;min-height:20px;align-items:center;padding:2px 8px;border:1px solid rgba(41,84,73,.1);border-radius:999px;background:#ffffffad;color:#74807c;font-size:10.5px}.pending-meta span{border-color:#b9853533;background:var(--premium-gold-soft);color:#91662b}.thought-box{margin-bottom:16px;border-color:#264c421c;border-radius:12px;background:#f2f7f4db;box-shadow:inset 0 1px #ffffffb8}.thought-box summary{min-height:43px;padding:10px 13px}.thought-box ol{padding:0 16px 14px 34px}.markdown-body{color:#293a35;font-size:15.5px;line-height:1.82}.markdown-body h2{margin-top:28px;color:#1d332d;font-family:Songti SC,STSong,"Noto Serif SC",serif;font-size:19px}.markdown-body blockquote{border-left-color:#c89b4c;background:#faf5ea;color:#6e6048}.table-scroll{border-color:#22443b1f;box-shadow:0 8px 26px #1f3c340a}.markdown-body th{background:#f2f6f3}.quick-chip{min-height:33px;padding:6px 12px;border-color:#224b411f;box-shadow:0 4px 12px #1b342d0a}.quick-chip:hover{border-color:#b9853559;background:#fbf6eb;color:#8b6229}.thinking-live{padding:16px 17px;border-color:#294d441c;border-radius:13px;background:linear-gradient(145deg,#f8fbf9f5,#eff5f2f0);box-shadow:0 12px 34px #1c3c330e}.composer-wrap{padding:18px 30px;background:linear-gradient(to top,var(--premium-canvas) 72%,rgba(245,247,244,0))}.composer{position:relative;width:min(100%,860px);min-height:62px;grid-template-columns:28px minmax(0,1fr) 38px 42px;gap:10px;padding:11px 11px 11px 15px;border:1px solid rgba(28,70,59,.14);border-radius:20px;background:#fffffcf0;box-shadow:0 22px 58px #163a3021,0 3px 10px #163a300d,inset 0 1px #ffffffe6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.composer:focus-within{border-color:#1976676b;box-shadow:0 24px 64px #15544629,0 0 0 4px #1f80700f}.composer-mark{display:grid;width:28px;height:28px;align-self:end;margin-bottom:3px;place-items:center;border:1px solid rgba(185,133,53,.2);border-radius:9px;background:#f8f1e4;color:#9b7131}.composer-mark svg{width:15px;height:15px}.composer textarea{min-height:32px;padding:4px 0;color:#273a35;font-size:15px}.voice-btn{display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(32,80,68,.12);border-radius:12px;background:#f4f8f6;color:#3d756a;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.voice-btn:hover:not(:disabled){background:#e7f2ee;transform:translateY(-1px)}.voice-btn.recording{border-color:#be353547;background:#fff0ef;color:#c03535;animation:voice-pulse 1.35s ease-in-out infinite}.voice-btn:disabled{cursor:wait;opacity:.62}.voice-btn svg{width:17px;height:17px}@keyframes voice-pulse{50%{box-shadow:0 0 0 5px #c035351a}}.voice-status{color:#9a6424}.composer-wrap{position:relative}.voice-btn{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.voice-btn.canceling{border-color:#9a64246b;background:#f7efe1;color:#9a6424;animation:none}.voice-hint{position:absolute;left:50%;bottom:calc(100% + 10px);z-index:6;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 44px);padding:9px 15px;transform:translate(-50%);border:1px solid rgba(28,70,59,.16);border-radius:16px;background:#17211ef0;color:#f4f8f6;font-size:13px;white-space:nowrap;box-shadow:0 16px 38px #0f221d47;pointer-events:none}.voice-hint[hidden]{display:none}.voice-hint.cancel{background:#7a3e16f2}.voice-hint-text{overflow:hidden;text-overflow:ellipsis}.voice-hint-time{min-width:30px;color:#f4f8f6b8;font-variant-numeric:tabular-nums;text-align:right}.voice-hint-wave{display:inline-flex;align-items:flex-end;gap:2px;height:14px}.voice-hint-wave i{width:3px;border-radius:2px;background:#7fd6c3;animation:voice-wave 1s ease-in-out infinite}.voice-hint-wave i:nth-child(1){height:7px}.voice-hint-wave i:nth-child(2){height:13px;animation-delay:.16s}.voice-hint-wave i:nth-child(3){height:9px;animation-delay:.32s}.voice-hint.cancel .voice-hint-wave i{background:#f0b46a}@keyframes voice-wave{0%,to{transform:scaleY(.55)}50%{transform:scaleY(1)}}.send-btn{width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#187f72,#0d6359);box-shadow:0 8px 20px #0f695e3b,inset 0 1px #ffffff24}.send-btn:hover:not(:disabled){background:linear-gradient(145deg,#1c8b7d,#0d675c);box-shadow:0 10px 24px #0f695e4d,inset 0 1px #ffffff29}.composer-note{width:min(100%,860px);margin-top:9px;color:#8b9692}.patient-setup-wrap{display:flex;flex-direction:column;align-items:center}.patient-setup{display:grid;width:min(100%,860px);min-height:74px;grid-template-columns:38px minmax(0,1fr) minmax(230px,320px);gap:12px;align-items:center;padding:13px 15px;border:1px solid rgba(28,70,59,.14);border-radius:20px;background:#fffffcf0;box-shadow:0 22px 58px #163a301c,inset 0 1px #ffffffe6}.patient-setup-icon{display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(185,133,53,.2);border-radius:12px;background:#f8f1e4;color:#9b7131}.patient-setup-icon svg{width:18px;height:18px}.patient-setup-copy strong{color:#233b34;font-size:14px}.patient-setup-copy p{margin:3px 0 0;color:#77827e;font-size:12px;line-height:1.5}.patient-setup-form{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:9px}.patient-setup-form input{width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid rgba(32,80,68,.16);border-radius:12px;outline:none;background:#f7faf8;color:#273a35;font:inherit}.patient-setup-form input:focus{border-color:#1976676b;box-shadow:0 0 0 3px #1f807012}.patient-bind-btn{width:40px;height:40px}.patient-setup-message{width:min(100%,860px);margin:8px 0 0;color:#a34f3d;font-size:12px}@media (max-width: 900px){.sidebar{width:min(88vw,316px);box-shadow:22px 0 70px #07141152}.chat-inner{padding:38px 18px}.composer-wrap{padding:14px}.patient-setup{grid-template-columns:38px minmax(0,1fr)}.patient-setup-form{grid-column:1 / -1}}.tier-switcher{position:relative;justify-self:center;z-index:45}.tier-trigger{display:grid;min-width:176px;min-height:46px;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:9px;padding:6px 11px 6px 8px;border:1px solid rgba(35,63,55,.12);border-radius:14px;background:#fffffcdb;box-shadow:0 8px 26px #183c3112,inset 0 1px #ffffffe6;color:#273c35;cursor:pointer;text-align:left;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tier-trigger:hover,.tier-trigger.open{border-color:#b985354d;background:#fffefa}.tier-trigger-mark{display:grid;width:32px;height:32px;place-items:center;border-radius:10px;color:#8a6024;background:linear-gradient(145deg,#f6ead0,#e9d6ad)}.tier-trigger-mark svg{width:16px;height:16px}.tier-trigger-copy{display:grid;gap:1px;min-width:0}.tier-trigger-copy strong{font-size:13px;font-weight:760}.tier-trigger-copy small{overflow:hidden;color:#7e8984;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.tier-trigger-chevron{width:15px!important;color:#85918c;transition:transform .18s ease}.tier-trigger.open .tier-trigger-chevron{transform:rotate(180deg)}.tier-menu{position:absolute;top:calc(100% + 9px);left:50%;display:none;width:370px;padding:8px;border:1px solid rgba(35,63,55,.13);border-radius:18px;background:#fffefafa;box-shadow:0 28px 76px #102a2233,0 3px 10px #102a220f;transform:translate(-50%);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}.tier-menu.open{display:grid;gap:4px;animation:tier-menu-in .16s ease-out}@keyframes tier-menu-in{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}.tier-menu-head{display:grid;gap:2px;padding:8px 10px 9px;border-bottom:1px solid rgba(35,63,55,.09);margin-bottom:3px}.tier-menu-head span{color:#283e37;font-size:12.5px;font-weight:750}.tier-menu-head small{color:#89938e;font-size:10.5px}.tier-option{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;gap:10px;align-items:center;width:100%;padding:9px 10px;border:0;border-radius:11px;background:transparent;color:#34473f;cursor:pointer;text-align:left}.tier-option:hover{background:#f5f8f5}.tier-option.selected{background:linear-gradient(100deg,#edf5f1,#fbf7ed)}.tier-option-symbol{display:grid;width:34px;height:34px;place-items:center;border:1px solid rgba(35,88,67,.12);border-radius:10px;background:#f2f7f4;color:#28705c}.tier-option-symbol.deep,.tier-option-symbol.supercompute{color:#8a6024;border-color:#b9853533;background:#fbf4e7}.tier-option-symbol svg{width:17px;height:17px}.tier-option-copy{display:grid;gap:2px;min-width:0}.tier-option-copy strong{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:#223730;font-size:12.5px}.tier-option-copy strong small{color:#8e6a31;font-size:10px;font-weight:700}.tier-option-copy>span{overflow:hidden;color:#7a8680;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.tier-option-check{color:#1b705b;font-weight:800}.empty-tier-grid{display:grid;width:min(100%,670px);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px}.empty-tier-card{display:grid;gap:7px;min-height:92px;padding:11px 12px;border:1px solid rgba(35,76,61,.11);border-radius:13px;background:#fffffcad;color:#7b8781;cursor:pointer;font-size:10.5px;line-height:1.5;text-align:left;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .16s ease,border-color .16s ease,background .16s ease}.empty-tier-card:hover,.empty-tier-card.active{border-color:#b9853557;background:#fffcf4f5;transform:translateY(-2px)}.empty-tier-top{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.empty-tier-top strong{color:#263d35;font-family:Songti SC,STSong,serif;font-size:16px}.empty-tier-top small{color:#8b6832;font-size:9.5px;font-weight:750}.pricing-dialog{width:min(100%,980px);max-height:min(92vh,900px);max-height:min(92dvh,900px);padding:28px;overflow-y:auto;border-color:#be9a583d;background:radial-gradient(circle at 88% 0%,rgba(222,197,145,.16),transparent 24rem),#fffdf8}.pricing-overlay{z-index:110}.membership-daily-free{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:12px 14px;border:1px solid rgba(26,101,79,.13);border-radius:13px;background:linear-gradient(100deg,#edf6f1,#fffaf0)}.membership-daily-free>div{display:flex;align-items:center;gap:10px}.membership-daily-free svg{width:18px;height:18px;color:#8a6024}.membership-daily-free span span{display:grid;gap:2px}.membership-daily-free strong{color:#27453b;font-size:12.5px}.membership-daily-free small{color:#7e8c86;font-size:10.5px}.membership-daily-free>span{padding:4px 8px;border-radius:999px;font-size:10.5px;font-weight:750}.membership-daily-free>span.available{color:#126d58;background:#dff2e9}.membership-daily-free>span.used{color:#9a6424;background:#f9ead2}.pricing-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.pricing-plan{position:relative;display:flex;min-width:0;min-height:252px;flex-direction:column;gap:11px;padding:15px;border:1px solid rgba(35,63,55,.12);border-radius:15px;background:#fafaf6c7}.pricing-plan.selected{border-color:#1c755b66;box-shadow:0 0 0 3px #1c755b0f}.pricing-plan.recommended{border-color:#b9853559;background:linear-gradient(155deg,#fffaf0,#f8faf7)}.pricing-ribbon{position:absolute;top:-9px;right:12px;padding:3px 8px;border-radius:999px;color:#fffaf0;background:#a8782d;font-size:9.5px;font-weight:800}.pricing-plan-head{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px}.pricing-plan-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;color:#246b57;background:#eaf4ef}.pricing-plan-icon.deep,.pricing-plan-icon.supercompute{color:#8a6024;background:#f7eddb}.pricing-plan-icon svg{width:18px;height:18px}.pricing-plan-head div{display:grid;gap:2px}.pricing-plan-head strong{color:#223931;font-size:15px}.pricing-plan-head small{color:#7d8984;font-size:9.5px;line-height:1.45}.pricing-amount{display:flex;align-items:baseline;gap:4px;margin-top:2px}.pricing-amount strong{color:#173f33;font-family:Songti SC,STSong,serif;font-size:30px;line-height:1}.pricing-amount small{color:#87918c;font-size:10px}.pricing-balance{width:fit-content;padding:3px 7px;border-radius:999px;color:#296b58;background:#e9f4ef;font-size:9.5px;font-weight:700}.pricing-plan p{flex:1;margin:0;color:#6d7a74;font-size:10.5px;line-height:1.65}.pricing-plan-action{display:flex;min-height:38px;align-items:center;justify-content:center;border:1px solid rgba(31,94,72,.18);border-radius:10px;color:#1c6551;background:#edf6f1;cursor:pointer;font-size:11px;font-weight:750;text-decoration:none}.pricing-plan-action:hover{background:#e3f2ea}.pricing-plan-action.unavailable{color:#8c918d;background:#f3f3ef;cursor:default}.membership-wallet{margin-top:14px;padding:14px;border:1px solid rgba(35,63,55,.1);border-radius:14px;background:#f7f9f6d1}.membership-wallet-head{display:flex;align-items:center;justify-content:space-between;color:#57665f;font-size:11.5px}.membership-wallet-head span{display:flex;align-items:center;gap:6px}.membership-wallet-head svg{width:15px;height:15px}.membership-wallet-head strong{color:#176b58;font-size:23px}.membership-wallet-head small{font-size:11px;font-weight:500}@media (max-width: 860px){.topbar{grid-template-columns:minmax(0,1fr) auto}.tier-switcher{grid-column:1 / -1;grid-row:2;justify-self:stretch}.tier-trigger{width:100%}.tier-menu{width:min(92vw,380px)}.pricing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.empty-tier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-dialog{padding:22px 16px}.pricing-plan-grid{grid-template-columns:1fr}.pricing-plan{min-height:0}.tier-menu{left:0;width:min(92vw,380px);transform:none}.tier-menu.open{animation:none}}.membership-dialog.pricing-dialog{width:min(100%,980px);max-height:min(92dvh,900px);padding:28px;overflow-y:auto}.membership-dialog.pricing-dialog .pricing-plan-grid{grid-template-columns:repeat(4,minmax(0,1fr))}@media (max-width: 860px){.membership-dialog.pricing-dialog .pricing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.membership-dialog.pricing-dialog{width:100%;padding:22px 16px}.membership-dialog.pricing-dialog .pricing-plan-grid{grid-template-columns:1fr}}@media (max-width: 640px){.topbar{min-height:60px}.model-button{min-height:42px;padding:5px 9px 5px 6px}.model-icon{width:30px;height:30px}.model-button-copy small{display:none}.chat-inner{padding:30px 14px 32px}.empty-brand h1{font-size:31px}.empty-emblem{width:82px;height:82px}.brand-mark.large{width:60px;height:60px;border-radius:17px}.assistant-message{grid-template-columns:32px minmax(0,1fr);gap:10px}.assistant-avatar{width:31px;height:31px;margin-top:18px;border-radius:10px}.markdown-body{font-size:14.5px}.composer{min-height:56px;grid-template-columns:26px minmax(0,1fr) 36px 38px;gap:8px;padding:9px 9px 9px 12px;border-radius:17px}.composer-mark{width:26px;height:26px}.send-btn{width:37px;height:37px;border-radius:11px}.composer-wrap{padding:11px 10px 12px}}::selection{background:#1a7a6c2e;color:#102c27}.sidebar:after{position:absolute;inset:0 0 auto;height:1px;content:"";background:linear-gradient(90deg,transparent,rgba(222,184,109,.48),transparent)}.brand-copy small{margin-top:1px;letter-spacing:0}.new-chat-btn{transition:border-color .18s ease,background .18s ease,transform .18s ease}.new-chat-btn:hover{transform:translateY(-1px)}.chat-column{background:linear-gradient(180deg,#f7f8f5,#f4f6f3 58%,#f8f6f1)}.chat-inner{width:min(100%,940px)}.assistant-content{max-width:820px}.assistant-avatar{position:relative}.pending-message .assistant-avatar{animation:premium-breathe 2.4s ease-in-out infinite}.pending-message .assistant-avatar:after{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;content:"";border:1px solid rgba(25,118,103,.26);border-radius:15px;animation:premium-avatar-ring 2.2s ease-out infinite}@keyframes premium-breathe{0%,to{transform:translateY(0)}50%{transform:translateY(-2px)}}@keyframes premium-avatar-ring{0%{opacity:.75;transform:scale(.92)}70%,to{opacity:0;transform:scale(1.14)}}.user-bubble{max-width:700px;border-color:#b0803021;background:linear-gradient(145deg,#fcfaf5,#f3efe6);box-shadow:0 10px 30px #35423a12}.thinking-live{border-left:2px solid rgba(25,118,103,.62);background:linear-gradient(145deg,#fafcfafa,#f1f6f2f5)}.thinking-live-title>span:last-child:after{display:inline-block;width:0;overflow:hidden;content:"...";vertical-align:bottom;animation:premium-dots 1.35s steps(4,end) infinite}@keyframes premium-dots{to{width:1.35em}}.thinking-live ol{position:relative}.thinking-live ol:before{position:absolute;top:10px;bottom:10px;left:3px;width:1px;content:"";background:linear-gradient(#1976674d,#19766714)}.thinking-live li{position:relative;z-index:1}.step-dot{box-shadow:0 0 0 3px #f8fbf9}.thinking-live li.current .step-dot{box-shadow:0 0 0 3px #f8fbf9,0 0 0 5px #0f766e1a}.thinking-live li.done .step-dot{box-shadow:0 0 0 3px #f8fbf9}.thinking-live li.error .step-dot{border-color:#b64b43;background:#b64b43}.fast-preview{margin:0 0 10px;overflow:hidden;background:linear-gradient(135deg,#e7f4ecb8,#fffdf7e6);border:1px solid rgba(35,102,79,.14);border-left:3px solid #2e6b59;border-radius:10px}.fast-preview>header{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid rgba(35,102,79,.1)}.fast-preview-mark{width:25px;height:25px;display:grid;place-items:center;flex:0 0 auto;color:#fffaf0;background:#17382f;border-radius:7px 7px 7px 2px;font:700 11px/1 Songti SC,SimSun,serif}.fast-preview>header div{min-width:0}.fast-preview>header strong{display:block;color:#17382f;font-size:12.5px}.fast-preview>header small{display:block;margin-top:2px;color:#64736d;font-size:10.5px;line-height:1.4}.fast-preview-body{max-height:320px;overflow:auto;padding:12px 13px 13px;font-size:13px}.fast-preview-body>:first-child{margin-top:0}.fast-preview-body>:last-child{margin-bottom:0}.fast-preview-loading{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding:9px 11px;color:#52635d;background:#f3f8f5;border:1px solid rgba(35,102,79,.1);border-radius:8px;font-size:11px}.fast-preview-loading span{width:7px;height:7px;border:2px solid rgba(46,107,89,.18);border-top-color:#2e6b59;border-radius:50%;animation:preview-spin .8s linear infinite}@keyframes preview-spin{to{transform:rotate(360deg)}}.quick-chip{border-color:#2a5b4e24;background:#fffffcd1}.message-actions{gap:6px}.text-action{border:1px solid transparent}.text-action:hover{border-color:#2a5b4e1a;background:#fffffcc2}.composer{min-height:64px;border-color:#1f544829;background:#fffffcf5}.composer textarea::placeholder{color:#929c97}@media (max-width: 640px){.assistant-content{max-width:none}.user-bubble{max-width:94%}.user-edit-btn{opacity:.72;transform:none}.composer{min-height:58px}}@media (prefers-reduced-motion: reduce){.pending-message .assistant-avatar,.pending-message .assistant-avatar:after,.thinking-live-title>span:last-child:after{animation:none}}.mode-switch{display:inline-flex;align-items:center;gap:3px;justify-self:center;padding:3px;border:1px solid rgba(35,63,55,.11);border-radius:14px;background:#e8eeeab8;box-shadow:inset 0 1px #ffffffb8}.mode-switch-option{display:inline-flex;min-height:38px;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:#60706a;font-size:12.5px;font-weight:650;cursor:pointer;transition:background .16s ease,color .16s ease,box-shadow .16s ease}.mode-switch-option svg{width:15px;height:15px}.mode-switch-option:hover{color:#243d37}.mode-switch-option.active{background:#fffefa;color:#166b5e;box-shadow:0 5px 16px #1c3b331a,inset 0 1px #fffffff2}.mode-switch-option.online.active{color:#315da8}.mode-switch-option.unavailable:not(.active){opacity:.62}@media (max-width: 900px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr);min-height:100vh;min-height:100dvh}.chat-column{width:100%;min-width:0}}.topbar-right{display:flex;align-items:center;justify-self:end;gap:8px}.membership-chip{display:inline-flex;min-height:38px;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(35,63,55,.12);border-radius:12px;background:#fffffcc7;color:#52635d;font-size:12px;font-weight:650;cursor:pointer}.membership-chip.active{border-color:#b9853547;background:#fbf6eb;color:#8b6229}.membership-chip svg{width:15px;height:15px}.announcement-banner{display:grid;grid-template-columns:32px minmax(0,1fr) 28px;align-items:start;gap:10px;margin-bottom:18px;padding:12px 12px 12px 14px;border:1px solid rgba(185,133,53,.2);border-radius:12px;background:linear-gradient(135deg,#fffaf0,#f8f4e9);box-shadow:0 10px 28px #5a421c0f}.announcement-icon{display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#b985351f;color:#9b7131}.announcement-icon svg{width:15px;height:15px}.announcement-copy strong{color:#5c4726;font-size:13px}.announcement-copy p{margin:3px 0 0;color:#7a6849;font-size:12px;white-space:pre-wrap}.announcement-close,.membership-close{display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:8px;background:transparent;color:#95866b;cursor:pointer}.announcement-close:hover,.membership-close:hover{background:#5c472614}.offline-finished-note{width:min(100%,860px);margin:0 auto 8px;padding:9px 12px;border:1px solid rgba(185,133,53,.2);border-radius:10px;background:#fffaf0;color:#8b6229;font-size:11.5px;text-align:center}.composer-status{display:flex;width:min(100%,860px);justify-content:space-between;gap:12px;margin:7px auto 0;color:#89938f;font-size:10.5px}.patient-inline{display:inline-flex;align-items:center;gap:4px}.patient-inline input{width:108px;padding:1px 6px;border:1px solid rgba(28,70,59,.14);border-radius:7px;background:#fffffce6;color:#55635e;font-family:inherit;font-size:10.5px}.patient-inline input:focus{border-color:#19766773;outline:none}.action-notice{color:#0d6a5d}.offline-continue-btn{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:4px 12px;border:1px solid rgba(15,105,94,.28);border-radius:999px;background:linear-gradient(145deg,#187f72,#0d6359);color:#f4fbf9;font-size:11px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.offline-continue-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f695e38}.offline-continue-btn svg{width:13px;height:13px}.offline-finished-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}.composer.limit-reached{border-color:#b9853547;background:#fffaf1}.membership-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:grid;place-items:center;padding:18px;background:#0b19166b;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.membership-dialog{position:relative;width:min(100%,480px);padding:26px;border:1px solid rgba(35,63,55,.13);border-radius:18px;background:#fffefa;box-shadow:0 30px 90px #081c173d}.membership-close{position:absolute;top:14px;right:14px}.membership-heading{display:flex;align-items:center;gap:13px;padding-right:30px}.membership-heading>span{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border-radius:13px;background:#e8f3ef;color:#126b5e}.membership-heading h2{margin:0;color:#20352f;font-size:19px}.membership-heading p{margin:3px 0 0;color:#7d8985;font-size:12px}.membership-balance,.membership-empty{margin-top:18px;padding:15px;border-radius:13px;background:#f2f7f4}.membership-balance span{color:#77837f;font-size:11px}.membership-balance strong{display:block;margin-top:3px;color:#176b5e;font-size:28px}.membership-balance small{color:#7f8b87;font-size:12px;font-weight:500}.membership-cards{display:flex;max-height:190px;flex-direction:column;gap:7px;margin-top:10px;overflow-y:auto}.membership-card-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;min-height:38px;padding:0 11px;border:1px solid rgba(35,63,55,.09);border-radius:10px;background:#fafcfb;color:#75807c;font-size:11.5px}.membership-card-row.active{border-color:#1976672e;background:#f3f8f6}.membership-card-row strong{color:#235b50;font-size:12px}.membership-card-row small{color:#89938f;font-size:10.5px}.membership-empty{display:flex;align-items:center;gap:10px;color:#61706b;font-size:12px}.membership-empty p{margin:0}.membership-buy{display:flex;min-height:46px;align-items:center;justify-content:space-between;margin-top:12px;padding:0 14px;border-radius:12px;background:linear-gradient(135deg,#b98535,#9d6b24);color:#fffaf0;font-size:13px;font-weight:700;text-decoration:none}.membership-note{margin:10px 0 0;color:#7f8b87;font-size:11px;line-height:1.6}.membership-bind-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;margin-top:14px}.membership-bind-row input{min-width:0;height:42px;padding:0 12px;border:1px solid rgba(35,63,55,.14);border-radius:11px;background:#fff;color:#263a35;outline:none}.membership-bind-row input:focus{border-color:#1976676b;box-shadow:0 0 0 3px #1f807014}.membership-message{margin:10px 0 0;color:#9a6424;font-size:12px}@media (max-width: 640px){.membership-chip span{display:none}.membership-chip{width:38px;justify-content:center;padding:0}.membership-dialog{padding:22px 18px 18px}}.membership-trial-btn{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;gap:8px;margin-top:10px;border:1px solid rgba(185,133,53,.3);border-radius:12px;background:#fbf4e6;color:#8b6229;font-size:13px;font-weight:700;cursor:pointer}.membership-trial-btn:hover:not(:disabled){background:#f7ecd7}.membership-trial-code{display:grid;gap:4px;margin-top:10px;padding:12px 14px;border:1px solid rgba(185,133,53,.25);border-radius:12px;background:#fffaf0;text-align:center}.membership-trial-code span,.membership-trial-code small{color:#8a7655;font-size:11px}.membership-trial-code strong{color:#6d4a17;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:19px;letter-spacing:1px}.notice-overlay{z-index:120}.notice-dialog{width:min(100%,560px);max-height:88vh;max-height:min(88vh,760px);max-height:min(88dvh,760px);overflow:auto}.notice-heading>span{background:#b9853524;color:#9b7131}.notice-list{display:grid;gap:8px;margin:14px 0 0;padding-left:0;list-style:none}.notice-list li{position:relative;padding-left:16px;color:#4c5b56;font-size:12.5px;line-height:1.65}.notice-list li:before{content:"";position:absolute;top:7px;left:2px;width:5px;height:5px;border-radius:50%;background:#438277}.notice-emergency{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;padding:10px 12px;border:1px solid rgba(185,133,53,.24);border-radius:11px;background:#fffaf0;color:#8b6229;font-size:12px;line-height:1.6}.notice-emergency svg{width:14px;height:14px;flex:0 0 auto;margin-top:2px}.notice-ack-row{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:11px 12px;border:1px solid rgba(35,63,55,.14);border-radius:12px;background:#f8faf9;color:#3f4b47;font-size:12.5px;line-height:1.6;cursor:pointer}.notice-ack-row input{width:16px;height:16px;flex:0 0 auto;margin:2px 0 0;accent-color:#0f766e}.notice-error{margin:10px 0 0;color:#b45309;font-size:12px}.notice-confirm{width:100%;min-height:44px;margin-top:12px;border:0;border-radius:12px;background:#0f766e;color:#fff;font-size:14px;font-weight:700;cursor:pointer}.notice-confirm:hover:not(:disabled){background:#0d6a62}.notice-confirm:disabled{background:#c9d4d0;cursor:not-allowed}.notice-footnote{margin:9px 0 0;color:#89938f;font-size:11px;text-align:center}.empty-notice-link{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 12px;border:1px dashed rgba(185,133,53,.35);border-radius:999px;background:transparent;color:#8b6229;font-size:11.5px;cursor:pointer}.empty-notice-link:hover{background:#fffaf0}.empty-notice-link svg{width:13px;height:13px}
