:root {
  --bg: #0B0B0C; --surface: #141416; --raised: #1C1C1F; --border: #26262A;
  --text: #F2F2F2; --dim: #8A8A90; --faint: #55555C; --green: #34D399; --amber: #F5C451; --red: #F06A6A;
  --radius: 10px; --radius-sm: 7px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
.app { padding: 0 16px 24px; max-width: 720px; width: 100%; margin: 0 auto; flex: 1; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.center { text-align: center; }
.small { font-size: 13px; }
h1 { font-size: 22px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -0.2px; }
h2 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin: 22px 4px 8px; }
.button { display: inline-block; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--border); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.button.accent { background: var(--green); color: var(--bg); border-color: var(--green); }
.button.accent:active { filter: brightness(0.9); }
.button[disabled], .button.disabled { opacity: 0.45; cursor: default; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; line-height: 0; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--border); color: var(--text); cursor: pointer; flex: none; }
.iconbtn:active { background: var(--border); }
.iconbtn:focus { outline: none; }
.iconbtn:focus-visible { outline: 2px solid var(--dim); outline-offset: 2px; }
.empty { text-align: center; padding: 48px 12px; }
.empty h1 { margin-top: 0; }
.empty p { margin: 10px 0; }
.pendlive { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px !important; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--dim); font-size: 13px; line-height: 1.3; }
.pendlive i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.pendlive.ok i { background: var(--green); animation: none; }
.pendlive.off i { background: var(--faint); }
@media (prefers-reduced-motion: reduce) { .pendlive i { animation: none; } }

/* the plain bar with the lockup, on the pages around the gallery (join, terms, privacy, expired, ...) */
.hero { position: relative; height: calc(env(safe-area-inset-top) + 124px); display: grid; place-items: center; padding-top: env(safe-area-inset-top); background: var(--bg); z-index: 0; overflow: hidden; }
.hero.plain { height: calc(env(safe-area-inset-top) + 72px); }
/* the lockup: the mark (icon.svg) then the wordmark (wordmark.svg, Instrument Sans SemiBold as paths), the
   one way the name appears as a logo on the web (Will, voice memo 2026-10-22). Same sizes as the homepage
   header in site/public/site.css .brand: mark 28 px, wordmark 17 px tall, 10 px between. */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .mark { width: 28px; height: 28px; flex: none; }
.lockup .word { height: 17px; width: auto; }
.wordmark { position: relative; z-index: 1; padding: 8px 12px; }
.app { position: relative; z-index: 1; }
.back { font-size: 13px; color: var(--dim); padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--raised); }

/* ---- the gallery page (memo 20261110 092634) ----------------------------------------------------
   The hero: the gallery's best photo full bleed (src/hero.ts), the lockup top left on a soft dark fall
   from the top edge, the gallery's name lower left where the photo fades into the page. The fade and
   a band of plain ground under it are the separation from the photos (no rule, no box). The mark and
   wordmark are inline vectors (app.html), drawn bigger than the 28 px lockup so they stay sharp and read
   on a photo. Plain (no photo) on the list and the empty pages: the bar with the lockup alone. */
