html,
body,
.app-shell,
#cesiumContainer {
  width: 100%;
  height: 100%;
  margin: 0;
}

:root {
  --site-header-offset: 64px;
}

body {
  overflow: hidden;
  background: #101820;
  color: #17202a;
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  position: relative;
}

.surface-picker {
  position: absolute;
  z-index: 8;
  top: calc(16px + var(--site-header-offset));
  right: 16px;
}

.atmosphere-picker {
  position: absolute;
  z-index: 8;
  top: calc(68px + var(--site-header-offset));
  right: 16px;
}

.atmosphere-picker-panel {
  top: 0;
  right: 52px;
  width: min(310px, calc(100vw - 84px));
}

.atmosphere-presets {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.atmosphere-presets button {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(17, 61, 92, 0.14);
  border-radius: 8px;
  background: #f5fafc;
  color: #29495f;
  cursor: pointer;
  text-align: left;
}

.atmosphere-presets button:hover,
.atmosphere-presets button.is-active {
  border-color: #1685ad;
  background: #dff1f7;
}

.atmosphere-presets button strong {
  font-size: 13px;
}

.atmosphere-presets button span,
.atmosphere-note {
  color: #607284;
  font-size: 10px;
}

.whiteout-control {
  display: grid;
  gap: 7px;
  margin: 0 12px 10px;
  padding: 10px;
  border: 1px solid rgba(17, 61, 92, 0.14);
  border-radius: 8px;
  background: #f5fafc;
  color: #29495f;
  font-size: 12px;
  font-weight: 700;
}

.whiteout-control span {
  display: flex;
  justify-content: space-between;
}

.whiteout-control small {
  color: #607284;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.whiteout-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.12), rgba(235, 243, 246, 0.9)),
    linear-gradient(rgba(242, 247, 249, 0.5), rgba(255, 255, 255, 0.8));
  transition: opacity 180ms ease;
}

.atmosphere-note {
  margin: 0;
  padding: 0 13px 13px;
}

.surface-picker-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(25, 74, 105, 0.96), rgba(9, 42, 64, 0.97));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.surface-picker-button:hover,
.surface-picker-button.is-active {
  background: linear-gradient(180deg, #1a6b96, #0c4568);
}

.surface-picker-button:focus-visible {
  outline: 3px solid rgba(110, 211, 255, 0.8);
  outline-offset: 2px;
}

.surface-picker-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.surface-picker-panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(300px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: rgba(250, 253, 255, 0.97);
  color: #17384d;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.surface-picker-panel[hidden] {
  display: none;
}

.surface-picker-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.11);
}

.surface-picker-panel header div {
  display: grid;
  gap: 2px;
}

.surface-picker-panel header span,
.surface-picker-field > span,
.surface-picker-terrain legend {
  color: #607284;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.surface-picker-panel header strong {
  font-size: 15px;
}

.surface-picker-panel header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #466274;
  cursor: pointer;
  font-size: 22px;
}

.surface-picker-panel header button:hover {
  background: #e7f0f5;
}

.surface-picker-field {
  display: grid;
  gap: 7px;
  padding: 13px 14px 10px;
}

.surface-picker-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(17, 61, 92, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #17384d;
  padding: 0 10px;
  font: inherit;
}

.surface-picker-terrain {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 8px 14px 14px;
  border: 0;
}

.surface-picker-terrain legend {
  padding: 0 0 5px;
}

.surface-picker-terrain label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  color: #29495f;
  cursor: pointer;
  font-size: 13px;
}

.surface-picker-terrain label:hover {
  background: #edf5f9;
}

.surface-picker-terrain label:has(input:checked) {
  background: #dfeef6;
  color: #0b4c71;
  font-weight: 700;
}

.surface-picker-terrain label.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.weather-station-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 10px 10px;
}

.weather-project-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(17, 61, 92, 0.13);
  border-radius: 7px;
  background: rgba(246, 250, 252, 0.9);
  color: #29495f;
  cursor: pointer;
}

.weather-project-choice:has(input:checked) {
  border-color: rgba(15, 111, 151, 0.28);
  background: #e5f2f7;
}

.weather-project-choice span {
  display: grid;
  min-width: 0;
}

.weather-project-swatch {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 61, 92, 0.24);
}

.weather-project-choice strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-project-choice small {
  color: #688091;
  font-size: 9px;
}

.map-panel,
.tour-drawer,
.legend-panel {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.map-panel {
  top: calc(16px + var(--site-header-offset));
  left: 16px;
  bottom: 16px;
  width: min(380px, calc(100vw - 32px));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header,
.tour-header,
.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
}

.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 12px 16px 6px;
  padding: 4px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(234, 241, 246, 0.86);
}

.panel-tab {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #405568;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.panel-tab.is-active {
  background: #fff;
  color: #113d5c;
  box-shadow: 0 4px 12px rgba(16, 48, 72, 0.14);
}

.panel-view {
  display: none;
  min-height: 0;
}

.panel-view.is-active {
  display: flex;
  flex: 1;
}

.panel-view-tours {
  flex-direction: column;
}

.panel-view-layers {
  flex-direction: column;
  gap: 0;
  overflow: auto;
  padding-top: 6px;
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #51718d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.icon-button,
.button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #15547b 0%, #0c3450 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 30, 46, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 30, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.icon-button:active,
.button:active {
  transform: translateY(0);
}

.icon-button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 22px;
  line-height: 36px;
}

#homeButton {
  width: auto;
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
}

