:root {
  --ink:#203f33;
  --muted:#657469;
  --line:#dce5db;
  --green:#244f3b;
  --paper:#f5f7f2;
  --accent:#99671d;
}

* {
  box-sizing:border-box;
}

[hidden] {
  display:none!important;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

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

button,select {
  border:1px solid #bcccba;
  background:white;
  color:var(--ink);
  border-radius:7px;
  padding:8px 11px;
  cursor:pointer;
}

button:hover {
  background:#edf3e8;
}

button:disabled,.street-view-link[aria-disabled="true"] {
  opacity:.45;
  cursor:default;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #dba64d;
  outline-offset:2px;
}

.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
}

.primary:hover {
  background:#36634b;
}

.quiet {
  background:transparent;
  border-color:transparent;
  padding:5px 0;
  color:#536a5b;
}

.danger {
  color:#9b3644;
}

a {
  color:#306346;
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-size:22px;
  letter-spacing:-.035em;
  margin-bottom:1px;
}

h2 {
  font-size:21px;
  line-height:1.25;
  margin-bottom:0;
}

h3 {
  font-size:14px;
  margin:18px 0 9px;
}

.eyebrow {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:750;
  color:var(--muted);
}

.note {
  font-size:12px;
  color:var(--muted);
  margin:8px 0;
}

.app-header {
  height:82px;
  padding:15px 22px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff;
}

.app-header p {
  font-size:12px;
  color:var(--muted);
  margin:0;
}

.header-actions {
  display:flex;
  align-items:center;
  gap:10px;
}

.account-button {
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex-shrink:0;
}

.account-button img {
  flex-shrink:0;
}

#accountButtonName {
  max-width:clamp(65px,12vw,160px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.account-preview-badge {
  font-size:10px;
  color:var(--muted);
}

.download-menu {
  position:relative;
}

.account-dialog {
  width:min(470px,calc(100vw - 32px));
}

.about-dialog {
  width:min(720px,calc(100vw - 32px));
  max-width:720px;
}

.account-auth-form input {
  display:block;
  width:100%;
}

.account-preview-note {
  padding:10px 12px;
  margin-top:16px;
  background:#fff8df;
  border:1px solid #ddbf70;
  border-radius:7px;
}

.account-switch {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin:18px 0 0;
}

#accountConfirmationEmail {
  overflow-wrap:anywhere;
}

.download-menu>summary {
  list-style:none;
  cursor:pointer;
  border:1px solid var(--line);
  padding:9px 13px;
  border-radius:7px;
  font-weight:650;
}

.popover {
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:25;
  background:white;
  border:1px solid var(--line);
  box-shadow:0 8px 30px #15382920;
  border-radius:10px;
  padding:16px;
  width:310px;
}

.popover button {
  display:block;
  width:100%;
  margin:8px 0;
}

.layout {
  height:calc(100dvh - 82px);
  min-height:480px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
  padding:16px 20px 18px;
}

.map-pane {
  display:flex;
  flex-direction:column;
  min-height:0;
  min-width:0;
  position:relative;
}

.map-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.mode-switch {
  display:inline-flex;
  border:1px solid #becdbb;
  padding:3px;
  border-radius:8px;
  background:white;
  gap:3px;
}

.mode-switch button {
  border:0;
  padding:5px 16px;
  background:transparent;
}

.mode-switch button[aria-pressed=true] {
  background:var(--green);
  color:white;
}

.modebar {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.mode-help {
  font-size:12px;
  color:var(--muted);
  margin:0;
}

.map-tools {
  display:flex;
  gap:8px;
}

.map-workspace {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:280px;
  border-radius:10px;
  background:#233d30;
  position:relative;
}

.frame {
  position:relative;
  flex:1;
  min-height:0;
  overflow:hidden;
  border:1px solid #889e88;
  border-radius:10px;
}

.map-workspace:has(.drawbar:not([hidden])) .frame {
  border-top-left-radius:0;
  border-top-right-radius:0;
}

svg {
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:grab;
}

.scale {
  position:absolute;
  left:12px;
  top:12px;
  display:flex;
  gap:3px;
  z-index:3;
  background:#fff;
  padding:4px;
  border-radius:8px;
  box-shadow:0 2px 8px #142b2625;
}

.scale button {
  border:0;
  padding:5px 10px;
}

.scale .reset {
  border-left:1px solid var(--line);
  border-radius:0;
  font-size:12px;
}

.north {
  position:absolute;
  right:13px;
  top:16px;
  color:white;
  font-size:12px;
  font-weight:700;
  text-shadow:0 1px 4px #000;
  pointer-events:none;
}

.map-legend {
  padding-top:10px;
  font-size:11px;
  color:var(--muted);
}

.legend {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:4px;
}

.swatch {
  width:17px;
  height:3px;
  display:inline-block;
  margin:0 5px 3px 0;
}

.legend .dash {
  height:0;
  border-top:2px dashed #65796b;
}

.legend .solid {
  height:0;
  border-top:2px solid #65796b;
}

.hint {
  margin:4px 0;
  font-size:11px;
  color:var(--muted);
}

#canopy,#old,#draft {
  pointer-events:none;
}

