/* ── Page chrome ───────────────────────────────────── */
.pad { padding: var(--s6) var(--s8) 80px; max-width: 1480px; margin: 0 auto; }
@media (max-width: 640px) { .pad { padding: var(--s4) var(--s4) 120px; } }
.crumb { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-bottom: var(--s2); display: flex; gap: 8px; align-items: center; }
.crumb button { color: var(--muted); min-height: 32px; }
.crumb button:hover { color: var(--bone); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.page-head.sect-head { border-bottom: 0; padding-bottom: 0; }
.page-title { font-family: var(--font-display); font-size: 34px; font-weight: 400; letter-spacing: -.01em; line-height: 1.05; color: var(--bone); text-wrap: balance; }
.sect-title.page-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.page-sub { font-size: 12.5px; margin-top: 5px; color: var(--muted); max-width: 56ch; }

/* ── Needs-you strip ───────────────────────────────── */
.needs { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s8) 0 var(--s6); }
.needs-h { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .18em; color: var(--acid); padding-bottom: var(--s2); border-bottom: 1px solid var(--border); margin-bottom: var(--s2); }
.need {
  display: flex; align-items: center; gap: var(--s3); text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--acid);
  border-radius: var(--r-inner); padding: var(--s3) var(--s4); min-height: 52px;
  transition: background .12s;
}
.need:hover { background: var(--surface2); }
.need .what { font-size: 13px; color: var(--bone); font-weight: 500; }
.need .where { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.need .go { margin-left: auto; color: var(--muted); flex-shrink: 0; }

/* ── Collections grid ──────────────────────────────── */
/* every card in a row is the same height: the grid stretches them, the body
   pushes its foot down, and the badge row is reserved on every card so a
   drop with WAITING ON YOU is no taller than one without */
.grid-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); align-items: stretch; }
.col-card { position: relative; text-align: left; display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: border-color .12s, transform .12s, box-shadow .12s; }
.col-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.col-badge-row { display: flex; align-items: center; min-height: 22px; }
/* select mode */
.col-card.selectable:hover { transform: none; }
.col-card.selected { border-color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); }
.col-check {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--bone); background: rgba(20, 19, 18, .75); color: var(--bg);
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.col-card.selected .col-check { background: var(--bone); }
.select-bar {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  padding: var(--s3) var(--s4); margin-bottom: var(--s5);
  border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface);
}
.select-count { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; color: var(--bone); margin-right: var(--s2); }
.col-cover { aspect-ratio: 16 / 9; background: var(--surface2); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.col-cover .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 100%; height: 100%; }
.col-cover .mini > div { background: var(--surface2); overflow: hidden; }
.col-cover .mini img { width: 100%; height: 100%; object-fit: cover; }
.col-empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); color: var(--faint); }
.col-empty span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; }
.col-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.col-name { font-size: 15px; font-weight: 600; color: var(--bone); }
.col-meta { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); }
.bar { height: 3px; border-radius: 2px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bone); border-radius: 2px; transition: width .5s var(--ease); }
.col-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); margin-top: auto; }
.new-card {
  border: 1px dashed var(--border); border-radius: var(--r-outer); min-height: 170px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2);
  color: var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  transition: color .12s, border-color .12s;
}
.new-card:hover { color: var(--text); border-color: var(--muted); }
.new-card .plus { font-size: 26px; line-height: 1; }

/* ── Collection banner ─────────────────────────────── */
.banner { position: relative; padding: var(--s6) 0 var(--s6); border-bottom: 1px solid var(--border); margin-bottom: var(--s6); overflow: hidden; }
.banner h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); color: var(--bone); line-height: 1.08; text-wrap: balance; }
.banner .sub { color: var(--muted); margin-top: var(--s2); max-width: 52ch; }
.banner-eyebrow { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .2em; color: var(--muted); margin-bottom: var(--s2); }
.banner-meta { display: flex; gap: var(--s6); flex-wrap: wrap; margin-top: var(--s5); }
.bm { display: flex; flex-direction: column; gap: 3px; }
.bm-k { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--muted); }
.bm-v { font-size: 13.5px; color: var(--text); }
.banner-actions { position: absolute; top: var(--s6); right: 0; display: flex; gap: var(--s2); }
@media (max-width: 640px) { .banner-actions { position: static; margin-top: var(--s4); flex-wrap: wrap; } .banner { padding-top: var(--s5); } }

/* ── Looks grid ────────────────────────────────────── */
.grid-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s5); align-items: start; }
@media (max-width: 700px) { .grid-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
.look-card { text-align: left; overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s, transform .12s; position: relative; }
.look-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.look-thumb { aspect-ratio: 4 / 5; background: var(--surface2); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.look-thumb img { width: 100%; height: 100%; object-fit: cover; }
.look-thumb .ph { display: flex; flex-direction: column; align-items: center; gap: var(--s2); color: var(--faint); }
.look-thumb .ph span { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--muted); }
.look-thumb .count { position: absolute; right: 8px; top: 8px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; background: rgba(15, 14, 14, .7); color: var(--bone); padding: 3px 7px; border-radius: var(--r-pill); }
.look-thumb .ghostnum {
  position: absolute; left: 10px; bottom: 2px; font-size: 56px; line-height: .8;
  color: rgba(245, 237, 230, .07); pointer-events: none; user-select: none;
}
.look-body { padding: var(--s4) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.look-name {
  font-size: 13.5px; font-weight: 600; color: var(--bone); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.look-type { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); }
/* badges size to their content inside a stretching flex column */
.look-body .badge, .col-foot .badge { align-self: flex-start; max-width: 100%; }

/* ── Look page ─────────────────────────────────────── */
.look-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s5); align-items: start; }
/* no side column rendered (review, finals, references full-bleed): one track */
.look-grid:not(:has(.look-side)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1023px) { .look-grid { grid-template-columns: 1fr; } }
.look-side { display: flex; flex-direction: column; gap: var(--s4); }
.stagewrap { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }

/* source slots */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
@media (max-width: 1023px) { .slots { grid-template-columns: repeat(4, minmax(72px, 1fr)); } }
.slot {
  aspect-ratio: 3 / 4; border: 1px dashed var(--border); border-radius: var(--r-inner);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--faint); cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .12s, color .12s; min-height: 44px;
}
.slot:hover, .slot.drag { border-color: var(--muted); color: var(--text); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .lb { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .12em; }
.slot.filled { border-style: solid; }
.slot.filled .lb { position: absolute; bottom: 4px; left: 4px; background: rgba(15, 14, 14, .75); color: var(--bone); padding: 2px 6px; border-radius: 3px; }
.slot .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acid); transform-origin: left; }
.slot-hint { font-size: 11px; color: var(--faint); line-height: 1.5; margin-top: var(--s2); }

/* stage board */
.stage-board { min-height: 320px; display: flex; flex-direction: column; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.stage-status { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stage-body { padding: var(--s4); flex: 1; display: flex; flex-direction: column; gap: var(--s4); }
.empty-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); text-align: center; padding: var(--s8) var(--s5); }
.empty-stage h4 { font-family: var(--font-display); font-size: 21px; color: var(--bone); font-weight: 400; }
.empty-stage p { color: var(--muted); font-size: 12.5px; max-width: 40ch; }
.empty-stage .ic { color: var(--faint); }

/* progress board */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3); }
.prog-grid .skel, .prog-grid .shotcell { aspect-ratio: 4 / 5; }
.shotcell { position: relative; border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--border); background: var(--surface2); padding: 0; }
.shotcell img { width: 100%; height: 100%; object-fit: cover; }
.shotcell .meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 4px 7px; background: linear-gradient(transparent, rgba(15, 14, 14, .85)); font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--bone); }
.shotcell .ok { color: var(--ok); }
.shotcell.sel { border-color: var(--acid); }
.pipe-line { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--faint); display: flex; gap: 6px; flex-wrap: wrap; }
.pipe-line b { color: var(--acid); font-weight: 400; animation: pulse 1.5s infinite; }
.pipe-line s { color: var(--ok); text-decoration: none; }

/* brief card */
.brief-card .display { font-size: 21px; color: var(--bone); margin-bottom: var(--s2); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.fact { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-inner); padding: var(--s3); }
.fact .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .16em; color: var(--faint); display: block; margin-bottom: 4px; }
.fact .v { font-size: 13px; color: var(--text); }
.fact .swatch { display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--border); vertical-align: -2px; margin-right: 7px; }
.ratio-line { font-size: 12.5px; color: var(--text); padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.ratio-line:last-child { border-bottom: 0; }

/* lock ceremony */
.ceremony { position: fixed; inset: 0; z-index: 70; background: rgba(15, 14, 14, .88); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: var(--s5); animation: fadein .3s; padding: var(--s5); }
.ceremony .frame { position: relative; max-width: min(320px, 70vw); border-radius: var(--r-inner); overflow: hidden; }
.ceremony .frame img { width: 100%; }
.ceremony .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--acid); border-radius: var(--r-inner); animation: drawframe .9s var(--ease); }
@keyframes drawframe { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }
.ceremony h3 { font-family: var(--font-display); font-size: clamp(24px, 5vw, 34px); color: var(--bone); font-weight: 400; text-align: center; }
.ceremony p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); text-align: center; }

/* review deck */
.deck { position: fixed; inset: 0; z-index: 65; background: var(--bg); display: flex; flex-direction: column; }
.deck-top { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.deck-count { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.deck-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s4); min-height: 0; position: relative; }
.deck-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-inner); }
.deck-stage .compare-hint { position: absolute; bottom: var(--s3); left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; color: var(--faint); }
.deck-meta { display: flex; justify-content: center; gap: var(--s3); font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); padding-bottom: var(--s2); }
.deck-actions { display: flex; gap: var(--s2); padding: var(--s4) var(--s4) calc(var(--s4) + var(--safe-b)); flex-shrink: 0; }
.deck-actions .btn { flex: 1; min-height: 52px; }

/* export sheet */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.contact-grid img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); width: 100%; }
.signoff-line { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); padding-top: var(--s3); border-top: 1px solid var(--border); }

/* wizard */
.wiz-steps { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
.wiz-step { flex: 1; height: 3px; border-radius: 2px; background: var(--surface2); }
.wiz-step.on { background: var(--bone); }
.wiz-step.done { background: var(--faint); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s2); }
.style-opt { position: relative; border: 1px solid var(--border); border-radius: var(--r-inner); padding: var(--s3); text-align: left; display: flex; flex-direction: column; gap: 4px; transition: border-color .12s; min-height: 64px; }
.style-opt:hover { border-color: var(--muted); }
.style-opt.on { border-color: var(--bone); background: var(--surface2); }
.style-opt .nm { font-size: 12px; color: var(--bone); font-weight: 500; }
.style-opt .hint { font-size: 10.5px; color: var(--faint); line-height: 1.4; }
.style-opt .tick { position: absolute; top: 8px; right: 10px; color: var(--bone); font-size: 11px; opacity: 0; }
.style-opt.on .tick { opacity: 1; }
.scene-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--s2); }
.scene-opt { border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; transition: border-color .12s; padding: 0; }
.scene-opt.on { border-color: var(--bone); }
.scene-opt .sw-bg { height: 44px; }
.scene-opt .lbl { font-size: 10px; color: var(--muted); padding: 5px 7px; text-align: left; }
.scene-opt.on .lbl { color: var(--bone); }
.sw-row { display: flex; gap: var(--s2); }
.sw { width: 30px; height: 30px; border-radius: var(--r-pill); border: 2px solid transparent; padding: 0; }
.sw.on { border-color: var(--bone); }

/* ── Step rail (the enforced journey) ─────────────── */
.steprail { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.steprail-item {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 36px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 10px; letter-spacing: .12em; color: var(--muted);
  transition: color .12s, border-color .12s; position: relative;
}
.steprail-item:not(:last-child)::after {
  content: ""; width: var(--s2); height: 1px; background: var(--border);
  position: absolute; right: calc(-1 * var(--s2) - 1px); top: 50%;
}
.steprail-item .num { font-size: 9px; color: var(--faint); }
.steprail-item.on { border-color: var(--bone); color: var(--bone); }
.steprail-item.on .num { color: var(--acid); animation: pulse 1.5s infinite; }
.steprail-item.done { color: var(--ok); }
.steprail-item.done .num { color: var(--ok); }
.steprail-item.locked { color: var(--faint); cursor: default; }
.steprail-item[disabled] { opacity: .6; }
@media (max-width: 640px) {
  .steprail { gap: 6px; }
  .steprail-item { padding: 7px 9px; }
  .steprail-item .nm { display: none; }
  .steprail-item.on .nm { display: inline; }
}

/* guidance */
.rule-line { display: flex; gap: var(--s3); align-items: baseline; font-size: 13px; color: var(--text); }
.rule-line .mono { color: var(--acid); font-size: 10px; flex-shrink: 0; }
.disclose {
  font-size: 9px; letter-spacing: .14em; color: var(--muted); padding: 8px 0 0;
  min-height: 32px; display: block;
}
.disclose:hover { color: var(--bone); }
.slot.frozen { pointer-events: none; opacity: .55; border-style: solid; }

/* set-up */
.setup-tag { font-size: 8px; letter-spacing: .12em; color: var(--faint); margin-left: 8px; }
.setup-tag.over { color: var(--acid); }

/* generated groups */
.genwrap { display: flex; flex-direction: column; gap: var(--s5); }
.gen-group { display: flex; flex-direction: column; gap: var(--s3); }
.gen-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.gen-head .mono { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
a.shotcell { text-decoration: none; color: inherit; display: block; }

/* escalation / info cards inside the stage */
.notice { border: 1px solid var(--border); border-left: 2px solid var(--warn); border-radius: var(--r-inner); padding: var(--s4); background: var(--surface2); }
.notice.calm { border-left-color: var(--muted); }
.notice h5 { font-size: 13px; color: var(--bone); margin-bottom: 4px; font-weight: 600; }
.notice p { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------- the reference studio */

.refs-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap;
}
.refs-count {
  font-size: var(--fs-label); letter-spacing: .14em; color: var(--acid);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 6px 12px; white-space: nowrap;
}
.refgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--s4);
}
.refcard { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.refcard.done { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.refcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.refcard-title { font-size: var(--fs-h3); color: var(--bone); font-weight: 600; }
.refkey { font-size: var(--fs-label); color: var(--muted); letter-spacing: .12em; }
.refcard-blurb { font-size: var(--fs-small); color: var(--muted); margin-top: 3px; max-width: 34ch; }
.reflocked {
  display: flex; align-items: center; gap: var(--s3);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--border));
  border-radius: var(--r-inner); padding: var(--s2);
  background: color-mix(in srgb, var(--ok) 5%, transparent);
}
.reflocked img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.reflocked span { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.refstrip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: var(--s2);
}
.refcand { position: relative; border-radius: var(--r-inner); overflow: hidden; background: var(--surface2); }
.refcand img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; }
.refcand.appr { outline: 2px solid var(--ok); outline-offset: -2px; }
.refcand.rej { opacity: .45; }
.refcand.rej img { filter: grayscale(.6); }
.refcand.locked { outline: 2px solid var(--acid); outline-offset: -2px; }
.refcand-bar {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: center;
  gap: var(--s2); padding: 6px; background: linear-gradient(transparent, rgba(15, 14, 14, .82));
}
.rc-btn {
  width: 30px; height: 30px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: rgba(28, 27, 26, .85); color: var(--text); font-size: 13px;
  cursor: pointer; display: grid; place-items: center;
  transition: transform .12s var(--ease), background .12s;
}
.rc-btn:active { transform: scale(.94); }
.rc-btn.ok.on { background: var(--ok); color: #10130e; border-color: var(--ok); }
.rc-btn.no.on { background: var(--danger); color: #1a0f0c; border-color: var(--danger); }
.lockedtag { font-size: 9px; letter-spacing: .16em; color: var(--acid); padding: 4px 0; }
.refempty {
  border: 1px dashed var(--border); border-radius: var(--r-inner);
  padding: var(--s5); text-align: center; font-size: var(--fs-label);
  letter-spacing: .14em; color: var(--faint);
}
.refcard-foot { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: auto; }
.sw.haslock { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ok); }

/* ------------------------------------------------- look rows on the product page */

.lookrows { display: flex; flex-direction: column; gap: var(--s2); }
.lookrow {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) var(--s4); text-align: left; cursor: pointer; width: 100%;
  transition: border-color .15s;
}
.lookrow:hover { border-color: var(--muted); }
.lookrow-name { font-size: var(--fs-lead); color: var(--bone); font-weight: 600; }
.lookrow-line { font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------- look review cells */

.shotcell.refcand img { cursor: zoom-in; }
.shotcell .redo {
  position: absolute; inset: auto 0 34px 0; text-align: center;
  font-size: 9px; letter-spacing: .12em; color: var(--warn);
  background: rgba(15, 14, 14, .78); padding: 4px 6px;
}

/* ------------------------------------------------- the one-page timeline */

.tl-wrap { max-width: 760px; margin: 0 auto; }
.tl { display: flex; flex-direction: column; gap: var(--s3); }
.tl-sec { display: flex; flex-direction: column; gap: var(--s3); }
.tl-card { padding: var(--s5); }
.tl-actions {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s4);
}
.tl-actions .est { font-size: var(--fs-label); letter-spacing: .12em; color: var(--faint); }

.tl-progress {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: var(--s2); align-items: center;
  font-size: var(--fs-label); letter-spacing: .16em; color: var(--faint);
  padding: var(--s2) 0 var(--s3); background: var(--bg);
}
.tl-progress .on { color: var(--acid); }
.tl-progress .done { color: var(--muted); }
.tl-progress .sep { color: var(--faint); }

