/* GUIA LIVRE AUTOMATION STUDIO 3.0 — camada visual, sem bibliotecas CDN */
:root {--bg:#f3f6fb;--panel:#fff;--panel2:#f8fafd;--text:#17223a;--muted:#75849b;--line:#e6ebf2;--brand:#0eac90;--brand-dark:#098b76;--brand-soft:#e6f9f3;--nav:#0f1830;--nav2:#192743;--shadow:0 9px 32px rgba(18,37,79,.045);--radius:17px}
html{scroll-behavior:smooth}body{font-family:Inter,"Segoe UI",system-ui,sans-serif;letter-spacing:-.05px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #19bc9b77;outline-offset:2px}
.sidebar{width:260px;background:linear-gradient(160deg,#0e1831,#111d35 70%,#122338);box-shadow:3px 0 20px #101c3011}
.main-area{margin-left:260px}.brand{height:82px;padding:16px 20px}.brand-logo{background:linear-gradient(145deg,#18d2a4,#068575);border:1px solid #77f9d555;box-shadow:0 9px 22px #0acd9b28;transform:rotate(-3deg)}.brand-copy strong{letter-spacing:2px;font-size:15px}.brand-copy small{font-size:11px;color:#a4b5cc}
.workspace{background:linear-gradient(115deg,#263957,#19253f);border:1px solid #53698738;margin:14px 12px 10px}.workspace-avatar{background:#174b51;color:#a9f6e4}.workspace b{font-size:12px}.workspace small{font-size:10px}.nav-label{margin-top:4px;padding-top:15px;color:#7189a9;font-size:9px}.nav-link{font-size:12.5px;padding:10px 12px;color:#a5b5cb;gap:12px}.nav-link.active{background:linear-gradient(90deg,#18b8992c,#10a48110);color:#72f9d1}.sidebar-foot{background:#0c172b;border-top:1px solid #273852}.sidebar-foot small{color:#8299b6}
.topbar{height:74px;padding:0 33px;box-shadow:0 3px 15px #11213e06}.breadcrumbs{font-size:12px}.top-actions{gap:9px}.top-search-button{background:var(--panel2);color:var(--muted);border:1px solid var(--line);padding:8px 12px;min-width:220px;display:flex;gap:10px;align-items:center;border-radius:10px;font-size:11.5px}.top-search-button:hover{border-color:#9edecd}.top-search-button>span:first-child{font-size:20px}.top-search-button kbd{font:10px inherit;margin-left:auto;border:1px solid var(--line);border-radius:5px;padding:3px 5px;background:var(--panel);color:var(--muted)}.mode-chip{display:flex;gap:7px;align-items:center;background:#e7f9f1;color:#0b866b;border:1px solid #cef0e4;padding:8px 12px;font-size:10px;white-space:nowrap}.mode-chip .pulse{width:7px;height:7px}
.page{max-width:1800px;padding:32px 34px 68px}.page-title{font-size:29px;font-weight:800}.eyebrow{letter-spacing:1.4px;font-size:10px}.page-desc{font-size:13px}.btn{border-radius:10px;min-height:39px;font-size:12px;font-weight:700;transition:background .16s,border-color .16s,transform .15s;box-shadow:0 1px 2px #17284207}.btn:active{transform:translateY(1px)}.btn-primary{background:linear-gradient(110deg,#16b89a,#069a83);border-color:#0faa8f;box-shadow:0 4px 10px #0fa88920}.btn-primary:hover{background:#098d77}.stat-card,.card{border-color:#e5eaf3;box-shadow:0 5px 24px #1b335008}.stat-card{border-radius:17px}.card{border-radius:16px}.form-control,.form-select,.form-textarea{min-height:40px;font-size:12px;background:var(--panel)}.form-textarea{line-height:1.65}.dialog{border:1px solid var(--line);box-shadow:0 25px 80px #0a143a33}.dialog.wide{max-width:1000px}.dialog-head h2{font-size:19px}.dialog-body{scrollbar-width:thin;scrollbar-color:#becbd8 transparent}
/* Dashboard */
.dash-hero{position:relative;overflow:hidden;display:flex;min-height:280px;background:radial-gradient(circle at 72% 18%,#245b66 0%,transparent 35%),linear-gradient(112deg,#0e1e38 0%,#153b50 60%,#176e68 115%);border-radius:22px;box-shadow:0 16px 32px #0d3c4940;color:#fff;margin-bottom:31px}.dash-hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(#80efd533 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(90deg,transparent,#000)}.dash-hero-content{position:relative;z-index:1;padding:38px 45px;max-width:690px}.dash-hero-kicker{color:#8aead0;font-size:10px;letter-spacing:2.1px;font-weight:850}.dash-hero h1{font-size:clamp(26px,3.3vw,43px);font-weight:850;line-height:1.17;letter-spacing:-1.8px;margin:13px 0}.dash-hero h1 em{font-style:normal;color:#7df1c7}.dash-hero p{color:#c5d7df;font-size:13px;line-height:1.75;max-width:550px;margin:0 0 22px}.dash-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.dash-hero .btn{padding:10px 15px}.dash-light-btn{background:#fff;border:1px solid #fff;color:#123e42}.dash-trans-btn{background:#ffffff12;border:1px solid #ffffff53;color:#f5fff9}.dash-trans-btn:hover{color:#fff;background:#ffffff22}.dash-hero-art{position:absolute;right:6%;top:0;width:350px;height:100%;display:grid;place-items:center}.dash-orbit{position:absolute;border:1px solid #9eeeda45;border-radius:50%;aspect-ratio:1}.orbit-one{width:200px}.orbit-two{width:310px;border-style:dashed;opacity:.5}.dash-center-logo{height:116px;width:116px;display:grid;place-items:center;border-radius:32px;background:linear-gradient(135deg,#16c5a5,#0d8b84);border:1px solid #ffffff55;box-shadow:0 20px 44px #0c171e75,inset 0 2px 13px #ffffff35;font-size:44px;font-weight:950;letter-spacing:-9px;padding-right:9px;transform:rotate(-10deg)}.dash-center-logo span{font-size:13px;letter-spacing:0;position:absolute;bottom:18px;right:16px}.dash-hero-float{position:absolute;background:#15334cf0;border:1px solid #ffffff24;display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;box-shadow:0 12px 18px #0c1b2e32}.dash-hero-float svg{width:16px;color:#7af4cd}.dash-hero-float span{font-size:11px}.dash-hero-float b{font-size:14px}.float-one{top:42px;left:10px}.float-two{bottom:40px;right:0}.dash-section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.dash-section-title h2{font-size:19px;letter-spacing:-.5px;margin:5px 0 0}.dash-section-title small{font-size:13px;color:var(--muted);font-weight:500}.dash-text-link,.dash-mini-link{display:inline-flex;align-items:center;gap:5px;color:#0c9880;font-size:11px;font-weight:750;white-space:nowrap}.dash-text-link svg{width:15px;height:15px}.dash-stats{margin-bottom:20px}.dash-stat{text-decoration:none;display:block;padding:19px 20px;min-height:152px}.dash-stat-top{display:flex;justify-content:space-between;align-items:start}.dash-stat .stat-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center}.dash-stat-arrow{color:#a1aabc;font-size:19px}.dash-stat .stat-value{margin:12px 0 5px;font-size:29px}.dash-stat strong{display:block;font-size:12px}.dash-stat small{display:block;margin-top:6px;font-size:10px;color:var(--muted)}.dash-grid-main{display:grid;grid-template-columns:1.14fr 1fr;gap:18px;margin-bottom:19px;align-items:stretch}.dash-card{min-width:0}.dash-card .card-header{padding:20px 22px}.dash-card .card-title{font-size:14px}.dash-chart{padding:24px 26px 16px}.dash-chart-bars{height:220px;display:flex;align-items:stretch;justify-content:space-around;gap:18px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent,transparent 54px,#e9eef5 55px);padding:0 12px}.dash-bar-block{min-width:0;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:end;gap:10px}.dash-bar-block strong{font-size:13px}.dash-bar-track{width:100%;max-width:67px;height:158px;display:flex;align-items:end;overflow:hidden;border-radius:10px 10px 0 0}.dash-bar-fill{display:block;width:100%;border-radius:8px 8px 0 0;background:linear-gradient(#40dcc0,#0eaa8b)}.dash-bar-fill.fill-1{background:linear-gradient(#9ba7ff,#6169e8)}.dash-bar-fill.fill-2{background:linear-gradient(#69b8ff,#2878d9)}.dash-bar-fill.fill-3{background:linear-gradient(#ffca75,#ec9750)}.dash-bar-block small{margin-bottom:-31px;text-align:center;height:20px;color:var(--muted);font-size:10px}.dash-chart-caption{display:flex;justify-content:space-between;margin-top:51px;color:var(--muted);font-size:10px}.dash-shortcuts{padding:15px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.dash-shortcut{display:flex;gap:10px;align-items:center;background:var(--panel2);border:1px solid var(--line);border-radius:11px;padding:12px;transition:.15s;min-width:0}.dash-shortcut:hover{background:var(--brand-soft);border-color:#bcf1e4;transform:translateY(-1px)}.dash-shortcut>span{height:37px;width:37px;border-radius:10px;display:grid;place-items:center;background:#e3f6ef;color:#089e80;flex:none}.dash-shortcut b{font-size:11px}.dash-shortcut small{display:block;margin-top:3px;color:var(--muted);font-size:9.5px}.dash-shortcut i{margin-left:auto;font-style:normal;color:#9fabb9}.dash-grid-lower{grid-template-columns:1fr 1fr}.dash-agent-list,.dash-activity-list{padding:5px 20px}.dash-agent{display:flex;align-items:center;gap:13px;padding:14px 3px;border-bottom:1px solid var(--line)}.dash-agent:last-child{border:0}.dash-avatar{width:39px;height:39px;border-radius:13px;background:#daf7ec;display:grid;place-items:center;font-weight:850;color:#0a9e80;font-size:12px}.dash-agent-name{flex:1;min-width:0}.dash-agent-name b{font-size:12px}.dash-agent-name small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.dash-agent-arrow{font-size:20px;color:#9aa5b9}.dash-card-footer{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;background:var(--panel2);padding:14px 20px}.dash-card-footer svg{width:15px;height:15px}.dash-activity{display:flex;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}.dash-activity:last-child{border:0}.dash-activity-dot{width:9px;height:9px;border-radius:50%;margin:6px 2px 0;background:#0ec9a3;box-shadow:0 0 0 4px #e1f9f2;flex:none}.dash-activity b{font-size:11px}.dash-activity p{color:var(--muted);margin:5px 0;font-size:10px;line-height:1.5}.dash-activity small{color:#a0abc0;font-size:9px}.dash-bottom-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#e8f7f2;border:1px solid #c5ebdc;padding:16px 21px;border-radius:14px;margin-top:6px}.dash-bottom-strip>div:first-child{display:flex;gap:10px;align-items:center}.dash-bottom-strip b{font-size:11px}.dash-bottom-strip small{color:#668e85;font-size:10px}.dash-bottom-numbers{display:flex;gap:20px;color:#40695f;font-size:10px}.dash-bottom-numbers b{font-size:13px;color:#0a9478}
/* Studio shared */
.studio-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:23px}.studio-heading h1{font-size:29px;letter-spacing:-1.2px;margin:2px 0 7px;font-weight:850}.studio-heading p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.6}.studio-toolbar,.studio-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.studio-layout{display:grid;grid-template-columns:302px minmax(0,1fr);gap:18px;align-items:start}.studio-list-panel,.studio-primary-panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:17px;min-width:0}.studio-list-panel{position:sticky;top:95px;overflow:hidden}.studio-primary-panel{padding:22px;min-height:600px}.studio-list-head{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:22px 18px 12px}.studio-list-head h3{font-size:13px;font-weight:800;margin:0 0 4px}.studio-list-head small{color:var(--muted);font-size:10px}.studio-tag{font-size:10px;background:#f0f3f8;border:1px solid #e9edf2;color:#78869b;padding:5px 8px;border-radius:8px;font-weight:750;white-space:nowrap}.studio-tag.success{background:#e6f8f1;color:#078f6d;border-color:#d2f0e3}.studio-tag.amber{background:#fff6e6;border-color:#f9e9c4;color:#b27825}.studio-list-search{display:flex;gap:9px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:10px;margin:8px 16px 13px;background:var(--panel2)}.studio-list-search svg{width:15px;color:#8da1ac}.studio-list-search input{border:0;background:transparent;outline:0;width:100%;min-width:0;font-size:11.5px;color:var(--text)}.studio-group-list,.studio-flow-list{padding:0 9px 10px;max-height:580px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c6d2dc transparent}.studio-group-row,.studio-agent-row,.studio-flow-row{display:flex;gap:11px;align-items:center;width:100%;text-align:left;background:transparent;border:1px solid transparent;padding:13px 10px;border-radius:12px;min-width:0;color:var(--text);transition:.15s}.studio-group-row:hover,.studio-agent-row:hover,.studio-flow-row:hover{background:var(--panel2)}.studio-group-row.selected,.studio-agent-row.selected,.studio-flow-row.selected{background:#e9f9f4;border-color:#caeee3}.studio-group-avatar,.studio-detail-logo{display:grid;place-items:center;background:color-mix(in srgb,var(--group-color) 16%,white);color:var(--group-color);border:1px solid color-mix(in srgb,var(--group-color) 28%,white);font-weight:800;border-radius:12px;width:40px;height:40px;flex:none;font-size:12px}.studio-group-info,.studio-agent-row>span:nth-child(2),.studio-flow-row>span:nth-child(2){min-width:0;flex:1}.studio-group-info strong,.studio-agent-row b,.studio-flow-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px}.studio-group-info small,.studio-agent-row small,.studio-flow-row small{font-size:9.5px;color:var(--muted);display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.studio-group-chevron{font-size:23px;color:#a3afc2}.studio-sidebar-hint{display:flex;align-items:start;gap:11px;padding:17px 16px;background:var(--panel2);border-top:1px solid var(--line);color:var(--muted);font-size:10px;line-height:1.6}.studio-sidebar-hint svg{width:17px;flex:none;color:#069e83}.studio-detail-head{display:flex;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line)}.studio-detail-logo{width:59px;height:59px;font-size:19px;border-radius:17px}.studio-detail-title{flex:1;min-width:0}.studio-overline{font-weight:850;color:#0f9d81;letter-spacing:1.3px;font-size:9px}.studio-detail-title h2{font-size:22px;letter-spacing:-.7px;margin:7px 0}.studio-detail-title p{font-size:11px;line-height:1.5;color:var(--muted);margin:0;max-width:650px}.studio-head-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:end}.studio-metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.studio-metric-strip>div{background:var(--panel2);border:1px solid var(--line);padding:14px 16px;border-radius:12px}.studio-metric-strip b{font-size:23px;letter-spacing:-.5px;display:block}.studio-metric-strip span{font-size:10px;color:var(--muted);display:block;margin-top:3px}.studio-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:15px}.studio-subpanel{padding:18px 18px 15px;border:1px solid var(--line);border-radius:14px;background:var(--panel);min-width:0}.studio-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.studio-section-head h3{font-size:12.5px;margin:0;font-weight:800}.studio-section-head small,.studio-section-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.studio-people-list{min-height:70px}.studio-person{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.studio-person:last-child{border:0}.studio-person>span:nth-child(2){flex:1;min-width:0}.studio-person b,.studio-resource b{display:block;font-size:11px}.studio-person small,.studio-resource small{display:block;font-size:9.5px;color:var(--muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis}.studio-person .avatar{width:32px;height:32px}.studio-group-chat{margin-top:16px}.studio-conversation{min-height:140px;max-height:330px;overflow:auto;display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:15px;border:1px solid var(--line);border-radius:12px;background:radial-gradient(#dcebe94f 1px,transparent 1px),var(--panel2);background-size:17px 17px}.studio-bubble{max-width:80%;border:1px solid var(--line);background:var(--panel);padding:10px 13px;border-radius:12px 12px 12px 3px}.studio-bubble.outgoing{align-self:end;background:#e1f6ed;border-color:#ceebdb;border-radius:12px 12px 3px 12px}.studio-bubble small{font-size:9px;color:var(--muted)}.studio-bubble p{font-size:11.5px;line-height:1.6;margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.studio-compose{display:flex;gap:9px;margin-top:13px}.studio-compose input{flex:1}.studio-bottom-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:19px}.studio-empty{text-align:center;padding:40px 20px;color:var(--muted)}.studio-empty-icon{font-size:37px;color:#9edacc}.studio-empty h3{color:var(--text);font-size:13px;margin:10px 0 7px}.studio-empty p{font-size:10.5px;line-height:1.5;max-width:300px;margin:0 auto}.studio-member-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.studio-checkbox-list{max-height:400px;overflow:auto;border:1px solid var(--line);border-radius:11px;padding:7px}.studio-checkbox{display:flex;align-items:center;gap:9px;padding:9px 7px;cursor:pointer;border-radius:7px}.studio-checkbox:hover{background:var(--panel2)}.studio-checkbox>span{display:flex;align-items:center;gap:9px;min-width:0}.studio-checkbox b{font-size:11px}.studio-checkbox small{display:block;color:var(--muted);font-size:10px}.studio-checkbox input{accent-color:var(--brand)}
/* Agent studio */
.studio-agent-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:19px}.studio-agent-stats>div{padding:19px 22px;background:var(--panel);border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:space-between}.studio-agent-stats span{font-size:11px;color:var(--muted)}.studio-agent-stats strong{font-size:23px}.studio-agent-row .avatar{width:41px;height:41px}.studio-agent-filter{display:flex;gap:4px;padding:0 14px 13px}.studio-agent-filter button{flex:1;border:1px solid var(--line);background:var(--panel);color:var(--muted);padding:7px 3px;font-size:10px;border-radius:8px}.studio-agent-filter button.active{background:#e5f8ef;border-color:#c8ecdc;color:#078d6a;font-weight:800}.studio-status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#aeb9c6;box-shadow:0 0 0 4px #aeb9c621;flex:none}.studio-status-dot.on{background:#10b88b;box-shadow:0 0 0 4px #10b88b23}.studio-agent-portrait{width:65px;height:65px;background:linear-gradient(135deg,#10c8a0,#118f8e);border-radius:19px;display:grid;place-items:center;color:white;font-size:20px;font-weight:900;position:relative;box-shadow:0 7px 15px #04b59124}.studio-agent-portrait i{position:absolute;bottom:-4px;right:-4px;width:15px;height:15px;border:3px solid white;border-radius:50%;background:#15c58e}.studio-tabs{display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding:6px 0 0;overflow-x:auto;scrollbar-width:thin}.studio-tabs button{border:0;background:transparent;padding:14px 12px;color:var(--muted);font-size:11px;white-space:nowrap;font-weight:700;position:relative}.studio-tabs button.active{color:var(--brand)}.studio-tabs button.active:after{content:"";height:2px;background:var(--brand);position:absolute;bottom:0;left:8px;right:8px}.studio-tab-content{padding-top:16px;min-height:305px}.studio-keylist>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:11px}.studio-keylist span{color:var(--muted)}.studio-keylist b{text-align:right;font-size:11px}.studio-keylist>div:last-child{border:0}.studio-healthlist>div{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:11px}.studio-healthlist>div svg{width:15px;color:#099d80}.studio-healthlist>div .studio-tag{margin-left:auto}.studio-prompt{font-size:11px;line-height:1.8;white-space:pre-wrap;background:var(--panel2);border:1px dashed #cbd8dd;padding:13px;border-radius:11px}.studio-editor-form{margin:3px 0;padding:7px}.studio-form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px}.studio-footnote{color:var(--muted);font-size:10px;line-height:1.7;margin-top:15px}.studio-resource{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.studio-resource:last-child{border:0}.studio-resource>span:nth-child(2){flex:1;min-width:0}.studio-resource-icon{width:31px;height:31px;background:#e5f7f0;color:#0c9e7c;border-radius:9px;display:grid;place-items:center;font-weight:800}
/* Flow builder */
.studio-flow-layout{grid-template-columns:285px minmax(0,1fr)}.studio-flow-row{padding:13px 8px;gap:9px}.studio-flow-row .studio-tag{font-size:9px}.studio-flow-icon{width:35px;height:35px;border-radius:11px;background:#f0edff;color:#776bdf;display:grid;place-items:center;flex:none}.studio-flow-icon svg{width:17px}.flow-editor-head{padding-bottom:18px}.flow-logo{--group-color:#715fe4;background:#efedff;color:#6b58e0;font-size:28px}.studio-flow-meta{padding:17px 0;border-bottom:1px solid var(--line)}.studio-flow-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.studio-flow-form label{font-size:10px;color:var(--muted);font-weight:750;display:flex;flex-direction:column;gap:6px}.studio-flow-form label.wide{grid-column:1/-1}.studio-flow-form input,.studio-flow-form select{font-size:11px}.flow-builder-wrap{border:1px solid var(--line);border-radius:15px;margin-top:18px;overflow:hidden}.flow-builder-top{padding:13px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.flow-builder-top>span{display:flex;align-items:center;gap:9px;font-size:11px}.flow-builder-top svg{width:15px;color:#149e85}.flow-canvas{background-color:#f7f9fd;background-image:radial-gradient(#d2dce8 1px,transparent 1px);background-size:19px 19px;min-height:420px;max-height:800px;overflow:auto;padding:24px 20px}.flow-track{width:min(100%,630px);margin:0 auto;display:flex;flex-direction:column;align-items:center}.flow-trigger-card{width:min(100%,450px);display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #a9ead8;border-radius:14px;background:#e5f9f3;box-shadow:0 7px 19px #10a88912}.flow-trigger-icon{font-size:23px;width:43px;height:43px;border-radius:10px;background:#c9f2e4;display:grid;place-items:center;color:#089c80}.flow-trigger-card small,.flow-trigger-card strong,.flow-trigger-card span{display:block}.flow-trigger-card small{font-size:9px;color:#089c80;font-weight:850;letter-spacing:1.1px}.flow-trigger-card strong{font-size:13px;margin-top:5px}.flow-trigger-card span{font-size:10px;color:#5c9182;margin-top:4px}.flow-link{height:35px;width:2px;background:#c4cedb;position:relative;flex:none}.flow-link:after{content:"";position:absolute;bottom:0;left:-4px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #becbd9}.flow-node{width:min(100%,535px);display:flex;align-items:flex-start;gap:12px;background:var(--panel);border:1px solid #dce4ef;box-shadow:0 9px 22px #1935590d;border-radius:15px;padding:15px 12px;position:relative;transition:.12s}.flow-node:hover{border-color:#b6dfd0}.flow-node.drag-over{border-color:#059e87;background:#e9f9f3}.flow-node.focused{border-color:#44bf9e}.flow-node-symbol{flex:none;width:42px;height:42px;border-radius:12px;background:#edf2ff;color:#6d6adb;display:grid;place-items:center;font-size:25px}.flow-node-content{flex:1;min-width:0}.flow-node-top{display:flex;align-items:center;justify-content:space-between;color:#0b9f82;font-size:9px;font-weight:850;letter-spacing:.8px}.flow-node-content strong{font-size:12px;display:block;margin:5px 0}.flow-node-content p{font-size:10px;color:var(--muted);line-height:1.55;margin:0;overflow-wrap:anywhere}.flow-node-drag{cursor:grab;color:#9ca8bd;font-size:17px}.flow-node-buttons{display:flex;flex-direction:column;gap:4px}.flow-node-buttons button{height:25px;width:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff;color:#8190a5;font-size:15px}.flow-node-buttons button:hover{color:#06a485;border-color:#a0dbc8}.flow-node-buttons svg{height:13px;width:13px}.flow-add-node{display:flex;align-items:center;gap:9px;color:#0a9b7c;font-weight:800;border:1.5px dashed #b6dccc;border-radius:11px;padding:13px 25px;background:#f1faf6;font-size:11px}.flow-add-node svg{width:16px}.flow-add-node:hover{background:#dff6ed}.flow-end{font-size:9px;letter-spacing:1.2px;color:#aab3c3;margin-top:17px;font-weight:850}.flow-builder-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:13px 17px;background:var(--panel2);border-top:1px solid var(--line)}.flow-builder-bottom>div:first-child{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.studio-flow-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:15px}.studio-step-library{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.studio-step-option{text-align:left;display:grid;grid-template-columns:39px 1fr;grid-template-rows:1fr 1fr;gap:2px 11px;align-items:center;background:var(--panel2);border:1px solid var(--line);padding:14px;border-radius:12px}.studio-step-option:hover{background:#e7f9f1;border-color:#a1e3d0}.studio-step-option>span{grid-row:1/3;height:37px;width:37px;border-radius:10px;background:#e5f7ef;color:#0d9e83;display:grid;place-items:center;font-size:20px}.studio-step-option strong{font-size:11px}.studio-step-option small{font-size:9.5px;color:var(--muted)}.studio-trace-row{display:flex;align-items:center;gap:12px;padding:13px;border-bottom:1px solid var(--line)}.studio-trace-row>div{flex:1;min-width:0}.studio-trace-row strong{font-size:11px}.studio-trace-row p{font-size:10px;color:var(--muted);margin:4px 0;overflow-wrap:anywhere}.studio-trace-index{width:29px;height:29px;border-radius:9px;background:#e5f7ef;color:#0d9e83;display:grid;place-items:center;font-weight:800}.studio-command-results{max-height:420px;overflow:auto;margin-top:10px}.studio-command-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;border-bottom:1px solid var(--line);font-size:12px}.studio-command-row:hover{background:var(--panel2)}.studio-command-row svg{width:17px;color:#14ae91}.studio-command-row span{flex:1}.studio-command-row small{color:var(--muted)}.studio-command-row[hidden]{display:none}
/* All other pages: coherent polish */
.grid-cards .item-card{gap:15px;border-radius:16px;padding:21px}.grid-cards .item-card:hover{border-color:#c8e9dd;box-shadow:0 12px 28px #1235350d}.table-wrap table{font-size:12px}.card-header{background:linear-gradient(90deg,#fff,#fafcff)}.badge{border-radius:7px}.pill{border-radius:8px}.card-body{line-height:1.55}.quick-item,.action-btn,.pagination button{transition:.15s}.search-box{background:var(--panel2)}.toolbar{background:#fff}.form-grid{gap:15px}
/* High-contrast dark mode works on every custom panel */
:root[data-theme="dark"]{--bg:#101827;--panel:#1a2537;--panel2:#202e42;--text:#edf4ff;--muted:#afbdd1;--line:#35435b;--brand:#28d8b3;--brand-dark:#0eac8d;--brand-soft:#1b493f;--shadow:0 10px 25px #060d1855}
:root[data-theme="dark"] .topbar,:root[data-theme="dark"] .card-header{background:var(--panel)}
:root[data-theme="dark"] .dash-stat,:root[data-theme="dark"] .studio-primary-panel,:root[data-theme="dark"] .studio-list-panel{background:var(--panel)}
:root[data-theme="dark"] .studio-group-row.selected,:root[data-theme="dark"] .studio-agent-row.selected,:root[data-theme="dark"] .studio-flow-row.selected{background:#19483d;border-color:#306757}
:root[data-theme="dark"] .studio-group-avatar,:root[data-theme="dark"] .studio-detail-logo,:root[data-theme="dark"] .studio-conversation,:root[data-theme="dark"] .flow-canvas,:root[data-theme="dark"] .flow-trigger-card{background:var(--panel2)}
:root[data-theme="dark"] .studio-tag,:root[data-theme="dark"] .studio-tag.success,:root[data-theme="dark"] .studio-tag.amber{background:#233e44;color:#a8f4dd;border-color:#3c685b}
:root[data-theme="dark"] .flow-node,:root[data-theme="dark"] .flow-node-buttons button,:root[data-theme="dark"] .studio-step-option{background:var(--panel);color:var(--text)}
:root[data-theme="dark"] .studio-bubble,:root[data-theme="dark"] .studio-bubble.outgoing{background:var(--panel2)}
:root[data-theme="dark"] .studio-agent-filter button.active{background:#1d4c40;color:#b1fce3}
:root[data-theme="dark"] .studio-agent-stats>div,:root[data-theme="dark"] .dash-bottom-strip{background:var(--panel);color:var(--text)}
:root[data-theme="dark"] .dash-shortcut,:root[data-theme="dark"] .dash-chart-bars{background:var(--panel2)}
:root[data-theme="dark"] .flow-add-node{background:#173d39;color:#b0f8df;border-color:#376e60}
:root[data-theme="dark"] .top-search-button,:root[data-theme="dark"] .mode-chip{background:#183b39;color:#8feacc}
@media(min-width:1750px){.page{padding:38px 46px 75px}}
@media(max-width:1350px){.top-search-button{min-width:40px}.top-search-button>span:nth-child(2),.top-search-button kbd{display:none}.mode-chip{font-size:0;padding:11px}.studio-layout{grid-template-columns:265px minmax(0,1fr)}.studio-flow-layout{grid-template-columns:255px minmax(0,1fr)}.studio-primary-panel{padding:17px}.dash-hero-art{right:0}}
@media(max-width:1040px){.dash-hero-art{opacity:.42;right:-60px}.dash-grid-main{grid-template-columns:1fr}.studio-panel-grid{grid-template-columns:1fr}.studio-layout{grid-template-columns:240px minmax(0,1fr)}.studio-agent-stats{gap:8px}.studio-agent-stats>div{padding:12px}.studio-heading h1{font-size:25px}.studio-detail-head{flex-wrap:wrap}.studio-head-btns{justify-content:start}}
@media(max-width:900px){.sidebar{width:260px;transform:translateX(-105%)}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0}.topbar{padding:0 15px}.page{padding:22px 14px 45px}.dash-hero{min-height:260px}.dash-hero-content{padding:30px}.studio-layout{grid-template-columns:1fr}.studio-list-panel{position:static}.studio-group-list,.studio-flow-list{max-height:235px}.studio-agent-stats{grid-template-columns:1fr 1fr}.studio-flow-layout{grid-template-columns:1fr}.studio-list-panel .studio-sidebar-hint{display:none}}
@media(max-width:620px){.topbar{height:62px}.top-actions{gap:5px}.top-search-button,.top-actions #quick-add,.top-actions .mode-chip,.breadcrumbs>span:first-child,.breadcrumbs .chevron{display:none}.top-actions .icon-btn{width:33px}.page{padding:18px 12px 44px}.page-head,.studio-heading{flex-direction:column;align-items:stretch}.studio-toolbar .btn{width:100%}.dash-hero-content{padding:25px 22px}.dash-hero-art{display:none}.dash-hero h1{font-size:27px}.dash-stats{grid-template-columns:1fr 1fr;gap:10px}.dash-stat{padding:15px;min-height:136px}.dash-stat .stat-value{font-size:25px}.dash-shortcuts{grid-template-columns:1fr}.dash-bottom-strip{flex-direction:column;align-items:flex-start}.dash-bottom-strip>div:first-child{flex-wrap:wrap}.dash-bottom-numbers{flex-wrap:wrap}.studio-primary-panel{padding:14px;min-height:0}.studio-detail-logo{width:46px;height:46px}.studio-detail-title h2{font-size:18px}.studio-detail-head{gap:10px}.studio-panel-grid{grid-template-columns:1fr}.studio-metric-strip{gap:6px}.studio-metric-strip>div{padding:10px}.studio-metric-strip b{font-size:19px}.studio-metric-strip span{font-size:9px}.studio-compose{flex-direction:column}.studio-member-columns{grid-template-columns:1fr}.studio-agent-stats>div{padding:10px;flex-direction:column;align-items:flex-start;gap:8px}.studio-flow-form{grid-template-columns:1fr}.flow-builder-top,.flow-builder-bottom{flex-direction:column;align-items:flex-start}.flow-node{padding:10px 8px;gap:8px}.flow-node-symbol{width:32px;height:32px;font-size:20px}.flow-node-buttons{gap:2px}.flow-node-buttons button{width:23px;height:23px}.flow-canvas{padding:18px 8px}.studio-step-library{grid-template-columns:1fr}.footer{padding:15px;flex-wrap:wrap}}
