:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172033;
  --muted: #637084;
  --line: #d8dee8;
  --accent: #0d766e;
  --accent-strong: #075f59;
  --soft: #e8f4f2;
  --soft-line: #a9d7d1;
  --shadow: 0 18px 46px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.app {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.hero {
  margin-bottom: 22px;
  padding: 28px 0 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.intro {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.panel {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel.highlight,
.panel.help.highlight {
  background: var(--soft);
  border-color: var(--soft-line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.16rem;
}

.section-head p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #364256;
  font-size: 0.91rem;
  font-weight: 750;
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(13, 118, 110, 0.14);
  border-color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

ol {
  margin: 0;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checklist label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfd;
  font-weight: 700;
}

.checklist input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.social-grid {
  margin-top: 16px;
}

.section-gap {
  margin-top: 18px;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--soft);
  color: #17443f;
}

.single {
  margin-top: 16px;
}

.actions {
  display: grid;
  padding: 4px 0;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px 16px;
}

.actions button {
  width: 100%;
  min-height: 56px;
  font-size: 1.05rem;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

button.secondary {
  background: #dbe1ea;
  color: #172033;
}

.submit-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.confirmation {
  margin-top: 16px;
}

.confirmation h2 {
  font-size: 1.5rem;
}

.confirmation p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  align-items: end;
}

.submissions {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.submission-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.submission-table {
  width: 100%;
  border-collapse: collapse;
}

.submission-table th,
.submission-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.submission-table th {
  width: 210px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.output {
  margin-top: 16px;
}

pre {
  min-height: 220px;
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f6f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #273247;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 820px) {
  .grid.two,
  .split,
  .checklist {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 4px;
  }

  .wide {
    grid-column: auto;
  }

  .actions {
    justify-content: stretch;
  }

  button {
    flex: 1 1 180px;
  }
}