.tl-done {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  padding: var(--s3) var(--s4); text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-inner); color: var(--text);
  transition: border-color .15s;
}
.tl-done:hover { border-color: var(--muted); }
.tl-done .tick { color: var(--ok); font-size: 12px; }
.tl-done-title { font-size: var(--fs-body); color: var(--bone); font-weight: 600; }
.tl-done-sum { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); margin-left: auto; }
.tl-done .dl { font-size: var(--fs-label); letter-spacing: .12em; color: var(--acid); }
.tl-done.needsrow .tick { color: var(--warn); }
.locked-row { cursor: default; }
.locked-row .lockthumb {
  width: 44px; height: 44px; object-fit: cover; border-radius: 4px; cursor: zoom-in;
}

.tl-secline { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.tl-sectitle { font-family: var(--font-display); font-size: 24px; color: var(--bone); }
.tl-secsub { font-size: var(--fs-small); color: var(--muted); max-width: 58ch; margin: 4px 0 var(--s3); }
.tl-stack { display: flex; flex-direction: column; gap: var(--s3); }

/* sheet picker: two big candidates, tap to select, one LOCK */
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.sheet-title { font-size: var(--fs-h3); color: var(--bone); font-weight: 600; }
.sheet-blurb { font-size: var(--fs-small); color: var(--muted); margin-top: 3px; max-width: 48ch; }
.sheet-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s3); margin-top: var(--s3);
}
.sheet-cand {
  position: relative; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--r-inner); overflow: hidden; background: var(--surface2);
}
.sheet-cand img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sheet-cand .pickring {
  position: absolute; inset: 0; border-radius: var(--r-inner);
  border: 2px solid transparent; transition: border-color .12s;
}
.sheet-cand.sel .pickring { border-color: var(--acid); }
.sheet-cand.sel::after {
  content: "✓"; position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  background: var(--acid); color: #10130e; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.sheet-skel { aspect-ratio: 1; min-height: 0; }

/* look blocks */
.lookname-inp {
  background: transparent; border: 0; border-bottom: 1px solid transparent;
  color: var(--bone); font-size: var(--fs-h3); font-weight: 600;
  font-family: var(--font-body); padding: 0 0 2px; width: 100%; max-width: 300px;
}
.lookname-inp:focus { outline: none; border-bottom-color: var(--border); }
.optrow { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.optgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.optlab { font-size: 9.5px; letter-spacing: .14em; color: var(--faint); min-width: 46px; }

/* keep-by-default review: tap = mark, marked = warm wash */
.shotcell.markable { border: 0; padding: 0; cursor: pointer; text-align: left; }
.shotcell.markable:disabled { cursor: default; }
.shotcell.markable.marked img { filter: grayscale(.4) brightness(.7); }
.shotcell.markable.marked { outline: 2px solid var(--warn); outline-offset: -2px; }
.shotcell.markable .redo {
  position: absolute; inset: auto 0 26px 0; text-align: left;
  font-size: 9px; letter-spacing: .08em; color: var(--warn);
  background: rgba(15, 14, 14, .82); padding: 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------- phase 6: the visual studio */

/* the stepper: icons joined by a wire, current node glowing */
.tl-progress { display: flex; align-items: center; gap: 0; padding: var(--s3) 0 var(--s4); }
.step-node {
  display: inline-flex; align-items: center; gap: 7px; color: var(--faint);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em;
}
.step-node .step-ic {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--faint);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.step-node.done { color: var(--muted); }
.step-node.done .step-ic { color: var(--bone); border-color: var(--muted); }
.step-node.on { color: var(--acid); }
.step-node.on .step-ic {
  color: var(--acid); border-color: color-mix(in srgb, var(--acid) 45%, var(--border));
  box-shadow: 0 0 14px rgba(166, 255, 7, .18);
}
.step-node b { font-weight: 400; }
.step-wire { flex: 0 1 34px; min-width: 12px; height: 1px; background: var(--border); margin: 0 8px; }
@media (max-width: 640px) { .step-node b { display: none; } .step-node.on b { display: inline; } }

.tl-eyebrow {
  font-size: 9px; letter-spacing: .2em; color: var(--faint); margin-bottom: var(--s3);
}

/* done rows carry their evidence */
.tl-done-vis { display: inline-flex; gap: 4px; align-items: center; }
.tl-done-vis img {
  width: 34px; height: 34px; object-fit: cover; border-radius: 5px;
  border: 1px solid var(--border);
}
.fact-swatch {
  display: inline-block; width: 22px; height: 22px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

/* the visual picker: cards, spheres, tiles, frames */
.picker { display: flex; flex-direction: column; gap: var(--s4); margin-top: var(--s3); }
.vp-row { display: flex; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; }
.vp-row .optlab { padding-top: 10px; }
.vp-grid { display: flex; gap: var(--s2); flex-wrap: wrap; flex: 1; min-width: 0; }
.vp-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 84px; padding: 8px 4px 9px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-inner); color: var(--muted);
  transition: border-color .12s, transform .12s, color .12s;
  position: relative;
}
.vp-card:hover { border-color: var(--muted); transform: translateY(-1px); }
.vp-card:active { transform: scale(.97); }
.vp-card.on { border-color: var(--acid); color: var(--bone); }
.vp-card.on::after {
  content: "✓"; position: absolute; top: 5px; right: 5px;
  width: 17px; height: 17px; border-radius: var(--r-pill);
  background: var(--acid); color: #10130e; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.vp-card:disabled { opacity: .55; cursor: default; transform: none; }
.vp-art { width: 52px; height: 62px; display: block; }
.vp-art svg { width: 100%; height: 100%; }
.vp-light .vp-art, .vp-crops .vp-art { height: 52px; }
.vp-name { font-size: 10.5px; line-height: 1.2; text-align: center; }
.vp-tile {
  width: 84px; height: 62px; border-radius: var(--r-inner); cursor: pointer;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: border-color .12s, transform .12s;
}
.vp-tile:hover { transform: translateY(-1px); }
.vp-tile.on { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.vp-tile span {
  position: absolute; left: 6px; bottom: 4px; font-size: 9px; letter-spacing: .06em;
  font-family: var(--font-mono); color: rgba(15, 14, 14, .78);
}
.vp-tile.on::after {
  content: "✓"; position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: var(--r-pill);
  background: var(--acid); color: #10130e; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.sw-row.sw-big .sw { width: 30px; height: 30px; }
.vp-presets { align-items: center; }
.vp-presets .optlab { padding-top: 0; }
.ghostchip { border-style: dashed; color: var(--faint); }
.preset-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px;
}
.preset-row:last-child { border-bottom: 0; }

/* the collapsed toggle summary: pictures, not words */
.optstrip { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; }
.optstrip .os-art {
  display: inline-block; width: 20px; height: 24px; opacity: .8; font-style: normal;
}
.optstrip .os-art svg { width: 100%; height: 100%; }
.optstrip .os-sphere { width: 22px; height: 22px; }
.optstrip .os-tile {
  display: inline-block; width: 22px; height: 16px; border-radius: 3px;
  border: 1px solid var(--border);
}
.optstrip b { font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 400; }

/* sheets: icon headers + the angles diagram */
.sheet .sheet-head { align-items: center; justify-content: flex-start; gap: var(--s3); }
.sheet-ic {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--r-inner);
  background: var(--surface2); color: var(--bone);
}
.angles-art {
  border: 1px dashed var(--border); border-radius: var(--r-inner);
  padding: var(--s2) var(--s3); margin-top: var(--s3); background: var(--surface2);
}
.angles-art svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }

.rule-glyph { color: var(--muted); display: inline-grid; place-items: center; width: 20px; }

/* ------------------------------------------------- phase 7: confirm-then-shoot */

.confirm-strip { padding: var(--s3) 0 var(--s2); }
.optstrip.os-lg { gap: 10px; margin-top: 8px; }
.optstrip.os-lg .os-art { width: 44px; height: 54px; opacity: 1; }
.optstrip.os-lg .os-sphere { width: 46px; height: 46px; }
.optstrip.os-lg .os-tile { width: 48px; height: 34px; border-radius: 5px; }
.optstrip.os-lg b { font-size: 12px; }

/* ------------------------------------------------- phase 8: the workspace */
/* The voted layout: sources left, the canvas centre, toggles right - one
   full-height room per piece. Dimensions and shadows from the mock. */

/* The height chain is definite all the way down (html > body > #app > .shell >
   .main > .ws), so the rails are real scrollports and the stage fits. A
   percentage height against an indefinite parent resolves to auto: that is the
   failure this replaces. */
.main:has(.ws) { overflow: hidden; display: flex; flex-direction: column; }
.ws { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

.ws-top {
  flex-shrink: 0; display: flex; align-items: center; gap: var(--s5);
  padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--surface);
  min-height: 54px; flex-wrap: nowrap;
}
.ws-crumb { display: flex; align-items: center; gap: 8px; font-size: 10px;
  letter-spacing: .14em; color: var(--muted); min-width: 0; white-space: nowrap; }
.ws-crumb button { color: var(--muted); }
.ws-crumb button:hover { color: var(--bone); }
.ws-crumb b { color: var(--bone); font-weight: 400; max-width: 22ch; overflow: hidden;
  text-overflow: ellipsis; }
.ws-stepper { display: flex; align-items: center; margin: 0 auto; }
.ws-ctx { display: flex; align-items: center; gap: var(--s3); }
.ws-ctx .n { font-size: 9.5px; letter-spacing: .14em; color: var(--acid); }

.tabs { display: flex; gap: 2px; }
.tab {
  padding: 6px 12px; border-radius: 4px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; color: var(--muted); transition: all .12s;
}
.tab:hover { color: var(--text); background: var(--surface2); }
.tab.on { color: var(--bone); background: var(--surface2); }

.ws-cols {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr); overflow: hidden; min-height: 0;
}
.ws-col { overflow-y: auto; min-height: 0; }
.ws-stage {
  background: var(--bg); display: flex; flex-direction: column;
  overflow: hidden; padding: 20px 28px 22px;
}
/* the rails: a 52px tab at rest, the panel for the section being worked on,
   and a hover that slides the panel over the canvas without moving it */
.ws-left, .ws-right {
  position: relative; width: 52px; overflow: visible; background: var(--surface);
  transition: width .18s var(--ease);
}
.ws-left { border-right: 1px solid var(--border); }
.ws-right { border-left: 1px solid var(--border); }
.ws-left.open { width: 296px; overflow-y: auto; }
.ws-right.open { width: 344px; overflow-y: auto; }
.rail-tab {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding-top: 18px; color: var(--muted); cursor: pointer; user-select: none;
}
.rail-tab-lab { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9.5px; letter-spacing: .18em; }
.rail-tab-n { font-size: 10px; color: var(--acid); }
.ws-col.open .rail-tab { display: none; }
.rail-panel { display: none; }
.ws-col.open .rail-panel { display: block; }
.ws-col:not(.open):hover .rail-tab { color: var(--bone); }
.ws-col:not(.open):hover .rail-panel {
  display: block; position: absolute; top: 0; bottom: 0; width: 296px; z-index: 6;
  background: var(--surface); overflow-y: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  animation: railin .18s var(--ease);
}
.ws-left:not(.open):hover .rail-panel { left: 0; border-right: 1px solid var(--border); }
.ws-right:not(.open):hover .rail-panel { right: 0; width: 344px; border-left: 1px solid var(--border); }
@keyframes railin { from { opacity: 0; transform: translateX(var(--rail-dx, -8px)); } to { opacity: 1; transform: none; } }
.ws-right { --rail-dx: 8px; }
/* a frame fades in once when the stage changes (enterStage, in the view);
   a repaint of the same frame changes only what changed and never fades */

@media (max-width: 1279px) {
  .ws-cols { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1023px) {
  /* the escape hatch: columns stack and .main scrolls; the frame stays definite */
  .main:has(.ws) { overflow-y: auto; display: block; }
  .ws { flex: none; overflow: visible; }
  /* the step first, the drawers below it */
  .ws-cols { display: flex; flex-direction: column; overflow: visible; }
  .ws-col { overflow: visible; }
  .ws-stage { order: 0; }
  .ws-left { order: 1; }
  .ws-right { order: 2; }
  .rail-close { display: none; }
  .ws-left, .ws-right, .ws-left.open, .ws-right.open { width: auto; }
  .rail-tab { display: none; }
  .rail-panel { display: block; }
  .ws-right > div { min-height: 0; }
  .rail-cta { position: static; }
  .ws-left { border-right: none; border-bottom: 1px solid var(--border); }
  .ws-right { border-left: none; border-top: 1px solid var(--border); }
  .ws-stage { min-height: 60vh; }
  .ws-stepper { order: 3; width: 100%; justify-content: center; }
}

/* zone sections (mock's sect grammar) */
.ws-col .sect { padding: 16px 16px 18px; border-bottom: 1px solid var(--border); }
.ws-col .sect:last-child { border-bottom: none; }
.slots-2 { grid-template-columns: 1fr 1fr; }
.factline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bone); }

/* the stage: hero + filmstrip */
.stage-fill { flex: 1; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.hero-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.hero {
  max-height: 100%; max-width: min(680px, 100%); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; background: #1a1917; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4); display: flex; flex-direction: column;
}
/* --hero-max is the measured leftover of the stage (fitHero in product.js):
   the image shrinks to fit instead of the stage clipping the tray */
.hero img { display: block; max-height: var(--hero-max, min(56vh, 620px)); width: auto;
  max-width: 100%; margin: 0 auto; object-fit: contain; }
.hero-art { padding: 30px 40px; display: grid; place-items: center; min-height: 160px; }
.hero-art svg { width: min(420px, 80vw); height: auto; max-height: var(--hero-max, 48vh); }
.hero-art.quiet { opacity: .6; }
.hero-skel { width: min(520px, 90%); }
.hero-shim { aspect-ratio: 4 / 5; max-height: var(--hero-max, 48vh); border: 0; border-radius: 0; }
.hero-marked { outline: 2px solid var(--warn); outline-offset: -2px; }
.hero-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface);
}
.hero-meta { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.hero-meta.hero-r { text-align: right; }
.hero-meta .acid { color: var(--acid); font-weight: 400; }
.okc { color: var(--ok); font-weight: 400; }
.warnc { color: var(--warn); font-weight: 400; }
.hint-hold { font-style: normal; color: var(--faint); font-size: 8.5px; }
/* the compare switch under the hero: the result, your own photo, the sheet */
.hero-switch { display: inline-flex; gap: 2px; margin-right: 10px; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 2px; }
.hsw { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: var(--muted); background: none; border: 0; border-radius: var(--r-pill); padding: 3px 8px; cursor: pointer; min-height: 22px; }
.hsw.on { background: var(--surface2); color: var(--bone); }
.hsw:disabled { opacity: .35; cursor: default; }
.hero.hero-comparing img { outline: 1px dashed var(--muted); outline-offset: -1px; }
/* looking back at an earlier step */
.viewing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.refs-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.refcard { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.refcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.refcard figcaption { display: flex; flex-direction: column; gap: 2px; }
.refcard figcaption b { font-size: 9px; letter-spacing: .14em; color: var(--muted); font-weight: 400; }
.refcard figcaption span { font-size: 12.5px; color: var(--bone); }
.dlink { color: var(--acid); text-decoration: none; }
.dlink:hover { text-decoration: underline; }
.sheet-ic-sm { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--bone); }
.sheet-ic-sm svg { width: 15px; height: 15px; }

.film { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; flex-shrink: 0; }
.film-item {
  width: 78px; flex-shrink: 0; aspect-ratio: 4 / 5; border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; background: #1a1917; position: relative;
  transition: border-color .12s; padding: 0; cursor: pointer;
}
.film-item:hover { border-color: var(--muted); }
.film-item.on { border-color: var(--bone); box-shadow: 0 0 0 1px var(--bone); }
.film-item img { width: 100%; height: 100%; object-fit: cover; }
/* the decision on a tile: a green check when approved, a red X and a red
   frame when rejected (a redone take keeps its X; the new version lands beside it) */
.film-item .ok, .film-item .film-x {
  position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; z-index: 2;
  border-radius: var(--r-pill); color: #141312; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgba(20, 19, 18, .6);
}
.film-item .ok { background: var(--ok); }
.film-item .film-x { background: var(--danger); }
.film-item .film-mark {
  position: absolute; inset: 0; border: 2px solid var(--danger); border-radius: 4px;
  background: rgba(201, 111, 95, .14); pointer-events: none;
}
.film-skel {
  display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 6px;
  background: linear-gradient(100deg, #1e1d1b 30%, #282624 50%, #1e1d1b 70%);
  background-size: 220% 100%;
}
.film-skel i { font-style: normal; font-size: 7.5px; letter-spacing: .1em; color: var(--faint); }

.stage-actions {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  justify-content: center; flex-shrink: 0; padding-top: 2px;
}
.stage-card { flex: 0 1 auto; min-height: 0; overflow-y: auto; max-width: 640px; margin: 0 auto; width: 100%; }
.stage-card .stage-actions { justify-content: flex-start; margin-top: 16px; }
.park-line { text-align: center; font-size: 12.5px; color: var(--muted); flex-shrink: 0; }

/* the right rail */
.lookpills { display: flex; flex-wrap: wrap; gap: 7px; }
.lookpill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 12px; color: var(--muted); transition: all .12s; cursor: pointer;
}
.lookpill:hover { border-color: var(--muted); color: var(--text); }
.lookpill.on { background: var(--bone); border-color: var(--bone); color: #141312; font-weight: 500; }
.lookpill.ghostpill { border-style: dashed; min-width: 34px; justify-content: center; }
.pilldot { width: 6px; height: 6px; border-radius: var(--r-pill); display: inline-block; }
.pilldot.okd { background: var(--ok); }
.pilldot.warnd { background: var(--warn); }
.pilldot.acidd { background: var(--acid); }
.lookpill.on .pilldot { outline: 1px solid rgba(20, 19, 18, .4); }

.refrow {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text);
}
.refrow:last-of-type { border-bottom: none; }
.refrow.now { color: var(--bone); }
.refrow-nm { flex: 1; }
.refrow .lockthumb { width: 34px; height: 34px; object-fit: cover; border-radius: 4px;
  cursor: zoom-in; border: 1px solid var(--border); }
.acid { color: var(--acid); }

.picker-rail .vp-row { flex-direction: column; align-items: stretch; gap: 7px; }
.picker-rail .vp-row .optlab { padding-top: 0; }
.picker-rail .vp-grid { gap: 6px; }
.vp-card.vp-sm { width: 66px; padding: 6px 3px 7px; }
.vp-card.vp-sm .vp-art { width: 40px; height: 46px; }
.vp-card.vp-sm .vp-name { font-size: 9px; }
.vp-tile.vp-tile-sm { width: 66px; height: 46px; }
.vp-tile.vp-tile-sm span { font-size: 8px; }
.rail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; align-items: flex-start; }

