/* guest.css: what guests see ("Gallery white", 2 Dec 2026): the gallery and a guest's results page, the photo
   viewer, Find my photos, the studio page and the message pages (PIN, not found, resting, waking, WhatsApp join,
   Report a photo). Loaded after tokens, base and components by layouts/gallery. Parts are g-*; components keep their
   colours and shapes. The photos lead: the cover photo full-bleed with the names in the serif over a scrim, a
   masonry of sharp prints with 4–6 px gutters, a white ground. The studio's colour (AccentPalette, .ds-guest) marks
   only the main action, links, rings and selection; with none it is ink. The viewer is black and never takes the
   studio's colour. No photo yet: the empty mount (paper, a hairline window, the names in serif italic). */

.g-body{--g-gap:4px;--g-max:1240px;--g-barh:0px}
@media (min-width:700px){.g-body{--g-gap:6px}}
/* Phones (mobile-guest, 2 Dec): the action bar runs along the bottom edge (galleries/_bar), 52 px of buttons, 8 px
   above and below, a hairline, then the home indicator's safe area. --g-barh is that height, on pages that have it. */
@media (max-width:699px){.g-page--bar{--g-barh:calc(69px + env(safe-area-inset-bottom,0px))}}
html.g-viewing{overflow:hidden}
.g-body .ui-btn{min-height:48px} /* elders: 48 px targets on guest pages (02-guest-ux §2.17) */
.g-body .ui-btn--lg{min-height:52px}
.g-wrap{width:100%;max-width:calc(var(--g-max) + 2 * var(--ds-pad));margin-inline:auto;
  padding-inline:max(var(--ds-pad),env(safe-area-inset-left,0px)) max(var(--ds-pad),env(safe-area-inset-right,0px))} /* clear of a notch held sideways */
.g-main{container-type:inline-size} /* the grid's rows are 1/48 of a column: 100cqw is the page width */
.g-main:focus{outline:none}
/* the file inputs behind "Take a selfie" / "Choose a photo": not display:none, so every phone opens them */
.g-file{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none;clip-path:inset(50%)}

/* ---------- Cover: the cover photo full-bleed, the names in the serif over a scrim ----------
   Before the photo arrives the cover shows the photo's own colour (--tint), never a grey box. */
.g-cover{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:88vh;min-height:88svh;
  overflow:hidden;background:var(--tint,var(--ds-photo-dark));color:var(--ds-photo-light)}
.g-cover__img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
/* Scrims (qa-perf-a11y P1-2): white words keep 4.5:1 even over a white dress or a pale sky, because black at .54 or
   more sits behind every line. The top one stays at .56 or more down to the studio's name (white, top left). The
   words' own scrim is on .g-cover__in below, so it follows the words however many lines the names take. */
.g-cover::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(rgb(0 0 0 / .6),rgb(0 0 0 / .56) calc(64px + env(safe-area-inset-top,0px)),rgb(0 0 0 / 0) calc(160px + env(safe-area-inset-top,0px)))}
/* .56 from the top of the words down (the meta line is the highest), .75 at the bottom edge, fading out over 220 px
   above the words; full-bleed, and on under the phone's action bar. Not on the empty mount. */
.g-cover:not(.g-cover--empty) .g-cover__in{position:relative}
.g-cover:not(.g-cover--empty) .g-cover__in::before{content:"";position:absolute;z-index:-1;left:-100vw;right:-100vw;
  top:calc(var(--ds-s9) + env(safe-area-inset-top,0px) - 220px);bottom:calc(-1 * var(--g-barh));pointer-events:none;
  background:linear-gradient(to top,rgb(0 0 0 / .75),rgb(0 0 0 / .56) calc(100% - 220px),rgb(0 0 0 / 0))}
.g-cover--short{min-height:44vh;min-height:44svh}
/* Phones with the action bar: the cover is the whole first screen above it. svh, the screen while the browser shows
   its own bars, is what dvh measures when the page opens; unlike dvh it stays put when those bars slide away on
   scroll, so nothing below the cover jumps. The bar takes over the cover's "Find my photos" and its share button.
   The photo runs on under the translucent bar (its padding keeps the words above it), so at the top of the page the
   bar blurs the photo, not the "All 5 photos" heading (QG-06). */
