.agent-studio-page { scrollbar-gutter:stable; }
.agent-studio { max-width:1040px; margin:0 auto; }
.agent-roster-heading { display:flex; align-items:center; gap:10px; margin-bottom:13px; font-size:11px; color:var(--muted); font-weight:700; }
.agent-roster { display:flex; align-items:stretch; gap:12px; overflow-x:auto; padding:7px 7px 14px; margin:0 -7px 14px; }
.agent-roster-item { display:flex; align-items:center; gap:12px; padding:13px 16px; border:1px solid #34374a; border-radius:12px; min-width:180px; max-width:260px; background:#1b1e2b; text-align:left; flex-shrink:0; }
.agent-roster-item:hover { border-color:#615275; }
.agent-roster-item.current { border-color:#8c76bb; background:linear-gradient(110deg,#30283f,#242335); }
.agent-roster-icon { display:grid; place-items:center; width:33px; height:33px; flex-shrink:0; color:#baa6df; background:#a495ff0b; border-radius:10px; }
.agent-roster-icon .icon { width:18px; height:18px; }
.agent-roster-name { min-width:0; }
.agent-roster-name strong,.agent-roster-name small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-roster-name strong { font-size:12px; font-weight:750; }
.agent-roster-name small { color:var(--muted); font-size:10px; margin-top:5px; }
.agent-roster-mark { width:5px; height:5px; background:#bda5ef; border-radius:50%; margin-left:8px; }
.agent-lab { border:1px solid #484258; border-radius:17px; background:#1a1e2b; overflow:hidden; box-shadow:inset 0 1px #ffffff06; }
.agent-lab-heading { display:flex; align-items:center; gap:18px; padding:25px 28px; background:linear-gradient(115deg,#292437,#1c202d); }
.agent-lab-symbol { display:grid; place-items:center; flex:0 0 46px; height:46px; border:1px solid #a495ff2c; border-radius:14px; color:#c3afe4; background:#a495ff0b; }
.agent-lab-symbol .icon { width:25px; height:25px; }
.agent-lab-heading > .field { flex:1; min-width:0; max-width:440px; margin:0; font-size:11px; color:#b6abc9; gap:9px; }
.agent-tab-list { display:flex; gap:26px; padding:0 28px; border-top:1px solid #ffffff08; border-bottom:1px solid #ffffff0b; background:#161b271f; }
.agent-tab-list button { display:flex; align-items:center; justify-content:center; gap:8px; position:relative; padding:18px 0; min-height:54px; border:0; border-radius:0; background:transparent; color:var(--muted); font-size:12px; font-weight:700; }
.agent-tab-list button .icon { width:15px; height:15px; }
.agent-tab-list button[aria-selected="true"] { color:#d5c1f3; }
.agent-tab-list button[aria-selected="true"]::after { content:""; position:absolute; height:2px; bottom:-1px; left:0; right:0; background:#b29bdf; border-radius:3px; }
.agent-tab-list button:focus-visible { outline:2px solid var(--accent); outline-offset:-5px; }
.agent-tab-panel { --agent-panel-padding:28px; padding:28px; }
.agent-tab-panel[hidden] { display:none; }
.agent-lab .field { margin:0; }
.agent-prompt-list { display:grid; gap:26px; }
.agent-prompt > span { display:flex; gap:9px; align-items:center; font-size:12px; }
.agent-prompt > span .icon { width:14px; height:14px; color:#b29acc; }
.agent-prompt textarea { min-height:112px; padding:14px 16px; line-height:1.65; }
.agent-receipt-switch { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.agent-receipt-switch > span { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; }
.agent-receipt-switch > span .icon { width:17px; height:17px; color:#b29acc; }
.agent-receipt-switch { max-width:800px; }
.agent-receipt-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px; max-width:800px; margin-top:28px; }
.agent-receipt-fields > .two-fields,.agent-receipt-fields > .receipt-kanban { grid-column:1/-1; }
.agent-receipt-fields .two-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px; margin:0; }
.agent-receipt-fields .field { gap:10px; }
.agent-receipt-fields .field > span { min-height:32px; display:flex; align-items:flex-end; }
.agent-receipt-grid { margin-top:0; position:relative; }
.receipt-destinations { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px 28px; position:relative; margin-top:6px; }
.receipt-validation-control { position:absolute; top:calc(11px - var(--agent-panel-padding)/2); right:0; z-index:1; display:flex; align-items:center; gap:10px; font-size:12px; min-height:20px; }
.receipt-kanban-control { grid-column:1/-1; min-height:20px; margin:0; }
.receipt-destinations .field > span { min-height:0; line-height:18px; }
.receipt-validation-control input,.receipt-kanban-control input { margin:0; flex-shrink:0; }
.agent-receipt-grid .receipt-document-note { grid-column:1/-1; }
.agent-receipt-fields select { appearance:none; padding-right:40px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa7bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:12px; }
.agent-receipt-fields .receipt-kanban { gap:18px; }
.agent-receipt-fields p { margin:0; }
.agent-technical-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px; max-width:800px; }
.agent-technical-grid .field { gap:10px; }
.agent-technical-grid .field > span { min-height:32px; display:flex; align-items:flex-end; }
.agent-technical-grid > p { grid-column:1/-1; margin:0; }
.agent-technical-grid .field:has([data-agent="waitSeconds"]) { grid-column:1; }
.agent-technical-grid .field:has([data-agent="summaryAfter"]) { grid-column:2; }
.agent-lab-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid #ffffff0b; padding:20px 28px; background:#11172225; }
.agent-lab-footer p { margin:0; font-size:11px; }
.agent-lab-footer .row { gap:12px; }
.agent-lab-empty { display:flex; flex-direction:column; align-items:center; gap:22px; padding:50px 24px; border:1px solid var(--border); border-radius:16px; }
.agent-lab-empty > .icon { width:40px; height:40px; color:var(--accent); }
@media(max-width:900px) { .agent-tab-list { gap:20px; padding:0 22px; } .agent-tab-panel,.agent-lab-heading { --agent-panel-padding:24px; padding:24px 22px; } .agent-lab-footer { padding:20px 22px; } }
@media(max-width:650px) { .agent-tab-list { gap:12px; } .agent-tab-list button { font-size:10px; gap:6px; } .agent-tab-list button .icon { width:13px; height:13px; } .agent-technical-grid { column-gap:16px; } .agent-lab-heading { gap:12px; } }
@media(max-width:650px) { .agent-receipt-fields,.agent-receipt-fields .two-fields { column-gap:16px; } }
