.memory-reel-dialog { position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; border-radius: 36px; background: var(--bg, #F7F5EB); color: #111; overflow: auto; box-shadow: 0 24px 90px #0003; }
.memory-reel-dialog::backdrop { background: #0007; }
.memory-reel-dialog * { box-sizing: border-box; }
.memory-reel-dialog h2 { color: #584cb3; font: 700 42px/1.08 var(--font-display); margin: 8px 0 24px; }
.memory-reel-dialog .reel-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.reel-close { position: absolute; top: 20px; right: 18px; border: 0; background: transparent; width: 32px; height: 32px; font-size: 28px; cursor: pointer; }
.reel-grid { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(280px, 1fr); gap: 32px; }
.reel-screen { display: block; width: 100%; max-height: 57dvh; object-fit: contain; aspect-ratio: 9/16; background: #fffaf2; border-radius: 18px; }
.reel-preview-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.reel-preview-controls input { flex: 1; min-width: 0; accent-color: #584cb3; }
.memory-reel-dialog button { font-family: inherit; cursor: pointer; }
.memory-reel-dialog button:disabled { opacity: .45; cursor: default; }
.reel-controls label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.reel-controls input[type=text], .reel-controls select { display: block; width: 100%; margin-top: 7px; padding: 12px 16px; border: 0; border-radius: 20px; background: #f0f0f0; color: #111; font: 400 15px/1.4 var(--font-body); }
.reel-controls input[type=text] { box-shadow: inset 0 2px 7px #0002; }
.reel-controls .reel-location { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.reel-location input { accent-color: #584cb3; }
.reel-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(72px, auto); gap: 8px; max-height: 235px; overflow: auto; margin: 10px 0; padding: 3px; }
.reel-photo { position: relative; display: block; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #eee; overflow: hidden; aspect-ratio: 1; }
.reel-photo img { width: 100%; height: 100%; object-fit: cover; }
.reel-photo[aria-pressed=true] { border-color: #584cb3; }
.reel-photo span { position: absolute; bottom: 3px; right: 3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #584cb3; color: var(--bg, #F7F5EB); font: 600 12px var(--font-body); }
.reel-info, .reel-status { font: 400 13px/1.5 var(--font-body); margin-top: 12px; }
.reel-status { min-height: 2.9em; }
.reel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.reel-actions button, .reel-preview-controls button, .reel-download { padding: 12px 18px; border: 0; border-radius: 24px; background: #eee; color: #111; text-decoration: none; text-align: center; font: 500 14px/1.3 var(--font-body); }
.reel-actions > button { min-width: 150px; }
.reel-actions .reel-export { background: #00b252; color: var(--bg, #F7F5EB); }
.reel-result { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.reel-result[hidden] { display: none; }
.memory-reel-dialog progress { width: 100%; accent-color: #584cb3; }
.memory-reel-dialog :focus-visible { outline: 2px solid #584cb3; outline-offset: 2px; }
#memory-generated .gen-day-share-native-option { display: none; }
@media(max-width: 760px) {
 .memory-reel-dialog { padding: 24px 20px; border-radius: 28px; }
 .reel-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
 .reel-screen { max-height: 44dvh; }
 .reel-actions > button { min-width: 0; flex: 1; }
 #memory-generated .gen-day-share-menu { display: block !important; }
 #memory-generated .gen-day-share-native-option { display: flex; }
 #memory-generated .gen-day-share-option[data-share-channel] { display: none; }
}

.reel-export-review { flex-basis: 100%; font-size: 13px; }
.reel-export-review summary { cursor: pointer; margin-bottom: 8px; }
.reel-export-review video { width: 100%; max-height: 240px; background: #fffaf2; }
/* Sharing/reels are also available on the desktop central timeline. */
@media(min-width: 761px) {
 #memory-generated .memory-layout-central-timeline .gen-day:not(.gen-day-pending) > .gen-day-share { display: block; top: 0; right: 0; }
}