@media (max-width:699px){
  .g-page--bar .g-cover:not(.g-cover--short){min-height:100vh;min-height:100svh;padding-bottom:var(--g-barh)}
  .g-page--bar .g-cover__in{padding-bottom:var(--ds-s5)}
  .g-page--bar .g-cover__find,.g-page--bar .g-cover__share{display:none}
  .g-page--bar .g-cover__actions{margin-top:var(--ds-s4)}
}
@media (min-width:700px){
  .g-cover{min-height:84vh;min-height:84svh}
  .g-cover--short{min-height:48vh;min-height:48svh}
}
.g-cover :focus-visible{outline-color:var(--ds-photo-light)}
.g-cover__top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:var(--ds-s3);
  max-width:calc(var(--g-max) + 2 * var(--ds-pad));margin-inline:auto;
  padding:calc(var(--ds-s2) + env(safe-area-inset-top,0px)) max(var(--ds-pad),env(safe-area-inset-right,0px)) 0 max(var(--ds-pad),env(safe-area-inset-left,0px))}
.g-cover__studio{display:inline-flex;align-items:center;min-height:48px;max-width:72%;color:inherit;font-size:var(--ds-fs-hint);font-weight:var(--ds-w-strong);
  letter-spacing:.01em;text-decoration:none;text-shadow:0 1px 12px rgb(0 0 0 / .35)}
.g-cover__studio:hover{text-decoration:underline;text-underline-offset:.25em}
.g-cover__logo{display:block;box-sizing:content-box;width:auto;height:auto;max-width:120px;max-height:36px;padding:6px 10px;border-radius:var(--ds-r-sm);background:var(--ds-photo-light)}
.g-cover .g-cover__share{margin-right:-12px}   /* the icon-on-photo button (components.css), its glyph lined up with the edge */
.g-cover__in{width:100%;max-width:calc(var(--g-max) + 2 * var(--ds-pad));margin:0 auto;
  padding:calc(var(--ds-s9) + env(safe-area-inset-top,0px)) max(var(--ds-pad),env(safe-area-inset-right,0px)) calc(var(--ds-s6) + env(safe-area-inset-bottom,0px)) max(var(--ds-pad),env(safe-area-inset-left,0px))}
@media (min-width:700px){.g-cover__in{padding-bottom:var(--ds-s8)}}
.g-cover__meta{display:flex;flex-wrap:wrap;align-items:center;font-size:var(--ds-fs-hint)}   /* white, as the names: 4.5:1 on the .56 scrim */
.g-cover__title{max-width:18ch;margin-top:var(--ds-s2);font-family:var(--ds-serif);font-size:var(--ds-fs-cover);font-style:italic;font-weight:var(--ds-w-display);
  line-height:.98;letter-spacing:-.02em;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 2px 30px rgb(0 0 0 / .22)}
.g-cover--short .g-cover__title{font-size:clamp(2.5rem,1.3rem + 4.6vw,4.75rem)}
.g-cover--short .g-cover__in{padding-bottom:var(--ds-s5)}
.g-cover__lead{max-width:36ch;margin-top:var(--ds-s4);font-size:var(--ds-fs-base);line-height:1.5}
.g-cover__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ds-s2) var(--ds-s5);max-width:30rem;margin-top:var(--ds-s6)}
.g-cover__actions .ui-btn--lg{padding:0 24px}
.g-cover__see{display:inline-flex;align-items:center;gap:6px;min-height:48px;color:inherit;font-weight:var(--ds-w-medium);text-decoration:none;
  text-shadow:0 1px 12px rgb(0 0 0 / .35)}
.g-cover__see:hover{text-decoration:underline;text-underline-offset:.25em}
.g-cover__note{flex-basis:100%;margin-top:var(--ds-s1);font-size:var(--ds-fs-xs);line-height:1.45;color:rgb(255 255 255 / .82)}

