:root {
  color-scheme: light;
  --background: #f4f7f9;
  --surface: #ffffff;
  --surface-muted: #f8fafb;
  --text: #16212b;
  --text-muted: #5d6b77;
  --border: #dce3e8;
  --accent: #176b51;
  --accent-dark: #0f513d;
  --accent-soft: #e8f5ef;
  --shadow: 0 14px 40px rgb(22 33 43 / 8%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  display: flex;
  flex-direction: column;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 48px 0 32px;
  flex: 1;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid #0d4434;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.environment-badge,
.version-chip {
  border: 1px solid #b9dacd;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.environment-badge {
  margin-left: auto;
  padding: 8px 12px;
}

.status-panel,
.metadata-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: clamp(24px, 5vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.status-summary {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.status-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.status-dot {
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.status-detail {
  max-width: 620px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.health-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 9px;
  color: #ffffff;
  background: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.health-button:hover {
  background: #0a3f30;
}

.health-button:active {
  transform: translateY(1px);
}

.health-button:focus-visible {
  outline: 3px solid rgb(23 107 81 / 30%);
  outline-offset: 3px;
}

.health-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.metadata-section {
  margin-top: 20px;
  padding: clamp(24px, 5vw, 32px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.version-chip {
  padding: 7px 11px;
  font-variant-numeric: tabular-nums;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metadata-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.metadata-card dt {
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.metadata-card dd {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 24px;
  }

  .status-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .health-button {
    width: 100%;
  }

  .metadata-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .environment-badge {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .status-summary {
    flex-direction: column;
  }

  .site-footer {
    width: min(100% - 24px, 1040px);
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .health-button {
    transition: none;
  }
}
