/* CaptureLegacy. Ink, Flash, Cream, Blush, Teal. Display: Fraunces (substitute Cormorant Garamond). UI: Outfit (substitute Jost). Self-hosted. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2-variations"), url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* CaptureLegacy brand tokens (use these names in all new CSS) */
  --ink: #1A1418;        /* seal, text, dark grounds */
  --flash: #F2492B;      /* accent, one per layout; primary button (Ink text on Flash only) */
  --cream: #FFF6EC;      /* page backgrounds */
  --blush: #FBE3D6;      /* panels, tiles */
  --teal: #0E7C7B;       /* supporting accent */
  --muted: #5A4A4F;      /* captions, secondary text */
  --border: #EADCCB;     /* cards, dividers */
  --bad: #B42318;        /* functional error color (not a brand color) */
  --ok: #0E7C7B;
  --display: "Fraunces", "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;   /* substitute: Cormorant Garamond until Fraunces is self-hosted */
  --ui: "Outfit", "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;           /* substitute: Jost until Outfit is self-hosted */
  --r-card: 22px; --r-card-sm: 18px; --r-card-lg: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --tagline-track: .22em;
  --shadow-soft: 0 22px 44px -26px rgba(26, 20, 24, .38), 0 3px 10px -4px rgba(26, 20, 24, .14);

  /* TRANSITIONAL aliases for the old onyx/gold names so unconverted CSS (other pages) keeps working. Not used in this file. */
  --onyx: var(--cream); --onyx-2: var(--blush); --onyx-3: var(--blush); --onyx-4: var(--border);
  --ivory: var(--ink); --ivory-dim: var(--muted); --taupe: var(--muted);
  --mat: var(--cream); --mat-shade: var(--border);
  --gold: var(--teal); --gold-bright: var(--teal); --gold-deep: var(--muted);
  --gold-grad: var(--flash);
  --line: var(--border); --line-soft: var(--border);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.5; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
::selection { background: var(--blush); }

/* ---------- shared vocabulary ---------- */
.eyebrow { margin: 0; font-family: var(--ui); font-weight: 500; font-size: 12px; letter-spacing: var(--tagline-track); text-transform: uppercase; color: var(--teal); }
.ornament { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px; padding: 0 30px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--ui); font-weight: 600; font-size: 16px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .12s ease, filter .2s ease, box-shadow .2s var(--ease); touch-action: manipulation; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--blush); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--flash); border-color: var(--flash); color: var(--ink); box-shadow: 0 12px 26px -14px rgba(242, 73, 43, .75); }
.btn-primary:hover { background: var(--flash); filter: brightness(1.05); }
.btn-quiet { border-color: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); background: var(--blush); }
.btn-danger { color: var(--bad); border-color: rgba(180, 35, 24, .4); }
.btn-danger:hover { border-color: var(--bad); background: transparent; }
.btn[disabled] { opacity: .4; cursor: default; pointer-events: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: .45em; min-height: 32px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--blush); color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.chip.teal { background: transparent; border-color: var(--teal); color: var(--teal); }

/* framed print: Cream mat on a Blush ground, soft shadow */
.print { margin: 0; position: relative; }
.print .mat { position: relative; background: var(--cream); padding: var(--mat-pad, 12px); border: 1px solid var(--border); border-radius: var(--r-card-sm); box-shadow: var(--shadow-soft); }
.print img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: var(--blush); border-radius: 10px; }
.print .ph { aspect-ratio: 4 / 5; display: grid; place-items: center; align-content: center; gap: 10px; background: var(--blush); color: var(--muted); border-radius: 10px; }
.print .ph b { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 92px); line-height: 1; color: var(--ink); }
.print .ph span { font-size: 10px; letter-spacing: var(--tagline-track); text-transform: uppercase; font-weight: 500; }
.print figcaption { margin-top: 14px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--ink); }
.print figcaption small { display: block; margin-top: 5px; font-family: var(--ui); font-style: normal; font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* dialogs / sheets */
.sheet { border: 0; padding: 0; border-radius: var(--r-card-lg); background: var(--cream); color: var(--ink); width: min(560px, calc(100vw - 24px)); max-height: min(88dvh, 760px); box-shadow: 0 40px 80px -30px rgba(26, 20, 24, .6); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .35s var(--ease) both; }
.sheet::backdrop { background: rgba(26, 20, 24, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet-head { padding: 26px 28px 8px; }
.sheet-head h2 { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -.01em; }
.sheet-body { padding: 8px 28px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-body ul { margin: 6px 0 14px; padding: 0; list-style: none; display: grid; gap: 14px; }
.sheet-body li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.sheet-body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }
.sheet-body li b { font-weight: 600; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px 24px; border-top: 1px solid var(--border); }
.sheet-link { color: var(--teal); font-weight: 600; font-size: 15px; text-underline-offset: 3px; padding: 12px 0; }

/* ---------- booth stage ---------- */
body.booth { background: radial-gradient(120% 60% at 50% -12%, var(--blush), transparent 62%), var(--cream); }
.stage { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.screen { position: absolute; inset: 0; display: none; }
.screen.on { display: flex; animation: screenIn .55s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

/* ----- start screen: the 810 x 1440 booth design, scaled fluidly (--u = one design pixel) ----- */
#attract { --u: min(calc(100vw / 810), calc(100vh / 1400)); --u: min(calc(100vw / 810), calc(100dvh / 1400)); cursor: default; }
.bs { width: 100%; height: 100%; display: flex; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: max(env(safe-area-inset-top), 14px) env(safe-area-inset-right) max(env(safe-area-inset-bottom), 16px) env(safe-area-inset-left); }
.bs-in { flex: 1; width: min(100%, calc(810 * var(--u))); margin: auto; padding: 0 max(20px, calc(52 * var(--u))); min-height: min-content; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "top" "head" "cards" "cta" "foot"; row-gap: max(12px, calc(24 * var(--u))); }

/* lockup: seal + wordmark, clear space = one Flash square (20% of the seal) */
.bs-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; --seal: max(46px, calc(92 * var(--u))); }
.lockup { display: inline-flex; align-items: center; gap: calc(var(--seal) * .22); padding: calc(var(--seal) * .2) calc(var(--seal) * .2) calc(var(--seal) * .2) 0; margin: calc(var(--seal) * -.2) 0 calc(var(--seal) * -.2) calc(var(--seal) * -.0); color: var(--ink); text-decoration: none; }
.lockup img { width: var(--seal); height: var(--seal); flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: calc(var(--seal) * .6); line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.wordmark em { font-weight: 300; font-style: italic; }
.bs-event { margin: 0; display: grid; gap: 2px; justify-items: end; text-align: right; max-width: 48%; min-width: 0; }
.bs-event b { font-family: var(--ui); font-weight: 500; font-size: max(11px, calc(19 * var(--u))); letter-spacing: var(--tagline-track); text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; line-height: 1.3; }
.bs-event span { font-size: max(12px, calc(20 * var(--u))); color: var(--muted); }
body.test-mode .bs-event b { color: var(--teal); }

.bs-head { grid-area: head; display: grid; gap: max(8px, calc(14 * var(--u))); align-content: start; }
.bs-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: max(38px, calc(104 * var(--u))); line-height: .98; letter-spacing: -.025em; color: var(--ink); }
.bs-title em { display: block; font-weight: 300; font-style: italic; }
.bs-subrow { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.bs-sub { margin: 0; font-size: max(16px, calc(34 * var(--u))); line-height: 1.35; color: var(--muted); }

.bs-cards-wrap { grid-area: cards; align-self: center; min-width: 0; }
.bs-cards { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(10px, calc(22 * var(--u))); }
.bs-cards[data-count="1"] { grid-template-columns: minmax(0, 52%); justify-content: center; }
.bs-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 70%; margin: 0 auto; }
.bs-card { all: unset; box-sizing: border-box; display: grid; gap: max(8px, calc(14 * var(--u))); align-content: start; cursor: pointer; padding: 5px; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--ease); }
.bs-cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-card); background: var(--blush); border: 1px solid var(--border); box-shadow: var(--shadow-soft); transition: box-shadow .25s var(--ease); }
.bs-cover img { width: 100%; height: 100%; object-fit: cover; }
.bs-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 8px; color: var(--muted); }
.bs-cover .ph b { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 84px); line-height: 1; color: var(--ink); }
.bs-cover .ph span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.bs-name { text-align: center; font-family: var(--display); font-weight: 700; font-size: max(15px, calc(26 * var(--u))); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.bs-card[aria-pressed="true"] .bs-cover { box-shadow: 0 0 0 5px var(--flash), var(--shadow-soft); border-color: transparent; }
.bs-card:active { transform: scale(.98); }
.bs-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-card-lg); }
@media (hover: hover) { .bs-card:hover { transform: translateY(-3px); } .look-card:hover .cover img { transform: scale(1.03); } }
.bs-more { flex: none; }