/* No photos yet: the empty mount, like an album page waiting for its prints (paper, a hairline window, the names in
   the serif). Never dark, never tinted. */
.g-cover--empty{justify-content:center;min-height:80vh;min-height:80svh;background:var(--ds-band);color:var(--ds-text);text-align:center}
.g-cover--empty::before{inset:12px;border:1px solid color-mix(in srgb,var(--ds-text) 14%,transparent);background:none}
.g-cover--empty .g-cover__top{justify-content:center;padding-top:calc(var(--ds-s5) + env(safe-area-inset-top,0px))}
.g-cover--empty .g-cover__studio{max-width:none;text-shadow:none}
.g-cover--empty .g-cover__logo{padding:0;background:none}
.g-cover--empty .g-cover__in{display:grid;justify-items:center;padding-block:var(--ds-s9) var(--ds-s8)}
.g-cover--empty .g-cover__meta{justify-content:center;color:var(--ds-text-muted)}
.g-cover--empty .g-cover__title{max-width:14ch;margin-top:var(--ds-s3);font-size:clamp(2.75rem,1.6rem + 5vw,5.5rem);text-shadow:none}
.g-cover--empty .g-cover__lead{color:var(--ds-text-muted)}
.g-cover--empty .g-cover__actions{justify-content:center}
.g-cover--empty :focus-visible{outline-color:var(--ds-focus)}
@media (min-width:700px){.g-cover--empty{min-height:76vh;min-height:76svh}.g-cover--empty::before{inset:20px}}

/* ---------- The grid: masonry in reading order (photo 2 sits beside photo 1) ----------
   Each tile spans --span rows of 1/48 column width, from the photo's shape, so nothing moves while thumbs load. */
.g-section{scroll-margin-top:var(--ds-s2)}
.g-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--ds-s1) var(--ds-s5);padding-top:var(--ds-s7);padding-bottom:var(--ds-s4)}
.g-head__title{font-family:var(--ds-serif);font-size:clamp(1.5rem,1.3rem + .8vw,2rem);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title);line-height:1.15}
.g-head__note{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-hint)}
.g-head__note+.g-head__note{margin-top:0}
/* The side padding is the gutter, or a notch's safe area when a phone is held sideways; the row maths subtracts it. */
.g-grid{--cols:2;--g-pl:max(var(--g-gap),env(safe-area-inset-left,0px));--g-pr:max(var(--g-gap),env(safe-area-inset-right,0px));
  display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--g-gap);padding-left:var(--g-pl);padding-right:var(--g-pr);
  grid-auto-rows:calc((100vw - var(--g-pl) - var(--g-pr) - (var(--cols) - 1) * var(--g-gap)) / var(--cols) / 48);
  grid-auto-rows:calc((100cqw - var(--g-pl) - var(--g-pr) - (var(--cols) - 1) * var(--g-gap)) / var(--cols) / 48)}
@media (min-width:700px){.g-grid{--cols:3}}
@media (min-width:1100px){.g-grid{--cols:4}}
@media (min-width:1680px){.g-grid{--cols:5}}
/* "Show more" under a page of tiles (GuestPages::PAGE); "Show earlier photos" above a grid opened at a later page. */
.g-more{display:flex;justify-content:center;margin-block:0;padding-top:var(--ds-s6);padding-bottom:var(--ds-s4)} /* .g-wrap centres it */
.g-more--before{padding-top:0;padding-bottom:var(--ds-s4)}
.g-tile{position:relative;display:block;grid-row-end:span var(--span,32);padding-bottom:var(--g-gap);cursor:zoom-in;
  content-visibility:auto;contain-intrinsic-size:auto 240px;-webkit-tap-highlight-color:transparent}
