:root {
  /* Brand blues: dark for headings/brand, regular for interactive accents */
  --stecci-blue-dark: #003399;
  --stecci-blue: #1D4ED8;
  --stecci-blue-soft: #E9F0FF;

  /* Text: ink for headings/values, text for body, muted for labels/hints */
  --stecci-ink: #1E293B;
  --stecci-text: #334155;
  --stecci-muted: #64748B;

  /* Surfaces and borders */
  --stecci-panel: #F7F9FC;
  --stecci-border: #D7E0EF;
  --stecci-border-strong: #C6D2E2;

  /* Type scale */
  --fs-xs: 0.7rem;   /* uppercase micro labels */
  --fs-sm: 0.8rem;   /* secondary text, notes, small controls */
  --fs-md: 0.875rem; /* body, inputs, panel titles */
  --fs-lg: 1.05rem;  /* navbar, page-level headings */
  --fs-xl: 1.1rem;   /* hero metric values */

  --stecci-radius: 4px;
}

body {
  background: #eef3fb;
  color: var(--stecci-text);
  font-family: Roboto, Arial, sans-serif;
  font-size: var(--fs-md);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--stecci-ink);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
h4, h5, h6 { font-size: var(--fs-sm); }

.navbar {
  background: #ffffff;
  min-height: 38px;
  padding-bottom: 0.15rem;
  padding-top: 0.15rem;
}

.navbar .navbar-nav {
  align-items: center;
  gap: 0.35rem;
}

.navbar .bslib-nav-spacer {
  flex: 1 1 auto;
}

.navbar .bslib-nav-item {
  align-items: center;
  display: flex;
  min-height: 37px;
}

.navbar-brand {
  color: var(--stecci-ink) !important;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  padding-bottom: 0.2rem;
  padding-top: 0.2rem;
}

.navbar-brand:empty {
  display: none;
}

.navbar .nav-link {
  color: var(--stecci-ink) !important;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  font-size: var(--fs-lg);
  font-weight: 700 !important;
  letter-spacing: 0;
  justify-content: center;
  line-height: 1;
  margin-left: 0.58rem;
  margin-right: 0.58rem;
  min-height: 32px;
  padding: 0.44rem 0 0.18rem !important;
  position: relative;
  text-align: center;
  text-decoration: none !important;
}

.navbar .nav-link::after {
  display: none;
}

.navbar .nav-link.active {
  font-weight: 700 !important;
}

.navbar .nav-link.active,
.navbar .nav-link.show,
.navbar .nav-link[aria-selected="true"],
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: transparent !important;
  color: var(--stecci-blue-dark) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.navbar-atlas-title {
  color: var(--stecci-ink);
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
  padding: 0 0.35rem;
  white-space: nowrap;
}

.about-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 58px);
  padding: 2rem 1rem;
}

.about-content {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  max-width: 940px;
  padding: 1.75rem;
  width: 100%;
}

.about-content h1 {
  color: var(--stecci-blue-dark);
  margin: 0 0 0.7rem;
}

.about-content p {
  color: var(--stecci-text);
  line-height: 1.55;
  margin: 0;
}

.about-header {
  margin: 0 auto 1.25rem;
  max-width: 720px;
  text-align: center;
}

.about-header p + p {
  margin-top: 0.65rem;
}

.about-lead {
  font-weight: 500;
}

.about-feature-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature {
  background: var(--stecci-panel);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  padding: 1rem;
}

.about-feature h2,
.about-workflow h2 {
  color: var(--stecci-blue-dark);
  margin: 0 0 0.55rem;
}

.about-workflow {
  border-top: 1px solid var(--stecci-border);
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}

.about-steps {
  display: grid;
  gap: 0.65rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding-left: 1.25rem;
}

.about-steps li {
  color: var(--stecci-text);
  line-height: 1.5;
  padding-left: 0.15rem;
}

.about-note {
  background: var(--stecci-blue-soft);
  border-left: 3px solid var(--stecci-blue);
  margin-top: 1.25rem !important;
  padding: 0.75rem 0.85rem;
}

.bslib-sidebar-layout {
  --bslib-sidebar-icon-button-size: 1.4rem;
  --bslib-sidebar-icon-size: 0.82rem;
  --bslib-sidebar-padding: 0.5rem;
}

.bslib-sidebar-layout > aside.sidebar {
  background: var(--stecci-panel);
  border-right: 1px solid var(--stecci-border);
}

.sidebar-content {
  gap: 0.65rem !important;
  padding: 0.75rem 0.65rem !important;
}

.bslib-sidebar-layout .collapse-toggle {
  margin-top: 0.1rem;
}

.sidebar-title {
  color: var(--stecci-blue-dark);
  font-size: var(--fs-md) !important;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--stecci-border);
}

.gis-sidebar .sidebar-title {
  margin: 0;
  padding-bottom: 0.5rem;
}

.control-sidebar .shiny-input-container {
  margin-bottom: 0.34rem;
  overflow: visible;
  width: 100%;
}