.bs-cta { grid-area: cta; display: grid; justify-items: center; gap: max(8px, calc(12 * var(--u))); }
.bs-consent { margin: 0; max-width: 50ch; text-align: center; font-size: max(12.5px, calc(21 * var(--u))); line-height: 1.45; color: var(--muted); }
.policy-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline; padding: 14px 4px; margin: -14px 0; font-size: max(13.5px, calc(22 * var(--u))); font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; -webkit-tap-highlight-color: transparent; }
.policy-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.start-btn { width: 100%; min-height: max(64px, calc(136 * var(--u))); padding: 0 32px; font-family: var(--display); font-weight: 700; font-size: max(24px, calc(50 * var(--u))); letter-spacing: -.01em; border-radius: var(--r-pill); box-shadow: 0 22px 40px -22px rgba(242, 73, 43, .85); }
.start-btn:hover { transform: translateY(-2px); }
.start-btn:active { transform: scale(.985); }

.bs-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: max(12px, calc(20 * var(--u))) max(14px, calc(24 * var(--u))); }
.bs-qr { display: flex; align-items: center; gap: max(12px, calc(18 * var(--u))); flex: 1 1 200px; min-width: 0; }
.bs-qr canvas { width: max(84px, calc(120 * var(--u))); height: max(84px, calc(120 * var(--u))); flex: none; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--border); background: var(--cream); }
.bs-qr p { margin: 0; font-size: max(13px, calc(22 * var(--u))); line-height: 1.35; color: var(--muted); max-width: 18ch; }
.bs-fine { flex: 1 1 100%; margin: 0; font-size: max(12px, calc(20 * var(--u))); line-height: 1.4; color: var(--muted); text-align: center; }

/* "Presented by" slot (280 x 76 design). Live sponsor or a refined placeholder. */
.sponsor-strip { position: relative; flex: 0 1 auto; width: max(196px, calc(280 * var(--u))); min-height: max(64px, calc(76 * var(--u))); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: 4px; padding: 8px 16px; border-radius: var(--r-card-sm); background: var(--cream); border: 1px solid var(--border); color: var(--muted); cursor: default; opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.sponsor-strip.in { opacity: 1; transform: none; }
.sponsor-strip span { font-size: 10.5px; font-weight: 500; letter-spacing: var(--tagline-track); text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sponsor-strip img { height: max(30px, calc(40 * var(--u))); max-width: 100%; object-fit: contain; object-position: left center; }
.sponsor-strip.is-placeholder { border: 1.5px dashed var(--border); background: transparent; pointer-events: none; }
.sponsor-strip.is-placeholder #sponsorSpot { font-family: var(--display); font-weight: 600; font-size: max(15px, calc(24 * var(--u))); letter-spacing: -.005em; text-transform: none; color: var(--muted); }
.sponsor-strip:not(.is-placeholder) #sponsorSpot { display: none; }

/* the line, on the start screen */
.line-panel { flex: 1 1 100%; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: var(--blush); border: 1px solid var(--border); border-radius: var(--r-card); text-align: left; cursor: default; }
.line-panel canvas { width: 76px; height: 76px; flex: none; image-rendering: pixelated; border-radius: 10px; }
.line-info b { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.05; color: var(--ink); }
.line-info span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.line-next { margin: 4px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.line-next:empty { display: none; }

/* "you're up": full-screen Flash card, Ink text */
.up-now { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 24px; background: var(--flash); color: var(--ink); cursor: default; text-align: center; animation: screenIn .5s var(--ease) both; }
.up-now .eyebrow { color: var(--ink); }
.up-now h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 9vw, 112px); line-height: .98; letter-spacing: -.02em; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.up-choice { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 34px); color: var(--ink); }
.up-now .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.up-now .btn { border-color: var(--ink); color: var(--ink); }
.up-now .btn:hover { background: rgba(26, 20, 24, .08); }
.up-now .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--cream); box-shadow: none; filter: none; }
.up-now .btn-primary:hover { background: var(--ink); filter: none; transform: translateY(-2px); }
.up-now .btn-quiet { color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.up-now :focus-visible { outline-color: var(--cream); }
#attract.serving .bs-cta { visibility: hidden; }

/* landscape booth devices (tablet, laptop, TV): two columns instead of a stretched portrait layout */
@media (orientation: landscape) and (min-width: 700px) {
  #attract { --u: min(calc(100vw / 1280), calc(100vh / 950)); --u: min(calc(100vw / 1280), calc(100dvh / 950)); }
  .bs-in { width: min(100%, calc(1280 * var(--u))); padding: 0 max(24px, calc(60 * var(--u))); column-gap: max(32px, calc(72 * var(--u))); row-gap: max(12px, calc(24 * var(--u))); grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); grid-template-rows: auto 1fr auto; grid-template-areas: "top cards" "head cards" "foot cta"; }
  .bs-head { align-self: center; }
  .bs-title { font-size: max(40px, calc(104 * var(--u))); }
  .bs-top { flex-wrap: wrap; align-items: flex-start; }
  .bs-event { justify-items: start; text-align: left; max-width: 100%; }
  .bs-cards-wrap { align-self: end; }
  .bs-foot { align-self: end; }
  .bs-qr { flex: 0 1 auto; gap: 10px; }
  .bs-qr canvas { width: max(84px, calc(100 * var(--u))); height: max(84px, calc(100 * var(--u))); }
  .bs-qr p { max-width: 12ch; }
  .sponsor-strip { width: max(172px, calc(250 * var(--u))); }
  .bs-fine { text-align: left; }
  .bs-cta { align-self: start; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .bs-title { font-size: max(30px, calc(80 * var(--u))); }
}

/* ----- who's in the photo ----- */
#who { flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px, 4vh, 44px); padding: 48px 32px; text-align: center; overflow-y: auto; }
.who-head { display: grid; gap: 8px; }
.screen-title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.8vw, 64px); margin: 0; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.who-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: clamp(18px, 3vw, 36px); width: min(100%, 1000px); }
.who-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 10px; padding: clamp(26px, 4vh, 40px) 22px; background: var(--blush); border: 1.5px solid var(--border); border-radius: var(--r-card-lg); text-align: center; transition: transform .3s var(--ease), border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.who-card svg { width: clamp(78px, 11vh, 120px); height: auto; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.who-card b { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: 1; letter-spacing: -.01em; }
.who-card span { font-size: 14px; color: var(--muted); max-width: 22ch; line-height: 1.45; }
.who-card:active { transform: scale(.98); }
.who-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) { .who-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-soft); } }

