/* Elll Studio identity, built from the Elll logo (owner ruling, 2 Dec 2026: "built from our logo", dark).

   The logo is the word Elll drawn as four flat blocks of one stroke weight, square cut, in one ink (#394B44).
   Everything here follows from it:
   1. One hue. The canvas is the logo green taken almost to black. A choice is a block of the logo green.
      The one thing to press, and the thing chosen, is paper cream. Photos and videos bring every other colour.
   2. Square. Blocks have no radius; inputs and buttons a 3 px radius, so a control is never mistaken for a
      block. No shadows, no gradients, no glass, no glow.
   3. Size does the work, never a fake bold. Latin in Avenir (it has one weight), Arabic in TheYearOfTheCamel
      (it has real weights). font-synthesis is off so a browser never smears a bold.
   4. The mark. The start flow's progress is the logo itself, one bar per chapter filling with cream. Waiting is
      the three bars rising like a sound meter. The mark is never redrawn, stretched, outlined or decorated.
   5. Motion. Things rise into place once, like the bars (about 300 ms, ease out). Reduced motion: none.
   6. Choices are a list. Every question shows its answers as full-width blocks stacked one under another, with
      the picture at the start of the block when there is one. Never a grid of tiles. The one exception is the
      person's own product moving in six feels: those are watched, so they sit in a row you swipe through.
   7. Back is one square key, never a row of its own: in the dock on a question, at the start of the title row
      or the pager row on other pages. A page that is itself a tab (Brands, Credits) has none.
   8. Readable on a phone: no text under 13 px, and nothing (a toast included) ever covers the next action.

   This file is loaded last and overrides the older styles. */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --elll: #394B44;
  --canvas: #0C110F;
  --ambient: none;
  --surface-1: #121916;
  --surface-2: #19221E;
  --surface-hover: #212C27;
  --border: #26322D;
  --border-strong: #5E6F68;
  --text-1: #F2EFE7;
  --text-2: #BCC5C0;
  --text-3: #8F9B95;
  --block: #394B44;
  --block-hover: #42574F;
  --block-ink: #F2EFE7;
  --block-line: #C9D3CE;
  --paper: #F2EFE7;
  --ink: #0C110F;
  --accent: #F2EFE7;
  --accent-hover: #FFFFFF;
  --accent-ink: #0C110F;
  --accent-text: #A8CBBB;
  --accent-soft: #1C2823;
  --glow: none;
  --ok: #8FCBAA;
  --ok-soft: #142319;
  --warn: #E9C27A;
  --warn-soft: #2A2214;
  --bad: #F2958A;
  --bad-soft: #2C1816;
  --shadow: none;
  --r-card: 0px;
  --r-ctl: 3px;
  --gutter: clamp(18px, 4.2vw, 60px);
  --rise: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #F3F0E8;
  --surface-1: #FBF9F4;
  --surface-2: #E8E5DC;
  --surface-hover: #DFDCD2;
  --border: #D3CFC3;
  --border-strong: #7C8781;
  --text-1: #0F1513;
  --text-2: #3B4742;
  --text-3: #56635D;
  --block: #394B44;
  --block-hover: #2F3F39;
  --block-ink: #F3F0E8;
  --block-line: #CBD5D0;
  --paper: #F3F0E8;
  --ink: #0F1513;
  --accent: #0F1513;
  --accent-hover: #26322D;
  --accent-ink: #F3F0E8;
  --accent-text: #2F5446;
  --accent-soft: #E1E8E3;
  --ok: #2E6650;
  --ok-soft: #E0EDE3;
  --warn: #764A0D;
  --warn-soft: #F4E8CC;
  --bad: #9A382A;
  --bad-soft: #F5E4DE;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { font-synthesis: none; }
body { background: var(--canvas); }
html[dir="rtl"] body { font-family: "TheYearOfTheCamel", "Avenir", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 400; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-weight: 600; letter-spacing: 0; }
h1 { letter-spacing: -0.03em; line-height: 1.08; }
:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; border-radius: 0; }
::selection { background: var(--elll); color: var(--paper); }

/* ── Header: the mark in cream, "Studio" quiet beside it ─────────────────── */
.top { background: var(--canvas); border-bottom: 1px solid var(--border); }
.studio-wordmark { gap: 11px; color: var(--text-1); }
.studio-wordmark .elll-mark { width: 30px; height: 30px; }
.studio-wordmark > span {
  font-family: "Avenir", system-ui, sans-serif; font-weight: 400;
  font-size: 19px; letter-spacing: .01em; color: var(--text-2);
}
.pill { border-radius: var(--r-ctl); }
.credits-pill { background: transparent; border: 1px solid var(--border-strong); color: var(--text-1); }

