/* Editor of the native templates (Álbum de cumpleaños and the legacy "Lo que admiro de ti"), with the same
   panel as the Lúmina templates: live scene on the left, 380px panel with icon tabs, floating labels and a
   gold "Listo". On phones the scene sits on top and the panel is a bottom sheet. Preview descendants are
   never styled here, so the renderer keeps its own look. */
/* Same typography as Galaxia del Amor's panel: Fraunces everywhere, sentence-case subtitles in the accent color. */
@font-face { font-family: 'Lumina Fraunces'; src: url('assets/fonts/fraunces-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

#editor-view.album-editor {
  --lm-oro: #d4a94a; --lm-oro2: #f3d28b; --lm-oro-rgb: 212, 169, 74;
  --lm-crema: #f6efe3; --lm-crema-rgb: 246, 239, 227;
  --lm-panel: #0d0e14; --lm-panel2: #171922;
  --lm-ui: 'Lumina Fraunces', 'Fraunces', Georgia, 'Times New Roman', serif;
  --lm-serif: var(--lm-ui);
  position: fixed; inset: 0; z-index: 40; max-width: none; margin: 0; padding: 0; color: var(--lm-crema); font-family: var(--lm-ui);
  background: radial-gradient(90% 70% at 38% 40%, #2a1338 0%, #120a1d 55%, #07060d 100%);
}
#editor-view.album-editor[hidden] { display: none; }
body[data-route="editor"] { overflow: hidden; }
body[data-route="editor"] :is(.homepage-header, .site-footer, #whatsapp-help) { display: none !important; }

/* scene: the gift itself, as large as the space allows */
#editor-view .album-stage { position: absolute; inset: 0 380px 0 0; display: grid; place-items: center; overflow: hidden; }
#editor-view .album-stage #phone-preview { width: 100%; height: 100%; max-height: none; border-radius: 0; background: transparent; overflow: auto; }
#editor-view .album-stage #phone-preview.compact .birthday-frame { width: 100%; height: 100%; }
#editor-view .album-stage #phone-preview.compact:not(:has(.birthday-frame)) { display: grid; place-items: center; padding: 24px; }
#editor-view .album-stage #phone-preview.compact > .gift-scene { width: min(420px, 100%); border-radius: 24px; }
/* While the album loads: a calm, centered beating heart on the night sky (not the old card look) */
#editor-view .album-stage #phone-preview > .gift-scene.birthday-loading { position: absolute; inset: 0; width: auto; min-height: 0; margin: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 0; background: none; box-shadow: none; font: 500 15px/1.4 var(--lm-ui); letter-spacing: .02em; color: rgba(var(--lm-crema-rgb), .72); text-align: center; }
#editor-view .album-stage #phone-preview > .gift-scene.birthday-loading::before { content: '♡'; position: static; inset: auto; width: auto; height: auto; background: none; font-size: 44px; line-height: 1; color: var(--lm-oro2);
  text-shadow: 0 0 18px rgba(var(--lm-oro-rgb), .55); animation: album-latido 1.4s ease-in-out infinite; }
#editor-view .album-stage #phone-preview > .gift-scene.birthday-loading::after { content: none; }
#editor-view .album-stage #phone-preview > .gift-scene.birthday-loading .button { margin-top: 4px; }
@keyframes album-latido { 0%, 100% { transform: scale(1); opacity: .8; } 15% { transform: scale(1.14); opacity: 1; } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { #editor-view .album-stage #phone-preview > .gift-scene.birthday-loading::before { animation: none; } }

/* floating buttons over the scene: ← leave the editor (top left); music, Personalizar and full screen (top right) */
#editor-view .album-hud { position: absolute; inset: 14px 14px auto 14px; z-index: 2; display: flex; flex-direction: row; gap: 0; justify-content: space-between; align-items: center; margin: 0; pointer-events: none; }
#editor-view .album-hud-button { pointer-events: auto; min-width: 44px; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px;
  font: 600 15px var(--lm-ui); color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-oro-rgb), .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; text-decoration: none; }
#editor-view .album-hud-right { display: flex; align-items: center; gap: 8px; }
#editor-view :is(.album-hud-back, .album-hud-music, .album-hud-fullscreen) { width: 44px; padding: 0; }
#editor-view :is(.album-hud-music, .album-hud-fullscreen)[hidden] { display: none; }
/* Same as the Lúmina templates (Rosas Rojas): while editing nothing floats on the right; with the panel closed
   ("Ver regalo" / ✕ / Listo) the three round buttons appear: speaker, Personalizar, full screen. */
#editor-view .album-hud-right { visibility: hidden; }
#editor-view.is-panel-closed .album-hud-right { visibility: visible; }
/* speaker with waves while the song plays, with an ✕ while silent; full screen shows "exit" while active */
#editor-view .album-hud-button .album-icon-on { display: none; }
#editor-view .album-hud-button[aria-pressed="true"] .album-icon-on { display: inline; }
#editor-view .album-hud-button[aria-pressed="true"] .album-icon-off { display: none; }
#editor-view .album-hud-music[aria-pressed="false"] { opacity: .75; }
#editor-view :is(.album-hud-back, .album-hud-music, .album-hud-fullscreen) svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#editor-view .album-hud-button:hover { border-color: var(--lm-oro2); background: #1e202acc; }
#editor-view .album-toast { position: absolute; left: 50%; top: 18px; z-index: 3; max-width: calc(100% - 32px); margin: 0; padding: 12px 20px; border-radius: 999px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  font: 600 15px var(--lm-ui); color: var(--lm-crema); text-align: center; background: #0c0d13e0; border: 1px solid rgba(var(--lm-oro-rgb), .45); transition: opacity .25s ease, transform .25s ease; }
#editor-view .album-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* panel closed: the gift takes the whole screen */
#editor-view.is-panel-closed .album-stage { inset: 0; }
#editor-view.is-panel-closed .album-panel { transform: translateX(105%); visibility: hidden; }
#editor-view .album-panel { transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
#editor-view.is-panel-closed .album-panel { transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s; }

/* panel */
#editor-view .album-panel { position: absolute; top: 0; right: 0; width: 380px; height: 100%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--lm-panel2), var(--lm-panel)); border-left: 1px solid rgba(var(--lm-oro-rgb), .22); box-shadow: -20px 0 60px #00000073; }
#editor-view .album-panel-head { margin: 0; padding: 16px 18px 10px; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
#editor-view .album-panel-head h1 { margin: 0; font: 600 22px/1.2 var(--lm-ui); color: var(--lm-oro2); letter-spacing: 0; }
#editor-view .album-panel-head h1:focus { outline: none; }
#editor-view .album-panel-head p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; color: rgba(var(--lm-crema-rgb), .72); }
#editor-view #open-preview.album-pill, #editor-view #open-preview.album-pill:hover { min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 15px var(--lm-ui); color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-oro-rgb), .45); cursor: pointer; }
#editor-view .album-close { padding: 0; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-crema-rgb), .25); }
#editor-view .album-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
#editor-view :is(.album-pill, .album-close):hover { border-color: var(--lm-oro); }

/* tabs */
#editor-view .album-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 6px 12px 0; border: 0; border-bottom: 1px solid rgba(var(--lm-crema-rgb), .1); border-radius: 0; background: none; }
#editor-view .album-tabs button { flex: 1 0 auto; min-width: 0; min-height: 48px; padding: 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 400 14px var(--lm-ui); color: rgba(var(--lm-crema-rgb), .66); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; cursor: pointer; }
#editor-view .album-tabs button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#editor-view .album-tabs button[aria-current="step"] { color: var(--lm-oro2); border-bottom-color: var(--lm-oro); background: none; box-shadow: none; }
/* the old step numbers were circles drawn on the span: tabs use it as a plain label */
#editor-view .album-panel .album-tabs button span, #editor-view .album-panel .album-tabs button[aria-current] span { display: block; width: auto; height: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; line-height: 1.2; }
#editor-view .album-tabs button:hover { color: var(--lm-crema); }

/* body and sections */
#editor-view .album-panel-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; scrollbar-width: thin; }
#editor-view .album-panel .editor-panel { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#editor-view .album-panel .editor-panel[hidden] { display: none; }
#editor-view .album-panel .album-sub { margin: 6px 0 -4px; font: 600 15px/1.3 var(--lm-ui); letter-spacing: .03em; text-transform: none; color: var(--lm-oro2); }
#editor-view .album-panel .album-sub:focus { outline: none; }
#editor-view .album-panel .album-help { margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: rgba(var(--lm-crema-rgb), .62); }
#editor-view .album-panel .album-row { display: flex; gap: 10px; }
#editor-view .album-panel .album-row > .album-field { flex: 1; min-width: 0; }

/* fields: floating label and counter */
#editor-view .album-panel .album-field { position: relative; display: block; margin: 0; }
#editor-view .album-panel .album-field :is(input, textarea) { width: 100%; min-height: 58px; margin: 0; padding: 25px 56px 7px 14px; border-radius: 14px; font: 16px var(--lm-ui); color: var(--lm-crema);
  background: rgba(var(--lm-crema-rgb), .06); border: 1px solid rgba(var(--lm-crema-rgb), .16); box-shadow: none; outline: none; }
#editor-view .album-panel .album-field textarea { min-height: 150px; resize: vertical; line-height: 1.45; padding: 28px 14px 26px; }
#editor-view .album-panel .album-field :is(input, textarea):focus { border-color: var(--lm-oro); background: rgba(var(--lm-crema-rgb), .09); }
#editor-view .album-panel .album-field :is(input, textarea)[aria-invalid="true"] { border-color: #ff7a8a; }
#editor-view .album-panel .album-field label { position: absolute; left: 15px; top: 18px; margin: 0; font: 400 14px var(--lm-ui); color: rgba(var(--lm-crema-rgb), .55); pointer-events: none; transition: all .18s ease; }
#editor-view .album-panel .album-field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { top: 6px; font-size: 13px; color: var(--lm-oro2); }
#editor-view .album-panel .album-field textarea + label { top: 1px; left: 1px; right: 16px; padding: 5px 14px 4px; border-radius: 13px 13px 0 0; font-size: 13px; color: var(--lm-oro2); background: #1b1d26; }
#editor-view .album-panel .album-field [data-count] { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 12px; color: rgba(var(--lm-crema-rgb), .45); pointer-events: none; }
#editor-view .album-panel .writing-help { font-size: 14px; color: rgba(var(--lm-crema-rgb), .7); }
#editor-view .album-panel .writing-help summary { cursor: pointer; color: var(--lm-oro2); font-weight: 700; }

/* buttons, boxes and text: same values as the Lúmina panel (.lm-btn, .lm-caja, .lm-subtitulo, .lm-ayuda, .lm-estado, .lm-subir) */
#editor-view .album-panel .album-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#editor-view .album-panel .album-button { width: 100%; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px;
  font: 600 16px var(--lm-ui); letter-spacing: 0; color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-oro-rgb), .45); box-shadow: none; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
