:root {
  --app-bg: #f5f7fb;
  --app-panel: #ffffff;
  --app-border: #d9e0ea;
  --app-text: #172033;
  --app-muted: #687386;
  --app-primary: #2563eb;
  --app-success: #16803c;
  --app-warning: #a16207;
  --app-danger: #b42318;
}

body {
  background: var(--app-bg);
  color: var(--app-text);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  width: 252px;
  background: #111827;
  color: #e5e7eb;
}

.app-sidebar a {
  color: #cbd5e1;
  text-decoration: none;
}

.app-sidebar a:hover,
.app-sidebar a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.app-main {
  min-width: 0;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.panel {
  background: var(--app-panel);
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.metric {
  min-height: 104px;
}

.metric-label,
.muted-label {
  color: var(--app-muted);
  font-size: 0.875rem;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.voice-card {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: #fff;
}

.voice-card.is-selected {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.badge-soft {
  background: #eef2ff;
  color: #3730a3;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.status-ok {
  background: var(--app-success);
}

.status-warn {
  background: var(--app-warning);
}

.status-bad {
  background: var(--app-danger);
}

.placeholder-audio {
  height: 38px;
  border: 1px dashed #aab4c3;
  border-radius: 6px;
  color: var(--app-muted);
  background: #f8fafc;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.file-drop {
  border: 1px dashed #98a6ba;
  background: #f8fafc;
  border-radius: 8px;
}

.form-hint {
  color: var(--app-muted);
  font-size: 0.875rem;
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block !important;
  }

  .app-sidebar {
    width: 100%;
  }
}

.voice-picker-list {
  max-height: calc(100vh - 310px);
  overflow-y: auto;
}

.voice-picker-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.voice-picker-card:hover {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.selected-voice-summary {
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}