/* ── Controls ────────────────────────────────────────────────────────────── */
.btn {
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-weight: 400; letter-spacing: .005em; box-shadow: none;
  transition: background .15s, border-color .15s, transform .08s;
}
html[dir="rtl"] .btn { font-weight: 600; letter-spacing: 0; }
.btn:hover:not([disabled]) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn.subtle { background: transparent; border-color: var(--border-strong); color: var(--text-1); }
.btn.subtle:hover:not([disabled]) { background: var(--surface-2); border-color: var(--text-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover:not([disabled]) { background: var(--surface-2); color: var(--text-1); }
.btn.small { min-height: 36px; }
.btn[disabled] { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }
.chip { border-radius: 2px; }
.card, .notice, .dialog, .menu { border-radius: 0; box-shadow: none; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  border-radius: var(--r-ctl); background: var(--surface-1); border: 1.5px solid var(--border-strong);
}
input:focus, select:focus, textarea:focus { border-color: var(--text-1); }

/* Waiting: the three bars of the logo, rising like a sound meter. */
.spin {
  position: relative; display: inline-block; flex-shrink: 0;
  width: 15px; height: 13px; vertical-align: -1px;
  border: 0; border-radius: 0; color: inherit;
  background: linear-gradient(currentColor, currentColor) center bottom / 3px 100% no-repeat;
  animation: elll-meter-mid .9s ease-in-out infinite;
}
.spin::before, .spin::after {
  content: ""; position: absolute; bottom: 0; width: 3px; height: 100%;
  background: currentColor; transform-origin: bottom;
  animation: elll-meter .9s ease-in-out infinite;
}
.spin::before { left: 0; }
.spin::after { right: 0; animation-delay: -.45s; }
@keyframes elll-meter { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes elll-meter-mid { 0%, 100% { background-size: 3px 100%; } 50% { background-size: 3px 35%; } }

/* ── The start flow ──────────────────────────────────────────────────────── */
.gs { max-width: 680px; }

/* Keep the feedback dialog inside the current task, above the mobile keyboard. */
.top .feedback-trigger { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 42px; }
.feedback-trigger .ico { width: 21px; height: 21px; }
.feedback-pane { max-width: 640px; margin-inline: auto; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.feedback-pane textarea { width: 100%; min-height: 96px; font-size: 16px; resize: vertical; }
.feedback-pane :is(p, h1, h2) { margin-bottom: 0; }
.feedback-pane [dir=ltr].feedback-meta { display: block; font-size: .75rem; }
.feedback-pane[data-feedback-page] { padding-block: 24px; }
.feedback-pane .btn { min-height: 44px; }
.feedback-pane .feedback-copy { white-space: pre-wrap; }
.feedback-pane .feedback-item { padding-block: 18px; border-block-start: 1px solid var(--border); }
.feedback-pane .feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.feedback-pane .feedback-meta { color: var(--text-2); font-size: .875rem; }
.feedback-pane [role=alert] { color: var(--bad); }
.feedback-pane [aria-live]:empty { margin-block: 0; }
.dialog:has(.feedback-pane) { max-height: calc(100dvh - 32px); }
@media (max-width: 520px) {
  .dialog .feedback-pane > .feedback-actions .btn { width: 100%; }
}
@media (max-width: 840px) {
  .top .feedback-trigger { min-width: 40px; padding-inline: 4px; }
  .feedback-trigger span { display: none; }
}
@media (max-width: 390px) {
  .top:has(.feedback-trigger) .wrap { gap: 2px; padding-inline: 8px; }
  .top:has(.feedback-trigger) .quiet-exit { padding-inline: 4px; }
  .top:has(.feedback-trigger) .pill { padding-inline: 5px; }
}

/* Progress: one thin bar at the top of the question, the share of this person's questions already behind them.
   The logo appears once, in the header. */
.gs .gs-topwrap { margin-top: 0; }
.gs .gs-progress {
  display: block; position: relative; height: 3px; margin: 0;
  background: var(--surface-2); overflow: hidden;
}
.gs .gs-progress-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--text-1); transition: width .3s var(--rise); }
.gs .gs-top { margin-top: 6px; min-height: 44px; }
/* The bar is the header's bottom edge, the full width of the screen: one line, never a rule and a bar. The
   quiet header holds a fixed height (--hdr) plus any top safe area so the bar always meets it. */
:root { --hdr: 58px; }
@media (max-width: 560px) { :root { --hdr: 56px; } }
.top { padding-top: env(safe-area-inset-top, 0px); }
body:has(.gs-progress) .quiet-top { border-bottom: 0; }
.quiet-top .wrap { min-height: var(--hdr); height: var(--hdr); }
.gs .gs-progress { position: fixed; top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); inset-inline: 0; z-index: 21; margin: 0; }

/* The question: large, plain, tight. */
.gs-stage { padding-top: clamp(8px, 3vh, 40px); }
.gs-head { margin-bottom: 18px; }
/* Which brand the ad is for: one quiet line above the question, no box, no icon. */
.gs-for-brand { margin: 0 0 6px; font-size: 13px; line-height: 1.3; color: var(--text-2); }
.gs-q {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.06; letter-spacing: -0.032em;
  max-width: 15ch;
}
[dir="rtl"] .gs-q { line-height: 1.32; letter-spacing: 0; max-width: 18ch; }
.gs-note { color: var(--text-2); font-size: 1rem; }

/* Choices: full-width blocks of the logo green, one under another. */
.gs .gs-grid {
  display: flex; flex-direction: column; gap: 8px;
  grid-template-columns: none;
}
.gs .gs-card {
  flex-direction: row; align-items: stretch;
  min-height: 68px;
  border: 0; border-radius: 0;
  background: var(--block); color: var(--block-ink);
  transition: background .15s, transform .08s;
}
.gs .gs-card:hover { background: var(--block-hover); }
.gs .gs-card:active { transform: translateY(1px); }
.gs .gs-card:focus-visible { outline: 2px solid var(--text-1); outline-offset: 3px; }
.gs .gs-card.on { background: var(--accent); color: var(--accent-ink); }
/* Choosing never greys out the others: a person may still change their mind before Continue. */
.gs .gs-grid.is-confirming .gs-card:not(.on) { opacity: 1; }
.gs .gs-card-text {
  justify-content: center; gap: 3px;
  padding: 16px 22px;
  padding-inline-end: 60px;
}
.gs .gs-card-name { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
[dir="rtl"] .gs .gs-card-name { font-weight: 600; letter-spacing: 0; }
.gs .gs-card-line { font-size: .9375rem; line-height: 1.4; color: var(--block-line); }
.gs .gs-card.on .gs-card-line { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.gs .gs-card-badge { color: var(--accent-text); font-size: .8125rem; letter-spacing: .02em; }
.gs .gs-card.on .gs-card-badge { color: var(--elll); }
.gs .gs-tick {
  top: 50%; inset-inline-end: 20px;
  width: 26px; height: 26px; border-radius: 0;
  background: var(--accent-ink); color: var(--accent);
  transform: translateY(-50%) scale(.6);
}
.gs .gs-card.on .gs-tick { transform: translateY(-50%); }

/* A choice with a picture: the picture starts the block, the words beside it. */
.gs .gs-grid.has-art .gs-card { min-height: 0; }
.gs .gs-grid.has-art .gs-art,
.gs .gs-grid.has-art > .gs-card > .gs-plate,
.gs .gs-grid.has-art[data-count] .gs-art {
  flex: 0 0 auto; width: clamp(104px, 30%, 140px); aspect-ratio: 3 / 4;
  background: var(--surface-2);
}
.gs .gs-grid.has-art .gs-art img { object-position: center 28%; }
.gs .gs-grid.has-art .gs-card-text { padding: 18px 22px; padding-inline-end: 58px; }
.gs .gs-plate { background: var(--surface-2); color: var(--block-line); border-radius: 0; }

/* The person's own product moving in six feels: watched, so a row to swipe through. */
.gs .gs-grid.gs-reels {
  flex-direction: row; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.gs .gs-grid.gs-reels .gs-card {
  flex: 0 0 min(64vw, 236px); flex-direction: column;
  scroll-snap-align: start;
  background: transparent; color: var(--text-1);
}
.gs .gs-grid.gs-reels .gs-card:hover { background: transparent; }
.gs .gs-grid.gs-reels .gs-card .gs-reel { border-radius: 0; }
.gs .gs-grid.gs-reels .gs-card-text { padding: 12px 2px 4px; padding-inline-end: 2px; }
.gs .gs-grid.gs-reels .gs-card-line { color: var(--text-2); }
.gs .gs-grid.gs-reels .gs-card.on { background: transparent; color: var(--text-1); }
.gs .gs-grid.gs-reels .gs-card.on .gs-reel { outline: 3px solid var(--accent); outline-offset: -3px; }
.gs .gs-grid.gs-reels .gs-tick { top: 12px; transform: scale(.6); background: var(--accent); color: var(--accent-ink); }
.gs .gs-grid.gs-reels .gs-card.on .gs-tick { transform: none; }
@media (max-width: 720px) {
  .gs .gs-grid.gs-reels { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
}

/* Prices sit at the foot of their block, under a hairline. */
.gs .gs-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 12px;
}
/* The price takes the ink of its block, so it stays readable at the moment it is chosen (rule 19). */
.gs .gs-price b { font-size: 1.1rem; font-weight: 400; color: inherit; }
.gs .gs-card.on .gs-price b { color: var(--accent-ink); }
.gs .gs-left { color: var(--block-line); font-size: .875rem; }
.gs .gs-card.on .gs-left { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); }
.gs .gs-short { color: var(--warn); font-size: .875rem; }
.gs .gs-card.on .gs-short { color: #7A4A00; }

/* Links that do something quieter than a choice. */
.gs .gs-link { color: var(--text-1); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong); }
.gs .gs-link:hover { text-decoration-color: var(--text-1); }

/* Fields: a 3 px corner and an edge you can see, like every control (start.css sets them with !important). */
.gs .gs-input { min-height: 56px; font-size: 1.125rem; border: 1.5px solid var(--border-strong) !important; border-radius: var(--r-ctl) !important; }
.gs .gs-input:focus { border-color: var(--text-1) !important; }

/* The review sentence: every answer is a block of the logo green you can tap to change. */
.gs .gs-chip {
  border-radius: 0; border: 0;
  background: var(--block); color: var(--block-ink);
  padding: 1px 9px 3px;
}
.gs .gs-chip:hover { background: var(--block-hover); }

/* Review: the answers as a list. Each row is the label, the answer, and a quiet Change; a missing answer
   says so in its own row. */
.gs .gs-review-top { display: block; }
.gs .gs-sentences { max-width: none; }
.gs .gs-sum { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.gs .gs-sum-row {
  display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 48px; padding: 8px 2px;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  background: none; color: var(--text-1); text-align: start; cursor: pointer;
}
.gs .gs-sum-row:hover { background: var(--surface-1); }
.gs .gs-sum-row:focus-visible { outline: 2px solid var(--text-1); outline-offset: -2px; }
/* The label and the answer share one line, so the whole list and its action fit on one phone screen. */
.gs .gs-sum-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: baseline; gap: 12px; }
.gs .gs-sum-label { flex: 0 0 6.5rem; font-size: .8125rem; color: var(--text-3); letter-spacing: .02em; }
.gs .gs-sum-value { flex: 1 1 auto; min-width: 0; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
html[dir="rtl"] .gs .gs-sum-value { font-weight: 600; }
.gs .gs-sum-go {
  flex: none; font-size: .875rem; color: var(--text-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong);
}
.gs .gs-sum-row.is-missing .gs-sum-value { color: var(--warn); }
.gs .gs-sum-row.is-missing .gs-sum-go { color: var(--text-1); text-decoration-color: var(--text-1); }
.gs .gs-sum-missing { margin: 0 0 14px; color: var(--warn); }
.gs .gs-review-actions { margin-top: 18px; }
.gs .gs-review-actions .btn { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.gs .gs-after { margin-top: 12px; color: var(--text-2); }

/* The scripts screen: its bar is the same dock as every question (below). The way into the project sits under
   the title with the fine-tune line, and the price has its room in the button from the first draw, so the
   label never changes after the screen is drawn. */
.gs .gs-make-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0 0 16px; }
.gs .gs-make-links > .gs-tune { margin: 0; }
.gs .gs-make-links > .gs-link { min-height: 44px; }
.gs .gs-go-price {
  display: inline-block; min-width: 6.5em; text-align: start;
  margin-inline-start: 12px; padding-inline-start: 12px;
  border-inline-start: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.gs .gs-go-price:empty { border-color: transparent; }

/* Motion: the question and its blocks rise into place once. */
@media (prefers-reduced-motion: no-preference) {
  .gs-stage > * { animation: elll-rise .3s var(--rise) backwards; }
  .gs-stage > :nth-child(2) { animation-delay: .05s; }
  .gs-stage > :nth-child(3) { animation-delay: .1s; }
  .gs .gs-grid > .gs-card { animation: elll-rise .32s var(--rise) backwards; }
  /* Prices redraw their blocks when the estimate lands; they must not rise a second time. */
  .gs .gs-priced .gs-grid > .gs-card { animation: none; }
  .gs .gs-grid > .gs-card:nth-child(2) { animation-delay: .04s; }
  .gs .gs-grid > .gs-card:nth-child(3) { animation-delay: .08s; }
  .gs .gs-grid > .gs-card:nth-child(4) { animation-delay: .12s; }
  .gs .gs-grid > .gs-card:nth-child(5) { animation-delay: .16s; }
  .gs .gs-grid > .gs-card:nth-child(6) { animation-delay: .2s; }
  .gs .gs-grid > .gs-card:nth-child(n+7) { animation-delay: .24s; }
}
@keyframes elll-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Every option on one screen. A choice block shares the height that is left between the question and the
   Continue bar, within a floor that keeps it easy to tap and a ceiling that keeps it calm on a tall screen.
   --fit is the room the header, the question and the bar take (measured on a 375 px phone). */
.gs { --fit: 330px; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.gs:has(.gs-dock.gs-review-end) { padding-bottom: 12px; }
html:has(.gs-dock) {
  scroll-padding-top: calc(var(--hdr, 58px) + env(safe-area-inset-top, 0px) + 16px);
  scroll-padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
}
.gs .gs-grid { gap: 6px; }
.gs .gs-grid[data-count] > .gs-card { min-height: 52px; }
.gs .gs-grid:not(.has-art)[data-count="2"] > .gs-card,
.gs .gs-grid:not(.has-art)[data-count="3"] > .gs-card,
.gs .gs-grid:not(.has-art)[data-count="4"] > .gs-card { min-height: clamp(56px, calc((100dvh - var(--fit)) / 4.4), 84px); }
.gs .gs-grid:not(.has-art)[data-count="5"] > .gs-card,
.gs .gs-grid:not(.has-art)[data-count="6"] > .gs-card { min-height: clamp(50px, calc((100dvh - var(--fit)) / 6.5), 72px); }
.gs .gs-grid:not(.has-art) .gs-card-text { padding: 10px 20px; padding-inline-end: 56px; }
.gs .gs-card-name { font-size: 1.1875rem; }
.gs .gs-card-line { font-size: .875rem; }

.gs .gs-grid.has-art[data-count] > .gs-card { height: clamp(64px, calc((100dvh - var(--fit)) / 4.3), 118px); min-height: 0; }
.gs .gs-grid.has-art[data-count="5"] > .gs-card,
.gs .gs-grid.has-art[data-count="6"] > .gs-card { height: clamp(58px, calc((100dvh - var(--fit)) / 6.4), 96px); }
.gs .gs-grid.has-art .gs-art,
.gs .gs-grid.has-art > .gs-card > .gs-plate,
.gs .gs-grid.has-art[data-count] .gs-art { width: auto; height: 100%; aspect-ratio: 3 / 4; }
.gs .gs-grid.has-art .gs-card-text { padding: 8px 18px; padding-inline-end: 54px; }
.gs .gs-grid.has-art .gs-card-line {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Arabic letters in TheYearOfTheCamel run smaller than Avenir at one size, so its lines are set a step up. */
[dir="rtl"] .gs .gs-card-line { font-size: .9375rem; line-height: 1.5; }
/* Six pictured blocks: two short lines each, so a description is read whole, not cut. */
.gs .gs-grid.has-art[data-count="6"] .gs-card-line { -webkit-line-clamp: 2; font-size: .8125rem; line-height: 1.3; }
.gs .gs-grid.has-art[data-count="6"] .gs-card-text { gap: 1px; padding-block: 6px; }

/* The stars are the point of their question, so the picture leads: two fifths of the block, cropped on the face
   and the mark, the name beside it. The blocks give up a little height so the quiet "You choose" link keeps
   clear of the dock. */
.gs .gs-grid.gs-stars.has-art[data-count] > .gs-card { height: clamp(58px, calc((100dvh - var(--fit) - 30px) / 6.4), 96px); }
.gs .gs-grid.gs-stars.has-art .gs-art,
.gs .gs-grid.gs-stars.has-art > .gs-card > .gs-plate,
.gs .gs-grid.gs-stars.has-art[data-count] .gs-art { flex: 0 0 40%; width: 40%; height: 100%; aspect-ratio: auto; }
.gs .gs-grid.gs-stars.has-art .gs-art img { object-position: 50% 30%; }
.gs .gs-grid.gs-stars.has-art .gs-card-text { padding-inline: 12px 40px; min-width: 0; }
.gs .gs-grid.gs-stars.has-art .gs-card-name { font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs .gs-grid.gs-stars.has-art .gs-tick { inset-inline-end: 10px; }
.gs .gs-grid.gs-stars ~ .gs-skip, .gs .gs-cards:has(.gs-stars) + .gs-skip { margin-bottom: 8px; }
@media (min-width: 900px) {
  /* Up to 120 px a block where the screen is tall enough; all six and the link always stay above the dock. */
  .gs .gs-grid.gs-stars.has-art[data-count] > .gs-card { height: clamp(64px, calc((100dvh - var(--fit) - 24px) / 6.2), 120px); }
  .gs .gs-grid.gs-stars.has-art .gs-art,
  .gs .gs-grid.gs-stars.has-art > .gs-card > .gs-plate,
  .gs .gs-grid.gs-stars.has-art[data-count] .gs-art { flex-basis: 200px; width: 200px; }
  .gs .gs-grid.gs-stars.has-art .gs-art img { object-position: 50% 26%; }
  .gs .gs-grid.gs-stars.has-art .gs-card-text { padding-inline: 22px 60px; }
  .gs .gs-grid.gs-stars.has-art .gs-card-name { font-size: 1.375rem; }
  .gs .gs-grid.gs-stars.has-art .gs-card-line { font-size: .9375rem; }
}

/* Which brand is this for: each block starts with the brand's logo, whole, on a square of the canvas. */
.gs .gs-grid.gs-brands.has-art[data-count] > .gs-card { height: clamp(64px, calc((100dvh - var(--fit)) / 6.2), 84px); }
.gs .gs-grid.gs-brands.has-art .gs-art,
.gs .gs-grid.gs-brands.has-art > .gs-card > .gs-plate,
.gs .gs-grid.gs-brands.has-art[data-count] .gs-art { flex: 0 0 auto; height: 100%; width: auto; aspect-ratio: 1 / 1; background: var(--surface-1); }
.gs .gs-grid.gs-brands .gs-art img { object-fit: contain; object-position: center; padding: 10px; }
.gs .gs-grid.gs-brands .gs-logo .bk-mark { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; background: transparent; }
.gs .gs-grid.gs-brands .gs-logo .bk-mark img { position: static; width: 100%; height: 100%; object-fit: contain; padding: 10px; opacity: 1; }
.gs .gs-grid.gs-brands .gs-logo-initial,
.gs .gs-grid.gs-brands .gs-plate span { font-size: 1.75rem; line-height: 1; color: var(--block-line); }
.gs .gs-grid.gs-brands .gs-plate { background: var(--surface-1); color: var(--block-line); }
.gs .gs-grid.gs-brands .gs-plate-new .ico { width: 26px; height: 26px; }
.gs .gs-brand-status { min-height: 1.4em; display: flex; align-items: center; gap: 8px; }

/* Prices: the name and its price on one line, what is left under it. */
.gs .gs-priced .gs-card-text { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-content: center; }
.gs .gs-priced .gs-card-text > * { grid-column: 1; }
.gs .gs-priced .gs-price { grid-column: 2; grid-row: 1 / span 3; margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: end; }
.gs .gs-priced .gs-grid > .gs-card { min-height: clamp(64px, calc((100dvh - var(--fit) - 40px) / 3.6), 96px); }
/* On a phone the price goes under the name, so the name and its line keep the width of the block. */
@media (max-width: 560px) {
  .gs .gs-priced .gs-card-text { display: flex; flex-direction: column; justify-content: center; }
  .gs .gs-priced .gs-price {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
    margin-top: 6px; padding-top: 0; text-align: start;
  }
  .gs .gs-priced .gs-price b { line-height: 1.3; }
  .gs .gs-priced .gs-left { white-space: nowrap; }
}

/* The person's own product moving in six feels: all six on one screen, three by two. */
.gs .gs-grid.gs-reels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none;
}
.gs .gs-grid.gs-reels[data-count] > .gs-card,
.gs .gs-grid.gs-reels[data-count="6"] > .gs-card { height: auto; min-height: 0; flex: none; flex-direction: column; }
.gs .gs-grid.gs-reels .gs-card .gs-reel { width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: calc((100dvh - var(--fit) - 70px) / 2); }
.gs .gs-grid.gs-reels .gs-card-text { padding: 6px 0 2px; }
.gs .gs-grid.gs-reels .gs-card-name { font-size: .9375rem; min-height: 2.4em; line-height: 1.2; }
.gs .gs-grid.gs-reels .gs-card-line { display: none; }
/* The person's own words wrap inside a narrow frame instead of being cut off. */
.gs .gs-grid.gs-reels .gs-reel-line { white-space: normal; overflow-wrap: anywhere; text-wrap: balance; line-height: 1.15; }

/* The bottom dock: the one action of the screen, always in reach. */
.gs .gs-dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  margin: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--canvas); border-top: 1px solid var(--border);
}
.gs .gs-dock .btn { width: 100%; max-width: 680px; min-height: 54px; font-size: 1.0625rem; }
.gs .gs-dock .btn[disabled] { background: var(--surface-2); border-color: var(--surface-2); color: var(--text-3); }

/* The main navigation: a bar at the bottom of the screen on a phone, with an icon over each word. */
.shell-nav-link .ico { display: none; }
.shell-nav { border-radius: var(--r-ctl); background: transparent; border: 0; padding: 0; }
.shell-nav-link { border-radius: var(--r-ctl); font-weight: 400; }
.shell-nav-link.on { background: var(--surface-2); border-color: transparent; box-shadow: none; }
@media (max-width: 720px) {
  .top:not(.show-top) .wrap { flex-wrap: nowrap; padding-block: 0; }
  .top .shell-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
    order: 0; flex: none; margin: 0;
    display: flex; gap: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: var(--canvas); border-top: 1px solid var(--border); border-radius: 0;
  }
  .top .shell-nav-link {
    position: relative; flex: 1 1 0;
    flex-direction: column; gap: 3px;
    min-height: 54px; padding: 4px 2px;
    border: 0; border-radius: 0; background: none;
    font-size: .75rem; color: var(--text-3);
  }
  .top .shell-nav-link .ico { display: block; width: 22px; height: 22px; }
  .top .shell-nav-link.on { color: var(--text-1); background: none; }
  .top .shell-nav-link.on::before {
    content: ""; position: absolute; top: -4px; left: 50%; width: 28px; height: 3px;
    margin-left: -14px; background: var(--text-1);
  }
  body:has(.top .shell-nav) #app { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* Back lives in the bottom dock, beside the action, as one square key: no row of its own at the top.
   The dock's content sits in the same column as the question on a wide screen. */
.gs { --col: max(var(--gutter), calc((100vw - 680px) / 2)); }
.gs .gs-top { margin: 0; min-height: 0; height: 0; }
.gs .gs-back {
  position: fixed; z-index: 31;
  bottom: calc(10px + env(safe-area-inset-bottom)); inset-inline-start: var(--col);
  width: 54px; height: 54px; min-width: 0; min-height: 0; margin: 0; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl);
  background: var(--canvas); color: var(--text-1);
  font-size: 0; line-height: 0;
}
.gs .gs-back:hover { background: var(--surface-2); border-color: var(--text-2); }
.gs .gs-back .ico { width: 22px; height: 22px; }
.gs .gs-dock { padding-inline: var(--col); }
.gs .gs-dock .btn { max-width: none; }
.gs:has(.gs-back) .gs-dock { padding-inline-start: calc(var(--col) + 62px); }
.gs .gs-dock .btn.subtle { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* A screen without an action of its own still gets the dock's floor, so Back never floats over content. */
.gs:has(.gs-back):not(:has(.gs-dock))::after {
  content: ""; position: fixed; inset-inline: 0; bottom: 0; z-index: 29;
  height: calc(74px + env(safe-area-inset-bottom));
  background: var(--canvas); border-top: 1px solid var(--border);
}
.gs .gs-stage { padding-top: clamp(14px, 3vh, 40px); }

/* The video page on a phone: its one action (Download, Make this video, Try again) stays in reach, just above
   the navigation bar, while the person reads the script under the video. */
@media (max-width: 720px) {
  .vp-side > .vp-act:first-of-type {
    position: sticky; z-index: 20;
    bottom: calc(66px + env(safe-area-inset-bottom));
    margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter);
    background: var(--canvas); border-top: 1px solid var(--border);
  }
  .vp-side > .vp-act:first-of-type .btn { width: 100%; min-height: 52px; }
}

/* ── Photos: a plain box with a visible edge; the one filled action is Add photos in the dock ───────────── */
.gs .gs-drop { border: 1.5px solid var(--border-strong); background: none; padding: 0; }
.gs .gs-drop.over { border-color: var(--text-1); }
.gs .gs-drop-empty {
  width: 100%; min-height: 160px; padding: 28px 16px; margin: 0;
  border: 0; background: none; color: var(--text-2); font: inherit; font-size: 1rem; cursor: pointer;
}
.gs .gs-drop-empty:hover { background: var(--surface-1); color: var(--text-1); }
.gs .gs-drop-empty .ico { width: 28px; height: 28px; color: var(--text-1); }
.gs .gs-stage-photos .gs-actions { margin-top: 8px; }
.gs .gs-stage-photos .gs-photo-skip { margin-top: 0; }
.gs .gs-site-photos-go:empty { display: none; }
/* Once there are photos: no panel round them, small squares in a row. Three a row, not four, so a tip such as
   "From the front, on a plain background" still fits inside its square at 14 px. */
.gs .gs-drop.has-photos { background: none; border: 0; padding: 0; }
.gs .gs-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 561px) { .gs .gs-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gs .gs-slot {
  gap: 4px; padding: 8px;
  border: 1.5px solid var(--border-strong); background: none;
  color: var(--text-1); font-size: 14px; line-height: 1.3;
}
.gs .gs-slot:hover { border-color: var(--text-1); background: var(--surface-1); }
.gs .gs-thumb-x { width: 32px; height: 32px; top: 4px; inset-inline-end: 4px; background: var(--canvas); }

/* ── The shell on a phone ──────────────────────────────────────────────────── */
/* The page sits on the same edges as the dock and the progress bar. */
@media (max-width: 560px) {
  .wrap { padding-inline: var(--gutter); }
}
/* Readable type everywhere, not only in the start flow: nothing under 13 px. */
.pill, .credits-pill { font-size: 13px; }
/* The shell too: the credits pill (a button, so app.css gave it 12 px), the initials and the footer. */
button.credits-pill, .top .credits-pill, .top .avatar, .studio-footer, .studio-footer span { font-size: 13px; }
@media (max-width: 720px) {
  .top .shell-nav-link { font-size: .8125rem; }
}
.chip, .poster-top-bar .chip, .library-project .tiny, .library-project time { font-size: .8125rem; }
.bk-dialog [role="tab"], .bk-dialog label > span, .bk-field-title { font-size: .8125rem; }
.slate-num, .review-beat-num { font-size: .8125rem; }
/* The credits pill shows where you are when the Credits page is open (it has no tab of its own). */
.credits-pill[aria-current="page"] { background: var(--surface-2); border-color: var(--text-1); }
.budget-summary dl { align-items: end; }

/* A receipt never covers headings, the lower review area, or the next action: on guided screens it floats cleanly
   in the top bar zone (tapping anywhere dismisses it), and elsewhere it stays clear of bottom navigation. */
body:has(.gs-dock) #toast {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  bottom: auto;
  z-index: 80;
}
body:has(.gs-dock) #toast .t {
  animation-name: toast-drop;
  min-height: 38px;
  padding: 7px 12px;
}
@media (max-width: 720px) {
  body:has(.top .shell-nav) #toast {
    top: calc(var(--hdr, 58px) + env(safe-area-inset-top, 0px) + 8px);
    bottom: auto;
  }
  body:has(.top .shell-nav) #toast .t {
    animation-name: toast-drop;
  }
}

