:root {
  --forest: #173c33;
  --canopy: #2f7c57;
  --mangrove: #0f615f;
  --sun: #e8a93b;
  --coral: #d9684a;
  --sky: #dceff3;
  --mist: #f5f7f2;
  --paper: #ffffff;
  --ink: #14201d;
  --muted: #65746e;
  --line: rgba(20, 32, 29, 0.14);
  --shadow: 0 24px 70px rgba(12, 32, 27, 0.18);
}

body.is-light {
  --forest: #1d4d41;
  --canopy: #3b8f63;
  --mangrove: #147472;
  --sun: #b7771e;
  --coral: #c7563e;
  --sky: #e9f5f7;
  --mist: #fbfcf7;
  --ink: #10211d;
  --muted: #54645e;
  --line: rgba(16, 33, 29, 0.12);
  --shadow: 0 20px 54px rgba(30, 64, 56, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 32, 27, 0.9), rgba(12, 32, 27, 0.28) 86%, rgba(12, 32, 27, 0));
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(208px, 42vw);
  max-height: 58px;
  object-fit: contain;
  filter:
    brightness(1.22)
    contrast(1.12)
    saturate(1.08)
    drop-shadow(0 0 1px rgba(216, 240, 201, 0.9))
    drop-shadow(0 0 4px rgba(216, 240, 201, 0.34))
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.42));
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 4px;
  width: 196px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  background: rgba(8, 25, 21, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  text-shadow: none;
}

.nav-dropdown a:hover {
  color: #12231f;
  background: #f1bd54;
}

body.is-light .nav-dropdown {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

body.is-light .nav-dropdown a {
  color: var(--forest);
}

.nav-links a,
.nav-call {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.nav-links a {
  opacity: 0.9;
}

.nav-links .tech-login-link {
  padding: 8px 10px;
  border: 1px solid rgba(241, 189, 84, 0.46);
  border-radius: 6px;
  color: #f6d48c;
  background: rgba(241, 189, 84, 0.12);
  opacity: 1;
}

.nav-links a:hover,
.nav-call:hover {
  color: #f6d48c;
}

.nav-call {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.staff-access {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(241, 189, 84, 0.46);
  border-radius: 6px;
  color: #f6d48c;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(241, 189, 84, 0.12);
  backdrop-filter: blur(10px);
}

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

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.theme-toggle:hover {
  color: #f6d48c;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

body.is-light .theme-icon-sun {
  display: none;
}

body.is-light .theme-icon-moon {
  display: block;
}

body.is-light .site-header {
  color: var(--forest);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74) 80%, rgba(255, 255, 255, 0));
}

body.is-light .nav-links a,
body.is-light .nav-call,
body.is-light .theme-toggle {
  text-shadow: none;
}

body.is-light .nav-call,
body.is-light .theme-toggle,
body.is-light .staff-access {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

body.is-light .nav-links .tech-login-link {
  color: #7a4b0d;
  border-color: rgba(183, 119, 30, 0.28);
  background: rgba(232, 169, 59, 0.18);
}

body.is-light .brand img {
  filter: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(820px, 92vh);
  overflow: hidden;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 25, 22, 0.9) 0%, rgba(8, 25, 22, 0.72) 35%, rgba(8, 25, 22, 0.22) 66%, rgba(8, 25, 22, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 25, 22, 0.44), rgba(8, 25, 22, 0) 45%);
}

body.is-light .hero {
  color: var(--ink);
}

body.is-light .hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.74) 40%, rgba(255, 255, 255, 0.2) 74%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 48%);
}

body.is-light .hero-copy {
  color: rgba(16, 33, 29, 0.82);
}

body.is-light .button.secondary {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 88px);
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1,
h2 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #12231f;
  background: #f1bd54;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary.dark {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.24);
  background: #fff;
}

.proof-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -46px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
}

.proof-strip div {
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.93);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 4px;
  color: var(--forest);
  font-size: clamp(1.32rem, 2.2vw, 2rem);
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.35;
}

.section,
.service-band,
.gis-section,
.process-section,
.contact-section {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro p:last-child,
.section-heading p,
.section-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-band {
  background:
    linear-gradient(180deg, rgba(220, 239, 243, 0.65), rgba(245, 247, 242, 1)),
    radial-gradient(circle at 16% 4%, rgba(232, 169, 59, 0.16), transparent 32%);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 32px;
}

.section-heading h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: end;
}

.service-grid,
.gis-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.service-card,
.gis-features article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.service-mark {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--mangrove);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.gis-features h3 {
  margin-bottom: 10px;
}

.service-card p,
.gis-features p,
.timeline p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.standards-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
  padding: clamp(34px, 5vw, 68px) clamp(24px, 5vw, 70px);
  background: #10231f;
}

body.is-light .standards-band {
  background: #f7faf2;
}

.standards-copy {
  display: grid;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.standards-copy h2 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

body.is-light .standards-copy h2 {
  color: var(--ink);
}

.standards-copy p:not(.eyebrow) {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.75;
}

body.is-light .standards-copy p:not(.eyebrow) {
  color: var(--muted);
}

.standards-logo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 18px) 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

body.is-light .standards-logo-panel {
  filter: drop-shadow(0 14px 22px rgba(23, 60, 51, 0.12));
}

.standard-logo {
  display: block;
  width: 100%;
  height: auto;
}

.uf-logo {
  max-width: 520px;
  justify-self: end;
}

.isa-logo {
  max-width: 560px;
  justify-self: start;
}

.standards-divider {
  width: 2px;
  height: clamp(92px, 10vw, 140px);
  background: rgba(224, 231, 226, 0.72);
}

