:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #243e36;
  background: #f6f4ee;
  font-synthesis: none;
  --green: #294d43;
  --line: #d7ded6;
  --muted: #52665b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 23px 4vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 750;
  font-size: 18px;
  text-decoration: none;
  color: var(--green);
}
.brand span {
  font-weight: 400;
  color: var(--muted);
}
.badge,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 13px;
}
.eyebrow {
  font-weight: 700;
  color: #6b786d;
}
main {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 60px;
  padding: 48px 4vw;
}
h1 {
  font-family: Georgia, serif;
  font-size: 37px;
  line-height: 1.13;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 17px 0;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 8px 0 15px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
aside > p {
  font-size: 14px;
}
label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
}
input,
select,
textarea,
button,
.button {
  font: inherit;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #aebfb3;
  background: #fffef9;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--green);
  margin: 6px 0 12px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #acbeb0;
  background: transparent;
  color: var(--green);
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #e4eae0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #386653;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.row > label {
  flex: 1;
  min-width: 110px;
}
.spread {
  justify-content: space-between;
  align-items: center;
}
nav {
  margin: 34px 0;
}
nav button {
  display: flex;
  width: 100%;
  justify-content: start;
  border: 0;
  padding: 15px;
  text-align: left;
  margin: 5px 0;
  color: var(--muted);
}
nav button[aria-current="step"] {
  background: #e2e9df;
  color: #193f30;
}
nav .number {
  margin-right: 14px;
  font-size: 12px;
  opacity: 0.75;
}
.local-note {
  font-size: 12px !important;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.workspace {
  min-width: 0;
}
#status {
  background: #e8eee4;
  border: 1px solid #d5dfce;
  padding: 16px 20px;
  border-radius: 9px;
  margin-bottom: 30px;
}
#status strong {
  display: block;
  font-size: 14px;
}
#status p {
  font-size: 12px;
  margin: 4px 0 0;
}
.card {
  background: #fffef9;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  margin: 18px 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cards .card {
  margin: 0;
}
.step-lead {
  font-size: 15px;
  max-width: 680px;
  margin-bottom: 23px;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  margin: 14px 0;
  font-size: 14px;
}
.check input {
  margin-top: 4px;
  accent-color: var(--green);
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.media {
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.media img,
.placeholder {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #e7e9e1;
}
.placeholder {
  display: grid;
  place-content: center;
  color: #526456;
}
.media-body {
  padding: 12px;
}
.media-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.media p {
  font-size: 11px;
  margin: 5px 0;
}
.media button {
  min-height: 30px;
  font-size: 11px;
  padding: 5px 8px;
}
.media .check {
  font-size: 11px;
  margin: 8px 0;
}
.notice {
  padding: 12px 16px;
  background: #fff2d8;
  color: #674c21;
  border-radius: 8px;
  font-size: 13px;
}
.warning {
  color: #795424;
}
ul,
ol {
  padding-left: 23px;
  line-height: 1.8;
  font-size: 14px;
}
code,
pre {
  background: #eef0e8;
  font-size: 12px;
}
pre {
  padding: 15px;
  border-radius: 7px;
  overflow: auto;
  line-height: 1.7;
}
a {
  color: #25583e;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffef9;
  color: var(--green);
  max-width: min(960px, 95vw);
  width: 900px;
  max-height: 93dvh;
  padding: 25px;
}
dialog::backdrop {
  background: #18352c99;
}
dialog video {
  width: 100%;
  max-height: 55vh;
  background: #152d26;
  border-radius: 9px;
}
.observation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.photo-marker {
  position: relative;
  line-height: 0;
  cursor: crosshair;
  touch-action: manipulation;
}
.photo-marker img {
  width: 100%;
  height: auto;
}
.point {
  position: absolute;
  background: #fff;
  color: #1a4433;
  border: 2px solid #294d43;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 5px;
  font: bold 12px system-ui;
  pointer-events: none;
}
summary {
  cursor: pointer;
  font-weight: 550;
}
button:focus-visible,
.button:focus-within,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b18532;
  outline-offset: 3px;
}
#notice:empty {
  display: none;
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 25px 5vw;
  }
  aside h1 {
    font-size: 32px;
  }
  aside nav {
    display: flex;
    overflow: auto;
    margin: 15px 0;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    padding: 12px;
  }
  nav .number {
    margin-right: 7px;
  }
  .local-note {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .badge {
    display: none;
  }
  .observation-grid {
    grid-template-columns: 1fr;
  }
  header {
    padding: 18px 5vw;
  }
  .row {
    align-items: stretch;
  }
  .row > button,
  .row > .button {
    flex: 1;
  }
  .card {
    padding: 20px;
  }
  #status {
    margin-bottom: 22px;
  }
}

.button {
  position: relative;
}
.button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.marker-scroll {
  overflow: auto;
  max-height: 60vh;
}
.marker-zoom {
  max-width: 130px;
}
input[type="range"] {
  padding: 0;
}

/* Let the step navigation scroll inside the narrow layout, not size the page. */
aside {
  min-width: 0;
}
@media (max-width: 850px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }
}
