:root {
  --color-teal-500: #14b8a6;
  --color-teal-50:  #f0fdfa;
  --color-teal-100: #ccfbf1;
  --color-teal-700: #0f766e;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f6f8fa;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-top: 3px solid var(--color-teal-500);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-teal-100);
  color: var(--color-teal-700);
  border-radius: 4px;
  padding: 2px 7px;
}

h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
}

.subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.subtitle code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.8rem;
  background: var(--color-teal-50);
  border: 1px solid var(--color-teal-100);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--color-teal-700);
}

.divider {
  border: none;
  border-top: 1px solid #e1e4e8;
  margin-bottom: 1.75rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.env-key {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 500;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.status-pill.loading  { background: #f3f4f6; color: #9ca3af; }
.status-pill.set      { background: var(--color-teal-100); color: var(--color-teal-700); }
.status-pill.not-set  { background: #fef3c7; color: #92400e; }
.status-pill.error    { background: #fee2e2; color: #991b1b; }

.raw-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.78rem;
  color: #6b7280;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 2.5rem;
}

.error-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e1e4e8;
  line-height: 1.5;
}
.error-note code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 4px;
  color: #374151;
}