.gis-section {
  color: #fff;
  background:
    linear-gradient(135deg, #0c221e, #173c33 46%, #0f615f 100%);
}

body.is-light .gis-section {
  color: var(--ink);
  background:
    linear-gradient(135deg, #f8fbf3, #e9f5f7 48%, #f4ecd8 100%);
}

.gis-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

body.is-light .gis-section .section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.report-shell {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

body.is-light .report-shell {
  border-color: rgba(23, 60, 51, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.report-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

body.is-light .report-topbar {
  border-bottom-color: rgba(23, 60, 51, 0.12);
}

.report-topbar > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fd28a;
  box-shadow: 0 0 0 6px rgba(79, 210, 138, 0.16);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 4px;
  width: min(100%, 480px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.26);
}

body.is-light .segmented {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(23, 60, 51, 0.06);
}

.segment {
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body.is-light .segment {
  color: rgba(16, 33, 29, 0.74);
}

.segment.active {
  color: #12231f;
  background: #f1bd54;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  min-height: 480px;
}

.map-panel {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #16342d;
}

#service-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leaflet-container {
  background: #16342d;
  font-family: inherit;
}

.leaflet-control-attribution {
  max-width: calc(100vw - 70px);
  font-size: 0.68rem;
  white-space: normal;
}

.tree-marker {
  position: relative;
  display: block;
  width: 34px;
  height: 50px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.38));
}

.tree-marker svg,
.site-marker svg,
.request-pin-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tree-marker .pin-body,
.site-marker .pin-body,
.request-pin-marker .pin-body {
  fill: var(--pin-color, #27f58b);
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 2.7;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

.tree-marker .pin-shadow,
.site-marker .pin-shadow,
.request-pin-marker .pin-shadow {
  fill: rgba(4, 15, 12, 0.34);
}

.tree-marker .pin-highlight,
.site-marker .pin-highlight,
.request-pin-marker .pin-highlight {
  fill: rgba(255, 255, 255, 0.25);
}

.tree-marker .pin-face,
.site-marker .pin-face,
.request-pin-marker .pin-face {
  fill: #f9fff4;
  stroke: rgba(18, 35, 31, 0.16);
  stroke-width: 1.1;
}

.tree-marker .tree-canopy,
.site-marker .tree-canopy,
.request-pin-marker .tree-canopy {
  fill: #125b33;
}

.tree-marker .tree-trunk,
.site-marker .tree-trunk,
.request-pin-marker .tree-trunk {
  fill: #7a4f24;
}

.tree-marker .tree-cutout,
.site-marker .tree-cutout,
.request-pin-marker .tree-cutout {
  fill: none;
  stroke: #f9fff4;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-marker .pin-label {
  fill: #12231f;
  font-family: inherit;
  font-size: 9px;
  font-weight: 950;
}

.tree-marker.small {
  width: 34px;
  height: 50px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}

.legend.good {
  color: #1f7a34;
  background: #1f7a34;
}

.legend.fair {
  color: #8bc34a;
  background: #8bc34a;
}

.legend.watch {
  color: #f4c20d;
  background: #f4c20d;
}

.legend.urgent {
  color: #c3cace;
  background: #c3cace;
}

.legend.removal {
  color: #171717;
  background: #171717;
}

.site-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 50px;
  color: #12231f;
  --pin-color: #32d8ff;
  filter: drop-shadow(0 11px 13px rgba(0, 0, 0, 0.38));
  font-size: 0.75rem;
  font-weight: 900;
}

.site-marker b {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 1;
  width: 100%;
  text-align: center;
  line-height: 1;
}

.request-pin-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 50px;
  color: #12231f;
  --pin-color: #27f58b;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.4));
  font-size: 0.82rem;
  font-weight: 950;
  touch-action: none;
}

.request-pin-marker .pin-number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 33px;
  color: var(--pin-ink, #12231f);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}

.request-pin-marker.selected {
  color: #12231f;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.44)) drop-shadow(0 0 9px rgba(246, 189, 63, 0.62));
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: var(--ink);
  line-height: 1.45;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}

.editable-pin-popup {
  display: grid;
  gap: 8px;
  width: min(250px, 72vw);
}

.editable-pin-popup > span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.editable-pin-popup label {
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
}

.editable-pin-popup textarea {
  min-height: 82px;
  padding: 9px 10px;
  color: var(--ink);
  border-color: rgba(20, 32, 29, 0.16);
  background: #fff;
  font-size: 0.84rem;
}

.editable-pin-popup button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: #12231f;
  background: #f1bd54;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.leaflet-marker-draggable {
  cursor: grab;
  touch-action: none;
}

.leaflet-marker-draggable:active {
  cursor: grabbing;
}

.map-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 560px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 20, 17, 0.78);
  backdrop-filter: blur(10px);
}

.map-caption span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  background:
    linear-gradient(30deg, transparent 0 16%, rgba(255, 255, 255, 0.08) 16% 17%, transparent 17% 38%, rgba(255, 255, 255, 0.1) 38% 39%, transparent 39%),
    radial-gradient(circle at 52% 35%, rgba(115, 174, 111, 0.68) 0 8%, transparent 9%),
    #16342d;
}

.report-panel {
  padding: clamp(22px, 3vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 20, 17, 0.42);
}

body.is-light .report-panel {
  color: var(--ink);
  border-left-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-panel h3 {
  margin-bottom: 22px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-row div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

body.is-light .metric-row div {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(23, 60, 51, 0.04);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-size: 2rem;
}

.metric-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
}

body.is-light .metric-row span,
body.is-light .condition-list p,
body.is-light .report-detail span,
body.is-light .next-action span {
  color: var(--muted);
}

.condition-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.condition-list p {
  display: grid;
  grid-template-columns: 16px 44px 1fr;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
}

.legend {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.report-detail,
.next-action {
  padding: 18px;
  border-radius: 8px;
}

.report-detail {
  margin-bottom: 12px;
  background: rgba(220, 239, 243, 0.1);
}

body.is-light .report-detail {
  background: rgba(20, 116, 114, 0.08);
}

.next-action {
  background: rgba(232, 169, 59, 0.14);
}

.report-detail span,
.report-detail strong,
.next-action span,
.next-action strong {
  display: block;
}

.report-detail span,
.next-action span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.report-detail strong {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

body.is-light .report-detail strong {
  color: var(--ink);
}

.source-note {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  line-height: 1.55;
}

body.is-light .source-note,
body.is-light .gis-features p {
  color: var(--muted);
}

.gis-features {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.gis-features article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

body.is-light .gis-features article {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.gis-features p {
  color: rgba(255, 255, 255, 0.72);
}

.oak-recovery {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, #fff, #f5f7f2),
    radial-gradient(circle at 12% 18%, rgba(232, 169, 59, 0.16), transparent 30%);
}

.oak-recovery-copy {
  max-width: 560px;
}

.oak-recovery-copy h2 {
  margin-bottom: 20px;
}

.oak-recovery-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.oak-recovery-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0c221e;
  box-shadow: var(--shadow);
}

.oak-recovery-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.oak-recovery-figure figcaption {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.process-section {
  background: #fff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 250px;
  padding: 26px;
  border-left: 4px solid var(--canopy);
  border-radius: 8px;
  background: #f7f7f1;
}

.timeline span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--coral);
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 60, 51, 0.94), rgba(15, 97, 95, 0.82)),
    url("assets/gis-tree-care-hero.png") center / cover;
  color: #fff;
}

body.is-light .contact-section {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 240, 0.88)),
    url("assets/gis-tree-care-hero.png") center / cover;
}

.contact-section h2 {
  max-width: 790px;
}

.contact-section p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

body.is-light .contact-section p {
  color: var(--muted);
}

