/* =====================
   ROOT & RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFEF7;
  --panel: #FFFFFF;
  --border: #E8E3D8;
  --border2: #F0EBE0;
  --text: #1A1A1A;
  --text-muted: #7A7A7A;
  --text-light: #ADADAD;
  --gold: #8F0000;
  --gold-hover: #6A0000;
  --dark: #0A0A0A;
  --preview-bg: #0F0F0D;
  --accent: #8F0000;

  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  --font-serif-en: 'Cormorant Garamond', serif;
  --font-serif-kr: 'Noto Serif KR', serif;

  --header-h: 52px;
  --editor-w: 360px;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }
a { text-decoration: none; color: inherit; }

/* =====================
   HEADER
   ===================== */
.bld-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 200;
}
.bld-logo {
  font-family: var(--font-serif-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--dark);
  flex-shrink: 0;
  text-transform: lowercase;
}
.bld-steps-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}
.bsn-item {
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.bsn-item:hover { color: var(--text); background: var(--bg); }
.bsn-item.active { color: var(--dark); font-weight: 500; }
.bsn-sep { color: var(--border); font-size: 10px; }
.bld-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-mobile-preview {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: none;
  padding: 7px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-mobile-preview:hover { border-color: var(--text-muted); color: var(--text); }
.btn-share {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--dark);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.btn-share:hover { background: var(--gold-hover); transform: translateY(-1px); }

/* =====================
   LAYOUT
   ===================== */
.bld-layout {
  display: flex;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
}

/* =====================
   EDITOR PANEL
   ===================== */
.bld-editor {
  width: var(--editor-w);
  min-width: var(--editor-w);
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.bld-editor::-webkit-scrollbar { width: 4px; }
.bld-editor::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Steps */
.bld-step {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.step-hd {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  transition: background 0.15s;
}
.step-hd:hover { background: var(--bg); }
.step-hd-left { display: flex; align-items: center; gap: 12px; }
.step-num {
  font-family: var(--font-serif-en);
  font-size: 13px;
  font-weight: 300;
  color: var(--gold);
  width: 20px;
}
.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.3px;
}
.step-chevron {
  font-size: 12px;
  color: var(--text-light);
  transition: transform 0.2s;
}
.step-body { padding: 4px 20px 20px; }
.step-body.hidden { display: none; }

/* =====================
   FIELDS
   ===================== */
.field-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}
.field-divider {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-light);
  text-transform: uppercase;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border2);
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.field-row .field-group { margin-bottom: 0; }
.field-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-count { font-size: 11px; color: var(--text-light); }
.field-input, .field-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  background: #FAFAF8;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.field-input:focus, .field-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(143,0,0,0.08);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--text-light); }
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ADADAD' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
}
.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* =====================
   THEME CARDS
   ===================== */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.theme-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0;
  background: none;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  text-align: left;
}
.theme-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.theme-card.active { border-color: var(--gold); }
.tc-thumb {
  width: 100%;
  height: 80px;
}
.cinematic-thumb { background: linear-gradient(135deg, #0A0A0A 0%, #1A1205 100%); }
.classic-thumb { background: linear-gradient(135deg, #F5EDE0 0%, #DDD0C0 100%); }
.nature-thumb { background: linear-gradient(135deg, #E8F0E4 0%, #C8DCC0 100%); }
.modern-thumb { background: linear-gradient(135deg, #F0F0F0 0%, #E0E0E0 100%); }
.tc-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 10px;
}
.tc-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
}
.theme-card.active .tc-check { display: flex; }

/* =====================
   PRESET MESSAGES
   ===================== */
.preset-messages { margin-top: 12px; }
.preset-label { font-size: 11px; color: var(--text-light); margin-bottom: 8px; letter-spacing: 0.5px; }
.preset-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  transition: all 0.15s;
}
.preset-btn:hover { border-color: var(--gold); color: var(--text); background: rgba(143,0,0,0.05); }

/* =====================
   PHOTO UPLOAD
   ===================== */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 14px;
}
.photo-upload-area:hover, .photo-upload-area.drag-over {
  border-color: var(--gold);
  background: rgba(143,0,0,0.04);
}
.pua-icon { font-size: 28px; color: var(--text-light); margin-bottom: 8px; }
.pua-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.pua-btn {
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}
.pua-btn:hover { background: var(--gold); }
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-thumb:hover .photo-remove { opacity: 1; }

/* =====================
   MUSIC LIST
   ===================== */
.music-list { display: flex; flex-direction: column; gap: 6px; }
.music-item {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.music-item input[type=radio] { display: none; }
.music-item:hover { border-color: var(--gold); }
.music-item:has(input:checked) { border-color: var(--gold); background: rgba(143,0,0,0.05); }
.mi-content { display: flex; align-items: center; gap: 10px; flex: 1; }
.mi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
.mi-icon.off { color: var(--text-light); }
.mi-name { font-size: 13px; font-weight: 500; color: var(--text); }
.mi-artist { font-size: 11px; color: var(--text-light); margin-top: 1px; }
.mi-check {
  font-size: 12px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}
.music-item:has(input:checked) .mi-check { opacity: 1; }

/* =====================
   PREVIEW PANEL
   ===================== */
.bld-preview {
  flex: 1;
  background: var(--preview-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 20px 16px;
  overflow: hidden;
  position: relative;
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.ph-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.2); }
.ph-fullscreen {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}
.ph-fullscreen:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }
.preview-phone-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.preview-hint {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.1);
  margin-top: 12px;
  flex-shrink: 0;
}

/* Phone Mockup */
.bld-phone {
  width: 280px;
  height: 560px;
  background: #0A0A0A;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.02),
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.bld-phone.small {
  width: 240px;
  height: 480px;
  border-radius: 36px;
}
.bld-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0A0A0A;
  border-radius: 10px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.04);
}
.bld-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bld-screen::-webkit-scrollbar { display: none; }

/* =====================
   MOBILE PREVIEW OVERLAY
   ===================== */
.mobile-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
}
.mobile-preview-overlay.open { display: flex; }
.mpo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.mpo-header button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
}
.mpo-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================
   SHARE MODAL
   ===================== */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-modal.hidden { display: none; }