/* ------------------------------------------------- phase 9: the guided workspace */

/* the centre never scrolls; the guide sits on top, the tray at the bottom */
.stage-guide {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 6px 10px 12px; text-align: center;
}
.guide-text { font-size: 12.5px; color: var(--muted); }
.guide-arrow {
  font-size: 15px; color: var(--acid); animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.stage-guide .guide-arrow:first-child { animation-name: nudgeL; }
@keyframes nudgeL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }

/* left: the four angle folders */
.folders { display: flex; flex-direction: column; gap: 7px; }
.folder { border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.folder.open { border-color: var(--muted); }
.folder-head {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px;
  text-align: left; color: var(--muted); transition: color .12s, background .12s;
  cursor: pointer;
}
.folder-head:hover { color: var(--text); background: var(--surface2); }
.folder.open .folder-head { color: var(--bone); background: var(--surface2); }
.folder-nm { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; }
.folder-n { margin-left: auto; font-size: 9.5px; color: var(--acid); }
.folder-peek { width: 26px; height: 26px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--border); }
.folder-body { padding: 10px 11px 12px; border-top: 1px solid var(--border); }
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.folder-shot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--border); cursor: zoom-in; }
.folder-add {
  aspect-ratio: 1; border: 1px dashed var(--border); border-radius: 4px;
  display: grid; place-items: center; color: var(--faint); cursor: pointer;
  transition: color .12s, border-color .12s;
}
.folder-add:hover { color: var(--bone); border-color: var(--bone); }
.folder-prog { position: static; margin-top: 8px; height: 2px; background: var(--acid);
  transform-origin: left; }

/* hero-bar action cluster */
.hb-actions { display: inline-flex; gap: 5px; margin-left: 8px; }
.hb-btn {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface2); color: var(--text);
  font-size: 11px; cursor: pointer; transition: all .12s;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.hb-btn:hover { border-color: var(--muted); color: var(--bone); }
