.wm { display: grid; gap: 22px; }
.res:not([hidden]) { display: grid; gap: 18px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 240px; padding: 24px; border: 1.5px dashed var(--ink); border-radius: 24px; background: var(--mist); cursor: pointer; transition: background .15s;
}
.drop:hover, .drop.over { background: var(--mint); }
.drop strong { font: 700 clamp(32px, 5vw, 48px)/.95 var(--display); text-transform: uppercase; letter-spacing: -0.03em; }
.drop .link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.drop small { font: 400 12px/1.4 var(--mono); text-transform: uppercase; color: var(--smoke); }
.drop-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--paper); margin-bottom: 8px; }
.wm.has .drop { min-height: 110px; }
.wm.has .drop-ico { display: none; }
.wm.has .drop strong { font-size: 28px; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.presets button { flex: none; display: grid; gap: 4px; justify-items: start; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--mist); cursor: pointer; text-align: left; }
.presets button b { font: 600 14px var(--sans); color: var(--ink); }
.presets button span { font: 400 11px var(--mono); color: var(--slate); }
.presets button[aria-pressed="true"] { background: var(--ink); }
.presets button[aria-pressed="true"] b, .presets button[aria-pressed="true"] span { color: var(--paper); }
.stage-wrap { display: grid; justify-items: center; gap: 8px; background: repeating-conic-gradient(var(--mist) 0 25%, var(--paper) 0 50%) 0 0 / 20px 20px; border-radius: 24px; padding: 16px; }
#cv { max-width: 100%; max-height: 520px; width: auto; height: auto; cursor: grab; touch-action: none; border-radius: 6px; box-shadow: 0 0 0 1px var(--ash); }
#cv:active { cursor: grabbing; }
.size { margin: 0; color: var(--slate); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; }
.opt { display: grid; gap: 8px; font: 400 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: -0.03em; color: var(--slate); }
.opt[hidden] { display: none; }
.opt input[type=range] { accent-color: var(--ink); height: 44px; }
.opt select { height: 46px; padding: 0 12px; font: 500 15px var(--sans); text-transform: none; color: var(--ink); background: var(--mist); border: 0; border-radius: 8px; }
.seg { display: flex; background: var(--mist); border-radius: 48px; padding: 4px; }
.seg button { flex: 1; height: 40px; border: 0; border-radius: 48px; background: transparent; font: 500 14px var(--sans); color: var(--slate); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.help { margin: 0; color: var(--smoke); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wm-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 820px) { .wm-grid { grid-template-columns: minmax(0, 1fr); } }
.ctrl { display: grid; gap: 14px; }
.opt input[type=text] { min-height: 46px; padding: 0 12px; font: 500 16px var(--sans); text-transform: none; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 8px; }
.opt input[type=text]:focus { outline: none; border-color: var(--ink); }
.opt input[type=color] { width: 100%; height: 46px; border: 0; padding: 0; background: none; }
.pos { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.pos button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--mist); cursor: pointer; }
.pos button[aria-pressed="true"] { background: var(--ink); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .6; }
.thumbs img.sel { opacity: 1; outline: 2px solid var(--ink); }
#cv { cursor: default; }
