:root {
  --green: #194e43;
  --dark: #243d35;
  --muted: #65736b;
  --cream: #f7f8f4;
  --line: #dfe5de;
  --clay: #b65c42;
  --pale: #eaf1e8;
  --shadow: 0 12px 36px #193c3610;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--dark);
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
}
button:hover {
  background: #eef3ed;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #b65c42;
  outline-offset: 3px;
}
.notice-banner {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.notice-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #e7c389;
  border-radius: 50%;
  margin-right: 7px;
}
.banner-extra {
  opacity: 0.75;
  margin-left: 14px;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px max(5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.brand-mark {
  background: var(--green);
  color: white;
  border-radius: 12px;
  width: 44px;
  height: 47px;
  text-align: center;
  font: italic bold 35px Georgia;
  line-height: 32px;
}
.brand-mark span {
  display: block;
  font-size: 23px;
  line-height: 8px;
}
.brand-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.brand-sub span {
  letter-spacing: 0;
  color: var(--muted);
}
.header-actions {
  display: flex;
  gap: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px;
}
.header-actions button + button {
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 24px;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 42px 5vw 0;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 750;
  color: var(--green);
  margin: 0 0 10px;
}
h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  letter-spacing: -1.6px;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 650;
}
.intro-copy {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 3px 8px #194e4318;
}
.primary:hover {
  background: #103c32;
}
.intro .primary {
  padding: 14px 21px;
}
.mobile-break {
  display: none;
}
.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  margin-bottom: 30px;
  padding: 19px 0;
  box-shadow: var(--shadow);
}
.metric {
  padding: 0 26px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.metric:last-child {
  border: 0;
}
.metric-icon {
  background: var(--pale);
  color: var(--green);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.metric:nth-child(2) .metric-icon {
  background: #f8eee4;
  color: #996535;
}
.metric:nth-child(3) .metric-icon {
  background: #f9eee8;
  color: var(--clay);
}
.metric strong {
  font-size: 27px;
  line-height: 1.2;
  display: block;
  font-weight: 650;
}
.metric small {
  font-size: 11px;
  color: var(--muted);
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  gap: 12px;
}
h2 {
  font-size: 18px;
  margin: 0 0 3px;
  letter-spacing: -0.3px;
}
.workspace-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.segmented {
  display: flex;
  background: #f1f3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.segmented button {
  font-size: 12px;
  background: transparent;
  border-color: transparent;
  padding: 6px 16px;
}
.segmented button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 1px 4px #0001;
  border-color: var(--line);
}
.layer-bar {
  padding: 12px 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.layer-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--muted);
  white-space: nowrap;
}
#layers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
}
.chip[aria-pressed="true"] {
  background: var(--pale);
  border-color: #c4d6c5;
  color: var(--green);
}
.chip[aria-pressed="true"]::before {
  content: "✓";
  font-size: 11px;
}
.chip[aria-pressed="false"]::before {
  content: "+";
}
#map-wrap {
  position: relative;
}
#map {
  height: 470px;
  background: #e9ece5;
}
.map-caption {
  position: absolute;
  z-index: 500;
  top: 16px;
  left: 16px;
  background: #fffffff2;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 8px #0001;
  pointer-events: none;
}
.map-caption span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.legend {
  position: absolute;
  bottom: 25px;
  left: 16px;
  z-index: 500;
  background: #fffffff5;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  display: flex;
  gap: 15px;
  font-size: 10px;
  box-shadow: 0 2px 8px #0001;
}
.legend-symbol {
  font-size: 14px;
  margin-right: 4px;
}
.open {
  color: var(--green);
}
.escalated {
  color: var(--clay);
}
.resolved {
  color: #55719b;
}
.priority {
  color: #99712e;
}
.issue-pin {
  background: none;
  border: 0;
}
.pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 36px;
  border: 3px solid white;
  background: var(--green);
  color: white;
  box-shadow: 0 3px 7px #1235;
  border-radius: 16px 16px 16px 3px;
  transform: rotate(-45deg);
}
.pin span {
  transform: rotate(45deg);
  font-size: 16px;
  font-weight: bold;
}
.pin.escalated {
  background: var(--clay);
  border-radius: 6px;
}
.pin.resolved {
  background: #55719b;
  border-radius: 50%;
}
.pin-label {
  white-space: nowrap;
  font-size: 9px;
  background: white;
  border-radius: 3px;
  padding: 1px 4px;
  position: absolute;
  top: 37px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dark);
  box-shadow: 0 1px 3px #0002;
}
.priority-ring .pin {
  outline: 2px solid #af8238;
}
.area-label {
  background: #fff9;
  border: 1px solid #789c86;
  border-radius: 5px;
  color: var(--green);
  font-size: 11px;
  padding: 3px 9px;
  white-space: nowrap;
}
.site-label {
  font-size: 10px;
  color: #854d37;
  background: #fff9;
  border: 0;
  box-shadow: none;
}
.community-note {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 28px 0;
}
.community-note > span:first-child {
  color: var(--green);
  background: var(--pale);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  flex-shrink: 0;
}
h3 {
  margin: 0;
  font-size: 13px;
}
.community-note p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.note-tag {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
footer {
  max-width: 1380px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 20px 5vw 25px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
footer a {
  color: inherit;
  text-decoration: none;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 12px;
  padding: 20px 25px;
  background: var(--cream);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  border: 1px solid #bcc9bf;
  border-radius: 7px;
  padding: 10px;
  margin: 5px 0 13px;
  color: var(--dark);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.cards {
  padding: 8px 25px 22px;
}
.issue-card {
  width: 100%;
  text-align: left;
  display: block;
  margin: 10px 0;
  padding: 17px;
}
.issue-card strong {
  display: block;
  font-size: 14px;
  margin: 6px 0;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--pale);
  color: var(--green);
  font-weight: 650;
}
.badge.clay {
  background: #f8eae4;
  color: #8b432d;
}
.badge.blue {
  background: #e9eef7;
  color: #3b5980;
}
.badge.gold {
  background: #f7eedb;
  color: #7e5b21;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 470px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 24px;
  box-shadow: -10px 0 40px #12231d22;
  color: var(--dark);
  overflow: auto;
}
dialog::backdrop {
  background: #183d333b;
  backdrop-filter: blur(2px);
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-top .eyebrow {
  margin: 0;
}
.icon-button {
  padding: 5px 10px;
  border: 0;
  font-size: 18px;
}
#panel-title {
  font-size: 26px;
  line-height: 1.2;
  margin: 14px 0 18px;
  letter-spacing: -0.7px;
}
.detail-description {
  color: #526359;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.detail-grid dt {
  font-size: 10px;
  color: var(--muted);
}
.detail-grid dd {
  font-size: 12px;
  margin: 3px 0 0;
  font-weight: 600;
}
.section-title {
  margin: 24px 0 12px;
  font-size: 14px;
}
.timeline {
  padding: 0 0 0 18px;
  border-left: 2px solid #dce5db;
  list-style: none;
  margin-left: 5px;
}
.timeline li {
  position: relative;
  margin: 0 0 20px;
}
.timeline li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border: 3px solid white;
  box-shadow: 0 0 0 1px #abc0af;
  border-radius: 50%;
  position: absolute;
  left: -24px;
  top: 5px;
}
.timeline time {
  font-size: 10px;
  color: var(--muted);
}
.timeline strong {
  display: block;
  font-size: 11px;
}
.timeline p {
  font-size: 12px;
  margin: 5px 0;
}
.support-box,
.private-box,
.location-box {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 9px;
  margin: 20px 0;
}
.support-box p {
  font-size: 12px;
  color: var(--muted);
}
.full {
  width: 100%;
}
.help {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.error {
  color: #a03325;
  font-size: 12px;
  background: #fff0eb;
  padding: 10px;
  border-radius: 6px;
}
.success {
  background: var(--pale);
  padding: 18px;
  border-radius: 8px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}
.danger {
  color: #a03325;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 10px 0;
}
.check-row input {
  width: auto;
  margin: 0;
}
.photo-placeholder {
  height: 130px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    135deg,
    #e9e3d9,
    #e9e3d9 15px,
    #ded8cf 15px,
    #ded8cf 30px
  );
  border-radius: 8px;
  color: #574e40;
  text-align: center;
  font-size: 12px;
  margin: 15px 0;
}
.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.location-pad {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 8px 0;
}
.location-pad button {
  padding: 7px 13px;
}
#queue {
  padding: 0 25px 25px;
}
.queue-intro {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  border-radius: 8px;
  z-index: 3000;
  padding: 12px 20px;
  box-shadow: var(--shadow);
  max-width: 90%;
  font-size: 13px;
}
#toast:empty {
  display: none;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 4000;
  background: white;
  padding: 12px;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
