.ie-editor{height:calc(100vh - 76px);min-height:620px;display:flex;flex-direction:column;background:#131313;color:#eee}.ie-header{height:64px;flex-shrink:0;display:flex;align-items:center;gap:18px;padding:0 24px;border-bottom:1px solid #2a2a2a}.ie-header h1{font-size:17px;margin:0;font-weight:600}.ie-header>span{color:#929292;font-size:12px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ie-layout{flex:1;min-height:0;display:grid;grid-template-columns:100px minmax(0,1fr) 300px}.ie-tools{padding:20px 10px;border-right:1px solid #292929;display:flex;flex-direction:column;gap:8px}.ie-tools button{border:0;background:none;color:#9c9c9c;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 5px;border-radius:10px;font-size:12px;cursor:pointer}.ie-tools button:hover,.ie-tools button.active{background:#2e2e2e;color:#fff}.ie-tools button.active{box-shadow:inset 0 0 0 1px #474747}.ie-tools button svg{width:22px;height:22px}.ie-center{display:flex;min-width:0;min-height:0;flex-direction:column;background:#1b1b1b}.ie-stage{display:flex;align-items:center;justify-content:center;gap:20px;flex:1;min-height:0;overflow:auto;padding:32px;background-image:linear-gradient(45deg,#222 25%,transparent 25%),linear-gradient(-45deg,#222 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#222 75%),linear-gradient(-45deg,transparent 75%,#222 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.ie-stage canvas{max-height:none;height:auto;object-fit:contain;flex-shrink:0;touch-action:none;box-shadow:0 8px 40px #0007}.ie-stage figure{margin:0;display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%;height:100%}.ie-stage figure img{width:100%;height:calc(100% - 28px);object-fit:contain}.ie-stage figure figcaption{font-size:12px;color:#aaa;margin-top:12px}.ie-stage.ie-compare figure{width:50%}.ie-stage-controls{height:52px;display:flex;align-items:center;gap:12px;padding:0 20px;border-top:1px solid #303030;font-size:12px;color:#a4a4a4;background:#171717}.ie-properties{padding:24px 20px;display:flex;flex-direction:column;gap:18px;border-left:1px solid #2b2b2b;overflow:auto}.ie-properties h2{font-size:16px;margin:0 0 4px}.ie-properties label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#aaa}.ie-properties input[type=number],.ie-properties textarea,.ie-properties select{width:100%;background:#252525;border:1px solid #383838;border-radius:8px;padding:10px;color:#eee;box-sizing:border-box;font:inherit}.ie-properties textarea{resize:vertical;line-height:1.6;font-size:13px}.ie-properties input[type=range]{accent-color:#ddd}.ie-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ie-row{display:flex;gap:8px}.ie-model{display:flex;align-items:center;gap:12px;font-size:12px;color:#ddd}.ie-model select{width:88px;margin-left:auto}.ie-hint{font-size:12px;color:#888;line-height:1.6;margin:0}.ie-error{font-size:12px;color:#efaaa5;line-height:1.5;overflow-wrap:anywhere}.ie-status{font-size:13px;color:#ccc;display:flex;flex-direction:column;gap:10px}.ie-status progress{width:100%;accent-color:#bbb}.ie-actions{margin-top:auto;display:flex;flex-direction:column;gap:10px}.ie-actions .btn{justify-content:center;min-height:40px}.ie-editor button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:1000px){.ie-layout{grid-template-columns:80px minmax(0,1fr) 250px}.ie-properties{padding:20px 14px}.ie-header{padding:0 12px;gap:10px}.ie-header>span{display:none}.ie-stage{padding:16px}}

.ie-selection-tools{display:flex;gap:4px;padding:4px;border:1px solid #3a3a3a;border-radius:9px;background:#191919}.ie-selection-tools button{flex:1;padding:8px 5px;background:none;border:0;border-radius:6px;color:#9c9c9c;font-size:12px;cursor:pointer}.ie-selection-tools button.active{color:#fff;background:#3b3b3b}

.ie-expansion-summary{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#999}.ie-expansion-summary strong{font-size:15px;color:#eee}.ie-expansion-options{display:flex;gap:6px}.ie-expansion-options button{flex:1;min-width:0;border:1px solid #444;border-radius:7px;padding:9px 5px;background:#242424;color:#bbb;cursor:pointer;font:inherit;font-size:12px}.ie-expansion-options button[aria-checked=true]{background:#e8e8e8;border-color:#e8e8e8;color:#171717}.ie-expansion-ratios{flex-wrap:wrap}.ie-expansion-ratios button{flex-basis:29%}.ie-expansion-custom{font-size:12px;color:#aaa}.ie-expansion-custom summary{cursor:pointer;margin-bottom:14px}
@media(max-width:760px){.ie-editor{height:auto;min-height:calc(100vh - 76px)}.ie-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(320px,55vh) auto}.ie-tools{flex-direction:row;overflow-x:auto;padding:8px;gap:4px;border-right:0;border-bottom:1px solid #292929}.ie-tools button{flex:0 0 66px;padding:8px 3px}.ie-properties{border-left:0;border-top:1px solid #292929;padding:20px}.ie-header{gap:6px}.ie-header h1{font-size:15px}.ie-header .btn{padding:8px;font-size:12px}.ie-stage-controls{padding:0 10px;gap:6px}.ie-stage{padding:12px}}

@media(max-width:760px){body .studio-shell:has(.ie-editor){--studio-nav-width:0px;padding-left:0}body .studio-shell:has(.ie-editor)>.global-sidebar{display:none}body .studio-shell:has(.ie-editor)>.studio-header{left:0;width:100%;padding:8px 12px}body .studio-shell:has(.ie-editor)>main{margin-left:0;min-width:0}.ie-header h1{white-space:nowrap}.ie-stage-controls{flex-wrap:wrap;height:auto;min-height:52px}.ie-properties{min-width:0}}

.ie-region-instructions{display:flex;flex-direction:column;gap:8px;margin:14px 0}.ie-region-instruction{display:flex;gap:6px;align-items:end}.ie-region-instruction label{flex:1;min-width:0}.ie-region-instruction input{width:100%;margin-top:4px}.ie-region-instruction button{flex:none;width:32px;padding:6px}