/* ----- look picker: Blush ground so the Cream prints read as framed ----- */
#themes { flex-direction: column; padding: max(env(safe-area-inset-top), 40px) 48px 0; gap: 18px; background: var(--blush); }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex: none; }
.screen-head .titles { display: grid; gap: 6px; }
.picker { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 4px 64px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 40px), transparent); }
.look-group { max-width: 1180px; margin: 0 auto 34px; }
.group-label { display: flex; align-items: center; gap: 16px; margin: 6px 0 22px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); justify-content: center; gap: 34px 30px; }
.theme-card { all: unset; cursor: pointer; display: block; border-radius: var(--r-card-sm); transition: transform .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.theme-card .print .mat { transition: box-shadow .35s var(--ease); }
.theme-card:active { transform: scale(.98); }
.theme-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.theme-card.chosen .print .mat { box-shadow: 0 0 0 4px var(--flash), var(--shadow-soft); }
.theme-card .print figcaption small.presented { display: block; margin-top: 4px; font-family: var(--ui); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-style: normal; }
.empty { color: var(--muted); text-align: center; max-width: 36ch; margin: 10vh auto; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 26px; }
.frame-grid .print.strip .mat { aspect-ratio: 1 / 3; }
.frame-grid .print.fourxsix .mat { aspect-ratio: 2 / 3; }
.frame-grid .print .mat img { object-fit: contain; background: var(--blush); }

/* ----- camera: the stage is the photo itself, so it stays dark ----- */
#camera { background: var(--ink); align-items: center; justify-content: center; color: var(--cream); }
#camera :focus-visible { outline-color: var(--cream); }
.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview.mirror { transform: scaleX(-1); }
.preview.fit { object-fit: contain; }
.preview-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cream); font-family: var(--display); font-style: italic; font-weight: 300; font-size: 34px; text-align: center; padding: 32px; }
.guides { position: absolute; inset: 12% 14%; pointer-events: none; z-index: 2; }
.guides i { position: absolute; width: 46px; height: 46px; border: 0 solid rgba(255, 246, 236, .85); }
.guides i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 16px; }
.guides i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 16px; }
.guides i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 16px; }
.guides i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 16px; }
.guides.wide { inset: 8% 5%; }
/* 5.3.1: the usable area. Everything outside the shape the finished picture will use is dimmed, so heads stay inside it. */
.guides.masked { inset: auto; box-sizing: border-box; border: 1.5px solid rgba(255, 246, 236, .5); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(26, 20, 24, .86); transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease); }
.guides.masked i { margin: -1.5px; }
#camera { overflow: hidden; }
#camera.multi .cam-hint { top: calc(max(env(safe-area-inset-top), 32px) + 54px); }
.cam-hint { position: absolute; top: max(env(safe-area-inset-top), 36px); left: 50%; transform: translateX(-50%); z-index: 3; padding: 12px 26px; background: rgba(26, 20, 24, .62); border-radius: var(--r-pill); color: var(--cream); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.shot-count { position: absolute; top: max(env(safe-area-inset-top), 32px); left: 50%; transform: translateX(-50%); z-index: 6; padding: 10px 22px; background: var(--cream); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.count-wrap { position: relative; z-index: 3; width: clamp(200px, 36vh, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.count-wrap.idle { visibility: hidden; }
.count-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.count-ring circle { fill: none; stroke-width: 2.6; }
.count-ring .track { stroke: rgba(255, 246, 236, .28); }
.count-ring .arc { stroke: var(--flash); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: 0; }
.count-ring .arc.run { animation: arc 1s linear forwards; }
@keyframes arc { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 301.6; } }
.countdown { font-family: var(--display); font-variant-numeric: lining-nums; font-weight: 700; font-size: clamp(130px, 22vh, 240px); line-height: 1; color: var(--cream); text-shadow: 0 6px 40px rgba(26, 20, 24, .55); }
.countdown.tick { animation: tick .95s var(--ease); }
@keyframes tick { 0% { transform: scale(1.25); opacity: 0; } 22% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { opacity: .15; } }
.flash { position: absolute; inset: 0; background: var(--cream); opacity: 0; pointer-events: none; z-index: 9; }
.flash.go { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .96; } 100% { opacity: 0; } }
.cam-wait { position: absolute; bottom: max(env(safe-area-inset-bottom), 52px); left: 0; right: 0; text-align: center; z-index: 3; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 30px; color: var(--cream); text-shadow: 0 2px 16px rgba(26, 20, 24, .7); }
.cam-pick { position: absolute; z-index: 4; inset: auto 0 max(env(safe-area-inset-bottom), 52px) 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--cream); text-shadow: 0 2px 16px rgba(26, 20, 24, .7); padding: 0 20px; }
.cam-pick p { margin: 0; max-width: 30ch; }

/* ----- review, developing + reveal share the big framed print (Blush ground) ----- */
#developing, #reveal, #review, #sent { align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); padding: 48px; background: var(--blush); }
.big-photo { width: min(46vh, 38vw, 460px); --mat-pad: 16px; }
.big-photo .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush); border-radius: 10px; }
.big-photo .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.review-photo.tall .frame img, .reveal-photo.tall .frame img { object-fit: contain; }
.big-photo.tall { aspect-ratio: auto; width: min(calc(60vh * var(--ar, .6667) + 34px), 78vw, 460px); }
.big-photo.tall .frame { aspect-ratio: var(--ar, .6667); }
.developing-img { filter: grayscale(1) sepia(.35) blur(9px) brightness(.8) contrast(.85); animation: develop 4s ease-in-out infinite alternate; }
@keyframes develop { from { filter: grayscale(1) sepia(.35) blur(11px) brightness(.72); } to { filter: grayscale(.8) sepia(.3) blur(6px) brightness(.9); } }
.shimmer { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 236, .5) 50%, transparent 65%); background-size: 250% 100%; animation: shimmer 2.6s ease-in-out infinite; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.side { display: flex; flex-direction: column; gap: 22px; max-width: 440px; }
.status-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.8vw, 66px); line-height: 1; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.status-title em { font-style: italic; font-weight: 300; }
.status-line { color: var(--muted); margin: 0; font-size: 19px; line-height: 1.4; }
.bar { position: relative; height: 6px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--flash); transition: width .9s linear; }
.review-photo { animation: land .7s var(--ease) both; }
.review-bar { margin-top: 6px; }
.review-timer { margin: -8px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 1.4em; }

