:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #65736d;
  --line: #d9e0dc;
  --green: #1f7a5a;
  --green-dark: #13543e;
  --amber: #b66b12;
  --blue: #315f9c;
  --accent: #35757a;
  --shadow: 0 18px 45px rgba(26, 40, 34, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

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

.brand-row {
  align-items: flex-start;
}

.mapcol-language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.mapcol-language-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 4px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mapcol-language-switch button:hover,
.mapcol-language-switch button.is-active {
  background: var(--green);
  color: #fff;
}

.mapcol-language-switch button:focus-visible {
  outline: 3px solid rgba(31, 122, 90, 0.24);
  outline-offset: 1px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
}

.status-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mode-button {
  height: 100%;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f8faf9;
  color: var(--muted);
  cursor: pointer;
}

.mode-button:last-child {
  border-right: 0;
}

.mode-button.active {
  background: var(--green);
  color: #fff;
}

.volunteer-overview-only {
  display: none;
}

body[data-mode="volunteers"] .personal-control {
  display: none;
}

body[data-mode="volunteers"] .volunteer-overview-only {
  display: grid;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e3f2ec;
  color: var(--green);
}

.summary-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.summary-card p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.summary-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.control-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.control-group > label:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.volunteer-card {
  background:
    linear-gradient(135deg, rgba(144, 194, 231, 0.22), rgba(182, 219, 171, 0.2)),
    #fbfcfb;
}

.profile-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.avatar-upload {
  display: block;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.avatar-upload input {
  display: none;
}

.avatar-preview,
.thanks-avatar,
.village-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, #0f4460, #35757a);
  box-shadow: 0 12px 26px rgba(15, 68, 96, 0.22);
}

.avatar-preview {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  font-size: 19px;
}

.avatar-preview img,
.thanks-avatar img,
.village-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.group-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.group-option.active {
  border-color: var(--group-color);
  box-shadow: inset 0 0 0 1px var(--group-color), 0 10px 22px rgba(23, 33, 29, 0.07);
}

.group-swatch {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: var(--group-color);
  box-shadow: 0 0 0 1px rgba(23, 33, 29, 0.16);
}

.group-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.group-copy strong,
.group-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-copy strong {
  font-size: 13px;
}

.group-copy span {
  color: var(--muted);
  font-size: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--green);
}

.result-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.result-main {
  display: grid;
  min-width: 0;
  gap: 2px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.result-main span,
.result-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-item small {
  color: var(--muted);
}

.result-action {
  min-height: 30px;
  padding: 0 10px;
  border-color: transparent;
  color: #fff;
  background: var(--group-color, var(--accent));
  font-size: 12px;
  font-weight: 800;
}

.result-item.lit {
  background: color-mix(in srgb, var(--group-color, #35757a) 12%, #fff);
}

.memorial-control {
  background:
    linear-gradient(135deg, rgba(15, 68, 96, 0.06), rgba(182, 219, 171, 0.14)),
    #fbfcfb;
}

.memorial-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f4460, #35757a);
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(15, 68, 96, 0.18);
}

.volunteer-overview-control {
  background:
    linear-gradient(135deg, rgba(144, 194, 231, 0.18), rgba(53, 117, 122, 0.1)),
    #fbfcfb;
}

.import-actions,
.template-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.file-button {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.file-button:hover {
  border-color: var(--green);
}

.file-button input {
  display: none;
}

.template-actions button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 750;
}

.memorial-export-actions {
  grid-template-columns: 1fr;
}

.memorial-export-actions .coverage-memorial-button {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0f4460, #35757a);
  box-shadow: 0 10px 22px rgba(15, 68, 96, 0.16);
}

.import-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.volunteer-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.volunteer-stat {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.volunteer-stat span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volunteer-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.volunteer-roster {
  display: grid;
  gap: 10px;
  overflow: visible;
}

.volunteer-roster-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.volunteer-roster-card.active {
  border-color: var(--group-color, var(--green));
  box-shadow: inset 0 0 0 1px var(--group-color, var(--green)), 0 12px 24px rgba(23, 33, 29, 0.08);
}

.roster-avatar,
.assignment-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--group-color, #0f4460), #35757a);
}

.roster-avatar {
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 68, 96, 0.18);
}

.roster-avatar img,
.assignment-avatar img,
.popup-volunteer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

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

.roster-name-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-name-row span {
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--group-color, #35757a) 16%, #fff);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.roster-meta,
.roster-area,
.roster-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-area {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #26352f;
  font-weight: 700;
}

.roster-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.compact {
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: var(--ink);
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.check-row.disabled {
  color: #929d98;
}

.meta-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.warnings {
  display: grid;
  gap: 8px;
}

.warning-item {
  padding: 10px 12px;
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  background: #fff8ed;
  color: #5d3b0b;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.workspace {
  min-width: 0;
  position: relative;
}

.view {
  display: none;
  width: 100%;
  height: 100vh;
}

.view.active {
  display: block;
}

#map {
  width: 100%;
  height: 100%;
}

.map-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 500;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: rgba(23, 33, 29, 0.78);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.reference-frame {
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px;
  background: #eef2f0;
}

.reference-frame img {
  max-width: 100%;
  max-height: calc(100vh - 74px);
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.reference-frame figcaption {
  color: var(--muted);
  font-size: 14px;
}

.leaflet-popup-content {
  margin: 12px 14px;
  min-width: 210px;
}

.popup-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 16px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 5px 8px;
  font-size: 13px;
}

.popup-grid span:nth-child(odd) {
  color: var(--muted);
}

.popup-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.popup-volunteer-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.popup-volunteer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.popup-volunteer-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--group-color, #0f4460), #35757a);
  font-size: 12px;
  font-weight: 850;
}

.popup-volunteer strong,
.popup-volunteer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popup-volunteer strong {
  font-size: 13px;
}

.popup-volunteer span {
  color: var(--muted);
  font-size: 12px;
}

.popup-light-button,
.primary-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--group-color, #0f4460), #35757a);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15, 68, 96, 0.2);
}

