/* ============================================================
   Visuals CSS — abstract compositions for hero + feature blocks
   ============================================================ */

/* ============================================================
   HERO VARIANT — Live production board
   ============================================================ */
.hv-flow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 70%),
    var(--bg-soft);
  overflow: hidden;
  padding: 52px 16px 38px;
  display: flex;
  flex-direction: column;
}
.hv-flow-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 95%);
  pointer-events: none;
}
.hv-flow-glow {
  position: absolute;
  top: -10%; left: 50%;
  width: 90%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in oklch, var(--accent) 18%, transparent), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hv-flow-corner {
  position: absolute; width: 14px; height: 14px;
  pointer-events: none; z-index: 4;
}
.hv-flow-corner span { position: absolute; inset: 0; border: 1.5px solid var(--accent); }
.hv-flow-corner.tl { top: 12px; left: 12px; }
.hv-flow-corner.tl span { border-right: 0; border-bottom: 0; }
.hv-flow-corner.tr { top: 12px; right: 12px; }
.hv-flow-corner.tr span { border-left: 0; border-bottom: 0; }
.hv-flow-corner.bl { bottom: 12px; left: 12px; }
.hv-flow-corner.bl span { border-right: 0; border-top: 0; }
.hv-flow-corner.br { bottom: 12px; right: 12px; }
.hv-flow-corner.br span { border-left: 0; border-top: 0; }