.hb-btn.ok.on { background: var(--ok); border-color: var(--ok); color: #10130e; }
.hb-btn.no.on { background: var(--warn); border-color: var(--warn); color: #1a130c; }

/* inpaint: the armed hero + the drag box */
.hero-inpaint { cursor: crosshair; outline: 2px dashed var(--acid); outline-offset: -2px; }
.hero-inpaint img { user-select: none; -webkit-user-drag: none; touch-action: none; }
.ip-box {
  position: absolute; border: 2px solid var(--acid);
  background: rgba(166, 255, 7, .12); pointer-events: none; z-index: 3;
}

.film-item.film-dropped { opacity: .35; }
.film-item.film-dropped img { filter: grayscale(.8); }

/* runs history */
.runrows { display: flex; flex-direction: column; gap: 6px; }
.runrow {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px;
  border: 1px solid var(--border); border-radius: var(--r-inner);
  cursor: pointer; transition: border-color .12s; text-align: left;
}
.runrow:hover { border-color: var(--muted); }
.runrow.on { border-color: var(--bone); }
.runrow-when { font-size: 9px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.runrow-strip { display: flex; gap: 3px; flex: 1; overflow: hidden; }
.runrow-strip img { width: 22px; height: 26px; object-fit: cover; border-radius: 3px;
  border: 1px solid var(--border); }
.runrow-n { font-size: 9px; color: var(--faint); }

/* presets grouped */
.preset-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.preset-group { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.preset-group .optlab { min-width: 40px; }

/* the rail's sticky GENERATE */
.ws-right.open .rail-panel { display: flex; flex-direction: column; min-height: 100%; }
.ws-right.open .rail-panel > div { display: flex; flex-direction: column; min-height: 100%; }
.rail-cta {
  position: sticky; bottom: 0; margin-top: auto; padding: 12px 16px;
  background: linear-gradient(transparent, var(--surface) 30%);
  border-top: 1px solid var(--border);
}

/* ------------------------------------------------- phase 9.5: edit-in-place + delivery */

/* the facts card edits in place */
.facts-edit .fact { position: relative; }
.fact-inp {
  background: transparent; border: 0; border-bottom: 1px dashed transparent;
  color: var(--bone); font-size: 14px; font-family: var(--font-body);
  padding: 1px 0 3px; width: 100%; min-width: 0; outline: none;
  transition: border-color .12s;
}
.fact-inp:hover { border-bottom-color: var(--border); }
.fact-inp:focus { border-bottom-color: var(--bone); }
.edited-tag { display: none; font-size: 8px; letter-spacing: .12em; color: var(--acid);
  margin-left: 6px; }
.fact.edited .edited-tag { display: inline; }
.fact.edited .fact-inp { border-bottom-color: color-mix(in srgb, var(--acid) 40%, transparent); }

/* the review verbs: labelled, unmissable */
.verb-row {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.verb { min-width: 108px; justify-content: center; }
.verb.verb-on-ok { background: var(--ok); border-color: var(--ok); color: #10130e; }
.verb.verb-on-warn { background: var(--warn); border-color: var(--warn); color: #1a130c; }
.verbs-off { opacity: .45; }

/* version history for the selected slot */
.versions {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 2px 4px; flex-wrap: wrap; justify-content: center;
}
.ver {
  position: relative; width: 44px; border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; padding: 0; cursor: pointer; transition: border-color .12s;
}
.ver img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ver b {
  position: absolute; left: 2px; bottom: 2px; font-size: 7.5px; letter-spacing: .08em;
  color: var(--bone); background: rgba(15, 14, 14, .8); padding: 1px 4px; border-radius: 2px;
  font-weight: 400;
}
.ver.on { border-color: var(--bone); box-shadow: 0 0 0 1px var(--bone); }
.ver-note { font-size: 8.5px; letter-spacing: .1em; color: var(--warn); }

/* the delivery report */
.report-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12.5px;
  color: var(--text);
}
.report-line:last-of-type { border-bottom: 0; }
.report-line b { color: var(--bone); font-weight: 600; }


/* ------------------------------------------------- guide references (visual, under the guide line) */
.guide-refs {
  flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap;
  gap: 12px; padding: 0 10px 12px;
}
.guide-refs-lab { font-size: 9px; letter-spacing: .14em; color: var(--faint); align-self: center; margin-right: 2px; }
.gref { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gref img { width: 54px; height: 68px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: #fff; }
.gref.bad img { filter: grayscale(1); opacity: .5; }
.gref.bad figcaption { color: var(--warn); }
.gref figcaption { font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.gref-art {
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 4px; color: var(--bone); background: var(--surface2);
}
.gref-art svg { width: 44px; height: 44px; }
.guide-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); max-width: 46ch; }
.guide-legend b { color: var(--bone); font-weight: 500; }
.guide-legend .warnc { color: var(--warn); }

/* ------------------------------------------------- phase 10: angles */
/* the tray is organised by angle: one folder per angle across the styles */
.film-grouped { gap: 14px; }
.film-group { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.film-group-lab { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); line-height: 1; }
.film-tiles { display: flex; gap: 8px; }
.film-add {
  width: 78px; aspect-ratio: 4 / 5; border: 1px dashed var(--border); border-radius: 4px;
  display: grid; place-items: center; color: var(--faint); font-size: 8.5px;
  letter-spacing: .12em; flex-shrink: 0; cursor: pointer; text-align: center; padding: 4px;
  transition: color .12s, border-color .12s;
}
.film-add:hover { color: var(--bone); border-color: var(--bone); }
.film-add-off { cursor: default; }
.film-add-off:hover { color: var(--faint); border-color: var(--border); }
.angle-chips .chip.on { color: var(--bone); border-color: var(--bone); background: var(--surface2); }
.angle-chips .chip:disabled { opacity: .4; cursor: default; }

/* the references stay on the canvas; every image says what it is USING */
.canvas-refs {
  flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap;
  gap: 14px; padding: 0 10px 12px;
}
.cref { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cref img, .cref-ph {
  width: 54px; height: 68px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border);
  background: var(--surface2); display: grid; place-items: center; color: var(--muted);
}
.cref-ph svg { width: 22px; height: 22px; }
.cref.now img, .cref.now .cref-ph { outline: 2px solid var(--acid); outline-offset: 1px; }
.cref.todo .cref-ph { border-style: dashed; opacity: .6; }
.cref figcaption {
  font-size: 8.5px; letter-spacing: .12em; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 2px; max-width: 132px; text-align: center; line-height: 1.4;
}
.cref figcaption b { font-weight: 400; color: var(--faint); }
.cref.done figcaption b { color: var(--ok); }
.cref.now figcaption b { color: var(--acid); }
.using { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.using img { width: 18px; height: 18px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }

/* product folders: the four angle folders on the card */
.angle-line { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-label); letter-spacing: .05em; color: var(--faint); margin: 0 0 2px; }
.angle-line i { font-style: normal; white-space: nowrap; }
.angle-line i.has { color: var(--ok); }

/* credits: what a look uses, above the one button that spends */
.rail-est { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); text-align: center; margin-bottom: 8px; }
.rail-est.warnc { color: var(--warn); }
#creditsTag { cursor: pointer; }
#creditsTag.err { color: var(--danger); border-color: var(--danger); }


/* the door */
body.locked .sidebar, body.locked #backBtn, body.locked #engineTag, body.locked #creditsTag { display: none !important; }
.login { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s8); min-height: 100%; }
.login-card { width: min(380px, 100%); padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.login-card .mark-ii { height: 14px; width: auto; opacity: .92; }
.login-title { font-size: 26px; color: var(--bone); }
.login-sub { color: var(--muted); font-size: 12.5px; }
.login-card form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.login-inp { font-size: 18px; letter-spacing: .28em; text-align: center; padding: 12px; }
.login-foot { margin-top: 4px; }
/* a person's own address (Google, a link in the mail), the code beneath */
.login-person { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.login-google { width: 100%; }
.login-email { padding: 12px; font-size: 14px; }
.login-err { min-height: 1em; color: var(--err, #e6674a); font-size: 12.5px; margin: 0; }
.login-err.ok { color: var(--okc, var(--bone)); }
.login-err:empty { display: none; }
.login-or { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-align: center; margin: 6px 0 0; }
.login-picks { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.login-pick { width: 100%; }
/* the people on the company, in the account sheet */
.members { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.member-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member-who b { font-weight: 500; color: var(--bone); overflow: hidden; text-overflow: ellipsis; }
.member-who i { font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.member-you { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.member-invite { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
@media (max-width: 520px) { .member-invite { grid-template-columns: 1fr; } }
.lockup-brand { font-size: 15px; color: var(--bone); white-space: nowrap; }

/* ------------------------------------------------- the stage: one thing at a time */
/* Every step is framed the same way: a head (eyebrow, title, one line, and a
   quiet corner for what is already locked), one body, one foot with the
   count left and the buttons right. The drawers stay closed unless the step
   needs them. Text that carries meaning is at least --muted and 10px. */

.ws-top { padding: 0 var(--ws-x); height: 56px; min-height: 0; gap: var(--s6); }
.ws-crumb { font-size: 10.5px; }
.ws-stage { padding: 28px 40px 24px; }
.ws-col .sect { padding: 20px var(--rail-pad) 22px; }
.ws-col .sect-h { margin-bottom: 14px; min-height: 30px; }
.ws-col .field-label { font-size: var(--fs-label); }
.ws-col .field-note { color: var(--muted); }
.sect-tools { display: inline-flex; align-items: center; gap: 10px; }
.rail-close {
  width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--border);
  color: var(--muted); font-size: 14px; line-height: 1; display: grid; place-items: center;
}
.rail-close:hover { color: var(--bone); border-color: var(--muted); }
.rail-tab { border: 0; background: none; width: 100%; }
.rail-tab:hover { color: var(--bone); }

/* the progress line: four quiet segments */
.ws-progress { display: flex; gap: 6px; margin: 0 auto; width: min(420px, 40%); }
.prog-step { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: stretch; background: none; border: 0; padding: 4px 0; cursor: pointer; border-radius: 4px; }
.prog-step:disabled { cursor: default; }
.prog-step:not(:disabled):hover b { color: var(--bone); }
.prog-step.live b::after { content: " ·"; color: var(--acid); }
.prog-step.now:not(.live) i { background: var(--bone); }
.prog-step.now:not(.live) b { color: var(--bone); }
.prog-step b { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--faint); font-weight: 400; text-align: center; white-space: nowrap; }
.prog-step i { display: block; height: 2px; border-radius: 1px; background: var(--border); }
.prog-step.done b { color: var(--muted); }
.prog-step.done i { background: var(--muted); }
.prog-step.now b { color: var(--acid); }
.prog-step.now i { background: var(--acid); }
.ws-ctx { min-width: 72px; justify-content: flex-end; }

/* the frame */
.st { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-head {
  flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: var(--s6); padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.st-head-l { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.st-eyebrow { font-size: var(--fs-label); letter-spacing: .16em; color: var(--acid); }
.st-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--bone); line-height: 1.15; }
.st-sub { font-size: var(--fs-body); color: var(--muted); max-width: 62ch; }
.st-head-r { display: flex; align-items: flex-end; }
.st-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
/* safe: the moment the body outgrows the stage it aligns to the start and scrolls,
   so the tiles can never paint over the head (they did on a 1366x768 laptop) */
.st.st-center .st-body { justify-content: safe center; }
.st.st-center .st-body > * { margin-block: auto; }
.st.st-center .st-body > * + * { margin-block-start: 0; }
.st-foot {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 16px; min-height: 64px; border-top: 1px solid var(--border);
}
.st-spacer { flex: 1; }
.st-note { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); }
.st-note:not(.mono) { font-family: var(--font-body); letter-spacing: 0; font-size: var(--fs-small); }

/* what is already locked, in the head's corner */
.lockstrip { display: flex; align-items: flex-end; gap: 10px; }
.lockstrip-lab { font-size: 9px; letter-spacing: .14em; color: var(--muted); align-self: center; margin-right: 2px; }
.lthumb { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.lthumb img { width: 36px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.lthumb::after {
  content: "✓"; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px;
  border-radius: var(--r-pill); background: var(--ok); color: #141312; font-size: 9px;
  display: grid; place-items: center;
}
.lthumb figcaption { font-size: 8px; letter-spacing: .12em; color: var(--muted); }

/* step 1: the photo tiles */
.drops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; flex-shrink: 0; }
/* the details folder is optional: quieter, and it says so */
.drop-optional { opacity: .82; }
.drop-optional .drop-top b::after { content: " · OPTIONAL"; font-weight: 400; color: var(--muted); letter-spacing: .12em; }
@media (max-height: 780px) { .drop { max-height: 34vh; } }   /* the tiles shrink before the body has to scroll */
.drop {
  position: relative; aspect-ratio: 4 / 5; max-height: 300px; width: 100%;
  border: 1px dashed var(--border); border-radius: var(--r-outer); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s;
}
.drop:hover { border-color: var(--muted); transform: translateY(-1px); }
.drop:disabled { cursor: default; opacity: .6; }
.drop.filled { border-style: solid; }
.drop-eg, .drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-eg { opacity: .16; filter: grayscale(.4); }
.drop.filled .drop-img { opacity: 1; }
.drop-top, .drop-bottom { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.drop-top { flex-direction: row; justify-content: space-between; align-items: center; }
.drop-top b { font-size: var(--fs-label); letter-spacing: .16em; color: var(--bone); font-weight: 400; }
.drop-top i { font-style: normal; font-size: 9px; letter-spacing: .12em; }
.drop.filled .drop-top b, .drop.filled .drop-add { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.drop.filled .drop-top { padding: 5px 8px; margin: -6px; border-radius: 4px; background: rgba(15, 14, 14, .62); }
.drop-hint { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.drop-add { font-size: 9px; letter-spacing: .14em; color: var(--bone); }
.drop.filled .drop-bottom { align-items: flex-end; }
.drop.filled .drop-add { background: rgba(15, 14, 14, .7); padding: 4px 8px; border-radius: var(--r-pill); }
.drop-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acid); transform-origin: left; z-index: 2; }
.details { flex-shrink: 0; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.disclose-row {
  align-self: flex-start; font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .14em; color: var(--muted); min-height: 32px; padding: 0 2px;
}
.disclose-row:hover { color: var(--bone); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* step 2: reading */
/* the reading frame: the client's photos on the left with the read filling
   over them, what the studio is doing on the right, the reference it makes
   (one sheet, or a tile per view) under the steps */
.st-read .st-body { padding-top: 4px; }
.read2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: start; width: 100%; }
.read2 .setup-h { margin: 0 0 14px; }
.read-photo { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; border-radius: var(--r-outer); }
.read-photo figure { margin: 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.read-photo figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-inner); background: var(--surface2); opacity: .92; display: block; }
.read-photo figcaption { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.read-photo > .fill { border-radius: var(--r-outer); }
.read-photo > .fill i { opacity: .4; }
.read-photo > .fill-pct { top: -20px; right: 0; }
.read2 .read2-hint { text-align: left; margin-top: 16px; min-height: 14px; }
.read2-steps .read-list { gap: 16px; }
.read2-steps .read-list li { align-items: flex-start; line-height: 1.35; }
.read2-steps .read-list li i { margin-top: 1px; }
.read2-out { margin-top: 28px; }
.read2-note { margin-top: 24px; max-width: 36ch; }
.fill-tiles-one { grid-template-columns: minmax(0, 220px); width: auto; margin: 0; }
.sheet-tile b { text-align: center; padding: 0 10px; line-height: 1.6; }
.read-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.read-list li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lead); color: var(--muted); }
.read-list li i { width: 22px; height: 22px; border-radius: var(--r-pill); border: 1px solid var(--border); display: grid; place-items: center; font-size: 10px; font-style: normal; color: var(--faint); flex-shrink: 0; }
.read-list li.done { color: var(--text); }
.read-list li.done i { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.read-list li.now { color: var(--bone); }
.read-list li.now i { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 45%, var(--border)); animation: pulse 1.5s infinite; }

/* step 3: the candidates, side by side */
.cand-grid { flex: 1; min-height: 0; display: grid; grid-auto-rows: auto; align-items: center; align-content: center; gap: 16px; justify-content: center; }
.cand-grid.n1 { grid-template-columns: minmax(0, 440px); }
.cand-grid.n2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
.cand-grid.n3 { grid-template-columns: repeat(3, minmax(0, 340px)); }
.cand {
  position: relative; min-height: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-outer); overflow: hidden;
  background: #1a1917; padding: 0; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.cand:hover { border-color: var(--muted); }
.cand.on { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid), 0 12px 40px rgba(0, 0, 0, .35); }
/* --cand-max is the measured leftover of the stage (fitHero): a card is exactly its image */
.cand img { max-width: 100%; max-height: calc(var(--cand-max, 60vh) - 2px); width: auto; height: auto; object-fit: contain; display: block; }
.cand-n {
  position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: rgba(15, 14, 14, .75); color: var(--bone); font-size: 10px; display: grid; place-items: center;
}
.cand.on .cand-n { background: var(--acid); color: #141312; }
.cand.on::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--acid); color: #141312; font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.cand.skel { aspect-ratio: 4 / 5; }

/* step 4, idle: what the look is made from and what it gives */
.setup { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 28px; max-width: 760px; width: 100%; margin: 0 auto; padding-top: 8px; }
.setup-h { font-size: var(--fs-label); letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.made-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.made { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.made img, .made-ph {
  width: 100%; aspect-ratio: 4 / 5; max-height: 220px; object-fit: cover; border-radius: var(--r-outer);
  border: 1px solid var(--border); background: var(--surface2); display: grid; place-items: center; color: var(--muted);
}
.made-ph svg { width: 28px; height: 28px; }
.made figcaption { display: flex; flex-direction: column; gap: 2px; }
.made figcaption b { font-size: 9px; letter-spacing: .14em; color: var(--muted); font-weight: 400; }
.made figcaption span { font-size: var(--fs-small); color: var(--text); }
.yougets { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.yg { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; }
.yg-art { width: 48px; height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.yg-art svg { width: 100%; height: 100%; }
.yg-tile { display: inline-block; width: 48px; height: 36px; border-radius: 5px; border: 1px solid var(--border); margin: 10px 0; }
.yg figcaption { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.yg-x { color: var(--faint); font-size: 14px; }
.yg-angles { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.yg-angles .chip { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--bone); border-color: var(--muted); padding: 5px 10px; min-height: 0; }

/* the hero, centred, with a three-cell bar: title, references, state */
.stage-fill { gap: 0; }
.hero-wrap { margin: 0 0 14px; }
.hero { max-width: min(760px, 100%); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.hero-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 14px; padding: 10px 14px;
}
.hero-meta {
  font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hero-meta:first-child, .hero-meta.hero-r { display: block; }
.hero-meta.hero-c { justify-content: center; }
.hero-meta.hero-r { text-align: right; }
.using { display: inline-flex; gap: 4px; margin: 0; vertical-align: middle; }
.using img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }
.using-fix { outline: 1px solid var(--warn); outline-offset: 1px; }
.fixline {
  display: inline-block; margin: 0; font-size: 9px; letter-spacing: .1em; color: var(--warn);
  max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fixline b { font-weight: 400; color: var(--warn); }
.hint-hold { font-style: normal; color: var(--muted); font-size: 9px; letter-spacing: .1em; }

/* the review verbs sit under the hero, centred with it */
.verb-row {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; padding: 0 0 14px;
}
.verb { min-width: 124px; min-height: 36px; }

/* the tray: a band above the foot */
.film {
  flex-shrink: 0; display: flex; gap: 10px; overflow-x: auto; margin: 0;
  padding: 14px 0 4px; border-top: 1px solid var(--border);
}
.film-grouped { gap: 24px; }
.film-item, .film-add { width: var(--tile-w); }
.film-add { font-size: 8.5px; color: var(--muted); }
.film-add-off, .film-add-off:hover { color: var(--faint); }
.film-item.film-older { opacity: .45; }
.film-item.film-older:hover { opacity: .8; }
.film-skel i { color: var(--muted); }

/* the empty-ish stages */
.empty-stage { padding: var(--s6); }
.empty-stage p { font-size: var(--fs-body); max-width: 44ch; color: var(--muted); }

/* the left drawer: two top-level folders */
.folder-top > .folder-head { padding: 10px 12px; }
.folder-sub { padding: 8px; }
.folder-sub .folders { gap: 6px; }
.folder-foot { padding: 0 12px 10px; font-size: 9px; letter-spacing: .12em; color: var(--muted); cursor: pointer; }
.folder-nm { font-size: var(--fs-label); }
.folder-n { font-size: var(--fs-label); }

/* the right drawer: the picker on a grid, every cell the same width */
.picker-rail { gap: 18px; }
.picker-rail .vp-row { gap: 8px; }
.picker-rail .vp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vp-card.vp-sm { width: auto; padding: 7px 3px 8px; }
.vp-card.vp-sm .vp-name { font-size: 9.5px; }
.vp-tile.vp-tile-sm { width: auto; height: 48px; }
.optlab { font-size: var(--fs-label); color: var(--muted); }
.refrow { padding: 10px 0; }
.refrow .refrow-state { font-size: 9px; letter-spacing: .12em; }
.rail-cta { padding: 14px var(--rail-pad) 16px; }
.rail-est { font-size: var(--fs-label); }
.preset-group .optlab { min-width: 46px; }
.runrow-when, .runrow-n { font-size: 9px; color: var(--muted); }
.report-line { padding: 8px 0; }

/* the product's image library */
.lib { max-width: none; padding: 4px 0 12px; flex: 1; min-height: 0; overflow-y: auto; }
.lib-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lib-h { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.lib-h h5 { font-size: var(--fs-label); letter-spacing: .16em; color: var(--bone); font-weight: 400; }
.lib-h .n { font-size: var(--fs-label); color: var(--acid); }
.lib-sub { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); margin-top: 8px; }
.lib-check { display: flex; flex-direction: column; gap: 10px; }
.lib-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; }
.lib-lab { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); padding-top: 6px; display: flex; gap: 6px; align-items: baseline; }
.lib-lab b { color: var(--ok); font-weight: 400; }
.lib-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-tile { width: 56px; height: 70px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; padding: 0; background: #1a1917; }
.lib-tile img { width: 100%; height: 100%; object-fit: cover; }
.lib-empty { font-size: 9px; letter-spacing: .12em; color: var(--muted); padding-top: 8px; }

/* step 1b: what the piece needs */
.ask { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0; max-width: 760px; width: 100%; margin: 0 auto; }
.ask-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.ask-row:last-child { border-bottom: 0; }
.ask-lab { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.ask-lab b { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .16em; color: var(--bone); font-weight: 400; }
.ask-lab span { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.ask-ctl { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ask-ctl .vp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ask-ctl .vp-tile { width: auto; height: 52px; }
.ask-ctl .chips .chip { min-height: 34px; }
.ask-ctl .inp { max-width: 420px; }
.ask-ctl .sw-row { padding-top: 2px; }

/* candidates are A and B */
.cand-n { font-family: var(--font-mono); font-weight: 700; }

/* the files: every image of the piece, by where it came from */
.lib { display: flex; flex-direction: column; gap: 28px; }
.lib-sec { display: flex; flex-direction: column; gap: 12px; }
/* the walk-through: photos, references, finals on one strip */
.walk { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: center; gap: 10px 8px; margin: 0 0 22px; }
.walk-btn { height: 44px; width: 44px; border: 1px solid var(--border); border-radius: 50%; background: none; color: var(--bone); font-size: 20px; cursor: pointer; }
.walk-btn:hover { border-color: var(--muted); }
.walk-stage { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.walk-stage img { max-height: min(56vh, 620px); max-width: 100%; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; background: #1a1917; }
.walk-stage figcaption { display: flex; gap: 12px; font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.walk-stage figcaption b { color: var(--bone); font-weight: 400; }
.walk-dots { grid-column: 2; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.walk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; }
.walk-dots i.ref { border-radius: 1px; }
.walk-dots i.final { background: var(--muted); }
.walk-dots i.on { background: var(--acid); }
.lib-take { position: relative; }
.lib-take .lib-badge {
  position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 9px; color: #141312;
}
.lib-take .lib-badge.ok { background: var(--ok); }
.lib-take .lib-badge.warn { background: var(--warn); }
.lib-take.dim { opacity: .45; }
.lib-take .lib-v { position: absolute; left: 4px; bottom: 4px; font-size: 8px; letter-spacing: .1em; color: var(--bone); background: rgba(15, 14, 14, .75); padding: 1px 5px; border-radius: 3px; }
.lib-tile:hover { border-color: var(--muted); }
.viewer-dl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

@media (max-width: 1279px) {
  .ws-stage { padding: 24px 28px 20px; }
  .cand-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ws-stage { padding: var(--s4); }
  .ws-top { padding: 10px var(--s4); height: auto; min-height: 56px; flex-wrap: wrap; gap: 10px var(--s4); }
  .ws-crumb { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ws-progress { order: 3; width: 100%; }
  .ws-ctx { margin-left: auto; }
  .st-head { grid-template-columns: 1fr; }
  .st-head-r { display: none; }
  .drops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .read2 { grid-template-columns: 1fr; gap: 28px; }
  .cand-grid { grid-auto-rows: auto; }
  .cand-grid.n2, .cand-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cand img { max-height: 60vh; }
  .made-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-row { grid-template-columns: 1fr; gap: 10px; }
  .ask-ctl .vp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-meta.hero-c { display: none; }
}

/* ------------------------------------------------- the files, the tasks, the props photo */
.page-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.ftree { display: flex; flex-direction: column; gap: 28px; }
.ftree .lib-sec { padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.ftree .lib-row { grid-template-columns: 96px minmax(0, 1fr); }
.tag.tasks { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tag.tasks .n { font-weight: 400; color: var(--acid); }
.tasklist { display: flex; flex-direction: column; gap: 8px; }
.ask-photos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ask-photos .folder-shot { width: 56px; height: 56px; }
.ask-photos .folder-add { width: 56px; height: 56px; aspect-ratio: auto; }
.ask-sub { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.seen { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-content: center; }
.seen .cand { cursor: default; }
.seen .cand:hover { border-color: var(--border); }
.folder-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.folder-sheet .folder-shot { width: 100%; aspect-ratio: 1; }
.folder-sheet .folder-add { width: 100%; aspect-ratio: 1; }
@media (max-width: 1023px) {
  .ws-cols { grid-template-columns: 1fr; }
}

/* the studio's questions, asked in place */
.qcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--panel, rgba(255,255,255,.02)); }
.qcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.qcard-head .mono { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.qrow { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px, 260px) auto; gap: 10px; align-items: center; }
.qrow.note { grid-template-columns: minmax(0,1fr) auto; }
.qrow .qtext { color: var(--bone); font-size: 14px; }
@media (max-width: 760px) { .qrow, .qrow.note { grid-template-columns: 1fr; } }

/* the questions step: two readings from the studio, or the client's own words */
.qstep { display: grid; gap: 14px; min-height: 0; }
.qstep .qcard { margin: 0; }
.dcard .drow { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); }
.dcard .drow:first-of-type { border-top: 0; }
.dcard .dtopic { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.dcard .dans { color: var(--bone); }
.dcard .dans i { font-style: normal; font-size: 10px; letter-spacing: .06em; color: var(--acid); }
.dcard .dalt { grid-column: 2; align-items: center; }
.dcard .inp-sm { max-width: 200px; padding: 4px 8px; font-size: 12px; }
@media (max-width: 640px) { .dcard .drow { grid-template-columns: 1fr; } .dcard .dalt { grid-column: 1; } }
.qstep .qtext { color: var(--bone); font-size: 15px; line-height: 1.45; margin: 8px 0 12px; }
.qwhy { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: -6px 0 12px; }
.qopts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qopt { text-align: left; white-space: normal; min-height: 44px; }
.qopt b { margin-right: 8px; color: var(--muted); font-weight: 500; }
.qother { display: flex; gap: 8px; flex: 1 1 260px; }
.qother .inp { flex: 1; min-height: 44px; }
.qcard.qopen { border-color: var(--bone); }
.qcard .qn { margin-left: auto; }
.qopt.on { border-color: var(--acid); color: var(--bone); }
.qanswer { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px 10px; align-items: center; margin-top: 12px; }
.qanswer .qlab { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.qanswer .inp { min-height: 44px; min-width: 0; }
.qanswer .qhint { font-size: 10px; letter-spacing: .08em; color: var(--acid); white-space: nowrap; }
.qanswer .qhint.off { visibility: hidden; }
@media (max-width: 640px) { .qanswer { grid-template-columns: 1fr auto; } .qanswer .qlab { grid-column: 1 / -1; } .qanswer .qhint { grid-column: 1 / -1; } }
.qcard.qnext { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: baseline; width: 100%; text-align: left; background: none; color: inherit; cursor: pointer; opacity: .7; font: inherit; }
.qcard.qnext:hover { opacity: 1; border-color: var(--bone); }
.qcard.qnext .mono { font-size: 11px; letter-spacing: .08em; color: var(--muted); flex: 0 0 auto; }
.qcard.qnext .qtext-sm { color: var(--bone); font-size: 13px; flex: 1 1 auto; min-width: 0; }
.qcard.qsaved { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: baseline; padding: 10px 14px; }
.qcard.qsaved .mono { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.qcard.qsaved .qtick { color: var(--acid); }
.qcard.qsaved .qans { color: var(--bone); font-weight: 500; flex: 1 1 auto; min-width: 0; }
.qdone { display: grid; gap: 6px; padding: 4px 2px; }
.qdone-row { display: flex; gap: 10px; align-items: baseline; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.qdone-row b { color: var(--bone); font-weight: 500; letter-spacing: 0; font-size: 13px; }

/* ── The v2 piece: what came with the drop, what the outfit is ─────── */

/* the room and the light, settled once for every piece in the drop */
.lockrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s3); margin-bottom: var(--s5); }
.lockcard { display: flex; flex-direction: column; gap: 6px; padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.lockcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-inner); }
.lockcard b { font-size: var(--fs-label); letter-spacing: .16em; color: var(--muted); }
.lockcard span { font-size: var(--fs-small); color: var(--text); }
.lockcard-note { justify-content: center; border-style: dashed; }
.lockcard-note span { color: var(--muted); line-height: 1.5; }

/* a library picker: real photographs, never swatches */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s3); }
.picks.wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface);
  transition: border-color .12s; }
.pick:hover { border-color: var(--muted); }
.pick.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.pick img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-inner);
  background: var(--surface2); }
.pick-lab { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); }
.pick.on .pick-lab { color: var(--bone); }
.pick.off { opacity: .4; }

/* the outfit: one card per slot */
.slotgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); min-height: 0; }
.sslot { display: flex; flex-direction: column; gap: 8px; padding: var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.sslot.on { border-color: var(--muted); }
.sslot-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.sslot-top b { font-size: var(--fs-label); letter-spacing: .16em; }
.sslot-req { font-size: 9px; letter-spacing: .14em; color: var(--warn); }
.sslot-req.ok { color: var(--ok); }
.sslot-hint { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.sslot-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* the pieces already in this drop */
.repo { display: flex; flex-direction: column; gap: var(--s3); }
.repo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3); }
.repo-item { display: flex; flex-direction: column; gap: 6px; padding: 6px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.repo-item:hover { border-color: var(--muted); }
.repo-item img, .repo-ph { width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--r-inner); background: var(--surface2); }
.repo-item span { font-size: var(--fs-small); }

/* the reference the studio built: four views of the client's own piece */
.candrow { margin-bottom: var(--s3); }
.turn { display: grid; gap: var(--s2); }
.turn figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.turn img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: var(--bone);
  border-radius: var(--r-inner); }
.turn figcaption { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.masterline { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; margin: 0 0 var(--s2); }
.made-row .made.master { grid-column: span 2; }
.disclose { font-size: 9px; letter-spacing: .14em; color: var(--muted);
  border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.disclose:hover { color: var(--bone); border-color: var(--muted); }
.jredo { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3);
  padding: var(--s4); }
/* a display rule must never beat the attribute that hides an element */
.jredo[hidden] { display: none; }


/* the piece's own choices: a tag says whether it follows the drop */
.own-tag { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); }
button.own-tag, .own-tag .link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; letter-spacing: inherit; }
button.own-tag:hover, .own-tag .link:hover { color: var(--text); }
.pick.off { opacity: .45; cursor: default; }
.pick.off:hover { border-color: var(--border); }
/* the outfit slot shows what fills it */
.sslot-thumb { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.sslot-thumb img { width: 56px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-inner); border: 1px solid var(--border); }
.sslot-thumb i { font-style: normal; font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); }

/* the set-up card: one sentence, one tag, CHANGE */
.setup-card { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.setup-sentence { font-size: var(--fs-h3); line-height: 1.45; color: var(--bone); max-width: 60ch; }
.setup-tagline { font-size: var(--fs-small); color: var(--muted); }
.setup-card .disclose-row { align-self: flex-start; }
.setup-rows { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--border); padding-top: 8px; }
.setup-rows .ask { flex: none; overflow: visible; }
/* the plan: one row per style */
.plan { display: flex; flex-direction: column; }
.plan-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.plan-row:last-child { border-bottom: 0; }
.plan-cells { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.plan-cells .chip { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--bone); border-color: var(--muted); padding: 5px 10px; min-height: 0; }
.plan-n { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.optlab .own-tag { margin-left: 8px; }

/* ------------------------------------------------- the lightbox: every image, full size, in the page */
.lightbox {
  position: fixed; inset: 0; z-index: 62; background: rgba(15, 14, 14, .94);
  display: flex; flex-direction: column; outline: 0; animation: fadein .18s;
}
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--border); min-height: 46px; }
.lb-cap { font-size: var(--fs-label); letter-spacing: .14em; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-mid { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.lb-state { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); }
.lb-n { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.lb-x { background: none; border: 1px solid var(--border); color: var(--bone); border-radius: var(--r-pill); width: 34px; height: 34px; font-size: 18px; cursor: pointer; }
.lb-x:hover { border-color: var(--muted); }
.lb-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; grid-template-rows: minmax(0, 1fr); align-items: center; justify-items: center; padding: 12px 0; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 150px); height: auto; object-fit: contain; display: block; border-radius: 4px; user-select: none; -webkit-user-drag: none; touch-action: none; }
.lb-stage > *:nth-child(2) { min-height: 0; max-height: 100%; }
.lb-stage.hero-inpaint { outline-offset: -8px; }
.lb-arrow { background: none; border: 0; color: var(--muted); font-size: 34px; line-height: 1; cursor: pointer; width: 44px; height: 64px; border-radius: 6px; }
.lb-arrow:hover:not(:disabled) { color: var(--bone); background: var(--surface2); }
.lb-arrow:disabled { opacity: .2; cursor: default; }
.lb-foot { border-top: 1px solid var(--border); padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.lb-foot .verb-row { margin: 0; }
.lb-mount { max-width: 640px; }
.lb-form { display: flex; flex-direction: column; gap: 10px; }
.lb-form .verb-row { justify-content: flex-end; }
/* the corner zoom on a tile that keeps its own tap */
.zoom {
  position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; color: var(--bone);
  background: rgba(15, 14, 14, .7); border: 1px solid var(--border); opacity: 0; transition: opacity .15s; cursor: zoom-in; z-index: 2;
}
.film-item:hover .zoom, .cand:hover .zoom, .pick:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover: none) { .zoom { opacity: .85; } }
.film-item, .cand, .pick { position: relative; }
[data-view], [data-view-lib], [data-view-url], .hero img[data-hero-img], [data-walk-img] { cursor: zoom-in; }
@media (max-width: 640px) {
  .lb-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .lb-bar { flex-wrap: wrap; }
}

/* the reference: a build in progress, the checks per view, the pick */
.buildline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.buildline .bar { flex: 1; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.buildline .bar i { display: block; height: 100%; background: var(--acid); transition: width .4s; }
.buildline .mono { font-size: var(--fs-label); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.chk { font-style: normal; font-size: 8.5px; letter-spacing: .1em; margin-left: 6px; }
.chk.ok { color: var(--ok); }
.chk.warn { color: var(--warn); }
.turn figcaption .link { margin-left: 6px; font-size: 8.5px; }
.pickstep { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; max-width: 900px; width: 100%; margin: 0 auto; }
.pick-angle { display: flex; flex-direction: column; gap: 10px; }
.pick-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pick-head b { font-size: var(--fs-label); letter-spacing: .16em; color: var(--bone); font-weight: 400; }
.pick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.pick-photo { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pick-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.pick-photo figcaption { font-size: 8.5px; letter-spacing: .12em; color: var(--muted); }
.pick-cand { aspect-ratio: auto; }
.pick-cand img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: none; }
.pick-checks { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 8.5px; letter-spacing: .08em; background: rgba(15, 14, 14, .78); text-align: left; }
.pick-checks.ok { color: var(--ok); }
.pick-checks.warn { color: var(--warn); }

/* the start-to-finish line every wait shows */
.progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.progress .bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--acid); transition: width .6s; }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; font-size: 8.5px; letter-spacing: .14em; color: var(--faint); }
.progress-steps b { font-weight: 400; }
.progress-steps b.done { color: var(--muted); }
.progress-steps b.now { color: var(--bone); }
.progress-note { font-size: var(--fs-small); color: var(--muted); }

/* the fill: a placeholder fills bottom to top over the time its step usually takes */
[data-fill-since] { position: relative; overflow: hidden; }
.fill { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fill i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: bottom;
  transform: scaleY(var(--fill, 0)); background: linear-gradient(180deg, rgba(166, 255, 7, .22), rgba(166, 255, 7, .08));
  border-top: 1px solid rgba(166, 255, 7, .55); transition: transform .25s linear; }
.fill-pct { position: absolute; right: 6px; top: 6px; z-index: 2; font-size: 8.5px; letter-spacing: .1em; color: var(--acid);
  background: rgba(15, 14, 14, .6); padding: 2px 5px; border-radius: 3px; pointer-events: none; }
.film-item .fill-pct { right: 4px; top: 4px; font-size: 7.5px; padding: 1px 4px; }
.film-skel.generating { animation: none; }
.fill-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(640px, 100%); margin: 0 auto; }
.fill-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-inner); background: var(--surface2); border: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: flex-end; padding: 8px; }
.fill-tile b { position: relative; z-index: 2; font-size: 8.5px; letter-spacing: .14em; color: var(--muted); font-weight: 400; }
.fill-tile.landed { border-color: var(--acid); }
.fill-tile.landed b { color: var(--acid); }
.fill-tile.landed .fill i { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .skel.generating::after { animation: none; } .fill i { transition: none; } }

/* THE FILES: folders the way a desktop shows them */
.fpath { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-bottom: var(--s3); flex-wrap: wrap; }
.fpath button { color: var(--muted); min-height: 32px; }
.fpath button:hover { color: var(--bone); }
.fpath b { color: var(--bone); font-weight: 400; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s4); align-items: start; }
.fgrid.files { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.folder { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 14px; text-align: left; min-height: 132px;
  transition: border-color .12s, transform .12s; }
.folder:hover { border-color: var(--muted); transform: translateY(-2px); }
.folder.dim { opacity: .55; }
.folder-ic { color: var(--muted); margin-bottom: 4px; }
.folder:hover .folder-ic { color: var(--bone); }
.folder-name { font-size: var(--fs-small); color: var(--bone); }
.folder-n { font-size: 8.5px; letter-spacing: .14em; color: var(--acid); }
.folder-sub { font-size: 8.5px; letter-spacing: .12em; color: var(--muted); }
.ftile { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.ftile-img { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--surface2); border: 0; padding: 0; cursor: zoom-in; }
.ftile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ftile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 8.5px; letter-spacing: .1em; color: var(--muted); border-top: 1px solid var(--border); }
.ftile figcaption .link { font-size: 8.5px; }
.fempty { color: var(--muted); font-size: var(--fs-small); }
.btn[aria-disabled="true"] { opacity: .45; cursor: default; }

/* the inbox and the tasks page */
.inbox { display: flex; flex-direction: column; gap: 14px; min-width: min(520px, 80vw); }
.inbox-tabs { margin-bottom: 2px; }
.need.update .kind { font-style: normal; font-size: 8px; letter-spacing: .14em; margin-right: 6px; padding: 2px 6px; border-radius: 3px; background: var(--surface2); color: var(--muted); }
.need.update .kind.done { color: var(--ok); }
.need.update .kind.task { color: var(--acid); }
.need.update .kind.paused { color: var(--warn); }
.task-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
/* the tasks page (2026-09-15): a bar with the counts and the grouping, a
   product's tasks under its name inside its collection */
.task-bar { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin: 0 0 var(--s5); }
.task-stats { margin: 0; }
.lib-sub { margin-left: 10px; letter-spacing: .1em; color: var(--muted); font-size: 9px; }
.task-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.task-lately { position: sticky; top: 12px; }
.task-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.task-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); min-height: 150px; }
.task-card h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--bone); }
.task-card-eyebrow { font-size: 8.5px; letter-spacing: .14em; color: var(--muted); }
.task-card-kinds { display: flex; gap: 4px; flex-wrap: wrap; }
.task-card-kinds .kind { font-style: normal; font-size: 8px; letter-spacing: .14em; padding: 3px 7px; border-radius: 3px; background: var(--surface2); color: var(--muted); }
.task-card-kinds .task-review { color: var(--acid); } .task-card-kinds .task-questions { color: var(--warn); } .task-card-kinds .task-approve { color: var(--ok); }
.task-card-lines { display: flex; flex-direction: column; gap: 4px; }
.task-line { display: flex; justify-content: space-between; gap: 8px; text-align: left; font-size: 12px; color: var(--bone); padding: 5px 0; border-top: 1px dashed var(--border); }
.task-line .mono { font-size: 8.5px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.task-card-go { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) { .task-body { grid-template-columns: 1fr; } .task-lately { position: static; } }
.need > .kind { flex-shrink: 0; font-style: normal; font-size: 8px; letter-spacing: .14em; padding: 3px 7px; border-radius: 3px; background: var(--surface2); color: var(--muted); min-width: 66px; text-align: center; }
.need.task-review > .kind { color: var(--acid); } .need.task-questions > .kind { color: var(--warn); } .need.task-approve > .kind { color: var(--ok); }
.nav-item .n { color: var(--acid); font-size: 9px; margin-left: 6px; }

/* the set-up card, centred: the sentence, the option tiles, two actions */
.st.st-centred-head .st-head { justify-content: center; text-align: center; }
.st.st-centred-head .st-head-l { align-items: center; display: flex; flex-direction: column; }
.setup-card.centred { align-items: center; text-align: center; max-width: 900px; }
.setup-card.centred .setup-sentence { max-width: 62ch; }
.opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 4px; }
.opt { width: 118px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 9px; border: 1px solid var(--border); border-radius: var(--r-inner);
  background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .12s, transform .12s; }
.opt:hover { border-color: var(--muted); transform: translateY(-1px); }
.opt.on { border-color: var(--acid); }
.opt-lab { font-size: 8px; letter-spacing: .16em; color: var(--faint); }
.opt-art { width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; }
.opt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.opt-none i { font-style: normal; font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.opt-word { font-size: 10px; letter-spacing: .14em; color: var(--bone); }
.opt-arts { display: flex; gap: 2px; width: 100%; height: 100%; }
.opt-arts i, .opt-arts img { flex: 1; min-width: 0; display: grid; place-items: center; height: 100%; object-fit: cover; }
.opt-arts i svg { width: 30px; height: 36px; }
.opt-cap { font-size: 10.5px; color: var(--bone); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-tag { font-size: 7.5px; letter-spacing: .12em; color: var(--faint); }
.opt.own .opt-tag { color: var(--acid); }
.setup-actions { display: flex; gap: 10px; justify-content: center; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.opt-picker { width: 100%; max-width: 760px; text-align: left; border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.opt-picker-h { font-size: var(--fs-label); letter-spacing: .16em; color: var(--bone); }
.opt-picker-h span { color: var(--muted); letter-spacing: .06em; text-transform: none; }
.opt-picker .own-tag { align-self: flex-start; }
.setup-card.centred .setup-rows { width: 100%; max-width: 760px; text-align: left; }

/* a render in progress: a beam passes over the placeholder while the fill rises */
.generating::before { content: ""; position: absolute; left: -20%; right: -20%; height: 42%; top: -42%; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(245, 237, 230, .07) 45%, rgba(166, 255, 7, .10) 50%, rgba(245, 237, 230, .07) 55%, transparent);
  animation: beam 2.6s ease-in-out infinite; }
@keyframes beam { from { transform: translateY(0); } to { transform: translateY(340%); } }
.skel.generating::after { animation: none; }
.hint { text-align: center; font-size: 9px; letter-spacing: .14em; color: var(--muted); min-height: 14px; }
.hint-in { animation: hintin .4s var(--ease); }
@keyframes hintin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* the image lands: blurred to sharp, top to bottom, the way a render comes in */
.reveal-in { animation: unblur 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes unblur {
  0% { filter: blur(22px) saturate(.5); clip-path: inset(0 0 100% 0); transform: scale(1.05); }
  55% { clip-path: inset(0); }
  100% { filter: none; transform: none; clip-path: inset(0); }
}
@media (prefers-reduced-motion: reduce) { .generating::before { animation: none; } .reveal-in { animation: none; } }

/* how a drop is shot: two tiles, one on */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.way { display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left; position: relative;
  border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface2); color: var(--text); }
.way:hover { border-color: var(--muted); }
.way.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); color: var(--bone); }
.way:disabled { opacity: .55; cursor: default; }
.way:disabled:hover { border-color: var(--border); }
.way.on:disabled { opacity: .8; }
.way-eyebrow { font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); }
.way.on .way-eyebrow { color: var(--bone); }
.way-art svg { width: 100%; height: 56px; display: block; }
.way-line { font-size: var(--fs-small); line-height: 1.5; }
.badge.b-line { color: var(--muted); }
.way-badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.film-size { position: absolute; left: 4px; bottom: 4px; font-size: 7.5px; letter-spacing: .08em; color: var(--bone);
  background: rgba(20, 19, 18, .55); padding: 1px 4px; border-radius: 3px; pointer-events: none; }
.ftile-4k { font-style: normal; font-size: 9px; letter-spacing: .12em; color: var(--ok); margin-left: 6px; }

/* the reference sheet: one image of every view, its checks beside it */
.turn-sheet { grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); align-items: start; }
.turn-sheet figure img { aspect-ratio: auto; max-height: 340px; width: 100%; object-fit: contain; }
.sheet-checks { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sheet-checks li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.sheet-checks li b { font-weight: 400; color: var(--text); }
@media (max-width: 767px) { .turn-sheet { grid-template-columns: 1fr; } }

/* a photo in its folder: the picture, and the two things a person can do to it */
.folder-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.folder-tools { display: flex; gap: 12px; }
.folder-tools .link { font-size: 8.5px; letter-spacing: .14em; }
.ws-ctx .tab-danger { color: var(--muted); }
.ws-ctx .tab-danger:hover { color: var(--danger); }
.sheet-foot .st-spacer { flex: 1; }

/* versions of a take: the badge on its tile, the switch in the hero bar, a redo on its way */
.film-ver { position: absolute; left: 4px; top: 4px; font-size: 7.5px; letter-spacing: .1em; color: var(--bone);
  background: rgba(15, 14, 14, .72); padding: 2px 5px; border-radius: var(--r-pill); z-index: 2; }
.film-item.film-queued { outline: 1px dashed var(--warn); outline-offset: -1px; }
.film-item.film-redo .film-skel i { color: var(--acid); }
.ver-switch { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.ver { font-size: 8.5px; letter-spacing: .1em; padding: 2px 7px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: none; color: var(--muted); cursor: pointer; }
.ver.on { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 50%, var(--border)); }

/* the first look, settled on the check before SEND */
.setup-card .first-look { width: 100%; max-width: 760px; margin-top: 8px; text-align: left; }
.setup-card .first-look .setup-h { margin-bottom: 4px; }

/* the look's toggles drawn in the centre of the look screen */
.setup-look .picker-stage { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.setup-look .picker-stage .vp-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.setup-look .picker-stage .txt { max-width: 640px; }
.setup-look .preset-groups { margin: 4px 0 10px; }


/* the first look on step one: the rows sit under the tiles, left aligned inside the centred card */
.setup-first { width: 100%; text-align: left; border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.setup-first .picker-stage { padding: 0; border: 0; }
.sslot.off { border-style: dashed; }

/* the second section of the home page: the single pieces */
.sect-head { margin-top: var(--s6); }
.sect-title { font-size: 20px; }
.grid-pieces .look-card { height: 100%; }
/* the styling page */
.own-sect { display: flex; flex-direction: column; gap: var(--s4); margin-bottom: var(--s5); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.own-sect h2 { font-size: 18px; color: var(--bone); margin: 0; }
.own-head { display: flex; align-items: center; gap: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.own-head-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 320px; }
.own-head-words .field-note { margin: 0; }
.own-count { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.own-stats { margin: 0 0 var(--s5); }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.own-row { display: flex; flex-direction: column; gap: 8px; }
.own-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.own-card { width: 132px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); text-align: left; position: relative; }
.own-card img, .own-card .own-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--surface2); display: grid; place-items: center; }
.own-card .own-ph i { font-style: normal; font-size: 8.5px; letter-spacing: .14em; color: var(--muted); text-align: center; padding: 6px; }
.own-card .own-lab { font-size: 11px; color: var(--bone); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own-card .own-tag { font-size: 8px; letter-spacing: .14em; color: var(--muted); }
.own-card .own-tag.yours { color: var(--acid); }
.own-card .own-del { align-self: flex-start; }
.own-add { width: 132px; min-height: 200px; border: 1px dashed var(--border); border-radius: var(--r-inner); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; }
.own-add:hover { color: var(--text); border-color: var(--muted); }
.own-add .plus { font-size: 22px; line-height: 1; }
.preset-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); }
.preset-card b { color: var(--bone); font-weight: 600; }
.preset-card .preset-sum { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--muted); }
.rules-box { border: 1px solid var(--border); border-radius: var(--r-inner); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface2); }
.file-list { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; color: var(--muted); }

/* the styling switches on step one */
.sslot.off { opacity: .8; }
.sslot .chip[data-style-toggle] { min-height: 24px; padding: 2px 10px; }

/* the house example set on the toggles: a real image where one has landed,
   the drawing until then (2026-09-11) */
.vp-art .ex-img, .os-art .ex-img, .opt-arts i .ex-img, .plan-style .vp-art .ex-img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; background: var(--surface2); }
.angle-tiles { gap: var(--s2); }
.angle-card .vp-art.vp-word { display: grid; place-items: center; font-size: 9px; letter-spacing: .12em;
  color: var(--muted); background: var(--surface2); border-radius: 4px; }