.reporting #map {
  cursor: crosshair;
}
.reporting .workspace {
  outline: 3px solid var(--clay);
}
.leaflet-tooltip {
  font-family: inherit;
}
@media (min-width: 1500px) {
  main {
    padding-top: 50px;
  }
  #map {
    height: 520px;
  }
}
@media (max-width: 760px) {
  header {
    padding: 17px 20px;
    gap: 10px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-mark {
    width: 38px;
    height: 42px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .header-actions {
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
  }
  .header-actions button {
    font-size: 10px;
    padding: 3px 0;
  }
  .header-actions button + button {
    border: 0;
    padding-left: 0;
  }
  .banner-extra {
    display: none;
  }
  main {
    padding: 28px 16px 0;
  }
  .intro {
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  .mobile-break {
    display: block;
  }
  .intro-copy {
    font-size: 13px;
  }
  .intro .primary {
    padding: 11px 16px;
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .impact {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin-bottom: 24px;
  }
  .metric {
    padding: 15px;
    gap: 10px;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 10px;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .workspace-heading {
    padding: 17px 15px;
  }
  h2 {
    font-size: 16px;
  }
  .workspace-heading p {
    font-size: 10px;
  }
  .segmented button {
    padding: 6px 10px;
    font-size: 11px;
  }
  .layer-bar {
    padding: 12px;
    display: block;
  }
  .layer-label {
    display: block;
    margin-bottom: 7px;
  }
  .chip {
    font-size: 10px;
    padding: 5px 9px;
  }
  #layers {
    gap: 5px;
  }
  #map {
    height: 440px;
  }
  .legend {
    gap: 10px;
    font-size: 9px;
    left: 9px;
    padding: 8px;
    bottom: 26px;
  }
  .legend-symbol {
    font-size: 12px;
  }
  .map-caption {
    top: 12px;
    left: 10px;
    font-size: 8px;
    padding: 8px;
  }
  .community-note {
    padding: 23px 0;
    align-items: flex-start;
    gap: 11px;
  }
  .community-note h3 {
    font-size: 12px;
  }
  .community-note p {
    font-size: 10px;
  }
  .note-tag {
    display: none;
  }
  footer {
    padding: 17px 16px;
    gap: 8px;
    flex-direction: column;
    font-size: 9px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
    gap: 8px;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .cards {
    padding: 0 15px 15px;
  }
  dialog {
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    height: 86dvh;
    max-height: 86dvh;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    border: 0;
    border-top: 5px solid #d1dcd2;
  }
  #queue {
    padding: 0 15px 15px;
  }
  .detail-grid {
    gap: 12px;
  }
  .desktop-break {
    display: none;
  }
}

.segmented button {
  white-space: nowrap;
}
.segmented {
  flex-shrink: 0;
}

/* Keep dismissal available while a long detail sheet is scrolled. */
.panel-top {
  position: sticky;
  top: -24px;
  z-index: 3;
  background: white;
  padding: 10px 0;
  margin-top: -10px;
}
@media (max-width: 760px) {
  dialog {
    height: 90dvh;
    max-height: 90dvh;
  }
  .panel-top {
    top: -20px;
  }
  .detail-description {
    font-size: 13px;
  }
  .detail-grid {
    margin: 16px 0;
  }
  .timeline li {
    margin-bottom: 14px;
  }
  .timeline p {
    margin: 3px 0;
  }
  .support-box {
    margin: 16px 0;
    padding: 13px;
  }
}
