.stg-wrap{--stg-radius:12px;--stg-gap:1rem;--stg-accent:var(--primary,#2563eb);display:flex;flex-direction:column;gap:var(--stg-gap);}
.stg-canvas-wrap{width:100%;min-height:220px;background:var(--surface-muted,#f1f5f9);border-radius:var(--stg-radius);overflow:hidden;border:1px solid var(--border,#e2e8f0);box-shadow:0 1px 3px rgba(0,0,0,.06);}
.stg-canvas-wrap canvas{display:block;width:100%;height:auto;max-height:70vh;object-fit:contain;}
.stg-controls{display:flex;flex-direction:column;gap:0.75rem;padding:1rem;background:var(--surface,#fff);border-radius:var(--stg-radius);border:1px solid var(--border,#e2e8f0);box-shadow:0 1px 2px rgba(0,0,0,.04);}
.stg-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0.75rem;}
.stg-row-main{flex:1;}
.stg-row-opt{padding-top:0.5rem;border-top:1px solid var(--border,#eee);}
.stg-field{display:flex;flex-direction:column;gap:0.25rem;min-width:0;}
.stg-field label{font-size:0.75rem;font-weight:600;color:var(--text-main,#0f172a);text-transform:uppercase;letter-spacing:0.03em;}
.stg-value{font-size:0.8125rem;color:var(--text-muted,#64748b);}
.stg-field input[type="range"]{width:100%;min-width:72px;height:6px;accent-color:var(--stg-accent);}
.stg-field select{padding:0.5rem 0.65rem;font-size:0.875rem;border:1px solid var(--border,#e2e8f0);border-radius:8px;background:var(--surface,#fff);color:var(--text-main,#0f172a);min-width:100px;}
.stg-field-check{justify-content:flex-end;}
.stg-check{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.875rem;font-weight:500;cursor:pointer;color:var(--text-main,#0f172a);}
.stg-check input{width:1.125rem;height:1.125rem;accent-color:var(--stg-accent);}
.stg-actions{display:flex;flex-wrap:wrap;gap:0.5rem;}
.stg-btn{padding:0.6rem 1rem;font-size:0.875rem;font-weight:600;border-radius:8px;border:none;cursor:pointer;transition:background .2s,color .2s,transform .05s;}
.stg-btn:active{transform:scale(0.98);}
.stg-btn-primary{background:var(--stg-accent);color:#fff;}
.stg-btn-primary:hover{filter:brightness(1.1);}
.stg-btn-secondary{background:var(--surface,#fff);color:var(--text-main,#0f172a);border:1px solid var(--border,#e2e8f0);}
.stg-btn-secondary:hover{background:var(--surface-muted,#f8fafc);}
.stg-stats{display:flex;flex-wrap:wrap;gap:1rem;padding:0.75rem 0;font-size:0.8125rem;color:var(--text-muted,#64748b);border-top:1px solid var(--border,#e2e8f0);}
.stg-stat strong{margin-right:0.25rem;color:var(--text-main,#0f172a);}
.stg-edu{margin-top:0.5rem;padding-top:1.25rem;border-top:1px solid var(--border,#e2e8f0);}
.stg-edu h2{font-size:1.2rem;font-weight:700;margin-bottom:0.5rem;color:var(--text-main,#0f172a);}
.stg-edu h3{font-size:1rem;font-weight:600;margin-top:1rem;margin-bottom:0.35rem;color:var(--text-main,#0f172a);}
.stg-edu p{margin:0 0 0.65rem;font-size:0.9375rem;line-height:1.55;color:var(--text-muted,#475569);}
.stg-edu code{font-size:0.875em;padding:0.15em 0.4em;background:var(--surface-muted,#f1f5f9);border-radius:4px;}
.stg-edu var{font-style:normal;}
@media (min-width:480px){.stg-row .stg-field{flex:1 1 120px;}.stg-canvas-wrap{min-height:260px;}}
@media (min-width:768px){.stg-canvas-wrap{min-height:320px;}.stg-canvas-wrap canvas{max-height:520px;}.stg-controls{padding:1.25rem;}.stg-row-opt{border-top-color:var(--border,#e2e8f0);}}