.ghero { position: relative; z-index: 0; height: clamp(320px, 56vh, 640px); height: clamp(320px, 56svh, 640px); background: var(--bg); overflow: hidden; }
@media (min-width: 720px) { .ghero { height: clamp(380px, 62vh, 720px); height: clamp(380px, 62svh, 720px); } }
.ghero .heroimg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; margin: 0; background: var(--bg); cursor: zoom-in; display: block; }
.ghero .heroimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.ghero .heroimg img.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ghero .heroimg img { transition: none; } }
.ghero::before, .ghero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.ghero::before { top: 0; height: calc(env(safe-area-inset-top) + 140px); background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); }
.ghero::after { bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.55) 45%, #0B0B0C 100%); }
.ghero .lockup { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 18px); left: 18px; gap: 12px; }
.ghero .lockup .mark { width: 38px; height: 38px; }
.ghero .lockup .word { height: 22px; width: auto; }
@media (min-width: 720px) { .ghero .lockup { top: calc(env(safe-area-inset-top) + 26px); left: 32px; } .ghero .lockup .mark { width: 44px; height: 44px; } .ghero .lockup .word { height: 25px; } }
/* the name lower left, and over it the app's EDIT chip when the hero is an edited shot */
.ghero .herofoot { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.ghero .heroname { margin: 0; color: #fff; font-size: 34px; line-height: 1.08; font-weight: 700; letter-spacing: -0.8px; overflow-wrap: anywhere; max-width: 100%; }
@media (min-width: 720px) { .ghero .herofoot { left: 32px; right: 32px; bottom: 34px; gap: 14px; } .ghero .heroname { font-size: 52px; letter-spacing: -1.4px; } }
.ghero .herofoot .ed[hidden] { display: none; }
@media (min-width: 720px) { .ghero .herofoot .ed { padding: 4px 7px; font-size: 11px; border-radius: 5px; } }
/* the hero's chips in one row over the name: EDIT, then the Preview mark (which takes taps through the foot) */
.ghero .herochips { display: flex; align-items: center; gap: 6px; }
.ghero .herochips:not(:has(> :not([hidden]))) { display: none; }
.ghero .herochips .pv { pointer-events: auto; }
@media (min-width: 720px) { .ghero .herochips .pv { height: 24px; padding: 0 10px 0 9px; gap: 5px; border-radius: 12px; font-size: 12px; } .ghero .herochips .pv .pvdot { width: 8px; height: 8px; } }
.ghero.noimg { height: calc(env(safe-area-inset-top) + 210px); }
.ghero.noimg .heroimg { display: none; }
.ghero.plain { height: calc(env(safe-area-inset-top) + 76px); }
.ghero.plain::before, .ghero.plain::after, .ghero.plain .heroimg, .ghero.plain .herofoot { display: none; }
/* before the page's data is in (src/galleryHint.ts): the hero at its loaded height, empty, breathing
   like the waiting squares under the same fades, the lockup and the gallery's name already in place */
.ghero.wait .heroimg { background: var(--surface); animation: tilewait 2.2s ease-in-out infinite; cursor: default; }
@media (prefers-reduced-motion: reduce) { .ghero.wait .heroimg { animation: none; } }
/* the hero photo's tiny copy (src/tinyPhoto.ts, about 24 px on its long side) blurred up to the box,
   there from the first paint and kept under the photo, which fades in over it once decoded */
.ghero .heroimg img.blur { opacity: 1; transition: none; filter: blur(22px); transform: scale(1.15); }
@media (min-width: 720px) { .ghero .heroimg img.blur { filter: blur(40px); } }

.gpage { max-width: none; padding: 0 0 28px; }
.gpage .empty { padding: 48px 20px; max-width: 560px; margin: 0 auto; }
.narrow { max-width: 520px; margin: 0 auto; padding: 0 20px; }
.status { padding-top: 24px; }

/* the photos, edge to edge: squares 2 px apart across the full width, after the plain band under the hero */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 18px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { position: relative; display: block; min-width: 0; aspect-ratio: 1; padding: 0; margin: 0; border: 0; border-radius: 0; background: var(--surface); overflow: hidden; cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 240ms ease; }
.tile img.in { opacity: 1; }
/* a square whose picture is on its way breathes: the fill lifts to the hairline grey and settles
   back, slowly (br_eab8qx31; the app's PlaceholderTiles does the same). A slot the phone has not
   sent yet keeps its still symbol. */
.tile.wait { animation: tilewait 2.2s ease-in-out infinite; }
div.tile.wait { cursor: default; }
@keyframes tilewait { 50% { background-color: var(--border); } }
@media (prefers-reduced-motion: reduce) { .tile.wait { animation: none; } }
.tile:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* the app's EDIT chip (GroupList Badge: rgba(0,0,0,0.6), 9 px bold, 0.8 tracking), bottom left of a
   tile whose shot has an edit, and over the hero's name (memo 20261112 061248) */
.ed { display: inline-block; padding: 3px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: 0.8px; pointer-events: none; }
.tile .ed { position: absolute; z-index: 1; left: 5px; bottom: 5px; }
/* The Preview mark (Will's voice memo 2026-11-24, "the preview with the yellow dot on top of the
   images, like we used to have": be9f173b, dropped by the 11-10 redo). The previews flyer's amber dot
   and the word on a dark see-through pill, top left of a tile whose full file is not in yet (the EDIT
   chip keeps bottom left, so the two never meet), and beside the hero's EDIT chip. It stands still,
   never animated. A tap explains it (br_agkpy5gg); the pill is small, so the tap area reaches past it. */
.pv { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px 0 6px; margin: 0; border: 0; border-radius: 9px; background: rgba(11, 11, 12, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-family: inherit; font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pv::after { content: ""; position: absolute; inset: -8px; }
.pv .pvdot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.pv[hidden] { display: none; }
.pv:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tile .pv { position: absolute; z-index: 1; top: 5px; left: 5px; }
@media (min-width: 720px) { .tile .pv { top: 7px; left: 7px; height: 20px; padding: 0 8px 0 7px; border-radius: 10px; font-size: 10.5px; } .tile .pv .pvdot { width: 7px; height: 7px; } }

/* Download all (green, the one green on the page) and Share group, full width of the column */
.dlwrap { display: grid; gap: 10px; margin-top: 32px; }
.button.wide, .button.big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px; border-radius: 12px; font-size: 16px; font-weight: 650; text-decoration: none; }
.button.big { min-height: 58px; font-size: 17px; }
.button.big i, .button.wide i { display: inline-grid; place-items: center; line-height: 0; }
.button.accent.big { color: #0B0B0C; }
.button.big.busy { opacity: 0.7; }
.button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.button.ghost:active { background: var(--raised); }
.dlwrap .savehint { text-align: center; padding: 0; }

/* the section titles under the buttons: Get the edits, Your photographer */
.sectitle, .signup-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; text-transform: none; color: var(--text); margin: 0 0 6px; line-height: 1.25; }
.signupwrap { margin-top: 52px; }
.photogwrap { margin-top: 52px; }
.allwrap { margin-top: 44px; }
.allwrap:empty, .photogwrap:empty, .signupwrap:empty { display: none; }

/* Your photographer: face, name, company, View profile, then one row per social link */
.photog .sectitle { margin-bottom: 16px; }
.pwho { display: flex; align-items: center; gap: 14px; }
.avatar.big { width: 64px; height: 64px; font-size: 20px; }
.pname { display: grid; gap: 2px; min-width: 0; }
.pname b { font-size: 18px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.pname span { color: var(--dim); font-size: 14px; }
.pname .plink { color: var(--dim); font-size: 14px; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; justify-self: start; }
.psocial { display: grid; gap: 8px; margin-top: 18px; }
.prow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; }
.prow:active { background: var(--raised); }
.prow i { display: inline-grid; place-items: center; line-height: 0; color: var(--text); }
.prow .phandle { margin-left: auto; color: var(--dim); font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* the list of galleries (/me with several): each its hero photo, the name on the fade */
.listhead h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin: 6px 0 16px; }
.glist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
@media (min-width: 720px) { .glist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .glist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gtile { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.gtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gtile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(11, 11, 12, 0), rgba(11, 11, 12, 0.85)); }
.gtname { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.15; }
/* the list before its data (src/galleryHint.ts): each card at its loaded size, breathing like the waiting squares, the name in place */
.gtile.wait { animation: tilewait 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gtile.wait { animation: none; } }

/* the ask after Download all: Get the edits as a sheet over a dark, blurred page */
.editsask { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px calc(env(safe-area-inset-bottom) + 16px); background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overscroll-behavior: contain; animation: ask-fade 160ms ease; }
@media (min-width: 560px) { .editsask { align-items: center; } }
.editsask .askcard { width: 100%; max-width: 420px; display: grid; gap: 0; padding: 22px 18px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); animation: ask-in 200ms cubic-bezier(.2,.8,.2,1); }
.editsask .notnow { justify-self: center; margin-top: 4px; padding: 10px 16px; border: 0; background: none; color: var(--dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .editsask, .editsask .askcard { animation: none; } }

/* the share sheet (br_aq8jmvh8): Share link, or email the album to someone else in the shot */
.sharesheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px calc(env(safe-area-inset-bottom) + 16px); background: rgba(0,0,0,0.6); touch-action: manipulation; animation: ask-fade 160ms ease; }
.sharesheet .askcard { width: 100%; max-width: 420px; display: grid; gap: 10px; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,0.5); animation: ask-in 200ms cubic-bezier(.2,.8,.2,1); }
.sharesheet .asktitle { color: var(--text); font-size: 17px; font-weight: 600; line-height: 22px; }
.sharerows { display: grid; gap: 8px; }
.sharerow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--raised); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.sharerow i { display: inline-grid; place-items: center; line-height: 0; color: var(--dim); }
.sharerow:active { background: var(--border); }
.sharesheet .askbtns { display: flex; justify-content: flex-end; }
.sharesheet .askbtns .button { padding: 10px 14px; font-size: 14px; }
.sharesheet .friend { padding: 0; }
@media (prefers-reduced-motion: reduce) { .sharesheet, .sharesheet .askcard { animation: none; } }
/* the friend's email form inside the share sheet (br_33p8dmam, moved there by br_aq8jmvh8) */
.friend { padding: 8px 6px 6px; }
.friend .fopen { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.friend .fopen i { display: inline-grid; place-items: center; line-height: 0; }
.friend .fopen:active { color: var(--text); }
.friend .ftitle { margin: 2px 0 2px; color: var(--text); font-size: 15px; font-weight: 600; }
.friend .fsub { margin: 0 0 10px; color: var(--dim); font-size: 13px; line-height: 1.4; }
.friend, .friend form { display: flex; flex-direction: column; gap: 8px; }
.friend input { font: inherit; color: #111; background: #FFFFFF; border: 1px solid #FFFFFF; border-radius: var(--radius-sm); padding: 11px 12px; min-width: 0; width: 100%; }
.friend input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.friend input::placeholder { color: #8A8A90; }
.friend .actions { display: flex; gap: 8px; }
.friend .actions .button { flex: 1; padding: 11px 14px; font-size: 14px; }
.friend .fnote, .sharesheet .fnote { margin: 8px 0 2px; color: var(--green); font-size: 13px; }
.friend .fnote.err, .sharesheet .fnote.err { color: var(--red); }
.friend .fsent, .sharesheet .fsent { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; color: var(--dim); font-size: 13px; overflow-wrap: anywhere; }
.friend .fsent .tick, .sharesheet .fsent .tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: var(--bg); flex: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--raised); flex: none; }
.avatar.initial { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.status { color: var(--dim); font-size: 13px; padding: 4px 6px 10px; }

/* The upload symbol (br_9xpncph2): top left on a tile, centred in a slot still waiting for its preview. */
.sym { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; pointer-events: none; }
.sym svg { display: block; width: 100%; height: 100%; }
.sym.mid { top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.spin .ring { transform-origin: 12px 12px; animation: turn 2.4s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin .ring { animation: none; } }
.q { position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 5px; border-radius: 4px; background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: 0.5px; pointer-events: none; }
.q .qdot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.q.hq .qdot { background: var(--green); }

/* viewer */
.viewer { position: fixed; inset: 0; z-index: 20; overflow: hidden; }
.viewer[hidden] { display: none; }
.viewer .backdrop { position: absolute; inset: 0; background: #000; }
.viewer .stage { position: absolute; inset: 0; touch-action: none; }
.viewer .strip { position: absolute; inset: 0; will-change: transform; }
.viewer .slot { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer .slotimg { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.viewer .slotimg img { position: absolute; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transform-origin: center; will-change: transform; }
.viewer .slotimg img.pre { filter: blur(0.5px); }
/* the bar (controls tidy, memo 20261018 220009): one control height (36px), one radius, one translucent fill, three aligned
   rows. Name + LQ/HQ badge and the place under it, versions + Download on the right; the
   reactions joined into one group (signing in is asked in a dialog on tap, memo 20261019 005320). */
.viewer { --ctl: 36px; --ctl-bg: rgba(255,255,255,0.12); --ctl-on: rgba(255,255,255,0.26); }
.viewer .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 40px 16px calc(env(safe-area-inset-bottom) + 14px); background: linear-gradient(transparent, rgba(0,0,0,0.6) 34px, rgba(0,0,0,0.88)); color: var(--dim); font-size: 13px; transition: opacity 180ms ease; }
.viewer .barrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.viewer .bar .info { min-width: 0; display: grid; gap: 2px; }
.viewer .bar .nameline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.viewer .bar .name { color: var(--text); font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.viewer .bar .row { display: flex; gap: 0; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer .bar .q { position: static; flex: none; height: 18px; font-size: 10px; padding: 0 6px 0 5px; border-radius: 5px; background: var(--ctl-bg); }
.viewer .bar .right { display: flex; align-items: center; gap: 8px; flex: none; }
.viewer .bar .dl { display: inline-grid; place-items: center; width: var(--ctl); height: var(--ctl); padding: 0; border-radius: var(--radius-sm); background: var(--ctl-bg); color: #fff; }
.viewer .bar .dl[hidden] { display: none; }
.viewer .bar .dl.save { grid-auto-flow: column; gap: 6px; border: 0; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.viewer .bar .dl.save:not([data-state=""]) { width: auto; padding: 0 12px 0 10px; }
.viewer .bar .raw { display: inline-grid; place-items: center; height: var(--ctl); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--ctl-bg); text-decoration: none; }
.viewer .bar .savehint { padding: 4px 0 0; color: var(--dim); white-space: normal; }
/* The version sheet: the Versions button (icon, the word, count badge) by Download; open, the bar's
   name and reactions give way to a sideways strip of thumbnails, newest edit left, original right.
   The word is the app's BarButton label (memo 20261112 061248: the bare icon went unseen). */
.viewer .bar .vbtn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl); padding: 0 12px 0 10px; border: 0; border-radius: var(--radius-sm); background: var(--ctl-bg); color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.viewer .bar .vbtn .vword { white-space: nowrap; }
.viewer .bar .vbtn[hidden] { display: none; }
.viewer .bar .vbtn i { line-height: 0; }
.viewer .bar .vbtn.on { background: #fff; color: #000; }
.viewer .bar .vcount { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fff; color: #000; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px rgba(0,0,0,0.6); }
.viewer .bar .vbtn.on .vcount { background: #000; color: #fff; }
.viewer .bar .vinfo, .viewer .vstrip { display: none; }
.viewer .bar.picking .info, .viewer .bar.picking .socialrow { display: none; }
.viewer .bar.picking .vinfo { display: grid; gap: 2px; min-width: 0; }
.viewer .bar .vname { color: var(--text); font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .bar .vsub { font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer .bar.picking .vstrip { display: flex; gap: 8px; margin: 0 -16px; padding: 6px 16px 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; touch-action: pan-x; }
.viewer .vstrip::-webkit-scrollbar { display: none; }
/* The open (br_3tkzmtzr reply 2026-10-19 08:14): the strip grows open under the row, the
   thumbnails slide in from the right (the icon's side) one after another, newest first, and the
   version title fades in where the name was. Closing collapses it back. Only on open/close, never
   on a pick, and nothing moves under reduced motion (the JS skips the classes). */
.viewer .bar.entering .vstrip { animation: vstrip-open 300ms cubic-bezier(.2,.8,.2,1) both; }
.viewer .bar.entering .vt { animation: vt-in 340ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(60ms + var(--k, 0) * 45ms); }
.viewer .bar.entering .vinfo { animation: vinfo-in 240ms ease-out both; }
.viewer .bar.leaving .vstrip { animation: vstrip-close 200ms cubic-bezier(.4,0,.6,1) both; }
.viewer .bar.leaving .vinfo { animation: vinfo-in 160ms ease-in reverse both; }
@keyframes vstrip-open { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } to { max-height: 112px; opacity: 1; } }
@keyframes vstrip-close { from { max-height: 112px; opacity: 1; } to { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateX(56px) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes vinfo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.viewer .vt { flex: none; display: grid; gap: 6px; justify-items: center; width: 72px; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; cursor: pointer; scroll-snap-align: start; }
.viewer .vt .vimg { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--ctl-bg); box-shadow: 0 0 0 1px rgba(255,255,255,0.14); }
.viewer .vt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer .vt.on .vimg { box-shadow: 0 0 0 2px #fff; }
.viewer .vt .vlbl { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer .vt.on .vlbl { color: #fff; }
/* the original the phone has not sent yet: its place in the strip, the in-line upload symbol, not pickable */
.viewer .vt.coming { cursor: default; }
.viewer .vt.coming .vimg { position: relative; }
.viewer .vt.coming .sym.mid { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.viewer .socialrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Versions and Download level with the reactions, on the right of their row; they wrap under on a narrow phone, and stay there while Versions is open */
.viewer .actrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.viewer .actrow .socialrow { flex: 1 1 auto; min-width: 0; }
.viewer .actrow .right { margin-left: auto; }
.viewer .reacts { display: flex; height: var(--ctl); border-radius: var(--radius-sm); background: var(--ctl-bg); flex: none; }
.viewer .react { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 9px; border: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; font-variant-numeric: tabular-nums; }
.viewer .react + .react { box-shadow: inset 1px 0 0 rgba(255,255,255,0.1); }
.viewer .react:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.viewer .react:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.viewer .react i { display: inline-grid; place-items: center; }
.viewer .react:active { background: rgba(255,255,255,0.1); }
.viewer .react.on.like { background: rgba(52, 211, 153, 0.26); color: var(--green); }
.viewer .react.on.dislike { background: rgba(240, 106, 106, 0.26); color: var(--red); }
.viewer .react.on.cmts { background: var(--ctl-on); }
/* Tap targets (Will on br_sbpqg865, fix-2): every viewer control keeps its 36 px look and takes touches on a
   box at least 44 px tall and wide. The box is an unseen ::after, so nothing in the row moves. The 8 px gaps
   between controls leave room for 4 px each side. */
.viewer .react, .viewer .bar .dl, .viewer .bar .raw { position: relative; }
.viewer .react::after, .viewer .bar .vbtn::after, .viewer .bar .raw::after { content: ""; position: absolute; inset: -4px 0; }
.viewer .bar .dl::after, .viewer .close::after { content: ""; position: absolute; inset: -4px; }
/* The sign-in ask (voice memo 20261019 005320): a tap on Like, Dislike or the comment box while
   locked pops this over the viewer instead of a sign-in button in the row. */
.viewer .ask, .lqask { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px 20px calc(env(safe-area-inset-bottom) + 24px); background: rgba(0,0,0,0.6); touch-action: manipulation; animation: ask-fade 160ms ease; }
.viewer .askcard, .lqask .askcard { width: 100%; max-width: 340px; display: grid; gap: 8px; padding: 20px 18px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,0.5); animation: ask-in 200ms cubic-bezier(.2,.8,.2,1); }
.viewer .asktitle, .lqask .asktitle { color: var(--text); font-size: 17px; font-weight: 600; line-height: 22px; }
.viewer .askg { display: grid; gap: 6px; margin-top: 6px; }
.viewer .askg .gslot { display: flex; justify-content: center; min-height: 44px; }
.viewer .askg .gbtn { text-decoration: none; }
.viewer .askg .gnative { display: flex; justify-content: center; }
.viewer .askg .note:empty { display: none; }
.viewer .askbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.viewer .askbtns .button { display: inline-flex; align-items: center; justify-content: center; height: var(--ctl); padding: 0 14px; font-family: inherit; color: var(--text); text-decoration: none; }
.viewer .askbtns .button.primary { color: var(--bg); }
@keyframes ask-fade { from { opacity: 0; } }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .viewer .ask, .viewer .askcard, .lqask, .lqask .askcard { animation: none; } }
.viewer .note { flex-basis: 100%; color: var(--amber); font-size: 12px; line-height: 16px; }
/* the previews notice (voice memo 20261101): the viewer's ask dialog, over the page or the viewer, with an email box */
.lqask { position: fixed; z-index: 40; overscroll-behavior: contain; }
/* Will, br_302gkxat: the gallery behind was too noisy, so a darker, blurred backdrop and a green card. */
.lqask { background: rgba(0,0,0,0.86); -webkit-backdrop-filter: blur(14px) saturate(0.6); backdrop-filter: blur(14px) saturate(0.6); }
.lqask .askcard { background: var(--green); border-color: var(--green); color: #0B0B0C; }
.lqask .asktitle { color: #0B0B0C; }
.lqask .askcard { position: relative; gap: 10px; }
.lqask .asktitle { display: flex; align-items: flex-start; gap: 8px; padding-right: 28px; }
.lqask .asktitle .q { position: static; flex: none; height: 18px; margin-top: 2px; font-size: 10px; padding: 0 6px 0 5px; border-radius: 5px; background: #0B0B0C; color: var(--text); }
.lqask .lqsub { margin: 0; color: rgba(11,11,12,0.78); font-size: 14px; line-height: 1.45; }
.lqask .lqsub b { color: #0B0B0C; font-weight: 600; overflow-wrap: anywhere; }
.lqask input { font: inherit; color: #111; background: #FFFFFF; border: 1px solid rgba(11,11,12,0.18); border-radius: var(--radius-sm); padding: 12px; width: 100%; margin-top: 4px; }
.lqask input:focus { outline: 2px solid #0B0B0C; outline-offset: 1px; }
.lqask input::placeholder { color: #8A8A90; }
.lqask .lqerr { color: #7A0F0F; font-weight: 600; font-size: 13px; line-height: 16px; }
.lqask .lqerr:empty { display: none; }
.lqask .lqbtns { display: grid; gap: 8px; margin-top: 6px; }
.lqask .lqbtns .button { min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: #0B0B0C; background: transparent; border-color: rgba(11,11,12,0.45); }
.lqask .lqbtns .button.primary { color: var(--text); background: #0B0B0C; border-color: #0B0B0C; }
.lqask .lqx { position: absolute; top: 12px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-sm); background: none; color: rgba(11,11,12,0.7); font-size: 15px; cursor: pointer; }
.lqask .lqx:active { background: rgba(11,11,12,0.12); }
.lqask .button:focus-visible, .lqask .lqx:focus-visible { outline: 2px solid #0B0B0C; outline-offset: 2px; }
/* a phone on its side: versions and reactions share one line so the bar stays short */
@media (max-height: 500px) { .viewer .bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 28px; } .viewer .barrow { flex-basis: 100%; } .viewer .bar.picking .vstrip { flex-basis: 100%; } .viewer .actrow { flex: 1 1 auto; min-width: 0; } }
.viewer .bar .dl[hidden] { display: none; }
/* Save to Photos (Update 53/54): looks like Download, the same down arrow; a word joins it only for a state (Getting it, Tap again) */
.viewer .bar .dl.save .lbl:empty { display: none; }
.viewer .bar .dl.save[data-state="busy"] { opacity: 0.6; }
/* Saved (br_sbpqg865 motion-2): after a single save goes through, the down arrow crossfades to a check, opacity only,
   160 ms in, 2 s held (app.js saved()), 120 ms back. Both glyphs share one grid cell, so the 36 px button and its 44 px
   touch box never move or resize, and no word is added. Reduced motion: the glyph swaps at once. The words go to
   screen readers through .saynote, a visually hidden live region. */
.viewer .bar .dl .glyph { display: grid; }
.viewer .bar .dl .glyph > svg { grid-area: 1 / 1; transition: opacity 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.viewer .bar .dl .glyph .g-done { opacity: 0; }
.viewer .bar .dl.saved .glyph .g-down { opacity: 0; }
.viewer .bar .dl.saved .glyph .g-done { opacity: 1; }
.viewer .bar .dl.saved .glyph > svg { transition-duration: 160ms; }
@media (prefers-reduced-motion: reduce) { .viewer .bar .dl .glyph > svg { transition: none; } }
.viewer .saynote { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Update 56: the raw file as a small link by Save (its extension), and the Safari hint under the name on a phone without file sharing */
.viewer .bar .raw[hidden] { display: none; }
.viewer .mono { font-variant-numeric: tabular-nums; }
.viewer .close { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 12px; background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: 18px; cursor: pointer; z-index: 2; transition: opacity 180ms ease; }
.viewer .nav { position: absolute; top: 20%; bottom: 20%; width: 18%; border: 0; background: transparent; cursor: pointer; z-index: 1; }
.viewer .nav.prev { left: 0; } .viewer .nav.next { right: 0; }
@media (pointer: coarse) { .viewer .nav { display: none; } }

/* likes, dislikes, comments (Will, memo 2026-10-17): the row under the viewer's bar, the tile's
   count badge, the comments sheet. Locked buttons are dimmed under one line that says what to do. */
.viewer .note:empty { display: none; }
.viewer .cpanel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 70%; display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); color: var(--text); touch-action: pan-y; }
.viewer .cpanel[hidden] { display: none; }
.viewer .chead { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; flex: none; }
.viewer .chead button { background: transparent; border: 0; color: var(--dim); font-size: 16px; width: 44px; height: 44px; border-radius: 7px; cursor: pointer; }
.viewer .chead button:active { background: var(--raised); }
.viewer .clist { flex: 1; min-height: 80px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 16px; display: grid; gap: 12px; align-content: start; touch-action: pan-y; }
.viewer .cmt { display: grid; gap: 2px; }
.viewer .cwho { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--dim); }
.viewer .cwho b { color: var(--text); font-weight: 600; }
.viewer .cwho button { margin-left: auto; background: transparent; border: 0; color: var(--faint); font-size: 12px; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; position: relative; }
/* Delete keeps its small underlined word; the touch box around it is 44 px tall */
.viewer .cwho button::after { content: ""; position: absolute; inset: -10px -8px -20px; }
.viewer .cbody { font-size: 14px; line-height: 1.4; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer .cempty { color: var(--dim); font-size: 13px; padding: 22px 0; text-align: center; }
.viewer .cform { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid var(--border); align-items: flex-end; flex: none; }
.viewer .cform textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; line-height: 1.3; color: #111; background: #fff; border: 1px solid #fff; border-radius: var(--radius-sm); padding: 10px 12px; resize: none; min-height: 42px; max-height: 120px; touch-action: auto; }
.viewer .cform textarea::placeholder { color: #8A8A90; }
.viewer .cform textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.viewer .cform .button { padding: 11px 14px; flex: none; }
.viewer .cpanel .note { padding: 8px 16px 0; }

/* get the edits: a card with a real heading, Continue with Apple and Google, a white email box and a
   green button; then name and mobile number (or Skip); then "you are on the list" */
/* Get the edits sits on the page with no box round it (memo 20261110 092634); in the ask after a download, the sheet is its only frame. */
.signup { margin: 0; padding: 0; background: none; border: 0; }
.signup .sub { color: var(--dim); font-size: 14px; margin: 0 0 14px; line-height: 1.4; }
.mailnote { margin-top: 20px; padding: 0 4px; font-size: 14px; line-height: 1.45; }
.mailnote p { margin: 0; }
.signup .gslot { display: flex; justify-content: center; min-height: 44px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 400px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); background: #FFFFFF; border: 1px solid #747775; color: #1F1F1F; font: 500 15px/1 Roboto, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: 0.1px; cursor: pointer; }
.gbtn:active { background: #F2F2F2; }
.gbtn .gmark { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.gbtn .gmark svg { width: 20px; height: 20px; }
.signup .gnative { display: flex; justify-content: center; }
/* Continue with Apple (voice memo 20261019 012256): Apple's white button, the style its guidelines
   give for dark backgrounds, the same size as Google's and right above it. */
.aslot { display: flex; justify-content: center; margin-bottom: 8px; }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 400px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); background: #FFFFFF; border: 1px solid #FFFFFF; color: #000000; font: 500 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: -0.2px; cursor: pointer; }
.abtn:active { background: #E8E8E8; }
.abtn .amark { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; margin-top: -2px; }
.abtn .amark svg { width: 18px; height: 18px; }
.viewer .askg .aslot { margin-bottom: 2px; }
.signup .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 12px 0; }
.signup .or::before, .signup .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.signup form { display: flex; gap: 8px; align-items: stretch; }
.signup form.stack { flex-direction: column; }
.signup input { font: inherit; color: #111; background: #FFFFFF; border: 1px solid #FFFFFF; border-radius: var(--radius-sm); padding: 12px 12px; flex: 1; min-width: 0; width: 100%; }
.signup input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.signup input::placeholder { color: #8A8A90; }
.signup .button { padding: 12px 16px; font-size: 14px; }
.signup .actions { display: flex; gap: 8px; }
.signup .actions .button { flex: 1; }
@media (max-width: 559px) { .signup form { flex-direction: column; } .signup .button { width: 100%; } }
.signup .ok { color: var(--green); font-size: 13px; margin: 10px 0 0; }
.signup .ok:empty { display: none; }
.signup .ok.err { color: var(--red); }
.signup .fine { color: var(--faint); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }
.signup .fine a { color: var(--dim); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.signup .linkish { font: inherit; color: var(--dim); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.signup .linkish:disabled { cursor: default; text-decoration: none; opacity: .7; }
.signup input.code { letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.signup input.code::placeholder { letter-spacing: normal; }
.signup .done { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; margin: 0 0 8px; }
.signup .done .tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--bg); flex: none; }

/* terms, privacy */
.legal { display: flex; justify-content: center; gap: 8px; color: var(--faint); font-size: 12px; padding: 8px 16px 20px; }
.legal a { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.doc { max-width: 640px; }
.doc .docnav { margin: 4px 0 10px; }
.doc h1 { margin-bottom: 2px; }
.doc h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin: 26px 0 6px; }
.doc h3 { font-size: 14px; font-weight: 600; margin: 16px 0 4px; }
.doc p, .doc li { margin: 0 0 8px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.doc ul { padding-left: 20px; margin: 0 0 8px; }
.doc li { margin-bottom: 4px; }
.doc p a, .doc li a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 8px; margin: 14px 0 8px; }
.doc .summary h2 { margin: 0 0 8px; font-size: 14px; }
.doc .summary li { color: var(--text); font-size: 14px; }
.doc address { font-style: normal; color: var(--dim); font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
/* the gallery page's Get the edits: Apple and Google as wide as the column, like the buttons above them */
.gpage .signup .abtn, .gpage .signup .gbtn, .editsask .abtn, .editsask .gbtn { max-width: none; }
/* br_a5rrj4hm: the download confirmation on the ask, the profile button and its menu, the sign-up state that fades away. */
.editsask .dlok { display: flex; align-items: center; gap: 10px; margin: -2px 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(52, 211, 153, 0.12); color: var(--text); font-size: 16px; font-weight: 700; }
.editsask .dlok .tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--bg); flex: none; }
.ghero .profile { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 16px); right: 16px; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(11, 11, 12, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; cursor: pointer; }
.ghero .profile[hidden], .ghero .pmenu[hidden] { display: none; }
.ghero .profile:active { background: rgba(11, 11, 12, 0.75); }
.ghero .profile:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (min-width: 720px) { .ghero .profile { top: calc(env(safe-area-inset-top) + 26px); right: 32px; } }
.ghero.plain { overflow: visible; z-index: 5; }
.ghero .pmenu { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 66px); right: 16px; min-width: 220px; max-width: calc(100vw - 32px); display: grid; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: pmenu-in 140ms ease-out; transform-origin: top right; }
@media (min-width: 720px) { .ghero .pmenu { top: calc(env(safe-area-inset-top) + 76px); right: 32px; } }
@keyframes pmenu-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.pmenu .pwho { display: grid; gap: 2px; padding: 10px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
.pmenu .pwho:empty { display: none; }
.pmenu .pwho strong { color: var(--text); font-size: 15px; }
.pmenu .pwho .pvia { margin-top: 4px; font-size: 12px; }
.pmenu .pitem { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.pmenu .pitem:active, .pmenu .pitem:hover { background: var(--raised); }
.signup[hidden] { display: none; }
.signupwrap:has(> .signup[hidden]) { display: none; }
.signup.leaving { opacity: 0; overflow: hidden; transition: opacity 450ms ease, height 600ms cubic-bezier(0.32, 0.72, 0, 1); }
@media (prefers-reduced-motion: reduce) { .ghero .pmenu { animation: none; } .signup.leaving { transition: none; } }
.ghero.noimg { overflow: visible; z-index: 5; }
.toast { position: fixed; left: 50%; width: max-content; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; line-height: 18px; overflow-wrap: anywhere; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); pointer-events: none; opacity: 0; transform: translate(-50%, 6px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* The Gallery on a wide screen (Will's voice memo 20261113 180944: the hero "stretches out the main
   photo across the whole screen, which makes it not really viewable ... everything from download all
   photos to your photographer can probably be to the side of the header image, and then everything
   below it will be the gallery"). From 1024 px: the hero in a box no wider than 1.6 times its height
   (the photo's crop still follows its focus point), the column of actions (.gside: Download all,
   Share gallery, Get the edits, Your photographer) beside it, the photos full width under both, and
   See all galleries under the photos. The hero's height is the screen's (never under 760 px, the
   column's usual height), not the column's, so the loading page (src/galleryHint.ts: the hero and
   the squares, no column yet) has the same shape; the column is set tight so it fits beside it, and
   a longer one (many links) stretches the hero rather than leave a gap. A gallery with no photo yet (.noimg) and the plain bar
   keep the page as it is on a phone. */
@media (min-width: 1024px) {
  body:has(> .ghero:not(.plain):not(.noimg)) {
    --hh: clamp(760px, calc(100vh - 100px), 920px);
    --hh: clamp(760px, calc(100svh - 100px), 920px);
    display: grid;
    grid-template-columns: minmax(0, calc(var(--hh) * 1.6)) minmax(420px, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
  }
  body:has(> .ghero:not(.plain):not(.noimg)) > .ghero { grid-column: 1; grid-row: 1; height: auto; min-height: var(--hh); }
  body:has(> .ghero:not(.plain):not(.noimg)) > .gpage { display: contents; }
  body:has(> .ghero:not(.plain):not(.noimg)) > .gpage > * { grid-column: 1 / -1; grid-row: 2; }
  body:has(> .ghero:not(.plain):not(.noimg)) > .gpage > .gside { display: contents; }
  body:has(> .ghero:not(.plain):not(.noimg)) > .legal { grid-column: 1 / -1; grid-row: 5; }
  .gside > .side { grid-column: 2; grid-row: 1; }
  .gside > .allwrap { grid-column: 1 / -1; grid-row: 3; }
  .gside .side { align-self: start; justify-self: start; width: 100%; max-width: 520px; padding: 32px 40px 28px 36px; }
  .gside .side .narrow { max-width: none; padding: 0; margin-left: 0; margin-right: 0; }
  .gside .dlwrap { margin-top: 0; }
  .gside .signupwrap, .gside .photogwrap { margin-top: 30px; }
  .gside .signup .sub { margin-bottom: 12px; }
  .gside .photog .sectitle { margin-bottom: 12px; }
  .gside .avatar.big { width: 52px; height: 52px; font-size: 17px; }
  .gside .psocial { gap: 6px; margin-top: 14px; }
  .gside .prow { min-height: 44px; }
}
