:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --surface-strong: #eef4ec;
  --ink: #172018;
  --muted: #5e6b5f;
  --line: #cad8c8;
  --line-strong: #8dad88;
  --brand: #116b3a;
  --brand-dark: #0c4c2a;
  --brand-soft: #d9ead8;
  --field: #c8db73;
  --warning: #c77b16;
  --danger: #b73838;
  --blue: #27699c;
  --shadow: 0 18px 45px rgba(25, 42, 25, 0.14);
  --radius: 8px;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17, 107, 58, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(199, 123, 22, 0.1), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

body.map-fullscreen-active {
  overflow: hidden;
}

body.map-fullscreen-active .content {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

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

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 2px 10px rgba(8, 35, 18, 0.18);
  flex: 0 0 auto;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

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

.connection-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.connection-pill.online {
  border-color: rgba(17, 107, 58, 0.26);
  background: #e6f5e7;
  color: var(--brand-dark);
}

.connection-pill.offline {
  border-color: rgba(199, 123, 22, 0.38);
  background: #fff4d6;
  color: #6c4b00;
}

.button {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.button.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: portal-spin 0.75s linear infinite;
}

.button.ghost {
  background: transparent;
}

.button.danger {
  border-color: rgba(183, 56, 56, 0.45);
  color: var(--danger);
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-busy-indicator {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 10000;
  width: min(92vw, 380px);
  pointer-events: none;
}

.portal-busy-indicator.full-screen {
  inset: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  display: grid;
  place-items: center;
  transform: none;
  background: rgba(5, 18, 10, 0.34);
  pointer-events: auto;
}

.portal-busy-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 107, 58, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 42px rgba(16, 34, 18, 0.24);
  backdrop-filter: blur(10px);
}

.portal-busy-indicator.full-screen .portal-busy-card {
  width: min(88vw, 420px);
}

.portal-busy-card strong,
.portal-busy-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-busy-card strong {
  font-size: 14px;
}

.portal-busy-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.portal-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(17, 107, 58, 0.18);
  border-top-color: var(--brand);
  animation: portal-spin 0.78s linear infinite;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(26px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--field);
  box-shadow: 0 0 0 4px rgba(200, 219, 115, 0.28);
}

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

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
  max-width: 700px;
}

.error-panel {
  max-width: min(880px, 100%);
  overflow: auto;
  white-space: pre-wrap;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #b84c4c;
  border-radius: 8px;
  background: #fff4f4;
  color: #651919;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-metrics {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
}

.metric {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric strong {
  display: block;
  font-size: 20px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-visual {
  min-height: 190px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-visual img {
  width: min(100%, 430px);
  display: block;
}

.login-visual.banner-visual {
  min-height: 230px;
  padding: 0;
  background: #102116;
  overflow: hidden;
}

.login-visual.banner-visual img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.login-form {
  padding: 20px;
}

.form-title {
  font-size: 20px;
  font-weight: 850;
}

.login-help {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.login-demo-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.login-demo-users button {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--brand-dark);
  padding: 5px 9px;
  font-weight: 800;
  cursor: pointer;
}

.button.google-button {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  justify-content: center;
}

.button.google-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.login-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(183, 56, 56, 0.28);
  background: rgba(183, 56, 56, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.login-trace-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.login-trace-panel summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 900;
}

.login-trace-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.login-trace-panel pre {
  max-height: 260px;
  margin-top: 10px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.login-trace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-grid-two {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.42fr);
  margin-top: 0;
}

.form-grid-three {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) minmax(220px, 0.65fr);
  margin-top: 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.13);
}

.security-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer-note {
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--muted);
  font-size: 13px;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  position: relative;
}

.portal-shell.nav-closed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  background: #102116;
  color: #f6fff6;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  z-index: 1400;
  transition: transform 180ms ease, opacity 180ms ease;
}

.portal-shell.nav-closed .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.sidebar-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sidebar .brand-lockup {
  align-items: flex-start;
  min-width: 0;
}

.sidebar .brand-mark {
  width: 38px;
  height: 38px;
}

.sidebar .brand-title {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 175px;
}

.sidebar .brand-subtitle {
  color: #aac6ad;
  font-size: 12px;
}

.brand-menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}

.brand-menu-button span {
  display: block;
  width: 21px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.floating-menu-button {
  color: #0b2114;
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 20px rgba(23, 34, 26, 0.1);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  min-height: 42px;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #f6fff6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-weight: 760;
}

.nav-button.active,
.nav-button:hover {
  background: #0fcf78;
  border-color: #0fcf78;
  color: #092014;
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.sidebar-signout {
  width: 100%;
  color: #ffe7e7;
  background: rgba(183, 56, 56, 0.2);
  border-color: rgba(255, 201, 201, 0.32);
}

.sidebar-signout:hover {
  color: #fff;
  background: rgba(183, 56, 56, 0.34);
  border-color: rgba(255, 231, 231, 0.72);
}

.admin-view-switcher {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(19, 201, 118, 0.38);
  border-radius: var(--radius);
  background: rgba(15, 207, 120, 0.1);
}

.admin-view-switcher label {
  color: #d9ffe8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-view-switcher select {
  width: 100%;
  min-height: 38px;
  color: #08170d;
  background: #f7fff9;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 7px 9px;
  font-weight: 800;
}

.admin-view-switcher span {
  color: #aac6ad;
  font-size: 12px;
}

.user-chip {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.user-chip strong {
  display: block;
}

.user-chip span {
  display: block;
  color: #aac6ad;
  font-size: 13px;
  margin-top: 3px;
}

.user-chip em {
  display: block;
  margin-top: 7px;
  color: #d7fbe3;
  font-size: 12px;
  font-style: normal;
}

.content {
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.portal-top-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.portal-top-rail strong,
.portal-top-rail span {
  display: block;
}

.portal-top-rail span {
  color: var(--muted);
  font-size: 13px;
}

.portal-update-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid #f0c46b;
  border-radius: var(--radius);
  background: #fff8df;
  box-shadow: 0 10px 28px rgba(70, 53, 10, 0.1);
}

.portal-update-notice strong {
  display: block;
}

.portal-update-notice p {
  margin: 3px 0 0;
  color: var(--muted);
}

.portal-update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.panel-backdrop {
  display: none;
  cursor: pointer;
}

.user-settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1500;
  width: min(390px, 92vw);
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 50px rgba(23, 34, 26, 0.2);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.portal-shell.settings-open .user-settings-panel {
  transform: translateX(0);
}

.settings-action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portal-shell.settings-open .panel-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1300;
  border: 0;
  background: rgba(9, 32, 20, 0.36);
}

.portal-shell.font-large {
  font-size: 18px;
}

.portal-shell.font-xlarge {
  font-size: 20px;
}

.portal-shell.theme-high_contrast {
  --ink: #000;
  --muted: #27332b;
  --surface: #fff;
  --line: #111;
  --brand: #006b2a;
}

.portal-shell.theme-soft_light {
  --ink: #223026;
  --muted: #687568;
  --surface: #fbfbf6;
  --line: #d8ddcf;
  --brand: #597f43;
  background: #f7f7ef;
}

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

.content-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.content-header p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

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

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 16px;
}

.dashboard-stack {
  display: grid;
  gap: 16px;
}

.section-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.project-progress-list,
.dashboard-completed-list,
.available-survey-list {
  display: grid;
  gap: 10px;
}

.project-progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: clip;
}

