/* ============================================================
   Verse Studio › Create workspace (studio-create.js + the rail in studio.js)
   Tokens come from studio.css :root; this file adds none except the
   two poster variables (--art-a / --art-b, set per model on .cr-art /
   .cr-sheet-art by the renderer). Layout, state and type scale only.

   Design plan 1B in one breath:
   - purple is used for four things only: the active rail item's inset
     bar, the Generate button (.btn-primary), focus rings, the running ring
   - three radii by hierarchy: 10px (model card, sheet, panels),
     6px (result cards, rows, controls), 999px (chips, pills, circles)
   - no shadows or gradients outside the poster and the lightbox
   - type: 28/1.2 700 page, 20/1.25 700 section + model name,
     15/1.4 600 card titles + labels, 13.5/1.5 500 body + chips,
     12.5/1.45 400 secondary; money is tabular-nums at its neighbour's size
   - motion: the running ring and the sheet opening; nothing enters (the lightbox
     has no fade — its body re-renders on every prev/next, so one would replay)
   ============================================================ */

/* ---------- Studio layout: the body under the top bar (the rail is gone — studio.css draws the bar) ---------- */
.sr-body { min-width: 0; }
/* page title 28/1.2 700 — the shell's <h1>Verse Studio</h1> (studio.js studioHTML; studio.css sets it at 30 px with no line-height) */
.page-dark .studio-header-inner h1 { font-size: 28px; line-height: 1.2; }

/* Text only a screen reader needs (the composer's prompt label: the placeholder carries it on screen). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- tool page ---------- */
.cr-head { align-items: flex-start; }
.cr-head .h2 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.cr-head p { font-size: 13.5px; line-height: 1.5; font-weight: 500; max-width: 62ch; margin-top: 4px; }
.cr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cr-form { min-width: 0; }
.cr-form > .card { border-radius: 10px; }
.cr-form .stack-16 { gap: 20px; }
.cr-results { min-width: 0; }
@media (min-width: 1100px) {
  .cr-grid { grid-template-columns: 360px minmax(0, 1fr); }
  /* the 56 px top bar is sticky above the page, so the panel starts and ends clear of it */
  .cr-form { position: sticky; top: calc(var(--st-bar-h) + 16px); max-height: calc(100vh - var(--st-bar-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* form labels and values */
.cr-optrow { display: flex; flex-direction: column; gap: 8px; }
.cr-optlabel { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.cr-optval { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cr-note { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); max-width: 62ch; }

/* model card: the one loud element on the page (poster hashed from the catalog id) */
.cr-model { border: 1px solid var(--gray-mid); border-radius: 10px; overflow: hidden; background: var(--black); }
.cr-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--art-a, var(--gray-mid)), var(--art-b, var(--black))); }
.cr-art-svg { display: block; width: 100%; height: 100%; }
.cr-art-icon { position: absolute; left: 14px; top: 12px; color: rgba(255,255,255,.85); }
.cr-model-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.cr-model-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--text); }
.cr-model-vendor { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* badges: grey text on a hairline pill; only "cheapest" is a price signal and keeps green */
.cr-badge { display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; border: 1px solid var(--gray-light); font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--text-muted); background: transparent; white-space: nowrap; }
.cr-badge-cheapest { color: var(--green); border-color: rgba(34,197,94,.45); }

