/* ── Auth page ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
}

.auth-page.dashboard-view {
  align-items: flex-start;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 8px;
  margin-bottom: 32px;
}

/* ── GitHub button ── */
.btn-github {
  width: 100%;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: #fff;
  color: #000;
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-github:hover {
  background: #e5e5e5;
  color: #000;
}

/* ── Dashboard ── */
.dashboard {
  width: 100%;
  max-width: 600px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.dash-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dash-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dash-section + .dash-section {
  margin-top: 16px;
}

.dash-section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.dash-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.dash-section .quickstart-code {
  margin-bottom: 16px;
}

/* ── Token box ── */
.token-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.token-box code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-box .btn {
  flex-shrink: 0;
}

/* ── Run cards ── */
.run-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.run-card:last-child {
  border-bottom: none;
}

.run-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.run-repo {
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.run-date {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.run-hint {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-preview {
  background: #1a1a2e;
  border-color: #4a4aff;
  color: #8a8aff;
}

.badge-completed {
  background: #0d2818;
  border-color: #22c55e;
  color: #4ade80;
}

.badge-failed {
  background: #2d0f0f;
  border-color: #ef4444;
  color: #f87171;
}
