:root {
  --bg: #07131d;
  --panel: rgba(18, 24, 27, 0.92);
  --panel-strong: rgba(28, 34, 36, 0.96);
  --line: rgba(217, 226, 220, 0.16);
  --text: #f1f5ef;
  --muted: #a9b8b1;
  --accent: #60d5b5;
  --amber: #f1c45d;
  --coral: #ee7b69;
  --green: #83d483;
  --blue: #76b7f2;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --analysis-gutter: 1rem;
  --analysis-max-width: 1800px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 169, 214, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(113, 226, 194, 0.18), transparent 24%),
    linear-gradient(160deg, #030c14 0%, #07131d 36%, #0c1f2f 100%);
  font-family: "Noto Sans SC", "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 80%);
}

button,
select {
  font: inherit;
}

.analysis-shell {
  width: min(var(--analysis-max-width), calc(100vw - (var(--analysis-gutter) * 2)));
  margin: 0 auto;
  padding: 18px 0 40px;
}

@media (min-width: 1500px) {
  :root {
    --analysis-gutter: 1rem;
    --analysis-max-width: calc(100vw - 2rem);
  }
}

.analysis-hero {
  padding: 18px 0 20px;
}

.analysis-topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(79, 211, 178, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(16, 55, 48, 0.78), rgba(7, 14, 16, 0.9)),
    rgba(7, 14, 16, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-link,
.inline-control,
.select-field select,
.site-button,
.region-button {
  border: 1px solid var(--line);
  background: rgba(10, 15, 17, 0.76);
  color: var(--text);
}

.main-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.main-link:hover {
  border-color: rgba(99, 214, 182, 0.55);
}

.main-link.is-active {
  border-color: rgba(99, 214, 182, 0.76);
  background: rgba(99, 214, 182, 0.16);
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.inline-control select,
.select-field select {
  outline: 0;
}

.inline-control select {
  border: 0;
  color: var(--text);
  background: transparent;
}

.inline-control option,
.select-field option {
  color: #111719;
  background: #f4f7f2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 18px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  max-width: 980px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 3.35rem);
  line-height: 1.02;
  white-space: nowrap;
}

h2 {
  font-size: 1.04rem;
}

h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-copy,
.panel-head p,
.status-line,
.method-copy,
.method-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 900px;
  margin-top: 12px;
}

.control-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.control-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  justify-self: end;
  width: min(100%, 560px);
}

.control-card.is-relocated {
  display: none;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(150px, 0.62fr);
  gap: 12px;
  align-items: end;
}

.select-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.select-field[hidden],
.compact-map-control[hidden],
.q2-gradient-control[hidden] {
  display: none !important;
}

.select-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
}

.analysis-window-field {
  min-width: min(520px, 100%);
}

.analysis-window-field > select[hidden] {
  display: none !important;
}

.analysis-window-field > select:not([hidden]) {
  margin-bottom: 2px;
}

.analysis-time-slider-shell {
  display: grid;
  gap: 8px;
  min-width: 260px;
  padding: 9px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.76);
}

.analysis-time-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analysis-time-slider-head strong {
  color: var(--text);
  font-size: 0.9rem;
}

.analysis-time-slider-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.analysis-time-slider-row > span {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.analysis-time-range-wrap {
  position: relative;
  display: grid;
  min-height: 34px;
  align-items: center;
}

.analysis-time-range-wrap input {
  width: 100%;
  accent-color: var(--accent);
}

.analysis-time-ticks {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;
  height: 16px;
  pointer-events: none;
}

.analysis-time-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
}

.analysis-time-tick i {
  width: 1px;
  height: 5px;
  background: rgba(217, 226, 220, 0.46);
}

.analysis-time-tick b {
  font-weight: 700;
}

.analysis-month-slider-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.76);
}

.analysis-month-slider-shell.is-button-months {
  padding: 8px;
}