.secondary-button {
  height: 34px;
  border-color: rgba(17, 61, 92, 0.16);
  background: #eef5f9;
  color: #113d5c;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover {
  box-shadow: 0 6px 14px rgba(8, 30, 46, 0.12);
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.import-block {
  display: grid;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.route-import-block {
  border-color: rgba(12, 80, 112, 0.18);
  background: linear-gradient(180deg, rgba(232, 248, 255, 0.78), rgba(255, 255, 255, 0.72));
}

.import-copy {
  display: grid;
  gap: 2px;
}

.import-copy strong {
  color: #17384d;
  font-size: 13px;
}

.import-copy span {
  color: #607284;
  font-size: 12px;
  line-height: 1.35;
}

.file-button {
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.kml-list {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px;
}

.kml-list[hidden] {
  display: none;
}

.kml-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kml-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #263849;
  font-size: 12px;
}

.snowmobile-panel {
  display: grid;
  gap: 9px;
  position: fixed;
  z-index: 24;
  top: 82px;
  right: 18px;
  width: min(390px, calc(100vw - 36px));
  max-height: calc(100vh - 104px);
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(12, 80, 112, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(232, 248, 255, 0.97), rgba(255, 255, 255, 0.95));
  box-shadow: 0 18px 46px rgba(8, 36, 52, 0.28);
  backdrop-filter: blur(14px);
}

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

.drive-mode-button.is-active {
  border-color: #f59e0b;
  background: #fff1c7;
  color: #78350f;
}

.driving-controls {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(8, 35, 50, 0.92);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.driving-controls[hidden] {
  display: none;
}

.driving-controls > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.driving-controls span {
  color: #b9d4df;
  font-size: 11px;
}

.driving-key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.driving-camera-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.driving-camera-buttons button {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7dde6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.driving-camera-buttons button.is-active {
  border-color: #47c6ef;
  background: rgba(55, 184, 230, 0.3);
  color: #fff;
}

.driving-key-grid button {
  display: grid;
  gap: 2px;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.driving-key-grid button:hover,
.driving-key-grid button:active {
  background: rgba(55, 184, 230, 0.3);
}

.driving-key-grid button.wide {
  grid-column: 1 / -1;
}

.driving-key-grid small {
  color: #b9d4df;
  font-size: 9px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .snowmobile-panel {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 58vh;
  }
}

.track-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
}

.track-header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.snowmobile-panel strong {
  color: #17384d;
  font-size: 13px;
}

.track-header span,
.snowmobile-panel > span {
  color: #607284;
  font-size: 12px;
  line-height: 1.35;
}

.route-difficulty-legend {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(12, 80, 112, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #435669;
  font-size: 11px;
  font-weight: 750;
}

.route-difficulty-legend[hidden] {
  display: none;
}

.route-difficulty-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.route-risk-panel {
  --risk-color: #64748b;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.route-risk-score-stack {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.route-risk-score-stack small {
  color: #607284;
  font-size: 9px;
  font-weight: 700;
}

.route-analysis-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(12, 80, 112, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.route-analysis-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.route-analysis-heading > div {
  display: grid;
  gap: 1px;
}

.route-analysis-heading span {
  color: #607284;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route-analysis-heading strong {
  color: #17384d;
  font-size: 14px;
}

.route-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.route-index-grid article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px;
  border-radius: 8px;
  background: #edf6fa;
}

.route-index-grid article.combined {
  background: #e0f2fe;
}

.route-index-grid span,
.route-index-grid small {
  overflow: hidden;
  color: #607284;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.route-index-grid strong {
  color: #17384d;
  font-size: 19px;
}

.route-profile-wrap {
  overflow: hidden;
  border: 1px solid rgba(12, 80, 112, 0.12);
  border-radius: 8px;
  background: linear-gradient(#f8fbfd, #edf5f8);
}

#routeExposureProfile {
  display: block;
  width: 100%;
  height: 86px;
}

.route-profile-axis {
  display: flex;
  justify-content: space-between;
  padding: 2px 7px 5px;
  color: #718293;
  font-size: 9px;
}

.route-exposure-distribution {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.route-exposure-distribution span {
  padding: 5px 3px;
  border-radius: 6px;
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.route-hotspots {
  display: grid;
  gap: 5px;
}

.route-hotspots > strong {
  color: #28485c;
  font-size: 11px;
}

#routeHotspotList {
  display: grid;
  gap: 5px;
}

#routeHotspotList p {
  margin: 0;
  color: #607284;
  font-size: 10px;
}

.route-hotspot-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-left: 4px solid var(--hotspot-color);
  border-radius: 6px;
  background: #f8fafc;
  color: #365064;
  font-size: 10px;
}

.route-hotspot-item > strong {
  display: grid;
  gap: 1px;
}

.route-hotspot-item > strong small {
  color: #607284;
  font-size: 8px;
  font-weight: 650;
}

.route-hotspot-item button {
  border: 1px solid rgba(12, 80, 112, 0.18);
  border-radius: 5px;
  background: white;
  color: #155578;
  cursor: pointer;
  font-size: 9px;
}

.route-risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-risk-header > div {
  display: grid;
  gap: 2px;
}

.route-risk-header span {
  color: #607284;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-risk-header strong {
  color: var(--risk-color);
  font-size: 15px;
}

.route-risk-header output {
  min-width: 45px;
  color: var(--risk-color);
  font-size: 23px;
  font-weight: 900;
  text-align: right;
}

.route-risk-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
}

.route-risk-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--risk-color);
  transition: width 180ms ease, background-color 180ms ease;
}

.route-risk-factors {
  color: #33485a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.route-risk-panel p,
.route-risk-panel small {
  margin: 0;
  color: #607284;
  font-size: 10px;
  line-height: 1.35;
}

.route-risk-panel small {
  padding-top: 5px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.difficulty-swatch {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.12);
}

.difficulty-swatch.risk-low {
  background: #15803d;
}

.difficulty-swatch.risk-moderate {
  background: #ca8a04;
}

.difficulty-swatch.risk-high {
  background: #ea580c;
}

.difficulty-swatch.risk-severe {
  background: #b91c1c;
}

.route-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.route-departure-control input {
  width: 100%;
  min-height: 37px;
  border: 1px solid rgba(17, 61, 92, 0.2);
  border-radius: 7px;
  background: #fff;
  color: #17384d;
  padding: 0 9px;
  font: inherit;
}

.route-departure-control small {
  color: #607284;
  font-size: 10px;
}

.route-play-button {
  min-height: 38px;
  border: 1px solid rgba(11, 79, 113, 0.75);
  border-radius: 7px;
  background: linear-gradient(180deg, #15547b 0%, #0b3d5f 100%);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 9px 18px rgba(11, 79, 113, 0.18);
}

.route-controls .mini-button {
  min-width: 74px;
}

.danger-button {
  border-color: rgba(150, 45, 45, 0.32);
  color: #8f2f2f;
}

.danger-button:hover {
  border-color: rgba(150, 45, 45, 0.6);
  background: rgba(150, 45, 45, 0.08);
}

.camera-mode-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.camera-mode-buttons .mini-button {
  min-height: 34px;
  font-weight: 800;
}

.camera-mode-buttons .mini-button.is-active {
  border-color: rgba(11, 79, 113, 0.75);
  background: #0b4f71;
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 79, 113, 0.18);
}

.progress-control {
  padding-top: 2px;
}

.vehicle-hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(11, 79, 113, 0.08);
  color: #17384d;
  font-size: 12px;
  font-weight: 700;
}

.vehicle-hud[hidden] {
  display: none;
}

.vehicle-hud span {
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
}

.snowmobile-tuning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.snowmobile-tuning label {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  color: #415466;
  font-size: 12px;
  font-weight: 700;
}

.snowmobile-tuning input {
  width: 100%;
}

.search-field {
  display: grid;
  gap: 6px;
  padding: 14px 16px 10px;
  color: #415466;
  font-size: 13px;
  font-weight: 700;
}

.search-field input,
.search-field select,
.select-control select {
  min-width: 0;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.select-control {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
  color: #415466;
  font-size: 13px;
  font-weight: 700;
}

.compact-field {
  padding-top: 0;
}

.filters,
.layer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.filters {
  padding: 0 16px 12px;
  font-size: 13px;
}

.layer-panel {
  margin: 0 16px 10px;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.layer-panel summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #263849;
  font-size: 13px;
  font-weight: 700;
}

.layer-options {
  max-height: 300px;
  overflow: auto;
  padding: 0 8px 10px;
  font-size: 13px;
}

.layer-options label {
  flex: 1 1 150px;
}

.terrain-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px 9px;
}

.terrain-choice input {
  accent-color: #0d7ff2;
}

.terrain-choice span {
  flex: 1;
  min-width: 0;
}

.terrain-choice small {
  border-radius: 999px;
  background: rgba(17, 61, 92, 0.12);
  color: #415466;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  text-transform: uppercase;
}

.terrain-choice.is-disabled {
  opacity: 0.58;
}

.terrain-choice.is-disabled small {
  background: rgba(154, 68, 68, 0.12);
  color: #9a4444;
}

.layer-options label.overlay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.layer-options label.overlay-option .overlay-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-group {
  flex: 1 1 100%;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  padding: 5px 0;
}

.overlay-group:first-child {
  border-top: 0;
}

.overlay-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #263849;
  font-weight: 700;
  padding: 5px 2px;
}

.overlay-group-list {
  display: grid;
  gap: 6px;
  padding: 4px 0 8px;
}

.overlay-control {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  padding: 7px 8px;
}

.overlay-control.is-active {
  border-color: rgba(31, 120, 180, 0.45);
  background: rgba(232, 244, 252, 0.78);
}

.overlay-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.layer-opacity-control {
  display: none;
  gap: 3px;
  padding-left: 25px;
  color: #607181;
  font-size: 11px;
}

.overlay-control.is-active .layer-opacity-control {
  display: grid;
}

.geology-model-controls {
  display: none;
  gap: 9px;
  padding: 2px 2px 2px 25px;
}

.overlay-control.is-active .geology-model-controls {
  display: grid;
}

