/* Elll Studio: the guided start (web/views/start.js). One question per screen, calm and roomy.
   Only the app.css tokens. Few outlines: cards sit on the surface colour and gain an accent border only when
   chosen. One selection style everywhere (a tick and an accent border). No card inside a card. */

.gs {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 72px;
}

.gs-loading {
  display: flex; align-items: center; gap: 10px;
  min-height: 40vh; justify-content: center;
  color: var(--text-2); font-size: var(--fs-sm);
}

/* ── Top: Back and the three chapters ─────────────────────────────────────── */
.gs-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 12px 0 0;
  min-height: 44px;
}
.gs-back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 10px;
  margin-inline-start: -10px;
  border: 0; background: none; border-radius: var(--r-ctl);
  color: var(--text-2); font-size: var(--fs-sm); cursor: pointer;
}
.gs-back:hover { color: var(--text-1); background: var(--surface-2); }

/* Three bars and, under them, the name of the chapter the person is in. Nothing else. */
.gs-progress {
  flex: 0 1 260px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.gs-chapters {
  display: flex; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.gs-chapters li { flex: 1 1 0; min-width: 0; }
.gs-chapter-bar {
  display: block; height: 3px; border-radius: 3px;
  background: var(--border);
}
.gs-chapters li.is-done .gs-chapter-bar,
.gs-chapters li.is-on .gs-chapter-bar { background: var(--accent-text); }
.gs-chapters li.is-on .gs-chapter-bar { opacity: .55; }
.gs-chapter-name {
  margin: 0;
  font-size: var(--fs-xs); color: var(--text-2); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.gs-banner:empty { display: none; }
.gs-trouble {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 14px;
  border-radius: var(--r-ctl);
  background: var(--warn-soft); color: var(--warn);
  font-size: var(--fs-sm);
}
.gs-trouble .grow { flex: 1 1 auto; }

/* ── The question ─────────────────────────────────────────────────────────── */
.gs-stage { padding-top: clamp(28px, 7vh, 72px); }
.gs-head { margin-bottom: 28px; }
.gs-q {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;          /* Avenir ships one weight; never a synthetic bold */
  color: var(--text-1);
  max-width: 22ch;
  text-wrap: balance;
}
[dir="rtl"] .gs-q { font-weight: 600; letter-spacing: 0; line-height: 1.3; max-width: 24ch; }
/* Focus lands on the question so a screen reader reads it; it is not a control, so it never draws a ring.
   Real controls keep their visible focus. */
.gs .gs-q:focus, .gs .gs-q:focus-visible { outline: none; box-shadow: none; }
.gs-note {
  margin: 12px 0 0; max-width: 56ch;
  color: var(--text-2); font-size: var(--fs-base);
}

/* ── Choice cards ─────────────────────────────────────────────────────────── */
.gs-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .gs-grid[data-count="3"],
  .gs-grid[data-count="5"],
  .gs-grid[data-count="6"],
  .gs-grid[data-count="7"],
  .gs-grid[data-count="9"],
  .gs-grid[data-count="10"],
  .gs-grid[data-count="11"],
  .gs-grid[data-count="12"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gs-card {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  min-height: 72px; padding: 0;
  text-align: start;
  border: 1.5px solid transparent;
  border-radius: var(--r-card);
  background: var(--surface-1);
  color: var(--text-1);
  cursor: pointer;
  overflow: hidden;
  transition: background .15s, border-color .15s, transform .1s;
}
.gs-card:hover { background: var(--surface-hover); }
.gs-card:active { transform: scale(0.99); }
.gs-card.on { border-color: var(--accent-text); background: var(--surface-1); }
.gs-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.gs-grid.is-confirming .gs-card:not(.on) { opacity: .55; }

.gs-card-text {
  flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px 18px;
  padding-inline-end: 44px;
}
.gs-card-name { font-size: var(--fs-lg); line-height: 1.25; }
[dir="rtl"] .gs-card-name { font-weight: 600; }
.gs-card-line { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }
.gs-card-badge { font-size: var(--fs-xs); color: var(--accent-text); }

.gs-tick {
  position: absolute; top: 12px; inset-inline-end: 12px;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: scale(.7);
  transition: opacity .15s, transform .15s;
  z-index: 1;
}
.gs-tick .ico { stroke-width: 2.4; }
.gs-card.on .gs-tick { opacity: 1; transform: none; }

/* Picture cards: the picture, then a two or three word name and one plain line. */
.gs-grid.has-art .gs-card-text { padding-top: 12px; padding-inline-end: 18px; }
.gs-art, .gs-plate {
  display: block; aspect-ratio: 4 / 5; width: 100%;
  background: var(--surface-2);
}
/* On a wide screen every picture choice fits without scrolling: four in a row, or six as square tiles. */
@media (min-width: 720px) {
  .gs-grid.has-art[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gs-grid.has-art[data-count="4"] .gs-card-text { padding: 12px 14px 14px; }
  .gs-grid.has-art[data-count="6"] .gs-art,
  .gs-grid.has-art[data-count="6"] .gs-plate { aspect-ratio: 1 / 1; }
  .gs-grid.has-art[data-count="6"] .gs-art img { object-position: center 30%; }
}
.gs-art { position: relative; overflow: hidden; }
.gs-art > .gs-plate { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.gs-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .18s ease-out;
}
.gs-art.is-in img { opacity: 1; }
/* A missing picture becomes a designed plate: the first letter of the name, set large. */
.gs-plate {
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.gs-plate span {
  font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1;
  opacity: .9;
}

/* Credits on an option */
.gs-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 10px; }
.gs-price b { font-weight: 600; font-size: var(--fs-base); color: var(--text-1); }
.gs-left { font-size: var(--fs-xs); color: var(--text-3); }
.gs-short { font-size: var(--fs-xs); color: var(--warn); }
.gs-have { margin: -12px 0 18px; color: var(--text-2); font-size: var(--fs-sm); min-height: 1.5em; }
.gs-price.is-waiting b, .gs-price.is-waiting span { min-height: 1.3em; }

/* ── Quiet links and actions ──────────────────────────────────────────────── */
.gs-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 2px;
  border: 0; background: none;
  color: var(--text-2); font-size: var(--fs-sm);
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px;
  cursor: pointer;
}
.gs-link:hover { color: var(--text-1); text-decoration-color: currentColor; }
.gs-more { margin-top: 10px; }
.gs-skip { margin-top: 14px; }
.gs-skip.on { color: var(--accent-text); text-decoration-color: currentColor; }

.gs-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: 24px;
}
.gs-primary { min-height: 50px; padding: 0 24px; font-size: var(--fs-base); }
.gs-quiet-line { margin: 10px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.gs-feedback:empty { display: none; }
.gs-error {
  display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 0; color: var(--bad); font-size: var(--fs-sm);
}
.gs-error .ico { margin-top: 3px; }
.gs-stage > .gs-error { margin: -12px 0 18px; }
.gs-fit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  margin-top: 18px; color: var(--text-2); font-size: var(--fs-sm);
}
.gs-fit .gs-quiet-line { margin: 0; }

/* ── What are you advertising ─────────────────────────────────────────────── */
.gs-field { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.gs-input {
  flex: 1 1 320px;
  min-height: 56px;
  font-size: var(--fs-lg) !important;
  padding: 12px 16px !important;
  background: var(--surface-1) !important;
  border-color: var(--border) !important;
  border-radius: var(--r-card) !important;
}
.gs-input:focus { border-color: var(--accent-text) !important; }
.gs-field .btn { min-height: 56px; }
.gs-site { margin-top: 26px; }
/* The site read running behind the quick questions: one quiet line under the progress bar. */
.gs-reading-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; min-height: 1.5em; }
.gs-reading-line .spin { width: 14px; height: 14px; }
.gs-site-box {
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--surface-1);
}
.gs-site-box.is-failed { background: color-mix(in srgb, var(--bad-soft) 60%, var(--surface-1)); }
.gs-site-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-lg); }
.gs-site-box.is-ready .gs-site-head .ico { color: var(--ok); }
.gs-site-box.is-failed .gs-site-head .ico { color: var(--bad); }
.gs-site-facts { margin: 8px 0 0; color: var(--text-2); }
.gs-site-box .gs-actions { margin-top: 16px; }
.gs-site-box .btn { margin-top: 14px; }
.gs-site-box .gs-actions .btn { margin-top: 0; }

