@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@200;300;400;500;600&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --builder-bar-height: 52px;
  --cream:        #faf6f1;
  --white:        #ffffff;
  --ink:          #1c1118;
  --plum:         #3d1f35;
  --terra:        #c4622d;
  --terra-light:  #e8845a;
  --blush:        #f0cfc0;
  --sage:         #7a8c6e;
  --muted:        #8a7d85;
  --border:       #e8ddd6;
}

html { scroll-behavior: smooth; }

body {
  background: #f2f0ed;
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.serif { font-family: 'Libre Baskerville', Georgia, serif; }

/* ── Builder bar ── */
.builder-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--builder-bar-height);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.builder-back {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.builder-back:hover { color: rgba(255,255,255,0.85); }

.builder-bar-title {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.builder-action {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  background: none;
}
.builder-action:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.builder-action-disabled {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: not-allowed;
  font-family: 'Outfit', sans-serif;
}

/* ── Flash ── */
.builder-flash {
  position: fixed;
  top: var(--builder-bar-height);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
}

.builder-flash--notice { background: #edf3ed; color: #4a6b42; border: 1px solid #c4d4b8; border-top: none; }
.builder-flash--alert  { background: #fdf0ed; color: var(--terra); border: 1px solid var(--blush); border-top: none; }

/* ── Builder content ── */
.builder-page {
  padding-top: calc(var(--builder-bar-height) + 32px);
  padding-bottom: 80px;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Sidebar (settings) ── */
.builder-sidebar { position: sticky; top: calc(var(--builder-bar-height) + 32px); }

.builder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.builder-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.builder-card-body { padding: 20px; }

/* Settings form */
.settings-field { margin-bottom: 16px; }
.settings-field:last-of-type { margin-bottom: 0; }

.settings-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.settings-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #f2f0ed;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.settings-input:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(61,31,53,0.07);
  background: var(--white);
}
.settings-input::placeholder { color: var(--muted); opacity: 0.5; }
.settings-input--textarea { resize: vertical; min-height: 72px; line-height: 1.6; }

.settings-email-group {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.settings-email-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.settings-save {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-save:hover { background: var(--terra); }

.settings-save--saved { background: var(--sage) !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.template-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.template-swatch-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.template-swatch--active .template-swatch-preview {
  border-color: var(--terra);
  box-shadow: 0 0 0 2px var(--blush);
}

.template-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.template-swatch-name {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.template-swatch--active .template-swatch-name {
  color: var(--terra);
  font-weight: 500;
}

/* ── Main (sections) ── */
.sections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* Empty state — hidden once any section card exists */
.sections-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}
.sections-list:has(.section-card) .sections-empty { display: none; }

.sections-empty-icon {
  font-size: 20px;
  margin-bottom: 12px;
  opacity: 0.35;
}

.sections-empty-heading {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
  font-style: italic;
}

.sections-empty-sub {
  font-size: 13px;
  line-height: 1.6;
}

/* Section card */
.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.section-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: default;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

/* Saved flash overlay */
.section-saved {
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #3a7230;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

@keyframes savedFlash {
  0%   { opacity: 0; background: transparent; }
  12%  { opacity: 1; background: rgba(122, 140, 110, 0.1); }
  65%  { opacity: 1; background: rgba(122, 140, 110, 0.1); }
  100% { opacity: 0; background: transparent; }
}

.section-saved--flash { animation: savedFlash 2s ease forwards; }

.section-card:has(.section-body:not([hidden])) .section-header {
  border-bottom-color: var(--border);
}

.section-drag {
  color: #bbb;
  font-size: 16px;
  cursor: grab;
  line-height: 1;
  flex-shrink: 0;
  padding: 0 4px;
  transition: color 0.15s;
}
.section-drag:hover  { color: #888; }
.section-drag:active { cursor: grabbing; color: #555; }
.section-drag--hidden { opacity: 0; pointer-events: none; cursor: default; }

.section-card--ghost { opacity: 0.35; }

.section-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.section-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.section-pin-icon {
  display: flex;
  align-items: center;
  color: #bbb;
  flex-shrink: 0;
  padding: 0 4px;
  cursor: default;
  line-height: 1;
}

.section-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Kind accents — inset shadow preserves border-radius */
.section-card--letter   { box-shadow: inset 3px 0 0 var(--plum); }
.section-card--reveal   { box-shadow: inset 3px 0 0 var(--terra); }
.section-card--gallery  { box-shadow: inset 3px 0 0 var(--sage); }
.section-card--music    { box-shadow: inset 3px 0 0 #b8a9c9; }
.section-card--timeline { box-shadow: inset 3px 0 0 #a8c5a0; }
.section-card--video    { box-shadow: inset 3px 0 0 #c4a882; }
.section-card--quiz     { box-shadow: inset 3px 0 0 var(--terra-light); }

.section-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}
.section-toggle:hover { background: #f2f0ed; color: var(--ink); }

.section-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--border);
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.2s;
  flex-shrink: 0;
}
.section-delete:hover { background: #fdf0ed; color: var(--terra); }

/* Section body (edit form) */
.section-body { padding: 20px; }

.section-field { margin-bottom: 16px; }
.section-field:last-of-type { margin-bottom: 0; }

.section-field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-input,
.section-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #f2f0ed;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.section-input:focus,
.section-textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(61,31,53,0.07);
  background: var(--white);
}
.section-input::placeholder,
.section-textarea::placeholder { color: var(--muted); opacity: 0.5; }
.section-input--error { border-color: #c0392b; }
.section-input--error:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }

.section-textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.7;
}

.section-save {
  margin-top: 16px;
  padding: 9px 24px;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.section-save:hover { background: var(--terra); }

/* ── Shared form helpers ── */
.section-field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: -2px 0 8px;
}

/* ── Track picker ── */
.track-mood-group { margin-bottom: 20px; }
.track-mood-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.track-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.track-card:hover { border-color: #b8a9c9; background: #faf9fb; }
.track-card--selected {
  border-color: #b8a9c9;
  background: #f5f0fb;
}
.track-card-info { flex: 1; min-width: 0; }
.track-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-card-artist {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.track-card-play {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.track-card-play:hover { border-color: #b8a9c9; background: #f5f0fb; }
.track-card--playing .track-card-play { background: #b8a9c9; border-color: #b8a9c9; color: #fff; }
.track-card-stop-icon { display: none; }
.track-card--playing .track-card-play-icon { display: none; }
.track-card--playing .track-card-stop-icon { display: inline; }

/* ── Timeline editor ── */
.timeline-editor { padding: 20px; }

.timeline-events-list {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-events-list > turbo-frame { display: block; }

.timeline-events-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
}
.timeline-events-list:has(.timeline-event) .timeline-events-empty { display: none; }

/* Vertical line running through dots */
.timeline-events-list:has(.timeline-event)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-event {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.timeline-event-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #a8c5a0;
  flex-shrink: 0;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.timeline-event-card {
  flex: 1;
  min-width: 0;
  min-height: 62px;
  background: #f8f6f3;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.timeline-event-meta { flex: 1; min-width: 0; }

.timeline-event-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}

.timeline-event-date {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.timeline-event-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.timeline-event-btn {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}
.timeline-event-btn:hover { color: var(--plum); background: rgba(61,31,53,0.06); }

.timeline-event-dot--editing { border-color: var(--plum); background: rgba(61,31,53,0.06); }

.timeline-edit-form .section-textarea { min-height: unset; resize: none; }

.timeline-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.timeline-cancel-btn {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.timeline-cancel-btn:hover { color: var(--ink); }

.timeline-event-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--border);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}
.timeline-event-delete:hover { color: var(--terra); background: #fdf0ed; }

.timeline-event-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* Add form */
.timeline-add-form { border-top: 1px solid var(--border); padding-top: 16px; }

.timeline-add-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 8px;
  margin-bottom: 10px;
}

.timeline-date-input { font-size: 13px; }

.timeline-add-form .section-textarea { min-height: unset; resize: none; }

/* Stub (coming soon) */
.section-stub {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section-stub-icon { font-size: 28px; margin-bottom: 10px; opacity: 0.5; }

/* ── Add section picker ── */
.add-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-section-toggle {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.add-section-toggle:hover {
  border-color: var(--plum);
  color: var(--plum);
  background: rgba(61,31,53,0.02);
}

.add-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.add-section-grid form { display: flex; }

.section-type-btn {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Outfit', sans-serif;
  text-align: left;
}

.section-type-btn--letter:hover   { border-color: var(--plum);        box-shadow: 0 2px 12px rgba(61,31,53,0.10); }
.section-type-btn--reveal:hover   { border-color: var(--terra);       box-shadow: 0 2px 12px rgba(196,98,45,0.10); }
.section-type-btn--gallery:hover  { border-color: var(--sage);        box-shadow: 0 2px 12px rgba(122,140,110,0.12); }
.section-type-btn--music:hover    { border-color: #b8a9c9;            box-shadow: 0 2px 12px rgba(184,169,201,0.18); }
.section-type-btn--timeline:hover { border-color: #a8c5a0;            box-shadow: 0 2px 12px rgba(168,197,160,0.18); }
.section-type-btn--video:hover    { border-color: #c4a882;            box-shadow: 0 2px 12px rgba(196,168,130,0.18); }
.section-type-btn--quiz:hover     { border-color: var(--terra-light); box-shadow: 0 2px 12px rgba(232,132,90,0.12); }

.section-type-btn-icon {
  font-size: 26px;
  line-height: 1;
  height: 32px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.section-type-btn-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 3px;
}

.section-type-btn-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.section-type-btn--unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}
.section-type-btn--unavailable:hover {
  border-color: var(--border);
  box-shadow: none;
}

/* ── Gallery section ── */
.gallery-editor { display: flex; flex-direction: column; gap: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.gallery-photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--parchment);
}
.gallery-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.gallery-photo-card:hover .gallery-photo-delete { opacity: 1; }
.gallery-photo-card { cursor: grab; }
.gallery-photo-card--ghost { opacity: 0.4; }

.gallery-upload-area {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.gallery-upload-area:hover {
  border-color: var(--sage);
  background: rgba(122,140,110,0.04);
}
.gallery-upload-icon { font-size: 18px; }
.gallery-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── Video section ── */
.video-editor { display: flex; flex-direction: column; gap: 14px; }

.section-video {
  width: 100%;
  border-radius: 10px;
  display: block;
  max-height: 360px;
  background: #000;
}

.video-remove-btn {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: 'Outfit', sans-serif;
}
.video-remove-btn:hover { color: #c0392b; }

.video-upload-area {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.video-upload-area:hover {
  border-color: #b8a9c9;
  background: rgba(184,169,201,0.04);
}
.video-upload-icon { font-size: 18px; }
.video-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── Send panel ── */
.send-status-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.send-badge {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
}
.send-badge--draft    { background: var(--border); color: var(--muted); }
.send-badge--sent     { background: #f5e9d6; color: #c9a066; }
.send-badge--viewed   { background: #dfe8d8; color: #7d8c72; }
.send-badge--accepted { background: #dfe8d8; color: #5a7a50; }
.send-badge--declined { background: #f5ddd6; color: #c4786a; }
.send-meta { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.send-link-row { margin-bottom: 14px; }
.send-link-input { cursor: pointer; font-size: 11px !important; color: var(--muted) !important; margin-bottom: 2px; }
.send-link-hint { font-size: 10px; color: var(--muted); opacity: 0.6; letter-spacing: 0.04em; }
.send-btn { margin-top: 4px; }
.send-no-email { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; }
.send-error {
  font-size: 12px; color: #c4786a; background: #f5ddd6;
  padding: 8px 12px; border-radius: 6px; margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .builder-page { grid-template-columns: 1fr; }
  .builder-sidebar { position: static; }
  .add-section-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .add-section-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .builder-bar { padding: 0 16px; }
  .builder-page { padding-left: 16px; padding-right: 16px; }
}