.project-launch-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-launch-card:hover,
.project-launch-card:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.16);
  outline: none;
}

.project-launch-title strong {
  display: block;
}

.project-launch-title span {
  color: var(--muted);
  font-size: 13px;
}

.project-progress-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 170px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.project-progress-card > summary::-webkit-details-marker {
  display: none;
}

.project-progress-card > summary strong,
.completed-row strong,
.survey-site-card strong {
  display: block;
}

.project-progress-card > summary span,
.completed-row span,
.survey-site-card span {
  color: var(--muted);
  font-size: 13px;
}

.project-progress-meter {
  height: 10px;
  border-radius: 999px;
  background: #dce7de;
  overflow: hidden;
}

.project-progress-meter span {
  display: block;
  height: 100%;
  background: #0fcf78;
}

.project-progress-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.completed-row,
.survey-site-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
}

.completed-row:hover,
.survey-site-card:hover,
.survey-site-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 -4px 0 rgba(19, 201, 118, 0.28);
}

.completed-row small,
.survey-site-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.compact-tabs {
  margin-bottom: 10px;
}

.compact-detail-table {
  margin-top: 14px;
}

details.section-band {
  padding: 0;
  overflow: clip;
}

.admin-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-section > summary::-webkit-details-marker {
  display: none;
}

.admin-section > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--brand);
}

.admin-section[open] > summary {
  border-bottom: 1px solid var(--line);
}

.admin-section[open] > summary::after {
  content: "-";
}

.admin-section > summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
}

.admin-section > :not(summary) {
  margin: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 18px;
}

.small-muted {
  color: var(--muted);
  font-size: 13px;
}

.work-list,
.map-list,
.survey-list,
.submission-list {
  display: grid;
  gap: 10px;
}

.quick-search .field,
.map-control-grid .field {
  position: relative;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(15, 42, 29, 0.18);
}

.search-suggestions[hidden] {
  display: none !important;
}

.search-suggestion {
  min-height: 58px;
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.12);
}

.search-suggestion span,
.search-suggestion small {
  color: var(--muted);
}

.search-suggestion.external-map-search {
  text-decoration: none;
  border-style: dashed;
  background: #f7faf4;
}