.g-tile img{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--ds-r-photo);background:var(--tint,var(--ds-sunken))}
@media (hover:hover) and (pointer:fine){
  .g-tile img{transition:filter var(--ds-dur) var(--ds-ease)}
  .g-tile:hover img{filter:brightness(.9)}
}
.g-tile:focus-visible{outline:none}
.g-page:not(.is-choosing) .g-tile:focus-visible::after{content:"";position:absolute;inset:0 0 var(--g-gap) 0;border-radius:var(--ds-r-photo);
  box-shadow:inset 0 0 0 3px var(--ds-focus),inset 0 0 0 5px var(--ds-photo-light)}
/* Choosing photos to save (save_controller): a ring on every print to tap; a chosen one steps back from its edges
   and fills the ring with a check, as in a phone's own photo app. */
.is-choosing .g-tile{cursor:pointer;-webkit-touch-callout:none}
.is-choosing .g-tile img{transition:transform var(--ds-dur) var(--ds-ease)}
.is-choosing .g-tile::before{content:"";position:absolute;z-index:1;top:8px;left:8px;width:26px;height:26px;border:2px solid var(--ds-photo-light);
  border-radius:50%;background:rgb(0 0 0 / .2);box-shadow:0 1px 4px rgb(0 0 0 / .4);pointer-events:none;
  transition:background-color var(--ds-dur-1),border-color var(--ds-dur-1),transform var(--ds-dur) var(--ds-ease)}
.is-choosing .g-tile.is-picked img{transform:scale(.9)}
.is-choosing .g-tile.is-picked::before{border-color:var(--ds-accent);background:var(--ds-accent);transform:scale(1.08)}
.is-choosing .g-tile.is-picked::after{content:"";position:absolute;z-index:2;top:14px;left:18px;width:7px;height:13px;border:solid var(--ds-on-accent);
  border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.is-choosing .g-tile:focus-visible img{outline:3px solid var(--ds-focus);outline-offset:-3px}

/* ---------- Find my photos: the status block (data-kind = searching, none, no_face, busy, down, offline …) ---------- */
.g-find{display:flex;align-items:flex-start;gap:var(--ds-s4);padding-top:var(--ds-s6);padding-bottom:var(--ds-s2);scroll-margin:var(--ds-s6)}
.g-find__face{position:relative;flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;overflow:hidden;
  background:var(--ds-sunken);color:var(--ds-text-muted);box-shadow:0 0 0 3px var(--ds-bg),0 0 0 4px var(--ds-selected)}
.g-find__face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.g-find__face .ui-icon{width:28px;height:28px}
.g-find[data-kind=searching] .g-find__face::after{content:"";position:absolute;inset:0;border:2px solid transparent;border-top-color:var(--ds-selected);
  border-radius:50%;animation:ui-spin 1.1s linear infinite} /* a turning ring round the selfie while we look */
.g-find__body{display:grid;gap:var(--ds-s2);flex:1;min-width:0}
.g-find__title{font-family:var(--ds-serif);font-size:var(--ds-fs-lg);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title);line-height:1.2;text-wrap:pretty}
.g-find__text{margin:0;color:var(--ds-text-muted)}
.g-find__tips{display:flex;flex-wrap:wrap;gap:var(--ds-s1) var(--ds-s4);margin:0;padding:0;list-style:none;color:var(--ds-text-muted);font-size:var(--ds-fs-hint)}
.g-find__tips li::before{content:"";display:inline-block;width:4px;height:4px;margin:0 8px 2px 0;border-radius:50%;background:currentColor;vertical-align:middle}
.g-find__progress{max-width:420px;margin-top:var(--ds-s1)}
.g-find__actions{margin-top:var(--ds-s2)}
.g-find--nojs{display:none;padding-bottom:var(--ds-s4)}
.g-find--nojs:target{display:block}
.g-find--nojs p{margin-block:var(--ds-s2) var(--ds-s4);color:var(--ds-text-muted)}
@media (max-width:639px){.g-find__actions .ui-btn{flex:1 1 100%}}