/* ── Photos ───────────────────────────────────────────────────────────────── */
.gs-ask { margin: -10px 0 16px; color: var(--text-2); max-width: 56ch; }
.gs-carry { margin: -10px 0 16px; }
.gs-drop {
  border-radius: var(--r-card);
  background: var(--surface-1);
  border: 1.5px dashed var(--border);
  padding: 18px;
}
.gs-drop.has-photos { border-style: solid; border-color: transparent; }
.gs-drop-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 10px; text-align: center; color: var(--text-2);
}
.gs-drop-empty p { margin: 0; }
.gs-thumbs {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.gs-thumb {
  position: relative; margin: 0;
  aspect-ratio: 1; border-radius: var(--r-ctl); overflow: hidden;
  background: var(--surface-2);
}
.gs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gs-thumb-plate { display: grid; place-items: center; width: 100%; height: 100%; color: var(--text-3); }
.gs-thumb-x {
  position: absolute; top: 6px; inset-inline-end: 6px;
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--canvas) 78%, transparent); color: var(--text-1);
}
.gs-thumb-x:hover { background: var(--canvas); }
.gs-actions .btn[aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); }
.gs-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1; padding: 8px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-ctl);
  background: none; color: var(--text-2); font-size: var(--fs-xs); text-align: center;
  cursor: pointer;
}
.gs-slot:hover { color: var(--text-1); border-color: var(--accent-text); }
/* The site's photos on the photos question: one slot that keeps its room from "Looking for photos" to the
   photos themselves and their button, so nothing under it moves when they arrive. */