#old path {
  fill:none;
  stroke:#ffc278;
  stroke-width:1.3;
  vector-effect:non-scaling-stroke;
}

.crown {
  stroke:#f7ffe6;
  stroke-width:1.2;
  stroke-dasharray:5 3;
  fill:transparent;
  fill-rule:evenodd;
  vector-effect:non-scaling-stroke;
  cursor:pointer;
  pointer-events:all;
}

.crown.reviewed {
  stroke-dasharray:none;
}

.crown.keep {
  stroke-width:2;
}

.crown.type-palm {
  stroke:#e7a1ff;
  fill:#df98ff20;
}

.crown.type-other_canopy_tree {
  stroke:#78dfff;
}

.crown.type-mixed_uncertain {
  stroke:#ffcb71;
}

.crown.user-drawn {
  stroke-width:2;
}

.crown.exclude {
  stroke:#fb8191;
  stroke-dasharray:3 2;
  opacity:.5;
}

.crown.selected,.crown:focus,.crown:hover {
  stroke-width:3!important;
  fill:#ffdf681e;
}

.boundary {
  fill:none;
  stroke:white;
  stroke-width:1.8;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}


.inspector {
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}

.panel-heading {
  padding:18px 18px 12px;
  border-bottom:1px solid var(--line);
}

.panel-heading .eyebrow {
  margin:7px 0;
}

.panel-content {
  padding:16px 18px;
  overflow:auto;
  flex:1;
  min-height:0;
}

.panel-footer {
  border-top:1px solid var(--line);
  padding:12px 18px;
  background:#fafbf7;
}

.panel-footer .actions {
  display:flex;
  gap:7px;
}

.panel-footer .primary {
  flex:1;
}

.save-note {
  font-size:11px;
  color:var(--muted);
  margin:0 0 8px;
}

.coverage {
  padding:15px;
  border-radius:9px;
  background:#eef3e9;
  margin-bottom:14px;
}

.coverage strong {
  display:block;
  font-size:39px;
  line-height:1.2;
  letter-spacing:-.04em;
}

.coverage span {
  font-size:12px;
}

.coverage p {
  margin:4px 0 0;
  font-size:12px;
  color:var(--muted);
}

.stats-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.stat {
  border:1px solid var(--line);
  border-radius:7px;
  padding:9px;
}

.stat strong {
  display:block;
  font-size:23px;
  line-height:1.25;
}

.stat span {
  font-size:11px;
  color:var(--muted);
}

.rank-list {
  list-style:none;
  padding:0;
  margin:8px 0;
}

.rank-list li {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid #edf1e9;
  padding:7px 0;
  font-size:12px;
}

progress {
  width:100%;
  height:7px;
  accent-color:var(--green);
}

.record-id {
  font-size:11px;
  color:var(--muted);
}

.metric {
  font-size:24px;
  font-weight:700;
  margin:10px 0 2px;
}

.metric small {
  font-size:12px;
  font-weight:400;
  color:var(--muted);
}

.badge {
  font-size:11px;
  font-weight:650;
  border-radius:5px;
  padding:4px 7px;
  background:#edf3e9;
  display:inline-block;
}

.badge.unreviewed {
  background:#faf0dc;
  color:#78591d;
}

.detail-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  margin:6px 0;
}

.detail-row span {
  color:var(--muted);
}

.subdetails {
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:14px;
}

summary {
  cursor:pointer;
  font-size:12px;
  font-weight:650;
}