#editor-view .album-panel .album-button:hover:not(:disabled) { background: #1e202acc; }
#editor-view .album-panel .album-button:active:not(:disabled) { transform: scale(.97); }
#editor-view .album-panel .album-button:disabled { opacity: .45; cursor: not-allowed; }
#editor-view .album-panel .album-button.is-gold { color: #1a0d05; border-color: #ffecbeb3; background: linear-gradient(135deg, #f7dc9a, #d4a94a 55%, #b8862f); box-shadow: 0 8px 26px rgba(var(--lm-oro-rgb), .35), inset 0 1px 0 #ffffff80; }
#editor-view .album-panel :is(.album-box, .album-box.cloud-bar, .audio-editor) { margin: 0; align-items: stretch; text-align: left; box-shadow: none; }
#editor-view .album-panel .audio-editor { padding: 0; border: 0; background: none; }
#editor-view .album-panel .album-box.cloud-bar { flex-wrap: nowrap; }
#editor-view .album-panel .album-box.cloud-bar p { flex-basis: auto; }
#editor-view .album-panel .album-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; text-align: left; background: rgba(var(--lm-crema-rgb), .035); border: 1px solid rgba(var(--lm-crema-rgb), .1); }
#editor-view .album-panel .album-box-title { margin: 0; font: 600 15px/1.3 var(--lm-ui); letter-spacing: .03em; text-transform: none; color: var(--lm-oro2); }
#editor-view .album-panel .album-estado { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(var(--lm-crema-rgb), .65); }
#editor-view .album-panel .album-estado.is-strong { font-weight: 600; color: var(--lm-crema); }
#editor-view .album-panel #audio-status { color: var(--lm-oro2); }
#editor-view .album-panel .album-upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; font: 600 16px var(--lm-ui); cursor: pointer;
  color: var(--lm-oro2); border: 1.5px dashed rgba(var(--lm-oro-rgb), .5); background: rgba(var(--lm-oro-rgb), .05); }
