:root{font-family:Arial,Helvetica,sans-serif;color:#f6f8f6;background:#071115;--yellow:#f5d735;--line:#f5d73535;--muted:#aab9ba}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 75% 8%,#1e2c2a,#071115 55%);min-width:320px}
button,input,select{font:inherit}
button{cursor:pointer}
.customizer{padding:22px clamp(13px,2.2vw,35px) 16px;max-width:1700px;margin:auto}
.customizer-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.eyebrow{color:var(--yellow);font-size:10px;font-weight:850;letter-spacing:.18em}
h1{font-size:clamp(26px,2.5vw,40px);line-height:1;margin:6px 0;letter-spacing:-.05em}
.customizer-header p{margin:0;color:var(--muted);font-size:13px}
.preview-badge{padding:9px 11px;border:1px solid var(--line);border-radius:6px;color:#d6d9cf;font-size:11px;white-space:nowrap}
.editor-grid{display:grid;grid-template-columns:minmax(245px,300px) minmax(240px,300px) minmax(330px,1fr);gap:14px;align-items:stretch}
.panel{min-width:0;border:1px solid #5b6f623d;border-radius:12px;background:#0d1a1e;box-shadow:0 18px 45px #0003;overflow:hidden}
.controls{display:flex;flex-direction:column;gap:11px;padding:17px;min-height:645px}
.field{display:grid;gap:5px;color:#c8d4d3;font-size:11px;font-weight:650}
.field span{display:block}
.field select,.field input[type=text]{width:100%;padding:10px;background:#14272b;color:#f8fbf8;border:1px solid #526865;border-radius:6px;outline:none}
.field select:focus,.field input[type=text]:focus{border-color:var(--yellow)}
.field input[type=color]{height:36px;width:100%;padding:3px;border:1px solid #526865;border-radius:6px;background:#14272b}
.field input[type=range]{width:100%;accent-color:var(--yellow);margin:2px 0}
.field output{font-size:10px;color:var(--yellow)}
.add-row,.project-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.controls button{min-height:35px;padding:7px 9px;border:1px solid #56635e;border-radius:6px;background:#17282b;color:#e9f2ed;font-weight:700;font-size:11px}
.controls button:hover:not(:disabled){border-color:var(--yellow);color:var(--yellow)}
.controls button:disabled{opacity:.4;cursor:default}
.controls .button-primary{border-color:var(--yellow);background:var(--yellow);color:#101810}
.controls .button-primary:hover:not(:disabled){background:#ffe96e;color:#101810}
.layer-heading,.panel-title{display:flex;justify-content:space-between;align-items:center;gap:9px}
.layer-heading{margin-top:2px;font-size:11px}.layer-heading button{min-height:28px;padding:4px 8px}
.layer-list{min-height:64px;max-height:105px;overflow:auto;border:1px solid #355052;border-radius:6px;background:#071316;padding:4px}
.layer-list button{display:block;width:100%;min-height:27px;padding:5px 8px;text-align:left;background:transparent;border:0;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.layer-list button.active{background:#f5d73526;color:var(--yellow)}
.layer-list .empty{padding:11px;color:#83999b;font-size:11px}
.layer-controls{display:grid;gap:8px;border-top:1px solid #51606340;padding-top:10px}
.layer-controls[hidden],.field[hidden]{display:none}
.project-actions{margin-top:auto}
.export{width:100%}
.status{min-height:30px;margin:0;color:#a4bab8;font-size:10px;line-height:1.4}
.flat-panel,.three-panel{display:flex;flex-direction:column}
.panel-title{padding:13px 15px;min-height:45px;border-bottom:1px solid #48615a4f;font-size:12px}.panel-title span{font-size:10px;color:#a7b6b3}
.flat-stage{flex:1;display:grid;place-items:center;padding:14px;background:radial-gradient(ellipse at center,#273a3e,#10191e 68%);min-height:520px}
.flat-stage canvas{display:block;width:auto;max-width:100%;max-height:590px;aspect-ratio:71/146;border-radius:12% / 6%;box-shadow:0 15px 35px #0008;touch-action:none;cursor:grab}
.flat-stage canvas:active{cursor:grabbing}
.microcopy{padding:0 14px 12px;margin:0;color:#94a9aa;font-size:10px;line-height:1.4}
.three-panel iframe{flex:1;display:block;width:100%;min-height:600px;border:0;background:#11161c}
.production-note{margin:13px 2px 0;color:#9daead;font-size:10px;line-height:1.5}
:is(button,select,input,iframe):focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
@media(max-width:1100px){.editor-grid{grid-template-columns:minmax(230px,290px) minmax(235px,1fr)}.three-panel{grid-column:1/-1}.three-panel iframe{min-height:480px}.controls{min-height:610px}}
@media(max-width:650px){.customizer{padding:16px 10px}.customizer-header{display:block}.preview-badge{display:inline-block;margin-top:12px}.editor-grid{grid-template-columns:1fr}.controls{min-height:0}.flat-stage{min-height:480px}.flat-stage canvas{max-height:480px}.three-panel{grid-column:auto}.three-panel iframe{min-height:510px}.production-note{font-size:10px}}
