.super-editor-layout{display:grid;grid-template-columns:232px minmax(320px,1fr) 280px;gap:14px;flex:1;min-height:0}
.super-editor-layout .panel{margin:0;min-width:0;overflow:hidden}
.editor-controls,.editor-inspector{display:flex;flex-direction:column}
.editor-controls .panel-body,.editor-inspector{overflow-y:auto;overscroll-behavior:contain}
.editor-controls .panel-body{padding:14px;display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
.editor-controls .field,.editor-rewrite .field{margin:0;gap:6px}
.editor-controls input,.editor-controls select,.editor-controls textarea{width:100%;min-width:0}
.editor-source{width:100%;aspect-ratio:1;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;border:1px dashed var(--line);padding:0;background:var(--bg)}
.editor-source b{font-size:30px;font-weight:400;line-height:1.3}.editor-source small{font-size:11px;padding:4px}
.editor-source img{height:100%;width:100%;object-fit:contain}.editor-source img+span{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.6);color:white;font-size:12px;padding:5px}
.editor-size{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}.editor-size span{padding:9px 2px!important;font-size:12px}
.editor-generate{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px!important;position:sticky;bottom:0;z-index:2;flex-shrink:0}.editor-generate small{color:inherit;opacity:.85;font-size:11px}
.editor-billing,.editor-rewrite>small{display:block;line-height:1.5;color:var(--muted);font-size:11px}
.editor-job{font-size:12px;line-height:1.5}.editor-job p{margin:5px 0}.editor-job:empty{display:none}
.editor-projects{border-top:1px solid var(--line);padding-top:12px}.editor-projects h3,.editor-properties h3,.editor-rewrite h3{font-size:13px;margin:0 0 10px}
.editor-project-row{display:flex;gap:4px;margin:5px 0}.editor-project-row>button:first-child{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;font-size:12px}
.editor-stage{display:flex;flex-direction:column}.editor-toolbar{border-bottom:1px solid var(--line);padding:10px;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.editor-toolbar>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.editor-toolbar button{font-size:11px;padding:6px 8px}.editor-toolbar span{font-size:11px;min-width:34px;color:var(--muted)}
.editor-canvas-wrap{flex:1;min-height:320px;position:relative;overflow:hidden;background-color:#e8eaed;background-image:linear-gradient(45deg,#d7dae0 25%,transparent 25%),linear-gradient(-45deg,#d7dae0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d7dae0 75%),linear-gradient(-45deg,transparent 75%,#d7dae0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.editor-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none;text-align:center;padding:24px;color:#4c5363}.editor-empty[hidden]{display:none}.editor-empty strong{font-size:18px}.editor-empty p{font-size:12px;line-height:1.6}
.editor-stage-foot{border-top:1px solid var(--line);padding:9px 12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px}.editor-stage-foot small{font-size:10px;color:var(--muted)}
.editor-inspector .panel-head{padding:12px}.editor-inspector .panel-head h2{font-size:14px}.editor-layers{padding:8px;max-height:28%;min-height:100px;overflow:auto;flex-shrink:0}
.editor-layer{border:1px solid var(--line);border-radius:7px;margin-bottom:7px;padding:5px}.editor-layer.selected{border-color:#bb8e35;background:rgba(195,154,65,.12)}
.editor-layer-name{display:flex;gap:8px;align-items:center;width:100%;border:0!important;background:transparent!important;padding:0!important;text-align:left;font-size:12px}
.editor-layer-name img,.editor-layer-name b{width:34px;height:34px;object-fit:contain;flex-shrink:0;background:#e8eaed;border-radius:3px}.editor-layer-name b{display:grid;place-items:center;font-size:22px;color:#333}
.editor-layer-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-layer>div{display:flex;gap:4px;margin-top:5px;justify-content:flex-end}.editor-layer>div button{padding:2px 5px;font-size:10px}
.editor-properties,.editor-rewrite{padding:12px;border-top:1px solid var(--line);flex-shrink:0}.editor-properties:has(>p:only-child){padding:6px 12px}.editor-inspector>.panel-head{flex-shrink:0}
.editor-properties .field{margin-bottom:8px}.editor-properties input,.editor-properties textarea{width:100%;min-width:0}.editor-properties small{font-size:11px;color:var(--muted)}
.editor-geometry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.editor-geometry label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:4px}.editor-geometry input,.editor-geometry select{width:100%;font-size:12px;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}.editor-geometry input[type=color]{height:34px}
.editor-properties .field{gap:5px;font-size:11px;color:var(--muted)}
.editor-properties input,.editor-properties select,.editor-properties textarea{font-size:12px;padding:7px 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);width:100%;min-width:0}
.editor-properties textarea{line-height:1.5;resize:vertical}
.editor-type-section{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.editor-type-section h3{font-size:12px;margin-bottom:10px;color:var(--ink)}
.editor-format-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:9px 0 12px}
.editor-format-row button{padding:6px;min-height:32px;border-radius:5px;font-size:14px}
.editor-format-row button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.editor-color-field>div{display:flex;gap:6px;align-items:center}.editor-color-field input[type=color]{width:35px;height:32px;flex-shrink:0;padding:3px;cursor:pointer}.editor-color-field input[type=text]{height:32px;font-variant-numeric:tabular-nums}
.editor-swatches{display:flex;gap:7px;margin:7px 0 12px}.editor-swatches button{width:23px;height:23px;min-width:0;padding:0;background:var(--swatch);border:1px solid var(--line);border-radius:4px}.editor-swatches button:hover{outline:2px solid var(--blue);outline-offset:2px;background:var(--swatch)}
.editor-stroke{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-stroke .editor-color-field input[type=color]{width:29px}
.editor-align-icon{display:flex;flex-direction:column;gap:3px;width:19px;margin:auto;align-items:flex-start}.editor-align-icon i{display:block;height:2px;width:100%;background:currentColor}.editor-align-icon i:nth-child(2){width:65%}.align-center{align-items:center}.align-right{align-items:flex-end}.align-justify i:nth-child(2){width:100%}
.editor-type-note{display:block;line-height:1.5;margin-top:10px}
.editor-transform{margin-top:12px;border-top:1px solid var(--line);padding-top:8px}.editor-transform summary{font-size:12px;color:var(--muted);cursor:pointer;margin-bottom:8px}
.editor-rewrite-button{width:100%;display:flex;flex-direction:column;gap:3px;align-items:center;margin:10px 0}.editor-rewrite-button small{font-size:11px}
.super-editor-workspace .processing-tabs{flex-wrap:wrap}
[data-theme=dark] .editor-canvas-wrap{background-color:#292d36;background-image:linear-gradient(45deg,#232730 25%,transparent 25%),linear-gradient(-45deg,#232730 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#232730 75%),linear-gradient(-45deg,transparent 75%,#232730 75%)}[data-theme=dark] .editor-empty{color:#adb4c4}
@media(max-width:1280px){.super-editor-layout{grid-template-columns:210px minmax(250px,1fr) 250px;gap:10px}.editor-toolbar{padding:7px}.editor-toolbar button{padding:5px 6px}}
@media(max-width:1050px){.content:has(.super-editor-workspace),.material-content #page-content:has(.super-editor-workspace),.super-editor-workspace{height:auto}.super-editor-layout{flex:none;height:auto;grid-template-columns:210px minmax(280px,1fr);min-height:600px}.editor-stage{min-height:580px}.editor-inspector{grid-column:1/-1;max-height:600px;display:grid;grid-template-columns:1fr 1fr}.editor-inspector .panel-head{grid-column:1/-1}.editor-layers{max-height:340px;grid-row:2/4}.editor-rewrite{grid-column:2}}
@media(max-width:680px){.super-editor-layout{grid-template-columns:1fr}.editor-controls .panel-body{display:grid;grid-template-columns:1fr 1fr}.editor-source{max-width:180px;grid-row:2/5}.editor-controls .editor-projects,.editor-controls .editor-job,.editor-controls .editor-billing,.editor-controls .notice{grid-column:1/-1}.editor-stage{min-height:460px}.editor-inspector{grid-column:auto;display:flex;max-height:700px}.editor-layers{max-height:300px}.editor-empty strong{font-size:16px}}

.editor-swatches [data-color="#222222"]{--swatch:#222222}.editor-swatches [data-color="#ffffff"]{--swatch:#ffffff}.editor-swatches [data-color="#ef4444"]{--swatch:#ef4444}.editor-swatches [data-color="#f59e0b"]{--swatch:#f59e0b}.editor-swatches [data-color="#3b82f6"]{--swatch:#3b82f6}.editor-swatches [data-color="#22c55e"]{--swatch:#22c55e}.editor-swatches [data-color="#8b5cf6"]{--swatch:#8b5cf6}