.subpage-main {
  padding-top: 76px;
  color: #fff;
  background:
    linear-gradient(135deg, #0b1e1a, #15392f 48%, #0f615f 100%);
}

body.is-light .subpage-main {
  color: var(--ink);
  background:
    linear-gradient(135deg, #fbfcf7, #e8f4f2 52%, #f5ecd9 100%);
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 88px);
}

.subpage-hero > div:first-child {
  width: min(820px, 100%);
}

.subpage-hero h1 {
  max-width: 860px;
  font-size: clamp(2.9rem, 6vw, 6rem);
}

.subpage-hero p:not(.eyebrow),
.summary-side p,
.mini-gis-callout p,
.dashboard-login span,
.active-tree-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

body.is-light .subpage-hero p:not(.eyebrow),
body.is-light .summary-side p,
body.is-light .mini-gis-callout p,
body.is-light .dashboard-login span,
body.is-light .active-tree-card p {
  color: var(--muted);
}

.hero-stat-stack,
.dashboard-login,
.pin-form-panel,
.request-summary,
.summary-side,
.tech-control-panel,
.tree-list-section {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

body.is-light .hero-stat-stack,
body.is-light .dashboard-login,
body.is-light .pin-form-panel,
body.is-light .request-summary,
body.is-light .summary-side,
body.is-light .tech-control-panel,
body.is-light .tree-list-section {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-stat-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.hero-stat-stack div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background: rgba(5, 21, 18, 0.56);
}

body.is-light .hero-stat-stack div {
  background: rgba(255, 255, 255, 0.76);
}

.hero-stat-stack strong {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border-radius: 50%;
  color: #12231f;
  background: #f1bd54;
  font-size: 0.82rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.hero-stat-stack span {
  font-weight: 850;
}

.service-strip {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(1180px, calc(100% - 36px));
  margin: -30px auto 36px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.service-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
}

.service-strip a:hover {
  color: #12231f;
  background: #f1bd54;
}

body.is-light .service-strip {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

body.is-light .service-strip a {
  color: var(--forest);
  background: rgba(23, 60, 51, 0.06);
}

body.is-light .service-strip a:hover {
  color: #12231f;
  background: #f1bd54;
}

.pin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.58fr);
  gap: 18px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 88px);
}

.pin-map-panel,
.tech-map-shell {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #14372f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
}

body.is-light .pin-map-panel,
body.is-light .tech-map-shell {
  border-color: rgba(23, 60, 51, 0.12);
  box-shadow: var(--shadow);
}

.tool-panel-title {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 20, 17, 0.82);
  backdrop-filter: blur(10px);
}

.map-layer-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-width: 154px;
  width: 154px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-layer-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.map-layer-toggle button.active {
  color: #12231f;
  background: #f1bd54;
}

body.is-light .map-layer-toggle {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

body.is-light .map-layer-toggle button {
  color: var(--forest);
}

body.is-light .map-layer-toggle button.active {
  color: #12231f;
  background: #f1bd54;
}

#pin-map,
#tech-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-instruction {
  position: absolute;
  top: 70px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 520px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 20, 17, 0.82);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.map-instruction.is-hidden {
  display: none;
}

.map-instruction span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.map-action-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 470px;
  pointer-events: none;
  transform: translateZ(0);
}

.map-action-bar button {
  flex: 1 1 82px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  color: #12231f;
  background: #f1bd54;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  pointer-events: auto;
}

.map-action-bar button[data-tech-map-action="delete"] {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 20, 17, 0.86);
}

.map-action-bar button[data-tech-map-action="lock"].is-locked {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 20, 17, 0.92);
}

.map-action-bar button[data-tech-map-action="lock"].is-unlocked {
  color: #12231f;
  border: 1px solid rgba(18, 35, 31, 0.22);
  background: #ffcc63;
}

.map-action-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.map-location-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 60px;
  z-index: 3;
  width: fit-content;
  max-width: min(520px, calc(100% - 28px));
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(6, 20, 17, 0.84);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
  pointer-events: none;
}

.map-location-status:empty {
  display: none;
}

body.is-light .map-action-bar button[data-tech-map-action="delete"] {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

body.is-light .map-action-bar button[data-tech-map-action="lock"].is-locked {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.pin-form-panel {
  padding: clamp(22px, 3vw, 34px);
}

.quick-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hidden-request-fields,
.request-summary-extra {
  display: none;
}

.pin-form-panel h2,
.summary-side h2,
.dashboard-topline h2,
.tree-list-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(6, 20, 17, 0.34);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

body.is-light input,
body.is-light select,
body.is-light textarea {
  color: var(--ink);
  border-color: rgba(23, 60, 51, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

body.is-light input::placeholder,
body.is-light textarea::placeholder {
  color: rgba(16, 33, 29, 0.46);
}

.coord-grid,
.pin-actions,
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pin-actions {
  margin-top: 22px;
}

.pin-actions .button.primary {
  grid-column: 1 / -1;
}

.captcha-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.22);
  overflow: hidden;
}

.captcha-panel.compact {
  grid-template-columns: 1fr;
}

.captcha-panel.compact .cf-turnstile {
  min-width: 0;
}

body.is-light .captcha-panel {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(23, 60, 51, 0.05);
}

.captcha-panel strong,
.captcha-panel span {
  display: block;
}

.captcha-panel strong {
  margin-bottom: 3px;
}

.captcha-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.is-light .captcha-panel span {
  color: var(--muted);
}

.cf-turnstile {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.cf-turnstile iframe {
  max-width: 100%;
}

.request-summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 18px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 88px);
}

.request-summary,
.summary-side {
  padding: clamp(22px, 3vw, 34px);
}

.request-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.request-summary dl div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.28);
}

body.is-light .request-summary dl div {
  background: rgba(23, 60, 51, 0.06);
}

.request-summary dt {
  margin-bottom: 6px;
  color: var(--sun);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.request-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.summary-side {
  display: grid;
  align-content: center;
}

.mini-gis-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 60, 51, 0.92), rgba(15, 97, 95, 0.84)),
    url("assets/gis-tree-care-hero.png") center / cover;
}

.service-detail-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 88px);
}

.service-detail-card,
.project-grid article,
.contact-card-stack,
.static-contact-form,
.workflow-band,
.project-showcase article,
.contact-form-band,
.treatment-log-section {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

body.is-light .service-detail-card,
body.is-light .project-grid article,
body.is-light .contact-card-stack,
body.is-light .static-contact-form,
body.is-light .workflow-band,
body.is-light .project-showcase article,
body.is-light .contact-form-band,
body.is-light .treatment-log-section {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.service-detail-card,
.project-grid article {
  display: grid;
  align-content: start;
  min-height: 340px;
  padding: clamp(22px, 3vw, 34px);
}

.service-detail-card h2,
.project-grid h2,
.workflow-band h2,
.contact-form-band h2 {
  font-size: clamp(1.8rem, 3.3vw, 3rem);
}

.service-detail-card p,
.project-grid p,
.workflow-band p,
.contact-form-band p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

body.is-light .service-detail-card p,
body.is-light .project-grid p,
body.is-light .workflow-band p,
body.is-light .contact-form-band p {
  color: var(--muted);
}

.workflow-band,
.contact-form-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 88px);
  padding: clamp(24px, 4vw, 42px);
}

.workflow-steps {
  display: grid;
  gap: 12px;
}

.workflow-steps article {
  padding: 18px;
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.26);
}

body.is-light .workflow-steps article {
  background: rgba(23, 60, 51, 0.06);
}

.workflow-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sun);
}

.project-showcase {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 88px);
}

.project-showcase article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  overflow: hidden;
}

.project-showcase img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.project-showcase article > div {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.contact-card-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}

.contact-card-stack a {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: rgba(6, 20, 17, 0.34);
}

body.is-light .contact-card-stack a {
  background: rgba(255, 255, 255, 0.78);
}

.contact-card-stack strong,
.contact-card-stack span {
  display: block;
}

.contact-card-stack strong {
  color: var(--sun);
  overflow-wrap: anywhere;
}

.contact-card-stack span {
  color: rgba(255, 255, 255, 0.7);
}

body.is-light .contact-card-stack span {
  color: var(--muted);
}

.static-contact-form {
  padding: clamp(22px, 3vw, 34px);
}

.dashboard-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.dashboard-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #12231f;
  background: #f1bd54;
  font-weight: 850;
}

