/* Creators Access — link-page (extrait du legacy inline <style>) */

.lp-editor .lp-page-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--cu-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Two-column: editor + sticky preview */
.lp-editor .lp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.lp-editor .lp-grid.is-desktop-preview {
  grid-template-columns: minmax(0, 1fr) 480px;
}
.lp-editor .lp-main { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.lp-editor .lp-aside {
  position: sticky;
  top: 24px;
  align-self: start;
}

/* Steps */
.lp-editor .lp-step-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.lp-editor .lp-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-primary);
  border: 1px solid var(--border-color-dark);
  color: var(--text-primary);
  margin-top: 1px;
}

/* Pill switch */
.lp-editor .lp-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.lp-editor .lp-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.lp-editor .lp-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color-dark);
  position: relative;
  transition: background 0.18s, border-color 0.18s;
  box-sizing: border-box;
}
.lp-editor .lp-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cu-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: transform 0.18s;
}
.lp-editor .lp-switch input:checked + .lp-switch-ui {
  background: #10b981;
  border-color: #10b981;
}
.lp-editor .lp-switch input:checked + .lp-switch-ui::after {
  transform: translateX(18px);
}
.lp-editor .lp-switch:hover .lp-switch-ui {
  border-color: var(--text-primary);
}
.lp-editor .lp-switch input:checked + .lp-switch-ui:hover,
.lp-editor .lp-switch:hover input:checked + .lp-switch-ui {
  border-color: #059669;
}

/* Publish card */
.lp-editor .lp-publish-card .cu-section-body { padding: 18px 20px; }
.lp-editor .lp-publish-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.lp-editor .lp-publish-meta { min-width: 0; flex: 1; }
.lp-editor .lp-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lp-editor .lp-status-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--cu-muted);
  letter-spacing: 0.02em;
}
.lp-editor .lp-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-color-dark);
  background: var(--bg-primary);
  color: var(--cu-muted-2);
}
.lp-editor .lp-status-badge.is-live {
  border-color: #10b981;
  color: #047857;
  background: #f0fdf4;
}
[data-theme="dark"] .lp-editor .lp-status-badge.is-live {
  border-color: #10b981;
  color: #6ee7b7;
  background: rgba(16,185,129,0.15);
}
.lp-editor .lp-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.lp-editor .lp-url {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  flex: 1;
  min-width: 0;
}
.lp-editor .lp-url-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
.lp-editor .lp-gate-hint {
  font-size: 12px;
  font-weight: 500;
  color: #b45309;
  margin-top: 10px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  display: none;
}
.lp-editor .lp-gate-hint:not(:empty) { display: block; }
[data-theme="dark"] .lp-editor .lp-gate-hint {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.lp-editor .lp-publish-btns {
  margin-top: 0;
  flex-shrink: 0;
}
.lp-editor .lp-publish-btns .cu-submit-btn {
  width: auto;
  min-width: 118px;
  margin: 0;
}

/* Section hint under title */
.lp-editor .lp-section-hint {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--cu-muted);
  font-weight: 400;
  line-height: 1.35;
}

.lp-editor #lpBioWrap textarea.cu-input { min-height: 88px; }

/* Add link buttons */
.lp-editor .lp-add-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lp-editor .lp-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border-color-dark);
  background: var(--cu-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: -0.01em;
}
.lp-editor .lp-add-btn:hover {
  background: var(--hover-bg);
  border-color: var(--text-primary);
}
.lp-editor .lp-add-btn--primary {
  border-color: #10b981;
  color: #059669;
}
.lp-editor .lp-add-btn--primary:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: #059669;
  color: #047857;
}

