/* The /voices page: legal.css's palette and shell, widened for a table. */
.voices { max-width: 1040px; }

.voices-summary { color: var(--ink); font: 14px/1.5 var(--mono); }

.voices-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 20px 0 8px;
}
.voices-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font: 12px/1.4 var(--mono);
}
.voices-controls .voices-text { grid-column: 1 / -1; }
.voices-controls textarea,
.voices-controls input,
.voices-controls select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: 14px/1.4 var(--sans);
}
.voices-controls textarea { resize: vertical; }
.voices-controls :focus-visible { outline: 2px solid var(--cy); outline-offset: 1px; }

.voices-status { min-height: 1.4em; color: var(--muted); font: 13px/1.4 var(--mono); }

.voices-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.voices-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.voices-table th {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}
.voices-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.voices-table td:first-child { color: var(--ink); }
.voices-table td:last-child { color: var(--muted); font: 12px/1.4 var(--mono); white-space: nowrap; text-align: right; }

.voices-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.voices-sortable:hover { color: var(--ink); }
.voices-sortable:focus-visible { color: var(--ink); outline: 2px solid var(--cy); outline-offset: -2px; }
.voices-sortable[aria-sort="ascending"]::after { content: ' \25B4'; color: var(--cy); }
.voices-sortable[aria-sort="descending"]::after { content: ' \25BE'; color: var(--cy); }
.voices-table th:last-child { text-align: right; }

.voices-action {
  min-height: 32px;
  margin-left: 6px;
  padding: 0 12px;
  border: 1px solid rgba(45, 219, 240, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--cy);
  font: 12px/1 var(--mono);
  cursor: pointer;
}
.voices-action:hover, .voices-action:focus-visible { background: rgba(45, 219, 240, .12); color: var(--ink); }
.voices-action { display: inline-flex; align-items: center; gap: 6px; }
.voices-action svg { width: 13px; height: 13px; }
.voices-action[data-action="delete"]:hover { border-color: #ff8f8f; color: #ff8f8f; }

@media (max-width: 600px) {
  .voices-table th:nth-child(3), .voices-table td:nth-child(3) { display: none; }
  .voices-table td:last-child { white-space: normal; }
}
