/* Compact community workshop, using the same mineral palette as the physical model. */
:root {
  color-scheme: light;
  --bg: #edf3f0;
  --panel: #f8faf8;
  --panel2: #e8f0ed;
  --scene: #dce9e6;
  --line: #cad8d2;
  --subline: #dbe5df;
  --ink: #263c43;
  --dim: #536b70;
  --muted: #637b7f;
  --blue: #3d6d89;
  --mint: #2e7664;
  --amber: #986829;
  --lilac: #7c668d;
  --font: Helvetica, sans-serif;
}
body {
  background: var(--bg);
  padding: 0 20px 6px;
}
main,
.topbar {
  max-width: 1740px;
}
.topbar {
  padding: 0;
  min-height: 49px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.9px;
}
.brand img {
  width: 24px;
  height: 24px;
}
.brand span {
  color: var(--mint);
}
.partners {
  gap: 9px;
}
.partners img {
  height: 16px;
  width: 28px;
}
.views {
  gap: 10px;
  align-self: stretch;
  align-items: stretch;
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: none;
}
.views button,
.views button[aria-pressed='true'] {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 8px;
  color: var(--dim);
  font-size: 12px;
}
.views button[aria-pressed='true'] {
  border-color: var(--mint);
  color: var(--ink);
}
.top-actions button,
.case-actions button,
.placement-select {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 3px;
  background: var(--panel);
  border-color: var(--line);
}
.top-actions .icon-btn {
  width: 28px;
  height: 28px;
  padding: 4px;
}
.top-actions .primary {
  background: #cfe5da;
  border-color: #cfe5da;
  color: #193732;
}
main {
  gap: 9px;
}
.casehead {
  padding: 11px 0 2px;
  gap: 8px;
}
.case-title .kicker,
.tray-title .kicker,
.feed-heading .kicker,
.minor-title,
.question-nav > span,
.sample-stamp,
.map-signature,
.siting-cell > span {
  font:
    600 10px/1.25 Helvetica,
    sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.case-title .kicker {
  color: var(--dim);
}
.case-title h1 {
  font: 500 clamp(22px, 2vw, 29px)/1.2 var(--font);
  letter-spacing: -0.7px;
  margin: 3px 0 0;
}
.workbench,
.sent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(255px, 23vw, 355px);
  gap: 0;
  min-height: 385px;
  height: clamp(395px, calc(100svh - 267px), 830px);
  max-height: none;
  border: 1px solid var(--line);
}
.stage,
.analysis,
.design-tray {
  border-radius: 0;
  box-shadow: none;
}
.stage {
  border: 0;
  background: var(--scene);
  isolation: isolate;
}
.stage-top,
.stage-bottom {
  left: 12px;
  right: 12px;
}
.stage-top {
  top: 12px;
}
.stage-bottom {
  bottom: 10px;
}
.cam-modes,
.stage-tools,
.zoom,
.stage-top #layers {
  border-radius: 3px;
  box-shadow: 0 1px 3px #122b2b1a;
  border: 1px solid #adc2b7;
  background: #f8faf8f5;
  backdrop-filter: none;
}
.stage .stage-top button,
.stage .stage-bottom button {
  border-radius: 2px;
  color: #253e3d;
  min-height: 24px;
  font-weight: 600;
  font-size: 11px;
  background: transparent;
  backdrop-filter: none;
}
.stage-top .cam-modes button[aria-pressed='true'],
.stage-tools button[aria-pressed='true'] {
  background: #244043;
  color: #fff;
  border-color: #244043;
}
.stage-tools button + button,
.zoom button + button {
  border-left: 1px solid #b3c3be;
}
.stage-top #layers {
  background: #f8faf8f5;
}
.stage-bottom .zoom button {
  font-size: 16px;
}
.stage-bottom .gesture-hint {
  position: static;
  background: #edf3f0de;
  color: #1f3633;
  font-size: 10px;
}
.question-card {
  position: absolute;
  z-index: 610;
  left: 14px;
  bottom: 54px;
  width: clamp(175px, 24%, 269px);
  background: #f8faf8f5;
  border: 1px solid #bdcfc6;
  padding: 9px 11px;
  color: #213232;
  box-shadow: 0 2px 8px #48695c10;
  pointer-events: auto;
}
.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.question-nav > span {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #41615b;
}
.question-nav > div {
  display: flex;
  gap: 3px;
}
.question-nav button {
  background: none;
  color: #263e38;
  border: 1px solid #9aaea6;
  font-size: 17px;
  width: 28px;
  height: 26px;
  padding: 0;
  border-radius: 2px;
}
.question-card h2 {
  font: 500 clamp(15px, 1.25vw, 18px)/1.2 var(--font);
  letter-spacing: -0.3px;
  margin: 5px 0 4px;
}
.question-card p {
  font-size: 11px;
  line-height: 1.32;
  color: #43554d;
  margin: 0;
}
.stage:has(#modebar:not([hidden])) .question-card,
.stage:has(.ds-dragging) .question-card {
  visibility: hidden;
}
.design-tray {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  background: var(--panel);
  border: 0;
  border-left: 1px solid var(--line);
  padding: clamp(11px, 1.15vw, 18px);
  overflow: auto;
  min-height: 0;
}
.tray-title {
  display: block;
  margin: 0 0 10px;
  min-width: 0;
}
.tray-title .kicker,
.feed-heading .kicker {
  display: block;
  color: var(--dim);
}
.tray-title h2,
.feed-heading h2 {
  font: 500 clamp(18px, 1.5vw, 23px)/1.18 var(--font);
  margin: 5px 0;
  letter-spacing: -0.45px;
}
.tray-title > span:last-child {
  font-size: 11px;
  color: var(--dim);
  margin: 0;
}
.design-choices {
  display: flex;
  flex-flow: column;
  gap: 5px;
}
.design-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(65px, 31%) 1fr 10px;
  align-items: center;
  min-height: 65px;
  padding: 5px 8px 5px 3px;
  gap: 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
}
.design-card[aria-pressed='true'] {
  background: #deece5;
  border-color: #7ea99a;
  box-shadow: inset 3px 0 #528b77;
}
.design-card img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}
.design-card strong {
  font:
    600 13px/1.15 Helvetica,
    sans-serif;
  letter-spacing: 0;
}
.design-card small {
  font-size: 11px;
  margin-top: 4px;
  color: var(--dim);
}
.design-card > .radio {
  position: static;
  width: 10px;
  height: 10px;
}
.resources {
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: block;
}
.resources .minor-title {
  max-width: none;
  color: var(--dim);
}
.resource-grid,
.resource-grid > div {
  display: block;
}
.resource-grid {
  margin-top: 8px;
}
.resource-grid > div,
.resource-grid > div + div {
  position: relative;
  padding: 2px 0 6px 0;
  border: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 7px;
  background: linear-gradient(to right, #6e9daf var(--electricity), var(--subline) 0) left bottom/100% 3px
    no-repeat;
}
.resource-grid > div + div {
  background: linear-gradient(to right, #76a490 var(--water-demand), var(--subline) 0) left bottom/100% 3px
    no-repeat;
}
.resource-grid span {
  display: block;
  font-size: 11px;
  flex: 1;
}
.resource-grid b {
  font-size: 16px;
}
.design-tray > .evidence-link {
  width: 100%;
  margin-top: auto;
  border-color: var(--line);
  min-height: 26px;
}
.analysis {
  display: grid;
  grid-template-columns: minmax(95px, 0.48fr) minmax(0, 3fr) minmax(120px, 0.72fr);
  align-items: stretch;
  padding: 12px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
}
.analysis-head {
  border: 0;
  padding: 1px 10px 1px 0;
  display: block;
}
.analysis-head > div {
  font-size: 14px;
  letter-spacing: 0;
}
.analysis-head > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 6px 0;
}
.analysis-head .icon-btn {
  width: 18px;
  height: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.analysis-metric {
  padding: 0 clamp(8px, 1.3vw, 24px);
  border: 0;
  border-left: 1px solid var(--line);
  display: block;
}
.metric-name {
  font-size: 12px;
  min-height: 0;
}
.metric-name .ico {
  width: 14px;
  height: 14px;
}
.metric-line {
  display: flex;
  margin: 4px 0 3px;
}
.metric-line strong {
  font-size: 24px;
  letter-spacing: -0.8px;
}
.metric-caption,
.receiver select,
.change {
  font-size: 10px;
}
.change {
  min-height: 0;
}
.meter {
  margin: 4px 0;
  height: 2px;
}
.siting-cell {
  padding: 2px 12px;
  border-left: 1px solid var(--line);
}
.siting-cell > span {
  font-size: 9px;
  color: var(--dim);
}
#siting-check {
  display: flex;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--mint);
  font-size: 12px;
}
#siting-check::before {
  content: '●';
  font-size: 9px;
  margin-top: 2px;
}
#siting-check[data-status='conflict'] {
  color: #a44838;
}
#siting-check[data-status='review'] {
  color: var(--amber);
}
footer {
  margin: 0;
}
dialog,
.dialog-head,
.popover {
  border-radius: 3px;
  background: var(--panel);
}
.dialog-head {
  border-bottom: 1px solid var(--line);
}
.sent-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 8px;
}
.sample-stamp {
  font-size: 10px;
  color: #102c27;
  background: #e0ebdc;
  padding: 5px 7px;
}
.sent-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim);
}
.sent-filters select,
.sent-filters button,
.feed-sub button,
.thread-text button {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 2px;
}
.sent-filters > button {
  margin-left: auto;
}
.sent-layout {
  height: clamp(420px, calc(100svh - 217px), 880px);
}
.sent-figure {
  position: relative;
  isolation: isolate;
  background: var(--scene);
  min-width: 0;
}
.sent-figure .leaflet-container {
  height: 100%;
  width: 100%;
  background: var(--scene);
  isolation: isolate;
}
.map-signature,
.sent-map-tools,
.map-key,
.sent-note-prompt {
  position: absolute;
  z-index: 620;
}
.map-signature {
  left: 12px;
  top: 12px;
  background: #f8faf8f2;
  color: #1c3836;
  border: 1px solid var(--line);
  padding: 6px 8px;
  pointer-events: none;
}
.map-signature span {
  font-weight: 400;
  letter-spacing: 0.25px;
}
.sent-map-tools {
  top: 12px;
  right: 12px;
  display: flex;
}
.sent-map-tools button {
  color: #1a3832;
  background: #f8faf8f2;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 17px;
  line-height: 1;
  width: 28px;
  height: 27px;
  padding: 0;
}
.sent-map-tools button + button {
  border-left: 0;
}
.sent-note-prompt {
  top: 48px;
  left: 10px;
  padding: 8px;
  background: #253e3d;
  color: #fff;
}
.pinning {
  cursor: crosshair;
}
.map-key {
  left: 12px;
  bottom: 12px;
  padding: 9px 11px;
  background: #f8faf8f5;
  color: #203c36;
  border: 1px solid #b8ccc2;
}
.map-key > strong {
  font: normal 16px var(--font);
}
.map-key small {
  display: block;
  font-size: 10px;
  color: #49605b;
}
.stance-buttons,
.feed-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.stance-buttons {
  margin: 4px 0;
}
.stance-key {
  padding: 3px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #263b32;
  font-weight: 600;
  font-size: 11px;
  gap: 4px;
}
.stance-key:hover,
.stance-key[aria-pressed='true'] {
  background: #e1eee6;
  color: #142a25;
  border-color: #8b9c94;
}
.stance-key i,
.thread summary i {
  width: 8px;
  height: 8px;
  background: var(--stance);
  display: inline-block;
  border-radius: 50%;
}
.zone-target,
.zone-target:hover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.zone-ring {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 2px solid #f8faf8;
  border-radius: 50%;
  box-shadow: 0 1px 5px #29473d55;
}
.zone-ring b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f8faf8;
  color: #233d36;
  font: 600 13px Helvetica;
}
.zone-target.selected .zone-ring {
  outline: 2px solid #193f39;
  outline-offset: 2px;
}
.zone-name {
  position: absolute;
  top: 100%;
  margin-top: 2px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  background: #f8faf8f0;
  color: #263e39;
  font: 600 11px/1.15 Helvetica;
  padding: 3px 5px;
  white-space: nowrap;
}
.actual-note {
  border: 1px solid #5d7770;
  color: #fff;
  background: #274d48;
  text-align: center;
  border-radius: 3px;
  font-size: 16px;
}
.sent-feed {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-left: 1px solid var(--line);
}
.feed-heading {
  padding: 14px 13px 10px;
  border-bottom: 1px solid var(--line);
}
.feed-sub {
  font-size: 11px;
  color: var(--dim);
}
.feed-sub b {
  color: var(--ink);
}
.feed-rows {
  overflow: auto;
  scrollbar-width: thin;
  padding: 0 13px 14px;
}
.thread {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.thread summary {
  list-style: none;
  position: relative;
  padding-right: 15px;
}
.thread summary::-webkit-details-marker {
  display: none;
}
.thread summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 15px;
  color: var(--mint);
}
.thread[open] summary::after {
  content: '−';
}
.thread summary strong {
  display: block;
  font: 500 15px/1.3 var(--font);
  margin: 5px 0;
}
.thread summary small,
.thread summary span,
.thread-text small {
  font-size: 10px;
  color: var(--dim);
}
.thread summary small i {
  margin-right: 4px;
  box-shadow: 0 0 0 1px #ffffff75;
}
.thread summary b {
  padding: 0 1px;
}
.thread-text {
  font-size: 13px;
  line-height: 1.47;
  margin-top: 9px;
}
.thread-text p {
  margin: 5px 0 8px;
}
.thread-text blockquote {
  margin: 7px 0 7px 5px;
  padding: 1px 8px;
  border-left: 2px solid #88a9a1;
}
.thread-text blockquote small {
  display: block;
}
.sent-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: var(--dim);
  font-size: 10px;
}
@media (max-width: 920px) and (min-width: 701px) {
  body {
    padding-inline: 10px;
  }
  .workbench,
  .sent-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
  }
  .design-card {
    min-height: 53px;
  }
  .design-card img {
    height: 42px;
  }
  .gesture-hint {
    display: none;
  }
  .analysis {
    grid-template-columns: 92px minmax(0, 1fr) 114px;
  }
  .metric-line {
    flex-wrap: wrap;
    gap: 2px;
  }
  .zone-name {
    max-width: 98px;
    white-space: normal;
  }
  .question-card {
    width: 172px;
  }
}
@media (max-width: 700px) {
  body {
    padding: 0 8px;
  }
  .topbar {
    min-height: 42px;
  }
  .workbench,
  .sent-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .casehead {
    padding-top: 7px;
    flex-wrap: wrap;
  }
  .case-title h1 {
    font-size: 23px;
  }
  .case-actions {
    width: auto;
  }
  .workbench .stage {
    height: clamp(355px, 57svh, 510px);
    border: 0;
    border-radius: 0;
  }
  .question-card {
    left: 7px;
    bottom: 44px;
    width: 158px;
    padding: 6px 8px;
  }
  .question-card p {
    font-size: 10px;
  }
  .question-card h2 {
    font-size: 15px;
  }
  .stage-bottom .gesture-hint {
    display: none;
  }
  .stage-top,
  .stage-bottom {
    left: 7px;
    right: 7px;
  }
  .cam-modes button {
    padding: 3px 5px;
  }
  .design-tray {
    padding: 8px 9px;
    border: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .tray-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 5px;
  }
  .tray-title h2 {
    font-size: 18px;
    margin: 0;
  }
  .tray-title .kicker {
    display: none;
  }
  .tray-title > span:last-child {
    font-size: 10px;
  }
  .design-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .design-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 0;
    padding: 4px 6px;
  }
  .design-card img {
    width: 62px;
    height: 36px;
  }
  .design-card strong {
    font-size: 12px;
  }
  .design-card small {
    font-size: 10px;
    margin-top: 2px;
  }
  .design-card > .radio {
    position: absolute;
    right: 6px;
    top: 7px;
  }
  .design-card[aria-pressed='true'] {
    box-shadow: inset 2px 0 #528b77;
  }
  .resources {
    margin: 6px 0 0;
    padding: 5px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .resources .minor-title {
    max-width: 85px;
    font-size: 9px;
  }
  .resource-grid {
    display: flex;
    gap: 10px;
    margin: 0;
    flex: 1;
  }
  .resource-grid > div,
  .resource-grid > div + div {
    display: block;
    flex: 1;
    white-space: nowrap;
    margin: 0;
  }
  .resource-grid span {
    font-size: 10px;
  }
  .resource-grid b {
    font-size: 14px;
  }
  .design-tray > .evidence-link {
    font-size: 10px;
    margin-top: 6px;
  }
  .analysis {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px 0;
    gap: 7px;
  }
  .analysis-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .analysis-head > small {
    margin: 0;
  }
  .analysis-head .icon-btn {
    margin-left: auto;
  }
  .analysis-metric {
    padding: 0 6px;
  }
  .analysis-metric:first-child {
    border: 0;
    padding-left: 0;
  }
  .metric-line {
    display: block;
  }
  .metric-line strong {
    font-size: 20px;
  }
  .change {
    display: block;
  }
  .metric-name {
    font-size: 11px;
    min-height: 28px;
  }
  .siting-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 3px 0 0;
    border-top: 1px solid var(--line);
  }
  .sent-filters {
    gap: 5px;
  }
  .sent-filters label {
    font-size: 10px;
  }
  .sent-filters select {
    max-width: 124px;
  }
  .sent-filters > button {
    margin: 0;
  }
  .sent-figure {
    height: 49svh;
    min-height: 325px;
  }
  .map-key {
    padding: 5px 7px;
    bottom: 7px;
    left: 7px;
  }
  .map-key > strong {
    font-size: 13px;
  }
  .zone-ring {
    width: 30px;
    height: 30px;
  }
  .zone-ring b {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .zone-name {
    font-size: 9px;
    white-space: normal;
    width: max-content;
    max-width: 85px;
    text-align: center;
  }
  .zone-park .zone-name {
    top: auto;
    bottom: 100%;
  }
  .sent-feed {
    border: 0;
    border-top: 1px solid var(--line);
    max-height: 420px;
  }
  .sent-foot {
    flex-wrap: wrap;
    gap: 2px;
  }
  .feed-heading {
    padding: 9px 12px;
  }
  .feed-heading h2 {
    font-size: 21px;
  }
  .thread {
    padding: 8px 0;
  }
  .map-signature {
    font-size: 8px;
  }
  .sent-filters label {
    display: grid;
    gap: 1px;
  }
  .sample-stamp {
    font-size: 9px;
  }
}
@media (max-width: 490px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 5px 0 0;
    gap: 1px;
  }
  .views {
    margin: 0;
    width: 100%;
    height: 32px;
  }
  .views button {
    padding: 2px 8px;
  }
  .top-actions .icon-btn {
    width: 25px;
    height: 25px;
  }
  .case-actions {
    width: 100%;
  }
  .case-actions button,
  .case-actions select {
    font-size: 11px;
  }
  .sent-filters .sample-stamp {
    width: fit-content;
  }
  .sent-foot span:last-child {
    display: none;
  }
}
@media (min-width: 701px) and (max-height: 750px) {
  .resources {
    margin-top: 8px;
    padding: 7px 0;
  }
  .design-card {
    min-height: 52px;
  }
  .design-card img {
    height: 41px;
  }
  .tray-title {
    margin-bottom: 6px;
  }
  .workbench {
    height: max(370px, calc(100svh - 238px));
    min-height: 365px;
  }
  .analysis {
    padding: 6px 0;
  }
}
.design-detail {
  margin-top: 12px;
  padding: 9px 0 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 13px/1.5 var(--font);
}
.design-choices {
  flex: 0 0 auto;
}
.design-detail:empty {
  display: none;
}
.resources {
  margin-top: auto;
}
@media (max-width: 700px) {
  .design-detail {
    font-size: 12px;
    padding-top: 6px;
    margin-top: 6px;
  }
  .resources {
    margin-top: 6px;
  }
}
.finding-note {
  border-left: 3px solid #d28b5d;
  padding: 5px 8px;
  color: #89532b;
}