.gs-site-photos {
  margin: 0 0 16px; padding: 16px 18px;
  border-radius: var(--r-card); background: var(--surface-1);
}
.gs-site-photos-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--text-2); }
.gs-site-photos-head bdi { color: var(--text-1); }
.gs-site-photos .gs-thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.gs-site-photos.is-reading .gs-thumb { opacity: .55; }
.gs-site-photos-go { margin-top: 14px; min-height: 50px; }
/* The person's own star photo, on the man or woman question. */
.gs-thumb.gs-person { width: min(220px, 60vw); aspect-ratio: 4 / 5; border-radius: var(--r-card); }

/* A follow-up question that also takes typed words */
.gs-note-row { margin-top: 14px; display: flex; }
.gs-note-row[hidden] { display: none; }
.gs-note-input { flex: 1 1 auto; }

/* ── Review: one sentence, each answer a chip ─────────────────────────────── */
.gs-sentences { max-width: 60ch; }
.gs-sentence {
  margin: 0 0 10px;
  font-size: var(--fs-xl); line-height: 1.75; color: var(--text-2);
}
.gs-chip {
  display: inline; padding: 2px 7px; margin: 0;
  border: 0; border-radius: 6px;
  background: var(--surface-2); color: var(--text-1);
  font: inherit; line-height: inherit; cursor: pointer;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.gs-chip:hover { background: var(--accent-soft); color: var(--accent-text); }
/* A chip and the punctuation after it stay on one line; the chip's own words still wrap. */
.gs-nowrap { white-space: nowrap; }
.gs-nowrap > .gs-chip { white-space: normal; }
.gs-review-actions { margin-top: 30px; }
.gs-go { min-width: min(100%, 280px); }
.gs-after { max-width: 56ch; }

/* ── The wait ─────────────────────────────────────────────────────────────── */
.gs-wait { max-width: 56ch; }
.gs-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.gs-steps li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: var(--fs-lg);
}
.gs-steps li.is-on { color: var(--text-1); }
.gs-steps li.is-done { color: var(--text-2); }
.gs-steps li.is-done .ico { color: var(--ok); }
.gs-steps .spin { width: 16px; height: 16px; color: var(--accent-text); }
.gs-dot { width: 16px; height: 16px; display: grid; place-items: center; }
.gs-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