.popup-light-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.leaflet-div-icon.avatar-marker-icon {
  border: 0;
  background: transparent;
}

.village-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  font-size: 13px;
}

.village-avatar::after {
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  background: var(--group-color, #35757a);
  opacity: 0.3;
  content: "";
}

.assignment-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(15, 68, 96, 0.24);
}

.assignment-avatar > span:not([data-mapcol-source]) {
  position: absolute;
  right: -7px;
  bottom: -6px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--group-color, #35757a);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.thanks-dialog {
  width: min(430px, calc(100% - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.thanks-dialog::backdrop {
  background: rgba(15, 35, 42, 0.42);
  backdrop-filter: blur(5px);
}

.thanks-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 34px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 16%, rgba(175, 216, 242, 0.8), transparent 34%),
    radial-gradient(circle at 88% 20%, rgba(182, 219, 171, 0.8), transparent 30%),
    #ffffff;
  box-shadow: 0 26px 70px rgba(15, 35, 42, 0.28);
  text-align: center;
}

.thanks-ribbon {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(
    90deg,
    #90c2e7,
    #0f4460,
    #3d8792,
    #afd8f2,
    #b6dbab,
    #35757a
  );
}

.thanks-avatar {
  width: 86px;
  height: 86px;
  border: 4px solid #fff;
  font-size: 30px;
}

.thanks-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.thanks-card p {
  margin: 0;
  color: #26352f;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
}

.primary-button {
  min-width: 120px;
  padding: 0 18px;
}

.memorial-dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.memorial-dialog::backdrop {
  background: rgba(15, 35, 42, 0.48);
  backdrop-filter: blur(5px);
}

.memorial-dialog-card {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 35, 42, 0.28);
}

.memorial-dialog-card h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

#memorialCanvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
}

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

