/* Editor wizard layout: form + sticky phone preview (desktop), full-screen preview sheet (mobile). */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 24px 0 90px; align-items: start; }
.ed-form { min-width: 0; }
.ed-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; overflow-x: auto; }
.ed-steps button { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; border: 0; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.ed-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 13px; }
.ed-steps .on { color: var(--primary); background: var(--primary-soft); } .ed-steps .on span { background: var(--primary); color: #fff; }
.ed-steps .done span { background: var(--gold); color: #fff; }
.ed-step h3 { margin-top: 26px; }
.ed-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.ed-tpl { font: inherit; border: 2px solid var(--line); background: var(--paper); border-radius: 18px; padding: 8px 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ed-tpl.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ed-tpl-card { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--b); color: var(--i); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); outline: 1px solid color-mix(in srgb, var(--a) 45%, transparent); outline-offset: -7px; }
.ed-tpl-card i { width: 34px; height: 1px; background: var(--a); }
.ed-tpl-card b { font-family: var(--display); font-size: 19px; line-height: 1.5; } .ed-tpl-card em { color: var(--a); font-style: normal; }
.ed-tpl-card small { font-size: 11px; opacity: .8; }
.ed-tpl-name { font-weight: 700; font-size: 14px; }
.ed-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-op { font: inherit; text-align: right; border: 2px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; min-height: 44px; }
.ed-op small { color: var(--muted); font-size: 12px; line-height: 1.5; } .ed-op.on { border-color: var(--primary); background: var(--primary-soft); }
.ed-files { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-file { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--gold-soft); }
.ed-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-file button { position: absolute; top: 4px; inset-inline-start: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(40, 22, 18, .75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.ed-pick { align-self: flex-start; min-height: 44px; }
.ed-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
#summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; } #summary dt { color: var(--muted); } #summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ed-preview { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.ed-phone { width: 100%; aspect-ratio: 9 / 18.5; border-radius: 38px; border: 10px solid #2B1B17; background: #2B1B17; overflow: hidden; box-shadow: var(--shadow); }
.ed-phone iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.ed-fab, .ed-close { display: none; }
@media (max-width: 900px) {
  .ed { grid-template-columns: 1fr; padding-top: 14px; }
  .ed-preview { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(40, 22, 18, .82); padding: 12px; top: 0; justify-content: center; }
  .ed-preview.open { display: flex; }
  .ed-phone { width: auto; height: calc(100dvh - 90px); margin: 0 auto; max-width: 100%; }
  .ed-fab { display: inline-flex; position: fixed; bottom: 18px; inset-inline-start: 16px; z-index: 30; box-shadow: var(--shadow); }
  .ed-close { display: inline-flex; background: var(--paper); }
  .ed-steps button { padding: 8px 6px; }
}
.ed-occs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ed-occ { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.ed-occ.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.ed-tpl-art { padding: 0; overflow: hidden; outline: 0; } .ed-tpl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