/* model sheet (rides on .modal-overlay / .modal from studio.css) */
.cr-sheet { max-width: 720px; border-radius: 10px; }
.cr-sheet-list { display: flex; flex-direction: column; gap: 8px; }
.cr-sheet-model {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  width: 100%; padding: 10px; text-align: left; border-radius: 6px;
  border: 1px solid var(--gray-mid); background: var(--black); color: inherit;
  transition: border-color .15s;
}
.cr-sheet-model:hover { border-color: var(--border-soft); }
.cr-sheet-model.active { border-color: var(--gray-light); box-shadow: inset 2px 0 0 var(--purple); }
.cr-sheet-model:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.cr-sheet-art { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, var(--art-a, var(--gray-mid)), var(--art-b, var(--black))); }
.cr-sheet-main { min-width: 0; }
.cr-sheet-main .cr-model-name { font-size: 15px; line-height: 1.4; font-weight: 600; }
.cr-sheet-main .text-muted { font-size: 12.5px; line-height: 1.45; margin: 2px 0 6px; }
.cr-caps { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-sheet-price { font-size: 13.5px; line-height: 1.5; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* references */
.cr-refs { display: flex; flex-direction: column; gap: 12px; }
.cr-ref { display: flex; flex-direction: column; gap: 8px; }
.cr-ref-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.cr-ref-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-ref-item { position: relative; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; border: 1px solid var(--gray-light); background: var(--black); display: flex; align-items: center; justify-content: center; }
.cr-ref-item img { width: 100%; height: 100%; object-fit: cover; }
.cr-ref-file { color: var(--text-muted); }
.cr-ref-x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 999px; background: rgba(0,0,0,.7); color: var(--white); display: flex; align-items: center; justify-content: center; }
.cr-ref-x:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.cr-ref-add {
  position: relative; width: 72px; height: 72px; border-radius: 6px; border: 1px dashed var(--gray-light); background: transparent; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12.5px; line-height: 1.45; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s;
}
.cr-ref-add:hover { border-color: var(--border-soft); color: var(--text); }
.cr-ref-add:focus-visible, .cr-ref-add:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.cr-ref-add.busy { opacity: .6; cursor: progress; }
.cr-ref-add.rec { border-style: solid; border-color: var(--text); color: var(--text); }   /* the state is in the Stop label, the glyph and aria-pressed; red stays for the short balance and failed cards */
/* the file input inside the upload slot stays focusable but invisible (so :focus-within lights the slot) */
.cr-ref-input, .cr-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* chips: a selected chip is a filled grey pill with white text, set 600 (purple is reserved) */
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip {
  padding: 5px 12px; min-height: 32px; border-radius: 999px; border: 1px solid var(--gray-light); background: transparent;
  font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft); font-variant-numeric: tabular-nums;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cr-chip[data-action="cr-fav-filter"] { display: inline-flex; align-items: center; gap: 6px; }   /* the only chip with an icon */
.cr-chip:hover { border-color: var(--border-soft); color: var(--text); }
.cr-chip.active { background: var(--gray-light); border-color: var(--gray-light); color: var(--white); font-weight: 600; }
.cr-chip:disabled { opacity: .5; cursor: not-allowed; }
.cr-chip:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* switch: off = dark track, dim thumb; on = light track, dark thumb moved right, label set 600 */
.cr-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 2px 0; font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft); text-align: left; }
.cr-toggle-track { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: 999px; background: var(--gray-light); transition: background-color .15s; }
.cr-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: var(--text-muted); transition: transform .15s, background-color .15s; }
.cr-toggle.on { color: var(--text); font-weight: 600; }
.cr-toggle.on .cr-toggle-track { background: var(--text); }
.cr-toggle.on .cr-toggle-thumb { transform: translateX(16px); background: var(--black); }
.cr-toggle:disabled { opacity: .5; cursor: not-allowed; }
.cr-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

/* sliders, batch, seed, voice */
.cr-slider { display: flex; flex-direction: column; gap: 8px; }
/* the shared .range primitive (studio.css) fills purple and hides focus; in the workspace the fill is the
   switch's "on" white on a grey track and keyboard focus shows, so purple keeps its four uses */
