.research-screen {
  border-color: #a9cfc1;
  background: linear-gradient(180deg, #f4fbf7 0%, #fff 58%);
  box-shadow: 0 8px 24px rgb(36 120 79 / 9%);
}

.research-screen__prospectivity > p,
.research-screen__full-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.42;
}

.research-screen__switch {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #8ebdac;
  border-radius: 7px;
  color: #245f4a;
  background: #f3faf6;
  font: inherit;
  font-size: 0.73rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.research-screen__switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #98a09c;
  transition: background 120ms ease;
}

.research-screen__switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
  content: "";
  transition: transform 120ms ease;
}

.research-screen__switch[aria-checked="true"] {
  color: #fff;
  border-color: #2f6f5e;
  background: #2f6f5e;
}

.research-screen__switch[aria-checked="true"] .research-screen__switch-track {
  background: #d5eee3;
}

.research-screen__switch[aria-checked="true"] .research-screen__switch-track::after {
  background: #24784f;
  transform: translateX(14px);
}

.research-screen__switch:focus-visible,
.research-screen__reset:focus-visible,
.research-screen__slider input:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.research-screen__prospectivity {
  display: grid;
  gap: 12px;
}

.research-screen__slider {
  display: grid;
  gap: 6px;
}

.research-screen__slider > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.71rem;
}

.research-screen__slider output {
  color: #24784f;
  font-weight: 850;
  white-space: nowrap;
}

.research-screen__slider input {
  width: 100%;
  margin: 0;
  accent-color: #2f6f5e;
}

.research-screen--full .research-screen__slider {
  opacity: 0.45;
}

.research-screen__slider input:disabled {
  cursor: not-allowed;
}

.research-screen__full-note {
  padding: 7px 8px;
  border-left: 3px solid #2f6f5e;
  background: #edf7f2;
}

.research-screen__reset {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #8ebdac;
  border-radius: 6px;
  color: #245f4a;
  background: #fff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.research-screen__error {
  margin: 0;
  padding: 8px;
  border: 1px solid #d9a29d;
  border-radius: 6px;
  color: #8e2f28;
  background: #fff2f1;
  font-size: 0.72rem;
  line-height: 1.4;
}

.research-map-loading {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 120px);
  padding: 9px 12px;
  transform: translateX(-50%);
  border: 1px solid rgb(36 95 74 / 35%);
  border-radius: 999px;
  color: #fff;
  background: rgb(36 95 74 / 94%);
  box-shadow: 0 7px 22px rgb(0 0 0 / 24%);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  animation: research-map-loading-in 120ms ease-out 100ms both;
}

.research-map-loading__spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: research-map-loading-spin 700ms linear infinite;
}

@keyframes research-map-loading-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes research-map-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .research-map-loading,
  .research-map-loading__spinner {
    animation: none;
  }
}

.research-popup {
  min-width: 220px;
}

.research-popup h2 {
  margin: 0 0 7px;
  font-size: 0.95rem;
}

.research-popup p {
  margin: 4px 0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.research-popup dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 9px;
  margin: 8px 0 0;
  font-size: 0.72rem;
}

.research-popup dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 860px) {
  .research-map-loading {
    top: 10px;
    max-width: calc(100% - 100px);
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .research-screen__prospectivity > p,
  .research-screen__full-note {
    font-size: 0.68rem;
  }

  .research-screen__prospectivity {
    gap: 10px;
  }
}