#editor-view .album-panel .album-upload:hover { background: rgba(var(--lm-oro-rgb), .1); }
#editor-view .album-panel .upload-label { position: relative; overflow: hidden; }
#editor-view .album-panel .upload-label input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#editor-view .album-panel .audio-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#editor-view .album-panel .audio-controls[hidden] { display: none; }
#editor-view .album-panel .audio-controls .album-button { padding: 0 12px; }
/* Música choices: Galaxia del Amor's .lm-paleta */
#editor-view .album-panel .album-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#editor-view .album-panel .album-choice { min-height: 64px; padding: 8px 12px; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  font: 400 14px var(--lm-ui); color: var(--lm-crema); background: rgba(var(--lm-crema-rgb), .05); border: 1px solid rgba(var(--lm-crema-rgb), .14); box-shadow: none; }
#editor-view .album-panel .album-choice b { font-weight: 600; font-size: 15px; }
#editor-view .album-panel .album-choice[aria-pressed="true"] { border-color: var(--lm-oro); box-shadow: 0 0 0 1px var(--lm-oro) inset; }
#editor-view .album-panel .album-internal { display: none; }

/* photos: cards (legacy recuerdos keep their text fields; the album uses a 2x2 grid) */
#editor-view .album-photos #memory-fields { display: flex; flex-direction: column; gap: 10px; }
#editor-view .album-photos .memory-card { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; border-radius: 14px; background: rgba(var(--lm-crema-rgb), .05); border: 1px solid rgba(var(--lm-crema-rgb), .15); box-shadow: none; }
#editor-view .album-photos .memory-card-head { order: 2; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0; padding: 8px 8px 8px 10px; }
#editor-view .album-photos .memory-card-head h3 { min-width: 0; margin: 0; overflow: hidden; font: 700 12px var(--lm-ui); color: var(--lm-crema); white-space: nowrap; text-overflow: ellipsis; }
#editor-view .album-photos .memory-order { display: flex; gap: 4px; }
#editor-view .album-photos .memory-order .icon-button { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; font-size: 13px; color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-crema-rgb), .2); box-shadow: none; }
#editor-view .album-photos .memory-order .icon-button:disabled { opacity: .35; }
#editor-view .album-photos .memory-photo-editor { order: 1; position: relative; display: block; aspect-ratio: 4 / 3; margin: 0; padding: 0; background: repeating-linear-gradient(135deg, rgba(var(--lm-oro-rgb), .06) 0 10px, transparent 10px 20px); }
#editor-view .album-photos .memory-photo-editor img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; border-radius: 0; }
#editor-view .album-photos .memory-photo-editor > div { position: absolute; inset: auto 8px 8px 8px; }
#editor-view .album-photos .photo-actions { display: flex; gap: 6px; justify-content: center; margin: 0; }
#editor-view .album-photos .photo-actions :is(.upload-label, .button) { width: auto; min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font: 700 12px var(--lm-ui); color: var(--lm-crema); background: #0c0d13b8; border: 1px solid rgba(var(--lm-oro-rgb), .45); box-shadow: none; }
#editor-view .album-photos .memory-photo-editor .field-hint { margin: 6px 0 0; font-size: 11px; color: rgba(var(--lm-crema-rgb), .6); text-align: center; }
#editor-view .album-photos .photo-status { order: 3; margin: 0 10px 8px; font-size: 11px; color: rgba(var(--lm-crema-rgb), .6); }
#editor-view .album-photos .photo-status:empty { display: none; }
#editor-view .album-photos .photo-status.error { color: #ff9aa7; }
#editor-view .album-photos .memory-card > .field { order: 4; margin: 0 10px 10px; }
#editor-view .album-photos .memory-card > .field label { display: block; margin: 0 0 4px; font-size: 12px; color: var(--lm-oro2); }
#editor-view .album-photos .memory-card > .field :is(input, textarea) { width: 100%; padding: 10px 12px; border-radius: 12px; font: 14px var(--lm-ui); color: var(--lm-crema); background: rgba(var(--lm-crema-rgb), .05); border: 1px solid rgba(var(--lm-crema-rgb), .15); }
#editor-view .album-photos .memory-card > .field .field-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 11px; color: rgba(var(--lm-crema-rgb), .45); }
#editor-view .album-photos .memory-remove { order: 5; margin: 0 10px 10px; font-size: 12px; color: #ff9aa7; background: none; border: 0; }