.cr-page input[type="range"].range { background: linear-gradient(to right, var(--text) 0%, var(--text) calc(var(--p, 50) * 1%), var(--gray-light) calc(var(--p, 50) * 1%), var(--gray-light) 100%); }
.cr-page input[type="range"].range::-webkit-slider-thumb { border-color: var(--text); }
.cr-page input[type="range"].range::-moz-range-thumb { border-color: var(--text); }
.cr-page input[type="range"].range:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.cr-batch { display: inline-flex; align-items: center; gap: 8px; }
.cr-batch span { min-width: 40px; text-align: center; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cr-seed { max-width: 180px; }
.cr-voice { min-width: 0; }
.cr-voice-row { display: flex; align-items: center; gap: 8px; }
.cr-voice-row .input { flex: 1 1 auto; min-width: 0; }

/* prompt */
.cr-prompt { min-height: 112px; max-width: 62ch; font-size: 13.5px; line-height: 1.5; }
.cr-counter { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cr-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cr-adv summary { display: flex; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; list-style: none; font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft); }
.cr-adv summary::-webkit-details-marker { display: none; }
.cr-adv summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.cr-adv .textarea { margin-top: 8px; }

/* price + errors: the price is content — it lives in the Generate button, the sentence beneath explains it */
.cr-submit { display: flex; flex-direction: column; gap: 10px; }
.cr-page .btn-primary { color: var(--accent-ink); }                                /* 7.4:1 on the accent, like every other accent fill in the Studio */
.cr-page .btn-primary:hover, .cr-page .btn-primary:focus-visible { background: var(--purple-light); }   /* 11:1 with the black text; the purple focus ring stays */
.cr-submit .btn-primary { width: 100%; padding: 11px 16px; font-size: 15px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-generate-price { display: inline-block; margin-left: 6px; padding-left: 12px; border-left: 1px solid rgba(18,18,18,.35); font-weight: 600; font-variant-numeric: tabular-nums; }
.cr-price { order: 1; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cr-price strong { font-weight: 600; color: var(--text); }
.cr-fine { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); max-width: 62ch; }
.cr-error { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); color: var(--text-soft); font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.cr-error .icon { flex-shrink: 0; margin-top: 2px; color: var(--red-soft); }
.cr-error a, .cr-buy { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cr-error a:focus-visible, .cr-buy:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* gates (signed out, demo mode, tool not configured): left-aligned like everything else */
.cr-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cr-gate h3 { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--text); }
.cr-gate p { font-size: 13.5px; line-height: 1.5; font-weight: 500; max-width: 62ch; }

/* ---------- results ---------- */
.cr-results-title { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--text); margin-bottom: 14px; }
/* empty state: "How it works" is a real three-step sequence, so it keeps its numbers */
.cr-how { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px; border: 1px dashed var(--gray-light); border-radius: 10px; }
.cr-how h3 { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--text); }
.cr-how p { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-muted); max-width: 62ch; }
.cr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: cr-step; }
.cr-step { padding: 14px; border: 1px solid var(--gray-mid); border-radius: 6px; background: var(--gray-dark); }
.cr-step::before { counter-increment: cr-step; content: counter(cr-step); display: block; margin-bottom: 8px; font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cr-step strong { display: block; margin-bottom: 4px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.cr-step p { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-muted); max-width: 62ch; }

/* masonry: CSS columns keep DOM order and never widen the page; 1 / 2 / 3 columns, 14px gutters */
.cr-masonry { columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .cr-masonry { columns: 2; } }
@media (min-width: 1280px) { .cr-masonry { columns: 3; } }

/* the card itself never clips: its More menu opens beyond the card's box. The picture is what needs the
   rounded clip, so the clip lives on .cr-card-media. */
.cr-card { display: block; break-inside: avoid; page-break-inside: avoid; margin-bottom: 14px; border: 1px solid var(--gray-mid); border-radius: 6px; overflow: visible; background: var(--gray-dark); }
.cr-card-media { display: block; position: relative; width: 100%; min-height: 80px; padding: 0; border: 0; border-radius: 6px 6px 0 0; overflow: hidden; background: var(--black); color: inherit; text-align: inherit; }
.cr-card-media:focus-visible { outline: 2px solid var(--purple); outline-offset: -3px; }
.cr-card-media img, .cr-card-media video { display: block; width: 100%; height: auto; }
.cr-card-video .cr-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 999px; background: rgba(0,0,0,.6); color: var(--white); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cr-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: var(--white); font-size: 12.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.cr-card-running, .cr-card-failed, .cr-card-audio {
  min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px; text-align: center; font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft);
}
.cr-card-audio audio { width: 100%; }
.cr-elapsed { display: block; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cr-ring { width: 36px; height: 36px; border-radius: 999px; border: 3px solid var(--gray-light); border-top-color: var(--purple); animation: cr-spin 1s linear infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
.cr-card-body { padding: 10px 12px 12px; }
.cr-card-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: 12.5px; line-height: 1.45; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cr-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 8px; }
.cr-card.is-running .cr-card-title { color: var(--text-soft); }

/* ---------- lightbox: the only centred thing, and the only shadow (no open fade — the body re-renders on every prev/next, so a fade would replay) ---------- */
.cr-lightbox { position: fixed; inset: 0; z-index: 250; padding: 16px; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.cr-lightbox-inner { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: min(1200px, 96vw); max-height: 94vh; }
.cr-lightbox-inner img, .cr-lightbox-inner video { display: block; max-width: 96vw; max-height: 78vh; object-fit: contain; border-radius: 6px; background: var(--black); box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.cr-lightbox-x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 999px; background: rgba(26,26,26,.9); color: var(--white); }
.cr-lightbox-nav { position: absolute; top: 50%; z-index: 1; width: 40px; height: 40px; border-radius: 999px; transform: translateY(-50%); background: rgba(26,26,26,.9); color: var(--white); }
.cr-lightbox-nav.prev { left: 8px; }
.cr-lightbox-nav.next { right: 8px; }
.cr-lightbox-x:hover, .cr-lightbox-nav:hover { background: var(--gray-light); color: var(--white); }
.cr-lightbox-x:focus-visible, .cr-lightbox-nav:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.cr-lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text); font-size: 13.5px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; }
.cr-lightbox-bar strong { font-weight: 600; }