.compact-empty {
  min-height: 42px;
  padding: 10px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tab {
  min-height: 40px;
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.admin-tab.active,
.admin-tab:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.admin-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.admin-full {
  grid-column: 1 / -1;
}

.admin-list,
.question-list {
  display: grid;
  gap: 10px;
}

.admin-card,
.question-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-card[data-admin-user-id] {
  cursor: pointer;
}

.admin-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.11);
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-sync-line {
  margin-top: 8px;
}

.permission-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.permission-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.permission-row.enabled {
  border-color: var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
}

.permission-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.permission-row strong,
.permission-row small {
  display: block;
}

.permission-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.permission-row input:disabled + span {
  opacity: 0.74;
}

.setup-code-panel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.setup-code-panel strong,
.setup-code-panel span,
.setup-code-panel small {
  display: block;
}

.setup-code-panel span {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.setup-code-panel small {
  color: var(--muted);
  margin-top: 3px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form h3 {
  font-size: 17px;
}

.basket-assignment-list {
  display: grid;
  gap: 10px;
}

.basket-assignment-head,
.basket-assignment-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.basket-assignment-head span,
.basket-assignment-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.basket-assignment-row {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  align-items: end;
  background: #fff;
}

.basket-assignment-row label {
  display: grid;
  gap: 5px;
}

.project-overview-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f7faf4;
}

.project-overview-card strong,
.project-overview-card span {
  display: block;
}

.project-overview-card > div:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-form-wide {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.6fr) minmax(220px, 0.8fr) auto;
  align-items: end;
}

.user-profile-form {
  margin-top: 14px;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-review-grid h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.launch-checklist {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.launch-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.launch-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.launch-check-row.ok {
  border-color: #b7d8c0;
  background: #f7fbf7;
}

.launch-check-row.warn {
  border-color: #efc46d;
  background: #fffaf0;
}

.launch-check-row.blocker {
  border-color: #e3a1a1;
  background: #fff7f7;
}

.launch-check-row strong,
.launch-check-row small {
  display: block;
}

.launch-check-row small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.portal-log-list {
  display: grid;
  gap: 8px;
}

.portal-log-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(150px, 0.7fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.portal-log-row span,
.portal-log-row small {
  color: var(--muted);
}

.portal-log-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-admin-workflow {
  grid-column: 1 / -1;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf4 100%);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-steps > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-steps strong,
.workflow-steps span {
  display: block;
}

.workflow-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.admin-mini-row.check-row {
  grid-template-columns: auto minmax(150px, 1fr) minmax(130px, 0.6fr) minmax(160px, 1fr) auto;
}

.project-job-manager {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.compact-button {
  min-height: 32px;
  padding: 6px 9px;
}

.admin-mini-row span {
  color: var(--muted);
  font-size: 12px;
}

.question-add-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.question-options-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 0.35fr));
  gap: 12px;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.assignment-grid {
  display: grid;
  gap: 10px;
}

.project-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.project-user-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.project-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.project-user-row.selected {
  border-color: var(--green);
  background: #f4fbf4;
}

.project-user-row input {
  width: 18px;
  height: 18px;
}

.project-user-row strong,
.project-user-row small {
  display: block;
}

.project-user-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.project-basket-share-grid {
  margin-bottom: 4px;
}

.project-basket-share-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.project-basket-share-row strong,
.project-basket-share-row small {
  display: block;
}

.project-basket-share-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.assignment-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: center;
}

.project-survey-row {
  grid-template-columns: minmax(160px, 0.65fr) minmax(170px, 0.55fr) minmax(220px, 0.9fr) minmax(105px, 0.3fr) minmax(105px, 0.3fr);
}

.project-basket-rule-row {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.55fr) minmax(220px, 0.75fr);
}

.project-basket-rule-row strong,
.project-basket-rule-row small {
  display: block;
}

.project-basket-rule-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.assignment-row label,
.check-line {
  color: var(--muted);
  font-weight: 850;
}

.assignment-row select,
.assignment-row input {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.color-field,
.priority-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.color-field input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: 18px;
  height: 18px;
}

.job-card,
.map-card,
.survey-card,
.submission-card,
.site-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.job-title {
  font-weight: 850;
  font-size: 16px;
}

.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.job-description {
  flex-basis: 100%;
  color: var(--text);
  line-height: 1.35;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 750;
  padding: 4px 9px;
  font-size: 12px;
}

.pill.warn {
  color: #6b3d00;
  background: #fff1cd;
  border-color: #efc46d;
}

.pill.ok {
  color: #084723;
  background: #dff2e4;
  border-color: #9fcfae;
}

.pill.blue {
  color: #0c3e63;
  background: #e0eff8;
  border-color: #9bc3dc;
}

.pill.danger {
  color: #781f1f;
  background: #fde2e2;
  border-color: #e3a1a1;
}

.pill.flag-pill {
  color: #171717;
  background: #fff;
  border-color: var(--flag-color, #d95d0e);
}

.flag-color-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--flag-color, transparent);
  box-shadow:
    inset -2px -2px 4px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(15, 23, 42, 0.2);
}

.release-readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.release-readiness-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.release-readiness-row.ok {
  border-color: #b7d8c0;
  background: #f7fbf7;
}

.release-readiness-row.warn {
  border-color: #efc46d;
  background: #fffaf0;
}

.release-readiness-row.blocker {
  border-color: #e3a1a1;
  background: #fff7f7;
}

.release-readiness-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-filter-band {
  margin-bottom: 16px;
}

.dashboard-filter-band .quick-search {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  margin-bottom: 0;
  align-items: end;
}

.lookup-job-hints {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.lookup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.projects-layout,
.job-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

.site-result {
  cursor: pointer;
}

.site-result:hover,
.site-result.active,
.map-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.11);
}

.detail-table {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row-stack {
  grid-template-columns: 1fr;
}

.detail-key {
  color: var(--muted);
  font-weight: 850;
}

.detail-value {
  min-width: 0;
}

.coord-link {
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.site-job-line {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbf7;
}

.site-job-line + .site-job-line {
  margin-top: 10px;
}

.site-job-line span {
  display: block;
  color: var(--muted);
}

.site-job-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mini-map {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(201, 219, 115, 0.42), rgba(255, 255, 255, 0.12) 45%),
    #edf4e9;
  margin-bottom: 16px;
}

.mini-road {
  position: absolute;
  width: 130%;
  height: 40px;
  left: -12%;
  top: 44%;
  transform: rotate(-10deg);
  background: #fff;
  border-top: 4px dashed #bdcbb7;
  border-bottom: 4px dashed #bdcbb7;
}

.mini-line {
  position: absolute;
  width: 45%;
  height: 3px;
  left: 27%;
  top: 50%;
  transform: rotate(-22deg);
  background: var(--brand);
}

.mini-marker {
  position: absolute;
  display: grid;
  gap: 4px;
  justify-items: center;
  font-weight: 850;
  color: var(--ink);
}

.mini-marker span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  border: 7px solid var(--brand);
  box-shadow: 0 8px 18px rgba(17, 107, 58, 0.22);
}

.access-marker {
  left: 24%;
  top: 56%;
}

.tower-marker {
  right: 24%;
  top: 30%;
}

.tower-marker span {
  border-color: #c87914;
}

.mini-map-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.map-card h3,
.survey-card h3 {
  font-size: 17px;
}

.local-map-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-style: dashed;
  background: #fbfdf9;
}

.create-local-map-card {
  min-height: 86px;
}

.local-map-card:hover,
.create-local-map-card:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.12);
}

.local-map-icon {
  --marker-color: #2563eb;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--marker-color);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(17, 107, 58, 0.18);
}

.local-map-icon.create {
  background: #edf7ef;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  font-size: 26px;
}

.local-map-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.local-map-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
}

.local-map-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 120px) minmax(140px, 0.45fr);
  gap: 12px;
}

.local-map-sites-field {
  grid-column: 1 / -1;
}

.local-map-target-field {
  grid-column: 1 / -1;
}