.service-report-section {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

body.is-light .service-report-section {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.service-report-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: end;
}

.service-report-heading h2,
.service-report-heading p {
  margin: 0;
}

.service-report-heading h2 {
  font-size: 2.2rem;
}

.service-report-heading > p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.is-light .service-report-heading > p {
  color: var(--muted);
}

.service-report-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(130px, 0.7fr));
  gap: 12px;
  align-items: end;
}

.service-report-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

body.is-light .service-report-form label {
  color: var(--ink);
}

.service-report-form input,
.service-report-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.service-report-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  flex-wrap: wrap;
}

.service-report-actions button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 6px;
  font-weight: 850;
}

#export-service-report {
  color: #12231f;
  background: #f1bd54;
}

#clear-report-filters {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

body.is-light #clear-report-filters {
  color: var(--ink);
  border-color: rgba(23, 60, 51, 0.18);
  background: rgba(23, 60, 51, 0.07);
}

.service-report-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

body.is-light .service-report-status {
  color: var(--muted);
}

.sync-status {
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 18px;
  padding: 9px 12px;
  border: 1px solid rgba(241, 189, 84, 0.24);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(6, 20, 17, 0.24);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

body.is-light .sync-status {
  color: var(--muted);
  border-color: rgba(183, 119, 30, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.staff-files-section {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 96px;
}

body.is-light .staff-files-section {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.staff-files-heading,
.staff-files-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.staff-files-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.staff-session-badge {
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 189, 84, 0.34);
  border-radius: 7px;
  background: rgba(6, 20, 17, 0.3);
}

body.is-light .staff-session-badge {
  background: rgba(23, 60, 51, 0.07);
}

.staff-session-badge span,
.staff-session-badge small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
}

body.is-light .staff-session-badge span,
body.is-light .staff-session-badge small {
  color: var(--muted);
}

.staff-files-toolbar > label:first-child {
  width: min(100%, 520px);
  margin: 0;
}

.staff-archive-filter {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 12px;
}

.staff-archive-filter input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.staff-archive-filter.is-hidden {
  display: none;
}

.staff-files-safety {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #f1bd54;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(6, 20, 17, 0.25);
}

body.is-light .staff-files-safety {
  color: var(--muted);
  background: rgba(23, 60, 51, 0.06);
}

.staff-files-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staff-file-record {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.25);
}

body.is-light .staff-file-record {
  border-color: rgba(23, 60, 51, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.staff-file-record.is-archived {
  border-style: dashed;
  opacity: 0.82;
}

.staff-file-record header,
.staff-file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-file-record header span {
  color: #f1bd54;
  font-weight: 850;
}

.staff-file-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.staff-file-record dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.staff-file-record dd {
  margin: 2px 0 0;
  font-weight: 750;
}

body.is-light .staff-file-record dt {
  color: var(--muted);
}

.staff-file-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.staff-file-actions button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .staff-files-heading,
  .staff-files-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-session-badge,
  .staff-files-toolbar > label:first-child {
    width: 100%;
  }

  .staff-archive-filter {
    padding-bottom: 0;
  }

  .staff-files-list {
    grid-template-columns: 1fr;
  }

  .staff-file-record dl {
    grid-template-columns: 1fr 1fr;
  }
}

.route-records-section {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  scroll-margin-top: 96px;
}

body.is-light .route-records-section {
  border-color: rgba(23, 60, 51, 0.14);
}

.route-records-heading,
.selected-record-header,
.route-picker-status,
.record-save-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.route-records-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.record-breadcrumb {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 750;
}

body.is-light .record-breadcrumb {
  color: var(--muted);
}

.route-search-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 0.32fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.24);
}

body.is-light .route-search-panel {
  border-color: rgba(23, 60, 51, 0.14);
  background: rgba(23, 60, 51, 0.05);
}

.route-search-panel label {
  margin: 0;
}