.memorial-actions button {
  min-height: 38px;
  padding: 0 16px;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .panel {
    max-height: 48vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .view {
    height: 52vh;
  }

  h1 {
    font-size: 22px;
  }

  .map-badge {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .group-copy span {
    white-space: normal;
  }

  body[data-mode="volunteers"] .summary-grid {
    display: none;
  }

  .import-actions,
  .template-actions,
  .volunteer-filter-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-overview-stats {
    grid-template-columns: 1fr;
  }
}

/* 2026 interaction workbench refresh */
:root {
  --bg: #eef2ef;
  --panel: #fbfcfa;
  --ink: #18302a;
  --muted: #6c7c76;
  --line: #dce4df;
  --green: #1e7059;
  --green-dark: #163d35;
  --green-soft: #e6f2ec;
  --amber: #c96f2e;
  --amber-soft: #fff0e4;
  --blue: #315f9c;
  --accent: #28766d;
  --panel-width: 420px;
  --radius-sm: 10px;
  --radius-md: 15px;
  --radius-lg: 22px;
  --shadow: 0 24px 70px rgba(23, 48, 42, 0.16);
  --shadow-soft: 0 10px 30px rgba(23, 48, 42, 0.08);
}

html {
  background: var(--green-dark);
}

body {
  min-width: 320px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(230, 242, 236, 0.9), transparent 34%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.file-button:focus-within {
  outline: 3px solid rgba(30, 112, 89, 0.22);
  outline-offset: 2px;
  border-color: var(--green);
}

button:active {
  transform: translateY(1px);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell {
  min-height: 100svh;
  grid-template-columns: var(--panel-width) minmax(0, 1fr);
}

.panel {
  z-index: 1000;
  height: 100svh;
  gap: 14px;
  padding: 22px 22px 28px;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 252, 250, 0.98)),
    var(--panel);
  box-shadow: 14px 0 46px rgba(23, 48, 42, 0.15);
  scrollbar-color: #bac8c1 transparent;
  scrollbar-width: thin;
}

.panel::-webkit-scrollbar {
  width: 7px;
}

.panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #bac8c1;
  background-clip: padding-box;
}

.mobile-panel-bar,
.open-panel-button,
.panel-backdrop {
  display: none;
}

.brand-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent),
    var(--green-dark);
  color: #e8f7ee;
  box-shadow: 0 10px 20px rgba(22, 61, 53, 0.2);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin-top: 2px;
  color: var(--green-dark);
  font-size: 23px;
  letter-spacing: -0.02em;
}

.title-block {
  gap: 10px;
}

.status-text {
  padding-left: 53px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mode-switch {
  position: sticky;
  top: -22px;
  z-index: 20;
  min-height: 48px;
  padding: 4px;
  border: 1px solid rgba(220, 228, 223, 0.9);
  border-radius: 14px;
  background: rgba(241, 245, 242, 0.92);
  box-shadow: 0 8px 22px rgba(23, 48, 42, 0.07);
  backdrop-filter: blur(14px);
}

.mode-button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mode-button.active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(23, 48, 42, 0.1);
}

.mode-button:hover {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.7);
}

body[data-mode="volunteers"] .summary-grid,
body[data-mode="image"] .personal-control {
  display: none;
}

.summary-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
}

.summary-card {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 62px;
  gap: 9px;
  padding: 10px;
  border-color: #e2e8e4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 18px rgba(23, 48, 42, 0.035);
}

.summary-card-coverage {
  grid-column: 1 / -1;
}

.summary-card-progress {
  position: relative;
  grid-column: 1 / -1;
  grid-template-columns: 30px minmax(0, 1fr);
  overflow: hidden;
  padding-bottom: 16px;
  border-color: rgba(30, 112, 89, 0.22);
  background:
    linear-gradient(135deg, rgba(230, 242, 236, 0.9), rgba(255, 255, 255, 0.86));
}

.summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.summary-icon svg {
  width: 18px;
  height: 18px;
}

.summary-card p {
  font-size: 11px;
}

.summary-card strong {
  font-size: 13px;
}

.progress-track {
  appearance: none;
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  width: auto;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 112, 89, 0.12);
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(30, 112, 89, 0.12);
}

.progress-track::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #61a875);
  transition: width 360ms ease;
}

.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #61a875);
}

.control-group,
.utility-details {
  border: 1px solid #dfe7e2;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 7px 24px rgba(23, 48, 42, 0.045);
}

.control-group {
  gap: 12px;
  padding: 15px;
}

.workflow-card {
  position: relative;
}

.volunteer-card {
  background:
    linear-gradient(135deg, rgba(230, 242, 236, 0.72), rgba(255, 255, 255, 0.92));
}