/* legacy recuerdos: photo on top, its buttons and hints below it (never over the picture) */
#editor-view .album-panel .demo-limit { padding: 0; border: 0; background: none; box-shadow: none; }
#editor-view:not(.is-birthday) .album-photos .memory-photo-editor { aspect-ratio: auto; }
#editor-view:not(.is-birthday) .album-photos .memory-photo-editor img { position: static; display: block; height: 170px; }
#editor-view:not(.is-birthday) .album-photos .memory-photo-editor img[hidden] { display: none; }
#editor-view:not(.is-birthday) .album-photos .memory-photo-editor > div { position: static; padding: 10px 10px 0; }

/* album: compact 2x2 grid (editor/album-photo-grid.js). The whole photo box is the file picker: an
   invisible file input covers it, so one tap anywhere opens the chooser. ✕ sits above it, outside. */
#editor-view.is-birthday .album-photos #memory-fields { display: grid; grid-template-columns: 1fr 1fr; }
#editor-view.is-birthday .album-photos .photo-status:not(.error) { display: none; }
#editor-view.is-birthday .album-photos .album-photo-card { position: relative; }
#editor-view.is-birthday .album-photos .memory-photo-editor { cursor: pointer; transition: background-color .2s ease; }
#editor-view.is-birthday .album-photos .memory-photo-editor input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#editor-view.is-birthday .album-photos .memory-photo-editor:hover { background-color: rgba(var(--lm-oro-rgb), .1); }
#editor-view.is-birthday .album-photos .memory-photo-editor:focus-within { outline: 2px solid var(--lm-oro); outline-offset: -2px; }
#editor-view.is-birthday .album-photos .photo-pick { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; white-space: nowrap; pointer-events: none;
  border-radius: 999px; font: 700 12px var(--lm-ui); color: var(--lm-crema); background: #0c0d13b8; border: 1px solid rgba(var(--lm-oro-rgb), .45); }
