:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #12352c;
  background: #f2f8f5;
}

body {
  margin: 0;
  min-height: 100vh;
}

.diagnostic-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.diagnostic-header,
.diagnostic-card {
  background: #fff;
  border: 1px solid #d6e7df;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgb(24 79 61 / 8%);
}

.diagnostic-header {
  padding: 24px;
  margin-bottom: 18px;
}

.diagnostic-back {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  width: fit-content;
  gap: 10px;
  margin: 0;
  padding: 0 16px 0 12px;
  background: #e5f2ed;
  color: #125b45;
}

.diagnostic-back__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.diagnostic-back:hover,
.diagnostic-back:focus-visible {
  background: #cfe9dc;
  color: #0d4c39;
}

.diagnostic-header h1,
.diagnostic-card h2 {
  margin-top: 0;
}

.diagnostic-card {
  padding: 22px;
  margin-bottom: 16px;
}

.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

button,
.diagnostic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #167b5a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.diagnostic-link.secondary {
  background: #e5f2ed;
  color: #125b45;
}

pre {
  min-height: 54px;
  margin: 16px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: #f4f7f6;
  color: #294b41;
  white-space: pre-wrap;
}

pre[data-state="success"] {
  border-left: 4px solid #1e9b6d;
}

pre[data-state="error"] {
  border-left: 4px solid #c64040;
  color: #8d2929;
}
