.agent-chat-active .intro{padding:22px 0 20px}.agent-chat-active .intro h1{font-size:30px;letter-spacing:-1px;margin:8px 0}.agent-chat-active .intro>p{font-size:13px;max-width:850px;margin-bottom:8px}.agent-chat-active .source-line{margin-top:10px}.agent-chat-active .intro>.eyebrow{display:none}.agent-chat-active .workspace{padding-top:18px;gap:24px}.agent-chat-active #status{display:none}.agent-chat-panel{padding-bottom:0}.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.chat-heading h2{font-size:23px;margin:6px 0 0}.chat-heading .eyebrow{font-size:9px}.chat-session-label{font-size:10px;color:var(--muted);white-space:nowrap}.chat-shell{border:1px solid #cbd5cb;border-radius:12px;overflow:hidden;background:#fffef9;box-shadow:0 6px 30px #173b3807}.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 17px;border-bottom:1px solid var(--line);background:#edf1e9;font-size:10px;color:var(--muted)}.chat-toolbar>div{display:flex;gap:12px}.chat-text-button{padding:3px 0;color:var(--ink);background:none;border:0;font-size:10px}.chat-messages{height:clamp(400px,55svh,700px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:26px 22px 12px;scroll-behavior:smooth}.chat-message{display:flex;gap:12px;margin:0 0 25px;align-items:flex-start}.chat-avatar{width:27px;height:27px;flex:0 0 27px;border-radius:8px;color:#f6f8f0;background:#23483e;text-align:center;line-height:27px;font:600 12px/27px system-ui;margin-top:1px}.chat-bubble{flex:1;min-width:0}.chat-message-label{font-size:10px;letter-spacing:.3px;color:#567062;margin-bottom:8px;font-weight:700}.chat-prose{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.chat-user .chat-avatar{background:#e6e8dc;color:#38503f}.chat-user .chat-bubble{background:#eef0e7;padding:13px 16px;border-radius:0 12px 12px 12px}.chat-tool .chat-avatar{background:#e8ede6;color:#315e48}.chat-tool .chat-bubble{border-left:2px solid #86a38e;padding-left:15px}.chat-pending{color:#6c7a70;animation:chat-pulse 1.7s ease-in-out infinite}.chat-starters{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.chat-starter{background:#f9faf5;border:1px solid #cbd6c8;border-radius:8px;font-size:11px;color:var(--ink);padding:10px 12px;text-align:left}.chat-starter:hover{background:#eaf0e5;border-color:#71917c}.chat-action{background:#f0f3eb;border:1px solid #ccd8c8;border-radius:9px;padding:15px;margin-top:13px}.chat-tool-name{font-size:14px;font-weight:600;display:inline-block;margin-right:10px}.chat-tool-code{font:10px ui-monospace,monospace;color:#68806d}.chat-edit{margin-top:12px;font-size:11px}.chat-edit summary{margin-bottom:7px;color:#45634f}.chat-parameter-fields{display:flex;gap:12px;flex-wrap:wrap}.chat-parameter-fields label{display:flex;flex-direction:column;gap:5px;font-size:10px;min-width:145px;flex:1}.chat-parameter-fields select{padding:7px 10px;font-size:12px}.chat-action-buttons{display:flex;align-items:center;gap:10px;margin-top:13px}.chat-action-buttons button{border-radius:6px;min-height:38px;padding:9px 14px}.chat-table-scroll{overflow-x:auto;margin:10px 0 12px;border:1px solid #e2e8dc;border-radius:6px}.chat-table-scroll table{font-size:11px;min-width:280px}.chat-table-scroll th{background:#f1f4eb;color:#4a6652}.chat-table-scroll th,.chat-table-scroll td{padding:8px 11px!important}.chat-table-scroll tbody tr:last-child td{border-bottom:0}.chat-result-note{font-size:10px;line-height:1.7;color:#6c786c;white-space:pre-wrap;margin:8px 0}.chat-result-caption{font-size:12px;color:#345540;font-weight:600;margin:5px 0}.chat-raw{font-size:10px;margin-top:10px;color:#697868}.chat-raw pre{max-height:230px;overflow:auto;font-size:10px}.chat-composer{border-top:1px solid var(--line);padding:10px 17px 9px;background:#fafbf6}.chat-composer #agent-status{font-size:11px;color:#49664e;min-height:23px;line-height:1.55;margin:0 0 5px}.chat-composer form{border:1px solid #a9bcaa;border-radius:10px;background:white;overflow:hidden}.chat-composer textarea{resize:vertical;min-height:68px;max-height:180px;display:block;width:100%;border:0;background:none;padding:12px 13px;font:13px/1.7 'DM Sans',system-ui,sans-serif;color:var(--ink);outline:none}.chat-composer form:focus-within{outline:2px solid #8caa8b;outline-offset:1px}.chat-compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 10px 9px}.chat-auto{display:flex;align-items:center;gap:6px;font-size:10px;color:#536a55}.chat-auto input{accent-color:#23483e;width:14px;height:14px;margin:0}.chat-compose-bottom .primary{border-radius:7px;padding:8px 14px;min-height:36px}.chat-compose-bottom .quiet{font-size:11px;border:0}.chat-privacy{font-size:9px;color:#7b8678;line-height:1.5;margin:7px 2px 0}.chat-error{color:#9d3824;font-size:12px}.chat-scenario{margin:10px 0;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:11px}.chat-scenario summary{font-weight:600}.chat-scenario p{margin:8px 0}.chat-source{font-size:10px;margin-right:12px;display:inline-block}.chat-shell #agent-catalog{padding:14px 20px;background:#f5f7ef;max-height:350px;overflow:auto;border-bottom:1px solid var(--line)}#agent-catalog h3{font-size:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.agent-chat-active footer{margin-top:24px}.chat-message button:disabled{cursor:default}.chat-message button:focus-visible,.chat-composer textarea:focus-visible{outline:2px solid #d45d39;outline-offset:2px}@keyframes chat-pulse{50%{opacity:.6}}@media(prefers-reduced-motion:reduce){.chat-pending{animation:none}.chat-messages{scroll-behavior:auto}}@media(max-width:800px){.chat-heading{align-items:start}.chat-session-label{display:none}.chat-toolbar{flex-wrap:wrap;gap:5px}.chat-messages{padding:20px 12px 8px}.chat-message{gap:8px}.chat-parameter-fields label{min-width:120px}}@media(max-width:650px){.agent-chat-active header{padding-top:13px;padding-bottom:13px}.agent-chat-active .intro{padding:13px 0}.agent-chat-active .intro h1{font-size:23px;letter-spacing:-.7px}.agent-chat-active .intro>p{font-size:11px;line-height:1.6;margin:0}.agent-chat-active .source-line{display:none}.agent-chat-active .workspace{padding-top:8px}.agent-chat-active aside{margin-bottom:12px}.agent-chat-active .tab{padding:9px 8px;font-size:10px}.chat-heading{margin-bottom:10px}.chat-heading h2{font-size:20px}.chat-heading .eyebrow{display:none}.chat-shell{border-radius:9px}.chat-toolbar{padding:9px 11px;font-size:9px}.chat-toolbar>div{gap:14px}.chat-messages{height:clamp(320px,51svh,600px);padding-top:18px}.chat-avatar{width:23px;height:23px;flex-basis:23px;font-size:10px;line-height:23px;border-radius:6px}.chat-prose{font-size:12px}.chat-user .chat-bubble{padding:10px 11px}.chat-action{padding:11px}.chat-tool-name{display:block;font-size:13px}.chat-action-buttons{gap:6px}.chat-action-buttons .primary,.chat-action-buttons .quiet{font-size:10px;padding:8px 10px}.chat-parameter-fields{gap:8px}.chat-parameter-fields label{min-width:95px}.chat-composer{padding:9px 10px}.chat-auto{font-size:9px;max-width:185px;line-height:1.5}.chat-compose-bottom{gap:5px}.chat-privacy{font-size:8px}.chat-composer textarea{font-size:16px;min-height:70px}.chat-table-scroll table{font-size:10px}.chat-result-note{font-size:9px}.chat-starter{font-size:10px;padding:9px}.chat-message{margin-bottom:21px}}
.chat-parameter-fields input[type=number]{width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font:12px system-ui}
/* Keep the composer and the execution stream together inside the visible workspace. */
.agent-chat-active .intro{display:none}.chat-shell{display:flex;flex-direction:column;height:calc(100dvh - 185px);min-height:440px;max-height:1000px}.chat-toolbar,.chat-composer{flex-shrink:0}.chat-messages{height:auto;min-height:150px;flex:1}.chat-shell #agent-catalog{flex-shrink:1;max-height:35%}@media(max-width:650px){.chat-shell{height:calc(100dvh - 178px);min-height:380px}.chat-messages{height:auto;min-height:130px}.agent-chat-active footer{margin-top:14px}}
.chat-local-pane{padding:10px 16px;background:#fff5dc;border-bottom:1px solid #dfd5b9;font-size:10px;flex-shrink:0}.chat-local-pane[hidden]{display:none}.chat-local-pane strong{display:block;overflow-wrap:anywhere}.chat-local-pane label{display:flex;align-items:flex-start;gap:7px;line-height:1.6;margin:6px 0}.chat-local-pane input{width:14px;height:14px;flex-shrink:0;accent-color:#23483e}.chat-toolbar>div{flex-wrap:wrap}

.chat-next-action{display:block;width:100%;margin:5px 0 10px;min-height:42px;text-align:left;white-space:normal}.chat-next-action[hidden]{display:none}.chat-starter:disabled{opacity:.55}.chat-parameter-fields input,.chat-parameter-fields select{min-height:40px}