.local-map-site-input {
  min-height: 150px;
  resize: vertical;
}

.local-map-note-input {
  min-height: 90px;
  resize: vertical;
}

.local-map-error {
  padding: 10px 12px;
  border: 1px solid #f3b4b4;
  border-radius: var(--radius);
  background: #fff5f5;
  color: #9f1239;
  font-weight: 850;
}

.project-map-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.project-map-art {
  min-height: 170px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(200, 219, 115, 0.5), rgba(255, 255, 255, 0.18) 55%),
    #eaf1e5;
}

.project-route {
  position: absolute;
  width: 62%;
  height: 4px;
  left: 18%;
  top: 49%;
  transform: rotate(-14deg);
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.project-dot {
  position: absolute;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 4px 7px;
  background: #fff;
  border: 4px solid var(--brand);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(17, 107, 58, 0.18);
}

.dot-1 { left: 16%; top: 54%; }
.dot-2 { left: 36%; top: 34%; }
.dot-3 { left: 55%; top: 48%; }
.dot-4 { left: 70%; top: 30%; }
.dot-5 { left: 78%; top: 62%; }

.map-filter-band {
  margin-bottom: 16px;
  position: relative;
  z-index: 120;
}

.map-control-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(320px, 0.68fr);
  gap: 14px;
  align-items: end;
}

.map-search-field {
  z-index: 121;
}

.map-search-suggestions {
  z-index: 1200;
  max-height: min(430px, calc(100vh - 190px));
}

.map-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.map-stat {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

button.map-stat {
  color: inherit;
  font: inherit;
  text-align: left;
}

.map-stat strong {
  font-size: 20px;
}

.map-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.offline-outbox {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.device-setup-card {
  display: grid;
  gap: 12px;
}

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

.device-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.device-step .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.step-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.device-step strong,
.device-step small {
  display: block;
}

.device-step small {
  color: var(--muted);
  margin-top: 3px;
}

.device-setup-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf7ef;
  color: var(--brand-dark);
  font-weight: 800;
}

.outbox-stat-row {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.outbox-stat-button {
  cursor: pointer;
}

.outbox-stat-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.outbox-stat-button:not(:disabled):hover,
.outbox-stat-button:not(:disabled):focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(17, 107, 58, 0.16);
  outline: none;
}

.outbox-actions {
  justify-content: flex-start;
}

.location-status {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.map-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.map-main-band {
  min-width: 0;
}

.map-page {
  display: grid;
  gap: 16px;
}

.persistent-map-placeholder {
  min-height: 0;
}

.persistent-content-placeholder {
  min-height: 0;
}

.persistent-content-view-host {
  display: contents;
}

.persistent-map-host {
  display: none;
}

.persistent-map-host.active {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 900;
}

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

.map-dialog {
  --map-topbar-clearance: 72px;
  position: fixed !important;
  inset: 0 !important;
  z-index: 900;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  display: block;
  gap: 0;
  height: 100dvh;
  min-height: 100svh;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}

.map-dialog-topbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(150px, 230px);
  align-items: center;
  gap: 8px;
  width: min(920px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1200;
  pointer-events: none;
}

.map-dialog-menu-button {
  align-self: center;
  pointer-events: auto;
  box-shadow: 0 12px 26px rgba(14, 46, 27, 0.2);
}

.map-dialog-title {
  display: grid;
  gap: 2px;
  align-self: center;
}

.map-dialog-title strong {
  font-size: 18px;
}

.map-dialog-title span {
  color: var(--muted);
  font-weight: 800;
}

.map-dialog-search {
  position: relative;
  min-width: 0;
  pointer-events: auto;
}

.map-dialog-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.map-dialog-search input {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 26px rgba(14, 46, 27, 0.18);
}

.map-dialog-size-button {
  min-width: 48px;
  font-size: 24px;
  line-height: 1;
}

.map-dialog-project {
  min-width: 0;
  align-self: center;
  pointer-events: auto;
}

.map-dialog-project span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.map-dialog-project select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 34px 10px 12px;
  outline: none;
  box-shadow: 0 12px 26px rgba(14, 46, 27, 0.18);
}

.map-dialog-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #eaf1e5;
}