.control-sidebar .form-label,
.control-sidebar label {
  color: var(--stecci-text);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.control-sidebar .form-select,
.control-sidebar .form-control {
  border-color: var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  font-size: var(--fs-md);
  line-height: 1.15;
  min-height: 34px;
  overflow: hidden;
  padding-bottom: 0.32rem;
  padding-top: 0.32rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-sidebar select.form-select {
  appearance: none;
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--stecci-panel) 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position:
    right center,
    right 0.65rem center;
  background-repeat: no-repeat;
  background-size:
    2.35rem 100%,
    1rem 1rem;
  cursor: pointer;
  padding-right: 2.45rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.control-sidebar select.form-select:hover {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.control-sidebar select.form-select:focus {
  border-color: var(--stecci-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.control-sidebar .selectize-control {
  margin-bottom: 0;
}

.control-sidebar .selectize-control.single {
  height: 38px;
}

.control-sidebar .selectize-control.single .selectize-input,
.control-sidebar .selectize-control.single .selectize-input.input-active,
.control-sidebar .selectize-control.single .selectize-input.dropdown-active {
  border-color: var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  box-sizing: border-box;
  box-shadow: none;
  display: block;
  font-size: var(--fs-md);
  height: 38px !important;
  line-height: 36px !important;
  min-height: 38px !important;
  overflow: hidden;
  padding: 0 2.25rem 0 0.65rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.control-sidebar .selectize-input.full {
  background: #ffffff;
}

.control-sidebar .selectize-control.single .selectize-input.focus,
.control-sidebar .selectize-control.single .selectize-input.input-active {
  border-color: var(--stecci-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.control-sidebar .selectize-control.single .selectize-input:hover {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.control-sidebar .selectize-control.single .selectize-input > input {
  height: 1px !important;
  left: 0 !important;
  line-height: 1px !important;
  margin: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 0 !important;
  width: 1px !important;
}

.control-sidebar .selectize-control.single .selectize-input > .item {
  display: block;
  height: 36px;
  line-height: 36px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-sidebar .selectize-control.single .selectize-input::after {
  border-color: var(--stecci-blue) transparent transparent transparent;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  margin-top: 0 !important;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.control-sidebar .selectize-control.single .selectize-input.dropdown-active::after {
  border-color: transparent transparent var(--stecci-blue) transparent;
  border-width: 0 5px 6px 5px;
  margin-top: 0 !important;
}

.control-sidebar .selectize-dropdown {
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  margin-top: 0.25rem;
  overflow: hidden;
  position: absolute !important;
  z-index: 5000 !important;
}

.control-sidebar .selectize-dropdown-content {
  max-height: 260px;
  padding: 0.25rem;
}

.control-sidebar .selectize-dropdown .option {
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  font-size: var(--fs-md);
  line-height: 1.15;
  padding: 0.42rem 0.55rem;
}

.control-sidebar .selectize-dropdown .option.active {
  background: var(--stecci-blue-soft);
  color: var(--stecci-blue-dark);
}

.control-sidebar .selectize-dropdown .option.selected {
  background: var(--stecci-blue);
  color: #ffffff;
  font-weight: 700;
}

.control-sidebar .irs--shiny .irs-bar,
.control-sidebar .irs--shiny .irs-single {
  background: var(--stecci-blue);
  border-color: var(--stecci-blue);
}

.control-sidebar .irs--shiny .irs-handle {
  border-color: var(--stecci-blue);
}

.period-control {
  margin: 0.14rem 0 0.28rem;
}

.period-control-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: -0.18rem;
}

.period-control-label {
  margin: 0 !important;
}

.period-control .shiny-input-container {
  margin: 0 !important;
}

.period-control .irs {
  height: 32px;
}

.period-control .irs-line,
.period-control .irs-bar {
  top: 14px;
}

.period-control .irs-handle {
  top: 9px;
}

.period-control .irs-min,
.period-control .irs-max,
.period-control .irs-single {
  display: none;
}

.period-current {
  color: var(--stecci-blue);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.period-slider-labels {
  color: var(--stecci-muted);
  display: flex;
  font-size: var(--fs-xs);
  justify-content: space-between;
  line-height: 1.05;
  margin-top: -0.08rem;
}

.period-slider-labels span {
  max-width: 4rem;
  text-align: center;
}

.climate-pathway-control,
.climate-period-control {
  display: grid;
  gap: 0.48rem;
}

.climate-pathway-control {
  margin: 0.24rem 0 0.88rem;
}

.climate-period-control {
  margin: 0.12rem 0 0;
}

.climate-sidebar .shiny-input-container:has(#parameter) {
  margin-bottom: 0.52rem;
}

.climate-control-label {
  color: var(--stecci-ink);
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.15;
}

.climate-pathway-control .control-label,
.climate-period-control .control-label {
  display: block;
  margin: 0 0 0.48rem;
  padding: 0;
}

.climate-pathway-control .shiny-input-container,
.climate-period-control .shiny-input-container {
  margin: 0;
  width: 100%;
}

.climate-pathway-control .shiny-label-null,
.climate-period-control .shiny-label-null {
  display: none !important;
}

.climate-pathway-control .shiny-options-group {
  display: grid;
  gap: 0.26rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.climate-pathway-control label.radio-inline,
.climate-period-control label.radio-inline {
  margin: 0 !important;
  min-width: 0;
  padding: 0;
  position: relative;
}

.climate-pathway-control label.radio-inline > input,
.climate-period-control label.radio-inline > input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.climate-pathway-control label.radio-inline > span,
.climate-period-control label.radio-inline > span {
  display: block;
}

.climate-pathway-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  cursor: pointer;
  display: grid;
  justify-items: center;
  min-height: 52px;
  padding: 0.44rem 0.22rem;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.climate-pathway-option strong {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  line-height: 1;
}

.climate-pathway-option span {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  line-height: 1;
  margin-top: 0.18rem;
}

.climate-pathway-control label.radio-inline:hover .climate-pathway-option {
  background: var(--stecci-panel);
  border-color: var(--stecci-border-strong);
}

.climate-pathway-control input:checked + span .climate-pathway-option {
  background: var(--stecci-blue-soft);
  border-color: var(--stecci-border-strong);
  color: var(--stecci-blue-dark);
  box-shadow: inset 0 -2px 0 var(--stecci-blue);
}

.climate-pathway-control input:checked + span .climate-pathway-option strong,
.climate-pathway-control input:checked + span .climate-pathway-option span {
  color: var(--stecci-blue-dark);
}

.climate-pathway-control input:focus-visible + span .climate-pathway-option,
.climate-period-control input:focus-visible + span .climate-period-option {
  outline: 2px solid var(--stecci-blue);
  outline-offset: 2px;
}

.climate-pathway-legend {
  color: var(--stecci-muted);
  display: grid;
  font-size: var(--fs-xs);
  grid-template-columns: 1fr auto 1fr;
  line-height: 1.1;
}

.climate-pathway-legend span:nth-child(2) {
  text-align: center;
}

.climate-pathway-legend span:last-child {
  text-align: right;
}

.climate-selection-context {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  line-height: 1.2;
  min-height: 1.2em;
}

.climate-selection-context.is-future {
  align-items: baseline;
  display: flex;
  gap: 0.3rem;
}

.climate-selection-context.is-future strong {
  color: var(--stecci-blue-dark);
}

.climate-period-control .shiny-options-group {
  display: grid;
  gap: 0.22rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.climate-period-control .shiny-options-group::before {
  background: var(--stecci-border-strong);
  content: "";
  height: 2px;
  left: 12.5%;
  position: absolute;
  right: 12.5%;
  top: 10px;
}

.climate-period-control label.radio-inline {
  cursor: pointer;
  min-height: 86px;
  padding-top: 24px;
}

.climate-period-control label.radio-inline::before {
  border-left: 1px solid var(--stecci-border-strong);
  content: "";
  height: 16px;
  left: 50%;
  position: absolute;
  top: 2px;
}

.climate-period-control label.radio-inline::after {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 50%;
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  width: 8px;
}

.climate-period-control label.radio-inline:has(input:checked)::after {
  background: var(--stecci-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--stecci-blue);
  height: 10px;
  top: 5px;
  width: 10px;
}

.climate-period-option {
  align-content: center;
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-muted);
  cursor: pointer;
  display: grid;
  gap: 0.14rem;
  justify-items: center;
  min-height: 62px;
  padding: 0.45rem 0.1rem;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.climate-period-option strong {
  font-size: 0.74rem;
  line-height: 1.05;
  min-height: 2.1em;
}

.climate-period-option span {
  font-size: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

.climate-period-control label.radio-inline:hover .climate-period-option {
  background: var(--stecci-panel);
  border-color: var(--stecci-border-strong);
  color: var(--stecci-ink);
}

.climate-period-control input:checked + span .climate-period-option {
  background: var(--stecci-blue-soft);
  border-color: var(--stecci-blue);
  box-shadow: inset 0 -3px 0 var(--stecci-blue);
  color: var(--stecci-blue-dark);
}

.sidebar-note {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  font-size: var(--fs-sm);
  line-height: 1.28;
  margin-top: 0.65rem;
  padding: 0.62rem;
}

.gis-sidebar .sidebar-note {
  font-size: var(--fs-xs);
  margin-top: 0;
  padding: 0.62rem;
}

.gis-sidebar .sidebar-note p {
  margin-bottom: 0;
}


/* Tab layouts */

.dashboard-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(520px, 1.22fr) minmax(430px, 0.78fr);
  grid-template-areas:
    "scenario scenario"
    "map side";
  gap: 0.35rem;
}

.scenario-title {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--stecci-border);
  border-radius: 0;
  color: var(--stecci-ink);
  display: flex;
  grid-area: scenario;
  font-size: var(--fs-md);
  min-height: 34px;
  padding: 0.36rem 0.65rem;
}

.card {
  background: var(--stecci-panel);
  border: 0px solid var(--stecci-border);
  border-radius: 0;
  box-shadow: 0 0px 0px rgba(15, 23, 42, 0.045);
}

.card-header {
  background: #ffffff;
  border-bottom: 1px solid var(--stecci-border);
  color: var(--stecci-blue-dark);
  font-size: var(--fs-md);
  font-weight: 700;
  padding: 0.42rem 0.65rem;
}

.card-body {
  padding: 0.55rem 0.65rem;
}

.bslib-card .card-body p {
  margin-top: 13px !important;
}

.chart-card .card-body {
  position: relative;
  padding: 0.14rem 0.42rem 0.14rem;
}

.chart-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
  min-height: 32px;
  padding: 0 2.75rem 0 0.04rem;
}

.chart-controls .shiny-input-container {
  margin: 0;
  width: auto;
}

.chart-controls .checkbox {
  align-items: center;
  display: flex;
  margin: 0;
}

.chart-controls .checkbox label,
.chart-controls .form-check {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  display: inline-flex;
  gap: 0.34rem;
  justify-content: center;
  line-height: 1;
  min-height: 25px;
  padding: 0.08rem 0.52rem;
}

.chart-controls .shiny-input-checkbox,
.chart-controls .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  box-shadow: none !important;
  cursor: pointer;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.82rem;
  margin: 0;
  position: relative;
  vertical-align: middle;
  width: 0.82rem;
}

.chart-controls .shiny-input-checkbox::before,
.chart-controls .form-check-input::before {
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  display: block;
  height: 0.48rem;
  left: 0.25rem;
  position: absolute;
  top: 0.1rem;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease;
  width: 0.24rem;
}

.chart-controls .shiny-input-checkbox:checked,
.chart-controls .form-check-input:checked {
  background: var(--stecci-blue);
  border-color: var(--stecci-blue);
}

.chart-controls .shiny-input-checkbox:checked::before,
.chart-controls .form-check-input:checked::before {
  transform: rotate(45deg) scale(1);
}

.chart-controls .checkbox span,
.chart-controls .form-check-label {
  color: var(--stecci-text);
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 0.82rem;
  white-space: nowrap;
}

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

.echarts-chart canvas,
.echarts-chart svg {
  display: block;
}

.echarts-tooltip-row {
  display: block;
  line-height: 1.45;
  margin-top: 0.2rem;
  white-space: nowrap;
}

.echarts-tooltip-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.56rem;
  margin-right: 0.35rem;
  width: 0.56rem;
}

.echarts-tooltip-dash {
  border-top: 2px dashed #737373;
  display: inline-block;
  margin: 0 0.35rem 0.18rem 0;
  width: 0.9rem;
}

.chart-export-menu {
  position: absolute;
  right: 0.42rem;
  top: 0.18rem;
  z-index: 20;
}

.chart-export-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.chart-export-toggle:hover,
.chart-export-toggle:focus-visible {
  background: var(--stecci-blue-soft);
  border-color: rgba(29, 78, 216, 0.45);
}

.chart-export-line {
  background: var(--stecci-text);
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 18px;
}

.chart-export-dropdown {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--stecci-radius);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  display: none;
  min-width: 150px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
}

.chart-export-menu.is-open .chart-export-dropdown {
  display: block;
}

.chart-export-dropdown button {
  background: #ffffff;
  border: 0;
  color: var(--stecci-ink);
  display: block;
  font-size: var(--fs-sm);
  padding: 0.5rem 0.65rem;
  text-align: left;
  width: 100%;
}

.chart-export-dropdown button:hover,
.chart-export-dropdown button:focus-visible {
  background: var(--stecci-blue-soft);
  color: var(--stecci-blue-dark);
}

.chart-download-link {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.map-card {
  align-self: start;
  grid-area: map;
}

.map-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  grid-area: side;
  min-width: 0;
}

.chart-card {
  grid-area: chart;
}

.summary-card,
.climate-analyzer-card {
  align-self: start;
}

.summary-card {
  grid-area: summary;
}

.chart-card,
.summary-card,
.analyzer-card {
  min-width: 0;
}

.maplibre-map {
  aspect-ratio: 10 / 9;
  background: #e7edf2;
  border-radius: 0;
  flex: 0 0 auto;
  min-height: 360px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.summary-card .card-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.42rem 0.5rem 0.45rem 0.55rem;
}

.analyzer-card .card-body {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.3rem 0.5rem 0.42rem;
}

.gis-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 315px;
  gap: 0rem;
}

.risk-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 315px;
  height: 100%;
  min-height: 0;
}

.risk-map-card,
.risk-map-card .card-body,
.risk-compare-container,
.risk-map {
  height: 100%;
  min-height: 0 !important;
}

.risk-map {
  aspect-ratio: auto;
}

.risk-compare-container .risk-map {
  inset: 0;
  position: absolute;
}

.risk-map-base {
  z-index: 1;
}

.risk-compare-map {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 2;
}

.risk-compare-container.is-compare-enabled .risk-compare-map {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.risk-compare-container > .maplibregl-control-container.risk-control-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 40;
}

.risk-control-overlay .maplibregl-ctrl {
  pointer-events: auto;
}

.risk-control-overlay .maplibregl-ctrl.stecci-compare-shell,
.risk-control-overlay .maplibregl-ctrl.stecci-measure-shell {
  pointer-events: none;
}

.risk-right-panel {
  background: var(--stecci-panel);
  border-left: 1px solid var(--stecci-border);
  min-height: 0;
}

.risk-sidebar-placeholder {
  min-height: 1px;
}

/* Shared bslib shell reset for full-bleed map pages */

.climate-shell,
.gis-shell,
.risk-shell {
  margin: 0 !important;
}

.bslib-sidebar-layout:has(.gis-shell) {
  height: calc(100dvh - 42px);
  min-height: 0 !important;
  overflow: hidden;
}

.bslib-sidebar-layout:has(.risk-shell) {
  height: calc(100dvh - 42px);
  min-height: 0 !important;
  overflow: hidden;
}

.bslib-sidebar-layout:has(.climate-shell) > .main,
.bslib-sidebar-layout:has(.gis-shell) > .main,
.bslib-sidebar-layout:has(.risk-shell) > .main {
  gap: 0 !important;
  padding: 0 !important;
}

.bslib-sidebar-layout .main:has(.climate-shell),
.bslib-sidebar-layout .main:has(.gis-shell),
.bslib-sidebar-layout .main:has(.risk-shell) {
  gap: 0 !important;
  padding: 0 !important;
}

.bslib-sidebar-layout:has(.climate-shell) .html-fill-container,
.bslib-sidebar-layout:has(.gis-shell) .html-fill-container,
.bslib-sidebar-layout:has(.risk-shell) .html-fill-container {
  min-height: 0;
}

.bslib-sidebar-layout:has(.gis-shell) > .main,
.bslib-sidebar-layout .main:has(.gis-shell),
.bslib-sidebar-layout:has(.gis-shell) .html-fill-container,
.gis-shell,
.gis-grid,
.gis-map-card,
.gis-map-card .card-body,
.gis-results-stack,
.gis-results-card {
  height: 100%;
  min-height: 0 !important;
}

.bslib-sidebar-layout:has(.risk-shell) > .main,
.bslib-sidebar-layout .main:has(.risk-shell),
.bslib-sidebar-layout:has(.risk-shell) .html-fill-container,
.risk-shell,
.risk-map-card,
.risk-map-card .card-body {
  height: 100%;
  min-height: 0 !important;
}

.bslib-sidebar-layout:has(.gis-shell) > .main,
.bslib-sidebar-layout .main:has(.gis-shell),
.gis-shell,
.gis-map-card,
.gis-results-stack,
.gis-results-card {
  overflow: hidden;
}

.bslib-sidebar-layout:has(.risk-shell) > .main,
.bslib-sidebar-layout .main:has(.risk-shell),
.risk-shell {
  overflow: hidden;
}

.gis-grid {
  align-items: stretch;
}

.dashboard-grid .card,
.dashboard-grid .bslib-card,
.gis-grid .card,
.gis-grid .bslib-card,
.risk-grid .card,
.risk-grid .bslib-card {
  margin-bottom: 0 !important;
}

/* Shared MapLibre panel shell */

.atlas-map-card,
.atlas-map-card.card,
.atlas-map-card.bslib-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.atlas-map-card .card-body {
  padding: 0 !important;
}

.atlas-map {
  border-radius: 0;
}

.gis-map {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.gis-compare-container {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gis-compare-container .gis-map {
  inset: 0;
  position: absolute;
}

.gis-map-base {
  z-index: 1;
}

.gis-compare-map {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 2;
}

.gis-compare-container.is-compare-enabled .gis-compare-map {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gis-compare-container > .maplibregl-control-container.gis-control-overlay {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 40;
}

.gis-control-overlay .maplibregl-ctrl {
  pointer-events: auto;
}

.gis-control-overlay .maplibregl-ctrl.stecci-compare-shell,
.gis-control-overlay .maplibregl-ctrl.stecci-measure-shell {
  pointer-events: none;
}

.gis-compare-container .maplibregl-compare {
  background: var(--stecci-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
  z-index: 30;
}

.gis-compare-container .maplibregl-compare .compare-swiper-vertical {
  background: #ffffff;
  background-image: none;
  border: 1px solid rgba(38, 50, 65, 0.24);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.24);
  height: 34px;
  left: -17px;
  margin: -17px 1px 0;
  width: 34px;
}

.gis-compare-container .maplibregl-compare .compare-swiper-vertical::before,
.gis-compare-container .maplibregl-compare .compare-swiper-vertical::after {
  background: var(--stecci-ink);
  border-radius: 999px;
  content: "";
  height: 14px;
  position: absolute;
  top: 9px;
  width: 2px;
}

.gis-compare-container .maplibregl-compare .compare-swiper-vertical::before {
  left: 13px;
}

.gis-compare-container .maplibregl-compare .compare-swiper-vertical::after {
  right: 13px;
}

.atlas-map .maplibregl-canvas,
.atlas-map .maplibregl-canvas-container,
.atlas-map .maplibregl-control-container {
  border-radius: 0 !important;
}

.gis-layer-group summary {
  list-style: none;
}

.gis-layer-group summary::-webkit-details-marker {
  display: none;
}

.gis-layer-group-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  cursor: pointer;
  display: flex;
  font-size: var(--fs-md);
  font-weight: 700;
  gap: 0.4rem;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 40px;
  padding: 0.46rem 0.58rem;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
}

.gis-layer-group-toggle::after {
  border-bottom: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  content: "";
  flex: 0 0 auto;
  height: 0.34rem;
  opacity: 0.68;
  transform: rotate(45deg) translateY(-1px);
  width: 0.34rem;
}

.gis-layer-group[open] > .gis-layer-group-toggle {
  background: var(--stecci-panel);
  border-color: var(--stecci-border-strong);
  color: var(--stecci-blue-dark);
}

.gis-layer-group[open] > .gis-layer-group-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.gis-layer-group-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gis-layer-group-count {
  background: var(--stecci-panel);
  border: 1px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-left: auto;
  padding: 0.2rem 0.34rem;
}

.gis-layer-group-count .shiny-text-output {
  display: inline;
}

.gis-layer-group-panel {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.34rem;
}

.gis-layer-control {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  margin-bottom: 0;
  padding: 0.62rem;
}

.gis-layer-control .shiny-input-container {
  margin-bottom: 0;
}

.gis-layer-header {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
}

.gis-layer-heading {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  min-height: 23px;
  min-width: 0;
}

.gis-layer-title {
  align-items: center;
  color: var(--stecci-ink);
  display: flex;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.15;
  min-width: 0;
}

.gis-layer-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-self: end;
}

.gis-layer-switch .shiny-input-container {
  margin: 0;
  line-height: 1;
}

.gis-layer-switch .checkbox {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.gis-layer-switch .checkbox label {
  align-items: center;
  background: var(--stecci-border-strong);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 23px;
  line-height: 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  width: 42px;
}

.gis-layer-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  height: 1px;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.gis-layer-switch input[type="checkbox"]:focus,
.gis-layer-switch input[type="checkbox"]:focus-visible,
.gis-layer-switch .checkbox label:focus-within {
  box-shadow: none !important;
  outline: none !important;
}

.gis-layer-switch .checkbox span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.gis-layer-switch .checkbox label::before {
  content: "";
}

.gis-layer-switch .checkbox label::after {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  content: "";
  height: 19px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.22s ease;
  width: 19px;
}

.gis-layer-switch .checkbox label:has(input[type="checkbox"]:checked) {
  background: var(--stecci-blue);
}

.gis-layer-switch .checkbox label:has(input[type="checkbox"]:checked)::before {
  content: "";
}

.gis-layer-switch .checkbox label:has(input[type="checkbox"]:checked)::after {
  transform: translateX(19px);
}

.gis-layer-control .checkbox label {
  color: var(--stecci-ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.gis-layer-name {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.24rem;
  overflow-wrap: anywhere;
}

.gis-layer-sections {
  border-top: 1px solid var(--stecci-border);
  display: grid;
  gap: 0.28rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.62rem;
  padding-top: 0.62rem;
}

.gis-layer-section {
  min-width: 0;
}

.gis-layer-opacity-section[open] {
  grid-column: 1 / -1;
}

.gis-layer-section summary {
  list-style: none;
}

.gis-layer-section summary::-webkit-details-marker {
  display: none;
}

.gis-section-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  cursor: pointer;
  display: flex;
  font-size: var(--fs-xs);
  font-weight: 500;
  gap: 0.32rem;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 30px;
  padding: 0.34rem 0.44rem;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
}

.gis-section-toggle::after {
  border-bottom: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  content: "";
  flex: 0 0 auto;
  height: 0.34rem;
  opacity: 0.68;
  transform: rotate(45deg) translateY(-1px);
  width: 0.34rem;
}

.gis-layer-section[open] .gis-section-toggle {
  background: var(--stecci-panel);
  border-color: var(--stecci-border-strong);
  color: var(--stecci-blue-dark);
}

.gis-layer-section[open] .gis-section-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.gis-section-title {
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gis-opacity-value {
  color: var(--stecci-muted);
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  margin-left: auto;
}

.gis-section-panel {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  margin-top: 0.28rem;
  padding: 0.42rem;
}

.gis-opacity-control {
  display: grid;
  min-width: 0;
}

.gis-opacity-range {
  accent-color: var(--stecci-blue);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  height: 18px;
  margin: 0;
  width: 100%;
}

.gis-opacity-range:focus {
  outline: none;
}

.gis-opacity-range::-webkit-slider-runnable-track {
  background: var(--stecci-border);
  border: 0;
  border-radius: 999px;
  height: 4px;
}

.gis-opacity-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #ffffff;
  border: 2px solid var(--stecci-blue);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  height: 14px;
  margin-top: -5px;
  transition: none;
  width: 14px;
}

.gis-opacity-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.gis-opacity-range::-moz-range-track {
  background: var(--stecci-border);
  border: 0;
  border-radius: 999px;
  height: 4px;
}

.gis-opacity-range::-moz-range-progress {
  background: var(--stecci-blue);
  border-radius: 999px;
  height: 4px;
}

.gis-opacity-range::-moz-range-thumb {
  background: #ffffff;
  border: 2px solid var(--stecci-blue);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  height: 14px;
  transition: none;
  width: 14px;
}

.gis-layer-legend {
  max-width: 100%;
  overflow: auto;
}

.gis-layer-legend img {
  display: block;
  max-height: 150px;
  max-width: 100%;
}

.gis-upload-panel {
  background: var(--stecci-panel);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.28rem;
  padding: 0.38rem 0.42rem;
}

.gis-upload-title {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  line-height: 1.15;
}

.gis-upload-panel .shiny-input-container,
.gis-upload-panel .form-group {
  display: block;
  max-width: none;
  margin-bottom: 0;
  width: 100%;
}

.gis-upload-panel .shiny-label-null {
  display: none !important;
}

.gis-upload-panel .input-group {
  align-items: stretch;
  display: flex;
  min-height: 30px;
  width: 100%;
}

.gis-upload-panel .input-group-btn,
.gis-upload-panel .input-group-prepend {
  align-items: stretch;
  display: flex;
  margin: 0;
}

.gis-upload-panel .btn-file {
  align-items: center;
  background: var(--stecci-blue-soft);
  border-color: var(--stecci-border-strong);
  border-radius: var(--stecci-radius) 0 0 var(--stecci-radius);
  color: var(--stecci-blue-dark);
  display: flex;
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  justify-content: center;
  min-height: 30px;
  padding: 0.28rem 0.56rem;
}

.gis-upload-panel .btn-file:hover,
.gis-upload-panel .btn-file:focus,
.gis-upload-panel .btn-file:focus-visible {
  background: var(--stecci-panel);
  border-color: var(--stecci-blue);
  color: var(--stecci-blue-dark);
  box-shadow: none;
}

.gis-upload-panel .form-control {
  background: #ffffff;
  border-color: var(--stecci-border-strong);
  border-radius: 0 var(--stecci-radius) var(--stecci-radius) 0;
  box-shadow: none;
  color: var(--stecci-muted);
  flex: 1 1 auto;
  font-size: var(--fs-xs);
  height: 30px;
  min-width: 0;
  padding: 0.28rem 0.48rem;
  width: 1%;
}

.gis-upload-panel .form-control::placeholder {
  color: var(--stecci-muted);
  opacity: 1;
}

.gis-upload-panel .shiny-file-input-progress {
  margin: 0;
}

.gis-upload-panel > .shiny-html-output:empty {
  display: none;
}

.gis-upload-help {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  line-height: 1.25;
  margin: 0;
}

.gis-upload-status {
  background: var(--bs-body-bg);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  font-size: var(--fs-xs);
  line-height: 1.35;
  padding: 0.38rem 0.44rem;
  white-space: pre-line;
}

.gis-upload-status:empty {
  display: none;
}

.gis-upload-status.is-error,
.gis-upload-status.error {
  border-color: var(--bs-danger);
  color: var(--bs-danger);
}

.gis-uploaded-layers {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.5rem;
}

.gis-uploaded-layer-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  display: grid;
  gap: 0.48rem;
  padding: 0.54rem;
}

.gis-uploaded-layer-card.is-disabled {
  opacity: 0.68;
}

.gis-uploaded-layer-card.is-error,
.gis-uploaded-layer-card.error {
  border-color: var(--bs-danger);
}

.gis-uploaded-layer-header {
  align-items: start;
  display: grid;
  gap: 0.18rem 0.42rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.gis-uploaded-layer-title {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gis-uploaded-layer-meta {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  grid-column: 1 / -1;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.gis-uploaded-layer-controls {
  border-top: 1px solid var(--stecci-border);
  display: grid;
  gap: 0.38rem;
  padding-top: 0.48rem;
}

.gis-uploaded-layer-controls .shiny-input-container,
.gis-uploaded-layer-controls .form-group {
  margin-bottom: 0;
  width: 100%;
}

.gis-uploaded-layer-card.is-disabled .gis-uploaded-layer-controls {
  opacity: 0.6;
}

.gis-uploaded-layer-actions,
.gis-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.gis-upload-action,
.gis-upload-action.btn {
  background: var(--bs-body-bg);
  border: 1px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.15;
  padding: 0.32rem 0.46rem;
}

.gis-upload-action:hover,
.gis-upload-action:focus-visible,
.gis-upload-action.btn:hover,
.gis-upload-action.btn:focus-visible {
  background: var(--stecci-blue-soft);
  border-color: var(--stecci-blue);
  color: var(--stecci-blue-dark);
}

.gis-upload-action.is-disabled,
.gis-upload-action:disabled,
.gis-upload-action.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.gis-selected-feature {
  background: var(--stecci-panel);
  border: 1px solid var(--stecci-border);
  border-left: 3px solid var(--stecci-blue);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  display: grid;
  gap: 0.42rem;
  margin-top: 0.5rem;
  padding: 0.52rem;
}

.gis-selected-feature.is-disabled {
  opacity: 0.68;
}

.gis-selected-feature.is-error,
.gis-selected-feature.error {
  border-color: var(--bs-danger);
}

.gis-feature-properties {
  display: grid;
  font-size: var(--fs-xs);
  gap: 0.2rem 0.5rem;
  grid-template-columns: minmax(88px, 0.4fr) minmax(0, 1fr);
  line-height: 1.3;
  margin: 0;
}

.gis-feature-properties dt {
  color: var(--stecci-muted);
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.gis-feature-properties dd {
  color: var(--stecci-text);
  margin: 0;
  overflow-wrap: anywhere;
}

.gis-feature-actions {
  border-top: 1px solid var(--stecci-border);
  padding-top: 0.42rem;
}

.gis-analyzer-selection-state {
  background: rgba(0, 51, 153, 0.06);
  border-color: #003399;
  display: grid;
  gap: 0.42rem;
}

.gis-analyzer-selection-state p {
  margin: 0;
}

.gis-analyze-selected-action.btn,
.gis-analyze-selected-action {
  background: #003399;
  border-color: #003399;
  color: #ffffff;
  justify-content: center;
  margin-top: 0.12rem;
}

.gis-analyze-selected-action.btn:hover,
.gis-analyze-selected-action.btn:focus-visible,
.gis-analyze-selected-action:hover,
.gis-analyze-selected-action:focus-visible {
  background: #00266f;
  border-color: #00266f;
  color: #ffffff;
}

.gis-results-card .card-body {
  min-height: 120px;
}

.gis-active-layer-list {
  color: var(--stecci-text);
  font-size: var(--fs-sm);
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.gis-result-groups {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.gis-result-group {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  padding: 0.48rem 0.55rem;
}

.gis-result-value {
  color: var(--stecci-blue);
  font-size: var(--fs-xl);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-top: 0.28rem;
}

.gis-result-empty {
  color: var(--stecci-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-top: 0.28rem;
}

.gis-property-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 0.18rem 0.5rem;
  margin-top: 0.38rem;
}

.gis-result-status {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  line-height: 1.25;
  margin-top: 0.38rem;
}

.gis-results-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.gis-results-stack .gis-results-card,
.gis-results-stack .gis-analyzer-card {
  flex: 1 1 0;
  height: auto;
  min-height: 0 !important;
}

.gis-results-stack .card-body,
.gis-results-stack .bslib-card .card-body {
  overflow-y: auto;
}

.analyzer-result-groups {
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  margin-top: 0.38rem;
}

.analyzer-card,
.analyzer-card * {
  font-family: Roboto, Arial, sans-serif;
}

.analyzer-panel-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--stecci-border);
  display: flex;
  gap: 0.42rem;
  justify-content: space-between;
  margin: 0 0 0.26rem;
  padding: 0.14rem 0.12rem 0.16rem;
}

.analyzer-panel-facts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 1.2rem;
  min-width: 0;
}

.analyzer-panel-fact {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.analyzer-panel-label {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.analyzer-panel-fact strong {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.analyzer-download-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.analyzer-download-button,
.analyzer-download-button.btn {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.1;
  padding: 0.31rem 0.46rem;
  white-space: nowrap;
}

.analyzer-download-button:hover,
.analyzer-download-button:focus-visible,
.analyzer-download-button.btn:hover,
.analyzer-download-button.btn:focus-visible {
  background: var(--stecci-panel);
  border-color: #94a3b8;
  color: var(--stecci-ink);
}

.analyzer-result-group {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  padding: 0.5rem 0.58rem 0.58rem;
}

.analyzer-result-group.is-error {
  border-color: #e5b6b6;
}

.analyzer-result-header {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  min-width: 0;
}

.analyzer-layer-heading {
  min-width: 0;
}

.analyzer-layer-heading strong {
  color: var(--stecci-ink);
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.analyzer-status-pill {
  align-items: center;
  background: var(--stecci-panel);
  border: 1px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  color: var(--stecci-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.32rem;
  white-space: nowrap;
}

.analyzer-status-pill.is-ok {
  background: var(--stecci-panel);
  border-color: var(--stecci-border-strong);
  color: var(--stecci-muted);
}

.analyzer-status-pill.is-sampled {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.analyzer-status-pill.is-error,
.analyzer-status-pill.is-empty,
.analyzer-status-pill.is-not_configured {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.analyzer-hero {
  border-bottom: 1px solid var(--stecci-border);
  border-top: 1px solid var(--stecci-border);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.9fr);
  margin-top: 0.42rem;
  padding: 0.58rem 0 0.42rem;
}

.analyzer-primary-metric {
  padding-top: 0.02rem;
}

.analyzer-metric-label,
.analyzer-context-label {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.analyzer-metric-value {
  align-items: baseline;
  color: var(--stecci-blue);
  column-gap: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.16rem;
}

.analyzer-metric-value.is-muted {
  color: var(--stecci-muted);
  font-size: var(--fs-md);
}

.analyzer-value-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.analyzer-value-unit {
  color: var(--stecci-muted);
  font-size: 0.82em;
  font-weight: 500;
  white-space: nowrap;
}

.analyzer-context-metrics {
  align-content: start;
  align-items: baseline;
  display: grid;
  gap: 0.18rem 0.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  justify-self: stretch;
}

.analyzer-context-value {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: left;
}

.analyzer-range-block {
  margin-top: 0.42rem;
}

.analyzer-range-heading,
.analyzer-range-values {
  align-items: center;
  display: flex;
  font-size: var(--fs-xs);
  justify-content: space-between;
  line-height: 1.15;
}

.analyzer-range-heading {
  color: var(--stecci-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.analyzer-range-heading span:last-child {
  color: var(--stecci-ink);
  font-weight: 700;
  text-transform: none;
}

.analyzer-range-track {
  height: 14px;
  margin: 0.3rem 0 0.2rem;
  position: relative;
}

.analyzer-range-track.has-marker {
  height: 32px;
}

.analyzer-range-line {
  background: var(--stecci-border);
  border-radius: 999px;
  bottom: 5px;
  display: block;
  height: 4px;
  left: 0;
  position: absolute;
  width: 100%;
}

.analyzer-range-line::before,
.analyzer-range-line::after {
  background: var(--stecci-blue);
  border-radius: 999px;
  content: "";
  height: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.analyzer-range-line::before {
  left: 0;
}

.analyzer-range-line::after {
  right: 0;
}

.analyzer-range-marker {
  background: var(--stecci-blue-dark);
  border-radius: 1px;
  bottom: 1px;
  height: 12px;
  position: absolute;
  transform: translateX(-50%);
  width: 2px;
}

.analyzer-range-marker-label {
  align-items: baseline;
  bottom: 14px;
  column-gap: 0.22rem;
  display: flex;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.analyzer-range-marker.is-start .analyzer-range-marker-label {
  left: 0;
  transform: none;
}

.analyzer-range-marker.is-end .analyzer-range-marker-label {
  left: auto;
  right: 0;
  transform: none;
}

.analyzer-range-marker-term {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.analyzer-range-marker-number {
  color: var(--stecci-blue-dark);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.analyzer-range-values {
  color: var(--stecci-text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.analyzer-status-note {
  border-top: 1px solid var(--stecci-border);
  color: var(--stecci-muted);
  padding-top: 0.3rem;
}

.maplibregl-map {
  font-family: Roboto, Arial, sans-serif;
}

.maplibregl-ctrl-group {
  background: #ffffff;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.13);
  overflow: hidden;
}

.maplibregl-ctrl-group button,
.stecci-map-tool-button {
  align-items: center;
  appearance: none;
  background-color: #ffffff;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--stecci-ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  line-height: 1;
  outline: 0 !important;
  padding: 0;
  position: relative;
  transition: background-color 0.12s ease, color 0.12s ease;
  width: 40px;
}

.maplibregl-ctrl-group button:hover,
.maplibregl-ctrl-group button:focus-visible,
.stecci-map-tool-button:hover,
.stecci-map-tool-button:focus-visible {
  background-color: var(--stecci-blue-soft) !important;
  box-shadow: none !important;
  color: var(--stecci-blue);
  outline: 0 !important;
}

.maplibregl-ctrl-group button:active,
.stecci-map-tool-button:active {
  background-color: #dce7ff !important;
}

.maplibregl-ctrl-group button:disabled,
.stecci-map-tool-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(148, 163, 184, 0.15) !important;
}

.maplibregl-ctrl-icon {
  background-image: none !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  display: block;
  height: 100%;
  width: 100%;
}

.stecci-tool-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
  position: relative;
}

.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::before,
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before,
.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::after {
  background: var(--stecci-ink);
  border-radius: 999px;
  content: "";
  display: block;
  position: absolute;
}

.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::before,
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before {
  height: 2.2px;
  left: 10px;
  top: 16px;
  width: 14px;
}

.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::after {
  height: 14px;
  left: 16px;
  top: 10px;
  width: 2.2px;
}

.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon::before,
.maplibregl-ctrl-shrink .maplibregl-ctrl-icon::before {
  content: "";
  display: block;
  height: 16px;
  margin: 9px auto;
  width: 16px;
}

.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon::before {
  background:
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left top / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left top / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right top / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right top / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left bottom / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left bottom / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right bottom / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right bottom / 2px 7px no-repeat;
}

.maplibregl-ctrl-shrink .maplibregl-ctrl-icon::before {
  background:
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left 4px top 4px / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left 4px top 4px / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right 4px top 4px / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right 4px top 4px / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left 4px bottom 4px / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) left 4px bottom 4px / 2px 7px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right 4px bottom 4px / 7px 2px no-repeat,
    linear-gradient(var(--stecci-ink), var(--stecci-ink)) right 4px bottom 4px / 2px 7px no-repeat;
}

.maplibregl-ctrl-top-right {
  z-index: 5;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 0.55rem 0.55rem 0 0;
}

.maplibregl-ctrl-top-left .maplibregl-ctrl {
  margin: 0.55rem 0 0 0.55rem;
}

.stecci-compare-shell {
  overflow: visible !important;
  pointer-events: none;
  position: relative;
  z-index: 35;
}

.stecci-compare-control,
.stecci-compare-panel {
  pointer-events: auto;
}

.stecci-compare-button.is-active {
  background: var(--stecci-blue) !important;
  color: #ffffff;
}

.stecci-compare-button.is-active:hover,
.stecci-compare-button.is-active:focus-visible {
  background: var(--stecci-blue-dark) !important;
  color: #ffffff;
}

.stecci-compare-panel {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  color: var(--stecci-ink);
  font-family: Roboto, Arial, sans-serif;
  padding: 0.55rem;
  position: absolute;
  right: 46px;
  top: 0;
  width: 238px;
}

.stecci-compare-toggle {
  align-items: center;
  color: var(--stecci-ink);
  cursor: pointer;
  display: flex;
  font-size: var(--fs-sm);
  font-weight: 700;
  gap: 0.42rem;
  line-height: 1.2;
  margin: 0 0 0.52rem;
}

.stecci-compare-toggle input {
  accent-color: var(--stecci-blue);
  cursor: pointer;
  height: 16px;
  margin: 0;
  width: 16px;
}

.stecci-compare-fields {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr);
}

.stecci-compare-field {
  display: grid;
  gap: 0.18rem;
  margin: 0;
}

.stecci-compare-field span {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.1;
}

.stecci-compare-field select {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong);
  border-radius: 0;
  color: var(--stecci-ink);
  cursor: pointer;
  font-family: Roboto, Arial, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  height: 32px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  padding: 0.34rem 0.42rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.stecci-compare-field select:focus-visible {
  border-color: var(--stecci-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
  outline: 0;
}

.stecci-compare-empty {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  line-height: 1.3;
}

.stecci-basemap-gallery {
  pointer-events: auto;
  position: relative;
}

.stecci-basemap-gallery button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.stecci-basemap-current {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong) !important;
  border-radius: var(--stecci-radius);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  display: block;
  height: 50px;
  overflow: hidden;
  padding: 4px !important;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
  width: 50px;
}

.stecci-basemap-current:hover,
.stecci-basemap-current:focus-visible,
.stecci-basemap-gallery.is-open .stecci-basemap-current {
  background: #ffffff !important;
  border-color: rgba(29, 78, 216, 0.45) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  outline: 0;
}

.stecci-basemap-current:active {
  transform: translateY(1px);
}

.stecci-basemap-panel {
  background: #ffffff;
  border: 1px solid var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  bottom: 54px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 0.35rem;
  left: 0;
  min-width: 220px;
  opacity: 0;
  padding: 0.45rem;
  pointer-events: none;
  position: absolute;
  transform: translateY(6px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 0.14s ease, transform 0.14s ease;
  visibility: hidden;
  z-index: 8;
}

.stecci-basemap-gallery.is-open .stecci-basemap-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.stecci-basemap-option {
  align-items: center;
  background: transparent;
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 42px minmax(0, 1fr);
  height: 48px;
  padding: 0.28rem 0.45rem 0.28rem 0.28rem !important;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
  width: 100%;
}

.stecci-basemap-option:hover,
.stecci-basemap-option:focus-visible {
  background: var(--stecci-blue-soft) !important;
  color: var(--stecci-ink);
  outline: 0;
}

.stecci-basemap-option.is-active {
  background: var(--stecci-blue-soft) !important;
  color: var(--stecci-ink);
}



.stecci-basemap-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stecci-basemap-thumb {
  background-color: var(--stecci-panel);
  border-radius: var(--stecci-radius);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  display: block;
  height: 100%;
  min-height: 34px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.stecci-basemap-thumb::before,
.stecci-basemap-thumb::after {
  content: "";
  inset: 0;
  position: absolute;
}

.stecci-basemap-thumb::after {
  opacity: 0.75;
}

.stecci-basemap-thumb.has-image {
  background-position: center;
  background-size: cover;
}

.stecci-basemap-thumb.has-image::before,
.stecci-basemap-thumb.has-image::after {
  display: none;
}

.stecci-basemap-thumb-liberty {
  background:
    radial-gradient(circle at 24% 72%, #f28b55 0 18%, transparent 19%),
    radial-gradient(circle at 72% 34%, #f6d7aa 0 28%, transparent 29%),
    linear-gradient(145deg, #9cc1ec 0 34%, #f4d6b0 35% 64%, #e98f61 65% 100%);
}

.stecci-basemap-thumb-liberty::before {
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(82, 94, 110, 0.85) 43% 46%, transparent 47%),
    linear-gradient(118deg, transparent 0 52%, rgba(82, 94, 110, 0.62) 53% 55%, transparent 56%);
}

.stecci-basemap-thumb-liberty::after {
  background:
    linear-gradient(8deg, transparent 0 46%, rgba(255, 255, 255, 0.42) 47% 50%, transparent 51%),
    linear-gradient(100deg, transparent 0 28%, rgba(0, 51, 153, 0.22) 29% 31%, transparent 32%);
}

.stecci-basemap-thumb-positron {
  background:
    radial-gradient(circle at 30% 22%, #ffffff 0 15%, transparent 16%),
    radial-gradient(circle at 70% 76%, #e5e9f0 0 24%, transparent 25%),
    linear-gradient(145deg, var(--stecci-panel) 0 38%, #e8edf4 39% 68%, var(--stecci-border) 69% 100%);
}

.stecci-basemap-thumb-positron::before {
  background:
    linear-gradient(38deg, transparent 0 46%, rgba(100, 116, 139, 0.55) 47% 49%, transparent 50%),
    linear-gradient(118deg, transparent 0 36%, rgba(148, 163, 184, 0.52) 37% 39%, transparent 40%);
}

.stecci-basemap-thumb-positron::after {
  background:
    linear-gradient(2deg, transparent 0 58%, rgba(148, 163, 184, 0.42) 59% 61%, transparent 62%);
}

.stecci-basemap-thumb-bright {
  background:
    radial-gradient(circle at 24% 70%, #9bd66f 0 22%, transparent 23%),
    radial-gradient(circle at 74% 32%, #ffd06b 0 28%, transparent 29%),
    linear-gradient(145deg, #7db6ff 0 31%, #a9dc7a 32% 64%, #f4bf5a 65% 100%);
}

.stecci-basemap-thumb-bright::before {
  background:
    linear-gradient(32deg, transparent 0 42%, rgba(35, 83, 120, 0.72) 43% 45%, transparent 46%),
    linear-gradient(112deg, transparent 0 48%, rgba(255, 255, 255, 0.72) 49% 52%, transparent 53%);
}

.stecci-basemap-thumb-dark {
  background:
    radial-gradient(circle at 26% 70%, #1e3a5f 0 20%, transparent 21%),
    radial-gradient(circle at 70% 32%, var(--stecci-text) 0 26%, transparent 27%),
    linear-gradient(145deg, #0f172a 0 38%, var(--stecci-ink) 39% 68%, var(--stecci-text) 69% 100%);
}

.stecci-basemap-thumb-dark::before {
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(148, 163, 184, 0.58) 43% 45%, transparent 46%),
    linear-gradient(114deg, transparent 0 54%, rgba(96, 165, 250, 0.42) 55% 57%, transparent 58%);
}

.stecci-basemap-thumb-satellite {
  background:
    radial-gradient(circle at 30% 34%, #294b2f 0 18%, transparent 19%),
    radial-gradient(circle at 72% 70%, #7a6242 0 24%, transparent 25%),
    linear-gradient(145deg, #173b28 0 33%, #506c3c 34% 62%, #927c59 63% 100%);
}

.stecci-basemap-thumb-satellite::before {
  background:
    linear-gradient(26deg, transparent 0 41%, rgba(215, 222, 205, 0.58) 42% 45%, transparent 46%),
    linear-gradient(108deg, transparent 0 50%, rgba(94, 125, 75, 0.72) 51% 55%, transparent 56%);
}

.stecci-basemap-thumb-sentinel2 {
  background:
    radial-gradient(circle at 25% 70%, #1d6f4a 0 18%, transparent 19%),
    radial-gradient(circle at 70% 32%, #9bbf6b 0 25%, transparent 26%),
    linear-gradient(145deg, #134e3a 0 30%, #4f7f4f 31% 62%, #b8aa72 63% 100%);
}

.stecci-basemap-thumb-sentinel2::before {
  background:
    linear-gradient(30deg, transparent 0 43%, rgba(229, 231, 210, 0.6) 44% 47%, transparent 48%),
    linear-gradient(110deg, transparent 0 51%, rgba(22, 101, 52, 0.58) 52% 55%, transparent 56%);
}

.stecci-search-shell {
  --stecci-coordinate-search-width: 220px;
  --stecci-place-search-width: 340px;
  overflow: visible !important;
  position: relative;
  z-index: 20;
}

.stecci-search-shell .stecci-search-control {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 !important;
  overflow: hidden;
  position: relative;
  transition: none;
  z-index: 3;
}

.stecci-search-shell .stecci-search-control + .stecci-search-control {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.stecci-place-search-control {
  height: 40px;
  width: 40px;
}

.stecci-place-search-control.is-open {
  overflow: visible;
  width: 40px;
  z-index: 30;
}

.stecci-coordinate-search-control {
  height: 40px;
  width: 40px;
}

.stecci-coordinate-search-control.is-open {
  overflow: visible;
  width: 40px;
  z-index: 30;
}

.stecci-search-clear-control {
  align-items: center;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.stecci-search-toggle {
  background: transparent !important;
  bottom: 0;
  left: 0;
  position: absolute;
  right: auto;
  top: 0;
  z-index: 2;
}

.stecci-search-toggle:hover,
.stecci-search-toggle:focus-visible {
  border-radius: 0;
}

.stecci-search-control button,
.stecci-search-control input {
  outline: 0 !important;
}

.stecci-place-search-control .stecci-search-form,
.stecci-place-search-control .stecci-search-results,
.stecci-place-search-control .stecci-search-status,
.stecci-coordinate-search-control .stecci-search-form,
.stecci-coordinate-search-control .stecci-search-status {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) scale(0.985);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
  visibility: hidden;
}

.stecci-place-search-control.is-open .stecci-search-form,
.stecci-place-search-control.is-open .stecci-search-results,
.stecci-place-search-control.is-open .stecci-search-status,
.stecci-coordinate-search-control.is-open .stecci-search-form,
.stecci-coordinate-search-control.is-open .stecci-search-status {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
  visibility: visible;
}

.stecci-search-form {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  height: 40px;
  left: 40px;
  position: absolute;
  top: 0;
  z-index: 60;
}

.stecci-place-search-control .stecci-search-form {
  width: var(--stecci-place-search-width);
}

.stecci-coordinate-search-control .stecci-search-form {
  width: var(--stecci-coordinate-search-width);
}

.stecci-search-form input {
  background: transparent;
  border: 0;
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 0.28rem 0 0.72rem;
}

.stecci-place-search-control .stecci-search-form input {
  padding-left: 0.28rem;
}

.stecci-coordinate-search-control .stecci-search-form input {
  padding-left: 0.28rem;
}

.stecci-search-form input::placeholder {
  color: var(--stecci-muted);
  font-weight: 500;
}

.stecci-search-form button,
.stecci-search-clear-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--stecci-text);
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.stecci-search-clear-button {
  height: 40px;
}

.stecci-search-form button:hover,
.stecci-search-form button:focus-visible,
.stecci-search-clear-button:hover,
.stecci-search-clear-button:focus-visible {
  background: var(--stecci-blue-soft);
  box-shadow: none;
  color: var(--stecci-blue);
  outline: 0;
}

.stecci-search-clear-button:disabled,
.stecci-search-clear-button:disabled:hover,
.stecci-search-clear-button:disabled:focus-visible {
  background: transparent !important;
  color: #94a3b8;
  cursor: default;
  opacity: 0.38;
}

.stecci-search-icon {
  height: 20px;
  width: 20px;
}

.stecci-search-results,
.stecci-search-status {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--stecci-border);
}

.stecci-search-results {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  border-radius: 0;
  display: grid;
  left: 40px;
  max-height: 220px;
  overflow: auto;
  padding: 0.22rem;
  position: absolute;
  top: 40px;
  transform: translateX(-8px) scale(0.985);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
  width: var(--stecci-place-search-width);
  z-index: 80;
}

.stecci-place-search-control.is-open .stecci-search-results {
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

.stecci-place-search-control .stecci-search-status {
  left: 40px;
  position: absolute;
  top: 40px;
  width: var(--stecci-place-search-width);
  z-index: 80;
}

.stecci-coordinate-search-control .stecci-search-status {
  left: 40px;
  position: absolute;
  top: 40px;
  width: var(--stecci-coordinate-search-width);
  z-index: 80;
}

.stecci-search-results .stecci-search-result {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--stecci-radius);
  border-top: 0 !important;
  box-shadow: none !important;
  color: var(--stecci-ink);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  font-weight: 700;
  height: auto;
  justify-content: flex-start;
  line-height: 1.2;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  padding: 0.42rem 0.5rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100% !important;
}

.stecci-search-results .stecci-search-result:hover,
.stecci-search-results .stecci-search-result:focus-visible {
  background: var(--stecci-blue-soft);
  color: var(--stecci-blue-dark);
  outline: 0;
}

.stecci-search-status {
  border-radius: 0;
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.42rem 0.62rem;
}

.stecci-measure-shell {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 150px;
  pointer-events: none;
}

.stecci-measure-control,
.stecci-analyzer-control,
.stecci-measure-control button,
.stecci-analyzer-control button {
  pointer-events: auto;
}

.stecci-measure-control button,
.stecci-analyzer-control button {
  border-radius: 0 !important;
}

.stecci-measure-control button.is-active,
.stecci-analyzer-control button.is-active {
  background: var(--stecci-blue) !important;
  border-radius: 0 !important;
  color: #ffffff;
}

.stecci-measure-control button.is-active:hover,
.stecci-measure-control button.is-active:focus-visible,
.stecci-analyzer-control button.is-active:hover,
.stecci-analyzer-control button.is-active:focus-visible {
  background: var(--stecci-blue-dark) !important;
  border-radius: 0 !important;
  color: #ffffff;
}

.stecci-measure-icon {
  height: 19px;
  overflow: visible;
  stroke-width: 2;
  width: 19px;
}

.stecci-measure-readout {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--stecci-border-strong);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  min-width: 72px;
  max-width: 200px;
  padding: 0.4rem 0.55rem;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.stecci-map-measuring {
  cursor: grab;
}

.maplibre-map .maplibregl-canvas,
.maplibre-map.maplibregl-canvas-container.maplibregl-interactive,
.maplibregl-canvas-container.maplibregl-interactive {
  cursor: grab !important;
}

.maplibre-map .maplibregl-canvas:active,
.maplibregl-canvas-container.maplibregl-interactive:active {
  cursor: grabbing !important;
}

.maplibregl-ctrl-attrib {
  border-radius: 0;
  font-size: var(--fs-xs);
}

.maplibre-error {
  align-items: center;
  color: var(--stecci-text);
  display: flex;
  font-size: var(--fs-md);
  height: 100%;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 0.22rem 0.5rem;
  padding: 0 0 0.32rem;
}

.summary-label {
  color: var(--stecci-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.summary-value {
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.summary-emphasis {
  color: var(--stecci-blue);
  font-size: var(--fs-md);
}

.generated-summary {
  background: #ffffff;
  border-left: 3px solid var(--stecci-blue);
  border-radius: var(--stecci-radius);
  color: var(--stecci-ink);
  font-size: var(--fs-sm);
  line-height: 1.3;
  margin: 0.44rem 0 0;
  padding: 0.4rem 0.5rem;
}

.empty-point-state {
  background: #ffffff;
  border: 1px dashed var(--stecci-border-strong);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  font-size: var(--fs-sm);
  line-height: 1.35;
  padding: 0.7rem;
}

.empty-point-state p {
  margin: 0.35rem 0 0;
}

.raw-feature-info {
  background: #ffffff;
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  font-size: var(--fs-sm);
  margin-top: 0.55rem;
  padding: 0.5rem 0.6rem;
}

.raw-feature-info summary {
  color: var(--stecci-blue-dark);
  cursor: pointer;
  font-weight: 700;
}

.raw-feature-info pre {
  background: var(--stecci-panel);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  margin: 0.45rem 0 0;
  max-height: 120px;
  overflow: auto;
  padding: 0.45rem;
  white-space: pre-wrap;
}

.active-layer-chip {
  align-items: baseline;
  background: var(--stecci-blue-soft);
  border: 1px solid var(--stecci-border);
  border-radius: var(--stecci-radius);
  color: var(--stecci-text);
  display: flex;
  font-size: var(--fs-xs);
  gap: 0.38rem;
  line-height: 1.3;
  margin-top: 0.12rem;
  overflow: hidden;
  padding: 0.32rem 0.5rem;
}

.active-layer-chip-label {
  color: var(--stecci-muted);
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.active-layer-chip-value {
  color: var(--stecci-text);
  font-size: var(--fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive layouts */

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "scenario"
      "map"
      "side";
  }

  .map-card .card-body,
  .maplibre-map {
    min-height: 430px;
  }

  .gis-grid,
  .risk-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(430px, 1fr) auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gis-results-stack,
  .risk-right-panel {
    border-left: 0;
    border-top: 1px solid var(--stecci-border);
    height: auto !important;
    min-height: 280px !important;
  }

  .gis-map-card .card-body,
  .gis-compare-container,
  .gis-map,
  .risk-map-card .card-body,
  .risk-compare-container,
  .risk-map {
    min-height: 430px !important;
  }

  .gis-results-stack .gis-results-card,
  .gis-results-stack .gis-analyzer-card,
  .risk-results-card {
    height: auto !important;
    min-height: 280px !important;
  }
}

@media (max-width: 991.98px) {
  body {
    overflow-x: hidden;
  }

  .navbar {
    min-height: 48px;
    padding: 0.12rem max(0.35rem, env(safe-area-inset-right)) 0.12rem max(0.35rem, env(safe-area-inset-left));
  }

  .navbar > .container-fluid {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-header {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 44px;
    width: 100%;
  }

  .navbar-toggle,
  .navbar-toggler {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--stecci-border-strong);
    border-radius: var(--stecci-radius);
    box-shadow: none;
    display: inline-flex;
    flex-direction: column;
    height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 44px;
  }

  .navbar-toggle .icon-bar {
    background: var(--stecci-ink) !important;
    background-image: none !important;
    border-radius: 999px;
    display: block;
    height: 2px !important;
    margin: 2px 0 !important;
    width: 20px !important;
  }

  .navbar-collapse {
    flex-basis: 100%;
    max-height: calc(100dvh - 52px);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
  }

  .navbar .navbar-nav {
    align-items: stretch;
    gap: 0;
    margin: 0;
    width: 100%;
  }

  .navbar .navbar-nav > li,
  .navbar .bslib-nav-item {
    display: block;
    min-height: 0;
    width: 100%;
  }

  .navbar .navbar-nav > li > a,
  .navbar .nav-link {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    line-height: 1.2;
    margin: 0;
    min-height: 44px;
    padding: 0.7rem 0.75rem !important;
    text-align: left;
    white-space: normal;
    width: 100%;
  }

  .navbar .navbar-nav > li.active > a,
  .navbar .navbar-nav > li > a[aria-selected="true"] {
    background: var(--stecci-blue-soft) !important;
    box-shadow: inset 3px 0 0 var(--stecci-blue) !important;
    color: var(--stecci-blue-dark) !important;
  }

  .navbar .bslib-nav-spacer {
    display: none !important;
  }

  .navbar-atlas-title {
    color: var(--stecci-muted);
    display: flex;
    min-height: 44px;
    padding: 0.7rem 0.75rem;
    white-space: normal;
    width: 100%;
  }

  .bslib-sidebar-layout {
    --_sidebar-width: min(88vw, 340px) !important;
  }

  .bslib-sidebar-layout .collapse-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .bslib-sidebar-layout:has(.gis-shell),
  .bslib-sidebar-layout:has(.risk-shell),
  .bslib-sidebar-layout:has(.gis-shell) > .main,
  .bslib-sidebar-layout:has(.risk-shell) > .main,
  .bslib-sidebar-layout .main:has(.gis-shell),
  .bslib-sidebar-layout .main:has(.risk-shell),
  .bslib-sidebar-layout:has(.gis-shell) .html-fill-container,
  .bslib-sidebar-layout:has(.risk-shell) .html-fill-container,
  .gis-shell,
  .risk-shell,
  .gis-grid,
  .risk-grid,
  .gis-results-stack,
  .gis-results-card,
  .risk-right-panel {
    height: auto !important;
    overflow: visible !important;
  }

  .bslib-sidebar-layout:has(.gis-shell),
  .bslib-sidebar-layout:has(.risk-shell) {
    min-height: calc(100svh - 48px) !important;
  }

  .gis-grid,
  .risk-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .gis-map-card,
  .gis-map-card .card-body,
  .gis-compare-container,
  .risk-map-card,
  .risk-map-card .card-body,
  .risk-compare-container {
    height: clamp(360px, 58svh, 520px) !important;
    min-height: clamp(360px, 58svh, 520px) !important;
    overflow: hidden !important;
  }

  .gis-map,
  .risk-map {
    height: 100% !important;
    min-height: 0 !important;
  }

  .climate-map {
    aspect-ratio: auto;
    height: clamp(360px, 58svh, 520px);
    min-height: clamp(360px, 58svh, 520px) !important;
  }

  .gis-results-stack,
  .risk-right-panel {
    border-top: 1px solid var(--stecci-border);
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
  }

  .gis-results-stack .gis-results-card,
  .gis-results-stack .gis-analyzer-card,
  .risk-results-card {
    flex: 0 0 auto;
    height: auto !important;
    min-height: 0 !important;
  }

  .gis-results-stack .card-body,
  .gis-results-stack .bslib-card .card-body,
  .summary-card .card-body,
  .analyzer-card .card-body {
    max-height: none;
    overflow: visible;
  }

  .scenario-title {
    align-items: flex-start;
    line-height: 1.3;
    min-height: 40px;
    overflow-wrap: anywhere;
    padding: 0.55rem 0.65rem;
  }

  .side-stack {
    gap: 0;
  }

  .echarts-chart {
    height: 270px;
    min-height: 270px;
  }

  .chart-controls {
    min-height: 44px;
    padding-right: 3.2rem;
  }

  .maplibregl-ctrl-top-right .maplibregl-ctrl {
    margin: 0.4rem 0.4rem 0 0;
  }

  .maplibregl-ctrl-top-left .maplibregl-ctrl {
    margin: 0.4rem 0 0 0.4rem;
  }

  .maplibregl-ctrl-group button,
  .stecci-map-tool-button {
    height: 44px;
    width: 44px;
  }

  .stecci-place-search-control,
  .stecci-place-search-control.is-open,
  .stecci-coordinate-search-control,
  .stecci-coordinate-search-control.is-open,
  .stecci-search-clear-control,
  .stecci-search-clear-button {
    height: 44px;
    width: 44px;
  }

  .stecci-search-form {
    grid-template-columns: minmax(0, 1fr) 44px;
    height: 44px;
    left: 44px;
  }

  .stecci-search-results,
  .stecci-place-search-control .stecci-search-status,
  .stecci-coordinate-search-control .stecci-search-status {
    left: 44px;
    top: 44px;
  }

  .stecci-search-results .stecci-search-result,
  .stecci-compare-field select {
    min-height: 44px;
  }

  .stecci-measure-shell {
    align-items: flex-start;
    flex-direction: row;
    min-width: 0;
    position: relative;
  }

  .stecci-measure-control {
    display: flex;
  }

  .stecci-measure-control button + button {
    border-left: 1px solid rgba(148, 163, 184, 0.15) !important;
    border-top: 0 !important;
  }

  .stecci-measure-readout {
    max-width: min(200px, calc(100vw - 1rem));
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
  }

  .maplibregl-ctrl-attrib {
    max-width: calc(100% - 56px);
  }

  .about-shell {
    min-height: calc(100svh - 48px);
    padding: 1rem 0.75rem max(1rem, env(safe-area-inset-bottom));
  }

  .about-content {
    padding: 1rem;
  }

  .about-feature-grid,
  .about-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .sidebar-content {
    gap: 0.52rem !important;
    padding: 0.62rem 0.55rem max(0.7rem, env(safe-area-inset-bottom)) !important;
  }

  .climate-pathway-control {
    margin-bottom: 0.68rem;
  }

  .climate-period-control .shiny-options-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .climate-period-control .shiny-options-group::before,
  .climate-period-control label.radio-inline::before,
  .climate-period-control label.radio-inline::after {
    display: none;
  }

  .climate-period-control label.radio-inline {
    min-height: 0;
    padding-top: 0;
  }

  .climate-period-option {
    min-height: 62px;
  }

  .climate-selection-context.is-future {
    flex-wrap: wrap;
  }

  .stecci-search-shell {
    --stecci-coordinate-search-width: min(220px, calc(100vw - 64px));
    --stecci-place-search-width: min(340px, calc(100vw - 64px));
  }

  .stecci-compare-panel {
    max-width: calc(100vw - 72px);
    right: 50px;
    width: min(238px, calc(100vw - 72px));
  }

  .stecci-basemap-panel {
    min-width: 0;
    width: min(220px, calc(100vw - 20px));
  }

  .stecci-search-results .stecci-search-result {
    white-space: normal;
  }

  .analyzer-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .analyzer-download-actions,
  .analyzer-download-button,
  .analyzer-download-button.btn {
    width: 100%;
  }

  .analyzer-download-button,
  .analyzer-download-button.btn {
    justify-content: center;
    min-height: 44px;
  }

  .analyzer-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .analyzer-result-header {
    flex-wrap: wrap;
  }

  .analyzer-range-marker-label {
    max-width: 45vw;
  }

  .echarts-tooltip-row {
    max-width: calc(100vw - 72px);
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .summary-grid,
  .gis-property-grid,
  .gis-feature-properties {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-value,
  .gis-feature-properties dd {
    margin-bottom: 0.25rem;
  }

  .climate-period-option strong {
    min-height: 0;
  }
}

@media (pointer: coarse) {
  .gis-layer-group-toggle,
  .gis-section-toggle,
  .gis-upload-action,
  .gis-upload-action.btn,
  .analyzer-download-button,
  .analyzer-download-button.btn,
  .chart-controls .checkbox label,
  .chart-controls .form-check,
  .chart-export-toggle,
  .chart-export-dropdown button,
  .maplibregl-ctrl-group button,
  .stecci-map-tool-button,
  .stecci-search-results .stecci-search-result {
    min-height: 44px;
  }

  .chart-export-toggle,
  .maplibregl-ctrl-group button,
  .stecci-map-tool-button {
    height: 44px;
    width: 44px;
  }

  .gis-layer-switch .checkbox label {
    height: 28px;
    width: 48px;
  }

  .gis-layer-switch .checkbox label::after {
    height: 24px;
    width: 24px;
  }

  .gis-layer-switch .checkbox label:has(input[type="checkbox"]:checked)::after {
    transform: translateX(20px);
  }

  .gis-opacity-range {
    height: 44px;
  }

  .gis-opacity-range::-webkit-slider-thumb {
    height: 24px;
    margin-top: -10px;
    width: 24px;
  }

  .gis-opacity-range::-moz-range-thumb {
    height: 24px;
    width: 24px;
  }

  .gis-upload-panel .input-group,
  .gis-upload-panel .btn-file {
    min-height: 44px;
  }

  .gis-upload-panel .form-control {
    height: 44px;
  }

  .stecci-place-search-control,
  .stecci-place-search-control.is-open,
  .stecci-coordinate-search-control,
  .stecci-coordinate-search-control.is-open,
  .stecci-search-clear-control,
  .stecci-search-clear-button {
    height: 44px;
    width: 44px;
  }

  .stecci-search-form {
    grid-template-columns: minmax(0, 1fr) 44px;
    height: 44px;
    left: 44px;
  }

  .stecci-search-results,
  .stecci-place-search-control .stecci-search-status,
  .stecci-coordinate-search-control .stecci-search-status {
    left: 44px;
    top: 44px;
  }

  .gis-layer-switch .checkbox label:focus-within {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
    outline: 2px solid var(--stecci-blue) !important;
    outline-offset: 2px !important;
  }
}
