/* Export workspace: project spine → sliding page rail → graph and supporting preview. */
body.studio{--bg:#f7f8fc;--bg-soft:#fff;--panel:#f0f2f8;--panel-2:#e8ebf4;--border:#d9deeb;--border-soft:#e8ebf3;--text:#243044;--muted:#58667c;--muted-2:#707c91;--accent:#6267d9;--accent-2:#4e53bb;--accent-soft:#eceefb;--good:#278c72;--shadow:0 12px 32px #28385516;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:13px;height:100dvh;color-scheme:light}
body.studio[data-theme=dark]{--bg:#191e29;--bg-soft:#222936;--panel:#2a3242;--panel-2:#343e50;--border:#3a4559;--border-soft:#30394a;--text:#e5eaf4;--muted:#acb8cc;--muted-2:#96a5bc;--accent:#a4a7ff;--accent-2:#c3c5ff;--accent-soft:#3b4066;--good:#82cfb2;--shadow:0 12px 32px #0003;color-scheme:dark}
.studio :is(button,input,select,summary,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.studio button{font-family:inherit}
.studio [hidden]{display:none!important}
.studio > header{display:none}
.studio .btn{border-radius:9px;padding:8px 12px;box-shadow:none;font-size:12px;min-height:36px;background:var(--panel);color:var(--text);border:1px solid transparent}
.studio .btn.ghost{background:transparent;border-color:var(--border)}
.studio .btn:hover{background:var(--accent-soft);color:var(--accent-2)}
.studio .btn svg{width:16px;height:16px}
.studio-top{height:76px;flex:none;display:flex;align-items:center;padding:0 24px 0 18px;gap:26px}
.studio-brand{display:flex;align-items:center;gap:12px;flex:none;width:280px;background:none;border:none;color:var(--muted);padding:0;text-align:left;font-size:12px;line-height:1.3;cursor:pointer}
.studio-brand strong{font-size:16px;color:var(--text);font-weight:650;letter-spacing:-.3px}
.studio-mark{display:grid;place-items:center;width:36px;height:40px;background:var(--accent);color:var(--bg-soft);border-radius:10px 10px 10px 3px}
.studio-mark svg{width:22px;height:22px}
.studio-location{display:flex;align-items:center;min-width:0;flex:1;gap:10px}
#studioTrail{display:flex;align-items:center;gap:10px;color:var(--muted-2);min-width:0;white-space:nowrap}
#studioTrail button{border:0;background:none;color:var(--muted);padding:6px 0;cursor:pointer;font-size:13px}
#studioTrail button:last-child{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis}
.studio-back{display:none;border:0;background:var(--panel);color:var(--text);height:36px;align-items:center;gap:5px;padding:0 10px;border-radius:8px;cursor:pointer}
.studio-back svg{width:15px;height:15px}
.studio-actions{display:flex;align-items:center;gap:8px;flex:none}
.studio #reviewBtn{color:var(--accent-2);background:var(--accent-soft);border-color:transparent}
.studio #reviewCount{display:inline-grid;place-items:center;background:var(--bg-soft);padding:1px 6px;border-radius:5px;font-size:11px}
.studio-more{position:relative}
.studio-more summary{list-style:none;display:grid;place-items:center;width:36px;height:36px;cursor:pointer;border-radius:8px;color:var(--muted)}
.studio-more summary::-webkit-details-marker,.studio-graph-tools summary::-webkit-details-marker{display:none}
.studio-more[open] summary,.studio-more summary:hover{background:var(--panel)}
.studio-more summary svg{width:22px;height:22px}
.studio-tools{position:absolute;right:0;top:44px;width:210px;border:1px solid var(--border);background:var(--bg-soft);padding:8px;border-radius:12px;box-shadow:var(--shadow);z-index:60;display:grid;gap:4px}
.studio-tools .btn{justify-content:flex-start;border:none;text-align:left;width:100%}
.studio-tools .icon{width:100%}
.studio-tools #refreshBtn::after{content:'Refresh captures'}
.studio-tools #settingsBtn::after{content:'Settings'}
.studio .layout{gap:0;padding:0 16px 16px 0;min-height:0}
.studio #aside{display:none!important}
.studio-spine{width:66px;flex:none;display:flex;align-items:center;flex-direction:column;gap:22px;padding:10px 0;border-right:1px solid var(--border-soft)}
.studio-spine button{width:36px;height:36px;border:0;border-radius:11px;display:grid;place-items:center;cursor:pointer;font-size:12px;font-weight:650;position:relative}
.studio-spine svg{width:19px;height:19px}
.studio-home,.studio-add{background:none;color:var(--muted)}
.studio-spine .studio-add{margin-top:auto}
#studioProjectIcons{display:grid;gap:14px}
.studio-project-icon{opacity:.65;transition:opacity 150ms}
.studio-project-icon:hover,.studio-project-icon.selected{opacity:1}
.studio-project-icon.selected::before{content:'';position:absolute;width:3px;height:22px;left:-15px;border-radius:3px;background:var(--accent)}
.iris{background:#e6e5fb;color:#5855ad}.sea{background:#dcefe9;color:#397869}.rose{background:#f2e1e7;color:#996077}.gold{background:#f2eacb;color:#8c752b}
.studio-rail{width:242px;flex:none;overflow:hidden;display:flex;position:relative;min-height:0}
.studio-rail-track{display:flex;width:200%;flex:none;min-height:0;transform:translateX(-50%);transition:transform 240ms cubic-bezier(.22,.7,.2,1)}
.studio[data-stage=projects] .studio-rail-track{transform:translateX(0)}
.studio-project-panel,.studio-page-panel{width:50%;flex:none;display:flex;flex-direction:column;min-height:0;padding:8px 14px}
.studio-rail-heading{padding:16px 10px 20px}
.studio-rail-heading h2{font-size:20px;font-weight:650;letter-spacing:-.6px;margin:0 0 8px;overflow-wrap:anywhere}
.studio-rail-heading p{margin:0;color:var(--muted-2);font-size:12px;line-height:1.5}
.studio-projects{display:grid;gap:6px;overflow:auto;align-content:start}
.studio-project{display:flex;align-items:center;gap:12px;border:0;background:none;color:var(--text);border-radius:11px;padding:14px 9px;text-align:left;cursor:pointer;width:100%}
.studio-project:hover,.studio-project.selected{background:var(--bg-soft)}
.studio-avatar{width:36px;height:40px;border-radius:10px;display:grid;place-items:center;flex:none;font-size:12px;font-weight:650}
.studio-project strong{font-size:14px;display:block;font-weight:600}
.studio-project small{font-size:11px;display:block;margin-top:5px;color:var(--muted-2)}
.studio-chevron{margin-left:auto;color:var(--muted-2);font-size:20px}
[aria-busy=true].studio-project{opacity:.5}
.studio-up{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;background:none;border:none;padding:6px 8px;text-align:left;cursor:pointer;min-height:32px}
.studio-up svg{width:14px;height:14px}
.studio-page-search{margin:0 8px 14px;display:flex;align-items:center;gap:7px;min-width:0;border-bottom:1px solid var(--border);padding-bottom:8px;color:var(--muted-2)}
.studio-page-search svg{width:15px;height:15px;flex:none}
.studio-page-search input{background:none;border:none;color:var(--text);font:inherit;font-size:12px;width:100%;min-width:0;outline:none}
.studio-pages{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:4px;padding:3px 2px 12px;scrollbar-width:thin}
.studio-page{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:11px 10px;border:0;border-radius:9px;background:none;color:var(--muted);text-align:left;cursor:pointer;flex:none}
.studio-page>svg{width:17px;height:17px;flex:none;color:var(--muted-2)}
.studio-page strong{display:block;font-size:12px;font-weight:550;line-height:1.35}
.studio-page small{display:block;font-size:11px;color:var(--muted-2);margin-top:3px}
.studio-page-count{font-size:10px;margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted-2)}
.studio-page:hover{background:var(--bg-soft)}
.studio-page[aria-current=page]{background:var(--accent-soft);color:var(--accent-2)}
.studio-page[aria-current=page]>svg{color:var(--accent)}
#studioNoPages{padding:12px;color:var(--muted)}
.studio .layout>main{border:1px solid var(--border-soft);border-radius:16px;background:var(--bg-soft);min-width:0;overflow:hidden;box-shadow:0 3px 12px #24304404}
.studio-context{padding:27px 28px 16px;display:flex;align-items:center;gap:16px;flex:none}
.studio-heading{min-width:0;flex:1}
.studio-heading h1{font-size:24px;font-weight:620;letter-spacing:-.8px;margin:0;color:var(--text);line-height:1.3}
.studio-heading p{font-size:12px;color:var(--muted-2);margin:7px 0 0}
.studio-device{display:flex;flex-direction:column;gap:5px;align-items:flex-end;flex:none}
.studio-device>span{font-size:10px;color:var(--muted-2)}
.studio-device select{border:1px solid var(--border);border-radius:8px;background:var(--bg-soft);color:var(--text);font:inherit;font-size:11px;padding:7px 9px;max-width:230px}
.studio .crumbs{border-bottom:1px solid var(--border-soft);padding:0 28px 14px;min-height:44px;gap:12px;background:none}
.studio .crumbs>.seg,.studio .crumbs>.sep{display:none}
.studio .viewseg{margin:0;border:0;background:var(--panel);padding:3px;gap:2px;border-radius:9px}
.studio .viewseg button{border:0;background:none;border-radius:6px;font-size:11px;padding:6px 12px;min-height:30px}
.studio .viewseg button.active{background:var(--bg-soft);color:var(--text);box-shadow:0 1px 4px #24304412}
.studio .content{min-height:0}
.studio[data-stage=projects] :is(.studio-context,#crumbs,#guideBtn,#reviewBtn){display:none!important}
.studio[data-stage=pages] #crumbs{display:none!important}
.studio-welcome{height:100%;min-height:340px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(30px,7vw,100px);background:linear-gradient(120deg,var(--bg-soft),var(--bg))}
.studio-welcome h1{font-size:clamp(28px,3vw,46px);letter-spacing:-1.8px;font-weight:600;max-width:500px;line-height:1.12;margin:30px 0 18px}
.studio-welcome p{max-width:350px;color:var(--muted);font-size:15px;line-height:1.7;margin:0}
.studio-welcome-diagram{display:flex;align-items:center;gap:8px;height:80px}
.studio-welcome-diagram i{display:block;border:1px solid var(--border);height:72px;width:24px;border-radius:8px;background:var(--panel)}
.studio-welcome-diagram i:nth-child(2){width:45px;height:96px;background:var(--accent-soft);border-color:var(--accent)}
.studio-welcome-diagram i:nth-child(3){width:95px;height:80px;background:var(--bg-soft)}
.studio-welcome-diagram i:nth-child(4){width:55px;height:80px;background:var(--bg-soft)}
.studio .flow-bar{padding:12px 18px;min-height:50px;height:auto;gap:8px;border-bottom:1px solid var(--border-soft);background:var(--bg-soft);flex-wrap:wrap}
.studio .fb-chain{flex-basis:100%;max-width:none;font-size:11px;line-height:1.6;color:var(--muted-2)}
.studio .fb-chain>b{color:var(--text)}
.studio .chip,.studio .coreseg button,.studio .zoomers button{font-size:11px;min-height:30px;border-radius:7px;background:var(--bg-soft);border-color:var(--border-soft);color:var(--muted)}
.studio .chip.primary,.studio .coreseg button.active{color:var(--accent-2);background:var(--accent-soft)}
.studio .coreseg{border:1px solid var(--border-soft);border-radius:7px}
.studio .coreseg button{border-radius:0}
.studio .flow-canvas{background-color:var(--bg);background-image:radial-gradient(var(--border) .65px,transparent .65px);background-size:18px 18px}

.studio .flow-inspector .insp-name{font-size:15px;line-height:1.5;font-weight:600}


.studio .flow-inspector .insp-modes{border:0;border-radius:8px;background:var(--panel);padding:3px}
.studio .flow-inspector .insp-modes button{background:none;border:0;border-radius:6px;font-size:11px}
.studio .flow-inspector .insp-modes button.active{background:var(--bg-soft);color:var(--text)}
.studio .flow-resizer{width:5px;background:var(--border-soft)}
.studio .fnode rect{stroke-width:1.2}
.studio .fnode.sel rect{stroke-width:2}
.studio .fnode:focus-visible{outline:none}.studio .fnode:focus-visible rect{stroke:var(--accent);stroke-width:3}
.studio-graph-tools{position:relative;flex:none}
.studio-graph-tools summary{list-style:none;font-size:11px;color:var(--muted);padding:7px 9px;cursor:pointer;border-radius:7px;border:1px solid var(--border-soft)}
.studio-graph-menu{position:absolute;right:0;top:36px;z-index:40;padding:12px;background:var(--bg-soft);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:10px;width:190px;display:grid;gap:10px}
.studio .lightbox{z-index:180;background:var(--bg)}
.studio :is(.gb-top,.gr-top){background:var(--bg-soft);height:auto;min-height:64px;flex-wrap:wrap;gap:10px;padding:12px 22px}
.studio :is(.gb-title,.gr-title){font-size:15px;font-weight:600}


.studio .gb-flag-read{white-space:pre-wrap}.studio .gb-meta{overflow-wrap:anywhere;font-size:10px}
.studio :is(.gb-toc,.gr-side){background:var(--bg);border-color:var(--border-soft)}

.studio .gb-note-field{font-size:14px;line-height:1.7}
.studio .gr-device{color:var(--muted-2);font-size:12px;margin:8px 0}
.studio .gr-hname{font-size:12px;overflow-wrap:anywhere}
.studio .gr-stage{background:var(--bg);border-color:var(--border-soft)}
.studio .gr-cue{font-size:11px;color:var(--muted-2)}
.export-dialog{background:var(--bg-soft);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:26px;width:min(500px,94vw);box-shadow:var(--shadow)}
.export-dialog::backdrop{background:#17223b66;backdrop-filter:blur(4px)}
.export-dialog h2{font-size:20px;letter-spacing:-.5px}
.export-dialog input{display:block;margin:12px 0;padding:10px;max-width:100%;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px}
.export-dialog input[type=url]{width:100%}.export-dialog [role=alert]{color:#b33c43;overflow-wrap:anywhere}
@media(min-width:1700px){.studio-rail{width:270px}.studio-brand{width:308px}}
@media(max-width:1150px){
 .studio-top{gap:16px;padding:0 16px;height:66px}.studio-brand{width:232px}.studio-rail{width:200px}.studio-spine{width:52px}.studio-project-icon.selected::before{left:-8px}

 .studio .flow-resizer{display:none}.studio .flow-bar{padding:10px 12px}
 .studio-context{padding:20px 20px 14px}.studio-heading h1{font-size:21px}.studio .crumbs{padding:0 20px 12px}

}
@media(max-width:700px){
 .studio-top{height:60px;padding:0 12px;gap:10px}.studio-brand{width:auto}.studio-brand>span:last-child{display:none}.studio-mark{width:28px;height:32px;border-radius:8px 8px 8px 2px}.studio-mark svg{width:18px}
 .studio-location{font-size:12px}#studioTrail{gap:5px}#studioTrail>button:first-child{display:none}#studioTrail{font-size:0}#studioTrail>button{font-size:12px}
 .studio-actions{gap:5px}.studio-actions>.btn{font-size:0;padding:7px;min-width:34px;gap:4px}.studio-actions>.btn svg{width:17px;height:17px}.studio #reviewCount{font-size:10px;padding:1px 4px}
 .studio[data-stage=flow] .studio-back{display:flex}.studio[data-stage=flow] #studioTrail{display:none}
 .studio .layout{padding:0 10px 10px 0}.studio-spine{width:48px}.studio-spine button{width:32px;height:34px}.studio-project-icon.selected::before{left:-7px}
 .studio-rail{width:calc(100% - 48px);border:1px solid var(--border-soft);border-radius:14px;background:var(--bg-soft)}
 .studio-project-panel,.studio-page-panel{padding:12px 16px}.studio-rail-heading{padding:12px 10px 20px}.studio-rail-heading h2{font-size:25px}
 .studio-project{padding:17px 10px}.studio-project:hover,.studio-page:hover{background:var(--bg)}.studio-projects{gap:8px}.studio-project strong{font-size:16px}.studio-project small{font-size:12px}
 .studio-page{min-height:56px}.studio-page strong{font-size:14px}.studio-page small{font-size:12px}
 .studio[data-stage=projects] .layout>main{display:none}
 .studio[data-stage=pages] .studio-rail,.studio[data-stage=pages] .studio-spine{display:none}
 .studio[data-stage=pages] .layout{padding:0 8px 8px}
 .studio[data-stage=pages] .studio-back{display:flex}
 .studio[data-stage=pages] #studioTrail{display:none}
 .studio[data-stage=flow] .studio-rail{display:none}.studio[data-stage=flow] .studio-spine{display:none}.studio[data-stage=flow] .layout{padding:0 8px 8px}
 .studio-context{padding:16px 15px 12px;gap:12px;align-items:flex-start}.studio-heading h1{font-size:18px;letter-spacing:-.45px}.studio-heading p{font-size:11px;line-height:1.5;max-width:170px}.studio-device select{max-width:155px;font-size:10px;padding:6px}
 .studio .crumbs{padding:0 15px 10px;min-height:42px}.studio .viewseg button{padding:5px 9px;gap:5px;font-size:11px}
 .studio .flow-bar{gap:6px;padding:8px 10px}.studio .fb-chain{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:22px;display:block}
 .studio .map-hint{max-width:230px;font-size:11px}.studio .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
 .studio :is(.gb-top,.gr-top){padding:10px;gap:7px}.studio :is(.gb-top,.gr-top) .spacer{display:none}.studio :is(.gb-body,.gr-body){flex-direction:column}
 .studio .gr-side{width:100%;max-height:100px;flex:none}.studio .gr-panel{padding:12px}.studio .gr-cmp,.studio .gr-acts{flex-wrap:wrap;gap:5px}.studio .gr-stage{min-height:170px}
}
@media(prefers-reduced-motion:reduce){.studio *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.studio-appearance{position:relative}
.studio-appearance-button{display:grid;place-items:center;width:36px;height:36px;padding:7px;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.studio-appearance-button:hover,.studio-appearance-button[aria-expanded=true]{background:var(--panel)}
.studio-appearance-button svg{width:19px;height:19px}
.studio-appearance-options{position:absolute;top:44px;right:0;width:180px;margin:0;padding:8px;border:1px solid var(--border);background:var(--bg-soft);color:var(--text);border-radius:12px;box-shadow:var(--shadow);z-index:70}
.studio-appearance-options legend{float:left;width:100%;font-size:11px;color:var(--muted-2);padding:7px 8px 8px}
.studio-appearance-options label{display:flex;align-items:center;gap:12px;padding:10px 8px;min-height:40px;cursor:pointer;border-radius:7px;clear:both;font-size:13px}
.studio-appearance-options label:hover{background:var(--panel)}
.studio-appearance-options input{accent-color:var(--accent);margin:0;width:15px;height:15px}
.studio .insp-header{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.studio .insp-header .insp-name{flex:1;min-width:130px}
.studio .insp-img[aria-label]{cursor:zoom-in}
.studio .insp-img[aria-label]:hover{border-color:var(--accent)}


.studio .lb-bar{background:var(--bg-soft);border-bottom:1px solid var(--border);padding:12px 20px;gap:14px;flex-wrap:wrap;min-height:64px;color:var(--text)}
.studio .lb-close{width:auto;min-width:76px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:8px;font-size:12px}
.studio .lb-close::after{content:'Close'}
.studio .lb-name{max-width:60vw;color:var(--text)}
.studio .lb-stage{background:var(--bg);padding:20px 24px 78px}
.studio .lb-nav{position:absolute;top:auto;bottom:18px;transform:none;width:106px;height:40px;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--bg-soft);color:var(--text);border:1px solid var(--border);border-radius:9px;font-size:12px}
.studio .lb-nav svg{width:15px;height:15px}.studio .lb-nav.prev{left:calc(50% - 114px)}.studio .lb-nav.next{right:calc(50% - 114px)}
.studio .lb-nav.prev::after{content:'Previous'}.studio .lb-nav.next::before{content:'Next'}
.studio .lb-nav:disabled{opacity:.35;cursor:default}
@media(max-width:700px){
 .studio .lb-bar{padding:9px 10px;gap:8px}.studio .lb-name{max-width:65vw;font-size:10px}.studio .lb-dim{display:none}.studio .lb-stage{padding:12px 8px 70px}
}
.device-grid-tools{display:flex;align-items:center;gap:14px;padding:20px 28px;color:var(--muted-2);font-size:12px}
.device-grid-tools input{border:1px solid var(--border);background:var(--bg-soft);color:var(--text);padding:9px 12px;border-radius:8px;font:inherit;min-width:0;width:240px}
.device-grid-section{padding:8px 28px 30px}
.device-grid-heading{display:flex;align-items:baseline;gap:12px;margin-bottom:16px;border-bottom:1px solid var(--border-soft);padding-bottom:12px}
.device-grid-heading h2{font-size:17px;font-weight:600;letter-spacing:-.3px;margin:0}.device-grid-heading>span{font-size:11px;color:var(--muted-2)}
.device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px 18px}
.device-grid-card{background:none;border:0;padding:0;min-width:0;text-align:left;color:var(--text);cursor:zoom-in}
.device-grid-frame{height:230px;background:var(--bg);border:1px solid var(--border-soft);border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.device-grid-frame img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 6px #24304418)}
.device-grid-card:hover .device-grid-frame{background:var(--accent-soft);border-color:var(--accent)}
.device-grid-caption{display:flex;align-items:baseline;gap:9px;padding:11px 1px}.device-grid-caption strong{font-size:12px;font-weight:550;line-height:1.5;flex:1}.device-grid-caption span{font-size:10px;color:var(--muted-2)}
.device-grid-empty{padding:20px 28px;color:var(--muted)}
@media(max-width:700px){.device-grid-tools{padding:16px;flex-wrap:wrap;gap:8px}.device-grid-tools input{width:100%}.device-grid-section{padding:8px 16px 24px}.device-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:20px 12px}.device-grid-frame{height:190px;padding:8px}.device-grid-heading{flex-wrap:wrap;gap:7px}}
/* Image-first inspection. Pane width is computed from natural aspect ratio and available height. */
.studio .flow-body{min-height:0;overflow:hidden}
.studio .flow-inspector{flex:none;min-width:0;height:100%;max-height:none;display:flex;flex-direction:column;gap:9px;padding:18px 20px;background:var(--bg-soft);overflow:auto}
.studio .flow-inspector>*{flex-shrink:0}
.studio .flow-inspector .insp-img.grow{flex:1 1 0;min-height:80px;max-height:none;margin:0;padding:10px;display:flex;align-items:center;justify-content:center;background:var(--bg);border:1px solid var(--border-soft);border-radius:9px;overflow:hidden}
.studio .flow-inspector .insp-img.grow img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;border-radius:3px}
.studio .flow-inspector .insp-modes{flex:none;align-self:flex-start}
.studio .flow-inspector .insp-name{font-size:14px;line-height:1.4}
.studio .flow-inspector>.cpanel{display:none}
.studio .flow-inspector .insp-row{min-height:30px}
.studio .flow-body[data-inspection-layout=columns] .flow-canvas{min-width:0;flex:1}
.studio .flow-body[data-inspection-layout=columns] .flow-resizer{display:block}
.studio .flow-body[data-inspection-layout=stack]{flex-direction:column}
.studio .flow-body[data-inspection-layout=stack] .flow-canvas{flex:0 0 130px;min-height:90px}
.studio .flow-body[data-inspection-layout=stack] .flow-resizer{display:none}
.studio .flow-body[data-inspection-layout=stack] .flow-inspector{width:100%!important;height:auto;min-height:0;flex:1;padding:12px 14px}
.studio[data-inspection=graph] .flow-body[data-inspection-layout=stack] .flow-canvas{flex:1;min-height:180px}
.studio[data-inspection=graph] .flow-body[data-inspection-layout=stack] .flow-inspector{flex:0 0 180px}
@media(max-width:700px){
 .studio .flow-inspector .insp-name{font-size:12px}.studio .flow-inspector .insp-header{flex-wrap:nowrap}.studio .flow-inspector .insp-header .insp-name{min-width:0}
 .studio .flow-inspector>.insp-meta{display:none}
 .studio .flow-bar .fb-chain,.studio-heading p{display:none}
 .studio .flow-bar{flex-wrap:nowrap}
 .studio-graph-menu{width:210px}
 .studio .flow-body[data-inspection-layout=stack] .flow-canvas{flex-basis:110px}
 .studio .flow-inspector .insp-img.grow{padding:5px}
}
/* Page roots with nested captured states: a collection, not a pretend sequence. */
.studio-collections{padding:4px 28px 32px;display:grid;gap:28px}
.studio-collection{min-width:0}
.studio-collection-heading{display:flex;align-items:center;gap:12px;margin-bottom:2px}
.studio-collection-heading h2{margin:0;font-size:16px;letter-spacing:-.35px;font-weight:600}
.studio-collection-heading>span{font-size:11px;color:var(--muted-2)}
.studio-collection-root{padding:8px 0;border:0;background:none;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.studio-collection-root:hover{color:var(--accent)}
.studio-state-list{display:flex;gap:14px;padding:16px 0 0 20px;margin-left:6px;border-left:1px solid var(--border);overflow-x:auto;align-items:flex-start;scroll-snap-type:x proximity}
.studio-state{position:relative;flex:0 0 auto;width:clamp(110px,calc(166px * var(--capture-ratio,1.5)),240px);padding:0 0 6px;border:0;background:none;text-align:left;color:var(--text);cursor:pointer;scroll-snap-align:start}
.studio-state-image{height:166px;display:flex;align-items:center;justify-content:center;padding:6px;background:var(--bg);border:1px solid var(--border-soft);border-radius:8px;overflow:hidden}
.studio-state-image img{width:100%;height:100%;object-fit:contain}
.studio-state:hover .studio-state-image{border-color:var(--accent);background:var(--accent-soft)}
.studio-state-caption{display:block;font-size:12px;line-height:1.5;margin-top:10px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:1150px){.studio-collections{padding:0 20px 24px}.studio-state{width:clamp(110px,calc(145px * var(--capture-ratio,1.5)),190px)}.studio-state-image{height:145px}}
@media(max-width:700px){.studio-collections{padding:0 16px 24px;gap:24px}.studio-collection-heading h2{font-size:15px}.studio-state-list{padding-left:12px;gap:12px}.studio-state{width:clamp(100px,calc(135px * var(--capture-ratio,1.5)),180px)}.studio-state-image{height:135px}}

.studio-overview-search{display:none}
@media(max-width:700px){.studio-overview-search{display:block;width:100%;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;font:inherit;padding:10px 12px}}
