:root {
  --navy: #071f3d;
  --navy-2: #031a35;
  --blue: #0b5fc4;
  --blue-2: #0a88dd;
  --cyan: #15a9f7;
  --text: #071a42;
  --muted: #52647f;
  --line: #d9e4f2;
  --soft-line: #e8eff8;
  --panel: #ffffff;
  --bg: #f5f9fe;
  --superior: #0dae57;
  --alto: #1776c8;
  --medio: #f3c014;
  --bajo: #f36d21;
  --shadow: 0 14px 34px rgba(15, 43, 79, 0.08);
  font-family: Montserrat, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 88% 2%, rgba(185, 217, 248, 0.38), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #eef5fc 100%);
  color: var(--text);
  overflow-x: hidden;
}

button,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
select {
  cursor: pointer;
}

.imsel-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(300px, 24vw, 392px) minmax(0, 1fr);
}

.imsel-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 50px 44px 46px;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 18%, rgba(10, 110, 214, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 24%, rgba(10, 110, 214, 0.32) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 40%, rgba(10, 110, 214, 0.35) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 55%, rgba(10, 110, 214, 0.38) 0 4px, transparent 5px),
    radial-gradient(circle at 70% 70%, rgba(10, 110, 214, 0.32) 0 4px, transparent 5px),
    linear-gradient(155deg, #02172f 0%, #072a4f 46%, #031831 100%);
}

.imsel-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(31deg, transparent 0 41%, rgba(66, 153, 225, 0.44) 42%, transparent 43% 100%),
    linear-gradient(149deg, transparent 0 43%, rgba(66, 153, 225, 0.32) 44%, transparent 45% 100%),
    linear-gradient(96deg, transparent 0 49%, rgba(66, 153, 225, 0.26) 50%, transparent 51% 100%);
  background-size: 160px 170px;
}

.imsel-sidebar > * {
  position: relative;
  z-index: 1;
}

.pad-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 100%);
}

.pad-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pad-name {
  margin: 12px 0 42px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sidebar-rule {
  width: 86px;
  height: 4px;
  margin-bottom: 38px;
  background: var(--cyan);
  display: block;
}

.sidebar-rule.short {
  margin: 35px 0 42px;
}

.sidebar-title h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(39px, 3vw, 54px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.sidebar-title p {
  margin: 0;
  color: #1da8ff;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 700;
}

.sidebar-copy {
  max-width: 292px;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 560;
}

.sidebar-points {
  display: grid;
  gap: 31px;
  margin-top: auto;
  padding-top: 58px;
}

.sidebar-points article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.sidebar-points strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.sidebar-points p {
  margin: 5px 0 0;
  color: #e2eefb;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.sidebar-footer {
  margin: 52px 0 0;
  padding-top: 25px;
  border-top: 2px solid rgba(21, 169, 247, 0.8);
  color: #1cb3ff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sidebar-footer span::before {
  content: "|";
  margin: 0 9px;
  color: #93d2ff;
}

.dashboard {
  min-width: 0;
  padding: clamp(22px, 2.4vw, 38px) clamp(22px, 2.8vw, 45px) 34px clamp(22px, 2.5vw, 38px);
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(500px, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.dashboard-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
}

.dashboard-header p {
  margin: 9px 0 0;
  color: #1d355c;
  font-size: 15px;
  font-weight: 560;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 0.72fr);
  gap: 14px;
}

.filters label,
.compare-control {
  display: grid;
  gap: 8px;
}

.filters span,
.compare-control span {
  color: #0b274c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filters select,
.compare-toggle {
  width: 100%;
  height: 46px;
  border: 1px solid #c8d7e9;
  border-radius: 8px;
  background: #ffffff;
  color: #091d41;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 570;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.compare-toggle {
  border-color: #0b5fc4;
  color: #07386f;
  font-weight: 900;
}

.compare-toggle[aria-expanded="true"] {
  color: #ffffff;
  background: #0b5fc4;
  box-shadow: 0 9px 18px rgba(11, 95, 196, 0.18);
}

.comparison-drawer {
  margin-bottom: 18px;
  padding: 18px 20px 20px;
}

.comparison-drawer[hidden] {
  display: none !important;
}

.comparison-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding-right: 64px;
}

.comparison-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #0b5fc4;
  background: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.comparison-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.comparison-picker {
  min-height: 300px;
  padding: 14px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #f7fbff;
}

.comparison-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.comparison-picker-head strong {
  color: #09244f;
  font-size: 13px;
  font-weight: 900;
}

.comparison-clear {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #c8d7e9;
  border-radius: 8px;
  color: #07386f;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.comparison-clear:hover {
  border-color: #0b5fc4;
  color: #0b5fc4;
}

.comparison-clear:disabled {
  color: #8798ad;
  background: #f1f5f9;
  cursor: default;
}

.comparison-list {
  max-height: 330px;
  overflow: auto;
  display: grid;
  gap: 7px;
  padding-right: 5px;
}

.comparison-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #dce7f4;
  border-radius: 7px;
  background: #ffffff;
  color: #09244f;
  font-size: 12px;
  font-weight: 800;
}

.comparison-option input {
  width: 16px;
  height: 16px;
  accent-color: #0b5fc4;
}

.comparison-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-option small {
  color: #0b5fc4;
  font-weight: 900;
}

.comparison-panel {
  min-width: 0;
}

.comparison-matrix-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #19375d;
  background: #f2f6fb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-table tbody th {
  color: #09244f;
  font-size: 13px;
  font-weight: 900;
}

