/* Give the Agent conversation most of the available workspace. */
.agent-view{max-width:none;width:100%;box-sizing:border-box;padding:22px clamp(12px,1.5vw,28px) 24px}
.agent-page-head{gap:18px;margin-bottom:16px}
.agent-page-head h1{font-size:clamp(1.7rem,2.5vw,2.3rem);margin:8px 0}
.agent-page-head p{max-width:850px}
.agent-chat-shell{min-width:0;height:max(560px,calc(100dvh - 245px));min-height:0}
.agent-chat-log{min-height:0;flex:1;overflow-y:auto}
@media(min-width:1101px){.agent-layout{grid-template-columns:180px minmax(0,1fr) 190px;gap:12px}.agent-sidebar,.agent-info-panel{min-width:0;padding:12px;max-height:max(560px,calc(100dvh - 245px));overflow-y:auto}.agent-new-chat{white-space:normal}}
@media(min-width:1600px){.agent-layout{grid-template-columns:195px minmax(0,1fr) 210px;gap:16px}}
@media(min-width:721px) and (max-width:1100px){.agent-layout{grid-template-columns:170px minmax(0,1fr);gap:10px}.agent-info-panel{grid-column:1/-1}}
@media(max-width:720px){.agent-view{padding:18px 10px 28px}.agent-chat-shell{height:max(520px,calc(100dvh - 230px))}.agent-page-head{gap:12px}}

.workspace:has(>.agent-view:not([hidden])){width:100%;max-width:none;margin-left:0;margin-right:0}

@media(min-width:721px){
.agent-layout{height:var(--agent-available-height,calc(100dvh - 320px));min-height:260px;grid-template-rows:minmax(0,1fr)}
.agent-chat-shell{height:100%;min-height:0;max-height:none}
.agent-sidebar,.agent-info-panel{height:100%;min-height:0;max-height:100%;overflow-y:auto}
}
@media(min-width:721px) and (max-width:1100px){.agent-layout{grid-template-columns:155px minmax(0,1fr) 165px}.agent-info-panel{grid-column:auto;display:flex;flex-direction:column}}
.agent-chat-head,.agent-composer,.agent-action-status,.agent-typing{flex-shrink:0}
.agent-chat-log{flex:1 1 0;min-height:0}
@media(max-width:720px){.agent-chat-shell{height:65dvh;min-height:320px}.agent-composer-foot small{display:none}}