.record-quick-filters,
.report-quick-filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.record-quick-filters button,
.report-quick-filters button {
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.record-quick-filters button.active,
.report-quick-filters button.active {
  color: #12231f;
  border-color: #f1bd54;
  background: #f1bd54;
}

body.is-light .record-quick-filters button,
body.is-light .report-quick-filters button {
  border-color: rgba(23, 60, 51, 0.16);
  background: rgba(23, 60, 51, 0.06);
}

body.is-light .record-quick-filters button.active,
body.is-light .report-quick-filters button.active {
  background: #f1bd54;
}

.route-record-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.route-tree-picker,
.selected-record-workspace {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

body.is-light .route-tree-picker,
body.is-light .selected-record-workspace {
  border-color: rgba(23, 60, 51, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.route-tree-picker {
  padding: 12px;
}

.route-picker-status {
  align-items: center;
  padding: 2px 2px 10px;
  font-size: 0.78rem;
}

.route-picker-status span {
  color: rgba(255, 255, 255, 0.64);
}

body.is-light .route-picker-status span {
  color: var(--muted);
}

.tech-queue.compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.tech-queue.compact .queue-item {
  grid-template-columns: minmax(82px, 0.35fr) minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 58px;
  padding: 9px 10px;
}

.tech-queue.compact .queue-item strong {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.92rem;
}

.tech-queue.compact .queue-item span {
  overflow: hidden;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-picker-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

.route-picker-pagination button {
  min-height: 38px;
}

.selected-record-workspace {
  min-width: 0;
  overflow: hidden;
}

.selected-record-header {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-light .selected-record-header {
  border-color: rgba(23, 60, 51, 0.12);
}

.selected-record-header h3 {
  margin: 3px 0 4px;
  font-size: 1.7rem;
}

.selected-record-header span {
  color: rgba(255, 255, 255, 0.68);
}

body.is-light .selected-record-header span {
  color: var(--muted);
}

.selected-record-condition {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 6px;
  color: #12231f !important;
  background: #f1bd54;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.selected-record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
}

.selected-record-summary div {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(6, 20, 17, 0.28);
}

body.is-light .selected-record-summary {
  background: rgba(23, 60, 51, 0.1);
}

body.is-light .selected-record-summary div {
  background: rgba(255, 255, 255, 0.82);
}

.selected-record-summary dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.is-light .selected-record-summary dt {
  color: var(--muted);
}

.selected-record-summary dd {
  margin: 3px 0 0;
  font-size: 0.82rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.selected-record-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 12px 12px 0;
}

.selected-record-tabs button {
  min-height: 42px;
  padding: 8px;
  border-radius: 6px 6px 0 0;
  font-size: 0.78rem;
}

.selected-record-tabs button.active {
  color: #12231f;
  background: #f1bd54;
}

.selected-record-panels {
  min-height: 230px;
  padding: 16px;
}

.selected-record-panel[hidden] {
  display: none;
}

.selected-record-panel label {
  margin: 0;
}

.record-save-row {
  align-items: center;
  margin-top: 10px;
}

.record-save-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

body.is-light .record-save-row span {
  color: var(--muted);
}

.record-save-row button {
  min-width: 120px;
  min-height: 42px;
}

.selected-record-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.selected-record-photo {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.selected-record-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.selected-record-photo span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-record-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-report-results {
  display: grid;
  gap: 8px;
}

.service-report-result {
  display: grid;
  grid-template-columns: minmax(90px, 0.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  color: inherit;
  background: rgba(6, 20, 17, 0.24);
  text-align: left;
}

body.is-light .service-report-result {
  border-color: rgba(23, 60, 51, 0.13);
  background: rgba(255, 255, 255, 0.74);
}

.service-report-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-report-result small {
  color: rgba(255, 255, 255, 0.62);
}

body.is-light .service-report-result small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .route-record-layout {
    grid-template-columns: minmax(245px, 0.4fr) minmax(0, 1fr);
  }

  .selected-record-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-record-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .route-records-heading,
  .selected-record-header {
    flex-direction: column;
  }

  .route-records-heading .staff-session-badge {
    width: 100%;
  }

  .route-search-panel,
  .route-record-layout {
    grid-template-columns: 1fr;
  }

  .tech-queue.compact {
    max-height: 292px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .record-quick-filters,
  .report-quick-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-tree-picker {
    padding: 10px;
  }

  .tech-queue.compact .queue-item {
    min-height: 54px;
  }

  .selected-record-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-record-tabs button {
    border-radius: 6px;
  }

  .selected-record-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-save-row {
    position: sticky;
    bottom: 8px;
    z-index: 4;
    padding: 10px;
    border-radius: 7px;
    background: #173c33;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  }

  body.is-light .record-save-row {
    background: #ffffff;
  }

  .record-save-row button {
    flex: 0 0 auto;
  }

  .service-report-result {
    grid-template-columns: minmax(82px, 0.28fr) minmax(0, 1fr);
  }

  .service-report-result small {
    grid-column: 1 / -1;
  }
}

.tech-use-note {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.24);
}

.tech-use-note strong {
  color: #f1bd54;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.tech-use-note ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-use-note li {
  padding: 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.84rem;
  line-height: 1.42;
}

body.is-light.technician-page .tech-use-note {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(6, 20, 17, 0.24);
}

body.is-light.technician-page .tech-use-note li {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.07);
}

.treatment-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(232, 169, 59, 0.11);
}

.treatment-card label,
.photo-card label {
  gap: 5px;
  margin-bottom: 0;
}

.treatment-card input,
.treatment-card select,
.treatment-card textarea,
.photo-card input {
  min-height: 40px;
  padding: 9px 10px;
}

.treatment-card textarea {
  min-height: 86px;
}

body.is-light .treatment-card {
  background: rgba(232, 169, 59, 0.14);
}

.photo-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.24);
}

body.is-light .photo-card {
  background: rgba(23, 60, 51, 0.06);
}

.photo-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.photo-card input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
}

#photo-upload-status {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.is-light #photo-upload-status {
  color: var(--muted);
}

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

.tree-photo-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

body.is-light .tree-photo-item {
  background: rgba(255, 255, 255, 0.7);
}

.tree-photo-item img {
  display: block;
  width: 76px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.tree-photo-open {
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tree-photo-item strong,
.tree-photo-item span,
.tree-photo-empty {
  display: block;
}

.tree-photo-item span,
.tree-photo-empty {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.4;
}

body.is-light .tree-photo-item span,
body.is-light .tree-photo-empty {
  color: var(--muted);
}

.active-tree-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.active-tree-meta div {
  padding: 8px;
  border-radius: 6px;
  background: rgba(6, 20, 17, 0.24);
}

body.is-light .active-tree-meta div {
  background: rgba(23, 60, 51, 0.06);
}

.active-tree-meta dt {
  margin-bottom: 4px;
  color: var(--sun);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.active-tree-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.treatment-log-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) 1fr;
  gap: 20px;
  margin-top: 18px;
  padding: 22px;
}

.dashboard-note {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

body.is-light .dashboard-note {
  color: var(--muted);
}

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

.log-entry {
  padding: 14px;
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.24);
}

body.is-light .log-entry {
  background: rgba(255, 255, 255, 0.66);
}

.log-entry strong,
.log-entry span {
  display: block;
}

.log-entry strong {
  margin-bottom: 4px;
}

.log-entry span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.is-light .log-entry span {
  color: var(--muted);
}

.dashboard-page {
  min-height: calc(100vh - 154px);
  background:
    linear-gradient(135deg, #071613, #132f2a 48%, #1b604f 100%);
}

body.is-light .dashboard-page {
  background:
    linear-gradient(135deg, #fbfcf7, #eef7ee 50%, #e9f4f6 100%);
}

body.technician-page {
  background: #071613;
}

body.technician-page .dashboard-page,
body.is-light.technician-page .dashboard-page {
  color: #fff;
  background:
    linear-gradient(135deg, #071613, #132f2a 48%, #1b604f 100%);
}

body.technician-page .site-footer,
body.is-light.technician-page .site-footer {
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #071613;
}

body.technician-page .footer-powered,
body.is-light.technician-page .footer-powered {
  color: rgba(255, 255, 255, 0.62);
}

body.technician-page .site-footer a,
body.is-light.technician-page .site-footer a {
  color: #f1bd54;
  background: rgba(241, 189, 84, 0.08);
}

.dashboard-login {
  padding: 22px;
}

.access-error {
  display: block;
  min-height: 20px;
  margin-top: 10px;
  color: #f1bd54;
  font-size: 0.84rem;
  line-height: 1.35;
}

.dashboard-login span {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
}

.dashboard-workspace {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 110px);
}

.dashboard-workspace.is-locked {
  display: none;
}

.dashboard-login.is-hidden {
  display: none;
}

.dashboard-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.dashboard-metrics {
  width: min(380px, 100%);
}

.dashboard-metrics div {
  padding: 16px;
  border-radius: 8px;
  color: #12231f;
  background: #f1bd54;
}

.dashboard-metrics strong,
.dashboard-metrics span {
  display: block;
}

.dashboard-metrics strong {
  font-size: 2rem;
}

.dashboard-metrics span {
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.tech-map-shell {
  min-height: 660px;
}

.tech-control-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
}

.active-tree-card {
  padding: 14px;
  border-radius: 8px;
  background: rgba(6, 20, 17, 0.28);
}

body.is-light .active-tree-card {
  background: rgba(23, 60, 51, 0.06);
}

.active-tree-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
}

.active-tree-card > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sun);
}

.tree-list-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) 1fr;
  gap: 20px;
  margin-top: 18px;
  padding: 22px;
}

.tech-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.queue-item {
  display: grid;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: rgba(6, 20, 17, 0.24);
  cursor: pointer;
}

body.is-light .queue-item {
  border-color: rgba(23, 60, 51, 0.12);
  background: rgba(255, 255, 255, 0.66);
}

.queue-item.active,
.queue-item:hover {
  color: #12231f;
  border-color: transparent;
  background: #f1bd54;
}

.queue-item strong,
.queue-item span {
  display: block;
}

.queue-item span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.74);
  background: #081915;
  font-size: 0.9rem;
  text-align: center;
}

body.is-light .site-footer {
  color: rgba(16, 33, 29, 0.72);
  background: #f4f7ee;
  border-top: 1px solid rgba(23, 60, 51, 0.12);
}

.footer-main,
.footer-powered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: min(960px, 100%);
}

