/* Virtual color draping — layout for the upload → crop → drape flow.
   Shares the ChicBrief design tokens; loaded only on the draping tool page. */

.vd-stage { max-width: 960px; }

.vd-drop {
  border: 1.5px dashed var(--line);
  background: var(--surface);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.vd-drop:hover, .vd-drop:focus-visible, .vd-drop.is-over {
  border-color: var(--site-accent);
  background: var(--canvas);
}
.vd-drop-icon { color: var(--site-accent); }
.vd-drop-title { font-size: 18px; font-weight: 700; margin: 14px 0 4px; }
.vd-drop-or { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.vd-drop .tool-btn { display: inline-block; pointer-events: none; }
.vd-drop-hint { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

.vd-progress { height: 4px; margin-top: 18px; background: var(--line); overflow: hidden; }
.vd-progress i {
  display: block; height: 100%; width: 40%;
  background: var(--site-accent);
  animation: vd-slide 1s ease-in-out infinite;
}
@keyframes vd-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.vd-step-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.vd-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.vd-crop-frame {
  width: min(480px, 100%);
  border: 1px solid var(--line);
  background: #111;
}
.vd-crop-frame canvas { display: block; width: 100%; height: auto; cursor: grab; }
.vd-crop-frame canvas:active { cursor: grabbing; }
.vd-crop-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 14px;
}
.vd-zoom-label { font-size: 13px; font-weight: 700; }
#vd-zoom { flex: 1 1 140px; accent-color: var(--site-accent); }

.vd-compare-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.vd-compare-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vd-compare-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .vd-compare-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vd-slot {
  margin: 0; border: 2px solid transparent;
  cursor: pointer; background: #111;
}
.vd-slot.is-active { border-color: var(--site-accent); }
.vd-canvas { display: block; width: 100%; height: auto; }
.vd-slot-cap {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 4px 8px; font-size: 13px; font-weight: 700;
}
.vd-like {
  border: 0; background: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--muted);
  padding: 2px 4px;
}
.vd-like.is-on, .vd-like:hover { color: var(--site-accent); }

.vd-controls { margin-top: 16px; display: grid; gap: 12px; }
.vd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vd-ctl-label { font-size: 13px; font-weight: 700; }

.vd-season-tabs, .vd-groups, .vd-compare-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-season, .vd-group, .vd-cmp {
  border: 1px solid var(--line); background: var(--surface);
  padding: 7px 14px; font-size: 13px; cursor: pointer;
  border-radius: 999px; color: var(--ink);
}
.vd-season.is-active, .vd-group.is-active, .vd-cmp.is-active {
  background: var(--site-accent); border-color: var(--site-accent); color: #fff;
}

.vd-rail {
  flex: 1 1 auto;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vd-rail::-webkit-scrollbar { height: 6px; }
.vd-rail::-webkit-scrollbar-thumb { background: var(--line); }
.vd-swatch {
  flex: 0 0 76px; height: 84px;
  scroll-snap-align: start;
  background: var(--sw); color: var(--fg);
  border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6px; text-align: left; font-family: inherit;
}
.vd-swatch.is-active { border-color: var(--ink); }
.vd-swatch-name { font-size: 11px; font-weight: 700; line-height: 1.2; }
.vd-swatch-hex { font-size: 10px; opacity: .8; }
.vd-swatch-like {
  position: absolute; top: 4px; right: 6px; font-size: 13px;
}
.vd-arrow {
  flex: 0 0 auto; width: 38px; height: 38px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink);
}
.vd-arrow:hover { border-color: var(--site-accent); color: var(--site-accent); }

#vd-height { flex: 1 1 120px; max-width: 220px; accent-color: var(--site-accent); }
.vd-compare-hint { font-size: 12.5px; color: var(--muted); margin: 0; }

.vd-likes-panel { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.vd-likes-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.vd-likes { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-likes-empty { color: var(--muted); font-size: 13px; margin: 0; }
.vd-like-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 4px 8px 4px 4px; font-size: 12.5px;
}
.vd-like-chip i { width: 22px; height: 22px; display: block; }
.vd-like-chip code { color: var(--muted); font-size: 11px; }
.vd-like-chip button {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 15px; padding: 0 2px;
}
.vd-like-chip button:hover { color: var(--site-accent); }

.vd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vd-season-hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 560px) {
  .vd-drop { padding: 40px 16px; }
  .vd-swatch { flex-basis: 68px; height: 78px; }
  .vd-actions .tool-btn { flex: 1 1 44%; }
}