/* ── Scripts ──────────────────────────────────────────────────────────────── */
.gs-scripts { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.gs-script { padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.gs-script:last-child { border-bottom: 0; padding-bottom: 0; }
.gs-script-n { margin: 0 0 6px; color: var(--text-3); font-size: var(--fs-sm); }
.gs-script h2 { margin: 0 0 8px; font-size: var(--fs-xl); font-weight: 400; }
[dir="rtl"] .gs-script h2 { font-weight: 600; }
.gs-script-hook { margin: 0 0 10px; color: var(--accent-text); font-size: var(--fs-lg); }
.gs-script-lines p { margin: 0 0 6px; color: var(--text-2); line-height: 1.6; }
.gs-script-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0 18px; }
.gs-script-actions:empty { margin:0; }
.gs-make-links .gs-tune { width:100%; margin:0; }
.gs-script-actions button { min-height:44px; }
.gs-tune { margin: -14px 0 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.gs-tune .gs-link { min-height: 44px; }
.gs-tune-price { color: var(--text-3); }
.gs-tune-price:empty { display: none; }
/* "Priced from your scripts": filled once the estimate arrives, under the last script, so it never moves the
   scripts above it. */
.gs-stage-make [data-priced-from] { margin-top: 26px; }
.gs-stage-make [data-priced-from]:empty { display: none; }
/* The bar stays at the bottom while the scripts scroll under it; at the end of the page it rests after the
   last script, so the last script always scrolls fully clear of it. A focused line is never hidden under it. */
.gs-sticky {
  position: sticky; bottom: 0;
  margin-top: 30px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: var(--canvas);
  border-top: 1px solid var(--border);
  z-index: 2;
}
html:has(.gs-sticky) { scroll-padding-bottom: 140px; }

/* ── Your product, already moving (the feel question with the person's own photos) ──────────────────────
   Six tall 9:16 frames. Only transform and opacity ever move (start.js drives them); the grade is a static
   filter and the shade a static gradient. Captions: one line, no box, a strong shadow, never moving. */
.gs-grid.gs-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* From 480 px three frames a row, so each feel's name stays on screen with its frame. */
@media (min-width: 480px) {
  .gs-grid.gs-reels[data-count] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* A wide screen shows all six side by side, like six phones: wider than the question column. */
@media (min-width: 1040px) {
  .gs-grid.gs-reels[data-count="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(1120px, calc(100vw - 80px));
    margin-inline: calc((100% - min(1120px, calc(100vw - 80px))) / 2);
  }
  .gs-grid.gs-reels .gs-card-text { padding: 10px 12px 12px; }
  .gs-grid.gs-reels .gs-card-name { font-size: var(--fs-base); }
}
.gs-reel {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; width: 100%;
  container-type: inline-size;
  background: #141312;
  isolation: isolate;
}
.gs-reel > .gs-plate { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.gs-reel-shots { position: absolute; inset: 0; z-index: 1; }
.gs-reel-shots img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform-origin: 50% 50%;
  backface-visibility: hidden;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.gs-reel-base { opacity: 0; transition: opacity .2s ease-out; }
.gs-reel.is-in .gs-reel-base { opacity: 1; }
.gs-reel-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Every zoom grows away from the caption: from the top edge under a high caption, from the bottom edge under a
   low one (start.js keeps every framing inside those edges). */
.gs-reel[data-cap="high"] .gs-reel-shots img { transform-origin: 50% 0%; }
.gs-reel[data-cap="low"] .gs-reel-shots img { transform-origin: 50% 100%; }
/* A soft dark scrim at the caption's edge (not a box), so one ink reads over any photo. */
.gs-reel.has-cap .gs-reel-shade::after { content: ""; position: absolute; inset: 0; }
.gs-reel.has-cap[data-cap="low"] .gs-reel-shade::after { background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 34%); }
.gs-reel.has-cap[data-cap="high"] .gs-reel-shade::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 34%); }
.gs-reel-cap {
  position: absolute; inset-inline: 7%; z-index: 3;
  display: grid; justify-items: center;
  pointer-events: none;
}
/* Near the edges, where a product photo rarely puts the product. */
.gs-reel-cap.is-low { bottom: 10%; }
.gs-reel-cap.is-high { top: 9%; }
.gs-reel-line {
  grid-area: 1 / 1;
  max-width: 100%;
  white-space: nowrap; overflow: hidden;
  text-align: center; line-height: 1.15;
  color: var(--cap-ink, #fff);
  /* One size for the whole frame: --chars is the longest line of the frame, set on .gs-reel-cap. */
  font-size: max(13px, min(var(--cap-fs, 9cqw), calc(var(--cap-fit, 150cqw) / var(--chars, 10))));
  font-family: "TheYearOfTheCamel", var(--font); font-weight: 700;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .85), 0 0 18px rgba(0, 0, 0, .6);
}
.gs-reel-line.is-latin { font-family: "Avenir", var(--font); font-weight: 400; }
/* Joined Arabic letters take about 60% of the room a Latin capital takes, so an Arabic line may use more of it. */
.gs-reel-cap.is-ar .gs-reel-line {
  font-size: max(13px, min(var(--cap-fs, 9cqw), calc(var(--cap-fit, 150cqw) * 1.6 / var(--chars, 10))));
}
/* The bold feels thicken the one Avenir cut installed, as a real ad caption is bold. */
.gs-reel:is([data-reel="scroll_stopper"], [data-reel="laugh"], [data-reel="hype"]) .gs-reel-line.is-latin {
  -webkit-text-stroke: .035em currentColor; paint-order: stroke fill;
}

/* The six recipes: grade, shade and caption manner (the table at the top of the frames code in start.js). */
.gs-reel[data-reel="quiet_money"] .gs-reel-shots { filter: saturate(.6) sepia(.18) contrast(.93) brightness(1.03); }
.gs-reel[data-reel="quiet_money"] .gs-reel-shade { background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(12, 9, 6, .42)); }
.gs-reel[data-reel="quiet_money"] { --cap-ink: #f4ecdd; --cap-fs: 8.5cqw; --cap-fit: 110cqw; }
.gs-reel[data-reel="quiet_money"] .gs-reel-line.is-latin { text-transform: uppercase; letter-spacing: .06em; }

.gs-reel[data-reel="scroll_stopper"] .gs-reel-shots { filter: contrast(1.16) saturate(1.22); }
.gs-reel[data-reel="scroll_stopper"] { --cap-ink: #ffe14a; --cap-fs: 12cqw; --cap-fit: 118cqw; }
.gs-reel[data-reel="scroll_stopper"] .gs-reel-line.is-latin { text-transform: uppercase; letter-spacing: .01em; }

.gs-reel[data-reel="real_talk"] .gs-reel-shots { filter: saturate(.9) contrast(1.03); }
.gs-reel[data-reel="real_talk"] { --cap-fs: 8.6cqw; --cap-fit: 150cqw; }

.gs-reel[data-reel="heart"] .gs-reel-shots { filter: sepia(.18) saturate(1.06) brightness(1.05) contrast(.92); }
.gs-reel[data-reel="heart"] .gs-reel-shade { background: radial-gradient(110% 75% at 50% 40%, transparent 50%, rgba(40, 18, 8, .38)); }
.gs-reel[data-reel="heart"] { --cap-ink: #fff3e4; --cap-fs: 8cqw; --cap-fit: 150cqw; }

.gs-reel[data-reel="laugh"] .gs-reel-shots { filter: saturate(1.3) brightness(1.06) contrast(1.04); }
.gs-reel[data-reel="laugh"] { --cap-fs: 10.5cqw; --cap-fit: 118cqw; }
.gs-reel[data-reel="laugh"] .gs-reel-line.is-latin { text-transform: uppercase; }

.gs-reel[data-reel="hype"] .gs-reel-shots { filter: contrast(1.35) saturate(1.35) brightness(.96); }
.gs-reel[data-reel="hype"] .gs-reel-shade { background: radial-gradient(100% 70% at 50% 50%, transparent 45%, rgba(0, 0, 0, .5)); }
.gs-reel[data-reel="hype"] { --cap-fs: 13cqw; --cap-fit: 118cqw; }
.gs-reel[data-reel="hype"] .gs-reel-line.is-latin { text-transform: uppercase; letter-spacing: .01em; }

/* ── The first frame of the ad: beside the review sentence, and on the scripts screen ──────────────────── */
.gs-review-top { display: flex; align-items: flex-start; gap: 18px 28px; }
.gs-review-top > .gs-sentences { flex: 1 1 auto; min-width: 0; }
.gs-scene { margin: 0; flex: 0 0 auto; }
.gs-scene-review { width: 172px; }
.gs-scene-frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; width: 100%;
  border-radius: var(--r-card);
  background: var(--surface-2);
}
.gs-scene-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gs-scene-wait { opacity: .38; transition: opacity .3s ease-out; }
/* A first look that did not come: the person's own photo, plain, and no spinner; the slot keeps its room. */
.gs-scene-frame.is-failed .gs-scene-wait { opacity: 1; }
.gs-scene-frame.is-failed > .spin { display: none; }
.gs-scene-plate { position: absolute; inset: 0; background: var(--accent-soft); }
.gs-scene-frame > .spin {
  position: absolute; inset-inline-start: 10px; bottom: 10px;
  width: 16px; height: 16px; color: var(--text-1);
}
.gs-scene-pic { opacity: 0; transition: opacity .4s ease-out; }
.gs-scene-frame.is-in .gs-scene-pic { opacity: 1; }
.gs-scene-frame.is-in > .spin { display: none; }
.gs-scene-open {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: var(--r-card); cursor: zoom-in;
}
.gs-scene-open:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.gs-scene figcaption {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px; min-height: 2.9em;
  font-size: var(--fs-xs); line-height: 1.4; color: var(--text-2);
}
.gs-scene-title { color: var(--text-1); font-size: var(--fs-sm); }
.gs-scene-scripts { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 34px; }
.gs-scene-scripts > .gs-scene-open, .gs-scene-scripts > .gs-scene-frame { width: 132px; flex: 0 0 auto; }
.gs-scene-scripts figcaption { margin: 0; max-width: 34ch; }
.gs-scene-big { margin: 0; }
.gs-scene-big img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--r-card); }
.gs-scene-big figcaption { margin-top: 10px; }