.comparison-total-row th,
.comparison-total-row td {
  background: #fbfdff;
}

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

.comparison-area-row.is-hidden {
  display: none;
}

.comparison-area-row th {
  padding-left: 34px;
  color: #405979;
  font-size: 12px;
  font-weight: 800;
}

.area-toggle {
  min-width: 86px;
  min-height: 29px;
  border: 1px solid #b9d4f0;
  border-radius: 7px;
  background: #eef6ff;
  color: #0b5fc4;
  font-size: 11px;
  font-weight: 900;
}

.area-toggle[aria-expanded="true"] {
  color: #ffffff;
  background: #0b5fc4;
}

.comparison-score {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.comparison-score.superior {
  color: #087033;
  background: #d7f3dc;
}

.comparison-score.alto {
  color: #0a4fa7;
  background: #dcefff;
}

.comparison-score.medio {
  color: #805b00;
  background: #fff1c4;
}

.comparison-score.bajo {
  color: #c51e11;
  background: #ffe0d2;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: clamp(14px, 1.8vw, 32px);
  margin-bottom: 18px;
}

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

.metric-card {
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px clamp(18px, 2.1vw, 36px);
  text-align: center;
}

.metric-icon {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #dcefff;
  border: 1px solid #c9e3fb;
  display: grid;
  place-items: center;
  color: #085d9b;
}

.metric-card > div {
  min-width: 0;
}

.metric-card strong {
  display: block;
  color: #0d55b4;
  font-size: 48px;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.leader-card strong {
  font-size: 31px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.metric-card p {
  margin: 8px 0 9px;
  color: #0d2a58;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.metric-card small {
  color: #486489;
  font-size: 14px;
  font-weight: 560;
}

.panel-kicker {
  margin: 0 0 4px;
  color: #52647f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overview-axis-panel {
  margin-bottom: 18px;
  padding: 20px 25px 28px;
}

.score-badge {
  display: inline-flex;
  width: max-content;
  min-width: 66px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #087033 !important;
  background: #c9f0d0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(240px, 0.68fr) minmax(380px, 1.08fr) minmax(300px, 0.86fr);
  grid-template-areas:
    "map ranking matrix matrix"
    "steps steps steps steps"
    "improvements improvements improvements improvements";
  gap: 15px;
}

.panel {
  overflow: hidden;
}

.panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.panel h3 span {
  color: #293f61;
  font-size: 16px;
  font-weight: 600;
}

.map-panel {
  grid-area: map;
  min-height: 470px;
  padding: 18px 20px 18px;
}

.map-body {
  display: grid;
  gap: 12px;
  min-height: 425px;
}

.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c8d7e9;
  border-radius: 7px;
  background: #ffffff;
  color: #08224b;
  box-shadow: 0 8px 20px rgba(14, 48, 88, 0.05);
}

.legend strong {
  font-size: 12px;
  font-weight: 900;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.coverage-map {
  min-height: 385px;
  display: grid;
  place-items: center;
}

.coverage-map svg {
  width: min(100%, 300px);
  height: auto;
  display: block;
}

.map-outline {
  fill: #dceffc;
  stroke: #a6c9e7;
  stroke-width: 1.15;
}

.argentina-main {
  filter: drop-shadow(0 8px 16px rgba(18, 71, 128, 0.12));
}

.map-province-line {
  fill: none;
  stroke: rgba(126, 172, 210, 0.52);
  stroke-width: 0.65;
}

.map-dot {
  stroke: #ffffff;
  stroke-width: 1.4;
}

.map-dot.selected {
  stroke: #091d41;
  stroke-width: 2;
}

.superior {
  fill: var(--superior);
  background: var(--superior);
}

.alto {
  fill: var(--alto);
  background: var(--alto);
}

.medio {
  fill: var(--medio);
  background: var(--medio);
}

.bajo {
  fill: var(--bajo);
  background: var(--bajo);
}

.island-inset {
  fill: #f7fbff;
  stroke: #c7d9ea;
  stroke-width: 1.1;
}

.ranking-panel {
  grid-area: ranking;
  min-height: 510px;
  padding: 18px 20px 20px;
}

.ranking-table {
  margin-top: 14px;
}

.ranking-table.is-expanded {
  max-height: 470px;
  overflow: auto;
  padding-right: 4px;
}

.ranking-table table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 0 8px;
  border-bottom: 1px solid #d8e5f1;
  background: #ffffff;
  color: #19375d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: left;
}

.ranking-table td {
  padding: 8px 0;
  border-bottom: 1px solid #e8eef6;
  color: #08224b;
  font-size: 14px;
  font-weight: 650;
}

.rank-medal {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: #0c3770;
}

.rank-medal.superior {
  background: var(--superior);
}

.rank-medal.alto {
  background: var(--alto);
}

.rank-medal.medio {
  background: var(--medio);
}

.rank-medal.bajo {
  background: var(--bajo);
}

.ranking-score {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 7px;
  color: #0a4fa7;
  background: #dcefff;
  font-size: 13px;
  font-weight: 900;
}

.ranking-score.superior {
  color: #0a7439;
  background: #d7f3dc;
}

.ranking-score.medio {
  color: #805b00;
  background: #fff1c4;
}

.ranking-score.bajo {
  color: #c51e11;
  background: #ffe0d2;
}

.link-button {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b5fc4;
  font-size: 13px;
  font-weight: 900;
}

.link-button::after {
  content: " ->";
}

.axis-panel {
  padding: 20px 25px;
}

.axis-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.axis-radar-toggle {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #b8d4f2;
  border-radius: 7px;
  background: #eef6ff;
  color: #0759b8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(10, 39, 74, 0.08);
}

.axis-radar-toggle[aria-expanded="true"] {
  border-color: #0b5fc4;
  background: #0b5fc4;
  color: #ffffff;
}

.axis-radar-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.axis-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.axis-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
  justify-items: stretch;
  text-align: left;
  color: #09244f;
  min-height: 108px;
  padding: 20px 18px;
  border: 1px solid #dce7f4;
  border-top: 4px solid currentColor;
  border-radius: 8px;
  background: #ffffff;
}

.axis-item.blue {
  color: #0c73d8;
}

.axis-item.yellow {
  color: #f2c100;
}

.axis-item.green {
  color: #11a550;
}

.axis-item.orange {
  color: #f36d21;
}

.axis-item p {
  margin: 0;
  color: #0b274c;
  font-size: clamp(16px, 1.05vw, 21px);
  line-height: 1.16;
  font-weight: 600;
}

.axis-metric {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 7px;
  min-width: 0;
  width: 96px;
}

.axis-value {
  color: currentColor;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.axis-bar {
  width: 96px;
  height: 9px;
  border-radius: 999px;
  background: #dce4ee;
  overflow: hidden;
}

.axis-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.axis-bar.blue span {
  background: linear-gradient(90deg, #0c73d8, #57aef2);
}

.axis-bar.yellow span {
  background: linear-gradient(90deg, #f2c100, #ffe072);
}

.axis-bar.green span {
  background: linear-gradient(90deg, #11a550, #57d17b);
}

.axis-bar.orange span {
  background: linear-gradient(90deg, #f36d21, #ff9d67);
}

.axis-radar-drawer {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #f8fbff;
}

.axis-radar-chart {
  min-width: 0;
}

.axis-radar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 13px;
  margin-bottom: 4px;
}

.axis-radar-meta strong {
  color: #09244f;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.axis-radar-meta span {
  color: #0b5fc4;
  font-size: 12px;
  font-weight: 900;
}

.axis-radar-chart .profile-radar-stage {
  margin-top: 0;
}

.axis-radar-chart .profile-radar-svg {
  min-height: 430px;
}

.steps-panel {
  grid-area: steps;
  padding: 18px 18px 20px;
}

.steps {
  margin-top: 13px;
}

.steps-caption {
  display: none;
}

.steps-caption p {
  margin: 0;
  color: #4d5666;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 560;
}

.steps-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px 24px;
  color: #101b2d;
  font-size: 14px;
  font-weight: 600;
}

.steps-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.steps-legend b {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 4px 11px rgba(11, 31, 61, 0.13);
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.steps article {
  position: relative;
  display: grid;
  justify-items: stretch;
  align-content: center;
  gap: 5px 10px;
  text-align: left;
}

.step-item {
  grid-template-columns: minmax(0, 1fr);
  min-height: 126px;
  padding: 12px 14px;
  border: 2px solid #9ab9e7;
  border-radius: 11px;
  background: #ffffff;
  color: #09244f;
  box-shadow: 0 16px 34px rgba(25, 59, 107, 0.08);
}

.step-case {
  color: #083570;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.step-item p {
  margin: 0;
  color: #09244f;
  min-height: auto;
  font-size: 11.5px;
  line-height: 1.18;
  font-weight: 850;
}

.steps-flow > i {
  display: none;
}

.step-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--step-color);
  margin-inline: auto;
}

.step-item.superior {
  --step-color: var(--superior);
  --step-bg: #e9fbef;
}

.step-item.alto {
  --step-color: var(--alto);
  --step-bg: #e9f5ff;
}

.step-item.medio {
  --step-color: var(--medio);
  --step-bg: #fff9dd;
}

.step-item.bajo {
  --step-color: var(--bajo);
  --step-bg: #fff0e8;
}

.step-item.superior b {
  background: var(--superior);
}

.step-item.alto b {
  background: var(--alto);
}

.step-item.medio b {
  background: var(--medio);
}

.step-item.bajo b {
  background: var(--bajo);
}

.step-score {
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  justify-self: start;
  color: var(--step-color);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.step-level {
  min-width: 72px;
  justify-self: start;
  padding: 3px 8px;
  border: 2px solid var(--step-color);
  border-radius: 999px;
  color: var(--step-color);
  background: #ffffff;
  font-size: 10px;
  text-align: center;
  font-weight: 900;
}

.step-bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e0e5ed;
  overflow: hidden;
}

.step-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--step-color);
}

.population-panel {
  grid-area: matrix;
  min-height: 238px;
  padding: 18px 16px 20px;
}

.general-improvements-panel {
  grid-area: improvements;
  padding: 18px 20px 20px;
}

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

.general-improvement-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 16px 17px;
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  background: var(--profile-bg);
}

