/* v2 foundation: structure and components shared by the October 2026 directions.
   Each direction (aperture, vellum, afterglow, rams) sets the tokens below and adds
   its own home page and flavour. Loaded after site.css so shared views restyle too. */
:root {
  --bg: #fff; --bg2: #f5f5f7; --bg3: #fff; --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #a1a1a6;
  --line: rgba(0,0,0,.1); --accent: #1d1d1f; --accent-ink: #fff; --focus: #0071e3;
  --ok: #1f8a4c; --bad: #d70015;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 600; --display-track: -.025em; --display-style: normal;
  --r-s: 10px; --r-m: 16px; --r-l: 24px; --r-btn: 999px;
  --nav-bg: rgba(255,255,255,.72); --sheet-bg: #fff; --field-bg: #f5f5f7; --field-line: transparent;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.08);
  --ease: cubic-bezier(.2,.7,.1,1);
  --wrap: 1120px;
}
html.v2 { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body.v2 { background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.011em; }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-style: var(--display-style); color: var(--ink); }
.v2 h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
.v2 h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; }
.v2 h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.v2 .muted { color: var(--ink2); }
.v2 .small { font-size: 14px; letter-spacing: -.005em; }
.v2 a:where(:not(.x-btn):not(.btn)) { color: inherit; }
.v2 ::selection { background: var(--accent); color: var(--accent-ink); }
.v2 a:focus-visible, .v2 button:focus-visible, .v2 summary:focus-visible, .v2 input:focus-visible, .v2 textarea:focus-visible, .v2 select:focus-visible, .v2 label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.v2 .wrap { max-width: var(--wrap); padding: 0 22px; }
.v2 .narrow { max-width: 560px; }
.x-hide { display: none !important; }

/* ---------- nav ---------- */
/* In-page links (#unlock, #email, #how) land below the sticky header, not under it. */
html.v2 { scroll-padding-top: 76px; }
.x-nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.x-nav.over { position: absolute; left: 0; right: 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.x-nav-in { max-width: var(--wrap); margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.x-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.x-mark { flex-shrink: 0; }
.x-nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.x-nav-links a { text-decoration: none; color: var(--ink2); transition: color .2s; }
.x-nav-links a:hover { color: var(--ink); }
.x-nav-links a.x-btn { color: var(--accent-ink); }
.x-dev select { font: 12px var(--font); padding: 3px 4px; border-radius: 6px; max-width: 130px; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); height: auto; width: auto; }
@media (max-width: 640px) { .x-hide-s { display: none; } .x-nav-links { gap: 14px; } .x-nav-in { padding: 0 16px; } }

/* ---------- buttons ---------- */
.x-btn, .v2 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--r-btn); border: 0; background: var(--accent); color: var(--accent-ink); font: 500 17px/1 var(--font); letter-spacing: -.015em; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), opacity .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.x-btn:hover, .v2 .btn:hover { opacity: .88; }
.x-btn:active, .v2 .btn:active { transform: scale(.97); }
.x-btn-s, .v2 .btn.sm { min-height: 32px; padding: 0 15px; font-size: 14px; }
.x-btn-l, .v2 .btn.big { min-height: 56px; padding: 0 34px; font-size: 18px; }
.x-btn-ghost, .v2 .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.x-btn-ghost:hover, .v2 .btn.ghost:hover { background: var(--bg2); opacity: 1; }
.x-btn-quiet { background: var(--bg2); color: var(--ink); }
.v2 .btn.lime, .v2 .btn.gold { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.v2 .btn.lime:hover, .v2 .btn.gold:hover { background: var(--accent); }
.v2 .btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px currentColor; }
.v2 .btn[disabled], .x-btn[disabled] { opacity: .35; cursor: default; transform: none; }
.v2 .x-link { color: var(--focus); text-decoration: none; }
.x-link:hover { text-decoration: underline; }
.x-chev::after { content: " ›"; }
.v2 .linkish { background: none; border: 0; color: var(--ink2); font: inherit; font-size: 15px; cursor: pointer; padding: 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* ---------- fields ---------- */
.v2 label { font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-bottom: 6px; display: block; }
.v2 label .hint, .v2 .hint { color: var(--ink2); font-weight: 400; }
.v2 input[type=text], .v2 input[type=email], .v2 input[type=url], .v2 input[type=date], .v2 input[type=password], .v2 input[type=number], .v2 input[type=tel], .v2 textarea, .v2 select { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--field-line); background: var(--field-bg); color: var(--ink); font: 17px/1.3 var(--font); letter-spacing: -.01em; transition: box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.v2 textarea { line-height: 1.45; }
.v2 input:focus, .v2 textarea:focus, .v2 select:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); background: var(--bg3); }
.v2 ::placeholder { color: var(--ink3); opacity: 1; font-family: inherit; font-style: normal; }
.v2 .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.v2 .check input { accent-color: var(--accent); width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; }
.v2 .err { background: color-mix(in srgb, var(--bad) 9%, var(--bg)); color: var(--bad); border: 0; border-radius: var(--r-s); padding: 12px 16px; font-size: 15px; }
.v2 .note { background: var(--bg2); border: 0; border-radius: var(--r-s); padding: 12px 16px; }