.map-dialog-map {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.map-full-details-open {
  box-shadow: 0 10px 24px rgba(14, 46, 27, 0.18);
}

.map-corner-details {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1000;
  width: min(420px, calc(100% - 28px));
  max-height: min(46vh, 420px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(14, 46, 27, 0.2);
}

.map-corner-details.is-collapsed {
  width: auto;
  overflow: visible;
}

.map-corner-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.map-corner-details-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.map-corner-details-open {
  flex: 0 0 auto;
}

.map-corner-clear-selection {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: rgba(17, 107, 58, 0.24);
  color: var(--muted);
  font-size: 18px;
}

.map-corner-clear-selection:hover {
  border-color: rgba(183, 56, 56, 0.42);
  color: var(--danger);
}

.map-corner-details.is-collapsed .map-corner-details-head {
  border-bottom: 0;
}

.map-corner-details-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.map-corner-job-list {
  display: grid;
  gap: 6px;
}

.map-corner-assigned-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-corner-job-list .mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-corner-job-list .mini-row.map-assigned-row {
  grid-template-columns: minmax(0, 1fr) minmax(28px, auto);
}

.map-corner-job-list .mini-row.active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.map-corner-job-list .mini-row span {
  color: var(--muted);
  font-weight: 800;
}

.map-assigned-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.map-assigned-meta em {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.map-assigned-meta .note-star {
  color: var(--warning);
  font-size: 18px;
  line-height: 1;
}

.map-assigned-flag {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.map-full-details-panel {
  position: absolute;
  inset: var(--map-topbar-clearance) auto 0 0;
  z-index: 1100;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(560px, 100%);
  max-height: calc(100% - var(--map-topbar-clearance));
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 18px 0 42px rgba(14, 46, 27, 0.22);
}

.map-full-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.map-full-details-head strong,
.map-full-details-head span {
  display: block;
}

.map-full-details-head span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.map-full-details-panel .map-info-drawer {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.map-full-details-panel .map-info-drawer-body {
  min-height: 0;
  overflow: auto;
}

.map-full-details-panel .map-tab-job-list {
  max-height: none;
}

.map-dialog-search .map-search-suggestions {
  z-index: 1300;
  max-height: min(420px, calc(100vh - 94px));
}

.portal-shell:not(.nav-closed) .sidebar {
  z-index: 3200;
}

.map-info-drawer {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.map-info-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f7faf4;
}

.map-info-drawer-head h3 {
  margin: 0;
  font-size: 20px;
}

.map-info-drawer-head span {
  color: var(--muted);
  font-weight: 800;
}

.map-info-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.map-info-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.map-info-tabs button.active {
  background: var(--brand);
  color: #fff;
}

.map-info-drawer-body {
  padding: 12px;
}

.map-tab-job-list {
  max-height: 36vh;
}

.map-pictures-panel,
.map-picture-section,
.map-picture-job-list {
  display: grid;
  gap: 12px;
}

.map-picture-section {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.map-picture-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.map-picture-section-head,
.map-picture-job-row,
.map-picture-job-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.map-picture-section-head h4 {
  margin: 0;
  font-size: 15px;
}

.map-picture-section-head span,
.map-picture-job-row span,
.map-picture-meta span,
.map-picture-meta small {
  color: var(--muted);
  font-size: 13px;
}

.map-picture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
}

.map-picture-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf5;
}

.map-picture-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #edf7ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.map-picture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-picture-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-picture-meta strong,
.map-picture-job-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-picture-job-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.map-picture-job-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-picture-job-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.leaflet-map {
  min-height: min(62vh, 620px);
  height: 560px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eaf1e5;
  touch-action: none;
}

.map-dialog .map-dialog-stage {
  isolation: isolate;
}

.map-dialog .leaflet-top {
  top: 72px;
}

.map-dialog .leaflet-left {
  left: 6px;
}

.map-dialog .leaflet-right {
  right: 6px;
}

.map-dialog .map-dialog-map,
.map-dialog #portalLeafletMap.map-dialog-map,
.map-dialog .leaflet-map.map-dialog-map,
.map-dialog .map-dialog-stage .leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none;
  border: 0;
  border-radius: 0;
}

.map-loading,
.map-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.leaflet-popup-content {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--ink);
}

.leaflet-popup-content span {
  color: var(--muted);
  font-size: 13px;
}

.leaflet-popup-button {
  min-height: 34px;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.leaflet-popup-button.secondary {
  background: #ffffff;
  color: var(--brand-dark);
  border: 1px solid var(--line-strong);
}

.leaflet-popup-button.complete-ready {
  background: #0fcf78;
  color: #082214;
  box-shadow: 0 0 0 3px rgba(15, 207, 120, 0.22);
}

.map-location-popup {
  display: grid;
  gap: 8px;
}

.map-popup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.map-job-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}

.map-job-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.map-job-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.13);
}

.local-map-job-card {
  border-style: dashed;
  background: #fbfdf9;
}

.local-map-job-note {
  grid-column: 1 / -1;
}

.local-map-job-note textarea {
  min-height: 110px;
  resize: vertical;
}

.local-map-job-card .map-job-actions {
  grid-column: 1 / -1;
}

.completion-amount-field {
  grid-column: 1 / -1;
  max-width: 260px;
}

.completion-amount-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-site-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f7faf4;
}

.map-travel-estimate,
.map-access-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 107, 58, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 14px;
}

.map-travel-estimate strong,
.map-access-summary strong {
  color: var(--brand-dark);
}

.map-travel-estimate span,
.map-access-summary span,
.map-access-summary a {
  color: var(--muted);
  font-weight: 800;
}

.map-access-summary a {
  color: var(--brand-dark);
}

.site-job-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-job-menu-item {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 6px 10px;
  font-weight: 800;
  cursor: pointer;
}

.site-job-menu-item.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 107, 58, 0.14);
}

.site-job-menu-item small {
  color: var(--muted);
  font-weight: 800;
}

.site-job-menu-item .note-star {
  color: var(--warning);
  font-size: 16px;
  line-height: 1;
}

.site-job-menu-item .map-assigned-flag {
  grid-column: auto;
  max-width: 100%;
  color: var(--muted);
}

.site-job-menu-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 76%, rgba(0, 0, 0, 0.25) 0 20%, transparent 52%),
    var(--marker-color, var(--brand));
}

.leaflet-popup-job-menu {
  display: grid;
  gap: 4px;
  padding: 4px 0;
}

.leaflet-popup-link {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 5px 7px;
}

.map-site-lookup-tool {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
  overflow: hidden;
}

.map-site-lookup-tool > summary,
.map-job-details > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
  list-style: none;
}

.map-site-lookup-tool > summary::-webkit-details-marker,
.map-job-details > summary::-webkit-details-marker {
  display: none;
}

.map-site-lookup-tool > summary::after,
.map-job-details > summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff;
}

.map-site-lookup-tool[open] > summary::after,
.map-job-details[open] > summary::after {
  content: "-";
}

.map-site-lookup-tool small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 800;
}

.map-site-detail-table,
.map-job-detail-table {
  padding: 0 12px 12px;
}

.map-site-detail-table .detail-row,
.map-job-detail-table .detail-row {
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
}

.settings-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  align-items: start;
}

.settings-page-grid .section-band,
.settings-page-grid .detail-table,
.settings-page-grid .detail-value {
  min-width: 0;
}

.settings-page-grid .detail-value {
  overflow-wrap: anywhere;
}

.map-job-marker {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--marker-color, var(--brand));
  box-shadow: 0 0 0 4px rgba(17, 107, 58, 0.12);
}

