/* Inherit V2.5.3 colors; allocate at least half the desktop workspace to preview. */
#content .tool-layout{grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr)!important;max-width:none!important;width:100%;gap:22px}#content .tool-form{min-width:0}#content .tool-preview{min-width:0;width:100%;position:sticky;top:18px;align-self:start;padding:16px!important}#content .tool-preview .rp-sec{padding:0!important}#content .tool-preview .canvas-wrap{width:100%;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:1;min-height:0}#content .tool-preview #previewCanvas{width:100%!important;height:100%!important;display:block}.tool-preview canvas{touch-action:none}
.gx-editor{max-width:none!important}.gx-editor .shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.gx-editor .shape-btn{justify-content:flex-start;min-height:36px;padding:7px 9px;font-size:12px}.gx-editor .preset-row{display:flex;gap:6px;flex-wrap:wrap}.gx-editor .preset-row button{font-size:12px;padding:7px 9px}.gx-field{display:block;margin:14px 0;font-size:12px;color:var(--fg)}.gx-field>span{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px}.gx-field output{color:var(--accent);font-variant-numeric:tabular-nums}.gx-editor input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer}.gx-editor select{width:100%;min-height:36px;background:var(--panel,#fff);color:var(--fg);border:1px solid var(--line);border-radius:7px;padding:6px 9px}.gx-colors{display:flex;align-items:center;gap:8px;margin:14px 0}.gx-colors .gx-field{flex:1;min-width:0;margin:0}.gx-editor input[type=color]{width:38px;height:36px;border:1px solid var(--line);padding:3px;border-radius:6px;background:transparent}.gx-layer{border:1px solid var(--line);border-radius:9px;margin:9px 0;background:var(--panel,#fff);position:relative;overflow:hidden}.gx-layer:has(>details[open]){border-color:var(--accent)}.gx-layer>details>summary{background:var(--accent-soft,#eef8f4);min-height:42px;padding:12px 82px 12px 13px;cursor:pointer;list-style:none;font-size:13px;font-weight:600}.gx-layer summary:before{content:'▸';margin-right:8px;color:var(--accent)}.gx-layer details[open]>summary:before{content:'▾'}.gx-chevron{float:right}.gx-actions{position:absolute;top:5px;right:5px;display:flex;gap:3px}.gx-actions button{border:0;background:transparent;color:var(--fg-2);width:30px;height:32px;border-radius:5px;cursor:pointer}.gx-actions button:hover{background:var(--accent-soft,#e8f5ef);color:var(--accent)}.gx-props{padding:4px 13px 13px;border-top:1px solid var(--line)}.gx-props h4{font-size:12px;margin:16px 0 5px;color:var(--fg-2)}.gx-help,.gx-props small{font-size:11px;line-height:1.8;color:var(--fg-2);margin:7px 0}.gx-check{font-size:12px;display:flex;align-items:center;gap:7px;margin:13px 0}.gx-editor input[type=checkbox]{accent-color:var(--accent)}.gx-error{padding:10px;border:1px solid #db9b9b;background:#fff0f0;color:#a72839;border-radius:7px;font-size:12px;margin:12px 0}.gx-swatch{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:7px}.gx-bright{margin-top:15px;border-top:1px solid var(--line)}.gx-bright>summary{padding:13px 0;font-size:12px;cursor:pointer}.gx-generate{width:100%;margin-top:12px;min-height:44px}
@media(max-width:900px){#content .tool-layout{grid-template-columns:minmax(240px,.85fr) minmax(0,1.15fr)!important;gap:14px}.gx-editor .shape-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){#content .tool-layout{display:flex!important;flex-direction:column}.tool-layout>.complete-tool-flow{width:100%}#content .tool-preview{position:static;order:1}#content .tool-form{order:2;width:100%}.gx-editor .shape-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gx-layer>details>summary{min-height:44px}.gx-actions button{height:34px}}

@media(min-width:901px){#content .tool-layout{grid-template-columns:minmax(280px,.6fr) minmax(0,1.4fr)!important}#content .tool-form{max-height:calc(100dvh - 190px);overflow-y:auto;padding-right:8px}#content .tool-preview .canvas-wrap{height:clamp(300px,calc(100dvh - 390px),650px)!important;aspect-ratio:auto;display:flex;justify-content:center;align-items:center;background:#000}#content .tool-preview #previewCanvas{height:100%!important;width:auto!important;max-width:100%;aspect-ratio:1}}

#content .tool-preview .complete-tool-feedback:not(.failed){display:none!important}#content .tool-preview .cost-card{padding:9px 11px!important;margin-top:10px!important}#content .tool-preview .cost-card h4,#content .tool-preview .cost-card p:last-child,#content .tool-preview .rp-note{display:none!important}#content .tool-preview .cost-card p{margin:0!important}#content .tool-preview .rp-controls{margin-top:8px!important;gap:6px!important}#content .tool-preview .rp-status{margin:8px 0!important}.gx-editor .shape-btn{display:flex;align-items:center;gap:7px}.gx-editor .shape-btn svg{flex-shrink:0}
@media(min-width:901px){#content .tool-preview .canvas-wrap{height:clamp(300px,calc(100dvh - 300px),650px)!important}#content .tool-preview .rp-controls{grid-template-columns:1fr 1fr 1.5fr!important}#content .tool-preview .rp-controls #finalBtn{grid-column:auto!important}#content .tool-preview .cost-card{padding:5px 0!important;margin-top:6px!important;border:0!important;background:transparent!important}#content .tool-preview .rp-title{margin:0 0 7px!important}#content .tool-preview .rp-spec{margin:0 0 8px!important}}
