/* V7 LIVE CEO dashboard: adds genuine D1 panels without replacing Canvas architecture. */
@media(min-width:1050px){
 main{grid-template-columns:minmax(0,1fr) clamp(350px,27vw,485px)}
 .agent-row{min-height:46px}
}
.studio-live-controls{display:grid;gap:10px;margin-bottom:12px}
.studio-topline,.studio-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.studio-topline{padding:11px 12px;border:1px solid #365375;border-radius:9px;background:#101e35}
.studio-topline b{font-size:11px;letter-spacing:.08em}
.studio-topline span,.studio-head span{font-size:9px;color:#8faac1}
.studio-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.studio-role-card{padding:9px 6px;border:1px solid #2c4560;border-radius:7px;background:#12223a;min-width:0}
.studio-role-card b{display:block;font-size:11px;color:#b4d7eb}
.studio-role-card small{display:block;font-size:9px;color:#9fb2c7;overflow-wrap:anywhere;margin-top:4px}
.studio-role-card em{font-size:8px;font-style:normal;color:#efc686;display:block;margin-top:6px}
.studio-role-card[data-state="RUNNING"]{border-color:#44b99d}
.studio-role-card[data-state="RUNNING"] em{color:#59e3bd}
.studio-role-card[data-state="FAILED"]{border-color:#ae6668}
.studio-section{padding:11px 12px;background:#0e1c30;border:1px solid #25435f;border-radius:9px}
.studio-section> b,.studio-section .studio-head>b,.studio-split b{font-size:10px;letter-spacing:.09em;color:#b0d8e9}
.studio-section p{font-size:10px;color:#9eb2c9;line-height:1.55;margin:8px 0}
.studio-section form{display:grid;gap:7px;margin-top:10px}
.studio-section label{display:grid;gap:4px;font-size:9px;color:#acc5d9}
.studio-section input,.studio-section select,.studio-section textarea{
 width:100%;background:#091525;border:1px solid #36516b;border-radius:6px;
 color:#e3f3fa;padding:8px;font:11px system-ui;resize:vertical}
.studio-section button{font-size:10px;padding:8px;border-color:#316684}
#studioSubmit{background:#0d4c64;font-weight:700;color:#d9faff}
#studioStop{border-color:#a95159;color:#ffcad1}
#studioResume{border-color:#489878;color:#a3f1d5}
.studio-job{padding:9px 0;border-top:1px solid #243d55;font-size:10px}
.studio-job strong{display:block;color:#b8e4f0;margin-bottom:4px;overflow-wrap:anywhere}
.studio-job small{color:#91abc1;display:block;margin:4px 0}
.studio-job .studio-result{color:#c6d8e5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto}
.studio-job a{color:#7ae4d3;margin-right:9px;text-decoration:underline}
.studio-job button{padding:5px 8px;margin:4px}
.studio-split{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.studio-split>div+div{border-left:1px solid #27445e;padding-left:9px}
.studio-audit-line{font-size:9px;color:#94b0c7;border-top:1px solid #253d54;padding:6px 0}
.studio-owner-gate:not([hidden]){position:fixed;inset:0;z-index:900;display:grid;place-items:center;
 background:#03111bf5;backdrop-filter:blur(9px)}
.studio-owner-login{border:1px solid #345a76;border-radius:16px;padding:28px;background:#102033;
 width:min(390px,93vw);display:grid;gap:13px}
.studio-owner-login h2{font-size:19px;margin:0;color:#c8f4ec}
.studio-owner-login p{font-size:11px;color:#a9bdd0;line-height:1.5}
.studio-owner-login input{padding:12px;background:#071827;color:white;border:1px solid #496d83;border-radius:8px}
.studio-owner-login button{background:#14667b;color:#e5fffd;font-size:13px}
@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:850px){main{grid-template-columns:1fr}.studio-live-controls{grid-column:1/-1}
 aside{display:block}.studio-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Important: offline agents are visible; they are *not* represented as working. */

/* Verified job response panel: dedicated readable space without changing the V7 canvas. */
.studio-latest{margin-top:12px;padding:13px;border:1px solid #34667b;border-radius:10px;
 background:linear-gradient(140deg,#102a3c,#0b1c2e);box-shadow:0 9px 24px #0003}
.studio-latest[hidden]{display:none!important}
.studio-latest-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.studio-latest-head b{color:#d7faff;font-size:12px;letter-spacing:.04em}
.studio-latest-head span{color:#e5ca89;font-size:10px;font-weight:700;padding:4px 7px;
 border-radius:6px;background:#4d3a1b44}
.studio-latest[data-state="COMPLETED"]{border-color:#39a889;box-shadow:0 0 0 1px #1b775044}
.studio-latest[data-state="COMPLETED"] .studio-latest-head span{color:#92f5cd;background:#16473566}
.studio-latest[data-state="FAILED"]{border-color:#c36a75}
.studio-latest[data-state="FAILED"] .studio-latest-head span{color:#ffb9c1}
.studio-latest-brief{font-size:11px;line-height:1.5;color:#e1f1fb;padding:9px 0;
 white-space:pre-wrap;overflow-wrap:anywhere}
.studio-latest-meta{font-size:10px;color:#a7bcd0;padding:6px 0;border-top:1px solid #224659;overflow-wrap:anywhere}
.studio-latest-output{font-size:12px;line-height:1.6;color:#c9dce8;padding:10px 0;
 max-height:400px;overflow-y:auto}
.studio-latest-output b{color:#8fe7da;display:block;font-size:11px;margin-bottom:7px}
.studio-latest-output pre{font:12px/1.65 system-ui,Arial,sans-serif;white-space:pre-wrap;
 overflow-wrap:anywhere;margin:0;color:#ecf7fb}
#studioLatestFiles{display:flex;gap:10px;flex-wrap:wrap;padding:2px 0}
#studioLatestFiles a{font-size:11px;color:#83e6d3;text-decoration:underline}
#studioLatestFocus{margin-top:8px;border-color:#4ba998}
@media(max-width:540px){.studio-latest-output{max-height:300px}}