/* ── Back: never a row of its own ──────────────────────────────────────────── */
/* Brands and Credits are reached from the bar and the header, and Home is one tap away. */
.studio-main:has(> .bk-head) > .back,
.studio-main:has(> .budget-heading) > .back { display: none; }
.studio-main:has(> .bk-head) > .bk-head,
.studio-main:has(> .budget-heading) > .budget-heading { margin-top: clamp(16px, 3vh, 28px); }
/* The project page: one square key at the start of the title row (mirrored in Arabic). */
.studio-main:has(> .prj-head) > .back {
  float: inline-start; position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; min-width: 0; min-height: 0;
  margin: 8px 0 0; margin-inline-end: 12px; padding: 0; gap: 0;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl) !important;
  color: var(--text-1); font-size: 0; line-height: 0;
}
.studio-main:has(> .prj-head) > .back:hover { background: var(--surface-2); border-color: var(--text-2); }
.studio-main:has(> .prj-head) > .back .ico { width: 22px; height: 22px; }
.studio-main:has(> .prj-head) > .prj-head { margin-top: 8px; min-height: 44px; align-items: center; }
/* The video page: the same key at the start of the "Video 1 of 3" row. */
.vp-nav { flex-wrap: nowrap; gap: 12px; }
.vp-back {
  position: relative; flex: none;
  justify-content: center; width: 44px; height: 44px; min-height: 0; gap: 0;
  border: 1.5px solid var(--border-strong); border-radius: var(--r-ctl) !important;
  color: var(--text-1);
}
.vp-back:hover { background: var(--surface-2); border-color: var(--text-2); }
.vp-back .ico, .vp-back .ico.sm { width: 22px; height: 22px; }
.vp-back bdi { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 420px) {
  .vp-pager { width: auto; flex: 1 1 auto; }
}
.vp-failed p { text-align: center; }