.analysis-month-slider-shell.is-button-months .analysis-month-slider-head {
  margin-bottom: -2px;
}

.analysis-month-slider-shell.is-button-months .analysis-month-slider-head strong,
.analysis-month-slider-shell.is-button-months .analysis-month-slider-row {
  display: none;
}

.analysis-month-button-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: 6px;
}

.analysis-month-button {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 13, 15, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.analysis-month-button:hover,
.analysis-month-button:focus-visible,
.analysis-month-button.is-active {
  border-color: rgba(96, 213, 181, 0.78);
  color: var(--text);
  background: rgba(96, 213, 181, 0.18);
  box-shadow: inset 0 0 0 1px rgba(96, 213, 181, 0.14);
}

.analysis-month-slider-head,
.q2-month-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analysis-month-slider-head span,
.analysis-month-slider-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.analysis-month-slider-head strong {
  color: var(--text);
  font-size: 0.96rem;
}

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

.analysis-month-slider-row input {
  width: 100%;
  accent-color: var(--accent);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  padding: 16px;
}

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

.map-controls-left {
  display: flex;
  align-items: end;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.analysis-control-slot {
  display: contents;
}

.compact-map-control {
  flex: 0 0 auto;
  width: min(230px, 32vw);
}

.analysis-map-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}

.analysis-map-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.analysis-map-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(126, 142, 146, 0.45);
  border: 1px solid rgba(194, 208, 214, 0.34);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.analysis-map-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef5f2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease;
}

.analysis-map-toggle input:checked + .analysis-map-toggle-switch {
  background: #e9ece4;
  border-color: rgba(245, 248, 240, 0.8);
}

.analysis-map-toggle input:checked + .analysis-map-toggle-switch::after {
  transform: translateX(16px);
  background: #111719;
}

body.minimal-basemap #analysis-map {
  background: #ffffff;
}

.analysis-month-slider-shell.compact-map-control {
  width: auto;
  min-width: 238px;
}

.analysis-invalid-filter.compact-map-control {
  width: auto;
  min-width: 118px;
}

.clear-selection-button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(96, 213, 181, 0.42);
  border-radius: 999px;
  background: rgba(96, 213, 181, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.clear-selection-button.compact-map-control {
  width: auto;
  min-width: 132px;
  align-self: end;
}

.clear-selection-button:hover:not(:disabled),
.clear-selection-button:focus-visible:not(:disabled) {
  border-color: rgba(96, 213, 181, 0.82);
  background: rgba(96, 213, 181, 0.18);
  color: var(--text);
}

.clear-selection-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.analysis-invalid-filter {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 42px;
  align-content: end;
  color: var(--muted);
  font-size: 0.82rem;
}

.analysis-invalid-filter-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
}

.analysis-info-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(96, 213, 181, 0.55);
  border-radius: 50%;
  background: rgba(10, 15, 17, 0.74);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.analysis-info-button:hover,
.analysis-info-button:focus-visible {
  border-color: rgba(96, 213, 181, 0.9);
  background: rgba(96, 213, 181, 0.16);
}

.analysis-info-popover {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1200;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(70vh, 540px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(96, 213, 181, 0.32);
  border-radius: 10px;
  background: rgba(5, 15, 24, 0.96);
  color: var(--text);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.analysis-info-popover[hidden] {
  display: none;
}

.source-info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(217, 226, 220, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}

.source-info-close:hover,
.source-info-close:focus-visible {
  border-color: rgba(96, 213, 181, 0.58);
  color: var(--text);
}

.analysis-info-popover .status-line {
  margin-right: 26px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.analysis-threshold-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.analysis-threshold-control input {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 15, 17, 0.84);
  color: var(--text);
}

.analysis-threshold-control select {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 15, 17, 0.84);
  color: var(--text);
}

.analysis-final-gate-row {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(96, 213, 181, 0.22);
  border-radius: 8px;
  background: rgba(96, 213, 181, 0.07);
  font-size: 0.78rem;
}

.analysis-final-gate-row span {
  color: var(--muted);
}

.analysis-final-gate-row strong {
  color: var(--text);
  font-weight: 800;
}

.analysis-threshold-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend-row {
  display: none !important;
}

.legend-row.is-empty {
  display: none;
}

.layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.72);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.layer-toggle[hidden] {
  display: none;
}