/* ---------- A guest's results (the results page: a short cover, then "You're in 23 photos") ---------- */
.g-you{padding-top:var(--ds-s7);scroll-margin-top:var(--ds-s2)}
.g-you__head{display:grid;gap:var(--ds-s2)}
.g-you__title{font-family:var(--ds-serif);font-size:var(--ds-fs-xl);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title);line-height:1.08;text-wrap:balance}
.g-you__note{margin:0;max-width:52ch;color:var(--ds-text-muted)}
.g-you__actions{display:grid;gap:var(--ds-s3);padding-top:var(--ds-s5);padding-bottom:var(--ds-s6)}
.g-you__actions .ui-actions .ui-btn{max-width:360px}
@media (max-width:699px){.g-page--bar .g-you__buttons{display:none}} /* phones: "Save all" and Share are in the bar */
.g-you__hint{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-xs)}
.g-you__links{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--ds-s5);margin:0}
.g-you__links>*{display:inline-flex;align-items:center;min-height:44px}
.g-you__added{padding-bottom:var(--ds-s4)}
/* Under the guest's own photos (no "might be you" group since 2 Dec 2026): clear of the last row, and in line with the
   words above on wide screens (margin-block only: .g-wrap's auto side margins centre the column). */
.g-you__keep{margin-block:0;padding-top:var(--ds-s5);padding-bottom:var(--ds-s2);color:var(--ds-text-muted);font-size:var(--ds-fs-xs)}
.g-you__keep .ui-linkbtn{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}

/* ---------- End of the gallery: the names again, share, and the studio's credit ---------- */
.g-end{display:grid;justify-items:center;gap:var(--ds-s5);max-width:calc(640px + 2 * var(--ds-pad));margin:0 auto;padding:var(--ds-s9) var(--ds-pad) var(--ds-s4);text-align:center}
.g-end__names{display:grid;gap:var(--ds-s2)}
.g-end__title{font-family:var(--ds-serif);font-size:var(--ds-fs-2xl);font-style:italic;font-weight:var(--ds-w-display);line-height:1.04;letter-spacing:-.02em;
  text-wrap:balance;overflow-wrap:anywhere}
.g-end__meta{display:flex;flex-wrap:wrap;justify-content:center;color:var(--ds-text-muted);font-size:var(--ds-fs-hint)}
.g-end__actions,.g-end .wa-join .ui-actions{justify-content:center}
.g-end .wa-join{justify-items:center;max-width:44ch}
.g-studio-card{display:grid;justify-items:center;gap:var(--ds-s2);width:100%;margin-top:var(--ds-s5);padding-top:var(--ds-s7);border-top:1px solid var(--ds-line)}
.g-studio-card__logo{width:auto;height:auto;max-width:160px;max-height:64px;margin-bottom:var(--ds-s2)}
.g-studio-card__by{margin:0;font-family:var(--ds-serif);font-size:var(--ds-fs-lg);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title);line-height:1.25}
.g-studio-card__by a{color:inherit}
.g-studio-card__line{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-hint)}
.g-studio-card__actions{justify-content:center;margin-top:var(--ds-s3)}

/* ---------- The action bar (galleries/_bar): Find my photos, Save, Share; the results' Save all; choosing ----------
   Phones: along the bottom edge from the first screen (the translucent bar of the studio's tab bar, a hairline above,
   the safe area below), a main button
   that grows and one or two tools (icon over a word). Bigger screens: a floating panel once the cover's main button
   has scrolled away (.g-bar-on, lightbox_controller), during a search, and while choosing. Hidden in the viewer. */
.g-bar{position:fixed;z-index:var(--ds-z-float);display:flex;align-items:center;gap:4px}
.g-viewing .g-bar{visibility:hidden}
.is-choosing .g-bar:not(.g-bar--choose){display:none}
.g-bar__main{min-width:0}
.g-bar__main>span:last-child{overflow:hidden;text-overflow:ellipsis}
.g-bar__tool{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:64px;min-height:52px;padding:0 8px;
  border:0;border-radius:var(--ds-r-ctl);background:none;color:var(--ds-text);font:var(--ds-w-medium) var(--ds-fs-xs)/1.15 var(--ds-font);
  text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--ds-dur-1)}
