/* Export: flashcards to Anki (CSV) */

.export__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  border-radius: 20px;
}

.export__copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.export__eyebrow { font-weight: 700; }
.export__title { margin: 0; font-size: 34px; line-height: 1.1; }

/* Export form */
.export__group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.export__legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.export__choices { --row-gap: 6px; }
.export__choice { padding: 7px 14px; font-size: 13px; cursor: pointer; }
.export__choice:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.export__choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.export__download { padding: 12px 20px; }
.export__done { font-size: 14px; font-weight: 600; color: var(--green); }
.export__hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* Export preview */
.export__preview {
  flex: 1 1 440px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
.export__preview-title {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.export__preview-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.export__preview-row:last-child { border-bottom: 0; }
.export__preview-ar { font-size: 24px; text-align: right; }
.export__preview-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.export__preview-text strong { font-size: 14px; }
.export__preview-empty { margin: 0; padding: 14px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 600px) {
  .export__title { font-size: 28px; }
  .export__preview-row { grid-template-columns: 80px minmax(0, 1fr); }
}