/* ── Phone ────────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .gs { padding-bottom: 48px; }
  .gs-top { gap: 12px; }
  .gs-progress { flex: 0 1 150px; }
  .gs-stage { padding-top: 22px; }
  .gs-head { margin-bottom: 22px; }
  .gs-grid { gap: 10px; }
  .gs-card-text { padding: 14px 14px 16px; padding-inline-end: 38px; }
  .gs-grid.has-art .gs-card-text { padding-inline-end: 14px; }
  .gs-tick { top: 10px; inset-inline-end: 10px; }
  .gs-field .btn, .gs-primary { flex: 1 1 100%; }
  .gs-sentence { font-size: var(--fs-lg); }
  /* A phone keeps the sentence full width: the first frame sits under it, its words beside it. */
  .gs-review-top { flex-direction: column; gap: 6px; }
  .gs-scene-review { width: auto; display: flex; align-items: flex-end; gap: 14px; }
  .gs-scene-review > .gs-scene-open, .gs-scene-review > .gs-scene-frame { width: 96px; flex: 0 0 auto; }
  .gs-scene-review figcaption { margin: 0; }
  .gs-scene-scripts > .gs-scene-open, .gs-scene-scripts > .gs-scene-frame { width: 112px; }
}
@media (max-width: 360px) {
  .gs-grid:not(.has-art) { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-card, .gs-tick, .gs-art img, .gs-reel-base, .gs-scene-pic, .gs-scene-wait { transition: none; }
  .gs-card:active { transform: none; }
}
.gs-script[hidden], .word-pair[hidden] { display:none!important }
.gs-pager { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-block:4px 16px; border-block:1px solid #ffffff25; }
.gs-pager button { min-height:44px; padding:0 4px; background:none; border:0; color:inherit; font:inherit; cursor:pointer }
.gs-pager button[aria-disabled=true] { opacity:.52; cursor:default }
.gs-pager [role=status] { font-weight:600; text-align:center }
.gs .gs-stage > .gs-dock.gs-review-end { animation: none; }
.gs .gs-dock.gs-review-end {
  position: sticky !important;
  bottom: 0;
  inset-inline: auto;
  transform: none;
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--canvas);
  border-top: 1px solid var(--border);
  z-index: 30;
  max-height: 46dvh;
  overflow-y: auto;
}
.gs .gs-dock.gs-review-end.is-empty { display: none !important; }
.gs .gs-review-end-inner {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin-inline: auto;
}
.gs .gs-review-end-inner > :empty { display: none; }
.gs-stage-make .gs-dock.gs-review-end [data-priced-from] {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.gs-stage-make .gs-dock.gs-review-end .gs-fit { margin-top: 2px; }
@media (max-width: 760px) {
  .gs .gs-dock.gs-review-end {
    width: auto;
    margin-inline: calc(-1 * var(--gutter, 18px));
    padding-inline: var(--gutter, 18px);
  }
}
.gs .gs-script-actions .spoken-field { flex:1 1 130px; margin:0 }
.gs .gs-script-actions .spoken-field button.btn { background:#f2efe7!important; color:#101714!important; width:100%; font-size:17px; min-height:48px }
.gs .gs-script-actions [data-script-words], .gs .gs-script [data-script-change] { background:none; border-color:transparent; text-decoration:underline; text-underline-offset:4px; padding-inline:4px }
.gs .gs-script [data-script-change] { margin-block:12px; min-height:44px }
.gs .gs-line-edit { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; text-align:start; font:inherit; font-size:17px; line-height:1.55; color:inherit; background:none; border:0; border-bottom:1px solid #ffffff24; padding:13px 0; min-height:48px; cursor:pointer }
.gs-line-edit svg { flex:none; opacity:.72 }
.gs .gs-line-edit:is(:hover,:focus-visible) { text-decoration:underline }
.gs .gs-script-lines p:has(.gs-line-edit) { margin:0 }
@media (max-width: 560px) {
  .gs .gs-stage-make { padding-top: 10px; }
  .gs .gs-stage-make .gs-head { margin-bottom: 8px; }
  .gs .gs-stage-make .gs-script h2 { margin-bottom: 4px; }
  .gs .gs-stage-make .gs-script-actions { margin: 6px 0 8px; }
  .gs .gs-stage-make .gs-script-hook { margin-bottom: 4px; }
  .gs .gs-stage-make .gs-line-edit {
    font-size: 16px;
    line-height: 1.4;
    padding: 8px 0;
    min-height: 44px;
  }
  .gs .gs-stage-make .gs-script [data-script-change] { margin-block: 4px; min-height: 40px; }
  .gs .gs-stage-make .gs-make-links { margin: 2px 0 6px; gap: 2px 14px; }
  .gs .gs-stage-make .gs-make-links > .gs-link { min-height: 36px; }
  .gs .gs-stage-make .gs-dock.gs-review-end { margin-top: 10px; }
  .gs .gs-dock.gs-review-end .btn { min-height: 48px; }
}
.word-field { position:relative; margin-block:16px }
.word-field label { display:block; line-height:44px }
.word-field textarea[data-word] { display:block; field-sizing:content; height:auto!important; min-height:44px!important; max-height:12em; padding:10px!important; line-height:1.5; resize:vertical }
.word-field .spoken-field { margin:0 }
.word-field .spoken-field button.btn { position:absolute; inset-block-start:0; inset-inline-end:0; width:44px; height:44px; font-size:0!important; border:0; padding:0; gap:0 }
.word-field .spoken-field button.btn svg { width:22px; height:22px; margin:0 }
.word-pair ~ .spoken-hint, [data-words-status] { display:block; font-size:14px; line-height:1.5; margin-block:8px }

/* ── Wave 2: Captured brief chips + inline tweak drawer ───────────────────── */
.gs-brief-chips-wrap {
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.gs-brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gs-brief-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--surface-1);
  color: var(--text-1);
  font-size: 0.8125rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gs-brief-chip:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.gs-brief-chip.on { border-color: var(--accent-text); background: var(--accent-soft); }
.gs-brief-chip-k { color: var(--text-3); font-size: 0.78rem; flex: 0 0 auto; }
.gs-brief-chip-v {
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 22ch;
}
.gs-brief-chip .ico { opacity: .65; flex: 0 0 auto; }
.gs-chip-tweak-slot:empty { display: none; }
.gs-chip-tweak {
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: grid;
  gap: 10px;
}
.gs-chip-tweak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-sm);
}
.gs-chip-tweak-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gs-tweak-opt {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gs-tweak-opt:hover { border-color: var(--border-strong); }
.gs-tweak-opt.on {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.gs-chip-tweak-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.gs-tweak-input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 8px 12px !important;
  border-radius: var(--r-ctl) !important;
  font-size: var(--fs-sm) !important;
}
.gs-chip-tweak-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ── Wave 2: Wait screen Live Quality Guard feed ──────────────────────────── */
.gs-wait-guard {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: grid;
  gap: 8px;
}
.gs-wait-guard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
}
.gs-wait-guard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}
.gs-wait-guard-badge {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 15%, var(--surface-2));
  color: var(--ok);
  font-size: var(--fs-xs);
}
.gs-wait-guard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.gs-wait-guard-list li {
  display: grid;
  gap: 2px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--border-strong);
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.gs-wait-guard-list li.is-caught { border-inline-start-color: var(--warn); }
.gs-wait-guard-list li.is-redone { border-inline-start-color: var(--accent-text); }
.gs-wait-guard-list li.is-verified { border-inline-start-color: var(--ok); }
.gs-wait-guard-msg { color: var(--text-1); }
.gs-wait-guard-detail { color: var(--text-3); }

