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

body {
  margin: 0;
}

a {
  color: #1f5e73;
}

button {
  border: 0;
  border-radius: 7px;
  background: #17576b;
  color: white;
  font: inherit;
  font-weight: 650;
  padding: 11px 16px;
  cursor: pointer;
}

button.secondary {
  background: #d9e0df;
  color: #1e2528;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

input, textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #bcc8c7;
  border-radius: 7px;
  font: inherit;
  padding: 10px 12px;
  background: white;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.shell, .survey-shell, .admin-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 18px;
}

.narrow {
  max-width: 620px;
}

.survey-panel {
  background: white;
  border: 1px solid #d8dfde;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(28, 41, 43, .06);
}

.survey-head h1, h1 {
  font-size: 1.35rem;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.08rem;
  margin-top: 30px;
}

.progress {
  font-size: .92rem;
  color: #687574;
  margin-bottom: 18px;
}

.question {
  display: grid;
  gap: 18px;
}

.prompt {
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.35;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #cbd6d5;
  border-radius: 7px;
  padding: 12px;
  cursor: pointer;
  background: #fbfcfc;
}

.option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

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

.calibration-card {
  border: 1px solid #cbd6d5;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.calibration-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.calibration-card div {
  padding: 9px 10px;
  font-weight: 700;
}

.error {
  color: #9d1f1f;
  font-weight: 650;
}

.success {
  color: #146239;
  font-weight: 650;
}

.stack {
  display: grid;
  gap: 14px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  border: 1px solid #d8dfde;
}

th, td {
  border-bottom: 1px solid #e3e8e7;
  text-align: left;
  padding: 9px 10px;
  vertical-align: top;
  font-size: .93rem;
}

pre {
  background: #101819;
  color: #edf4f3;
  border-radius: 8px;
  padding: 14px;
  overflow: auto;
}

.facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
}

.facts dt {
  color: #687574;
}

@media (max-width: 720px) {
  .calibration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-panel {
    padding: 18px 14px;
  }

  .nav-row {
    flex-direction: column-reverse;
  }
}