.general-improvement-card strong {
  color: var(--profile-color, #071f3d);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.general-improvement-card span {
  color: #0b274c;
  font-size: 15px;
  font-weight: 900;
}

.general-improvement-card small {
  color: #52647f;
  font-size: 12px;
  font-weight: 800;
}

.general-improvement-card i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ee;
}

.general-improvement-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--profile-color);
}

.population-group-panel {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.population-row {
  display: grid;
  grid-template-columns: minmax(175px, 1.28fr) repeat(5, minmax(64px, 0.7fr));
  gap: 8px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  background: #f8fbff;
}

.population-row.superior {
  border-left: 6px solid var(--superior);
  background: #e9fbef;
}

.population-row.alto {
  border-left: 6px solid var(--alto);
  background: #e9f5ff;
}

.population-row.medio {
  border-left: 6px solid var(--medio);
  background: #fff9dd;
}

.population-row.bajo {
  border-left: 6px solid var(--bajo);
  background: #fff0e8;
}

.population-title {
  display: grid;
  gap: 4px;
}

.population-title strong {
  color: #09244f;
  font-size: 11.5px;
  line-height: 1.22;
}

.population-title small,
.population-cell small {
  color: #49627f;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.16;
}

.population-cell {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.population-score {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.population-score.superior {
  color: #087033;
  background: #d7f3dc;
}

.population-score.alto {
  color: #0a4fa7;
  background: #dcefff;
}

.population-score.medio {
  color: #805b00;
  background: #fff1c4;
}

.population-score.bajo {
  color: #c51e11;
  background: #ffe0d2;
}

.population-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: #dce4ee;
  overflow: hidden;
}

.population-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.population-bar.superior span {
  background: var(--superior);
}

.population-bar.alto span {
  background: var(--alto);
}

.population-bar.medio span {
  background: var(--medio);
}

.population-bar.bajo span {
  background: var(--bajo);
}

.municipality-profile[hidden] {
  display: none !important;
}

.municipality-profile {
  margin-top: 54px;
  margin-bottom: 18px;
}

.profile-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(235px, 0.9fr) repeat(3, minmax(150px, 0.8fr));
  grid-template-areas:
    "top top top top top"
    "axis radar radar radar steps"
    "improve improve improve improve improve";
  gap: 12px;
}

.profile-export-actions {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.profile-export-button {
  padding: 8px 12px;
  border: 1px solid #b8d4f2;
  border-radius: 7px;
  color: #0759b8;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(10, 39, 74, 0.1);
}

.profile-export-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.profile-level-superior {
  --profile-color: var(--superior);
  --profile-bg: #e8fbef;
}

.profile-level-alto {
  --profile-color: var(--alto);
  --profile-bg: #e8f4ff;
}

.profile-level-medio {
  --profile-color: var(--medio);
  --profile-bg: #fff8d8;
}

.profile-level-bajo {
  --profile-color: var(--bajo);
  --profile-bg: #fff0e8;
}

.profile-top {
  grid-area: top;
  position: relative;
  display: grid;
  grid-template-columns: minmax(530px, 1.12fr) minmax(450px, 0.88fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 39% 20%, rgba(21, 169, 247, 0.58) 0 4px, transparent 5px),
    radial-gradient(circle at 28% 72%, rgba(21, 169, 247, 0.26) 0 4px, transparent 5px),
    radial-gradient(circle at 89% 24%, rgba(21, 169, 247, 0.2) 0 4px, transparent 5px),
    linear-gradient(150deg, #02172f 0%, #07385e 100%);
  box-shadow: var(--shadow);
}

.profile-top::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background:
    linear-gradient(31deg, transparent 0 45%, rgba(91, 178, 239, 0.34) 46%, transparent 47% 100%),
    linear-gradient(149deg, transparent 0 52%, rgba(91, 178, 239, 0.24) 53%, transparent 54% 100%);
  background-size: 190px 180px;
}

.profile-top > * {
  position: relative;
  z-index: 1;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.55fr) minmax(230px, 0.95fr);
  align-items: stretch;
  min-height: 146px;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  color: #ffffff;
}

.profile-hero::before {
  content: none;
}

.profile-hero > * {
  position: relative;
  z-index: 1;
}

.profile-name-card,
.profile-detail-card {
  min-width: 0;
  padding: 19px 21px;
}

.profile-name-card {
  display: grid;
  align-content: center;
  background: rgba(0, 18, 42, 0.28);
}

.profile-detail-card {
  display: grid;
  align-content: start;
  gap: 12px;
  background: rgba(5, 47, 81, 0.54);
}

.profile-hero .panel-kicker {
  color: #d8ecff;
}

.profile-hero h2 {
  margin: 8px 0 0;
  color: #ffffff;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  font-size: clamp(31px, 3.35vw, 56px);
  line-height: 0.92;
  font-weight: 900;
}

.profile-meta {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 3px solid var(--cyan);
  color: #f4fbff;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.profile-population span {
  display: block;
  max-width: 360px;
  color: #e9f7ff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.profile-population strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 0.96;
  font-weight: 900;
}

.profile-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  gap: 0;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 0;
  box-shadow: none;
}