/* ---------- shared surfaces (also restyles the classic views) ---------- */
.v2 .card { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; box-shadow: none; }
.v2 .stack > * + * { margin-top: 16px; }
.v2 .urlbox { background: var(--field-bg); border: 0; border-radius: var(--r-s); font: 15px var(--font-mono); padding: 14px 16px; }
.v2 .tools { gap: 10px; }
.v2 .toast { border-radius: var(--r-s); border: 0; box-shadow: var(--shadow); background: var(--sheet-bg); }
.v2 summary { cursor: pointer; }
.v2 table { border-collapse: collapse; }
.v2 th, .v2 td { border-color: var(--line); }
.v2 .pill { border-color: var(--line); }
.v2 .legal { max-width: 720px; }
.v2 .legal h1 { margin-top: 40px; }
.v2 main.wrap { padding-top: 40px; padding-bottom: 80px; }

/* ---------- footer ---------- */
.x-foot { border-top: 1px solid var(--line); margin-top: auto; background: var(--bg); color: var(--ink2); font-size: 13px; }
.x-foot-in { max-width: var(--wrap); margin: 0 auto; padding: 28px 22px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px 32px; align-items: center; }
.x-foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.x-foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; }
.x-foot-links a { text-decoration: none; }
.x-foot-links a:hover { color: var(--ink); }
.x-foot-copy { margin: 0; }
@media (max-width: 760px) { .x-foot-in { grid-template-columns: 1fr; justify-items: start; } .x-foot-links { justify-content: flex-start; } }

/* ---------- create (wizard) ---------- */
.x-create { flex: 1; display: flex; flex-direction: column; max-width: 640px; width: 100%; margin: 0 auto; padding: 0 22px 60px; }
.x-progress { height: 2px; background: var(--line); border-radius: 2px; margin: 28px 0 0; overflow: hidden; }
.x-progress i { display: block; height: 100%; background: var(--ink); width: 25%; transition: width .5s var(--ease); }
.x-create .wizard-progress { margin: 14px 0 0; font-size: 13px; color: var(--ink2); letter-spacing: 0; }
.x-create .step { padding-top: clamp(40px, 12vh, 120px); }
.js .x-create .step:not(.on) { display: none; }
.js .x-create .step.on { animation: x-rise .5s var(--ease) both; }
.x-create .step h1 { font-size: clamp(34px, 7vw, 56px); margin-bottom: 12px; }
.x-create .step > p.muted { font-size: 19px; margin-bottom: 36px; max-width: 30em; }
.v2 .x-create input.x-big-input { width: 100%; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent !important; box-shadow: none !important; padding: 10px 0 14px; min-height: 0; font: var(--display-weight) clamp(28px, 6vw, 40px)/1.2 var(--font-display); letter-spacing: var(--display-track); color: var(--ink); transition: border-color .25s; }
.v2 .x-create input.x-big-input:focus { border-bottom-color: var(--ink); }
.v2 .x-create input.x-big-input[type=date] { font-size: clamp(22px, 5vw, 32px); }
.x-create .wizard-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.x-create .err { margin-top: 24px; }
.x-choices { display: grid; gap: 10px; }
.x-choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; margin: 0; font-weight: 400; transition: box-shadow .2s, background .2s; }
.x-choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg2); }
.x-choice input { accent-color: var(--ink); width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.x-choice b { font-weight: 600; }
.x-choice .x-price { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink2); }
.x-cards-art { display: flex; justify-content: center; margin: 0 0 28px; }
.x-cards-art img { width: min(300px, 70%); border-radius: 10px; box-shadow: var(--shadow); transform: rotate(-2deg); }
@keyframes x-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sign in ---------- */
.x-auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(48px, 14vh, 140px) 22px 80px; }
.x-auth-in { width: 100%; max-width: 400px; text-align: center; }
.x-auth h1 { font-size: clamp(34px, 6vw, 44px); margin-bottom: 10px; }
.x-auth p.muted { margin-bottom: 32px; }
.x-auth form { display: grid; gap: 12px; text-align: left; }
.x-auth .x-btn { width: 100%; }
.x-auth .x-sent { font-size: 64px; line-height: 1; margin-bottom: 18px; }

