.chat-app{--chat-contradiction:#315fc4;--chat-sufield:#066f6a;--chat-ideal:#7251bd;--chat-system:#92560c;--chat-evolution:#a63e54;--chat-advanced:#4d6795;--chat-contradiction-soft:#eaf0ff;--chat-sufield-soft:#e2f4ef;--chat-ideal-soft:#f0eafa;--chat-system-soft:#fbf0db;--chat-evolution-soft:#faeaf0;--chat-advanced-soft:#e9eef7;display:flex;height:100dvh;min-height:0;overflow:hidden;background:var(--surface);color:var(--foreground);font-size:14px}[data-theme=dark] .chat-app{--chat-contradiction:#99b7ff;--chat-sufield:#81d5c5;--chat-ideal:#c1a7fa;--chat-system:#efc184;--chat-evolution:#f0a2b3;--chat-advanced:#a6bddf;--chat-contradiction-soft:#233653;--chat-sufield-soft:#183d3a;--chat-ideal-soft:#342a49;--chat-system-soft:#433526;--chat-evolution-soft:#452c39;--chat-advanced-soft:#283448}.chat-app button,.chat-settings-dialog button{cursor:pointer;font:inherit}.chat-app button:disabled,.chat-settings-dialog button:disabled{cursor:not-allowed}.chat-app a:focus-visible,.chat-app button:focus-visible,.chat-settings-dialog button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.chat-app input,.chat-app select,.chat-app textarea,.chat-settings-dialog input,.chat-settings-dialog select,.chat-settings-dialog textarea{font:inherit;color:var(--foreground)}.chat-history{flex:0 0 240px;padding:18px 12px 12px;display:flex;flex-direction:column;background:var(--surface-muted);border-right:1px solid var(--border)}.chat-brand-row{justify-content:space-between;gap:3px;margin:0 2px 23px}.chat-brand,.chat-brand-row{display:flex;align-items:center}.chat-brand{gap:9px;border:0;background:none;padding:0;font-size:16px!important;white-space:nowrap;color:var(--foreground);letter-spacing:-.45px}.chat-brand b{font-weight:500;color:var(--muted-foreground)}.chat-logo{background:var(--primary);color:var(--on-primary);width:30px;height:32px;border-radius:9px;display:grid;place-items:center}.chat-icon-button{width:34px;height:34px;border:0;border-radius:8px;display:inline-grid;place-items:center;background:transparent;color:var(--muted-foreground);flex-shrink:0}.chat-icon-button:hover{background:var(--primary-soft);color:var(--primary)}.chat-new{display:flex;gap:10px;align-items:center;justify-content:center;min-height:43px;margin:0 2px 16px;color:var(--foreground);border:1px solid var(--border);border-radius:9px;font-weight:550!important;box-shadow:0 1px 2px #142c5310}.chat-new:hover{border-color:var(--primary);color:var(--primary)}.chat-history-search{height:37px;display:flex;align-items:center;gap:9px;color:var(--muted-foreground);padding:0 10px;border-radius:8px;margin-bottom:16px}.chat-history-search:focus-within{background:var(--surface);box-shadow:0 0 0 1px var(--border)}.chat-history-search input{min-width:0;width:100%;outline:none;border:0;background:transparent;font-size:13px}.chat-history-list{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.chat-history-list h2{font-size:11px;font-weight:500;color:var(--muted-foreground);padding:8px 10px;margin:7px 0 3px}.chat-history-item{display:flex;align-items:center;border-radius:8px;margin:3px 0}.chat-history-item.active{background:var(--primary-soft);color:var(--primary)}.chat-history-item>button:first-child{display:flex;gap:8px;align-items:center;min-width:0;flex:1;text-align:left;border:0;background:none;color:inherit;padding:11px 9px;font-size:13px}.chat-history-item>button:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-history-item>button>svg{flex-shrink:0}.chat-history-item:not(.active):hover{background:var(--border)}.chat-history-more{width:27px;height:32px;display:grid;place-items:center;background:transparent;color:var(--muted-foreground);border:0;opacity:.5;border-radius:5px}.chat-history-item:hover .chat-history-more,.chat-history-more:focus-visible{opacity:1}.chat-history-bottom{border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.chat-history-bottom>button{border:0;background:transparent;color:var(--muted-foreground);width:100%;display:flex;align-items:center;gap:10px;padding:10px;text-align:left;border-radius:8px;font-size:13px}.chat-history-bottom>button:hover{background:var(--surface);color:var(--foreground)}.chat-count{margin-left:auto;padding:1px 6px;border:1px solid var(--border);border-radius:5px;font-size:11px}.chat-local-profile{display:flex;align-items:center;gap:9px;padding:16px 8px 2px}.chat-profile-mark{width:31px;height:31px;background:var(--primary-soft);color:var(--primary);border-radius:50%;display:grid;place-items:center;font-size:13px}.chat-local-profile>div{display:flex;flex-direction:column;flex:1}.chat-local-profile strong{font-size:12px;font-weight:500}.chat-local-profile small{color:var(--muted-foreground);margin-top:3px}.chat-local-profile>svg{color:var(--muted-foreground);cursor:pointer}.chat-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;position:relative}.chat-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;height:68px;padding:0 28px;flex-shrink:0}.chat-topbar-actions,.chat-topbar-title{display:flex;align-items:center;gap:9px;min-width:0}.chat-model-button{display:flex;gap:8px;align-items:center;font-size:16px!important;font-weight:600!important;border:0;background:none;color:var(--foreground);padding:6px 0}.chat-mode-pill{border:1px solid var(--border);background:var(--surface-muted);color:var(--muted-foreground);border-radius:5px;padding:3px 7px;font-size:10px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-mobile-menu{display:none}.chat-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:auto;scrollbar-width:thin;overscroll-behavior:contain}.chat-welcome{max-width:790px;padding:50px 32px 35px;margin:auto;flex-direction:column;justify-content:center;align-items:center;text-align:center}.chat-welcome-symbol{display:grid;place-items:center;color:var(--primary);background:var(--primary-soft);width:64px;height:64px;border-radius:20px;margin:0 0 25px;transform:rotate(-5deg)}.chat-welcome-symbol svg{transform:rotate(5deg)}.chat-welcome h1{font-size:29px;letter-spacing:-1px;font-weight:600;line-height:1.4;margin:0}.chat-welcome>p{color:var(--muted-foreground);font-size:14px;margin:13px 0 34px}.chat-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}.chat-example-grid>button{display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid var(--border);border-radius:11px;text-align:left;padding:17px;background:var(--surface);color:var(--foreground);transition:background .15s,border-color .15s}.chat-example-grid>button:hover{background:var(--surface-muted);border-color:var(--primary)}.chat-example-grid>button>.chat-tool-icon{grid-column:1/-1;margin-bottom:5px;width:31px;height:31px}.chat-example-grid strong{font-size:13px;font-weight:600}.chat-example-grid>button>span:not(.chat-tool-icon){font-size:11px;grid-column:1/2;color:var(--muted-foreground);line-height:1.5}.chat-example-grid>button>svg{color:var(--muted-foreground);grid-column:2;grid-row:2/4;align-self:center}.chat-welcome-link{display:flex;gap:8px;align-items:center;margin-top:26px;color:var(--muted-foreground);background:none;border:0;font-size:12px!important}.chat-welcome-link:hover{color:var(--primary)}.chat-composer-area{flex-shrink:0;padding:16px 30px 14px;position:relative;background:var(--surface)}.chat-composer-wrap{max-width:810px;margin:0 auto}.chat-composer{border:1px solid var(--border);border-radius:16px;padding:15px 15px 10px;box-shadow:0 3px 16px #142c5308}.chat-composer:focus-within{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.chat-composer>textarea{width:100%;max-height:200px;min-height:66px;border:0;outline:0;box-shadow:none;background:none;font-size:15px;line-height:1.6;padding:0 3px}.chat-composer>textarea::placeholder{color:var(--muted-foreground)}.chat-composer-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:6px}.chat-composer-toolbar>div{display:flex;gap:6px}.chat-composer-toolbar>div>button{display:flex;gap:6px;align-items:center;padding:0 9px;border:1px solid transparent;background:transparent;color:var(--muted-foreground);font-size:12px;border-radius:7px}.chat-composer-toolbar>div>button.active,.chat-composer-toolbar>div>button:hover{background:var(--primary-soft);color:var(--primary)}.chat-composer-toolbar>div>.chat-composer-tool-button{border-color:var(--border);color:var(--foreground)}.chat-composer-tool-button>span{background:var(--primary-soft);border-radius:4px;font-size:11px;padding:1px 4px;color:var(--primary)}.chat-send{width:35px;height:35px;border:0;border-radius:10px;color:var(--on-primary);background:var(--primary);display:grid;place-items:center;flex-shrink:0}.chat-send:disabled{background:var(--surface-muted);color:var(--muted-foreground)}.chat-composer-note{display:flex;justify-content:space-between;gap:10px;margin:11px 3px 0;color:var(--muted-foreground)}.chat-tools-sidebar{display:none;flex:0 0 284px;width:284px;min-height:0;padding:23px 15px 0;border-left:1px solid var(--border);background:var(--surface-muted);flex-direction:column}.chat-tools-sidebar.desktop-open{display:flex}.chat-tools-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:21px}.chat-tools-heading>div{display:flex;flex-direction:column;gap:5px}.chat-tools-heading strong{font-size:15px;font-weight:600}.chat-search,.chat-tools-heading>div>span{color:var(--muted-foreground)}.chat-search{display:flex;gap:8px;align-items:center;height:37px;border:1px solid var(--border);border-radius:8px;background:var(--surface);padding:0 10px;flex-shrink:0}.chat-search input{width:100%;min-width:0;background:none;border:0;outline:0;font-size:12px}.chat-tool-category-label{padding:10px 0 4px}.chat-tool-category-label select{width:100%;border:0;outline:0;padding:6px 3px;color:var(--muted-foreground);background:transparent;font-size:12px}.chat-tool-list{flex:1;overflow:auto;min-height:0;scrollbar-width:thin;padding-bottom:15px}.chat-tool-list h2{font-weight:500;color:var(--muted-foreground);margin:19px 7px 8px}.chat-tool-row{display:flex;align-items:center;gap:2px;margin:3px 0;border:1px solid transparent;border-radius:9px}.chat-tool-row:hover{background:var(--surface)}.chat-tool-row.is-enabled{background:var(--surface);border-color:var(--border)}.chat-tool-select{display:flex;align-items:center;gap:9px;min-width:0;flex:1;color:var(--foreground);background:transparent;border:0;padding:9px 6px;text-align:left}.chat-tool-select>span:not(.chat-tool-icon){display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.chat-tool-select strong{font-size:12px;font-weight:500;line-height:1.35}.chat-tool-select small{font-size:10px;color:var(--muted-foreground)}.chat-tool-select>svg{color:var(--primary);flex-shrink:0}.chat-tool-select:disabled{opacity:.55}.chat-tool-settings{display:grid;place-items:center;width:27px;height:32px;color:var(--muted-foreground);background:transparent;border:0;border-radius:7px;margin-right:2px}.chat-tool-settings:hover{background:var(--primary-soft);color:var(--primary)}.chat-tool-icon{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:8px;flex-shrink:0}.tone-contradiction{color:var(--chat-contradiction);background:var(--chat-contradiction-soft)}.tone-sufield{color:var(--chat-sufield);background:var(--chat-sufield-soft)}.tone-ideal{color:var(--chat-ideal);background:var(--chat-ideal-soft)}.tone-system{color:var(--chat-system);background:var(--chat-system-soft)}.tone-evolution{color:var(--chat-evolution);background:var(--chat-evolution-soft)}.tone-advanced{color:var(--chat-advanced);background:var(--chat-advanced-soft)}.chat-tools-footer{display:flex;gap:10px;align-items:center;margin-top:auto;padding:15px 3px;color:var(--primary)}.chat-tools-footer p{flex:1;font-size:11px;line-height:1.6;color:var(--muted-foreground);margin:0}.chat-tools-footer>button{background:none;border:0;color:var(--muted-foreground)}.chat-thread{max-width:866px;padding:15px 30px 28px}.chat-message{margin:0 0 34px;min-width:0}.chat-message-author{display:flex;gap:8px;align-items:center;margin:0 0 12px;font-weight:600}.chat-agent-mark{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:var(--primary-soft);color:var(--primary)}.chat-origin{font-weight:400;border-radius:4px;padding:2px 5px;color:var(--muted-foreground);border:1px solid var(--border);margin-left:1px}.origin-tool{color:var(--chat-sufield);background:var(--chat-sufield-soft);border:0}.origin-ai{color:var(--chat-ideal);background:var(--chat-ideal-soft);border:0}.role-user{max-width:90%;margin-left:auto}.role-user .chat-message-author{justify-content:flex-end}.role-user .chat-message-body{background:var(--surface-muted);border-radius:13px 2px 13px 13px;padding:1px 17px;width:fit-content;margin-left:auto}.chat-message-body{font-size:15px;line-height:1.8;overflow-wrap:anywhere}.chat-message-body p{margin:10px 0}.chat-user-text{white-space:pre-wrap}.chat-message-body h1,.chat-message-body h2,.chat-message-body h3{font-size:17px;line-height:1.5;margin:19px 0 10px;font-weight:600}.chat-message-body ol,.chat-message-body ul{padding-left:23px;margin:10px 0}.chat-message-body li{margin:5px 0}.chat-message-body code{background:var(--surface-muted);padding:2px 5px;font-size:12px;border-radius:4px;overflow-wrap:anywhere}.chat-message-body pre{overflow:auto;background:var(--surface-muted);border:1px solid var(--border);padding:15px;border-radius:9px}.chat-message-body pre code{padding:0}.chat-message-body table{border-collapse:collapse;width:100%;font-size:13px;display:block;overflow:auto}.chat-message-body td,.chat-message-body th{padding:8px 12px;border:1px solid var(--border)}.chat-message-body a{color:var(--primary);text-decoration:underline}.chat-working{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted-foreground);padding:10px 0}.chat-invocation{margin:14px 0;overflow:hidden}.chat-invocation-heading{width:100%;display:flex;align-items:center;border:0;background:var(--surface-muted);color:var(--foreground);text-align:left;padding:11px 13px}.chat-invocation-heading strong{flex:1}.chat-invocation-heading>.chat-tool-icon{width:26px;height:26px}.chat-call-status{display:flex;gap:5px;align-items:center;font-size:10px;color:var(--muted-foreground);white-space:nowrap}.state-completed .chat-call-status{color:var(--success)}.state-data-unavailable .chat-call-status,.state-needs-input .chat-call-status{color:var(--warning)}.state-error .chat-call-status{color:var(--destructive)}.chat-call-rationale{margin:0;padding:12px 15px;line-height:1.7;color:var(--muted-foreground)}.chat-invocation-details{padding:0 15px 14px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.chat-invocation-details p{margin:7px 0}.chat-invocation-details pre{max-height:350px;overflow:auto;background:var(--surface-muted);padding:12px;border-radius:7px;white-space:pre-wrap}.chat-invocation-details summary,.chat-recommendation summary{cursor:pointer;color:var(--muted-foreground)}.rotated{transform:rotate(180deg)}.chat-input-confirmation{padding:0 15px 15px}.chat-input-confirmation>p{font-size:12px;line-height:1.7;color:var(--muted-foreground);margin:12px 0}.chat-confirm-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chat-confirm-fields label,.chat-context-editor label{display:flex;flex-direction:column;gap:7px;font-size:12px}.chat-confirm-fields input,.chat-confirm-fields select,.chat-confirm-fields textarea,.chat-context-editor textarea{width:100%;background:var(--surface);color:var(--foreground);border:1px solid var(--border);border-radius:7px;padding:9px 10px;min-height:38px;outline-color:var(--primary);resize:vertical}.chat-confirm-check{display:flex;align-items:flex-start;gap:7px;font-size:12px;margin:15px 0}.chat-confirm-check input{margin-top:2px;accent-color:var(--primary)}.chat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:15px 0}.chat-message-actions{display:flex;gap:13px;margin-top:12px}.chat-message-actions button{display:flex;gap:5px;align-items:center;border:0;background:none;color:var(--muted-foreground);font-size:11px;padding:4px}.chat-message-actions button:hover{color:var(--primary)}.chat-recommendations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:17px}.chat-recommend-label{grid-column:1/-1;margin:0;font-size:11px;color:var(--muted-foreground)}.chat-recommendation{border:1px solid var(--border);border-radius:10px;padding:14px;display:flex;flex-direction:column}.chat-recommend-top{display:flex;gap:8px;align-items:center}.chat-recommend-top strong{flex:1;font-weight:550;font-size:12px}.chat-recommend-top>button{background:transparent;border:0;color:var(--muted-foreground);padding:4px}.chat-recommendation details p,.chat-recommendation>p{font-size:11px;line-height:1.75;color:var(--muted-foreground);margin:10px 0}.chat-recommendation summary{font-size:10px;margin:0 0 12px}.chat-enable{background:var(--primary-soft);color:var(--primary);border:0;padding:8px 10px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:7px;margin-top:auto;font-size:12px!important}.chat-enable.enabled{background:var(--surface-muted);color:var(--muted-foreground)}.tone-border-contradiction{border-top-color:var(--chat-contradiction)!important}.tone-border-sufield{border-top-color:var(--chat-sufield)!important}.tone-border-ideal{border-top-color:var(--chat-ideal)!important}.tone-border-system{border-top-color:var(--chat-system)!important}.tone-border-evolution{border-top-color:var(--chat-evolution)!important}.tone-border-advanced{border-top-color:var(--chat-advanced)!important}.chat-enabled-tools{display:flex;flex-wrap:wrap;gap:7px;margin:0 3px 10px}.chat-enabled-chip{border-radius:6px;max-width:100%}.chat-enabled-chip,.chat-enabled-chip button{display:flex;align-items:center;font-size:11px}.chat-enabled-chip button{gap:5px;border:0;background:transparent;color:inherit;padding:5px 7px}.chat-enabled-chip .chat-tool-icon{width:17px;height:17px}.chat-enabled-chip>button:last-child{padding-left:0}.chat-context-editor{padding:15px;margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:300px;background:var(--surface-muted)}.chat-context-editor>p{grid-column:1/-1;margin:0;color:var(--muted-foreground);font-size:11px}.chat-jump-bottom{position:absolute;top:-30px;left:50%;width:32px;height:32px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--foreground);display:grid;place-items:center;box-shadow:0 2px 7px #142c5315}.chat-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:100;padding:11px 14px;display:flex;gap:8px;align-items:center;background:var(--foreground);color:var(--surface);border-radius:9px;box-shadow:0 5px 24px #0002;font-size:12px;max-width:90vw}.chat-toast button{display:grid;place-items:center;color:inherit;background:none;border:0;margin-left:8px}.chat-storage-error{padding:12px 25px;background:var(--warning-soft,var(--surface-muted));color:var(--warning);font-size:12px;display:flex;flex-wrap:wrap;gap:10px}.chat-storage-error button{color:inherit;background:none;border:0;text-decoration:underline}.chat-muted{color:var(--muted-foreground);font-size:12px;line-height:1.7}.chat-danger{color:var(--destructive)!important}.chat-delete-confirm{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;padding:12px 15px;font-size:13px;line-height:1.7}.chat-settings-dialog{--chat-contradiction:var(--primary);--chat-sufield:var(--accent);--chat-ideal:var(--primary);--chat-system:var(--warning);--chat-evolution:var(--destructive);--chat-advanced:var(--muted-foreground);--chat-contradiction-soft:var(--primary-soft);--chat-sufield-soft:var(--surface-muted);--chat-ideal-soft:var(--primary-soft);--chat-system-soft:var(--surface-muted);--chat-evolution-soft:var(--surface-muted);--chat-advanced-soft:var(--surface-muted);width:min(1020px,94vw)!important;max-width:none!important;height:min(760px,90dvh);max-height:94dvh!important;padding:0!important;display:flex;flex-direction:column;overflow:hidden!important;background:var(--surface)}.chat-settings-dialog.is-tool{width:min(1500px,96vw)!important;height:92dvh}.chat-settings-dialog.is-maximized{width:98vw!important;height:97dvh;max-height:97dvh!important}.chat-settings-dialog>.dialog-heading{padding:20px 23px 16px;border-bottom:1px solid var(--border);margin:0;flex-shrink:0}.chat-settings-dialog>.dialog-heading [data-state]{font-size:17px}.chat-settings-dialog>.dialog-heading p{font-size:11px;color:var(--muted-foreground);margin-top:7px}.chat-settings-layout{display:flex;flex:1;min-height:0;overflow:hidden}.chat-settings-nav{width:155px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface-muted);padding:16px 10px}.chat-settings-nav>button{border:0;background:none;color:var(--muted-foreground);padding:11px 13px;text-align:left;border-radius:7px;font-size:12px;margin:2px 0}.chat-settings-nav>button.active,.chat-settings-nav>button:hover{background:var(--primary-soft);color:var(--primary)}.chat-settings-nav-bottom{display:flex;flex-direction:column;margin-top:auto;gap:15px;padding:15px 6px 0}.chat-settings-nav-bottom>a{color:var(--muted-foreground);display:flex;gap:6px;align-items:center;font-size:11px;text-decoration:none}.chat-settings-content{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto}.chat-settings-page{padding:30px 35px;max-width:800px;width:100%}.chat-settings-page h2{font-size:20px;font-weight:600;margin:0 0 15px}.chat-settings-page h3{font-size:14px;margin:30px 0 12px}.chat-settings-page li,.chat-settings-page p{color:var(--muted-foreground);line-height:1.85;font-size:13px}.chat-settings-page ol{padding-left:20px}.chat-settings-page li{margin:12px 0}.chat-settings-page>label{display:flex;flex-direction:column;gap:10px;margin:24px 0;font-size:13px}.chat-settings-page select{border:1px solid var(--border);border-radius:8px;padding:10px;background:var(--surface);max-width:380px}.chat-settings-page pre{background:var(--surface-muted);border:1px solid var(--border);padding:15px;border-radius:8px;font-size:11px;line-height:1.9;overflow:auto}.chat-settings-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding:9px 15px;flex-shrink:0}.chat-settings-footer>span{font-size:10px;color:var(--muted-foreground);margin-right:7px}.chat-connection-pill{display:inline-block;background:var(--surface-muted);color:var(--warning);padding:6px 9px;border-radius:6px;font-size:11px}.chat-connection-pill.ready{color:var(--success)}.chat-test-result{border:1px solid var(--border);padding:12px;border-radius:8px}.chat-tool-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 14px;border-bottom:1px solid var(--border);flex-shrink:0}.chat-save-note{font-size:10px;display:flex;align-items:center;gap:5px;color:var(--muted-foreground);margin-right:auto}.chat-tool-layout{display:flex;min-height:0;overflow:hidden;flex:1;position:relative}.chat-tool-selector{width:180px;flex-shrink:0;border-right:1px solid var(--border);overflow:auto;background:var(--surface-muted);padding:13px 8px;scrollbar-width:thin}.chat-tool-selector .chat-search{margin:0 3px 14px}.chat-tool-selector h3{font-size:10px;color:var(--muted-foreground);margin:18px 8px 9px;font-weight:500}.chat-tool-selector>div>button{border:0;background:none;display:flex;align-items:center;gap:6px;padding:7px;color:var(--muted-foreground);font-size:11px;border-radius:6px;width:100%;text-align:left}.chat-tool-selector>div>button.active{background:var(--primary-soft);color:var(--primary)}.chat-tool-selector .chat-tool-icon{width:22px;height:22px;border-radius:5px}.chat-tool-surface{flex:1;min-width:0;min-height:0;overflow:auto;position:relative}.chat-tool-surface>.wb-tool-page{padding:23px}.chat-tool-surface .wb-tool-heading h1{font-size:20px}.chat-tool-surface .wb-model-canvas,.chat-tool-surface .wb-relation-canvas{min-height:400px}.chat-tool-inspector{position:relative;width:265px;flex-shrink:0;overflow:auto;border-left:1px solid var(--border)}.chat-tool-inspector .wb-context-title{padding:22px 20px}.chat-inspector-toggle{position:absolute;z-index:4;right:12px;bottom:8px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:6px 9px;font-size:11px!important;color:var(--primary)}.left-collapsed .chat-history{width:70px;flex-basis:70px;padding-left:10px;padding-right:10px}.left-collapsed .chat-brand>span:last-child,.left-collapsed .chat-history-bottom>button>span,.left-collapsed .chat-history-list,.left-collapsed .chat-history-search,.left-collapsed .chat-local-profile,.left-collapsed .chat-new>span{display:none}.left-collapsed .chat-brand-row{flex-direction:column;gap:10px;margin-bottom:20px}.left-collapsed .chat-history-bottom{margin-top:auto}.left-collapsed .chat-history-bottom>button{justify-content:center}.chat-sidebar-scrim,.chat-tools-scrim{display:none}@media (max-width:1279px){.chat-tools-sidebar.desktop-open{display:none}.chat-tools-sidebar.mobile-open{display:flex;position:fixed;right:0;top:0;bottom:0;z-index:61;width:300px;box-shadow:-10px 0 35px #0002}.chat-tools-scrim{display:block;position:fixed;inset:0;z-index:60;border:0;background:#0006}.chat-tool-inspector{position:absolute;right:0;top:0;bottom:0;width:285px;z-index:3;box-shadow:-8px 0 25px #0002}.chat-topbar{padding:0 23px}}@media (max-width:1023px){.chat-history,.left-collapsed .chat-history{display:none}.chat-history.mobile-open{display:flex;position:fixed;left:0;top:0;bottom:0;width:260px;z-index:61;box-shadow:10px 0 35px #0002}.left-collapsed .chat-history.mobile-open .chat-brand>span:last-child,.left-collapsed .chat-history.mobile-open .chat-history-bottom>button>span,.left-collapsed .chat-history.mobile-open .chat-history-list,.left-collapsed .chat-history.mobile-open .chat-history-search,.left-collapsed .chat-history.mobile-open .chat-local-profile,.left-collapsed .chat-history.mobile-open .chat-new>span{display:flex}.left-collapsed .chat-history.mobile-open .chat-brand-row{flex-direction:row}.left-collapsed .chat-history.mobile-open .chat-history-bottom>button{justify-content:flex-start}.chat-sidebar-scrim{display:block;position:fixed;inset:0;z-index:60;border:0;background:#0006}.chat-mobile-menu{display:inline-grid}.chat-settings-nav{width:124px}.chat-tool-selector{width:155px}}@media (max-width:640px){.chat-topbar{height:62px;padding:0 11px;gap:3px}.chat-topbar-actions,.chat-topbar-title{gap:0}.chat-topbar .button-icon,.chat-topbar .chat-icon-button{min-width:44px;width:44px;height:44px}.chat-topbar-actions>.chat-icon-button[title]{display:none}.chat-model-button{font-size:14px!important;gap:4px}.chat-mode-pill{display:none}.chat-welcome{padding:32px 22px 22px}.chat-welcome h1{font-size:24px;letter-spacing:-.7px}.chat-welcome>p{font-size:12px;margin-bottom:26px}.chat-welcome-symbol{width:54px;height:54px;border-radius:16px;margin-bottom:21px}.chat-example-grid{gap:8px;grid-template-columns:1fr}.chat-example-grid>button{grid-template-columns:auto 1fr auto;padding:12px;gap:5px 10px;align-items:center}.chat-example-grid>button>.chat-tool-icon{grid-column:1;grid-row:1/3;margin:0}.chat-example-grid>button>span:not(.chat-tool-icon){grid-column:2}.chat-example-grid>button>svg{grid-column:3;grid-row:1/3}.chat-welcome-link{font-size:11px!important;margin-top:20px}.chat-composer-area{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.chat-composer{padding:13px 12px 9px;border-radius:14px}.chat-composer>textarea{min-height:54px;font-size:14px}.chat-composer-toolbar>div>button,.chat-send{height:44px}.chat-send{width:44px}.chat-composer-note{justify-content:center;font-size:9px}.chat-composer-note>span:last-child{display:none}.chat-enabled-tools{max-height:83px;overflow:auto;gap:5px}.chat-enabled-chip button{min-height:36px}.chat-enabled-chip>button:last-child{min-width:36px;justify-content:center}.chat-thread{padding:12px 17px 15px}.chat-message-body{font-size:14px}.role-user{max-width:94%}.chat-confirm-fields,.chat-context-editor,.chat-recommendations{grid-template-columns:1fr}.chat-invocation-heading{padding:10px;gap:7px}.chat-invocation-heading strong{font-size:12px}.chat-call-status{font-size:9px}.chat-tools-sidebar.mobile-open{width:min(330px,90vw)}.chat-tool-select{min-height:54px}.chat-tool-settings{min-width:40px;height:44px}.chat-settings-dialog,.chat-settings-dialog.is-maximized,.chat-settings-dialog.is-tool{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0;border-radius:0}.chat-settings-dialog>.dialog-heading{padding:17px 16px 12px}.chat-settings-dialog>.dialog-heading p{font-size:10px;max-width:90%}.chat-settings-layout{flex-direction:column}.chat-settings-nav{flex-direction:row;width:100%;padding:6px 8px;overflow:auto;border:0;border-bottom:1px solid var(--border);flex-shrink:0}.chat-settings-nav>button{white-space:nowrap;padding:10px;min-height:40px}.chat-settings-nav-bottom{display:none}.chat-settings-page{padding:24px 20px}.chat-settings-page h2{font-size:19px}.chat-tool-controls{gap:6px;padding:7px 10px}.chat-save-note{display:none}.chat-tool-controls>.button-sm{font-size:11px;min-height:44px;padding:5px 8px}.chat-tool-controls>.button-icon{margin-left:auto}.chat-tool-layout{flex-direction:column}.chat-tool-selector{width:100%;max-height:112px;padding:7px 10px;border-right:0;border-bottom:1px solid var(--border);display:flex;gap:7px;flex-shrink:0;overflow:auto}.chat-tool-selector>.chat-search{display:none}.chat-tool-selector>div{display:flex;gap:6px;align-items:center;flex-shrink:0}.chat-tool-selector h3{display:none}.chat-tool-selector>div>button{white-space:nowrap;min-height:44px;border:1px solid var(--border);padding:7px}.chat-tool-selector .chat-tool-icon{display:none}.chat-tool-surface>.wb-tool-page{padding:17px 13px}.chat-tool-inspector{width:min(310px,90vw)}.chat-settings-footer{padding:7px 10px max(7px,env(safe-area-inset-bottom))}.chat-settings-footer>span{font-size:9px}.chat-settings-footer button{min-height:40px}.chat-context-editor{max-height:220px}.chat-toast{bottom:20px;width:max-content;max-width:92vw;font-size:11px}}@media (prefers-reduced-motion:reduce){.chat-app *,.chat-settings-dialog *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.chat-app{background:var(--background);--chat-system:var(--primary);--chat-system-soft:var(--primary-soft);--chat-evolution:var(--chat-ideal);--chat-evolution-soft:var(--chat-ideal-soft)}.chat-analysis-plan{flex-shrink:0;border-bottom:1px solid var(--border);background:var(--surface)}.chat-plan-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 24px}.chat-plan-bar>button{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--foreground);min-height:37px;padding:4px 0}.chat-plan-bar strong{font-size:12px;font-weight:550}.chat-plan-bar>button>span,.chat-plan-origin{font-size:10px;color:var(--muted-foreground)}.chat-plan-bar>button>svg:first-child{color:var(--primary)}.chat-plan-expanded{max-height:48dvh;overflow:auto;padding:8px 23px 16px;border-top:1px solid var(--border)}.chat-plan-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted-foreground);margin-bottom:10px}.chat-plan-disabled{opacity:.55}.chat-plan-empty{color:var(--warning);font-size:12px;margin:12px 0}.chat-plan-expanded .kg-plan{grid-template-columns:135px minmax(0,1fr)}.chat-plan-expanded .v3-agent-advice{grid-column:1/-1}.chat-plan-expanded .v3-agent-inputs{margin:12px 0}.chat-plan-expanded .wb-panel{padding:15px}.chat-plan-return{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0 0;border-top:1px solid var(--border);margin-top:15px;font-size:11px;color:var(--muted-foreground)}.chat-plan-return button{min-height:38px;background:var(--primary);color:var(--on-primary);border:0;display:flex;align-items:center;gap:7px;border-radius:7px;padding:8px 12px;flex-shrink:0}.chat-plan-return button:disabled{background:var(--surface-muted);color:var(--muted-foreground)}.chat-plan-nodes{display:flex;gap:8px;overflow:auto;padding:0 23px 10px}.chat-plan-nodes>button{display:flex;align-items:center;gap:7px;padding:6px 9px;min-height:35px;border:1px solid var(--border);border-radius:6px;color:var(--foreground);background:var(--background);white-space:nowrap;font-size:11px}.chat-plan-nodes>button>span{color:var(--primary);font-size:10px}.chat-plan-nodes small{color:var(--muted-foreground);font-size:9px}.chat-tool-personal{display:flex;gap:8px;padding:0 0 11px}.chat-tool-personal button{flex:1;min-height:32px;background:transparent;border:1px solid var(--border);color:var(--muted-foreground);border-radius:6px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px}.chat-tool-personal button[aria-pressed=true]{color:var(--primary);background:var(--primary-soft);border-color:var(--primary)}.chat-tool-favorite{display:grid;place-items:center;flex-shrink:0;width:25px;min-height:36px;border:0;background:transparent;color:var(--muted-foreground);border-radius:5px}.chat-tool-favorite[aria-pressed=true]{color:var(--primary)}.chat-capabilities{margin:22px 0}.chat-capabilities>div{padding:15px 0;border-bottom:1px solid var(--border)}.chat-capabilities dt{display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:550}.chat-capabilities dt>span{font-size:11px;font-weight:400;color:var(--warning)}.chat-capabilities dd{margin:7px 0 0;font-size:12px;line-height:1.9;color:var(--muted-foreground)}@media(max-width:767px){.chat-plan-bar{padding:4px 15px}.chat-plan-bar>button>span{display:none}.chat-plan-origin{font-size:9px}.chat-plan-expanded{max-height:56dvh;padding:8px 13px 15px}.chat-plan-expanded .kg-plan{grid-template-columns:1fr}.chat-plan-nodes{padding-left:14px;padding-right:14px}.chat-plan-return{flex-direction:column;align-items:stretch}.chat-plan-return button{justify-content:center}}.chat-history{width:240px;flex-basis:240px;padding:25px 14px 15px;background:var(--sidebar)}.chat-brand-row{margin:0 2px 30px}.chat-brand{gap:10px;font-size:21px!important;letter-spacing:-.7px;text-align:left}.chat-brand>span:last-child{line-height:1.3;font-weight:650}.chat-brand b{color:var(--foreground);font-weight:400}.chat-brand small{display:block;color:var(--muted-foreground);font-size:11px;letter-spacing:.5px;margin-top:5px;font-weight:400}.chat-logo{width:38px;height:42px;border-radius:10px}.chat-brand-row>.chat-icon-button{width:25px}.chat-primary-nav{display:flex;flex-direction:column;gap:7px;margin-bottom:22px}.chat-primary-nav>button{border:0;display:flex;align-items:center;gap:12px;min-height:45px;border-radius:8px;padding:10px 13px;background:transparent;color:var(--muted-foreground);text-align:left;font-size:14px}.chat-primary-nav>button:hover{background:var(--primary-soft);color:var(--primary)}.chat-primary-nav>button.active{background:var(--primary);color:var(--on-primary);box-shadow:0 4px 10px color-mix(in srgb,var(--primary) 12%,transparent)}.chat-new{min-height:38px;margin:0 3px 10px;border-color:var(--border);background:var(--surface);font-size:12px!important;box-shadow:none}.chat-history-disclosure{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;border:0;color:var(--muted-foreground);background:transparent;font-size:12px!important;padding:9px;min-height:36px}.chat-history-search{margin:0 0 7px;height:34px}.chat-history-search input{font-size:12px}.chat-history-list{min-height:48px}.chat-history-list h2{margin:0;font-size:10px;padding:5px 10px}.chat-history-item>button:first-child{font-size:12px;padding:9px}.chat-shortcuts{font-size:11px;color:var(--muted-foreground);margin-top:12px;padding:5px 8px}.chat-shortcuts summary{cursor:pointer;display:flex;gap:9px;align-items:center;min-height:35px;list-style:none}.chat-shortcuts summary>svg{margin-left:auto}.chat-shortcuts>button{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;min-height:35px;border:0;background:transparent;color:inherit;text-align:left}.chat-history-bottom{margin-top:auto;padding-top:13px}.chat-history-bottom>button{min-height:35px;padding:7px 10px;font-size:12px}.chat-history-bottom>.chat-onboarding{padding:13px 10px;border:1px solid var(--border);background:var(--surface);border-radius:11px;margin-bottom:12px;gap:9px}.chat-onboarding>svg{color:var(--primary)}.chat-onboarding>span{flex:1}.chat-onboarding strong{font-size:12px;display:block;font-weight:600}.chat-onboarding small{font-size:10px;display:block;margin-top:5px;color:var(--muted-foreground)}.chat-workbench-link{display:flex;align-items:center;gap:10px;color:var(--muted-foreground);padding:7px 10px;min-height:35px;font-size:12px}.chat-workbench-link>svg:last-child{margin-left:auto}.chat-history-bottom>button:has(.chat-count){display:none}.chat-local-profile{padding:13px 9px 0}.chat-local-profile small{font-size:10px}.chat-topbar{height:65px;min-height:65px;border-bottom:1px solid var(--border);background:var(--surface);padding:0 27px}.chat-model-button{font-size:14px!important;font-weight:500!important;gap:9px;max-width:250px;overflow:hidden;white-space:nowrap}.chat-topbar-actions{gap:4px}.chat-main{background:var(--background)}.chat-scroll{display:flex;flex-direction:column}.chat-welcome{display:flex;flex:1;max-width:none;width:100%;min-height:100%;padding:39px 37px 0;text-align:left;align-items:stretch;justify-content:flex-start}.chat-intro{position:relative;padding-right:96px;flex-shrink:0}.chat-intro h1{font-size:29px;line-height:1.5;font-weight:650;letter-spacing:-.75px;text-wrap:balance}.chat-intro p{color:var(--muted-foreground);font-size:13px;line-height:1.9;margin:14px 0 24px;max-width:610px}.chat-triz-illustration{position:absolute;right:-5px;top:10px;width:82px;height:82px}.chat-progress{display:flex;align-items:center;gap:17px;margin:0;padding:0;list-style:none;max-width:590px;width:max-content}.chat-progress>li{display:flex;align-items:center;gap:9px;padding:7px 16px;border:1px solid var(--border);border-radius:30px;font-size:12px;white-space:nowrap;background:var(--surface)}.chat-progress>li>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface-muted);font-size:11px;color:var(--muted-foreground)}.chat-progress>li.active{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.chat-progress>li.active>span{background:transparent;border:1px solid;color:inherit}.chat-progress>svg{color:var(--muted-foreground);opacity:.6}.chat-empty-state{flex:1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 0 50px;text-align:center}.chat-empty-state>svg{color:var(--muted-foreground);opacity:.7;margin-bottom:18px}.chat-empty-state h2{font-size:20px;font-weight:600}.chat-empty-state p{font-size:13px;color:var(--muted-foreground);line-height:1.9;margin:13px 0 0}.chat-thread{width:100%;padding:28px 32px 10px;max-width:850px;margin:0 auto}.chat-composer-area{background:var(--background);padding:13px 30px 15px;flex:0 0 auto}.chat-composer-wrap{max-width:850px;position:relative}.chat-composer{background:var(--surface);border:1px solid color-mix(in srgb,var(--primary) 35%,var(--border));border-radius:21px;padding:15px 17px 10px;box-shadow:0 4px 14px color-mix(in srgb,var(--shadow-ink) 5%,transparent)}.chat-composer>textarea{resize:vertical;min-height:43px;max-height:160px;font-size:14px;line-height:1.75;padding:0 2px}.chat-composer-toolbar{padding-top:7px;gap:7px}.chat-composer-toolbar>div{gap:5px}.chat-composer-toolbar>div>button{height:32px;font-size:11px;padding:0 7px}.chat-composer-toolbar>div>.chat-composer-tool-button{border:0;background:var(--surface-muted);border-radius:50%;min-width:32px;padding:0 9px}.chat-send{width:40px;height:40px;border-radius:50%}.chat-send:disabled{background:var(--primary-soft);color:var(--primary);opacity:.7}.chat-composer-note{font-size:10px;margin-top:9px}.chat-example-menu{position:absolute;bottom:100%;left:0;width:min(430px,100%);margin-bottom:9px;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:7px;box-shadow:0 7px 20px color-mix(in srgb,var(--shadow-ink) 10%,transparent);z-index:12}.chat-example-menu>button{display:grid;grid-template-columns:1fr 20px;width:100%;padding:11px 10px;text-align:left;color:var(--foreground);border:0;background:transparent;border-radius:6px}.chat-example-menu>button:hover{background:var(--primary-soft)}.chat-example-menu strong{font-size:12px;font-weight:500}.chat-example-menu span{display:block;font-size:11px;color:var(--muted-foreground);grid-row:2;margin-top:4px}.chat-example-menu svg{grid-column:2;grid-row:1/3;align-self:center;color:var(--primary)}.chat-context-editor{max-height:38dvh}.chat-tools-sidebar{width:320px;flex-basis:320px;padding:27px 21px 0;background:var(--surface)}.chat-tools-heading{margin-bottom:19px}.chat-tools-heading strong{display:flex;align-items:center;gap:11px;font-size:19px}.chat-tools-heading strong>svg{color:var(--primary)}.chat-tools-heading>div>span{font-size:11px;margin-left:31px}.chat-tool-tabs{display:flex;border-bottom:1px solid var(--border);margin-bottom:16px;flex-shrink:0}.chat-tool-tabs>button{flex:1;min-height:41px;border:0;border-bottom:2px solid transparent;padding:6px;background:transparent;color:var(--muted-foreground);font-size:13px}.chat-tool-tabs>button[aria-pressed=true]{color:var(--primary);border-bottom-color:var(--primary);font-weight:550}.chat-tool-tabs span{font-size:10px;margin-left:3px}.chat-tool-category-label{padding-top:9px}.chat-tool-category-label select{font-size:11px;min-height:30px}.chat-tool-list h2{font-size:10px;margin:14px 2px 8px}.chat-tool-row{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0 0 9px;gap:0;min-height:88px}.chat-tool-row:hover{border-color:color-mix(in srgb,var(--primary) 40%,var(--border));background:var(--background)}.chat-tool-row.is-enabled{border-color:var(--primary);background:var(--primary-soft)}.chat-tool-select{padding:13px 5px 13px 12px;gap:10px;align-items:flex-start}.chat-tool-select>.chat-tool-icon{width:34px;height:36px;background:var(--primary-soft);color:var(--primary);border-radius:8px;margin-top:1px}.chat-tool-select>span:not(.chat-tool-icon){gap:6px}.chat-tool-select strong{font-size:13px;font-weight:600;line-height:1.5}.chat-tool-select small{font-size:11px;line-height:1.6}.chat-tool-select em{font-size:10px;color:var(--primary);font-style:normal}.chat-tool-settings{width:28px;min-height:44px;margin-right:3px}.chat-recommended-flow{border-top:1px solid var(--border);padding:14px 0;margin-top:9px;flex-shrink:0}.chat-recommended-flow summary{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:550;cursor:pointer;min-height:35px;list-style:none}.chat-recommended-flow summary>svg:first-child{color:var(--primary)}.chat-recommended-flow summary>svg:last-child{margin-left:auto}.chat-recommended-flow p{background:var(--background);display:flex;align-items:center;justify-content:space-between;gap:6px;border-radius:8px;padding:12px 9px;font-size:10px;margin-top:9px}.chat-recommended-flow small{display:block;margin:9px 0 0 3px;color:var(--muted-foreground);font-size:10px}.chat-tools-footer{background:transparent;margin:0;padding:12px 0;border-top:1px solid var(--border)}.chat-tools-footer p{font-size:10px;line-height:1.8}.chat-message-author{font-size:13px}.chat-message-body{font-size:14px;line-height:1.9}.chat-message-body h2{font-size:19px;margin-top:25px}.chat-message-body h3{font-size:16px;margin-top:22px}.chat-message-body p{line-height:1.9}.chat-message.role-user .chat-message-body{background:var(--primary-soft);border-radius:14px 14px 4px 14px}.chat-message.role-assistant{margin-bottom:32px}.chat-origin{font-size:10px}.chat-invocation{border-radius:10px;box-shadow:none;margin:16px 0;background:var(--surface);border:1px solid var(--border)}.chat-invocation-heading{min-height:48px;gap:9px}.chat-invocation-heading strong{font-weight:550;font-size:13px}.chat-call-rationale{font-size:12px;line-height:1.8}.chat-call-summary{border-top:1px solid var(--border);padding:12px 15px}.chat-call-summary p{font-size:13px;line-height:1.8;margin:5px 0 0}.chat-call-summary small{display:block;font-size:11px;color:var(--muted-foreground);margin-top:9px;line-height:1.8}.chat-next-options{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:11px;margin-top:12px}.chat-next-options>span{color:var(--muted-foreground)}.chat-next-options button{background:var(--primary-soft);color:var(--primary);border:0;border-radius:5px;padding:6px 9px;min-height:34px}.chat-resolved-prompt{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--success)}.chat-original-message{margin-top:12px;font-size:12px;color:var(--muted-foreground)}.chat-original-message summary{min-height:34px;cursor:pointer}.chat-plain-results>div{margin:15px 0}.chat-plain-results strong{font-size:13px;font-weight:550}.chat-plain-results small{display:block;font-size:11px;color:var(--muted-foreground)}.chat-call-summary>span{color:var(--muted-foreground);font-size:10px}.chat-call-input{font-size:11px;color:var(--muted-foreground);padding:0 15px 12px;overflow-wrap:anywhere}.chat-invocation-details{font-size:12px}.chat-invocation-details>details{margin-top:14px}.chat-recommendations{display:block;margin-top:23px}.chat-recommend-label{font-size:12px;margin-bottom:7px}.chat-recommendation{display:grid;grid-template-columns:1fr auto;column-gap:15px;padding:15px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.chat-recommend-top{grid-column:1}.chat-recommendation>p{grid-column:1;font-size:12px;margin:9px 0}.chat-recommendation>details{grid-column:1}.chat-recommendation>details p{font-size:12px}.chat-recommendation>.chat-enable{grid-column:2;grid-row:1/4;align-self:center;min-height:36px;font-size:11px;padding:7px 10px;white-space:nowrap}.chat-settings-dialog{border-radius:14px;box-shadow:0 18px 80px color-mix(in srgb,var(--shadow-ink) 20%,transparent)}.chat-settings-dialog>.dialog-heading{padding:20px 24px 16px}.chat-settings-nav{background:var(--background)}.chat-settings-nav button.active,.chat-tool-selector button.active{background:var(--primary-soft);color:var(--primary)}.chat-tool-selector,.chat-tool-surface{background:var(--background)}.chat-tool-inspector{background:var(--surface)}.chat-settings-dialog .wb-panel{box-shadow:none;border-radius:10px}.chat-settings-dialog .wb-tool-heading h1{font-size:26px}.chat-settings-dialog .kg-plan{max-width:100%}.chat-settings-dialog .v3-agent-page{padding:24px}.left-collapsed .chat-primary-nav>button{justify-content:center;padding:10px}.left-collapsed .chat-history-disclosure,.left-collapsed .chat-primary-nav>button>span,.left-collapsed .chat-shortcuts,.left-collapsed .chat-workbench-link>span,.left-collapsed .chat-workbench-link>svg:last-child{display:none}.left-collapsed .chat-history-bottom>.chat-onboarding{padding:10px 0;justify-content:center;border:0;background:transparent}.left-collapsed .chat-onboarding>svg:last-child{display:none}.left-collapsed .chat-workbench-link{justify-content:center;padding-left:0;padding-right:0}@media(min-width:1500px){.chat-history{width:248px;flex-basis:248px}.chat-tools-sidebar{width:330px;flex-basis:330px;padding-left:24px;padding-right:24px}.chat-intro h1{font-size:32px}}@media(min-width:1280px) and (max-width:1399px){.chat-tools-sidebar{width:310px;flex-basis:310px;padding-left:17px;padding-right:17px}.chat-welcome{padding:32px 27px 0}.chat-intro{padding-right:68px}.chat-triz-illustration{width:62px;height:62px}.chat-intro h1{font-size:26px}.chat-progress{gap:10px}.chat-progress>li{padding:7px 11px;font-size:11px}}@media(max-width:1279px){.chat-tools-sidebar.desktop-open{display:none}.chat-tools-sidebar.mobile-open{display:flex;width:320px}}@media(max-width:1023px){.chat-welcome{padding:32px 30px 0}.chat-intro h1{font-size:29px}.chat-primary-nav{margin-bottom:14px}.chat-history.mobile-open{overflow-y:auto;width:270px}.left-collapsed .chat-history.mobile-open .chat-primary-nav>button>span{display:inline}.left-collapsed .chat-history.mobile-open .chat-primary-nav>button{justify-content:flex-start;padding:10px 13px}.left-collapsed .chat-history.mobile-open .chat-history-disclosure{display:flex}.left-collapsed .chat-history.mobile-open .chat-shortcuts{display:block}}@media(max-width:767px){.chat-topbar{padding:0 13px}.chat-topbar-actions{gap:1px}.chat-topbar-actions>.chat-icon-button{width:32px}.chat-model-button{max-width:190px;font-size:12px!important}.chat-tools-sidebar.mobile-open{width:min(330px,92vw)}.chat-welcome{padding:27px 24px 0}.chat-intro h1{font-size:26px}.chat-intro p{font-size:12px}.chat-composer-area{padding:10px 17px 12px}.chat-thread{padding:22px 22px 5px}.chat-settings-dialog{border-radius:0}.chat-settings-dialog .wb-tool-heading h1{font-size:24px}}@media(max-width:479px){.chat-topbar{height:60px;min-height:60px;padding:0 9px;gap:5px}.chat-topbar-title{gap:4px}.chat-model-button{max-width:140px;font-size:11px!important;gap:5px}.chat-mode-pill{max-width:56px;padding:2px 4px;font-size:9px}.chat-topbar-actions>.chat-icon-button{width:30px;height:40px}.chat-topbar-actions>button:first-child,.chat-topbar-actions>button[aria-label="打开新手引导"]{display:none}.chat-welcome{padding:25px 19px 0}.chat-intro{padding-right:0}.chat-intro h1{font-size:25px;max-width:315px;line-height:1.55}.chat-intro p{margin:12px 0 19px;font-size:12px;max-width:315px}.chat-triz-illustration{display:none}.chat-progress{width:100%;gap:6px}.chat-progress>li{padding:6px 8px;font-size:10px;gap:5px}.chat-progress>li>span{width:17px;height:17px;font-size:9px}.chat-progress>svg{width:12px}.chat-empty-state{padding:30px 0 35px;min-height:200px}.chat-empty-state h2{font-size:18px}.chat-empty-state p{font-size:12px;max-width:275px}.chat-empty-state>svg{width:45px;height:45px;margin-bottom:15px}.chat-composer-area{padding:9px 12px 12px}.chat-composer{border-radius:17px;padding:13px 12px 9px}.chat-composer>textarea{min-height:55px;font-size:14px}.chat-composer-toolbar>div>button{height:39px;font-size:10px;padding:0 6px}.chat-composer-toolbar>div>.chat-composer-tool-button{border-radius:8px}.chat-composer-note{font-size:9px;justify-content:center;text-align:center;margin-top:7px}.chat-composer-note>span:last-child{display:none}.chat-thread{padding:20px 17px 5px}.chat-recommendation{grid-template-columns:1fr}.chat-recommendation>.chat-enable{grid-column:1;grid-row:auto;margin-top:8px;justify-self:start;min-height:42px}.chat-recommendation summary{min-height:32px;margin-bottom:0;font-size:11px}.chat-settings-dialog .v3-agent-page{padding:17px 12px}.chat-tools-sidebar .chat-tool-select{min-height:80px}.chat-enabled-tools{max-height:85px;overflow:auto}.chat-context-editor{max-height:30dvh}}@media(max-height:780px) and (min-width:1024px){.chat-brand-row{margin-bottom:17px}.chat-primary-nav{gap:3px;margin-bottom:12px}.chat-primary-nav>button{min-height:39px}.chat-history-bottom>.chat-onboarding{padding:9px}.chat-local-profile{display:none}.chat-recommended-flow,.chat-tools-footer{padding:7px 0}.chat-welcome{padding-top:26px}.chat-empty-state{padding:20px 0}}.chat-intro h1{font-size:27px;font-weight:600}.chat-message-body p,.chat-recommendation>p{text-wrap:pretty;line-break:strict}.show-common .chat-tool-list h2{display:none}.show-common .chat-tool-list{padding-top:12px}.chat-context-editor{position:absolute;bottom:100%;left:0;width:100%;z-index:12;max-height:48dvh;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:16px;margin-bottom:10px;background:var(--surface);box-shadow:0 7px 25px color-mix(in srgb,var(--shadow-ink) 12%,transparent)}.chat-context-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;grid-column:1/-1}.chat-context-heading>p{margin:0}.chat-tool-surface .wb-matrix-page{padding:16px 20px 28px}.chat-tool-surface .wb-matrix-page>.wb-tool-heading{margin-bottom:10px;gap:14px}.chat-tool-surface .wb-matrix-page>.wb-tool-heading h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.chat-tool-surface .wb-matrix-page>.wb-tool-heading p{font-size:12px;margin:0}.chat-tool-surface .wb-matrix-page .v3-tool-guide{margin:10px 0}.chat-tool-surface .wb-matrix-page .wb-query-form{padding:12px;margin:12px 0;gap:11px}.chat-tool-surface .wb-matrix-page .wb-query-form select{min-height:35px;font-size:12px}.chat-tool-surface .wb-matrix-page .wb-matrix-tools{margin:12px 0 8px}.chat-tool-surface .wb-matrix-page .wb-dataset-bar{margin:7px 0}.chat-tool-surface .wb-matrix-page .wb-matrix-filter{margin:10px 0}.chat-tool-surface .wb-matrix-page .wb-matrix-scroll{height:min(630px,65dvh)}.chat-tool-surface .wb-matrix-page{display:flex;flex-direction:column}.chat-tool-surface .wb-matrix-page>*{flex-shrink:0}.chat-tool-surface .wb-matrix-page>.v3-tool-guide{order:10}@media(max-width:479px){.chat-intro h1{font-size:24px}.chat-context-editor{max-height:42dvh;padding:12px}.chat-tool-surface .wb-matrix-page{padding:16px 12px}}@media(prefers-reduced-motion:reduce){.chat-app *,.chat-settings-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.ai-supervision .chat-plan-expanded{font-size:13px}.ai-plan-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.ai-plan-actions button,.ai-suggested-step button{display:inline-flex;align-items:center;gap:5px;min-height:34px;border:1px solid var(--border);border-radius:7px;padding:6px 10px;background:var(--surface);color:var(--foreground);cursor:pointer}.ai-plan-actions button:hover:not(:disabled),.ai-suggested-step button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.ai-plan-actions button:disabled,.ai-suggested-step button:disabled{opacity:.45;cursor:not-allowed}.ai-plan-actions label{display:flex;align-items:center;gap:6px}.ai-plan-actions input[type=checkbox]{width:16px;height:16px}.ai-plan-nodes{display:flex;gap:8px;overflow-x:auto;padding:10px 0}.ai-plan-nodes button{flex:0 0 155px;border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:12px;text-align:left;display:grid;gap:5px;color:var(--foreground)}.ai-plan-nodes button.selected{border-color:var(--primary);background:var(--primary-soft)}.ai-plan-nodes small{color:var(--muted-foreground)}.ai-plan-step{border-top:1px solid var(--border);padding-top:8px}.ai-plan-step>label{display:grid;gap:6px;margin:10px 0}.ai-plan-actions select,.ai-plan-step input,.ai-plan-step textarea{border:1px solid var(--border);border-radius:7px;padding:8px 10px;background:var(--surface);color:var(--foreground);width:100%;min-width:0}.ai-plan-actions select{width:auto;max-width:100%}.ai-supervision pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:260px;overflow-y:auto}.ai-plan-error{color:var(--destructive);background:var(--destructive-soft);padding:10px;border-radius:6px}.ai-supervision details,.ai-understanding{padding:8px 0}.ai-suggested-step{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}.ai-suggested-step span{flex:1;min-width:160px}.ai-usage-list p{font-size:11px;overflow-wrap:anywhere;margin:8px 0}@media(max-width:767px){.ai-plan-actions button{min-height:40px}.ai-plan-nodes button{flex-basis:140px}.ai-supervision .chat-plan-bar{flex-wrap:wrap}}.chat-primary-nav>a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;color:inherit;text-decoration:none;font-size:14px}.chat-primary-nav>a:hover{background:var(--primary-soft);color:var(--primary)}.dual-plan-wrap{max-width:866px;margin:0 auto 28px;padding:0 30px}.dual-plan{border:1px solid var(--border);border-radius:14px;background:var(--surface)}.dual-plan .chat-plan-expanded{max-height:none;overflow:visible;padding:16px}.dual-plan .chat-plan-empty{padding:0 16px 12px}.dual-plan .ai-plan-nodes{padding:10px 16px}.dual-plan-advanced{margin:0 16px;border-top:1px solid var(--border)}.dual-plan summary{cursor:pointer;padding:10px 0;color:var(--muted-foreground)}.dual-step-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.dual-step-title h3{margin:0;font-size:18px}.dual-edit-notice button,.dual-step-title button{padding:9px 12px;border:1px solid var(--border);background:var(--surface);color:var(--foreground);border-radius:8px}.dual-step-hint{color:var(--muted-foreground)}.dual-selected{color:var(--success);padding:8px 0}button.dual-primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary);font-weight:600}.dual-step-run button{min-height:44px}.dual-edit-notice{position:sticky;bottom:0;padding:12px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:var(--surface-muted);border-top:1px solid var(--border);border-radius:0 0 14px 14px}.chat-tools-sidebar .chat-tool-settings{width:62px;font-size:11px;padding:4px}.manual-toolbox{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--background)}.manual-toolbox button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--border);border-radius:9px;padding:8px 12px;background:var(--surface);color:var(--foreground)}.manual-toolbox button:hover{border-color:var(--primary);color:var(--primary)}.manual-toolbox button:disabled{opacity:.5}.manual-directory{overflow:auto;padding:28px 36px 48px}.manual-directory-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.manual-directory-heading h1{font-size:28px;margin:0 0 10px}.manual-directory-heading p{margin:0;line-height:1.8;color:var(--muted-foreground)}.manual-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:30px}.manual-filters>label{flex:1;min-width:200px;display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:0 13px}.manual-filters input{min-width:0;width:100%;border:0;background:none;min-height:44px;outline:none}.manual-filters select{min-height:44px;padding:8px 12px;border:1px solid var(--border);background:var(--surface);border-radius:9px}.manual-filters>div{display:flex;gap:6px}.manual-filters button[aria-pressed=true]{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.manual-category{margin-bottom:28px}.manual-category h2{font-size:16px;margin:0 0 14px}.manual-tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.manual-tool-card{position:relative;border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden}.manual-toolbox .manual-open{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:0;width:100%;min-height:224px;padding:21px;background:none}.manual-open strong{font-size:16px;margin:15px 0 8px;padding-right:22px}.manual-open p{color:var(--muted-foreground);font-size:13px;line-height:1.8;margin:0 0 16px;flex:1}.manual-open>span:not(.chat-tool-icon){display:flex;gap:8px;align-items:center;color:var(--primary)}.manual-open small{margin-top:9px;color:var(--muted-foreground);font-size:11px;line-height:1.6}.manual-toolbox .manual-star{position:absolute;right:9px;top:9px;width:44px;border:0;background:none;color:var(--muted-foreground)}.manual-workspace{display:flex;flex-direction:column;flex:1;min-height:0}.manual-workspace-heading{padding:12px 22px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:var(--surface);border-block:1px solid var(--border)}.manual-workspace-heading>strong{font-size:17px}.manual-workspace-heading>span{color:var(--muted-foreground);display:flex;align-items:center;gap:5px;font-size:12px;flex:1}.manual-workspace-body{display:flex;flex:1;min-height:0}.manual-tool-surface{overflow:auto;min-width:0;flex:1}.manual-inspector{width:280px;flex-shrink:0;border-left:1px solid var(--border);padding:20px}.manual-inspector,.manual-review{overflow:auto;background:var(--surface)}.manual-review{padding:16px 24px;max-height:45dvh;border-top:1px solid var(--border)}.manual-review>div:first-child{display:flex;align-items:center;justify-content:space-between}.manual-review>p{color:var(--muted-foreground);font-size:12px}.manual-review-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.manual-review-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px}.manual-review-fields input,.manual-review-fields select,.manual-review-fields textarea{border:1px solid var(--border);border-radius:8px;padding:9px;background:var(--background);min-height:44px}.manual-workspace-footer{padding:12px 24px;display:flex;align-items:center;gap:16px;justify-content:space-between;border-top:1px solid var(--border);background:var(--surface)}.manual-workspace-footer p{color:var(--muted-foreground);font-size:12px;margin:0}.manual-error{color:var(--destructive);margin:0;padding:10px 24px;background:var(--surface)}.manual-result{background:var(--surface);border-top:1px solid var(--border);padding:12px 24px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-height:30dvh;overflow:auto}.manual-result>strong{font-size:13px}.manual-result>span{font-size:12px;flex:1;min-width:180px;color:var(--muted-foreground)}.manual-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:200px;overflow:auto}.manual-result details{font-size:12px;max-width:100%}@media(max-width:767px){.dual-plan-wrap{padding:0 16px}.dual-step-title{align-items:flex-start}.manual-directory{padding:20px 16px}.manual-directory-heading{flex-direction:column;align-items:flex-start}.manual-directory-heading h1{font-size:24px}.manual-directory-heading p{font-size:14px}.manual-filters{align-items:stretch}.manual-filters>label{flex-basis:100%}.manual-filters>div{flex-wrap:wrap}.manual-tool-grid{grid-template-columns:1fr}.manual-toolbox .manual-open{min-height:200px}.manual-workspace-heading{padding:10px 12px;gap:8px}.manual-workspace-heading>strong{flex:1}.manual-workspace-heading>span{flex-basis:100%;order:5}.manual-inspector{position:absolute;inset:165px 0 80px 15%;z-index:20;width:auto;box-shadow:-8px 0 24px #0002}.manual-workspace-footer{padding:10px 12px max(10px,env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:8px}.manual-result,.manual-review{padding:12px}.manual-result>span{flex-basis:100%}.manual-review-fields{grid-template-columns:1fr}.manual-toolbox input,.manual-toolbox select,.manual-toolbox textarea{font-size:16px}.manual-workspace-body .wb-tool-page{padding:18px 14px}}