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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(920px, 100%);
  background: #ffffff;
  border: 1px solid #d8ddd4;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(31, 37, 32, 0.08);
}

.heading {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #59715a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
}

.form {
  display: grid;
  gap: 22px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8ddd4;
  border-radius: 8px;
  background: #fbfcf8;
  font-weight: 650;
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: #1e6f58;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #1e6f58;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #175b48;
}

.result {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #d8ddd4;
}

.result label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input[readonly] {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #ccd4c7;
  border-radius: 8px;
  padding: 0 12px;
  color: #1f2520;
  background: #fbfcf8;
  font: inherit;
}

.copy-row button {
  padding: 0 16px;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #6a342e;
  font-weight: 650;
}

@media (max-width: 560px) {
  .panel {
    padding: 20px;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }
}