.footer-main {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.is-light .footer-main {
  border-bottom-color: rgba(23, 60, 51, 0.12);
}

.footer-main span {
  font-weight: 700;
}

.footer-powered {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

body.is-light .footer-powered {
  color: rgba(16, 33, 29, 0.62);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #f1bd54;
  font-weight: 800;
  background: rgba(241, 189, 84, 0.08);
}

.site-footer a:hover {
  background: rgba(241, 189, 84, 0.14);
}

body.is-light .site-footer a {
  background: rgba(183, 119, 30, 0.1);
}

.power-icon {
  width: 18px;
  height: 18px;
  color: #f1bd54;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .staff-access {
    display: inline-flex;
  }

  .proof-strip,
  .intro,
  .section-heading.split,
  .report-grid,
  .oak-recovery,
  .contact-section,
  .subpage-hero,
  .pin-workspace,
  .request-summary-band,
  .dashboard-grid,
  .tree-list-section,
  .service-report-heading,
  .service-detail-grid,
  .workflow-band,
  .project-showcase article,
  .project-grid,
  .contact-form-band,
  .treatment-log-section {
    grid-template-columns: 1fr;
  }

  .service-report-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-report-form .report-search-field {
    grid-column: 1 / -1;
  }

  .service-grid,
  .gis-features,
  .timeline,
  .tech-queue,
  .tech-use-note ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    gap: 14px;
  }

  .dashboard-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .report-panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .report-grid {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(12, 32, 27, 0.96), rgba(12, 32, 27, 0.72));
  }

  .brand img {
    width: min(172px, 52vw);
  }

  .nav-call {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .staff-access {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: 760px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 25, 22, 0.92), rgba(8, 25, 22, 0.62)),
      linear-gradient(0deg, rgba(8, 25, 22, 0.44), rgba(8, 25, 22, 0) 50%);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding-top: 92px;
  }

  .section,
  .service-band,
  .standards-band,
  .gis-section,
  .oak-recovery,
  .process-section,
  .contact-section,
  .subpage-hero {
    padding: 64px 14px;
  }

  .subpage-main {
    padding-top: 68px;
  }

  .subpage-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .pin-workspace,
  .request-summary-band,
  .dashboard-workspace {
    width: calc(100% - 28px);
  }

  .service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 6px;
    width: calc(100% - 28px);
    margin: -18px auto 28px;
    padding: 6px;
    overflow: visible;
  }

  .service-strip a {
    min-width: 0;
    min-height: 38px;
    padding: 7px 5px;
    text-align: center;
    white-space: normal;
    line-height: 1.08;
    font-size: 0.68rem;
  }

  .pin-map-panel,
  .tech-map-shell {
    min-height: 520px;
  }

  .tech-map-shell {
    min-height: 560px;
  }

  .oak-recovery-figure img {
    aspect-ratio: 4 / 3;
  }

  .proof-strip,
  .standards-band,
  .service-grid,
  .gis-features,
  .timeline,
  .metric-row,
  .coord-grid,
  .quick-request-grid,
  .pin-actions,
  .dashboard-metrics,
  .request-summary dl,
  .tech-queue,
  .tech-use-note ul,
  .active-tree-meta {
    grid-template-columns: 1fr;
  }

  .standards-band {
    padding-right: 24px;
    padding-left: 24px;
    gap: 26px;
  }

  .standards-copy h2 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
  }

  .standards-logo-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .uf-logo,
  .isa-logo {
    justify-self: center;
    max-width: min(100%, 340px);
  }

  .standards-divider {
    width: min(220px, 68%);
    height: 1px;
    justify-self: center;
  }

  .proof-strip {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .report-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .map-panel {
    min-height: 430px;
  }

  .map-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    font-size: 0.9rem;
  }

  .report-panel {
    padding: 20px 14px;
  }

  .button {
    width: 100%;
  }

  .mini-gis-callout {
    grid-template-columns: 1fr;
    padding: 54px 14px;
  }

  .tool-panel-title {
    right: 10px;
    left: 10px;
    justify-content: center;
    text-align: center;
  }

  .map-layer-toggle {
    top: 62px;
    right: 10px;
    left: auto;
    min-width: 0;
    width: 148px;
    max-width: calc(100% - 20px);
    margin-left: auto;
    transform: translateZ(0);
  }

  .map-instruction {
    top: 108px;
  }

  .map-action-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: 100%;
    gap: 5px;
  }

  .map-action-bar button {
    flex: 1 1 calc(25% - 5px);
    min-height: 32px;
    padding: 6px 6px;
    font-size: 0.68rem;
  }

  .map-location-status {
    right: 10px;
    left: 10px;
    bottom: 50px;
    max-width: none;
    font-size: 0.7rem;
  }

  .tree-list-section,
  .service-report-section,
  .treatment-log-section,
  .pin-form-panel,
  .request-summary,
  .summary-side,
  .tech-control-panel,
  .service-detail-card,
  .project-grid article,
  .workflow-band,
  .contact-form-band {
    padding: 18px;
  }

  .service-report-heading h2 {
    font-size: 1.75rem;
  }

  .service-report-actions button {
    flex: 1 1 140px;
  }

  .captcha-panel {
    grid-template-columns: 1fr;
  }

  .cf-turnstile {
    min-width: 0;
    max-width: 100%;
  }

  .service-detail-grid,
  .project-grid,
  .project-showcase,
  .workflow-band,
  .contact-form-band {
    width: calc(100% - 28px);
  }

  .project-showcase img {
    min-height: 260px;
  }

  .site-footer {
    padding: 18px 14px;
  }

  .footer-main,
  .footer-powered {
    flex-direction: row;
    justify-content: center;
    gap: 8px 12px;
    line-height: 1.45;
  }

  .footer-powered {
    font-size: 0.8rem;
  }

  .site-footer a {
    min-height: 26px;
    padding: 4px 8px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: min(148px, 47vw);
  }

  .service-strip {
    gap: 4px;
    padding: 5px;
  }

  .service-strip a {
    min-height: 36px;
    padding: 6px 3px;
    font-size: 0.58rem;
  }

  .nav-call {
    padding: 9px 10px;
    font-size: 0.76rem;
  }

  .staff-access {
    min-height: 36px;
    padding: 8px;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 3.65rem);
  }

  .hero-copy,
  .intro p:last-child,
  .section-heading p,
  .section-copy p:last-child {
    font-size: 1rem;
  }

  .service-card,
  .gis-features article,
  .timeline li {
    min-height: 0;
    padding: 20px;
  }

  .service-mark,
  .timeline span {
    margin-bottom: 28px;
  }

  .report-shell {
    border-radius: 6px;
  }

  .report-topbar > div:first-child strong {
    font-size: 0.95rem;
  }

  .segment {
    min-height: 38px;
    padding: 0 6px;
    font-size: 0.76rem;
  }

  .map-panel {
    min-height: 420px;
  }

  .metric-row div,
  .report-detail,
  .next-action {
    padding: 14px;
  }

  .condition-list p {
    grid-template-columns: 16px 38px 1fr;
  }
}

/* ===================================================================
   Technician pin quick-edit popup — edit condition/notes from the pin
   =================================================================== */
