/* CloneTheVoice — components.css: buttons, controls, cards, modals, toast notifications.
   Palette: Deep Teal (#17252A / #2B7A78) & Aqua (#3AAFA9). Zero gradients. */

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease),
    color 0.12s var(--ease), transform 0.08s var(--ease), opacity 0.12s var(--ease);
}
.btn .icon {
  width: 15px;
  height: 15px;
  color: currentColor;
  flex-shrink: 0;
}
.btn:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  color: var(--text-1);
}
.btn:active {
  transform: scale(0.985);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn-primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-1);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  font-weight: 600;
}
.btn-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}

.btn-danger-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--danger);
}
.btn-danger-ghost:hover {
  background: var(--danger-dim);
  border-color: transparent;
  color: var(--danger);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-2);
  color: var(--accent);
}
.icon {
  width: 16px;
  height: 16px;
}

.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linkish:hover {
  color: var(--accent-hover);
}

/* Generate button — high-impact solid Sage action */
.btn-generate {
  min-width: 128px;
  height: 36px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.btn-generate:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn-generate:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  transform: scale(0.98);
}
.btn-generating {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #ffffff !important;
}

/* ── Fields & Inputs ─────────────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.field > span small {
  color: var(--text-3);
  font-weight: 400;
}
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-input);
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
input:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: var(--surface-2);
}

textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.6;
  font-size: 14px;
}

/* ── Custom Voice Dropdown (Select) ─────────────────────────────────────── */

.voice-selector-wrap {
  position: relative;
}
select,
.voice-selector-wrap select {
  width: 100%;
  padding: 9px 38px 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-input);
  color: var(--text-1);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317252A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}
select:hover,
.voice-selector-wrap select:hover {
  border-color: var(--border-2);
}
select:focus,
.voice-selector-wrap select:focus {
  border-color: var(--accent);
  background-color: var(--surface-2);
}
select option {
  background: var(--surface);
  color: var(--text-1);
  padding: 8px 12px;
}

/* Range sliders */
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 140px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-olive);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-2);
  margin-top: -5px;
  transition: transform 0.1s var(--ease), background 0.1s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent-hover);
  transform: scale(1.15);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-olive);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface-2);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  user-select: none;
}
.check-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

/* ── Inline Voice Settings Panel ────────────────────────────────────────── */

.voice-settings {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.vs-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vs-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.vs-value {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  min-width: 30px;
  font-variant-numeric: tabular-nums;
}
.vs-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.seg {
  display: flex;
  padding: 2px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
}
.seg-btn {
  padding: 3px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.seg-btn:hover {
  color: var(--text-1);
}
.seg-active {
  background: var(--surface-olive);
  color: var(--accent);
  font-weight: 600;
}

.switch {
  position: relative;
  width: 36px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-olive);
  cursor: pointer;
  padding: 0;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.switch[aria-checked="true"] .switch-knob {
  transform: translateX(16px);
  background: var(--on-accent);
}

/* ── Generator Card ─────────────────────────────────────────────────────── */

.generator-card {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface-2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gen-top {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.voice-selector-wrap {
  flex: 1;
  min-width: 240px;
}
.gen-top-actions {
  display: flex;
  gap: 6px;
}

.gen-meta {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px;
}
.gen-meta span {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.gen-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.gen-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.gen-time-sep {
  color: var(--text-3);
}
.gen-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gen-status {
  font-size: 12px;
  color: var(--text-3);
  min-height: 18px;
  font-family: var(--mono);
}
.gen-status b {
  color: var(--accent);
  font-weight: 600;
}

/* ── Progress Indicators ────────────────────────────────────────────────── */

.progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.progress-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.progress-label-end {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.progress-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-olive);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.16s var(--ease);
}
.progress-indeterminate .progress-fill {
  width: 32%;
  animation: progress-slide 1.2s var(--ease) infinite;
}
@keyframes progress-slide {
  0% { margin-left: -32%; }
  100% { margin-left: 100%; }
}

/* ── Modal Dialogs ──────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 15, 13, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-panel {
  position: relative;
  width: min(520px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-l);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.12s var(--ease), background 0.12s var(--ease);
}
.modal-close:hover {
  background: var(--surface-3);
  color: var(--text-1);
}
.modal-body {
  padding: 20px;
}

/* ── Toast Notifications ────────────────────────────────────────────────── */

.toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}
.toast-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-1);
}
.toast-msg {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.toast-success {
  border-left: 3px solid var(--accent);
}
.toast-warn {
  border-left: 3px solid var(--warn);
}
.toast-error {
  border-left: 3px solid var(--danger);
}


/* ════════════════════════════════════════════════════════════════════════════
   PANELS — Voice Gallery + History & Exports
   One cohesive system: 34px control row, token-driven cards/rows, uniform
   action buttons, no hover-surprises. Sage accent, olive hairlines.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Gallery ────────────────────────────────────────────────────────────── */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

/* toolbar: one aligned control row */
.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 260px;
  flex-wrap: wrap;
}
.gallery-search {
  flex: 1;
  max-width: 300px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-s);
}
.gallery-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gallery .chip {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease), background 0.12s var(--ease);
}
.gallery .chip:hover { color: var(--text-1); border-color: var(--border-2); background: var(--surface-3); }
.gallery .chip-active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.gallery .chip-mini {
  height: auto;
  padding: 2px 9px;
  font-size: 10.5px;
  color: var(--text-3);
  background: transparent;
  border-color: var(--border);
  pointer-events: none;
}
.gallery-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gallery-tools select {
  width: 150px;
  height: 34px;
  padding: 0 30px 0 12px;
  border-radius: var(--radius-s);
  background-color: var(--surface-2);
}
.gallery-tools .btn { height: 34px; padding: 0 14px; }

/* grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.voice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.voice-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: var(--surface-2);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
}
.voice-card-active {
  border-color: var(--accent) !important;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.voice-card-selected {
  border-color: var(--accent) !important;
  background: var(--accent-dim);
}
.voice-select {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  cursor: inherit;
  border-radius: inherit;
}
.select-mode .voice-card { cursor: cell; }

.voice-avatar {
  position: relative;
  height: 88px;
  border-radius: var(--radius);
  overflow: visible;
  border: 1px solid var(--border);
}
.voice-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

/* favorite star: pinned over the avatar corner, legible on any art */
.voice-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-s);
  background: rgba(10, 11, 9, 0.55);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s var(--ease), background 0.12s var(--ease), transform 0.12s var(--ease);
}
.voice-fav:hover { color: var(--warn); background: rgba(10, 11, 9, 0.75); transform: scale(1.08); }
.voice-fav.is-fav { color: var(--warn); }

.voice-info { display: flex; flex-direction: column; gap: 4px; }
.voice-name { font-weight: 600; font-size: 14.5px; color: var(--text-1); }
.voice-sub { font-size: 12px; color: var(--text-3); }
.voice-card-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.chip-mini {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.4;
  cursor: default;
  pointer-events: none;
}

/* actions: always visible, uniform row — discoverable, not hover-gated */
.voice-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.voice-actions button {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease), background 0.12s var(--ease);
}
.voice-actions button:hover { color: var(--text-1); border-color: var(--border-2); background: var(--surface-3); }
.voice-actions [data-act="delete"]:hover { color: var(--danger); border-color: var(--danger); }

/* bulk bar */
.gallery-bulk {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.gallery-bulk.visible { display: flex; }
.gallery-bulk-count { color: var(--text-2); font-size: 12.5px; margin-right: auto; }

/* empty state */
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 70px 20px;
  text-align: center;
  color: var(--text-2);
}
.gallery-empty[hidden] { display: none; }
.gallery-empty h3 { margin: 10px 0 0; font-size: 18px; font-weight: 600; color: var(--text-1); }
.gallery-empty p { max-width: 400px; margin: 0; color: var(--text-2); }
.gallery-empty-art { color: var(--text-3); }
.gallery-empty .btn { margin-top: 10px; }

/* ── History & Exports ──────────────────────────────────────────────────── */

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 16px;
}
.history-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.history-head-actions { display: flex; gap: 8px; }
.history-head-actions .btn { height: 32px; padding: 0 13px; font-size: 12.5px; }
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}
.history-empty { color: var(--text-3); text-align: center; padding: 60px 0; }

.history-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-areas: 'play main actions' 'wave wave wave';
  gap: 6px 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.14s var(--ease);
}
.history-item:hover { border-color: var(--border-2); }

.history-play {
  grid-area: play;
  width: 40px;
  height: 40px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.12s var(--ease);
}
.history-play:hover { transform: scale(1.06); background: var(--accent-hover); }

.history-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.history-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.history-voice { font-weight: 600; font-size: 13px; color: var(--text-1); }
.history-meta {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.history-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-actions { grid-area: actions; display: flex; gap: 4px; align-self: center; }
.history-actions button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.history-actions button:hover { color: var(--text-1); background: var(--surface-3); border-color: var(--border); }
.history-actions [data-act="delete"]:hover { color: var(--danger); border-color: var(--danger); }

/* waveform: bare bars, no box clutter */
.history-wave { grid-area: wave; width: 100%; height: 36px; margin-top: 2px; opacity: 0.9; }

/* clone modal error state labels */
.clone-progress-error { color: var(--danger); }
.review-flag-error { color: var(--danger); }

/* ── SVG icon system ────────────────────────────────────────────────────── */
.icon-svg { width: 14px; height: 14px; flex: none; }

/* clone modal tabs: icon + label on one line */
.clone-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.clone-tab .icon-svg { width: 14px; height: 14px; }

/* dropzone: icon is the accent upload-cloud; spins while decoding */
.dropzone { cursor: pointer; }
.dropzone-icon { display: flex; align-items: center; justify-content: center; }
.dropzone-icon .icon-svg { width: 38px; height: 38px; }
.dropzone-icon.loading .icon-svg {
  animation: icon-spin 0.9s linear infinite;
  opacity: 0.55;
}
@keyframes icon-spin { to { transform: rotate(360deg); } }

/* card + history action icons */
.voice-actions button { display: inline-flex; align-items: center; justify-content: center; }
.voice-actions .icon-svg { width: 14px; height: 14px; }
.history-actions button svg { width: 13px; height: 13px; }
.history-play { display: inline-flex; align-items: center; justify-content: center; }
.history-play .icon-svg { width: 14px; height: 14px; fill: var(--on-accent); stroke: none; }