/* ---------- Creations: filters ---------- */
.cr-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.cr-search { flex: 1 1 200px; max-width: 280px; }

/* buttons and idea chips inside the workspace get the same focus ring as everything else (studio.css gives .btn / .badge none) */
.cr-page .btn:focus-visible, .cr-ideas .badge:focus-visible, .cr-lightbox .btn:focus-visible, .hm-create .btn:focus-visible, .hm-create .see-all:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- home: Create with AI ---------- */
.hm-create { margin-top: 8px; }
.hm-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hm-feat {
  display: flex; flex-direction: column; gap: 8px; min-height: 140px; padding: 14px; text-align: left;
  border: 1px solid var(--gray-mid); border-radius: 10px; background: var(--gray-dark); color: inherit;
  transition: border-color .15s;
}
.hm-feat:hover { border-color: var(--border-soft); }
.hm-feat:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.hm-feat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hm-feat-icon { width: 34px; height: 34px; border-radius: 6px; background: var(--gray-mid); color: var(--text-soft); display: flex; align-items: center; justify-content: center; }
.hm-feat-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.hm-feat-blurb { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-muted); }
.hm-feat-price { font-size: 12.5px; line-height: 1.45; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hm-create-recent { margin-top: 24px; }
.hm-create-recent h3 { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.hm-recent { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
.hm-recent-item { flex: 0 0 132px; display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: left; color: inherit; }
.hm-recent-item:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.hm-recent-item img, .hm-recent-item video, .hm-recent-audio { display: flex; align-items: center; justify-content: center; width: 132px; height: 132px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gray-mid); background: var(--gray-dark); color: var(--text-muted); }
.hm-recent-title { font-size: 12.5px; line-height: 1.45; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- phones (≤479px, covers 412–430 px handsets): tighter card padding, stacked rows, nothing wider than the screen ---------- */
@media (max-width: 479px) {
  .cr-form .card-content { padding: 16px; }
  .cr-model-row { flex-direction: column; align-items: flex-start; }
  .cr-sheet-model { grid-template-columns: 80px minmax(0, 1fr); }
  .cr-sheet-price { grid-column: 2; }
  .cr-how { padding: 18px; }
  .cr-lightbox { padding: 8px; }
  .cr-lightbox-bar { flex-direction: column; align-items: flex-start; }
  .cr-search { max-width: none; }
}

/* ---------- reduced motion: the ring freezes, nothing slides ---------- */
@media (prefers-reduced-motion: reduce) {
  .cr-ring, .cr-page .spin { animation: none; }
  .cr-sheet, .cr-page .modal-overlay { animation: none; }
  .cr-chip, .cr-toggle-track, .cr-toggle-thumb, .cr-ref-add, .cr-sheet-model, .hm-feat { transition: none; }
}

/* ---------- drag-over and the Creations count (Task 3 fix round 2) ---------- */
/* while a file hovers a slot (or the whole form), its dashed add boxes turn solid and light */
.cr-ref.is-over .cr-ref-add, .cr-form.is-over .cr-ref-add, .cr-composer.is-over .cr-ref-add, .cr-panel.is-over .cr-ref-add { border-style: solid; border-color: var(--text-soft); color: var(--text); }
/* the Creations count is two spans that sit in the filter row's own gap */
.cr-count { display: contents; }

/* ============================================================
   The Image page (design plan 3): the gallery is the page, the composer floats over it.
   Everything here is scoped to .cr-gallery / .cr-composer, so the Library masonry, the other
   tools' panels and the lightbox keep the plan 1B layout.
   ============================================================ */
.cr-page[data-kind="image"] { position: relative; max-width: 1440px; margin: 0 auto; }
.cr-page[data-kind="image"] > .card { margin-bottom: 16px; }                        /* the gate (signed out, demo mode, no model) sits above the gallery */

/* four columns of artwork at 4 px gaps; CSS columns keep DOM order and never widen the page */
.cr-gallery { column-count: 4; column-gap: 4px; }
.cr-gallery .cr-card { position: relative; break-inside: avoid; margin: 0 0 4px; }
.cr-loading { padding: 24px 0; }
/* a finished card is its picture: the caption gives way to the action row, revealed on hover or focus.
   A running or failed card keeps its title, its message and its button in the flow — there is nothing to look at. */
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-media { border-radius: 6px; }   /* no caption under it, so all four corners round */
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-body { padding: 0; }
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-title,
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-meta { display: none; }
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-actions {
  position: absolute; inset: auto 0 0 0; margin: 0; flex-wrap: nowrap; gap: 4px; padding: 6px;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent); border-radius: 0 0 6px 6px;   /* the gradient follows the card's corners instead of painting square over them (R7-2) */
  opacity: 0; transition: opacity .15s;
}
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-actions .btn { color: var(--white); }
.cr-gallery .cr-card:hover .cr-card-actions, .cr-gallery .cr-card:focus-within .cr-card-actions { opacity: 1; }
/* a favourite is an active place, so it keeps the accent — filled, and only while it is on */
.cr-fav.on { color: var(--accent); }
.cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-actions .cr-fav.on { color: var(--accent); }
.cr-fav.on .icon { fill: currentColor; }

/* the card's More menu: everything that does not fit the hover row, one button away */
.cr-card-more { position: relative; display: inline-flex; }
.cr-menu {
  position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 30; min-width: 170px; display: flex; flex-direction: column; gap: 2px;
  padding: 4px; border: 1px solid var(--gray-mid); border-radius: 10px; background: var(--gray-dark); box-shadow: 0 16px 32px rgba(0,0,0,.5);
}
.cr-menu[hidden] { display: none; }
.cr-menu-item {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text-soft); font-size: 13.5px; line-height: 1.5; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.cr-menu-item:hover { background: var(--gray-mid); color: var(--text); }
.cr-menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* an item that cannot run says why under its label (3D scene B-0: a previz saved without its scene); it stays focusable so the reason is read */
.cr-menu-item.is-off { color: var(--text-muted); cursor: default; max-width: 240px; }
.cr-menu-item.is-off:hover { background: transparent; color: var(--text-muted); }
.cr-menu-note { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.4; white-space: normal; }

/* the composer: sticky at the bottom of the page, so it floats over the gallery and settles under the last row */
.cr-composer {
  position: sticky; bottom: 16px; z-index: 20; width: min(880px, 100%); margin: 16px auto 0;
  display: flex; flex-direction: column; gap: 12px; padding: 12px;
  background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 10px; box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.cr-composer-refs:empty { display: none; }
.cr-composer .cr-prompt { min-height: 0; max-width: none; border: 0; background: transparent; padding: 0; font-size: 15px; line-height: 1.5; resize: none; max-height: 180px; }
.cr-composer .cr-prompt:focus { outline: none; box-shadow: none; }
.cr-composer .cr-prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cr-composer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cr-composer-chips { order: 1; flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.cr-composer-chips .cr-optrow { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; }
.cr-composer-chips .cr-optlabel { white-space: nowrap; }
.cr-composer-chips .cr-chips { flex: 0 0 auto; flex-wrap: nowrap; }
.cr-composer-chips .cr-seed { max-width: 110px; }
.cr-model-chip { font-weight: 600; }
.cr-model-chip .cr-model-name { display: inline; font-size: 13.5px; line-height: 1.5; font-weight: 600; }   /* chip type, not the model card's 20/700 */
/* the settings that do not belong in the chip row (seed today) sit one click away, inside the composer */
.cr-composer-more { font-size: 13.5px; }
.cr-composer-more > summary { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none; color: var(--text-soft); font-weight: 500; }
.cr-composer-more > summary::-webkit-details-marker { display: none; }
.cr-composer-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cr-composer-more-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.cr-gallery-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.cr-composer .cr-submit { order: 2; flex: 0 0 auto; margin-left: auto; align-items: flex-end; gap: 4px; }
.cr-composer .cr-submit .btn-primary { width: auto; padding: 9px 16px; }
.cr-composer .cr-price { font-size: 12.5px; }
.cr-composer .cr-fine { order: 3; flex: 1 0 100%; }

/* empty is an invitation: three ideas, the composer at mid-height, one plain line */
.cr-empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cr-empty .cr-ideas { justify-content: center; margin: 0; }
.cr-empty .cr-composer { position: static; box-shadow: none; margin: 0; }
.cr-empty-line { font-size: 14px; }

@media (max-width: 1100px) { .cr-gallery { column-count: 3; } }
@media (max-width: 760px) {
  /* the docked composer is out of flow: the gallery pads by its measured height (studio-create.js sizeComposer) */
  .cr-gallery { column-count: 2; padding-bottom: calc(var(--cr-composer-h, 168px) + 16px); }
  .cr-composer { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; border-radius: 10px 10px 0 0; max-height: 70vh; overflow-y: auto; }
  .cr-empty .cr-composer { border-radius: 10px; }
  .cr-composer-chips { flex-wrap: nowrap; }
  .cr-menu { min-width: 150px; }                                          /* fits inside a two-column card */
}
@media (max-width: 400px) { .cr-composer { padding: 10px; } }
/* a touch screen never hovers, so the row stays up (same specificity as the rule that hides it) */
@media (hover: none) { .cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-actions { opacity: 1; } }
/* reduced motion: this must follow the rule that declares the fade — media queries add no specificity */
@media (prefers-reduced-motion: reduce) { .cr-gallery .cr-card:not(.is-running):not(.is-failed) .cr-card-actions { transition: none; } }

/* ============================================================
   The Video page (design plan 3): a 340 px panel of controls beside the visitor's work.
   Written for video and audio, because Task 9 puts the Audio page on the same two columns.
   The shell's .studio-wrap supplies the page gutter, as it does for every other Create page.
   ============================================================ */
.cr-page[data-kind="video"], .cr-page[data-kind="audio"] { max-width: 1440px; margin: 0 auto; }
.cr-page[data-kind="video"] > .card, .cr-page[data-kind="audio"] > .card { margin-bottom: 16px; }   /* the gate (signed out, demo mode, no model) sits above the two columns */
.cr-split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
/* the 56 px top bar is sticky above the page, so the panel starts and ends clear of it and scrolls on its own */
.cr-panel {
  position: sticky; top: calc(var(--st-bar-h) + 16px); max-height: calc(100vh - var(--st-bar-h) - 32px);
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 14px; background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 10px;
}
.cr-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cr-panel .cr-prompt { min-height: 0; max-width: none; }
.cr-panel .cr-promptblock { display: flex; flex-direction: column; gap: 8px; }
.cr-tabpanel { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cr-tabpanel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cr-panel-opts { display: flex; flex-direction: column; gap: 12px; }
/* what the chip row does not name (seed, batch, things to avoid, the title) stays one click away */
.cr-panel-more { font-size: 13.5px; }
.cr-panel-more > summary { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none; color: var(--text-soft); font-weight: 500; }
.cr-panel-more > summary::-webkit-details-marker { display: none; }
.cr-panel-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.cr-panel-more-body { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
/* Generate and the sentence that explains the charge are one block, so the phone can stick them together */
.cr-generate-wrap { display: flex; flex-direction: column; gap: 12px; }

/* tabs: sentence case, the open one underlined in the accent */
.cr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-mid); }
.cr-tab { padding: 8px 12px; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; transition: color .15s; }
.cr-tab:hover { color: var(--text); }
.cr-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.cr-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* History: the visitor's videos, three columns at the gallery's 4 px gaps */
.cr-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: start; }
.cr-history .cr-card { margin: 0; }

/* How it works: the poster headline, one line, three cards illustrated with the model's own art.
   No dashed box around them — the steps are already cards, and the page has no other chrome. */
.cr-page[data-kind="video"] .cr-how, .cr-page[data-kind="audio"] .cr-how { padding: 0; border: 0; gap: 12px; }
.cr-page[data-kind="video"] .cr-steps, .cr-page[data-kind="audio"] .cr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cr-page[data-kind="video"] .cr-step, .cr-page[data-kind="audio"] .cr-step { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; }
.cr-step-art { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, var(--art-a, var(--gray-mid)), var(--art-b, var(--black))); }

@media (max-width: 1100px) {
  .cr-history, .cr-page[data-kind="video"] .cr-steps, .cr-page[data-kind="audio"] .cr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* the panel stacks above the work; Generate stays on screen at the foot of it */
  .cr-split { grid-template-columns: minmax(0, 1fr); }
  .cr-panel { position: static; max-height: none; overflow: visible; }
  .cr-panel .cr-generate-wrap { position: sticky; bottom: 0; z-index: 2; background: var(--gray-dark); padding: 8px 0; }
}
@media (max-width: 760px) {
  .cr-history, .cr-page[data-kind="video"] .cr-steps, .cr-page[data-kind="audio"] .cr-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .cr-tab { transition: none; } }

/* ============================================================
   The Audio page (design plan 3): the Video page's two columns, with the five tabs above the headline.
   Until the open tab has history, the main area is two cards — the voices or models it can use, and what
   the form will send — so an empty page still says what the tool asks for.
   ============================================================ */
/* The tab row is the panel's header, so it bleeds to the panel's edges and scrolls sideways rather than wrapping
   five labels onto three ragged lines (or pushing the page sideways at 360-400 px). */
.cr-audio-tabs { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; margin: -14px -14px 0; padding: 0 14px; }
.cr-audio-tabs .cr-tab { white-space: nowrap; flex: 0 0 auto; }
/* The headline and its line lead the main area; the reset zeroes every margin, so the pair carries its own gap. */
.cr-audio-head { display: flex; flex-direction: column; gap: 6px; }
.cr-subline { font-size: 13.5px; line-height: 1.5; font-weight: 500; max-width: 62ch; }
/* One headline per page: the AI Music form keeps its own heading and blurb when it is the whole page, and drops
   them inside the pane, under "Make a song with Verse AI". */
#aimusic-pane .mg-head { display: none; }
.cr-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr-feature { padding: 14px; background: var(--gray-dark); border: 1px solid var(--gray-mid); border-radius: 10px; }
.cr-feature h2 { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cr-feature-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 760px) { .cr-features { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   AI edit suite (2026-09-30): Camera and Effects presets on Video, Voice change from a video,
   your own voices, and the line that points to AI tools. Same system as above: a picked chip is the
   filled grey pill (the accent stays on Generate, focus, the active item and the running ring),
   radii 10 / 6 / 999, no shadows.
   ============================================================ */
/* the pickers sit under the prompt; what is picked shows as removable chips (the prompt box is never edited) */
.cr-presets { display: flex; flex-direction: column; gap: 8px; }
.cr-preset-pickers { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-preset-open { display: inline-flex; align-items: center; gap: 6px; }
.cr-preset-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--gray-mid); color: var(--text); font-size: 12.5px; line-height: 1.45; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.cr-preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cr-preset-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 1px 2px 1px 10px; border-radius: 999px; border: 1px solid var(--gray-light); font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--text-soft); }
.cr-preset-x { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); transition: color .15s, background-color .15s; }
.cr-preset-x:hover { color: var(--text); background: var(--gray-mid); }
.cr-preset-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cr-composer .cr-presets { padding-top: 2px; }

/* the sheet: the presets grouped under their headings, each camera move with a small drawing of the move */
.cr-preset-sheet { max-width: 760px; }
.cr-preset-body { gap: 16px; }
.cr-preset-group { display: flex; flex-direction: column; gap: 8px; }
.cr-preset-group-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--text); }
.cr-preset-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-preset {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 10px; border-radius: 999px;
  border: 1px solid var(--gray-light); background: transparent; color: var(--text-soft);
  font-size: 13.5px; line-height: 1.5; font-weight: 500; text-align: left;
  transition: background-color .15s, border-color .15s, color .15s;
}
.cr-preset:hover { border-color: var(--border-soft); color: var(--text); }
.cr-preset.active { background: var(--gray-light); border-color: var(--gray-light); color: var(--white); font-weight: 600; }
.cr-preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-preset-glyph { flex-shrink: 0; width: 28px; height: 18px; color: var(--text-muted); }
.cr-preset.active .cr-preset-glyph { color: var(--white); }
.cr-preset-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px -24px; padding: 12px 24px; border-top: 1px solid var(--gray-mid); background: var(--gray-dark); }
.cr-preset-picked { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cr-preset-sheet .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Voice change from a video: the finished card puts the new voice back on the picture, in the browser */
.cr-mux { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-mid); }
.cr-mux-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-mux .btn { display: inline-flex; align-items: center; gap: 6px; }
.cr-mux-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cr-mux-error { font-size: 12.5px; line-height: 1.45; color: var(--red-soft); }
.cr-mux .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* your own voices and the way to make one */
.cr-voice-lab { align-self: flex-start; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.cr-voice-lab:hover { color: var(--text); }
.cr-voice-lab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* the Video page's one quiet line to AI tools */
.cr-ai-line { font-size: 13.5px; line-height: 1.5; font-weight: 500; color: var(--text-muted); }
.cr-ai-line a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; }
.cr-ai-line a:hover { color: var(--text); }
.cr-ai-line a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 400px) {
  .cr-preset-foot { flex-direction: column; align-items: stretch; }
  .cr-preset { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-preset, .cr-preset-x { transition: none; }
}

/* ============================================================
   Docked workspace (st-dock, 2026-10-04): the AI tools pages, Create video and audio, and the ad maker fill the window under
   the bar like the Beat Maker. From 901 px up the settings panel is docked down the left at full height and scrolls on its
   own, with Generate pinned at its foot; the page's title sits over the work, and the work scrolls on its own. The split
   (.cr-split, or the ad maker's .mk-grid) is display: contents, so its two columns join the page's grid and the title can sit
   above the right one while the panel runs the whole height. Below 901 px the page stacks and scrolls as before.
   ============================================================ */
@media (min-width: 901px) {
  .cr-page.st-dock { max-width: none; margin: 0; height: calc(100vh - var(--st-bar-h)); height: calc(100dvh - var(--st-bar-h)); min-height: 520px;
    display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0; overflow: hidden; }
  .st-dock > .cr-split, .st-dock > .mk-grid { display: contents; }
  .st-dock > header { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; padding: 22px 32px 6px; }
  .st-dock > .cr-split > .cr-panel, .st-dock > .mk-grid > .mk-form {
    grid-column: 1; grid-row: 1 / -1; position: static; top: auto; max-height: none; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    margin: 0; padding: 20px 20px 0; border: 0; border-right: 1px solid var(--gray-mid); border-radius: 0; background: var(--gray-dark); }
  .st-dock > .cr-split > .cr-panel:not(:has(> .cr-generate-wrap:not(:empty))), .st-dock > .mk-grid > .mk-form { padding-bottom: 24px; }
  /* the panel scrolls, so its blocks keep their full height (in a height-bound column the model card, which clips its
     overflow, shrank and cut its own name), and the Audio page's five tabs wrap inside the panel instead of hiding off its edge */
  .st-dock > .cr-split > .cr-panel > * { flex-shrink: 0; }
  .st-dock > .cr-split > .cr-panel > .cr-audio-tabs { margin: -20px -20px 0; padding: 6px 20px 0; flex-wrap: wrap; overflow: visible; }
  .st-dock > .cr-split > .cr-main, .st-dock > .mk-grid > .mk-preview {
    grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 32px 48px; }
  /* no title row (Create video and audio carry theirs inside the work): the work takes the whole height */
  .st-dock:not(:has(> header)) > .cr-split > .cr-main { grid-row: 1 / -1; padding-top: 24px; }
  /* Generate and its price sentence stay at the foot of the docked panel, however long the settings run */
  .st-dock > .cr-split > .cr-panel > .cr-generate-wrap { position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 14px 0 18px; background: var(--gray-dark); border-top: 1px solid var(--gray-mid); }
  .st-dock > .cr-split > .cr-panel > .cr-generate-wrap:empty { display: none; }
  /* the ad maker's steps sat on a card; docked, the panel is the surface */
  .st-dock > .mk-grid > .mk-form > .card { border: 0; border-radius: 0; background: transparent; }
  .st-dock > .mk-grid > .mk-form > .card > .card-content { padding: 0; }
}
/* the Image gallery (st-wide) spans the window and gains columns on wide screens */
.cr-page.st-wide[data-kind="image"] { max-width: none; }
@media (min-width: 1600px) { .st-wide .cr-gallery { column-count: 5; } }
@media (min-width: 2100px) { .st-wide .cr-gallery { column-count: 6; } }