.layer-toggle:hover,
.layer-toggle:focus-visible {
  border-color: rgba(96, 213, 181, 0.55);
  color: var(--text);
}

.layer-toggle.is-active {
  border-color: rgba(96, 213, 181, 0.58);
  background: rgba(96, 213, 181, 0.12);
  color: var(--text);
}

.layer-toggle:not(.is-active) {
  opacity: 0.52;
}

.layer-toggle:not(.is-active) .legend-chip {
  filter: grayscale(0.75);
}

.legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-chip.high {
  background: var(--green);
}

.legend-chip.low {
  background: var(--coral);
}

.legend-chip.local {
  background: var(--amber);
}

.legend-chip.local-gradient {
  background: linear-gradient(135deg, #2166ac, #9fd744, #d7191c);
}

.legend-chip.seasonal {
  background: #e8d268;
}

.legend-chip.dominant {
  border: 1px solid rgba(241, 245, 239, 0.5);
  background:
    repeating-linear-gradient(45deg, var(--blue) 0 2px, transparent 2px 5px),
    rgba(118, 183, 242, 0.16);
}

.legend-chip.som {
  border: 1px solid rgba(241, 245, 239, 0.5);
  background:
    repeating-linear-gradient(135deg, #4cc9f0 0 2px, transparent 2px 5px),
    rgba(76, 201, 240, 0.16);
}

.analysis-map-stage {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#analysis-map {
  position: absolute;
  inset: 0;
}

.analysis-map-overlay {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(96, 213, 181, 0.28);
  border-radius: 999px;
  background: rgba(5, 15, 24, 0.9);
  color: var(--text);
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.analysis-map-overlay.is-visible {
  display: inline-flex;
}

.map-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: analysis-spin 800ms linear infinite;
}

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

.analysis-map-legend {
  display: none !important;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: min(300px, calc(100% - 28px));
  padding: 12px;
  border: 1px solid rgba(217, 226, 220, 0.18);
  border-radius: 12px;
  background: rgba(5, 15, 24, 0.84);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.analysis-map-legend-title {
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text);
}

.analysis-map-legend-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f1f7a, #2166ac, #1fa187, #9fd744, #fdae61, #d7191c);
}

.analysis-map-legend-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
}

.selected-feature-panel {
  margin: 18px 0;
}

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

.selected-feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.selected-feature-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-feature-title-row h2 {
  margin: 0;
}

.selected-feature-badge {
  min-width: 84px;
  padding: 6px 10px;
  border: 1px solid rgba(96, 213, 181, 0.35);
  border-radius: 999px;
  color: var(--accent);
  text-align: center;
  font-size: 0.82rem;
  background: rgba(96, 213, 181, 0.08);
}

.settlement-version-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: min(280px, 100%);
}

.settlement-version-button {
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
}

.settlement-version-button:hover,
.settlement-version-button:focus-visible {
  border-color: rgba(96, 213, 181, 0.55);
  color: var(--text);
}

.settlement-version-button.is-active {
  border-color: rgba(96, 213, 181, 0.72);
  background: rgba(96, 213, 181, 0.14);
  color: var(--text);
}

.selected-feature-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(160px, 0.16fr) minmax(0, 0.5fr);
  gap: 14px;
  align-items: start;
}

.selected-feature-left {
  display: grid;
  gap: 12px;
  align-content: start;
}