.sm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}
.sm-box {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.sm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
}
.sm-title {
  font-family: var(--font-serif-en);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.sm-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.sm-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.sm-link {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-copy-btn {
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sm-copy-btn:hover { background: var(--gold); }
.sm-note {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.sm-open-btn {
  display: block;
  text-align: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}
.sm-open-btn:hover { border-color: var(--dark); }

/* =====================
   AUTOSAVE TOAST
   ===================== */
.autosave-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10,10,10,0.9);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 400;
}
.autosave-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================
   LIVE PREVIEW STYLES
   These render inside .bld-screen
   ===================== */
.lp-wrap {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-serif-kr);
}

/* --- CINEMATIC THEME --- */
.lp-wrap.theme-cinematic {
  background: #0A0A0A;
  color: #FAFAF8;
}
.theme-cinematic .lp-cover {
  height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #0D0B06 0%, #1A1208 50%, #0A0A0A 100%);
  text-align: center;
  padding: 60px 28px 40px;
}
.theme-cinematic .lp-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(143,0,0,0.08) 0%, transparent 60%);
}
.theme-cinematic .lp-cover-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
  position: relative;
}
.theme-cinematic .lp-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  margin-bottom: 24px;
}
.theme-cinematic .lp-name {
  font-size: 36px;
  font-weight: 200;
  color: #FAFAF8;
  letter-spacing: -1px;
  line-height: 1;
}
.theme-cinematic .lp-and {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #8F0000;
  margin: 2px 0;
}
.theme-cinematic .lp-sub {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 5px;
  position: relative;
}
.theme-cinematic .lp-corner {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.1);
}
.theme-cinematic .lp-corner.tl { top: 18px; left: 18px; }
.theme-cinematic .lp-corner.tr { top: 18px; right: 18px; }
.theme-cinematic .lp-msg-section {
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.theme-cinematic .lp-section-deco {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: #8F0000;
  opacity: 0.6;
  margin-bottom: 20px;
}
.theme-cinematic .lp-msg {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 2;
  white-space: pre-line;
  word-break: keep-all;
}
.theme-cinematic .lp-venue-section {
  padding: 40px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.theme-cinematic .lp-venue-name {
  font-size: 18px;
  font-weight: 300;
  color: #FAFAF8;
  line-height: 1.4;
  margin-bottom: 6px;
}
.theme-cinematic .lp-venue-detail {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.theme-cinematic .lp-date-badge {
  display: inline-block;
  margin-bottom: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: #8F0000;
  border: 1px solid rgba(143,0,0,0.3);
  padding: 6px 16px;
  border-radius: 100px;
}
.theme-cinematic .lp-gallery-section {
  padding: 40px 0 40px;
}
.theme-cinematic .lp-gallery-title {
  text-align: center;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 16px;
}
.theme-cinematic .lp-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 0;
}
.theme-cinematic .lp-photo {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: rgba(255,255,255,0.04);
}
.lp-placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.05);
}