.g-bar__tool .ui-icon{width:22px;height:22px}
.g-bar__tool:hover{background:var(--ds-hover);text-decoration:none}
.g-bar__tool:active{background:var(--ds-press)}
.g-bar__tool:focus-visible{outline:2px solid var(--ds-focus);outline-offset:-2px}
.g-bar--tools .g-bar__tool{flex:1 1 0}
.g-bar__wait{display:none;align-items:center;justify-content:center;gap:var(--ds-s2);min-height:52px;padding:0 var(--ds-s5);border:1px solid var(--ds-line);
  border-radius:var(--ds-r-ctl);background:transparent;font-weight:var(--ds-w-medium);white-space:nowrap}
.g-page[data-state=searching] .g-bar__find{display:none}
.g-page[data-state=searching] .g-bar__wait{display:inline-flex}
.g-bar__spin{flex:none;width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ui-spin .7s linear infinite}
.g-bar__count{flex:1 1 auto;min-width:0;margin:0;font-size:var(--ds-fs-hint);font-weight:var(--ds-w-medium);line-height:1.25;text-align:center}
.g-bar__go{flex:none}
@media (max-width:699px){
  .g-bar{left:0;right:0;bottom:0;padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
    border-top:1px solid var(--ds-line);background:var(--ds-bar,var(--ds-surface));
    -webkit-backdrop-filter:saturate(1.2) blur(12px);backdrop-filter:saturate(1.2) blur(12px)} /* as the studio's tab bar */
  .g-bar__main{flex:1 1 auto}
  .g-bar--choose .g-bar__go{padding:0 18px}
}
@media (min-width:700px){
  .g-bar{left:50%;bottom:calc(var(--ds-s4) + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 24px);padding:6px;border-radius:var(--ds-r-md);
    background:var(--ds-raised,var(--ds-surface));box-shadow:var(--ds-shadow-2),0 0 0 1px var(--ds-line);transform:translate(-50%,calc(100% + 40px));visibility:hidden;
    transition:transform var(--ds-dur-2) var(--ds-ease),visibility 0s linear var(--ds-dur-2)}
  .g-bar-on .g-bar,.g-page[data-state=searching] .g-bar,.g-bar.g-bar--choose{transform:translate(-50%,0);visibility:visible;transition:transform var(--ds-dur-2) var(--ds-ease)}
  .g-bar__tool{flex-direction:row;gap:var(--ds-s2);padding:0 var(--ds-s4);font-size:var(--ds-fs-hint)}
  .g-bar__tool .ui-icon{width:20px;height:20px}
  .g-bar__count{padding:0 var(--ds-s4);white-space:nowrap}
}

/* ---------- Photo viewer (always black; its own neutral roles, never the studio's colour) ---------- */
.g-viewer{position:fixed;inset:0;z-index:var(--ds-z-modal);overflow:hidden;background:var(--ds-viewer);color:var(--ds-photo-light);
  touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none;
  --ds-text:var(--ds-photo-light);--ds-surface:rgb(255 255 255 / .12);--ds-band:rgb(255 255 255 / .08);--ds-line-strong:rgb(255 255 255 / .55);--ds-hover:rgb(255 255 255 / .12);
  --ds-press:rgb(255 255 255 / .2);--ds-focus:var(--ds-photo-light);--ds-link:var(--ds-photo-light)}
