:root {
  --page: #f6f7f4;
  --surface: #fff;
  --ink: #20352f;
  --muted: #66736c;
  --line: #dce3dc;
  --green: #155e4d;
  --soft: #eaf2eb;
  --amber: #a66716;
  --red: #a34539;
  --sans: Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 13px/1.5 var(--sans);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 8px 12px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
button:hover {
  background: var(--soft);
  border-color: #c0cfc3;
}
button:active {
  transform: scale(0.96);
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 10px;
  min-width: 0;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 6px;
}
p {
  margin: 0 0 12px;
}
h1,
h2,
h3 {
  margin: 0;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 12px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #104c3e;
  color: white;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  padding-left: 0;
  color: var(--green);
  text-align: left;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 9999;
}
.skip-link:focus {
  top: 8px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.topbar a {
  text-decoration: none;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions button {
  font-size: 11px;
  border: 0;
  background: #f3f5f1;
}
.region-tag {
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
}
#saved-count {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
  color: var(--green);
}
.workspace {
  display: grid;
  grid-template-columns: 270px minmax(300px, 1fr) clamp(440px, 40vw, 880px);
  flex: 1;
  min-height: 0;
}
.project-panel,
.report-panel {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px;
  background: var(--surface);
  scrollbar-width: thin;
}
.project-panel {
  border-right: 1px solid var(--line);
}
.report-panel {
  border-left: 1px solid var(--line);
  position: relative;
  padding-inline: 28px;
}
.panel-intro h2 {
  margin-bottom: 10px;
}
.panel-intro > p:last-child {
  color: var(--muted);
  font-size: 12px;
}
.panel-intro {
  margin-bottom: 22px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.project-size-fields { grid-template-rows:auto auto; row-gap:0; }
.project-size-fields > div { display:grid; grid-template-rows:subgrid; grid-row:span 2; min-width:0; }
.load-evidence-overview { margin:12px 0 18px; }
.load-evidence-overview > div { padding:10px 0; border-bottom:1px solid var(--line); }
.load-evidence-overview dt { font-size:11px; font-weight:600; }
.load-evidence-overview dd { margin:4px 0 0; font-size:12px; line-height:1.45; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.load-siting.organized-load-report { border-top:0; padding-top:0; }
.load-report-group > h3, .load-score-drivers > h3 { margin-bottom:12px; }
.load-report-group > details { margin:0; padding:12px 0; border-bottom:1px solid var(--line); }
.load-report-group > details > summary { min-height:24px; line-height:1.5; }
.load-score-summary p { line-height:1.55; }
.connection-interpretation { margin-top:14px; padding:14px; border-radius:8px; background:var(--page); }
.connection-interpretation h4 { margin:0 0 8px; font-size:13px; }
.connection-interpretation p { margin:8px 0 0; }
.load-score-drivers .dimension summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
.load-score-drivers .dimension summary::before { display:none; }
.load-score-drivers .dimension-name { grid-column:1; }
.load-score-drivers .dimension-value { grid-column:2; grid-row:1; white-space:nowrap; }
.dimension-meta { grid-column:1 / -1; font-size:11px; font-weight:400; color:var(--muted); font-variant-numeric:tabular-nums; }
.load-score-drivers .dimension-meta::after { content:' · Expand details'; }
.load-score-drivers details[open] .dimension-meta::after { content:' · Collapse details'; }
.load-review-summary { line-height:1.55; }
.weight-editor {
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
summary {
  cursor: pointer;
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}
summary::before {
  content: "+";
  font-size: 16px;
  color: var(--muted);
}
details[open] > summary::before {
  content: "−";
}
.weight-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.weight-row label {
  margin: 0;
}
.weight-row input {
  padding: 6px;
}
.shortlist-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.shortlist-field { margin:12px 0; }
.shortlist-section :is(select,button):focus-visible {
  outline:2px solid var(--green);
  outline-offset:2px;
}
.sidebar-note {
  font-size: 10px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  margin-top: 6px;
  font-size: 11px;
  padding: 10px;
}
.candidate strong {
  display: block;
  font-weight: 600;
}
.candidate small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.candidate .candidate-value {
  text-align: right;
  margin-left: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.map-panel {
  container-type: size;
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #e9eeea;
}
#map {
  height: 100%;
  width: 100%;
}
.leaflet-container {
  font-family: var(--sans);
}
.map-search {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 900;
  display: flex;
  gap: 0;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 12px #163d251c;
  background: white;
}
.map-search input {
  border: 0;
  border-radius: 8px 0 0 8px;
  min-height: 42px;
}
.map-search button {
  border: 0;
  border-radius: 0 8px 8px 0;
  color: var(--green);
  border-left: 1px solid var(--line);
}
#search-results:not(:empty) {
  position: absolute;
  top: 49px;
  width: 100%;
  background: white;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 16px #0002;
  max-height: 250px;
  overflow: auto;
}
#search-results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  font-size: 12px;
}
.map-instruction {
  position: absolute;
  top: 68px;
  left: 18px;
  z-index: 700;
  font-size: 10px;
  color: #526057;
  text-shadow:
    0 0 5px white,
    0 0 10px white;
  pointer-events: none;
}
.map-layers {
  position: absolute;
  bottom: 52px;
  left: 16px;
  z-index: 900;
  width: 208px;
  background: #fffffff5;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0002;
  padding: 0 12px;
  max-height: calc(100% - 155px);
  overflow: auto;
}
.map-layers > summary {
  font-size: 11px;
}
.layer-options {
  padding: 4px 0 10px;
}
.layer-options label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 400;
  margin: 6px 0;
  min-height: 40px;
  gap: 8px;
}
.layer-options input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}
.layer-options select {
  font-size: 11px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.legend-dot:first-child {
  margin-left: 0;
}
.substations {
  background: #697e90;
}
.site {
  background: var(--green);
}
.saved {
  background: #b6783a;
}
#map .siting-map-navigation {
  display: grid;
  grid-template-columns: 32px;
  grid-auto-rows: 32px;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 3px #20352f12, 0 3px 12px #20352f24;
}
#map .siting-map-navigation > a,
#map .siting-map-navigation > button {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: white;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}
#map .siting-map-navigation > :not(:last-child)::after { content: ''; position: absolute; bottom: 0; left: 8px; right: 8px; height: 1px; background: var(--line); pointer-events: none; }
#map .siting-map-navigation > :hover { background: var(--page); }
#map .siting-map-navigation > :active { background: var(--soft); }
#map .siting-map-navigation > :focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
#map .siting-map-navigation > .leaflet-disabled { color: #a5afa9; cursor: default; background: white; }
#map .siting-map-navigation svg { display: block; pointer-events: none; }
#map .siting-map-navigation svg { width:16px; height:16px; }
.scan-unranked-key { display:flex; align-items:center; gap:7px; margin:8px 0 5px; font-size:12px; line-height:1.4; }
.scan-unranked-key[hidden] { display:none; }
.scan-unranked-key::before { content:''; width:18px; height:12px; flex:none; border-radius:2px; background:repeating-linear-gradient(135deg,#a9b0b3 0 6px,#6f7a80 6px 7px,#a9b0b3 7px 12px); }
.psh-excluded-key { display:flex; align-items:center; gap:8px; min-height:40px; margin:7px 0; font-size:12px; line-height:1.4; cursor:pointer; }
.psh-excluded-key[hidden],#psh-exclusion-summary[hidden] { display:none; }
.psh-excluded-key input { width:16px; height:16px; min-width:16px; padding:0; margin:0; accent-color:var(--green); }
.psh-gray-marker { width:11px; height:11px; flex:none; border-radius:50%; background:#7e878b; }
#psh-exclusion-summary { font-size:12px; margin:3px 0 9px; }
#psh-exclusion-summary summary { min-height:40px; cursor:pointer; }
#psh-exclusion-breakdown { padding-left:18px; line-height:1.5; margin:7px 0; }
#psh-exclusion-breakdown li + li { margin-top:5px; }
.map-marker-label {
  white-space: normal;
  max-width: 220px;
}
.report-empty {
  padding-top: 30px;
}
.report-empty h2 {
  font:
    500 28px/1.25 Lora,
    Georgia,
    serif;
  margin-bottom: 18px;
}
.report-empty > p {
  color: var(--muted);
  font-size: 12px;
}
.report-empty #loading-state {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 11px;
}
.site-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.site-heading h2 {
  font-size: 20px;
  margin-bottom: 5px;
}
.coordinates {
  font: 11px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.resolution-note {
  margin: 6px 0 0;
  font: 11px/1.5 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}
.score-card {
  background: var(--page);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid #e3e8e1;
}
.score-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.score-number {
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.score-number small {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
.score-unavailable {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.score-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.coverage {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.coverage strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.coverage-bar {
  height: 3px;
  background: #dce4dc;
  border-radius: 2px;
  margin: 14px 0 10px;
  overflow: hidden;
}
.coverage-bar i {
  height: 100%;
  display: block;
  background: var(--green);
}
.score-note {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.report-actions {
  display: flex;
  gap: 6px;
  margin: 14px 0 20px;
}
.report-actions button {
  flex: 1;
  font-size: 11px;
  padding: 7px;
}
.report-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.report-section > p {
  font-size: 11px;
  color: var(--muted);
}
.dimension {
  border-top: 1px solid #e7ece5;
}
.dimension:first-child {
  border-top: 0;
}
.dimension summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  font-size: 12px;
  gap: 8px;
}
.dimension summary::before {
  font-size: 13px;
}
.dimension-name {
  flex: 1;
}
.dimension-value {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dimension .explanation {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.mini-bar {
  height: 3px;
  background: var(--soft);
  margin: 0 0 8px;
}
.mini-bar i {
  display: block;
  background: #719982;
  height: 100%;
}
.evidence-list {
  margin: 8px 0 12px;
  padding-left: 16px;
  font-size: 10px;
  color: var(--muted);
}
.flag {
  padding: 12px;
  border-left: 3px solid #b8843e;
  background: #f9f5ec;
  border-radius: 0 6px 6px 0;
  margin: 8px 0;
  font-size: 11px;
}
.flag strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.flag p {
  margin: 0;
  color: #726447;
  line-height: 1.5;
}
.flag.critical,
.flag.error,
.flag.blocker {
  border-color: var(--red);
  background: #fcf0ed;
}
.flag.info {
  border-color: #8ba99a;
  background: #f0f5f1;
}
.nearby-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.nearby-table td,
.nearby-table th {
  padding: 9px 3px;
  border-bottom: 1px solid #e8ece7;
  text-align: left;
}
.nearby-table th {
  color: var(--muted);
  font-weight: 500;
}
.nearby-table td:last-child,
.nearby-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nearby-table td:first-child {
  max-width: 190px;
  overflow-wrap: anywhere;
}
.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.metric-pair div {
  padding: 10px;
  background: var(--page);
  border-radius: 6px;
}
.metric-pair strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.metric-pair span {
  font-size: 9px;
  color: var(--muted);
}
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-links a {
  font-size: 10px;
}
.public-evidence {
  padding: 11px 0;
  border-bottom: 1px solid #e8ece7;
  font-size: 11px;
}
.public-evidence strong {
  font-weight: 600;
}
.public-evidence .result {
  float: right;
  color: var(--muted);
  font-size: 10px;
}
.public-evidence p {
  clear: both;
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.public-evidence a {
  font-size: 10px;
}
.date-caption {
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
}
.refresh-public {
  font-size: 11px;
  width: 100%;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: white;
  border-top: 1px solid var(--line);
  padding: 6px 16px;
  min-height: 29px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 9px;
}
.statusbar button {
  min-height: 25px;
  padding: 2px 6px;
  font-size: 10px;
}
.statusbar span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-tabs {
  display: none;
}
dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 15px 70px #0003;
}
dialog::backdrop {
  background: #16312666;
  backdrop-filter: blur(2px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}
dialog > p,
dialog li {
  font-size: 12px;
  color: var(--muted);
}
dialog h3 {
  margin-top: 24px;
}
.source-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.source-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.source-status {
  float: right;
  font-size: 10px;
  color: var(--muted);
}
#comparison {
  overflow: auto;
  margin: 20px 0;
}
.comparison-table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
  font-size: 11px;
}
.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.comparison-table th {
  font-weight: 500;
  background: var(--page);
}
.comparison-table button {
  font-size: 10px;
  min-height: 40px;
  margin: 5px 4px 0 0;
}
.comparison-table small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.toast {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 3px 20px #0002;
  max-width: calc(100vw - 32px);
  font-size: 12px;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 290px minmax(400px, 1fr) min(40vw, 880px);
  }
  .project-panel,
  .report-panel {
    padding: 28px 24px;
  }
  .report-panel { padding-inline: 32px; }
}
@media (max-width: 1120px) and (min-width: 821px) {
  .workspace {
    grid-template-columns: 210px minmax(250px, 1fr) minmax(350px, 39vw);
  }
  .project-panel,
  .report-panel {
    padding: 18px 15px;
  }
  .header-actions .region-tag {
    display: none;
  }
  .map-search {
    left: 12px;
    right: 12px;
  }
  .map-instruction {
    max-width: 200px;
  }
}
@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .region-tag {
    display: none;
  }
  .header-actions button {
    min-height: 40px;
    padding: 6px 10px;
  }
  .mobile-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    gap: 16px;
    flex-shrink: 0;
  }
  .mobile-tabs button {
    flex: 1;
    border: 0;
    border-radius: 0;
    min-height: 42px;
    background: white;
    color: var(--muted);
    font-size: 12px;
  }
  .mobile-tabs button.active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
  }
  .workspace {
    display: block;
    position: relative;
  }
  .project-panel,
  .report-panel,
  .map-panel {
    height: 100%;
    width: 100%;
    border: 0;
    display: none;
  }
  .workspace[data-view="project"] .project-panel,
  .workspace[data-view="map"] .map-panel,
  .workspace[data-view="report"] .report-panel {
    display: block;
  }
  .project-panel,
  .report-panel {
    padding: 24px;
    max-width: 640px;
    margin: auto;
  }
  .statusbar > span:last-child {
    display: none;
  }
  .statusbar {
    font-size: 9px;
  }
  .map-search {
    max-width: none;
  }
  .map-instruction {
    font-size: 10px;
  }
  .map-layers {
    bottom: 55px;
  }
  .report-empty {
    padding-top: 24px;
  }
  dialog {
    padding: 20px;
  }
  .toast {
    bottom: 42px;
    width: max-content;
  }
  .region-tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  button:active {
    transform: none;
  }
}

/* Project assumptions and analytical evidence */
#map:focus, #map:focus-visible { outline:none; }
body[data-keyboard="true"] #map:focus { outline:2px solid var(--green); outline-offset:-2px; }
.geothermal-canvas { position:absolute; left:0; top:0; }
.map-layers { bottom:18px; max-height:calc(100% - 245px); padding-bottom:40px; overflow:hidden; }
.map-layers > summary { position:absolute; bottom:0; left:12px; right:12px; height:40px; }
.map-layers .layer-options { max-height:calc(100cqh - 300px); overflow-y:auto; }
#scan-progress { margin:12px 0; }
#scan-progress-bar { display:block; width:100%; height:10px; border:0; border-radius:8px; overflow:hidden; accent-color:var(--green); }
#scan-progress-bar::-webkit-progress-bar { background:var(--line); border-radius:8px; }
#scan-progress-bar::-webkit-progress-value { background:var(--green); border-radius:8px; transition:width 160ms ease-out; }
#scan-progress-label { font-variant-numeric:tabular-nums; }
#clear-scan { margin:8px 0; }
#scan-map-controls { position:absolute; top:16px; right:16px; width:236px; max-width:calc(100% - 32px); z-index:800; padding:8px 12px 12px; border-radius:8px; background:#fffffff2; box-shadow:0 2px 12px #0002; }
.map-panel:has(#scan-map-controls:not([hidden])) .map-search { max-width:min(400px,calc(100% - 284px)); }
.map-panel:has(#scan-map-controls:not([hidden])) .siting-basemap { filter:grayscale(1); }
@container (max-width: 560px) {
  #scan-map-controls { top:90px; }
  .map-panel:has(#scan-map-controls:not([hidden])) .map-search { max-width:calc(100% - 32px); }
}
#scan-map-controls > div:first-child { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#scan-map-controls strong { font-size:11px; font-weight:600; }
#scan-map-controls button { min-height:40px; font-size:10px; padding:4px 8px; }
#scan-map-controls small { display:block; color:var(--muted); margin-top:6px; font-size:10px; }
.scan-color-scale { height:8px; border-radius:6px; background:linear-gradient(90deg,#c33634,#eccd62,#1c894f); margin:5px 0; }
.scan-scale-labels { display:flex; justify-content:space-between; gap:8px; font-size:10px; }
.geothermal-cost-scale { height:8px; border-radius:6px; background:linear-gradient(90deg,#1a9850,#66bd63,#a6d96a,#d9ef8b,#fee08b,#fdae61,#f46d43,#d73027); margin:8px 0 5px; }
.candidate-preview-popup .leaflet-popup-content { margin:12px; font:12px/1.5 var(--sans); }
.candidate-preview-popup { pointer-events:none; }

/* Compact resource shortlist: the region has its own full-width line. */
.candidate.resource-candidate {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:initial;
  gap:5px;
  padding:11px 12px;
  min-height:104px;
  font-variant-numeric:tabular-nums;
}
.resource-candidate .candidate-title {
  min-width:0;
  font-size:12px;
  line-height:1.4;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.resource-candidate .candidate-score-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.resource-candidate .candidate-status {
  min-width:0;
  padding:3px 6px;
  border-radius:4px;
  background:var(--soft);
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}
.resource-candidate[data-candidate-status="review"] .candidate-status { background:#f5f0e7; color:#795c38; }
.resource-candidate[data-candidate-status="failed"] .candidate-status,
.resource-candidate[data-candidate-status="restricted"] .candidate-status { background:#f5eae6; color:#875646; }
.resource-candidate .candidate-value { margin-left:0; flex-shrink:0; }
.resource-candidate .candidate-value strong { font-size:14px; font-weight:600; line-height:1.2; }
.resource-candidate .candidate-value strong span { margin-left:3px; font-size:10px; font-weight:400; color:var(--muted); }
.resource-candidate .candidate-value small { margin-top:1px; font-size:9px; line-height:1.2; }
.resource-candidate .candidate-resource-meta,
.resource-candidate .candidate-financial-meta {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
  line-height:1.45;
}
.resource-candidate .candidate-resource-meta span { display:inline; }
.resource-candidate .candidate-financial-meta { color:var(--ink); }
.candidate:hover,.candidate:focus-visible { background:var(--soft); border-color:var(--green); }
.project-assumptions { border-top:1px solid var(--line); margin:8px 0 0; padding-top:0; }
.project-assumptions > summary, .weight-editor > summary { min-height:44px; display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:600; }
.project-assumptions > summary::before, .weight-editor > summary::before { content:'+'; flex:0 0 12px; width:12px; margin:0; text-align:center; color:var(--muted); }
.project-assumptions[open] > summary::before, .weight-editor[open] > summary::before { content:'−'; }
.project-assumptions input, .project-assumptions select { min-height:40px; }
#hourly-load-shape { width:100%; min-height:72px; resize:vertical; font:inherit; padding:8px; border:1px solid var(--line); border-radius:6px; }
[hidden] { display:none !important; }
#scan-state { margin-top:8px; }
.drawing-controls { position:absolute; z-index:1100; top:72px; left:16px; right:16px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; background:#fff; border-radius:8px; box-shadow:0 2px 12px #0002; padding:10px 12px; }
.drawing-controls span { flex:1 1 130px; }
.drawing-controls button { min-height:40px; }
.analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0; }
.analytics-grid > div { background:var(--page); border-radius:8px; padding:12px; min-width:0; }
.analytics-grid dt { color:var(--muted); font-size:11px; }
.analytics-grid dd { margin:5px 0 0; font-size:19px; font-weight:500; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.analytics-grid dd small { font-size:11px; }
.analytics-table { width:100%; border-collapse:collapse; font-size:11px; margin:12px 0; table-layout:fixed; }
.analytics-table th,.analytics-table td { text-align:left; padding:7px 5px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.analytics-table td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.analysis-note { padding:10px 12px; background:var(--soft); border-radius:6px; }
.candidate small { overflow-wrap:anywhere; }
.decision-overview > p { text-wrap:pretty; }
.decision-requirements { margin-top:12px; }
.decision-requirements > details { border-top:1px solid var(--line); }
.decision-requirements > details > summary { display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:44px; font-weight:500; }
.decision-requirements summary small { color:var(--muted); font-weight:400; font-size:10px; text-align:right; }
.decision-requirements summary::before { font-size:12px; }
.decision-requirements > details > p { margin:0 0 12px; font-size:11px; }
.technology-report-group > .report-section { margin-top:14px; padding-top:0; border:0; }
.technology-report-group > details { margin-top:10px; }
.technology-report-group h3 { text-wrap:balance; }
.technology-design { border-top:1px solid var(--line); margin:8px 0 0; }
.technology-design > summary { min-height:44px; display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:600; }
.technology-design > summary::before { content:'+'; flex:0 0 12px; width:12px; margin:0; text-align:center; color:var(--muted); }
.technology-design[open] > summary::before { content:'−'; }
.design-field { margin:12px 0; }
.design-field label small { color:var(--muted); font-weight:400; }
.design-field .field-help { margin:4px 0; }
.design-field textarea { width:100%; resize:vertical; padding:8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.evidence-list { overflow-wrap:anywhere; }
#hydrogen-sizing { margin:12px 0; }
#hydrogen-sizing button { margin-bottom:8px; }
#h2-optimize-progress { width:100%; height:10px; accent-color:var(--green); }
#h2-optimize-status { font-variant-numeric:tabular-nums; }

/* Decision interpretation belongs beside the score, with compact detail rows. */
.decision-warning { border-left:3px solid #ab6337; padding:8px 0 8px 12px; font-size:12px; line-height:1.5; }
.decision-checks { border-top:1px solid var(--line); margin-top:10px; }
.decision-checks > summary { min-height:44px; font-size:12px; font-weight:600; line-height:1.45; }
.decision-checks p,.decision-checks li { font-size:12px; line-height:1.5; }
.decision-checks p { margin:8px 0; }
.requirement-failures { padding-left:18px; }
.requirement-failures li { margin-bottom:12px; }
.requirement-failures span { font-variant-numeric:tabular-nums; }
.score-card[data-status="fails-brief"],.score-card[data-status="pathway-required"] { border-color:#d3ae91; }

/* A readable report alongside a California-sized map. */
.report-panel { container-type:inline-size; }
.report-panel p { text-wrap:pretty; }
.report-panel h2, .report-panel h3, .report-panel h4 { text-wrap:balance; }
.report-panel h4 { font-size:13px; font-weight:600; margin:16px 0 10px; }
.report-conclusion { margin:0 0 16px; padding:0; border:0; }
.report-conclusion > h3 { font-size:13px; margin-bottom:8px; }
.report-conclusion p { margin:8px 0; }
.report-contents { display:flex; flex-wrap:wrap; gap:2px 10px; padding:8px 0; border-block:1px solid var(--line); }
.report-contents button { padding:5px 2px; border:0; background:transparent; border-radius:0; color:var(--green); font-size:11px; text-decoration:underline; text-underline-offset:4px; text-decoration-color:#155e4d40; }
.report-contents button:hover { text-decoration-color:currentColor; }
.report-chapter { margin-top:26px; padding-top:20px; }
.report-chapter > h3 { font-size:16px; letter-spacing:-.2px; margin-bottom:12px; }
.report-chapter:focus { outline:none; }
.report-chapter:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
.report-chapter > .report-section { border:0; padding-top:0; margin-top:14px; }
.report-chapter > details { border-top:1px solid var(--line); margin:0; padding:4px 0; }
.report-panel details > summary { min-height:44px; font-size:12px; line-height:1.45; }
.report-panel details > p { font-size:12px; color:var(--muted); line-height:1.6; }
.report-panel details > .analytics-grid { margin-top:8px; }
.report-panel .analytics-table { font-size:12px; }
.report-panel .analytics-table th { font-weight:500; }
.report-panel .analytics-table th, .report-panel .analytics-table td { padding:10px 6px; vertical-align:top; }
.report-panel .analytics-table th:first-child { width:55%; }
.report-panel .analytics-table:has(thead) th:first-child { width:auto; }
.report-panel .chapter-caption { margin:0 0 8px; color:var(--muted); font-size:11px; }
.report-panel .dimension-meta::after { content:''; }
.report-panel details[open] .dimension-meta::after { content:''; }
.report-panel .decision-requirements summary { grid-template-columns:10px minmax(0,1fr) minmax(90px,32%); }
.report-panel .decision-requirements summary small { font-size:11px; }
.report-panel .decision-requirements > details > p { max-width:72ch; line-height:1.65; }
.report-panel .decision-requirements > details > summary::before { flex-shrink:0; }
.report-panel .report-evidence-detail > .report-section { border:0; margin:12px 0; padding:0; }
.report-panel .report-evidence-detail > .report-section > h3 { font-size:13px; }
.report-panel .load-evidence-overview dt { font-size:12px; }
.report-panel .load-evidence-overview dd { margin-top:6px; max-width:65ch; }
.report-panel .score-card { padding:20px; }
.report-panel .score-note, .report-panel .score-label { font-size:11px; }
.report-panel .financial-bridge { font-variant-numeric:tabular-nums; }
.report-strengths ul { display:grid; gap:6px; list-style:none; padding:0; margin:6px 0 16px; }
.report-strengths li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:baseline; font-size:11px; }
.report-strengths strong { font-weight:500; font-variant-numeric:tabular-nums; }
.report-strengths small { color:var(--muted); font-size:10px; }
.battery-financial > h3 { font-size:13px; }
.battery-financial .financial-basis { color:var(--ink); font-size:12px; line-height:1.6; }
.financial-units { font-size:11px; color:var(--muted); margin:16px 0 6px; }
.financial-bridge { width:100%; border-collapse:collapse; font-size:12px; }
.financial-bridge th { font-weight:400; text-align:left; }
.financial-bridge td { text-align:right; white-space:nowrap; }
.financial-bridge th,.financial-bridge td { padding:10px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.financial-bridge th { padding-right:16px; }
.financial-total th,.financial-total td { font-weight:600; font-size:14px; border-bottom:0; padding-top:14px; }
.financial-gap { background:#f6f0e5; border-radius:8px; padding:14px; margin:14px 0; font-size:12px; line-height:1.6; }
.financial-gap p { margin:6px 0 0; color:#695638; }
.financial-details { border-top:1px solid var(--line); padding:4px 0; }
.financial-sources { display:flex; flex-wrap:wrap; gap:8px; font-size:11px; }
.load-decision-brief { margin:22px 0 18px; padding:18px; background:var(--soft); border:1px solid var(--line); border-radius:10px; }
.load-decision-brief h3 { margin:5px 0 12px; font-size:19px; line-height:1.35; }
.load-developer-report .load-developer-facts { margin:16px 0; }
.load-developer-facts > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:18px; padding:11px 0; border-top:1px solid var(--line); align-items:start; }
.load-developer-facts dt { font-size:12px; color:var(--muted); }
.load-developer-facts dd { min-width:0; margin:0; font-size:13px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.load-developer-facts dd small { display:block; margin-top:4px; font-size:11px; font-weight:400; color:var(--muted); }
.load-developer-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.load-developer-metrics > div { min-width:0; padding:14px; border-radius:8px; background:var(--soft); }
.load-developer-metrics dt { font-size:11px; line-height:1.5; color:var(--muted); }
.load-developer-metrics dd { margin:6px 0 0; font-size:18px; line-height:1.35; letter-spacing:-.02em; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.load-critical,.load-cost-scope { padding:14px; margin:14px 0; border-left:3px solid #a97d48; background:#f8f5ee; border-radius:0 7px 7px 0; font-size:12px; line-height:1.6; }
.load-critical p { margin:7px 0 0; }
.load-developer-report .load-commitment-boundary,.load-developer-report .load-preference-key { font-size:12px; color:var(--muted); line-height:1.6; }
.load-developer-chapter > h3 { margin-bottom:15px; font-size:17px; }
.load-developer-report .load-score-drivers { margin:0; }
.load-developer-report .score-card { margin:16px 0; }
.load-developer-report .load-developer-detail summary { min-height:44px; }
.load-report-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:11px; font-variant-numeric:tabular-nums; }
.load-report-table th,.load-report-table td { text-align:left; vertical-align:top; padding:10px 7px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.load-report-table th { font-weight:600; }
.load-report-table small { display:block; margin-top:4px; color:var(--muted); font-weight:400; }
.load-table-wrap { max-width:100%; overflow-x:auto; }
.load-evidence-list { padding-left:18px; }
.load-evidence-list li { margin:12px 0; }
.load-evidence-list p { margin:5px 0; }
.load-next-decisions ol { margin:14px 0; padding-left:22px; }
.load-next-decisions li { margin:14px 0; padding-left:3px; font-size:13px; line-height:1.65; }
@container (max-width: 380px) {
  .load-developer-facts > div { grid-template-columns:1fr; gap:5px; }
  .load-developer-metrics { gap:9px; }
  .load-developer-metrics > div { padding:11px; }
  .load-developer-metrics dd { font-size:16px; }
}
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.geothermal-decision-brief { padding:18px; margin:18px 0; border-radius:12px; background:var(--soft); }
.geothermal-decision-brief h3 { margin:4px 0 16px; text-wrap:balance; font-size:18px; font-weight:600; }
.geothermal-facts { margin:12px 0; font-variant-numeric:tabular-nums; }
.geothermal-facts > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:18px; padding:11px 0; border-bottom:1px solid var(--line); }
.geothermal-facts dt { font-weight:500; }
.geothermal-facts dd { margin:0; text-align:left; overflow-wrap:anywhere; }
.geothermal-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; font-variant-numeric:tabular-nums; }
.geothermal-metrics > div { padding:14px; border-radius:10px; background:var(--page); }
.geothermal-metrics dt { color:var(--muted); font-size:11px; }
.geothermal-metrics dd { margin:8px 0 0; font-size:17px; line-height:1.4; font-weight:500; overflow-wrap:anywhere; }
.geothermal-table-scroll { overflow:auto; max-width:100%; }
.geothermal-table { width:100%; border-collapse:collapse; font-size:11px; font-variant-numeric:tabular-nums; }
.geothermal-table th,.geothermal-table td { text-align:left; vertical-align:top; padding:10px 8px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.geothermal-table th { font-weight:600; }
.geothermal-chapter p { text-wrap:pretty; }
.geothermal-next li { padding-left:3px; margin:14px 0; }
@container (max-width:380px) {
  .geothermal-facts > div { grid-template-columns:1fr; gap:5px; }
  .geothermal-metrics { gap:8px; }
  .geothermal-metrics > div { padding:11px; }
}
.report-panel .report-next-steps li { margin-bottom:14px; padding-left:3px; }
.report-panel .report-next-steps li p { margin:4px 0; color:var(--muted); font-size:12px; }
@container (min-width: 600px) {
  .report-panel .project-design > .analytics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .report-panel { padding:22px; }
  .report-chapter > h3 { font-size:15px; }
}
@media print {
  body, .workspace { display:block; height:auto; overflow:visible; }
  .project-panel, .map-panel, .topbar, .statusbar, .mobile-tabs, .report-actions, .report-contents { display:none !important; }
  .report-panel { display:block !important; width:auto; max-width:none; height:auto; overflow:visible; padding:0; border:0; }
  .report-chapter, .report-panel details, .score-card { break-inside:avoid; }
}
