/* Shared chat and execution rhythm, measured against the desktop reference. */
:root{--transcript-max:768px;--composer-max:818px}
:root[data-theme=light]{--text:#111827;--secondary:#57606a;--muted:#7b8798;--bg:#fff}
#messages:has(.terminal-feed:not([hidden])){width:100%;max-width:var(--transcript-max);margin-inline:auto}
main>.composer-area{width:100%;max-width:var(--composer-max);margin-inline:auto}
.terminal-feed .terminal-entry>.timeline-group-header{display:flex;font-size:13px;line-height:20px;align-items:center;gap:8px}
.terminal-feed .terminal-entry:not(.progress-activity)>.timeline-group-header{padding-top:0;padding-bottom:6px}
.terminal-feed .terminal-entry>.timeline-group-header>.activity-text{flex:0 1 auto;min-width:0}
.terminal-feed .terminal-entry>.timeline-group-header>.activity-icon{flex:0 0 14px}
.terminal-feed .terminal-entry>.timeline-group-header>.activity-time{flex:none;padding-left:4px}
.terminal-feed .terminal-entry>.timeline-group-header>.terminal-command-preview{flex:1;min-width:0;margin-left:6px;font:12px/21px var(--font-code)}
.terminal-feed .progress-activity>.timeline-group-header{display:block}
.terminal-feed .activity-icon{display:inline-flex;align-items:center;justify-content:flex-start;width:14px;height:21px;vertical-align:middle;color:var(--secondary)}
.terminal-feed .timeline-marker-svg{width:12px;height:12px;flex:none;align-self:center}
.terminal-feed .timeline-marker-react{color:#61c7e5}
.terminal-feed .timeline-marker-visualstudio,.terminal-feed .timeline-marker-w3{color:#007acc}
.terminal-feed .timeline-marker-visualstudio{width:12px;height:12px}
.terminal-feed .timeline-inline-state{padding-left:7px;font:400 13px/20px var(--font-sans);color:var(--muted);white-space:nowrap}
.terminal-feed .timeline-source{font:400 13px/20px var(--font-sans);margin-left:4px}
.terminal-feed .progress-activity .activity-text{max-width:708px;font:400 14px/21px var(--font-sans);color:var(--text)}
.terminal-feed .progress-activity .activity-text strong{font-weight:600}
.terminal-feed .progress-activity .activity-text p{margin:0;font:inherit}
.terminal-row:has(.progress-activity)+.terminal-row:has(.progress-activity){margin-top:0}
.terminal-row:has(.progress-activity):has(+.terminal-row .progress-activity){margin-bottom:0}
.terminal-row:has(.progress-activity):has(+.terminal-row .progress-activity) .timeline-group-header{padding-bottom:0}
.terminal-row:has(.progress-activity)+.terminal-row:has(.progress-activity) .timeline-group-header{padding-top:0}
.terminal-feed .terminal-row[data-category=agents] .activity-icon{color:var(--secondary)}
.terminal-feed .activity-time:empty{display:none}
.terminal-feed .feed-active{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.terminal-feed>.conversation-navigation{display:none}
.terminal-feed>.feed-controls[open]~.conversation-navigation{display:block;position:relative;float:none;top:auto;margin:0 0 8px;width:100%;height:44px}
.terminal-feed>.feed-controls[open]~.conversation-navigation .conversation-navigation-track{flex-direction:row}
.message:has(.terminal-feed:not([hidden]))>.activity-footer.live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;min-height:0}
.composer-area:has(#stop:not([hidden]))>#status:not(.error){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
#activity-context{margin-bottom:8px}
#activity-context button{height:29px;min-height:29px;padding:3px 12px;border-radius:15px;font:400 13px/21px var(--font-sans);box-shadow:none}
.composer-area #composer{min-height:48px}
.composer-footer{min-height:46px;padding:6px 8px;gap:4px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
.composer-footer>#prompt{grid-column:2;grid-row:1;min-height:32px;max-height:120px;padding-inline:4px}
.composer-footer>.composer-left-action{grid-column:1;grid-row:1}
.composer-footer>.composer-right-actions{grid-column:3;grid-row:1}
#execution-controls{gap:8px}
#execution-controls label{width:auto;flex:none}
#execution-controls select{appearance:none;width:65px;min-width:0;max-width:110px;padding:4px 3px 4px 0;background:transparent}
#execution-controls #execution-mode{width:72px}
#execution-controls #execution-permission{width:106px}
#execution-controls #execution-model-retry{padding-left:0;white-space:nowrap}
.composer-options>#task-settings-open,.composer-options>#tools-open{display:none}
.composer-right-actions{gap:12px}
.composer-options>#voice-button{display:grid;width:24px;height:24px;min-width:24px;min-height:24px;padding:4px}
.composer-options>#voice-button .icon{width:16px;height:16px}
.composer-right-actions>#voice-button{display:grid;place-items:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:4px;font-size:0}
.composer-right-actions>#voice-button span{display:none}
.composer-right-actions>#voice-button .icon{width:16px;height:16px}
.composer-right-actions>#send,.composer-right-actions>#stop{height:24px;width:24px;min-width:24px;min-height:24px;border-radius:50%;padding:0}
.composer-area{position:relative}
body:not(.welcome-screen) main>.composer-area{padding-top:6px}
body:not(.welcome-screen) .composer-area:before{content:"";position:absolute;left:0;right:0;top:-8px;height:16px;background:linear-gradient(transparent,var(--bg));pointer-events:none}
#jump-latest{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);margin:0;z-index:3}
@media(pointer:coarse){
  #activity-context button{min-height:44px;height:44px}
  .composer-options>#voice-button,.composer-right-actions>#send,.composer-right-actions>#stop{width:44px;height:44px;min-width:44px;min-height:44px}
}