/* the reveal: the one orchestrated moment */
.reveal-photo { animation: land 1s var(--ease) both; }
@keyframes land { from { transform: translateY(18px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal-photo .ai { animation: emerge 1.8s ease-out both; }
@keyframes emerge { from { filter: grayscale(1) sepia(.4) blur(10px) brightness(.8); opacity: .25; } to { filter: none; opacity: 1; } }
.surprise { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin: -6px 0 0; padding: 9px 18px; border: 1.5px solid var(--teal); border-radius: var(--r-pill); background: var(--cream); color: var(--teal); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; animation: screenIn .6s .9s both; }
.qr-card { display: flex; align-items: center; gap: 20px; background: var(--cream); color: var(--ink); padding: 16px 22px 16px 16px; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.qr-card canvas { width: 128px; height: 128px; image-rendering: pixelated; flex: none; border-radius: 10px; }
.qr-card strong { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.qr-card span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reveal-wrap { position: relative; }
.before-print { all: unset; cursor: pointer; position: absolute; right: -14%; bottom: 12%; width: 30%; transform: rotate(4deg); transition: transform .3s var(--ease); z-index: 3; -webkit-tap-highlight-color: transparent; }
.before-print .mat { display: block; background: var(--cream); padding: 6px; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.before-print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--blush); border-radius: 8px; }
.before-print .cap { display: table; margin: 8px auto 0; padding: 5px 12px; background: var(--ink); border-radius: var(--r-pill); text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.before-print:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) { .before-print:hover { transform: rotate(0deg) scale(1.04); } }

/* email on the reveal screen */
.mail-form { display: grid; gap: 8px; width: min(100%, 420px); }
.mail-form > label:first-child { font-size: 12px; font-weight: 500; letter-spacing: var(--tagline-track); text-transform: uppercase; color: var(--teal); }
.mail-row { display: flex; gap: 8px; }
.mail-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; background: var(--cream); border: 1.5px solid var(--border); color: var(--ink); border-radius: var(--r-pill); font-size: 16px; }
.mail-row input:focus { outline: none; border-color: var(--ink); }
.mail-row .btn { min-height: 48px; padding: 0 22px; }
.mail-opt { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.mail-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); flex: none; }
.mail-msg { margin: 0; min-height: 1.2em; font-size: 14px; font-weight: 500; color: var(--teal); }
.test-cta { font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1.5px solid var(--border); padding-bottom: 2px; align-self: flex-start; }
.test-cta b { color: var(--ink); font-weight: 600; }
.test-cta:hover { border-bottom-color: var(--ink); }

/* error */
#error { flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 24px; text-align: center; overflow-y: auto; }
#error .status-line { max-width: 38ch; }

.gear { display: none; position: fixed; right: 14px; bottom: max(env(safe-area-inset-bottom), 12px); min-height: 36px; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--cream); color: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; z-index: 10; }
body.at-start .gear { display: inline-flex; }
.gear:hover, .gear:focus-visible { color: var(--ink); border-color: var(--ink); }

@media (max-width: 760px), (orientation: portrait) {
  #developing, #reveal, #sent { flex-direction: column; overflow-y: auto; justify-content: flex-start; padding: 56px 24px 40px; gap: 30px; }
  .big-photo { width: min(78vw, 44vh); --mat-pad: 12px; }
  .big-photo.tall { width: min(calc(46vh * var(--ar, .6667) + 26px), 70vw, 460px); }
  .side { align-items: stretch; width: min(90vw, 440px); text-align: center; }
  .surprise { align-self: center; }
  .test-cta { align-self: center; }
  .side .actions { justify-content: center; }
  .qr-card { text-align: left; }
  #themes { padding: max(env(safe-area-inset-top), 30px) 22px 0; }
  .theme-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 16px; }
  .print figcaption { font-size: 19px; }
  .print figcaption small { letter-spacing: .14em; }
  .guides { inset: 14% 8%; }
  .cam-hint { top: max(env(safe-area-inset-top), 28px); font-size: 11px; padding: 10px 18px; }
  .shot-count { top: max(env(safe-area-inset-top), 24px); }
  .who-choices { grid-template-columns: 1fr; width: min(100%, 360px); }
  .who-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 18px; padding: 20px; }
  .who-card svg { grid-row: span 2; width: 70px; margin: 0; }
  .who-card span { max-width: none; }
  #review { flex-direction: column; overflow-y: auto; justify-content: flex-start; padding: 56px 24px 40px; gap: 26px; }
  .before-print { right: 3%; bottom: 7%; width: 30%; }
  .mail-form { width: 100%; }
}
@media (min-width: 600px) and (orientation: portrait) { .theme-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); justify-content: center; gap: 34px 26px; } }
@media (min-width: 1200px) and (orientation: landscape) { .theme-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 236px)); } }

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

/* ---------- kiosk ---------- */
body.kiosk { touch-action: manipulation; overscroll-behavior: none; -webkit-touch-callout: none; }
body.kiosk * { -webkit-user-select: none; user-select: none; }
.kiosk-exit { all: unset; position: fixed; top: 0; left: 0; width: 64px; height: 64px; z-index: 30; }
.pin-pad { position: fixed; inset: 0; z-index: 60; background: rgba(255, 246, 236, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.pin-card { width: min(360px, 100%); display: grid; justify-items: center; gap: 16px; text-align: center; }
.pin-msg { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); }
.pin-dots { display: flex; gap: 10px; }
.pin-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pin-dots i.on { background: var(--ink); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pin-keys button { min-height: 62px; border: 1.5px solid var(--border); border-radius: var(--r-card-sm); background: var(--blush); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 28px; cursor: pointer; }
.pin-keys button:active { background: var(--border); }
.pin-keys button[data-k=del], .pin-keys button.ok { font-family: var(--ui); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pin-keys button.ok { background: var(--flash); color: var(--ink); border-color: var(--flash); }

/* test drive */
body.test-mode .bs-event b { padding: 6px 14px; border: 1.5px solid var(--teal); border-radius: var(--r-pill); }

/* ====================================================================== studio (operator admin) */
/* ---------- studio (operator admin) ---------- */
body.setup { background: var(--cream); font-size: 15px; }
.studio { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 30px 18px; border-right: 1px solid var(--border); background: linear-gradient(180deg, var(--blush), var(--cream)); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--teal); color: var(--teal); font-family: var(--display); font-size: 22px; font-weight: 600; flex: none; }
.brand b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1; }
.brand small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: .04em; border-left: 1px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--ink); background: rgba(26, 20, 24, .03); }
.nav a[aria-current=page] { color: var(--teal); border-left-color: var(--teal); background: linear-gradient(90deg, rgba(14, 124, 123, .10), transparent); }
.rail-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 8px; }
.status-pill { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(14, 124, 123, .14); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.dot.warn { background: var(--teal); }
.version { font-size: 11px; color: var(--muted); letter-spacing: .08em; }

.main { padding: 40px clamp(20px, 4vw, 56px) 140px; min-width: 0; }
.view { display: none; max-width: 1080px; }
.view.on { display: block; animation: screenIn .4s var(--ease) both; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.view-head h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 46px; line-height: 1; }
.view-head p { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }
.view-head .actions { gap: 10px; }

.panel { background: var(--blush); border: 1px solid var(--border); padding: 26px; margin-bottom: 20px; position: relative; }
.panel h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.panel > p, .panel .lead { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; max-width: 70ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 20px; }
.stat { background: var(--blush); padding: 20px 22px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.stat > span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.stat .dot { display: inline-block; margin-right: 10px; vertical-align: middle; }

.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field label, .field .lbl { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ed-frame-link { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ed-frame-link:empty { display: none; }
.ed-frame-link a { color: var(--flash, #E8502A); font-weight: 500; text-decoration: none; }
.ed-frame-link a:hover { text-decoration: underline; }
.ed-frame-link span + a { margin-left: 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; align-items: start; }
input[type=text], input[type=number], input[type=url], select, textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 0; border: 1px solid var(--border); background: var(--cream); color: var(--ink); font-size: 15px; transition: border-color .2s; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; font-family: var(--ui); }
select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--blush); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
input::placeholder, textarea::placeholder { color: var(--muted); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13.5px; color: var(--muted); user-select: none; }
.switch input { -webkit-appearance: none; appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: var(--border); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background-color .25s; }
.switch input:checked { background: rgba(14, 124, 123, .28); border-color: var(--teal); }
.switch input:checked::after { transform: translateX(18px); background: var(--teal); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }

/* segmented + tiles */
.seg { justify-self: start; display: inline-flex; border: 1px solid var(--border); padding: 3px; gap: 3px; flex-wrap: wrap; background: var(--cream); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; cursor: pointer; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--flash); color: var(--ink); }
.seg button[disabled] { opacity: .35; cursor: default; }
.cams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.cam-tile { all: unset; cursor: pointer; border: 1px solid var(--border); padding: 20px; display: grid; gap: 6px; background: var(--cream); transition: border-color .2s, background-color .2s; }
.cam-tile b { font-family: var(--display); font-size: 23px; font-weight: 600; }
.cam-tile span { color: var(--muted); font-size: 13px; }
.cam-tile:hover { border-color: var(--border); }
.cam-tile[aria-checked=true] { border-color: var(--teal); background: linear-gradient(180deg, rgba(14, 124, 123, .10), transparent); }
.cam-tile:focus-visible { outline: 1px solid var(--teal); outline-offset: 3px; }
.preview-box { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; margin-top: 6px; border-radius: var(--r-card-sm); border: 1px solid var(--border); }
.preview-box video, .preview-box img { width: 100%; height: 100%; object-fit: cover; }
.preview-box .msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; font-family: var(--display); font-style: italic; font-size: 20px; }
.mirror { transform: scaleX(-1); }

/* renderers */
.rlist { display: grid; gap: 12px; }
.ritem { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--border); padding: 16px 18px; background: var(--cream); }
.ritem .name { font-family: var(--display); font-weight: 600; font-size: 21px; }
.ritem .meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ritem input[type=text] { min-height: 38px; margin-top: 8px; font-size: 13px; }

/* sharing */
.share { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.share canvas { width: 150px; height: 150px; background: var(--cream); image-rendering: pixelated; }
.share strong { font-family: var(--display); font-size: 22px; font-weight: 600; }
.share .link { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin: 4px 0 14px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.share .actions { gap: 10px; }

/* looks studio */
.looks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.look-card { background: var(--blush); border: 1px solid var(--border); display: flex; flex-direction: column; transition: border-color .2s; min-width: 0; }
.look-card:hover { border-color: var(--border); }
.look-card.off .cover img { filter: grayscale(.9) brightness(.5); }
.look-card .cover { all: unset; display: block; position: relative; aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; cursor: pointer; }
.look-card .cover:focus-visible { outline: 1px solid var(--teal); outline-offset: -3px; }
.look-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.look-card .cover .nocover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 18px; text-align: center; padding: 20px; }
.look-card .badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; background: rgba(255, 246, 236, .78); border: 1px solid var(--border); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.look-card .body { padding: 14px 16px 14px; display: grid; gap: 4px; }
.look-card .body b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.look-card .body span { font-size: 12.5px; color: var(--muted); }
.look-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--border); margin-top: auto; }
.look-card .tools { display: flex; gap: 2px; }
.icon-btn { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; transition: color .2s, border-color .2s; flex: none; }
.icon-btn:hover { color: var(--teal); border-color: var(--border); }
.icon-btn:focus-visible { outline: 1px solid var(--teal); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[disabled] { opacity: .25; pointer-events: none; }
.add-card { all: unset; cursor: pointer; border: 1px dashed var(--border); display: grid; place-items: center; align-content: center; gap: 12px; min-height: 320px; color: var(--teal); text-align: center; transition: background-color .2s; }
.add-card:hover { background: rgba(14, 124, 123, .05); }
.add-card b { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--ink); }
.add-card span { font-size: 13px; color: var(--muted); max-width: 22ch; }
.add-card svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.add-card:focus-visible { outline: 1px solid var(--teal); }