.geology-model-notice {
  display: grid;
  gap: 2px;
  border-left: 3px solid #d18f00;
  background: rgba(255, 246, 218, 0.82);
  color: #5d4a1d;
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 8px;
}

.geology-model-range {
  display: grid;
  gap: 3px;
  color: #607181;
  font-size: 11px;
}

.geology-model-range > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.geology-model-range input {
  width: 100%;
}

.geology-model-packages {
  display: grid;
  gap: 5px;
}

.regional-solid-packages {
  max-height: 172px;
  overflow: auto;
  border: 1px solid rgba(44, 125, 160, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px;
}

.geology-model-package {
  display: grid;
  grid-template-columns: auto 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #304759;
  font-size: 11px;
}

.geology-model-package > span:last-child,
.geology-model-fiche-units li > span:last-child {
  display: grid;
  min-width: 0;
}

.geology-model-package strong,
.geology-model-package small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geology-model-package small,
.geology-model-fiche-units small {
  color: #687b8b;
}

.geology-model-swatch {
  display: inline-block;
  width: 16px;
  height: 11px;
  border: 1px solid rgba(20, 38, 52, 0.28);
  border-radius: 3px;
  background: var(--unit-color);
}

.geology-model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.geology-model-status {
  display: inline-flex;
  border-radius: 999px;
  background: #fff1c7;
  color: #765a12;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.geology-model-fiche-units {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.geology-model-fiche-units li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.regional-geology-notice {
  border-left-color: #2c7da0;
  background: rgba(225, 243, 250, 0.86);
  color: #244c60;
}

.regional-geology-summary {
  display: grid;
  gap: 2px;
  color: #40586b;
  font-size: 11px;
}

.regional-geology-summary strong {
  color: #193e57;
}

.regional-geology-options {
  display: grid;
  gap: 6px;
  border: 0;
  margin: 0;
  padding: 0;
}

.regional-geology-options legend {
  color: #506779;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.regional-geology-options label,
.regional-geology-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: #314a5d;
  font-size: 11px;
}

.regional-geology-options label > span,
.regional-geology-toggle > span {
  display: grid;
  gap: 1px;
}

.regional-geology-options small,
.regional-geology-toggle small {
  color: #6a7d8d;
}

.regional-confidence-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  color: #617687;
  font-size: 9px;
  line-height: 1.2;
}

.regional-confidence-legend span {
  display: grid;
  gap: 3px;
}

.confidence-swatch {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
}

.confidence-swatch.is-high {
  background: #24a66a;
}

.confidence-swatch.is-moderate {
  background: #f2b84b;
}

.confidence-swatch.is-low {
  background: #9aa8b2;
}

.fault-style-legend {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fault-swatch {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
}

.fault-swatch.is-normal {
  background: #0f172a;
}

.fault-swatch.is-reverse {
  background: #dc2626;
}

.fault-swatch.is-strike {
  background: #7c3aed;
}

.regional-coverage-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.regional-coverage-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  border-bottom: 1px solid rgba(22, 52, 72, 0.1);
  padding-bottom: 7px;
}

.regional-coverage-row span {
  color: #506779;
}

.regional-coverage-row small {
  grid-column: 1 / -1;
  color: #697d8c;
  line-height: 1.4;
}

.layer-opacity-control span {
  display: flex;
  justify-content: space-between;
}

.layer-opacity-control input {
  width: 100%;
}

.mini-button {
  border: 1px solid rgba(17, 61, 92, 0.24);
  border-radius: 6px;
  background: #fff;
  color: #113d5c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 3px 8px;
}

.mini-button:hover {
  background: #e9f2f8;
}

.mini-button.is-active {
  border-color: rgba(20, 94, 138, 0.62);
  background: #145e8a;
  color: #fff;
}

.layer-options label.is-disabled {
  color: #8a98a6;
  cursor: not-allowed;
}

.opacity-control {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
  color: #415466;
  font-size: 13px;
}

.opacity-control span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.terrain-exaggeration-control {
  transition: opacity 160ms ease;
}

.terrain-exaggeration-control.is-disabled {
  opacity: 0.48;
}

.terrain-exaggeration-control.is-disabled input {
  cursor: not-allowed;
}

.layer-note {
  margin: 0;
  padding: 0 10px 10px;
  color: #607181;
  font-size: 12px;
  line-height: 1.3;
}

.climate-panel {
  border-color: rgba(34, 128, 166, 0.22);
}

.climate-scale {
  display: grid;
  gap: 7px;
  margin: 0 10px 10px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.climate-scale-header,
.climate-ticks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #415466;
  font-size: 12px;
  font-weight: 700;
}

.climate-scale-header span:last-child {
  color: #607181;
  font-weight: 700;
}

.climate-gradient {
  height: 14px;
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: 999px;
  background: linear-gradient(90deg, #183b8f, #1c8ad1, #62d5dc, #f7e06e, #d94636);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.climate-ticks {
  color: #607181;
  font-size: 11px;
  font-weight: 700;
}

.climate-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.climate-range-grid label {
  display: grid;
  gap: 4px;
  color: #415466;
  font-size: 11px;
  font-weight: 700;
}

.climate-range-grid input {
  min-width: 0;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
  color: #17202a;
  font: inherit;
}

.climate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 10px 10px;
}

.climate-scale-actions {
  padding: 0;
  color: #607181;
  font-size: 11px;
}

.climate-scale-actions output {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.climate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2f4354;
  font-weight: 700;
}

.climate-panel select,
.climate-panel input[type="range"] {
  accent-color: #1f78b4;
}

.observatory-panel {
  border-color: rgba(56, 189, 248, 0.28);
}

.observatory-card {
  display: grid;
  gap: 9px;
  margin: 0 10px 10px;
  padding: 10px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(236, 249, 255, 0.94), rgba(255, 255, 255, 0.76));
  color: #24394b;
}

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

.observatory-card span {
  color: #607181;
  font-size: 12px;
  line-height: 1.35;
}

.observatory-actions,
.observatory-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 10px 10px;
}

.observatory-card-actions {
  padding: 8px 0 0;
}

.observatory-quicklooks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.observatory-quicklooks button {
  min-width: 0;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #2f4354;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.observatory-quicklooks button:hover {
  border-color: rgba(31, 120, 180, 0.45);
  box-shadow: 0 7px 16px rgba(8, 30, 46, 0.12);
}

.observatory-quicklooks img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  background: #07111d;
}

