:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #134e4a;
  --accent-hover: #0f3f3c;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --danger: #991b1b;
  --danger-bg: #fee2e2;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --review: #b45309;
  --review-bg: #ffedd5;
  --radius: 0;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

/* —— Slim shop header —— */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.app-header h1 a { text-decoration: none; }
.app-header h1 a:hover { color: var(--accent); }
.app-header .sub { display: none; }
.header-brand { min-width: 0; }

/* —— Hamburger / drawer —— */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  flex-shrink: 0;
}
.burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}
.burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
.nav-logo {
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
.nav-logo:hover { color: var(--accent); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.nav-scrim[hidden] { display: none !important; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  bottom: 0;
  width: min(320px, 82vw);
  z-index: 50;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: none;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  overscroll-behavior: contain;
}
.nav-drawer.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  flex-direction: column;
  padding: 12px 0 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.nav-item {
  display: block;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-item:hover { background: #f5f5f4; }
.nav-item.active {
  font-weight: 700;
  background: #f5f5f4;
}
.nav-foot {
  margin: 8px 20px 20px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
body.nav-open { overflow: hidden; }

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Mobile: hamburger on the right; drawer opens from the right */
@media (max-width: 959px) {
  .app-header {
    position: sticky;
  }
  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-brand .nav-burger {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .app-header {
    padding-right: 52px;
  }
  .header-end {
    margin-left: auto;
    margin-right: 4px;
  }
}
.back-inline {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back-inline:hover { color: var(--accent); }
.detail-title-bar {
  padding: 12px 16px 0;
  max-width: 1280px;
  margin: 0 auto;
}
.detail-title-bar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.detail-app-header .header-brand { flex: 1; }

.stub-page .stub-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 650;
}
.stub-list {
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.7;
}
.model-list {
  display: grid;
  gap: 10px;
  max-width: 480px;
}
.model-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.model-card:hover { border-color: var(--ink); }
.model-card-name { font-weight: 650; }
.model-card-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.app-header h1 { /* keep for any leftover titles */
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 36px;
  flex-shrink: 0;
}
.filters-toggle.is-open,
.filters-toggle.has-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filters-toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
.filters-toggle:not(.is-open):not(.has-active) .filters-toggle-count {
  background: var(--ink);
  color: #fff;
}

.filters {
  display: none;
  flex-basis: 100%;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 0 2px;
}
.filters.is-open { display: flex; }

.chip, .select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.select {
  outline: none;
  max-width: 100%;
}

main.page {
  padding: 16px 12px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.meta {
  display: flex;
  gap: 10px 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 14px;
}
.meta strong { color: var(--ink); font-weight: 600; }

/* —— PLP product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 10px;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
  }
  main.page { padding: 20px 24px 72px; }
  .app-header { padding: 14px 24px; }
  .app-header h1 { font-size: 16px; }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 18px;
  }
}

.product-card {
  min-width: 0;
  background: transparent;
}

.product-media {
  position: relative;
  background: #eee;
}

.product-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-track::-webkit-scrollbar { display: none; height: 0; }

.product-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #e8e4df;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e8e4df;
}

.slide-id {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.badge.slide-status {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  margin: 0;
  font-size: 10px;
  padding: 3px 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.add-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f5f5f4;
  color: var(--muted);
  border: 1px dashed var(--line);
}
.add-slide:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fafaf9;
}
.add-slide .add-plus {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.add-slide .add-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.product-dots .dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.product-dots .dot.active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.product-info {
  padding: 10px 2px 0;
}
.product-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.product-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: #44403c;
}
.badge.locked { background: var(--ok-bg); color: var(--ok); }
.badge.needs_review, .badge.review { background: var(--review-bg); color: var(--review); }
.badge.cut { background: var(--danger-bg); color: var(--danger); }
.badge.regen { background: var(--warn-bg); color: var(--warn); }
.badge.draft { background: #e7e5e4; color: #57534e; }
.badge.lg { font-size: 12px; padding: 4px 10px; font-weight: 650; }

.badge.shot {
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  padding: 2px 7px;
  text-transform: none;
  letter-spacing: 0;
}
.badge.shot.front { background: #ecfdf5; color: #047857; }
.badge.shot.side { background: #e0f2fe; color: #075985; }
.badge.shot.back { background: #f3e8ff; color: #6b21a8; }
.badge.shot.closeup { background: #ffedd5; color: #c2410c; }
.shot-meta { margin: 2px 0 4px; }
.shot-edit .shot-select {
  font-size: 13px;
  padding: 5px 10px;
  max-width: 100%;
}

.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  grid-column: 1 / -1;
}

.chip.model-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 719px) {
  .chip, .select {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .meta { font-size: 11px; margin-bottom: 10px; }
  .product-title { font-size: 12px; }
  .product-sub { font-size: 11px; }
}



.ptype-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent);
  border: 1px solid #ccfbf1;
  text-transform: lowercase;
  margin: 0 4px 4px 0;
}
.cat-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cell-meta { font-size: 11px; color: var(--muted); }

/* —— Detail —— */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.detail-header .back {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.detail-header .back:hover { color: var(--accent); }
.detail-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  text-align: center;
  flex: 1;
}
.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
}
@media (max-width: 960px) {
  .detail-wrap { grid-template-columns: 1fr; }
}

.hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 72px;
}
.hero img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #eee;
}
@media (max-width: 960px) {
  .hero { position: static; }
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 12px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 650;
}
.panel h2 + .kv { margin-top: 0; }

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.kv span { color: var(--muted); }
.kv .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

textarea, input[type="text"], .text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafaf9;
  color: var(--ink);
  outline: none;
}
textarea:focus, input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 78, 74, 0.12);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
a.btn,
a.btn:hover,
a.btn:focus,
a.plp-add-btn {
  text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.primary:disabled,
.btn.primary[disabled] {
  background: #d6d3d1;
  color: #a8a29e;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.warn { background: var(--warn-bg); color: var(--warn); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.ghost { background: #f5f5f4; color: #44403c; border: 1px solid var(--line); }
.btn.ok { background: var(--ok-bg); color: var(--ok); }

.toast {
  font-size: 12px;
  color: var(--ok);
  margin-top: 8px;
  min-height: 1.2em;
}
.toast.error { color: var(--danger); }

.comments { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.comment {
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.comment .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comment .body { font-size: 14px; line-height: 1.45; }
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.comment-form input { flex: 1; }

.gens-list { display: flex; flex-direction: column; gap: 10px; }
.gen {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fafaf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.gen img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}
.gen .title { font-size: 13px; font-weight: 600; }
.gen .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gen-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.gen-stats strong { color: var(--ink); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.modal .actions { margin-top: 8px; justify-content: flex-end; gap: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 16px;
  color: #6B6B66;
  background: #F7F4EE;
}

/* Model detail / measurements */

.body-type-block {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 12px;
  background: #fafaf9;
}
.body-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.body-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.body-type-required-grid {
  margin-top: 4px;
  margin-bottom: 10px;
}
.body-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.body-type-purpose {
  margin: 0 !important;
}
.meas-field.required .req-mark,
.meas-label .req-mark {
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  color: #b45309;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-left: 4px;
}
.meas-field.invalid .meas-input-row input,
.meas-input-row input.invalid {
  border-color: var(--danger, #dc2626);
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}
.meas-field.invalid .meas-label {
  color: var(--danger, #dc2626);
}


.model-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.model-link:hover { color: var(--accent); }
.chip.model-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.model-wrap .purpose {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.model-wrap .purpose.muted { color: var(--muted); font-size: 13px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.meas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 14px;
  margin-top: 8px;
}
.meas-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meas-field.optional .meas-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.meas-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.meas-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meas-input-row input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.meas-unit {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 2.5em;
}
/* Model detail product-style header (flush, no panel chrome) */
.model-wrap {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 8px 16px 64px;
  max-width: 960px;
}
@media (max-width: 600px) {
  .model-wrap {
    padding: 4px 12px 56px;
  }
}
.model-pdp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.model-pdp-media {
  flex: 0 0 46%;
  max-width: 460px;
  min-width: 0;
  background: #eceae7;
  overflow: hidden;
  border-radius: 0;
}
.model-pdp-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: #eceae7;
}
.model-pdp-empty {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  background: #eceae7;
  letter-spacing: 0.01em;
}
.model-pdp-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 4px 0 0;
}
.model-pdp-name {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
/* Beat global input[type=text] chrome — name reads as title, not a field */
.model-pdp-info input.model-pdp-name-input[type="text"],
.model-pdp-info input.model-pdp-name-input {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  outline: none;
}
.model-pdp-info input.model-pdp-name-input:hover,
.model-pdp-info input.model-pdp-name-input:focus {
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  background: transparent;
}
.model-pdp-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-pdp-face-prompt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
}
.model-pdp-face-prompt .field-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.model-pdp-face-textarea {
  width: 100%;
  min-height: 7.5rem;
  flex: 1 1 auto;
  resize: vertical;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 10px;
  padding: 10px 12px;
}
.model-pdp-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.model-pdp-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.model-pdp-meta-label {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.model-pdp-element {
  width: 100%;
  max-width: 100%;
}
.model-pdp-panels {
  min-width: 0;
}
@media (max-width: 359px) {
  .model-pdp-header {
    flex-direction: column;
    gap: 14px;
  }
  .model-pdp-media {
    flex: none;
    width: 100%;
    max-width: none;
  }
}
@media (min-width: 360px) and (max-width: 960px) {
  .model-pdp-header {
    gap: 12px;
  }
  .model-pdp-media {
    flex-basis: 46%;
  }
  .model-pdp-info {
    padding-top: 0;
  }
}


/* ═══════════ Shopping PLP / PDP / Generate ═══════════ */
.shop-header {
  flex-wrap: nowrap;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  display: inline-block;
  flex-shrink: 0;
}
.header-spacer { flex: 1; }

.shop-plp {
  padding-top: 8px;
  max-width: 1280px;
}
.plp-title-block {
  padding: 8px 4px 16px;
}
.plp-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.plp-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

/* PLP list pages: title + Add CTA side by side */
.title-row.plp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 4px 16px;
}
.title-row.plp-title-row > div {
  min-width: 0;
  flex: 1 1 220px;
}
.title-row.plp-title-row .plp-add-btn {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  white-space: nowrap;
  text-decoration: none;
}

.plp-filters {
  display: block;
  padding: 12px 0 18px;
  margin: 0 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 2px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}
.select.ghost-select {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  min-height: auto;
  appearance: auto;
}
.select.ghost-select:focus {
  outline: none;
  color: var(--ink);
}

/* Hide legacy filters-toggle when unused */
.shop-plp .filters-toggle { display: none; }

.product-grid {
  gap: 28px 12px;
}
.product-info {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px 2px 0;
}
.product-title {
  font-size: 14px;
  font-weight: 600;
}
.product-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.product-dots {
  bottom: 12px;
}
.product-dots .dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.product-dots .dot.active {
  background: #1c1917;
  box-shadow: none;
}

/* Hide old slide chrome if any leftover */
.slide-id, .badge.slide-status { display: none !important; }
.add-slide { display: none !important; }

@media (min-width: 720px) {
  .plp-title { font-size: 32px; }
  .shop-plp { padding: 16px 24px 72px; }
}

/* ── PDP ── */
.shop-pdp {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 80px;
}
.pdp-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.pdp-crumb:hover { color: var(--ink); }

.pdp-hero {
  position: relative;
  background: #eee;
  width: 100%;
}
.pdp-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdp-track::-webkit-scrollbar { display: none; height: 0; }
.pdp-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 2 / 3;
  background: #e8e4df;
  cursor: pointer;
}
.pdp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.pdp-dots .dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.pdp-dots .dot.active {
  background: #1c1917;
}

.pdp-title-block {
  padding: 20px 16px 8px;
}
.pdp-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pdp-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pdp-meta {
  margin: 12px 16px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pdp-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pdp-meta-row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.pdp-meta-row dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.pdp-shot-select {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 10px;
  font-size: 14px;
  background: #fff;
  max-width: 100%;
}

.pdp-looks {
  padding: 28px 16px 8px;
}
.pdp-section-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}
.look-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.look-thumb {
  flex: 0 0 88px;
  width: 88px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.look-thumb img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  display: block;
  background: #eee;
  border: 1px solid transparent;
}
.look-thumb.active img {
  border-color: var(--ink);
}
.look-thumb-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.look-add {
  flex: 0 0 88px;
  width: 88px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  color: var(--muted);
}
.look-add-plus {
  width: 88px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 200;
  line-height: 1;
  border-bottom: 1px solid transparent;
}
.look-add:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.ops-panel {
  margin: 32px 16px 0;
  border: 1px solid var(--line);
  background: #fafaf9;
}
.ops-panel > summary {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.ops-panel > summary::-webkit-details-marker { display: none; }
.ops-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ops-body {
  padding: 16px;
}
.ops-subhead {
  margin: 24px 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ops-kv {
  margin-bottom: 12px;
}

@media (min-width: 720px) {
  .shop-pdp { padding-bottom: 96px; }
  .pdp-title { font-size: 32px; }
  .look-thumb, .look-add { flex-basis: 100px; width: 100px; }
  .look-thumb img, .look-add-plus { width: 100px; height: 125px; }
}

/* ── Generate ── */
.shop-generate {
  max-width: 560px;
}
.mode-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  margin: 0 0 24px;
}
.mode-btn {
  flex: 1;
  border: 0;
  background: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  border-radius: 0;
}
.mode-btn + .mode-btn {
  border-left: 1px solid var(--line);
}
.mode-btn.active {
  background: var(--ink);
  color: #fff;
}
.gen-panel {
  padding-bottom: 40px;
}
.gen-panel .field-label {
  margin-top: 18px;
}
.gen-panel .text-input,
.gen-panel .block-select,
.gen-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
}
.gen-panel .block-select {
  appearance: auto;
  max-width: 100%;
}
.upload-hint,
.gen-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.bulk-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}
.seg-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 4px;
}
.seg-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.seg-option input {
  accent-color: var(--ink);
}
.gen-actions {
  margin-top: 24px;
}
.gen-actions .btn.primary {
  border-radius: 0;
  padding: 12px 22px;
  letter-spacing: 0.02em;
}

/* Square-er buttons in shop context */
.shop-pdp .btn,
.shop-generate .btn {
  border-radius: 0;
}

.ghost-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.ghost-filter .ghost-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  padding: 2px 14px 2px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%78716c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  min-height: auto;
  border-radius: 0;
}

/* ── Create pose / Add look ── */
.pose-create,
.shop-create {
  max-width: 560px;
}
.pose-create-form {
  padding-bottom: 48px;
}
.pose-create .field-label {
  margin-top: 20px;
}
.pose-create .field-label:first-of-type {
  margin-top: 4px;
}
.pose-create .block-select,
.pose-create .text-input,
.pose-create textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}
.pose-create .block-select {
  appearance: auto;
  max-width: 100%;
}
.pose-create .form-chip-row {
  margin-bottom: 4px;
}
.pose-create .form-chip {
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
}
.pose-create .form-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pose-create .custom-field {
  margin-top: 8px;
}
.pose-create .optional-tag {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px;
}
.pose-create .create-actions {
  margin-top: 28px;
  gap: 10px;
  align-items: center;
}
.pose-create .create-actions .btn {
  border-radius: 0;
  padding: 12px 22px;
}
.pose-create .create-actions .btn.ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Overhead angle stage (top-down floor pad, camera at bottom) */
.angle-stage {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  margin: 8px 0 4px;
  max-width: 320px;
  outline: none;
}
.angle-stage:focus-visible .angle-stage-pad {
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.15);
}
.angle-stage-pad {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 220px;
  margin: 0 auto;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #f5f5f4 0%, #fafaf9 48%, #f0efed 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: grab;
}
.angle-stage:active .angle-stage-pad,
.angle-stage.dragging .angle-stage-pad {
  cursor: grabbing;
}
/* Soft FOV wedge from camera (bottom) into the scene */
.angle-fov {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 78%;
  height: 72%;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    rgba(28, 25, 23, 0.07) 0%,
    rgba(28, 25, 23, 0.03) 42%,
    transparent 100%
  );
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  pointer-events: none;
  z-index: 0;
}
.angle-camera {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) rotate(-90deg);
  color: var(--ink);
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
  line-height: 0;
}
.angle-dial-silhouette {
  position: absolute;
  left: 50%;
  top: 46%;
  color: var(--ink);
  opacity: 0.9;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.05s linear;
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}
/* Facing tick: points toward camera (bottom) at 0° */
.angle-dial-pointer {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 2px;
  height: 38px;
  margin-left: -1px;
  background: linear-gradient(to bottom, transparent 0%, var(--ink) 55%, var(--ink) 100%);
  border-radius: 2px;
  opacity: 0.35;
  transform-origin: 50% 0%;
  transform: rotate(0deg);
  pointer-events: none;
  z-index: 1;
}
.angle-dial-pointer::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.7;
}
.angle-dial-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.angle-deg {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.angle-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.angle-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

@media (max-width: 420px) {
  .angle-stage-pad {
    height: 200px;
    max-width: 100%;
  }
}


/* ── Models PLP (shopping cards) ── */
.shop-models {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 72px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.shop-model-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shop-model-card:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.model-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--line);
}
.model-card-actions .btn {
  width: 100%;
  font-size: 12px;
  padding: 8px 10px;
}
.model-card-media {
  aspect-ratio: 2 / 3;
  background: #f5f5f4;
  overflow: hidden;
  position: relative;
}
.model-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #f5f5f4;
}
.model-card-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
}
.model-card-track::-webkit-scrollbar { display: none; height: 0; }
.model-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #f5f5f4;
}
.model-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  user-select: none;
}
.model-card-slide-tag { display: none;
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(20,20,20,0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.model-card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.model-card-dots .model-card-dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(0,0,0,0.25);
}
.model-card-dots .model-card-dot.active {
  background: rgba(0,0,0,0.75);
}
.model-card-slide-tag { display: none;
  bottom: 28px;
}
.model-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 650;
  color: #a8a29e;
  background: #f5f5f4;
}
.model-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.meas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meas-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #f5f5f4;
  color: var(--ink);
  border: 1px solid var(--line);
}
.meas-chip em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
}
.models-create-link {
  margin-top: 24px;
}

