.chat-kind-tabs { display:flex; gap:6px; padding:10px 12px; }
.chat-kind-tabs button { flex:1; border:1px solid var(--scene-line); background:var(--scene-control); color:var(--scene-text); padding:9px; border-radius:9px; font:inherit; font-size:12px; cursor:pointer; }
.chat-kind-tabs button[aria-pressed=true] { background:var(--scene-selected); border-color:var(--scene-accent); color:var(--scene-link); }
body.agent-workspace-open { overflow:hidden; }
body.agent-workspace-open #desktopAgentLauncher, body.agent-workspace-open #desktopAgentBanner { display:none !important; }
.agent-workspace { --at-panel:var(--scene-panel,#202224); position:fixed; z-index:10011; inset:0; display:grid; grid-template-columns:250px minmax(0,1fr) 230px; grid-template-rows:128px minmax(0,1fr); gap:12px; padding:0 20px 18px; background:var(--scene-surface,#17191b); color:var(--scene-text,#e8eaed); font-family:system-ui,sans-serif; }
.agent-workspace[hidden], .agent-workspace [hidden] { display:none !important; }
.agent-workspace *, .agent-workspace *::before, .agent-workspace *::after { box-sizing:border-box; }
.agent-workspace > .category-scene { z-index:0; }
.at-banner { grid-column:1/-1; display:flex; align-items:center; justify-content:center; text-align:center; z-index:1; }
.at-banner h1 { margin:0; font-size:42px; letter-spacing:-1.5px; color:#a6dfd2; }
.at-banner p { margin:5px 0 0; font-size:13px; color:var(--scene-text); }
.at-banner #atClose { position:absolute; right:20px; top:16px; font-size:25px; }
.agent-workspace button { cursor:pointer; }
.agent-workspace button:focus-visible, .agent-workspace input:focus-visible { outline:2px solid var(--scene-accent); outline-offset:2px; }
.at-sidebar, .at-main, .at-details { position:relative; min-width:0; min-height:0; border:1px solid var(--scene-line); border-radius:14px; background:var(--at-panel); overflow:hidden; }
.at-sidebar { display:flex; flex-direction:column; }
.at-new { margin:2px 12px 12px; padding:12px; border:0; border-radius:10px; background:var(--scene-accent); color:var(--scene-on-accent); text-align:left; font-weight:700; }
.at-search { padding:0 12px 10px; }
.at-search input { width:100%; padding:10px; border:1px solid var(--scene-line); border-radius:9px; background:var(--scene-control); color:var(--scene-text); font-size:12px; }
.at-list { flex:1; overflow:auto; min-height:0; padding:0 8px 12px; }
.at-group { margin:14px 8px 7px; color:var(--scene-muted); font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:.08em; }
.at-thread { width:100%; padding:12px 8px; display:flex; gap:10px; text-align:left; border:1px solid transparent; border-radius:10px; background:transparent; color:inherit; font:inherit; }
.at-thread:hover { background:var(--scene-control); }
.at-thread[aria-current=true] { border-color:var(--scene-line); background:var(--scene-selected); box-shadow:inset 3px 0 var(--scene-accent); }
.at-thread-icon { font-size:22px; color:var(--scene-accent); }
.at-thread-text { min-width:0; flex:1; }
.at-thread strong, .at-thread small, .at-thread-tags { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.at-thread strong { font-size:12px; margin-bottom:5px; }
.at-thread small { font-size:11px; color:var(--scene-muted); }
.at-thread-tags { margin-top:7px; font-size:10px; color:var(--scene-link); }
.at-empty { color:var(--scene-muted); padding:12px; font-size:13px; line-height:1.6; }
.at-main { display:flex; flex-direction:column; }
.at-chat-header { flex-shrink:0; display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--scene-line); }
.at-chat-header > div { min-width:0; flex:1; }
.at-chat-header h2 { margin:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.at-chat-header p { margin:4px 0 0; font-size:11px; color:var(--scene-muted); }
.at-chat-header button, #atClose, #atMore { padding:8px; background:var(--scene-control); color:var(--scene-text); border:1px solid var(--scene-line); border-radius:8px; }
#atBack { display:none; }
#atChatMount { flex:1; min-height:0; display:flex; }
#agentWorkspace #agentChatPanel { position:relative; inset:auto; flex:1; width:100%; height:100%; min-height:0; max-width:none; max-height:none; border:0 !important; border-radius:0 !important; box-shadow:none; transform:none; transition:none; pointer-events:auto; --ag-bg:var(--scene-panel); --ag-surface:var(--scene-control); --ag-surface2:var(--scene-hover); --ag-line:var(--scene-line); --ag-text:var(--scene-text); --ag-muted:var(--scene-muted); }
#agentWorkspace #agcExpandButton, #agentWorkspace [aria-label="Agent conversations"], #agentWorkspace [aria-label="Minimize chat"] { display:none !important; }
#agentWorkspace #agentChatPanel .agc-header { min-height:44px; }
#agentWorkspace .agc-welcome { max-width:620px; width:100%; align-self:center; }
#agentWorkspace .agc-thread { padding:22px !important; }
#agentWorkspace .agc-bubble { font-size:14px !important; line-height:1.65; }
#agentWorkspace .agc-composer-wrap { width:100%; max-width:900px; align-self:center; }
.at-notice { flex-shrink:0; padding:0 16px; margin:0; font-size:12px; line-height:1.6; color:var(--scene-link); }
.at-notice:not(:empty) { padding-block:8px; }
.at-details { padding:16px; overflow-y:auto; }
.at-mascot { width:120px; height:95px; object-fit:contain; display:block; margin:auto; }
.at-details h2 { font-size:17px; margin:6px 0; }
.at-details p { font-size:12px; line-height:1.6; color:var(--scene-muted); }
.at-details h3 { font-size:13px; margin:22px 0 12px; }
.at-details label { display:block; margin:12px 0; font-size:11px; color:var(--scene-muted); }
.at-details input { display:block; width:100%; padding:9px; margin-top:5px; border:1px solid var(--scene-line); border-radius:8px; background:var(--scene-control); color:var(--scene-text); font:inherit; font-size:12px; }
.at-details small { font-size:10px; color:var(--scene-muted); }
.at-details button { width:100%; padding:9px; margin-top:12px; border:1px solid var(--scene-line); border-radius:9px; background:var(--scene-control); color:var(--scene-text); }
.at-spark { margin-top:24px; padding:14px; border:1px solid var(--scene-line); border-radius:12px; background:linear-gradient(145deg,#8866cc20,transparent); }
.at-spark strong { font-size:12px; }
.at-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(min-width:1280px) { body.desktop-navigation-enabled .agent-workspace { left:280px; } }
@media(max-width:1499px) { .agent-workspace { grid-template-columns:230px minmax(0,1fr); } .at-details { display:none; } .at-show-details .at-details { display:block; position:absolute; z-index:7; right:20px; top:210px; bottom:18px; width:260px; box-shadow:0 16px 50px #0006; } }
@media(min-width:1500px) { #atDetailsToggle { display:none; } }
@media(max-width:799px) { .agent-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:82px minmax(0,1fr); padding:0 10px 10px; gap:6px; } .at-banner h1 { font-size:29px; } .at-banner p { font-size:10px; } .at-main { display:none; } .at-show-chat .at-sidebar { display:none; } .at-show-chat .at-main { display:flex; } #atBack { display:block; } .at-chat-header { padding:10px; } .at-chat-header h2 { font-size:14px; } .at-show-details .at-details { top:160px; right:10px; bottom:10px; max-width:calc(100% - 20px); } #agentWorkspace .agc-thread { padding:12px !important; } }
#agentWorkspace .agc-msg-user .agc-bubble { color:var(--scene-text) !important; background:var(--scene-selected) !important; }
#agentWorkspace .agc-msg-assistant { gap:10px; }
#agentWorkspace .agc-msg-assistant::before { content:''; display:block; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:var(--scene-control) url('/images/agent-welcome.webp') center/cover no-repeat; }
#agentWorkspace .agc-msg-assistant .agc-bubble { background:transparent !important; padding-top:4px !important; }
#agentWorkspace .agc-msg-assistant .agc-bubble::before { content:'Agent'; display:block; margin-bottom:8px; color:var(--scene-muted); font-size:11px; font-weight:600; }
#agentWorkspace .agc-bubble :is(h1,h2,h3) { color:var(--scene-text); font-size:1.15em; margin:16px 0 10px; }
#agentWorkspace .agc-bubble table { width:100%; border-collapse:collapse; margin:14px 0; background:var(--scene-control); }
#agentWorkspace .agc-bubble :is(td,th) { border:1px solid var(--scene-line); padding:9px; text-align:left; }
#agentWorkspace .agc-bubble th { background:var(--scene-selected); }

/* The conversation list identifies the thread; keep the reading pane clear. */
#agentWorkspace .at-chat-header > div,
#agentWorkspace #agentChatPanel .agc-header { display:none !important; }
#agentWorkspace .at-chat-header { min-height:0; padding:6px 10px; justify-content:space-between; }
@media(min-width:1500px) { #agentWorkspace .at-chat-header { display:none; } }
#agentWorkspace .at-agent-controls { float:right; display:flex; gap:4px; margin:0 0 8px 6px; }
#agentWorkspace .at-agent-controls button { width:30px; height:32px; margin:0; padding:4px; font-size:18px; }
