/* ==========================================================================
   Intake preview — a small live card on /audit/ that mirrors the name,
   company, and role fields back as the three questions the audit runs
   across the five engines. Rendered entirely from JS (see
   intake-preview.js); this file only styles the markup that script builds.
   No-JS: the mount point stays empty, so nothing here needs a fallback.
   Dark-theme tokens only (audit/index.html is data-theme="dark").
   ========================================================================== */

.intake-preview {
  margin: 0 0 var(--space-4, 16px);
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-card, 14px);
  background: color-mix(in oklch, currentColor 3%, transparent);
}

.intake-preview__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-text-primary, #f3f5f7);
}

.intake-preview__engines {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.intake-preview__engine-logo {
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--color-text-muted, #8b929c);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.intake-preview__rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.intake-preview__row {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 3px 5px;
  margin-inline: -5px;
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #b7bec8);
}

.intake-preview__value {
  font-weight: 600;
  color: var(--color-text-muted, #8b929c);
}

.intake-preview__value.is-typed {
  color: var(--color-accent, #e7a184);
}

.intake-preview__row.is-flash {
  animation: intake-preview-flash 550ms ease;
}

@keyframes intake-preview-flash {
  0% { background-color: var(--color-primary-100, rgba(204, 128, 102, 0.22)); }
  100% { background-color: transparent; }
}

.intake-preview__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted, #8b929c);
}

@media (prefers-reduced-motion: reduce) {
  .intake-preview__row.is-flash { animation: none; }
}