.section-heading {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.section-heading label,
.memorial-control > div > label {
  display: block;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.step-chip {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(22, 61, 53, 0.16);
}

.profile-row {
  grid-template-columns: 52px minmax(0, 1fr);
}

.avatar-upload {
  position: relative;
  width: 52px;
  height: 52px;
}

.avatar-preview {
  width: 52px;
  height: 52px;
  border-color: #fff;
}

.avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
  border-color: #d7e0db;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

input::placeholder {
  color: #9aa7a2;
}

.group-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.group-option {
  min-height: 54px;
  padding: 8px;
  border-color: #dfe6e2;
  border-radius: 11px;
}

.group-option:hover {
  border-color: var(--group-color);
  background: color-mix(in srgb, var(--group-color) 7%, #fff);
}

.group-option.active {
  background: color-mix(in srgb, var(--group-color) 11%, #fff);
  box-shadow:
    inset 0 0 0 1px var(--group-color),
    0 6px 16px rgba(23, 48, 42, 0.07);
}

.group-copy strong {
  color: var(--green-dark);
}

.group-copy span {
  font-size: 10px;
}

.investigation-control {
  gap: 10px;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid #80918a;
  border-radius: 50%;
  transform: translateY(-56%);
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #80918a;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.subtle-button {
  border-color: #d7e0db;
  color: var(--green);
  background: #f6f9f7;
  font-size: 12px;
  font-weight: 760;
}

.results-meta {
  min-height: 17px;
  color: var(--muted);
  font-size: 11px;
}

.result-list {
  max-height: 300px;
  gap: 7px;
  padding-right: 2px;
}

.result-item {
  min-height: 52px;
  padding: 7px 8px 7px 11px;
  border-color: #e0e7e3;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(23, 48, 42, 0.03);
}

.result-item:hover {
  border-color: color-mix(in srgb, var(--group-color, var(--green)) 55%, #dce4df);
  background: color-mix(in srgb, var(--group-color, var(--green)) 6%, #fff);
}

.result-item.active {
  border-color: var(--group-color, var(--green));
  box-shadow:
    inset 3px 0 0 var(--group-color, var(--green)),
    0 6px 16px rgba(23, 48, 42, 0.08);
}

.result-action {
  min-height: 34px;
  border-radius: 9px;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--group-color, var(--accent)) 22%, transparent);
}

.memorial-control {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(230, 242, 236, 0.92), transparent 50%),
    #fff;
}

.memorial-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12px;
}

.utility-details {
  overflow: hidden;
}

.utility-details summary {
  position: relative;
  display: block;
  padding: 14px 42px 14px 15px;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.utility-details summary::-webkit-details-marker {
  display: none;
}

.utility-details summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #74857e;
  border-bottom: 2px solid #74857e;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

.utility-details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.utility-details[open] summary {
  border-bottom: 1px solid #e4eae6;
}

.utility-content {
  display: grid;
  gap: 12px;
  padding: 14px 15px 16px;
}

.utility-content > label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.layer-options {
  display: grid;
  gap: 4px;
}

.check-row {
  min-height: 34px;
  font-size: 12px;
}

.check-row input {
  accent-color: var(--green);
}

.warning-item {
  padding: 10px 11px;
  border-left: 0;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #70401e;
}

.site-footer {
  padding-bottom: 16px;
}

.workspace,
.view {
  min-height: 100svh;
}

.view {
  height: 100svh;
}

.map-badge {
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 61, 53, 0.86);
  font-size: 11px;
  box-shadow: 0 8px 20px rgba(22, 61, 53, 0.18);
}

.map-toolbar {
  position: absolute;
  top: 60px;
  right: 18px;
  z-index: 500;
  display: grid;
  gap: 7px;
}

.map-toolbar button {
  min-width: 54px;
  min-height: 38px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  box-shadow: 0 7px 18px rgba(22, 61, 53, 0.13);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.map-loading[hidden] {
  display: none;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(30, 112, 89, 0.18);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: mapcol-spin 700ms linear infinite;
}

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

.status-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(22, 61, 53, 0.94);
  color: #fff;
  box-shadow: 0 18px 44px rgba(22, 61, 53, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 13px;
  line-height: 1.45;
}

.status-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.leaflet-control-zoom a {
  color: var(--green-dark);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(22, 61, 53, 0.2);
}

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

.popup-light-button,
.primary-button {
  min-height: 42px;
  border-radius: 10px;
}

.thanks-dialog,
.memorial-dialog {
  border-radius: var(--radius-lg);
}

.thanks-card,
.memorial-dialog-card {
  border-radius: var(--radius-lg);
}

@media (min-width: 861px) and (max-width: 1120px) {
  :root {
    --panel-width: 380px;
  }

  .panel {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 860px) {
  body {
    overflow: hidden;
  }

  .shell {
    display: block;
    min-height: 100svh;
  }

  .workspace,
  .view,
  #map {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  .panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: min(72svh, 680px);
    max-height: none;
    padding: 16px 16px calc(26px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-right: 0;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(251, 252, 250, 0.97);
    box-shadow: 0 -22px 60px rgba(22, 61, 53, 0.24);
    transform: translateY(0);
    transition: transform 260ms cubic-bezier(0.2, 0.78, 0.28, 1);
    overscroll-behavior: contain;
    backdrop-filter: blur(20px);
  }

  body[data-panel="collapsed"] .panel {
    overflow-y: hidden;
    transform: translateY(calc(100% - 156px - env(safe-area-inset-bottom)));
  }

  .mobile-panel-bar {
    position: sticky;
    top: -16px;
    z-index: 40;
    display: grid;
    justify-items: center;
    height: 29px;
    margin: -16px -16px 0;
    padding-top: 7px;
    background: linear-gradient(180deg, rgba(251, 252, 250, 0.99) 76%, transparent);
  }

  .panel-handle {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #c7d1cc;
  }

  .mobile-panel-toggle {
    position: absolute;
    top: 7px;
    right: 14px;
    min-height: 28px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
  }

  .brand-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 23px;
    height: 23px;
  }

  h1 {
    font-size: 19px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .title-block {
    gap: 6px;
  }

  .status-text {
    padding-left: 47px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mode-switch {
    top: 12px;
    flex: 0 0 auto;
    min-height: 45px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card-coverage {
    display: none;
  }

  body[data-mode="volunteers"] .summary-grid {
    display: none;
  }

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

  .memorial-control {
    grid-template-columns: 1fr;
  }

  .memorial-button {
    width: 100%;
  }

  .map-badge {
    top: 14px;
    right: 14px;
    bottom: auto;
  }

  .map-toolbar {
    top: 55px;
    right: 14px;
  }

  .map-toolbar .open-panel-button {
    display: block;
  }

  .leaflet-bottom {
    bottom: calc(164px + env(safe-area-inset-bottom));
    transition: bottom 260ms cubic-bezier(0.2, 0.78, 0.28, 1);
  }

  body[data-panel="expanded"] .leaflet-bottom {
    bottom: calc(72svh + 10px);
  }

  .panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(15, 35, 30, 0.24);
    opacity: 1;
    transition: opacity 220ms ease;
    backdrop-filter: blur(1.5px);
  }

  body[data-panel="collapsed"] .panel-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  .status-toast {
    right: 16px;
    bottom: calc(170px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
  }

  body[data-panel="expanded"] .status-toast {
    bottom: calc(72svh + 12px);
  }

  .reference-frame {
    height: 100svh;
    padding: 78px 16px 174px;
  }

  .reference-frame img {
    max-height: calc(100svh - 280px);
  }

  .thanks-dialog {
    width: min(430px, calc(100% - 24px));
  }

  .memorial-dialog {
    width: calc(100% - 18px);
  }

  .memorial-dialog-card {
    max-height: calc(100svh - 20px);
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .panel {
    height: 76svh;
  }

  body[data-panel="expanded"] .status-toast {
    bottom: calc(76svh + 10px);
  }

  body[data-panel="expanded"] .leaflet-bottom {
    bottom: calc(76svh + 8px);
  }

  .summary-card-location {
    grid-column: 1 / -1;
  }

  .summary-card:not(.summary-card-location):not(.summary-card-progress) {
    display: none;
  }

  .import-actions,
  .template-actions,
  .volunteer-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Basemap library and compact volunteer roster */
.roster-pagination {
  display: grid;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.roster-pagination[hidden] {
  display: none;
}

.roster-page-summary,
.roster-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.roster-page-summary {
  color: #53625c;
  font-size: 11px;
}

.roster-page-summary label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.roster-page-summary select {
  width: auto;
  min-height: 32px;
  padding: 0 28px 0 9px;
  font-size: 11px;
}

.roster-page-actions button {
  flex: 1;
  min-height: 38px;
  border-radius: 9px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
}

.roster-page-actions button:disabled {
  color: #98a49f;
  cursor: not-allowed;
  opacity: 0.58;
}

.basemap-setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.basemap-setting-label label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.basemap-setting-label span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.basemap-description {
  min-height: 32px;
  margin: -2px 0 0;
  color: #53625c;
  font-size: 12px;
  line-height: 1.45;
}

#map {
  background: var(--basemap-solid, #dfe7e3);
}

.map-toolbar .basemap-trigger {
  display: grid;
  min-width: 76px;
  min-height: 48px;
  place-items: center;
  gap: 0;
  padding: 5px 10px;
}

.basemap-trigger span {
  font-size: 11px;
  line-height: 1.1;
}

.basemap-trigger small {
  overflow: hidden;
  max-width: 78px;
  color: var(--green);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basemap-trigger[aria-busy="true"] small::after {
  content: "…";
}

.basemap-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
}

.basemap-dialog::backdrop {
  background: rgba(12, 32, 27, 0.5);
  backdrop-filter: blur(5px);
}

.basemap-dialog-card {
  display: grid;
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #f7f9f7;
  box-shadow: 0 28px 80px rgba(12, 32, 27, 0.32);
}

.basemap-dialog-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.96);
  backdrop-filter: blur(16px);
}

.basemap-dialog-header h2 {
  margin: 3px 0 0;
  color: var(--green-dark);
  font-size: 22px;
}

.basemap-dialog-header p:last-child {
  margin: 6px 0 0;
  color: #53625c;
  font-size: 12px;
  line-height: 1.45;
}

.dialog-close-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--green-dark);
  background: #fff;
  font-size: 25px;
  line-height: 1;
}

.basemap-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 18px 22px;
}

.basemap-choice-group {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.basemap-choice-group legend {
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.basemap-choice-grid {
  display: grid;
  gap: 7px;
}

.basemap-choice {
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid #dce4df;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.basemap-choice:hover {
  border-color: #a6bdb3;
  background: #fbfdfc;
}

.basemap-choice.active {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.basemap-choice input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.basemap-choice-swatch {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(22, 61, 53, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(140deg, transparent 44%, rgba(30, 112, 89, 0.6) 45% 52%, transparent 53%),
    linear-gradient(18deg, #dfeee5 44%, #b9d8c8 45% 58%, #eef3e6 59%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.44);
}

.basemap-choice[data-tone="dark"] .basemap-choice-swatch {
  background:
    linear-gradient(140deg, transparent 44%, rgba(119, 204, 178, 0.76) 45% 52%, transparent 53%),
    linear-gradient(18deg, #172723 44%, #294840 45% 58%, #101b18 59%);
}

.basemap-choice[data-tone="imagery"] .basemap-choice-swatch {
  background:
    radial-gradient(circle at 68% 26%, rgba(222, 219, 145, 0.85), transparent 18%),
    linear-gradient(140deg, #395b43 0 38%, #947b4e 39% 54%, #326052 55% 74%, #214a65 75%);
}

.basemap-choice-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.basemap-choice-copy strong,
.basemap-choice-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.basemap-choice-copy strong {
  color: var(--green-dark);
  font-size: 13px;
  white-space: nowrap;
}

.basemap-choice-copy small {
  display: -webkit-box;
  color: #53625c;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.basemap-dialog-status {
  position: sticky;
  bottom: 0;
  min-height: 42px;
  margin: 0;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 247, 0.96);
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(16px);
}

@media (max-width: 680px) {
  .basemap-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 88svh;
    margin: 0;
    border-radius: 22px 22px 0 0;
  }

  .basemap-dialog-card {
    max-height: 88svh;
    border-radius: 22px 22px 0 0;
  }

  .basemap-dialog-header {
    padding: 17px 16px 13px;
  }

  .basemap-dialog-header h2 {
    font-size: 20px;
  }

  .basemap-choices {
    grid-template-columns: 1fr;
    padding: 15px 16px;
  }

  .basemap-dialog-status {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Persistent demo notice stays separate from changing data status. */
.demo-banner { margin: 0 0 16px; padding: 14px; border: 1px solid #dec996; border-radius: 12px; background: #fff8e5; color: #624815; }
.demo-banner strong { font-size: 14px; }
.demo-banner p { margin: 8px 0 12px; font-size: 12px; line-height: 1.6; }
.demo-banner button { padding: 7px 12px; border: 1px solid #b99c61; border-radius: 7px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.demo-banner button:disabled { opacity: .5; cursor: wait; }

.mapcol-language-switch { grid-column: 2; justify-self: end; width: max-content; white-space: nowrap; }
