.editor-section { padding: 28px 0 56px; background: var(--bg-soft); }
.editor { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h1 { font-size: 20px; margin: 0; }
.plan-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.plan-badge.pro { background: var(--accent); color: #fff; }
.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-of-type { border-bottom: 0; }
.label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 15px; background: #fff; color: var(--text); margin-bottom: 8px; }
.input.color { padding: 4px; height: 40px; cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { display: block; font-size: 13px; color: var(--muted); }
.mini input[type=range] { width: 100%; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; display: block; }
.drop { display: grid; place-items: center; min-height: 84px; border: 2px dashed #cfd3e1; border-radius: 12px; text-align: center; padding: 12px; cursor: pointer; color: var(--muted); font-size: 14px; }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; cursor: pointer; min-height: 36px; }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.pro-only.locked { opacity: .45; pointer-events: none; }
.upsell { margin-top: 14px; background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.upsell p { margin: 4px 0 12px; font-size: 14px; color: #33376b; }
.upsell.hidden { display: none; }
.stage { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: center; }
#canvas { width: auto; height: min(78vh, 900px); max-width: 100%; border-radius: 14px; box-shadow: var(--shadow); background: #fff; }

@media (max-width: 860px) {
  .editor { grid-template-columns: 1fr; }
  .stage { position: static; order: -1; }
  #canvas { height: auto; width: min(100%, 360px); }
}
