* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: #17202a;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 109, 119, 0.18), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(255, 183, 3, 0.18), transparent 28%),
    #f5f7fb;
}

.app {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  min-height: 100vh;
  padding: 32px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(23, 32, 42, 0.08);
  animation: rise 520ms ease both;
}

.eyebrow {
  margin: 0 0 8px;
  color: #006d77;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  max-width: 680px;
  font-size: 34px;
  line-height: 1.1;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b8c6d1;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
}

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

button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  color: #ffffff;
  background: #006d77;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  background: #005861;
  box-shadow: 0 12px 24px rgba(0, 109, 119, 0.22);
  transform: translateY(-1px);
}

.output {
  display: grid;
  grid-template-rows: auto 1fr;
}

.score {
  margin-bottom: 16px;
  color: #006d77;
  font-weight: 800;
}

pre {
  min-height: 420px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.55;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .app {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
