.section-heading h2 {
  text-transform: uppercase;
  letter-spacing: .025em;
}

.stat-card strong {
  text-transform: uppercase;
  letter-spacing: .025em;
}

.service-workspace {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px #102b4e0d;
  scroll-margin-top: 22px;
}

.workspace-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}

.workspace-heading h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.02em;
}

.workspace-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.back-button {
  white-space: nowrap;
}

.service-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin: 0 0 22px;
  padding: 17px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #f8fafd;
}

.service-filters label,
.district-filter label {
  display: grid;
  gap: 7px;
  color: #50627a;
  font-size: 12px;
  font-weight: 700;
}

.service-filters input,
.service-filters select,
.district-filter select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: #172b46;
  font: inherit;
  font-size: 14px;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.category-option {
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: #324a68;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.category-option:hover {
  transform: translateY(-1px);
  border-color: #9fc3e8;
  background: #f6faff;
}

.category-option.selected {
  border-color: var(--blue);
  background: #eaf4ff;
  color: #145fae;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.category-hint {
  margin: 10px 0 0;
  padding: 17px 19px;
  border-radius: 12px;
  background: #f5f8fc;
  color: var(--muted);
  text-align: center;
}

.district-filter {
  width: min(100%, 380px);
  margin: -5px 0 18px;
}

.result {
  margin-top: 20px;
  padding: clamp(17px, 2.5vw, 26px);
  border: 1px solid #e5ecf4;
  border-radius: 16px;
  background: #fcfdff;
  scroll-margin-top: 22px;
}

.result-heading {
  margin-bottom: 18px;
}

.result-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  text-transform: uppercase;
}

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

.chart-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e6edf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px #102b4e08;
}

.chart-title {
  margin: 0 0 17px;
  color: #183b63;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
}

.bar-list,
.grouped-bar-list,
.transport-list {
  display: grid;
  gap: 15px;
}

.bar-row {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.bar-row-selectable {
  cursor: pointer;
}

.bar-row-selectable:hover .bar-label {
  color: var(--blue);
  text-decoration: underline;
}

.bar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bar-label,
.grouped-bar-label,
.transport-name {
  color: #415875;
  font-size: 13px;
  font-weight: 650;
}

.bar-value {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f7;
}

.bar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2472c7, #44a5df);
  transition: width .35s ease;
}

.bar-fill.male {
  background: linear-gradient(90deg, #2472c7, #44a5df);
}

.bar-fill.female {
  background: linear-gradient(90deg, #9d62c8, #cf87cf);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 10px;
}

.stat-metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f4f8fd;
}

.stat-metric-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.stat-metric-value {
  color: var(--navy);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.grouped-bar-row,
.transport-row {
  display: grid;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf1f6;
}

.series-line {
  display: grid;
  grid-template-columns: minmax(92px, 125px) minmax(60px, 1fr) 36px;
  align-items: center;
  gap: 9px;
}

.series-label {
  color: #687b92;
  font-size: 10px;
}

.series-line .bar-track {
  height: 7px;
}

.series-line .bar-value {
  text-align: right;
}

.chart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 96px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #2467a8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.password-toggle:hover {
  background: #eaf4ff;
}

@media (max-width: 760px) {
  .workspace-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-filters .button {
    grid-column: 1 / -1;
  }

  .result-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .service-workspace {
    padding: 17px 13px;
    border-radius: 15px;
  }

  .service-filters {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .service-filters .button {
    grid-column: auto;
  }

  .category-options {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 15px;
  }

  .series-line {
    grid-template-columns: minmax(82px, 98px) minmax(40px, 1fr) 32px;
    gap: 6px;
  }
}