.observatory-quicklooks span {
  display: block;
  overflow: hidden;
  padding: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats {
  padding: 0 16px 10px;
  color: #5f6e7a;
  font-size: 13px;
}

.marker-list {
  flex: 1;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.marker-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  background: transparent;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
}

.marker-item:hover,
.marker-item:focus {
  background: rgba(17, 61, 92, 0.08);
  outline: none;
}

.marker-name {
  color: #17202a;
  font-size: 15px;
  font-weight: 700;
}

.marker-meta {
  color: #607181;
  font-size: 12px;
}

.tour-drawer {
  top: calc(16px + var(--site-header-offset));
  right: 16px;
  bottom: 16px;
  width: min(780px, calc(100vw - 430px));
  min-width: 420px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tour-drawer[data-mode="split"] {
  left: max(430px, 28vw);
  width: auto;
}

.tour-drawer[data-mode="overlay"] {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  width: min(760px, calc(100vw - 430px));
  height: min(72vh, 760px);
}

.tour-drawer[data-mode="full"] {
  top: calc(12px + var(--site-header-offset));
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  min-width: 0;
  z-index: 12;
}

.tour-drawer[hidden] {
  display: none;
}

.legend-panel {
  right: 16px;
  top: calc(86px + var(--site-header-offset));
  width: min(420px, calc(100vw - 430px));
  max-height: min(680px, calc(100vh - 118px));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.geology-info-panel {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 74px;
  width: min(430px, calc(100vw - 430px));
  max-height: min(520px, calc(100vh - 150px));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.geology-info-panel[hidden] {
  display: none;
}

.marker-geology-card {
  border-bottom: 1px solid rgba(16, 24, 32, 0.1);
  background: rgba(238, 245, 249, 0.72);
  padding: 10px 14px;
  max-height: 172px;
  overflow: auto;
}

.marker-geology-card.is-place-expanded {
  max-height: min(42vh, 420px);
}

.marker-geology-card[hidden] {
  display: none;
}

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

.legend-header {
  padding: 12px 14px;
}

.legend-header h2 {
  font-size: 17px;
}

.legend-content {
  width: 100%;
  height: min(590px, calc(100vh - 210px));
  background: #fff;
  overflow: auto;
  padding: 10px 12px 14px;
}

.geology-info-content {
  overflow: auto;
  padding: 10px 12px 14px;
}

.ficha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ficha-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(11, 79, 113, 0.22);
  border-radius: 7px;
  background: rgba(232, 248, 255, 0.78);
  color: #0b4f71;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.geo-result-section {
  margin-top: 10px;
}

.geo-result-section h3 {
  margin: 0 0 6px;
  color: #203246;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cross-section-preview {
  margin: 8px 0 10px;
}

.cross-section-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background: #fff;
}

.cross-section-preview figcaption {
  margin-top: 4px;
  color: #687a8b;
  font-size: 11px;
}

.legend-content h3 {
  margin: 12px 0 8px;
  color: #263849;
  font-size: 13px;
}

.legend-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #263849;
  font-size: 12px;
}

.legend-row img {
  max-width: 24px;
  max-height: 24px;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(16, 24, 32, 0.25);
  border-radius: 3px;
}

.legend-message,
.legend-link {
  color: #415466;
  font-size: 13px;
}

.geo-layer {
  margin: 0 0 8px;
  color: #51718d;
  font-size: 12px;
  font-weight: 700;
}

.weather-station-fiche {
  display: grid;
  gap: 10px;
}

.weather-station-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-left: 5px solid var(--station-color);
  border-radius: 8px;
  background: rgba(237, 246, 250, 0.9);
}

.weather-station-summary span {
  color: #526b7c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weather-station-summary strong {
  color: #17384d;
  font-size: 22px;
}

.geo-attribute {
  display: grid;
  grid-template-columns: minmax(92px, 32%) 1fr;
  gap: 8px;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  padding: 6px 0;
  color: #263849;
  font-size: 12px;
}

.geo-attribute strong {
  color: #415466;
}

.placename-card {
  margin-top: 4px;
  border-top: 1px solid rgba(16, 24, 32, 0.1);
}

.placename-toggle {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 4px;
  background: transparent;
  color: #173a53;
  text-align: left;
  cursor: pointer;
}

.placename-toggle:hover {
  background: rgba(255, 255, 255, 0.7);
}

.placename-toggle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.placename-toggle strong {
  font-size: 12px;
}

.placename-toggle small {
  overflow: hidden;
  color: #667b8d;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.placename-toggle i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms ease;
}

.placename-toggle[aria-expanded="true"] i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.placename-details {
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  padding: 10px 4px 4px;
}

.placename-details[hidden] {
  display: none;
}

.co2-lab-controls .geology-model-notice {
  border-left-color: #0891b2;
}

.co2-lab-summary {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #cbdde5;
  border-radius: 6px;
  background: #f5fbfd;
  color: #29485a;
  font-size: 12px;
}

.co2-lab-summary strong {
  color: #123b50;
  font-size: 12.5px;
}

.co2-fiche-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #4b6473;
  font-size: 12px;
}

.co2-fiche-well {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 5px;
  background: #0f617f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.co2-fiche-list {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: #334e5d;
}

.co2-fiche-list li {
  margin: 5px 0;
}

.co2-role-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
}