/* ── Home: the projects ────────────────────────────────────────────────────── */
.poster-bottom-bar { background: var(--surface-1); color: var(--text-1); }
.poster-bottom-bar h3 { color: var(--text-1); }
.poster-foot-meta { color: var(--text-2); border-top-color: var(--border); font-size: .8125rem; }
/* On a phone the shelf is a list in the same language as the start-flow choices: a block of the logo green,
   the picture at its start, the words beside it. */
@media (max-width: 720px) {
  .project-shelf.poster-gallery { display: flex; flex-direction: column; gap: 6px; }
  .library-project.poster-project {
    display: grid; grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "pic text" "pic chip";
    align-content: center; column-gap: 16px; row-gap: 6px;
    min-height: 86px; padding: 0; padding-inline-end: 14px;
    border: 0; background: var(--block); color: var(--block-ink);
  }
  .library-project.poster-project:hover { background: var(--block-hover); }
  .library-project .poster-stage { display: contents; }
  .library-project .poster-stage img,
  .library-project .poster-studio-plate {
    grid-area: pic; align-self: stretch;
    width: 64px; height: 100%; min-height: 86px; object-fit: cover;
    background: var(--surface-2);
  }
  .library-project .poster-plate-monogram { font-size: 1.5rem; transform: none; color: var(--block-line); }
  .library-project .poster-top-bar { position: static; grid-area: chip; align-self: start; justify-content: flex-start; }
  .library-project .poster-bottom-bar { position: static; grid-area: text; align-self: end; padding: 0; gap: 2px; background: none; color: inherit; }
  .library-project .poster-bottom-bar h3 { color: var(--block-ink); font-size: 1.0625rem; }
  .library-project .poster-foot-meta { padding-top: 0; border-top: 0; color: var(--block-line); }
}