.field {
  display:block;
  font-size:12px;
  font-weight:650;
  margin:13px 0 5px;
}

.wide {
  width:100%;
}

input[type=text],input[type=number],input[type=email],input[type=password],textarea {
  width:100%;
  border:1px solid #bcccba;
  border-radius:7px;
  padding:8px 10px;
  color:var(--ink);
  background:white;
}

textarea {
  resize:vertical;
}

select {
  max-width:100%;
}

.search-row {
  display:flex;
  gap:5px;
}

.search-row input {
  min-width:0;
}

.actions {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.actions button {
  font-size:12px;
}

.outline-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) 32px;
  align-items:center;
  gap:4px 8px;
  margin-bottom:14px;
}

.outline-actions button {
  width:100%;
}

.outline-actions .quiet {
  grid-column:1 / -1;
}

#splitCanopy {
  grid-column:1 / -1;
}

.button-link {
  display:inline-block;
  border:1px solid #bcccba;
  border-radius:7px;
  padding:8px 11px;
  text-decoration:none;
  background:white;
}

body[data-sandbox=true] .app-header {
  background:#fff8df;
}

.app-header .sandbox-notice {
  color:#78531b;
  font-weight:650;
}

.street-view-link {
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:36px;
  border-radius:5px;
  text-decoration:none;
}

.street-view-link:hover {
  background:#f8efcf;
}