.g-viewer:not([hidden]){animation:g-viewer-in var(--ds-dur) var(--ds-ease)}
@keyframes g-viewer-in{from{background-color:rgb(0 0 0 / 0)}}
.g-viewer.is-growing :is(.g-viewer__top,.g-viewer__bottom){animation:ui-fade var(--ds-dur-2) var(--ds-ease)}
.g-viewer.is-leaving :is(.g-viewer__top,.g-viewer__bottom,.g-viewer__nav,.g-viewer__load){opacity:0;visibility:hidden;transition:opacity 120ms}
.g-viewer__track{display:flex;height:100%;transform:translate3d(-100%,0,0);will-change:transform}
.g-viewer__slide{position:relative;flex:0 0 100%;min-width:0;height:100%;margin:0;overflow:hidden}
.g-viewer__pic{position:absolute;inset:0;transform-origin:50% 50%}
.g-viewer__pic img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;-webkit-user-drag:none}
.g-viewer__load{position:absolute;top:0;left:0;right:0;z-index:2;height:2px;overflow:hidden;background:rgb(255 255 255 / .15)}
.g-viewer__load::before{content:"";display:block;width:30%;height:100%;background:var(--ds-photo-light);animation:ui-slide 1.2s var(--ds-ease) infinite}
.g-viewer__top{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:var(--ds-s3);
  padding:calc(var(--ds-s2) + env(safe-area-inset-top,0px)) max(var(--ds-s2),env(safe-area-inset-right,0px)) var(--ds-s6) max(var(--ds-s4),env(safe-area-inset-left,0px));
  background:linear-gradient(rgb(0 0 0 / .5),rgb(0 0 0 / 0));pointer-events:none}
.g-viewer__bottom{position:absolute;left:0;right:0;bottom:0;display:grid;justify-items:center;gap:var(--ds-s2);
  padding:var(--ds-s7) max(var(--ds-s4),env(safe-area-inset-right,0px)) calc(var(--ds-s3) + env(safe-area-inset-bottom,0px)) max(var(--ds-s4),env(safe-area-inset-left,0px));
  background:linear-gradient(rgb(0 0 0 / 0),rgb(0 0 0 / .6));pointer-events:none}
.g-viewer__top>*,.g-viewer__bottom>*{pointer-events:auto}
.g-viewer__count{font-size:var(--ds-fs-hint);letter-spacing:.02em;opacity:.88}
.g-viewer .ui-btn--icon{--_bg:rgb(255 255 255 / .1);width:48px;min-height:48px}
.g-viewer__actions{display:flex;justify-content:center;gap:var(--ds-s2);width:100%;max-width:420px}
.g-viewer__actions .ui-btn{flex:1 1 0}
.g-viewer__links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 var(--ds-s5);margin:0;font-size:var(--ds-fs-hint)}
.g-viewer__links a{display:inline-flex;align-items:center;min-height:44px;color:inherit;opacity:.88}
.g-viewer__inapp{width:100%;max-width:420px;margin:0;font-size:var(--ds-fs-xs);text-align:center;opacity:.88}
.g-viewer__inapp a{color:inherit}
.g-viewer__toast{margin:0;font-size:var(--ds-fs-hint);text-align:center}
.g-viewer__toast:empty{display:none}
.g-viewer__toast.is-on{padding:8px 14px;border-radius:var(--ds-r-ctl);background:rgb(0 0 0 / .72)}
.g-viewer__top,.g-viewer__bottom,.g-viewer__nav{transition:opacity 150ms,visibility 0s}
.g-viewer.is-bare :is(.g-viewer__top,.g-viewer__bottom,.g-viewer__nav){opacity:0;visibility:hidden;transition:opacity 150ms,visibility 0s linear 150ms}
.g-viewer__nav{display:none}
@media (hover:hover) and (pointer:fine){
  .g-viewer__nav{display:inline-flex;position:absolute;top:50%;width:52px;min-height:52px;margin-top:-26px}
  .g-viewer__nav--prev{left:var(--ds-s4)}
  .g-viewer__nav--next{right:var(--ds-s4)}
}

/* ---------- Sheets (consent, choose a selfie, save all, saving, delete my list) ----------
   On phones they are bottom sheets (components.css) with a grabber; sheet_controller lets a finger pull them down. */