.selected-feature-core {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.selected-feature-core-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.selected-feature-core-row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.selected-feature-core-row.is-primary {
  align-items: baseline;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(217, 226, 220, 0.12);
}

.selected-feature-core-row.is-primary strong {
  color: var(--accent);
  font-size: 1.24rem;
}

.feature-error-copy {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.feature-error-copy strong {
  color: #ffd36a;
  font-size: 0.9rem;
}

.feature-error-copy p {
  margin: 0;
}

.selected-feature-settlements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.settlement-button {
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.76);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.settlement-button:hover,
.settlement-button:focus-visible,
.settlement-button.is-active {
  border-color: rgba(96, 213, 181, 0.68);
  color: var(--text);
  background: rgba(96, 213, 181, 0.12);
}

.selected-feature-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  align-items: start;
  align-content: start;
}

.selected-feature-profiles.profile-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.selected-feature-profiles.profile-count-2,
.selected-feature-profiles.profile-count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-profile-legend {
  display: grid;
  align-self: start;
  gap: 9px;
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.026);
  font-size: 0.78rem;
}

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

.feature-profile-legend-title {
  color: var(--text);
  font-weight: 700;
}

.feature-profile-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-profile-legend-line {
  width: 24px;
  height: 0;
  border-top: 3px solid rgba(169, 184, 177, 0.46);
  border-radius: 999px;
}

.feature-profile-legend-line.is-selected {
  border-top-color: var(--blue);
}

.feature-profile-legend-line.is-global {
  border-top-color: #050505;
  border-top-width: 4px;
}

.feature-profile-card {
  display: flex;
  height: 324px;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
  flex-direction: column;
}

.feature-profile-title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.feature-profile-svg {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

.selected-feature-empty-profiles {
  align-self: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.feature-profile-tick {
  fill: var(--muted);
  color: var(--muted);
  font-size: 7.2px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(7, 19, 29, 0.92);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.feature-profile-axis-label {
  fill: var(--text);
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(7, 19, 29, 0.96);
  stroke-width: 2.4px;
  stroke-linejoin: round;
}

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

.stat {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.chart {
  width: 100%;
  min-height: 280px;
}

.tall-chart {
  min-height: 360px;
}

.question-tabs-section {
  margin-top: 18px;
}

.question-tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.question-tab {
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.76);
  color: var(--muted);
  cursor: pointer;
}

.question-tab:hover,
.question-tab:focus-visible {
  border-color: rgba(96, 213, 181, 0.55);
  color: var(--text);
}

.question-tab.is-active {
  border-color: rgba(96, 213, 181, 0.75);
  background: rgba(96, 213, 181, 0.16);
  color: var(--text);
}

.questions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

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

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

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

.stack-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.coupling-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.coupling-heatmap {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.som-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 14px;
  align-items: start;
}

.som-chart {
  min-height: 420px;
}

.som-feature-chart {
  min-height: 240px;
  margin-top: 10px;
}

#som-cell-list {
  gap: 12px;
}

#som-cell-list .som-cell-group {
  display: grid;
  gap: 7px;
}

#som-cell-list .som-cell-group h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.2;
}

#som-cell-list .som-cell-group .stack-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#som-cell-list .som-selected-group {
  order: -1;
}

#som-cell-list .som-selected-group .stack-list {
  grid-template-columns: 1fr;
}