/* ── Wave 2: Anti-Slop Script Check Pills & Interactive Beat Storyboard ───── */
.gs-checks-bar {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
}
.gs-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.25;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-2);
}
.gs-check-pill.is-pass {
  border-color: color-mix(in srgb, var(--ok) 36%, var(--border));
  background: color-mix(in srgb, var(--ok) 10%, var(--surface-1));
  color: var(--text-1);
}
.gs-check-pill.is-pass .ico { color: var(--ok); width: 13px; height: 13px; }
.gs-check-pill.is-warn {
  border-color: color-mix(in srgb, var(--warn) 42%, var(--border));
  background: var(--warn-soft);
  color: var(--warn);
}
.gs-check-pill.is-warn .ico { width: 13px; height: 13px; }

.gs-script-lines p[data-line] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.gs-script-lines p[data-line]:has(.gs-line-edit) { border-bottom: 0; }
.gs-beat-pill {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.gs-beat-pill:hover { border-color: var(--accent-text); color: var(--text-1); }
.gs-beat-pill.is-open {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.gs-beat-say {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
}
.gs-script-lines p[data-line] .gs-line-edit {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.gs-beat-detail {
  margin: 4px 0 8px;
  padding: 10px 12px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: grid;
  gap: 8px;
  font-size: var(--fs-xs);
}
.gs-beat-detail[hidden] { display: none !important; }
.gs-beat-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.gs-beat-role {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.gs-beat-range { color: var(--text-2); }
.gs-beat-prod {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 12%, var(--surface-2));
  color: var(--ok);
}
.gs-beat-grid {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}
.gs-beat-grid dt { color: var(--text-3); white-space: nowrap; }
.gs-beat-grid dd { margin: 0; color: var(--text-1); line-height: 1.45; }
.gs-beat-detail-foot { display: flex; justify-content: flex-end; }
.gs-beat-edit-btn { min-height: 34px; font-size: var(--fs-xs); }
.gs-beat-edit-btn[hidden] { display: none; }

/* ── Wave 2: Compact Instant Motion / Tier Quote Preview in Dock ──────────── */
.gs-tier-preview:empty { display: none; }
.gs-tier-preview { display: grid; gap: 6px; }
.gs-tier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.gs-tier-summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gs-tier-summary strong { color: var(--text-1); font-weight: 600; }
.gs-tier-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.7rem;
}
.gs-tier-toggle {
  border: 0;
  background: none;
  color: var(--accent-text);
  font-size: var(--fs-xs);
  padding: 2px 4px;
  min-height: 28px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gs-tier-panel {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-ctl);
  background: var(--surface-1);
  border: 1px solid var(--border);
}
.gs-tier-panel[hidden] { display: none; }
.gs-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gs-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-xs);
  cursor: pointer;
}
.gs-tier-pill.is-on {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  color: var(--text-1);
}
.gs-tier-desc, .gs-tier-note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .gs-checks-bar { margin: 0 0 6px; gap: 4px; }
  .gs-check-pill { padding: 2px 7px; font-size: 0.7rem; }
  .gs .gs-stage-make .gs-line-edit {
    font-size: 15px;
    line-height: 1.35;
    padding: 6px 0;
    min-height: 40px;
  }
  .gs-beat-pill { min-width: 40px; min-height: 28px; padding: 2px 6px; font-size: 0.7rem; }
  .gs-beat-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gs-beat-grid dt { margin-top: 4px; font-size: 0.7rem; }
  .gs .gs-stage-make .gs-dock.gs-review-end {
    margin-top: 6px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-captured-chip, .gs-chip-tweak-opt, .gs-beat-pill { transition: none; }
}