.angle-card.on .vp-art.vp-word { color: var(--bone); }
.yg-art .ex-img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* ---------------------------------------------------------------- the performance line */
.camp-card .col-strip, .cre-card .cre-thumb { display: flex; gap: 2px; background: var(--surface2); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-inner) var(--r-inner) 0 0; }
.camp-card .col-strip img, .cre-card .cre-thumb img { flex: 1; min-width: 0; object-fit: cover; }
.strip-ph { flex: 1; background: var(--surface2); }
.new-note { font-size: var(--fs-small); color: var(--faint); }
.step-rail { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.step-pill { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: 10px; letter-spacing: .12em; cursor: pointer; }
.step-pill.on { color: var(--bone); border-color: var(--bone); }
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.wiz.wiz-edit { grid-template-columns: 1fr; }
.wiz-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.live { position: sticky; top: 12px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); padding: 10px; }
.live-head { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.live-img, .stage-img { width: 100%; height: auto; display: block; border-radius: var(--r-inner); background: var(--surface2); }
.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.obj-card, .size-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.obj-card b, .size-card b { color: var(--bone); font-weight: 500; }
.obj-card span, .size-card span { font-size: var(--fs-small); color: var(--muted); }
.obj-card.on, .size-card.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.size-box { display: block; width: 44px; height: 44px; border: 1px solid var(--muted); border-radius: 3px; margin-bottom: 4px; }
.size-box[data-ratio="4:5"] { width: 36px; } .size-box[data-ratio="2:3"] { width: 30px; } .size-box[data-ratio="9:16"] { width: 25px; }
.size-box[data-ratio="16:9"] { height: 25px; } .size-box[data-ratio="1.91:1"] { height: 23px; }
.size-box[data-ratio="banner"], .size-box[data-ratio="banner-slim"] { height: 16px; } .size-box[data-ratio="strip"] { height: 9px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pic { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); text-align: left; color: var(--text); cursor: pointer; }
.pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-inner); background: var(--surface2); }
.pic.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.pic.sm { padding: 3px; } .pic.sm img { aspect-ratio: 1; }
.pick-n { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--acid); color: #141312; display: grid; place-items: center; font-size: 10px; }
.pic-name { font-size: var(--fs-small); color: var(--bone); } .pic-meta { font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.block-row, .layer { display: grid; grid-template-columns: 40px 90px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); }
.block-row .field-note { grid-column: 3; }
.layer.off { opacity: .55; }
.switch { width: 34px; height: 20px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface2); position: relative; cursor: pointer; }
.switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: left .12s var(--ease), background .12s; }
.switch.on { border-color: var(--acid); } .switch.on i { left: 16px; background: var(--acid); }
.block-lab { font-size: var(--fs-small); color: var(--bone); }
.lay-grid, .opt-grid, .adapt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lay-card, .opt-card, .adapt-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); color: var(--text); text-align: left; }
.lay-card { cursor: pointer; } .lay-card.on, .opt-card.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.lay-card img, .opt-card img, .adapt-card img { width: 100%; height: auto; border-radius: var(--r-inner); background: var(--surface2); }
.lay-card b, .opt-card b { color: var(--bone); font-weight: 500; } .lay-card span, .opt-meta span { font-size: var(--fs-small); color: var(--muted); }
.lay-fresh { border-style: dashed; align-items: center; justify-content: center; text-align: center; min-height: 200px; }
.opt-meta { display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; letter-spacing: .12em; }
.opt-meta b { color: var(--bone); font-weight: 500; }
.opt-words { font-size: var(--fs-small); color: var(--text); } .opt-words i { color: var(--acid); font-style: normal; }
.edit-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.edit-col { display: flex; flex-direction: column; gap: 12px; } .edit-col h5 { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.edit-stage { display: flex; flex-direction: column; gap: 10px; }
.swap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.guide-check { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); }
.files-list { display: flex; flex-direction: column; gap: 8px; }
.file-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); }
.file-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--surface2); }
.file-row b { font-size: var(--fs-small); color: var(--bone); word-break: break-all; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; } .gcard h5 { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); }
.logo-well { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: var(--r-inner); background: var(--surface2); }
.logo-well img { max-width: 220px; height: auto; } .logo-well .display { font-size: 26px; color: var(--bone); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-size: 9.5px; letter-spacing: .12em; color: var(--text); }
.swatch input[type="color"] { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface2); padding: 2px; cursor: pointer; }
.crumb a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .wiz { grid-template-columns: 1fr; } .live { position: static; } .edit-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the working page
   The premium pass (2026-09-14): the page fills its width, one header
   grammar (eyebrow, title, one line, actions right, a hairline), a stats
   strip with tabular figures, and the drop as a table of rows. */