/* ── The video page's details for editors: the old warm look, made flat ───── */
.cinema-cam-stage { background: var(--surface-2) !important; }
.cinema-cam-stage::after { background: none; }
.filmstrip-tile.on, .cinema-cam-card.on { box-shadow: none; outline: 2px solid var(--text-1); outline-offset: -2px; }
.cinema-rig-tag, .cinema-temp-tag, .cinema-cam-glyph { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--canvas); border-color: var(--border); }
.tabs button.on { box-shadow: none; }

/* Square, everywhere: the logo has no curves, so neither does anything else. Controls keep a 3 px corner so a
   control is never mistaken for a block. This is the one rule that uses !important, so no older stylesheet can
   put a pill or a circle back. */
*, *::before, *::after { border-radius: 0 !important; }
.btn, input, select, textarea, .pill, .gs-back, .avatar, .lang-btn,
.gs-brief-chip, .gs-tweak-opt, .gs-beat-pill, .gs-tier-pill,
.vp-ab-btn, .vp-tl-seg, .vp-line-time, .vp-line-redo, .vp-defect-jump, .vp-redo-opt { border-radius: var(--r-ctl) !important; }

/* Home, "Your brands": the same stacked blocks of the logo green as every other choice. The brand's logo or a
   flat initial sits on the block itself; no box inside a box. */
