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

* {
  box-sizing: border-box;
}

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

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

.panel {
  width: min(100%, 430px);
  border: 1px solid #d7dfdc;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(23, 32, 28, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: #31745f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.copy {
  margin: 12px 0 24px;
  color: #51615b;
  line-height: 1.5;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid #cad7d2;
  border-radius: 8px;
  background: #edf4f1;
}

.mode-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #596863;
  box-shadow: none;
}

.mode-switch button[aria-selected="true"] {
  background: #ffffff;
  color: #14201b;
  box-shadow: 0 1px 3px rgba(26, 42, 35, 0.14);
}

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

label {
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #b9c5c1;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(49, 116, 95, 0.18);
  border-color: #31745f;
}

.actions {
  display: grid;
  margin-top: 6px;
}

button {
  min-height: 44px;
  border: 1px solid #263b34;
  border-radius: 6px;
  padding: 0 12px;
  background: #263b34;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.actions button:first-child {
  background: #ffffff;
  color: #263b34;
}

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

.status {
  display: block;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 6px;
  background: #eef4f2;
  color: #263b34;
  padding: 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

@media (max-width: 460px) {
  .shell {
    padding: 16px;
  }

  .panel {
    padding: 22px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