/* look editor drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(26, 20, 24, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; animation: screenIn .3s both; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1080px, 100vw); background: var(--cream); border-left: 1px solid var(--border); z-index: 41; display: flex; flex-direction: column; animation: slideIn .45s var(--ease) both; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 28px; border-bottom: 1px solid var(--border); background: var(--blush); }
.drawer-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1; }
.drawer-head .actions { gap: 10px; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.drawer-form { padding: 26px 28px 60px; min-width: 0; }
.drawer-side { padding: 26px 28px; border-left: 1px solid var(--border); background: var(--blush); display: grid; align-content: start; gap: 18px; }
.section-label { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; }
.section-label:first-child { margin-top: 0; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.likeness { display: grid; gap: 6px; }
.likeness .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.likeness output { font-family: var(--display); font-size: 26px; color: var(--teal); font-variant-numeric: lining-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--teal) var(--fill, 50%), rgba(26, 20, 24, .18) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 1px; background: rgba(26, 20, 24, .18); }
input[type=range]::-moz-range-progress { height: 1px; background: var(--teal); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--cream); border: 1px solid var(--teal); box-shadow: 0 0 0 4px rgba(14, 124, 123, .15); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 1px solid var(--teal); }
.quirk-list { display: grid; gap: 10px; }
.quirk-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 32px; gap: 10px; align-items: center; }
.quirk-row.lib { grid-template-columns: 42px minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 160px) 32px; }
.quirk-row input[type=text], .quirk-row select { min-height: 42px; font-size: 14px; }
.quirk-row .switch { justify-self: center; }
.quirk-head { display: grid; gap: 10px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quirk-head.own { grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 32px; }
.quirk-head.lib { grid-template-columns: 42px minmax(120px, 180px) minmax(0, 1fr) minmax(120px, 160px) 32px; }
.add-row { justify-self: start; margin-top: 4px; }
.preview-frame { --mat-pad: 10px; }
.preview-frame .stage-img { position: relative; aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; }
.preview-frame .stage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.preview-frame .stage-img .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 18px; }
.preview-frame .stage-img.busy img { filter: grayscale(1) blur(6px) brightness(.7); }
.preview-frame .stage-img.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 214, .4) 50%, transparent 65%); background-size: 250% 100%; animation: shimmer 2s ease-in-out infinite; }
.preview-meta { font-size: 13px; color: var(--muted); min-height: 1.5em; line-height: 1.45; }
.preview-meta b { color: var(--teal); font-weight: 500; }
.face-row { display: flex; align-items: center; gap: 12px; }
.face-row img { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--border); background: var(--blush); flex: none; }
.face-row .txt { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.35; }
.side-actions { display: grid; gap: 10px; }
.details { border-top: 1px solid var(--border); margin-top: 26px; }
.details summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; width: 8px; height: 8px; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal); transform: rotate(45deg); transition: transform .25s; }
.details[open] summary::after { transform: rotate(-135deg); }

/* surprises */
.freq { display: grid; gap: 12px; }
.freq-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.freq-top b { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--teal); font-variant-numeric: lining-nums; }
.freq-top span { color: var(--muted); font-family: var(--display); font-style: italic; font-size: 21px; }
.freq-stops { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.freq-stops button { all: unset; cursor: pointer; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.freq-stops button:hover, .freq-stops button[aria-pressed=true] { color: var(--teal); }
.freq-stops button:focus-visible { outline: 1px solid var(--teal); }

.savebar { position: fixed; left: 248px; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px clamp(20px, 4vw, 56px); background: rgba(255, 246, 236, .92); border-top: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.savebar.show { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.savebar .note { color: var(--muted); font-size: 13.5px; margin-right: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60; padding: 13px 22px; background: var(--blush); border: 1px solid var(--border); color: var(--ink); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(180, 35, 24, .6); }

@media (max-width: 1100px) { .drawer-body { grid-template-columns: 1fr; } .drawer-side { border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; height: auto; z-index: 20; flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .brand > div, .rail-foot { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { border-left: 0; border-bottom: 1px solid transparent; padding: 10px 10px; white-space: nowrap; font-size: 13px; }
  .nav a[aria-current=page] { border-bottom-color: var(--teal); background: none; }
  .nav a svg { display: none; }
  .savebar { left: 0; }
  .main { padding-top: 26px; }
  .view-head h1 { font-size: 36px; }
  .cams { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .quirk-row, .quirk-row.lib { grid-template-columns: 1fr 1fr; }
  .quirk-row input[data-k=prompt] { grid-column: 1 / -1; }
  .quirk-head { display: none; }
  .drawer-head { padding: 14px 18px; flex-wrap: wrap; }
  .drawer-form, .drawer-side { padding: 20px 18px; }
}

/* ---------- guest photo page + album (public) ---------- */
/* ---------- guest photo page + album (public) ---------- */
body.gallery, body.album { background: radial-gradient(120% 60% at 50% -10%, rgba(14, 124, 123, .12), transparent 60%), var(--cream); min-height: 100%; }
.g-wrap { max-width: 540px; margin: 0 auto; padding: 48px 22px 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.g-title { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 9vw, 64px); line-height: 1; margin: 4px 0 0; overflow-wrap: anywhere; }
.g-sub { color: var(--muted); margin: 0; font-family: var(--display); font-style: italic; font-size: 21px; }
.g-main { width: 100%; margin: 16px 0 10px; --mat-pad: 14px; }
.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.g-actions .btn { padding: 0 12px; }
.link-quiet { color: var(--teal); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; padding: 14px; border-bottom: 1px solid transparent; }
.link-quiet:hover { border-bottom-color: var(--teal); }
.g-note { color: var(--muted); font-family: var(--display); font-style: italic; font-size: 22px; }
.g-foot { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; margin-top: 18px;  text-align: center; }
.locked { min-height: 100vh; justify-content: center; }

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.lb { position: fixed; inset: 0; background: rgba(255, 246, 236, .98); z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 60px 18px 28px; }

/* ---------- printable album sign (operator) ---------- */
/* ---------- printable album sign (operator) ---------- */
body.sign { background: var(--cream); color: var(--ink); }
@media print { body.sign { background: var(--cream); } }

/* ---------- guest photo page: the original stays visible ---------- */
.g-orig { width: 64%; margin: 22px 0 6px; --mat-pad: 9px; }
.g-orig figcaption { font-size: 18px; }
.g-actions.single { grid-template-columns: 1fr; max-width: 280px; }

/* ---------- slideshow wall ---------- */
body.wall { background: radial-gradient(120% 80% at 30% 10%, rgba(14, 124, 123, .10), transparent 60%), var(--cream); overflow: hidden; height: 100vh; }
body.no-cursor, body.no-cursor * { cursor: none !important; }

/* ---------- client report ---------- */
body.report { background: var(--cream); color: var(--ink); }
body.report .btn { color: var(--ink); border-color: rgba(26, 20, 24, .5); }
body.report .btn-primary { color: var(--ink); }
body.report .btn-quiet { border-color: transparent; color: var(--muted); }
@media print { body.report { background: var(--cream); } }

/* ---------- studio additions ---------- */
.only-narrow { display: none; }
.badge.right { left: auto; right: 10px; }
.tpl-save { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tpl-save input { flex: 1 1 220px; min-height: 42px; width: auto; }
.tpl-list { display: grid; gap: 10px; }
.tpl-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); background: var(--cream); flex-wrap: wrap; }
.tpl-row b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; }
.tpl-row span { font-size: 13px; color: var(--muted); }
.tpl-row .actions { gap: 6px; align-items: center; }
.flow-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.flow-row:first-of-type { padding-top: 4px; }
.flow-row b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.flow-row span { display: block; font-size: 13.5px; color: var(--muted); max-width: 60ch; margin-top: 2px; }
.flow-row + .field { margin-top: 16px; }
#grStrengthField .likeness.ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
#grStrengthField .likeness.ends span:nth-child(2) { color: var(--teal); font-family: var(--display); font-style: italic; font-size: 17px; }
.switch.big { font-size: 15px; color: var(--ink); }
.howto { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.brand-preview { position: sticky; top: 24px; display: grid; gap: 14px; background: var(--blush); border: 1px solid var(--border); padding: 22px; }
.prev-canvas { background: var(--ink); border-radius: var(--r-card-sm); overflow: hidden; display: grid; place-items: center; }
.prev-canvas canvas { width: 100%; height: auto; display: block; }
.checker { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); background-color: var(--cream); background-image: linear-gradient(45deg, var(--border) 25%, transparent 25%), linear-gradient(-45deg, var(--border) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--border) 75%), linear-gradient(-45deg, transparent 75%, var(--border) 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.checker img, .checker canvas { max-width: 86%; max-height: 86%; object-fit: contain; }
.checker .msg { color: var(--muted); font-family: var(--display); font-style: italic; font-size: 17px; padding: 12px; text-align: center; }
.logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.logo-pair figure { margin: 0; }
.logo-pair figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); text-align: center; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.mod-card { background: var(--blush); border: 1px solid var(--border); display: flex; flex-direction: column; }
.mod-card .thumb { position: relative; aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; }
.mod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-card.off .thumb img { filter: grayscale(1) brightness(.4); }
.mod-card .tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.mod-card .tags .badge { position: static; }
.mod-card .meta { padding: 10px 12px 4px; display: grid; gap: 2px; }
.mod-card .meta b { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.1; }
.mod-card .meta span { font-size: 12px; color: var(--muted); }
.mod-card .tools { display: flex; justify-content: flex-end; gap: 2px; padding: 4px 6px 8px; margin-top: auto; }
@media (max-width: 1100px) { .brand-layout { grid-template-columns: 1fr; } .brand-preview { position: static; order: -1; } }
@media (max-width: 860px) {
  .only-narrow { display: inline-flex; }
  .flow-row { align-items: flex-start; }
  .logo-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .panel { padding: 20px 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px; }
  .stat b { font-size: 30px; }
  .share canvas { width: 180px; height: 180px; }
  .drawer-head .actions .btn { padding: 0 12px; }
  .view-head .actions { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; padding: 10px 10px; }
}

/* sponsor on the slideshow wall */

/* Studio: landing samples */
.samples-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.samples-block p { margin: 0; font-size: 14px; color: var(--muted); }
.sample-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
.sample-strip .empty { font-size: 13px; color: var(--muted); }
.sample-strip .sample { margin: 0; flex: none; width: 120px; display: grid; gap: 6px; justify-items: start; }
.sample-strip .sample img { width: 120px; height: 150px; object-fit: cover; border: 1px solid var(--border); }
.sample-strip .sample figcaption { font-size: 12px; color: var(--muted); }
.samples-block > .btn { justify-self: start; }
/* Studio: album privacy */
.privacy-status { margin: 0 0 14px; padding: 12px 16px; border-left: 2px solid var(--teal); background: rgba(14, 124, 123, .07); font-size: 14px; color: var(--ink); }
.privacy-status.kept { border-left-color: var(--ok); background: rgba(14, 124, 123, .08); }
.pv-help { display: block; margin: 2px 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pv-own { margin-top: 10px; border-top: 1px solid var(--border); border-bottom: 0; }
/* ---------- brand shape refinements for the shared Studio / guest vocabulary (loaded after the rules above) ---------- */
body.setup { background: var(--cream); }
.rail { background: var(--blush); border-right-color: var(--border); }
.brand-mark { border: 0; border-radius: 12px; background: var(--ink); color: var(--cream); }
.brand small { color: var(--muted); letter-spacing: var(--tagline-track); }
.nav a { border-left: 0; border-radius: 14px; }
.nav a:hover { background: rgba(26, 20, 24, .05); }
.nav a[aria-current=page] { color: var(--ink); background: var(--cream); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dot.ok { box-shadow: 0 0 0 4px rgba(14, 124, 123, .16); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.dot.warn { background: var(--flash); }
.view-head h1 { font-weight: 700; letter-spacing: -.02em; }
.panel { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 14px 30px -26px rgba(26, 20, 24, .5); }
.panel h2, .ritem .name, .cam-tile b { font-weight: 700; }
.stats { gap: 12px; background: transparent; border: 0; }
.stat { background: var(--blush); border-radius: var(--r-card-sm); }
.stat b { font-weight: 700; }
.field label, .field .lbl, .stat > span { letter-spacing: .14em; font-weight: 500; }
input[type=text], input[type=number], input[type=url], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time], select, textarea { border-radius: 14px; border: 1.5px solid var(--border); background: var(--cream); }
textarea { border-radius: 18px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--blush); }
.switch input { background: var(--border); border-color: var(--border); }
.switch input::after { background: var(--cream); box-shadow: 0 1px 3px rgba(26, 20, 24, .3); }
.switch input:checked { background: var(--teal); border-color: var(--teal); }
.switch input:checked::after { background: var(--cream); }
.check input { accent-color: var(--teal); }
.seg { border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--blush); }
.seg button { border-radius: var(--r-pill); font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: 14px; min-height: 40px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--cream); }
.cam-tile { border-radius: var(--r-card-sm); border-width: 1.5px; background: var(--cream); }
.cam-tile[aria-checked=true] { border-color: var(--ink); background: var(--blush); }
.cam-tile:focus-visible, .icon-btn:focus-visible, .add-card:focus-visible, .freq-stops button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ritem { border-radius: var(--r-card-sm); background: var(--cream); }
.share canvas { border-radius: 14px; border: 1px solid var(--border); }
.look-card, .mod-card { border-radius: var(--r-card); overflow: hidden; background: var(--cream); }
.look-card .badge { background: var(--cream); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-pill); font-weight: 600; }
.look-card .body b, .mod-card .meta b { font-weight: 700; }
.icon-btn { border-radius: 10px; width: 36px; height: 36px; }
.icon-btn:hover { color: var(--ink); border-color: var(--border); background: var(--blush); }
.add-card { border: 1.5px dashed var(--border); border-radius: var(--r-card); color: var(--teal); }
.add-card:hover { background: var(--blush); }
.drawer-back { background: rgba(26, 20, 24, .5); }
.drawer { background: var(--cream); border-left-color: var(--border); border-radius: var(--r-card-lg) 0 0 var(--r-card-lg); }
.drawer-head, .drawer-side { background: var(--blush); }
.drawer-head h2 { font-weight: 700; }
.likeness output, .freq-top b { color: var(--ink); font-weight: 700; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--border) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { margin-top: -8px; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 0 0 4px rgba(26, 20, 24, .08); }
input[type=range]::-moz-range-thumb { border: 3px solid var(--ink); background: var(--cream); }
.preview-frame .stage-img { border-radius: 10px; }
.preview-frame .stage-img .msg { color: var(--muted); }
.face-row img { border-radius: 12px; }
.details summary::after { border-color: var(--ink); }
.freq-stops button:hover, .freq-stops button[aria-pressed=true] { color: var(--ink); font-weight: 600; }
.savebar { background: rgba(255, 246, 236, .94); border-top-color: var(--border); }
.toast { background: var(--ink); color: var(--cream); border: 0; border-radius: 16px; box-shadow: 0 20px 40px -14px rgba(26, 20, 24, .55); }
.toast.bad { background: var(--bad); border: 0; }
.tpl-row, .brand-preview, .mod-card, .logo-pair figure img { border-radius: var(--r-card-sm); }
.tpl-row { background: var(--cream); }
.brand-preview { background: var(--blush); }
.privacy-status { border-left: 0; border-radius: var(--r-card-sm); background: var(--blush); }
.privacy-status.kept { background: rgba(14, 124, 123, .1); }
.sample-strip .sample img { border-radius: 12px; }
.link-quiet { font-weight: 500; }
/* guest pages */
body.gallery, body.album { background: radial-gradient(120% 50% at 50% -10%, var(--blush), transparent 62%), var(--cream); }
.g-title { font-weight: 700; letter-spacing: -.02em; }
.g-sub, .g-note { font-weight: 300; }
.lb { background: rgba(255, 246, 236, .98); }
body.wall { background: radial-gradient(120% 80% at 30% 10%, var(--blush), transparent 60%), var(--cream); }
body.sign, body.report { background: var(--cream); color: var(--ink); }
body.report .btn { color: var(--ink); border-color: var(--ink); }
body.report .btn-primary { color: var(--ink); border-color: var(--flash); }
body.report .btn-quiet { border-color: transparent; color: var(--muted); }

/* 5.1.0: keep the start screen content clear of the fixed Studio pill on phones */
body.at-start .bs-in { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* ---- 5.3.0: sent-for-rendering card, live activity pill, phone-capture extras ---- */
#sent .status-title { font-size: clamp(36px, 4.4vw, 60px); }
#sent .actions { margin-top: 4px; }
#sent .bar > i { transition: width linear; }
.sent-note { font-size: 15px; color: var(--teal); }
.act-pill, .my-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--blush); border: 1px solid var(--border); color: var(--ink); font-family: var(--ui); font-weight: 500; font-size: max(13px, calc(21 * var(--u))); line-height: 1.2; box-shadow: 0 10px 22px -16px rgba(26, 20, 24, .45); }
.act-pill.quiet { color: var(--muted); background: transparent; box-shadow: none; }
.act-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--flash); box-shadow: 0 0 0 0 rgba(242, 73, 43, .55); animation: actPulse 1.8s ease-out infinite; }
.act-pill.quiet .act-dot { background: var(--teal); animation: none; }
@keyframes actPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 73, 43, .5); } 100% { box-shadow: 0 0 0 12px rgba(242, 73, 43, 0); } }
.my-chip { flex: 1 1 100%; justify-content: center; text-align: left; background: var(--cream); }
.my-chip.ready { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.my-chip.ready .act-dot { background: var(--teal); animation: none; }
.my-link { margin-left: 4px; font-weight: 600; color: var(--flash); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.my-chip.ready .my-link { color: var(--cream); }
.bs-qr.nudge canvas { border-color: var(--flash); box-shadow: 0 0 0 4px rgba(242, 73, 43, .22); }
.bs-qr.nudge p { color: var(--ink); font-weight: 500; }
.caption-field { display: grid; gap: 8px; text-align: left; position: relative; }
.caption-field label { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.caption-field label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.caption-field input { width: 100%; min-height: 54px; padding: 0 56px 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--cream); color: var(--ink); font: inherit; font-size: 18px; }
.caption-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 20, 24, .12); }
.caption-field .cap-left { position: absolute; right: 18px; bottom: 16px; font-size: 12px; font-weight: 500; color: var(--muted); }
body.snap-mode #gear { display: none; }