/* ---------- guest page ---------- */
.x-guest { padding-bottom: 140px; }
.x-cover { position: relative; height: min(78vh, 760px); min-height: 440px; overflow: hidden; background: var(--bg2); color: #fff; }
.x-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: x-settle 1.6s var(--ease) both; }
.x-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 48%, rgba(0,0,0,.55) 100%); }
.x-cover-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 24px 34px; text-align: center; }
.x-cover-text h1 { color: #fff; font-size: clamp(40px, 9vw, 76px); margin: 0 0 6px; text-shadow: 0 1px 24px rgba(0,0,0,.18); }
.x-cover-text p { margin: 0; font-size: 16px; opacity: .92; letter-spacing: .01em; }
.x-cover.none { height: auto; min-height: 0; background: none; color: var(--ink); padding: 72px 0 8px; }
.x-cover.none::after { display: none; }
.x-cover.none .x-cover-text { position: static; }
.x-cover.none h1 { color: var(--ink); text-shadow: none; }
@keyframes x-settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.x-welcome { max-width: 560px; margin: 0 auto; padding: 36px 24px 8px; text-align: center; }
.x-welcome p { font-size: 19px; line-height: 1.5; margin: 0; white-space: pre-line; }
.x-welcome .x-keep { margin-top: 14px; font-size: 13px; color: var(--ink2); }
.x-notice { max-width: 520px; margin: 28px auto 0; padding: 20px 24px; border-radius: var(--r-m); background: var(--bg2); text-align: center; }
.x-notice b { display: block; margin-bottom: 4px; }
.x-notice p { margin: 0; font-size: 15px; color: var(--ink2); }

/* add-photos dock: pinned in the thumb zone */
.x-dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; transition: transform .45s var(--ease), opacity .3s; }
.x-dock::before { content: ""; position: absolute; inset: -30px 0 0; background: linear-gradient(to top, var(--bg) 40%, transparent); opacity: .92; pointer-events: none; }
.x-dock .x-add { position: relative; pointer-events: auto; width: min(420px, 100%); min-height: 58px; font-size: 18px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.x-dock .x-add svg { margin-right: 2px; }
.x-dock .x-sub { display: none; }
body.picking .x-dock { transform: translateY(120%); opacity: 0; }
.x-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* the sheet that opens after choosing photos */
.x-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
body.picking .x-scrim { opacity: 1; pointer-events: auto; }
.x-sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--sheet-bg); color: var(--ink); border-radius: 22px 22px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.18); animation: x-sheet .5s var(--ease) both; }
.x-sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
@media (min-width: 700px) { .x-sheet { left: 50%; right: auto; bottom: 50%; width: 520px; transform: translate(-50%, 50%); border-radius: 22px; animation: x-pop .4s var(--ease) both; padding-top: 24px; } .x-sheet::before { display: none; } }
@keyframes x-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes x-pop { from { opacity: 0; transform: translate(-50%, 52%) scale(.96); } to { opacity: 1; transform: translate(-50%, 50%); } }
.x-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.x-sheet-head h2 { font-size: 22px; margin: 0; }
.x-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--ink2); font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.x-picked { display: flex; gap: 6px; overflow-x: auto; margin: 0 -22px 18px; padding: 0 22px; scrollbar-width: none; }
.x-picked::-webkit-scrollbar { display: none; }
.x-picked img, .x-picked span { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--bg2); display: grid; place-items: center; font-size: 11px; color: var(--ink2); }
.x-sheet .x-field { margin-bottom: 14px; }
.x-vis { border: 0; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-vis legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.x-vis label { margin: 0; display: block; padding: 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--ink2); transition: box-shadow .2s, background .2s; }
.x-vis label b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.x-vis label svg { display: block; margin-bottom: 10px; color: var(--ink); }
.x-vis input { position: absolute; opacity: 0; pointer-events: none; }
.x-vis label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--bg2); }
.x-vis label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.x-vis .x-vis-err { grid-column: 1 / -1; color: var(--bad); font-size: 14px; margin: 0; }
.x-sheet .x-send { width: 100%; min-height: 56px; font-size: 18px; font-weight: 600; }

