.agent-layout { display:grid;grid-template-columns:280px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100dvh - 80px); }
.agent-sidebar { padding:30px 24px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:rgba(247,244,238,.65); }
.agent-back { font-size:12px;color:var(--muted);text-decoration:none;margin-bottom:34px; }
.agent-identity { display:flex;align-items:center;gap:12px;margin-bottom:26px; }
.agent-symbol { display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--teal);color:#fff;font-size:27px; }
.agent-identity strong { display:block;font-size:15px; }.agent-identity div>span { font-size:11px;color:var(--muted); }
.new-chat { display:flex;gap:12px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;padding:11px;color:var(--ink);font:inherit;font-size:13px;cursor:pointer; }.new-chat>span { font-size:20px;line-height:1; }
.sidebar-section { margin-top:32px; }.agent-label { margin:0;color:var(--muted);font-size:10px;font-weight:650;letter-spacing:1.5px; }
.workspace-name { display:flex;align-items:center;gap:10px;margin-top:18px; }.workspace-icon { display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:6px;color:var(--teal); }.workspace-name strong { display:block;font-size:13px; }.workspace-name div>span { font-size:11px;color:var(--muted); }.sidebar-copy { color:var(--muted);font-size:12px;line-height:1.8;margin-top:15px; }
.capabilities { padding-left:17px;color:var(--muted);font-size:12px;line-height:2.5; }.capabilities li::marker { color:var(--teal); }
.connection-panel { margin-top:auto;padding:18px 14px 14px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.55); }.connection-heading { display:flex;gap:8px;align-items:center;font-size:12px; }.status-dot { width:7px;height:7px;border-radius:50%;background:var(--amber);flex-shrink:0; }.status-dot.ready { background:var(--teal); }.status-dot.offline { background:var(--coral); }.connection-panel p { font-size:11px;color:var(--muted);line-height:1.7;margin:9px 0; }.connection-panel button { padding:0;border:0;background:none;font:inherit;font-size:11px;color:var(--teal);cursor:pointer; }.sidebar-footnote { font-size:10px;color:var(--muted);margin:14px 0 0;line-height:1.7; }
.chat-workspace { min-width:0;display:flex;flex-direction:column;height:calc(100dvh - 80px);min-height:640px; }.chat-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;padding:28px 40px;border-bottom:1px solid rgba(222,216,206,.55); }.chat-heading h1 { font-size:19px;font-weight:550;margin:5px 0 0;letter-spacing:-.4px; }.local-badge { padding:5px 10px;border:1px solid var(--line);border-radius:20px;font-size:10px;white-space:nowrap;color:var(--muted); }.local-badge span { color:var(--teal);margin-right:4px; }
.conversation { overflow-y:auto;flex:1;padding:32px 40px;scroll-behavior:smooth; }.welcome { max-width:620px;margin:20px auto 12px;text-align:center; }.welcome-mark { display:grid;place-items:center;width:60px;height:60px;border:1px solid #cbd9d2;background:#e8efea;color:var(--teal);border-radius:19px;font-size:42px;margin:0 auto 25px;transform:rotate(-7deg); }.welcome h2 { font-size:clamp(30px,3.1vw,44px);font-weight:500;line-height:1.15;letter-spacing:-1.7px;margin:18px 0; }.welcome>p:not(.agent-label) { font-size:14px;color:var(--muted);line-height:1.8; }.suggestion-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:30px;text-align:left; }.suggestion-grid button { position:relative;padding:20px 34px 20px 18px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.7);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s; }.suggestion-grid strong { display:block;font-weight:550;font-size:13px;color:var(--ink);margin-bottom:5px; }.suggestion-grid button>span:last-child { font-size:11px;color:var(--muted); }.suggestion-grid button>span:first-child { position:absolute;right:16px;top:16px;color:var(--teal); }.suggestion-grid button:hover { border-color:var(--teal);background:#fff; }
.composer-area { padding:14px 40px 20px;margin:0 auto;width:100%;max-width:900px; }.composer { background:#fff;border:1px solid #cecfc5;border-radius:14px;box-shadow:0 6px 24px rgba(39,35,30,.04);padding:16px 16px 12px; }.composer:focus-within { border-color:var(--teal); }.composer textarea { width:100%;resize:none;min-height:36px;max-height:160px;padding:0;border:none;outline:none;background:transparent;color:var(--ink);font:inherit;font-size:14px;line-height:1.7; }.composer-bottom { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px; }.composer-bottom>span { font-size:10px;color:var(--muted); }.composer-bottom button { width:34px;height:34px;border:0;border-radius:9px;background:var(--teal);color:#fff;font-size:23px;cursor:pointer; }.composer-bottom button:disabled { opacity:.35;cursor:default; }.composer-footnote { display:flex;justify-content:space-between;gap:12px;font-size:9px;color:var(--muted);margin-top:10px; }.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; }
.chat-message { max-width:750px;margin:0 auto 26px;display:flex;gap:12px; }.message-avatar { display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:9px;background:#e3ece6;color:var(--teal);font-size:21px; }.chat-message.user .message-avatar { background:#eae5dd;color:var(--muted);font-size:10px;font-weight:650; }.message-body { min-width:0;flex:1; }.message-name { display:block;font-size:11px;font-weight:650;margin:4px 0 9px; }.message-text { white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;margin:0; }.chat-message.user .message-text { color:var(--muted); }.tool-trace { margin-top:14px;color:var(--muted);font-size:11px;border:1px solid var(--line);border-radius:7px;padding:8px 12px; }.tool-trace summary { cursor:pointer; }.tool-trace ul { padding-left:18px;margin-bottom:2px;line-height:2; }.chat-error { color:#9a3827;font-size:12px;border-left:2px solid var(--coral);padding:8px 12px;margin:0 0 12px;background:#fff3ec; }.working { font-size:12px;color:var(--teal);margin:0 0 12px; }.thinking-dot { display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--teal);animation:thinking 1s ease-in-out infinite alternate; }@keyframes thinking { to { opacity:.3; } }
button:focus-visible,a:focus-visible,textarea:focus-visible { outline:2px solid var(--teal);outline-offset:4px; }button:disabled { cursor:default;opacity:.5; }[hidden] { display:none!important; }
@media(min-width:1450px) { .welcome { margin-top:55px; } }
@media(max-width:950px) { .agent-layout { grid-template-columns:230px minmax(0,1fr); }.agent-sidebar { padding:24px 18px; }.chat-heading,.conversation { padding:24px; }.composer-area { padding:14px 24px 20px; }.suggestion-grid { gap:8px; }.suggestion-grid button { padding:16px 28px 16px 12px; } }
@media(max-width:700px) { .agent-layout { display:flex;flex-direction:column; }.agent-sidebar { padding:12px 20px;border-right:0;border-bottom:1px solid var(--line);display:flex;flex-direction:row;align-items:center;gap:15px;flex-wrap:wrap; }.agent-back,.sidebar-section,.sidebar-footnote { display:none; }.agent-identity { margin:0;flex:1; }.agent-identity div>span { display:none; }.agent-symbol { width:30px;height:30px;font-size:22px; }.new-chat { font-size:11px;padding:8px 12px; }.connection-panel { padding:0;border:0;background:none;margin:0;width:100%; }.connection-heading { display:inline-flex;margin-right:10px; }.connection-panel p { display:inline;margin:0;font-size:10px; }.connection-panel button { margin-left:8px;font-size:10px; }.chat-workspace { height:auto;min-height:calc(100dvh - 210px); }.chat-heading { padding:20px; }.chat-heading h1 { font-size:17px; }.chat-heading .agent-label { font-size:8px; }.conversation { padding:24px 20px;overflow-y:visible; }.welcome { margin:10px auto; }.welcome h2 { font-size:34px; }.welcome-mark { width:45px;height:45px;font-size:30px;margin-bottom:22px; }.suggestion-grid button { min-height:95px; }.suggestion-grid button>span:last-child { font-size:10px; }.composer-area { padding:14px 16px 20px;margin-top:auto; }.composer-footnote>span:last-child { display:none; }.message-text { font-size:13px; }.site-nav { gap:12px; }.site-header { padding:12px 20px; }.site-header .brand>span:last-child { display:none; } }
@media(prefers-reduced-motion:reduce) { .conversation { scroll-behavior:auto; }.thinking-dot { animation:none; } }
@media(min-width:701px) { .agent-layout { height:calc(100dvh - 76px);min-height:0; }.agent-sidebar { overflow-y:auto; }.chat-workspace { height:100%;min-height:0; } }
@media(min-width:701px) and (max-height:850px) { .chat-heading { padding:18px 32px; }.conversation { padding:20px 32px; }.welcome { margin:0 auto; }.welcome-mark { width:42px;height:42px;font-size:30px;margin-bottom:16px; }.welcome h2 { font-size:32px;margin:12px 0; }.welcome>p:not(.agent-label) { margin:10px 0; }.suggestion-grid { margin-top:20px; }.suggestion-grid button { padding-top:14px;padding-bottom:14px; }.agent-back { margin-bottom:22px; }.sidebar-section { margin-top:22px; } }

.connection-panel #open-local-chat { display:inline-block;font-size:12px;color:var(--teal);margin:4px 12px 4px 0; }

.response-source { display:inline-block;font-size:10px;font-weight:650;padding:3px 8px;border-radius:5px;background:#e8efea;color:var(--teal);border:1px solid #cbd9d2; }
.response-source.llm,.response-source.context { background:#f2ede4;color:#79602e;border-color:#e2d6bb; }
.response-source.tool_error { background:#fff3ec;color:#9a3827;border-color:#e7c7b9; }
.source-explanation { font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0 14px; }
.tool-trace li { margin:8px 0 14px;overflow-wrap:anywhere; }.tool-trace li p { margin:3px 0;font-size:11px;line-height:1.6; }.tool-trace li strong { font-size:11px;color:var(--ink); }
