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

* {
  box-sizing: border-box;
}

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

a {
  color: #075985;
  font-weight: 650;
}

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

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #44515a;
  font-size: 1.08rem;
  line-height: 1.6;
}

.workspace {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d8e0e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #26343d;
  font-size: 0.93rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d2d8;
  border-radius: 6px;
  padding: 12px 14px;
  color: #172026;
  font: inherit;
  line-height: 1.5;
  background: #fbfdfe;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  background: #0f766e;
  cursor: pointer;
}

button:hover {
  background: #115e59;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

button.secondary {
  color: #172026;
  border: 1px solid #c8d2d8;
  background: #eef3f5;
}

button.secondary:hover {
  background: #e1e9ed;
}

.status {
  min-height: 22px;
  margin: 0;
  color: #44515a;
  font-weight: 700;
}

.status.error {
  color: #b91c1c;
}

.status.success {
  color: #047857;
}

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

.result {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dde5e9;
  border-radius: 8px;
  background: #fbfdfe;
}

.result.top {
  border-color: #5eead4;
  background: #ecfdf5;
}

.result-label {
  font-weight: 850;
  text-transform: capitalize;
}

.score {
  color: #44515a;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.meter {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6eb;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: #0f766e;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 980px);
    padding: 28px 0;
  }

  .workspace {
    padding: 16px;
  }
}