.tech-pin-popup {
  width: min(300px, 78vw);
  max-height: min(64vh, 470px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 6px;
}

.tech-pin-popup > strong {
  font-size: 0.94rem;
}

.tech-pin-popup > span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.tech-pin-popup label {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--ink);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tech-pin-popup .pin-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.tech-pin-popup input,
.tech-pin-popup select,
.tech-pin-popup textarea {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 32, 29, 0.2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.tech-pin-popup textarea {
  min-height: 62px;
  font-weight: 500;
  resize: vertical;
}

.tech-pin-popup select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232f7c57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 11px;
}

.tech-pin-popup button {
  position: sticky;
  bottom: 0;
  min-height: 42px;
  margin-top: 2px;
  box-shadow: 0 -8px 10px rgba(255, 255, 255, 0.92);
}

.tech-pin-popup .tech-voice-assistant {
  display: grid;
  gap: 6px;
  margin: 3px 0 1px;
  padding: 9px;
  border: 1px solid rgba(14, 108, 78, 0.28);
  border-radius: 7px;
  background: #edf8f2;
  color: #14201d;
}

.tech-pin-popup .voice-assistant-heading {
  margin: 0;
  color: #173c33;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-pin-popup .voice-record-button {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #0b684b;
  border-radius: 6px;
  background: #117a57;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.tech-pin-popup .voice-record-button:hover {
  background: #0d684b;
}

.tech-pin-popup .voice-record-button.is-recording {
  border-color: #9f251d;
  background: #c9362b;
}

.tech-pin-popup .voice-record-button.is-processing,
.tech-pin-popup .voice-record-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tech-pin-popup .voice-end-button {
  position: static;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(143, 42, 33, 0.45);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: #8f2a21;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.tech-pin-popup .voice-end-button[hidden] {
  display: none;
}

.tech-pin-popup .realtime-voice-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tech-pin-popup .realtime-voice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d8eee4;
  color: #145a40;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
}

.tech-pin-popup .voice-record-button.is-live {
  border-color: #075b3f;
  background: #08784f;
  box-shadow: 0 0 0 3px rgba(32, 190, 125, 0.16);
}

.tech-pin-popup .voice-fallback-button {
  position: static;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #315f51;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tech-pin-popup .voice-fallback-button:hover,
.tech-pin-popup .voice-fallback-button:focus-visible {
  color: #0b684b;
  background: rgba(255, 255, 255, 0.68);
}

.tech-pin-popup .voice-fallback-button[hidden],
.tech-pin-popup .realtime-audio-mount[hidden] {
  display: none;
}

.tech-pin-popup .voice-mic-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-pin-popup .voice-assistant-status {
  min-height: 1.3em;
  color: #3f5d54;
  font-size: 0.71rem;
  font-weight: 650;
  line-height: 1.35;
}

.tech-pin-popup .voice-assistant-status.is-error {
  color: #9b241b;
}

.tech-pin-popup .voice-assistant-status.is-success {
  color: #17633e;
}

.tech-pin-popup .voice-recommendation {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid rgba(14, 108, 78, 0.2);
}

.tech-pin-popup .voice-recommendation[hidden] {
  display: none;
}

.tech-pin-popup .voice-recommendation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #173c33;
  font-size: 0.74rem;
}

.tech-pin-popup .voice-urgency-badge {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: #dcefe5;
  color: #175239;
  font-size: 0.64rem;
  font-weight: 900;
}

.tech-pin-popup .voice-urgency-badge[data-urgency="schedule-soon"] {
  background: #fff1bd;
  color: #6b4b00;
}

.tech-pin-popup .voice-urgency-badge[data-urgency="urgent-review"] {
  background: #ffe0dc;
  color: #8e2118;
}

.tech-pin-popup .voice-recommendation-summary,
.tech-pin-popup .voice-professional-note {
  margin: 0;
  color: #29483f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.tech-pin-popup .voice-recommendation-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 17px;
  color: #1d382f;
  font-size: 0.72rem;
  line-height: 1.35;
}

.tech-pin-popup .voice-professional-note {
  padding-top: 5px;
  border-top: 1px solid rgba(14, 108, 78, 0.15);
  color: #536b63;
  font-style: italic;
}

.tech-pin-popup .voice-knowledge-sources {
  margin: 0;
  padding-top: 4px;
  color: #29483f;
  font-size: 0.69rem;
}

.tech-pin-popup .voice-knowledge-sources[hidden] {
  display: none;
}

.tech-pin-popup .voice-knowledge-sources summary {
  color: #17633e;
  font-weight: 850;
  cursor: pointer;
}

.tech-pin-popup .voice-knowledge-sources ul {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  padding-left: 17px;
}

.tech-pin-popup .voice-knowledge-sources a {
  color: #17633e;
  overflow-wrap: anywhere;
}

.tech-pin-popup .voice-read-button {
  position: static;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(14, 108, 78, 0.3);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  color: #175239;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .tech-pin-popup .voice-record-button.is-recording .voice-mic-icon {
    animation: voice-mic-pulse 1.1s ease-in-out infinite;
  }
}

@keyframes voice-mic-pulse {
  50% { transform: scale(1.13); }
}

/* Photo upload inside the pin popup (kept compact, stays within the map frame) */
.tech-pin-popup .pin-photo-section {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 32, 29, 0.14);
}

.tech-pin-popup .pin-photo-head {
  margin: 0;
  color: var(--ink);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tech-pin-popup .pin-photo-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tech-pin-popup .pin-photo-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 29, 0.2);
  padding: 0;
  background: transparent;
}

.tech-pin-popup .pin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-pin-popup .pin-photo-empty {
  color: var(--muted);
  font-size: 0.76rem;
}

.tech-pin-popup .pin-photo-caption {
  font-weight: 500 !important;
}

.tech-pin-popup .pin-photo-file {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(20, 32, 29, 0.2);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
}

.tech-pin-popup .visually-hidden-photo-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.tech-pin-popup .pin-photo-picker-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.tech-pin-popup .pin-photo-native-choice {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(47, 124, 87, 0.3);
  border-radius: 6px;
  background: rgba(47, 124, 87, 0.08);
}

.tech-pin-popup .pin-photo-native-choice > span {
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 900;
}

.tech-pin-popup .pin-live-camera-button {
  position: static;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid #0e6c4e;
  border-radius: 6px;
  box-shadow: none;
  background: #0e6c4e;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.field-camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(7, 18, 15, 0.94);
}

.field-camera-panel {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  max-height: 100%;
  color: #fff;
}

.field-camera-panel > strong {
  font-size: 1rem;
  text-align: center;
}

.field-camera-panel video {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 6px;
  background: #000;
  object-fit: contain;
}

.field-camera-panel > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-align: center;
}

.field-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
}

.field-camera-actions button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.field-camera-actions button.primary {
  border-color: #f4bf4f;
  background: #f4bf4f;
  color: #14201d;
}

.field-camera-launch {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 99990;
  width: min(360px, calc(100vw - 28px));
  min-height: 48px;
  padding: 10px 16px;
  transform: translateX(-50%);
  border: 1px solid #f4bf4f;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(7, 24, 19, 0.28);
  background: #f4bf4f;
  color: #14201d;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.field-camera-launch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.field-camera-launch.is-hidden {
  display: none;
}

.tech-pin-popup .pin-photo-upload.is-hidden {
  display: none;
}

.tech-pin-popup .pin-photo-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid rgba(47, 124, 87, 0.38);
  border-radius: 6px;
  background: rgba(47, 124, 87, 0.12);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.tech-pin-popup .pin-photo-picker:focus-within,
.tech-pin-popup .pin-photo-picker:hover {
  background: rgba(47, 124, 87, 0.22);
}