.lp-editor .lp-audimaans-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lp-editor .lp-audimaans-meta { min-width: 0; flex: 1; }
.lp-editor .lp-audimaans-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.lp-editor .lp-aff-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  word-break: break-all;
}
.lp-editor .lp-switch.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Links list */
.lp-editor .lp-links-list { display: flex; flex-direction: column; gap: 10px; }
.lp-editor .lp-link-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lp-editor .lp-link-row:hover {
  border-color: var(--border-color-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-editor .lp-link-row.dragging { opacity: 0.5; }
.lp-editor .lp-drag {
  cursor: grab;
  color: var(--cu-muted);
  padding: 10px 2px;
  user-select: none;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -2px;
}
.lp-editor .lp-link-fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lp-editor .lp-link-fields .cu-input,
.lp-editor .lp-link-fields select.cu-input { width: 100%; }
.lp-editor .lp-link-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lp-editor .lp-kind {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cu-muted-2);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.lp-editor .lp-enabled {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cu-muted-2);
  cursor: pointer;
}
.lp-editor .lp-enabled input { accent-color: #10b981; }
.lp-editor .lp-link-actions { padding-top: 4px; }

/* Empty state */
.lp-editor .lp-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--cu-muted);
  font-size: 13px;
  border: 1.5px dashed var(--border-color-dark);
  border-radius: 12px;
  background: var(--bg-primary);
  line-height: 1.5;
}
.lp-editor .lp-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.lp-editor .lp-empty-sub {
  font-size: 12px;
  color: var(--cu-muted);
}

