.studio.studio-live { grid-template-columns:260px minmax(0,1fr); }
.project-strip { flex-wrap:wrap; }
.project-strip>.button-row { margin-left:auto; justify-content:flex-end; }
.studio-live .assistant-body.live-activity { display:block; padding:22px 18px; flex:1; }
.live-activity>strong { display:block; color:var(--espresso); font-size:14px; line-height:1.6; }
.live-activity .agent-disclosure { font-size:12px; line-height:1.7; margin:10px 0 22px; }
.agent-events { list-style:none; margin:0; padding:0; }
.agent-events li { display:flex; gap:9px; align-items:flex-start; margin-bottom:17px; font-size:12px; line-height:1.7; color:var(--muted); }
.agent-events svg { color:var(--accent-text); width:15px; height:15px; margin-top:3px; }
.live-split { display:grid; grid-template-columns:minmax(220px,.85fr) minmax(280px,1.15fr); min-height:560px; flex:1; }
.live-code-panel { min-width:0; display:flex; flex-direction:column; background:#2d211b; color:#f7e1c4; border-right:1px solid #6b4b36; }
.live-code-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:15px; border-bottom:1px solid #684b36; font:11px ui-monospace,monospace; }
.live-code-heading>span:first-child { display:flex; align-items:center; gap:7px; }
.live-code-heading>span:last-child { color:#ffbd7c; font-size:9px; }
.live-progress-row { display:flex; flex-direction:column; gap:8px; padding:13px 15px; font-size:10px; color:#d9baa0; }
.live-progress-row progress { width:100%; height:4px; appearance:none; border:0; background:#644833; border-radius:4px; }
.live-progress-row progress::-webkit-progress-bar { background:#644833; border-radius:4px; }
.live-progress-row progress::-webkit-progress-value { background:var(--orange); border-radius:4px; }
.live-progress-row progress::-moz-progress-bar { background:var(--orange); }
.live-code-output { flex:1; min-height:340px; height:440px; max-height:560px; overflow:auto; margin:0; padding:18px; white-space:pre-wrap; overflow-wrap:anywhere; font:11px/1.8 ui-monospace,SFMono-Regular,monospace; tab-size:2; }
.live-code-output:focus-visible { outline:2px solid #ffbd7c; outline-offset:-3px; }
.live-code-actions { display:flex; flex-wrap:wrap; gap:8px; padding:14px; border-top:1px solid #684b36; }
.live-code-actions .button { font-size:11px; padding:9px 11px; }
.live-code-note { font-size:10px; padding:0 14px 14px; color:#d9baa0; margin:0; line-height:1.6; }
.live-blocker { width:100%; font-size:11px; color:#ffcf9d; line-height:1.7; margin:3px 0 0; }
.live-preview-panel { display:flex; flex-direction:column; min-width:0; }
.live-preview-panel .address-bar { flex-wrap:wrap; margin:14px 12px 0; }
.live-preview-panel .address-bar .tag { font-size:8px; }
.live-preview-panel .preview-stage { padding:0 12px 14px; }
.live-preview-panel .preview-frame { min-height:490px; }
.studio-live .preview-toolbar { height:auto; min-height:53px; flex-wrap:wrap; padding-top:5px; padding-bottom:5px; }
.studio-live .tabs button { min-height:43px; }
.sidebar { overflow-y:auto; }
@media(min-width:1700px) { .studio.studio-live { grid-template-columns:280px minmax(0,1fr); } }
@media(max-width:1250px) { .live-split { grid-template-columns:1fr; } .live-code-panel { border-right:0; border-bottom:1px solid #684b36; } .live-code-output { height:260px; min-height:220px; max-height:340px; flex:none; } }
@media(max-width:980px) { .studio.studio-live { grid-template-columns:1fr; } .live-activity .assistant-avatar { display:none; } .agent-events { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; } .live-activity .agent-disclosure { margin-bottom:14px; } }
@media(max-width:700px) { .agent-events { grid-template-columns:1fr; } .live-code-output { font-size:10px; } .project-strip>.button-row { margin:0; justify-content:flex-start; } }

.studio.studio-live { grid-template-columns:minmax(230px,24%) minmax(0,1fr); gap:14px; align-items:start; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; min-height:0; }
.studio-live .assistant-panel,.studio-live .preview-panel { border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.studio-live .panel-title { background:#e8e2f4; color:#352b47; }
.studio-live .panel-title>span:first-child { font-size:15px; }
.studio-live .panel-title .tag { background:#f8f5ff; border-color:#b7a9c8; }
.studio-live .composer { margin:15px 12px 9px; padding:13px; background:#fcfbfd; border:1px solid #afa6bf; }
.studio-live .composer:focus-within { outline:2px solid #7656ab; outline-offset:2px; }
.composer label { display:block; font-size:13px; font-weight:650; margin-bottom:9px; }
.studio-live .composer textarea { font-size:13px; line-height:1.55; min-height:49px; }
.studio-live .suggestions { display:flex; flex-wrap:wrap; gap:5px; padding:0 12px 15px; }
.studio-live .suggestion { display:inline-flex; align-items:center; gap:5px; font-size:11px; padding:6px 8px; border-radius:20px; background:white; }
.studio-live .suggestion svg { width:12px; height:12px; }
.studio-live .live-activity { padding:16px; border-top:1px solid var(--line); }
.live-activity h3 { margin:0 0 11px; font-size:14px; }
.live-activity #agent-status { display:block; font-size:12px; font-weight:550; }
.live-activity #agent-status:before { content:""; display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#62772d; }
.studio-live .agent-disclosure { margin:12px 0 0; font-size:11px; line-height:1.6; }
.agent-events:not(:empty) { margin-top:12px; }
.studio-live .live-split { grid-template-columns:minmax(0,1.55fr) minmax(210px,1fr); min-height:450px; }
.studio-live .live-code-panel { border-right:0; border-left:1px solid var(--code-border); }
.live-code-actions:empty { display:none; }
.live-code-actions:not(:empty) { padding:9px 12px; }
.studio-live .live-code-output { padding:12px; }
.studio-live .live-preview-panel { background:#e9e7ed; }
@media(max-width:1220px) and (min-width:981px) {
  .studio-live .live-split { grid-template-columns:1fr; }
}
@media(max-width:980px) {
  .studio.studio-live { grid-template-columns:1fr; }
  .studio-live .agent-events { display:block; }
}
@media(max-width:700px) {
  .studio-live .live-split { grid-template-columns:1fr; }
}

.activity-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.panel-shortcuts { display:none; }
@media(max-width:1220px) {
  .panel-shortcuts { display:flex; gap:10px; }
  .panel-shortcuts button { padding:4px 0; color:var(--accent-text); font-size:12px; background:transparent; }
}
