/* ═══════════════════════════════════════════════════
   SalesDoc Builder — styles.css v2
   SECTION 1: Editor Chrome (Google Slides layout)
   SECTION 2: Document Themes (sdoc-*)  [kept below]
   ═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

:root {
  --ed-bg:       #F0F2F5;
  --ed-panel:    #FFFFFF;
  --ed-border:   #E4E7EC;
  --ed-text:     #1A1A2E;
  --ed-muted:    #6B7280;
  --ed-accent:   #00AAFF;
  --ed-accent2:  #0090E8;
  --ed-topbar-h: 56px;
  --ed-panel-w:  236px;
  --ed-props-w:  276px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  /* legacy doc-theme vars */
  --bg: #0b0f19; --surface: #151c2c; --surface2: #1e273a;
  --border: #2a3550; --accent: #3846e7; --accent2: #2d3bc1;
  --text: #e8edf8; --muted: #64748b; --success: #16a34a; --radius: 12px;
}

body, .ed-body {
  font-family: var(--font);
  background: var(--ed-bg);
  color: var(--ed-text);
  -webkit-font-smoothing: antialiased;
}

.sd-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: currentColor;
  flex-shrink: 0;
  vertical-align: -0.12em;
  -webkit-mask: var(--sd-icon-url) center / contain no-repeat;
  mask: var(--sd-icon-url) center / contain no-repeat;
}
.sd-icon-message { --sd-icon-url: url('/canvas/svg-library/message-square.svg'); }
.sd-icon-phone { --sd-icon-url: url('/canvas/svg-library/phone-call.svg'); }
.sd-icon-smartphone { --sd-icon-url: url('/canvas/svg-library/smartphone.svg'); }
.sd-icon-trending { --sd-icon-url: url('/canvas/svg-library/trending-up.svg'); }
.sd-icon-chart { --sd-icon-url: url('/canvas/svg-library/bar-chart-2.svg'); }
.sd-icon-target { --sd-icon-url: url('/canvas/svg-library/target.svg'); }
.sd-icon-file { --sd-icon-url: url('/canvas/svg-library/file-text.svg'); }
.sd-icon-clock { --sd-icon-url: url('/canvas/svg-library/clock.svg'); }
.sd-icon-check { --sd-icon-url: url('/canvas/svg-library/check.svg'); }
.sd-icon-shield { --sd-icon-url: url('/canvas/svg-library/shield.svg'); }
.sd-icon-zap { --sd-icon-url: url('/canvas/svg-library/zap.svg'); }
.sd-icon-briefcase { --sd-icon-url: url('/canvas/svg-library/briefcase.svg'); }
.sd-icon-edit { --sd-icon-url: url('/canvas/svg-library/edit-3.svg'); }
.sd-icon-search { --sd-icon-url: url('/canvas/svg-library/search.svg'); }
.sd-icon-user { --sd-icon-url: url('/canvas/svg-library/user.svg'); }
.sd-icon-external { --sd-icon-url: url('/canvas/svg-library/external-link.svg'); }
.sd-icon-image { --sd-icon-url: url('/canvas/svg-library/image.svg'); }
.ed-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TOP BAR ── */
.ed-topbar {
  height: var(--ed-topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ed-topbar-l { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ed-topbar-c { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.ed-topbar-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

/* ── CANVAS MODE SWITCHER ── */
.ed-canvas-mode-sw {
  display: flex; gap: 2px;
  background: var(--ed-bg);
  border-radius: 8px;
  padding: 3px;
  margin: 0 auto;
}
.ed-mode-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ed-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
  line-height: 1.6;
}
.ed-mode-btn:hover { color: var(--ed-text); }
.ed-mode-btn.active {
  background: #fff;
  color: var(--ed-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.ed-brand { font-size: 13px; font-weight: 800; color: var(--ed-text); text-decoration: none; }
.ed-brand:hover { color: var(--ed-accent); }
.ed-sep { color: #D0D0D0; font-size: 14px; }
.ed-title { font-size: 13px; font-weight: 600; color: var(--ed-muted); }
.ed-doctype-group { display: flex; gap: 2px; margin-left: 8px; }
.ed-pill {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--ed-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, color .15s;
}
.ed-pill:hover { background: var(--ed-bg); color: var(--ed-text); }
.ed-pill.active { background: #EEF5FF; color: var(--ed-accent); }
.ed-theme {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ed-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.ed-theme:hover { border-color: var(--ed-border); color: var(--ed-text); }
.ed-theme.active { border-color: var(--ed-accent); color: var(--ed-accent); background: #EEF9FF; }
.ed-btn-ghost {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--ed-border);
  background: transparent;
  color: var(--ed-text);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.ed-btn-ghost:hover { border-color: var(--ed-accent); color: var(--ed-accent); }
.ed-btn-ghost:disabled { opacity: .45; cursor: not-allowed; border-color: var(--ed-border); color: var(--ed-muted); }
.ed-btn-compact { width: 32px; min-width: 32px; padding: 7px 0; font-size: 15px; line-height: 1; }
.ed-btn-danger { color: #b42318; border-color: #f3c7c3; background: #fff; }
.ed-btn-danger:hover { border-color: #ef4444; color: #ef4444; background: #fff7f7; }
.ed-btn-accent {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: var(--ed-accent);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, transform .1s;
}
.ed-btn-accent:hover { background: var(--ed-accent2); transform: translateY(-1px); }
.ed-save-status {
  min-width: 112px;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  white-space: nowrap;
}
.ed-save-status.is-ok { color: #138a4f; }
.ed-save-status.is-warn { color: #b45309; }

/* ── MAIN 3-COLUMN ── */
.ed-main { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* ── SIDE PANELS ── */
.ed-aside {
  background: var(--ed-panel);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.ed-aside-l { width: var(--ed-panel-w); border-right: 1px solid var(--ed-border); }
.ed-aside-r { width: var(--ed-props-w); border-left: 1px solid var(--ed-border); }
.ed-panel-section { padding: 12px; border-bottom: 1px solid var(--ed-border); }
.ed-panel-section:last-child { border-bottom: none; }
.ed-panel-order { flex: 1; }
.ed-props-section { height: 100%; display: flex; flex-direction: column; }
.ed-panel-hdr {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ed-muted);
  padding: 2px 0 8px;
}
.ed-panel-sub {
  margin: -4px 0 10px;
  color: #8b98aa;
  font-size: 11px;
  line-height: 1.45;
}

/* ── CATALOG ── */
.blocks-catalog { display: flex; flex-direction: column; gap: 2px; }
.catalog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ed-text);
  transition: background .12s;
  user-select: none;
}
.catalog-item:hover { background: #EEF9FF; }
.catalog-item.added { opacity: .62; cursor: default; pointer-events: none; }
.catalog-icon { width: 20px; flex-shrink: 0; color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; }
.catalog-icon .sd-icon { width: 14px; height: 14px; }
.catalog-label { flex: 1; }
.catalog-add { font-size: 16px; font-weight: 800; color: var(--ed-accent); width: 18px; text-align: center; }
.catalog-item.added .catalog-add { color: var(--ed-muted); }
.catalog-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e6f7ff;
  color: var(--ed-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.catalog-plus, .catalog-check { font-size: 13px; line-height: 1; }
.catalog-item.added .catalog-status { background: #f1f5f9; color: #64748b; }

/* ── ORDER LIST ── */
.order-list { display: flex; flex-direction: column; gap: 2px; }
.order-empty { font-size: 12px; color: var(--ed-muted); padding: 4px 0; text-align: center; }
.order-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ed-text);
  transition: background .12s;
  user-select: none;
}
.order-item:hover { background: #EEF9FF; }
.order-item.active { background: #EEF9FF; color: var(--ed-accent); font-weight: 700; }
.order-icon { width: 18px; color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; }
.order-icon .sd-icon { width: 13px; height: 13px; }
.order-label { flex: 1; }
.props-title-icon { display: inline-flex; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; color: #94a3b8; }

/* ── CANVAS AREA ── */
.ed-canvas-area {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--ed-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ed-canvas-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  padding: 28px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ed-canvas-paper { width: 100%; max-width: 700px; background: transparent; }

/* ── BLOCK WRAPPER ── */
.canvas-block-wrap {
  position: relative;
  border: 2px solid transparent;
  border-radius: 10px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: border-color .15s;
}
.canvas-block-wrap:hover { border-color: rgba(0,170,255,.35); }
.canvas-block-wrap.selected { border-color: var(--ed-accent); }

/* ── BLOCK TOOLBAR ── */
.canvas-block-toolbar {
  position: absolute;
  top: -30px; left: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ed-accent);
  color: #fff;
  border-radius: 6px 6px 0 0;
  padding: 0 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 20;
  white-space: nowrap;
}
.canvas-block-wrap:hover .canvas-block-toolbar,
.canvas-block-wrap.selected .canvas-block-toolbar { opacity: 1; pointer-events: auto; }
.cbt-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-right: 4px; }
.cbt-actions { display: flex; gap: 2px; }
.cbt-btn {
  background: rgba(255,255,255,.2);
  border: none; color: #fff;
  width: 20px; height: 20px;
  border-radius: 4px; font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s; padding: 0; line-height: 1;
}
.cbt-btn:hover { background: rgba(255,255,255,.4); }
.cbt-del { background: rgba(220,50,50,.5); }
.cbt-del:hover { background: #ef4444; }

/* ── CANVAS EMPTY STATE ── */
.canvas-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--ed-muted);
  background: #fff;
  border-radius: 12px;
  border: 2px dashed var(--ed-border);
}
.canvas-empty-icon { font-size: 48px; margin-bottom: 12px; }
.canvas-empty p { font-size: 15px; }

/* ── EMPTY BLOCK PLACEHOLDER ── */
.sdoc-empty-block { border: 2px dashed #E4E7EC !important; background: #FAFBFC !important; border-radius: 8px !important; }
.sdoc-empty-hint { font-size: 12px; color: var(--ed-muted); font-style: italic; padding: 4px 0; }

/* ── PROPS PANEL ── */
.props-body { flex: 1; overflow-y: auto; padding: 10px; }
.props-hint { font-size: 13px; color: var(--ed-muted); line-height: 1.6; padding: 4px 0; }
.props-form { display: flex; flex-direction: column; gap: 10px; }
.props-ai-card {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #CFEFFF;
  border-radius: 9px;
  background: linear-gradient(180deg, #F3FBFF 0%, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.props-ai-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.props-ai-head span { font-size: 12px; font-weight: 900; color: var(--ed-text); }
.props-ai-head small { font-size: 10px; font-weight: 700; color: var(--ed-muted); text-align: right; }
.props-ai-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.props-ai-btn {
  border: 1px solid var(--ed-border);
  background: #fff;
  color: var(--ed-text);
  border-radius: 7px;
  padding: 7px 9px;
  font: 800 11px var(--font);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, opacity .15s;
}
.props-ai-btn:hover { border-color: var(--ed-accent); color: var(--ed-accent); background: #EEF9FF; }
.props-ai-btn.is-primary { background: var(--ed-accent); border-color: var(--ed-accent); color: #fff; }
.props-ai-btn:disabled { opacity: .55; cursor: wait; }
.props-ai-note { font-size: 11px; line-height: 1.45; color: var(--ed-muted); }
.props-label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px; font-weight: 800; color: var(--ed-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.props-input {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--ed-border);
  background: #F8FAFC;
  color: var(--ed-text);
  font-size: 13px; font-family: var(--font);
  outline: none; width: 100%;
  transition: border-color .15s, background .15s;
}
.props-input:focus { border-color: var(--ed-accent); background: #fff; }
.props-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.props-check input { width: 15px; height: 15px; accent-color: var(--ed-accent); }
.props-textarea {
  padding: 8px 10px;
  border-radius: 7px;
  border: 1.5px solid var(--ed-border);
  background: #F8FAFC;
  color: var(--ed-text);
  font-size: 13px; font-family: var(--font);
  outline: none; resize: vertical; width: 100%; line-height: 1.6;
  transition: border-color .15s, background .15s;
}
.props-textarea:focus { border-color: var(--ed-accent); background: #fff; }
.props-item {
  background: #F8FAFC;
  border: 1px solid var(--ed-border);
  border-radius: 8px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.props-item--inline { flex-direction: row; align-items: center; padding: 6px 10px; gap: 6px; }
.props-item--inline .props-input { flex: 1; }
.props-item-head { display: flex; justify-content: space-between; align-items: center; }
.props-item-n { font-size: 10px; font-weight: 700; color: var(--ed-muted); }
.props-item-del {
  background: none; border: none; color: var(--ed-muted);
  cursor: pointer; font-size: 15px; padding: 2px 5px;
  border-radius: 4px; line-height: 1; transition: color .12s, background .12s;
}
.props-item-del:hover { color: #ef4444; background: #FFF0F0; }
.props-add-btn {
  padding: 8px 12px;
  border-radius: 7px;
  border: 1.5px dashed var(--ed-border);
  background: transparent; color: var(--ed-accent);
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: var(--font); text-align: center; transition: all .15s;
}
.props-add-btn:hover { background: #EEF9FF; border-color: var(--ed-accent); }

/* ── AVATAR UPLOAD ── */
.props-upload-area { display: flex; flex-direction: column; gap: 6px; }
.props-avatar-wrap {
  width: 100%; height: 110px;
  border-radius: 10px;
  border: 2px dashed var(--ed-border);
  overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #F8FAFC; transition: border-color .15s;
}
.props-avatar-wrap:hover { border-color: var(--ed-accent); }
.props-avatar-placeholder {
  font-size: 12px; color: var(--ed-muted); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.props-avatar-placeholder::before { content: '👤'; font-size: 28px; }
.props-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.props-remove-photo {
  background: none; border: none; color: #ef4444; font-size: 12px;
  cursor: pointer; text-align: center; width: 100%; padding: 2px;
  font-family: var(--font);
}
.props-remove-photo:hover { text-decoration: underline; }

/* ── CASE SCREENSHOT UPLOAD ── */
.props-upload-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 7px 10px; border-radius: 7px;
  border: 1.5px dashed var(--ed-border); background: transparent;
  color: var(--ed-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all .15s;
}
.props-upload-btn:hover { border-color: var(--ed-accent); color: var(--ed-accent); background: #EEF9FF; }
.props-upload-preview {
  width: 100%;
  max-height: 150px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  overflow: hidden;
  background: #F8FAFC;
  margin-top: 6px;
}
.props-upload-preview img { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.props-screenshots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.props-thumb { position: relative; border-radius: 5px; overflow: hidden; border: 1px solid var(--ed-border); }
.props-thumb img { display: block; height: 52px; width: auto; max-width: 110px; object-fit: cover; }
.props-thumb button {
  position: absolute; top: 2px; right: 2px;
  width: 15px; height: 15px;
  background: rgba(0,0,0,.65); color: #fff;
  border: none; border-radius: 50%; font-size: 9px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0;
}
.props-thumb button:hover { background: #ef4444; }

/* ── TOAST ── */
.ed-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #f1f5f9;
  padding: 12px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9999; transition: opacity .3s; font-family: var(--font);
}
.ed-toast.hidden { opacity: 0; pointer-events: none; }

/* ── SHARE MODAL ── */
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(8px);
}
.share-modal-card {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(15,23,42,.24);
  padding: 28px;
}
.share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ed-muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.share-modal-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f9f0;
  color: #138a4f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.share-modal-card h2 { font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.share-modal-card p { font-size: 14px; line-height: 1.7; color: var(--ed-muted); margin-bottom: 18px; }
.share-link-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.share-link-field span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ed-muted);
}
.share-link-field input {
  width: 100%;
  border: 1.5px solid var(--ed-border);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--ed-text);
  font: 700 13px var(--font);
  padding: 12px 13px;
}
.share-modal-actions { display: flex; gap: 10px; }
.share-modal-actions button,
.share-modal-actions a {
  flex: 1;
  min-height: 42px;
  border-radius: 8px;
  font: 800 13px var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.share-copy { border: 1.5px solid var(--ed-border); background: #fff; color: var(--ed-text); }
.share-open { border: 1.5px solid var(--ed-accent); background: var(--ed-accent); color: #fff; }
.audit-modal-card { width: min(620px, 100%); }
.audit-score {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 0 0 18px;
}
.audit-score span { display: block; height: 100%; background: linear-gradient(90deg, #00AAFF, #14B86A); }
.audit-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.audit-item {
  padding: 10px 12px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #F8FAFC;
}
.audit-item strong { display: block; font-size: 12px; margin-bottom: 3px; color: var(--ed-text); }
.audit-item p { margin: 0; font-size: 12px; line-height: 1.55; }
.audit-item.warn { border-color: #FCD34D; background: #FFFBEB; }
.audit-item.good { border-color: #BBF7D0; background: #F0FDF4; }
.audit-item.error { border-color: #FECACA; background: #FEF2F2; }
.audit-wins {
  padding: 12px;
  border-radius: 8px;
  background: #F3FBFF;
  margin-bottom: 16px;
}
.audit-wins strong { display: block; font-size: 12px; margin-bottom: 7px; }
.audit-wins ul { margin: 0; padding-left: 18px; color: var(--ed-muted); font-size: 12px; line-height: 1.6; }
.audit-publish { border: 1.5px solid var(--ed-accent); background: var(--ed-accent); color: #fff; }

/* ── MOBILE PROPS BUTTON ── */
.ed-mobile-btn {
  display: none;
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ed-accent); color: #fff;
  border: none; font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,170,255,.4);
  cursor: pointer; z-index: 200;
  align-items: center; justify-content: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  :root { --ed-props-w: 240px; }
}
@media (max-width: 900px) {
  .ed-aside-l { display: none; }
  .ed-aside-r {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; height: 55vh;
    border-top: 1px solid var(--ed-border);
    border-left: none;
    transform: translateY(100%);
    transition: transform .28s ease;
    z-index: 150; border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.12);
  }
  .ed-aside-r.open { transform: translateY(0); }
  .ed-mobile-btn { display: flex; }
  .ed-canvas-scroll { padding: 20px 16px 80px; }
  .canvas-block-toolbar { top: -28px; }
}
@media (max-width: 600px) {
  .ed-topbar-c { display: none; }
  .ed-title { display: none; }
  .ed-doctype-group { margin-left: 0; }
  .ed-save-status { display: none; }
  .ed-btn-danger { padding-inline: 10px; }
}


/* ═══════════════════════════════════════════════
   DOCUMENT THEMES
   ═══════════════════════════════════════════════ */

/* ─ SHARED DOC BASE ─ */
.sdoc { font-family: var(--font); }
.sdoc-section { margin-bottom: 36px; }
.sdoc-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

/* ─ THEME: SALES ─ */
.theme-sales {
  background: #0f172a;
  color: #e8edf8;
  border-radius: 16px;
  overflow: hidden;
}
.theme-sales .sdoc-header {
  background: linear-gradient(135deg, #1a1f3a 0%, #252d55 100%);
  border-bottom: 3px solid #3846e7;
  padding: 48px 40px 40px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.theme-sales .sdoc-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid #3846e7;
  object-fit: cover; flex-shrink: 0;
}
.theme-sales .sdoc-avatar-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: #1e293b; border: 3px solid #3846e7;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.theme-sales .sdoc-name { font-size: 30px; font-weight: 800; color: #f1f5f9; margin-bottom: 6px; }
.theme-sales .sdoc-title-role { font-size: 15px; color: #3846e7; font-weight: 700; margin-bottom: 8px; }
.theme-sales .sdoc-tagline { font-size: 14px; color: #94a3b8; line-height: 1.5; }
.theme-sales .sdoc-body { padding: 36px 40px; }
.theme-sales .sdoc-section-title { color: #3846e7; border-bottom: 1px solid #1e293b; }
.theme-sales .sdoc-about { font-size: 15px; color: #cbd5e1; line-height: 1.7; }

.theme-sales .sdoc-services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.theme-sales .sdoc-service-card {
  background: #1e293b;
  border: 1.5px solid #2a3550;
  border-radius: 10px; padding: 16px;
}
.theme-sales .sdoc-service-name { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.theme-sales .sdoc-service-desc { font-size: 12px; color: #64748b; }
.theme-sales .sdoc-service-price { font-size: 16px; font-weight: 800; color: #3846e7; margin-top: 8px; }

.theme-sales .sdoc-advantages-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.theme-sales .sdoc-advantages-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #cbd5e1; line-height: 1.5;
}
.theme-sales .sdoc-adv-bullet {
  width: 22px; height: 22px; border-radius: 50%; background: #3846e7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; color: #fff; margin-top: 1px;
}

.theme-sales .sdoc-cases-list { display: flex; flex-direction: column; gap: 14px; }
.theme-sales .sdoc-case-card {  background: #1e293b; border-left: 4px solid #3846e7;
  border-radius: 0 8px 8px 0; padding: 16px 18px;
}
.theme-sales .sdoc-case-title { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.theme-sales .sdoc-case-result { font-size: 13px; color: #64748b; }
.theme-sales .sdoc-case-screenshots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-sales .sdoc-case-screenshot { max-width: 100%; border-radius: 6px; border: 1px solid #2a3550; height: auto; max-height: 220px; object-fit: contain; }

.theme-sales .sdoc-contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.theme-sales .sdoc-contact-item {
  display: flex; align-items: center; gap: 8px;
  background: #1e293b; border: 1px solid #2a3550;
  border-radius: 8px; padding: 10px 16px;
  font-size: 13px; color: #cbd5e1;
  text-decoration: none;
}
.theme-sales .sdoc-contact-item:hover { border-color: #3846e7; color: #fff; text-decoration: none; }
.theme-sales .sdoc-contact-icon { font-size: 16px; }

.theme-sales .sdoc-cta {
  background: linear-gradient(135deg, #3846e7 0%, #2d3bc1 100%);
  border-radius: 12px; padding: 32px 40px; text-align: center; margin-top: 16px;
}
.theme-sales .sdoc-cta-text { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.theme-sales .sdoc-cta-sub { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.theme-sales .sdoc-cta-btn {
  display: inline-block; background: #fff; color: #3846e7;
  font-weight: 800; font-size: 15px; padding: 13px 32px; border-radius: 8px;
  text-decoration: none;
}

/* ─ THEME: DARK ─ */
.theme-dark {
  background: #0f172a; color: #e8edf8; border-radius: 16px; overflow: hidden;
}
.theme-dark .sdoc-header {
  background: #1e293b; border-bottom: 1px solid #334155;
  padding: 44px 40px 36px; display: flex; align-items: flex-start; gap: 24px;
}
.theme-dark .sdoc-avatar { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.theme-dark .sdoc-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 12px;
  background: #0f172a; display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
}
.theme-dark .sdoc-name { font-size: 28px; font-weight: 800; color: #f8fafc; margin-bottom: 4px; }
.theme-dark .sdoc-title-role { font-size: 14px; color: #94a3b8; margin-bottom: 6px; }
.theme-dark .sdoc-tagline { font-size: 13px; color: #475569; }
.theme-dark .sdoc-body { padding: 32px 40px; }
.theme-dark .sdoc-section-title { color: #94a3b8; border-bottom: 1px solid #1e293b; }
.theme-dark .sdoc-about { font-size: 14px; color: #94a3b8; line-height: 1.7; }
.theme-dark .sdoc-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-dark .sdoc-service-card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 14px; }
.theme-dark .sdoc-service-name { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.theme-dark .sdoc-service-desc { font-size: 12px; color: #475569; margin-top: 2px; }
.theme-dark .sdoc-service-price { font-size: 15px; font-weight: 800; color: #f8fafc; margin-top: 6px; }
.theme-dark .sdoc-advantages-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.theme-dark .sdoc-advantages-list li { display: flex; gap: 8px; font-size: 13px; color: #94a3b8; }
.theme-dark .sdoc-adv-bullet { color: #3846e7; flex-shrink: 0; }
.theme-dark .sdoc-cases-list { display: flex; flex-direction: column; gap: 12px; }
.theme-dark .sdoc-case-card { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 14px 16px; }
.theme-dark .sdoc-case-title { font-size: 13px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.theme-dark .sdoc-case-result { font-size: 12px; color: #475569; }
.theme-dark .sdoc-case-screenshots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-dark .sdoc-case-screenshot { max-width: 100%; border-radius: 6px; border: 1px solid #334155; height: auto; max-height: 220px; object-fit: contain; }
.theme-dark .sdoc-contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-dark .sdoc-contact-item { font-size: 13px; color: #94a3b8; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.theme-dark .sdoc-contact-item:hover { color: #f1f5f9; text-decoration: none; }
.theme-dark .sdoc-cta { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 28px; text-align: center; margin-top: 12px; }
.theme-dark .sdoc-cta-text { font-size: 18px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.theme-dark .sdoc-cta-sub { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.theme-dark .sdoc-cta-btn { display: inline-block; background: #3846e7; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 28px; border-radius: 8px; text-decoration: none; }

/* ─ THEME: MINIMAL ─ */
.theme-minimal {
  background: #fff; color: #1e293b; border-radius: 16px; overflow: hidden;
}
.theme-minimal .sdoc-header {
  background: #f8fafc; border-bottom: 2px solid #e2e8f0;
  padding: 44px 40px 36px; display: flex; align-items: flex-start; gap: 24px;
}
.theme-minimal .sdoc-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.theme-minimal .sdoc-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0;
}
.theme-minimal .sdoc-name { font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.theme-minimal .sdoc-title-role { font-size: 14px; color: #64748b; margin-bottom: 4px; }
.theme-minimal .sdoc-tagline { font-size: 13px; color: #94a3b8; }
.theme-minimal .sdoc-body { padding: 32px 40px; }
.theme-minimal .sdoc-section-title { color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.theme-minimal .sdoc-about { font-size: 14px; color: #475569; line-height: 1.7; }
.theme-minimal .sdoc-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-minimal .sdoc-service-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; }
.theme-minimal .sdoc-service-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.theme-minimal .sdoc-service-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.theme-minimal .sdoc-service-price { font-size: 15px; font-weight: 800; color: #0f172a; margin-top: 6px; }
.theme-minimal .sdoc-advantages-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.theme-minimal .sdoc-advantages-list li { display: flex; gap: 8px; font-size: 13px; color: #475569; }
.theme-minimal .sdoc-adv-bullet { color: #3846e7; flex-shrink: 0; }
.theme-minimal .sdoc-cases-list { display: flex; flex-direction: column; gap: 10px; }
.theme-minimal .sdoc-case-card { background: #f8fafc; border-left: 3px solid #3846e7; padding: 12px 16px; }
.theme-minimal .sdoc-case-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.theme-minimal .sdoc-case-result { font-size: 12px; color: #94a3b8; }
.theme-minimal .sdoc-case-screenshots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-minimal .sdoc-case-screenshot { max-width: 100%; border-radius: 4px; border: 1px solid #e2e8f0; height: auto; max-height: 220px; object-fit: contain; }
.theme-minimal .sdoc-contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-minimal .sdoc-contact-item { font-size: 13px; color: #475569; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.theme-minimal .sdoc-contact-item:hover { color: #3846e7; text-decoration: none; }
.theme-minimal .sdoc-cta { background: #f1f5f9; border-radius: 10px; padding: 28px; text-align: center; margin-top: 12px; }
.theme-minimal .sdoc-cta-text { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.theme-minimal .sdoc-cta-sub { font-size: 13px; color: #94a3b8; margin-bottom: 16px; }
.theme-minimal .sdoc-cta-btn { display: inline-block; background: #0f172a; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 28px; border-radius: 8px; text-decoration: none; }

/* ─ THEME: PREMIUM ─ */
.theme-premium {
  background: #111008; color: #f0e6c8; border-radius: 16px; overflow: hidden;
}
.theme-premium .sdoc-header {
  background: linear-gradient(135deg, #1c1408 0%, #2a1e0a 100%);
  border-bottom: 2px solid #b8860b;
  padding: 48px 40px 40px; display: flex; align-items: flex-start; gap: 28px;
}
.theme-premium .sdoc-avatar { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #b8860b; object-fit: cover; flex-shrink: 0; }
.theme-premium .sdoc-avatar-placeholder {
  width: 90px; height: 90px; border-radius: 50%;
  background: #1c1408; border: 3px solid #b8860b;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.theme-premium .sdoc-name { font-size: 30px; font-weight: 800; color: #f0e6c8; margin-bottom: 6px; }
.theme-premium .sdoc-title-role { font-size: 14px; color: #b8860b; font-weight: 600; margin-bottom: 6px; }
.theme-premium .sdoc-tagline { font-size: 13px; color: #8a7355; }
.theme-premium .sdoc-body { padding: 36px 40px; }
.theme-premium .sdoc-section-title { color: #b8860b; border-bottom: 1px solid #2a1e0a; }
.theme-premium .sdoc-about { font-size: 14px; color: #c9b89a; line-height: 1.7; }
.theme-premium .sdoc-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.theme-premium .sdoc-service-card { background: #1c1408; border: 1px solid #3a2a10; border-radius: 8px; padding: 16px; }
.theme-premium .sdoc-service-name { font-size: 14px; font-weight: 700; color: #f0e6c8; }
.theme-premium .sdoc-service-desc { font-size: 12px; color: #8a7355; margin-top: 3px; }
.theme-premium .sdoc-service-price { font-size: 16px; font-weight: 800; color: #b8860b; margin-top: 8px; }
.theme-premium .sdoc-advantages-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.theme-premium .sdoc-advantages-list li { display: flex; gap: 10px; font-size: 14px; color: #c9b89a; }
.theme-premium .sdoc-adv-bullet { color: #b8860b; flex-shrink: 0; }
.theme-premium .sdoc-cases-list { display: flex; flex-direction: column; gap: 12px; }
.theme-premium .sdoc-case-card { background: #1c1408; border-left: 4px solid #b8860b; padding: 14px 18px; }
.theme-premium .sdoc-case-title { font-size: 14px; font-weight: 700; color: #f0e6c8; margin-bottom: 4px; }
.theme-premium .sdoc-case-result { font-size: 12px; color: #8a7355; }
.theme-premium .sdoc-case-screenshots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-premium .sdoc-case-screenshot { max-width: 100%; border-radius: 8px; border: 1px solid #d4c5a0; height: auto; max-height: 220px; object-fit: contain; }
.theme-premium .sdoc-contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.theme-premium .sdoc-contact-item { font-size: 13px; color: #c9b89a; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.theme-premium .sdoc-contact-item:hover { color: #f0e6c8; text-decoration: none; }
.theme-premium .sdoc-cta { background: linear-gradient(135deg, #1c1408 0%, #2a1e0a 100%); border: 1px solid #b8860b; border-radius: 12px; padding: 32px; text-align: center; margin-top: 16px; }
.theme-premium .sdoc-cta-text { font-size: 20px; font-weight: 800; color: #f0e6c8; margin-bottom: 8px; }
.theme-premium .sdoc-cta-sub { font-size: 13px; color: #8a7355; margin-bottom: 20px; }
.theme-premium .sdoc-cta-btn { display: inline-block; background: #b8860b; color: #111008; font-weight: 800; font-size: 15px; padding: 13px 32px; border-radius: 8px; text-decoration: none; }

/* ── RESPONSIVE DOC ── */
@media (max-width: 600px) {
  .theme-sales .sdoc-header,
  .theme-dark .sdoc-header,
  .theme-minimal .sdoc-header,
  .theme-premium .sdoc-header { flex-direction: column; padding: 28px 20px; }
  .theme-sales .sdoc-body,
  .theme-dark .sdoc-body,
  .theme-minimal .sdoc-body,
  .theme-premium .sdoc-body { padding: 24px 20px; }
  .theme-sales .sdoc-services-grid,
  .theme-dark .sdoc-services-grid,
  .theme-minimal .sdoc-services-grid,
  .theme-premium .sdoc-services-grid { grid-template-columns: 1fr; }
  .theme-sales .sdoc-cta,
  .theme-dark .sdoc-cta,
  .theme-minimal .sdoc-cta,
  .theme-premium .sdoc-cta { padding: 24px 16px; }
}

/* ══════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════ */
@media print {
  body { background: #fff !important; color: #000 !important; }

  .ed-topbar, .ed-aside-l, .ed-aside-r, .ed-mobile-btn,
  .canvas-block-toolbar, .ed-toast { display: none !important; }

  .ed-body { height: auto; overflow: visible; }
  .ed-main { display: block; overflow: visible; }
  .ed-canvas-area { overflow: visible; }
  .ed-canvas-scroll { padding: 0 !important; overflow: visible; }
  .ed-canvas-paper { max-width: 100% !important; }

  .canvas-block-wrap { border: none !important; cursor: default; }

  /* Override document themes for print */
  .sdoc {
    background: #fff !important;
    color: #000 !important;
    border-radius: 0 !important;
  }
  .sdoc * { color: inherit !important; background: transparent !important; box-shadow: none !important; }
  .sdoc-header { background: #f3f4f6 !important; }
  .sdoc-section-title { color: #6b7280 !important; border-color: #e5e7eb !important; }
  .sdoc-service-card, .sdoc-case-card { border: 1px solid #e5e7eb !important; border-radius: 4px !important; }
  .sdoc-cta { background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; }
  .sdoc-cta-btn { background: #1e293b !important; color: #fff !important; }
  a { color: #1e293b !important; text-decoration: none !important; }
  .sdoc-empty-block { display: none !important; }

  @page { margin: 1.5cm; size: A4; }
}

/* ── CANVAS OUTER CLIP + FRAME WRAP ── */
#canvas-outer {
  position: relative;   /* establishes stacking context for absolute iframe-wrap */
  flex: 0 0 auto;       /* do not shrink in the vertical flex scroll area */
  overflow: hidden;     /* clips scaled content to visual width */
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(0,0,0,.14);
  min-height: 400px;    /* placeholder height before JS sets real height */
  margin: 0 auto;
  /* width & height set by JS */
}
.ed-canvas-frame-wrap {
  position: absolute;   /* removed from flow → canvas-outer height = JS-controlled */
  top: 0; left: 0;
  transform-origin: top left;
  /* width (= CANVAS_W), transform & height set by JS */
}
#preview-frame {
  width: 100%; /* = 100% of frame-wrap = CANVAS_W px */
  height: 400px;
  border: none;
  background: #fff;
  display: block;
  min-height: 400px;
}
.drop-overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,170,255,.06);
  border: 3px dashed rgba(0,170,255,.5);
  z-index: 20;
  pointer-events: none;
}
.drop-overlay.active {
  display: flex;
  pointer-events: all;
}
.drop-msg {
  font-size: 15px;
  font-weight: 700;
  color: #00AAFF;
  background: rgba(255,255,255,.95);
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,170,255,.15);
}
.canvas-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--ed-muted);
  background: #fff;
  border-radius: 10px;
  border: 2px dashed var(--ed-border);
  width: 100%;
  max-width: 900px;
}
.canvas-empty-icon { font-size: 38px; margin-bottom: 12px; }
.canvas-empty p { font-size: 15px; line-height: 1.8; }
.canvas-empty b { color: var(--ed-accent); }
.canvas-empty.drag-target {
  border-color: var(--ed-accent);
  background: #EEF9FF;
  color: var(--ed-accent);
}
.order-actions { display: flex; gap: 2px; margin-left: auto; }
.order-btn {
  background: none; border: none; color: var(--ed-muted);
  cursor: pointer; font-size: 13px; padding: 2px 5px;
  border-radius: 4px; font-family: var(--font); line-height: 1;
  transition: color .12s, background .12s;
}
.order-btn:hover { color: var(--ed-text); background: var(--ed-bg); }
.order-del:hover { color: #ef4444; background: #FFF0F0; }
.ed-canvas-scroll { justify-content: flex-start; }
.ed-aside-l { padding-bottom: 40px; }

/* ── PRINT ── */
@media print {
  .ed-topbar, .ed-aside-l, .ed-aside-r, .ed-mobile-btn, .ed-toast { display: none !important; }
  .ed-body { height: auto; overflow: visible; }
  .ed-main { display: block; overflow: visible; }
  .ed-canvas-area { overflow: visible; }
  .ed-canvas-scroll { padding: 0 !important; overflow: visible; }
  .ed-canvas-frame-wrap { max-width: 100% !important; box-shadow: none !important; }
  #preview-frame { box-shadow: none; border-radius: 0; }
}


/* ── WIZARD / ONBOARDING MODAL ── */
.wz-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; padding: 20px;
  backdrop-filter: blur(8px);
}
.wz-overlay.hidden { display: none; }
.wz-modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px 40px 32px;
  width: 100%; max-width: 480px; min-width: 320px;
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
  text-align: center;
  animation: wz-in .3s cubic-bezier(.22,1,.36,1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes wz-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.wz-dots { display: inline-flex; gap: 5px; margin-bottom: 20px; }
.wz-dots span { width: 12px; height: 12px; border-radius: 50%; }
.wz-dots span:nth-child(1) { background: #FF6946; }
.wz-dots span:nth-child(2) { background: #FF9E28; }
.wz-dots span:nth-child(3) { background: #4DBA87; }
.wz-dots span:nth-child(4) { background: #3D9BE9; }
.wz-title { font-size: 24px; font-weight: 900; color: #1A1A1A; margin-bottom: 8px; }
.wz-sub { font-size: 14px; color: #767676; margin-bottom: 24px; line-height: 1.6; }
.wz-photo-row { margin-bottom: 20px; }
.wz-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px dashed #D0D0D0;
  background: #F5F5F5;
  margin: 0 auto 8px;
  overflow: hidden; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.wz-avatar:hover { border-color: #00AAFF; box-shadow: 0 0 0 4px rgba(0,170,255,.1); }
.wz-avatar-ph {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 22px; color: #AAA; pointer-events: none;
}
.wz-avatar-ph span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wz-photo-hint { font-size: 12px; color: #AAAAAA; }
.wz-fields { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-bottom: 24px; }
.wz-label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; color: #767676;
  text-transform: uppercase; letter-spacing: .07em;
}
.wz-input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #E8E8E8;
  background: #F8FAFC;
  color: #1A1A1A;
  font-size: 14px; font-family: var(--font);
  outline: none; width: 100%;
  transition: border-color .15s, background .15s;
}
.wz-input:focus { border-color: #00AAFF; background: #fff; }
.wz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wz-btn {
  display: block; width: 100%;
  padding: 15px;
  background: #00AAFF; color: #fff;
  border: none; border-radius: 12px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  font-family: var(--font);
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 20px rgba(0,170,255,.3);
  margin-bottom: 12px;
}
.wz-btn:hover { background: #0090E8; transform: translateY(-1px); }
.wz-btn:active { transform: none; }
.wz-btn-secondary {
  background: #fff;
  color: #1A1A1A;
  border: 1.5px solid #E8E8E8;
  box-shadow: none;
  padding: 12px;
  font-size: 14px;
}
.wz-btn-secondary:hover { background: #F8FAFC; border-color: #00AAFF; color: #00AAFF; }
.wz-skip {
  background: none; border: none;
  font-size: 13px; color: #AAAAAA; cursor: pointer;
  font-family: var(--font); transition: color .15s;
}
.wz-skip:hover { color: #767676; text-decoration: underline; }