.region-button,
.site-button,
.local-card,
.season-card,
.seasonal-variability-card,
.dominant-pattern-card {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.region-button,
.site-button,
.seasonal-variability-card {
  cursor: pointer;
}

.region-button:hover,
.site-button:hover,
.seasonal-variability-card:hover,
.dominant-pattern-card:hover,
.dominant-pattern-card:focus-visible {
  border-color: rgba(96, 213, 181, 0.55);
}

.local-card,
.season-card,
.seasonal-variability-card,
.dominant-pattern-card,
.som-cell-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.som-cell-card {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  outline: 0;
}

.som-cell-card:hover,
.som-cell-card:focus-visible,
.som-cell-card.is-active {
  border-color: var(--config-color, rgba(76, 201, 240, 0.82));
  background: color-mix(in srgb, var(--config-color, #4cc9f0) 12%, rgba(255, 255, 255, 0.025));
}

.som-cell-card.is-active {
  box-shadow: 0 0 0 1px var(--config-color, rgba(76, 201, 240, 0.38)), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.som-selected-group .som-cell-card.is-active {
  border-color: var(--config-color, rgba(241, 245, 239, 0.95));
  background: color-mix(in srgb, var(--config-color, #4cc9f0) 18%, rgba(96, 213, 181, 0.1));
}

.som-cell-card .item-topline {
  gap: 7px;
}

.som-cell-card .item-title {
  font-size: 0.78rem;
  line-height: 1.22;
}

.som-cell-card .badge {
  padding: 2px 6px;
  font-size: 0.66rem;
}

.som-cell-card .item-meta {
  margin-top: 5px;
  font-size: 0.68rem;
  line-height: 1.34;
}

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

.dominant-pattern-group,
.dominant-pattern-stack {
  display: grid;
  gap: 10px;
}

.dominant-pattern-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dominant-pattern-group-head,
.dominant-pattern-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dominant-pattern-group-head {
  flex-wrap: wrap;
}

.dominant-pattern-group-title {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dominant-sort-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 190px;
}

.dominant-version-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: min(360px, 100%);
}

.dominant-sort-button,
.dominant-version-button {
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
}

.dominant-sort-button:hover,
.dominant-sort-button:focus-visible,
.dominant-version-button:hover,
.dominant-version-button:focus-visible {
  border-color: rgba(96, 213, 181, 0.55);
  color: var(--text);
}

.dominant-sort-button.is-active,
.dominant-version-button.is-active {
  border-color: rgba(96, 213, 181, 0.72);
  background: rgba(96, 213, 181, 0.14);
  color: var(--text);
}

.dominant-pattern-card {
  --config-color: var(--blue);
  cursor: pointer;
  outline: 0;
  padding: 10px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dominant-pattern-card .item-title {
  font-size: 0.86rem;
  line-height: 1.25;
}

.dominant-pattern-card .item-meta {
  font-size: 0.76rem;
  line-height: 1.42;
}

.dominant-pattern-card .badge {
  font-size: 0.68rem;
}

.dominant-pattern-card.is-active {
  border-color: var(--config-color);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 1px var(--config-color);
}

.feature-color-swatch {
  display: inline-block;
  width: 18px;
  height: 11px;
  margin-right: 7px;
  border-radius: 3px;
  vertical-align: -1px;
  background: var(--config-color);
  box-shadow: 0 0 0 1px rgba(241, 245, 239, 0.22), 0 0 14px color-mix(in srgb, var(--config-color) 44%, transparent);
}

.feature-efficiency-badge {
  font-size: 0.78rem;
  background: color-mix(in srgb, var(--config-color) 22%, rgba(96, 213, 181, 0.12));
}

.feature-efficiency-lead {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.82rem;
}

.dominant-pattern-card.tail-low .badge {
  background: rgba(238, 123, 105, 0.16);
  color: #ffab9c;
}

.dominant-pattern-card.tail-middle .badge {
  background: rgba(241, 196, 93, 0.16);
  color: #f1c45d;
}

.dominant-style-swatch {
  --config-gap: 8px;
  --config-line: 3px;
  display: inline-block;
  width: 26px;
  height: 16px;
  margin-right: 6px;
  border: 1px solid rgba(241, 245, 239, 0.46);
  border-radius: 4px;
  vertical-align: -4px;
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.02);
}

.dominant-style-swatch.motif-diag {
  background-image: repeating-linear-gradient(45deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap));
}

.dominant-style-swatch.motif-backdiag {
  background-image: repeating-linear-gradient(135deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap));
}

.dominant-style-swatch.motif-cross {
  background-image:
    repeating-linear-gradient(45deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap)),
    repeating-linear-gradient(135deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap));
}

.dominant-style-swatch.motif-grid {
  background-image:
    repeating-linear-gradient(0deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap)),
    repeating-linear-gradient(90deg, var(--config-color) 0 var(--config-line), transparent var(--config-line) var(--config-gap));
}

