.rail{height:100%}.rail .editor-settings-entry{margin-top:auto;border-top:1px solid var(--studio-border);padding-top:13px;font-size:19px;min-height:54px}.editor-settings-entry small{font-size:8px}.editor-settings-entry:hover{background:var(--studio-panel-raised)}.editor-settings-surface{width:min(940px,calc(100vw - 40px));height:min(710px,calc(100dvh - 60px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--studio-border);border-radius:20px;background:var(--studio-panel-raised);color:var(--studio-text);box-shadow:0 24px 100px var(--studio-shadow-color);font:13px/1.5 Segoe UI,Arial,sans-serif;overflow:hidden}
.editor-settings-surface::backdrop{background:var(--studio-panel-raised);backdrop-filter:blur(3px)}.editor-settings-surface[open]{display:flex;flex-direction:column}.editor-settings-surface>header{display:flex;align-items:center;justify-content:space-between;padding:22px 28px;border-bottom:1px solid var(--studio-border)}.editor-settings-surface small{font-size:10px;color:#8d97a8}.editor-settings-surface h1{font-size:20px;letter-spacing:-.4px;margin:4px 0 0;font-weight:550}.editor-settings-surface button{color:inherit;background:var(--studio-control);border:1px solid var(--studio-border);border-radius:7px;font:11px Segoe UI,Arial,sans-serif;padding:8px 12px;cursor:pointer}.editor-settings-surface>header button{border:0;background:transparent;font-size:23px;padding:0 4px}.settings-layout{display:flex;flex:1;min-height:0}.settings-layout nav{width:212px;flex-shrink:0;padding:18px 12px;overflow:auto;background:var(--studio-panel-raised);border-right:1px solid var(--studio-border)}.settings-layout nav button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:11px 13px;margin-bottom:2px;font-size:12px;color:var(--studio-secondary)}.settings-layout nav button[aria-current=page]{background:#263a55;color:#e3edff}.settings-content{flex:1;min-width:0;overflow:auto;padding:25px 30px;scrollbar-width:thin;scrollbar-color:#414b5b transparent}.settings-category-heading{margin-bottom:20px}.settings-category-heading h2{font-size:18px;font-weight:550;margin:0 0 5px}.settings-category-heading p,.settings-note{font-size:12px;color:#9ba6b7;line-height:1.6}.settings-row{display:flex;gap:20px;align-items:center;justify-content:space-between;min-height:48px;padding:10px 0;border-bottom:1px solid var(--studio-border)}.settings-row label{font-size:12px;color:var(--studio-text)}.settings-row small{display:block;margin-top:3px;font-size:9px}.settings-row input:not([type=checkbox]),.settings-row select{width:174px;flex-shrink:0;background:var(--studio-control);border:1px solid var(--studio-border);border-radius:6px;padding:7px 9px;color:var(--studio-text);font:11px Segoe UI,Arial,sans-serif}.settings-row input[type=checkbox]{appearance:none;flex-shrink:0;width:30px;height:17px;border:1px solid var(--studio-border);border-radius:20px;background:var(--studio-control);cursor:pointer;position:relative}.settings-row input[type=checkbox]:before{content:"";position:absolute;top:3px;left:3px;width:9px;height:9px;border-radius:50%;background:var(--studio-control);transition:transform .15s}.settings-row input:checked{background:#346fbd;border-color:#598dcd}.settings-row input:checked:before{background:white;transform:translateX(13px)}.settings-row.planned{opacity:.6}.settings-row input:disabled,.settings-row select:disabled{cursor:not-allowed}.editor-settings-surface footer{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid var(--studio-border);background:var(--studio-panel-raised);font-size:10px;color:#919bad}.editor-settings-surface .primary,.agent-activity .primary{background:#2c62a9;border-color:#5186cb;color:var(--studio-text)}.settings-demo,.settings-server{margin-top:24px;padding-top:20px;border-top:1px solid var(--studio-border)}.settings-demo p,.settings-server p{font-size:12px;color:#97a5b8;line-height:1.7}.settings-demo>div,.settings-server>div{display:flex;flex-wrap:wrap;gap:8px}.settings-server small{display:block;margin-top:12px}.settings-server button:disabled{opacity:.4;cursor:not-allowed}
.shortcut-search,.connection-form input,.connection-form select,.shortcut-row input{background:var(--studio-control);border:1px solid var(--studio-border);border-radius:6px;padding:9px;color:var(--studio-text);font:12px Segoe UI,Arial,sans-serif}.shortcut-search{width:100%;margin:0 0 10px}.shortcut-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--studio-border);padding:11px 0}.shortcut-row label{flex:1;font-size:12px}.shortcut-row input{width:155px}.shortcut-message,.connection-message{font-size:12px;color:#b4cceb;min-height:20px}.settings-secondary{margin-top:20px}.connection-item{padding:14px 0;border-bottom:1px solid var(--studio-border)}.connection-item>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}.connection-item strong{font-size:12px}.connection-state{font-size:10px;color:#b6c9e5}.connection-item code{display:block;margin:8px 0;font-size:11px;color:#a5b3c8;overflow-wrap:anywhere}.connection-item small{display:block}.connection-item p{font-size:11px;color:#c8a990}.connection-actions{display:flex;gap:8px;margin-top:13px}.connection-form{margin-top:22px}.connection-form h3{font-size:13px}.connection-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;margin:13px 0;color:#b3bfce}.connection-form>div{display:flex;gap:14px}.connection-form>div label{flex:1;min-width:0}.connection-form>small{display:block;margin-top:14px}.developer-data{margin:15px 0;font-size:11px}.developer-data pre{max-height:240px;overflow:auto;background:var(--studio-panel-raised);padding:12px;border-radius:8px;font-size:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.agent-indicator{display:flex;align-items:center;gap:7px;font-size:10px!important;white-space:nowrap;color:#c4bed8!important;padding:7px 9px!important}.agent-dot{width:5px;height:5px;border-radius:50%;background:#aa9dc6}.agent-indicator[data-status=waiting] .agent-dot{background:#cbb88c}.agent-indicator[data-status=error] .agent-dot{background:#dca6ae}.agent-activity{position:fixed;z-index:400;right:30px;top:98px;width:346px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 118px);overflow:auto;background:var(--studio-panel-raised);border:1px solid var(--studio-border);border-radius:15px;padding:19px;color:var(--studio-text);box-shadow:0 16px 48px var(--studio-shadow-color);font:12px/1.5 Segoe UI,Arial,sans-serif}.agent-activity[hidden],.preference-hidden{display:none!important}.agent-activity header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--studio-border);padding-bottom:13px}.agent-activity header small{font-size:9px;color:#9b90b1}.agent-activity h2{font-size:15px;margin:3px 0 0}.agent-activity button,.agent-inspector-preview button{background:var(--studio-control);border:1px solid var(--studio-border);border-radius:6px;color:#dce7f7;padding:7px 10px;font-size:10px;cursor:pointer}.agent-activity header button{background:transparent;border:0;font-size:21px}.agent-activity button:disabled{opacity:.4;cursor:not-allowed}.agent-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.agent-summary span{font-size:10px;color:#c9b6de}.agent-events{list-style:none;padding:0;margin:0 0 15px;max-height:240px;overflow:auto;scrollbar-width:thin}.agent-events li{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--studio-border);font-size:11px}.agent-events time{font-size:9px;color:#8794a6;min-width:58px;white-space:nowrap}.agent-proposal{border-top:1px solid var(--studio-border);padding:15px 0}.agent-proposal small{display:block;font-size:8px;color:#c0a5d0;margin-bottom:7px}.agent-proposal strong{font-size:12px}.agent-proposal p{font-size:11px;color:#a7b3c5}.agent-proposal>div,.agent-controls{display:flex;flex-wrap:wrap;gap:8px}.agent-error{background:var(--studio-panel-raised);border-radius:6px;padding:10px;font-size:11px;color:#f0bdc4}.agent-controls{border-top:1px solid var(--studio-border);padding-top:15px}
#artboard .agent-focused{outline:1px solid #a99bbc!important;outline-offset:3px}.agent-focus-label{position:fixed;z-index:103;pointer-events:none;background:var(--studio-panel-raised);color:var(--studio-text);border:1px solid #726781;border-radius:5px;padding:3px 7px;font:10px Segoe UI,Arial,sans-serif}.agent-text-preview{position:fixed;z-index:85;pointer-events:none;margin:0;box-sizing:border-box;background:#f2f0e8;border:1px dashed #a99bbc;outline:none!important;white-space:pre-wrap}.agent-text-preview:after{content:none}.agent-insertion-ghost{position:fixed;z-index:90;pointer-events:none;height:118px;padding:20px;border:1px dashed #a799b8!important;border-radius:10px;background:#b2a6c124!important;color:#dad2e6;font:12px Segoe UI,Arial,sans-serif}.agent-insertion-ghost strong,.agent-insertion-ghost span,.agent-insertion-ghost small{display:block;margin:4px}.agent-insertion-ghost strong{font-size:18px}.agent-insertion-ghost small{font-size:9px}.agent-delete-preview{opacity:.55;background-image:repeating-linear-gradient(135deg,transparent,transparent 12px,#91677122 12px,#91677122 14px)}.agent-inspector-preview{margin-bottom:20px;padding:12px;border:1px solid var(--studio-border);border-radius:8px;background:#b3a0c20b;font-size:10px;color:#cfc1dc}.agent-inspector-preview p{font-size:10px;line-height:1.6;overflow-wrap:anywhere;color:var(--studio-secondary)}.agent-inspector-preview>div{display:flex;gap:8px}
@media(min-width:1001px) and (max-width:1300px){.editor{--studio-inspector-cap:288px}.editor:not(.left-collapsed).add-active .left-panel{width:350px}.editor.add-active .panel-content{min-width:290px}.editor:not(.right-collapsed) .inspector{width:min(var(--editor-inspector-width,304px),288px)}}
@media(min-width:1001px){.editor:not(.left-collapsed):not(.add-active) .left-panel{width:var(--editor-left-width,284px)}.editor:not(.right-collapsed) .inspector{width:min(var(--editor-inspector-width,304px), var(--studio-inspector-cap,380px))}.editor:not(.left-collapsed):not(.add-active) .panel-content{min-width:0;flex:1}.editor:not(.right-collapsed) .inspector #inspector-content{min-width:0}.editor[data-density=compact] .settings-row{min-height:39px}.editor[data-density=compact] .layer-row{min-height:29px}.editor[data-density=compact] .property-row{margin:5px 0}.editor[data-density=compact] .toolbar{height:58px}}
.no-rail-labels .rail button>span:not(:first-child),.no-rail-labels .rail button>small{display:none}.no-rail-labels .rail [data-panel]>span{display:none}.no-hover #artboard [data-element]:hover:not(.selected-element):not(.agent-focused){outline:none}.no-element-labels #artboard [data-element]:after{display:none}.no-artboard-shadow #artboard{box-shadow:none}.settings-grid.canvas-space{background-image:linear-gradient(rgb(255 255 255 / var(--grid-alpha,.06)) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255 / var(--grid-alpha,.06)) 1px,transparent 1px);background-size:var(--grid-size,24px) var(--grid-size,24px)}
.canvas-space[data-background=light]{background-color:var(--studio-workspace)}.canvas-space[data-background=dark]{background-color:#151515}.canvas-space[data-background=dark] .canvas-meta{background:#151515}.canvas-space[data-background=dark] .canvas-meta span{color:#a1a1a1}.canvas-space[data-background=checker]{background-color:#191d23;background-image:conic-gradient(#ffffff06 25%,transparent 0 50%,#ffffff06 0 75%,transparent 0);background-size:24px 24px}.canvas-space[data-background=custom]{background-color:var(--custom-canvas)}.editor.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.editor.reduced-transparency .toolbar,.editor.reduced-transparency .command{background:var(--studio-chrome);backdrop-filter:none}.high-contrast .toolbar,.high-contrast .left-panel,.high-contrast .inspector,.high-contrast .canvas-space{border-color:#a5afbd}.focus-contrast :focus-visible,.always-focus :focus{outline:2px solid #a9d0ff!important;outline-offset:2px}.large-ui-text .panel-content,.large-ui-text .property-row,.large-ui-text .rail button{font-size:12px}.large-ui-text .property-row input,.large-ui-text .property-row select{font-size:12px}.large-targets .rail button,.large-targets .property-row input,.large-targets .property-row select{min-height:34px}
.editor[data-theme=light]{background:var(--studio-panel-raised);color:var(--studio-text)}.editor[data-theme=light] .toolbar,.editor[data-theme=light] .left-panel,.editor[data-theme=light] .inspector{background:var(--studio-panel-raised);border-color:var(--studio-border);color:var(--studio-text)}.editor[data-theme=light] .rail,.editor[data-theme=light] .inspector-global{background:var(--studio-panel-raised);border-color:var(--studio-border)}.editor[data-theme=light] button,.editor[data-theme=light] .property-row,.editor[data-theme=light] .property-content{color:var(--studio-muted)}.editor[data-theme=light] .property-row input,.editor[data-theme=light] .property-row select,.editor[data-theme=light] .property-content textarea{background:var(--studio-control);border-color:var(--studio-border);color:var(--studio-text)}.editor[data-theme=light] .layer-row.selected,.editor[data-theme=light] .rail button[aria-pressed=true]{background:#dce7f7;color:#254c84}.editor[data-theme=light] .panel-heading,.editor[data-theme=light] .inspector-heading,.editor[data-theme=light] .property-group{border-color:var(--studio-border)}.editor[data-theme=light] .add-card,.editor[data-theme=light] .add-nav button,.editor[data-theme=light] .add-search{background:var(--studio-control);border-color:var(--studio-border);color:#283c56}.editor[data-theme=light] .add-search input{color:var(--studio-text)}.editor[data-theme=light] .add-card-title strong{color:#2c3e58}.editor[data-theme=light] .selection-caption,.editor[data-theme=light] .inspector-note,.editor[data-theme=light] .panel-label{color:#66768b}.editor[data-theme=light] .primary{color:var(--studio-text)}.editor[data-theme=light] .project-menu summary{color:var(--studio-text)}
.editor[data-theme=light] .brand{color:var(--studio-text)}.editor[data-theme=light] #viewport-mode,.editor[data-theme=light] #viewport-preset,.editor[data-theme=light] #zoom{background:var(--studio-panel-raised);color:#34465f;border-color:var(--studio-border)}.editor[data-theme=light] .canvas-meta{background:#dce1e8}.editor[data-theme=light] .canvas-meta span,.editor[data-theme=light] .viewport-caption{color:#576982}.editor[data-theme=light] .canvas-tool-rail{background:var(--studio-panel-raised);border-color:var(--studio-border);box-shadow:none}.editor[data-theme=light] .canvas-tool-rail button[aria-pressed=true]{background:#dce7f7;color:#254c84}.editor[data-theme=light] .add-search{box-shadow:none}.editor[data-theme=light] .add-quick button,.editor[data-theme=light] .add-insert{background:var(--studio-control);border-color:var(--studio-border);color:#34465f}.editor[data-theme=light] .add-library-link a{color:#315c93}.editor[data-theme=light] .avatar{background:var(--studio-panel-raised);color:#34465f}.editor[data-theme=light] .command{background:var(--studio-panel-raised);border-color:var(--studio-border)}.editor[data-theme=light] #ai-toggle,.editor[data-theme=light] .command-heading,.editor[data-theme=light] .command small{color:#34465f}.editor[data-theme=light] .command kbd{color:#61718a;border-color:#b4c0d2}
html[data-editor-theme=light] .editor-settings-surface{background:var(--studio-panel-raised);color:var(--studio-text);border-color:#b9c5d5}html[data-editor-theme=light] .settings-layout nav,html[data-editor-theme=light] .editor-settings-surface footer{background:var(--studio-panel-raised);border-color:var(--studio-border)}html[data-editor-theme=light] .settings-layout nav button{color:#586a83}html[data-editor-theme=light] .settings-layout nav button[aria-current=page]{background:#dae5f4;color:#234f89}html[data-editor-theme=light] .settings-row label{color:#344763}html[data-editor-theme=light] .settings-row input:not([type=checkbox]),html[data-editor-theme=light] .settings-row select,html[data-editor-theme=light] .shortcut-row input,html[data-editor-theme=light] .shortcut-search,html[data-editor-theme=light] .connection-form input,html[data-editor-theme=light] .connection-form select{background:white;color:#243c60;border-color:#c1cddb}html[data-editor-theme=light] .editor-settings-surface button{background:var(--studio-control);color:#2c4468;border-color:#b6c6dd}html[data-editor-theme=light] .editor-settings-surface .primary{background:#2c62a9;color:var(--studio-text)}
.show-element-ids #artboard [data-node]:hover:before{content:attr(data-node);position:absolute;top:0;left:0;background:#27384e;color:#dbe9fb;font:8px monospace;z-index:4}.show-asset-ids #artboard [data-asset-id]:hover:before{content:attr(data-asset-id)}.show-component-ids #artboard [data-node-type=library-component]:hover:before{content:attr(data-node)}
@media(max-width:1000px){.agent-indicator{font-size:9px!important}.agent-activity{top:86px;right:12px}.editor-settings-surface{width:calc(100vw - 24px);height:calc(100dvh - 32px)}.settings-layout nav{width:176px}.settings-content{padding:20px}.settings-row{gap:12px}.settings-row select,.settings-row input:not([type=checkbox]){width:145px}}
@media(max-width:600px){.rail .editor-settings-entry{display:flex!important;margin-top:8px;min-height:38px;padding:3px}.editor:not(.drawer-left) .left-panel{height:92px!important}.editor-settings-surface{width:calc(100vw - 16px);height:calc(100dvh - 20px);border-radius:14px}.editor-settings-surface>header{padding:16px}.settings-layout{flex-direction:column}.settings-layout nav{width:100%;display:flex;gap:5px;padding:9px;overflow-x:auto;flex-shrink:0;border-right:0;border-bottom:1px solid var(--studio-border)}.settings-layout nav button{width:auto;white-space:nowrap;margin:0;font-size:10px;padding:8px}.settings-content{padding:18px 16px}.settings-row label{font-size:11px}.settings-row select,.settings-row input:not([type=checkbox]){width:125px}.editor-settings-surface footer{padding:12px;gap:8px}.editor-settings-surface footer>span{font-size:8px}.shortcut-row input{width:117px}.shortcut-row button{padding:6px}.connection-form>div{flex-direction:column;gap:0}.connection-actions{flex-wrap:wrap}.agent-activity{right:8px;top:80px;max-height:calc(100dvh - 96px)}.agent-indicator{display:none}.editor-settings-entry small{display:none}}
@media(prefers-reduced-motion:reduce){.agent-focus-label,.editor-settings-surface,.settings-row input:before{transition:none}}
html[data-reduced-transparency=true] .editor-settings-surface::backdrop{backdrop-filter:none;background:var(--studio-panel-raised)}html[data-reduced-transparency=true] .editor-context-menu{background:var(--studio-panel-raised)}
html[data-reduced-motion=true] .editor-context-menu{animation:none}
.editor[data-theme=light] .layer-row.selected .select-layer[aria-pressed=true]{background:transparent;color:#254c84}