/* Model detail — lock + prompts */
.locked-banner {
  margin: 0 20px 12px;
  padding: 12px 16px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 14px;
  font-weight: 600;
}
.prompt-textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.prompt-textarea:disabled,
.prompt-textarea[readonly],
textarea:disabled,
input:disabled {
  background: #f5f5f4;
  color: #44403c;
  cursor: not-allowed;
  opacity: 0.95;
}
.lock-gate-note {
  margin: 8px 0 0;
}
.error-hint {
  color: var(--danger, #b91c1c);
  font-weight: 600;
}
.model-create .prompt-textarea {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .shop-models { padding: 12px 14px 64px; }
  .model-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .locked-banner { margin: 0 14px 10px; }
}


/* ═══════════ Model headshot 6-up picker ═══════════ */
.hs-panel { margin-bottom: 16px; }
.hs-panel .hs-prompt-block {
  margin: 12px 0 14px;
}
.hs-panel .hs-prompt-purpose {
  margin: 0 0 8px;
  font-size: 13px;
}
.hs-panel .prompt-textarea {
  margin-top: 4px;
}
.hs-sheet-wrap {
  margin: 10px 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line, #e7e5e4);
  background: #f5f3f0;
}
.hs-sheet {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: #f5f3f0;
}
.hs-pick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.hs-pick-btn {
  appearance: none;
  border: 1.5px solid var(--line, #d6d3d1);
  background: #fff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  color: var(--text, #1c1917);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.hs-pick-btn:hover:not(:disabled) {
  border-color: var(--accent, #c45c26);
  color: var(--accent, #c45c26);
}
.hs-pick-btn.selected {
  background: var(--accent, #c45c26);
  border-color: var(--accent, #c45c26);
  color: #fff;
}
.hs-pick-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Cropped plate picker (face/body 6-up) */
.hs-plate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.hs-plate-card {
  appearance: none;
  border: 2px solid var(--line, #d6d3d1);
  background: #fff;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  transition: border-color 0.12s, box-shadow 0.12s;
  color: inherit;
}
.hs-plate-card:hover:not(:disabled) {
  border-color: var(--accent, #c45c26);
}
.hs-plate-card.selected {
  border-color: var(--accent, #c45c26);
  box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.35);
}
.hs-plate-card:disabled {
  opacity: 0.7;
  cursor: default;
}
.hs-plate-thumb {
  aspect-ratio: 2 / 3;
  background: #f5f3f0;
  overflow: hidden;
}
.hs-plate-thumb-body {
  aspect-ratio: 2 / 3;
}
.hs-plate-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hs-plate-thumb-body .hs-plate-img {
  object-position: center top;
}
.hs-plate-fallback {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #a8a29e;
}
.hs-plate-num {
  display: block;
  padding: 6px 8px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.hs-sheet-details {
  margin: 0;
}
.hs-sheet-summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #78716c);
  list-style: none;
}
.hs-sheet-summary::-webkit-details-marker { display: none; }
.hs-sheet-ref .hs-sheet {
  max-height: 360px;
}
@media (max-width: 640px) {
  .hs-plate-grid { gap: 8px; }
}
.hs-selected-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 10px;
}
.hs-face-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  background: #fff;
  flex-shrink: 0;
}
.hs-face-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hs-selected-label {
  font-weight: 600;
  font-size: 14px;
}
.hs-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.hs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hs-chip-row .form-chip,
.hs-chip-row .chip {
  border: 1px solid var(--line, #d6d3d1);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.hs-chip-row .form-chip.active,
.hs-chip-row .chip.active {
  background: #1c1917;
  color: #fff;
  border-color: #1c1917;
}
.hs-actions { margin-top: 4px; }
.hs-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  margin: 10px 0 14px;
  border-radius: 14px;
  border: 1px dashed var(--line, #d6d3d1);
  background: linear-gradient(180deg, #fafaf9, #f3f1ee);
}
.hs-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent, #c45c26);
  opacity: 0.35;
  animation: hs-pulse 1.1s ease-in-out infinite;
}
@keyframes hs-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.25; }
  50% { transform: scale(1.08); opacity: 0.55; }
}
.hs-pending-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #78716c);
}
.hs-lock-hint { margin-top: 8px !important; color: var(--accent, #c45c26) !important; }
.hs-hint { margin: 0 0 8px; }
@media (max-width: 640px) {
  .hs-pick-grid { gap: 6px; }
  .hs-pick-btn { font-size: 16px; padding: 10px 0; }
}

/* ═══════════ Model body confirm 6-up picker ═══════════ */
/* Prefer 2×6 (12 Nano cells) on desktop; fall back to 3-col on narrow */
.body-panel .hs-plate-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .body-panel .hs-plate-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .body-panel .hs-plate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ═══════════ Model body confirm 6-up picker ═══════════ */
.body-panel { margin-bottom: 16px; }
.body-pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.body-hero-thumb {
  width: 56px;
  height: 72px;
  border-radius: 10px;
}
.body-sheet {
  max-height: 640px;
}
@media (max-width: 640px) {
  .body-pick-grid { gap: 6px; }
}

/* ═══════════ Pose sheet 1×3 picker (pose PDP) ═══════════ */
.pdp-pose-sheet {
  padding: 20px 16px 0;
}
.pdp-pose-sheet .pose-sheet-panel {
  margin-bottom: 0;
}
.pose-sheet-pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .pose-sheet-pick-grid { gap: 6px; }
}

/* Collapsed headshots after pick */
.hs-panel-collapsed {
  padding: 12px 14px;
}
.hs-collapsed-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hs-collapsed-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #eceae7;
}
.hs-collapsed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hs-collapsed-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.hs-collapsed-copy h2 {
  margin: 0;
  font-size: 15px;
}
.hs-collapsed-copy .purpose {
  margin: 2px 0 0;
}
.hs-collapsed-actions {
  flex: 0 0 auto;
}
.hs-selected-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
}

/* Face / body swipe on model PDP header */
.model-pdp-carousel {
  position: relative;
  width: 100%;
}
.model-pdp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
}
.model-pdp-track::-webkit-scrollbar { display: none; height: 0; }
.model-pdp-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #eceae7;
}
.model-pdp-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.model-pdp-slide-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.model-pdp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.model-pdp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c8c4bf;
  cursor: pointer;
}
.model-pdp-dot.active {
  background: var(--ink, #1a1a1a);
}
.model-pdp-swipe-hint {
  text-align: center;
  margin: 6px 0 0;
  font-size: 12px;
}

/* hide face/body tags */
.model-card-slide-tag, .model-pdp-slide-tag, .model-pdp-swipe-hint { display: none !important; }

/* Nested hamburger sections */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.nav-item-parent {
  font-weight: 700;
}
.nav-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  margin-top: 2px;
}
.nav-item-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-item-child.active {
  color: var(--ink);
}
.nav-item-parent.has-active-child {
  color: var(--ink);
}

/* Poses PLP — Models-like */
.shop-poses .poses-filters-compact {
  border-top: none;
  padding-top: 0;
  margin-bottom: 4px;
}
.shop-poses .model-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.shop-poses a.model-card-media {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* ── Shop by model (Poses PLP) ── */
.shop-by-model-section {
  margin: 4px 0 14px;
}
.shop-by-model-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-by-model {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.model-swatch {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 64px;
  color: var(--ink);
}
.model-swatch img,
.model-swatch .model-swatch-face {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceae7;
  border: 2px solid transparent;
  box-sizing: border-box;
}
.model-swatch img {
  display: block;
}
.model-swatch-all-icon {
  color: var(--muted);
}
.model-swatch-placeholder {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}
.model-swatch-label {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-swatch.active img,
.model-swatch.active .model-swatch-face {
  border-color: var(--ink, #1a1a1a);
  box-shadow: 0 0 0 1px var(--ink, #1a1a1a);
}
.model-swatch.active .model-swatch-label {
  font-weight: 700;
}
.model-swatch.unlocked {
  opacity: 0.45;
}
.model-swatch.all .model-swatch-face {
  border: 2px dashed #c8c4bf;
  background: #f5f4f2;
}
.model-swatch.all.active .model-swatch-face {
  border-style: solid;
  border-color: var(--ink, #1a1a1a);
}

.toast-float {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  background: #1c1917;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  max-width: 90vw;
  pointer-events: none;
}
.toast-float:empty { display: none; }
.toast-float.error { background: #b91c1c; }

/* Fan-out picker modal */
.fanout-modal {
  max-width: 440px;
}
.fanout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  max-height: 280px;
  overflow-y: auto;
}
.fanout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 10px;
  cursor: pointer;
}
.fanout-row:hover { background: #fafaf9; }
.fanout-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink, #1a1a1a);
}
.fanout-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eceae7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fanout-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fanout-face-ph {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.fanout-name {
  font-size: 14px;
  font-weight: 600;
}

.pose-create .variations-label {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.pose-create .body-section-label {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}


/* Models assigned strip (pose PDP) — bigger so pose reads without opening */
.pdp-models-assigned {
  margin-top: 4px;
}
.pdp-models-assigned .look-strip {
  gap: 14px;
}
.pdp-models-assigned .look-thumb,
.pdp-models-assigned .look-add {
  flex: 0 0 180px;
  width: 180px;
}
.pdp-models-assigned .look-thumb img,
.pdp-models-assigned .look-add-plus,
.pdp-models-assigned .model-assign-ph {
  width: 180px;
  height: 270px; /* 2:3 full-body */
  aspect-ratio: auto;
}
.pdp-models-assigned .look-thumb img {
  object-fit: cover;
  object-position: center center;
  display: block;
}
.pdp-models-assigned .look-thumb-label {
  font-size: 13px;
  margin-top: 8px;
}
.model-assign-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0efed;
  color: #888;
  font-size: 36px;
  font-weight: 600;
}
@media (min-width: 720px) {
  .pdp-models-assigned .look-thumb,
  .pdp-models-assigned .look-add {
    flex-basis: 200px;
    width: 200px;
  }
  .pdp-models-assigned .look-thumb img,
  .pdp-models-assigned .look-add-plus,
  .pdp-models-assigned .model-assign-ph {
    width: 200px;
    height: 300px;
  }
}


.page-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #1c1917;
  color: #fafaf9;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  text-align: center;
}
.page-toast.error {
  background: #7f1d1d;
}
a.look-add {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.look-thumb-pending,
.pdp-slide-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0efed;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pdp-slide-pending {
  width: 100%;
  aspect-ratio: 2 / 3;
  min-height: 280px;
}
.look-thumb-pending {
  width: 100%;
  height: 110px;
}
.pdp-models-assigned .look-thumb-pending {
  width: 180px;
  height: 270px;
  font-size: 13px;
}
@media (min-width: 720px) {
  .pdp-models-assigned .look-thumb-pending {
    width: 200px;
    height: 300px;
  }
}

.create-pose-models {
  margin: 0 0 8px;
}
.pose-create .create-pose-models .model-swatch:disabled {
  cursor: not-allowed;
}

/* Batch create poses */
.batch-create .batch-sheet-panel {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e7e5e4);
}
.batch-create .batch-sheet-wrap {
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f3f0;
  border: 1px solid var(--line, #e7e5e4);
}
.batch-create .batch-sheet-img {
  display: block;
  width: 100%;
  height: auto;
}
.batch-create .batch-pick-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 10px;
}
.batch-create .batch-recipe-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.batch-create .batch-recipe-list li {
  margin: 0;
}

.batch-create .batch-cell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.batch-create .batch-cell-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.batch-create .batch-cell-card.status-denied {
  opacity: 0.55;
  filter: grayscale(0.35);
}
.batch-create .batch-cell-card.status-approved {
  outline: 2px solid color-mix(in srgb, #2f9e71 55%, transparent);
}
.batch-create .batch-cell-card.status-regen {
  outline: 2px solid color-mix(in srgb, #c9852a 50%, transparent);
}
.batch-create .batch-cell-thumb-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.batch-create .batch-cell-thumb-hit {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  width: 100%;
}
.batch-create .batch-cell-thumb-hit:disabled {
  cursor: default;
}
.batch-create .batch-cell-thumb-hit .rr-zoom-badge {
  pointer-events: none;
}
.batch-create .batch-cell-zoom {
  border: 1px solid var(--line, #e8e6e3);
  background: #fff;
  border-radius: 0 0 0 0;
  padding: 8px 10px;
  font-size: 13px;
  cursor: zoom-in;
  color: var(--ink, #111);
  width: 100%;
}
.batch-create .batch-cell-zoom:active {
  background: #f5f3f0;
}
.batch-create .batch-cell-thumb {
  aspect-ratio: 2 / 3;
  background: #f5f3f0;
  overflow: hidden;
}
.batch-create .batch-cell-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.batch-create .batch-cell-img-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted, #888);
  font-size: 28px;
  font-weight: 600;
}
.batch-create .batch-cell-meta {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.batch-create .batch-cell-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.batch-create .batch-cell-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 999px;
  background: #f0eeeb;
  font-size: 11px;
  margin-right: 4px;
  color: var(--muted, #666);
}
.batch-create .batch-cell-status {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #666);
}
.batch-create .batch-cell-status.ok { color: #2f9e71; }
.batch-create .batch-cell-status.denied { color: #a14b4b; }
.batch-create .batch-cell-status.regen { color: #a06b1f; }
.batch-create .batch-cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.batch-create .batch-cell-actions .btn.sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.batch-create .batch-cell-actions .danger-ish {
  color: #8a3b3b;
}
@media (max-width: 720px) {
  .batch-create .batch-cell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



/* ═══════════ Inbox (top-right review) ═══════════ */
.inbox-root {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
}
.inbox-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream, #f7f3eb);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.inbox-btn:hover {
  background: var(--ink);
  color: var(--cream, #f7f3eb);
}
.inbox-root[data-mode="generating"] .inbox-btn {
  border-color: var(--ink);
}
.inbox-root[data-mode="review"] .inbox-btn {
  border-color: var(--accent, #c45c26);
  color: var(--accent, #c45c26);
}
.inbox-root[data-mode="review"] .inbox-btn:hover {
  background: var(--accent, #c45c26);
  color: #fff;
}
.inbox-root[data-mode="empty"] .inbox-btn {
  opacity: 0.55;
  border-color: var(--muted, #8a857c);
  color: var(--muted, #8a857c);
}
.inbox-root[data-mode="empty"] .inbox-btn:hover {
  opacity: 1;
  background: var(--cream, #f7f3eb);
  color: var(--ink);
  border-color: var(--ink);
}
.inbox-ico { display: block; }
.inbox-ico-spin {
  animation: inbox-spin 0.9s linear infinite;
}
@keyframes inbox-spin {
  to { transform: rotate(360deg); }
}
.inbox-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}
.inbox-root[data-mode="review"] .inbox-badge {
  background: var(--accent, #c45c26);
}
.inbox-root[data-mode="generating"] .inbox-badge {
  background: var(--ink);
}
.inbox-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line, #e5e0d6);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(30, 24, 16, 0.14);
  z-index: 50;
}
.inbox-panel-head {
  padding: 12px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8a857c);
  border-bottom: 1px solid var(--line, #e5e0d6);
  position: sticky;
  top: 0;
  background: #fff;
}
.inbox-panel-body {
  padding: 8px 0 10px;
}
.inbox-section-label {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8a857c);
}
.inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid transparent;
}
.inbox-row:hover {
  background: var(--cream, #f7f3eb);
}
.inbox-row-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.inbox-row-meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
  color: var(--muted, #8a857c);
}
.inbox-row-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #8a857c);
}
.inbox-row.is-generating {
  opacity: 0.72;
}
.inbox-row.is-review .inbox-row-label {
  color: var(--ink);
}
.inbox-empty {
  padding: 18px 16px;
  font-size: 14px;
  color: var(--muted, #8a857c);
  text-align: center;
}

.inbox-groups {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.inbox-group {
  border-top: 1px solid var(--line, #e7e2d9);
}
.inbox-group-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.inbox-group-row:hover {
  background: #faf7f2;
}
.inbox-group-label {
  font-weight: 650;
  font-size: 14px;
}
.inbox-group-meta {
  font-size: 11px;
  color: var(--muted, #8a857c);
  white-space: nowrap;
}
.inbox-group-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent, #c45c26);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inbox-group-children {
  padding: 0 8px 8px 18px;
}
.inbox-group-pending .inbox-row,
.inbox-row.is-pending {
  opacity: 0.65;
}
.inbox-row.is-pending .inbox-row-status {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--muted, #8a857c);
}

/* Approvals pages */
.approvals-page .appr-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.appr-hub-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.appr-hub-card:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.appr-hub-card-title {
  font-size: 16px;
  font-weight: 700;
}
.appr-hub-card-stats {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.appr-hub-card-hint {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent, #c45c26);
}
.appr-section {
  margin: 18px 0 10px;
}
.appr-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.appr-section-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.appr-section-pending .rr-row,
.rr-row.is-pending {
  opacity: 0.72;
  background: #fafaf8;
}
.appr-section-pending .rr-row .rr-dot,
.rr-row.is-pending .rr-dot {
  background: transparent;
  border: 1.5px solid var(--muted, #a8a29e);
  box-shadow: none;
  animation: inbox-spin 1.1s linear infinite;
  border-top-color: transparent;
  border-radius: 50%;
}
.rr-thumb-pending {
  background: repeating-linear-gradient(
    -45deg,
    #f3f0ea,
    #f3f0ea 4px,
    #ebe6dc 4px,
    #ebe6dc 8px
  ) !important;
}
.rr-folder-divider {
  height: 1px;
  background: var(--line);
  margin: 10px 14px;
}
.appr-empty {
  padding: 14px 16px;
}
@media (max-width: 900px) {
  .approvals-page .appr-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inbox-panel {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-radius: 0 0 12px 12px;
    max-height: calc(100vh - 56px);
  }
}


/* ── Desktop persistent sidebar ── */
.nav-group-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 20px 6px;
}
.nav-group + .nav-group { margin-top: 4px; }

/* Approvals — soft pill, light gray (not black) */
.nav-group-approvals {
  margin: 10px 12px 8px;
  padding: 6px;
  background: #f3f2f0;
  border: 1px solid #e7e5e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.nav-group-approvals .nav-section {
  margin-bottom: 0;
  width: 100%;
}
.nav-group-approvals .nav-item-parent {
  color: var(--ink, #1c1917);
  font-weight: 650;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border-bottom: none;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
}
.nav-group-approvals .nav-item-parent:hover {
  background: #e8e6e3;
  color: var(--ink, #1c1917);
}
.nav-group-approvals .nav-item-parent.active {
  background: var(--accent, #3f6f5b);
  color: #fff;
}
.nav-group-approvals + .nav-group .nav-group-label {
  padding-top: 14px;
}

.recipes-page .stub-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 22px;
  max-width: 640px;
}
.recipes-page .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

@media (min-width: 960px) {
  /* Chris Sep 14 2026: fixed 1200px shell + cream menu bar #F6F4EE */
  body.nav-desktop {
    --nav-cream: #F6F4EE;
    --shell-max: 1200px;
    --sidebar-w: 220px;
    padding-left: 0;
    background: #E8E4DC;
  }
  body.nav-desktop #app {
    max-width: var(--shell-max);
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    padding-left: var(--sidebar-w);
    box-sizing: border-box;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.02), 0 16px 40px rgba(26, 26, 26, 0.06);
  }
  body.nav-desktop .nav-burger,
  body.nav-desktop .nav-drawer-head .nav-burger {
    display: none;
  }
  body.nav-desktop .nav-scrim {
    display: none !important;
  }
  body.nav-desktop .nav-drawer {
    transform: none;
    width: var(--sidebar-w);
    left: max(0px, calc((100vw - var(--shell-max)) / 2));
    right: auto;
    box-shadow: none;
    z-index: 30;
    background: var(--nav-cream);
    border-right: 1px solid var(--line);
    border-left: none;
  }
  body.nav-desktop .nav-drawer.is-open {
    transform: none;
    box-shadow: none;
  }
  /* Match sidebar brand row + main header so one continuous underline */
  body.nav-desktop .nav-drawer-head,
  body.nav-desktop .app-header {
    box-sizing: border-box;
    min-height: 56px;
    height: 56px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  body.nav-desktop .nav-drawer-head {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--nav-cream);
  }
  body.nav-desktop .app-header {
    background: #fff;
  }
  body.nav-desktop .nav-item:hover {
    background: rgba(26, 26, 26, 0.04);
  }
  body.nav-desktop .nav-item.active {
    background: #1A1A1A;
    color: #fff;
    font-weight: 650;
  }
  /* Soft sidebar edge only below the shared header line */
  body.nav-desktop .nav-menu {
    border-right: none;
  }
  body.nav-desktop .nav-foot {
    border-right: none;
  }
  /* Desktop: brand lives in the sidebar only — hide the duplicate in the top bar */
  body.nav-desktop .header-brand .nav-logo {
    display: none;
  }
  body.nav-desktop .header-brand {
    /* burger already hidden; collapse empty brand slot */
    min-width: 0;
    width: 0;
    overflow: hidden;
    gap: 0;
  }
}


/* ── Recipes form mock ── */
.recipe-form-page .recipe-form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.recipe-block {
  background: #fff;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.recipe-block-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.recipe-form .field-label {
  margin-top: 14px;
}
.recipe-form .field-label:first-of-type,
.recipe-block > .field-label:first-of-type {
  margin-top: 0;
}
.recipe-form .text-input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.recipe-form .text-input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.recipe-form .form-chip-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.recipe-form .form-chip {
  border: 1px solid var(--line, #e7e5e4);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}
.recipe-form .form-chip.active {
  background: #1c1917;
  color: #fff;
  border-color: #1c1917;
}
.recipe-pose-group {
  margin-top: 12px;
}
.recipe-pose-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #78716c);
  margin-bottom: 6px;
}
.recipe-rules-box {
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 8px;
  background: #fafaf9;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}
.recipe-rules-box .muted {
  color: var(--muted, #78716c);
  font-weight: 400;
}
.recipe-form .create-actions {
  display: flex;
  gap: 10px;
  padding-bottom: 28px;
}
.recipe-form .optional-tag {
  font-size: 11px;
  color: var(--muted, #78716c);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 6px;
}

.recipe-plan-lead { margin: 0 0 14px; }
.recipe-source-card {
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 10px;
  padding: 14px 14px 16px;
  margin-top: 12px;
  background: #fafaf9;
}
.recipe-source-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.recipe-source-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #1c1917;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}
.recipe-source-badge.back {
  background: #44403c;
}
.recipe-source-meta {
  font-size: 12px;
  color: var(--muted, #78716c);
}
.recipe-shot-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .recipe-shot-row {
    grid-template-columns: 1fr 1fr;
  }
}
.recipe-shot-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.recipe-form .form-chip-row.compact {
  margin-bottom: 8px;
}
.recipe-form .form-chip-row.compact .form-chip {
  font-size: 12px;
  padding: 5px 10px;
}


.recipe-shot-table {
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
  margin-top: 8px;
}
.recipe-shot-table-head,
.recipe-shot-table-row {
  display: grid;
  grid-template-columns: 28px 64px 1.2fr 72px 72px;
  gap: 8px;
  padding: 8px 10px;
  align-items: center;
}
.recipe-shot-table-head {
  background: #f5f5f4;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  color: var(--muted, #78716c);
}
.recipe-shot-table-row:nth-child(even) { background: #fafaf9; }
.recipe-examples {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
@media (min-width: 720px) {
  .recipe-examples { grid-template-columns: 1fr 1fr; }
}
.recipe-example {
  border: 1px dashed var(--line, #e7e5e4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  background: #fff;
}
.recipe-example ol {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.45;
}
.recipe-example .muted { color: var(--muted, #78716c); list-style: none; margin-left: -18px; }
.recipe-acc-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 10px;
  background: #fff;
}
.recipe-acc-preview img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f4;
}
.recipe-acc-preview .muted { color: var(--muted, #78716c); font-size: 12px; }


.recipes-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.recipe-card {
  background: #fff;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 12px;
  padding: 16px 18px;
}
.recipe-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-card h3 .chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--muted, #78716c);
}
.recipe-card .meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted, #78716c);
  line-height: 1.45;
}
.recipe-card .meta.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: #fafaf9;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 6px;
  padding: 6px 8px;
  word-break: break-all;
}
.recipe-card .rules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.recipe-card .tag {
  font-size: 11px;
  border: 1px solid var(--line, #e7e5e4);
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
}

/* ───────── Recast Review inbox + compare ───────── */
.review-inbox-page,
.review-compare-page {
  max-width: 1280px;
}

.rr-inbox-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.rr-folders {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 0 14px;
  position: sticky;
  top: 16px;
}

.rr-folders h2 {
  margin: 0;
  padding: 8px 16px 10px;
  font-size: 13px;
  font-weight: 650;
}

.rr-search {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  background: #fafaf9;
  color: var(--muted);
}

.rr-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-left: 3px solid transparent;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}

.rr-folder:hover {
  background: #fafaf9;
}

.rr-folder.on {
  background: #f0fdf9;
  border-left-color: var(--accent);
  font-weight: 600;
}

.rr-folder.muted {
  color: var(--muted);
}

.rr-folder-ico {
  width: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.rr-folder-name {
  flex: 1;
  min-width: 0;
}

.rr-badge {
  min-width: 22px;
  text-align: center;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.rr-folder.muted .rr-badge {
  background: #f5f5f4;
  color: var(--muted);
}

.rr-main-head {
  margin-bottom: 14px;
}

.rr-count {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.rr-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.rr-row {
  display: grid;
  grid-template-columns: 28px 88px 1fr 110px 72px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}

.rr-row:last-child {
  border-bottom: 0;
}

.rr-row:hover {
  background: #fafaf9;
}

.rr-row.unread {
  background: #f0fdf9;
}

.rr-row.unread .rr-sku {
  font-weight: 700;
}

.rr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin: auto;
}

.rr-row.unread .rr-dot {
  background: #0f766e;
}

.rr-sku {
  font-variant-numeric: tabular-nums;
}

.rr-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rr-thumb {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f4;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.rr-thumb-empty {
  display: block;
}

.rr-meta {
  min-width: 0;
}

.rr-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rr-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.rr-ago {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.rr-status {
  font-size: 11px;
  font-weight: 650;
  text-align: right;
  color: #0f766e;
}

.rr-footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.rr-crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rr-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.rr-crumb a:hover {
  color: var(--accent);
}

.rr-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rr-progress {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}

.rr-progress span {
  color: var(--muted);
  font-weight: 500;
}

.rr-progress-bar {
  height: 4px;
  background: #e7e5e4;
  border-radius: 999px;
  margin: 10px 0 4px;
  overflow: hidden;
}

.rr-progress-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.rr-sub {
  margin: 6px 0 18px;
}

.rr-shot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rr-shot-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}

.rr-shot-tab.active {
  background: #1c1917;
  color: #fff;
  border-color: #1c1917;
}

.rr-compare {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(160px, 220px);
  gap: 16px;
  margin-bottom: 18px;
  align-items: stretch;
}

.rr-panel-face .rr-frame {
  min-height: 220px;
  padding: 16px;
  background: #fff;
}

.rr-panel-face .rr-frame img {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.rr-face-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.rr-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.rr-panel h2 {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: #fafaf9;
}

.rr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f4;
  min-height: 420px;
  padding: 12px;
}

.rr-frame img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 4px;
}

.rr-missing {
  color: var(--muted);
  font-size: 13px;
}

.rr-panel-meta {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.rr-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.rr-actions h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.rr-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.rr-reason {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

.rr-reason.on {
  border-color: #1c1917;
  background: #1c1917;
  color: #fff;
  font-weight: 600;
}

.rr-note {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.rr-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rr-action-row .btn.danger {
  background: var(--danger);
  color: #fff;
  border: 0;
}

.rr-action-row .btn.danger:hover {
  filter: brightness(0.95);
}

@media (max-width: 1000px) {
  .rr-inbox-layout {
    grid-template-columns: 1fr;
  }
  .rr-folders {
    position: static;
  }
  .rr-row {
    grid-template-columns: 28px 1fr 72px;
  }
  .rr-ago,
  .rr-sku {
    display: none;
  }
  .rr-compare {
    grid-template-columns: 1fr;
  }
  .rr-panel-face .rr-frame {
    min-height: 160px;
  }
  .rr-panel-face .rr-frame img {
    max-height: 200px;
    max-width: 200px;
  }
  .rr-frame {
    min-height: 280px;
  }
}


/* ── Recast dual keepers (Front + Turn on one page) ── */
.rr-compare-dual .rr-sheet-stacks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.rr-sheet-section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.rr-sheet-section-hint {
  margin: 0 0 10px;
}
.rr-panel-turn {
  border-top: 1px solid var(--line, #e7e5e4);
  padding-top: 4px;
}
.rr-turn-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rr-turn-angle-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #78716c);
}
.rr-turn-slot-pending {
  opacity: 0.72;
}
.rr-turn-pending-hint {
  margin: 0 0 8px;
}
.rr-sheet-grid-muted {
  pointer-events: none;
}
.rr-sheet-placeholder-tile .hs-plate-card {
  cursor: default;
  opacity: 0.85;
}
.rr-sheet-placeholder-tile .rr-missing {
  min-height: 120px;
}

/* ── Recast contact sheet (12-up multi-select, 4×3) ── */
.rr-compare-sheet {
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.rr-sheet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rr-sheet-sidebar .rr-panel-face .rr-frame,
.rr-sheet-sidebar .rr-panel-face .rr-frame img,
.rr-sheet-sidebar .rr-panel-face .rr-zoom-hit img {
  max-height: 200px;
}
.rr-sheet-sidebar .rr-frame {
  min-height: 0;
}
.rr-sheet-sidebar .rr-zoom-hit img {
  max-height: 280px;
}
.rr-panel-sheet {
  min-width: 0;
}
.rr-sheet-bar {
  padding: 0 2px;
}
.rr-sheet-grid {
  margin: 0 0 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Approvals sheet picker: plate follows sheet aspect — no crop */
.rr-sheet-grid .hs-plate-thumb,
.rr-sheet-tile .hs-plate-thumb {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: #f5f3f0;
  overflow: visible;
}
.rr-sheet-grid .hs-plate-thumb-body,
.rr-sheet-tile .hs-plate-thumb-body {
  aspect-ratio: auto;
  height: auto;
  min-height: 140px;
}
.rr-sheet-grid .hs-plate-img,
.rr-sheet-tile .hs-plate-img,
.rr-sheet-pick .hs-plate-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.rr-sheet-tile {
  position: relative;
}
.rr-sheet-tile .rr-sheet-pick {
  width: 100%;
}
.rr-sheet-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(28, 25, 23, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
}
.rr-sheet-tile.selected .rr-sheet-check {
  background: var(--accent, #c45c26);
  border-color: #fff;
}
.rr-sheet-tile.selected .rr-sheet-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.rr-sheet-zoom {
  position: absolute;
  left: 8px;
  bottom: 36px;
  z-index: 5;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(28, 25, 23, 0.9);
  color: #fff;
  cursor: zoom-in;
  pointer-events: auto;
}
.rr-sheet-order {
  left: auto;
  right: 8px;
  bottom: 36px;
}
.rr-fabric-note {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink, #1c1917);
  border-top: 1px solid var(--line, #e7e5e4);
  background: #fafaf9;
}
.rr-fabric-note .field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #78716c);
}
.rr-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(196, 92, 38, 0.15);
  color: var(--accent, #c45c26);
  font-size: 11px;
  font-weight: 700;
}
.rr-shot-tab.active .rr-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
@media (max-width: 900px) {
  .rr-compare-sheet {
    grid-template-columns: 1fr;
  }
  .rr-sheet-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .rr-sheet-sidebar {
    grid-template-columns: 1fr;
  }
  /* Chris Sep 13: 2-wide on mobile; card = sheet 2:3; image contain (no crop) */
  .rr-sheet-grid,
  .hs-plate-grid.rr-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .rr-sheet-grid .hs-plate-thumb,
  .rr-sheet-tile .hs-plate-thumb,
  .rr-sheet-grid .hs-plate-thumb-body {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0;
    width: 100%;
    background: #f5f3f0;
    overflow: visible !important;
  }
  .rr-sheet-grid .hs-plate-img,
  .rr-sheet-tile .hs-plate-img,
  .rr-sheet-pick .hs-plate-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .rr-sheet-grid .hs-plate-num,
  .rr-sheet-tile .hs-plate-num {
    padding: 6px 8px 8px;
    font-size: 12px;
  }
  .rr-sheet-zoom {
    left: 8px;
    bottom: 36px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .rr-sheet-check {
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
  }
}

/* ── Approvals fabric zoom lightbox ── */
.rr-zoom-hit {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.rr-zoom-hit img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  pointer-events: none;
}
.rr-panel-face .rr-zoom-hit img {
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rr-zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
body.rr-zoom-open {
  overflow: hidden;
}
.rr-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(12, 10, 9, 0.92);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.rr-zoom-overlay[hidden] {
  display: none !important;
}
.rr-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
}
.rr-zoom-title {
  font-size: 13px;
  font-weight: 650;
  opacity: 0.9;
}
.rr-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rr-zoom-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.rr-zoom-btn:hover {
  background: rgba(255,255,255,0.16);
}
.rr-zoom-level {
  min-width: 52px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}
.rr-zoom-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.rr-zoom-stage:active {
  cursor: grabbing;
}
.rr-zoom-stage img {
  max-width: min(96vw, 900px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.rr-zoom-hint {
  margin: 0;
  padding: 8px 16px 14px;
  text-align: center;
  font-size: 12px;
  opacity: 0.65;
  flex-shrink: 0;
}


/* ── Recast side-by-side compare zoom (scoped; keeps solo zoom intact) ── */
.rr-zoom-overlay.is-compare .rr-zoom-compare-stage {
  flex: 1 1 auto;
  min-height: min(78vh, 900px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 4px;
  box-sizing: border-box;
}
.rr-zoom-overlay.is-compare .rr-zoom-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.rr-zoom-overlay.is-compare .rr-zoom-pane-label {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rr-zoom-overlay.is-compare .rr-zoom-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
}
.rr-zoom-overlay.is-compare .rr-zoom-stage img {
  max-width: min(48vw, 720px);
  max-height: 78vh;
}
.rr-compare-zoom-btn {
  margin: 8px 14px 12px;
  align-self: flex-start;
}
.rr-panel .rr-compare-zoom-btn {
  display: inline-flex;
}
@media (max-width: 720px) {
  .rr-zoom-overlay.is-compare .rr-zoom-compare-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
  }
  .rr-zoom-overlay.is-compare .rr-zoom-stage img {
    max-width: 96vw;
    max-height: 38vh;
  }
}

/* Approvals compare — sheet cell picker on output panel */
.rr-sheet-pick {
  margin-top: 10px;
}
.rr-sheet-pick-btn {
  min-width: 0;
}
.rr-input-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}
.rr-input-face {
  width: min(180px, 70%);
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1;
}
.rr-input-hero {
  width: min(140px, 55%);
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.92;
}
.rr-prompt-block {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #6b7280);
  white-space: pre-wrap;
  text-align: left;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  padding: 8px 4px;
}
.rr-frame-input {
  align-items: stretch;
}
.rr-identity-note {
  padding: 16px;
}


/* Pose / model approval brief specs */
.rr-brief-card {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fafaf9;
}
.rr-brief-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rr-brief-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}
.rr-brief-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.35;
}
.rr-brief-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 550;
}
.rr-brief-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.rr-action-row .btn.rr-delete {
  border-color: #c45c5c;
  color: #a33;
}
.rr-action-row .btn.rr-delete:hover {
  background: #fde8e8;
}


/* Face casting brief on Approvals Input */
.rr-face-brief {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}
.rr-brief-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 8px;
  align-items: start;
}
.rr-brief-label {
  color: var(--muted, #888);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rr-brief-val {
  color: var(--ink, #222);
  white-space: pre-wrap;
}
.create-hs-note {
  margin: 12px 0 4px;
}
.rr-sheet-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  text-align: center;
}
.body-face-gate {
  margin-top: 8px;
}


/* Approvals model output: plate grid only (no full contact sheet) */
.rr-frame-plates {
  display: block;
  padding: 12px;
  min-height: 0;
}
.rr-frame-plates .hs-plate-grid,
.rr-frame-plates .rr-sheet-pick {
  margin: 0;
}
.rr-frame-plates .rr-missing {
  min-height: 160px;
  display: grid;
  place-content: center;
}


/* Create Model — height/weight + body flags */
.create-meas-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.create-meas-col .field-label em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.55;
  margin-left: 4px;
}
.create-meas-hint {
  margin: 6px 0 14px;
  font-size: 0.92em;
}
.create-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 6px;
}
.create-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #f7f6f4;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.create-flag input {
  width: 18px;
  height: 18px;
  accent-color: #1f4a45;
}
.create-flag:has(input:checked) {
  background: #1f4a45;
  color: #fff;
  border-color: #1f4a45;
}


.coming-soon-card {
  margin-top: 24px;
  padding: 28px 20px;
  border-radius: 16px;
  background: #f4f2ef;
  text-align: center;
}
.coming-soon-mark {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}


.model-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}
.badge.casting-pregnant {
  background: #e8f3ef;
  color: #1f4a45;
}
.badge.casting-plus {
  background: #efe8f6;
  color: #4a2f6b;
}
.badge.casting-womens {
  background: #f0eeeb;
  color: #4a4742;
}


.models-casting-filters {
  margin: 0 0 14px;
}
.models-casting-filters .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.create-pregnant-weeks,
.create-plus-size {
  margin: 8px 0 14px;
}
.create-pregnant-weeks[hidden] {
  display: none !important;
}


/* Face variety slider (Create Model + Approvals + Headshots) */
.face-variety-block {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f5f2;
  border: 1px solid #e6e2dc;
}
.face-variety-compact {
  margin: 8px 0 12px;
  padding: 10px 12px;
}
.face-variety-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.face-variety-head .field-label {
  margin: 0;
}
.face-variety-readout {
  font-size: 13px;
  font-weight: 600;
  color: #3d3a36;
  white-space: nowrap;
}
.face-variety-slider {
  width: 100%;
  accent-color: #1f4a45;
  height: 28px;
  cursor: pointer;
}
.face-variety-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 11px;
  color: #8a857c;
  letter-spacing: 0.01em;
}
.rr-actions .face-variety-block {
  margin-top: 4px;
  margin-bottom: 10px;
}


.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 4px 0 16px;
  padding: 0 4px;
}
.pdp-actions .btn {
  min-height: 44px;
}
.pdp-deleted-note {
  margin: 0;
}


/* Homepage — f28 Studio workroom hub */
.page.home-page {
  padding: 0 !important;
  max-width: none;
  background: #fff; /* hero white; hub carries --bg */
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.95fr);
  align-items: stretch;
  min-height: 0;
  max-height: min(420px, 42vh);
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}
.home-hero-media {
  min-width: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  align-self: stretch;
}
.home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: min(420px, 42vh);
  object-fit: cover;
  object-position: center 18%;
  background: #fff;
}
.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
  background: #fff;
}
.home-hero-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-hero-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 14ch;
  color: var(--ink);
}
.home-hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #57534e;
  max-width: 28ch;
  letter-spacing: 0.01em;
}
.home-hero-cta {
  margin-top: 8px;
  align-self: flex-start;
  text-decoration: none;
  border-radius: 999px;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}
.home-hero-actions .home-hero-cta {
  margin-top: 0;
}
.home-header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-card-gated {
  opacity: 0.92;
}
.home-card-gated .home-card-hint {
  color: #78716c;
}
.home-page-public .home-hub {
  /* marketing home still shows hub as sign-in teasers */
}
@media (max-width: 820px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
  }
  .home-hero-media img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    height: auto;
    max-height: 48dvh;
    object-position: center top;
  }
  .home-hero-copy {
    padding: 28px 20px 40px;
    order: 2;
  }
  .home-hero-media {
    order: 1;
  }
  .home-hero-title {
    max-width: none;
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
}

.home-hub {
  background: var(--bg); /* #faf9f7 */
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 40px) clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 40px);
}
.home-hub-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-hub-label {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  min-height: 108px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-card:hover {
  background: #fff;
  border-color: #d6d3d1;
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
}
.home-card:hover .home-card-arrow {
  transform: translateX(3px);
  color: var(--accent);
}
.home-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-card-title {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.home-card-hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #57534e;
}
.home-card-arrow {
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.15s ease, color 0.15s ease;
  margin-top: 2px;
}
@media (max-width: 820px) {
  .home-hub-grid {
    grid-template-columns: 1fr;
  }
  .home-card {
    min-height: 96px;
    padding: 18px 16px;
  }
}

/* Legacy flat TOC (unused; kept inert) */
.home-subheros { display: none; }


.accessory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.accessory-pick {
  appearance: none;
  border: 2px solid var(--line, #e8e6e3);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.accessory-pick img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.accessory-pick.is-selected {
  border-color: var(--ink, #111);
  box-shadow: 0 0 0 1px var(--ink, #111);
}
.model-card-missing {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: #f3f2f0;
  color: var(--muted);
  font-size: 13px;
}


.studio-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px 0;
}
.studio-step {
  flex: 1 1 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  position: relative;
  padding-right: 14px;
}
.studio-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 29px; /* mid-height of ~58px icon */
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--line, #ddd);
  border-top: 2px solid var(--line, #ddd);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.75;
  pointer-events: none;
}
.studio-step-icon {
  width: 44px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1.5px dashed var(--line, #d9d4ce);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  position: relative;
}
.studio-step-icon.is-ref-pair {
  width: 56px;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}
.studio-step-icon.is-filled:not(.is-ref-pair) {
  border-style: solid;
  border-color: var(--line, #ebe8e4);
  background: #eee;
}
.studio-step-ref-pair {
  display: flex;
  gap: 3px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}
.studio-step-ref-half {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px dashed var(--line, #d9d4ce);
  background: #fff;
  box-sizing: border-box;
}
.studio-step-ref-half.is-filled {
  border-style: solid;
  border-color: var(--line, #ebe8e4);
  background: #eee;
}
.studio-step-ref-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-step-icon.is-none {
  background: #fff;
}
.studio-step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-step-icon .studio-summary-swatch {
  display: block;
  width: 100%;
  height: 100%;
}
.studio-step-icon .studio-summary-none-mark {
  font-size: 16px;
  color: var(--muted);
  line-height: 1;
}
.studio-step-icon .studio-summary-back-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(20, 18, 16, 0.78);
  color: #fff;
  pointer-events: none;
}
.studio-step-shots-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
  padding: 0 2px;
  text-align: center;
}
.studio-step-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.studio-step-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--line, #ddd);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
  color: var(--muted);
}
.studio-step-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}
.studio-step-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.2;
}
.studio-step-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-step.is-clickable {
  cursor: pointer;
}
.studio-step.is-clickable:hover .studio-step-icon {
  box-shadow: 0 0 0 2px rgba(20, 18, 16, 0.08);
}
.studio-step.is-clickable:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.studio-step.on { color: var(--ink); }
.studio-step.on .studio-step-num {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.studio-step.done { color: var(--ink); }
.studio-step.done .studio-step-num {
  border-color: var(--ink);
  background: #eef6f2;
  color: var(--ink);
}
@media (max-width: 640px) {
  .studio-step {
    flex: 1 1 96px;
    padding-right: 10px;
  }
  .studio-step:not(:last-child)::after {
    top: 26px;
  }
  .studio-step-icon {
    width: 40px;
    height: 52px;
  }
}
.studio-model-grid,
.studio-pose-grid,
.studio-acc-grid,
.studio-backdrop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
/* Catalog shoot · model step — tight stack label → filters → headshots */
.studio-step-panel[data-studio-step="2"] > .field-label:first-child {
  margin: 0 0 6px;
}
.studio-step-panel[data-studio-step="2"] .studio-model-line-filters.chip-row {
  margin: 0 0 8px;
  gap: 6px;
}
.studio-step-panel[data-studio-step="2"] .studio-model-grid {
  margin-top: 0;
  margin-bottom: 14px;
}
.studio-step-panel[data-studio-step="3"] .studio-pose-shot-filters.chip-row {
  margin: 0 0 8px;
  gap: 6px;
}
.studio-model-card,
.studio-pose-card,
.studio-acc-card,
.studio-backdrop-card {
  appearance: none;
  border: 2px solid var(--line, #e8e6e3);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.studio-model-card.is-selected,
.studio-pose-card.is-selected,
.studio-acc-card.is-selected,
.studio-backdrop-card.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.studio-model-face,
.studio-pose-thumb {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f2f0;
}
.studio-model-face img,
.studio-pose-thumb img,
.studio-acc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-model-name,
.studio-pose-title,
.studio-acc-card span,
.studio-backdrop-name {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.studio-model-missing,
.studio-acc-none {
  display: grid;
  place-items: center;
  min-height: 100px;
  color: var(--muted);
  font-size: 12px;
}
.studio-backdrop-swatch {
  display: block;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.studio-backdrop-note {
  font-size: 11px;
  color: var(--muted);
}
/* Product step — front + optional back refs */
.studio-product-refs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-product-ref-slot .field-label {
  margin-bottom: 8px;
}
.studio-back-ref-empty {
  border: 1.5px dashed var(--line, #d9d4ce);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fff;
}
.studio-back-ref-empty .gen-hint {
  margin: 8px 0 0;
}

/* Studio Photography — result preview (mobile-safe) */
.studio-result {
  margin-top: 1.25rem;
  max-width: 100%;
  overflow: hidden;
}
.studio-result-card {
  max-width: min(100%, 420px);
  margin: 0 auto;
}
.studio-result-card--pick {
  max-width: min(100%, 560px);
}
.studio-result-card .field-label {
  margin-bottom: 0.5rem;
}
.studio-result-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: #f2f0ed;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.studio-pose-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.studio-ref-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.studio-ref {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.7rem;
  color: var(--muted, #6b7280);
  text-align: center;
}
.studio-ref img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  background: #f2f0ed;
  border: 1px solid rgba(0,0,0,0.08);
}
.studio-ref > span:first-of-type {
  font-weight: 600;
  color: var(--ink, #111);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.studio-ref-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-ref-missing {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: #eee;
  line-height: 4;
}
.studio-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.studio-result-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: #f2f0ed;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn.danger-ish {
  color: #b42318;
}

/* Studio 6-up plate pick (reuse hs-plate-grid, mobile-safe) */
.studio-plate-pick {
  margin: 0.5rem 0 0.75rem;
  max-width: 100%;
}
.studio-plate-pick .hs-plate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.studio-plate-pick .hs-plate-thumb-body .hs-plate-img,
.studio-plate-pick .hs-plate-img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  max-width: 100%;
}
.studio-picked-preview {
  margin-top: 0.75rem;
}
.studio-status-msg {
  margin: 0.5rem 0 0.75rem;
}
@media (max-width: 480px) {
  .studio-plate-pick .hs-plate-grid { gap: 6px; }
  .studio-result-card--pick { max-width: 100%; }
}



/* Shoot from references — intake-first page */
.ref-shoot-intake-page .ref-paste-zone {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ref-shoot-intake-page .plp-sub {
  margin: 0 0 16px;
  color: var(--muted, #6b6b6b);
}
.ref-shoot-intake-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.ref-intake-progress {
  height: 4px;
  border-radius: 999px;
  background: #ebe8e3;
  margin: 16px 0 4px;
  overflow: hidden;
}
.ref-intake-progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #c8c4bc;
  transition: width 0.25s ease;
}
.ref-intake-progress.is-busy > i {
  background: #111;
}
.ref-confirm-toolbar {
  margin-bottom: 12px;
}

/* ── Shared Description | Reference intake ── */
.gen-mode-toggle {
  margin: 16px 0 12px;
}
.gen-mode-panel {
  margin: 0 0 8px;
}
.ref-intake {
  margin: 4px 0 12px;
}
.ref-intake-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ref-intake-url-row .text-input {
  flex: 1;
  min-width: 0;
}
.ref-intake-url-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.ref-intake-local {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
}
.ref-paste-zone {
  flex: 1 1 100%;
  min-width: 180px;
  min-height: 52px;
  border: 1px dashed var(--line, #e8e6e3);
  border-radius: 10px;
  padding: 14px 12px;
  background: #faf8f5;
  color: var(--muted);
  font-size: 16px; /* iOS: avoid zoom + keep caret/paste menu reliable */
  line-height: 1.35;
  cursor: text;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  white-space: pre-wrap;
  word-break: break-word;
}
.ref-paste-zone:focus,
.ref-paste-zone.is-drag {
  border-color: var(--ink, #111);
  background: #fff;
  color: var(--ink, #111);
}
.ref-paste-zone .ref-paste-placeholder {
  color: var(--muted);
  pointer-events: none;
}
.ref-paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.ref-url-input {
  -webkit-user-select: text !important;
  user-select: text !important;
  font-size: 16px; /* prevent iOS focus zoom that can break long-press paste */
}
.ref-browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}
.ref-intake-selected {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 12px;
  background: #fff;
}
.ref-intake-selected img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

/* Dual Front / Back plate slots (Shoot from references) */
.ref-intake.is-dual .ref-intake-gallery {
  margin-top: 8px;
}
.ref-plate-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 4px;
}
@media (max-width: 560px) {
  .ref-plate-slots {
    grid-template-columns: 1fr;
  }
}
.ref-plate-slot {
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 12px;
  padding: 10px 12px 12px;
  background: #fff;
  min-width: 0;
}
.ref-slot-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
}
.ref-slot-req {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}
.ref-slot-opt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #8a8680);
}
.ref-plate-slot-body .ref-paste-zone {
  flex: none;
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ref-plate-slot-body .ref-paste-actions {
  margin-top: 8px;
}
.ref-plate-filled {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ref-plate-filled img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: #f3f2f0;
}
.ref-plate-filled-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.accessory-pick.ref-pick {
  position: relative;
}
.accessory-pick.ref-pick.is-front {
  outline: 2px solid #111;
  outline-offset: 1px;
}
.accessory-pick.ref-pick.is-back {
  outline: 2px solid #6b6560;
  outline-offset: 1px;
}
.ref-plate-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  pointer-events: none;
}
.ref-plate-badge.is-back {
  background: #6b6560;
}

.bd-card-media {
  display: grid;
  place-items: center;
  min-height: 140px;
  background: #f3f2f0;
}
.bd-card-swatch {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line, #e8e6e3);
  display: inline-block;
}
.studio-backdrop-thumb {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.create-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ── Products library ── */
.product-lib-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .product-detail-layout { grid-template-columns: 1fr; }
}
.product-detail-hero {
  background: #f3f1ee;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-angle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .product-lifestyle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.product-lifestyle-card .product-angle-media {
  aspect-ratio: 1 / 1;
}

/* product-angle-card base moved below */
.product-angle-media {
  aspect-ratio: 2 / 3;
  background: #f3f1ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-angle-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-angle-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
}

.shop-product-detail .title-row.plp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-product-detail .title-row.plp-title-row #btnDeleteProduct {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  white-space: nowrap;
}
.shop-product-detail .gen-actions #btnDeleteProductFooter {
  margin-left: auto;
}
.shop-product-detail .breadcrumb {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: #666;
}
.shop-product-detail .breadcrumb a { color: inherit; }
#studioResultProductName {
  margin-bottom: 0.75rem;
}



/* ── Reference wizard (full-page intake → approve) ── */
.ref-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 16, 14, 0.45);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.ref-wizard {
  width: min(520px, 100%);
  margin: 0 auto;
  background: #fff;
  min-height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.18);
}
.ref-wizard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e8e6e3);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.ref-wizard-titles {
  flex: 1;
  min-width: 0;
}
.ref-wizard-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref-wizard-kicker.is-err { color: #b42318; }
.ref-wizard-header h2 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 650;
}
.ref-wizard-step {
  font-size: 12px;
  color: var(--muted);
  flex: 0 0 auto;
}
.ref-wizard-body {
  padding: 16px 16px 28px;
  overflow: auto;
  flex: 1;
}
.ref-wizard-preview {
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 14px;
  overflow: hidden;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.ref-wizard-preview img {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: #fff;
}
.ref-wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0));
}
.ref-approved-card { margin: 8px 0 4px; }


/* ── Auth screens ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
  background: #f7f4ef;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 16px;
  padding: 28px 22px 24px;
  box-shadow: 0 10px 40px rgba(20, 16, 12, 0.06);
}
.auth-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 18px;
}
.auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 650;
  text-align: center;
}
.auth-sub {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.auth-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink, #111);
  text-align: center;
}
.auth-form .field-label { margin-top: 12px; }
.auth-form .field-label:first-child { margin-top: 0; }
.auth-submit {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}
.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a { color: var(--ink, #111); font-weight: 600; }
.nav-foot-block {
  margin-top: auto;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line, #e8e6e3);
}
.nav-foot-block .nav-foot { margin: 0 0 10px; }
.nav-signout { width: 100%; justify-content: center; }


/* Product detail angle pickers */
.shop-product-detail .form-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.shop-product-detail .form-chip {
  cursor: pointer;
}
.product-angle-card {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-angle-card:hover {
  border-color: #bbb;
}
.product-angle-card.is-selected {
  border-color: var(--ink, #111);
  box-shadow: 0 0 0 1px var(--ink, #111);
}
.product-angle-card:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: 2px;
}


/* ── Studio Photography homepage ── */
.studio-home {
  padding-bottom: 48px;
}
.studio-home-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f0ed;
  margin: 0 0 28px;
  min-height: 220px;
}
.studio-home-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}
.studio-home-hero-copy {
  padding: 18px 18px 22px;
}
@media (min-width: 720px) {
  .studio-home-hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    min-height: 280px;
  }
  .studio-home-hero-img {
    max-height: none;
    height: 100%;
    min-height: 280px;
  }
  .studio-home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 28px 28px 8px;
  }
}
.studio-home-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.studio-home-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 650;
  line-height: 1.2;
}
.studio-home-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.studio-home-cta {
  align-self: flex-start;
}
.studio-flow-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.studio-flow-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line, #e8e6e3);
  border-radius: 12px;
  background: #fff;
}
.studio-flow-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink, #111);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
}
.studio-flow-steps strong {
  display: block;
  font-size: 15px;
}
.studio-flow-steps .gen-hint {
  margin: 4px 0 0;
}


/* Approvals: horizontal category chips (like poses model filters) */
.rr-inbox-layout--chips {
  display: block;
}
.rr-inbox-layout--chips .rr-inbox-main {
  max-width: 920px;
}
.approvals-filters {
  margin: 0 0 16px;
  padding: 10px 0 14px;
}
.approvals-filter-chips {
  margin-bottom: 0;
}
.approvals-filter-chips .chip {
  text-decoration: none;
  color: inherit;
}
.approvals-filter-chips .chip.active {
  background: var(--ink, #111);
  color: #fff;
  border-color: var(--ink, #111);
}

.approvals-recipe-filters {
  padding-top: 0;
  margin-top: -6px;
}
.approvals-filter-chips .chip-count {
  opacity: 0.65;
  font-size: 0.85em;
  margin-left: 4px;
}


/* Lifestyle review */
.lifestyle-review { max-width: 1100px; display: flex; flex-direction: column; gap: 1.25rem; }
.lifestyle-refs-card,
.lifestyle-plate-ref-card {
  padding: 1.1rem 1.2rem 1.25rem;
  border: 1px solid var(--border, #e4dfd8);
  border-radius: 14px;
  background: var(--card, #fff);
}
.lifestyle-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.lifestyle-rev-bd-grid {
  margin-bottom: 0.75rem;
}

/* Lifestyle review — Product · Camera · Background · Model · Prompt */
.lifestyle-rev-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr);
  align-items: start;
  gap: 10px;
  margin: 0 0 10px;
  overflow: visible;
}
@media (max-width: 900px) {
  .lifestyle-rev-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.lifestyle-rev-step {
  min-width: 0;
  max-width: none;
}
.lifestyle-rev-step:has(.camera-filter-row),
.lifestyle-rev-step:has(.studio-backdrop-grid),
.lifestyle-rev-step:has(.studio-model-grid) {
  max-width: none;
  min-width: 0;
  grid-column: 1 / -1;
}

/* Lifestyle review — compact portrait refs (2∶3) */
.lifestyle-rev-ref-panel {
  width: 100%;
}
.lifestyle-rev-ref-panel h2 {
  padding: 6px 8px;
  font-size: 11px;
}
.lifestyle-rev-ref-panel .rr-frame {
  aspect-ratio: 2 / 3;
  min-height: 0;
  max-height: 112px;
  padding: 6px;
  overflow: hidden;
}
.lifestyle-rev-ref-panel .rr-frame img,
.lifestyle-rev-ref-panel .rr-zoom-hit img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}
.lifestyle-rev-ref-panel .rr-zoom-hit {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
}
.lifestyle-rev-ref-panel .rr-zoom-badge {
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  font-size: 9px;
}
.lifestyle-rev-ref-panel .rr-panel-meta {
  padding: 6px 8px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lifestyle-rev-step > .lifestyle-chosen-actions {
  margin-top: 6px;
}
.lifestyle-rev-step > .lifestyle-chosen-actions .btn {
  width: 100%;
  justify-content: center;
}
.lifestyle-rev-step .field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lifestyle-rev-product-thumb {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ink, #1a1a1a);
  background: #f3f2f0;
  padding: 6px;
  box-sizing: border-box;
}
.lifestyle-rev-product-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 112px;
  object-fit: cover;
  border-radius: 8px;
}
.lifestyle-rev-product-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lifestyle-rev-bd-mode {
  margin: 8px 0 0;
}
.lifestyle-rev-bd-mode .field-label {
  margin-bottom: 4px;
  font-size: 10px;
}
.lifestyle-rev-bd-mode .chip-row {
  flex-wrap: wrap;
  gap: 4px;
}
.lifestyle-rev-bd-mode .chip {
  padding: 4px 8px;
  font-size: 11px;
}
.lifestyle-rev-prompt {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
}
.lifestyle-rev-prompt-preview,
.lifestyle-rev-prompt .lifestyle-rev-prompt-preview {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 220px;
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.35;
  resize: vertical;
  overflow: auto;
}

/* Lifestyle review — collapsed chosen pickers (Change under thumb) */
.lifestyle-chosen-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.lifestyle-chosen-row .studio-model-card,
.lifestyle-chosen-row .studio-pose-card,
.lifestyle-chosen-row .studio-backdrop-card,
.lifestyle-chosen-row .camera-filter-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  cursor: default;
  pointer-events: none;
  padding: 6px;
}
.lifestyle-rev-steps .lifestyle-chosen-row .studio-model-face,
.lifestyle-rev-steps .lifestyle-chosen-row .studio-backdrop-thumb,
.lifestyle-rev-steps .lifestyle-chosen-row .camera-filter-thumb {
  width: 100%;
  height: auto;
  max-height: 112px;
  aspect-ratio: 2 / 3;
}
.lifestyle-rev-steps .lifestyle-chosen-row .camera-filter-card {
  width: 100%;
}
.lifestyle-rev-steps .lifestyle-chosen-row .camera-filter-thumb {
  height: auto;
  max-height: 112px;
}
.lifestyle-rev-steps .lifestyle-chosen-row .camera-filter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lifestyle-rev-steps .lifestyle-chosen-actions .btn {
  width: 100%;
  justify-content: center;
}
.lifestyle-chosen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lifestyle-edit-done-row {
  margin: 0 0 8px;
  justify-content: flex-start;
}
.lifestyle-plates-section { margin-top: 0.25rem; }
.lifestyle-plate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 0.5rem;
}
/* Camera filter icon chips (lifestyle create + review) */
.camera-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 10px;
  margin: 0 0 14px;
  scrollbar-width: thin;
}
.camera-filter-card {
  appearance: none;
  border: 2px solid var(--line, #e8e6e3);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 60px;
  min-width: 56px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.camera-filter-card.is-selected,
.camera-filter-card[aria-pressed="true"] {
  border-color: var(--ink, #1a1a1a);
  box-shadow: 0 0 0 1px var(--ink, #1a1a1a);
}
.camera-filter-thumb {
  display: block;
  width: 48px;
  height: 64px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f2f0;
  flex: 0 0 auto;
}
.camera-filter-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-filter-label {
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink, #1a1a1a);
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifestyle-plate-card {
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  background: #f3f1ee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}
.lifestyle-plate-card.is-selected,
.lifestyle-plate-card[aria-pressed="true"] {
  border-color: var(--accent, #c45c7a);
  box-shadow: 0 0 0 2px rgba(196, 92, 122, 0.25);
}
.lifestyle-plate-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  display: block;
  background: #f3f1ee;
}
.lifestyle-plate-label {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  color: var(--muted, #6b6560);
}
.lifestyle-plate-ref-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.lifestyle-plate-ref-thumb {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f1ee;
}
.lifestyle-plate-ref-fields .prompt-textarea { width: 100%; }
.lifestyle-pending { margin: 0; }
.lifestyle-sheet-wrap { margin: 0 0 1.25rem; } /* unused legacy */
.lifestyle-sheet-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f3f1ee;
  border-radius: 12px;
  display: block;
}
@media (max-width: 720px) {
  .lifestyle-plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifestyle-plate-ref-row { grid-template-columns: 1fr; }
}
.rr-thumb {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  background: #eee;
}


/* Product detail — generate-angle references */
.product-refs-card {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border, #e5e2dc);
  border-radius: 12px;
  background: var(--surface-2, #faf8f5);
}
.product-refs-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b6560);
  margin: 0 0 0.65rem;
}
.product-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.65rem;
}
.product-ref-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.product-ref-media {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  border: 1px solid var(--border, #e5e2dc);
}
.product-ref-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-ref-swatch,
.product-ref-missing {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
}
.product-ref-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  background: #f0eeeb;
}
.product-ref-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.25;
}
.product-ref-meta strong {
  font-weight: 600;
}
.product-refs-card .gen-hint {
  margin: 0.65rem 0 0;
}

button.product-ref-chip.is-editable {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
button.product-ref-chip.is-editable:hover .product-ref-media,
button.product-ref-chip.is-editable:focus-visible .product-ref-media {
  outline: 2px solid var(--accent, #2c2c2c);
  outline-offset: 2px;
}
button.product-ref-chip.is-editable:hover .product-ref-meta .muted {
  color: var(--text, #1a1a1a);
}


/* Lifestyle plate zoom */
.lifestyle-plate-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lifestyle-plate-card-wrap.is-selected .lifestyle-plate-card {
  /* selection still on the card itself */
}
.lifestyle-plate-zoom {
  align-self: stretch;
  border: 1px solid var(--line, #e8e6e3);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: zoom-in;
  color: var(--ink, #111);
}
.lifestyle-plate-zoom:active {
  background: #f5f3f0;
}
.lifestyle-plate-ref-zoom-hit {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.lifestyle-plate-ref-zoom-hit .lifestyle-plate-ref-thumb {
  display: block;
  width: 100%;
}
.lifestyle-plate-ref-zoom-hit .rr-zoom-badge {
  pointer-events: none;
}


/* Zoom gallery prev/next */
.rr-zoom-stage {
  position: relative;
}
.rr-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 64px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rr-zoom-nav:active {
  background: rgba(0, 0, 0, 0.65);
}
.rr-zoom-nav-prev { left: 8px; }
.rr-zoom-nav-next { right: 8px; }
@media (max-width: 640px) {
  .rr-zoom-nav { width: 40px; height: 56px; font-size: 24px; }
}


/* Headshot / body plate zoom */
.hs-plate-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hs-plate-card-wrap.selected .hs-plate-card {
  /* selection styling stays on card */
}
.hs-plate-zoom {
  border: 1px solid var(--line, #e8e6e3);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: zoom-in;
  color: var(--ink, #111);
}
.hs-plate-zoom:active {
  background: #f5f3f0;
}


/* Hero lifestyle approve / placement */
.lifestyle-hero-approve .hero-dim-presets { flex-wrap: wrap; }
.hero-placement-stage {
  margin-top: 12px;
  width: 100%;
  max-width: 560px;
  background: #1a1918;
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
}
.hero-placement-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e0d0c;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  touch-action: none;
  cursor: crosshair;
}
.hero-placement-plate {
  position: absolute;
  width: auto;
  height: 92%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
}
.hero-placement-handle {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(196, 92, 62, 0.85);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
  cursor: grab;
  z-index: 2;
  touch-action: none;
  padding: 0;
}
.hero-placement-handle:active { cursor: grabbing; }
.hero-place-readout { margin-top: 8px; font-variant-numeric: tabular-nums; }


/* Inbox: Approvals head is the All hub link */
a.inbox-panel-head-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.inbox-panel-head-link:hover {
  color: var(--accent, #1a3c34);
}


/* Product listings PLP */
.listings-plp-grid {
  grid-template-columns: 1fr 1fr; /* 2-wide mobile */
  gap: 12px;
}
@media (min-width: 720px) {
  .listings-plp-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
  }
}
.listings-tab-chips {
  margin: 12px 0 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.listing-plp-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.listing-plp-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.listing-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
  background: #f0ebe4;
  color: #5a5248;
}
.listing-card-badge--published {
  background: #e4f0e6;
  color: #2a6b3a;
}
.listing-card-badge--data-entry {
  background: #f3ead8;
  color: #7a5a20;
}
.listing-card-actions {
  padding: 0 12px 12px;
}
.listing-card-actions .btn {
  width: 100%;
  font-size: 0.8rem;
  padding: 6px 10px;
}
.listings-tools summary {
  list-style: none;
}
.listings-tools summary::-webkit-details-marker { display: none; }
.listing-store-status--ok { color: #2a6b3a; }
.listing-store-status--warn { color: #9a6b1a; }



/* Approvals shopping PLP */
.appr-shop-plp .listings-shop-header,
.appr-shop-plp .plp-title-row {
  margin-bottom: 4px;
}
.appr-shop-folder-nav {
  margin: 4px 0 10px;
  padding-bottom: 8px;
}
.appr-shop-status-nav {
  margin: 0 0 8px;
  padding-top: 0;
}
.appr-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 8px 0 28px;
}
@media (min-width: 720px) {
  .appr-shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 20px;
  }
}
.appr-shop-card.is-pending {
  opacity: 0.82;
}
.appr-shop-media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #f3f1ed;
  overflow: hidden;
  border-radius: 2px;
}
.appr-shop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.appr-shop-media-empty {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #f3f1ed;
}
.appr-shop-media-empty.is-pending {
  background: repeating-linear-gradient(
    -45deg,
    #f3f0ea,
    #f3f0ea 4px,
    #ebe6dc 4px,
    #ebe6dc 8px
  );
}
.appr-shop-card.is-pending .appr-shop-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(243, 241, 237, 0.28);
  pointer-events: none;
}
.appr-shop-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8a5a12;
}
.appr-shop-badge--needs {
  color: #8a5a12;
  background: #fff6e8;
}
.appr-shop-badge--gen {
  color: #3d3a36;
  background: rgba(255, 255, 255, 0.92);
}
.appr-shop-badge--pending {
  color: #6b6560;
  background: rgba(255, 255, 255, 0.9);
}
.appr-shop-badge--ok {
  color: #2f6b3a;
  background: #eaf6ee;
}
.appr-shop-badge--rejected {
  color: #8a3b2f;
  background: #f8ece9;
}
.appr-shop-res {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #6b6560);
  text-transform: lowercase;
}
.appr-shop-badge {
  text-transform: lowercase;
}
.appr-shop-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.appr-shop-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #6b6560);
}
.appr-shop-section .appr-section-head h2 {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.appr-shop-folder-nav .chip,
.appr-shop-status-chips .chip {
  white-space: nowrap;
}
.appr-shop-plp .rr-count {
  font-size: 0.85rem;
  color: var(--muted, #6b6560);
}

/* Listings shopping-category PLP */
.listings-shop-plp .listings-shop-header {
  margin-bottom: 4px;
}
.listings-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 8px 0 28px;
}
@media (min-width: 720px) {
  .listings-shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 20px;
  }
}
.listing-shop-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.listing-shop-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.listing-shop-card-media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #f3f1ed;
  overflow: hidden;
  border-radius: 2px;
}
.listing-shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-shop-card-media .listing-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
}
.listing-card-badge--needs-approval {
  color: #8a5a12;
  background: #fff6e8;
}
.listing-shop-card-body {
  padding: 10px 2px 0;
}
.listing-shop-card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.listing-shop-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted, #6b6560);
}
.listing-shop-price {
  color: var(--ink, #1a1a1a);
  font-weight: 600;
}
.listing-card-actions {
  margin-top: 8px;
}
.listing-card-secondary {
  font-size: 0.75rem;
  padding: 4px 10px;
  opacity: 0.85;
}
.listings-tools-discreet {
  margin-top: 32px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted, #6b6560);
  font-size: 0.85rem;
}
.listings-tools-discreet summary {
  cursor: pointer;
  list-style: none;
}
.listings-tools-discreet summary::-webkit-details-marker { display: none; }
.listings-tools-body {
  margin-top: 14px;
  max-width: 520px;
}

/* Listing PDP — ecommerce product page */
.listing-pdp {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.listing-pdp-crumb {
  margin: 8px 0 16px;
  font-size: 0.85rem;
}
.listing-pdp-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 860px) {
  .listing-pdp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
}
.listing-pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.listing-pdp-main {
  aspect-ratio: 2 / 3;
  background: #f3f1ed;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.listing-pdp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.listing-pdp-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 96px;
  padding: 0;
  border: 1px solid transparent;
  background: #f3f1ed;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
}
.listing-pdp-thumb.is-active {
  border-color: var(--ink, #1a1a1a);
}
.listing-pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-pdp-info .listing-pdp-title-input {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}
.listing-pdp-price-row {
  margin: 8px 0 4px;
}
.listing-pdp-price-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 160px;
}
.listing-pdp-price-currency {
  font-size: 1.25rem;
  font-weight: 600;
}
.listing-pdp-price {
  font-size: 1.25rem;
  font-weight: 600;
}
.listing-pdp-model-line {
  margin: 6px 0 14px;
  font-size: 0.9rem;
  color: var(--muted, #6b6560);
}
.listing-meas-card {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7f5f1;
  border-radius: 6px;
}
.listing-meas-block {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.listing-meas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.listing-meas-table th {
  text-align: left;
  font-weight: 500;
  padding: 4px 8px 4px 0;
  color: var(--muted, #6b6560);
  width: 40%;
}
.listing-meas-table td {
  padding: 4px 0;
}
.listing-pdp-actions {
  margin-top: 18px;
  flex-wrap: wrap;
}
.listing-pdp-gen-status {
  color: var(--accent, #1a3c34);
  font-style: italic;
}


/* Listing PDP gallery swipe */
.listing-pdp-main {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.listing-pdp-main:active { cursor: grabbing; }
.listing-pdp-main img {
  transition: transform 0.08s ease-out;
  pointer-events: none;
  -webkit-user-drag: none;
}
.listing-pdp-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}
.listing-pdp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.listing-pdp-dot.is-active {
  background: rgba(0,0,0,0.7);
}
.listing-pdp-swipe-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
@media (min-width: 860px) {
  .listing-pdp-swipe-hint { display: none; }
}


/* Studio multi-pick + pack */
.hs-plate-primary-badge,
.hs-plate-extra-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  z-index: 2;
}
.hs-plate-extra-badge {
  background: #5b6570;
}
.hs-plate-card-wrap {
  position: relative;
}
.hs-plate-card-wrap.is-primary .hs-plate-card {
  outline: 2px solid #1a1a1a;
}
.studio-multi-pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}


/* Recast Pull plates */
.rr-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recast-pull-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 18px;
  flex-wrap: wrap;
  max-width: 560px;
}
.recast-pull-search .text-input {
  flex: 1 1 220px;
  min-width: 180px;
}
.recast-pull-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 12px 0 18px;
  max-width: 720px;
}
.recast-pull-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recast-pull-field .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #6b6560);
}
.recast-pull-ids textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.recast-pull-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.recast-pull-warns {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recast-pull-warn {
  font-size: 13px;
  color: #9a6700;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 6px 10px;
}
.recast-pull-meta {
  margin: 0 0 14px;
}
.recast-pull-meta-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.recast-pull-meta-chips .chip.muted,
.recast-pull-meta-chips .chip {
  pointer-events: none;
}
.recast-pull-batch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 12px;
}
.recast-pull-row {
  border: 1px solid var(--border, #e6e2de);
  border-radius: 12px;
  padding: 12px 14px 14px;
  background: var(--surface, #fff);
}
.recast-pull-row.is-ready {
  border-color: #7cb87c;
  box-shadow: inset 3px 0 0 #3d8f3d;
}
.recast-pull-row.is-need-front,
.recast-pull-row.is-need-back,
.recast-pull-row.is-need-both {
  border-color: #e6d4a8;
}
.recast-pull-row.is-error {
  border-color: #e8b4b4;
  background: #fff8f8;
}
.recast-pull-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.recast-pull-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.recast-pull-row-title strong {
  font-size: 15px;
  margin-right: 4px;
}
.recast-pull-status {
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #f0eeeb;
  color: #5c564f;
}
.recast-pull-status.is-ready {
  background: #e5f5e5;
  color: #1f6b1f;
}
.recast-pull-status.is-need-front,
.recast-pull-status.is-need-back,
.recast-pull-status.is-need-both {
  background: #fff3d6;
  color: #8a5a00;
}
.recast-pull-status.is-error {
  background: #fde8e8;
  color: #a32020;
}
.recast-pull-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.recast-pull-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, #f4f2f0);
  cursor: pointer;
  text-align: left;
}
.recast-pull-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.recast-pull-thumb.is-front {
  border-color: #2f6fed;
  box-shadow: 0 0 0 1px #2f6fed;
}
.recast-pull-thumb.is-back {
  border-color: #7b4db8;
  box-shadow: 0 0 0 1px #7b4db8;
}
.recast-pull-role-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
}
.recast-pull-role-badge.front {
  background: #2f6fed;
}
.recast-pull-role-badge.back {
  background: #7b4db8;
}
.recast-pull-row-err {
  font-size: 13px;
  color: #a32020;
  padding: 8px 0;
}
.recast-pull-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.recast-pull-card {
  position: relative;
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, #f4f2f0);
  cursor: pointer;
  text-align: left;
}
.recast-pull-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.recast-pull-card.is-selected {
  border-color: var(--accent, #1a1a1a);
  box-shadow: 0 0 0 1px var(--accent, #1a1a1a);
}
.recast-pull-pos {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.recast-pull-check {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #1a1a1a);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.recast-pull-card.is-selected .recast-pull-check {
  opacity: 1;
}
.recast-pull-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e6e2de);
}
.recast-pull-batch-footer {
  position: sticky;
  bottom: 0;
  background: color-mix(in srgb, var(--bg, #faf8f6) 92%, transparent);
  backdrop-filter: blur(6px);
  padding: 12px 0 16px;
  z-index: 2;
}
.recast-pull-count {
  font-size: 14px;
  color: var(--muted, #6b6560);
  font-weight: 500;
}
.recast-pull-page .toast a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
}


.settings-crop-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink, #1c1917);
  font-size: 0.92rem;
  line-height: 1.45;
}
.settings-crop-list li { margin: 0.35rem 0; }
.settings-ruleset-card { margin-bottom: 1rem; }


.model-pdp-poses {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #e7e5e2);
}
.model-pdp-poses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.model-pdp-poses-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}
.model-pdp-poses-grid .model-card-name {
  font-size: 0.85rem;
}
.model-pdp-poses-grid .model-card-meta {
  font-size: 0.72rem;
}
.model-pdp-poses-empty {
  padding: 1rem;
  text-align: left;
}
.model-pdp-poses-empty .btn {
  margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .model-pdp-poses-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}


.bd-detail-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .bd-detail-layout {
    grid-template-columns: minmax(220px, 360px) 1fr;
    align-items: start;
  }
}
.bd-detail-media {
  border-radius: 12px;
  overflow: hidden;
  background: #f3f2f0;
  border: 1px solid var(--line, #e7e5e2);
  min-height: 220px;
}
.bd-detail-hero {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.bd-detail-swatch {
  width: 100%;
  min-height: 220px;
}
.backdrop-card .model-card-media,
.backdrop-card .model-card-body {
  text-decoration: none;
  color: inherit;
}


.catalog-entry-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (min-width: 800px) {
  .catalog-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.catalog-entry-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line, #e7e5e2);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.catalog-entry-card:hover {
  border-color: #c9c5c0;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.06);
}
.catalog-entry-kicker {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #78716c);
  margin-bottom: 0.35rem;
}
.catalog-entry-title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.racks-coming-soon,
.racks-list-status {
  margin-top: 1rem;
  text-align: left;
}
.racks-page .racks-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0.65rem;
}
.racks-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.racks-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.racks-row {
  display: grid;
  grid-template-columns: auto 56px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e7e2db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.racks-row.is-selected {
  border-color: #c9c5c0;
  background: #faf8f5;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.racks-row-thumb {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f0ed;
}
.racks-row-thumb-empty {
  display: block;
}
.racks-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.racks-row-title {
  font-weight: 600;
  color: var(--ink, #1c1917);
}
.racks-row-sub {
  font-size: 0.86rem;
  color: var(--muted, #78716c);
}
.racks-actions {
  margin-top: 1rem;
}
.racks-source {
  margin: 0;
}

.racks-stage-chips {
  margin: 0.85rem 0 0.25rem;
}
.racks-stage-chips .chip {
  cursor: pointer;
  border: 1px solid #e7e2db;
  background: #fff;
}
.racks-row-readonly {
  grid-template-columns: 1.25rem 56px 1fr auto;
  cursor: default;
}
.racks-row-check-spacer {
  width: 1rem;
  display: inline-block;
}
.racks-row-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}
.racks-status-pill {
  display: inline-block;
  text-transform: capitalize;
  font-size: 0.78em;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #f2f0ed;
  color: #57534e;
}
.racks-page .linkish {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}


.catalog-shoot-crumb span:last-child {
  color: var(--ink, #1c1917);
  font-weight: 550;
}


/* ── Photo Shoot Builder ── */
.psb-page .psb-batch { margin-top: 1rem; }
.psb-card { padding-bottom: 1rem; }
.psb-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0.75rem 0 0.85rem;
  padding: 0;
}
.psb-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e7e2db;
  border-radius: 999px;
  background: #faf8f5;
  color: var(--muted, #78716c);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.psb-step.on {
  color: var(--ink, #1c1917);
  border-color: #c9c5c0;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}
.psb-step.done {
  color: var(--ink, #1c1917);
  border-color: #d6d0c8;
}
.psb-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #efeae3;
  font-size: 10px;
  font-weight: 700;
}
.psb-step.on .psb-step-num { background: #1c1917; color: #faf8f5; }
.psb-step-body { margin-top: 0.35rem; }
.psb-hint { margin: 0.5rem 0 0; }
.psb-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  align-items: center;
}
.psb-summary { margin: 0.65rem 0 0; }
.psb-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.psb-acc-grid,
.psb-bd-grid { margin-top: 0.4rem; }
.psb-shots { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.35rem; }
.psb-garment-shots .form-chip-row { flex-wrap: wrap; gap: 0.45rem; }
.psb-garment-shots .form-chip { min-width: 6.5rem; justify-content: center; }
.psb-plates-garment {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e7e2db;
  border-radius: 14px;
  background: #fffcf8;
}
.psb-plates-garment .field-label { margin-bottom: 0.35rem; }
.psb-plates-garment .gen-hint { margin: 0.4rem 0 0; }
.psb-shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e7e2db;
  border-radius: 12px;
  background: #fffcf8;
}
.psb-shot-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.psb-action { margin-top: 0.25rem; }
.psb-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink, #1c1917);
  margin-bottom: 0.65rem;
}
.psb-action-body { display: flex; flex-direction: column; gap: 0.55rem; }
.psb-plates .recast-pull-thumb[disabled] { opacity: 1; cursor: default; }


.psb-tray {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.35rem;
}
.psb-tray-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e7e2db;
  background: #fffcf8;
  cursor: pointer;
  color: var(--ink, #1c1917);
  padding: 0;
}
.psb-tray-btn:hover { border-color: #c9c5c0; background: #fff; }
.psb-tray-ico { display: block; }
.psb-tray-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #1c1917;
  color: #faf8f5;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.psb-tray-badge[hidden] { display: none !important; }
.psb-shooting-drawer .psb-cart-footer { margin-top: auto; }
.psb-shooting-list { gap: 0.65rem; }
.psb-shooting-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
}
.psb-shooting-item.is-ready { border-color: #c6dcc8; background: #f6fbf6; }
.psb-shooting-thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #efeae3;
}
.psb-shooting-thumb-empty { border: 1px dashed #ddd6cc; }
.psb-shooting-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #57534e;
  line-height: 1.35;
}
.psb-shooting-sub.muted { color: #a8a29e; }
.psb-shooting-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.psb-shooting-footer .btn { width: 100%; }
.chip.ok {
  background: #e7f3e8;
  color: #1f5b2c;
  border-color: #c6dcc8;
}
.chip.danger {
  background: #fce8e6;
  color: #8a1f11;
  border-color: #f0c4be;
}


.psb-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e7e2db;
  background: #fffcf8;
  cursor: pointer;
  color: var(--ink, #1c1917);
}
.psb-cart-btn:hover { border-color: #c9c5c0; background: #fff; }
.psb-cart-icon { font-size: 1.05rem; line-height: 1; }
.psb-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #1c1917;
  color: #faf8f5;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.psb-cart-drawer { position: fixed; inset: 0; z-index: 80; }
.psb-cart-drawer[hidden] { display: none !important; }
.psb-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.28);
}
.psb-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 94vw);
  background: #fffcf8;
  border-left: 1px solid #e7e2db;
  box-shadow: -12px 0 32px rgba(28, 25, 23, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.25rem;
}
.psb-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.psb-cart-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 550;
}
.psb-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.psb-cart-item {
  border: 1px solid #e7e2db;
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.psb-cart-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.psb-cart-item-actions { display: flex; gap: 0.4rem; }
.psb-cart-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ebe6df;
}
.psb-cart-footer .btn { width: 100%; }
.psb-cart-empty { padding: 1rem 0.25rem; }

@media (max-width: 640px) {
  .psb-shot-row { grid-template-columns: 1fr; }
}



/* Approvals inbox icon removed — Shoot plan / Shooting / Approval tray */
#inboxRoot { display: none !important; }


/* Decorative avatar ring removed — Shoot plan / Shooting / Approval tray */
.header-end .avatar-circle {
  display: none !important;
}


.psb-shoot-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.15rem;
  padding: 0;
}
.psb-shoot-steps li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #e7e2db;
  color: #a8a29e;
  background: #faf8f5;
}
.psb-shoot-steps li.is-done {
  color: #1f5b2c;
  border-color: #c6dcc8;
  background: #eef7ef;
}
.psb-shoot-steps li.is-current {
  color: #1c1917;
  border-color: #1c1917;
  background: #fff;
}
.chip.queue { background: #f5f0e8; color: #57534e; border-color: #e7e2db; }
.chip.submitted { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.chip.processing { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }


.rr-zoom-compare-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.rr-zoom-overlay.is-compare .rr-zoom-compare-wrap .rr-zoom-compare-stage {
  flex: 1;
  min-width: 0;
}
/* Override base absolute nav so Prev sits left of stage (not under the left pane) */
.rr-zoom-overlay.is-compare .rr-zoom-nav {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  flex: 0 0 auto;
  align-self: center;
  z-index: 6;
  pointer-events: auto;
  width: 48px;
  height: 48px;
  margin: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(20,18,16,0.72);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rr-zoom-overlay.is-compare .rr-zoom-nav:hover,
.rr-zoom-overlay.is-compare .rr-zoom-nav:active {
  background: rgba(20,18,16,0.92);
}
.rr-zoom-btn-nav {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}
.rr-zoom-btn-choose {
  background: var(--cream, #f7f3eb);
  color: var(--ink, #1a1a1a);
  border-color: rgba(26, 26, 26, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 4.5rem;
  padding: 0 14px;
}
.rr-zoom-btn-choose:hover {
  background: #fff;
  color: #0d0d0d;
  border-color: rgba(26, 26, 26, 0.55);
}
.rr-zoom-btn-choose[hidden] {
  display: none !important;
}
.rr-zoom-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}
@media (max-width: 720px) {
  /* Float over panes so left Prev isn't covered by Original */
  .rr-zoom-overlay.is-compare .rr-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 44px;
    height: 56px;
    border-radius: 12px;
    z-index: 8;
  }
  .rr-zoom-overlay.is-compare .rr-zoom-nav-prev { left: 0.35rem; right: auto; }
  .rr-zoom-overlay.is-compare .rr-zoom-nav-next { right: 0.35rem; left: auto; }
}

.racks-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.racks-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #e7e2db;
  background: #f5f3f0;
  color: #44403c;
  white-space: nowrap;
}
.racks-status-badge.is-ready {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.racks-status-badge.is-queued {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
.racks-status-badge.is-approval {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.racks-status-badge.is-done {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #52525b;
}

/* Shoot from racks — shopping PLP (2-col / auto-fill, 2:3 thumbs) */
.racks-shop-plp {
  padding-bottom: 5.5rem;
}
.racks-shop-card {
  position: relative;
}
.racks-shop-card-hit {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.racks-shop-media {
  position: relative;
  outline: 1px solid transparent;
  transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}
.racks-shop-card.is-selected .racks-shop-media {
  outline: 2px solid #1c1917;
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.08);
}
.racks-shop-media-empty {
  width: 100%;
  height: 100%;
  background: #ebe7e1;
}
.racks-shop-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(28, 25, 23, 0.25);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  opacity: 0.85;
}
.racks-shop-card.is-selected .racks-shop-check {
  background: #1c1917;
  border-color: #1c1917;
  opacity: 1;
}
.racks-shop-card.is-selected .racks-shop-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.racks-shop-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  background: rgba(255, 255, 255, 0.92);
}
.racks-shop-body {
  padding: 8px 2px 0;
}
.racks-shop-pid {
  margin: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink, #1c1917);
}
.racks-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 1rem -4px 0;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e7e2db;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 24px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(8px);
}
.racks-sticky-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #1c1917);
}
.racks-sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.racks-actions-inline {
  margin-top: 0.5rem;
}

/* Hero theme board + Location Shoot 4-up hub */
@media (min-width: 1100px) {
  .catalog-entry-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.catalog-entry-card--hero {
  border-color: #d4c4b0;
  background: linear-gradient(180deg, #fbf8f4 0%, #fff 70%);
}
.catalog-entry-card--hero:hover {
  border-color: #b99a7a;
  box-shadow: 0 8px 22px rgba(90, 70, 40, 0.08);
}
.hero-theme-board .htb-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}
.htb-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border: 1px solid var(--line, #e7e5e2);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.htb-product-chip img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: #f5f5f4;
}
.htb-product-chip.is-error {
  border-color: #f1c0c0;
  color: #9f1239;
}
.hero-theme-board .htb-stub {
  margin-top: 0.5rem;
  font-style: italic;
}
.hero-theme-board .htb-results li.error {
  color: #9f1239;
}

.appr-shop-genres {
  margin: 6px 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #6b6560);
  text-transform: lowercase;
  line-height: 1.2;
}


/* Completed Images PLP — product-grouped swipe carousel */
.appr-completed-card .appr-shop-media {
  position: relative;
  aspect-ratio: 2 / 3;
}
.appr-completed-media-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.appr-completed-card .appr-completed-track {
  height: 100%;
  touch-action: pan-y;
}
.appr-completed-card .model-card-slide {
  height: 100%;
}
.appr-completed-card .model-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}
.appr-completed-dots {
  z-index: 2;
}
.appr-completed-body-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Location Shoot bulk pull — product cards with plate thumbs */
.location-bulk-list { list-style: none; }
.location-bulk-card { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 12px; background: #fff; }
.location-bulk-card.is-error { border-color: rgba(180,40,40,.35); }
.location-bulk-card-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.location-bulk-hero { width: 72px; height: 108px; object-fit: cover; border-radius: 8px; background: #f3f1ee; flex-shrink: 0; }
.location-bulk-hero-empty { width: 72px; height: 108px; border-radius: 8px; background: #f3f1ee; flex-shrink: 0; }
.location-bulk-card .recast-pull-thumbs { margin-top: 4px; }


/* Catalog Pick / Polished stage tag on Approvals cards */
.appr-stage-tag {
  display: inline-block;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* Catalog pack: Front + Side/Back stacked on one Approvals page */
.studio-pack-sheets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0.75rem 0 1rem;
}
.studio-pack-sheet {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.55);
}
.studio-result-card--pack .studio-pack-sheet .studio-plate-pick {
  margin-top: 0.35rem;
}

/* Publish Images PDP gallery — Petal & Pup 2-col portrait grid (2:3) */
.product-atelier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 1rem 0 2.5rem;
  width: 100%;
  max-width: 920px;
}
.product-atelier-tile {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}
.product-atelier-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  min-height: 0;
  background: #f5f2ec;
  overflow: hidden;
}
.product-atelier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.product-atelier-ord {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.product-atelier-cap {
  display: none; /* PDP-style: plates only; badge carries order */
}
.product-atelier-cap .muted { opacity: 0.75; }
@media (max-width: 560px) {
  .product-atelier-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
}
@media (min-width: 1100px) {
  .product-atelier-grid {
    max-width: 1040px;
    gap: 8px;
  }
}

/* Image Details immersive inspect — image fills the viewport */
.rr-zoom-overlay.is-immersive .rr-zoom-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(8, 6, 5, 0.72), rgba(8, 6, 5, 0));
  pointer-events: none;
}
.rr-zoom-overlay.is-immersive .rr-zoom-toolbar .rr-zoom-controls,
.rr-zoom-overlay.is-immersive .rr-zoom-toolbar .rr-zoom-title {
  pointer-events: auto;
}
.rr-zoom-overlay.is-immersive .rr-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  background: linear-gradient(to top, rgba(8, 6, 5, 0.55), transparent);
  pointer-events: none;
}
.rr-zoom-overlay.is-immersive .rr-zoom-stage {
  position: absolute;
  inset: 0;
}
.rr-zoom-overlay.is-immersive .rr-zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Combined Front+Turn pack contacts on Approvals pick */
.rr-pack-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.rr-pack-contacts .rr-pack-contact {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f5f3f0;
  object-fit: contain;
}
.appr-shop-media img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f5f3f0;
}

/* Culling plates: follow sheet pixels — never force 2:3 / never crop */
.rr-sheet-grid .hs-plate-thumb,
.rr-sheet-tile .hs-plate-thumb,
.rr-sheet-grid .hs-plate-thumb-body,
.rr-sheet-tile .hs-plate-thumb-body {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  background: #f5f3f0;
}
.rr-sheet-grid .hs-plate-img,
.rr-sheet-tile .hs-plate-img,
.rr-sheet-pick .hs-plate-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.rr-sheet-grid .hs-plate-card,
.rr-sheet-tile .hs-plate-card,
.hs-plate-card.rr-sheet-pick {
  overflow: visible;
}


/* Approvals Polish Save on hub cards */
.appr-shop-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}
.appr-shop-actions .appr-polish-save {
  width: 100%;
}
.appr-shop-card.is-polished .appr-stage-tag {
  color: #0a7a3e;
}


/* ── Status board (#/status) ── */
.nav-status-shortcut {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}
.header-end .nav-status-shortcut {
  margin-left: 0;
}
.nav-status-shortcut:hover {
  color: var(--ink);
  background: #f3f2f0;
}
.nav-status-shortcut.active {
  color: #fff;
  background: var(--accent, #134e4a);
}
.status-page {
  max-width: 960px;
}
.status-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.status-filters {
  margin-top: 0;
  padding-top: 4px;
}
.status-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-board-head {
  display: none;
  grid-template-columns: 88px 72px minmax(0, 1fr) minmax(88px, 0.8fr);
  gap: 8px 12px;
  padding: 0 12px 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-board-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "sku pack"
    "angles angles"
    "next next";
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}
.status-row:hover {
  border-color: #d6d3d1;
  background: #fafaf9;
}
.status-sku {
  grid-area: sku;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.status-pack {
  grid-area: pack;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.status-angles {
  grid-area: angles;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.status-angle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-angle::before {
  content: attr(data-angle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-next {
  grid-area: next;
  font-size: 13px;
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2em;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.status-pill.is-generating {
  background: #fef3c7;
  color: #92400e;
}
.status-pill.is-pick {
  background: #dbeafe;
  color: #1d4ed8;
}
.status-pill.is-polish {
  background: #dcfce7;
  color: #15803d;
}
.status-pill.is-saved {
  background: #f5f5f4;
  color: #78716c;
}
.status-pill.is-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.status-pill.is-queued {
  background: #e7e5e4;
  color: #57534e;
}
.status-pill.is-empty {
  background: transparent;
  color: #a8a29e;
  border: 1px dashed #e7e5e4;
}
.status-empty {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 14px;
}
.status-done {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.status-done-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-row.is-compact {
  padding: 10px 12px;
  background: #fafaf9;
}
.status-row.is-compact .status-next {
  display: none;
}

@media (min-width: 720px) {
  .status-board-head {
    display: grid;
  }
  .status-row {
    grid-template-columns: 88px 72px minmax(0, 1fr) minmax(88px, 0.8fr);
    grid-template-areas: "sku pack angles next";
    padding: 10px 12px;
    border-radius: 10px;
  }
  .status-pack {
    text-align: left;
  }
  .status-angles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .status-angle::before {
    display: none;
  }
  .status-next {
    text-align: right;
  }
}


/* ───────── Open Jobs ───────── */
.oj-page .oj-board { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.oj-run-worker-foot {
  margin: 28px 0 16px;
  text-align: center;
}
.oj-run-worker-text {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 8px;
  margin: 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted, #6b6560);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.oj-run-worker-text:hover,
.oj-run-worker-text:focus-visible {
  color: var(--fg, #1a1a1a);
}
.oj-run-worker-text:disabled {
  opacity: 0.45;
  cursor: default;
  text-decoration: none;
}
.oj-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.oj-section-title .chip-count { margin-left: 6px; }
.oj-rows { display: flex; flex-direction: column; gap: 10px; }
.oj-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.oj-thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f1ec;
}
.oj-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.oj-thumb-empty { width: 100%; height: 100%; background: #ebe7df; }
.oj-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.oj-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.oj-updated { margin-top: 2px; font-size: 11px; color: var(--muted); opacity: 0.9; }
.oj-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.oj-status-chip {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f1ec;
}
.oj-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.oj-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  padding: 48px 16px;
}
.oj-loading .f28-mark {
  width: 40px;
  height: 40px;
}
/* legacy class kept empty so old cached HTML does not flash a ring */
.oj-loading-spin { display: none; }


/* Culling Sources strip — Garment / Model / Accessories */
.oj-cull-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}
.oj-cull-source {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  color: inherit;
}
button.oj-cull-source-thumb { cursor: zoom-in; }
.oj-cull-source-empty { cursor: default; }
.oj-cull-source-frame {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8e6e1;
  overflow: hidden;
}
.oj-cull-source-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f1ec;
}
.oj-cull-source-none {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 4.5rem;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.oj-cull-source-label {
  font-size: 11px;
  color: var(--muted);
}
button.oj-cull-source-thumb:hover .oj-cull-source-frame,
button.oj-cull-source-thumb:focus-visible .oj-cull-source-frame {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}

/* Culling — 2-col polaroid; frame owns 2:3 (padding outside, never on the img box) */
.oj-cull-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.oj-cull-cell { position: relative; }
.oj-cull-pick {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 6px 16px rgba(26, 26, 26, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}
.oj-cull-pick:hover {
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08), 0 10px 22px rgba(26, 26, 26, 0.1);
}
/* Polaroid matte sits OUTSIDE the aspect box so it can't skew img layout */
.oj-cull-frame {
  display: block;
  width: calc(100% - 16px);
  margin: 8px 8px 0;
  aspect-ratio: 2 / 3;
  background: #f3f1ec;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  isolation: isolate;
}
.oj-cull-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  max-width: none;
  max-height: none;
}
.oj-cull-num {
  display: block;
  padding: 12px 10px 20px;
  min-height: 2.6em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6B6B66;
  background: #fff;
  flex: 0 0 auto;
}
.oj-cull-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  z-index: 2;
}
.oj-cull-cell.is-selected .oj-cull-pick {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
  box-shadow: 0 2px 4px rgba(26, 26, 26, 0.08), 0 10px 22px rgba(26, 26, 26, 0.12);
}
.oj-cull-cell.is-selected .oj-cull-check {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.oj-cull-cell.is-selected .oj-cull-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.oj-cull-bar { margin-top: 8px; }
.oj-cull-footer { margin: 16px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.oj-cull-reject { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.oj-cull-reject .field-label { margin-bottom: 4px; }
.oj-cull-actions { margin-top: 4px; }
.oj-cull-actions .btn.danger:disabled { opacity: 0.45; cursor: not-allowed; }
.oj-cull-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.oj-cull-picks[hidden] { display: none !important; }
.oj-cull-pick-thumb {
  position: relative;
  width: 52px;
  height: 78px;
  padding: 0;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f4;
  cursor: pointer;
  flex: none;
}
.oj-cull-pick-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oj-cull-pick-thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}
.oj-cull-footer .oj-cull-continue {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}
.oj-cull-footer .oj-cull-continue:hover:not(:disabled),
.oj-cull-footer .oj-cull-continue:focus:not(:disabled) {
  text-decoration: none;
}
.oj-cull-footer .oj-cull-continue:disabled,
.oj-cull-footer .oj-cull-continue[disabled] {
  background: #e7e5e4;
  color: #a8a29e;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

/* Review and Save */
.oj-save-queue-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 4px;
}
.oj-save-queue-nav .btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.oj-save-queue-pos {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted, #6b6560);
  min-width: 3.5em;
  text-align: center;
}
.oj-save-stage {
  margin-top: 12px;
  touch-action: pan-y;
}
.oj-save-stage.is-zoomed {
  touch-action: none;
}
.oj-save-swipe { position: relative; }
.oj-save-slide { display: none; }
.oj-save-slide.is-active { display: block; }
.oj-save-frame {
  width: min(100%, 420px);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  background: #f3f1ec;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.oj-save-frame img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  touch-action: none;
}
.oj-save-cap {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.oj-save-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.oj-save-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d0c6;
  display: inline-block;
}
.oj-save-dots i.is-on { background: #1a1a1a; }

.oj-save-frame.is-zoomed {
  cursor: grab;
}
.oj-save-frame.is-zoomed:active {
  cursor: grabbing;
}

/* Desktop Review: Gen + Original side by side */
@media (min-width: 900px) {
  .oj-save-page {
    max-width: 1100px;
  }
  .oj-save-swipe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .oj-save-slide {
    display: block !important;
  }
  .oj-save-frame {
    width: 100%;
    max-width: none;
  }
  .oj-save-dots {
    display: none;
  }
  .oj-save-stage {
    touch-action: auto;
  }
}

.oj-save-footer { margin: 18px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.oj-save-footer .oj-save-repick {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
}
.oj-save-footer .oj-save-repick:hover,
.oj-save-footer .oj-save-repick:focus {
  text-decoration: none;
}



/* Confirm polish / Review Save — interactive 2:3 crop */
.oj-save-frame {
  position: relative;
}
.oj-save-stage.is-cropping {
  touch-action: none;
}
.oj-save-stage.is-cropping .oj-save-slide[data-oj-slide="orig"],
.oj-save-stage.is-cropping .oj-save-dots {
  opacity: 0.35;
  pointer-events: none;
}
.oj-crop-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: inherit;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.oj-crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  cursor: move;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.oj-crop-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  pointer-events: none;
}
.oj-crop-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  box-sizing: border-box;
  touch-action: none;
  z-index: 2;
  /* Expand hit target without growing the visible knob further */
}
.oj-crop-handle::before {
  content: '';
  position: absolute;
  inset: -14px;
}
/* Keep handles inside the box so overflow:hidden on the layer does not clip them on mobile */
.oj-crop-handle[data-h="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.oj-crop-handle[data-h="ne"] { right: 0; top: 0; cursor: nesw-resize; }
.oj-crop-handle[data-h="sw"] { left: 0; bottom: 0; cursor: nesw-resize; }
.oj-crop-handle[data-h="se"] { right: 0; bottom: 0; cursor: nwse-resize; }
@media (max-width: 899px) {
  .oj-crop-handle {
    width: 26px;
    height: 26px;
  }
  .oj-crop-handle::before {
    inset: -16px;
  }
}
.oj-save-footer-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.oj-save-footer-row .btn {
  flex: 1;
}
.oj-save-crop-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted, #6b6560);
  letter-spacing: 0.04em;
  margin: 0;
}
.oj-save-crop-controls[hidden],
.oj-save-main-controls[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .oj-save-stage.is-cropping .oj-save-swipe {
    grid-template-columns: 1fr;
  }
  .oj-save-stage.is-cropping .oj-save-slide[data-oj-slide="orig"] {
    display: none !important;
  }
  .oj-save-stage.is-cropping .oj-save-frame {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Filler Element empty slots */
.studio-acc-card.is-empty {
  opacity: 0.55;
  border-style: dashed;
  pointer-events: none;
  background: #fafaf9;
}


/* ── f/28 animated brand (Claude spinning mark) ── */
@keyframes f28spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.f28-mark {
  flex: none;
  color: #D98C3B;
  animation: f28spin 24s linear infinite;
  display: block;
}
.f28-mark .f28-mark-hub {
  fill: #F6F4EE;
}
.auth-page .f28-mark .f28-mark-hub,
.auth-card .f28-mark .f28-mark-hub,
.oj-loading .f28-mark .f28-mark-hub,
.loading .f28-mark .f28-mark-hub {
  fill: #F7F4EE;
}
.f28-mark-loading {
  animation: f28spin 1.2s linear infinite;
}
.f28-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, #1A1A1A);
  line-height: 1;
}
a.f28-brand.nav-logo {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  font-style: normal;
}
.f28-wordmark {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: inherit;
}
.f28-wordmark strong {
  font-weight: 800;
}
.f28-studio {
  font-weight: 400;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: #6B6B66;
  margin-left: 4px;
}
.auth-brand.f28-brand {
  justify-content: center;
  margin-bottom: 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: inherit;
  letter-spacing: normal;
  text-align: center;
}


/* Open Jobs tracking + Worker report (Chris Sep 15 2026) */
.oj-clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.oj-timeline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.oj-tl-step {
  position: relative;
  padding: 6px 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  border-top: 2px solid #ddd8cf;
}
.oj-tl-step.is-done { border-top-color: #2f6f4e; color: #1f4d35; }
.oj-tl-step.is-active { border-top-color: #c45c26; color: #8a3a12; font-weight: 600; }
.oj-tl-dot {
  display: none;
}
.oj-tl-label { display: block; }
.oj-tl-when { display: block; opacity: 0.85; margin-top: 2px; }
.oj-worker-report {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #e6e1d8;
}
.oj-worker-summary {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.45;
}
.oj-worker-summary.muted,
.oj-table .muted { color: var(--muted); }
.oj-table-title {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 8px;
}
.oj-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6e1d8;
  border-radius: 10px;
  background: #fff;
}
.oj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.oj-table th,
.oj-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #efebe3;
  vertical-align: top;
}
.oj-table th {
  background: #f7f4ee;
  font-weight: 600;
  white-space: nowrap;
}
.oj-table tr:last-child td { border-bottom: none; }
.oj-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}
@media (max-width: 720px) {
  .oj-timeline { grid-template-columns: 1fr 1fr; }
}


/* Open Jobs — live last status for Shooting / Polishing */
.oj-live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 0.35rem 0 0.25rem;
  font-size: 0.92rem;
}
.oj-live-status-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
}
.oj-live-status-value {
  font-weight: 600;
}
.oj-live-status-id.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  color: var(--muted, #6b7280);
}
.oj-live-status-updated {
  color: var(--muted, #6b7280);
}

/* Open Jobs — pack progress (yellow in-flight → green when all sheets done) */
.oj-row-pack .oj-title {
  font-size: 15px;
}
.oj-pack-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.35rem 0 0.35rem;
}
.oj-pack-progress-track {
  flex: 1;
  min-width: 80px;
  height: 8px;
  border-radius: 999px;
  background: #f0ebe3;
  overflow: hidden;
}
.oj-pack-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #e5a84b;
  transition: width 0.25s ease, background 0.25s ease;
}
.oj-pack-progress.is-complete .oj-pack-progress-fill {
  background: #3d9a5f;
}
.oj-pack-progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  white-space: nowrap;
}
.oj-pack-progress.is-complete .oj-pack-progress-label {
  color: #2f7a4a;
}

/* Open Jobs — sheet pipeline as light line bars (not a table) */
.oj-stage-wrap {
  margin: 0.2rem 0 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  max-width: 540px; /* Chris: wide enough for stage titles, still not full card */
  width: 100%;
}
.oj-stage-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 0 2px 0 calc(48px + 50px); /* label col + gap — align under bars */
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted, #6b7280);
  line-height: 1.15;
}
.oj-stage-tick-label {
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  font-size: 9px;
}
.oj-stage-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  column-gap: 28px;
  align-items: center;
}
.oj-stage-row-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.oj-stage-sheet {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink, #1a1a1a);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 96px;
}
.oj-stage-row.is-finished .oj-stage-sheet {
  color: #2f7a4a;
}
.oj-stage-current { display: none; }
.oj-stage-bar {
  min-width: 0;
  width: 100%;
}
.oj-stage-bar-track {
  position: relative;
  height: 8px; /* was 3px — too thin to see */
  border-radius: 999px;
  background: transparent;
  overflow: visible;
}
.oj-stage-segs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px; /* Chris: white 4px cell gaps */
  height: 8px;
  min-height: 8px;
  width: 100%;
  background: #fff;
  align-items: stretch;
}
.oj-stage-seg {
  display: block;
  height: 8px;
  min-height: 8px;
  min-width: 0;
  border-radius: 999px;
  background: #f0ebe3; /* todo */
}
.oj-stage-seg.is-done {
  background: #3d9a5f; /* finished steps */
}
.oj-stage-seg.is-active {
  background: #e5a84b; /* current step only */
}
.oj-stage-seg.is-todo {
  background: #f0ebe3;
}
.oj-stage-row.is-finished .oj-stage-seg.is-done,
.oj-stage-row.is-finished .oj-stage-seg.is-active {
  background: #3d9a5f;
}
.oj-stage-ticks,
.oj-stage-tick {
  display: none !important;
}

.oj-stage-seps, .oj-stage-sep { display: none !important; }
@media (max-width: 720px) {
  .oj-stage-legend {
    padding-left: 44px;
    font-size: 8px;
  }
  .oj-stage-row {
    grid-template-columns: 44px 1fr;
    gap: 8px;
    column-gap: 40px;
  }
  .oj-stage-sheet { font-size: 11px; }
  .oj-stage-tick-label { white-space: normal; }
}



/* Catalog shoot plan — garment detail flags (Ruched / Pockets) */
.psb-garment-detail-flags {
  margin-top: 0.65rem;
}
.psb-garment-detail-flags .field-label {
  margin-bottom: 0.35rem;
}
.psb-garment-detail-flags .gen-hint {
  margin: 0.35rem 0 0;
}


/* Full-page busy overlay — spinning f/28 mark (Publish, long uploads) */
.atelier-busy {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(2px);
  cursor: wait;
}
.atelier-busy[hidden] { display: none !important; }
.atelier-busy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  text-align: center;
  max-width: 320px;
}
.atelier-busy-card .f28-mark {
  width: 56px;
  height: 56px;
}
.atelier-busy-msg {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #1c1917);
}
.atelier-busy-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #78716c);
}
body.is-atelier-busy {
  overflow: hidden;
}
body.is-atelier-busy * {
  pointer-events: none !important;
}
body.is-atelier-busy .atelier-busy,
body.is-atelier-busy .atelier-busy * {
  pointer-events: auto !important;
}


/* Models → Casting pack thumbs (3×6 Sunburst) */
.casting-sheet-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: #f3f1ee;
  padding: 4px;
  box-sizing: border-box;
}
.casting-sheet-thumbs img,
.casting-sheet-thumb-ph {
  width: 100%;
  height: 100%;
  min-height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8e4df;
}
.casting-sheet-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8a8278;
  font-weight: 600;
}


/* ── Casting cull: Publish-style 2-wide selectable faces ── */
.casting-cull-grid.product-atelier-grid {
  margin: 0 0 12px;
  max-width: none;
  gap: 6px;
}
.casting-cull-tile {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.casting-cull-tile:hover,
.casting-cull-tile:focus-visible {
  border-color: var(--accent, #c45c26);
  outline: none;
}
.casting-cull-tile.selected {
  border-color: var(--accent, #c45c26);
  box-shadow: 0 0 0 2px rgba(196, 92, 38, 0.35);
}
.casting-cull-thumb {
  background: #1c1917;
}
.casting-cull-tile-empty {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: repeating-linear-gradient(
    -45deg,
    #2a2622,
    #2a2622 6px,
    #1c1917 6px,
    #1c1917 12px
  );
}
.casting-cull-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(20, 16, 12, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s, background 0.12s;
}
.casting-cull-tile.selected .casting-cull-check {
  opacity: 1;
  background: var(--accent, #c45c26);
  border-color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

/* Approve face INPUT — no reference placeholder (not solid tan fill) */
.rr-input-no-ref {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(220px, 85%);
  aspect-ratio: 1;
  margin: 4px auto 0;
  border: 1.5px dashed #c4b8a8;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 7px,
      rgba(196, 184, 168, 0.18) 7px,
      rgba(196, 184, 168, 0.18) 14px
    );
  color: #78716c;
  text-align: center;
  box-sizing: border-box;
  padding: 16px 12px;
}
.rr-input-no-ref-glyph {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px dashed #a8a29e;
  background:
    radial-gradient(circle at 50% 42%, transparent 38%, #a8a29e 39%, #a8a29e 42%, transparent 43%),
    linear-gradient(#a8a29e, #a8a29e) center 68% / 18px 2px no-repeat;
  opacity: 0.75;
}
.rr-input-no-ref-label {
  font-size: 13px;
  font-weight: 650;
  color: #57534e;
}
.rr-input-no-ref-sub {
  font-size: 11px;
  color: #a8a29e;
}
.rr-frame-input:has(.rr-input-no-ref) {
  background: #fafaf9;
}

.casting-cull-sheets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.casting-cull-sheet img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.model-card-casting .casting-sheet-thumbs {
  pointer-events: none;
}

/* Looks Slice 3 — Confirm look picker + model Looks library gallery */
.psb-look-picker { margin-top: 18px; }
.psb-look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.psb-look-card .studio-model-name { font-size: 12px; }
.looks-lib-grid { margin: 12px 0 8px; }
.looks-lib-tile { cursor: zoom-in; }
.looks-panel-extra { margin-top: 10px; }

/* Package recipe strip (front first-pass live preview) — restored from live prod,
   missing from git; JS (psb-recipe-strip / recipeStripHtmlForProduct) landed
   without it in forge/package-stack-missing-2026-09-18. */
.psb-recipe-strip {
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.65rem 0.6rem;
  border: 1px solid #e7e2db;
  border-radius: 14px;
  background: #fffcf8;
}
.psb-recipe-strip.is-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}
.psb-recipe-strip.is-compact {
  margin: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  background: #faf8f5;
  flex: 1;
  min-width: 0;
}
.psb-recipe-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.psb-recipe-strip.is-compact .psb-recipe-strip-head {
  margin-bottom: 0.25rem;
}
.psb-recipe-strip-head .field-label { margin: 0; font-size: 12px; }
.psb-recipe-strip-hint { font-size: 11px; }
.psb-recipe-strip.is-compact .psb-recipe-strip-hint { display: none; }
.psb-recipe-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}
.psb-recipe-cell {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.psb-recipe-strip.is-compact .psb-recipe-cell { width: 52px; }
.psb-recipe-label {
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink, #1c1917);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psb-recipe-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #efeae3;
  border: 1px solid #e7e2db;
}
.psb-recipe-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.psb-recipe-cell.is-swatch .psb-recipe-media img {
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.35);
  transform-origin: center 40%;
}
.psb-recipe-cream-swatch,
.psb-recipe-cell.is-cream .psb-recipe-media:has(img[style*="display: none"])::after,
.psb-recipe-cell.is-cream .psb-recipe-cream-swatch {
  display: block;
  width: 100%;
  height: 100%;
  background: #f2f0ed;
}
.psb-recipe-cream-swatch[hidden] { display: none !important; }
.psb-recipe-gap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted, #78716c);
  background: repeating-linear-gradient(
    -45deg,
    #f5f1eb,
    #f5f1eb 6px,
    #efeae3 6px,
    #efeae3 12px
  );
}
.psb-recipe-cell.is-skipped .psb-recipe-media {
  border-style: dashed;
  background: #f7f4ee;
}
.psb-recipe-cell.is-skipped .psb-recipe-gap { color: #78716c; }
.psb-recipe-cell.is-placeholder .psb-recipe-label { color: var(--muted, #78716c); }
.psb-cart-item-top .psb-recipe-strip {
  border-color: #ebe6df;
}
@media (max-width: 640px) {
  .psb-recipe-cell { width: 64px; }
  .psb-recipe-strip.is-compact .psb-recipe-cell { width: 48px; }
}
.oj-recipe-pop .psb-recipe-strip {
  margin: 0;
}
.oj-recipe-pop .psb-recipe-strip.is-compact {
  max-width: 100%;
}

/* Existing Model Set — real-life models (face plate + ideal poses) */
.exmodel-detail-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 16px 0 28px;
}
.exmodel-detail-face {
  width: 220px;
  flex: 0 0 220px;
  aspect-ratio: 3 / 4;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.exmodel-detail-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exmodel-edit-form {
  flex: 1 1 320px;
  min-width: 280px;
}
.exmodel-poses-section {
  margin-top: 8px;
}
.exmodel-pose-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 24px;
}
.exmodel-pose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.exmodel-pose-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  min-width: 0;
}
.exmodel-pose-shot {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg);
  overflow: hidden;
}
.exmodel-pose-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.exmodel-pose-note {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exmodel-pose-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.exmodel-pose-remove {
  width: 100%;
}
@media (max-width: 1100px) {
  .exmodel-pose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .exmodel-pose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.exmodel-pose-form {
  max-width: 480px;
}
.exmodel-pose-group {
  margin-bottom: 22px;
}
.exmodel-pose-group-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 8px;
}
.exmodel-pose-category-select {
  width: 100%;
  display: block;
}

/* Catalog Enhance wizard */
.exenh-step {
  margin: 0 0 28px;
}
.exenh-id-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 14px;
}
.exenh-id-row .text-input { flex: 1 1 auto; }
.exenh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.exenh-thumb {
  position: relative;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.exenh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1 1 auto;
}
/* Catalog Enhance marks the chosen thumb is-selected, Catalog AI marks it
   is-picked — the second had no rule, so the garment you chose looked the same
   as the four you did not. */
.exenh-thumb.is-selected,
.exenh-thumb.is-picked {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.exenh-model-thumb {
  aspect-ratio: 3 / 4.4;
}
.exenh-thumb-label {
  font-size: 12px;
  padding: 4px 6px;
  background: var(--card);
  text-align: center;
  flex: 0 0 auto;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.field-hint {
  font-size: 12px;
  color: var(--muted, #888);
  margin: 4px 0 12px;
}
.exenh-substep {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Catalog Enhance — Open Jobs review page */
.model-card-body-static {
  padding: 14px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exenh-review-card .model-card-actions {
  padding: 8px 16px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Open Jobs is a wall of photographs to judge, so the picture gets the room and
   the chrome gets out of the way: no card outline, tighter gutters, wider cells,
   and Approve/Remove on one line instead of wrapping. Scoped to .oj-grid so the
   other screens that share .model-grid and .shop-model-card are untouched. */
.oj-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.oj-grid .shop-model-card { border: none; background: none; }
.oj-grid .shop-model-card:hover { border: none; box-shadow: none; }
.oj-grid .model-card-body-static { padding: 8px 2px 2px; }
.oj-grid .exenh-review-card .model-card-actions {
  padding: 6px 2px 10px;
  flex-wrap: nowrap;
  gap: 6px;
}
.oj-grid .exenh-review-card .model-card-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.exenh-review-card .model-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Catalog Enhance — lightbox */
.exenh-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.exenh-lightbox-backdrop { z-index: 400; }
.exenh-lightbox {
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.exenh-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.exenh-lightbox-image {
  flex: 1 1 auto;
  min-height: 0;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  cursor: zoom-in;
}
.exenh-lightbox-image img {
  /* Fill the frame rather than cap at it: max-* only scales down, so a 667px
     plate rendered at natural size next to a 2336px result made the two tabs
     different sizes and the comparison useless. width/height 100% + contain
     letterboxes every view to the same displayed scale. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: inherit;
}
.exenh-lightbox-image.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  cursor: zoom-out;
}
.exenh-lightbox-image.is-zoomed img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: none;
}
.exenh-lightbox-actions {
  margin-top: 14px;
}

/* Catalog Enhance — recipe builder + step wizard */
.enh-recipe {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px;
  margin: 0 0 18px;
}
.enh-recipe-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.enh-recipe-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.enh-recipe-slot:disabled {
  cursor: default;
  opacity: 0.45;
}
.enh-recipe-slot.is-current {
  border-color: var(--accent);
  background: var(--card-2, rgba(0, 0, 0, 0.03));
}
.enh-recipe-thumb,
.enh-recipe-stack,
.enh-recipe-chip {
  flex: 0 0 auto;
  width: 44px;
  height: 56px;
  border: 1px solid var(--line);
  background: var(--card-2, rgba(0, 0, 0, 0.04));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enh-recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.enh-recipe-thumb.is-empty {
  border-style: dashed;
}
.enh-recipe-stack {
  position: relative;
  width: 60px;
}
.enh-recipe-stack img {
  position: absolute;
  top: 0;
  width: 44px;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid var(--card);
}
.enh-recipe-stack img:nth-child(1) { left: 0; z-index: 3; }
.enh-recipe-stack img:nth-child(2) { left: 8px; z-index: 2; }
.enh-recipe-stack img:nth-child(3) { left: 16px; z-index: 1; }
.enh-recipe-more {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 4;
  font-size: 11px;
  padding: 0 4px;
  background: var(--card);
  border: 1px solid var(--line);
}
.enh-recipe-chip {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 0 4px;
  line-height: 1.2;
}
.enh-recipe-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.enh-recipe-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #888);
}
.enh-recipe-value {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enh-recipe-slot:not(.is-filled) .enh-recipe-value {
  color: var(--muted, #888);
}

.enh-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.enh-progress-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted, #888);
}
.enh-progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
}
.enh-progress-item.is-current {
  color: var(--text, inherit);
  font-weight: 600;
}
.enh-progress-item.is-current .enh-progress-num {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.enh-progress-item.is-done .enh-progress-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.enh-step-panel {
  min-height: 220px;
  margin-bottom: 20px;
}
.enh-step-title {
  font-size: 20px;
  margin: 0 0 4px;
}
.enh-step-sub {
  font-size: 13px;
  color: var(--muted, #888);
  margin: 0 0 16px;
  max-width: 62ch;
}
.enh-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  font-size: 13px;
  margin: 0 0 12px;
}
.enh-vision-note {
  font-size: 13px;
  margin: 0 0 14px;
}
.enh-vision-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 1px 6px;
  margin-right: 6px;
}

.enh-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.enh-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.enh-choice.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.enh-choice-label {
  font-size: 15px;
  font-weight: 600;
}
.enh-choice-flag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.enh-choice-hint {
  font-size: 12px;
  color: var(--muted, #888);
}

.enh-pose-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.enh-pose-count {
  font-size: 13px;
  color: var(--muted, #888);
}
.enh-pose-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.exenh-thumb.is-selected .enh-pose-check {
  background: var(--accent);
  border-color: var(--accent);
}
.exenh-thumb.is-selected .enh-pose-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.enh-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.enh-summary div {
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.enh-summary dt {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #888);
  margin: 0 0 2px;
}
.enh-summary dd {
  margin: 0;
  font-size: 14px;
}

.enh-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* Catalog Enhance — sub-step headings + recipe secondary line */
.enh-substep-title {
  font-size: 16px;
  margin: 0 0 4px;
}
.enh-recipe-sub {
  font-size: 12px;
  color: var(--muted, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enh-recipe-row {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* Existing Model Set — front/side/back pose sets */
.exmodel-set-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.exmodel-set-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 14px 16px;
}
.exmodel-set-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.exmodel-sets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.exmodel-set-filters {
  margin: 10px 0 14px;
}
/* The builder needs room for a product's whole image grid, so it overrides the
   420px confirm-dialog width and scrolls internally on short screens. */
.exmodel-setbuilder-modal {
  max-width: 760px;
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
}
.exmodel-setbuilder-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}
.exmodel-setbuilder-close:hover { color: var(--ink, #111); }
.exmodel-group-empty {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}
.exmodel-set-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.exmodel-set-category-select {
  width: auto;
  min-width: 150px;
}
@media (max-width: 760px) {
  .exmodel-set-head {
    flex-direction: column;
    align-items: stretch;
  }
  .exmodel-set-head-actions { justify-content: space-between; }
  .exmodel-set-category-select { min-width: 0; flex: 1 1 auto; }
}
.exmodel-set-name {
  font-size: 16px;
  margin: 0;
}
.exmodel-set-meta {
  font-size: 12px;
  color: var(--muted, #888);
}
.exmodel-set-angles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}
.exmodel-set-angle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exmodel-set-angle .exmodel-pose-shot {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}
.exmodel-set-angle .exmodel-pose-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.exmodel-set-angle .exmodel-pose-shot.is-empty {
  border-style: dashed;
  background: var(--card-2, rgba(0, 0, 0, 0.03));
}
.exmodel-set-angle-label {
  font-size: 12px;
  color: var(--muted, #888);
  text-align: center;
}
.exmodel-set-angle.is-empty .exmodel-set-angle-label {
  opacity: 0.6;
}

/* set builder */
.exmodel-setbuilder {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
}
.exmodel-set-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
  margin: 0 0 16px;
}
.exmodel-set-slot {
  position: relative;
  border: 2px dashed var(--line);
  background: var(--card-2, rgba(0, 0, 0, 0.03));
  padding: 0;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exmodel-set-slot.is-active {
  border-color: var(--accent);
  border-style: solid;
}
.exmodel-set-slot.is-filled {
  border-style: solid;
}
.exmodel-set-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1 1 auto;
}
.exmodel-set-slot-empty {
  flex: 1 1 auto;
}
.exmodel-set-slot-label {
  font-size: 12px;
  padding: 4px 6px;
  background: var(--card);
  text-align: center;
  flex: 0 0 auto;
}
.exmodel-set-slot-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
}
.exmodel-set-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

/* Catalog Enhance — pose sets in the wizard */
.enh-set {
  margin: 0 0 18px;
}
.enh-set-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.enh-set-name {
  font-size: 14px;
  font-weight: 600;
}
.enh-set-meta {
  font-size: 12px;
  color: var(--muted, #888);
  margin-right: auto;
}
.enh-set-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  max-width: 560px;
}
.enh-set-head .btn.sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* --- AI Model Set --------------------------------------------------------- */

/* Face plate beside its description: the plate is the identity everything else
   descends from, so it gets the room. */
.aim-face-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.aim-face-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.aim-face-empty {
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.aim-face-body { min-width: 0; }

/* A look shows front and back together — the back view is what makes a
   back-angle plate carry the hairstyle, so its absence should be visible. */
.aim-look-plates { display: flex; gap: 10px; }
/* Was width:50%, so a look with no back view filled half its column and read as
   a small thumbnail. Share the row when there are two, take it when there is one. */
.aim-look-plates img { width: auto; flex: 1 1 0; min-width: 0; }

.aim-look-media > :first-child { flex: 2 1 0; }
.aim-look-note {
  font-size: 12px;
  color: var(--muted, #8a8279);
  margin: 4px 0 0;
}

/* A set's three angles, in order. */
/* Sets are named after the product, so several share a name — the plates are
   what actually tell them apart. */
.aim-source-plates { display: flex; gap: 3px; flex: 0 0 auto; }
.aim-source-plates img {
  width: 34px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--line, #d8d3cc);
}

/* Copying a whole set onto an AI model, inside the set builder. */
.aiset-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin: 8px 0 14px;
  max-height: 320px;
  overflow-y: auto;
}
.aiset-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line, #d8d3cc);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.aiset-source:hover { border-color: var(--accent, #b08968); }
.aiset-source .aim-source-plates img { width: 46px; height: 66px; }
.aiset-source small { display: block; color: var(--muted, #8a8279); font-size: 11px; }
.aim-gest-row { display: flex; gap: 10px; align-items: center; margin: 4px 0 2px; }
.aim-gest-row select { max-width: 160px; }

/* The morning pick: two takes side by side, the chosen one ringed. */
.aim-review-row { margin-bottom: 16px; }
.aim-cand-row { display: flex; gap: 12px; flex-wrap: wrap; }
.aim-cand {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 4px;
  background: none;
  cursor: pointer;
  width: 220px;
}
.aim-cand img { width: 100%; border-radius: 8px; display: block; }
.aim-cand:hover { border-color: var(--line, #d8d3cc); }
.aim-cand.chosen { border-color: var(--accent, #b08968); }
.aim-cand-label {
  display: block;
  font-size: 12px;
  color: var(--muted, #8a8279);
  margin-top: 4px;
}
.chip-count.danger { color: #a33; }
.chip-count.pending { opacity: 0.7; }
.chip.chip-legacy { opacity: 0.75; font-style: italic; }

@media (max-width: 720px) {
  .aim-face-card { grid-template-columns: 1fr; }
  .aim-cand { width: 100%; }
}

/* The app has .field-label as a standalone element but no wrapping .field, so
   these forms carry their own. Scoped to avoid defining a generic class other
   pages might later collide with. */
.aim-field { display: block; margin-bottom: 14px; }
.aim-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.aim-field input[type="text"],
.aim-field textarea {
  width: 100%;
  box-sizing: border-box;
}
.aim-field .field-hint { margin-bottom: 0; }

/* --- Catalog AI ----------------------------------------------------------- */

.cai-set { margin: 14px 0; }
.cai-set-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.cai-set-head small { color: var(--muted, #8a8279); font-size: 12px; }
.cai-pose-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cai-pose {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 3px;
  background: none;
  cursor: pointer;
  width: 120px;
}
.cai-pose img { width: 100%; border-radius: 7px; display: block; }
.cai-pose span {
  display: block;
  font-size: 12px;
  color: var(--muted, #8a8279);
  text-transform: capitalize;
  margin-top: 3px;
}
.cai-pose:hover { border-color: var(--line, #d8d3cc); }
.cai-pose.is-picked { border-color: var(--accent, #b08968); }

/* A look shows front and back together: on a back plate the back view is what
   lets the hairstyle change at all, so its absence has to be visible here. */
.cai-looks { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cai-look {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 4px;
  background: none;
  cursor: pointer;
  width: 190px;
  text-align: left;
}
.cai-look-plates { display: flex; gap: 4px; }
.cai-look-plates img { width: 100%; border-radius: 7px; display: block; }
.cai-look:hover { border-color: var(--line, #d8d3cc); }
.cai-look.is-picked { border-color: var(--accent, #b08968); }
.cai-look > span { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; }
.cai-warn { display: block; font-size: 11px; color: #a33; margin-top: 2px; }

.exenh-review-plates { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.exenh-review-plates figure { margin: 0; width: 150px; }
.exenh-review-plates img { width: 100%; border-radius: 8px; display: block; }
.exenh-review-plates figcaption {
  font-size: 11px;
  color: var(--muted, #8a8279);
  text-align: center;
  margin-top: 3px;
}
.form-ok { color: #2a7; font-size: 13px; }

/* --- eye line picker ------------------------------------------------------ */
.exenh-needs-eyes { color: #a33; }
.eyl-modal { max-width: min(96vw, 1100px); }
.eyl-panes { display: flex; gap: 14px; margin: 12px 0; }
.eyl-pane { flex: 1 1 0; margin: 0; min-width: 0; }
.eyl-pane figcaption {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 4px;
}
.eyl-count { font-weight: 400; color: var(--muted, #8a8279); }
.eyl-clear { padding: 0 6px; font-size: 11px; }
.eyl-canvas {
  position: relative; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; line-height: 0;
}
.eyl-pane.is-active .eyl-canvas { border-color: var(--accent, #b08968); cursor: crosshair; }
.eyl-pane.is-done .eyl-canvas { border-color: #2a7; }
.eyl-canvas img { width: 100%; display: block; user-select: none; }
/* the mark sits on the click, so its centre is the anchor */
.eyl-dot {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid #fff; background: rgba(220, 60, 60, 0.9);
  display: grid; place-items: center; pointer-events: none;
}
.eyl-dot b { color: #fff; font-size: 10px; line-height: 1; }
@media (max-width: 760px) { .eyl-panes { flex-direction: column; } }

/* --- Catalog Enhance: operator adjustments --------------------------------- */
.exadj { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.exadj-defs { position: absolute; width: 0; height: 0; }
.exadj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.exadj-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.exadj-caret { font-size: 11px; color: var(--muted, #8a8279); }
.exadj-state { font-variant-numeric: tabular-nums; }
.exadj-sliders { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.exadj-slider { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 12px; }
.exadj-name { font-size: 13px; color: var(--muted); }
.exadj-slider input[type="range"] { width: 100%; accent-color: var(--accent, #b56576); }
.exadj-slider output { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.exadj-actions { margin: 0; }
@media (max-width: 760px) { .exadj-slider { grid-template-columns: 80px 1fr 48px; gap: 8px; } }
.exadj-stage { position: relative; display: block; }
.exadj-stage img { display: block; width: 100%; }
.exadj-over { position: absolute; inset: 0; height: 100%; }
.exadj-scope { font-weight: 400; margin-left: 6px; }
.exadj-compare { display: flex; gap: 12px; align-items: flex-start; justify-content: center; }
.exadj-side { margin: 0; flex: 1 1 0; min-width: 0; }
/* the image being judged gets the room; the two references only need to be
   readable enough to compare skin and fabric against */
.exadj-side.is-subject { flex: 1.35 1 0; }
.exadj-side figcaption { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .exadj-compare { flex-direction: column; } }
.exmodel-set-angle-edit { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.exmodel-angle-select { padding: 4px 6px; font-size: 12px; flex: 1 1 auto; min-width: 0; }
.exmodel-set-angle-edit .btn.sm { padding: 4px 8px; font-size: 12px; }

/* --- pulling pose sets off product pages ----------------------------------- */
.intake-modal { max-width: min(96vw, 1180px); max-height: 88vh; overflow: auto; }
.intake-urls { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.intake-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.intake-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.intake-card.needs-category { border-color: var(--danger, #b3261e); }
.intake-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.intake-card-head .gen-hint { margin-left: 8px; }
.intake-card-tags select { padding: 5px 8px; font-size: 13px; }
.intake-frames { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.intake-frame { flex: 0 0 auto; width: 108px; padding: 0; border: 2px solid transparent;
  border-radius: 10px; background: none; cursor: pointer; position: relative; overflow: hidden; }
.intake-frame img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.intake-frame-tag { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; padding: 3px 0;
  text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,.62); color: #fff; }
.intake-frame.is-off img { opacity: .38; filter: grayscale(1); }
.intake-frame.is-off .intake-frame-tag { background: rgba(0,0,0,.35); }
.intake-frame.is-front { border-color: #2e7d32; }
.intake-frame.is-side  { border-color: #1565c0; }
.intake-frame.is-back  { border-color: #7b1fa2; }
@media (max-width: 700px) { .intake-frame { width: 88px; } }

/* --- Catalog AI: rules its markup asks for but the sheet never had -----------
 * The screen was written against class names with no rule behind them, so the
 * garment thumbs had no width constraint and stretched to the full column —
 * one product image per screenful. These match the Catalog Enhance equivalents
 * so the two screens read the same. */
.exenh-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.exenh-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.exenh-model {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 3px;
  background: none;
  cursor: pointer;
  text-align: center;
}
.exenh-model img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.exenh-model span { display: block; font-size: 12px; margin-top: 4px; }
.exenh-model:hover { border-color: var(--line, #d8d3cc); }
.exenh-model.is-picked { border-color: var(--accent, #b08968); }
.exenh-model-empty {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 7px;
  background: var(--line, #ece7e1);
}
.exenh-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.exenh-review { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0; }
.exenh-review dt { color: var(--muted, #8a8279); font-size: 13px; }
.exenh-review dd { margin: 0; font-size: 13px; }
.enh-progress-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.enh-progress-btn[disabled] { cursor: default; opacity: .55; }
.enh-progress-label { font-size: 13px; }
.exadj-dropper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.exadj-dropper .btn.sm { padding: 4px 10px; font-size: 12px; }
.exadj-side.is-dropper .exadj-stage { cursor: crosshair; }
.exadj-side.is-dropper .exadj-stage { outline: 2px dashed var(--accent, #b08968); outline-offset: 2px; }
.exadj-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; font-size: 10px; line-height: 15px; text-align: center; pointer-events: none; }
.exadj-swatches { display: inline-flex; gap: 6px; }
.exadj-swatch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.exadj-swatch i { display: block; width: 16px; height: 16px; }
.exadj-hex { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  color: var(--muted); margin-left: auto; }
.exadj-slider input[type="range"][data-adj="red"]   { accent-color: #c0392b; }
.exadj-slider input[type="range"][data-adj="green"] { accent-color: #27795b; }
.exadj-slider input[type="range"][data-adj="blue"]  { accent-color: #2a5d9e; }
.exmodel-pose-shot.is-fillable { border: 1px dashed var(--line); background: none; cursor: pointer;
  color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 2/3; border-radius: 8px; }
.exmodel-pose-shot.is-fillable:hover { border-color: var(--accent, #b08968); color: var(--fg); }
.feature-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 2px; }
.feature-box { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.feature-box input { margin: 0; }
.feature-box input:checked + span { color: var(--fg); font-weight: 600; }
.enh-feature-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.intake-frame.is-nursing_detail { border-color: #b8860b; }
.aiset-slots { display: flex; gap: 10px; margin: 12px 0; }
.aiset-slot { margin: 0; flex: 1 1 0; border: 2px solid transparent; border-radius: 10px; padding: 4px; cursor: pointer; text-align: center; }
.aiset-slot.is-active { border-color: var(--accent, #b08968); }
.aiset-slot img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 7px; display: block; }
.aiset-empty { width: 100%; aspect-ratio: 2/3; border: 1px dashed var(--line); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.aiset-slot figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* The three compare panes are different photographs at different aspect ratios,
   so left to themselves they end at different heights and the captions stagger.
   One height, images fitted inside it. */
.exadj-compare { align-items: stretch; }
.exadj-side { display: flex; flex-direction: column; }
/* The stage has to be exactly as wide as the image it holds. It used to be as
   wide as the column, which left the adjusted image's overlay — positioned
   inset:0 on the STAGE — covering a wider box than the photo underneath, so it
   contained itself down to a different size. The tone-picker dots are placed as
   a percentage of the stage too, so they drifted for the same reason. */
.exadj-side .exadj-stage { flex: 1 1 auto; display: flex; align-items: flex-start;
  justify-content: center; width: fit-content; max-width: 100%; margin-inline: auto; }
.exadj-side .exadj-stage > img,
.exadj-side .exadj-stage .exadj-under { height: 62vh; width: auto; max-width: 100%; object-fit: contain; }
.exadj-side .exadj-stage .exadj-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.exadj-side figcaption { flex: 0 0 auto; }
/* The prompt as sent — long, so it scrolls rather than stretching the lightbox. */
/* What shaped the prompt, above the prompt itself. */
.exenh-prompt-wrap { text-align: left; }
.exenh-prompt-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; padding: 0 2px; }
.exenh-prompt-meta div { display: flex; gap: 6px; align-items: baseline; }
.exenh-prompt-meta dt { margin: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted, #8a8279); }
.exenh-prompt-meta dd { margin: 0; font-size: 13px; font-weight: 600; }
.exenh-prompt { max-height: 70vh; overflow: auto; margin: 0; padding: 14px 16px;
  white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55;
  background: var(--surface-2, #f5f3f0); border-radius: 8px; text-align: left; }
@media (max-width: 700px) { .exadj-side .exadj-stage > img,
  .exadj-side .exadj-stage .exadj-under { height: auto; width: 100%; } }

/* The recast prompt, opened in place on a pose set card. Matches the review
   lightbox's prompt panel so the same text reads the same in both places. */
.aim-set-prompt { max-height: 52vh; overflow: auto; margin: 10px 0 0; padding: 14px 16px;
  white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55;
  background: var(--surface-2, #f5f3f0); border-radius: 8px; text-align: left; }


/* Catalog Twin's model step now lists both libraries, so an AI model has to say
   what it carries — how many looks and plates — and a half-built one has to look
   unavailable rather than merely fail on click. */
.exenh-thumb-sub { display: block; font-size: 11px; opacity: .65; line-height: 1.3; }
.exenh-thumb.is-unusable { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.exenh-thumb.is-unusable:hover { border-color: var(--line, #e2ddd7); box-shadow: none; }

/* --- AI model look page ---------------------------------------------------
   A pose set is judged by looking at it, so the plates are the card and the
   card is the button. Three fill the width; a fourth scrolls sideways rather
   than shrinking the other three, because the point is to see them. */
.aim-sets { display: grid; gap: 22px; }
.aim-set { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: none; border: none; border-radius: 12px; }
.aim-set:focus-visible { outline: 2px solid var(--ink, #2a2622); outline-offset: 4px; }
.aim-set-plates { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding-bottom: 4px; }
.aim-set-plates::-webkit-scrollbar { height: 6px; }
.aim-set-plates::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 3px; }
/* three across the content width, gaps included */
.aim-set-plate { flex: 0 0 calc((100% - 20px) / 3); margin: 0; scroll-snap-align: start;
  border-radius: 10px; overflow: hidden; background: var(--surface-2, #f5f3f0); }
.aim-set-plate img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.aim-set-empty { flex: 1; padding: 40px 0; text-align: center; border-radius: 10px;
  background: var(--surface-2, #f5f3f0); color: var(--ink-3, #8a827a); font-size: 13px; }
.aim-set-foot { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 2px 0; }
.aim-set-name { font-size: 15px; font-weight: 600; }
.aim-set-meta { font-size: 13px; color: var(--ink-3, #8a827a); }
.aim-set:hover .aim-set-name { text-decoration: underline; }

/* The set, opened: everything it can do, none of it on the grid. */
.aim-panel-host { position: fixed; inset: 0; z-index: 90; }
.aim-panel-scrim { position: absolute; inset: 0; background: rgba(20,18,16,.45); }
.aim-panel { position: absolute; inset: 3vh 50% auto auto; transform: translateX(50%);
  width: min(980px, 94vw); max-height: 94vh; overflow: auto; padding: 22px;
  background: var(--surface, #fff); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.aim-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aim-panel-head h2 { margin: 0; font-size: 20px; }
.aim-panel-plates { display: flex; gap: 12px; overflow-x: auto; margin: 16px 0 22px; }
.aim-panel-plate { flex: 0 0 calc((100% - 24px) / 3); margin: 0; }
.aim-panel-plate img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 10px; background: var(--surface-2, #f5f3f0); }
.aim-panel-plate figcaption { padding-top: 6px; font-size: 12px; color: var(--ink-3, #8a827a); }
.aim-panel-add h3 { margin: 0 0 4px; font-size: 15px; }
.aim-panel-angles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.aim-panel-angle { display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line, #e2ddd7);
  background: var(--surface-2, #f5f3f0); }
.aim-panel-angle:hover { border-style: solid; }
.aim-panel-angle.is-busy { opacity: .6; cursor: progress; }
.aim-panel-angle-name { font-size: 14px; }
.aim-panel-angle-act { font-size: 12px; color: var(--ink-3, #8a827a); }
.aim-panel-tags { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 18px; }
.aim-panel-field { display: grid; gap: 5px; min-width: 210px; }
.aim-panel-field > span { font-size: 12px; color: var(--ink-3, #8a827a); }
.aim-panel-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line, #e2ddd7); }
.aim-panel-foot .btn.primary { margin-left: auto; }
@media (max-width: 700px) {
  .aim-set-plate { flex-basis: calc((100% - 10px) / 2); }
  .aim-panel-plate { flex-basis: calc((100% - 12px) / 2); }
  .aim-panel { inset: 0; transform: none; width: 100vw; max-height: 100vh; border-radius: 0; }
  .aim-panel-foot .btn.primary { margin-left: 0; width: 100%; }
}

/* --- Looks, on the AI model page ------------------------------------------
   A look is a face: give it the room and drop the frame. The notes that
   produced it are not what you pick one by, so only the set count stays. */
.aim-looks { display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aim-look { display: block; }
.aim-look .aim-look-media { display: block; border-radius: 12px; overflow: hidden;
  background: var(--surface-2, #f5f3f0); }
.aim-look .aim-look-media img { display: block; width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; }
.aim-look-foot { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 0; }
.aim-look-name { font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--ink, #2a2622); }
.aim-look-name:hover { text-decoration: underline; }
.aim-look-sets { font-size: 13px; color: var(--ink-3, #8a827a); }
/* Destructive, so it stays out of the way until the row is under the cursor. */
.aim-look-del { margin-left: auto; padding: 0; border: none; background: none;
  font-size: 12px; color: var(--ink-3, #8a827a); cursor: pointer;
  opacity: 0; transition: opacity .12s ease; }
.aim-look:hover .aim-look-del, .aim-look-del:focus-visible { opacity: 1; }
.aim-look-del:hover { color: var(--danger, #b3261e); text-decoration: underline; }
@media (hover: none) { .aim-look-del { opacity: 1; } }

/* The back link had an inline margin and sat directly against the look plate,
   which read as overlapping it. Its own row, with room beneath. */
.aim-back-row { margin: 0 0 18px; }
.aim-face-card { padding-top: 18px; }

/* Add pose set belongs on the chip line, at the far end — it wrapped onto its
   own row because the section was a plain block. Scoped: .approvals-filters is
   shared with the approvals page, which wants its current stacking. */
.aim-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aim-filters .approvals-filter-chips { flex: 1 1 auto; min-width: 0; }
.aim-filters #aimAddSet { margin-left: auto; flex: 0 0 auto; }

/* Her plate is the reference every set below is judged against, so give it room. */
.aim-face-card { grid-template-columns: minmax(240px, 380px) 1fr; gap: 26px; }
@media (max-width: 700px) {
  .aim-face-card { grid-template-columns: 1fr; }
}

/* Add look is a <label> wrapping a hidden file input, so it gets none of the
   cursor and layout the `button` element selector supplies, and a plain
   .title-row does not lay out — only .title-row.plp-title-row does. Both are
   why it rendered as text stacked under the heading. */
.aim-looks-head { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.aim-looks-head .section-title { margin: 0; }
.aim-add-look { display: inline-flex; align-items: center; cursor: pointer;
  padding: 12px 22px; font-size: 15px; line-height: 1; }

/* Add a pose set: browse per angle, nothing else. */
.aiset-slot.is-filled img { display: block; width: 100%; border-radius: 8px; }
.aiset-slot-empty { aspect-ratio: 2 / 3; border-radius: 8px; border: 1px dashed var(--line, #e2ddd7);
  background: var(--surface-2, #f5f3f0); }
.aiset-slot figcaption small { color: var(--muted, #8a8279); font-weight: 400; }
.aiset-browse { display: inline-flex; align-items: center; cursor: pointer; }
.aiset-browse.is-busy { opacity: .6; cursor: progress; }

/* Add an AI model: name, headshot, done. */
.aimnew-face { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 4px; }
.aimnew-face > img, .aimnew-face > .aiset-slot-empty { width: 170px; flex: 0 0 auto;
  border-radius: 10px; display: block; }
.aimnew-face > img { object-fit: cover; aspect-ratio: 3 / 4; }
.aimnew-face-side { display: grid; gap: 6px; align-content: start; }

/* --- Everyone in the catalog ----------------------------------------------
   The profile pictures are 300x300 PNGs cut out with transparency, so they get
   a filled circle behind them: flattened onto a known colour, the alpha cannot
   render as black, and a face that does not fill its frame still sits in a
   clean round tile. */
.cat-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cat-head .section-title { margin: 0 0 2px; }
.cat-head .plp-sub { margin: 0; }
.cat-grid { display: grid; gap: 20px 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-model { text-align: center; min-width: 0; }
.cat-model-face { width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 50%;
  overflow: hidden; background: var(--surface-2, #f5f3f0);
  border: 1px solid var(--line, #e2ddd7); display: grid; place-items: center; }
.cat-model-face img { width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; }
.cat-model-name { font-size: 14px; font-weight: 600; line-height: 1.25;
  overflow-wrap: anywhere; }
.cat-model-meta { font-size: 13px; margin-top: 2px; }
.cat-model-split { font-size: 11px; color: var(--muted, #8a8279); margin-top: 2px;
  line-height: 1.3; }
.cat-pager { display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 24px; }
.cat-pager-count { font-size: 13px; color: var(--muted, #8a8279); }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .cat-model-face { width: 88px; height: 88px; }
}

/* Composite on/off, in the review lightbox toolbar. */
.exenh-composite { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; margin-left: auto; padding-right: 10px; white-space: nowrap; }
.exenh-composite input { cursor: pointer; }
.exenh-lightbox-toolbar { gap: 10px; }

/* --- Open Jobs lightbox on a phone ------------------------------------------
   At 375px the desktop lightbox had nowhere to go: eight view pills, the
   composite box and Close fought for one row, the picture was a fixed 65vh
   inside a 92vh box, and Retry/Approve fell off the bottom with no way to
   scroll to them. On a phone it becomes a full-screen sheet that scrolls as a
   whole: Close and the composite box pinned at the top, the pills a single
   swipeable row under them, the picture full width, the actions after it. */
@media (max-width: 700px) {
  body:has(.exenh-lightbox-backdrop) { overflow: hidden; }
  .exenh-lightbox-backdrop { padding: 0; align-items: stretch; }
  .exenh-lightbox {
    max-width: none; max-height: none; height: 100vh; height: 100dvh;
    border-radius: 0; padding: 0 0 calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .exenh-lightbox-toolbar {
    position: sticky; top: 0; z-index: 2; background: #fff;
    flex-wrap: wrap; gap: 8px; margin: 0;
    padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid var(--line);
  }
  .exenh-composite { order: 1; margin-left: 0; padding: 0; font-size: 14px; }
  .exenh-composite input { width: 20px; height: 20px; }
  #lbClose { order: 2; margin-left: auto; }
  .exenh-lightbox-toolbar .chip-row {
    order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0; position: relative;
    padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .exenh-lightbox-toolbar .chip-row::-webkit-scrollbar { display: none; }
  .exenh-lightbox-toolbar .chip { flex: 0 0 auto; white-space: nowrap; }
  /* The picture sizes itself to the width rather than to a fixed height, so a
     2:3 result fills the phone instead of sitting letterboxed in grey. */
  .exenh-lightbox-image { flex: none; height: auto; min-height: 0; }
  .exenh-lightbox-image > img { width: 100%; height: auto; max-height: 78dvh; }
  .exenh-lightbox-image.is-zoomed { height: 78dvh; }
  .exenh-lightbox-image.is-zoomed > img { max-height: none; }
  .exenh-lightbox-image .exadj-compare { padding: 10px 12px 0; width: 100%; }
  .exenh-prompt-wrap { padding: 12px; width: 100%; }
  .exenh-prompt { max-height: none; }
  .exenh-lightbox-actions { margin-top: 12px; padding: 0 12px; }
  .exenh-lightbox .exadj { padding: 0 12px; }
  /* 16px stops iOS zooming the page when the field is focused. */
  .exenh-lightbox .text-input { font-size: 16px; }
  .exenh-lightbox-actions .create-actions { justify-content: stretch; }
  .exenh-lightbox-actions .create-actions .btn { flex: 1 1 0; }
  .exenh-approve-row .btn { width: 100%; }
  .exenh-approve-row .gen-hint { display: block; margin-top: 6px; }
}
/* Two across on a phone, not one — the review wall is for scanning. */
@media (max-width: 560px) {
  .oj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .oj-grid .exenh-review-card .model-card-actions { flex-wrap: wrap; }
  .oj-grid .exenh-review-card .model-card-actions .btn { flex: 1 1 100%; padding: 8px 6px; }
}

/* --- Photos from the library or the camera (New Real Models) -------------- */
.photo-pick { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.exmodel-face-photo { margin-top: 10px; }
.exmodel-pose-shot.is-fillable { cursor: pointer; }
.realset-slots .aiset-slot { cursor: default; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.realset-slots .aiset-slot img, .realset-slots .aiset-slot-empty { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.realset-slots .aiset-slot { min-width: 0; }
.realset-slots .photo-pick { justify-content: center; }
.realset-slots .photo-pick .btn { padding: 6px 10px; font-size: 12px; }
@media (max-width: 700px) {
  /* The builders are used standing up with a phone in one hand, so they take
     the whole screen and the fields are big enough to hit. */
  .exmodel-setbuilder-modal { max-height: none; height: 100dvh; border-radius: 0; overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); }
  .modal-backdrop:has(.exmodel-setbuilder-modal) { padding: 0; }
  .exmodel-setbuilder-modal .text-input { font-size: 16px; }
  .realset-slots { gap: 8px; }
  .realset-slots .photo-pick { flex-direction: column; width: 100%; }
  .realset-slots .photo-pick .btn { width: 100%; justify-content: center; }
  .aimnew-face > img, .aimnew-face > .aiset-slot-empty { width: 140px; }
}
/* Garment by product page link, under the ID lookup. */
.exenh-url-row { margin-top: -6px; }
@media (max-width: 560px) { .exenh-id-row { max-width: none; } .exenh-id-row .text-input { font-size: 16px; min-width: 0; } }
/* Shoot plan cart + Open Jobs check, top right of every header: hidden on
   request. The tray is still built, so un-hiding is this one rule. */
#shootTray { display: none !important; }

/* Video from IDs — the clip, beside what it was made from. */
.vid-result { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.vid-result-media video, .vid-result-media img { width: 100%; display: block; border-radius: 10px; background: var(--bg); aspect-ratio: 2 / 3; object-fit: cover; }
.vid-wait::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--ink); animation: vid-spin .9s linear infinite; vertical-align: -1px; }
@keyframes vid-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .vid-result { grid-template-columns: 1fr; } }
/* What a disabled Continue is waiting for, beside it. */
.enh-next-wrap { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.enh-missing { margin: 0; text-align: right; }

/* Publish Images — delete a product from the queue, top right of its picture. */
.appr-completed-wrap { position: relative; }
.appr-completed-remove {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.appr-completed-wrap:hover .appr-completed-remove, .appr-completed-remove:focus-visible { opacity: 1; }
.appr-completed-remove:hover { color: var(--danger, #b3261e); border-color: currentColor; }
/* No hover on a phone, so it is always there. */
@media (hover: none) { .appr-completed-remove { opacity: 1; } }

/* Everyone in the catalog — tap to select, Add to make them f28 models. The
   cards are buttons and links now, so they lose the browser's button chrome. */
button.cat-model, a.cat-model { display: block; width: 100%; padding: 6px 4px 8px; border: 0; background: none;
  font: inherit; color: inherit; text-decoration: none; cursor: pointer; border-radius: 14px; }
button.cat-model:hover .cat-model-face { box-shadow: 0 0 0 3px var(--line); }
.cat-model.is-picked .cat-model-face { box-shadow: 0 0 0 4px var(--accent, #2f4f46); }
.cat-model.is-picked .cat-model-name { font-weight: 700; }
.cat-model-face { position: relative; }
/* Bottom-centre: the face is clipped to a circle, so a corner badge is cut off. */
.cat-model-tick, .cat-model-tag { position: absolute; z-index: 1; left: 50%; bottom: 6px; transform: translateX(-50%);
  border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; }
.cat-model-tick { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--accent, #2f4f46); color: #fff; font-size: 15px; box-shadow: 0 0 0 3px #fff; }
.cat-model-tag { padding: 5px 9px; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff; }
.cat-model.is-added { cursor: pointer; }
.cat-add-bar { display: flex; gap: 8px; margin-left: auto; align-items: center; }

/* Her products, as a category page: 4 across, 5 down. */
.pp-modal { max-width: 980px; }
.pp-modal .chip-row { margin: 10px 0 14px; }
.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
.pp-item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.pp-item img, .pp-item .aiset-slot-empty { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
  border-radius: 8px; background: var(--bg); outline: 3px solid transparent; outline-offset: 2px; }
.pp-item.is-picked img { outline-color: var(--accent, #2f4f46); }
.pp-item.is-in-set { cursor: default; opacity: .55; }
.pp-name { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-meta { font-size: 12px; color: var(--muted); }
.pp-tick, .pp-flag { position: absolute; top: 8px; right: 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pp-tick { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--accent, #2f4f46); color: #fff; font-size: 15px; box-shadow: 0 0 0 2px #fff; }
.pp-flag { padding: 4px 9px; background: var(--ink); color: #fff; }
.pp-foot { position: sticky; bottom: -22px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin: 16px -22px -22px; padding: 12px 22px; background: #fff; border-top: 1px solid var(--line); }
.pp-pager { display: flex; align-items: center; gap: 10px; }
@media (max-width: 700px) {
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-foot { bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 16px -16px 0; padding: 12px 16px; }
}

/* A set's untagged shots, under its front/side/back. */
.exmodel-set-extras { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.exmodel-set-extras-head { font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.exmodel-set-extras-head .gen-hint { font-weight: 400; margin: 0; }
.exmodel-set-extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.exmodel-set-extra .exmodel-pose-shot img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }

/* Crop to 2:3 — opens over the upload dialog. The box's huge shadow dims
   everything outside it; the stage clips the shadow to the photo. */
.crop23-host .crop23-backdrop { z-index: 1100; }
.crop23-modal { max-width: min(1100px, 94vw); width: fit-content; }
.crop23-stage { position: relative; overflow: hidden; margin: 10px auto 12px; width: fit-content;
  max-width: 100%; border-radius: 8px; line-height: 0; background: var(--bg); }
.crop23-stage img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto;
  user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop23-box { position: absolute; box-sizing: border-box; border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(20, 18, 16, .55); cursor: move; touch-action: none; }
.crop23-box::before, .crop23-box::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .35); }
.crop23-box::before { left: 33.33%; right: 33.33%; border-top: 0; border-bottom: 0; }
.crop23-box::after { top: 33.33%; bottom: 33.33%; border-left: 0; border-right: 0; }
.crop23-size { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.crop23-size input { flex: 1; accent-color: var(--accent, #2f4f46); }
@media (max-width: 700px) {
  .crop23-host .modal-backdrop { padding: 0; }
  .crop23-modal { max-width: none; height: 100dvh; border-radius: 0; overflow-y: auto;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
  .crop23-stage img { max-height: 64dvh; }
}

/* Neutral bases under each angle of a top set. */
.exmodel-bases { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.exmodel-base { display: flex; flex-direction: column; gap: 3px; font-size: 11px; min-width: 0; }
.exmodel-base-shot img, .exmodel-base-shot.is-empty { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }
.exmodel-base-shot.is-empty { background: var(--surface-2, #f5f3f0); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.exmodel-base-label { color: var(--muted); }
.exmodel-base.is-approved .exmodel-base-label b { color: var(--accent, #2f4f46); }
.exmodel-base.is-flagged .exmodel-base-label b, .exmodel-base.is-failed .exmodel-base-label b { color: var(--danger, #b3261e); }
.exmodel-base.is-approved .exmodel-base-shot img { outline: 2px solid var(--accent, #2f4f46); outline-offset: 1px; }
.exmodel-base-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.exmodel-base-actions .btn.sm { padding: 3px 8px; font-size: 11px; }

/* Swap Clothes — swap onto the original photo or a neutral base. */
.enh-base-choice { margin: 6px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, #f7f5f2); }
.enh-base-choice .chip-row { margin: 6px 0; }
.enh-base-choice .gen-hint { margin: 0; }

/* Pose-set tags: one tap each. */
.set-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; }
.set-tag-group { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.tag-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 5px 11px; font-size: 12px; line-height: 1.2; cursor: pointer; }
.tag-chip:hover { border-color: var(--ink); }
.tag-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-chip.is-detail.is-on { background: var(--accent, #2f4f46); border-color: var(--accent, #2f4f46); }
@media (max-width: 700px) { .tag-chip { padding: 7px 12px; font-size: 13px; } }

/* --- Batch approval ---------------------------------------------------------- */
.bt-page { max-width: 1440px; margin: 0 auto; }
.bt-total { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--muted); }
.bt-total b { font-size: 22px; color: var(--ink); }
.bt-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.bt-filters .chip-row { margin: 0; }
.bt-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; padding: 20px; margin-bottom: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.bt-card.is-flag { border-color: #f1c7a8; }
.bt-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bt-title { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; }
.bt-pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #efeae3; color: #44403c; }
.bt-pill.is-pick { background: #fef3c7; color: #78350f; }
.bt-pill.is-busy { background: #dbeafe; color: #1e3a8a; }
.bt-pill.is-ready { background: #dcfce7; color: #14532d; }
.bt-pill.is-flag { background: #ffedd5; color: #7c2d12; }
.bt-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.bt-warn { font-size: 12px; line-height: 1.45; padding: 7px 9px; border-radius: 8px; background: #fff7ed; color: #7c2d12; }
.bt-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bt-zoom { position: relative; display: block; cursor: zoom-in; }
.bt-zoom img, .bt-empty { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: #efeae3; }
.bt-empty { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--muted); }
.bt-busy { animation: bt-pulse 1.6s ease-in-out infinite; }
.bt-fail { background: #fff1ee; color: #7c2d12; }
@keyframes bt-pulse { 50% { opacity: .55; } }
.bt-zoom-tag { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 999px;
  background: rgba(28, 25, 23, .72); color: #fff; font-size: 11px; font-weight: 600; }
.bt-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bt-tags .set-tags { margin: 6px 0; }
.bt-cost { font-size: 12px; color: var(--muted); border-top: 1px solid #efeae3; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bt-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bt-head h3 { margin: 0; font-size: 17px; }
.bt-head span { font-size: 13px; color: var(--muted); }
.bt-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bt-cand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bt-cand-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.bt-cand-meta b { font-size: 14px; color: var(--ink); }
.bt-check { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #dcfce7; color: #14532d; }
.bt-check.is-bad { background: #ffedd5; color: #7c2d12; }
.bt-attempts { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bt-att { display: block; width: 30px; border-radius: 4px; overflow: hidden; outline: 2px solid transparent; }
.bt-att img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.bt-att.is-current { outline-color: var(--accent, #2f4f46); }
.bt-pick { min-height: 44px; }
.bt-fixes { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-fix { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 10px;
  font-size: 12px; text-decoration: none; cursor: pointer; font-family: inherit; }
.bt-fix:hover { border-color: var(--ink); }
.bt-none { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: #f7f4ef; font-size: 13px; color: var(--muted); }
.bt-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bt-link { border: 0; background: none; color: var(--accent, #2f4f46); text-decoration: underline; cursor: pointer; font-size: 13px; }
.bt-flag h3 { margin: 0 0 6px; font-size: 17px; }
.bt-flag p { margin: 0 0 12px; color: #44403c; line-height: 1.5; }
@media (max-width: 800px) {
  .bt-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .bt-shots { grid-template-columns: 96px 96px; }
  .bt-cands { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -14px; padding: 0 14px 4px; }
  .bt-cand { flex: 0 0 82%; scroll-snap-align: center; }
  .bt-fix { padding: 10px 12px; font-size: 13px; min-height: 44px; }
  .bt-none { flex-direction: column; align-items: stretch; }
  .bt-actions .btn { flex: 1 1 auto; min-height: 44px; }
}
.bt-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.bt-share { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.bt-share .text-input { width: 70px; }
.bt-pool .gen-hint { flex-basis: 100%; margin: 0; }

/* Models page: one department filter for our models and the catalog below. */
.model-dept-filter { margin: 4px 0 16px; flex-wrap: wrap; gap: 8px; }
.model-card-dept { font-size: 11px; color: var(--muted, #8a8279); margin-top: 2px; }
.model-dept-note { margin: 10px 0 0; }
.model-dept-note a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
  .model-dept-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .model-dept-filter .chip { flex: 0 0 auto; }
}

/* Batch Jobs header shortcut, with a count of products waiting on a person. */
.nav-shortcut-count {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  margin-left: 6px; padding: 0 5px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-align: center;
  background: var(--accent, #134e4a); color: #fff;
}
.nav-shortcut-count[hidden] { display: none; }
.nav-status-shortcut.active .nav-shortcut-count { background: #fff; color: var(--accent, #134e4a); }
@media (max-width: 640px) {
  .header-end .nav-status-shortcut { padding: 6px 8px; font-size: 12px; }
}

/* Swap Clothes: your own garment photo, and your own pose photos. */
.exenh-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 14px; }
.exenh-upload-row .photo-buttons, #enhPlatePhoto .photo-buttons { margin: 0; }
.enh-upload-tile { display: flex; flex-direction: column; gap: 6px; }
.enh-upload-tile .set-tag-group { flex-wrap: wrap; }
.gen-hint.is-error { color: #b42318; }

/* Batch compare: product, swap and pose, zoomed together. */
button.bt-zoom { padding: 0; border: 0; background: none; width: 100%; font: inherit; text-align: left; }
.btc-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 18, 16, 0.86); display: flex; align-items: stretch; justify-content: center; padding: 16px; }
.btc { width: min(1400px, 100%); display: flex; flex-direction: column; gap: 10px; background: var(--paper, #fbfaf8); border-radius: 14px; padding: 12px 14px; min-height: 0; }
.btc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btc-title { display: flex; flex-direction: column; margin-right: auto; }
.btc-title span { font-size: 12px; color: var(--muted, #8a8279); }
.btc-switch { display: none; }
.btc-close { padding: 6px 12px; }
.btc-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btc-pane { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.btc-pane figcaption { font-size: 12px; font-weight: 650; letter-spacing: 0.02em; color: var(--muted, #8a8279); margin-bottom: 4px; }
.btc-frame { flex: 1; min-height: 0; overflow: hidden; border-radius: 10px; background: #efeae3; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.btc-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.15s ease-out; user-select: none; }
.btc-panes.is-zoomed .btc-frame { cursor: zoom-out; }
.btc-panes.is-zoomed .btc-frame img { transform: scale(2.6); }
.btc-foot { display: flex; align-items: center; gap: 10px; }
.btc-foot .gen-hint { margin: 0 auto; text-align: center; }
@media (max-width: 760px) {
  .btc-backdrop { padding: 0; }
  .btc { border-radius: 0; padding: 10px 12px; }
  .btc-switch { display: flex; order: 3; width: 100%; }
  .btc-panes { grid-template-columns: 1fr; }
  .btc-panes .btc-pane { display: none; }
  .btc-panes[data-show="product"] .btc-pane[data-pane="product"],
  .btc-panes[data-show="swap"] .btc-pane[data-pane="swap"],
  .btc-panes[data-show="pose"] .btc-pane[data-pane="pose"] { display: flex; }
  .btc-pane figcaption { display: none; }
  .btc-foot .gen-hint { display: none; }
  .btc-foot { justify-content: space-between; }
}

/* Lifestyle Swap */
.ls-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.ls-steps button { border: 1px solid var(--line, #e4ded6); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.ls-steps button.is-current { background: var(--ink, #1f1d1a); color: #fff; border-color: transparent; }
.ls-steps button.is-done:not(.is-current) { border-color: var(--accent, #134e4a); color: var(--accent, #134e4a); }
.ls-steps button:disabled { opacity: 0.45; cursor: default; }
.ls-tabs { margin: 4px 0 12px; }
.ls-crumbs { font-size: 13px; margin: 0 0 10px; color: var(--muted, #8a8279); }
.ls-folders { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ls-grid .exenh-thumb img { aspect-ratio: auto; }
.ls-thumb .exenh-thumb-sub { display: block; font-size: 11px; color: var(--muted, #8a8279); padding: 0 6px 6px; }
.ls-picked { display: flex; flex-direction: column; gap: 8px; }
.ls-picked-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line, #e4ded6); border-radius: 10px; padding: 8px; background: #fff; }
.ls-picked-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ls-picked-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ls-picked-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-who { max-width: 320px; padding: 6px 8px; font-size: 13px; }
.ls-shoes-title { margin-top: 24px; }
.ls-review { display: grid; gap: 6px; margin: 0 0 14px; }
.ls-review div { display: flex; gap: 12px; }
.ls-review dt { width: 90px; color: var(--muted, #8a8279); }
.ls-review dd { margin: 0; }
.ls-review-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.ls-review-thumbs img { height: 110px; border-radius: 8px; }
.ls-review-thumbs img.is-garment { outline: 2px solid var(--accent, #134e4a); }
.ls-nav { display: flex; justify-content: space-between; margin-top: 20px; }
/* Two header shortcuts crowd the wordmark on a phone. */
@media (max-width: 420px) {
  .app-header .f28-studio { display: none; }
  .header-end .nav-status-shortcut { padding: 5px 7px; font-size: 12px; }
}
.ls-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 4px; }
.ls-strip figure { margin: 0; flex: 0 0 auto; }
.ls-strip img { height: 240px; width: auto; border-radius: 10px; display: block; background: #efeae3; }
.ls-strip figcaption { font-size: 11px; color: var(--muted, #8a8279); margin-top: 4px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-strip figure.is-garment img { outline: 2px solid var(--accent, #134e4a); outline-offset: -2px; }
@media (max-width: 640px) { .ls-strip img { height: 180px; } }

/* Home, signed in */
.hm-page { max-width: 1180px; }
.hm-intro { margin: 8px 0 26px; }
.hm-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.hm-title { font-family: "Cormorant Garamond", "Times New Roman", Times, serif; font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 8px; color: var(--ink); }
.hm-sub { margin: 0; color: var(--muted); font-size: 15px; }
.hm-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-feature { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.hm-feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hm-feature-media { display: block; height: clamp(300px, 46vh, 460px); overflow: hidden; background: #efeae3; }
.hm-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; transition: transform 0.6s ease; }
.hm-feature:hover .hm-feature-media img { transform: scale(1.02); }
.hm-feature-copy { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.hm-feature-title { font-family: "Cormorant Garamond", "Times New Roman", Times, serif; font-size: 32px; font-weight: 500; line-height: 1.05; }
.hm-feature-text { color: var(--muted); font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.hm-feature-cta { margin-top: auto; align-self: flex-start; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; }
.hm-feature:hover .hm-feature-cta { background: var(--accent-hover); }
.hm-quicks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 40px; }
.hm-quick { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 40px 16px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.hm-quick:hover { border-color: var(--accent); }
.hm-quick-title { font-weight: 650; font-size: 15px; }
.hm-quick-sub { color: var(--muted); font-size: 13px; }
.hm-quick-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: transform 0.2s, color 0.2s; }
.hm-quick:hover .hm-quick-arrow { color: var(--accent); transform: translate(3px, -50%); }
@media (max-width: 860px) {
  .hm-quicks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hm-features { grid-template-columns: 1fr; gap: 14px; }
  .hm-feature-media { height: 300px; }
  .hm-feature-title { font-size: 28px; }
  .hm-intro { margin-bottom: 18px; }
}

/* Lifestyle Colors */
.lc-page { max-width: 1280px; }
.lc-find { max-width: 640px; margin-bottom: 18px; }
.lc-top { display: flex; flex-direction: column; gap: 8px; }
.lc-top-row { display: grid; grid-template-columns: 32px 1fr auto auto auto; gap: 14px; align-items: center; text-align: left; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font: inherit; cursor: pointer; }
.lc-top-row:hover { border-color: var(--accent); }
.lc-rank { font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--muted); }
.lc-top-stat { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lc-top-stat.is-need { color: var(--accent); font-weight: 650; }
.lc-style-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lc-colors-bar { position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 10px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.lc-colors { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.lc-color { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; cursor: pointer; text-align: left; }
.lc-color.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.lc-color.is-off { opacity: 0.55; }
.lc-swatch { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #efeae3; }
.lc-swatch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lc-color-name { font-size: 13px; font-weight: 650; }
.lc-color-meta { font-size: 11px; color: var(--muted); }
.lc-count { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 0 5px; }
.lc-showall { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 0; }
.lc-colors-bar .gen-hint { margin: 4px 0 0; }
.lc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lc-photo { display: flex; flex-direction: column; gap: 6px; }
.lc-photo-btn { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #efeae3; cursor: pointer; aspect-ratio: 2 / 3; }
.lc-photo.is-on .lc-photo-btn { border-color: var(--accent); }
.lc-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-seats { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.lc-seat { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 4px 2px 9px; font-size: 12px; font-weight: 600; }
.lc-seat button { border: 0; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 18px; height: 18px; line-height: 16px; cursor: pointer; padding: 0; }
.lc-made { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 7px; text-decoration: none; }
.lc-photo-meta { font-size: 12px; }
.lc-photo-meta span { color: var(--muted); font-size: 11px; }
.lc-foot { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px; margin: 18px -16px 0; }
@media (max-width: 640px) {
  .lc-top-row { grid-template-columns: 26px 1fr; }
  .lc-top-row .lc-top-stat { grid-column: 2; }
  .lc-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lc-colors-bar { top: 52px; }
}

/* Studio Colors */
.sc-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; }
.sc-photo { position: relative; flex: 0 0 auto; width: 140px; aspect-ratio: 2 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #efeae3; cursor: pointer; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-photo.is-seated { border-color: var(--accent); }
.sc-photo.is-ref { width: 110px; }
.sc-photo.is-active-ref { border-color: var(--ink); }
.sc-pos { position: absolute; top: 5px; left: 5px; background: rgba(255,255,255,0.88); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.sc-seat-tag { position: absolute; bottom: 6px; left: 6px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 650; padding: 2px 8px; }
.sc-photo.is-ref .sc-seat-tag { background: var(--ink); }
.sc-slots { display: flex; gap: 10px; }
.sc-slot { position: relative; display: grid; grid-template-columns: 46px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; cursor: pointer; text-align: left; }
.sc-slot.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.sc-slot-img { grid-row: 1 / 3; width: 46px; height: 69px; border-radius: 6px; overflow: hidden; background: #efeae3; border: 1px dashed var(--line); }
.sc-slot-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-slot-label { font-weight: 650; font-size: 14px; }
.sc-slot-x { position: absolute; top: 4px; right: 6px; font-size: 16px; color: var(--muted); }
.sc-color { margin: 6px 0 4px; }
@media (max-width: 640px) {
  .sc-slots { gap: 6px; }
  .sc-slot { grid-template-columns: 34px auto; padding: 5px 8px 5px 5px; }
  .sc-slot-img { width: 34px; height: 51px; }
  .sc-photo { width: 118px; }
}
.sc-rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.sc-best { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 8px; vertical-align: middle; }

/* Publish Images: reorder */
.pub-tile { cursor: grab; position: relative; }
.pub-tile.is-dragging { opacity: 0.45; }
.pub-move { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.pub-move .btn { padding: 2px 10px; }
.pub-remote { display: block; font-size: 11px; word-break: break-all; }
.pub-order-bar { position: sticky; top: 60px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; background: var(--warn-bg); color: var(--warn); border-radius: 12px; font-size: 13px; }
.pub-order-hint { margin: 0 0 10px; }
@media (hover: hover) { .pub-move { opacity: 0.6; } .pub-tile:hover .pub-move { opacity: 1; } }

/* Publish Images: reorder */
.pub-tile { cursor: grab; position: relative; }
.pub-tile.is-dragging { opacity: 0.45; }
.pub-move { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.pub-move .btn { padding: 2px 10px; }
.pub-remote { display: block; font-size: 11px; word-break: break-all; }
.pub-order-bar { position: sticky; top: 60px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; background: var(--warn-bg); color: var(--warn); border-radius: 12px; font-size: 13px; }
.pub-order-hint { margin: 0 0 10px; }
.pub-mid-bar { position: static; }
.pub-mid-input { width: 110px; padding: 6px 10px; }
.product-atelier-grid.is-saving { opacity: 0.6; pointer-events: none; }

/* Publish Images: model cards and picker */
.pub-models { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.pub-model-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pub-model { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.pub-model.is-missing { border-color: var(--warn); background: var(--warn-bg); }
.pub-model-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e7e3dd; flex: 0 0 auto; filter: grayscale(1); }
.pub-model-name { display: flex; flex-direction: column; line-height: 1.2; }
.pub-model-name .muted { font-size: 12px; }
.pub-model-picker { margin-top: 10px; max-width: 520px; }
.pub-model-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.pub-model-hit { border-radius: 12px; font: inherit; text-align: left; cursor: pointer; }
.pub-model-hit:hover { border-color: var(--accent); }

/* Open Jobs — the generation line (two at a time) */
.oj-qbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 18px;
  padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  font-size: 14px; }
.oj-qbar-est { color: var(--muted); }
.oj-q { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.oj-q b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.oj-q.is-running { color: var(--accent); }
.oj-q-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: oj-pulse 1.4s ease-in-out infinite; }
.oj-q-dot.is-idle { background: var(--muted); animation: none; }
@keyframes oj-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.oj-q-bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.oj-q-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .oj-q-dot { animation: none; } .oj-q-bar i { transition: none; } }
.bt-cost .btn.sm { padding: 4px 10px; font-size: 12px; }
.sc-dept-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 14px; }
.sc-untagged { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }

/* ---- Work queues, top right: Action ▾ · Approve ▾ · Publish ------------------ */
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.nav-pill-wrap { position: relative; }
.nav-pill { display: inline-flex; align-items: center; gap: 2px; font: inherit; font-size: 13px; font-weight: 650;
  letter-spacing: .02em; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.nav-pill:hover { color: var(--ink); background: #f5f3f0; }
.nav-pill.active { background: var(--accent); color: #fff; }
.nav-pill.active .nav-shortcut-count { background: #fff; color: var(--accent); }
.nav-pill-caret { width: 0; height: 0; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7; }
.nav-pill-wrap.is-open .nav-pill { background: #f5f3f0; color: var(--ink); }
.nav-pill-wrap.is-open .nav-pill.active { background: var(--accent); color: #fff; }
.nav-pill-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 900; min-width: 250px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-pill-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px;
  border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav-pill-item:hover, .nav-pill-item.active { background: #f5f3f0; }
.nav-pill-item-text { display: flex; flex-direction: column; gap: 1px; }
.nav-pill-item-text b { font-size: 14px; font-weight: 600; }
.nav-pill-item-text small { font-size: 12px; color: var(--muted); }
.nav-pill-n { min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px; border-radius: 999px; text-align: center;
  font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
.nav-pill-n.is-zero { background: #efeae3; color: var(--muted); }
@media (max-width: 720px) {
  .nav-pill { padding: 6px 8px; font-size: 12px; }
  .nav-pill-caret { margin-left: 4px; }
  .nav-pill-menu { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; }
}

/* ---- Reshoots: swap queues, Needs attention, tracker ------------------------- */
.rs-page .title-row .btn { align-self: flex-start; }
.rs-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 12px; overflow: hidden; }
.rs-card.is-open { border-color: var(--accent); }
.rs-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; width: 100%;
  padding: 14px 16px; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.rs-card-head > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.rs-card-body { padding: 0 16px 16px; }
.rs-note { font-size: 13px; color: var(--muted); font-style: italic; margin: 0; }
.rs-products { display: grid; gap: 12px; margin: 4px 0 8px; }
.rs-product-head { font-size: 13px; margin-bottom: 6px; }
.rs-photos { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.rs-photos img { height: 120px; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--bg); display: block; }
.rs-models { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.rs-model { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 8px 4px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; color: var(--ink); }
.rs-model.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.rs-model[disabled] { opacity: .45; cursor: default; }
.rs-face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #efeae3; display: block; flex: none; }
.rs-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-model-name { font-size: 12px; font-weight: 600; text-align: center; }
.rs-hint { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700;
  background: #fef3c7; color: #78350f; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.rs-staying { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 14px; }
.rs-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.rs-set { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.rs-set.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.rs-set.is-used:not(.is-on) { opacity: .5; }
.rs-set-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rs-set-imgs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--bg); display: block; }
.rs-set-name { font-size: 13px; font-weight: 600; }
.rs-list { display: grid; gap: 8px; }
.rs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); }
.rs-row-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
  background: #efeae3; color: #44403c; }
.rs-type-failed { background: var(--danger-bg); color: var(--danger); }
.rs-type-eyeline, .rs-type-batch { background: var(--review-bg); color: var(--review); }
.rs-type-reshoot { background: var(--warn-bg); color: var(--warn); }
.rs-track { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 10px;
  display: grid; gap: 8px; }
.rs-track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rs-job { position: relative; display: block; flex: none; text-decoration: none; color: var(--muted); font-size: 11px; }
.rs-job img { height: 90px; }
.rs-job > span { display: grid; place-items: center; height: 90px; width: 60px; border-radius: 6px; background: var(--bg); }
.rs-job i { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok);
  color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
.rs-job.is-failed > span { background: var(--danger-bg); color: var(--danger); }
.rs-pubs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.rs-pubs .is-error { color: var(--danger); }
.rs-track-actions { display: flex; gap: 8px; }
.rs-track-actions:empty { display: none; }
.bt-pill.is-muted { background: #f5f5f4; color: var(--muted); }
.listing-status-badge--reshoot { background: var(--warn-bg); color: var(--warn); }

/* ---- The Reshoot pop-up (the back office opens it) --------------------------- */
body.is-popup { background: var(--card); }
.rs-pop-head { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 15px; }
.rs-pop { padding-top: 16px; }
.rs-nothappy { margin: 28px 0 8px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--bg);
  display: grid; gap: 10px; }
.rs-nothappy .enh-substep-title { margin: 0; }
.rs-sent { text-align: center; padding: 64px 16px; display: grid; gap: 10px; justify-items: center; }
.sc-faces { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; margin: 0 6px; }
.sc-face-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink);
  padding: 2px 10px 2px 2px; border-radius: 999px; background: #f5f3f0; }
.sc-face-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.sc-use { margin-left: 6px; vertical-align: middle; }

/* ---- Sign in with Google ------------------------------------------------------ */
.gsi-box { display: grid; justify-items: center; gap: 8px; margin: 8px 0 4px; }
.gsi-box #gsiBtn { min-height: 44px; }
.gsi-or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 6px; }
.gsi-or::before, .gsi-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
body.is-popup #app { padding-left: 0 !important; }
body.is-popup .rs-pop { max-width: 1100px; margin: 0 auto; }
/* Approve · Remove on the first row, Another pose · Another model under them. */
.oj-grid .exenh-review-card .model-card-actions { flex-wrap: wrap; }
.oj-grid .exenh-review-card .model-card-actions:has([data-another-req]) .btn { flex: 1 1 calc(50% - 3px); }
.oj-grid .exenh-review-card .model-card-actions .btn[data-another-req] { font-size: 12px; }
.nav-signout[hidden] { display: none !important; }

/* ---- Quick Swap ------------------------------------------------------------ */
.qs-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 18px; }
.qs-field { display: grid; gap: 6px; flex: 1 1 220px; }
.qs-arrow { font-size: 20px; color: var(--muted); padding-bottom: 10px; }
.qs-form .btn { min-width: 110px; }
.qs-run-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; font-size: 15px; }
.qs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.qs-tile { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; display: grid; gap: 10px; }
.qs-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qs-pair figure { margin: 0; display: grid; gap: 4px; }
.qs-pair img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--bg); display: block; }
.qs-pair figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.qs-res { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.qs-wait { aspect-ratio: 2 / 3; border-radius: 8px; background: var(--bg); display: grid; place-items: center; padding: 8px;
  color: var(--muted); font-size: 12px; text-align: center; }
.qs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-actions:empty { display: none; }
.sc-untag { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 600; line-height: 1.2; padding: 2px 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--muted); pointer-events: none; }
.btc-foot { flex-wrap: wrap; row-gap: 8px; }
.oj-retry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.oj-retry .gen-hint { flex: 1 1 100%; margin: 0; }
.oj-grid .exenh-review-card .model-card-actions .oj-retry .btn { flex: 1 1 calc(50% - 3px); }
.sc-slots { flex-wrap: wrap; }

/* ---- Results --------------------------------------------------------------- */
.rz-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.rz-sum { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  font: inherit; color: var(--ink); cursor: pointer; }
.rz-sum.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.rz-sum-kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.rz-sum b { font-size: 24px; font-variant-numeric: tabular-nums; }
.rz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; }
.rz-list { display: grid; gap: 8px; }
.rz-row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 8px 16px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rz-row.is-pending { background: #fcfbf9; }
.rz-prod { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rz-prod > div { min-width: 0; }
.rz-prod .lc-color-meta { display: block; }
.rz-prod img { width: 48px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--bg); flex: none; }
.rz-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-cell { display: grid; gap: 2px; font-size: 14px; font-variant-numeric: tabular-nums; }
.rz-k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rz-ch { font-weight: 700; margin-left: 4px; }
.rz-ch.is-up { color: var(--ok); }
.rz-ch.is-down { color: var(--danger); }
.rz-ch.is-flat { color: var(--muted); }
.rz-flags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.rz-flags:empty { display: none; }
.rz-flag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f5f3f0; color: var(--muted); }
@media (max-width: 1100px) {
  .rz-row { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .rz-prod { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .rz-row { grid-template-columns: 1fr 1fr; } }

/* ───────── Shoot Check (#/shoot-check) ───────── */
.sc-page { max-width: 1180px; }
.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.sc-h2 { font-size: 16px; margin: 0 0 6px; }
.sc-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.sc-field { display: grid; gap: 6px; }
.sc-field .chip-row { margin: 0; }
.sc-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.sc-model-search { width: 300px; max-width: 100%; }
.sc-model-search input { width: 100%; }
.sc-drop { flex: 1 1 320px; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 14px; border: 1.5px dashed #cfcac3;
  border-radius: 12px; background: var(--bg); cursor: pointer; }
.sc-drop:hover, .sc-drop.is-over { border-color: var(--accent); background: #f1f6f5; }
.sc-drop.is-busy { cursor: progress; opacity: .75; }
.sc-controls > .gen-hint.is-error { flex-basis: 100%; margin: 0; }
.sc-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.sc-spacer { flex: 1; }
.sc-verdict { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sc-verdict.is-match { background: var(--ok-bg); color: var(--ok); }
.sc-verdict.is-fix { background: var(--danger-bg); color: var(--danger); }
.sc-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.sc-result-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-frames { display: flex; gap: 12px; }
.sc-frame { margin: 0; width: 190px; }
.sc-frame figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-frame-img { position: relative; aspect-ratio: 2 / 3; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sc-frame-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-patch { position: absolute; border: 2px solid var(--ok); }
.sc-patch.is-warn { border-color: #d97706; }
.sc-patch.is-fail { border-color: var(--danger); background: rgba(153, 27, 27, .12); }
.sc-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--ok); }
.sc-line.is-warn { border-top-color: #d97706; }
.sc-line.is-fail { border-top-color: var(--danger); }
.sc-line.is-ref { border-top: 2px dashed var(--accent); }
.sc-group + .sc-group { margin-top: 14px; }
.sc-group-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.sc-check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); }
.sc-check-main { display: grid; gap: 2px; }
.sc-check-main b { font-weight: 600; font-size: 14px; }
.sc-icon { font-weight: 700; text-align: center; }
.sc-check.is-pass .sc-icon { color: var(--ok); }
.sc-check.is-warn .sc-icon { color: #d97706; }
.sc-check.is-fail .sc-icon, .sc-check.is-fail .sc-value { color: var(--danger); }
.sc-value { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.sc-note { margin: 8px 0 0; }
.sc-runs { display: grid; gap: 6px; }
.sc-run { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.sc-run:hover, .sc-run.is-on { border-color: var(--accent); }
.sc-run img, .sc-ref img { width: 36px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; flex: none; }
.sc-run-main { flex: 1; display: grid; gap: 1px; min-width: 0; }
.sc-run-main .lc-color-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-refs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sc-ref { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 10px; }
.sc-ref > span { display: grid; gap: 1px; }
.sc-ref.is-empty { color: var(--muted); font-size: 13px; padding: 10px 12px; border-style: dashed; }
@media (max-width: 860px) {
  .sc-result-body { grid-template-columns: 1fr; }
  .sc-frame { width: calc(50% - 6px); }
}
.sc-setup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.sc-setup-head .sc-h2 { margin: 0; }
.sc-setup-head b { color: var(--ink); font-weight: 600; }
.sc-dot { margin: 0 6px; color: #c8c3bc; }
.sc-setup-fields { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.sc-in { display: grid; gap: 4px; }
.sc-in-box { display: flex; align-items: center; gap: 6px; }
.sc-in-box input { width: 110px; }
.sc-in-box i { font-style: normal; color: var(--muted); font-size: 13px; }
.sc-in select { min-width: 160px; }
.sc-setup-how { margin: 10px 0 0; }
.sc-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 4px; padding: 8px 10px; background: var(--bg); border-radius: 10px; }
.sc-spec-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sc-spec-form input { width: 90px; }
.sc-targets { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 1px dashed #cfcac3; border-radius: 10px; cursor: pointer; }
.sc-targets input { margin-top: 3px; }
.sc-targets > span { display: grid; gap: 2px; }
.sc-spec-sub { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
body.is-popup .sc-page { max-width: 1180px; margin: 0 auto; }
/* Shoot Check, guided */
.sc-tabs { margin: 0 0 14px; }
.sc-start { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.sc-choice { display: grid; gap: 6px; align-content: start; text-align: left; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }
.sc-choice:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sc-choice b { font-size: 17px; }
.sc-choice > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sc-choice .sc-choice-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.sc-choice .sc-choice-ok { color: var(--ok); font-weight: 600; font-size: 13px; }
.sc-start-ref { margin-top: 12px; }
.sc-stepper { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 14px; }
.sc-stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sc-stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #cfcac3; font-size: 12px; font-weight: 700; }
.sc-stepper li.is-on { color: var(--ink); font-weight: 600; }
.sc-stepper li.is-on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-stepper li.is-done span { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.sc-stepcard { max-width: 760px; }
.sc-stepcard .sc-h2 { font-size: 18px; margin-bottom: 4px; }
.sc-prep { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sc-prep input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.sc-prep > span { display: grid; gap: 3px; }
.sc-prep.is-done { background: var(--ok-bg); border-color: #b7e4c7; }
.sc-sub { font-weight: 600; margin: 16px 0 8px; }
.sc-howto { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.sc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.sc-banner { display: grid; gap: 4px; max-width: 1180px; }
.sc-banner b { font-size: 16px; }
.sc-banner.is-ok { background: var(--ok-bg); border-color: #b7e4c7; }
.sc-banner.is-fix { background: var(--danger-bg); border-color: #f5c2c2; }
.sc-banner .sc-actions { margin-top: 8px; }
.sc-warn { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.sc-summary { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; font-size: 15px; }
.sc-stepcard textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sc-session { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.sc-done span b { color: var(--ink); }
.sc-height { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.sc-height > b { font-size: 22px; }
.sc-height.is-ask { display: grid; background: var(--warn-bg); border-color: #f3d9a4; }
.sc-tiers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-tiers .sc-in-box input { width: 90px; }
.sc-model-readings { margin: 4px 0 12px; }
.sc-heights { display: grid; gap: 6px; }
.sc-hrow { display: flex; align-items: center; gap: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sc-hrow > b { font-size: 17px; min-width: 40px; }
.sc-hrow > span { flex: 1; }
.sc-shoes { display: grid; gap: 8px; margin: 10px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); }
.sc-camtotal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 4px; }
.sc-camtotal b { font-size: 22px; }

/* Batch review (2026-10-15): the mannequin shot and the set's four images —
   front, side, back, ghost — are one row of equal tiles; decisions are made in
   the zoom view, so nothing sits under an image but its name and a badge. */
.bt-card { grid-template-columns: calc((100% - 64px) / 5) minmax(0, 1fr); gap: 16px; }
.bt-cands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-side .bt-title { min-height: 28px; }
.bt-side .bt-sub { min-height: 36px; font-size: 12px; }
.bt-card .bt-head { min-height: 76px; align-items: flex-start; }
.bt-card .bt-head h3 { padding-top: 2px; }
.bt-cand-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.bt-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eee9e2; color: var(--muted); }
.bt-badge.is-ok { background: #dcfce7; color: #14532d; }
.bt-badge.is-bad { background: #ffedd5; color: #7c2d12; }
.bt-shotframe { position: relative; }
.bt-shotnav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.85); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.bt-shotnav.is-prev { left: 6px; }
.bt-shotnav.is-next { right: 6px; }
.bt-dots { display: inline-flex; gap: 4px; }
.bt-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d6cfc6; }
.bt-dots i.on { background: var(--ink); }
.bt-reject-backdrop { z-index: 1100; display: flex; align-items: center; justify-content: center; }
.bt-reject { width: min(440px, calc(100vw - 32px)); background: var(--surface, #fff); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.bt-reject h3 { margin: 0; font-size: 17px; }
.bt-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.bt-reason { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.bt-reject-note { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.bt-reject-note textarea { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid #ddd5cb; resize: vertical; }
@media (max-width: 760px) {
  .bt-card { grid-template-columns: 1fr; }
  .bt-shotview { max-width: 60%; }
  .bt-card .bt-head { min-height: 0; }
  .bt-reasons { grid-template-columns: 1fr; }
}

/* ---- Pose builder: full screen, two shoots at a time (sized for a 13" MacBook) ---- */
body.is-popup .pb-page { position: fixed; inset: 0; }
.pb-page { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; background: var(--card); }
.pb-head, .pb-foot { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pb-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.pb-title { font-weight: 700; font-size: 15px; }
.pb-tabs { display: flex; gap: 6px; }
.pb-period { margin-left: auto; }
.pb-head-note { color: var(--muted); }
.pb-foot-msg { color: var(--danger, #b42318); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-keys { color: var(--muted); font-size: 12px; }
.pb-rows { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px; min-height: 0; overflow: auto; }
.pb-empty { margin: auto; color: var(--muted); }
.pb-row { flex: 1; min-height: 300px; display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)) minmax(330px, 1.55fr); gap: 8px; }
.pb-row.is-skipped > :not(.pb-info) { opacity: .25; }
.pb-row.is-added { opacity: .55; }
.pb-info { display: flex; flex-direction: column; gap: 4px; font-size: 12px; min-width: 0; }
.pb-pid { font-weight: 700; font-size: 14px; }
.pb-name { line-height: 1.3; }
.pb-sub { color: var(--muted); }
.pb-skip { margin-top: auto; align-self: flex-start; }
.pb-warn { color: #b54708; background: #fffaeb; border-radius: 6px; padding: 3px 6px; font-size: 11px; line-height: 1.3; }
.pb-done { color: #067647; font-weight: 600; }
.pb-photo { position: relative; border-radius: 8px; overflow: hidden; background: #f5f3f0; cursor: pointer; min-height: 0; }
.pb-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pb-photo.is-off img { opacity: .2; }
.pb-photo.is-none { background: transparent; border: 1px dashed var(--line); cursor: default; }
.pb-off { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); pointer-events: none; }
.pb-roles { position: absolute; left: 4px; right: 4px; bottom: 4px; display: grid; gap: 3px;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); }
.pb-role { min-width: 0; font-size: 11px; font-weight: 600; padding: 3px 0; border-radius: 6px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--muted); cursor: pointer; }
.pb-role.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pb-extra { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,.92); color: var(--muted); pointer-events: none; }
.pb-tags { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow: auto; font-size: 12px; }
.pb-tags-wait { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.pb-g { display: grid; grid-template-columns: 70px 1fr; gap: 6px; align-items: center; padding: 3px 0; border-bottom: 1px solid #f0eeea; }
.pb-g:last-child { border-bottom: 0; }
.pb-gl { color: var(--muted); }
.pb-g.ask .pb-gl { color: #b54708; font-weight: 600; }
.pb-gv { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pb-chip { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.pb-chip.on { background: #eaf2fd; border-color: #84b3ea; color: #0c447c; }
.pb-chip.ask { background: #fffaeb; border-color: #fec84b; color: #b54708; }
.pb-changed { font-size: 11px; color: #185fa5; }
.pb-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.pb-modal-card { background: var(--card); border-radius: 14px; width: min(760px, 94vw); max-height: 88vh; display: grid; grid-template-rows: auto 1fr auto; }
.pb-modal-head, .pb-modal-foot { padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pb-modal-foot { justify-content: flex-end; border-top: 1px solid var(--line); }
.pb-modal-body { overflow: auto; padding: 0 16px 12px; display: grid; gap: 10px; }
.pb-ed-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pb-ed-group.is-hidden { opacity: .5; }
.pb-ed-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pb-ed-gh .btn { margin-left: auto; }
.pb-ed-vals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-ed-val { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 2px 4px 2px 8px; border: 1px solid var(--line); border-radius: 6px; }
.pb-ed-val.is-hidden { opacity: .45; text-decoration: line-through; }
.pb-ed-mini { font-size: 11px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.pb-ed-mini.on { background: #fffaeb; border-color: #fec84b; color: #b54708; }
.pb-ed-add { width: 140px; height: 28px; font-size: 13px; }
.pb-ed-newgroup { display: flex; gap: 8px; align-items: center; }
.pb-ed-newgroup .text-input { width: 220px; }

/* ---- FashionGo shoot: FashionGo photos beside the poses that suit them -------- */
.fg-pick { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.fg-pid { width: 110px; height: 30px; }
.fg-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; padding: 10px 16px; min-height: 0; }
.fg-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.fg-prod { font-size: 13px; line-height: 1.35; }
.fg-side > .fg-car { height: 430px; flex: none; }
.fg-use { display: flex; gap: 6px; }
.fg-opts { display: grid; gap: 8px; font-size: 13px; }
.fg-opts label { display: grid; gap: 4px; }
.fg-opts .fg-check { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fg-read { font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fg-cost { font-size: 12px; }
.fg-poses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(390px, calc((100vh - 100px) / 2)); gap: 10px; overflow: auto; min-height: 0; }
.fg-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 0; }
.fg-card.is-made { border-color: #84b3ea; }
.fg-card > .fg-car { flex: 1; min-height: 0; }
.fg-card-foot { padding: 6px 8px; display: grid; gap: 4px; font-size: 12px; }
.fg-card-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-why { display: flex; flex-wrap: wrap; gap: 3px; min-height: 18px; }
.fg-why span { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #f0f7ef; color: #067647; }
.fg-why span.warn { background: #fffaeb; color: #b54708; }
.fg-card-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.fg-car { position: relative; overflow: hidden; background: #f5f3f0; border-radius: 8px; touch-action: pan-y; user-select: none; }
.fg-card .fg-car { border-radius: 0; }
.fg-car-track { display: flex; height: 100%; transition: transform .25s ease; }
.fg-car-slide { position: relative; flex: 0 0 100%; height: 100%; }
.fg-car-slide img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.fg-car-label { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.92); }
.fg-car-badge { position: absolute; right: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; }
.fg-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.fg-car-arrow.prev { left: 6px; } .fg-car-arrow.next { right: 6px; }
.fg-car-dots { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 4px; }
.fg-car-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); }
.fg-car-dots span.on { background: var(--ink); }

.fg-card { position: relative; cursor: pointer; }
.fg-card.is-selected { outline: 3px solid var(--ink); outline-offset: -3px; }
.fg-go { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); white-space: nowrap; }
.fg-state { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.fg-state.warn { background: #b54708; }

/* Two products per screen, pose-builder layout */
.fg-row { flex: 1; min-height: 300px; display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 8px; }
.fg-row .pb-info .text-input { height: 30px; font-size: 12px; padding: 0 6px; }
.fg-row .fg-check { display: flex; gap: 5px; align-items: center; font-size: 12px; }
.fg-tile { padding: 0; cursor: default; }
.fg-tile > .fg-car { position: absolute; inset: 0; border-radius: 8px; }
.fg-tile-fg { outline: 2px solid #84b3ea; outline-offset: -2px; }
.fg-tile-fg .pb-roles { z-index: 2; }
.fg-tile.fg-card { cursor: pointer; border: 0; }
.fg-tile .fg-car-dots { bottom: auto; top: 8px; }
.fg-wait { grid-column: span 4; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.fg-prio { color: #b42318; }

/* ---- Rack overview (racks.* site and #/racks) ---------------------------------- */
.rk-page { min-height: 100vh; background: var(--bg, #f3f2ef); }
.rk-head-end { display: flex; gap: 10px; align-items: center; margin-left: auto; }
/* Same header as Digital Twin Shoot, kept on screen while the tables scroll */
.rk-head { position: sticky; top: 0; z-index: 50; background: var(--card); }
.rk-main { max-width: 1300px; margin: 0 auto; display: grid; gap: 16px; padding: 16px; }
.rk-card { background: var(--card); border-radius: 12px; padding: 16px 20px; }
.rk-card h2 { font-size: 20px; margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-table th { text-align: left; font-size: 12px; font-weight: 600; background: #e3e9ed; padding: 10px 12px; }
.rk-table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.rk-n { border: 0; background: transparent; color: #1d76b9; font: inherit; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.rk-n.zero { color: var(--muted); }
.rk-n.on { background: #1d76b9; color: #fff; }
.rk-thumb { width: 44px; height: 66px; object-fit: cover; border-radius: 4px; display: block; }
.rk-stage { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #f2f4f7; white-space: nowrap; }
.rk-queued { background: #eaf2fd; color: #0c447c; } .rk-generating { background: #fffaeb; color: #b54708; }
.rk-approval { background: #fdf2fa; color: #9e165f; } .rk-approved { background: #ecfdf3; color: #067647; }
.rk-live { background: #f4ebff; color: #6927da; }
.rk-failed { background: #fef3f2; color: #b42318; }
.pb-info .rk-live { align-self: flex-start; }

.rk-go { font-size: 12px; margin-left: 6px; color: #1d76b9; white-space: nowrap; }
.rk-menu { display: flex; gap: 6px; flex: 1; }
.rk-menu .rk-menu-end { margin-left: auto; }
.rk-menu a.chip { text-decoration: none; white-space: nowrap; }
.pb-title { white-space: nowrap; }

/* Digital Twin approval: click an image to approve it */
.fg-car-empty { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--muted);
  background: repeating-linear-gradient(135deg, #f5f3f0 0 14px, #eeebe6 14px 28px); }
.fg-car-empty.warn { color: #b54708; }
.tw-card.is-approved::after { content: ''; position: absolute; inset: 0; border: 4px solid #12b76a; border-radius: 8px; pointer-events: none; z-index: 3; }
.tw-page .fg-car-badge { top: auto; bottom: 6px; }
.tw-card.is-approved .fg-car-badge { background: #067647; }

/* Next 4 poses: an arrow to the right of the gallery (replaced "More poses") */
.fg-shoot-row { grid-template-columns: 150px repeat(5, minmax(0, 1fr)) 34px; }
.fg-next { position: relative; border-radius: 8px; background: #efebe3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fg-next:empty { background: transparent; }
.fg-next .fg-next-btn { position: static; transform: none; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fg-next-n { font-size: 11px; color: var(--muted); }

/* Skip and Shoot Live at the foot of a product's info column */
.fg-row-actions { margin-top: auto; display: flex; gap: 5px; }
.fg-row-actions .btn { padding-left: 10px; padding-right: 10px; white-space: nowrap; }

/* Approval steps: First Image (plate, pose, front + actions), Multi-Angle (plate, front, side, back) */
.tw-row { flex: 1; min-height: 300px; display: grid; gap: 8px; }
.tw-step1 { grid-template-columns: 150px repeat(4, minmax(0, 1fr)) 200px; }
.tw-step2 { grid-template-columns: 150px repeat(4, minmax(0, 1fr)) 200px; }
.tw-img { cursor: default; }
.tw-img.tw-card { cursor: pointer; }
.tw-img .fg-car-empty { position: absolute; inset: 0; }
.tw-actions { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 4px; }
.tw-actions .btn { width: 100%; }
.tw-actions .gen-hint { font-size: 11px; margin: -2px 0 6px; }
.tw-redo { position: absolute; right: 8px; top: 8px; z-index: 4; background: rgba(255,255,255,.94); }
/* Digital Twin Shoot: the queue count under the header, and "Used N×" on each pose */
.pb-page:has(> .fg-sub) { grid-template-rows: auto auto 1fr auto; }
.fg-sub { padding: 6px 16px; border-bottom: 1px solid var(--line); font-size: 13px; background: #faf9f7; }
.fg-uses { position: absolute; right: 6px; bottom: 6px; z-index: 2; font: inherit; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fg-uses:hover { background: #3a3633; }
.fg-uses.is-new { background: rgba(255,255,255,.92); color: var(--muted); text-decoration: none; cursor: default; }
.fg-uses-modal { max-width: 860px; max-height: 88vh; display: flex; flex-direction: column; }
.fg-uses-poses { display: flex; gap: 6px; margin-bottom: 10px; }
.fg-uses-poses img { height: 90px; border-radius: 6px; }
.fg-uses-list { overflow: auto; display: grid; gap: 10px; min-height: 0; }
.fg-uses-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: start; border-top: 1px solid var(--line); padding-top: 10px; }
.fg-uses-pid { font-weight: 700; font-size: 13px; }
.fg-uses-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-uses-img { position: relative; display: block; width: 110px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fg-uses-img.is-approved { outline: 3px solid #067647; outline-offset: -3px; }
.fg-uses-img img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.fg-uses-img span { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--ink); }
/* Model back office (models.pinkblushmaternity.com) and its staff page */
.mp-page { min-height: 100vh; background: var(--card); }
.mp-head { position: sticky; top: 0; z-index: 5; display: grid; justify-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.mp-logo { display: grid; justify-items: center; gap: 2px; color: var(--ink); text-decoration: none; }
.mp-logo-name, .mp-auth-name { font-weight: 300; text-transform: uppercase; letter-spacing: .32em; margin-right: -.32em; line-height: 1.1; }
.mp-logo-name { font-size: 34px; }
.mp-logo-by { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.mp-tabs { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.mp-tabs a { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); text-decoration: none; padding: 2px 0; }
.mp-tabs a.active { font-weight: 700; }
.mp-tab-bar { width: 1px; height: 16px; background: var(--line-strong, #c9c6c1); }
.mp-me { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
.mp-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: #eee; }
.mp-avatar-none { display: grid; place-items: center; font-weight: 600; color: var(--muted); }
.mp-menu { position: relative; }
.mp-menu > summary { list-style: none; width: 46px; height: 46px; border-radius: 50%; background: #f1f0ee; display: grid; place-content: center; gap: 4px; cursor: pointer; }
.mp-menu > summary::-webkit-details-marker { display: none; }
.mp-menu > summary span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); }
.mp-menu-pop { position: absolute; right: 0; top: 54px; min-width: 200px; display: grid; gap: 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mp-menu-pop .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 700px) {
  .mp-head { justify-items: start; }
  .mp-logo { justify-items: start; }
  .mp-logo-name { font-size: 22px; letter-spacing: .22em; }
  .mp-me { top: 16px; transform: none; }
  .mp-avatar, .mp-menu > summary { width: 38px; height: 38px; }
  .mp-tabs { gap: 12px; justify-content: flex-start; }
}
.mp-main { padding: 14px 16px 40px; max-width: 1400px; margin: 0 auto; }
.mp-lead { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-card { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.mp-card > .fg-car { aspect-ratio: 2 / 3; }
.mp-shot { position: relative; display: block; aspect-ratio: 2 / 3; background: #f4f2ef; }
.mp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-meta { display: grid; gap: 3px; padding: 8px 10px 10px; font-size: 13px; }
.mp-meta .btn { justify-self: start; margin-top: 4px; }
.mp-st { font-weight: 600; } .mp-st.wait { color: #b54708; } .mp-st.live { color: #067647; } .mp-st.no { color: #b42318; }
.mp-twin.is-no .mp-shot img { opacity: .45; }
.mp-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.mp-pay { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.mp-pay.paid { background: #ecfdf3; color: #067647; }
.mp-pay.pending { background: #fffaeb; color: #b54708; }
.mp-intro { display: flex; justify-content: center; border-radius: 12px; padding: 18px 16px 14px; margin-bottom: 16px; background: #f6f4f1; }
.mp-art-row { display: flex; align-items: flex-end; justify-content: center; gap: 30px; }
.mp-art-panel { margin: 0; display: grid; justify-items: center; gap: 6px; }
.mp-art-panel svg { width: 92px; height: auto; display: block; }
.mp-art-panel.is-big svg { width: 108px; }
.mp-art-panel figcaption { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.25; }
.mp-art-panel.is-big figcaption { font-size: 13px; font-weight: 600; color: var(--ink); }
.mp-art-panel.is-big .mp-art-frame { stroke: var(--ink); stroke-width: 2; }
.mp-art-op { font-size: 28px; font-weight: 300; color: var(--muted); align-self: center; margin-bottom: 20px; }
.mp-art-frame { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.mp-art-me { fill: #d9c2ad; }
.mp-art-leg { stroke: #d9c2ad; stroke-width: 5; stroke-linecap: round; }
.mp-art-dress1 { fill: #7d8f7a; }
.mp-art-dress2 { fill: #c9878f; }
.mp-art-print { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.mp-art-bill { fill: #dfe9d8; stroke: #7d8f7a; stroke-width: 2; }
.mp-art-cash { font-size: 20px; font-weight: 700; text-anchor: middle; fill: #4f6a4b; }
.mp-art-hanger { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-plate[data-mp-plate] { cursor: pointer; }
.mp-plate-act { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(0,0,0,.12); opacity: 0; transition: opacity .15s; }
.mp-plate:hover .mp-plate-act { opacity: 1; }
@media (hover: none) { .mp-plate-act { opacity: 1; } }
.mp-plate.is-off .fg-car { opacity: .45; }
.mp-plate-foot { min-height: 34px; display: flex; align-items: center; padding: 6px 10px; font-size: 13px; }
.mp-used { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mp-used:hover { background: #f4f2ef; }
.mp-uses-card { flex-direction: column; max-width: 760px; max-height: 86vh; gap: 12px; }
.mp-uses-top { display: flex; align-items: center; gap: 12px; }
.mp-uses-card .mp-uses-top img { width: 52px; height: 78px; aspect-ratio: auto; object-fit: cover; border-radius: 6px; }
.mp-uses-top h2 { font-size: 17px; margin: 0; }
.mp-uses-top > div { flex: 1; }
.mp-uses-list { overflow-y: auto; display: grid; gap: 14px; }
.mp-use-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.mp-use-head a { font-size: 13px; }
.mp-use-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-use-img { display: grid; gap: 3px; width: 120px; color: var(--muted); font-size: 11px; text-decoration: none; }
.mp-uses-card .mp-use-img img { width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: #f4f2ef; }
.mp-plate-off { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #b42318; color: #fff; }
.mp-twin > .fg-car { aspect-ratio: 2 / 3; }
.mp-twin .fg-car-badge { background: rgba(255,255,255,.94); color: var(--ink); font-weight: 600; }
.mp-modal { position: fixed; inset: 0; z-index: 50; background: rgba(20,16,12,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mp-modal-card { display: flex; gap: 18px; background: var(--card); border-radius: 14px; padding: 16px; max-width: 560px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.mp-modal-card img { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.mp-modal-body h2 { font-size: 18px; margin: 4px 0 8px; }
.mp-modal-body p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.mp-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .mp-art-row { gap: 8px; } .mp-art-panel svg { width: 54px; } .mp-art-panel.is-big svg { width: 62px; } .mp-art-op { font-size: 22px; } .mp-art-panel figcaption, .mp-art-panel.is-big figcaption { font-size: 11px; } .mp-modal-card { flex-direction: column; } .mp-modal-card img { width: 110px; } }
.mp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
@media (max-width: 700px) { .mp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.mp-tile span { font-size: 12px; color: var(--muted); } .mp-tile b { font-size: 20px; }
.mp-sec { margin-top: 18px; } .mp-sec h2 { font-size: 15px; margin: 0 0 8px; }
.mbo-page { grid-template-rows: auto 1fr; }
.mbo-main { overflow: auto; padding: 12px 16px 40px; display: grid; gap: 12px; align-content: start; max-width: 980px; }
.mbo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.mbo-row .text-input { width: auto; min-width: 220px; }
.mbo-row .mbo-num { min-width: 0; width: 110px; }
.mbo-link { display: flex; gap: 8px; margin-top: 6px; } .mbo-link .text-input { flex: 1; }
.tw-page .fg-car-badge.tw-model-no { background: #b42318; }
.mp-auth-brand { text-align: center; margin-bottom: 20px; }
.mp-auth-name { font-size: 26px; }
.mp-auth-by { margin-top: 2px; font-size: 15px; color: var(--muted); }
