:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{color:#172026;background:#f4f6f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f4f6f8;min-width:320px;min-height:100vh;margin:0}button,textarea,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{min-height:100vh;padding:24px}.chat-panel{background:#fff;border:1px solid #d7dde3;border-radius:8px;grid-template-rows:minmax(0,1fr);grid-template-columns:240px minmax(0,1fr);width:min(1180px,100%);height:calc(100vh - 48px);margin:0 auto;display:grid;overflow:hidden}.session-sidebar{background:#f8fafc;border-right:1px solid #e2e7ec;flex-direction:column;min-width:0;display:flex}.session-sidebar-header{border-bottom:1px solid #e2e7ec;justify-content:space-between;align-items:center;padding:18px 14px;display:flex}.session-sidebar-header h2{margin:0;font-size:16px}.session-sidebar-header button,.session-delete-button{color:#1f6feb;background:0 0;border:0;font-size:12px}.session-list{min-height:0;padding:10px;overflow-y:auto}.session-item{border:1px solid #0000;border-radius:7px;align-items:stretch;margin-bottom:6px;display:flex}.session-select-button{color:#263342;text-align:left;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:5px;min-width:0;padding:9px;display:flex}.session-title{text-overflow:ellipsis;white-space:nowrap;width:100%;font-size:13px;overflow:hidden}.session-time{color:#8491a2;font-size:10px}.session-delete-button{color:#a33a32;flex:none;padding:0 7px}.session-empty{color:#8491a2;text-align:center;padding:20px 8px;font-size:13px}.chat-main{grid-template-rows:auto 1fr auto auto auto auto auto auto;min-width:0;min-height:0;display:grid}.chat-header{background:#fbfcfd;border-bottom:1px solid #e2e7ec;justify-content:space-between;align-items:center;gap:16px;min-height:78px;padding:18px 22px;display:flex}.chat-header h1{margin:0;font-size:20px}.chat-header p{color:#637083;margin:6px 0 0;font-size:13px}.header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.status-pill,.memory-button,.secondary-button{background:#fff;border:1px solid #cfd8e3;border-radius:8px;padding:7px 10px;font-size:12px}.memory-button,.secondary-button{color:#1f6feb}.memory-button:hover,.secondary-button:hover{background:#eef5ff}.memory-button:disabled{color:#7a8699;background:#f1f3f5}.status-pill{color:#425466}.user-label{color:#637083;padding:7px 10px;font-size:12px}.logout-button{color:#a33a32}.message-list{flex-direction:column;gap:14px;min-height:0;padding:22px;display:flex;overflow-y:auto}.message{gap:6px;max-width:78%;display:grid}.message-user{align-self:flex-end}.message-assistant{align-self:flex-start}.message-role{color:#7a8699;font-size:12px}.message-user .message-role{text-align:right}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;color:#172026;background:#eef2f6;border-radius:8px;padding:12px 14px;font-size:14px;line-height:1.6}.message-user .message-content{color:#fff;background:#1f6feb}.login-panel h1{margin:0;font-size:24px}.login-panel>p{color:#637083;margin:8px 0 22px;font-size:13px}.login-form{gap:14px;display:grid}.login-form label{color:#425466;gap:6px;font-size:13px;display:grid}.login-form input{color:#172026;background:#fff;border:1px solid #cfd8e3;border-radius:8px;outline:none;width:100%;padding:11px 12px}.login-form input:focus{border-color:#1f6feb;box-shadow:0 0 0 3px #1f6feb24}.login-button{width:100%;margin-top:4px}.import-panel,.style-panel,.plugin-panel,.preference-panel,.memory-panel{border-radius:8px;margin:0 22px 14px;padding:14px}.import-panel{background:#f3f8ff;border:1px solid #b9d2f5}.import-panel h2,.style-panel h2,.plugin-panel h2,.preference-panel h2,.memory-panel h2{margin:0 0 10px;font-size:15px}.import-panel p,.style-panel p,.plugin-panel p{color:#637083;margin:0 0 10px;font-size:12px;line-height:1.5}.import-controls{color:#425466;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:13px;display:flex}.import-controls select,.import-controls button{background:#fff;border:1px solid #cfd8e3;border-radius:6px;padding:7px 10px;font-size:12px}.import-controls button{color:#1f6feb}.selected-file{color:#176b35!important;margin-top:10px!important}.style-panel{background:#f4f8fd;border:1px solid #c8d9ed}.style-panel-header,.plugin-panel-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.style-panel-header h2,.plugin-panel-header h2{color:#263f5b}.style-actions{flex-wrap:wrap;gap:8px;display:flex}.style-actions button,.plugin-panel-header button{color:#1f6feb;background:#fff;border:1px solid #cfd8e3;border-radius:6px;padding:6px 10px;font-size:12px}.style-actions button:hover,.plugin-panel-header button:hover{background:#eef5ff}.style-actions .danger-button{color:#a33a32}.style-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.style-status-grid div{background:#fff;border-radius:6px;min-width:0;padding:9px 10px}.style-status-grid span,.style-status-grid strong{display:block}.style-status-grid span{color:#7a8699;margin-bottom:4px;font-size:11px}.style-status-grid strong{overflow-wrap:anywhere;color:#263342;font-size:13px;font-weight:500}.style-empty{color:#7a8699;margin:0;font-size:13px}.plugin-panel{background:#f2faf4;border:1px solid #b7dfc5}.plugin-grid{grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:14px;display:grid}.plugin-list,.tool-list{min-width:0}.plugin-list h3,.tool-list h3{color:#425466;margin:0 0 8px;font-size:13px}.plugin-card,.tool-card{background:#fff;border:1px solid #d7e8dc;border-radius:7px;margin-bottom:8px;padding:10px}.plugin-card strong,.plugin-card span,.plugin-card small,.tool-card strong,.tool-card span,.tool-card small{display:block}.plugin-card strong,.tool-card strong{color:#263342;font-size:13px}.plugin-card span,.tool-card span{color:#637083;margin-top:4px;font-size:11px}.plugin-card small,.tool-card small{color:#7a8699;margin-top:5px;font-size:11px}.plugin-empty{color:#7a8699;margin:0;font-size:13px}.tool-card{justify-content:space-between;align-items:center;gap:12px;display:flex}.tool-card p{color:#637083;margin:5px 0 0;font-size:12px}.tool-card button{color:#176b35;background:#fff;border:1px solid #a9d2b4;border-radius:6px;flex:none;padding:7px 10px;font-size:12px}.tool-card button:hover{background:#effaf2}.tool-arguments{color:#425466;gap:6px;margin-top:12px;font-size:12px;display:grid}.tool-arguments textarea{resize:vertical;color:#172026;background:#fff;border:1px solid #cfd8e3;border-radius:6px;width:100%;padding:9px 10px;font-family:Consolas,Courier New,monospace;font-size:12px}.tool-result{color:#263342;white-space:pre-wrap;background:#fff;border-radius:6px;max-height:220px;margin:12px 0 0;padding:10px;font-family:Consolas,Courier New,monospace;font-size:12px;overflow:auto}.preference-panel{background:#fffdf0;border:1px solid #d8c98a}.preference-panel h2{color:#5f531f}.preference-item,.memory-panel-header,.memory-add-row,.memory-item{align-items:center;gap:8px;display:flex}.preference-item{color:#423d25;border-top:1px solid #eee5bd;justify-content:space-between;padding:9px 0;font-size:13px}.preference-actions{flex:none;gap:6px;display:flex}.preference-actions button,.memory-panel button{background:#fff;border:1px solid #cfd8e3;border-radius:6px;padding:6px 10px;font-size:12px}.preference-actions button:first-child{color:#176b35}.preference-actions button:last-child,.memory-item button{color:#8c1d18}.memory-panel{background:#f8fafc;border:1px solid #d7dde3}.memory-panel-header{justify-content:space-between;margin-bottom:12px}.memory-add-row input{background:#fff;border:1px solid #cfd8e3;border-radius:6px;flex:1;min-width:0;padding:8px 10px}.memory-list{gap:8px;margin-top:12px;display:grid}.memory-item{background:#fff;border-radius:6px;justify-content:space-between;padding:8px 10px;font-size:13px}.memory-item span{overflow-wrap:anywhere}.memory-empty{color:#7a8699;margin:0;font-size:13px}.knowledge-header-actions{align-items:center;gap:8px;display:flex}.knowledge-stats{color:#57606f;margin-right:4px;font-size:12px}.danger-button{color:#8c1d18!important}.knowledge-hint{color:#7a8699;margin:0 0 10px;font-size:12px;line-height:1.5}.knowledge-upload-row,.knowledge-text-row,.knowledge-search-row{align-items:flex-start;gap:8px;margin-bottom:10px;display:flex}.knowledge-upload-row input[type=file]{flex:1;min-width:0;font-size:12px}.knowledge-upload-row button,.knowledge-text-row button,.knowledge-search-row button{cursor:pointer;background:#fff;border:1px solid #cfd8e3;border-radius:6px;flex:none;padding:8px 12px;font-size:12px}.knowledge-text-row textarea{resize:vertical;background:#fff;border:1px solid #cfd8e3;border-radius:6px;flex:1;min-height:64px;padding:8px 10px;font-family:inherit;font-size:13px}.knowledge-search-row input{background:#fff;border:1px solid #cfd8e3;border-radius:6px;flex:1;min-width:0;padding:8px 10px}.knowledge-results{gap:8px;margin-bottom:10px;display:grid}.knowledge-result{background:#eef4fd;border-left:3px solid #1f6feb;border-radius:4px;padding:8px 10px;font-size:13px}.knowledge-result-title{color:#1f6feb;margin-bottom:3px;font-size:12px;font-weight:600;display:block}.knowledge-result p{color:#34495e;white-space:pre-wrap;margin:0;line-height:1.5}.knowledge-doc-info{flex-direction:column;gap:2px;min-width:0;display:flex}.knowledge-doc-title{color:#172026;overflow-wrap:anywhere;font-weight:600}.knowledge-doc-meta{color:#7a8699;font-size:12px}.panel-close-button{display:inline-block}.notice-banner,.error-banner{border-radius:6px;margin:0 22px 12px;padding:10px 12px;font-size:13px}.notice-banner{color:#176b35;background:#effaf2;border:1px solid #b7dfc5}.error-banner{color:#8c1d18;background:#fff2f2;border:1px solid #f2b8b5}.composer{background:#fbfcfd;border-top:1px solid #e2e7ec;grid-template-columns:1fr auto;gap:12px;padding:16px 22px 20px;display:grid}.web-search-toggle{color:#57606f;cursor:pointer;-webkit-user-select:none;user-select:none;grid-column:1/-1;align-items:center;gap:6px;font-size:13px;display:flex}.web-search-toggle input{accent-color:#1f6feb;cursor:pointer}.composer textarea{resize:vertical;color:#172026;background:#fff;border:1px solid #cfd8e3;border-radius:8px;outline:none;width:100%;min-height:72px;max-height:180px;padding:12px 13px;line-height:1.5}.composer textarea:focus{border-color:#1f6feb;box-shadow:0 0 0 3px #1f6feb24}.send-button{color:#fff;background:#1f6feb;border:0;border-radius:8px;align-self:end;width:92px;height:44px;font-weight:600}@media (width<=900px){.header-actions{justify-content:flex-start}.plugin-grid{grid-template-columns:1fr}.knowledge-header-actions{flex-wrap:wrap}.knowledge-stats{width:100%;margin-bottom:4px}}@media (width<=760px){.app-shell{min-height:100dvh;padding:0}.chat-panel{border:0;border-radius:0;flex-direction:column;height:100dvh;display:flex}.session-sidebar{border-bottom:1px solid #e2e7ec;border-right:0;flex:none;max-height:160px}.session-list{gap:6px;display:flex;overflow:auto hidden}.session-item{min-width:180px;margin-bottom:0}.chat-main{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.chat-header{padding:calc(12px + env(safe-area-inset-top)) 14px 12px;z-index:5;flex-direction:column;flex:none;align-items:flex-start}.header-actions{flex-wrap:wrap;justify-content:flex-start;gap:6px;width:100%}.header-actions .secondary-button,.header-actions .memory-button,.header-actions .logout-button{padding:6px 9px;font-size:12px}.message-list{flex:auto;min-height:0;overflow-y:auto}.message{max-width:92%}.import-panel,.style-panel,.plugin-panel,.preference-panel,.memory-panel{-webkit-overflow-scrolling:touch;flex:0 auto;min-height:0;max-height:46vh;overflow-y:auto}.style-panel-header,.plugin-panel-header{flex-direction:column}.style-actions{width:100%}.style-actions button,.plugin-panel-header button{flex:1}.style-status-grid{grid-template-columns:1fr}.preference-item{flex-direction:column;align-items:flex-start}.preference-actions{width:100%}.preference-actions button{flex:1}.tool-card{flex-direction:column;align-items:flex-start}.tool-card button{width:100%}.composer{padding-bottom:calc(16px + env(safe-area-inset-bottom));flex:none}.memory-add-row,.composer{grid-template-columns:1fr}.memory-add-row{flex-direction:column;align-items:stretch}.memory-add-row button,.send-button{width:100%}.import-controls{flex-direction:column;align-items:stretch}.import-controls select,.import-controls button{width:100%}.knowledge-upload-row,.knowledge-text-row,.knowledge-search-row{flex-direction:column;align-items:stretch}.knowledge-upload-row input[type=file],.knowledge-upload-row button,.knowledge-text-row textarea,.knowledge-text-row button,.knowledge-search-row input,.knowledge-search-row button{width:100%}.knowledge-results{max-height:200px;overflow-y:auto}.panel-close-button{margin-left:auto;display:inline-block}.import-panel,.style-panel,.plugin-panel,.memory-panel{z-index:60;height:100dvh;max-height:none;padding:calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;background:#f8fafc;border:0;border-radius:0;margin:0;position:fixed;inset:0;overflow-y:auto}}.app-shell{background:#f2f3f5}.chat-panel{background:#fff;border-color:#e6e8eb;border-radius:14px;box-shadow:0 2px 16px #1418210d}.session-sidebar{background:#f7f8fa;border-right-color:#eceef1}.session-sidebar-header{border-bottom-color:#eceef1;padding:16px 14px 12px}.session-sidebar-header h2{color:#1f2329;font-size:14px;font-weight:600}.session-sidebar-header button{color:#4d6bfe;background:#eef1ff;border-radius:8px;padding:6px 12px;font-weight:600}.session-list{padding:10px 8px}.session-item{border-radius:10px}.session-select-button{border-radius:10px;padding:10px}.session-select-button:hover{background:#eef0f4}.session-item-active{background:#e8edff;border-color:#0000}.session-item-active .session-select-button{background:#e8edff}.session-title{color:#1f2329;font-size:13px}.chat-panel.sidebar-collapsed{grid-template-columns:1fr}.chat-panel.sidebar-collapsed .session-sidebar{display:none}.chat-header{background:#fff;border-bottom-color:#eef0f3}.chat-header h1{color:#1f2329;font-size:18px}.chat-header p{color:#8a9099;font-size:12px}.sidebar-toggle{color:#4b5563;cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:10px;flex:none;width:38px;height:38px;font-size:16px;line-height:1;transition:background .15s}.sidebar-toggle:hover{background:#f2f4f7}.new-chat-button{cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:12px 12px 12px 5px;flex:none;width:38px;height:38px;transition:background .15s,border-color .15s;position:relative}.new-chat-button:hover{background:#eef1ff;border-color:#cfd8ff}.new-chat-button:before{content:"";background:inherit;z-index:0;border-bottom:1px solid #e6e8eb;border-right:1px solid #e6e8eb;width:8px;height:8px;position:absolute;bottom:-4px;left:6px;transform:rotate(45deg)}.new-chat-button:hover:before{border-bottom-color:#cfd8ff;border-right-color:#cfd8ff}.new-chat-plus{z-index:1;position:absolute;inset:0}.new-chat-plus:before,.new-chat-plus:after{content:"";background:#4d6bfe;border-radius:2px;position:absolute;top:50%;left:50%}.new-chat-plus:before{width:14px;height:2px;transform:translate(-50%,-50%)}.new-chat-plus:after{width:2px;height:14px;transform:translate(-50%,-50%)}.header-actions .secondary-button,.header-actions .memory-button,.header-actions .logout-button,.user-label,.status-pill{border-radius:9px;font-size:12px}.header-actions .secondary-button{color:#4b5563;background:#fff;border-color:#e6e8eb;padding:7px 12px}.header-actions .memory-button{color:#4d6bfe}.status-pill{color:#8a9099;background:#f2f4f7}.user-label{color:#8a9099;background:#f7f8fa;padding:6px 10px}.message-list{padding:20px 22px}.message{align-items:flex-start;gap:10px;margin-bottom:18px;display:flex}.message-role{color:#fff;background:linear-gradient(135deg,#5a76ff,#7d5aff);border-radius:50%;flex:none;justify-content:center;align-items:center;width:30px;height:30px;font-size:11px;font-weight:700;display:flex}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;color:#1f2329;border-radius:14px;max-width:82%;padding:10px 14px;font-size:14px;line-height:1.65}.message-assistant .message-content{background:#f7f8fa;border-top-left-radius:4px}.message-user{flex-direction:row-reverse}.message-user .message-role{color:#6b7280;background:#f2f4f7}.message-user .message-content{color:#1f2329;background:#e9efff;border-top-right-radius:4px}.composer{background:#fff;border-top-color:#eef0f3;padding:14px 18px 16px}.composer textarea{background:#f7f8fa;border-color:#e6e8eb;border-radius:12px;font-size:14px}.composer textarea:focus{background:#fff;border-color:#4d6bfe;box-shadow:0 0 0 3px #4d6bfe1f}.send-button{background:#4d6bfe;border-radius:50%;width:46px;height:46px;font-size:18px;font-weight:700}.send-button:disabled{background:#c4cad4}.import-panel,.style-panel,.plugin-panel,.preference-panel,.memory-panel{background:#fbfcfd;border-color:#e6e8eb;border-radius:12px}.memory-panel-header h2,.import-panel h2,.style-panel h2,.plugin-panel h2,.preference-panel h2{color:#1f2329}.login-panel{background:#fff;border:1px solid #e6e8eb;border-radius:16px;width:min(400px,100%);margin:8vh auto 0;padding:36px 32px;box-shadow:0 8px 32px #14182114}.login-panel h1{color:#1f2329}.login-panel .send-button{border-radius:10px;width:100%}@media (width<=760px){.chat-panel.sidebar-collapsed{grid-template-columns:1fr}.session-sidebar{z-index:70;width:min(78vw,300px);max-height:none;box-shadow:none;border-right:1px solid #eceef1;transition:transform .25s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.chat-panel:not(.sidebar-collapsed) .session-sidebar{transform:translate(0);box-shadow:0 0 28px #1418212e}.session-list{display:block;overflow:hidden auto}.session-item{min-width:0}.sidebar-toggle{width:34px;height:34px}.message-list{padding:14px}.message-content{max-width:86%}}.chat-title{flex:1;min-width:0}.feature-menu-button{color:#1f2329;cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:10px;flex:none;padding:8px 14px;font-size:13px;font-weight:600;transition:background .15s}.feature-menu-button:hover{background:#f2f4f7}.import-panel,.style-panel,.plugin-panel,.memory-panel{z-index:60;height:100dvh;max-height:none;padding:calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;background:#f7f8fa;border:0;border-radius:0;margin:0;position:fixed;inset:0;overflow-y:auto}.feature-menu-overlay{z-index:80;background:#0f121973;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.feature-menu{background:#fff;border-radius:16px;width:min(420px,100%);max-height:82vh;padding:22px;overflow-y:auto;box-shadow:0 16px 48px #0f121938}.feature-menu-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.feature-menu-header h2{color:#1f2329;margin:0;font-size:17px}.feature-menu-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.feature-menu-grid button{color:#1f2329;cursor:pointer;background:#f7f8fa;border:1px solid #e6e8eb;border-radius:12px;padding:15px 10px;font-size:13px;transition:background .15s,border-color .15s}.feature-menu-grid button:hover{background:#eef1ff;border-color:#cfd8ff}.feature-menu-user{text-align:center;color:#8a9099;margin:18px 0 0;font-size:12px}.session-sidebar-actions{align-items:center;gap:8px;display:flex}.drawer-close-button{display:none}.drawer-backdrop{z-index:65;background:#0f121959;position:fixed;inset:0}@media (width<=760px){.drawer-close-button{display:inline-block}.feature-menu{width:100%;max-height:88vh;padding:18px}.feature-menu-grid{grid-template-columns:1fr 1fr}.chat-header{padding:calc(10px + env(safe-area-inset-top)) 12px 10px;flex-direction:row;align-items:center;gap:10px}.chat-title h1{font-size:15px}.chat-title p{display:none}.feature-menu-button{padding:7px 12px;font-size:12px}}html,body{overscroll-behavior:none;height:100%;overflow:hidden}body{width:100%;position:fixed;inset:0}.app-shell{box-sizing:border-box;justify-content:center;height:100svh;min-height:0;padding:24px;display:flex;overflow:hidden}.chat-panel{flex:auto;align-self:stretch;width:100%;max-width:1180px;height:auto;min-height:0}.app-shell:has(.login-panel){overflow-y:auto}.login-panel{margin:auto}.composer{padding:14px 18px 16px;display:block;position:relative}.composer-input-wrap{position:relative}.composer-input-wrap textarea{box-sizing:border-box;resize:vertical;background:#f7f8fa;border:1px solid #e6e8eb;border-radius:21px;width:100%;min-height:42px;max-height:132px;padding:11px 116px 11px 98px;font-size:14px;line-height:1.4;display:block}.composer .attachment-input{display:none}.attach-button{color:#5a6472;cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;padding:0;line-height:1;display:flex;position:absolute;bottom:3px;left:6px}.attach-button svg{display:block}.attach-button:hover:not(:disabled){color:#4d6bfe;background:#f2f4f7}.attach-button:disabled{opacity:.5;cursor:default}.attach-spinner{color:#5a6472;font-size:15px}.ppt-button{color:#4d6bfe;letter-spacing:.3px;cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:18px;width:44px;height:36px;padding:0;font-size:11px;font-weight:700;line-height:1;position:absolute;bottom:3px;left:46px}.ppt-button:hover{background:#eef1ff}.ppt-hint{color:#637083;margin:10px 2px;font-size:13px;line-height:1.6}.ppt-route{color:#33405c;text-align:left;background:#eef1ff;border:1px solid #d6ddff;border-radius:8px;margin:8px 2px;padding:8px 12px;font-size:13px;line-height:1.6}.ppt-route strong{color:#3b52c4}.ppt-route-note{color:#8a5a00}.ppt-route-model{color:#7b8698;margin-top:2px;font-size:12px;display:block}.ppt-theme-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ppt-theme-label{color:#637083;font-size:12px}.ppt-theme-chip{color:#4a5668;cursor:pointer;background:#fff;border:1px solid #dfe3ea;border-radius:14px;padding:5px 12px;font-size:12px}.ppt-theme-chip:hover{background:#f2f4f7}.ppt-theme-chip.active{color:#3b52c4;background:#eef1ff;border-color:#4d6bfe;font-weight:600}.ppt-hint strong{color:#d97706}.ppt-template-block{flex-direction:column;gap:6px;display:flex}.ppt-template-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;max-height:240px;padding:2px;display:grid;overflow-y:auto}.ppt-template-card{cursor:pointer;text-align:left;background:#fff;border:1px solid #dfe3ea;border-radius:8px;flex-direction:column;gap:4px;padding:4px;display:flex;position:relative}.ppt-template-card:hover{background:#f7f8fb}.ppt-template-card.active{border-color:#4d6bfe;box-shadow:0 0 0 2px #eef1ff}.ppt-template-card img{aspect-ratio:16/9;object-fit:cover;background:#f0f2f6;border-radius:4px;width:calc(100% - 8px);position:absolute;top:4px;left:4px}.ppt-template-blank{aspect-ratio:16/9;color:#98a2b3;background:#f0f2f6;border-radius:4px;justify-content:center;align-items:center;width:100%;font-size:11px;display:flex}.ppt-template-name{color:#4a5668;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:1.3;overflow:hidden}.ppt-warning{color:#8a5a00;background:#fff7e6;border:1px solid #ffe0a3;border-radius:8px;margin:10px 2px;padding:10px 12px;font-size:13px;line-height:1.6}.ppt-warning code{background:#fff;border-radius:4px;padding:1px 5px;font-size:12px}.ppt-error{color:#b42318;background:#fef2f2;border-radius:8px;margin:8px 2px;padding:8px 12px;font-size:13px}.ppt-form{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.ppt-form input{box-sizing:border-box;text-align:left;border:1px solid #dfe3ea;border-radius:8px;width:100%;padding:9px 12px;font-size:14px}.ppt-form-row{grid-template-columns:100px minmax(0,1fr);align-items:end;gap:8px;display:grid}.ppt-form-row label{color:#637083;text-align:left;flex-direction:column;gap:4px;font-size:12px;display:flex}.ppt-form>button{color:#fff;cursor:pointer;background:#4d6bfe;border:none;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:600}.ppt-form>button:disabled{cursor:default;background:#c4cad4}.ppt-task-list{flex-direction:column;gap:10px;display:flex}.ppt-task{background:#fbfcfd;border:1px solid #e6e8eb;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px;display:flex}.ppt-task-main{flex-direction:column;flex:220px;gap:4px;min-width:0;display:flex}.ppt-task-main strong{color:#1f2329;overflow-wrap:anywhere;font-size:14px}.ppt-task-meta{color:#637083;font-size:12px}.ppt-task-step{color:#4d6bfe;font-size:12px}.ppt-task-error{color:#b42318;overflow-wrap:anywhere;font-size:12px}.ppt-progress-track{background:#e9edf3;border-radius:3px;height:6px;margin-top:4px;position:relative;overflow:hidden}.ppt-progress-fill{background:linear-gradient(90deg,#5a76ff,#7d5aff);border-radius:3px;height:100%;transition:width .4s}.ppt-task-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ppt-task-actions button{cursor:pointer;background:#fff;border:1px solid #dfe3ea;border-radius:8px;padding:7px 12px;font-size:13px}.ppt-task-actions button:hover:not(:disabled){background:#f2f4f7}.ppt-task-actions button:disabled{opacity:.6;cursor:default}.ppt-risk-tag{color:#8a5a00;background:#fff7e6;border:1px solid #ffe0a3;border-radius:6px;padding:3px 8px;font-size:11px;font-weight:600}.attachment-bar{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.attachment-chip{color:#33405c;background:#f2f5ff;border:1px solid #dfe3ea;border-radius:14px;align-items:center;gap:6px;max-width:100%;padding:5px 8px 5px 10px;font-size:12px;display:inline-flex}.attachment-name{text-overflow:ellipsis;white-space:nowrap;max-width:220px;overflow:hidden}.attachment-meta{color:#7b8698;flex:none}.attachment-remove{color:#7b8698;cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;width:18px;height:18px;padding:0;font-size:14px;line-height:1}.attachment-remove:hover{color:#33405c;background:#dde3f5}.composer .send-button{color:#fff;cursor:pointer;background:#4d6bfe;border-radius:50%;width:36px;height:36px;padding:0;font-size:17px;font-weight:700;line-height:1;position:absolute;bottom:3px;right:6px}.composer .send-button:disabled{background:#c4cad4}.mic-button{cursor:pointer;background:#fff;border:1px solid #e6e8eb;border-radius:50%;width:36px;height:36px;padding:0;font-size:16px;line-height:1;position:absolute;bottom:3px;right:50px}.mic-button:hover{background:#f2f4f7}.speak-button{cursor:pointer;opacity:.85;background:#fff;border:1px solid #e6e8eb;border-radius:999px;flex:none;align-self:flex-start;margin-top:8px;padding:5px 8px;font-size:13px}.speak-button:hover,.speak-button-active{opacity:1;background:#eef1ff;border-color:#4d6bfe}.reminder-banner{color:#7a5b1f;background:#fff7e6;border:1px solid #ffe0a3;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;margin:0 14px 10px;padding:10px 14px;font-size:13px;display:flex}.reminder-banner button{color:#fff;cursor:pointer;background:#f0a020;border:0;border-radius:8px;flex:none;padding:6px 14px;font-size:12px}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.reminder-form{background:#fff;border:1px solid #e6e8eb;border-radius:12px;margin-bottom:12px;padding:12px}.reminder-content-input{box-sizing:border-box;color:#1f2329;background:#fff;border:1px solid #cfd8e3;border-radius:8px;width:100%;padding:10px 12px;font-size:14px}.reminder-content-input::placeholder{color:#9aa6b2}.reminder-options{align-items:flex-end;gap:10px;margin-top:10px;display:flex}.reminder-field{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.reminder-field label{color:#8a9099;font-size:12px}.reminder-field input[type=datetime-local],.reminder-field select{box-sizing:border-box;color:#1f2329;background:#fff;border:1px solid #cfd8e3;border-radius:8px;width:100%;padding:9px 10px;font-size:13px}.reminder-add-btn{color:#fff;cursor:pointer;background:#4d6bfe;border:0;border-radius:9px;flex:none;padding:10px 14px;font-size:13px;font-weight:600}.reminder-preview{color:#4d6bfe;background:#eef1ff;border-radius:8px;margin:10px 2px 0;padding:8px 12px;font-size:13px;line-height:1.5}.reminder-preview b,.memory-panel input,.memory-panel select,.memory-panel textarea,.knowledge-search-row input,.knowledge-text-row textarea{color:#1f2329}@media (width<=760px){.app-shell{height:100svh;padding:0}.chat-panel{width:100%}.composer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.send-button{bottom:3px;right:6px}.mic-button{bottom:3px;right:50px}.reminder-options{flex-direction:column;align-items:stretch}.reminder-add-btn{width:100%}.reminder-banner{margin:0 10px 8px}.composer textarea,.knowledge-text-row textarea,.knowledge-search-row input,.memory-add-row input,.login-panel input,.login-panel .send-button{font-size:16px}}@media (hover:none) and (pointer:coarse){.composer textarea,.knowledge-text-row textarea,.knowledge-search-row input,.memory-add-row input,.login-panel input,.login-panel .send-button{font-size:16px}}