.street-view-link img {
  display:block;
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.taxonomy-preview,.new-tree-form {
  background:#f1f5ed;
  border-radius:7px;
  padding:11px;
  margin:10px 0;
}

.taxonomy-preview dl {
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  font-size:12px;
  gap:2px 7px;
}

.taxonomy-preview dt {
  color:var(--muted);
}

.taxonomy-preview dd {
  margin:0;
}

.new-tree-form h3 {
  margin-top:0;
}

.member {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding:7px;
  background:#edf3e8;
  border-radius:5px;
  font-size:12px;
  margin:5px 0;
}

.member button {
  font-size:11px;
  padding:2px 6px;
}

.tree-fact {
  margin-top:12px;
}

.tree-fact h3 {
  margin-top:0;
}

.tree-fact p {
  font-size:12px;
  margin:5px 0;
}

.read-labels dt {
  color:var(--muted);
  font-size:12px;
}

.read-labels dd {
  margin:3px 0 12px;
}

.flags {
  font-size:11px;
  color:#846233;
}

.layers-panel {
  position:absolute;
  right:0;
  top:51px;
  width:295px;
  max-height:calc(100% - 80px);
  overflow:auto;
  padding:16px;
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  box-shadow:0 8px 30px #15382930;
  z-index:20;
}

.drawer-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.drawer-heading h2 {
  font-size:16px;
}

.range {
  width:100%;
  accent-color:var(--green);
}

.count {
  font-weight:700;
}

.drawbar {
  border-radius:10px 10px 0 0;
  background:#fff4ce;
  padding:12px 15px;
  color:#59451c;
}

.drawbar b {
  font-size:14px;
}

.drawbar .actions {
  margin:8px 0 5px;
}

.drawbar p {
  font-size:12px;
  margin:5px 0;
}

.split-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.split-controls input {
  width:170px;
}

.split-preview {
  fill-rule:evenodd;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.split-part-1 {
  fill:#46bdec50;
  stroke:#8de0ff;
}

.split-part-2 {
  fill:#f4ba3b50;
  stroke:#ffdb7d;
}

.split-line {
  stroke:white;
  stroke-width:2;
  stroke-dasharray:6 4;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.split-label {
  fill:white;
  stroke:#203f33;
  stroke-width:3;
  vector-effect:non-scaling-stroke;
  paint-order:stroke;
  text-anchor:middle;
  dominant-baseline:middle;
  font-weight:750;
  pointer-events:none;
}

.split-handle {
  fill:white;
  stroke:#203f33;
  stroke-width:3;
  vector-effect:non-scaling-stroke;
  cursor:move;
}

.split-handle:focus {
  fill:#ffdc76;
  outline:none;
}

.admin-dialog {
  width:min(820px,calc(100vw - 32px));
  max-width:820px;
}

.admin-notice,.rollback-review {
  padding:12px;
  border:1px solid #ddbf70;
  border-radius:7px;
  background:#fff8df;
  margin-top:16px;
}

.admin-toolbar {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.admin-history {
  padding:0;
  list-style:none;
}

.admin-history>li {
  padding:14px 0;
  border-top:1px solid var(--line);
}

.admin-entry-heading {
  display:flex;
  flex-direction:column;
}

.admin-history details {
  margin-bottom:10px;
}

.admin-history details li {
  overflow-wrap:anywhere;
}

.admin-tabs {
  display:flex;
  gap:8px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  margin-top:20px;
}

.admin-tabs [aria-selected=true] {
  background:var(--green);
  border-color:var(--green);
  color:white;
}

.account-table-wrap {
  overflow-x:auto;
}

.account-table {
  width:100%;
  text-align:left;
  border-collapse:collapse;
  margin-top:16px;
}

.account-table td,.account-table th {
  padding:10px 8px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  font-size:12px;
}

.account-email {
  display:block;
  color:var(--muted);
  overflow-wrap:anywhere;
}

.account-status {
  display:inline-block;
  padding:2px 7px;
  border-radius:5px;
  background:#e5f1e4;
}

.account-status.suspended {
  background:#ffe8e8;
  color:#942e3e;
}

.account-form {
  padding:16px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  margin-top:16px;
}

.account-form h3 {
  margin-top:0;
}

.interaction-shield {
  position:fixed;
  inset:0;
  background:#182a24a6;
  z-index:40;
  cursor:not-allowed;
  backdrop-filter:blur(1px);
}

body[data-map-task=true] .map-workspace {
  position:fixed;
  inset:20px 370px 20px 20px;
  z-index:41;
  box-shadow:0 0 0 3px #eac363,0 15px 55px #0005;
}

body[data-map-task=true] .crown {
  pointer-events:none;
}

.crown.editing-original {
  opacity:.15;
}

.edit-shape {
  fill:#ffe27022;
  stroke:#ffdf68;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}

.edit-edge {
  stroke:transparent;
  stroke-width:14;
  vector-effect:non-scaling-stroke;
  pointer-events:stroke;
  cursor:copy;
}

.edit-vertex {
  fill:#fff;
  stroke:#315a3c;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  cursor:move;
}

.edit-vertex.active,.edit-vertex:focus {
  fill:#ffdf68;
  stroke:#684500;
  outline:none;
}

#draft polygon,#draft polyline {
  stroke:#ffdf68;
  fill:#ffe27030;
  stroke-width:2;
  vector-effect:non-scaling-stroke;
}

#draft circle {
  fill:#ffdf68;
}

svg.drawing {
  cursor:crosshair;
}

.paused-drawing {
  padding:10px;
  border:1px solid #ddbf70;
  border-radius:8px;
  background:#fff5d8;
  margin-bottom:10px;
}

.paused-drawing p {
  font-size:12px;
  margin:0 0 7px;
}

dialog {
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  color:var(--ink);
  max-width:560px;
  max-height:85dvh;
}

dialog::backdrop {
  background:#142c236b;
}

dialog h2 {
  margin-bottom:15px;
}

dialog p,dialog li {
  font-size:13px;
}

.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:20px;
}

.delete-tree-action {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:12px;
}

.trunk-marker {
  fill:#ffcf47;
  stroke:#503f12;
  stroke-width:.2;
  cursor:pointer;
}

.trunk-marker.removed {
  fill:#ef6054;
  stroke:#7e241e;
}

.trunk-marker:focus-visible {
  outline:none;
  stroke:white;
  stroke-width:.6;
}

.swatch--trunk {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffcf47;
  border:1px solid #503f12;
}

.danger-primary {
  background:#a53830;
  border-color:#a53830;
  color:white;
}

.danger-primary:hover {
  background:#872c26;
}

#undoRemoval {
  margin-bottom:8px;
}

.toast {
  position:fixed;
  left:24px;
  bottom:18px;
  z-index:30;
  max-width:min(600px,80vw);
  padding:10px 15px;
  background:#203f33;
  color:white;
  border-radius:8px;
  box-shadow:0 3px 20px #0002;
  font-size:12px;
}

.toast:empty {
  display:none;
}

#exportText {
  font:10px monospace;
  height:90px;
}

body:not([data-session=true]) .session-only {
  display:none!important;
}

body[data-session=true] .browse-only {
  display:none!important;
}

body[data-mode=view] .edit-only {
  display:none!important;
}