/* progress as photo tiles */
.x-progress-wrap { max-width: 720px; margin: 24px auto 0; padding: 0 16px; }
.x-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.x-rows .uprow { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg2); display: block; padding: 0; border: 0; margin: 0; }
.x-rows .uprow img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; transition: opacity .4s; }
.x-rows .uprow .name { position: absolute; inset: auto 0 0; font-size: 10px; padding: 4px; color: #fff; display: none; }
.x-rows .uprow .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); overflow: hidden; width: auto; }
.x-rows .uprow .bar i { display: block; height: 100%; background: #fff; border-radius: 2px; transition: width .3s; width: 0; }
.x-rows .uprow .st { position: absolute; top: 6px; right: 7px; font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.x-rows .uprow.done img { opacity: 1; }
.x-rows .uprow.done .bar { display: none; }
.x-rows .uprow.fail { box-shadow: inset 0 0 0 2px var(--bad); }
.x-rows .uprow.fail .name { display: block; background: rgba(0,0,0,.6); }
.x-banner { max-width: 420px; margin: 24px auto 0; padding: 18px 22px; border-radius: var(--r-m); background: var(--bg2); text-align: center; font-weight: 600; font-size: 17px; animation: x-rise .5s var(--ease) both; }
.x-banner::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat; }

/* gallery */
.x-gallery { margin-top: 56px; }
.x-gallery-head { max-width: var(--wrap); margin: 0 auto 14px; padding: 0 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.x-gallery-head h2 { font-size: 24px; margin: 0; }
.x-gallery-head span { color: var(--ink2); font-size: 15px; }
.x-gallery .mgrid, .x-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: var(--wrap); margin: 0 auto; padding: 0; }
@media (min-width: 700px) { .x-gallery .mgrid, .x-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; padding: 0 22px; } }
.v2 .cell { position: relative; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: var(--bg2); cursor: zoom-in; border: 0; box-shadow: none; }
@media (min-width: 700px) { .v2 .x-gallery .cell, .v2 .x-grid .cell { border-radius: 6px; } }
.v2 .cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), opacity .4s; border-radius: 0; }
.v2 .cell:hover img { transform: scale(1.025); }
.v2 .cell .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 500; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); opacity: 0; transition: opacity .3s; text-shadow: none; border-radius: 0; }
.v2 .cell:hover .who { opacity: 1; }
.v2 .cell .badge { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.v2 .cell .play { position: absolute; inset: auto 6px 6px auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 10px; display: grid; place-items: center; }
.x-empty { text-align: center; color: var(--ink2); padding: 40px 0; }

/* lightbox */
.v2 .lightbox { background: rgba(0,0,0,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.v2 .lightbox img, .v2 .lightbox video { border-radius: 4px; box-shadow: none; }
.v2 .lightbox .x, .v2 .lightbox .nav-l, .v2 .lightbox .nav-r { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 26px; line-height: 1; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v2 .lightbox .dl, .v2 .lightbox .rm { border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; border: 0; padding: 10px 16px; font: 500 14px var(--font); text-decoration: none; }
.v2 .lightbox .cap { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- host album shell ---------- */
.x-album { max-width: var(--wrap); margin: 0 auto; padding: 0 22px 120px; width: 100%; }
.x-album-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 44px 0 22px; flex-wrap: wrap; }
.x-album-head h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); }
.x-album-head p { margin: 6px 0 0; color: var(--ink2); }
.x-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--bg2); font-size: 13px; color: var(--ink2); text-decoration: none; }
.x-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.x-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg2); margin-bottom: 32px; }
.x-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink2); transition: background .2s, color .2s; }
.x-tabs a svg { width: 17px; height: 17px; }
.x-tabs a.on { background: var(--bg3); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04); }
.x-tabs a:not(.on):hover { color: var(--ink); }
.x-tabs a .n { color: var(--ink2); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .x-tabs { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); }
  .x-tabs a { flex-direction: column; gap: 3px; padding: 6px 0 2px; font-size: 10.5px; border-radius: 0; }
  .x-tabs a svg { width: 24px; height: 24px; }
  .x-tabs a.on { background: none; box-shadow: none; color: var(--accent-strong, var(--ink)); }
  .x-tabs a .n { display: none; }
  .x-album-head { padding-top: 28px; }
}
/* the classic tab strip on shared host views (settings, cards) */
.v2 .album-top { padding: 44px 0 18px; }
.v2 .album-title h1 { font-size: clamp(32px, 5vw, 48px); }
.v2 .album-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg2); border: 0; margin-bottom: 32px; position: static; box-shadow: none; width: auto; }
.v2 .album-tabs a { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink2); background: none; flex-direction: row; gap: 7px; }
.v2 .album-tabs a svg { width: 17px; height: 17px; }
.v2 .album-tabs a.on { background: var(--bg3); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 700px) {
  .v2 .album-tabs { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--nav-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  .v2 .album-tabs a { flex-direction: column; gap: 3px; padding: 6px 0 2px; font-size: 10.5px; }
  .v2 .album-tabs a svg { width: 24px; height: 24px; }
  .v2 .album-tabs a.on { background: none; box-shadow: none; }
  /* The fixed tab bar sits over the bottom of the page: keep the footer clear of it. */
  body.v2:has(.album-tabs, .x-album-head) .x-foot-in { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.v2 .album .card { border-radius: var(--r-l); padding: 28px; }
.v2 .album .card h2 { font-size: 22px; }

/* photos */
.x-photos-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.x-photos-bar h2 { font-size: 22px; margin: 0; }
.x-photos-bar .x-actions { display: flex; gap: 8px; }
.x-grid.host-grid { padding: 0; }
@media (max-width: 699px) { .x-grid.host-grid { margin: 0 -22px; } }
.v2 .host-grid .cell .mod { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); background: none; padding: 0; }
.v2 .host-grid .cell:hover .mod, .v2 .host-grid .cell:focus-within .mod, .v2 .host-grid.editing .cell .mod { opacity: 1; transform: none; }
.v2 .host-grid .ib { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.88); color: #1d1d1f; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; }
.v2 .host-grid .ib svg { width: 15px; height: 15px; }
.v2 .host-grid .ib.danger { color: var(--bad); }
.v2 .host-grid .cell.only-us img { opacity: .45; filter: grayscale(.6); }
.v2 .host-grid.editing .cell .who { opacity: 0; }
.v2 .cell .badge.cover-badge { background: rgba(255,255,255,.9); color: #1d1d1f; }
.x-foot-note { margin-top: 22px; color: var(--ink2); font-size: 14px; }
.x-foot-note a { color: inherit; }

/* sharing */
.x-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .x-share { grid-template-columns: 1fr; } }
.x-pass { position: relative; border-radius: 28px; overflow: hidden; background: var(--pass-bg, #1d1d1f); color: var(--pass-ink, #fff); padding: 26px; display: flex; flex-direction: column; min-height: 520px; }
.x-pass-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: blur(0px) saturate(.9); }
.x-pass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65)); }
.x-pass > *:not(.x-pass-bg) { position: relative; z-index: 2; }
.x-pass-top { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.x-pass h2 { color: inherit; font-size: clamp(30px, 4vw, 40px); margin: 8px 0 0; }
.x-pass-qr { margin-top: auto; align-self: center; background: #fff; border-radius: 20px; padding: 14px; width: min(236px, 70%); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.x-pass-qr img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.x-pass-url { text-align: center; margin: 16px 0 0; font: 14px var(--font-mono); opacity: .85; word-break: break-all; }
.x-pass-url a { text-decoration: none; }
.x-share-side { display: grid; gap: 20px; align-content: start; }
.x-panel { background: var(--bg2); border-radius: var(--r-l); padding: 26px; }
.x-panel h2 { font-size: 22px; margin: 0 0 6px; }
.x-panel > p { color: var(--ink2); margin: 0 0 18px; font-size: 16px; }
.x-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.x-actions-row .x-btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.x-panel .x-btn-ghost { box-shadow: inset 0 0 0 1px var(--line); background: var(--bg3); }
.x-cardpromo { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.x-cardpromo img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.x-email { margin-top: 20px; }
.x-email form { display: grid; gap: 14px; }
.x-email textarea { background: var(--bg3); }
.x-email input { background: var(--bg3) !important; }
.x-status { font-size: 14px; color: var(--ink2); margin: 0; }
.x-keepnote { margin-top: 28px; font-size: 14px; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { .v2 *, .v2 *::before, .v2 *::after { animation: none !important; transition: none !important; } }
.x-owner { position: fixed; z-index: 55; top: 14px; left: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; font-weight: 500; text-decoration: none; }
.x-made { text-align: center; color: var(--ink2); font-size: 13px; margin: 48px 0 0; }
.x-made a { color: var(--ink2); text-decoration: none; font-weight: 500; }

/* ---------- marketing helpers shared by the home pages ---------- */
.x-phone { width: 300px; aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 11px; background: #0b0b0c; box-shadow: inset 0 0 0 2px #2a2a2c, 0 40px 80px -20px rgba(0,0,0,.35), 0 20px 40px -20px rgba(0,0,0,.3); position: relative; flex-shrink: 0; }
.x-phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #0b0b0c; z-index: 3; }
.x-phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #fff; color: #1d1d1f; font-family: var(--font); }
.x-ph-cover { position: relative; height: 54%; }
.x-ph-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.x-ph-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.55)); }
.x-ph-cover div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; }
.x-ph-cover b { display: block; font: 600 25px/1.1 var(--font-display); letter-spacing: var(--display-track); font-style: var(--display-style); }
.x-ph-cover span { font-size: 10px; opacity: .9; }
.x-ph-welcome { font-size: 10.5px; text-align: center; padding: 12px 22px 10px; margin: 0; line-height: 1.4; color: #1d1d1f; }
.x-ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.x-ph-grid img { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; }
.x-ph-btn { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 40px; border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.x-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.x-reveal.in { opacity: 1; transform: none; }
html:not(.js) .x-reveal { opacity: 1; transform: none; }
/* labels and links styled as buttons keep button typography */
.v2 .x-btn, .v2 label.x-btn { color: var(--accent-ink); display: inline-flex; margin: 0; font-size: 17px; font-weight: 500; }
.v2 .x-btn.x-btn-ghost, .v2 .x-btn.x-btn-quiet { color: var(--ink); }
.v2 .x-btn-s { font-size: 14px; }
.v2 .x-btn-l { font-size: 18px; }
.v2 .x-dock label.x-add { font-size: 18px; font-weight: 600; }
.x-nav-links a, .x-brand span { white-space: nowrap; }
@media (max-width: 640px) { .x-dev select { max-width: 74px; } .x-brand span { font-size: 15px; } }
@media (max-width: 380px) { .x-nav-links a[href="/login"] { display: none; } }
@media (max-width: 560px) { .x-cardpromo { grid-template-columns: 1fr; } .x-cardpromo img { width: 70%; margin: 6px auto 4px; } .x-pass { min-height: 470px; } }
.v2 .ok, .v2 .album .ok, .v2 .album .note { background: color-mix(in srgb, var(--ok) 13%, var(--bg)); color: var(--ink); border: 0; border-radius: var(--r-s); }
.v2 .tag { background: var(--bg2); color: var(--ink2); }

/* Guest page follows the phone: a dark-mode phone at the reception gets a dark page. */
@media (prefers-color-scheme: dark) {
  body.x-guest-page:not(.ui-afterglow) { --bg: #000; --bg2: #161617; --bg3: #1c1c1e; --ink: #f5f5f7; --ink2: #a1a1a6; --ink3: #6e6e73; --line: rgba(255,255,255,.14);
    --accent: #f5f5f7; --accent-ink: #000; --focus: #2997ff; --sheet-bg: #1c1c1e; --field-bg: #2c2c2e; --field-line: transparent; color-scheme: dark; }
  body.x-guest-page.ui-vellum { --bg: #14120e; --bg2: #1f1c17; --bg3: #26221c; --ink: #f1ece2; --ink2: #b3aa9b; --accent: #f1ece2; --accent-ink: #14120e; --sheet-bg: #1f1c17; --field-bg: #26221c; }
  body.x-guest-page.ui-rams { --bg: #161615; --bg2: #21211f; --bg3: #2a2a28; --accent: #ff5a1f; --accent-ink: #161615; --sheet-bg: #21211f; --field-bg: #2a2a28; }
  body.x-guest-page .x-cover::after { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 30%, transparent 45%, var(--bg) 100%); }
  body.x-guest-page .x-vis label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
}
@media (min-width: 900px) {
  .x-cover:not(.none) { max-width: 1120px; margin: 22px auto 0; height: min(72vh, 720px); border-radius: 28px; }
  .x-cover:not(.none) img { object-position: 50% 28%; }
  .x-owner { top: 34px; left: max(34px, calc(50% - 548px)); }
}
.x-guest-foot { text-align: center; margin-top: 48px; }
.x-guest-foot .x-made { margin: 0 0 10px; }
.x-guest-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.x-guest-foot nav a { color: var(--ink2); text-decoration: none; }
.x-guest-foot nav a:hover { color: var(--ink); }
.x-owner-bar { padding-top: 18px; padding-bottom: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.x-owner-bar .x-tabs { margin-bottom: 0; }
.x-owner-bar p { margin: 0; font-size: 14px; color: var(--ink2); }
/* The add button sits in the flow under the welcome note and pins to the bottom once scrolled past. */
.x-dock { position: sticky; bottom: 0; margin-top: 22px; }
@media (max-width: 699px) { .x-cover:not(.none) { height: min(68vh, 640px); } }

/* ---------- October 2 fixes ---------- */
/* Card quantity choices: name and size on two lines, price on the right with room to breathe. */
.x-choice-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.x-choice-main small { font-size: 14px; color: var(--ink2); }
.x-choice .x-price { margin-left: auto; padding-left: 16px; white-space: nowrap; font-size: 15px; }

/* The real printed card, front and back, overlapping. */
.x-cards-art { position: relative; height: 230px; margin: 0 0 28px; display: block; }
.x-cards-art img { position: absolute; width: min(300px, 62%); border-radius: 8px; box-shadow: var(--shadow); }
.x-cards-art .x-card-front { left: 0; top: 0; transform: rotate(-3deg); z-index: 2; }
.x-cards-art .x-card-back { right: 0; bottom: 0; transform: rotate(3deg); }
.ks-art-card img.x-cardpair-front, .ap-art-qr img.x-cardpair-front { position: absolute; width: 56%; border-radius: 8px; transform: translate(-24%, -12%) rotate(-6deg); z-index: 2; box-shadow: 0 18px 36px -14px rgba(0,0,0,.3); }
.ks-art-card img.x-cardpair-back, .ap-art-qr img.x-cardpair-back { position: absolute; width: 56%; border-radius: 8px; transform: translate(24%, 14%) rotate(5deg); box-shadow: 0 18px 36px -14px rgba(0,0,0,.3); }
.ks-cardpair { position: relative; margin-top: auto; height: 220px; }
.ks-cardpair img { position: absolute; width: 56%; border-radius: 8px; box-shadow: 0 24px 50px -16px rgba(28,27,25,.3); }
.ks-cardpair img:first-child { left: 4%; bottom: 10px; transform: rotate(-5deg); z-index: 2; }
.ks-cardpair img:last-child { right: 2%; bottom: -30px; transform: rotate(4deg); }

/* Privacy choice: only a real selection looks selected; keyboard focus gets its own ring. */
.v2 .x-vis label:focus-within { outline: none; }
.x-vis:has(#visibility-error:not([style*="none"])) label { box-shadow: inset 0 0 0 1.5px var(--bad); }
.x-vis .x-vis-err { font-weight: 500; }
/* No cover yet: an invitation-like card instead of a bare title. */
.x-cover.none { max-width: 760px; margin: 28px auto 0; padding: clamp(56px, 10vh, 96px) 24px; border-radius: 28px; background: var(--bg2); text-align: center; position: relative; }
.x-cover.none::before { content: ""; position: absolute; inset: 12px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
@media (max-width: 699px) { .x-cover.none { margin: 16px 16px 0; } }
.x-cover.none .x-cover-text { padding: 0; }
.x-cover.none h1 { font-size: clamp(48px, 10vw, 84px); margin: 6px 0 10px; }
.x-cover.none p { color: var(--ink2); opacity: 1; }
.x-cover-kicker { font-size: 13px !important; text-transform: uppercase; letter-spacing: .14em !important; }
.x-cover-hint { margin-top: 18px !important; font-size: 14px !important; }
.x-owner-bar p b { color: var(--ink); font-weight: 600; }
/* Host slideshow page: a TV preview and plain instructions. */
.x-show { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .x-show { grid-template-columns: 1fr; } }
.x-screen { margin: 0; }
.x-screen-in { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 10px solid #1c1b19; box-shadow: var(--shadow); }
.x-screen-fill { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) brightness(.5); }
.x-screen-photo { position: relative; display: block; height: 100%; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.x-screen-cap { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.x-screen-qr { position: absolute; right: 12px; bottom: 12px; background: #fff; color: #1c1b19; border-radius: 10px; padding: 6px 6px 4px; text-align: center; font-size: 9px; font-weight: 600; width: 78px; }
.x-screen-qr img { display: block; width: 66px; height: 66px; margin: 0 auto 2px; }
.x-screen-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: rgba(255,255,255,.8); gap: 8px; }
.x-screen-empty b { font: 400 clamp(30px, 4vw, 44px)/1 var(--font-display); color: #fff; }
.x-screen-empty span { font-size: 14px; }
.x-screen figcaption { font-size: 13px; color: var(--ink2); margin-top: 10px; text-align: center; }
.x-show-count { color: var(--ink) !important; background: var(--bg2); border-radius: 12px; padding: 14px 16px; font-size: 15px !important; }
.x-show-count b { font-weight: 600; }
.v2 kbd { font: 500 12px var(--font-mono); padding: 1px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg3); }
.v2 .toast { width: min(560px, calc(100% - 32px)); padding: 14px 18px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.v2 label.x-choice { display: flex; margin: 0; font-size: 16px; font-weight: 400; }
/* Owner viewing their upload page: a floating pill instead of a full white bar. */
.x-owner-pill { position: fixed; z-index: 55; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(28,27,25,.62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100% - 24px); }
.x-owner-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; text-decoration: none; font-size: 22px; line-height: 1; }
.x-owner-back:hover { background: rgba(255,255,255,.14); }
.v2 .x-owner-pill .x-tabs { position: static; display: inline-flex; grid-template-columns: none; margin: 0; padding: 0; background: none; border: 0; gap: 2px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.v2 .x-owner-pill .x-tabs a { flex-direction: row; padding: 8px 12px; font-size: 13px; border-radius: 10px; color: rgba(255,255,255,.75); gap: 6px; }
.v2 .x-owner-pill .x-tabs a svg { width: 16px; height: 16px; }
.v2 .x-owner-pill .x-tabs a:hover { color: #fff; background: rgba(255,255,255,.12); }
.v2 .x-owner-pill .x-tabs a .n { color: rgba(255,255,255,.5); }
@media (max-width: 560px) { .v2 .x-owner-pill .x-tabs a span:not(.n) { display: none; } .v2 .x-owner-pill .x-tabs a .n { display: none; } .v2 .x-owner-pill .x-tabs a { padding: 8px 10px; } }
.x-owner-note { max-width: var(--wrap); margin: 0 auto 18px; padding: 12px 22px; font-size: 14px; color: var(--ink2); }
.x-owner-note b { color: var(--ink); font-weight: 600; }
@media (min-width: 700px) { .x-owner-note { padding: 0 22px; } }
/* Dark-mode guest page: the nav and sheet follow the page instead of staying white. */
@media (prefers-color-scheme: dark) { body.x-guest-page:not(.ui-afterglow) { --nav-bg: rgba(0,0,0,.6); } body.x-guest-page.ui-vellum, body.x-guest-page.ui-rams { --nav-bg: rgba(20,18,14,.6); } }
.x-reset { font: 500 12px var(--font); padding: 5px 9px; border-radius: 6px; border: 0; background: #c4321f; color: #fff; cursor: pointer; }
.x-dev { display: inline-flex; margin: 0; }
.x-photos-bar .x-actions { flex-wrap: wrap; }
@media (min-width: 900px) { body:has(.x-owner-pill) .x-cover:not(.none) { margin-top: 66px; } }
.x-date-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bg2); color: var(--ink2); font-size: 15px; max-width: 32em; }
.v2 .stack > label + input, .v2 .stack > label + select, .v2 .stack > label + textarea { margin-top: 0; }
.v2 .stack > input + label, .v2 .stack > select + label, .v2 .stack > p + label { margin-top: 22px; }
/* Local test tools (DEV_RESET only): a small tray in the corner, outside the page layout. */
.x-devtray { position: fixed; z-index: 90; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(28,27,25,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.x-devtray select { max-width: 150px !important; background: #fff; color: #1c1b19; border: 0; }
body.picking .x-devtray { display: none; }
@media (max-width: 699px) { .x-devtray { bottom: calc(74px + env(safe-area-inset-bottom)); left: 8px; padding: 4px; } .x-devtray select { max-width: 96px !important; } }
.v2 main.wrap.album { padding-top: 0; }
.x-screen-empty { padding: 0 110px 0 20px; }
@media (max-width: 560px) { .x-screen-empty { padding: 0 92px 0 12px; } .x-screen-empty b { font-size: 26px; } .x-screen-empty span { font-size: 12px; } }
@media (max-width: 699px) { .x-grid.host-grid.editing { grid-template-columns: repeat(2, 1fr); } }
.v2 .host-grid .cell .mod { flex-wrap: nowrap; }
.x-picked { contain: content; }
.v2 .ad-consent { border-radius: var(--r-l); box-shadow: var(--shadow); } .v2 .ad-consent .btn { white-space: nowrap; min-height: 40px; padding: 0 18px; font-size: 15px; }
/* Test tools: a small collapsed pill under every overlay (lightbox, sheet, toasts). */
.x-devtray { z-index: 40; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.x-devtray summary { list-style: none; cursor: pointer; font: 600 11px var(--font); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(28,27,25,.55); padding: 5px 9px; border-radius: 999px; opacity: .55; }
.x-devtray summary::-webkit-details-marker { display: none; }
.x-devtray[open] summary, .x-devtray summary:hover { opacity: 1; }
.x-devtray-in { display: flex; gap: 6px; align-items: center; margin-top: 6px; padding: 6px; border-radius: 10px; background: rgba(28,27,25,.85); }
@media (max-width: 699px) { .x-devtray { z-index: 44; } }
body.picking .x-devtray, body:has(.lightbox.open) .x-devtray { display: none; }
/* The couple sees who took each photo: a small name label on every tile, as on the home page. */
.v2 .host-grid .cell .who { opacity: 1; left: 6px; right: auto; bottom: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.86); color: #1c1b19; font-size: 11px; font-weight: 500; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v2 .host-grid .cell:hover .who, .v2 .host-grid.editing .cell .who { opacity: 0; }
@media (hover: none) { .v2 .host-grid .cell:hover .who { opacity: 1; } .v2 .host-grid.editing .cell .who { opacity: 0; } }
.v2 .cell .badge.cover-badge { top: 6px; left: auto; right: 6px; bottom: auto; }
/* Phones: the link and Copy button come first; the big QR pass follows. */
@media (max-width: 860px) { .x-share-side { display: contents; } .x-share-link { order: -1; } }
