:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2b2a;
  background: #f3f6f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #176b58;
  --border: #cbd6d1;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
}

.page-shell {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.page-header {
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.intro,
.privacy-note,
.field-help,
.page-footer {
  color: #4b5c58;
  line-height: 1.55;
}

.intro {
  max-width: 42rem;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.panel {
  margin: 1rem 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.2rem rgb(26 56 48 / 5%);
}

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 650;
}

input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid #9aaba5;
  border-radius: 0.4rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

input[type="file"],
select {
  min-height: 2.8rem;
  padding: 0.55rem 0.65rem;
}

textarea {
  min-height: 10rem;
  padding: 0.75rem;
  resize: vertical;
  line-height: 1.5;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid #70bda9;
  outline-offset: 2px;
}

.privacy-note,
.field-help {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.button-secondary {
  background: #fff;
  color: var(--accent);
}

.button:disabled {
  border-color: #9aaba5;
  background: #e4e9e6;
  color: #586661;
  cursor: not-allowed;
}

.status,
.error {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: #e4f2ed;
  line-height: 1.5;
}

.error {
  border: 1px solid #b74343;
  background: #fff0ef;
  color: #782323;
}

.page-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.page-footer p {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 34rem) {
  .page-shell {
    width: min(100% - 1.25rem, 48rem);
    padding-top: 2rem;
  }

  .actions,
  .button {
    width: 100%;
  }
}