.co2-role-permafrost { background: #7dd3fc; }
.co2-role-aquifer { background: #2563eb; }
.co2-role-caprock { background: #475569; }
.co2-role-reservoir { background: #f59e0b; }

.co2-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.co2-overview-badges span {
  padding: 4px 7px;
  border: 1px solid #bfd4dd;
  border-radius: 999px;
  background: #f4fafc;
  color: #24566e;
  font-size: 10px;
  font-weight: 800;
}

.co2-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.co2-overview-metrics article {
  min-width: 0;
  padding: 8px;
  border: 1px solid #cbdde5;
  border-radius: 7px;
  background: #fbfdfe;
}

.co2-overview-metrics span,
.co2-overview-metrics small {
  display: block;
  color: #6c8390;
  font-size: 9.5px;
  font-weight: 800;
}

.co2-overview-metrics strong {
  display: block;
  margin: 2px 0;
  color: #123f54;
  font-size: 15px;
  line-height: 1.05;
}

.co2-overview-evidence,
.co2-stratigraphy-layout {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 12px 0;
}

.co2-depth-strip,
.co2-stratigraphy-track {
  position: relative;
  min-height: 255px;
  border: 1px solid #b9d2dc;
  border-radius: 7px;
  background: repeating-linear-gradient(180deg, #f8fcfd, #f8fcfd 23px, #eef6f9 24px);
  overflow: hidden;
}

.co2-depth-strip-segment,
.co2-stratigraphy-unit {
  position: absolute;
  left: 14px;
  right: 14px;
  border: 0;
  border-radius: 4px;
  opacity: 0.82;
  cursor: pointer;
}

.co2-depth-strip-segment:hover,
.co2-stratigraphy-unit:hover,
.co2-stratigraphy-card:hover {
  filter: brightness(1.05);
  outline: 2px solid rgba(8, 124, 166, 0.35);
}

.co2-depth-strip-segment.is-core { background: #334155; left: 28px; right: 28px; opacity: 0.22; }
.co2-depth-strip-segment.is-logging { background: #06b6d4; left: 8px; right: 42px; }
.co2-depth-strip-segment.is-test { background: #ef4444; left: 42px; right: 8px; }
.co2-depth-strip-segment.is-permafrost,
.co2-stratigraphy-unit.co2-role-permafrost { background: #7dd3fc; }
.co2-depth-strip-segment.is-aquifer,
.co2-stratigraphy-unit.co2-role-aquifer { background: #2563eb; }
.co2-depth-strip-segment.is-caprock,
.co2-stratigraphy-unit.co2-role-caprock { background: #475569; }
.co2-depth-strip-segment.is-reservoir,
.co2-stratigraphy-unit.co2-role-reservoir { background: #f59e0b; }

.co2-depth-strip-top,
.co2-depth-strip-base {
  position: absolute;
  left: 6px;
  z-index: 1;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: #4d6674;
  font-size: 9px;
  font-weight: 800;
}

.co2-depth-strip-top { top: 5px; }
.co2-depth-strip-base { bottom: 5px; }

.co2-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.co2-stratigraphy-scale {
  display: flex;
  justify-content: space-between;
  color: #607786;
  font-size: 9.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.co2-stratigraphy-unit {
  left: 6px;
  right: 6px;
  padding: 5px;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

.co2-stratigraphy-unit strong,
.co2-stratigraphy-unit span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co2-stratigraphy-unit strong {
  font-size: 10.5px;
}

.co2-stratigraphy-unit span {
  font-size: 9px;
  opacity: 0.88;
}

.co2-stratigraphy-cards {
  display: grid;
  gap: 7px;
}

.co2-stratigraphy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 6px;
  width: 100%;
  padding: 8px;
  border: 1px solid #c7d9e0;
  border-radius: 7px;
  background: #fbfdfe;
  color: #173f54;
  text-align: left;
  cursor: pointer;
}

.co2-stratigraphy-card strong,
.co2-stratigraphy-card small,
.co2-stratigraphy-card em {
  grid-column: 2;
}

.co2-stratigraphy-card small {
  color: #607786;
  font-size: 10px;
  font-weight: 700;
}

.co2-stratigraphy-card em {
  color: #7b8d95;
  font-size: 10px;
  font-style: normal;
}

.co2-measured-vs-interpreted {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.co2-measured-vs-interpreted article {
  padding: 8px;
  border-left: 3px solid #087ca6;
  border-radius: 6px;
  background: #f4fafc;
}

.co2-measured-vs-interpreted strong,
.co2-measured-vs-interpreted span {
  display: block;
}

.co2-measured-vs-interpreted strong {
  color: #123f54;
  font-size: 11.5px;
}

.co2-measured-vs-interpreted span {
  color: #496575;
  font-size: 10.5px;
}

.co2-test-timeline {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.co2-test-timeline button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d5b6a6;
  border-left: 4px solid #ef4444;
  border-radius: 7px;
  background: #fff8f3;
  color: #4b2d20;
  text-align: left;
  cursor: pointer;
}

.co2-test-timeline button:hover {
  background: #fff1e8;
}

.co2-test-timeline strong {
  font-size: 12px;
}

.co2-test-timeline span {
  color: #6f5a4e;
  font-size: 10.5px;
  font-weight: 700;
}

.co2-data-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 12px;
}

.co2-data-status article {
  padding: 8px;
  border: 1px solid #c7d9e0;
  border-radius: 7px;
  background: #fbfdfe;
}

.co2-data-status span,
.co2-data-status strong {
  display: block;
}

.co2-data-status span {
  color: #607786;
  font-size: 10px;
  font-weight: 800;
}

.co2-data-status strong {
  color: #123f54;
  font-size: 12px;
}

.co2-seismic-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 8px 0 12px;
}

.co2-seismic-workbench {
  padding: 10px;
  border: 1px solid #b8d0da;
  border-radius: 9px;
  background: linear-gradient(145deg, #f8fbfc, #eaf3f6);
}

.co2-seismic-workbench > header,
.co2-seismic-controls,
.co2-seismic-method {
  display: flex;
  gap: 10px;
}

.co2-seismic-workbench > header {
  align-items: flex-start;
  justify-content: space-between;
}

.co2-seismic-workbench h3 {
  margin: 2px 0 7px;
}

.co2-seismic-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #d6f4eb;
  color: #08634e;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.co2-seismic-controls {
  align-items: center;
  margin: 9px 0;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.co2-seismic-controls label:first-child {
  flex: 1;
}

.co2-seismic-controls label span,
.co2-seismic-controls output {
  font-size: 10px;
  font-weight: 800;
}

.co2-seismic-controls input[type="range"] {
  width: 100%;
}

.co2-seismic-polarity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.co2-show-curtain-button {
  flex: 0 0 auto;
  align-self: center;
  background: #0c6178;
  color: #fff;
  border-color: #084b5d;
}

.co2-primary-view-button {
  display: grid;
  width: 100%;
  gap: 2px;
  margin: 9px 0;
  padding: 10px 11px;
  border: 1px solid #063f51;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d6e87, #103e57);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(12, 64, 83, 0.2);
}

.co2-global-curtain-button {
  display: grid;
  width: calc(100% - 2px);
  gap: 3px;
  margin: 1px 1px 10px;
  padding: 12px;
  border: 1px solid #074f66;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f7891, #123f5a);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(8, 61, 80, 0.24);
}

.co2-global-curtain-button strong {
  font-size: 13px;
}

.co2-global-curtain-button span {
  color: #c8eaf1;
  font-size: 10px;
  line-height: 1.35;
}

.co2-primary-view-button strong {
  font-size: 12px;
}

.co2-primary-view-button span {
  color: #cbe9f1;
  font-size: 10px;
}

.co2-seismic-trace {
  margin: 0;
  min-height: 300px;
  border: 1px solid #c7d9e0;
  border-radius: 7px;
  background: #111;
  overflow: hidden;
}

.co2-seismic-trace svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 390px;
}

.co2-seismic-trace figcaption {
  padding: 5px 8px;
  border-top: 1px solid #d9e5ea;
  color: #dbe7ec;
  background: #182329;
  font-size: 10px;
}

.co2-seismic-background { fill: #f4f4f1; }
.co2-seismic-grid line { stroke: #b8b8b3; stroke-width: 0.45; }
.co2-seismic-grid text,
.co2-seismic-axis text { fill: #dce6ea; font-size: 9px; font-weight: 700; }
.co2-seismic-axis line { stroke: #dce6ea; }
.co2-seismic-fill { fill: #111; }
.co2-seismic-wiggle { fill: none; stroke: #111; stroke-width: 0.72; }
.co2-seismic-horizons path { fill: none; stroke: var(--horizon); stroke-width: 2.2; }
.co2-seismic-horizons text { fill: var(--horizon); font-size: 8px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 2px; }
.co2-seismic-well-tie line { stroke: #ffd400; stroke-width: 2; stroke-dasharray: 4 3; }
.co2-seismic-well-tie text { fill: #ffd400; font-size: 10px; font-weight: 900; paint-order: stroke; stroke: #111; stroke-width: 2px; }

.co2-seismic-method {
  flex-wrap: wrap;
  margin: 8px 0;
}

.co2-seismic-method article {
  flex: 1 1 42%;
  padding: 7px;
  border-radius: 6px;
  background: #fff;
}

.co2-seismic-method strong,
.co2-seismic-method span {
  display: block;
  font-size: 10px;
}

.co2-seismic-method span {
  margin-top: 2px;
  color: #5e7480;
}

.geology-seismicity-panel {
  margin: 8px 0 2px;
  border-color: #c9dbe3;
  background: linear-gradient(145deg, #f8fbfc, #edf5f7);
}

.geology-seismicity-panel > summary {
  color: #244f61;
}

.subsurface-catalog-controls .geology-model-notice {
  border-left-color: #6a7f8a;
}

.subsurface-data-card {
  --catalog-accent: #0c7896;
  display: grid;
  gap: 12px;
}

.subsurface-data-lead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--catalog-accent) 36%, #d8e2e7);
  border-radius: 9px;
  background: color-mix(in srgb, var(--catalog-accent) 8%, #fff);
}

.subsurface-data-lead > i {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--catalog-accent);
  box-shadow: 0 0 0 2px var(--catalog-accent);
}

.subsurface-data-lead strong {
  display: block;
  margin-bottom: 3px;
  color: var(--catalog-accent);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.subsurface-data-lead p {
  margin: 0;
}

.subsurface-data-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.subsurface-data-metrics > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #d7e2e7;
  border-radius: 8px;
  background: #f8fbfc;
}

.subsurface-data-metrics dt {
  margin-bottom: 4px;
  color: #647b87;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subsurface-data-metrics dd {
  margin: 0;
  color: #173f50;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.subsurface-source-link {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 7px;
  color: #fff;
  background: var(--catalog-accent);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.geophysical-method-controls {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #d5e1e6;
}

.geophysical-method-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.geophysical-method-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid #cfdee4;
  border-radius: 6px;
  color: #315364;
  background: #f8fbfc;
  font-size: 9px;
  font-weight: 800;
}

.geophysical-method-row label i {
  flex: 0 0 14px;
  width: 14px;
  height: 4px;
  border-radius: 999px;
}

.geophysical-method-row label i.is-seismic { background: #ff2f92; }
.geophysical-method-row label i.is-ert { background: #ff9f1c; }
.geophysical-method-row label i.is-gpr { background: #12cce5; }

.geophysical-method-row input {
  width: 12px;
  height: 12px;
  margin: 0;
}

.geophysical-survey-browser {
  display: grid;
  gap: 5px;
}

.geophysical-survey-browser > small {
  color: #607985;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.geophysical-survey-browser details {
  overflow: hidden;
  border: 1px solid #d0dee4;
  border-radius: 7px;
  background: #f8fbfc;
}

.geophysical-survey-browser summary {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  cursor: pointer;
  list-style: none;
}

.geophysical-survey-browser summary::-webkit-details-marker {
  display: none;
}

.geophysical-survey-browser summary > i {
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background: var(--survey-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--survey-accent) 13%, transparent);
}

.geophysical-survey-browser summary > span {
  display: grid;
  min-width: 0;
}

.geophysical-survey-browser summary strong {
  color: #173f50;
  font-size: 10px;
}

.geophysical-survey-browser summary small {
  color: #667e89;
  font-size: 8px;
}

.geophysical-survey-browser summary b {
  color: #365968;
  font-size: 8px;
}

.geophysical-survey-browser details > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px 8px 8px 23px;
  border-top: 1px solid #dce6ea;
}

.geophysical-data-status {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  color: #285062;
  background: #e5eef2;
  font-size: 8px;
  font-weight: 850;
}

.geophysical-data-status.is-published {
  color: #176447;
  background: #dff5e9;
}

.geophysical-data-status.is-mixed {
  color: #755109;
  background: #fff2cc;
}

.geophysical-survey-browser details button {
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--survey-accent) 45%, #aebfc7);
  border-radius: 5px;
  color: #294d5c;
  background: #fff;
  font: inherit;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.geophysical-survey-browser details button:hover,
.geophysical-survey-browser details button:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--survey-accent) 68%, #17323f);
}

.geophysical-preview-actions {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid #cbdbe1;
  border-radius: 7px;
  background: #f6fafb;
}

.geophysical-preview-actions small {
  color: #607985;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.geophysical-preview-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.geophysical-preview-actions button {
  padding: 5px 6px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #244d5e;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.geophysical-preview-actions button:first-child { background: #8e1d5b; }
.geophysical-preview-actions button:nth-child(2) { background: #a85b00; }
.geophysical-preview-actions button:nth-child(3) { background: #007a8a; }

.geophysical-preview-actions button:hover,
.geophysical-preview-actions button:focus-visible {
  filter: brightness(1.16);
}

.geology-info-panel:has(.geophysical-profile-viewer) {
  width: min(620px, calc(100vw - 520px));
  max-height: min(760px, calc(100vh - 116px));
}

.geology-info-panel.is-geophysical-analysis {
  border-radius: 10px;
}

.geology-info-panel.is-geophysical-analysis[data-geophysical-mode="split"] {
  top: calc(16px + var(--site-header-offset));
  left: max(430px, 28vw);
  right: 16px;
  bottom: 16px;
  width: auto;
  max-height: none;
}

.geology-info-panel.is-geophysical-analysis[data-geophysical-mode="overlay"] {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  width: min(760px, calc(100vw - 430px));
  height: min(72vh, 760px);
  max-height: none;
}

.geology-info-panel.is-geophysical-analysis .geology-info-content {
  padding: 8px 10px 10px;
}

.geology-info-panel.is-geophysical-analysis .subsurface-data-card {
  gap: 0;
}

.geology-info-panel.is-geophysical-analysis .subsurface-data-card > .subsurface-data-lead,
.geology-info-panel.is-geophysical-analysis .subsurface-data-card > .subsurface-data-metrics {
  display: none;
}

.geophysical-profile-viewer {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 42%, #bdcbd1);
  border-radius: 10px;
  background: #0b1720;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.geophysical-analysis-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.geophysical-analysis-tabs button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #a9bdc5;
  background: #132832;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.geophysical-analysis-tabs button.is-active {
  border-color: var(--profile-accent);
  color: #fff;
  background: color-mix(in srgb, var(--profile-accent) 30%, #17313d);
  box-shadow: inset 0 -2px 0 var(--profile-accent);
}

.geophysical-analysis-panel {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.geophysical-analysis-panel[hidden] {
  display: none;
}

.geophysical-profile-viewer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: #f5fbfd;
}

.geophysical-profile-viewer__header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.geophysical-profile-viewer__header small,
.geophysical-profile-scrubber small {
  color: color-mix(in srgb, var(--profile-accent) 72%, #fff);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.geophysical-profile-viewer__header strong {
  font-size: 13px;
  line-height: 1.25;
}

.geophysical-profile-viewer__header > span {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 56%, transparent);
  border-radius: 999px;
  color: #eaf7fa;
  background: color-mix(in srgb, var(--profile-accent) 18%, #10242f);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.geophysical-preview-stage {
  position: relative;
  width: 100%;
  height: clamp(150px, 28vh, 300px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #05090c;
  background-size: 100% 24px;
  cursor: crosshair;
  user-select: none;
}

.geophysical-preview-stage img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.geophysical-preview-cursor {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--profile-cursor);
  width: 2px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.75),
    0 0 9px var(--profile-accent);
  transform: translateX(-1px);
  pointer-events: none;
}

.geophysical-preview-cursor-dot {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: var(--profile-cursor);
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--profile-accent);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  pointer-events: none;
}

.geophysical-preview-axis {
  display: flex;
  justify-content: space-between;
  color: #93aab4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.geophysical-preview-empty {
  display: grid;
  gap: 5px;
  min-height: 118px;
  place-content: center;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--profile-accent) 62%, #6c7e86);
  border-radius: 7px;
  color: #dce9ed;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px),
    #0e202a;
  text-align: center;
}

.geophysical-preview-empty strong {
  color: #fff;
  font-size: 12px;
}

.geophysical-preview-empty p {
  max-width: 460px;
  margin: 0;
  color: #9fb4bd;
  font-size: 10px;
  line-height: 1.45;
}

.geophysical-profile-scrubber {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 7px;
  background: #132832;
}

.geophysical-profile-scrubber > div:first-child {
  display: grid;
  gap: 1px;
}

.geophysical-profile-scrubber > div:first-child strong {
  color: #fff;
  font-size: 15px;
}

.geophysical-profile-scrubber > div:first-child strong em {
  color: #8da5af;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.geophysical-profile-scrubber input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--profile-accent);
}

.geophysical-profile-shortcuts {
  display: flex;
  gap: 4px;
}

.geophysical-profile-shortcuts button,
.geophysical-preview-open {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 5px;
  color: #eaf5f8;
  background: #1c3946;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.geophysical-profile-shortcuts button {
  padding: 5px 6px;
  cursor: pointer;
}

.geophysical-profile-shortcuts button:hover,
.geophysical-profile-shortcuts button:focus-visible,
.geophysical-preview-open:hover,
.geophysical-preview-open:focus-visible {
  border-color: var(--profile-accent);
  background: color-mix(in srgb, var(--profile-accent) 24%, #17323f);
}

.geophysical-preview-caption {
  margin: 0;
  color: #afc0c7;
  font-size: 10px;
  line-height: 1.42;
}

.geophysical-preview-open {
  justify-self: start;
  padding: 6px 8px;
}

.geophysical-tab-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  margin: 0;
}

.geophysical-tab-metrics > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #122630;
}

.geophysical-tab-metrics dt {
  margin-bottom: 4px;
  color: #8da8b3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.geophysical-tab-metrics dd {
  margin: 0;
  color: #f2f8fa;
  font-size: 11px;
  font-weight: 750;
}

.geophysical-analysis-note {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 4px solid var(--profile-accent);
  border-radius: 7px;
  color: #c5d4da;
  background: #122630;
}

.geophysical-analysis-note span {
  color: color-mix(in srgb, var(--profile-accent) 70%, #fff);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.geophysical-analysis-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.geophysical-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.geophysical-file-actions a {
  padding: 7px 9px;
  border: 1px solid var(--profile-accent);
  border-radius: 6px;
  color: #fff;
  background: color-mix(in srgb, var(--profile-accent) 24%, #17313d);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 900px) {
  .geology-info-panel:has(.geophysical-profile-viewer) {
    width: auto;
  }

  .geophysical-profile-scrubber {
    grid-template-columns: 1fr;
  }

  .geophysical-profile-shortcuts {
    justify-content: space-between;
  }

  .geophysical-profile-shortcuts button {
    flex: 1;
  }

  .geology-info-panel.is-geophysical-analysis {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: 58vh;
  }
}

.co2-stratigraphy-3d-note {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid #9fc7d3;
  border-left: 4px solid #0f7891;
  border-radius: 7px;
  background: #edf8fa;
}

.co2-stratigraphy-3d-note strong {
  color: #0d4f62;
  font-size: 12px;
}

.co2-stratigraphy-3d-note span {
  color: #486773;
  font-size: 11px;
  line-height: 1.4;
}

.co2-paper-atlas {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.co2-paper-atlas-lead,
.co2-paper-figure-card header,
.co2-paper-reservoir-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.co2-paper-atlas-lead {
  padding: 11px 12px;
  border-radius: 12px;
  color: #eefbff;
  background:
    radial-gradient(circle at 88% 20%, rgba(85, 210, 211, .3), transparent 34%),
    linear-gradient(130deg, #073d55, #0b7890);
  box-shadow: 0 12px 28px rgba(5, 63, 82, .18);
}

.co2-paper-atlas-lead h3,
.co2-paper-figure-card h3 {
  margin: 2px 0 0;
}

.co2-paper-atlas-lead h3 {
  color: #fff;
  font-size: 14px;
}

.co2-paper-atlas-lead .eyebrow {
  color: #bdeef3;
  font-size: 9px;
}

.co2-paper-atlas-lead a {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.co2-paper-figure-card {
  padding: 11px;
  border: 1px solid #c5dce4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfeff, #f1f8fa);
  box-shadow: 0 8px 22px rgba(17, 62, 78, .07);
}

.co2-paper-figure-card header span {
  display: block;
  color: #557483;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.co2-paper-figure-card header h3 {
  color: #123f54;
  font-size: 12px;
}

.co2-paper-figure-card header b {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 6px;
  color: #fff;
  background: #0a7892;
  font-size: 9px;
  letter-spacing: .06em;
}

.co2-paper-figure-card > p,
.co2-paper-citation {
  margin: 9px 0 0;
  color: #5f7783;
  font-size: 10px;
  line-height: 1.45;
}

.co2-paper-figure-layout {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.co2-paper-depth-track {
  position: relative;
  min-height: 360px;
  border: 1px solid #b9d2dc;
  border-radius: 9px;
  overflow: hidden;
  background: #eaf2f5;
}

.co2-paper-depth-top,
.co2-paper-depth-base {
  position: absolute;
  right: 3px;
  z-index: 3;
  padding: 1px 3px;
  border-radius: 3px;
  color: #1c4557;
  background: rgba(255,255,255,.8);
  font-size: 8px;
  font-weight: 900;
  pointer-events: none;
}

.co2-paper-depth-top { top: 2px; }
.co2-paper-depth-base { bottom: 2px; }

.co2-paper-depth-segment {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 3px 4px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(20, 52, 63, .25);
  color: #153846;
  background: var(--paper-color);
  text-align: left;
  cursor: pointer;
}

.co2-paper-depth-segment strong,
.co2-paper-depth-segment span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co2-paper-depth-segment strong { font-size: 8.5px; }
.co2-paper-depth-segment span { font-size: 7.5px; opacity: .8; }

.co2-paper-interval-list,
.co2-paper-facies-list {
  display: grid;
  gap: 5px;
  align-content: start;
}

.co2-paper-interval-list button,
.co2-paper-facies-list button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid #d2e1e7;
  border-radius: 8px;
  color: #173e4f;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.co2-paper-interval-list i,
.co2-paper-facies-list i {
  width: 7px;
  height: 100%;
  min-height: 26px;
  border-radius: 4px;
  background: var(--paper-color);
}

.co2-paper-interval-list strong,
.co2-paper-interval-list small,
.co2-paper-facies-list strong,
.co2-paper-facies-list small {
  display: block;
}

.co2-paper-interval-list strong,
.co2-paper-facies-list strong { font-size: 10px; }
.co2-paper-interval-list small,
.co2-paper-facies-list small { margin-top: 2px; color: #69808b; font-size: 8.5px; }
.co2-paper-interval-list em,
.co2-paper-facies-list em { color: #5d7480; font-size: 8.5px; font-style: normal; font-weight: 800; }

.co2-paper-reservoir-head {
  margin: 10px 0 5px;
  color: #54727f;
  font-size: 9px;
}

.co2-paper-reservoir-track {
  position: relative;
  height: 82px;
  overflow: hidden;
  border: 1px solid #afcbd5;
  border-radius: 9px;
  background: #e5eff3;
}

.co2-paper-reservoir-track button {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 5px 3px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(26, 59, 70, .26);
  color: #143946;
  background: var(--paper-color);
  cursor: pointer;
}

.co2-paper-reservoir-track strong,
.co2-paper-reservoir-track span {
  display: block;
  font-size: 8px;
  line-height: 1.15;
}

.co2-paper-reservoir-track span { margin-top: 4px; opacity: .78; }
.co2-paper-facies-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.co2-paper-jump-card .mini-button { margin-top: 7px; }
.co2-paper-citation { padding-left: 9px; border-left: 3px solid #1b92a5; }

.co2-paper-depth-segment:hover,
.co2-paper-interval-list button:hover,
.co2-paper-facies-list button:hover,
.co2-paper-reservoir-track button:hover {
  filter: brightness(1.04);
  outline: 2px solid rgba(8, 124, 166, .35);
  outline-offset: -2px;
}

.co2-core-archive-summary {
  padding: 12px;
  border: 1px solid #c3d9e1;
  border-radius: 8px;
  background: #f7fbfc;
}

.co2-core-archive-summary strong {
  color: #123f54;
}

.co2-core-archive-summary p {
  color: #526d78;
  font-size: 11px;
  line-height: 1.45;
}

.co2-log-figure {
  margin: 8px 0 12px;
  overflow: hidden;
  border: 1px solid #cbdde5;
  border-radius: 6px;
  background: #fff;
}

.co2-log-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.co2-log-figure figcaption {
  padding: 7px 9px;
  border-top: 1px solid #dce8ed;
  color: #607786;
  font-size: 11px;
}

.co2-log-bg { fill: #fbfdfe; }
.co2-log-grid { stroke: #dbe7ec; stroke-width: 1; }
.co2-log-separator { stroke: #b8cbd4; stroke-width: 1; }
.co2-log-axis, .co2-log-range { fill: #607786; font: 10px Arial, sans-serif; }
.co2-log-title { fill: #183e52; font: 600 11px Arial, sans-serif; }
.co2-log-axis-title { fill: #496575; font: 600 10px Arial, sans-serif; }

.co2-fiche-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.co2-fiche-links a {
  padding: 6px 9px;
  border: 1px solid #b9d1dc;
  border-radius: 5px;
  background: #f4fafc;
  color: #0b5876;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.co2-fiche-links a:hover {
  background: #e8f5f9;
}

.co2-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.co2-well-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 10px 0 12px;
  padding-bottom: 4px;
}

.co2-well-tabs button {
  border: 1px solid #bfd2dc;
  border-radius: 999px;
  background: #f3f8fa;
  color: #36576a;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  white-space: nowrap;
}

.co2-well-tabs button.is-active {
  border-color: #087ca6;
  background: #087ca6;
  color: #fff;
}

.co2-well-tab-panel { display: none; }
.co2-well-tab-panel.is-active { display: block; }

.co2-depth-control {
  display: grid;
  gap: 7px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid #f2b3ad;
  border-radius: 7px;
  background: #fff7f6;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 700;
}

.co2-depth-control span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.co2-depth-control input { width: 100%; accent-color: #ef4136; }

.co2-log-volume-select {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  color: #244d62;
  font-size: 11.5px;
  font-weight: 700;
}

.co2-log-volume-select select {
  width: 100%;
  border: 1px solid #b9ced8;
  border-radius: 6px;
  background: #fff;
  color: #173f54;
  padding: 7px 8px;
}

.co2-log-volume-legend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  color: #607786;
  font-size: 9.5px;
  font-weight: 700;
}

.co2-log-volume-legend small {
  grid-column: 1 / -1;
  color: #244d62;
  font-size: 10px;
  text-align: center;
}

.co2-log-volume-legend i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8f3c7, #f1c453, #c47a2c, #5b3418);
}

.co2-depth-readout {
  margin: 8px 0 12px;
  border: 1px solid #b9d2dc;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fcfd, #eef7f9);
  overflow: hidden;
}

.co2-depth-readout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #123f54;
  color: #fff;
}

.co2-depth-readout-head strong {
  font-size: 15px;
}

.co2-depth-readout-head span {
  color: #cbeaf3;
  font-size: 11px;
  font-weight: 700;
}

.co2-depth-readout dl {
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  margin: 0;
}

.co2-depth-readout dt,
.co2-depth-readout dd {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid #d6e6eb;
  font-size: 11px;
}

.co2-depth-readout dt {
  color: #496575;
  font-weight: 800;
}

.co2-depth-readout dd {
  color: #173f54;
  font-weight: 700;
}

.co2-depth-readout dd span:not(.co2-role-swatch) {
  display: block;
  margin-top: 2px;
  color: #6b8794;
  font-size: 9.5px;
  font-weight: 700;
}

.co2-depth-readout dd.is-muted {
  color: #7b8d95;
  font-style: italic;
}

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

.co2-compare-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #c9d9e0;
  border-radius: 7px;
  background: #fbfdfe;
}

.co2-core-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.co2-core-photo {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 130px;
  border: 1px solid #c8d8df;
  border-radius: 7px;
  background: #102733;
}

.co2-core-photo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.co2-core-photo span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(4, 25, 35, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
}

.co2-resource-library {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.co2-resource-library a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #c7d8e0;
  border-radius: 7px;
  background: #f7fbfc;
  color: #174f68;
  text-decoration: none;
}

.co2-resource-library a:hover { background: #eaf6fa; }
.co2-resource-library strong { font-size: 11.5px; }
.co2-resource-library span { color: #607786; font-size: 10.5px; white-space: nowrap; }

@media (max-width: 760px) {
  .co2-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co2-overview-evidence,
  .co2-stratigraphy-layout,
  .co2-seismic-panel { grid-template-columns: 1fr; }
  .co2-data-status { grid-template-columns: 1fr; }
  .co2-depth-strip,
  .co2-stratigraphy-track { min-height: 220px; }
  .co2-seismic-trace { min-height: 180px; }
  .co2-compare-grid { grid-template-columns: 1fr; }
  .co2-core-gallery { grid-template-columns: 1fr; }
  .co2-paper-figure-layout { grid-template-columns: 76px minmax(0, 1fr); }
  .co2-paper-facies-list { grid-template-columns: 1fr; }
}

.co2-correlation-figure {
  margin: 10px 0 14px;
}

.co2-correlation-scroll {
  overflow-x: auto;
  border: 1px solid #c9d9e0;
  border-radius: 6px;
  background: #fff;
  overscroll-behavior-x: contain;
}

.co2-correlation-scroll img {
  display: block;
  width: 1120px;
  max-width: none;
  height: auto;
}

.co2-correlation-figure figcaption {
  margin-top: 6px;
  color: #607786;
  font-size: 10.5px;
  line-height: 1.4;
}

.co2-fiche-credit {
  margin-top: 12px;
  color: #718694;
  font-size: 10.5px;
  line-height: 1.45;
}

.placename-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.placename-title-row > div {
  display: grid;
  gap: 2px;
}

.placename-title-row strong {
  color: #18374d;
  font-size: 14px;
}

.placename-title-row span:not(.placename-status) {
  color: #65798a;
  font-size: 11px;
  text-transform: capitalize;
}

.placename-status {
  border: 1px solid rgba(29, 112, 78, 0.2);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(223, 247, 236, 0.82);
  color: #1c6b4b;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}

.placename-copy {
  margin: 0 0 8px;
  color: #263849;
  font-size: 12px;
  line-height: 1.45;
}

.tour-card-actions {
  margin: 10px 0;
}

.tour-card-actions a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(11, 79, 113, 0.22);
  border-radius: 7px;
  padding: 5px 10px;
  background: linear-gradient(135deg, rgba(232, 246, 253, 0.95), rgba(255, 255, 255, 0.98));
  color: #0b4f71;
  font-size: 12px;
  text-decoration: none;
}

.tour-card-actions a span {
  display: grid;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: #0b4f71;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.tour-card-actions a:hover {
  border-color: rgba(11, 79, 113, 0.44);
  background: #fff;
}

.placename-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.placename-actions button,
.placename-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid rgba(11, 79, 113, 0.22);
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.8);
  color: #0b4f71;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.placename-actions button:hover,
.placename-actions a:hover {
  border-color: rgba(11, 79, 113, 0.42);
  background: #fff;
}

.placename-credit {
  margin: 8px 0 0;
  color: #718493;
  font-size: 10px;
}

.geo-coords {
  margin: 8px 0 0;
  color: #607181;
  font-size: 11px;
}

.startup-error {
  position: absolute;
  inset: 20px;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 8px;
  border-radius: 8px;
  background: #101820;
  color: #fff;
  text-align: center;
}

.startup-error strong {
  font-size: 22px;
}

.startup-error span {
  color: #c8d2dc;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(17, 61, 92, 0.16);
  border-radius: 10px;
  background: rgba(238, 245, 249, 0.88);
  padding: 4px;
}

.geology-info-window-modes {
  display: none;
  align-items: center;
  gap: 6px;
}

.geology-info-panel.is-geophysical-analysis .geology-info-window-modes {
  display: flex;
}

.tour-mode-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: #113d5c;
  box-shadow: none;
}

.tour-mode-button.is-active {
  background: linear-gradient(180deg, #15547b 0%, #0c3450 100%);
  color: #fff;
  box-shadow: 0 5px 12px rgba(8, 30, 46, 0.22);
}

.tour-mode-button:hover {
  transform: none;
}

.mode-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 18px;
  box-sizing: border-box;
}

.mode-icon i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.mode-icon::before,
.mode-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.mode-icon-split {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.mode-icon-split::before {
  top: 2px;
  bottom: 2px;
  left: 7px;
  border-left: 1.8px solid currentColor;
}

.mode-icon-split i:first-child {
  display: none;
}

.mode-icon-split i:last-child {
  display: none;
}

.mode-icon-overlay {
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.mode-icon-overlay::before {
  right: 2px;
  bottom: 2px;
  width: 9px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.92;
}

.mode-icon-overlay i:first-child {
  display: none;
}

.mode-icon-overlay i:last-child {
  display: none;
}

.mode-icon-full {
  background:
    linear-gradient(currentColor, currentColor) left top / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 8px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 8px no-repeat;
}

.mode-icon-full i:first-child {
  display: none;
}

.mode-icon-full i:last-child {
  display: none;
}

.tour-actions .icon-button {
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 18px;
  line-height: 28px;
  box-shadow: none;
}

#tourFrame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.cesium-viewer-bottom,
.cesium-credit-lightbox-overlay {
  display: none;
}

.cesium-viewer-fullscreenContainer {
  top: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 6;
}

@media (max-width: 900px) {
  .map-panel {
    right: 16px;
    bottom: auto;
    max-height: 44vh;
  }

  .tour-drawer {
    top: auto;
    left: 16px;
    right: 16px;
    width: auto;
    min-width: 0;
    height: 52vh;
  }

  .geology-info-panel,
  .legend-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .geology-info-panel {
    bottom: 16px;
  }
}