.brand-home-grid { display: flex; flex-direction: column; gap: 6px; }
.brand-home-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 16px; border: 0;
  background: var(--block); color: var(--block-ink);
}
.brand-home-card:hover { background: var(--block-hover); border: 0; }
.brand-home-card .muted, .brand-home-card .tiny, .brand-home-head p { color: var(--block-line); }
.brand-home-head > .ico { color: var(--block-line); }
.brand-home-card .brand-logo { width: 36px; height: 36px; background: transparent; }
.brand-home-card .brand-monogram { background: transparent; color: var(--block-ink); font-size: 1.25rem; font-weight: 400; }
.brand-home-thumbs { grid-template-columns: repeat(6, minmax(0, 52px)); }

/* ── Edit my footage, one button (web/views/editor.js, #/edit and #/edit/<id>/make) ──────────────────────
   The guided start's frame (bar, question, dock, Back key); only the clip rows, the made videos, the player
   and the change box are its own. */
.ea .ea-drop.has-photos { padding: 6px 0 0; background: transparent; }
.ea .ea-clips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ea .ea-clip {
  display: flex; align-items: center; gap: 12px;
  min-height: 68px; padding: 8px; padding-inline-end: 4px;
  background: var(--surface-1); border: 1px solid var(--border);
}
.ea .ea-clip-thumb {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 52px; overflow: hidden;
  background: var(--surface-2); color: var(--text-3);
}
.ea .ea-clip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea .ea-clip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ea .ea-clip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.ea .ea-clip-line { color: var(--text-2); font-size: var(--fs-sm); }
.ea .ea-clip-line.is-bad { color: var(--bad); }
.ea .ea-clip-text .gs-link { min-height: 32px; align-self: flex-start; }
.ea .ea-clip-x {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0;
  background: none; color: var(--text-2); cursor: pointer;
}
.ea .ea-clip-x:hover { color: var(--text-1); background: var(--surface-2); }
.ea .ea-add { margin-top: 6px; }
.ea .ea-made-wrap { margin-top: 18px; }
.ea .ea-made-open { width: 100%; text-align: start; }
.ea .ea-made-ico { position: absolute; top: 50%; inset-inline-end: 20px; transform: translateY(-50%); display: grid; place-items: center; color: var(--block-line); }
.ea .ea-made-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ea .ea-made {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 72px; padding: 8px; text-align: start;
  background: var(--surface-1); border: 1px solid var(--border); color: var(--text-1); cursor: pointer;
}
.ea .ea-made:hover { border-color: var(--text-2); }
.ea .ea-made-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 56px; overflow: hidden; background: var(--surface-2); color: var(--text-3); }
.ea .ea-made-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea .ea-made-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ea .ea-made-name { font-size: 1rem; }
.ea .ea-made-line { color: var(--text-2); font-size: var(--fs-sm); }
.ea .ea-links { margin-top: 14px; }
.ea .ea-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ea .ea-wait-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.ea .ea-stop-line { font-size: 1.0625rem; color: var(--text-1); max-width: 56ch; }
.ea .ea-player-box { display: flex; justify-content: center; background: #000; }
.ea .ea-player {
  display: block; width: auto; max-width: 100%;
  height: min(62dvh, 640px); aspect-ratio: 9 / 16; background: #000;
}
.ea .ea-change { margin-top: 22px; }
.ea .ea-change-q { margin: 0 0 10px; font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; }
.ea .ea-change-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ea .ea-change-row .gs-input { flex: 1 1 260px; }
.ea .ea-change-go { min-height: 56px; padding: 0 20px; }
.ea .ea-change-price { margin-inline-start: 10px; padding-inline-start: 10px; border-inline-start: 1px solid var(--border-strong); color: var(--text-2); }
.ea .gs-dock .btn .ico { margin-inline-end: 8px; }
/* The price rides inside the one button, on its own line, so the button never runs out of room on a phone. */
.ea .gs-dock .gs-go { flex-direction: column; gap: 2px; line-height: 1.2; }
.ea .gs-dock .gs-go .gs-go-price { min-width: 0; margin: 0; padding: 0; border: 0; font-size: .875rem; opacity: .78; }
.ea .gs-dock .gs-go .gs-go-price:empty { display: none; }
@media (max-width: 560px) {
  .ea .ea-player { height: min(56dvh, 560px); }
  .ea .ea-change-go { width: 100%; }
}

/* ── Wave 2: Project single-video polish, score badge, live guard & mobile bottom-nav clearance ── */
.prj-tile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}
.prj-tile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.8125rem;
}
.prj-tile-score {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--surface-2);
  color: var(--text-1);
  font-weight: 600;
}
.prj-tile-score.is-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.prj-tile-score.is-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.prj-tile-score.is-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.prj-tile-fixed {
  color: var(--ok);
  font-size: 0.8125rem;
}
.prj-making-guard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
  padding: 7px 10px;
  background: var(--surface-1);
  border-inline-start: 2px solid var(--ok);
  font-size: 0.8125rem;
  color: var(--text-2);
}
.prj-guard-dot {
  width: 7px;
  height: 7px;
  background: var(--ok);
  flex: none;
}
.prj-guard-open {
  margin-inline-start: auto;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Desktop single video: balanced featured width, never overly wide */
.prj-tiles.is-single,
.prj-tiles[data-count="1"] {
  grid-template-columns: minmax(0, 320px);
}

/* Mobile 375px single-video card: full-width horizontal feature card (never half-width!) */
@media (max-width: 560px) {
  .prj-tiles.is-single,
  .prj-tiles[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .prj-tiles.is-single .prj-tile,
  .prj-tiles[data-count="1"] .prj-tile {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    gap: 10px;
  }
  .prj-tiles.is-single .prj-tile-link,
  .prj-tiles[data-count="1"] .prj-tile-link {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
  }
  .prj-tiles.is-single .prj-tile-art,
  .prj-tiles[data-count="1"] .prj-tile-art {
    width: 108px;
    aspect-ratio: 9 / 16;
  }
  .prj-tiles.is-single .prj-tile-copy,
  .prj-tiles[data-count="1"] .prj-tile-copy {
    gap: 6px;
    padding-top: 2px;
  }
  .prj-tiles.is-single .prj-tile-title,
  .prj-tiles[data-count="1"] .prj-tile-title {
    margin-top: 0;
    font-size: 1.0625rem;
    line-height: 1.35;
  }
  .prj-tiles.is-single .prj-tile-dl,
  .prj-tiles[data-count="1"] .prj-tile-dl {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-1);
    text-decoration: none;
  }
}

/* Mobile fixed bottom nav safe-area clearance: never overlap captions, tiles or controls */
@media (max-width: 720px) {
  html:has(.top .shell-nav) {
    scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.top .shell-nav) #app {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