/* --- CLASSIC THEME --- */
.lp-wrap.theme-classic {
  background: #F5EDDF;
  color: #2A1F14;
}
.theme-classic .lp-cover {
  height: 560px;
  background: linear-gradient(160deg, #F8F2E8 0%, #EDE0CC 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 28px 40px;
  position: relative;
}
.theme-classic .lp-cover-deco {
  color: #6A0000;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  margin-bottom: 16px;
}
.theme-classic .lp-cover-title {
  font-size: 18px;
  font-weight: 400;
  color: #3A2A1A;
  letter-spacing: 4px;
  margin-bottom: 28px;
}
.theme-classic .lp-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}
.theme-classic .lp-name { font-size: 34px; font-weight: 300; color: #2A1F14; letter-spacing: -0.5px; line-height: 1; }
.theme-classic .lp-and { color: #6A0000; font-size: 16px; margin: 4px 0; }
.theme-classic .lp-cover-date { font-size: 12px; color: #8A7060; letter-spacing: 2px; }
.theme-classic .lp-msg-section {
  padding: 40px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.theme-classic .lp-section-deco { color: #6A0000; margin-bottom: 16px; font-family: 'Cormorant Garamond', serif; font-size: 14px; }
.theme-classic .lp-msg { font-size: 12px; color: #5A4A3A; line-height: 2; white-space: pre-line; word-break: keep-all; }
.theme-classic .lp-venue-section {
  padding: 36px 28px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.4);
}
.theme-classic .lp-venue-name { font-size: 18px; color: #2A1F14; margin-bottom: 6px; }
.theme-classic .lp-venue-detail { font-size: 11px; color: #8A7060; margin-bottom: 4px; }
.theme-classic .lp-date-badge { display: inline-block; font-size: 13px; color: #6A0000; margin-bottom: 20px; letter-spacing: 2px; }
.theme-classic .lp-gallery-section { padding: 36px 0 36px; }
.theme-classic .lp-gallery-title { text-align: center; font-size: 10px; letter-spacing: 3px; color: #6A0000; margin-bottom: 14px; }
.theme-classic .lp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.theme-classic .lp-photo { aspect-ratio: 1; background-size: cover; background-position: center; background-color: rgba(0,0,0,0.06); }
.theme-classic .lp-placeholder-photo { font-size: 18px; color: rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; }

/* --- NATURE THEME --- */
.lp-wrap.theme-nature {
  background: #EFF4EA;
  color: #2A3A28;
}
.theme-nature .lp-cover {
  height: 560px;
  background: linear-gradient(160deg, #ECF3E6 0%, #D8ECCE 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 28px 40px;
  position: relative;
}
.theme-nature .lp-cover-leaf { font-size: 32px; margin-bottom: 16px; }
.theme-nature .lp-cover-en { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 4px; color: #5A7A58; margin-bottom: 24px; }
.theme-nature .lp-names { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 16px; }
.theme-nature .lp-name { font-size: 34px; font-weight: 300; color: #2A3A28; letter-spacing: -0.5px; line-height: 1; }
.theme-nature .lp-and { color: #5A7A58; font-size: 14px; margin: 4px 0; }
.theme-nature .lp-cover-date { font-family: 'Cormorant Garamond', serif; font-size: 12px; color: #6A8A68; letter-spacing: 3px; }
.theme-nature .lp-msg-section { padding: 40px 28px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); }
.theme-nature .lp-section-deco { color: #5A7A58; margin-bottom: 14px; font-size: 14px; }
.theme-nature .lp-msg { font-size: 12px; color: #4A5A48; line-height: 2; white-space: pre-line; word-break: keep-all; }
.theme-nature .lp-venue-section { padding: 36px 28px; text-align: center; background: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(0,0,0,0.05); }
.theme-nature .lp-venue-name { font-size: 18px; color: #2A3A28; margin-bottom: 6px; }
.theme-nature .lp-venue-detail { font-size: 11px; color: #6A8A68; margin-bottom: 4px; }
.theme-nature .lp-date-badge { font-family: 'Cormorant Garamond', serif; display: inline-block; font-size: 13px; color: #5A7A58; letter-spacing: 2px; margin-bottom: 20px; }
.theme-nature .lp-gallery-section { padding: 36px 0 36px; }
.theme-nature .lp-gallery-title { text-align: center; font-size: 10px; letter-spacing: 3px; color: #5A7A58; margin-bottom: 14px; }
.theme-nature .lp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.theme-nature .lp-photo { aspect-ratio: 1; background-size: cover; background-position: center; background-color: rgba(0,0,0,0.04); }

/* --- MODERN THEME --- */
.lp-wrap.theme-modern {
  background: #F5F5F5;
  color: #0A0A0A;
}
.theme-modern .lp-cover {
  height: 560px;
  background: #F0F0F0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 28px;
  position: relative;
}
.theme-modern .lp-cover-line { width: 32px; height: 2px; background: #0A0A0A; margin-bottom: 16px; }
.theme-modern .lp-cover-num { font-family: 'Cormorant Garamond', serif; font-size: 10px; letter-spacing: 4px; color: #999; margin-bottom: 8px; }
.theme-modern .lp-cover-en { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1.3; color: #0A0A0A; margin-bottom: 20px; }
.theme-modern .lp-names { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.theme-modern .lp-name { font-size: 13px; font-weight: 700; letter-spacing: 4px; color: #0A0A0A; font-family: 'Pretendard Variable', sans-serif; }
.theme-modern .lp-and { color: #999; font-size: 10px; letter-spacing: 2px; }
.theme-modern .lp-cover-date { font-family: 'Cormorant Garamond', serif; font-size: 11px; color: #888; letter-spacing: 3px; }
.theme-modern .lp-msg-section { padding: 40px 28px; border-bottom: 1px solid #E8E8E8; }
.theme-modern .lp-section-deco { font-size: 9px; letter-spacing: 4px; color: #CCC; margin-bottom: 14px; }
.theme-modern .lp-msg { font-size: 12px; color: #555; line-height: 1.9; white-space: pre-line; word-break: keep-all; font-family: 'Pretendard Variable', sans-serif; font-weight: 300; }
.theme-modern .lp-venue-section { padding: 36px 28px; border-bottom: 1px solid #E8E8E8; }
.theme-modern .lp-venue-name { font-size: 18px; font-weight: 500; color: #0A0A0A; margin-bottom: 6px; font-family: 'Pretendard Variable', sans-serif; }
.theme-modern .lp-venue-detail { font-size: 11px; color: #888; margin-bottom: 4px; }
.theme-modern .lp-date-badge { font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: 3px; color: #888; margin-bottom: 16px; display: block; }
.theme-modern .lp-gallery-section { padding: 36px 0; }
.theme-modern .lp-gallery-title { font-size: 9px; letter-spacing: 3px; color: #CCC; margin-bottom: 14px; text-align: center; }
.theme-modern .lp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.theme-modern .lp-photo { aspect-ratio: 1; background-size: cover; background-position: center; background-color: #E0E0E0; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  :root { --editor-w: 300px; }
  .bld-steps-nav { display: none; }
  .btn-mobile-preview { display: block; }
}
@media (max-width: 640px) {
  .bld-layout { flex-direction: column; }
  .bld-editor {
    width: 100%;
    min-width: 100%;
    height: 100%;
    border-right: none;
  }
  .bld-preview { display: none; }
  .btn-mobile-preview { display: block; }
  .bld-steps-nav { display: none; }
  .bld-header { padding: 0 16px; }
}
