/* Agent-specific appearance; friends chat retains its own theme. */
html:not([data-theme=light]) #agentWorkspace { --scene-surface:#0b131b; --scene-panel:#0e1922; --scene-control:#142330; --scene-hover:#1b3040; --scene-line:#294353; --scene-text:#eff3f8; --scene-muted:#b5c4d2; --at-panel:var(--scene-panel); background:var(--scene-surface); }
html:not([data-theme=light]) #agentWorkspace #agentChatPanel { --ag-bg:#0e1922; --ag-surface:#101e29; --ag-surface2:#192b38; --ag-line:#294353; --ag-text:#eff3f8; --ag-muted:#b5c4d2; --ag-mine:#203345; }
#agentWorkspace .at-banner { justify-content:flex-start; gap:16px; text-align:left; }
.at-agent-brand { display:flex; align-items:center; gap:14px; min-width:0; }
.at-agent-brand > img { width:66px; height:66px; object-fit:contain; }
.at-agent-heading { display:flex; align-items:center; gap:20px; }
#agentWorkspace .at-banner h1 { color:var(--scene-text); font-size:30px; letter-spacing:-.5px; }
.at-agent-ready { font-size:11px; color:var(--scene-muted); white-space:nowrap; }
.at-agent-ready::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#64d4ac; margin-right:7px; }
.at-agent-subtitle { display:block; font-size:11px; color:var(--scene-muted); margin-top:3px; }
#agentWorkspace .at-thread { border-radius:10px; padding:13px 10px; }
#agentWorkspace .at-new { border-radius:9px; }
#agentWorkspace .agc-msg-user .agc-bubble { background:var(--ag-mine) !important; }
#agentWorkspace .agc-msg-assistant .agc-bubble { background:var(--ag-surface) !important; border-radius:12px; padding:12px !important; }
.agc-workout { container-type:inline-size; }
.agc-workout-body > h3 { color:var(--ag-accent); font-size:17px; }
.agc-workout-body > .agc-workout-metrics { background:var(--ag-surface); border:1px solid var(--ag-line); border-radius:12px; padding:12px; margin-bottom:10px; }
.agc-workout-bottom .agc-workout-footer { width:100%; }
.agc-workout-footer > button { flex:1; min-height:38px; }
@container(min-width:700px) {
 .agc-workout-body { display:grid; grid-template-columns:165px minmax(0,1fr); gap:10px 12px; }
 .agc-workout-body > h3,.agc-workout-body > .agc-rich-note { grid-column:1/-1; margin:0; }
 .agc-workout-body > .agc-workout-metrics { flex-direction:column; justify-content:space-around; gap:18px; margin:0 0 12px; }
 .agc-workout-body > .agc-exercise-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 12px; }
 .agc-workout-metrics strong { font-size:13px; }.agc-workout-metrics small{font-size:11px;}
}
@media(min-width:1500px) { #agentWorkspace .at-banner { margin-left:calc(var(--chat-shell-list) + var(--chat-shell-gap)); } }
@media(max-width:799px) { .at-agent-brand > img { width:42px;height:48px; }.at-agent-ready,.at-agent-subtitle{display:none;}#agentWorkspace .at-banner h1{font-size:24px;}}
.agc-workout-body { clear:both; }
.agc-workout > select { margin-bottom:10px; }
