* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #f1f1f1;
  background: #0f0f0f;
}

header {
  margin-bottom: 20px;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
}

.subtitle {
  margin-top: 6px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.field-inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #ccc;
}

.field-inline select,
.field-inline input {
  padding: 8px 10px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #212121;
  color: #f1f1f1;
  font-size: 13px;
}

.search-wrap {
  flex: 1;
  min-width: 180px;
}

.status {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.summary {
  font-size: 12px;
  color: #2ecc71;
  margin-bottom: 12px;
}

.summary.warn {
  color: #ffb347;
}

.summary.error {
  color: #ff6b6b;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.bulk-actions button {
  padding: 8px 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #212121;
  color: #ddd;
  font-size: 12px;
  cursor: pointer;
}

.bulk-actions button:hover {
  background: #2a2a2a;
  border-color: #666;
}

.voice-group {
  margin-bottom: 20px;
}

.voice-group h2 {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
}

.voice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.voice-row:hover {
  background: #181818;
  border-color: #2a2a2a;
}

.voice-row.hidden-voice {
  opacity: 0.55;
}

.voice-row label.show-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  font-size: 13px;
}

.voice-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #cc0000;
  flex-shrink: 0;
}

.voice-name {
  flex: 1;
  word-break: break-word;
}

.voice-badge {
  font-size: 10px;
  color: #888;
  padding: 2px 6px;
  border: 1px solid #333;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-preview {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #cc0000;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-preview:hover {
  background: #ff0000;
}

.btn-preview:disabled {
  opacity: 0.5;
  cursor: wait;
}

footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #777;
  line-height: 1.45;
}

.empty {
  color: #888;
  font-size: 13px;
  padding: 16px 8px;
}