.pad.wide { max-width: 1480px; }
.ph-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); padding: var(--s2) 0 var(--s5); border-bottom: 1px solid var(--border); margin-bottom: var(--s4); }
.ph-title h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--bone); letter-spacing: -.01em; margin: 6px 0 8px; }
.ph-eyebrow { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.ph-line { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.ph-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); flex-shrink: 0; }
.ph-stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); padding: 0 0 var(--s4); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ph-stats b { color: var(--bone); font-weight: 600; font-size: 13px; margin-right: 4px; }
.ph-stats .hot b { color: var(--acid); }
.ph-stats .chip { margin-left: 0; }
.ptable { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-outer); overflow: hidden; background: var(--surface); }
.prow { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(150px, .9fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 120px; align-items: center; gap: var(--s4); padding: 10px var(--s4); border-top: 1px solid var(--border); min-height: 66px; }
.prow:first-child { border-top: 0; }
.ptable.selecting .prow, .prow:has(.pick-box) { grid-template-columns: 28px minmax(240px, 1.6fr) minmax(150px, .9fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 120px; }
.prow-head { min-height: 34px; padding-top: 8px; padding-bottom: 8px; font-size: 10px; letter-spacing: .12em; color: var(--muted); background: var(--surface2); }
.prow.picked { background: rgba(166, 255, 7, .04); }
.prow-main { display: flex; align-items: center; gap: var(--s3); min-width: 0; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.prow-thumb { width: 48px; height: 60px; border-radius: var(--r-inner); overflow: hidden; background: var(--surface2); flex-shrink: 0; display: grid; place-items: center; }
.prow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-ph { font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.prow-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prow-name b { color: var(--bone); font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-name .mono { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.prow-main:hover .prow-name b { color: var(--acid); }
.prow-photos { display: flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .08em; }
.prow-photos i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; color: var(--faint); }
.prow-photos i.has { color: var(--bone); border-color: var(--muted); }
.prow-photos .n { color: var(--muted); margin-left: 4px; }
.prow-prog { display: flex; align-items: center; gap: var(--s3); }
.prow-prog .bar { flex: 1; max-width: 120px; height: 4px; }
.prow-prog .n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prow-prog .faint { color: var(--faint); }
.prow-state { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .1em; color: var(--text); }
.prow-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.prow-state .dot-ready { background: var(--bone); } .prow-state .dot-work { background: var(--warn); }
.prow-state .dot-review { background: var(--acid); } .prow-state .dot-done { background: var(--ok); } .prow-state .dot-frozen { background: var(--danger); }
.prow-state em { font-style: normal; color: var(--acid); }
.prow-act { display: flex; justify-content: flex-end; }
.prow-new { grid-template-columns: auto auto 1fr; justify-content: start; background: none; border: 0; border-top: 1px solid var(--border); color: var(--muted); cursor: pointer; text-align: left; font: inherit; }
.prow-new .plus { font-size: 20px; color: var(--faint); }
.prow-new:hover { color: var(--bone); }
.pick-box { width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: 5px; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pick-box i { width: 10px; height: 10px; border-radius: 2px; background: transparent; }
.pick-box.on { border-color: var(--acid); } .pick-box.on i { background: var(--acid); }
@media (max-width: 900px) {
  .prow, .prow:has(.pick-box) { grid-template-columns: 1fr auto; }
  .prow-photos, .prow-prog, .prow-head { display: none; }
  .ph-head { flex-direction: column; align-items: stretch; }
  .ph-actions { justify-content: flex-start; }
}

/* the bulk upload sheet */
.bulk { display: flex; flex-direction: column; gap: 12px; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; max-height: 56vh; overflow: auto; padding-right: 4px; }
.bulk-piece { border: 1px solid var(--border); border-radius: var(--r-inner); padding: 10px; background: var(--surface2); display: flex; flex-direction: column; gap: 8px; }
.bulk-piece-head { display: grid; grid-template-columns: 1fr 96px; gap: 6px; }
.bulk-photos { display: flex; flex-direction: column; gap: 6px; }
.bulk-photo { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; align-items: center; }
.bulk-photo img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--surface); }
.bulk .inp-sm { padding: 5px 8px; font-size: 11px; }

/* the drop's review grid */
.rv-piece { margin-top: var(--s5); }
.rv-piece-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.rv-piece-name { display: flex; align-items: baseline; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.rv-piece-name b { color: var(--bone); font-weight: 500; font-size: 15px; }
.rv-piece-name .mono, .rv-piece-n { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.rv-tile { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-inner); overflow: hidden; background: var(--surface2); border: 1px solid var(--border); padding: 0; cursor: zoom-in; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-tile.approved .rv-img { border-color: var(--ok); } .rv-tile.rejected .rv-img, .rv-tile.dropped .rv-img { border-color: var(--danger); opacity: .7; }
.rv-mark { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--bg); background: var(--ok); }
.rv-mark.b-frozen { background: var(--danger); }
.rv-v { position: absolute; top: 6px; right: 6px; font-size: 9px; letter-spacing: .1em; color: var(--bone); background: rgba(0,0,0,.6); padding: 2px 5px; border-radius: 3px; }
.rv-tile figcaption { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.rv-verbs { display: flex; gap: 6px; }
.btn-xs { padding: 4px 10px; font-size: 11px; min-height: 26px; }
.btn-danger { background: var(--danger); color: var(--bg); border-color: var(--danger); }

/* the header grammar on the performance pages (2026-09-14): a sentence
   under the title keeps its case; the step rail is the stats strip */
.ph-eyebrow a { color: inherit; text-decoration: none; }
.ph-eyebrow a:hover { color: var(--bone); }
.ph-eyebrow.crumb { margin-bottom: 0; }
.ph-line.ph-sent { font-size: 12.5px; letter-spacing: 0; max-width: 60ch; line-height: 1.45; margin-top: 2px; }
.step-rail.ph-stats { gap: 0; margin: 0 0 var(--s5); padding: 0; border-bottom: 1px solid var(--border); }
.step-rail.ph-stats .step-pill { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 14px 12px; margin-bottom: -1px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.step-rail.ph-stats .step-pill.past { color: var(--bone); opacity: .7; }
.step-rail.ph-stats .step-pill.on { color: var(--bone); border-bottom-color: var(--acid); }
.step-rail.ph-stats .step-pill:hover { color: var(--bone); }

/* PRODUCTS (2026-09-14): the catalogue table, the check sheet, one product */
.cat-table .prow { grid-template-columns: minmax(200px, 1.3fr) minmax(220px, 1.4fr) minmax(120px, .8fr) 110px 120px; cursor: pointer; }
.cat-table .prow-head { cursor: default; }
.cat-row:hover { background: var(--surface2); }
.cat-row:focus-visible { outline: 2px solid var(--acid); outline-offset: -2px; }
.cat-cell { min-width: 0; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.cat-cell-name { display: flex; flex-direction: column; gap: 2px; }
.cat-cell-name b { font-size: 13.5px; font-weight: 600; color: var(--bone); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-cell-name .mono { font-size: 10px; letter-spacing: .1em; }
.cat-price { font-variant-numeric: tabular-nums; color: var(--bone); }
.cat-cut.okc { color: var(--ok); }
.cat-strip { display: flex; align-items: center; gap: 6px; }
.cat-pic { width: 44px; height: 56px; border-radius: var(--r-inner); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; position: relative; flex-shrink: 0;
  background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 12px 12px; }
.cat-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-pic.pending img { opacity: .5; }
.cat-cutting { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(166, 255, 7, .25) 50%, transparent 70%); animation: beam 1.6s linear infinite; }
.cat-more { font-size: 10px; color: var(--muted); }
.cat-bar { justify-content: flex-start; }
.cat-search { width: 240px; }
.cat-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 56ch; padding: 32px 0; }
.cat-empty .display { font-size: 30px; color: var(--bone); }
.cat-empty p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.cat-howto { border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); margin-bottom: var(--s5); overflow: hidden; }
.cat-howto-head { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; color: var(--muted); padding: 12px var(--s4); font-size: 10px; letter-spacing: .12em; cursor: pointer; }
.cat-howto-head:hover { color: var(--bone); }
.cat-howto-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); padding: 0 var(--s4) var(--s4); border-top: 1px solid var(--border); padding-top: var(--s4); }
.cat-howto-item { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cat-howto-item b { color: var(--bone); font-weight: 600; }
.cat-howto-art { width: 96px; height: 120px; border-radius: var(--r-inner); overflow: hidden; background: var(--surface2); }
.cat-howto-art svg { width: 100%; height: 100%; display: block; }
.cat-bk-head { display: grid; grid-template-columns: 1.6fr .8fr .6fr 1fr; gap: 6px; }
.cat-sheet { display: flex; flex-direction: column; gap: 16px; }
.cat-fields-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cat-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cat-pic-card { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-pic-img { aspect-ratio: 4 / 5; border-radius: var(--r-inner); overflow: hidden; border: 0; padding: 0; cursor: zoom-in;
  background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 12px 12px; }
.cat-pic-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-pic-card figcaption { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
.cat-pic-verbs { display: flex; gap: 4px; }
.cat-pic-add { aspect-ratio: 4 / 5; border: 1px dashed var(--border); border-radius: var(--r-inner); background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.cat-pic-add:hover { color: var(--bone); border-color: var(--bone); }
.cat-pic-add .plus { font-size: 22px; line-height: 1; }
@media (max-width: 900px) {
  .cat-table .prow { grid-template-columns: 1fr 1.2fr; }
  .cat-table .prow > :nth-child(n+3) { display: none; }
  .cat-howto-body { grid-template-columns: 1fr; }
  .cat-fields-row { grid-template-columns: 1fr; }
}

/* TEMPLATES (2026-09-14): the gallery on the sample product */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s4); margin: var(--s3) 0 var(--s6); }
.tpl-card { margin: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.tpl-img { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--r-outer); overflow: hidden; background: var(--surface2); padding: 0; cursor: pointer; }
.tpl-img img { width: 100%; display: block; }
.tpl-img:hover { border-color: var(--bone); }
.tpl-img:disabled { cursor: default; opacity: .5; }
.tpl-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.tpl-card figcaption b { font-size: 13px; font-weight: 600; color: var(--bone); }
.tpl-card figcaption .mono { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); }
.tpl-verbs { display: flex; gap: 4px; }
.tpl-rows { display: flex; flex-direction: column; gap: var(--s4); margin: var(--s3) 0 var(--s6); }
.tpl-row { border-top: 1px solid var(--border); padding-top: var(--s3); }
.tpl-row-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tpl-row-head b { font-size: 14px; font-weight: 600; color: var(--bone); }
.tpl-row-head .mono { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.tpl-grid-row { margin: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.linkish { background: none; border: 0; padding: 0; color: var(--acid); cursor: pointer; font: inherit; text-decoration: underline; }

/* THE CAMPAIGN GRID and the new campaign sheet (2026-09-14) */
.cg-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s4) var(--s5); padding: var(--s3) 0 var(--s2); }
.cg-bar .field { margin: 0; min-width: 0; }
.cg-bar .inp-sm { width: 200px; }
.cg-bar .chips { flex-wrap: wrap; }
.cg-note { margin: 0 0 var(--s4); color: var(--muted); }
.cgrid-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.cgrid { border-collapse: collapse; width: 100%; min-width: 640px; }
.cgrid th { text-align: left; padding: 10px var(--s4); font-size: 10px; letter-spacing: .12em; color: var(--muted); background: var(--surface2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.cgrid th span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); opacity: .8; margin-top: 2px; }
.cgrid td { padding: 10px var(--s4); border-top: 1px solid var(--border); vertical-align: middle; }
.cg-product { display: flex; align-items: center; gap: var(--s3); min-width: 220px; }
.cg-pthumb { width: 44px; height: 56px; border-radius: var(--r-inner); overflow: hidden; flex-shrink: 0;
  background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 12px 12px; }
.cg-pthumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cg-pname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cg-pname b { font-size: 13px; font-weight: 600; color: var(--bone); }
.cg-pname .mono { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cg-cell { position: relative; width: 1%; white-space: nowrap; }
.cg-open { display: block; height: 150px; border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; background: var(--surface2); padding: 0; cursor: pointer; }
.cg-open img { height: 150px; width: auto; display: block; }
.cg-open:hover { border-color: var(--bone); }
.cg-cell.off .cg-open { width: 90px; display: grid; place-items: center; color: var(--muted); font-size: 10px; letter-spacing: .12em; cursor: default; opacity: .5; }
.cg-cell[data-ratio="1:1"] .cg-open, .cg-cell[data-ratio="1:1"] .cg-open img { min-width: 150px; }
.cg-tick { position: absolute; top: 14px; left: calc(var(--s4) + 6px); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--bone); background: rgba(0, 0, 0, .55); color: transparent; font-size: 12px; cursor: pointer; line-height: 1; }
.cg-tick.on { background: var(--acid); border-color: var(--acid); color: #101010; }
.cg-tick:hover { border-color: var(--acid); }
.cg-row-verbs { width: 1%; text-align: right; }
.cg-row-verbs .btn { opacity: .5; }
.cgrid tr:hover .cg-row-verbs .btn { opacity: 1; }
.nc { display: flex; flex-direction: column; gap: 18px; }
.nc-block { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.nc-block-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.nc-block-head .chips { flex: 1; justify-content: flex-end; }
.nc-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }
.nc-product { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.nc-product.on { border-color: var(--acid); color: var(--bone); }
.nc-product:disabled { opacity: .4; cursor: default; }
.nc-product-pic { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 10px 10px; }
.nc-product-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nc-product-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nc-product .mono { font-size: 9px; letter-spacing: .1em; }
.nc-tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--bone); background: rgba(0, 0, 0, .5); }
.nc-product.on .nc-tick { background: var(--acid); border-color: var(--acid); }
.nc-product.on .nc-tick::after { content: "✓"; color: #101010; font-size: 11px; display: grid; place-items: center; height: 100%; }
.nc-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 300px; overflow: auto; padding: 2px; }
.nc-template { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.nc-template img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; background: var(--surface2); }
.nc-template span { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-template i { font-style: normal; font-size: 8.5px; letter-spacing: .12em; }
.nc-template.on { border-color: var(--acid); color: var(--bone); }
.nc-template:disabled { opacity: .4; cursor: default; }
.nc-words { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: var(--s4); align-items: start; }
@media (max-width: 720px) { .nc-words { grid-template-columns: 1fr; } .cg-bar .inp-sm { width: 100%; } }

.tpl-making .tpl-img { position: relative; aspect-ratio: 4 / 5; }
.tpl-beam { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(120deg, var(--surface2) 30%, rgba(166, 255, 7, .14) 50%, var(--surface2) 70%) 0 0 / 300% 100%; animation: tplbeam 1.8s linear infinite; }
.tpl-beam .mono { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
@keyframes tplbeam { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* the layers panel: live words, the formatting under a disclosure (2026-09-14) */
.layers { gap: 6px; }
.layer { display: flex; flex-direction: column; gap: 0; padding: 0; }
.layer-main { display: grid; grid-template-columns: 34px 78px minmax(0, 1fr) 24px; gap: 8px; align-items: center; padding: 7px 8px; }
.layer-gap { min-height: 30px; }
.block-inp { min-width: 0; font-size: 12px; }
.layer-more { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px; }
.layer-more.on, .layer-more:hover { color: var(--bone); }
.layer-fmt { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 10px; border-top: 1px solid var(--border); }
.fmt-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; }
.fmt-lab { font-size: 8.5px; letter-spacing: .14em; color: var(--muted); }
.fmt-row .chips { gap: 4px; }
.fmt-row .chip { padding: 3px 7px; font-size: 9px; }
.fmt-row input[type=range] { width: 100%; }
.chip-colour { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.chip-colour input { width: 16px; height: 16px; border: 0; padding: 0; background: none; }
.nudge .chip { min-width: 28px; text-align: center; }
.edit-grid { grid-template-columns: 250px minmax(0, 1fr) 300px; }
/* the editor room (2026-09-15): a small canvas between the two bars, the
   product's pictures as a strip under all three */
.edit-room { display: flex; flex-direction: column; gap: var(--s4); }
.edit-grid-3 { grid-template-columns: 240px minmax(0, 1fr) 280px; gap: var(--s4); }
.edit-grid-3 .edit-col { gap: 10px; }
.edit-grid-3 .edit-col .field { margin: 0; }
.edit-grid-3 .lay-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.edit-grid-3 .lay-thumb img { aspect-ratio: 1; }
.edit-grid-3 .edit-col h5 { margin: 0; }
.edit-grid-3 .edit-col .chips { gap: 5px; }
.edit-grid-3 .edit-col .chip { padding: 4px 9px; font-size: 9.5px; }
.stage-frame { display: flex; justify-content: center; align-items: flex-start; }
.stage-frame .stage-img { width: auto; max-width: 100%; max-height: min(50vh, 480px); }
.edit-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.edit-two .guide-check { min-width: 0; }
.edit-strip { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: var(--s4); }
.swap-strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 8px; scrollbar-width: thin; }
.swap-strip .pic.sm { flex: 0 0 72px; width: 72px; }
.swap-strip .pic.sm img { aspect-ratio: 4 / 5; }
@media (max-width: 1100px) { .edit-grid-3 { grid-template-columns: 220px minmax(0, 1fr) 240px; } }
@media (max-width: 900px) { .edit-grid-3 { grid-template-columns: 1fr; } .cg-prow { grid-template-columns: 1fr; } }
.tm-grid { grid-template-columns: 280px minmax(0, 1fr) 300px; }
.tm-name { font-family: var(--font-display); font-size: 30px; padding: 2px 6px; margin: 4px 0 6px -6px; background: transparent; border-color: transparent; color: var(--bone); }
.tm-name:hover, .tm-name:focus { border-color: var(--border); background: var(--surface); }
.tm-grounds { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-beam { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: var(--r-inner); }
@media (max-width: 1100px) { .edit-grid, .tm-grid { grid-template-columns: 1fr; } }

/* STUDIO POSES on the new campaign sheet; a row still shooting on the grid */
.nc-source { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nc-way { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--muted); text-align: left; cursor: pointer; }
.nc-way b { font-size: 10.5px; letter-spacing: .12em; color: var(--bone); }
.nc-way span { font-size: 11.5px; line-height: 1.4; }
.nc-way.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
/* the campaign as sections (2026-09-15): one per template, a row per product,
   the product's creatives as one strip that scrolls sideways */
.cg-sect { border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); margin-bottom: var(--s4); overflow: hidden; }
.cg-sect-head { display: flex; align-items: center; gap: var(--s4); padding: 12px var(--s4); background: var(--surface2); border-bottom: 1px solid var(--border); }
.cg-sect-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cg-sect-title .mono { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.cg-sect-title h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-sect-line { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); margin-left: auto; white-space: nowrap; }
.cg-prow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s4); align-items: start; padding: 12px var(--s4); border-top: 1px solid var(--border); }
.cg-sect-head + .cg-prow { border-top: 0; }
.cg-prow .cg-product { min-width: 0; padding-top: 22px; }
.cg-strip { display: flex; gap: var(--s4); overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 10px; scrollbar-width: thin; }
.cg-pic-group { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; padding-right: var(--s4); border-right: 1px dashed var(--border); }
.cg-pic-group:last-child { border-right: 0; padding-right: 0; }
.cg-pic-head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.cg-pthumb-sm { width: 18px; height: 22px; border-radius: 3px; }
.cg-pic-head .cg-row-remove { margin-left: auto; opacity: .5; }
.cg-pic-group:hover .cg-row-remove { opacity: 1; }
.cg-cards { display: flex; gap: 10px; align-items: flex-start; }
.cg-cards .cg-cell { width: auto; }
.cg-cards .cg-open { height: 150px; }
.cg-cards .cg-cell.off .cg-open { width: 90px; height: 150px; }
.cg-cards .cg-tick { top: 6px; left: 6px; }
.cg-size { display: block; margin-top: 5px; font-size: 8.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
/* the carousels (2026-09-16): the product heads its own; one slide per
   picked picture, the lead size large, the other sizes stacked beside it */
.cg-car { border-top: 1px solid var(--border); }
.cg-sect-head + .cg-car { border-top: 0; }
.cg-car-head { display: flex; align-items: center; gap: var(--s4); padding: 12px var(--s4) 6px; }
.cg-car-head .cg-product { min-width: 0; flex: 1 1 auto; }
.cg-car-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cg-car-pos { font-size: 9.5px; letter-spacing: .12em; color: var(--muted); min-width: 44px; text-align: right; }
.cg-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 4px var(--s4) 14px; scrollbar-width: none; }
.cg-track::-webkit-scrollbar { display: none; }
.cg-slide { flex: 0 0 auto; scroll-snap-align: start; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 8px 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface2); }
.cg-slide-lead { grid-row: 1; grid-column: 1; }
.cg-slide-rest { grid-row: 1; grid-column: 2; display: flex; flex-direction: column; gap: 8px; }
.cg-slide-foot { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.cg-slide-foot .cg-row-remove { margin-left: auto; opacity: .5; }
.cg-slide:hover .cg-row-remove { opacity: 1; }
.cg-slide .cg-cell { width: auto; }
.cg-slide .cg-cell-lead .cg-open { height: 340px; }
.cg-slide .cg-cell-lead .cg-open img { height: 340px; }
.cg-slide .cg-cell-lead.off .cg-open { width: 200px; height: 340px; }
.cg-slide .cg-slide-rest .cg-open { height: 104px; }
.cg-slide .cg-slide-rest .cg-open img { height: 104px; }
.cg-slide .cg-slide-rest .cg-cell.off .cg-open { width: 70px; height: 104px; }
.cg-slide .cg-slide-rest .cg-cell[data-ratio="1:1"] .cg-open, .cg-slide .cg-slide-rest .cg-cell[data-ratio="1:1"] .cg-open img { min-width: 104px; }
.cg-slide .cg-tick { top: 6px; left: 6px; }
.cg-slide .cg-slide-rest .cg-tick { width: 18px; height: 18px; font-size: 10px; top: 4px; left: 4px; }
.cg-slide .cg-slide-rest .cg-size { font-size: 8px; }
.lay-grid-page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lay-grid-page .lay-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.lay-grid-page .lay-card i { font-style: normal; font-size: 8.5px; letter-spacing: .12em; color: var(--muted); }
.cg-shooting .cg-open { position: relative; }
.cg-shooting .cg-open::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(166, 255, 7, .22) 50%, transparent 70%) 0 0 / 300% 100%; animation: tplbeam 1.8s linear infinite; pointer-events: none; }

/* THE SHOOT before the studio; layouts as live thumbnails (2026-09-15) */
.shoot-rows { display: flex; flex-direction: column; gap: var(--s4); }
.shoot-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); align-items: start; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); }
.shoot-product { display: flex; align-items: center; gap: var(--s3); }
.shoot-tiles { display: flex; flex-wrap: wrap; gap: var(--s3); }
.shoot-tile { margin: 0; width: 132px; display: flex; flex-direction: column; gap: 4px; }
.shoot-tile img, .shoot-ph { width: 132px; height: 165px; border-radius: var(--r-inner); object-fit: cover; background: var(--surface2); display: grid; place-items: center; position: relative; overflow: hidden; }
.shoot-ph .mono { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.shoot-ph.generating::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(166, 255, 7, .22) 50%, transparent 70%) 0 0 / 300% 100%; animation: tplbeam 1.8s linear infinite; }
.shoot-tile figcaption { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.shoot-tile.in figcaption { color: var(--bone); }
.lay-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.lay-thumb { display: flex; flex-direction: column; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); cursor: pointer; color: var(--muted); }
.lay-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface2); display: block; }
.lay-thumb span { font-size: 8px; letter-spacing: .12em; }
.lay-thumb.on { border-color: var(--acid); color: var(--bone); box-shadow: inset 0 0 0 1px var(--acid); }