/* Preview — mobile phone + desktop browser frame */
.lp-editor .lp-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 0;
  gap: 12px;
}
.lp-editor .lp-preview-toolbar {
  width: 100%;
  display: flex;
  justify-content: center;
}
.lp-editor .lp-device-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-color-dark);
  background: var(--bg-primary);
  gap: 2px;
}
.lp-editor .lp-device-btn {
  border: 0;
  background: transparent;
  color: var(--cu-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-editor .lp-device-btn:hover { color: var(--text-primary); }
.lp-editor .lp-device-btn.is-active {
  background: var(--cu-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lp-editor .lp-phone-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  transition: max-width 0.2s ease;
}
.lp-editor .lp-preview-stage.is-desktop .lp-phone-wrap {
  max-width: 440px;
}
.lp-editor .lp-theme-fab {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(24,24,26,0.72);
  color: #f5f5f5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
}
.lp-editor .lp-theme-fab:hover { background: rgba(40,40,44,0.88); transform: scale(1.04); }
.lp-editor .lp-theme-fab.is-light {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.08);
  color: #18181b;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.lp-editor .lp-theme-fab .lp-theme-ico { display: none; line-height: 0; }
.lp-editor .lp-theme-fab.is-light .lp-theme-ico--moon { display: block; }
.lp-editor .lp-theme-fab:not(.is-light) .lp-theme-ico--sun { display: block; }
.lp-editor .lp-phone {
  width: 100%;
  height: 560px;
  border: 1px solid var(--border-color-dark);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 12px 40px rgba(0,0,0,0.1);
  transition: height 0.2s ease, border-radius 0.2s ease;
}
.lp-editor .lp-preview-stage.is-desktop .lp-phone {
  height: 680px;
  border-radius: 14px;
}
.lp-editor .lp-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-editor .lp-phone iframe::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Alerts */
.lp-editor .lp-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}
.lp-editor .lp-alert.ok { background: #f0fdf4; color: #047857; border-color: #bbf7d0; }
.lp-editor .lp-alert.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
[data-theme="dark"] .lp-editor .lp-alert.ok {
  background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.25);
}
[data-theme="dark"] .lp-editor .lp-alert.err {
  background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25);
}

@media (max-width: 1100px) {
  .lp-editor .lp-grid,
  .lp-editor .lp-grid.is-desktop-preview { grid-template-columns: 1fr; }
  .lp-editor .lp-aside { position: static; }
  .lp-editor .lp-phone-wrap { max-width: 280px; margin: 0 auto; }
  .lp-editor .lp-preview-stage.is-desktop .lp-phone-wrap { max-width: min(440px, 100%); }
  .lp-editor .lp-phone { height: 520px; }
  .lp-editor .lp-preview-stage.is-desktop .lp-phone { height: 580px; }
}
@media (max-width: 640px) {
  .lp-editor .lp-phone-wrap { max-width: 100%; }
  .lp-editor .lp-phone { height: 520px; border-radius: 20px; }
  .lp-editor .lp-publish-btns { width: 100%; justify-content: stretch; }
  .lp-editor .lp-publish-btns .cu-submit-btn { flex: 1; min-width: 0; }
  .lp-editor .cu-section-head-row {
    flex-direction: row;
    align-items: center;
  }
  .lp-editor .lp-add-btns { width: 100%; }
  .lp-editor .lp-add-btn { flex: 1; }
}

*{box-sizing:border-box;margin:0;padding:0}' +
      'body{font-family:Satoshi,system-ui,sans-serif;background:' + bg + ';color:' + fg + ';padding:24px 16px;font-size:13px;min-height:100%;scrollbar-width:none;-ms-overflow-style:none}' +
      'body::-webkit-scrollbar{width:0;height:0;display:none}' +
      'html{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar{width:0;height:0;display:none}' +
      '.av{width:80px;height:80px;border-radius:50%;object-fit:cover;background:' + card + ';border:2px solid ' + line + ';margin:0 auto 12px;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700}' +
      '.av-fb{display:flex}.n{text-align:center;font-weight:700;font-size:17px;letter-spacing:-0.02em}.h{text-align:center;color:' + muted + ';margin:4px 0 12px;font-size:13px}' +
      '.bio{text-align:center;color:' + muted + ';margin:12px auto 0;line-height:1.45;max-width:' + contentMax + '}.soc{display:flex;justify-content:center;gap:8px;margin:14px 0;flex-wrap:wrap}' +
      '.s{width:36px;height:36px;border:1px solid ' + line + ';border-radius:50%;display:flex;align-items:center;justify-content:center;color:' + muted + ';text-decoration:none;font-size:10px;font-weight:600}' +
      '.sec{margin-top:22px}.sec h2{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:' + muted + ';font-weight:700}' +
      '.sec>h2{margin-bottom:10px}' +
      '.sh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}' +
      '.sh h2{margin:0}.more{font-size:10px;color:' + muted + ';text-decoration:none;white-space:nowrap}' +
      '.ph{min-height:44px;border:1px dashed ' + line + ';border-radius:10px;margin-bottom:8px;color:' + muted + ';display:flex;align-items:center;padding:10px 12px;font-size:12px;background:' + card + '}' +
      '.loops{display:flex;flex-direction:column;gap:8px}' +
      '.loop{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;padding:7px;border-radius:10px;border:1px solid ' + line + ';background:' + card + ';min-width:0}' +
      '.play{width:28px;height:28px;border-radius:50%;border:1px solid ' + line + ';background:transparent;color:' + fg + ';cursor:pointer;font-size:10px;padding:0;line-height:1;flex-shrink:0}' +
      '.play.is-playing{border-color:' + fg + '}.play:disabled{opacity:.35;cursor:not-allowed}' +
      '.lb{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:center;min-width:0;text-decoration:none;color:inherit}' +
      '.lc{width:40px;height:40px;border-radius:7px;object-fit:cover;background:' + line + ';flex-shrink:0}' +
      '.lm{min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}' +
      '.lt{font-size:12px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;word-break:break-word;overflow-wrap:anywhere}' +
      '.ls{font-size:10px;color:' + muted + ';white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}' +
      '.packs{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain}' +
      '.packs::-webkit-scrollbar{width:0;height:0;display:none}' +
      '.pack{flex:0 0 ' + packW + ';min-width:0;text-decoration:none;color:inherit}.pc{height:' + packH + ';border-radius:10px;background-size:cover;background-position:center;background-color:' + card + ';overflow:hidden}' +
      '.ps{margin-top:5px;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pcount{font-size:10px;color:' + muted + '}' +
      '.links{display:grid;gap:8px}.links.st{grid-template-columns:1fr}.links.g2{grid-template-columns:1fr 1fr}.links.g3{grid-template-columns:1fr 1fr 1fr}' +
      '.lnk{display:block;padding:13px 12px;border:1px solid ' + line + ';border-radius:12px;color:' + fg + ';text-decoration:none;text-align:center;font-weight:600;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:' + card + '}' +
      '.sp-card{display:block;padding:16px;border-radius:12px;border:1px solid ' + line + ';background:' + card + ';text-decoration:none;color:' + fg + '}' +
      '.sp-card-title{font-size:13px;font-weight:700;margin-bottom:4px}.sp-card-sub{font-size:11px;color:' + muted + '}' +
      '.ban{display:none}