.dominant-style-swatch.motif-dots {
  background-image: radial-gradient(circle, var(--config-color) 0 calc(var(--config-line) * 0.72), transparent calc(var(--config-line) * 0.72));
  background-size: var(--config-gap) var(--config-gap);
}

.dominant-style-swatch.motif-dash {
  background-image: repeating-linear-gradient(90deg, var(--config-color) 0 calc(var(--config-gap) * 0.9), transparent calc(var(--config-gap) * 0.9) calc(var(--config-gap) * 1.45));
}

.dominant-style-swatch.motif-ring {
  background-image: radial-gradient(circle, transparent 0 calc(var(--config-line) * 0.62), var(--config-color) calc(var(--config-line) * 0.62) var(--config-line), transparent var(--config-line));
  background-size: calc(var(--config-gap) * 1.2) calc(var(--config-gap) * 1.2);
}

.dominant-style-swatch.motif-zigzag {
  background-image:
    linear-gradient(135deg, transparent 25%, var(--config-color) 25% 35%, transparent 35%),
    linear-gradient(45deg, transparent 25%, var(--config-color) 25% 35%, transparent 35%);
  background-size: calc(var(--config-gap) * 1.2) calc(var(--config-gap) * 1.2);
}

.item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-title {
  font-weight: 700;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(96, 213, 181, 0.14);
  color: var(--accent);
  font-size: 0.74rem;
}

.item-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.driver-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.driver-tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.method-panel {
  margin-top: 18px;
}

.method-copy {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.method-copy p {
  margin: 0;
}

.maplibregl-popup-content {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  color: #101719;
  font: 13px "Noto Sans SC", sans-serif;
}

@media (max-width: 1080px) {
  .hero-grid,
  .workflow-grid,
  .site-grid,
  .som-layout,
  .selected-feature-grid {
    grid-template-columns: 1fr;
  }

  .dominant-pattern-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dominant-pattern-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-map-stage {
    min-height: 520px;
  }

  .selected-feature-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-feature-profiles.profile-count-1,
  .selected-feature-profiles.profile-count-2,
  .selected-feature-profiles.profile-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-profile-legend {
    width: 100%;
  }

  .control-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .analysis-shell {
    width: min(calc(100vw - 2rem), 1560px);
  }

  .control-row,
  .question-tabbar,
  .dominant-pattern-groups,
  .region-columns,
  .stat-grid,
  .coupling-heatmap-grid,
  .selected-feature-profiles,
  .selected-feature-settlements,
  #som-cell-list .som-cell-group .stack-list {
    grid-template-columns: 1fr;
  }

  .selected-feature-profiles.profile-count-1,
  .selected-feature-profiles.profile-count-2,
  .selected-feature-profiles.profile-count-3 {
    grid-template-columns: 1fr;
  }

  .analysis-topbar,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    align-items: stretch;
  }

  .main-link,
  .analysis-topbar .inline-control {
    width: 100%;
    justify-content: space-between;
  }

  .legend-row {
    justify-content: flex-start;
  }

  .dominant-pattern-stack {
    grid-template-columns: 1fr;
  }

  .dominant-sort-toggle,
  .dominant-version-toggle,
  .settlement-version-toggle {
    width: 100%;
  }

  h1 {
    white-space: normal;
  }

  .compact-map-control {
    width: 100%;
  }
}


/* White background mode */
:root[data-theme="light"] {
  color-scheme: light;
}