/* top toolbar */
.hv-flow-bar {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 3;
}
.hv-flow-bar-left, .hv-flow-bar-right {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}
.hv-flow-bar .hv-mono {
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
}
.hv-flow-bar .hv-mono.dim { color: var(--fg-faint); }
.hv-flow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: hvflowPulse 1.6s ease-out infinite;
}
@keyframes hvflowPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* columns */
.hv-flow-cols {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  z-index: 2;
  min-height: 0;
}
.hv-flow-col {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 9px 8px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.hv-flow-col.tone-live    { --col-tone: var(--accent); }
.hv-flow-col.tone-edit    { --col-tone: color-mix(in oklch, var(--accent) 70%, white); }
.hv-flow-col.tone-review  { --col-tone: color-mix(in oklch, var(--accent) 50%, white); }
.hv-flow-col.tone-done    { --col-tone: var(--fg-muted); }

.hv-flow-col-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.hv-flow-col-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-flow-col-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1;
}
.hv-flow-col .hv-mono {
  font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
}
.hv-flow-col .hv-mono.dim { color: var(--fg-faint); }
.hv-flow-col-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--col-tone);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hv-flow-col-bar {
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hv-flow-col-bar-fill {
  height: 100%;
  background: var(--col-tone);
  width: 0;
  animation: hvflowFill 5s ease-out infinite;
  transform-origin: left;
}
@keyframes hvflowFill {
  0% { width: 0; opacity: 1; }
  60% { width: 100%; opacity: 1; }
  85% { width: 100%; opacity: 0.4; }
  100% { width: 0; opacity: 0; }
}

.hv-flow-col-list { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.hv-flow-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  opacity: 0;
  animation: hvflowItem 6s ease-in-out infinite;
}
@keyframes hvflowItem {
  0% { opacity: 0; transform: translateY(6px); }
  10%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.hv-flow-item-thumb {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg,
    color-mix(in oklch, var(--col-tone) 35%, var(--bg-soft)),
    color-mix(in oklch, var(--col-tone) 12%, var(--bg-soft)));
  flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hv-flow-item-thumb[data-i="1"] { background: linear-gradient(45deg, color-mix(in oklch, var(--col-tone) 30%, var(--bg-soft)), color-mix(in oklch, var(--col-tone) 8%, var(--bg-soft))); }
.hv-flow-item-thumb[data-i="2"] { background: linear-gradient(160deg, color-mix(in oklch, var(--col-tone) 40%, var(--bg-soft)), color-mix(in oklch, var(--col-tone) 15%, var(--bg-soft))); }
.hv-flow-item-thumb[data-i="3"] { background: linear-gradient(220deg, color-mix(in oklch, var(--col-tone) 28%, var(--bg-soft)), color-mix(in oklch, var(--col-tone) 10%, var(--bg-soft))); }
.hv-flow-item-thumb[data-i="4"] { background: linear-gradient(70deg, color-mix(in oklch, var(--col-tone) 36%, var(--bg-soft)), color-mix(in oklch, var(--col-tone) 14%, var(--bg-soft))); }
.hv-flow-item-thumb[data-i="5"] { background: linear-gradient(290deg, color-mix(in oklch, var(--col-tone) 32%, var(--bg-soft)), color-mix(in oklch, var(--col-tone) 11%, var(--bg-soft))); }
.hv-flow-item-state {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--col-tone);
  color: var(--col-tone);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.hv-flow-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hv-flow-item-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-flow-item-id {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* arrow between columns */
.hv-flow-arrow {
  position: absolute;
  right: -12px; top: 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  z-index: 3;
}

/* bottom ticker */
.hv-flow-ticker {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: center;
  z-index: 3;
}
.hv-flow-ticker .hv-mono {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg);
}
.hv-flow-ticker .hv-mono.dim { color: var(--fg-faint); }
.hv-flow-ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   HERO VARIANT — Polaroids
   ============================================================ */
.hv-pol {
  position: absolute; inset: 0;
  background: var(--bg-soft);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px 20px;
}
.hv-pol-deck {
  position: relative;
  width: 100%;
  height: 100%;
}
.hv-pol-source {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  z-index: 1;
}
.hv-pol-source strong {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
}
.hv-pol-card {
  position: absolute;
  top: 56px;
  left: 50%;
  width: 110px;
  background: white;
  border: 1px solid var(--line);
  padding: 6px 6px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateX(-50%) rotate(var(--rot));
  animation: polDeal 4.2s cubic-bezier(.5,0,.2,1) infinite;
  z-index: 2;
}
.hv-pol-card.to-valid { animation-name: polDealValid; }
.hv-pol-card.to-retouch { animation-name: polDealRetouch; }
.hv-pol-card.to-rej { animation-name: polDealRej; }

@keyframes polDealValid {
  0% { transform: translateX(-50%) translateY(0) rotate(var(--rot)); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translateX(calc(-50% - 130px)) translateY(140px) rotate(-8deg); opacity: 1; }
  100% { transform: translateX(calc(-50% - 130px)) translateY(140px) rotate(-8deg); opacity: 0; }
}
@keyframes polDealRetouch {
  0% { transform: translateX(-50%) translateY(0) rotate(var(--rot)); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translateX(-50%) translateY(150px) rotate(2deg); opacity: 1; }
  100% { transform: translateX(-50%) translateY(150px) rotate(2deg); opacity: 0; }
}
@keyframes polDealRej {
  0% { transform: translateX(-50%) translateY(0) rotate(var(--rot)); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translateX(calc(-50% + 130px)) translateY(140px) rotate(8deg); opacity: 0.5; }
  100% { transform: translateX(calc(-50% + 130px)) translateY(140px) rotate(8deg); opacity: 0; }
}
.hv-pol-img {
  width: 100%; aspect-ratio: 1; background: oklch(85% 0.04 60);
}
.hv-pol-img.img-a { background: repeating-linear-gradient(45deg, oklch(82% 0.05 60) 0 4px, oklch(78% 0.06 70) 4px 8px); }
.hv-pol-img.img-b { background: repeating-linear-gradient(45deg, oklch(80% 0.04 200) 0 4px, oklch(76% 0.05 210) 4px 8px); }
.hv-pol-img.img-c { background: repeating-linear-gradient(45deg, oklch(82% 0.05 130) 0 4px, oklch(78% 0.06 140) 4px 8px); }
.hv-pol-img.img-d { background: repeating-linear-gradient(45deg, oklch(82% 0.06 30) 0 4px, oklch(78% 0.07 40) 4px 8px); }
.hv-pol-img.img-e { background: repeating-linear-gradient(45deg, oklch(82% 0.05 280) 0 4px, oklch(78% 0.06 290) 4px 8px); }
.hv-pol-img.img-f { background: repeating-linear-gradient(45deg, oklch(82% 0.05 170) 0 4px, oklch(78% 0.06 180) 4px 8px); }
.hv-pol-meta {
  text-align: center;
  margin-top: 6px;
  font-size: 9px;
}
.hv-pol-bins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-self: end;
}
.hv-pol-bin {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hv-pol-bin.valid { border-color: var(--accent); }
.hv-pol-bin.valid .hv-pol-bin-icon { color: var(--accent); }
.hv-pol-bin.retouch .hv-pol-bin-icon { color: oklch(60% 0.12 90); }
.hv-pol-bin.rej .hv-pol-bin-icon { color: var(--fg-faint); }
.hv-pol-bin-icon { font-size: 18px; font-weight: 600; }
.hv-pol-bin-label { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.hv-pol-bin-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.hv-studio {
  position: absolute; inset: 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.hv-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.hv-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 38%;
}
.hv-card-1 { top: 7%; left: 7%; transform: rotate(-1.5deg); }
.hv-card-2 { top: 7%; right: 7%; transform: rotate(1.5deg); }
.hv-card-3 { top: 38%; left: 50%; transform: translateX(-50%) rotate(-0.5deg); width: 42%; }
.hv-card-img {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg,
      oklch(85% 0.05 60) 0 2px,
      oklch(82% 0.06 70) 2px 4px);
}
.hv-card-img.alt {
  background:
    repeating-linear-gradient(135deg,
      oklch(80% 0.04 240) 0 2px,
      oklch(76% 0.05 230) 2px 4px);
}
.hv-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  font-size: 11px;
}
.hv-tag {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
}
.hv-tag-ok { background: var(--accent-soft); color: var(--accent); }
.hv-tag-pending { background: oklch(95% 0.04 90); color: oklch(45% 0.1 90); }
.hv-tag-retouch { background: oklch(94% 0.04 240); color: oklch(45% 0.1 240); }
.hv-mono { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; }
.hv-mono.dim { color: var(--fg-faint); }
.hv-panel {
  position: absolute;
  bottom: 6%; left: 6%; right: 6%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.hv-panel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hv-panel-row.big { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.hv-panel-row.sm { font-size: 11px; }
.hv-bar { height: 4px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.hv-bar-fill { height: 100%; background: var(--accent); }
.hv-aperture {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  color: var(--fg);
  width: 70%;
  height: 70%;
}

/* === HERO SPECTRUM === */
.hv-spectrum {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--bg);
}
.hv-block { padding: 24px; position: relative; overflow: hidden; border: 2px solid var(--line); margin: -1px; }
.hv-block-1 {
  grid-row: 1 / 3;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
}
.hv-block-1 .aperture { width: 90%; height: 90%; }
.hv-block-2 {
  background: var(--bg-card);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hv-block-2 p {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.hv-block-2 em { font-style: italic; color: var(--accent); }
.hv-block-3 {
  background: var(--accent-3);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hv-grid-mini { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hv-cell { background: var(--line); }
.hv-cell.c-0, .hv-cell.c-3, .hv-cell.c-7 { background: var(--accent); }
.hv-cell.c-2 { background: var(--accent-2); }
.hv-block-4 {
  background: var(--accent-2);
  color: var(--fg);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.hv-num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.hv-cap {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 8px;
}

/* === HERO OBSIDIAN === */
.hv-obsidian {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, oklch(20% 0.015 60), oklch(10% 0.005 60));
  overflow: hidden;
}
.hv-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,158,247,0.22), transparent 60%);
  filter: blur(20px);
}
.hv-big-aperture {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  opacity: 0.85;
}
.hv-big-aperture circle { stroke: rgba(0,158,247,0.4); stroke-width: 0.5; }
.hv-big-aperture path { fill: rgba(0,158,247,0.95); }
.hv-big-aperture path:nth-child(odd) { fill: rgba(0,158,247,0.6); }

.hv-annot {
  position: absolute;
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.06em;
}
.hv-tick { display: block; width: 24px; height: 1px; background: var(--accent); margin-top: 8px; }
.hv-label { color: var(--fg-faint); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.hv-val { color: var(--fg); font-size: 12px; margin-top: 3px; }
.a1 { top: 10%; left: 6%; }
.a2 { bottom: 12%; left: 6%; }
.a3 { top: 50%; right: 6%; transform: translateY(-50%); flex-direction: row-reverse; text-align: right; }
.hv-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 60%, oklch(0% 0 0 / 0.4) 100%);
  pointer-events: none;
}

/* ============================================================
   Feature visuals
   ============================================================ */
.fv {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background: var(--bg-soft);
}

/* Live selection */
.fv-sel {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fv-sel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.fv-sel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 0 oklch(65% 0.18 145 / 0.5);
  animation: fv-sel-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes fv-sel-pulse {
  0% { box-shadow: 0 0 0 0 oklch(65% 0.18 145 / 0.5); }
  100% { box-shadow: 0 0 0 8px oklch(65% 0.18 145 / 0); }
}
.fv-sel-bar-text { flex: 1; color: var(--fg); }
.fv-sel-count { color: var(--accent); font-weight: 600; }
[data-style="spectrum"] .fv-sel-dot { border-radius: 0; }

.fv-grid-9 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%; height: 100%;
  max-width: 480px;
}
.fv-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}
[data-style="spectrum"] .fv-tile { border-radius: 0; }
.fv-tile-img {
  position: absolute; inset: 0;
}
/* simulated photo subjects via abstract shapes */
.fv-tile-shape {
  position: absolute; inset: 0;
  pointer-events: none;
}
.fv-tile-shape[data-shape="0"]::before {
  content: ""; position: absolute;
  left: 50%; bottom: 0; width: 60%; height: 55%;
  background: oklch(28% 0.04 240 / 0.55);
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
}
.fv-tile-shape[data-shape="1"]::before {
  content: ""; position: absolute;
  inset: 22% 18% 18% 22%;
  background: oklch(28% 0.05 230 / 0.5);
  border-radius: 4px;
  transform: rotate(-6deg);
}
.fv-tile-shape[data-shape="2"]::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 60%; bottom: 0;
  background: linear-gradient(to top, oklch(22% 0.05 240 / 0.6), transparent);
}
.fv-tile-shape[data-shape="2"]::after {
  content: ""; position: absolute;
  top: 22%; right: 18%; width: 22%; height: 22%;
  background: oklch(92% 0.04 80 / 0.85);
  border-radius: 50%;
}
.fv-tile-shape[data-shape="3"]::before {
  content: ""; position: absolute;
  left: 12%; top: 30%; width: 30%; height: 60%;
  background: oklch(28% 0.05 230 / 0.5);
  border-radius: 50% 50% 4px 4px;
}
.fv-tile-shape[data-shape="3"]::after {
  content: ""; position: absolute;
  right: 14%; top: 25%; width: 28%; height: 65%;
  background: oklch(30% 0.05 240 / 0.45);
  border-radius: 50% 50% 4px 4px;
}
.fv-tile.s-pick {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px -8px var(--accent);
}
.fv-tile.s-pick .fv-tile-img { filter: saturate(1.15) brightness(1.04); }
.fv-tile.s-reject { opacity: 0.45; }
.fv-tile.s-reject .fv-tile-img { filter: grayscale(0.8); }
.fv-tile.s-viewing {
  border-color: oklch(65% 0.18 145);
  box-shadow: 0 0 0 1px oklch(65% 0.18 145), 0 0 0 4px oklch(65% 0.18 145 / 0.18);
}
.fv-viewing {
  position: absolute; inset: auto 6px 6px auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 0 oklch(65% 0.18 145 / 0.6);
  animation: fv-sel-pulse 1.6s ease-out infinite;
}
[data-style="spectrum"] .fv-viewing { border-radius: 0; }
.fv-pick, .fv-reject {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
[data-style="spectrum"] .fv-pick, [data-style="spectrum"] .fv-reject { border-radius: 0; }
.fv-pick { background: var(--accent); color: var(--accent-fg); }
.fv-reject { background: var(--fg); color: var(--bg); }

/* Distribution */
.fv-dist {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  max-width: 560px;
  min-height: 320px;
  gap: 8px;
  margin-left: auto;
  margin-right: 0;
}
.fv-dist-col-src { justify-self: start; }
.fv-dist-col-tgt {
  display: flex; flex-direction: column; gap: 10px;
  width: 200px;
  justify-self: end;
}
.fv-dist-col-src .fv-dist-source { width: 200px; }
.fv-dist-col {
  position: relative;
  z-index: 2;
}
.fv-dist-col-tgt {
  display: flex; flex-direction: column; gap: 10px;
}
.fv-dist-source {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.fv-dist-source strong {
  font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; font-weight: 600;
  margin-top: 4px;
}
.fv-dist-meta {
  font-size: 11px; color: var(--muted);
  margin-top: 2px;
}
.fv-dist-lines {
  position: relative;
  width: 100%;
  height: 220px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  opacity: 0.75;
  pointer-events: none;
}
.fv-dist-lines path {
  stroke-dashoffset: 0;
  animation: fv-dist-flow 2.4s linear infinite;
}
@keyframes fv-dist-flow {
  to { stroke-dashoffset: -16; }
}
.fv-target {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.fv-target-name { flex: 1; }
.fv-target .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-1 { background: oklch(70% 0.16 50); }
.dot-2 { background: oklch(70% 0.16 200); }
.dot-3 { background: oklch(70% 0.16 130); }
.dot-4 { background: oklch(70% 0.05 60); }
[data-style="spectrum"] .fv-target .dot { border-radius: 0; transform: rotate(45deg); }

/* Renaming */
.fv-rename {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 540px;
}
.fv-rename-source {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.fv-rename-source::before {
  content: "";
  position: absolute;
  top: 18px; left: -1px;
  width: 3px; height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.fv-rename-source-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.fv-rename-source-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.fv-rename-source-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.fv-rename-source-fields > div {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 0;
}
.fv-rename-source-fields .hv-mono {
  font-size: 9px; letter-spacing: 0.08em;
}
.fv-rename-source-fields code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Variable highlight tokens (per-key color tag) */
.fv-var, .fv-var-tok {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid;
}
.fv-var[data-k="brand"], .fv-var-tok[data-k="brand"] {
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border-color: color-mix(in oklch, var(--accent) 30%, transparent);
}
.fv-var[data-k="collection"], .fv-var-tok[data-k="collection"] {
  color: color-mix(in oklch, var(--accent) 70%, var(--fg));
  background: color-mix(in oklch, var(--accent) 6%, transparent);
  border-color: color-mix(in oklch, var(--accent) 22%, transparent);
}
.fv-var[data-k="sku"], .fv-var-tok[data-k="sku"] {
  color: var(--fg);
  background: var(--bg-soft);
  border-color: var(--line);
}
.fv-var[data-k="angle"], .fv-var-tok[data-k="angle"] {
  color: var(--fg-muted);
  background: var(--bg-soft);
  border-color: var(--line-soft);
}

.fv-rename-row {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.fv-rename-row.after { border-color: var(--accent); }
.fv-rename-row code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  letter-spacing: 0;
}
.fv-rename-arrow { font-family: var(--font-mono); color: var(--accent); text-align: center; font-size: 22px; }
.fv-rename-pattern {
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 4px;
  border-left: 3px solid var(--accent);
}
[data-style="spectrum"] .fv-rename-pattern { border-left-width: 0; border-left: 0; border: 2px solid var(--line); background: var(--accent-3); }
.fv-rename-pattern code { font-family: var(--font-mono); font-size: 13px; color: var(--fg); }

/* Approval workflow flow */
.fv-approval-flow {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 600px;
  aspect-ratio: 5/3;
}
.fv-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fv-node {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 110px;
  text-align: center;
  box-shadow: var(--shadow);
}
[data-style="spectrum"] .fv-node { border-width: 2px; }
.fv-node-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  margin-bottom: 4px;
}
[data-style="spectrum"] .fv-node-icon { border-radius: 0; transform: rotate(45deg); }
[data-style="spectrum"] .fv-node-icon svg { transform: rotate(-45deg); }
.fv-node-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.fv-node-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fv-node.approved {
  background: var(--accent);
  border-color: var(--accent);
}
.fv-node.approved .fv-node-icon {
  background: rgba(255,255,255,0.2);
  border-color: transparent;
  color: var(--accent-fg);
}
.fv-node.approved .fv-node-label,
.fv-node.approved .fv-node-sub {
  color: var(--accent-fg);
}
/* positions: % of 600x360 viewport */
.fv-node-1 { top: 13%; left: 2%; }      /* Studio @ ~110,110 */
.fv-node-2 { top: 36%; left: 35%; }     /* Client @ ~300,180 */
.fv-node-3 { top: 13%; right: 2%; }     /* Post-prod @ ~490,110 */
.fv-node-4 { top: 58%; right: 2%; }     /* ArtCloud @ ~490,250 */
.fv-node-5 { top: 58%; left: 2%; }      /* Validé @ ~110,250 */

.fv-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fv-stamp strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