/* layouts as campaign variants (2026-09-15) */
.cgrid td.cg-product-cell { vertical-align: top; padding-top: var(--s4); }
.cgrid.has-layouts td.cg-product-cell { width: 1%; white-space: nowrap; }
.cg-layout { font-size: 10px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; padding-right: var(--s4); }
.cgrid tr.cg-more td { border-top: 1px dashed var(--border); }
.cg-layouts .chip i { font-style: normal; opacity: .6; margin-left: 4px; }
.chip.chip-add { border-style: dashed; color: var(--muted); }
.chip.chip-add:hover { color: var(--bone); border-color: var(--bone); }

/* CREATIONS (2026-09-15) */
.cr-filters { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); padding: var(--s3) 0 var(--s4); }
.cr-filters .field { margin: 0; }
.cr-campaign { padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--border); }
.cr-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s3); }
.cr-head .display { font-size: 21px; color: var(--bone); }
.cr-head a { font-size: 10px; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.cr-head a:hover { color: var(--bone); }
.cr-product { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s4); padding: var(--s3) 0; border-top: 1px dashed var(--border); align-items: start; }
.cr-pname b { display: block; color: var(--bone); }
.cr-pname .mono { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.cr-tiles { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cr-tile { margin: 0; width: 132px; display: flex; flex-direction: column; gap: 4px; }
/* one box for every tile so the rows line up; a wide or square file sits inside it whole */
.cr-tile img { width: 132px; height: 165px; object-fit: contain; border-radius: var(--r-inner); background: var(--surface2); cursor: zoom-in; display: block; }
.cr-tile figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.cr-tile figcaption a { color: var(--muted); text-decoration: none; padding: 2px 6px; border: 1px solid var(--border); border-radius: 999px; }
.cr-tile figcaption a:hover { color: var(--bone); border-color: var(--bone); }
.btn.disabled { opacity: .45; pointer-events: none; }

/* MAKE E-COM SET on the products page (2026-09-15) */
.cat-row.selectable { cursor: pointer; grid-template-columns: 22px minmax(240px, 1.6fr) minmax(150px, .9fr) minmax(170px, 1fr) minmax(190px, 1.1fr) 120px; }
.cat-check { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface2); display: block; }
.cat-check.on { background: var(--acid); border-color: var(--acid); position: relative; }
.cat-check.on::after { content: "✓"; color: #101010; font-size: 11px; display: grid; place-items: center; height: 100%; }
.cat-cut.shooting { color: var(--acid); }
.cat-row.cat-shooting .cat-cell-pics { position: relative; }
.ecom-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ecom-style { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; }
.ecom-style.on { border-color: var(--acid); color: var(--bone); }
.ecom-style b { font-size: 11.5px; font-weight: 600; }
.ecom-style .mono { font-size: 8.5px; letter-spacing: .1em; }
.ecom-art { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; }
.ecom-art img, .ecom-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Campaign pictures: the campaigns first, every creation under them (2026-09-15) */
.cr-campaigns { margin-bottom: var(--s5); }

/* the three steps on the products page (2026-09-15) */
.cat-steps { align-items: center; }
.cat-steps .step-pill:disabled { opacity: .5; cursor: default; }
.cat-steps .step-pill.on { color: var(--acid); border-bottom-color: var(--acid); }
.cat-steps-note { font-size: 10px; letter-spacing: .04em; max-width: 420px; text-align: right; padding-bottom: 8px; }
.chip.chip-xs { padding: 2px 7px; font-size: 8.5px; }

/* a product is a folder (2026-09-15) */
.cat-folder { color: var(--muted); text-decoration: none; letter-spacing: .1em; }
.cat-folder:hover { color: var(--acid); }
.pf-tile .ftile-img { aspect-ratio: 4 / 5; }
.pf-cut .ftile-img { background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 14px 14px; }
.pf-cut .ftile-img img { object-fit: contain; }
.pf-verbs { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 8px; border-top: 1px solid var(--border); }
.pf-verbs .btn-xs { padding: 3px 7px; }
.fgrid.files.pf-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pf-tile figcaption { white-space: nowrap; overflow: hidden; }
.pf-tile figcaption .mono:first-child { overflow: hidden; text-overflow: ellipsis; }

/* NEW CAMPAIGN in five steps on the wide sheet (2026-09-15): a sticky head
   with the question, the stepper and the running tally; the body scrolls */
/* the wide sheet's body has no padding of its own: the sticky head and the
   step each carry theirs, so the head never covers a step's first row */
.sheet-wide .sheet-body { padding: 0; }
.nc5 { gap: 0; }
.nc-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: var(--s5) var(--s5) 14px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4) var(--s5); flex-wrap: wrap; }
.nc-head-words { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nc-title { font-size: 24px; color: var(--bone); line-height: 1.1; }
.nc-tally { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sheet-foot .nc-tally { margin-left: var(--s2); }
.nc-rail { margin: 0; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.nc-rail .step-pill:disabled { opacity: .5; cursor: default; }
.nc-rail .step-pill.on { color: var(--acid); border-bottom-color: var(--acid); }
.nc-step { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--s5) var(--s5); }
.nc-bar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.nc-bar .chips { flex-wrap: wrap; }
.nc-products { max-height: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0; align-items: stretch; }
.nc-product { padding: 8px; gap: 4px; }
.nc-product .mono { white-space: normal; line-height: 1.5; }
.nc-pic.undecided .nc-pic-mode .chip { border-color: var(--bone); color: var(--bone); }
.nc-bank { gap: 0; max-height: none; padding: 0; }
.nc-bank-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.nc-bank-row:first-child { border-top: 0; padding-top: 0; }
.nc-bank-name b { display: block; color: var(--bone); font-size: 13px; }
.nc-bank-name .mono { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); margin-top: 2px; }
.nc-bank-name .chips { margin-top: 10px; }
.nc-bank-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.nc-pic { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nc-pic-img { position: relative; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--border); border-radius: var(--r-inner); background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 10px 10px; padding: 0; cursor: pointer; overflow: hidden; }
.nc-pic-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nc-pic.on .nc-pic-img { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.nc-pic.on .nc-tick { background: var(--acid); border-color: var(--acid); }
.nc-pic.on .nc-tick::after { content: "✓"; color: #101010; font-size: 11px; display: grid; place-items: center; height: 100%; }
.nc-pic-img:disabled { opacity: .4; cursor: default; }
.nc-pic-mode { display: flex; gap: 3px; min-height: 18px; }
.nc-pic-mode .mono { font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.nc-templates { max-height: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 0; }
.nc5 .nc-words { grid-template-columns: 1.3fr 1fr auto; align-items: start; }
.nc5 .size-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nc-sum-figs { display: flex; border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.nc-fig { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-right: 1px solid var(--border); }
.nc-fig:last-child { border-right: 0; }
.nc-fig b { font-size: 22px; font-weight: 500; color: var(--bone); font-variant-numeric: tabular-nums; }
.nc-fig .mono { font-size: 9px; letter-spacing: .14em; color: var(--muted); }
.nc-fig-total { background: var(--surface2); } .nc-fig-total b { color: var(--acid); }
.nc-sum-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s4); align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.nc-sum-row p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text); }
.nc-sum-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-sum-pic { margin: 0; width: 64px; }
.nc-sum-pic img { width: 64px; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 4px; background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 8px 8px; }
.nc-sum-pic figcaption { font-size: 8px; letter-spacing: .1em; color: var(--muted); margin-top: 3px; text-align: center; }
@media (max-width: 720px) {
  .nc-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .nc-rail { flex-wrap: wrap; }
  .nc-products { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .nc5 .size-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .sheet-foot .nc-tally { display: none; }
  .nc-bank-row, .nc-sum-row { grid-template-columns: 1fr; gap: 8px; }
  .nc-sum-figs { flex-wrap: wrap; } .nc-fig { flex: 1 1 40%; border-bottom: 1px solid var(--border); }
}
.nc-template { position: relative; }
.nc-template .nc-tick { display: none; }
.nc-template.on .nc-tick { display: block; background: var(--acid); border-color: var(--acid); }
.nc-template.on .nc-tick::after { content: "✓"; color: #101010; font-size: 11px; display: grid; place-items: center; height: 100%; }
.nc-template-add { align-items: center; justify-content: center; border-style: dashed; min-height: 150px; text-align: center; }
.nc-template-add .plus { font-size: 22px; color: var(--muted); }
.nc-template.making { opacity: .6; }
.cg-picture-cell { vertical-align: top; white-space: nowrap; }
.cg-picture-cell .cg-pthumb { display: inline-block; vertical-align: middle; margin-right: 8px; background: repeating-conic-gradient(var(--surface2) 0 25%, var(--surface) 0 50%) 0 0 / 8px 8px; }
.cg-picmode { font-size: 9px; letter-spacing: .12em; color: var(--muted); vertical-align: middle; }
.cgrid.has-layouts td.cg-picture-cell { width: 1%; padding-top: var(--s4); }

/* THE DOOR (2026-09-15): one studio, every company inside it */
.door { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s8); min-height: 100%; }
.door-card { width: min(920px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.door-card .mark-ii { height: 14px; width: auto; opacity: .92; }
.door-title { font-size: 28px; color: var(--bone); }
.door-sub { color: var(--muted); font-size: 12.5px; max-width: 48ch; }
/* the door is logos alone (2026-09-15): a square tile per company, its
   mark centred, nothing written on it */
.door-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); width: 100%; margin-top: var(--s3); }
.door-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .12s, transform .12s; }
.door-tile:hover { border-color: var(--bone); color: var(--bone); transform: translateY(-1px); }
.door-tile.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); color: var(--bone); }
.door-mark { display: flex; align-items: center; justify-content: center; }
.door-mark img { height: 30px; width: auto; max-width: 130px; object-fit: contain; }
.door-mark .display { font-size: 22px; color: var(--bone); letter-spacing: .02em; }
.door-tile.door-add { border-style: dashed; } .door-tile.door-add .display { color: var(--muted); font-size: 32px; font-family: var(--font-body); font-weight: 300; }
body.on-door .sidebar { display: none; }
/* the lines screen: the company's mark, then what it can make */
.lines-card { gap: 18px; }
.lines-back { align-self: flex-start; font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.lines-mark img { height: 34px; max-width: 200px; } .lines-mark .display { font-size: 30px; }
.line-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); width: 100%; }
@media (max-width: 720px) { .line-tiles { grid-template-columns: 1fr; } }
.line-tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: var(--s5) var(--s4); min-height: 210px; border: 1px solid var(--border); border-radius: var(--r-outer); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left; transition: border-color .12s, transform .12s; }
.line-tile:hover { border-color: var(--bone); color: var(--bone); transform: translateY(-1px); }
.line-tile.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.line-tile .line-icon { color: var(--acid); }
.line-tile b { font-size: 17px; font-weight: 600; color: var(--bone); }
.line-tile > span:not(.line-icon) { font-size: 12.5px; line-height: 1.5; }
.line-tile i { margin-top: auto; font-style: normal; font-size: 9.5px; letter-spacing: .16em; color: var(--bone); }
.code-box { font-size: 22px; letter-spacing: .12em; color: var(--bone); padding: var(--s4); border: 1px solid var(--acid); border-radius: var(--r-inner); background: var(--surface2); user-select: all; }

