:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f7;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f7;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card,
.panel,
.stats article {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.muted,
.empty,
.panel-heading span {
  color: #64748b;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 700;
}

input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
}

button,
.button-link {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary {
  background: #172033;
}

.alert {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  color: #991b1b;
  background: #fee2e2;
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid #d9e1ec;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.page {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats article {
  padding: 18px;
}

.stats span {
  display: block;
  color: #64748b;
  font-weight: 700;
}

.stats strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.truncate {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.new {
  background: #dcfce7;
  color: #166534;
}

.badge.existing {
  background: #ffedd5;
  color: #9a3412;
}

.detail dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px 20px;
}

.detail dt {
  color: #64748b;
  font-weight: 800;
}

.detail dd {
  margin: 0;
}

.transcript {
  white-space: pre-wrap;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail dl {
    grid-template-columns: 1fr;
  }
}