.review-state button[aria-pressed=true] {
  background:#e7efdf;
  border-color:#9bb68d;
}

@media(max-width:1000px) {
  body[data-map-task=true] .map-workspace {
    inset:16px 324px 16px 12px;
  }
  .layout {
    grid-template-columns:minmax(0,1fr) 300px;
    padding:12px;
    gap:12px;
  }
  .mode-help {
    display:none;
  }
  .map-tools button {
    padding:7px 9px;
  }
  .app-header {
    padding:12px 16px;
  }
  .map-top {
    flex-wrap:wrap;
  }
  .panel-content {
    padding:13px;
  }
  .panel-heading {
    padding:14px;
  }
  .header-actions .quiet {
    font-size:12px;
  }
}


.is-hidden {
  display:none!important;
}

.swatch--palm {
  background:#e7a1ff;
}

.swatch--other {
  background:#78dfff;
}

.swatch--mixed {
  background:#ffcb71;
}

.swatch--unidentified {
  background:#849481;
}

.load-status {
  position:fixed;
  left:24px;
  bottom:18px;
  z-index:50;
  background:white;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:8px;
}

.load-status p {
  margin:0;
}

.load-status a {
  display:inline-block;
  margin-top:5px;
}

/* Field observations and historical removed-tree footprints. */
#photoOverview,
#photoDetails {
  pointer-events: none;
}

.crown.removed {
  stroke: #ff5b69 !important;
  fill: url(#removedHatch) !important;
  opacity: 1;
}

.removed-hatch-lines {
  fill: none;
  stroke: #ff5b69;
  stroke-width: 1.6;
}

.swatch--removed {
  height: 10px;
  margin-bottom: 0;
  border: 1px solid #c93646;
  background: repeating-linear-gradient(135deg, transparent 0 3px, #d94654 3px 5px);
}

.removed-notice {
  padding: 9px 11px;
  color: #982936;
  background: #fff0f1;
  border: 1px solid #f0c7cd;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}

.observation-fields {
  min-width: 0;
  margin: 16px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.observation-fields legend {
  padding: 0 5px;
  font-size: 12px;
  font-weight: 650;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}

.check-field input {
  accent-color: #ad3544;
}

.measurement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 105px;
  gap: 6px;
}

.measurement-row input {
  min-width: 0;
  width: 100%;
  border: 1px solid #bcccba;
  border-radius: 7px;
  padding: 8px;
  background: white;
  color: var(--ink);
}

.measurement-row select {
  padding: 8px 5px;
}

.drawbar h2 {
  margin: 0;
  font-size: 1rem;
}

.trunk-placement-crown {
  fill: #ffe27018;
  stroke: #ffdf68;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.trunk-placement-size {
  fill: #ffcf47;
  stroke: #503f12;
  stroke-width: .2;
  pointer-events: none;
}

.trunk-placement-crosshair,
.trunk-placement-handle {
  fill: none;
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trunk-placement-crosshair {
  pointer-events: none;
}

.trunk-placement-handle {
  fill: transparent;
  cursor: grab;
  pointer-events: all;
}

.trunk-placement-handle:focus-visible {
  outline: none;
  stroke: #ffcf47;
  stroke-width: 3;
}

.trunk-position-controls {
  margin-top: 12px;
}

.placing-trunk #trunks {
  visibility: hidden;
}

/* Screen-pixel widths: reduce visual density at village and neighborhood zooms.
   Editing overlays and actual-size trunk markers retain their own styles. */
#map {
  --crown-line: .35;
  --marked-crown-line: .5;
  --selected-crown-line: 1.5;
  --crown-dashes: 1.5 1;
  --excluded-dashes: 1 .8;
  --boundary-line: 1;
  --removed-hatch-line: .7;
}

#map[data-outline-scale="distant"] {
  --crown-line: .22;
  --marked-crown-line: .35;
  --selected-crown-line: 1.3;
  --crown-dashes: 1 .8;
  --excluded-dashes: 1 .8;
  --boundary-line: .8;
  --removed-hatch-line: .5;
}

#map[data-outline-scale="neighborhood"] {
  --crown-line: .55;
  --marked-crown-line: .8;
  --selected-crown-line: 1.8;
  --crown-dashes: 2 1.5;
  --excluded-dashes: 1.5 1;
  --boundary-line: 1.2;
  --removed-hatch-line: .9;
}

