:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #173c3c;
  background: #f5f8f6;
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4vw;
  border-bottom: 1px solid #dae4dd;
  background: white;
  flex-wrap: wrap;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  text-decoration: none;
  color: #173c3c;
  letter-spacing: -1px;
}
.brand span {
  color: #168477;
}
.brand b {
  font-weight: 450;
  border-left: 1px solid #bdcec4;
  padding-left: 15px;
  margin-left: 15px;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #e2eee7;
  padding: 4px 9px;
  border-radius: 20px;
}
#identity {
  margin-left: auto;
  font-size: 14px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 30px 4vw;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 400;
  margin: 10px 0 24px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
}
h3 {
  margin: 8px 0;
}
.lead {
  font-size: 21px;
  color: #597469;
  max-width: 660px;
}
.eyebrow {
  color: #137e6a;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.muted,
.footnote {
  color: #62796e;
  font-size: 13px;
}
.footnote {
  margin: 30px 0;
  max-width: 1000px;
}
.panel {
  padding: 26px;
  border: 1px solid #d7e4db;
  border-radius: 18px;
  background: white;
}
#login {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 65vh;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
input,
select,
textarea {
  font: inherit;
  color: #173c3c;
  width: 100%;
  padding: 12px;
  border: 1px solid #bbd0c3;
  border-radius: 9px;
  background: white;
  display: block;
  margin-top: 5px;
}
textarea {
  resize: vertical;
}
button,
.button {
  background: #147b68;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font: 600 14px system-ui;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover {
  background: #0a6454;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.quiet {
  background: #e7efea;
  color: #285d4b;
}
.quiet:hover {
  background: #d5e5db;
}
a {
  color: #087b78;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #44a0d2;
  outline-offset: 3px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.tabs button {
  background: transparent;
  color: #536f62;
}
.tabs button.active {
  background: #173c3c;
  color: white;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.search input {
  flex: 1;
  min-width: 170px;
  margin: 0;
}
.search select {
  width: auto;
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.map {
  height: 460px;
  border-radius: 16px;
  z-index: 0;
  border: 1px solid #cbdcd1;
  background: #dce9df;
}
.cards {
  max-height: 460px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}
.card {
  padding: 18px;
  border: 1px solid #d4e3da;
  border-radius: 12px;
  background: white;
  text-align: left;
  color: #173c3c;
  font-weight: 400;
}
.card:hover {
  background: #e8f2eb;
}
.card small {
  display: block;
  color: #617a6b;
}
#pin-detail {
  margin-top: 25px;
}
.photo-row {
  display: flex;
  gap: 10px;
  overflow: auto;
}
.photo-row img {
  max-height: 260px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.capture-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.photo-picker {
  padding: 18px;
  background: #e5efe8;
  border: 1px dashed #8fb5a0;
  border-radius: 12px;
  cursor: pointer;
}
.photo-picker input {
  border: 0;
  background: transparent;
  font-size: 13px;
}
#photo-preview {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #e6ede8;
  border-radius: 12px;
}
#capture-map {
  height: 310px;
  margin-top: 20px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
}
#capture-status {
  font-size: 14px;
}
#publish-controls {
  border-top: 1px solid #d8e4dc;
  padding-top: 20px;
  margin-top: 20px;
}
#new-pin {
  margin-top: 15px;
}
#message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #173c3c;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 1000;
  box-shadow: 0 5px 20px #173c3c20;
}
#message:empty {
  display: none;
}
code {
  display: block;
  overflow-wrap: anywhere;
  background: #edf3ef;
  padding: 15px;
  border-radius: 8px;
  font-size: 13px;
  margin: 15px 0;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: white;
  border-radius: 10px;
  padding: 16px;
  margin: 10px 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
footer {
  padding: 25px 4vw;
  color: #61796c;
  font-size: 12px;
  border-top: 1px solid #dae4dd;
}
@media (max-width: 760px) {
  #login,
  .split,
  .capture-grid,
  .grid {
    grid-template-columns: 1fr;
  }
  #login {
    gap: 20px;
    min-height: 0;
  }
  .heading {
    display: block;
  }
  .map {
    height: 330px;
  }
  .cards {
    max-height: 360px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 10px;
  }
  .panel {
    padding: 21px;
  }
  header {
    gap: 12px;
  }
  #identity {
    width: 100%;
    margin: 0;
  }
  .lead {
    font-size: 18px;
  }
  .connection {
    display: block;
  }
  .connection button {
    margin-top: 10px;
  }
}