.tech-pin-popup .pin-photo-preview {
  width: 100%;
  max-height: 130px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(20, 32, 29, 0.2);
}

.tech-pin-popup .pin-photo-preview.is-hidden {
  display: none;
}

.tech-pin-popup .pin-photo-file::file-selector-button {
  margin-right: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(20, 32, 29, 0.2);
  border-radius: 5px;
  background: rgba(47, 124, 87, 0.1);
  color: var(--forest);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.tech-pin-popup .pin-photo-upload {
  min-height: 38px;
  border: 1px solid rgba(47, 124, 87, 0.32);
  border-radius: 6px;
  color: var(--forest);
  background: rgba(47, 124, 87, 0.14);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.tech-pin-popup .pin-photo-upload:hover {
  background: rgba(47, 124, 87, 0.22);
}

.tech-pin-popup .pin-photo-upload:disabled {
  opacity: 0.6;
  cursor: default;
}

.tech-pin-popup .pin-photo-status {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}


/* Tree health scale infographic (index GIS section) */
.health-scale {
  width: min(1000px, calc(100% - 4px));
  margin: 28px auto 0;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.health-scale img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.health-scale figcaption {
  margin-top: 12px;
  color: #54645e;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}


/* In-SVG pin number/label (always paints on top of the white face, centered) */
.request-pin-marker .pin-label {
  fill: var(--pin-ink, #12231f);
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
}

.map-site-pin .pin-label {
  fill: #12231f;
  font-size: 8px;
  font-weight: 900;
}

/* Customer pin colour / level picker inside the pin popup */
.pin-level-label {
  display: grid;
  gap: 6px;
}

.pin-level-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.pin-level-swatch {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--pin-color, #1f7a34);
  box-shadow: 0 0 0 1px rgba(20, 32, 29, 0.22);
  cursor: pointer;
}

.pin-level-swatch span {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pin-level-swatch.fair span,
.pin-level-swatch.watch span,
.pin-level-swatch.urgent span {
  color: #12231f;
  text-shadow: none;
}

.pin-level-swatch.active {
  box-shadow: 0 0 0 2px #12231f;
  transform: scale(1.08);
}


/* ===================================================================
   Mobile navigation (hamburger + slide-in drawer)
   =================================================================== */
.nav-burger {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.nav-burger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-burger .burger-close { display: none; }
body.nav-open .nav-burger .burger-open { display: none; }
body.nav-open .nav-burger .burger-close { display: block; }

body.is-light .nav-burger {
  color: var(--forest);
  border-color: rgba(23, 60, 51, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  opacity: 0;
  visibility: hidden;
  background: rgba(5, 18, 15, 0.6);
  backdrop-filter: blur(3px);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483002;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(340px, 88vw);
  padding: 88px 22px 28px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #0c221e, #173c33);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

body.nav-open .mobile-nav { transform: translateX(0); }
body.nav-open .mobile-nav-overlay { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

.mobile-nav a {
  padding: 13px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 750;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: #12231f;
  background: #f1bd54;
}

.mobile-nav .mobile-nav-sub {
  margin-left: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.mobile-nav .mobile-nav-label {
  margin: 14px 0 4px;
  padding: 0 14px;
  color: #f6d48c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-nav .mobile-nav-call {
  margin-top: auto;
  border: 1px solid rgba(241, 189, 84, 0.5);
  text-align: center;
  color: #f6d48c;
  background: rgba(241, 189, 84, 0.12);
}

body.is-light .mobile-nav {
  border-left-color: rgba(23, 60, 51, 0.14);
  background: linear-gradient(180deg, #fbfcf7, #e9f5f7);
}

body.is-light .mobile-nav a { color: var(--forest); }
body.is-light .mobile-nav .mobile-nav-sub { color: var(--muted); }
body.is-light .mobile-nav .mobile-nav-call {
  color: #7a4b0d;
  border-color: rgba(183, 119, 30, 0.34);
  background: rgba(232, 169, 59, 0.18);
}

/* Keep the chat launcher from covering the open drawer */
body.nav-open #aiq-root {
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

@media (max-width: 980px) {
  .nav-burger { display: inline-grid; }
  .staff-access { display: none; }
}

@media (max-width: 420px) {
  .nav-burger { width: 42px; height: 42px; }
}


/* Form status + honeypot for server-backed request intake */
.form-status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.is-success {
  display: block;
  color: #d8f5c9;
  border: 1px solid rgba(94, 203, 120, 0.5);
  background: rgba(52, 141, 84, 0.24);
}

.form-status.is-error {
  display: block;
  color: #ffd9cf;
  border: 1px solid rgba(217, 104, 74, 0.55);
  background: rgba(217, 104, 74, 0.2);
}

body.is-light .form-status.is-success {
  color: #1c5a34;
  background: rgba(59, 143, 99, 0.14);
}

body.is-light .form-status.is-error {
  color: #8c2f16;
  background: rgba(199, 86, 62, 0.12);
}

.button.is-sending,
.button[disabled] {
  opacity: 0.62;
  pointer-events: none;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Google customer review ticker */
.google-reviews-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 64px);
  overflow: hidden;
  border-block: 1px solid #e2e6ea;
  background: #fff;
  color: #202124;
}

.google-reviews-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.google-reviews-heading img {
  flex: 0 0 auto;
  width: 84px;
  height: 34px;
  object-fit: contain;
}

.google-reviews-heading span {
  display: block;
  margin-bottom: 2px;
  color: #5f6368;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.google-reviews-heading h2 {
  margin: 0;
  color: #202124;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.google-reviews-viewport {
  min-width: 0;
  overflow: hidden;
  outline: none;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.google-reviews-viewport:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 4px;
}

.google-reviews-track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  animation: google-review-scroll 56s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.google-reviews-set {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

.google-review-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  flex: 0 0 310px;
  width: 310px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
  color: #202124;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(60, 64, 67, 0.12);
}

.google-review-card:hover,
.google-review-card:focus-visible {
  border-color: #9aa0a6;
  box-shadow: 0 4px 12px rgba(60, 64, 67, 0.2);
}

.google-review-card:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: -3px;
}

.google-review-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.google-review-meta strong {
  color: #202124;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.google-review-meta span {
  flex: 0 0 auto;
  color: #70757a;
  font-size: 0.7rem;
}

.google-review-stars {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #f9ab00;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.google-review-stars::after {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("assets/google-g-mark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.google-review-card blockquote {
  display: -webkit-box;
  margin: 8px 0 10px;
  overflow: hidden;
  color: #3c4043;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.google-review-source {
  color: #1a73e8;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .google-reviews-band:hover .google-reviews-track {
    animation-play-state: paused;
  }
}

@keyframes google-review-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 720px) {
  .google-reviews-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
  }

  .google-reviews-heading {
    padding-inline: 4px;
  }

  .google-reviews-viewport {
    width: 100%;
    margin-inline: 0;
    padding-block: 2px;
    mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
  }

  .google-reviews-track {
    animation-duration: 42s;
  }

  .google-reviews-set {
    gap: 10px;
    padding-right: 10px;
  }

  .google-review-card {
    flex-basis: min(82vw, 300px);
    width: min(82vw, 300px);
    min-height: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-reviews-track {
    animation-duration: 90s;
  }
}