/* ===================================================================================
   5.7.0 phone booth (/snap and /test on a guest's phone). Booth screens are unchanged.
   Dark "inside the booth" ambiance, every live look in one grid, a real shutter button.
   =================================================================================== */
.slot { display: none; }
body.phone { background: var(--ink); color: var(--cream); }
body.phone .screen { background: radial-gradient(120% 60% at 50% 0%, #2a2026 0%, var(--ink) 62%); color: var(--cream); }
body.phone :focus-visible { outline-color: var(--flash); }
body.phone .btn { border-color: rgba(255, 246, 236, .5); color: var(--cream); }
body.phone .btn:hover { background: rgba(255, 246, 236, .08); }
body.phone .btn-primary { background: var(--flash); border-color: var(--flash); color: var(--ink); }

/* start screen = the looks */
body.phone #attract { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.phone #attract.on { display: block; }
body.phone #attract .bs { position: static; min-height: 100%; }
body.phone #attract .bs-in { display: block; padding: max(env(safe-area-inset-top), 14px) 16px max(env(safe-area-inset-bottom), 24px); max-width: 640px; margin: 0 auto; }
body.phone #attract .bs-top { --seal: 40px; padding: 4px 0 10px; }
body.phone #attract .wordmark, body.phone #attract .bs-event, body.phone #attract .bs-event b { color: var(--cream); }
body.phone #attract .bs-event span { color: rgba(255, 246, 236, .62); }
body.phone #attract .bs-head { margin: 6px 0 4px; }
body.phone #attract .bs-title { color: var(--cream); font-size: clamp(34px, 10vw, 46px); line-height: 1.02; }
body.phone #attract .bs-title em { color: var(--flash); }
body.phone #attract .bs-subrow, body.phone #attract .bs-cards-wrap, body.phone #attract .bs-cta { display: none; }
body.phone #attract .bs-foot { margin-top: 26px; color: rgba(255, 246, 236, .6); }
body.phone #attract .bs-foot a, body.phone #attract .bs-foot .btn { color: var(--cream); }
body.phone #attract .line-panel { display: none; }

.pl-consent { margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: rgba(255, 246, 236, .66); }
.pl-consent .policy-btn { color: var(--cream); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.pl-bar { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 10px 16px 12px; background: linear-gradient(var(--ink) 78%, rgba(26, 20, 24, 0)); display: grid; gap: 10px; }
.pl-modes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 246, 236, .08); border: 1px solid rgba(255, 246, 236, .12); }
.pl-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: rgba(255, 246, 236, .72); font: 600 15px/1 var(--ui); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease), color .2s var(--ease); }
.pl-modes button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pl-modes button[aria-checked="true"] { background: var(--cream); color: var(--ink); }
.pl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chip { flex: none; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid rgba(255, 246, 236, .22); background: transparent; color: rgba(255, 246, 236, .8); font: 500 14px/1 var(--ui); cursor: pointer; white-space: nowrap; }
.pl-chip[aria-pressed="true"] { background: var(--flash); border-color: var(--flash); color: var(--ink); font-weight: 600; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-top: 4px; }
@media (min-width: 560px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-card { display: grid; gap: 8px; padding: 0; border: 0; background: none; color: var(--cream); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: plIn .5s var(--ease) both; }
.pl-card:nth-child(n+3) { animation-delay: .05s; } .pl-card:nth-child(n+5) { animation-delay: .1s; } .pl-card:nth-child(n+7) { animation-delay: .15s; }
@keyframes plIn { from { opacity: 0; transform: translateY(10px); } }
.pl-cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #2d2329; box-shadow: 0 0 0 1px rgba(255, 246, 236, .08), 0 18px 30px -18px rgba(0, 0, 0, .8); transition: transform .15s ease; }
.pl-card.frame .pl-cover { aspect-ratio: 2 / 3; background: var(--cream); }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-card.frame .pl-cover img { object-fit: contain; }
.pl-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 10px; background: linear-gradient(160deg, #3a2c33, #231b20); color: rgba(255, 246, 236, .55); }
.pl-cover .ph b { font-family: var(--display); font-weight: 600; font-style: italic; font-size: 64px; line-height: 1; color: var(--flash); }
.pl-cover .ph span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.pl-card.frame .pl-cover .ph { background: var(--cream); color: var(--muted); }
.pl-card:active .pl-cover { transform: scale(.97); }
.pl-cover::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(26, 20, 24, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFF6EC' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3l1.6-2.2h6.8L17 8.5h3v10H4z'/%3E%3Ccircle cx='12' cy='13.3' r='3.3'/%3E%3C/svg%3E") center / 19px no-repeat; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pl-cap { display: grid; gap: 2px; padding: 0 2px; }
.pl-cap b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.12; }
.pl-cap small { font-size: 12.5px; line-height: 1.35; color: rgba(255, 246, 236, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-cap small.presented { color: var(--flash); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pl-empty { grid-column: 1 / -1; margin: 40px 0; text-align: center; color: rgba(255, 246, 236, .7); }

/* camera = inside the booth */
.pc-top { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(env(safe-area-inset-top), 14px) 14px 12px; background: linear-gradient(rgba(26, 20, 24, .7), rgba(26, 20, 24, 0)); }
.pc-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(26, 20, 24, .5); color: var(--cream); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; }
.pc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-icon[disabled] { opacity: 0; pointer-events: none; }
.pc-icon.gone { visibility: hidden; }
.pc-look { min-width: 0; font-family: var(--display); font-size: 20px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.pc-bottom { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 10px; padding: 26px 16px max(env(safe-area-inset-bottom), 22px); background: linear-gradient(rgba(26, 20, 24, 0), rgba(26, 20, 24, .78) 45%); }
.pc-mode { padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255, 246, 236, .12); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pc-shutter { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--cream); background: transparent; padding: 5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--flash); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); transition: transform .12s ease; animation: pcPulse 2.4s ease-in-out infinite; }
.pc-shutter:active span { transform: scale(.86); }
@keyframes pcPulse { 50% { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 0 0 10px rgba(242, 73, 43, .18); } }
@media (prefers-reduced-motion: reduce) { .pc-shutter span, .pl-card { animation: none; } }
.pc-tip { font-size: 13px; color: rgba(255, 246, 236, .72); }
body.phone #camera .cam-hint { top: calc(max(env(safe-area-inset-top), 14px) + 58px); font-size: 11px; padding: 9px 18px; }
body.phone #camera .count-wrap { width: min(56vw, 240px); }
body.phone .flash.go { animation-duration: .55s; }

/* review and sent: a print in hand */
body.phone #review, body.phone #sent, body.phone #developing, body.phone #reveal { background: radial-gradient(120% 60% at 50% 0%, #2a2026 0%, var(--ink) 62%); color: var(--cream); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; overflow-y: auto; padding: max(env(safe-area-inset-top), 18px) 18px max(env(safe-area-inset-bottom), 22px); }
body.phone .big-photo { width: min(100%, 420px); margin: 0 auto; flex: none; max-height: none; }
body.phone .big-photo .mat { box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9); }
body.phone .big-photo figcaption { color: rgba(255, 246, 236, .7); }
body.phone .side { width: 100%; max-width: 420px; margin: 0 auto; text-align: center; }
body.phone .side .eyebrow { color: var(--flash); }
body.phone .status-title { color: var(--cream); font-size: clamp(30px, 8.6vw, 40px); }
body.phone .status-line { color: rgba(255, 246, 236, .74); }
body.phone .side .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.phone #sent .side .actions, body.phone #reveal .side .actions, body.phone #developing .side .actions { grid-template-columns: 1fr; }
body.phone .side .actions .btn { width: 100%; min-height: 56px; padding: 0 12px; }
body.phone #review .side .actions .btn-primary { order: 2; }
body.phone .caption-field label { color: rgba(255, 246, 236, .8); }
body.phone .caption-field input { background: rgba(255, 246, 236, .06); color: var(--cream); border-color: rgba(255, 246, 236, .25); }
body.phone .bar { background: rgba(255, 246, 236, .12); }

/* sent: the print drops out of the booth slot */
body.phone .slot { display: block; position: relative; height: 14px; width: min(86%, 440px); margin: 0 auto -26px; border-radius: 7px; background: #0d0a0c; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 246, 236, .1); z-index: 2; }
body.phone #sent .big-photo { width: min(80%, 380px); position: relative; z-index: 1; clip-path: inset(0 -40px -60px -40px); }
body.phone #sent.on .big-photo .mat { animation: printOut 1.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes printOut { 0% { transform: translateY(-100%); } 70% { transform: translateY(3%); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.phone #sent.on .big-photo .mat { animation: none; } }
body.phone #gear { display: none; }
/* 5.7.0: wide (landscape) group photos keep their shape on phones */
body.phone .big-photo.wide { width: min(100%, 460px); }
body.phone .big-photo.wide .frame { aspect-ratio: var(--ar, 1.5); }
body.phone .big-photo.wide .frame img { object-fit: contain; }
