:root {
  --background: #f5f7f2;
  --foreground: #17201a;
  --ink-soft: #546055;
  --panel: #ffffff;
  --line: #d9dfd4;
  --mint: #d9eee5;
  --teal: #0f6b63;
  --gold: #c99a35;
  --rose: #b45d57;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hero {
  min-height: 54vh;
  display: flex;
  align-items: end;
  padding: 32px 18px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 35, 28, 0.88), rgba(15, 71, 68, 0.65)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero__content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 8vw, 78px);
  line-height: 1.05;
}

.hero__lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: #e7eee7;
  font-size: 18px;
  line-height: 1.8;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero__stats span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.shell {
  width: min(1120px, calc(100% - 28px));
  margin: -36px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.assessment,
#sections {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(34, 49, 36, 0.08);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.identity-panel > div:first-child,
.location-box {
  grid-column: 1 / -1;
}

.field-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #263229;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd5ca;
  border-radius: 8px;
  background: #fbfcfa;
  color: #17201a;
  padding: 12px 13px;
  outline: none;
  min-height: 46px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.14);
}

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

.unit {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.location-box {
  border: 1px solid #cbded5;
  border-radius: 8px;
  background: var(--mint);
  padding: 14px;
}

.location-box p {
  margin: 10px 0 14px;
  color: #264239;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  background: var(--teal);
  color: #fff;
}

.primary-button:disabled {
  cursor: progress;
  background: #7b8e89;
}

.secondary-button {
  background: #143e37;
  color: #fff;
  padding: 0 16px;
}

.save-message {
  margin: 12px 0 0;
  color: var(--rose);
  font-weight: 800;
}

.recent {
  position: sticky;
  top: 16px;
}

.muted {
  color: var(--ink-soft);
  line-height: 1.7;
}

.recent-list {
  display: grid;
  gap: 10px;
}

.record-card {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe5db;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.record-card span,
.record-card small {
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero {
    min-height: 48vh;
    padding: 28px 16px 54px;
  }

  .shell {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .recent {
    position: static;
  }
}

@media (max-width: 620px) {
  .identity-panel,
  .field-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .panel {
    padding: 15px;
  }
}