.profile-kpi {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 108px;
  padding: 14px 16px;
  border: 0;
  border-left: 1px solid rgba(220, 235, 250, 0.24);
  border-top: 5px solid var(--profile-color);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-align: center;
}

.profile-kpi span {
  color: #d8ecff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-kpi strong {
  color: var(--profile-color);
  font-size: clamp(31px, 3.3vw, 43px);
  line-height: 0.95;
  font-weight: 900;
}

.profile-kpi small {
  color: #d8ecff;
  font-size: 12px;
  font-weight: 650;
}

.profile-axis-panel {
  grid-area: axis;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.profile-radar-panel {
  grid-area: radar;
  min-height: 560px;
  padding: 16px 18px;
}

.profile-steps-panel {
  grid-area: steps;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.profile-steps-as-general {
  flex: 1;
  margin-top: 11px;
}

.profile-steps-panel .steps-flow {
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.profile-steps-panel .step-item {
  min-height: 74px;
  padding: 10px 11px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.profile-steps-panel .step-score {
  font-size: 21px;
  justify-self: end;
}

.profile-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.profile-step-head p {
  min-height: 0;
  font-size: 10.6px;
}

.profile-step-head span {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.profile-step-head .step-level {
  min-width: 64px;
  padding: 2px 7px;
  font-size: 9px;
  font-style: normal;
}

.profile-steps-panel .step-item:hover,
.profile-steps-panel .step-item:focus,
.profile-steps-panel .step-item.is-radar-active {
  border-color: var(--step-color);
  box-shadow: 0 12px 22px rgba(13, 52, 93, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.profile-improvements-panel {
  grid-area: improve;
  padding: 16px 18px 18px;
}

.profile-axis-grid {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.profile-axis-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 7px 13px;
  min-height: 74px;
  padding: 9px 10px;
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  background: var(--profile-bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.profile-axis-card:hover,
.profile-axis-card:focus,
.profile-axis-card.is-radar-active {
  border-color: var(--profile-color);
  box-shadow: 0 12px 22px rgba(13, 52, 93, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.profile-axis-card strong {
  color: var(--profile-color);
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.profile-axis-card span {
  color: #0b274c;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 820;
}

.profile-axis-card small {
  color: #52647f;
  font-size: 11px;
  font-weight: 700;
}

.profile-axis-card i,
.profile-step i,
.profile-area-card i,
.profile-improvement-card i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ee;
}

.profile-axis-card i b,
.profile-step i b,
.profile-area-card i b,
.profile-improvement-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--profile-color);
}

.profile-radar-stage {
  margin-top: 6px;
}

.profile-radar-context {
  margin: 0 0 4px;
  color: #536a86;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-radar-svg {
  width: 100%;
  min-height: 560px;
  display: block;
  margin-top: 4px;
}

.profile-radar-grid polygon {
  fill: none;
  stroke: #bdd4ea;
  stroke-width: 1.25;
}

.profile-radar-grid line {
  stroke: #c4d8eb;
  stroke-width: 1.15;
}

.profile-radar-area {
  fill: rgba(12, 115, 216, 0.2);
  stroke: none;
}

.profile-radar-line {
  fill: none;
  stroke: #0b5fc4;
  stroke-width: 3;
  stroke-linejoin: round;
}

.profile-radar-dot {
  fill: var(--profile-color);
  stroke: #ffffff;
  stroke-width: 1.8;
}

.profile-radar-label {
  fill: #3c5371;
  font-size: 8px;
  font-weight: 900;
}

.profile-radar-value {
  fill: #071f3d;
  font-size: 8px;
  font-weight: 900;
}

.profile-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.profile-step {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 132px;
  padding: 10px 8px;
  border: 1px solid #d6e3f2;
  border-top: 4px solid var(--profile-color);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.profile-step-number {
  color: #516884;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-step-title {
  min-height: 34px;
  color: #09244f;
  font-size: 10.5px;
  line-height: 1.12;
  font-weight: 900;
}

.profile-step strong {
  color: var(--profile-color);
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.profile-step em {
  min-width: 74px;
  padding: 3px 9px;
  border: 1.5px solid var(--profile-color);
  border-radius: 999px;
  color: var(--profile-color);
  background: #ffffff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
}

.profile-improvement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.profile-donut-wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.profile-donut-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-donut-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  gap: 3px 8px;
  color: #4d5d72;
}

.profile-donut-legend li span {
  width: 7px;
  height: 7px;
  margin-top: 5px;
}

.profile-donut-legend strong {
  color: #4b5667;
  font-size: 12px;
  line-height: 1.16;
  font-weight: 650;
}

.profile-donut-legend small {
  grid-column: 2;
  color: #66758b;
  font-size: 10px;
  font-weight: 750;
}

.profile-donut {
  width: min(170px, 100%);
  height: auto;
  justify-self: center;
}

.profile-donut-track,
.profile-donut-segment {
  fill: none;
  stroke-width: 28;
}

.profile-donut-track {
  stroke: #e4ebf3;
}

.profile-donut-segment {
  stroke-linecap: butt;
}

.profile-donut-hole {
  fill: #ffffff;
}

.profile-improvement-bars {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.profile-improvement-bars p {
  margin: 0;
  color: #5a6c83;
  font-size: 11px;
  font-weight: 800;
}

.profile-improvement-bars ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-improvement-row {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-improvement-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 12px;
}

.profile-improvement-summary div {
  display: grid;
  gap: 2px;
}

.profile-improvement-row span {
  color: #0b274c;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.profile-improvement-row small {
  color: #5f6f85;
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 800;
}

.profile-improvement-row strong {
  color: var(--dependency-color);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.profile-improvement-row i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ee;
}

.profile-improvement-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dependency-color);
}

.profile-improvement-detail {
  display: grid;
  gap: 4px;
  margin: 2px 0 0 18px;
  padding: 0;
  color: #405979;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 720;
}

.profile-improvement-detail li::marker {
  color: var(--dependency-color);
  font-weight: 900;
}

.profile-improvement-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 15px 16px;
  border: 1px solid #d6e3f2;
  border-radius: 8px;
  background: var(--profile-bg);
}

.profile-improvement-card strong {
  color: var(--profile-color, #071f3d);
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
}

.profile-improvement-card span {
  color: #0b274c;
  font-size: 14px;
  font-weight: 900;
}

.profile-improvement-card small {
  color: #52647f;
  font-size: 12px;
  font-weight: 700;
}

.profile-area-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 14px;
}

.profile-area-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce7f4;
  border-radius: 8px;
  background: #eef5fb;
}

.profile-area-group h4 {
  margin: 0 0 10px;
  color: #09244f;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
}

.profile-area-group > div {
  display: grid;
  gap: 9px;
}

.profile-area-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  justify-items: center;
  min-height: 82px;
  padding: 10px;
  border: 1px solid #d3dfed;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.profile-area-card strong {
  color: var(--profile-color);
  font-size: 21px;
  font-weight: 900;
}

.profile-area-card span {
  color: #09244f;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
}

.profile-area-card small {
  color: #52647f;
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  padding: 26px;
  color: #52647f;
  font-weight: 700;
}

.sidebar-icon,
.metric-icon,
.step-icon {
  position: relative;
}

.sidebar-icon {
  width: 54px;
  height: 54px;
  border: 2px solid #14aefa;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.sidebar-icon::before,
.metric-icon::before,
.step-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  display: block;
  margin: auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.icon-database,
.icon-community {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='24' cy='11' rx='15' ry='6'/%3E%3Cpath d='M9 11v24c0 3 7 6 15 6s15-3 15-6V11'/%3E%3Cpath d='M9 23c0 3 7 6 15 6s15-3 15-6'/%3E%3Cpath d='M9 34c0 3 7 6 15 6s15-3 15-6'/%3E%3C/svg%3E");
}

.icon-people,
.icon-open {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='17' r='7'/%3E%3Ccircle cx='33' cy='20' r='5'/%3E%3Cpath d='M5 39c1-9 7-14 13-14s12 5 13 14'/%3E%3Cpath d='M29 30c5 1 9 4 10 9'/%3E%3C/svg%3E");
}

.icon-building {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 40h34'/%3E%3Cpath d='M10 40V20l14-9 14 9v20'/%3E%3Cpath d='M16 40V25h5v15'/%3E%3Cpath d='M27 40V25h5v15'/%3E%3Cpath d='M19 15h10'/%3E%3C/svg%3E");
}

.icon-chart {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 39h33'/%3E%3Cpath d='M13 35V23'/%3E%3Cpath d='M23 35V15'/%3E%3Cpath d='M33 35V9'/%3E%3Cpath d='M11 25l10-9 8 5 11-13'/%3E%3C/svg%3E");
}

.icon-trophy {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8h16v8c0 8-4 14-8 14s-8-6-8-14V8Z'/%3E%3Cpath d='M16 13H8c0 8 4 12 10 13'/%3E%3Cpath d='M32 13h8c0 8-4 12-10 13'/%3E%3Cpath d='M24 30v8'/%3E%3Cpath d='M16 40h16'/%3E%3C/svg%3E");
}

.icon-search {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='13'/%3E%3Cpath d='M30 30l10 10'/%3E%3C/svg%3E");
}

.icon-headset {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 26v-4c0-8 6-14 14-14s14 6 14 14v4'/%3E%3Cpath d='M10 25h7v12h-7z'/%3E%3Cpath d='M31 25h7v12h-7z'/%3E%3Cpath d='M31 37c-2 4-6 5-10 5'/%3E%3C/svg%3E");
}

.icon-document {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6h15l8 8v28H13z'/%3E%3Cpath d='M28 6v10h8'/%3E%3Cpath d='M19 24h12'/%3E%3Cpath d='M19 31h12'/%3E%3C/svg%3E");
}

.icon-card {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='13' width='34' height='24' rx='3'/%3E%3Cpath d='M7 21h34'/%3E%3Cpath d='M14 31h8'/%3E%3C/svg%3E");
}

@media (max-width: 1500px) {
  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.78fr);
    grid-template-areas:
      "map ranking"
      "matrix matrix"
      "steps steps"
      "improvements improvements";
  }

  .axis-cards {
    grid-template-columns: repeat(4, minmax(205px, 1fr));
  }

  .steps-flow {
    grid-template-columns: repeat(5, minmax(115px, 1fr));
    gap: 12px;
  }

  .steps-flow > i {
    display: none;
  }
}

@media (max-width: 1280px) {
  .imsel-shell {
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .imsel-sidebar {
    padding: 36px 30px;
  }

  .dashboard {
    padding: 28px;
  }

  .dashboard-header {
    grid-template-columns: 1fr;
  }

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

  .main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "map ranking"
      "matrix matrix"
      "steps steps"
      "improvements improvements";
  }

  .profile-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "axis"
      "radar"
      "steps"
      "improve";
  }

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

  .profile-hero {
    grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 0.8fr);
  }

  .profile-kpis {
    border-radius: 7px;
  }

  .profile-improvement-bars ul {
    grid-template-columns: 1fr;
  }

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

  .comparison-layout {
    grid-template-columns: 1fr;
  }

  .comparison-picker {
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .imsel-shell {
    display: block;
  }

  .imsel-sidebar {
    position: relative;
    min-height: auto;
    padding: 30px 28px;
  }

  .pad-brand {
    width: min(240px, 100%);
  }

  .pad-name {
    margin-bottom: 24px;
  }

  .sidebar-title h1 {
    font-size: clamp(34px, 7vw, 48px);
  }

  .sidebar-copy {
    max-width: 780px;
  }

  .sidebar-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 34px;
  }

  .sidebar-footer {
    margin-top: 34px;
  }

  .dashboard {
    padding: 24px 24px 34px;
  }
}

@media (max-width: 900px) {
  .imsel-shell {
    display: block;
  }

  .imsel-sidebar {
    position: relative;
    min-height: auto;
  }

  .filters,
  .kpi-row,
  .axis-cards,
  .main-grid,
  .general-improvement-grid,
  .profile-kpis,
  .profile-steps-grid,
  .profile-improvement-grid,
  .profile-area-groups {
    grid-template-columns: 1fr;
  }

  .axis-panel-head {
    display: grid;
    justify-content: stretch;
  }

  .axis-radar-toggle {
    width: 100%;
  }

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

  .profile-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    box-shadow: none;
  }

  .profile-kpi {
    border: 1px solid #dce7f4;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-grid {
    grid-template-areas:
      "map"
      "ranking"
      "matrix"
      "steps"
      "improvements";
  }

  .steps-caption {
    grid-template-columns: 1fr;
  }

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

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .steps-flow > i {
    display: none;
  }

  .comparison-head {
    display: grid;
    padding-right: 58px;
  }

  .sidebar-points {
    grid-template-columns: 1fr;
  }

  .population-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .population-title {
    grid-column: 1 / -1;
  }

  .profile-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile-donut-legend {
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .dashboard {
    padding: 18px 14px 28px;
  }

  .dashboard-header h2 {
    font-size: 31px;
  }

  .metric-card {
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
  }

  .metric-icon {
    width: 66px;
    height: 66px;
  }

  .axis-cards,
  .steps-flow,
  .profile-steps-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    min-width: 620px;
  }

  .population-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .population-title,
  .population-cell {
    justify-items: center;
  }

  .profile-radar-svg {
    min-height: 360px;
  }
}