/* THE ORGANIZER (2026-09-15) */
.org-progress { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5) 0; max-width: 560px; }
.org-bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.org-bar i { display: block; height: 100%; background: var(--acid); transition: width .6s ease; }
.org-grid { max-height: none; }
.org-group { gap: 10px; }
.org-head { display: grid; grid-template-columns: 1.6fr .8fr; gap: 6px; }
.org-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.org-photo { width: 118px; display: flex; flex-direction: column; gap: 4px; }
.org-photo img { width: 118px; height: 148px; object-fit: cover; border-radius: 4px; background: var(--surface); cursor: zoom-in; display: block; border: 2px solid transparent; }
.org-photo.lead img { border-color: var(--acid); }
.org-photo.ticked img { border-color: var(--bone); }
.org-photo-verbs { display: flex; flex-direction: column; gap: 3px; }
.org-photo-verbs .chip { font-size: 8px; padding: 3px 6px; justify-content: center; }
.org-photo select { font-size: 9px; }
.org-verbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.org-verbs .mono { font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.org-unsure { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--s3); }
.org-ways { grid-template-columns: 1fr 1fr 1fr; }
.org-busy { color: var(--acid); }

/* the templates page in families (2026-09-16) */
.tpl-filters { display: flex; flex-direction: column; gap: 8px; margin: var(--s3) 0 var(--s5); }
.tpl-filters .chip i { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 9px; }
.tpl-filters .chip.on i { color: inherit; }
.tpl-family { margin-top: var(--s5); }
.tpl-family-head { display: flex; align-items: baseline; gap: 12px; }
.tpl-family-head .mono { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.tpl-family .page-sub { margin: 4px 0 0; }

/* placing with the studio (2026-09-16) */
.cg-place { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 var(--s4); border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--text); font-size: var(--fs-small); }
.cg-place .mono { font-size: 9px; letter-spacing: .16em; color: var(--acid); }
.cg-place.landed .mono { color: var(--ok); }
.cg-place-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; position: relative; }
.cg-place-bar i { position: absolute; inset: 0; width: 30%; background: var(--acid); animation: cg-beam 1.6s var(--ease) infinite; }
@keyframes cg-beam { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* the editor without the layers (2026-09-16): the stage and the style */
.edit-grid-2 { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); }
.edit-grid-2 .edit-col { gap: 10px; }
.edit-grid-2 .edit-col .field { margin: 0; }
.edit-grid-2 .lay-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.edit-grid-2 .lay-thumb img { aspect-ratio: 1; }
@media (max-width: 900px) { .edit-grid-2 { grid-template-columns: 1fr; } }

/* several products in one image (2026-09-16) */
.edit-together { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.edit-together .pic { position: relative; overflow: visible; }
.pic-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bone); color: #141312; font-size: 10px; line-height: 18px; text-align: center; }
.pic-add { display: grid; place-items: center; font-size: 22px; color: var(--muted); border: 1px dashed var(--border); background: none; }
.pic-add:hover { color: var(--bone); border-color: var(--muted); }
.nc-together { display: flex; align-items: center; gap: 4px; padding: 4px 6px 0; }
.nc-together .mono { font-size: 8.5px; letter-spacing: .14em; color: var(--muted); margin-right: 4px; }
.chip-xs { padding: 1px 7px; font-size: 9px; min-height: 20px; }

/* the piece step as a list of sections (2026-09-18): FOR, STYLES by family,
   MODEL, POSES beside the camera guides, BACKDROPS, LIGHTS, THE FIRST LOOK;
   then OUTFIT AND STYLING as its own screen */
.setup-card.centred.setup-list { max-width: 980px; gap: 22px; align-items: stretch; text-align: left; }
.setup-list .setup-sentence, .setup-list .setup-actions { align-self: center; text-align: center; }
.setup-list .setup-sec { width: 100%; border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.setup-list .setup-first { max-width: none; }
.setup-list .picks.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.setup-list .picks.picks-small { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s2); }
.setup-list .picks.picks-small .pick { padding: 4px; gap: 4px; }
.setup-list .picks.picks-small .pick-lab { font-size: 9px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-list .setup-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.setup-list .setup-sec-h .setup-h { margin: 0; }
.setup-list .setup-sec-h .own-tag { margin: 0 0 0 auto; }
.setup-list .chips.fam .chip { letter-spacing: .12em; }
.setup-list .pick { position: relative; }
.pick-n { position: absolute; top: 10px; left: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--acid); color: var(--ink, #111);
  font-size: 11px; line-height: 22px; text-align: center; letter-spacing: 0; }
.poses { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--s2); }
.pose { display: flex; flex-direction: column; gap: 6px; padding: 6px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-inner); color: inherit; cursor: pointer; position: relative; }
.pose:hover { border-color: var(--muted); }
.pose.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.pose.off { opacity: .4; cursor: default; }
.pose img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: calc(var(--r-inner) - 2px); background: var(--surface2); }
.pose .repo-ph { aspect-ratio: 5/4; }
.pose .pick-lab { font-size: 10px; }
.pose.on .pick-lab { color: var(--bone); }
.cams { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cam-style { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cam-name { font-size: 10px; letter-spacing: .12em; color: var(--muted); min-width: 110px; }
.cam-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cam { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cam img { width: 64px; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); background: var(--surface2); }
.cam figcaption { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.pick-none .repo-ph, .pick-add .repo-ph { display: grid; place-items: center; aspect-ratio: 4/5; }
.pick-none .repo-ph i, .pick-add .repo-ph i { font-style: normal; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.pick-add .repo-ph i { font-size: 22px; }
.acc-slot { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.acc-name { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.stepper .field-note { padding: 0 12px; border: 0; height: auto; line-height: 1.4; min-width: 0; text-align: left; font-family: inherit; font-size: 12px; color: var(--muted); }
.stepper b { min-width: 46px; text-align: center; font-weight: 500; color: var(--bone); }
@media (max-width: 640px) { .poses { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .cam-name { min-width: 0; } }

/* ------------------------------------------------- the configurator (2026-09-21)
   how a piece or a drop is shot, one full screen: a stepper across the
   top, one section a screen, big tiles, a summary bar with the primary */
.st.st-full .st-head { padding-bottom: 6px; }
.st.st-full .st-body { overflow: hidden; }
.cfg { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.cfg-steps { display: flex; gap: 6px; border-bottom: 1px solid var(--border); padding: 0 0 10px; overflow-x: auto; flex: none; }
.cfg-step { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 120px; flex: 1 1 0; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface); color: var(--muted); text-align: left; cursor: pointer; }
.cfg-step:hover { border-color: var(--muted); color: var(--bone); }
.cfg-step.on { border-color: var(--acid); color: var(--bone); background: var(--surface2, var(--surface)); }
.cfg-step.done .cfg-step-n { color: var(--acid); }
.cfg-step-n { font-size: 10px; letter-spacing: .1em; }
.cfg-step-w { font-size: 10px; letter-spacing: .14em; }
.cfg-step-v { font-size: 12px; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cfg-step.on .cfg-step-v { color: var(--acid); }
.cfg-screen { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 2px 24px; display: flex; flex-direction: column; gap: 14px; }
.cfg-screen-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cfg-title { font-size: var(--fs-h2, 22px); font-weight: 500; color: var(--bone); margin: 0; }
.cfg-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cfg-choices.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cfg-big { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; min-height: 140px; text-align: left; border: 1px solid var(--border);
  border-radius: var(--r-inner); background: var(--surface); color: var(--bone); cursor: pointer; }
.cfg-big:hover { border-color: var(--muted); }
.cfg-big.on { border-color: var(--acid); box-shadow: inset 0 0 0 1px var(--acid); }
.cfg-big-word { font-size: 22px; letter-spacing: .12em; font-family: var(--font-mono); }
.cfg-big-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
.cfg-grid.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cfg-grid.styles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cfg-grid.poses { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cfg-grid .pick { position: relative; }
.cfg-grid .pick.style .pick-art { display: block; aspect-ratio: 4/5; border-radius: calc(var(--r-inner) - 2px); overflow: hidden; background: var(--surface2, var(--surface)); }
.cfg-grid .pick.style .pick-art img, .cfg-grid .pick.style .pick-art svg { width: 100%; height: 100%; object-fit: cover; }
.cfg-grid .pick.style .pick-hint { font-size: 12px; color: var(--muted); }
.cfg-grid .pick.pose img { aspect-ratio: 5/4; }
.cfg-grid .pick.pose .repo-ph { aspect-ratio: 5/4; }
.cfg-models .picks.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cfg-sub { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.cfg-sub-h { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.cfg-slot { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.cfg-slot:first-of-type { border-top: 0; padding-top: 0; }
.cfg-slot-h { display: flex; align-items: baseline; gap: 14px; }
.cfg-slot-h .setup-h { margin: 0; }
.cfg-slot-h .own-tag { margin: 0 0 0 auto; }
.cfg-look { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.cfg-sum-line { font-size: 11px; letter-spacing: .12em; color: var(--acid); }
.cfg-bar { flex: none; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.cfg-sum { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; }
.cfg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--bone); font-size: 12px; white-space: nowrap; cursor: pointer; }
.cfg-chip i { font-style: normal; font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.cfg-chip.on { border-color: var(--acid); }
.cfg-acts { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 900px) {
  .cfg-step { min-width: 96px; }
  .cfg-step-v { display: none; }
  .cfg-bar { flex-wrap: wrap; }
  .cfg-sum { order: 2; flex-basis: 100%; }
  .cfg-grid.big, .cfg-grid.styles, .cfg-grid.poses { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* drop settings as a page: the words above the configurator */
.ws-cols-one { grid-template-columns: minmax(0, 1fr); }
.ds-words { display: grid; grid-template-columns: minmax(200px, 1.4fr) auto auto minmax(220px, 2fr); gap: 8px; align-items: center; margin-top: 6px; }
.ds-words .inp, .ds-words .sel { min-height: 36px; }
.ds-name { font-size: 18px; }
@media (max-width: 900px) { .ds-words { grid-template-columns: 1fr 1fr; } .ds-desc { grid-column: 1 / -1; } }

/* REQUEST CREDITS: the top-up sheet (2026-09-22) */
.topup { display: flex; flex-direction: column; gap: 12px; }
.topup-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topup-open { color: var(--ok); font-size: 13px; }
.topup .txt { width: 100%; resize: vertical; }
/* BUY CREDITS: the bundles as tiles, REQUEST under a hairline (2026-09-22) */
.topup-buy, .topup-ask { display: flex; flex-direction: column; gap: 10px; }
.topup-ask { border-top: 1px solid var(--border); padding-top: 12px; }
.bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bundle { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-inner); background: var(--surface2); text-align: left; cursor: pointer; }
.bundle:hover { border-color: var(--muted); }
.bundle.on { border-color: var(--bone); }
.bundle b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--bone); }
.bundle span { color: var(--text); font-size: 14px; }
.bundle small { color: var(--muted); font-size: 11px; }
@media (max-width: 560px) { .bundles { grid-template-columns: 1fr; } }
/* the postpaid statement: a row per month, PAY or PAID */
.statement { display: flex; flex-direction: column; gap: 6px; }
.statement-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border); }
.statement-row b { color: var(--bone); min-width: 130px; }
.statement-row > span { color: var(--muted); flex: 1; }
