/* Phone chat uses compact controls while preserving the approval workflow. */
.agent-mobile-tools-toggle,.agent-mobile-all-tools {display:none!important}
.agent-mobile-tools-panel {display:contents}
.agent-conversation-options {position:relative}
.agent-conversation-options>summary,.agent-conversation-option-label,.agent-continuity-disclosure>summary {display:none}
@media(max-width:980px) {
 html[data-ui="5"] .route-agent {--cs-topbar:44px}
 html[data-ui="5"] .route-agent .topbar {height:44px!important;min-height:44px!important;padding:0 6px!important}
 html[data-ui="5"] .route-agent .topbar .btn {min-width:36px!important;min-height:36px!important;padding:5px!important}
 html[data-ui="5"] .route-agent .topbar .cs-system-switcher-trigger {min-height:36px!important;padding:3px 6px!important}
 html[data-ui="5"] .route-agent .workspace-main {padding:0!important;min-height:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work {height:100%!important;min-height:0!important;padding:0!important;gap:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work>.agent-masthead,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work>.agent-tabs {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-workbench,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation {height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border-radius:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation {display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-top {height:44px!important;min-height:44px!important;flex:0 0 44px!important;padding:3px 7px!important;gap:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-top .btn {height:36px!important;min-height:36px!important;min-width:36px!important;padding:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-chat-logo {width:25px!important;height:25px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-chat-identity {min-width:0!important;gap:6px!important;flex:1!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-chat-title {min-width:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-chat-title strong {display:block!important;max-width:100%!important;font-size:12px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-top small {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-log,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-log:has(.stage1-r20-welcome) {display:block!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:6px 10px 10px!important;overscroll-behavior:contain}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-turn {padding-top:10px!important;margin-block:0 12px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-user-message {padding:8px 11px!important;font-size:14px!important;line-height:1.55!important;max-width:94%!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer {font-size:14px!important;line-height:1.65!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-meta {margin-block:8px 5px!important;gap:6px!important;min-height:28px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-meta .agent-ring {width:25px!important;height:25px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-meta .agent-ring img {width:18px!important;height:18px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-tools {gap:3px!important;margin-block:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-tools .btn {min-height:36px!important;padding:5px 7px!important;font-size:11px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-answer-tools small {font-size:10px!important;flex-basis:100%}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer-wrap {position:relative!important;flex:0 0 auto!important;min-height:0!important;margin:0!important;padding:4px 6px calc(4px + env(safe-area-inset-bottom))!important;gap:3px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mobile-tools-panel {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mobile-tools-panel[data-open="true"] {display:block!important;max-height:28dvh;overflow:auto;padding:3px 2px 7px;overscroll-behavior:contain}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mobile-tools-toggle {display:inline-flex!important;min-height:36px!important;min-width:36px!important;padding:5px 8px!important;font-size:12px!important;gap:4px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-inline-create-toolbar {padding:3px 0!important;gap:3px!important;border:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-inline-create-toolbar .btn {min-height:36px!important;padding:5px 8px!important;font-size:11px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer {display:block!important;padding:5px 7px!important;border-radius:15px!important;gap:3px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer textarea {min-height:36px!important;height:var(--composer-content-height,36px)!important;max-height:96px!important;padding:4px 3px!important;font-size:16px!important;line-height:1.45!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer-toolbar {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:3px!important;padding:0!important;min-height:44px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .stage1-r20-composer-preferences summary {min-height:36px!important;min-width:36px!important;padding:5px 7px!important;font-size:11px!important;gap:4px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .stage1-r20-compose-state {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-send.btn,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer-toolbar>.btn:last-child {min-height:44px!important;min-width:44px!important;margin-inline-start:auto!important;padding:8px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-send.btn {height:44px!important;width:44px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-tools {padding:0 0 2px!important;gap:4px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-tools .btn {min-height:36px!important;padding:4px 7px!important;font-size:11px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-strip {padding:3px 0!important;gap:4px!important;max-height:100px;overflow:auto}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-chip>button:first-child {min-height:36px!important;padding:5px 8px!important;gap:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-chip strong {font-size:11px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-chip small {font-size:10px!important;margin-top:1px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .r23-document-progress {font-size:11px!important;gap:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-compose-footer {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-log>.multimodal-studio,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-inline-template {margin:9px 0!important;padding:9px!important;border-radius:12px!important;gap:8px!important;max-height:56dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio>header {gap:4px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio>header h2 {font-size:14px!important;line-height:1.4!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio>header p {font-size:11px!important;margin:2px 0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio h3 {font-size:13px!important;margin:4px 0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio p {font-size:12px!important;line-height:1.5!important;margin-block:4px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio details,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-card,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio fieldset {padding:8px!important;border-radius:9px!important;gap:7px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio form,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio details[open] {gap:8px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio summary {font-size:12px!important;min-height:36px!important;display:flex;align-items:center}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-fields {grid-template-columns:1fr!important;gap:7px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-stages {gap:3px!important;margin:2px 0!important;flex-wrap:nowrap!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-stages li {font-size:9px!important;padding:3px 5px!important;white-space:nowrap!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio .btn {min-height:36px!important;padding:5px 8px!important;font-size:11px!important;line-height:1.4!important;white-space:normal!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-card>.agent-actions .btn:not(.ghost):not(.secondary),
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-studio form>.btn {min-height:44px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-preview iframe {height:220px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-preview img {max-height:220px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .multimodal-card pre {max-height:180px!important;font-size:12px!important;line-height:1.5!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome {padding:12px 4px!important;min-height:0!important;margin:0 auto!important;gap:7px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome .agent-orbit {display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome h2 {font-size:22px!important;line-height:1.3!important;margin:3px 0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome p {font-size:12px!important;line-height:1.5!important;margin:4px 0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome .agent-suggestions button {min-height:44px!important;padding:7px 9px!important;gap:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome .agent-suggestions small,
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-welcome .agent-trust-row {display:none!important}
}

@media(max-width:980px){
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mobile-all-tools{display:flex!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-composer-toolbar{position:relative!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .stage1-r20-composer-preferences{position:static!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-top{grid-template-columns:auto minmax(0,1fr) auto!important;overflow:visible!important;z-index:35!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options{position:relative!important;min-width:36px;align-self:center}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options>summary{display:flex!important;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:36px!important;width:36px!important;padding:6px!important;border-radius:8px;border:1px solid var(--ag-line,var(--line));color:var(--ag-text,var(--text));background:var(--ag-panel,var(--surface))}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options>summary::-webkit-details-marker{display:none}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options>summary:focus-visible{outline:2px solid var(--ag-accent,var(--brand));outline-offset:2px}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options:not([open])>.agent-conversation-options-list{display:none!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options[open]>.agent-conversation-options-list{display:grid!important;position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;z-index:50;gap:3px!important;padding:6px!important;margin:0!important;width:min(230px,calc(100vw - 24px));max-height:45dvh;overflow:auto;border:1px solid var(--ag-line,var(--line));border-radius:10px;background:var(--ag-panel,var(--surface));box-shadow:0 10px 30px #0005}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-options-list .btn.icon{width:100%!important;min-width:0!important;min-height:36px!important;height:auto!important;justify-content:flex-start!important;gap:7px!important;padding:7px!important;font-size:12px!important;white-space:normal!important;text-align:start}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-conversation-option-label{display:inline!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-workspace{padding:8px!important;margin-block:8px!important;border-radius:10px!important;gap:5px!important;min-height:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-frame-head{min-height:36px!important;gap:5px!important;margin:0!important;align-items:center!important;flex-wrap:nowrap!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-frame-head>strong{font-size:12px!important;line-height:1.4!important;min-width:0}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-frame-head>.btn{min-height:36px!important;padding:5px 7px!important;font-size:12px!important;max-width:45%;line-height:1.3!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-disclosure{padding:0!important;margin-block:4px!important;border:1px solid var(--ag-line,var(--line));border-radius:7px}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-disclosure>summary{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap;min-height:36px;padding:5px 7px;cursor:pointer;list-style:none;font-size:12px!important;line-height:1.35!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-disclosure>summary strong{font-size:12px!important;font-weight:550}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-disclosure>summary small{font-size:12px!important;color:var(--ag-muted,var(--muted));margin-inline-start:auto}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-expand{font-size:12px!important;color:var(--ag-accent,var(--brand))}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-disclosure[open] .agent-continuity-expand{display:none}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-continuity-body{padding:7px!important;max-height:45dvh;overflow:auto;overscroll-behavior:contain}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-understanding{padding:8px!important;margin:5px 0!important;border-radius:8px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-followups{gap:4px!important;margin-top:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-followups .btn{min-height:36px!important;padding:5px 7px!important;font-size:12px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .vx-chat-workspace>.agent-muted{font-size:12px!important;line-height:1.4!important;margin-block:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .stage1-r20-composer-preferences>.agent-mode-picks{padding:8px!important;gap:4px!important;width:min(300px,calc(100vw - 48px))!important;max-width:100%!important;max-height:45dvh!important;overflow-y:auto!important;border-radius:10px!important;bottom:calc(100% + 5px)!important;left:0!important;right:auto!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mode-picks label{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important;gap:5px!important;margin:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mode-picks .sr-only{font-size:12px!important;line-height:1.3!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mode-picks select{min-height:36px!important;height:36px!important;padding:5px 7px!important;font-size:16px!important;line-height:1.4!important;border-radius:7px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-mode-picks .stage1-r20-accessibility-action{min-height:36px!important;padding:5px!important;font-size:12px!important;margin:0!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-sources{padding:3px 8px!important;margin-block:5px!important;border-radius:7px!important;font-size:12px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-sources summary{min-height:30px!important;padding:2px 0!important;font-size:12px!important;line-height:1.35!important;gap:5px!important}
 html[data-ui="5"] .route-agent .agent-screen.stage1-r22-agent.mode-work .agent-sources a{min-height:36px!important;padding:5px 0!important;gap:5px!important}
}