#map[data-outline-scale="street"] {
  --crown-line: .8;
  --marked-crown-line: 1.2;
  --selected-crown-line: 2.2;
  --crown-dashes: 3 2;
  --excluded-dashes: 2 1.3;
  --boundary-line: 1.4;
  --removed-hatch-line: 1.1;
}

#map[data-outline-scale="close"] {
  --crown-line: 1;
  --marked-crown-line: 1.6;
  --selected-crown-line: 2.6;
  --crown-dashes: 4 2.5;
  --excluded-dashes: 2.5 1.7;
  --boundary-line: 1.6;
  --removed-hatch-line: 1.3;
}

#map[data-outline-scale="detail"] {
  --crown-line: 1.2;
  --marked-crown-line: 2;
  --selected-crown-line: 3;
  --crown-dashes: 5 3;
  --excluded-dashes: 3 2;
  --boundary-line: 1.8;
  --removed-hatch-line: 1.6;
}

.crown {
  stroke-width: var(--crown-line);
  stroke-dasharray: var(--crown-dashes);
}

.crown.reviewed {
  stroke-dasharray: none;
}

.crown.keep,
.crown.user-drawn {
  stroke-width: var(--marked-crown-line);
}

.crown.exclude {
  stroke-dasharray: var(--excluded-dashes);
}

.crown.selected,
.crown:focus,
.crown:hover {
  stroke-width: var(--selected-crown-line) !important;
}

#old path {
  stroke-width: var(--crown-line);
}

.boundary {
  stroke-width: var(--boundary-line);
}

.removed-hatch-lines {
  stroke-width: var(--removed-hatch-line);
}

.inventory-marker { fill: #2b7395; stroke: white; stroke-width: 1.5px; vector-effect: non-scaling-stroke; cursor: pointer; }
.inventory-marker.inventory-unmatched { fill: #aa6514; }
#inventoryMarkers.is-hidden { display: none; }
#inventoryDialog { width: min(520px, calc(100% - 24px)); max-height: 85dvh; box-sizing: border-box; overflow: auto; border: 1px solid #9bafa2; border-radius: 14px; padding: 20px; background: #fafbf8; color: #203e32; }
#inventoryDialog::backdrop { background: rgb(12 32 24 / 55%); }
#inventoryFacts dt { margin-top: 12px; font-weight: 700; }
#inventoryFacts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
#inventoryClose { min-height: 44px; }

#treeNotes { min-height: 9rem; resize: vertical; }
#readNotes { white-space: pre-wrap; overflow-wrap: anywhere; }

.benefits-summary { margin: 16px 0 22px; }
.benefits-summary-list { margin: 0 0 12px; }
.benefits-summary-list > div { padding: 8px 0; border-top: 1px solid var(--line, #d6dfd5); }
.benefits-summary-list dt { font-weight: 650; }
.benefits-summary-list dd { margin: 3px 0 0; color: #53685d; font-size: .85rem; line-height: 1.45; }
.benefits-report-link { color: #215c45; display: inline-block; line-height: 1.5; text-underline-offset: .18em; }

.feedback-warning { color: #a12622 !important; font-weight: 600; }

.inventory-marker { fill: #2b7395; stroke: white; stroke-width: 1.5px; vector-effect: non-scaling-stroke; cursor: pointer; }
.inventory-marker.inventory-unmatched { fill: #aa6514; }
#inventoryMarkers.is-hidden { display: none; }
#inventoryDialog { width: min(520px, calc(100% - 24px)); max-height: 85dvh; box-sizing: border-box; overflow: auto; border: 1px solid #9bafa2; border-radius: 14px; padding: 20px; background: #fafbf8; color: #203e32; }
#inventoryDialog::backdrop { background: rgb(12 32 24 / 55%); }
#inventoryFacts dt { margin-top: 12px; font-weight: 700; }
#inventoryFacts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
#inventoryClose { min-height: 44px; }

.survey-trunk { cursor: pointer; }
.survey-trunk-maximum { fill: #ffd34e; fill-opacity: .3; stroke: none; }
.survey-trunk-minimum { fill: #ffd34e; stroke: none; }
#surveyTrunks.is-hidden, .survey-trunk.is-hidden { display: none; }

/* Diameter is the filled circle, without an added border. */
.trunk-marker { stroke: none; }
