  /* ---------- Theme colour picker ---------- */
  .theme-dropdown-wrap { position: relative; }
  .theme-dropdown-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; background: var(--paper); border-radius: 14px; padding: 10px; width: 210px;
    box-shadow: 8px 8px 18px rgba(var(--shadow-d-rgb),0.32), -6px -6px 14px rgba(var(--shadow-l-rgb),0.6); }
  .theme-panel-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; padding: 0 2px; }
  .theme-swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .theme-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; padding: 0; position: relative; flex-shrink: 0; }
  .theme-swatch.active { border-color: var(--ink); }
  .theme-swatch.active::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); }

  .media-section { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
  .media-thumb-wrap { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
    box-shadow: 3px 3px 7px rgba(var(--shadow-d-rgb),0.24), -3px -3px 7px rgba(var(--shadow-l-rgb),0.7); }
  .media-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
  .media-video-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--panel); color: var(--muted); }
  .media-remove-btn { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .media-add-btn { width: 64px; height: 64px; border-radius: 10px; background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 3px 3px 7px rgba(var(--shadow-d-rgb),0.22), -3px -3px 7px rgba(var(--shadow-l-rgb),0.7); }

  .empty-state { text-align: center; padding: 30px 12px; }
  .empty-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
  .empty-sub { font-size: 13px; color: var(--muted); }

  .modal-overlay { position: fixed; inset: 0; background: rgba(40,34,24,0.4); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
  .modal { background: var(--paper); border-radius: 14px; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; padding: 20px;
    box-shadow: 8px 8px 20px rgba(var(--shadow-d-rgb),0.3), -6px -6px 16px rgba(var(--shadow-l-rgb),0.5); }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .modal-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; }
  .close-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
  .error-banner { background: #F3D8D2; color: #8A3F32; font-size: 12.5px; padding: 9px 11px; border-radius: 8px; margin-bottom: 12px; }
  .modal-actions { display: flex; gap: 8px; margin-top: 16px; position: sticky; bottom: -20px; background: var(--paper); padding: 10px 0 20px; margin-bottom: -20px; }
  .btn-cancel { flex: 1; background: transparent; border: 1px solid var(--border); border-radius: 9px; padding: 11px 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .btn-danger { background: var(--spend); color: #fff; }

  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .spin { animation: spin 1s linear infinite; }