@media (max-width:639px){
  .g-sheet::before{content:"";display:block;width:36px;height:4px;margin:8px auto -8px;border-radius:2px;background:var(--ds-line-strong);opacity:.7}
}
.g-sheet__text{margin:0}
.g-sheet__small{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-xs);line-height:1.45}
.g-sheet__choices{display:grid;gap:var(--ds-s2);margin-top:var(--ds-s2)}
.g-sheet__more .ui-more__body{font-size:var(--ds-fs-hint)}
.g-sheet__more .legal-face{display:grid;gap:var(--ds-s2)}
.g-sheet__more .legal-face__title{font-size:var(--ds-fs-ui)}
.g-sheet__more .legal-face p{margin:0}
.g-save{display:grid;gap:var(--ds-s2);padding-top:var(--ds-s4);border-top:1px solid var(--ds-line)}
.g-save__title{font-size:var(--ds-fs-ui)}
.g-save__text{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-hint)}
.g-save .ui-btn{white-space:normal;text-align:center;min-height:48px}
.g-save--native{padding-top:0;border-top:0}
.g-save__or{margin:var(--ds-s2) 0 0;color:var(--ds-text-muted);font-size:var(--ds-fs-hint);font-weight:var(--ds-w-medium)}
.g-saver__progress{margin-top:var(--ds-s1)}
.g-saver__inapp a{white-space:nowrap}
/* The way out of an app's own browser (galleries/_inapp, QG-03): the hint and "Open in Chrome", the ⋮ steps, then the
   page's link to copy, its field and button on one row on a phone. */
.g-inapp{display:grid;gap:var(--ds-s2)}
.g-inapp p{margin:0}
.g-inapp p a{white-space:nowrap}
.g-inapp__copy .ui-input{flex-basis:160px;font-size:var(--ds-fs-xs)}

/* ---------- Message pages (PIN, not found, resting, waking, no-JavaScript search result, WhatsApp join) ---------- */
.g-message__names{font-style:italic}
.g-message__body{display:grid;gap:var(--ds-s3);width:100%}
.g-message__aside{font-size:var(--ds-fs-hint)}
.g-message .g-find__tips{margin-top:var(--ds-s1)}
.g-pin{width:100%;max-width:20rem;margin-top:var(--ds-s3)}
.g-pin__input{font-size:1.5rem;letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}
.g-pin .ui-actions .ui-btn{flex:1 1 100%} /* the one thing to press, right under the number pad's field */
.g-wake{width:100%;max-width:28rem}
/* "Message <studio>" is WhatsApp's green on every guest page (QG-14); here it is the page's one action, so on a phone
   it spans the column as the primary button would. */
@media (max-width:639px){.g-message .ui-message__actions .ui-btn--wa{flex:1 1 100%}}
/* A text link beside a button (Report a photo's "Back to the gallery"): a 44 px target like the rest (QG-13) */
.g-body .ui-actions .ui-linkbtn{display:inline-flex;align-items:center;min-height:44px}

/* ---------- Studio page ---------- */
.g-studio{display:grid;align-content:center;gap:var(--ds-s7);min-height:calc(100vh - 160px);min-height:calc(100svh - 160px);
  max-width:calc(560px + 2 * var(--ds-pad));margin:0 auto;padding:var(--ds-s8) var(--ds-pad) var(--ds-s6)}
.g-studio__head{display:grid;justify-items:start;gap:var(--ds-s3);padding-bottom:var(--ds-s6);border-bottom:1px solid var(--ds-line)}
.g-studio__logo{width:auto;height:auto;max-width:240px;max-height:96px;margin-bottom:var(--ds-s2)}
.g-studio__name{font-family:var(--ds-serif);font-size:var(--ds-fs-3xl);font-weight:var(--ds-w-display);line-height:1;letter-spacing:var(--ds-track-display);overflow-wrap:anywhere}
.g-studio__name--small{font-size:var(--ds-fs-2xl)}
.g-studio__line{margin:0;color:var(--ds-text-muted);font-size:var(--ds-fs-base)}
.g-studio__help{display:grid;gap:var(--ds-s3)}
.g-studio__help h2{font-family:var(--ds-serif);font-size:var(--ds-fs-lg);font-weight:var(--ds-w-title);letter-spacing:var(--ds-track-title)}
.g-studio__help p{margin:0;color:var(--ds-text-muted)}
.g-studio__help .ui-actions{margin-top:var(--ds-s2)}

/* ---------- Report a photo (photo_reports/*, legal.css lays it out; here only what the guest shell changes) ---------- */
.g-body .legal-report{padding-top:var(--ds-s7)}