#editor-view.is-birthday .album-photos .photo-pick-icon { font-size: 15px; line-height: 1; color: var(--lm-oro2); }
#editor-view.is-birthday .album-photos .has-photo .photo-pick-icon { display: none; }
/* empty slot: the invitation sits in the middle of the box */
#editor-view.is-birthday .album-photos .album-photo-card:not(.has-photo) .photo-pick { bottom: 50%; transform: translate(-50%, 50%); }
#editor-view.is-birthday .album-photos .photo-remove { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  font: 700 13px var(--lm-ui); color: var(--lm-crema); background: #0c0d13cc; border: 1px solid rgba(var(--lm-crema-rgb), .3); cursor: pointer; }
#editor-view.is-birthday .album-photos .photo-remove[hidden] { display: none; }
#editor-view.is-birthday .album-photos .demo-limit { display: none; }

/* status, draft info and footer */
#editor-view .album-panel .album-editor-status { margin: 0; padding: 0 16px; font-size: 12px; color: #ff9aa7; }
#editor-view .album-panel .album-editor-status:not(:empty) { padding: 8px 16px; }
#editor-view .album-panel-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(var(--lm-crema-rgb), .1); background: var(--lm-panel); }
#editor-view .album-panel-foot button { min-height: 48px; border-radius: 999px; font: 600 16px var(--lm-ui); cursor: pointer; }
#editor-view .album-reset { color: var(--lm-crema); background: #0c0d139e; border: 1px solid rgba(var(--lm-oro-rgb), .45); }
#editor-view .album-done { color: #1a0d05; border: 1px solid #ffecbeb3; background: linear-gradient(135deg, #f7dc9a, #d4a94a 55%, #b8862f); box-shadow: 0 8px 26px rgba(var(--lm-oro-rgb), .35), inset 0 1px 0 #ffffff80; }
#editor-view :is(.album-reset, .album-done, .album-pill, .album-button, .album-tabs button):focus-visible { outline: 2px solid var(--lm-oro2); outline-offset: 2px; }

/* phones: scene on top, panel as a 60% bottom sheet */
@media (max-width: 760px) {
  #editor-view .album-stage { inset: 0 0 60% 0; }
  #editor-view .album-panel { top: auto; bottom: 0; width: 100%; height: 60%; border-left: 0; border-top: 1px solid rgba(var(--lm-oro-rgb), .28); border-radius: 22px 22px 0 0; }
  #editor-view.is-panel-closed .album-panel { transform: translateY(105%); }
  #editor-view .album-hud { inset: 10px 10px auto 10px; }
  #editor-view .album-panel-head h1 { font-size: 19px; }
  #editor-view .album-stage #phone-preview.compact:not(:has(.birthday-frame)) { padding: 12px; place-items: start center; }
}
