/* ============================================================
   Live preview
   Sticky mock of the labeler's screen. The .pv-* classes are
   miniatures of real controls — they're never interactive.
   ============================================================ */

.preview {
  width: 302px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

/* ---------- Head ---------- */

.preview__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.preview__head-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
}

.preview__head-note {
  font-size: 12px;
  color: var(--text-5);
}

/* ---------- Card ---------- */

.preview__card {
  background: var(--bg-bar);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow-preview);
}

/* Stand-in for the frame a labeler would be looking at */
.preview__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  background: linear-gradient(135deg, #1a2430, #121a24);
  border: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.preview__q-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview__q-label {
  font-size: 13.5px;
  font-weight: 400;
  color: #dbe4ec;
  margin-bottom: 9px;
  line-height: 1.35;
}

.preview__empty {
  font-size: 13px;
  color: var(--text-5);
  text-align: center;
  padding: 8px 0;
}

/* ---------- Miniature controls ---------- */

.pv-bool {
  display: flex;
  gap: 8px;
}

.pv-bool > span {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 0;
  border: 1px solid var(--border-4);
  border-radius: var(--r-sm);
  color: var(--text-3);
}

.pv-field {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 9px 11px;
  border: 1px solid var(--border-4);
  border-radius: var(--r-sm);
  background: #121a24;
}

.pv-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pv-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}

.pv-choice__mark {
  width: 14px;
  height: 14px;
  border: 1.5px solid #3d4f60;
  flex-shrink: 0;
}

.pv-choice__mark--radio {
  border-radius: 50%;
}

.pv-choice__mark--check {
  border-radius: 4px;
}
