* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173129;
  background: #f3f7f4;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(139, 195, 74, 0.18), transparent 34rem),
    #f3f7f4;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #1f5a43;
  color: white;
  font-size: 30px;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand p {
  margin: 6px 0 0;
  color: #587066;
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe8df;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(30, 78, 59, 0.08);
}

.card + .card {
  margin-top: 20px;
}

.card-heading,
.source-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5e7a6e;
}

h2,
h3 {
  margin-top: 0;
}

h2 {
  margin-bottom: 10px;
}

h3 {
  margin-bottom: 8px;
}

.muted {
  color: #61766d;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbdad1;
  border-radius: 11px;
  padding: 10px 12px;
  background: white;
  color: #173129;
  outline: none;
}

input:focus {
  border-color: #2d7658;
  box-shadow: 0 0 0 3px rgba(45, 118, 88, 0.12);
}

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

.grid {
  display: grid;
  grid-template-columns: 2fr 120px 130px;
  gap: 16px;
  margin-top: 22px;
}

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

button {
  border: 0;
  border-radius: 11px;
  background: #1f5a43;
  color: white;
  padding: 11px 18px;
  font-weight: 800;
}

button:hover {
  filter: brightness(0.96);
}

button.secondary {
  background: #e9f1ec;
  color: #285641;
}

button.small {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

.status.success {
  color: #2d694e;
}

.source-panel {
  margin-top: 22px;
  border-top: 1px solid #e1ebe5;
  padding-top: 22px;
}

.date-pill {
  white-space: nowrap;
  background: #eef5f0;
  border: 1px solid #d7e6dc;
  border-radius: 999px;
  padding: 6px 10px;
  color: #557066;
  font-size: 0.82rem;
}

.address-preview {
  margin: 12px 0 6px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #f7faf8;
  border: 1px solid #e0e9e3;
  font-weight: 700;
}

.small-text {
  font-size: 0.92rem;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.source-button {
  background: white;
  color: #1f5a43;
  border: 1px solid #bfd4c6;
  min-height: 54px;
}

.hidden {
  display: none;
}

footer {
  margin-top: 24px;
  text-align: center;
  color: #6b7c74;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 880px);
    padding-top: 28px;
  }

  .card {
    padding: 20px;
  }

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

  .field-wide {
    grid-column: auto;
  }

  .card-heading,
  .source-heading {
    align-items: flex-start;
  }

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