:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --panel: #121318;
  --ink: #f5f5f7;
  --muted: #9899a2;
  --line: rgba(255,255,255,.13);
  --lime: #b7ff40;
  --blue: #8ee9ff;
  --pad: clamp(20px, 4.6vw, 76px);
  --max: 1500px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 200; left: 18px; top: -60px; padding: 12px 18px; border-radius: 999px; background: #fff; color: #08080a; }
.skip-link:focus { top: 18px; }

.memory-topbar { position: fixed; z-index: 80; inset: 0 0 auto; height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: rgba(11,12,15,.72); backdrop-filter: blur(26px) saturate(150%); }
.memory-brand { justify-self: start; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.memory-brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(183,255,64,.8); }
.memory-topbar nav { display: flex; gap: 26px; color: #85868d; font-size: 11px; }
.memory-topbar nav a:hover { color: var(--lime); }
.home-return { justify-self: end; display: flex; align-items: center; gap: 12px; color: #aaaab0; font-size: 11px; font-weight: 700; }
.home-return:hover { color: #fff; }

.memory-hero { position: relative; min-height: 76svh; padding: 154px var(--pad) 90px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.memory-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .34; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.memory-hero::after { content: ""; position: absolute; z-index: -2; width: 66vw; height: 66vw; right: -18vw; top: -25vw; border-radius: 50%; background: radial-gradient(circle, rgba(112,138,255,.2), rgba(83,231,203,.06) 38%, transparent 68%); filter: blur(20px); }
.hero-copy { width: min(100%, var(--max)); margin: auto; }
.eyebrow { margin: 0 0 26px; color: var(--lime); font: 650 11px/1.4 ui-monospace, monospace; letter-spacing: .15em; }
.memory-hero h1 { margin: 0; max-width: 1060px; font-size: clamp(54px, 8vw, 126px); line-height: .9; letter-spacing: -.075em; }
.memory-hero h1 span { color: rgba(255,255,255,.38); }
.memory-hero h1 b { display: inline-block; font-weight: inherit; white-space: nowrap; }
.memory-hero h1 .develop-word { position: relative; display: inline-block; isolation: isolate; color: rgba(255,255,255,.16); animation: develop-base 2.2s .35s cubic-bezier(.16,1,.3,1) both; }
.memory-hero h1 .develop-word::before { content: ""; position: absolute; z-index: -1; inset: -.06em -.12em -.02em; background: linear-gradient(90deg, transparent 0, rgba(183,255,64,.04) 24%, rgba(183,255,64,.28) 50%, rgba(142,233,255,.08) 72%, transparent 100%); opacity: 0; transform: translateX(-55%) scaleX(.22); filter: blur(.08em); animation: develop-scan 2.15s .35s cubic-bezier(.16,1,.3,1) both; pointer-events: none; }
.memory-hero h1 .develop-word::after { content: attr(data-word); position: absolute; inset: 0; color: rgba(231,255,194,.76); clip-path: inset(0 100% 0 0); filter: blur(.1em); text-shadow: 0 0 .22em rgba(183,255,64,.16); animation: develop-reveal 2.15s .45s cubic-bezier(.16,1,.3,1) both; pointer-events: none; }
.hero-copy > p:last-child { max-width: 610px; margin: 36px 0 0; color: #a3a4ab; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.75; }
.hero-index { position: absolute; right: var(--pad); bottom: 74px; width: clamp(160px, 17vw, 250px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.hero-index span { position: absolute; top: 18%; color: #6e6f76; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .18em; }
.hero-index strong { font-size: clamp(62px, 8vw, 118px); line-height: 1; letter-spacing: -.08em; }
.hero-index small { position: absolute; bottom: 18%; color: #62636a; font: 600 7px/1 ui-monospace, monospace; letter-spacing: .13em; }
.hero-orbit { position: absolute; right: 3%; top: 22%; width: 33vw; aspect-ratio: 1; border: 1px solid rgba(142,233,255,.12); border-radius: 50%; pointer-events: none; }
.hero-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 20px rgba(142,233,255,.7); }
.hero-orbit i:nth-child(1) { left: 12%; top: 30%; }.hero-orbit i:nth-child(2) { right: 18%; top: 13%; background: var(--lime); }.hero-orbit i:nth-child(3) { right: 7%; bottom: 25%; background: #ff7f66; }

.memory-shell { width: min(calc(100% - (var(--pad) * 2)), var(--max)); margin: 0 auto; }
.auth-shell { min-height: 300px; margin-bottom: 150px; padding: clamp(34px, 5vw, 72px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 60px); align-items: center; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.auth-lock { width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.auth-lock span { position: relative; width: 28px; height: 23px; border: 2px solid #797a82; border-radius: 7px; transform: translateY(5px); }
.auth-lock span::before { content: ""; position: absolute; left: 5px; right: 5px; bottom: 17px; height: 18px; border: 2px solid #797a82; border-bottom: 0; border-radius: 12px 12px 0 0; }
.auth-copy p, .archive-head p, .dialog-frame header p { margin: 0 0 10px; color: var(--lime); font: 650 9px/1 ui-monospace, monospace; letter-spacing: .16em; }
.auth-copy h2 { margin: 0 0 13px; font-size: clamp(25px, 3.2vw, 48px); letter-spacing: -.045em; }
.auth-copy span { color: #85868e; font-size: 14px; }
.primary-button, .upload-button { border: 0; border-radius: 999px; background: var(--lime); color: #08090a; font-weight: 750; cursor: pointer; transition: transform .25s, filter .25s; }
.primary-button { min-width: 130px; padding: 16px 22px; }
.primary-button:hover, .upload-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.login-form { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; width: 100%; }
.login-form label { display: grid; gap: 8px; color: #777880; font-size: 11px; }
.login-form input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; background: #0c0d10; color: #fff; outline: none; }
.login-form input:focus { border-color: var(--lime); }
.login-actions { display: flex; gap: 8px; }
.login-actions button { height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.login-actions button:first-child { border-color: var(--lime); background: var(--lime); color: #08090a; font-weight: 700; }
.login-form > p { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #ff8d78; font-size: 12px; }

.memory-content { padding-bottom: 170px; }
.sync-bar { min-height: 72px; margin-bottom: 90px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.sync-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #f3a13e; box-shadow: 0 0 0 7px rgba(243,161,62,.11); }
.sync-bar[data-state="connected"] > i { background: #51d98b; box-shadow: 0 0 0 7px rgba(81,217,139,.11); }
.sync-bar[data-state="error"] > i { background: #ff765d; box-shadow: 0 0 0 7px rgba(255,118,93,.11); }
.sync-bar div { display: grid; gap: 4px; }
.sync-bar strong { font-size: 13px; }.sync-bar small { color: #7e7f87; font-size: 11px; }
.sync-bar button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #a6a7ae; font-size: 10px; cursor: pointer; }
.sync-bar button:hover { color: #fff; border-color: #666; }
.archive-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.archive-head h2 { margin: 0; font-size: clamp(52px, 7vw, 104px); line-height: .9; letter-spacing: -.065em; }
.archive-actions { display: flex; align-items: center; gap: 16px; }
.archive-actions > span { color: #777880; font-size: 11px; }
.upload-button { min-height: 48px; padding: 7px 18px 7px 8px; display: inline-flex; align-items: center; gap: 10px; }
.upload-button i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,9,10,.11); font-style: normal; font-size: 18px; line-height: 1; }
.filter-row { display: flex; gap: 8px; margin-bottom: 42px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row button { flex: 0 0 auto; padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #86878f; font-size: 11px; cursor: pointer; }
.filter-row button[aria-pressed="true"] { border-color: #fff; background: #fff; color: #090a0c; }

.album-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2vw, 30px); }
.album-card { grid-column: span 4; position: relative; min-height: clamp(360px, 39vw, 570px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--album-dark, #17181c); color: #fff; cursor: pointer; text-align: left; isolation: isolate; }
.album-card:nth-child(5n + 1), .album-card:nth-child(5n + 4) { grid-column: span 7; }.album-card:nth-child(5n + 2), .album-card:nth-child(5n + 5) { grid-column: span 5; }
.album-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 77% 18%, color-mix(in srgb, var(--album-accent) 42%, transparent), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--album-dark) 84%, #fff), var(--album-dark)); }
.album-card > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .42s ease, transform .9s cubic-bezier(.16,1,.3,1); backface-visibility: hidden; }
.album-card.has-memory-cover::before { background: radial-gradient(circle at 78% 16%, color-mix(in srgb, var(--album-accent) 24%, transparent), transparent 42%), linear-gradient(145deg, rgba(8,10,12,.08), color-mix(in srgb, var(--album-dark) 42%, transparent)); }
.album-card > img.is-loaded { opacity: .72; }
.album-card.has-memory-cover > img.is-loaded { opacity: .78; transform: scale(1.055); }
.album-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,6,8,.03) 22%, rgba(5,6,8,.86) 100%); }
.album-card:hover > img.is-loaded { opacity: .84; transform: scale(1.075); }
.album-card.has-memory-cover:hover > img.is-loaded { opacity: .88; transform: scale(1.085); }
.album-card-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.album-card-top span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(7,8,10,.18); backdrop-filter: blur(12px); font: 600 8px/1 ui-monospace, monospace; letter-spacing: .09em; }
.album-card-top i { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(7,8,10,.18); backdrop-filter: blur(12px); font-style: normal; font-size: 18px; transition: transform .25s, background .25s, color .25s; }
.album-card:hover .album-card-top i { transform: rotate(-15deg); background: var(--lime); color: #08090a; }
.album-card-copy { position: absolute; left: 24px; right: 24px; bottom: 24px; }
.album-card-copy small { color: rgba(255,255,255,.66); font: 600 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.album-card-copy h3 { margin: 10px 0 14px; font-size: clamp(42px, 5vw, 72px); line-height: .88; letter-spacing: -.065em; }
.album-card-copy p { margin: 0; display: flex; gap: 12px; color: #d0d0d5; font-size: 12px; }
.album-card.is-empty > img.is-loaded { opacity: .42; }
.album-card.is-empty::after { background: linear-gradient(180deg, rgba(7,8,10,.2), rgba(7,8,10,.88)); }
.album-card.is-empty .album-card-copy p { color: #9a9ba2; }
.archive-empty { padding: 80px 0; color: #777880; text-align: center; }

.memory-dialog { width: min(920px, calc(100vw - 28px)); max-height: calc(100svh - 28px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; background: #111217; color: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.72); }
.memory-dialog::backdrop { background: rgba(2,3,4,.75); backdrop-filter: blur(18px); }
.dialog-frame { margin: 0; padding: clamp(24px, 4vw, 50px); }
.dialog-frame > header { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 38px; }
.dialog-frame header h2 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: .94; letter-spacing: -.055em; }
.dialog-frame header span { display: block; margin-top: 12px; color: #7d7e86; font-size: 12px; }
.dialog-close, .lightbox-close, .lightbox-nav { flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #a5a6ad; cursor: pointer; }
.dialog-close, .lightbox-close { width: 42px; height: 42px; font-size: 24px; }
.dialog-close:hover, .lightbox-close:hover, .lightbox-nav:hover { background: #fff; color: #08090a; }
.upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; }.field-wide { grid-column: 1 / -1; }
.field > span { color: #92939a; font-size: 11px; }.field > span b { color: var(--lime); }.field > span small { color: #606168; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #0b0c0f; color: #fff; outline: none; }
.field input, .field select { height: 52px; padding: 0 15px; }.field textarea { padding: 14px 15px; resize: vertical; }
.field :is(input, select, textarea):focus { border-color: var(--lime); }
.picker-field { position: relative; align-content: start; }
.picker-trigger { width: 100%; min-height: 56px; padding: 8px 10px 8px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); color: #777880; text-align: left; cursor: pointer; outline: none; transition: border-color .25s, background .25s, color .25s; }
.picker-trigger:hover, .picker-trigger:focus-visible, .picker-trigger[aria-expanded="true"] { border-color: rgba(183,255,64,.72); background: linear-gradient(135deg, rgba(183,255,64,.07), rgba(255,255,255,.02)); color: #fff; }
.picker-trigger.is-invalid { border-color: #ff806a; box-shadow: 0 0 0 3px rgba(255,128,106,.1); }
.picker-trigger.has-value { color: #f4f4f6; }
.picker-trigger > span { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.picker-trigger > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); color: #a7a8ae; font-style: normal; font-size: 18px; line-height: 1; transition: transform .25s, background .25s, color .25s; }
.picker-trigger[aria-expanded="true"] > i { transform: rotate(180deg); background: var(--lime); color: #08090a; }
.picker-popover { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; right: 0; padding: 14px; overflow: hidden; border: 0; border-radius: 22px; background: linear-gradient(145deg, rgba(43,44,50,.95), rgba(14,15,19,.94)); box-shadow: 0 28px 80px rgba(0,0,0,.62); -webkit-backdrop-filter: blur(42px) saturate(135%); backdrop-filter: blur(42px) saturate(135%); }
.picker-popover > header { min-height: 48px; padding: 2px 2px 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.picker-popover > header > div { display: grid; gap: 5px; }
.picker-popover > header small { color: #74757d; font: 600 7px/1 ui-monospace, monospace; letter-spacing: .14em; }
.picker-popover > header strong { font-size: 16px; letter-spacing: -.02em; }
.picker-popover > header button, .date-picker-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: #b9bac0; cursor: pointer; }
.picker-popover > header button:hover, .date-picker-head button:hover { background: rgba(255,255,255,.13); color: #fff; }
.destination-picker { min-width: min(420px, calc(100vw - 64px)); }
.destination-options { max-height: min(390px, 48svh); padding-right: 4px; overflow: auto; scrollbar-width: thin; scrollbar-color: #4e4f56 transparent; }
.destination-group + .destination-group { margin-top: 14px; }
.destination-group h3 { margin: 0 0 7px; color: #777880; font: 650 8px/1 ui-monospace, monospace; letter-spacing: .12em; }
.destination-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.destination-option { min-height: 42px; padding: 9px 12px; border: 0; border-radius: 12px; background: rgba(255,255,255,.035); color: #d0d1d6; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.destination-option:hover, .destination-option:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
.destination-option[aria-selected="true"] { background: var(--lime); color: #08090a; font-weight: 750; }
.date-picker { width: min(340px, calc(100vw - 64px)); right: auto; }
.date-picker-head { display: grid !important; grid-template-columns: auto 1fr auto; padding-bottom: 12px !important; }
.date-picker-head strong { justify-self: center; font-size: 14px; }
.date-weekdays, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-weekdays { margin-bottom: 5px; color: #72737b; text-align: center; font: 650 8px/1 ui-monospace, monospace; }
.date-weekdays span { padding: 7px 0; }
.date-grid button { aspect-ratio: 1; min-width: 0; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #d0d1d6; font-size: 11px; cursor: pointer; }
.date-grid button:hover, .date-grid button:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
.date-grid button.is-outside { color: #55565d; }
.date-grid button.is-today { box-shadow: inset 0 0 0 1px rgba(183,255,64,.55); color: var(--lime); }
.date-grid button.is-selected { background: var(--lime); box-shadow: none; color: #08090a; font-weight: 800; }
.date-picker > footer { margin-top: 12px; padding-top: 11px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); }
.date-picker > footer button { padding: 9px 11px; border: 0; border-radius: 999px; background: transparent; color: #82838b; font-size: 10px; cursor: pointer; }
.date-picker > footer button:hover { background: rgba(255,255,255,.08); color: #fff; }
.date-picker > footer button:last-child { background: rgba(183,255,64,.12); color: var(--lime); }
.file-picker { min-height: 108px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); cursor: pointer; text-align: left; transition: border-color .25s, background .25s, transform .25s; }
.file-picker:is(:hover, :focus-within) { border-color: rgba(183,255,64,.55); background: linear-gradient(135deg, rgba(183,255,64,.075), rgba(255,255,255,.02)); transform: translateY(-1px); }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker .file-picker-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #08090a; font-style: normal; font-size: 24px; line-height: 1; }
.file-picker .file-picker-copy { display: grid; gap: 7px; color: #fff; }
.file-picker-copy strong { font-size: 15px; letter-spacing: -.015em; }
.file-picker-copy small { color: #73747c; font-size: 11px; font-weight: 400; }
.file-picker .file-picker-action { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d5d5da; font-size: 10px; font-weight: 700; white-space: nowrap; }
.upload-previews { margin-top: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.upload-previews figure { position: relative; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 10px; background: #08090b; }
.upload-previews img { width: 100%; height: 100%; object-fit: cover; }
.upload-previews span { position: absolute; inset: auto 4px 4px; overflow: hidden; color: #fff; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.upload-progress { margin-top: 24px; }.upload-progress > span { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: #292a30; }.upload-progress i { display: block; width: var(--progress, 0%); height: 100%; background: var(--lime); transition: width .3s; }.upload-progress p { margin: 10px 0 0; color: #85868d; font-size: 11px; }
.form-status { min-height: 18px; margin: 16px 0 0; color: #ff8d78; font-size: 12px; }
.dialog-actions { margin-top: 28px; padding-top: 22px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.dialog-actions button { min-width: 120px; padding: 14px 19px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.dialog-actions .primary-button { border: 0; background: var(--lime); color: #08090a; }

.album-dialog { width: min(1320px, calc(100vw - 28px)); }
.photo-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
.photo-card { grid-column: span 4; position: relative; aspect-ratio: 1; margin: 0; contain: layout paint; overflow: hidden; border-radius: 14px; background: #0a0b0e; }
.photo-card:nth-child(6n + 1) { grid-column: span 8; aspect-ratio: 8 / 5; }
.photo-card:nth-child(6n + 2) { grid-column: span 4; aspect-ratio: 4 / 5; }
.photo-card:nth-child(6n + 6) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.photo-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.photo-card img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.012); transition: opacity .36s ease, transform .8s cubic-bezier(.16,1,.3,1); backface-visibility: hidden; cursor: zoom-in; }
.photo-card img.is-loaded { opacity: 1; transform: scale(1); }
.photo-card:hover img.is-loaded { transform: scale(1.025); }
.photo-card img.is-error { opacity: 0; }
.photo-card figcaption { position: absolute; z-index: 2; inset: auto 0 0; padding: 50px 14px 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; background: linear-gradient(transparent, rgba(3,4,5,.88)); opacity: 0; transition: opacity .25s; }
.photo-card:hover figcaption, .photo-card:focus-within figcaption { opacity: 1; }
.photo-card figcaption div { display: grid; gap: 4px; min-width: 0; }.photo-card figcaption p { margin: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.photo-card figcaption span { color: #b6b7bd; font-size: 9px; }
.photo-delete { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(7,8,10,.5); color: #fff; font-size: 9px; cursor: pointer; }
.photo-delete:hover { background: #ff725c; border-color: #ff725c; }
.album-empty { padding: 90px 20px; text-align: center; }.album-empty strong { font-size: 28px; }.album-empty p { color: #7f8088; }.album-empty a { display: inline-block; margin-top: 14px; color: var(--lime); font-weight: 700; }
.lightbox-dialog { width: min(1200px, calc(100vw - 20px)); overflow: hidden; background: #07080a; }
.lightbox-frame { position: relative; height: calc(100svh - 30px); padding: 20px 84px 18px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox-close { position: absolute; z-index: 5; top: 18px; right: 18px; background: rgba(7,8,10,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox-stage { min-height: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
.lightbox-stage:active { cursor: grabbing; }
.lightbox-track { width: 100%; height: 100%; display: flex; transform: translate3d(-100%, 0, 0); will-change: transform; }
.lightbox-track.is-animated { transition: transform .34s cubic-bezier(.22,.72,.18,1); }
.lightbox-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: grid; place-items: center; }
.lightbox-slide img { display: block; max-width: 100%; max-height: calc(100svh - 154px); margin: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lightbox-nav { position: absolute; z-index: 4; top: 50%; width: 52px; height: 52px; background: rgba(20,21,24,.62); color: #d4d5da; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform: translateY(-50%); transition: background .2s, color .2s, transform .2s; }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }
.lightbox-nav:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.lightbox-nav[hidden] { display: none; }.lightbox-nav:disabled { cursor: default; opacity: .55; }
.lightbox-previous { left: 18px; }.lightbox-next { right: 18px; }
.lightbox-nav i { width: 12px; height: 12px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.lightbox-previous i { transform: rotate(-135deg) translate(-1px, 1px); }.lightbox-next i { transform: rotate(45deg) translate(-1px, 1px); }
.lightbox-copy { width: min(760px, 100%); margin: 16px auto 4px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.lightbox-copy > div { min-width: 0; }.lightbox-copy p { margin: 0 0 6px; }.lightbox-copy span { color: #7f8088; font-size: 11px; }.lightbox-copy small { flex: 0 0 auto; color: #b7ff40; font: 650 10px/1 ui-monospace, monospace; letter-spacing: .08em; }

body > footer { min-height: 120px; padding: 38px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; border-top: 1px solid var(--line); color: #66676f; font: 600 9px/1.4 ui-monospace, monospace; letter-spacing: .1em; }
body > footer span:nth-child(2) { justify-self: center; } body > footer a { justify-self: end; }

@media (max-width: 980px) {
  .memory-topbar nav { display: none; }
  .memory-topbar { grid-template-columns: 1fr auto; }.home-return { grid-column: 2; }.memory-topbar > nav + .home-return { grid-column: 2; }
  .hero-index { opacity: .45; right: -30px; }
  .auth-shell { grid-template-columns: auto 1fr; }.auth-shell > .primary-button { grid-column: 2; justify-self: start; }.login-form { grid-column: 1 / -1; }
  .album-card, .album-card:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }
  .memory-topbar { height: 62px; }.memory-brand span { font-size: 11px; }.home-return { font-size: 10px; }
  .memory-hero { min-height: 720px; padding-top: 118px; align-items: start; }.memory-hero h1 { font-size: clamp(34px, 10.5vw, 60px); }.hero-copy > p:last-child { max-width: 88%; }.hero-index { bottom: 54px; width: 145px; }.hero-orbit { width: 80vw; right: -34vw; top: 26%; }
  .auth-shell { min-height: 0; margin-bottom: 100px; padding: 30px 24px; grid-template-columns: 1fr; text-align: center; }.auth-lock { margin: auto; }.auth-shell > .primary-button { grid-column: auto; justify-self: center; }.login-form { grid-template-columns: 1fr; text-align: left; }.login-actions { justify-content: center; }.login-form > p { text-align: center; }
  .sync-bar { grid-template-columns: auto 1fr auto; margin-bottom: 72px; }.sync-bar #memory-sign-out { grid-column: 3; }.sync-bar #memory-sync-retry { grid-column: 2; justify-self: start; }
  .archive-head { align-items: start; flex-direction: column; }.archive-actions { width: 100%; justify-content: space-between; }.archive-head h2 { font-size: 58px; }
  .album-card, .album-card:nth-child(n) { grid-column: 1 / -1; min-height: 116vw; }.album-card-copy h3 { font-size: 16vw; }
  .upload-fields { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.upload-previews { grid-template-columns: repeat(3, 1fr); }
  .destination-picker { min-width: 0; }.destination-group > div { grid-template-columns: 1fr; }.date-picker { width: 100%; right: 0; }
  .file-picker { min-height: 0; padding: 18px; grid-template-columns: auto 1fr; gap: 14px; }.file-picker .file-picker-action { grid-column: 2; justify-self: start; }
  .dialog-frame { padding: 24px 18px; }.dialog-frame > header { margin-bottom: 28px; }.dialog-actions { flex-direction: column-reverse; }.dialog-actions button { width: 100%; }
  .photo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.photo-card:nth-child(n) { grid-column: span 1; aspect-ratio: 1; border-radius: 9px; }.photo-card:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }.photo-card figcaption { padding: 42px 10px 10px; opacity: 1; }.photo-card figcaption p { white-space: normal; }.photo-delete { padding: 7px 8px; }
  .lightbox-frame { height: calc(100svh - 30px); padding: 62px 12px 14px; }.lightbox-slide img { max-height: calc(100svh - 166px); }.lightbox-close { top: 12px; right: 12px; }.lightbox-nav { top: 48%; width: 44px; height: 44px; }.lightbox-previous { left: 8px; }.lightbox-next { right: 8px; }.lightbox-copy { margin-top: 12px; gap: 16px; }.lightbox-copy p { font-size: 13px; }.lightbox-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body > footer { grid-template-columns: 1fr; } body > footer span:nth-child(2), body > footer a { justify-self: start; }
}

@media (hover: none), (pointer: coarse) { .photo-card figcaption { opacity: 1; } }

@keyframes develop-base {
  0% { color: rgba(255,255,255,.08); filter: blur(.08em); }
  45% { color: rgba(220,255,165,.26); }
  100% { color: rgba(255,255,255,.38); filter: blur(0); }
}
@keyframes develop-scan {
  0% { opacity: 0; transform: translateX(-55%) scaleX(.22); }
  24% { opacity: 1; }
  72% { opacity: .72; }
  100% { opacity: 0; transform: translateX(58%) scaleX(.38); }
}
@keyframes develop-reveal {
  0% { clip-path: inset(0 100% 0 0); filter: blur(.1em); }
  72% { clip-path: inset(0 0 0 0); filter: blur(.025em); }
  100% { clip-path: inset(0 0 0 0); color: rgba(255,255,255,.38); filter: blur(0); text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
