.song-dialog[hidden], .empty-state[hidden] { display: none !important; }
.guest-extras { background: #fffaf6; text-align: center; padding-top: 48px; padding-bottom: 60px; }
.guest-extras .section-inner { max-width: 760px; }
.extras-eyebrow { font: 600 11px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--salmon-deep); }
.extras-intro { color: var(--text-soft); margin: 0 auto 28px; max-width: 580px; }
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; margin-top: 24px; }
.extras-card { display: block; position: relative; padding: 24px; min-height: 220px; text-decoration: none; color: var(--text); background: rgba(255,255,255,.84); border: 1px solid #ead8ce; border-radius: 14px; box-shadow: 0 8px 24px rgba(117,77,59,.05); transition: transform .25s ease, box-shadow .25s ease; }
.extras-card:hover, .extras-card:focus-visible { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(117,77,59,.14); }
.extras-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #9f6757; background: #f8ebe4; font: 24px var(--serif); margin-bottom: 14px; }
.extras-card h3 { font: 500 24px var(--display); margin-bottom: 8px; }
.extras-card p { color: var(--text-soft); line-height: 1.65; }
.extras-action { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 12px; letter-spacing: .06em; color: #b17464; }
.search-label, .category-label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.search-label input, .category-label select { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #ddc9bf; border-radius: 9px; color: var(--text); background: #fff; font: 14px var(--sans); }

.extras-page { background: #fbf7f2; }
.extras-header { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 5vw, 70px); background: rgba(255,255,255,.86); border-bottom: 1px solid #f0e2da; }
.back-link { color: #a16b5d; font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.extras-monogram { font: 500 25px var(--serif); color: #a06958; }
.extras-monogram span, .extras-footer span { color: var(--gold); font-style: italic; }
.extras-hero { text-align: center; padding: 80px 20px 70px; background: radial-gradient(circle at 50% 0%, #fff 0%, #f8eae2 64%, #f4e1d7 100%); }
.extras-hero h1 { font: 500 clamp(43px, 7vw, 78px) / 1.08 var(--serif); color: #76564c; margin: 18px 0; }
.extras-hero > p:last-child { max-width: 660px; margin: auto; color: #816d64; }
.extras-panel { width: min(1080px, calc(100% - 36px)); margin: -22px auto 72px; padding: clamp(22px, 4vw, 50px); position: relative; background: #fff; border: 1px solid #efdfd5; border-radius: 20px; box-shadow: 0 16px 45px rgba(120,73,51,.09); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.panel-heading h2 { font: 500 clamp(30px, 4vw, 45px) var(--serif); color: #76564c; margin-top: 5px; }
.result-count, .private-badge { white-space: nowrap; font-size: 12px; font-weight: 600; color: #9a6c5f; background: #f9eee9; border-radius: 100px; padding: 9px 14px; }
.song-tools { display: grid; gap: 18px; margin-bottom: 27px; }
.search-label input { max-width: 420px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 9px 15px; border: 1px solid #dfcac0; border-radius: 100px; color: #80655b; background: #fff; font: 600 12px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover, .chip[aria-pressed="true"] { border-color: #b98070; background: #b98070; color: #fff; }
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.song-card { min-height: 235px; padding: 25px; display: flex; flex-direction: column; border: 1px solid #eadbd2; border-radius: 15px; background: #fffaf7; }
.song-number { color: #caa787; font: 27px var(--serif); }
.song-moment { color: #a67e6e; letter-spacing: .16em; text-transform: uppercase; font: 600 10px var(--sans); }
.song-card .song-moment { margin-top: 6px; }
.song-card h3 { font: 500 25px/1.2 var(--serif); color: #74564b; margin: 8px 0 4px; }
.song-card p, .song-theme { color: var(--text-soft); font-size: 13px; }
.song-card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; gap: 8px; }
.song-card-actions button, .song-reading-tools button { cursor: pointer; border: 0; background: transparent; color: #af7161; font: 600 12px var(--sans); }
.song-heart { font-size: 25px !important; line-height: 1; }
.empty-state { text-align: center; color: var(--text-soft); padding: 35px; }
.song-dialog { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.song-dialog-backdrop { position: absolute; inset: 0; background: rgba(49,34,29,.7); }
.song-dialog-card { position: relative; width: min(650px, calc(100% - 28px)); max-height: min(92vh, 900px); overflow-y: auto; padding: clamp(25px, 5vw, 50px); border-radius: 18px; background: #fffaf6; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.song-dialog-top { display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; }
.icon-button { border: 0; background: transparent; color: #8c6456; font: 35px var(--serif); cursor: pointer; }
.song-dialog-card h2 { margin: 15px 0 8px; font: 500 clamp(34px, 5vw, 52px)/1.1 var(--serif); color: #76564c; }
.song-reading-tools { display: flex; gap: 10px; margin: 22px 0; }
.song-reading-tools button { padding: 9px 12px; border: 1px solid #e5d0c6; border-radius: 8px; background: #fff; }
.song-lyrics { font: 22px/1.65 var(--serif); color: #5a4a42; }
.song-lyrics p { white-space: pre-line; margin-bottom: 26px; }
.song-credit { font-size: 11px; color: #9a8a82; border-top: 1px solid #eadbd2; padding-top: 16px; }
.extras-footer { text-align: center; padding: 25px 12px 38px; color: #9f8d84; font-size: 12px; }

.upload-steps { display: flex; gap: 30px; padding: 0 0 24px; border-bottom: 1px solid #eee2da; margin-bottom: 28px; color: #9b8175; font-size: 12px; font-weight: 600; }
.upload-steps b { color: #b87867; margin-right: 7px; }
.drop-zone { display: grid; justify-items: center; gap: 5px; padding: 38px 22px; text-align: center; border: 2px dashed #d9bdb0; border-radius: 16px; background: #fffaf7; cursor: pointer; transition: background .2s; }
.drop-zone:hover, .drop-zone.dragging { background: #faeae3; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone:focus-within { outline: 2px solid #a16b5d; outline-offset: 3px; }
.drop-zone strong { font: 500 23px var(--serif); }
.drop-zone span:last-child { color: var(--text-soft); font-size: 12px; }
.drop-icon { font: 40px var(--serif); color: #bb8f7e; }
.photo-options { display: grid; grid-template-columns: 270px 1fr; gap: 30px; margin: 28px 0; }
.option-title { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.preview-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 13px; }
.preview-heading h3 { font: 500 27px var(--serif); }
.preview-heading span { color: var(--text-soft); font-size: 12px; }
.photo-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.photo-preview figure { min-width: 0; border: 1px solid #ebdbd2; border-radius: 10px; overflow: hidden; background: #f8efe9; }
.photo-preview img { width: 100%; height: 145px; object-fit: cover; }
.photo-preview figcaption { padding: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.upload-note { color: var(--text-soft); font-size: 12px; line-height: 1.6; margin: 24px 0; }
.upload-status { min-height: 28px; margin-top: 14px; font-size: 13px; }
.upload-status.success { color: #4a8a5f; }
.upload-status.error { color: #b44840; }
.photo-panel .btn-submit:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 760px) {
  .extras-grid, .photo-options { grid-template-columns: 1fr; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-preview { grid-template-columns: repeat(3, 1fr); }
  .upload-steps { gap: 12px; flex-wrap: wrap; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 530px) {
  .extras-card { min-height: 0; padding: 28px; }
  .song-grid { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(2, 1fr); }
  .extras-hero { padding: 65px 17px 55px; }
  .extras-panel { width: calc(100% - 22px); }
}