/* All control states, dialogs, and map chrome use the workshop palette. */
body { background: var(--bg); }
button:hover, select:hover { background-color: var(--panel2); border-color: #9ab8aa; }
.top-actions .primary:hover { background: #bedbce; }
.partners { border-color: var(--line); }
.placement-select select, .receiver select { color: var(--ink); }
.placement-select select option, select option { background: var(--panel); color: var(--ink); }
.stage .popover { color: var(--ink); background: var(--panel); border-color: var(--line); }
.stage #modebar { color: var(--ink); background: #f8faf8f5; border-color: var(--line); }
#loading { background: var(--scene); color: var(--dim); }
.analysis, .design-tray, .sent-feed { background: var(--panel); }
.analysis-head { padding-left: 12px; }
.analysis-metric { --tone: var(--blue); }
.analysis-metric.sound { --tone: var(--lilac); }
.analysis-metric.water { --tone: var(--blue); }
.analysis-metric.parcel { --tone: var(--amber); }
.metric-name { color: var(--ink); }
.metric-name:hover { background: none; color: var(--mint); }
.metric-line strong { color: var(--tone); font-variant-numeric: tabular-nums; }
.meter { background: var(--subline); }
.meter b { background: #6b8077; }
.change { color: var(--dim); }
.change.changed { color: var(--tone); }
.design-card:hover { background: #edf4ef; }
.design-card .radio { border-color: #a2b9af; background: transparent; }
.design-card[aria-pressed='true'] .radio { border-color: #4a8975; background: var(--panel); }
.design-card[aria-pressed='true']:hover { background: #d6e8de; }
.design-tray > .evidence-link { color: var(--dim); }
.resources[data-water-unknown='true'] .resource-grid > div + div {
  background: repeating-linear-gradient(120deg, #b8cbc2 0 3px, var(--subline) 3px 7px) left bottom/100% 3px no-repeat;
}
.resource-grid b { font-variant-numeric: tabular-nums; }
.dialog-head { background: var(--panel); }
.dialog-head h2 { font-weight: 500; }
dialog { background: var(--panel); box-shadow: 0 24px 90px #223e4233; }
dialog::backdrop { background: #263c4366; backdrop-filter: blur(3px); }
.field input, .field textarea, .field select { background: #fff; color: var(--ink); border-color: var(--line); }
#toast { background: #2e5c54; color: #fff; border-color: #2e5c54; }
.pulse, #local-status b { background: #528c72; box-shadow: none; }
.finding-note { background: #f9eee0; color: #89532b; }
.leaflet-container, .leaflet-container * { font-family: var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: var(--ink); background: var(--panel); }
.leaflet-container a.leaflet-popup-close-button { color: var(--dim); }
.leaflet-control-scale-line { color: var(--dim); background: #f8faf8dd; border-color: var(--dim); }
.leaflet-container .leaflet-control-attribution { background: #f8faf8dd; color: var(--dim); }
.leaflet-control-attribution a { color: var(--blue); }
.sent-map-tools button:hover { background: #e6f0e9; }
.map-key { border-radius: 3px; }
.map-key > strong { font-weight: 500; font-size: 14px; }
.proposal-map-label { color: var(--ink); background: #f8faf8ef; border: 1px dashed #769c8b; padding: 3px 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }

.primary { background: #cfe5da; border-color: #aacbbb; color: #244a3f; }
.primary:hover { background: #bedbce; }
.stage-tools button[aria-pressed='true'], .cam-modes button[aria-pressed='true'] { box-shadow: none; }
.scope-map .scope-leaflet-popup .leaflet-popup-content-wrapper, .scope-map .scope-leaflet-popup .leaflet-popup-tip { background: var(--panel); color: var(--ink); }

.proposal-map-label::before { content: ''; position: absolute; bottom: 100%; left: 50%; height: 24px; border-left: 1px dashed #497f6d; }
@media (max-width: 700px) {
  .question-card { width: 190px; }
  .question-nav > span { white-space: nowrap; letter-spacing: .6px; }
  .zone-park .zone-name { left: 100%; top: 50%; bottom: auto; transform: translate(5px, -50%); margin-top: 0; width: 86px; }
}

/* Fixed overhead plan and geographical discussion maps. */
.stage-top .aerial-modes { position: absolute; top: 38px; right: 0; background: var(--panel); color: var(--ink); border: 1px solid #adc2b7; border-radius: 3px; padding: 4px 6px; }
.aerial-modes select { color: var(--ink); font-size: 11px; background: transparent; border: 0; }
.basemap-status { position: absolute; z-index: 450; top: 48px; left: 50%; transform: translateX(-50%); padding: 6px 10px; background: #f8faf8ed; border: 1px solid var(--line); border-radius: 3px; color: var(--dim); font-size: 12px; pointer-events: none; }
.scope-map[data-base='map'] .leaflet-tile-pane, #discussion-map[data-base='map'] .leaflet-tile-pane { filter: saturate(.18) brightness(1.03); }
.scope-map[data-base='satellite'] .leaflet-tile-pane, #discussion-map[data-base='satellite'] .leaflet-tile-pane { filter: saturate(.7); }
.scope-map .plan-building { position: absolute; left: 50%; top: 50%; width: var(--plan-width); height: var(--plan-height); max-width: none; transform: translate(-50%, -50%) rotate(var(--roof-angle)); transform-origin: center; pointer-events: none; filter: drop-shadow(1px 2px 2px #172b2955); }
.scope-map .scope-drag-handle svg { top: 19px; left: 26px; width: 17px; height: 17px; border-radius: 2px; background: #f8faf8ee; border-color: #477c6b; color: #2e7664; padding: 2px; }
.scope-map .scope-drag-handle { touch-action: none; }
.scope-map .leaflet-control-scale { margin-bottom: 9px; margin-left: 12px; }
.sent-display { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sent-display button { border: 0; border-radius: 0; padding: 5px 7px; background: var(--panel); }
.sent-display button[aria-pressed='true'] { background: #d4e7dd; color: #245c4b; }
.sent-display button + button { border-left: 1px solid var(--line); }
.sent-map-tools select { margin-right: 5px; border: 1px solid var(--line); background: #f8faf8f5; color: var(--ink); border-radius: 3px; font-size: 11px; padding: 3px 5px; }
.sentiment-heat { pointer-events: none; }
.sent-figure .leaflet-control-attribution { max-width: calc(100% - 20px); font-size: 10px; background: #f8faf8ed; }
.sent-figure .leaflet-control-scale { margin-bottom: 8px; }
.sent-breakdown { margin: 10px 0 0; }
.sent-stack { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--subline); }
.sent-stack i { height: 100%; }
.sent-totals { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 7px; }
.sent-totals button { display: block; text-align: left; padding: 3px 0; background: transparent; border: 0; }
.sent-totals button b { display: block; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sent-totals button span { display: block; font-size: 10px; font-weight: 400; color: var(--dim); margin-top: 3px; }
.sent-totals button[aria-pressed='true'] { box-shadow: inset 0 -2px #709a87; }
.heat-key { margin-top: 3px; }
@media (max-width:700px) {
  .sent-display { order: 1; }
  .sent-filters > button { margin-left: auto; }
  .sent-map-tools { top: 45px; right: 7px; }
  .sent-layout .map-key { bottom: 24px; }
  .sent-totals { max-width: 290px; }
  .sent-breakdown { max-width: 340px; }
}

.proposal-map-label { width: 18px; height: 18px; padding: 0; font-size: 19px; line-height: 15px; text-align: center; border: 1px solid #527d6c; border-radius: 2px; color: #2b6754; background: #f8faf8ed; }
.proposal-map-label::before { display: none; }
.proposal-key { padding-top: 3px; color: #2b6754; }
.scope-map .leaflet-tile { width: 257px !important; height: 257px !important; }

@media (max-width:700px) { .sent-figure { height:55svh; min-height:390px; } }

/* The map is already styled: keep its labels and land-cover colors intact. */
.scope-map[data-base='map'] .leaflet-tile-pane, #discussion-map[data-base='map'] .leaflet-tile-pane { filter:none; }
.scope-map .maplibregl-canvas, #discussion-map .maplibregl-canvas { outline:none; }
.siting-context { display:none; position:absolute; left:14px; bottom:72px; z-index:790; width:270px; padding:11px 12px; border:1px solid #b9cbc2; border-radius:3px; background:#f5f9f5f5; box-shadow:0 2px 9px #25483e10; }
.stage[data-camera='district'] .siting-context, .stage[data-camera='plan'] .siting-context { display:block; }
.stage[data-camera='district'] #question-card { display:none; }
.context-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.context-heading strong { font-size:13px; font-weight:600; }
.context-heading button { padding:0; border:0; background:none; color:var(--dim); min-width:22px; min-height:22px; font-size:16px; }
.context-key { display:grid; grid-template-columns:1fr 1fr; gap:6px 9px; font-size:10px; line-height:1.3; color:#415650; }
.context-key span { display:flex; align-items:center; gap:5px; }
.context-key span::before { content:''; display:inline-block; width:9px; height:9px; flex-shrink:0; background:var(--key); opacity:.8; border-radius:2px; }
#context-finding { margin:10px 0 7px; padding-top:8px; border-top:1px solid #d6e1da; font-size:12px; line-height:1.35; font-weight:500; color:#366755; }
#context-finding[data-status='review'] { color:#896019; }
#context-finding[data-status='conflict'] { color:#ac3e31; }
#context-distances { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:10px; color:var(--dim); }
#context-distances b { color:var(--ink); font-weight:500; font-variant-numeric:tabular-nums; }
#environment-status { display:block; font-size:9px; line-height:1.3; color:#65786f; margin-top:8px; }
#environment-status[data-state='unavailable'] { color:#93672c; }
.scope-drag-handle[data-status='conflict'] .scope-footprint-label { background:#ac4235; border-color:#ac4235; color:white; }
.scope-drag-handle[data-status='review'] .scope-footprint-label { background:#8a622c; border-color:#8a622c; color:white; }
.scope-map .scope-footprint-label { max-width:245px; white-space:normal; text-align:center; font-size:11px; line-height:1.25; }
.scope-drag-handle[data-status='conflict'] .plan-building { filter:drop-shadow(2px 0 0 #bc4c3b) drop-shadow(-2px 0 0 #bc4c3b) drop-shadow(0 2px 0 #bc4c3b); }
.scope-drag-handle[data-status='review'] .plan-building { filter:drop-shadow(2px 0 0 #b38b45) drop-shadow(-2px 0 0 #b38b45) drop-shadow(0 2px 0 #b38b45); }
.constraint-tooltip { font-family:Helvetica,sans-serif; font-size:11px; color:#344c43; border:1px solid #b4c9be; border-radius:2px; background:#f7faf6f5; box-shadow:0 2px 8px #19362e16; }
.ds-scene-tag.restriction { background:#f8eeeb; border-color:#d4a59c; color:#8f4b40; }
.ds-scene-tag.environment { background:#edf6ee; border-color:#a4c4b2; color:#416a53; }
@media(max-width:700px) {
 .siting-context { left:9px; bottom:66px; width:204px; padding:8px 9px; }
 .context-heading { margin-bottom:5px; }
 .context-key { gap:4px; font-size:9px; }
 #context-finding { margin:6px 0; padding-top:6px; font-size:11px; }
 #context-distances { font-size:9px; }
 #environment-status { font-size:8px; margin-top:5px; }
}
.scope-map .scope-footprint-label { width:max-content; max-width:220px; }
#retry-environment { border:0; padding:0; margin-top:5px; background:none; color:#886225; font-size:10px; text-decoration:underline; }
@media(min-width:701px) and (max-width:1120px) { .sent-filters { gap:7px; } .sent-filters select { max-width:105px; } .sent-filters label { gap:4px; } }
.scope-map[data-base='satellite'] .leaflet-tile-pane, #discussion-map[data-base='satellite'] .leaflet-tile-pane { filter:none; }
.scope-map .leaflet-tile, #discussion-map .leaflet-tile { image-rendering:auto !important; }
/* Tile overlap fills subpixel gaps; normal composition avoids bright seams. */
.scope-map .leaflet-tile, #discussion-map .leaflet-tile { mix-blend-mode:normal !important; }
.ds-scene-tag.facility.conflict[data-status='review'] { background:#8a622c; border-color:#8a622c; color:#fff; }
@media(max-width:700px) {
 .workbench .stage[data-camera='plan'], .workbench .stage[data-camera='district'] { --context-height:154px; height:calc(clamp(355px,57svh,510px) + var(--context-height)); }
 .stage[data-camera='plan'] #map, .stage[data-camera='district'] #scene { bottom:var(--context-height); }
 .stage[data-camera='plan'] .siting-context, .stage[data-camera='district'] .siting-context { left:0; bottom:0; width:100%; height:var(--context-height); border:0; border-top:1px solid var(--line); border-radius:0; padding:9px 12px; box-shadow:none; background:var(--panel); }
 .stage[data-camera='plan'] .stage-bottom { bottom:calc(var(--context-height) + 28px); }
 .stage[data-camera='district'] .stage-bottom { bottom:calc(var(--context-height) + 10px); }
 .siting-context .context-key { grid-template-columns:1fr 1fr; font-size:10px; }
 .siting-context #context-finding { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
 .siting-context #context-distances { font-size:10px; }
 .siting-context #environment-status { font-size:9px; }
}
@media(max-width:700px) {
 #stage[data-camera='plan'] .stage-bottom { bottom:calc(var(--context-height) + 28px) !important; }
 #stage[data-camera='district'] .stage-bottom { bottom:calc(var(--context-height) + 10px) !important; }
}
