:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: #e2e8f0;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

h1 {
  margin: 0 0 8px;
}

.subtitle {
  margin: 0;
  color: #94a3b8;
}

.badge {
  border: 1px solid #334155;
  background: #111827;
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
}

.card,
.status-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
  backdrop-filter: blur(8px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.row.end {
  justify-content: flex-end;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: #334155;
  color: #f8fafc;
}

button.primary {
  background: #22c55e;
  color: #052e16;
}

button.danger {
  background: #ef4444;
  color: white;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #cbd5e1;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  background: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
}

.transcript-card h2 {
  margin-top: 0;
}

.log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 60vh;
  overflow: auto;
}

.log-entry {
  padding: 12px 14px;
  border-radius: 14px;
  background: #1e293b;
  white-space: pre-wrap;
  line-height: 1.45;
}

.log-entry.user {
  border-left: 4px solid #38bdf8;
}

.log-entry.assistant {
  border-left: 4px solid #22c55e;
}

.log-entry.system {
  border-left: 4px solid #f59e0b;
}

.log-entry.error {
  border-left: 4px solid #ef4444;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  .badge {
    width: 100%;
  }
}
