/* Voice browser styles — the companion stylesheet to web/voices.js, shared by
   the editor's voice pane and the stream demo's voice panel. Consumes the host
   page's tokens: --text, --muted, --accent, --danger, --line, --panel-2, --ink,
   --mono. Extracted from style.css so embedding the component means linking
   this file, not copying rules. */

/* The component's own section label (voices.js sets class `modal-label` on it);
   scoped here so the browser is self-contained on pages without style.css. */
.voice-browser .modal-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 6px;
}

.voice-browser {
  margin-top: 14px;
  max-width: 560px;
}

.voice-browser .hint {
  font-size: 12px;
  color: var(--muted);
}

.voice-browser .hint.error { color: var(--danger); }

.voice-row {
  display: flex;
  align-items: stretch;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.voice-row + .voice-row { margin-top: 6px; }

.voice-row:hover { border-color: var(--accent); }

.voice-row.active { border-color: var(--accent); }

.voice-play {
  flex: none;
  width: 42px;
  display: grid;
  place-items: center;
  background: none;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.voice-play:hover:not([disabled]) { color: var(--accent); }

.voice-play[disabled] { opacity: .35; cursor: default; }

.voice-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: none;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
}

.voice-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
}

.voice-tagline {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.voice-meta,
.voice-usage {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.voice-usage { color: var(--accent); }

/* ── The library explorer, under the account list ── */
.voice-library { margin-top: 24px; }

.voice-library .modal-label { margin: 0 0 8px; }

.voice-search {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.voice-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--ink); /* recessed, like the editor's fields */
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
}

.voice-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.voice-search-btn,
.voice-more {
  width: auto;
  flex: none;
}

.voice-more {
  display: block;
  margin-top: 8px;
}

.voice-library .hint { margin-top: 8px; }

/* A library row mid-add: visibly busy, not clickable twice. */
.voice-row.adding {
  opacity: .55;
  pointer-events: none;
}
