/* ─── Export Dialog ─── */
.export-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.export-overlay.hidden { display: none !important; }

.export-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  width: 400px;
  max-width: 92%;
  max-height: 85vh;
  overflow-y: auto;
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.export-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.export-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.export-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.export-select,
.export-input {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
}

.export-select:focus,
.export-input:focus {
  border-color: var(--accent);
}

.export-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.export-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.export-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  min-width: 36px;
  text-align: right;
}

/* ─── Progress bar ─── */
.export-progress {
  margin: 0 20px 8px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.export-progress.hidden { display: none; }

.export-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.export-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