.theme-mode-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border, var(--line, rgba(22, 52, 68, 0.16)));
  border-radius: 8px;
  background: rgba(5, 15, 24, 0.7);
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.theme-mode-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-mode-switch {
  position: relative;
  inline-size: 42px;
  block-size: 23px;
  border-radius: 999px;
  border: 1px solid rgba(235, 247, 255, 0.24);
  background: rgba(235, 247, 255, 0.16);
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-mode-switch::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 15px;
  block-size: 15px;
  border-radius: 50%;
  background: #eef8ff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, background 160ms ease;
}

.theme-mode-control input:checked + .theme-mode-switch {
  border-color: rgba(15, 128, 109, 0.52);
  background: rgba(15, 128, 109, 0.26);
}

.theme-mode-control input:checked + .theme-mode-switch::after {
  transform: translateX(19px);
  background: #ffffff;
}

html[data-theme="light"] body {
  background: #ffffff !important;
  color: var(--text) !important;
}

html[data-theme="light"] body::before {
  display: none !important;
}

html[data-theme="light"] .theme-mode-control {
  background: #ffffff !important;
  border-color: rgba(21, 47, 61, 0.16) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .theme-mode-switch {
  border-color: rgba(15, 128, 109, 0.35);
  background: rgba(15, 128, 109, 0.15);
}

html[data-theme="light"] .theme-mode-switch::after {
  background: #ffffff;
}

html[data-theme="light"] .js-plotly-plot,
html[data-theme="light"] .js-plotly-plot .main-svg,
html[data-theme="light"] .js-plotly-plot .bg {
  background: #ffffff !important;
  fill: #ffffff !important;
}

html[data-theme="light"] .js-plotly-plot text,
html[data-theme="light"] .js-plotly-plot .gtitle,
html[data-theme="light"] .js-plotly-plot .xtitle,
html[data-theme="light"] .js-plotly-plot .ytitle,
html[data-theme="light"] .js-plotly-plot .legendtext {
  fill: #122333 !important;
  color: #122333 !important;
}

html[data-theme="light"] .js-plotly-plot .gridlayer path {
  stroke: rgba(18, 45, 62, 0.14) !important;
}

html[data-theme="light"] .js-plotly-plot .zerolinelayer path,
html[data-theme="light"] .js-plotly-plot .xlines-above path,
html[data-theme="light"] .js-plotly-plot .ylines-above path {
  stroke: rgba(18, 45, 62, 0.24) !important;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(21, 47, 61, 0.16);
  --text: #122333;
  --muted: #596b78;
  --accent: #0f806d;
  --amber: #9a6a00;
  --coral: #b64d3f;
  --green: #327d45;
  --blue: #1f6ea5;
  --shadow: 0 10px 30px rgba(15, 45, 62, 0.08);
}

html[data-theme="light"] .analysis-topbar {
  background: #ffffff !important;
  border-color: rgba(21, 47, 61, 0.14) !important;
  box-shadow: 0 10px 30px rgba(15, 45, 62, 0.08) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] .main-link,
html[data-theme="light"] .inline-control,
html[data-theme="light"] .select-field select,
html[data-theme="light"] .site-button,
html[data-theme="light"] .region-button,
html[data-theme="light"] .control-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .map-card,
html[data-theme="light"] .question-tab,
html[data-theme="light"] .question-tabbar,
html[data-theme="light"] .analysis-info-popover,
html[data-theme="light"] .source-info-popover,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] table {
  background: #ffffff !important;
  border-color: rgba(21, 47, 61, 0.14) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .main-link.is-active,
html[data-theme="light"] .question-tab.is-active,
html[data-theme="light"] .layer-toggle.is-active,
html[data-theme="light"] .site-button.is-active,
html[data-theme="light"] .region-button.is-active {
  background: rgba(15, 128, 109, 0.12) !important;
  border-color: rgba(15, 128, 109, 0.42) !important;
  color: var(--text) !important;
}

html[data-theme="light"] .analysis-map-stage,
html[data-theme="light"] #analysis-map,
html[data-theme="light"] .chart,
html[data-theme="light"] .plot-panel,
html[data-theme="light"] .profile-panel {
  background: #ffffff !important;
}

html[data-theme="light"] .status-line,
html[data-theme="light"] .panel-head p,
html[data-theme="light"] .info-label,
html[data-theme="light"] .muted {
  color: var(--muted) !important;
}

html[data-theme="light"] .inline-control select,
html[data-theme="light"] .select-field select,
html[data-theme="light"] select,
html[data-theme="light"] button,
html[data-theme="light"] input {
  color: var(--text) !important;
}
/* End white background mode */

/* White mode visibility repair */
html[data-theme="light"] .analysis-time-slider-shell,
html[data-theme="light"] .analysis-month-slider-shell,
html[data-theme="light"] .q2-month-slider-shell,
html[data-theme="light"] .analysis-invalid-filter,
html[data-theme="light"] .analysis-threshold-control select {
  background: #ffffff !important;
  border-color: rgba(18, 45, 62, 0.18) !important;
  color: #122333 !important;
  box-shadow: none !important;
}


html[data-theme="light"] .analysis-map-toggle {
  background: #ffffff !important;
  border-color: rgba(18, 45, 62, 0.18) !important;
  color: #122333 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .analysis-map-toggle:hover,
html[data-theme="light"] .analysis-map-toggle:focus-within {
  border-color: rgba(15, 128, 109, 0.45) !important;
}

html[data-theme="light"] .analysis-map-toggle-switch {
  background: rgba(18, 45, 62, 0.16) !important;
  border-color: rgba(18, 45, 62, 0.28) !important;
}

html[data-theme="light"] .analysis-map-toggle-switch::after {
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(18, 45, 62, 0.24) !important;
}

html[data-theme="light"] .analysis-map-toggle input:checked + .analysis-map-toggle-switch {
  background: rgba(15, 128, 109, 0.75) !important;
  border-color: rgba(15, 128, 109, 0.82) !important;
}

html[data-theme="light"] .analysis-map-toggle input:checked + .analysis-map-toggle-switch::after {
  background: #ffffff !important;
}

html[data-theme="light"] .analysis-month-button,
html[data-theme="light"] .q2-month-button,
html[data-theme="light"] .layer-toggle,
html[data-theme="light"] .clear-selection-button,
html[data-theme="light"] .analysis-info-button {
  background: #ffffff !important;
  border-color: rgba(18, 45, 62, 0.18) !important;
  color: #122333 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .analysis-month-button.is-active,
html[data-theme="light"] .q2-month-button.is-active,
html[data-theme="light"] .layer-toggle.is-active,
html[data-theme="light"] .clear-selection-button:hover,
html[data-theme="light"] .analysis-info-button:hover {
  background: rgba(15, 128, 109, 0.13) !important;
  border-color: rgba(15, 128, 109, 0.45) !important;
  color: #122333 !important;
}

html[data-theme="light"] .analysis-time-slider-head strong,
html[data-theme="light"] .analysis-month-slider-head strong,
html[data-theme="light"] .q2-month-slider-head strong,
html[data-theme="light"] .analysis-time-tick.is-current,
html[data-theme="light"] .analysis-month-tick.is-current {
  color: #122333 !important;
}

html[data-theme="light"] .analysis-time-slider-row > span,
html[data-theme="light"] .analysis-month-slider-head span,
html[data-theme="light"] .analysis-month-slider-row span,
html[data-theme="light"] .analysis-time-tick,
html[data-theme="light"] .analysis-month-tick,
html[data-theme="light"] .q2-month-slider-head span {
  color: #526979 !important;
}

html[data-theme="light"] .analysis-time-tick i,
html[data-theme="light"] .analysis-month-tick i {
  background: rgba(18, 45, 62, 0.38) !important;
}

html[data-theme="light"] input[type="range"] {
  accent-color: #0f806d !important;
}
/* End white mode visibility repair */