.job-notes-box {
  grid-column: 2;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef7ec;
  color: var(--ink);
  line-height: 1.35;
  white-space: normal;
}

.site-notes-box {
  grid-column: 1 / -1;
  margin: 0 12px 12px;
}

.map-site-summary .site-notes-box {
  margin: 0;
}

.job-notes-box strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.job-notes-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.job-notes-box.empty {
  background: #f7faf4;
  color: var(--muted);
}

.editable-notes-box textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.35;
}

.editable-notes-box textarea:focus {
  outline: 3px solid rgba(17, 107, 58, 0.18);
  border-color: var(--brand);
}

.site-notes-box textarea {
  min-height: 84px;
}

.map-job-details {
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdf9;
  overflow: hidden;
}

.map-job-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.map-job-actions .button {
  min-height: 36px;
  padding: 8px 10px;
}

.flag-control {
  min-height: 36px;
  display: inline-grid;
  grid-template-columns: auto minmax(158px, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
  color: var(--muted);
}

.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-control select {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.urgency-pill {
  --urgency-color: #f97316;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #35150a;
}

.urgency-color-ring {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--urgency-color, #f97316);
  background: transparent;
}

.static-map-fallback {
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.static-map-canvas {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(22deg, transparent 44%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.85) 49%, transparent 50%),
    linear-gradient(150deg, rgba(200, 219, 115, 0.58), rgba(255, 255, 255, 0.12) 62%),
    #eaf1e5;
}

.static-map-point {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  background:
    radial-gradient(circle at 70% 74%, rgba(0, 0, 0, 0.22) 0 20%, transparent 56%),
    var(--marker-color, var(--brand));
  border: 4px solid var(--marker-color, var(--brand));
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow:
    inset -5px -6px 9px rgba(0, 0, 0, 0.25),
    inset 4px 4px 7px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(17, 107, 58, 0.2);
  cursor: pointer;
}

.static-map-point.active {
  box-shadow: 0 0 0 5px rgba(17, 107, 58, 0.2), 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%) scale(1.08);
}

.static-map-point.has-urgency {
  box-shadow:
    0 0 0 4px var(--urgency-ring, #f97316),
    inset -5px -6px 9px rgba(0, 0, 0, 0.25),
    inset 4px 4px 7px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(17, 107, 58, 0.2);
}

.static-map-user-point {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 42px;
  background: transparent;
  z-index: 3;
}

.leaflet-local-map-icon {
  background: transparent;
  border: 0;
}

.leaflet-job-marker {
  background: transparent;
  border: 0;
}

.leaflet-job-ball {
  --marker-size: 24px;
  --marker-ring: #e8ad21;
  --marker-ring-offset: -3px;
  position: relative;
  width: var(--marker-size);
  height: var(--marker-size);
  display: block;
  border-radius: 999px;
}

.leaflet-job-ball.has-pc-pictures {
  --marker-ring: #7dd3fc;
  --marker-ring-offset: -4px;
}

.leaflet-job-ball.has-pc-notes.has-pc-pictures {
  --marker-ring: conic-gradient(#e8ad21 0 50%, #7dd3fc 0 100%);
  --marker-ring-offset: -4px;
}

.leaflet-job-ball.has-urgency {
  --marker-ring: var(--urgency-ring, #f97316);
  --marker-ring-offset: -4px;
}

.leaflet-job-ball.urgency-red {
  --marker-ring-offset: -5px;
}

.leaflet-job-ball.has-pc-companion::before,
.leaflet-job-ball.has-urgency::before {
  content: "";
  position: absolute;
  inset: var(--marker-ring-offset);
  z-index: 1;
  border-radius: inherit;
  background: var(--marker-ring);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.22);
}

.leaflet-job-ball-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 76%, rgba(0, 0, 0, 0.36) 0 18%, transparent 55%),
    var(--marker-color, var(--brand));
  box-shadow:
    inset -5px -6px 9px rgba(0, 0, 0, 0.3),
    inset 4px 4px 7px rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.leaflet-job-ball.active .leaflet-job-ball-inner {
  box-shadow:
    inset -5px -6px 9px rgba(0, 0, 0, 0.28),
    inset 4px 4px 7px rgba(255, 255, 255, 0.1),
    0 0 0 5px rgba(17, 107, 58, 0.3),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

.leaflet-local-map-icon-inner {
  --marker-color: #2563eb;
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid #fff;
  background:
    radial-gradient(circle at 70% 76%, rgba(0, 0, 0, 0.3) 0 18%, transparent 56%),
    var(--marker-color);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow:
    inset -5px -6px 8px rgba(0, 0, 0, 0.24),
    inset 3px 3px 6px rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.leaflet-local-map-icon-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--marker-color);
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.pcs-location-recenter-control {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 55, 39, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.pcs-location-recenter-control:active {
  transform: translateY(1px);
}

.user-location-icon {
  background: transparent;
  border: 0;
}

.user-location-emoji {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #dbeafe;
  color: #102a43;
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.leaflet-access-icon {
  background: transparent;
  border: 0;
}

.leaflet-access-finger {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 31px;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
}

.leaflet-access-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 3px solid #fff;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.user-location-person {
  position: relative;
  width: 34px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(29, 78, 216, 0.28));
}

.user-location-head {
  position: absolute;
  left: 11px;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #1d4ed8;
  border: 3px solid #fff;
}

.user-location-body {
  position: absolute;
  left: 9px;
  top: 15px;
  width: 17px;
  height: 22px;
  border-radius: 10px 10px 7px 7px;
  background: #60a5fa;
  border: 3px solid #fff;
}

.user-location-arm {
  position: absolute;
  left: 22px;
  top: 8px;
  width: 7px;
  height: 20px;
  border-radius: 999px;
  background: #1d4ed8;
  border: 2px solid #fff;
  transform: rotate(-35deg);
  transform-origin: bottom center;
}

.static-map-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.static-map-note span {
  color: var(--muted);
  font-size: 13px;
}

.compact-head {
  margin-top: 10px;
}

.project-job-list,
.update-list {
  display: grid;
  gap: 10px;
}

.project-job-card .header-actions {
  justify-content: flex-end;
}

.compact-card {
  margin-top: 10px;
}

.closeout-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.closeout-mode-row,
.closeout-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.closeout-date-row .field {
  min-width: min(280px, 100%);
}

.closeout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.closeout-day-list {
  display: grid;
  gap: 12px;
}

.closeout-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.closeout-day-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.closeout-day-card.active,
.closeout-day-card:hover {
  border-color: var(--brand);
  box-shadow: inset 0 -4px 0 rgba(19, 201, 118, 0.28);
}

.closeout-month-grid .closeout-day-card {
  min-height: 148px;
}

.closeout-item-list {
  display: grid;
  gap: 8px;
}

.closeout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf4;
}

.closeout-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.closeout-item.invoiced {
  opacity: 0.78;
}

.day-note-preview {
  margin: 0;
}

.receipt-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.closeout-readiness {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.invoice-packet-history {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.invoice-packet-list {
  display: grid;
  gap: 10px;
}

.invoice-packet-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.packet-main,
.packet-meta-grid {
  min-width: 0;
}

.packet-main {
  display: grid;
  gap: 4px;
}

.packet-main span {
  color: var(--muted);
  font-size: 13px;
}

.packet-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.packet-meta-grid span {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  color: var(--muted);
  font-size: 12px;
}

.packet-meta-grid strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.packet-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: auto;
  padding: clamp(10px, 3vw, 28px);
  background: rgba(5, 18, 11, 0.54);
}

.invoice-dialog {
  position: relative;
  width: min(1120px, 96vw);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #eef4eb;
  box-shadow: 0 24px 80px rgba(7, 23, 14, 0.34);
  padding: 18px;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.invoice-paper {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #c8d8cc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--brand);
}

.invoice-header h2 {
  margin: 4px 0;
  font-size: 28px;
}

.invoice-label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-id-box {
  min-width: 220px;
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: end;
  color: var(--muted);
}

.invoice-id-box strong {
  color: var(--ink);
  font-size: 18px;
}

.invoice-party-grid,
.invoice-summary-grid,
.invoice-note-grid {
  display: grid;
  gap: 12px;
}

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

.invoice-party-grid > div,
.invoice-note-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf4;
}

.invoice-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invoice-summary-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef8ef;
}

.invoice-summary-grid strong {
  display: block;
  font-size: 24px;
}

.invoice-summary-grid span,
.invoice-note-grid span,
.invoice-party-grid span {
  color: var(--muted);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid #cbd8ce;
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.invoice-table th {
  background: #e8f3e9;
  color: var(--ink);
}

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

.invoice-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(90px, auto) minmax(220px, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.readiness-row.warn {
  box-shadow: inset 4px 0 0 #f6b73c;
}

.readiness-row.info {
  box-shadow: inset 4px 0 0 #6aa9ff;
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.survey-single-layout {
  grid-template-columns: 1fr;
}

.survey-card {
  cursor: pointer;
}

.survey-card.active,
.survey-card:hover {
  border-color: var(--brand);
}

.survey-form {
  display: grid;
  gap: 14px;
}

.question-block {
  display: grid;
  gap: 8px;
}

.question-label {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.question-block label {
  font-weight: 850;
}

.required-mark {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: #fff4d6;
  border: 1px solid #e6b852;
  color: #6c4b00;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 850;
}

.photo-input {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #f8fbf5;
  color: var(--brand-dark);
  cursor: pointer;
}

.photo-input input {
  max-width: min(100%, 420px);
}

.photo-upload-note-row {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}

.photo-upload-note-row textarea {
  width: 100%;
  resize: vertical;
}

.photo-category-stack {
  display: grid;
  gap: 12px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.photo-category-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf5;
}

.photo-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-category-head h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 16px;
}

.photo-category-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.portal-review-dialog,
.photo-manager-dialog {
  width: min(920px, 96vw);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.saved-work-list,
.photo-manager-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.saved-work-list {
  max-height: min(58vh, 520px);
}

.compact-photo-list {
  max-height: none;
  overflow: visible;
}

.saved-work-row,
.photo-manager-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbf5;
}

.saved-work-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.saved-work-row-number {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f3e8;
  color: var(--brand-dark);
  font-weight: 900;
}

.saved-work-row-main,
.photo-manager-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.saved-work-row-main span,
.photo-manager-main span,
.saved-work-row-main small,
.photo-manager-main small {
  color: var(--muted);
}

.photo-note-text {
  color: var(--brand-dark) !important;
  font-weight: 800;
}

.saved-work-row-meta,
.photo-manager-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.photo-manager-row {
  grid-template-columns: 92px minmax(0, 1fr) minmax(220px, auto);
}

.photo-manager-thumb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #edf7ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
}

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

.photo-manager-thumb.missing {
  background: #fff6e0;
}

.danger-text {
  color: #9f1d1d !important;
  font-weight: 800;
}

.danger-button {
  border-color: #c44 !important;
  color: #9f1d1d !important;
}

.radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
}

.radio-pill input {
  width: auto;
}

.status-line {
  min-height: 22px;
  color: var(--brand-dark);
  font-weight: 800;
}

.empty {
  color: var(--muted);
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.hide {
  display: none !important;
}

.type-option-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  body {
    background: var(--bg);
  }

  .hero-band,
  .dashboard-grid,
  .dashboard-filter-band .quick-search,
  .lookup-layout,
  .projects-layout,
  .map-control-grid,
  .map-page-layout,
  .closeout-layout,
  .job-page-layout,
  .project-map-panel,
  .admin-project-grid,
  .admin-review-grid,
  .launch-check-grid,
  .invoice-packet-card,
  .invoice-party-grid,
  .invoice-note-grid,
  .survey-layout,
  .admin-layout,
  .form-grid-two,
  .form-grid-three,
  .workflow-steps,
  .project-survey-row,
  .project-basket-rule-row,
  .question-options-grid {
    grid-template-columns: 1fr;
  }

  .saved-work-row,
  .photo-manager-row {
    grid-template-columns: 1fr;
  }

  .saved-work-row-meta,
  .photo-manager-actions {
    justify-content: flex-start;
  }

  .photo-category-section {
    padding: 10px;
  }

  .photo-manager-thumb {
    width: 100%;
    height: 180px;
  }

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

  .invoice-header {
    flex-direction: column;
  }

  .invoice-id-box {
    justify-items: start;
  }

  .invoice-paper {
    padding: 18px;
    overflow-x: auto;
  }

  .invoice-dialog {
    padding: 12px;
  }

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

  .packet-actions {
    justify-content: stretch;
  }

  .packet-actions .button {
    flex: 1;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-shell.nav-open,
  .portal-shell.nav-closed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(315px, 88vw);
    height: 100vh;
    z-index: 1400;
    padding: 14px;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 18px 0 46px rgba(7, 23, 14, 0.34);
  }

  .sidebar .brand-lockup {
    align-items: flex-start;
  }

  .sidebar .brand-mark {
    width: 34px;
    height: 34px;
  }

  .sidebar .brand-title {
    max-width: 190px;
    font-size: 16px;
  }

  .sidebar .brand-subtitle {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 8px;
  }

  .nav-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    text-align: left;
    padding: 10px 12px;
  }

  .sidebar-foot {
    display: grid;
    gap: 8px;
    margin-top: auto;
  }

  .user-chip {
    padding: 10px;
  }

  .user-chip span {
    display: block;
  }

  .sidebar-foot .button {
    min-height: 40px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .portal-shell.nav-open .panel-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1300;
    border: 0;
    background: rgba(9, 32, 20, 0.28);
  }

  .portal-shell.settings-open .panel-backdrop {
    z-index: 1450;
    background: rgba(9, 32, 20, 0.36);
  }

  .content-header {
    flex-direction: column;
    margin-bottom: 14px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .content {
    padding-top: 16px;
  }

  .section-band {
    padding: 14px;
  }

  .admin-full {
    grid-column: auto;
  }

  .admin-form-wide {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-mini-row.check-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-mini-row.check-row span,
  .admin-mini-row.check-row .button {
    grid-column: 2;
  }

  .flag-control {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .map-dialog {
    gap: 0;
    padding: 0;
  }

  .map-dialog-topbar {
    grid-template-columns: auto minmax(0, 1fr) minmax(116px, 32vw);
    align-items: center;
    width: calc(100% - 20px);
    top: 10px;
    left: 10px;
  }

  .map-dialog-project {
    grid-column: auto;
  }

  .map-dialog-title {
    display: none;
  }

  .map-corner-details {
    left: 10px;
    bottom: 10px;
    width: min(390px, calc(100% - 20px));
    max-height: 42vh;
  }

  .map-full-details-panel {
    width: 100%;
  }

  .map-info-drawer-head {
    align-items: stretch;
    flex-direction: column;
  }

  .map-info-tabs {
    width: 100%;
  }

  .map-info-tabs button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero-band,
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-shell {
    min-height: auto;
  }

  .hero-band {
    gap: 18px;
    padding-top: 26px;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-metrics,
  .quick-search,
  .map-stat-row,
  .outbox-stat-row,
  .basket-assignment-row,
  .closeout-month-grid,
  .closeout-item,
  .job-card,
  .map-card,
  .map-job-card,
  .site-job-line,
  .admin-card,
  .portal-log-row,
  .project-progress-card > summary,
  .readiness-row,
  .question-row,
  .assignment-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    gap: 9px;
  }

  .login-panel {
    box-shadow: 0 12px 28px rgba(25, 42, 25, 0.12);
  }

  .login-visual {
    min-height: 120px;
    padding: 12px;
  }

  .login-visual.banner-visual {
    min-height: 160px;
  }

  .login-form {
    padding: 14px;
  }

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

  .map-job-list {
    max-height: none;
  }

  .map-job-actions {
    grid-column: 1;
  }

  .job-notes-box,
  .map-job-details {
    grid-column: 1;
  }

  .portal-shell {
    min-height: 100vh;
  }

  .sidebar {
    padding: 9px;
  }

  .nav-list {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-button {
    min-height: 40px;
    font-size: 15px;
  }

  .sidebar-foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-top-rail {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portal-top-rail > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portal-update-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-update-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .content-header h2 {
    font-size: 34px;
  }

  .content-header p {
    font-size: 15px;
  }

  .header-actions,
  .job-card .header-actions {
    width: 100%;
  }

  .header-actions .button,
  .job-card .header-actions .button {
    flex: 1 1 0;
  }

  .job-card .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-job-actions,
  .project-job-card .header-actions {
    justify-content: stretch;
  }

  .site-job-actions .button,
  .project-job-card .header-actions .button {
    flex: 1 1 auto;
  }

  .admin-card-actions {
    justify-content: stretch;
  }

  .setup-code-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-card-actions .button {
    flex: 1 1 auto;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head .button {
    width: 100%;
  }

  .job-meta {
    gap: 6px;
  }

  .survey-form .button.primary {
    width: 100%;
  }

  .settings-page-grid,
  .settings-page-grid .form-grid.two,
  .local-map-form-grid {
    grid-template-columns: 1fr;
  }

  .local-map-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mini-map-caption {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .metric {
    padding: 11px;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-band,
  .job-card,
  .map-card,
  .survey-card,
  .submission-card,
  .site-result {
    padding: 12px;
  }

  .sidebar-foot {
    grid-template-columns: 1fr;
  }

  .sidebar-foot .button {
    width: 100%;
  }
}
