:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #24364a;
  background: #f5f7fb;
  font-size: 14px;
  --muted: #7a8799;
  --line: #e7ecf3;
  --blue: #346be5;
  --shadow: 0 3px 14px #203b6405;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: #3769c8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 15px;
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 12px;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.97);
  box-shadow: 0 3px 9px #163a6810;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.secondary {
  background: #fff;
  color: #4a5d75;
  border-color: #dfe5ee;
}
.danger {
  color: #b14c58;
}
.icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
button .icon {
  width: 16px;
  height: 16px;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
:focus-visible {
  outline: 3px solid #8eb0ff;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 15px;
  background: #fff;
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #10243c;
  color: #bdcbdd;
  padding: 31px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-light {
  font-weight: 450;
}
.brand small {
  display: block;
  letter-spacing: 2.1px;
  font-size: 8px;
  color: #91a7c2;
  margin-top: 6px;
}
.mark {
  width: 39px;
  height: 42px;
  border-radius: 12px;
  background: #336ce6;
  box-shadow: 0 5px 20px #1e5bdd40;
  color: white;
}
.mark .icon {
  width: 23px;
  height: 23px;
}
.municipality {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 30px;
  padding: 14px 10px;
  background: #ffffff06;
  border: 1px solid #ffffff0c;
  border-radius: 10px;
  color: #e9eef6;
  font-size: 12px;
  font-weight: 600;
}
.municipality-avatar {
  display: grid;
  place-items: center;
  border: 1px solid #ffffff14;
  background: #253a52;
  color: #c8d8ee;
  width: 30px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
}
.municipality small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #8fa4be;
  margin-top: 5px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54c5a3;
  flex-shrink: 0;
}
.municipality > .live-dot {
  margin-left: auto;
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #758da9;
  margin: 0 12px 14px;
}
.nav {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 7px;
  background: transparent;
  border-radius: 8px;
  color: #9fb3cc;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.nav .icon {
  width: 18px;
  height: 18px;
}
.nav.active {
  color: #fff;
  background: #24416a;
  box-shadow: inset 3px 0 #6b9aff;
}
.nav:hover:not(:disabled) {
  background: #1d3654;
  box-shadow: none;
  filter: none;
}
.nav-badge {
  margin-left: auto;
  font-size: 9px;
  background: #ffffff10;
  padding: 3px 6px;
  border-radius: 4px;
  color: #c4d6ed;
}
.sidebar-note {
  margin-top: auto;
  border: 1px solid #ffffff0c;
  background: #ffffff04;
  padding: 17px 14px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.7;
}
.sidebar-note > [data-icon] {
  color: #6f95c5;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.sidebar-note b {
  color: #b5c9e2;
  font-size: 10px;
}
.sidebar-note p {
  font-size: 10px;
  color: #7891af;
  line-height: 1.7;
  margin: 6px 0 0;
}
.sidebar-bottom {
  padding: 22px 8px 0;
  font-size: 10px;
  color: #a4b9d2;
}
.sidebar-bottom > .live-dot {
  margin-right: 6px;
}
.sidebar-bottom small {
  display: block;
  color: #6f88a5;
  margin-top: 6px;
  font-size: 9px;
}
.version {
  display: block;
  margin-top: 22px;
  border-top: 1px solid #ffffff0c;
  padding-top: 16px;
  font-size: 9px;
  color: #5e7897;
}
.main {
  margin-left: 250px;
}
.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8995a6;
}
.breadcrumb .icon {
  width: 12px;
  height: 12px;
  color: #bbc5d3;
}
.breadcrumb strong {
  font-weight: 500;
  color: #435774;
}
.topbar-right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.environment {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7e8c9e;
  font-size: 10px;
}
.institution-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 3px solid #f4f7fc;
  background: #e4ecfa;
  color: #5d79a2;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
main {
  padding: 32px 36px 24px;
  max-width: 1750px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  line-height: 1.3;
  margin: 7px 0 9px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  margin: 0 0 9px;
}
p {
  line-height: 1.7;
  margin: 6px 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #6b89b7;
  margin: 0;
}
.heading-stamp {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #6d829d;
  font-size: 10px;
  white-space: nowrap;
}
.heading-stamp .icon {
  color: #91a6bf;
}
.heading-stamp small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: #9aa7b8;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f0e3c6;
  background: #fffaf0;
  color: #9a7b3f;
  border-radius: 9px;
  padding: 11px 15px;
  margin-bottom: 25px;
}
.notice > [data-icon] {
  color: #c09a50;
}
.notice .icon {
  width: 17px;
  height: 17px;
}
.notice p {
  font-size: 10px;
  margin: 0;
  line-height: 1.7;
  flex: 1;
}
.notice strong {
  font-weight: 700;
}
.text-button {
  padding: 4px 0;
  background: none;
  color: #5e7ba8;
  border: 0;
  border-radius: 2px;
  font-size: 10px;
  white-space: nowrap;
}
.text-button:hover:not(:disabled) {
  box-shadow: none;
}
.notice .text-button {
  color: #a08144;
  font-size: 9px;
}
.welcome-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #164887, #1c5bab 72%, #2b6cc5);
  border: 1px solid #245a99;
  border-radius: 14px;
  min-height: 275px;
  padding: 31px 34px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.welcome-copy {
  position: relative;
  z-index: 1;
}
.welcome-tag {
  font-size: 8px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: #a4caef;
}
.welcome-banner h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.65px;
  line-height: 1.25;
  margin: 15px 0 12px;
}
.welcome-banner p {
  font-size: 11px;
  color: #b1d0ee;
  line-height: 1.85;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.button.light {
  background: #fff;
  color: #225da3;
  box-shadow: 0 3px 8px #08285920;
  font-size: 10px;
  padding: 10px 13px;
}
.banner-link {
  background: none;
  color: #d5e7fc;
  font-size: 10px;
  padding: 8px 0;
  font-weight: 450;
}
.banner-link:hover:not(:disabled) {
  box-shadow: none;
}
.hero-art {
  position: relative;
  width: 290px;
  height: 220px;
  margin-right: 10px;
  flex-shrink: 0;
}
.orbit {
  border: 1px solid #ffffff12;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit-one {
  width: 190px;
  height: 190px;
}
.orbit-two {
  width: 270px;
  height: 270px;
  background: #ffffff02;
}
.hero-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  background: linear-gradient(145deg, #ffffff20, #ffffff0b);
  border: 1px solid #ffffff24;
  width: 117px;
  height: 121px;
  border-radius: 30px;
  box-shadow: 0 20px 35px #062a5825;
}
.hero-cross .icon {
  width: 65px;
  height: 65px;
  stroke-width: 1.1;
  color: #f0f8ff;
}
.float-icon {
  position: absolute;
  background: #ffffffee;
  color: #3271b6;
  border: 1px solid #fff;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  box-shadow: 0 8px 20px #082a651a;
  transform: rotate(8deg);
}
.float-heart {
  left: 26px;
  top: 32px;
  color: #df8b9c;
}
.float-people {
  right: 26px;
  bottom: 42px;
  transform: rotate(-8deg);
  color: #4c9b97;
}
.hero-caption {
  position: absolute;
  bottom: 3px;
  left: 40px;
  background: #13417a80;
  border: 1px solid #ffffff15;
  border-radius: 30px;
  padding: 8px 11px;
  color: #b9d7f7;
  font-size: 8px;
  white-space: nowrap;
}
.hero-caption i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #76cfb6;
  margin-right: 5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 11px;
  padding: 20px;
  min-width: 0;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-top > span:first-child {
  font-size: 10px;
  color: #7e8da1;
  font-weight: 500;
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf4ff;
  color: #6d91ce;
}
.stat-icon .icon {
  width: 16px;
  height: 16px;
}
.card:nth-child(2) .stat-icon {
  background: #eaf7f1;
  color: #54a78b;
}
.card:nth-child(3) .stat-icon {
  background: #fff6e8;
  color: #c39a56;
}
.card:nth-child(4) .stat-icon {
  background: #f1eefb;
  color: #9d8bc5;
}
.card b {
  display: block;
  font-size: 29px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin-top: 7px;
  font-weight: 650;
}
.card small {
  display: block;
  font-size: 9px;
  color: #9aa6b6;
  margin-top: 5px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
}
.section-title h2 {
  margin: 7px 0 5px;
  font-size: 20px;
}
.section-title p.muted {
  font-size: 11px;
}
.quiet-badge {
  font-size: 9px;
  color: #8c9bb0;
  border: 1px solid #e0e7f0;
  border-radius: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.indicator-card {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  color: inherit;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.indicator-card:hover:not(:disabled) {
  filter: none;
  border-color: var(--tone);
  box-shadow: 0 8px 24px #243e6810;
  transform: translateY(-3px);
}
.indicator-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tone);
  opacity: 0.7;
}
.indicator-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.indicator-symbol {
  color: var(--tone);
  background: var(--tint);
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.indicator-symbol .icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.5;
}
.indicator-code {
  color: var(--tone);
  background: var(--tint);
  border-radius: 5px;
  font-size: 9px;
  padding: 4px 7px;
  letter-spacing: 0.5px;
  font-weight: 650;
}
.indicator-card h3 {
  font-size: 13px;
  line-height: 1.5;
  min-height: 39px;
  margin: 0 0 7px;
  letter-spacing: -0.2px;
}
.indicator-card p {
  font-weight: 400;
  font-size: 10px;
  color: #8c98a9;
  line-height: 1.8;
  min-height: 36px;
}
.indicator-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid #edf1f7;
  color: #8a98aa;
  font-size: 9px;
  font-weight: 400;
}
.indicator-meta strong {
  font-size: 13px;
  color: #4f627b;
  font-weight: 650;
  margin-right: 3px;
}
.indicator-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--tone);
}
.teal {
  --tone: #359e99;
  --tint: #eaf7f4;
}
.violet {
  --tone: #9680cf;
  --tint: #f2eefb;
}
.blue {
  --tone: #508bd8;
  --tint: #ebf3ff;
}
.rose {
  --tone: #d37786;
  --tint: #fceff1;
}
.amber {
  --tone: #bc944e;
  --tint: #fbf5e9;
}
.pink {
  --tone: #c67ba4;
  --tint: #faeef5;
}
.overview-footnote {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef3fa70;
}
.overview-footnote > [data-icon] {
  width: 36px;
  height: 36px;
  background: #e5ecf7;
  border-radius: 50%;
  color: #819abb;
}
.overview-footnote .icon {
  width: 18px;
  height: 18px;
}
.overview-footnote b {
  font-size: 10px;
  font-weight: 600;
  color: #657a96;
}
.overview-footnote p {
  font-size: 9px;
  color: #94a2b5;
  margin: 4px 0 0;
}
.overview-footnote .text-button {
  margin-left: auto;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.indicator-tabs {
  display: flex;
  gap: 7px;
  padding: 6px;
  background: #eaf0f7;
  border: 1px solid #e4eaf2;
  border-radius: 11px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.indicator-tab {
  background: none;
  color: #8290a3;
  flex: 1;
  border-radius: 7px;
  padding: 11px 10px;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
  gap: 7px;
}
.indicator-tab .icon {
  width: 17px;
  height: 17px;
}
.indicator-tab[aria-selected='true'] {
  background: #fff;
  color: var(--tone, #416baf);
  box-shadow: 0 2px 6px #193b6210;
  border-color: #e1e8f2;
}
.indicator-tab:hover:not(:disabled) {
  background: #ffffff80;
  box-shadow: none;
}
.indicator-tab small {
  font-size: 8px;
  opacity: 0.65;
}
.indicator-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.indicator-heading h2 {
  font-size: 16px;
  margin: 0 0 4px;
}
.indicator-heading p {
  font-size: 10px;
  color: #91a0b3;
  margin: 0;
}
.indicator-heading .quiet-badge {
  margin-left: auto;
}
.filters {
  padding: 17px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #8190a5;
  flex: 1;
  min-width: 105px;
}
label.search {
  flex: 1.6;
  min-width: 160px;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  background: #fff;
  color: #54667e;
  font-size: 10px;
  padding: 10px;
  margin-top: 7px;
  min-height: 36px;
}
.input-wrap {
  position: relative;
}
.input-wrap > [data-icon] {
  position: absolute;
  top: 11px;
  left: 10px;
  color: #9bacbf;
}
.input-wrap .icon {
  width: 14px;
  height: 14px;
}
.input-wrap input {
  padding-left: 31px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.section-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0;
}
.section-head p {
  font-size: 9px;
  margin-top: 6px;
}
.title-icon {
  color: #8ba2c3;
}
.title-icon .icon {
  width: 17px;
  height: 17px;
}
.pill {
  font-size: 9px;
  display: inline-block;
  background: #eef3fb;
  color: #8195b5;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.section-head button {
  font-size: 9px;
  padding: 9px 10px;
}
.section-head button .icon {
  width: 13px;
  height: 13px;
}
.table-wrap {
  overflow: auto;
  max-height: 620px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  background: #f9fbfd;
  color: #9aa6b6;
  padding: 13px;
  font-weight: 600;
}
td {
  padding: 16px 13px;
  border-top: 1px solid #edf1f7;
  font-size: 10px;
}
td:first-child {
  min-width: 170px;
}
td small {
  display: block;
  color: #96a3b6;
  font-size: 9px;
  margin-top: 6px;
}
.person-button {
  background: none;
  border: 0;
  color: #415978;
  padding: 0;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
}
.person-button:hover:not(:disabled) {
  box-shadow: none;
  color: #346be5;
}
.on {
  background: #f0f5ff;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f3f8;
  color: #8292a7;
  border-radius: 5px;
  font-size: 8px;
  padding: 4px 6px;
  margin: 2px;
}
.chip .icon {
  width: 11px;
  height: 11px;
}
.chip.indicator-chip {
  color: var(--tone);
  background: var(--tint);
}
.yes {
  background: #eaf7f1;
  color: #45947a;
}
.no {
  background: #fff6e7;
  color: #b28b44;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #95a2b3;
}
.pagination button {
  font-size: 9px;
  padding: 7px 11px;
}
.empty {
  padding: 46px 20px;
  text-align: center;
  color: #99a8bb;
  font-size: 11px;
  line-height: 1.9;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  background: #f1f5fb;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #a6b9d4;
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty b {
  display: block;
  font-weight: 550;
  color: #71849d;
  margin-bottom: 6px;
}
.empty p {
  font-size: 10px;
}
.empty button {
  font-size: 10px;
  margin-top: 15px;
}
.detail {
  padding: 22px;
  max-height: 715px;
  overflow: auto;
}
.detail h3 {
  font-size: 18px;
  line-height: 1.5;
}
.detail h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
}
.detail h4 .icon {
  width: 19px;
  height: 19px;
}
.detail > .muted {
  font-size: 10px;
  line-height: 1.9;
}
.practice {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  margin: 10px 0;
}
.practice b {
  font-size: 10px;
  line-height: 1.7;
}
.practice small {
  display: block;
  font-size: 9px;
  line-height: 1.8;
  color: #8998ad;
  overflow-wrap: anywhere;
  margin-top: 7px;
}
.practicehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.practicehead .chip {
  flex-shrink: 0;
}
.import-panel {
  padding: 32px;
}
.import-illustration {
  background: #eef3ff;
  color: #7b9bd3;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  margin-bottom: 22px;
}
.import-illustration .icon {
  width: 28px;
  height: 28px;
}
.import-panel h2 {
  font-size: 23px;
  margin: 10px 0;
}
.import-options {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 230px;
  cursor: pointer;
  border: 1.5px dashed #c7d8f2;
  background: #f6f9ff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: background 0.15s;
}
.upload-zone:hover {
  background: #edf4ff;
}
.upload-symbol {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e5edfc;
  color: #6c96d8;
  margin-bottom: 17px;
}
.upload-zone b {
  font-size: 13px;
  color: #4e6f9f;
  font-weight: 600;
}
.upload-zone > span:not([data-icon]) {
  font-size: 10px;
  color: #8b9eb8;
  margin-top: 8px;
  font-weight: 400;
}
.upload-zone small {
  font-size: 9px;
  color: #a2b0c3;
  margin-top: 20px;
  font-weight: 400;
}
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  bottom: 10px;
}
.upload-zone:focus-within {
  outline: 3px solid #8eb0ff;
  outline-offset: 3px;
}
.legacy-option {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.source-symbol {
  color: #95a6bf;
  margin-bottom: 15px;
}
.legacy-option h3 {
  font-size: 13px;
  font-weight: 600;
}
.legacy-option p {
  font-size: 10px;
  color: #96a3b6;
  line-height: 1.9;
  max-width: 260px;
}
.legacy-option button {
  font-size: 10px;
  margin-top: 17px;
}
.legacy-option button .icon {
  width: 14px;
  height: 14px;
}
#msg {
  margin: 20px 0 0;
  font-size: 10px;
  color: #8a9ab0;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 7px;
}
.error {
  color: #b33838 !important;
}
.data-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-top: 20px;
}
.data-session h2 {
  display: inline-block;
  font-size: 13px;
  margin: 0 0 6px 8px;
}
.data-session p {
  font-size: 10px;
  color: #93a1b4;
  max-width: 600px;
}
.data-session button {
  white-space: nowrap;
  font-size: 10px;
}
.data-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 28px 10px;
}
.data-tips > [data-icon],
.data-tips > div > [data-icon] {
  color: #9aafcb;
  margin-bottom: 14px;
}
.data-tips h3 {
  font-size: 11px;
  color: #6c829f;
  font-weight: 600;
}
.data-tips p {
  font-size: 10px;
  color: #97a6b9;
  line-height: 1.9;
}
.methodology {
  padding: 28px;
}
.method-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.method-symbol {
  background: #edf2fa;
  color: #819ac1;
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.method-intro h2 {
  font-size: 21px;
  margin: 8px 0 12px;
}
.method-intro p:not(.eyebrow) {
  font-size: 11px;
  color: #8b9ab0;
  line-height: 1.9;
}
.method-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 27px 0;
}
.method-legend > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.positive {
  background: #63b499;
}
.pending {
  background: #dbb56b;
}
.neutral {
  background: #9facbf;
}
.method-legend b {
  font-size: 10px;
  color: #7388a3;
}
.method-legend p {
  font-size: 10px;
  color: #9aa7b8;
  line-height: 1.9;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0;
}
.method-grid > div {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 9px;
}
.method-grid .indicator-symbol {
  width: 33px;
  height: 33px;
  border-radius: 8px;
}
.method-grid .icon {
  width: 20px;
  height: 20px;
}
.method-grid b {
  font-size: 10px;
}
.method-grid p {
  font-size: 9px;
  color: #9aa7b8;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.source-links a {
  font-size: 9px;
  border: 1px solid #e2e9f4;
  background: #f7faff;
  padding: 9px;
  border-radius: 6px;
  color: #7d95b7;
}
.method-links {
  display: flex;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.method-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #6c8bb9;
}
.method-links .icon {
  width: 14px;
  height: 14px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 32px;
  color: #a6b2c2;
  font-size: 9px;
}
footer b {
  font-weight: 700;
  color: #8a9bb1;
}
.footer-separator {
  margin: 0 8px;
  color: #c4cedb;
}
@media (min-width: 1600px) {
  .welcome-banner {
    min-height: 295px;
  }
  .hero-art {
    margin-right: 50px;
  }
  .layout {
    grid-template-columns: 1.4fr 1fr;
  }
  .indicator-card h3 {
    min-height: 0;
  }
  .indicator-card p {
    min-height: 0;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding: 27px 16px;
  }
  .main {
    margin-left: 220px;
  }
  main {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .brand {
    font-size: 17px;
  }
  .welcome-banner {
    padding: 27px;
  }
  .welcome-banner h2 {
    font-size: 26px;
  }
  .hero-art {
    width: 210px;
    margin-right: 0;
  }
  .float-heart {
    left: 0;
  }
  .float-people {
    right: 0;
  }
  .hero-caption {
    left: 0;
  }
  .heading-stamp {
    display: none;
  }
  .indicator-grid {
    gap: 13px;
  }
  .indicator-card {
    padding: 18px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .detail {
    max-height: none;
  }
  .notice .text-button {
    display: none;
  }
  .card {
    padding: 17px;
  }
  .card-top > span:first-child {
    font-size: 9px;
  }
  .indicator-tab {
    padding: 10px 8px;
    font-size: 9px;
  }
  .indicator-tab small {
    display: none;
  }
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 190px;
    padding: 25px 12px;
  }
  .main {
    margin-left: 190px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand small {
    font-size: 7px;
  }
  .mark {
    width: 33px;
    height: 37px;
  }
  .municipality {
    padding: 10px 7px;
    font-size: 10px;
    gap: 8px;
  }
  .municipality small {
    font-size: 8px;
  }
  .municipality-avatar {
    width: 25px;
    height: 28px;
  }
  .nav {
    font-size: 11px;
    padding: 12px;
    gap: 9px;
  }
  .nav-label {
    font-size: 7px;
  }
  .sidebar-note {
    padding: 14px 12px;
  }
  .sidebar-note b {
    font-size: 9px;
  }
  .welcome-banner h2 {
    font-size: 25px;
  }
  .hero-art {
    width: 125px;
    opacity: 0.7;
  }
  .hero-cross {
    width: 85px;
    height: 95px;
    border-radius: 22px;
  }
  .hero-cross .icon {
    width: 50px;
    height: 50px;
  }
  .orbit-one {
    width: 150px;
    height: 150px;
  }
  .orbit-two {
    width: 210px;
    height: 210px;
  }
  .hero-caption,
  .float-icon {
    display: none;
  }
  .welcome-banner p {
    font-size: 10px;
  }
  .welcome-banner {
    padding: 24px;
    min-height: 265px;
  }
  .welcome-tag {
    font-size: 7px;
  }
  .indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .indicator-card h3 {
    min-height: 0;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 14px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .card-top {
    gap: 5px;
  }
  .card b {
    font-size: 25px;
  }
  .card small {
    font-size: 8px;
  }
  .card-top > span:first-child {
    font-size: 8px;
  }
  .import-options {
    grid-template-columns: 1fr;
  }
  .import-panel {
    padding: 24px;
  }
  .legacy-option {
    padding: 22px;
  }
  .data-session {
    align-items: flex-start;
    flex-direction: column;
  }
  .method-legend {
    grid-template-columns: 1fr;
  }
  .data-tips {
    gap: 15px;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading > .muted {
    font-size: 11px;
  }
  .indicator-heading .quiet-badge {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 16px 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    font-size: 7px;
  }
  .mark {
    width: 33px;
    height: 35px;
    border-radius: 10px;
  }
  .sidebar .municipality,
  .nav-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  #main-tabs {
    display: flex;
    gap: 5px;
    margin-top: 19px;
  }
  .nav {
    justify-content: center;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
    padding: 10px 4px;
    margin: 0;
    min-width: 0;
  }
  .nav.active {
    box-shadow: inset 0 -2px #82aaff;
  }
  .nav .icon {
    width: 18px;
    height: 18px;
  }
  .nav-badge {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 51px;
    padding: 0 17px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 7px;
  }
  .environment {
    font-size: 8px;
  }
  .institution-avatar {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  main {
    padding: 23px 16px 20px;
  }
  .heading {
    margin-bottom: 18px;
  }
  h1,
  .heading h1 {
    font-size: 24px;
    max-width: 340px;
    line-height: 1.35;
  }
  .heading .muted {
    font-size: 11px;
    line-height: 1.8;
    max-width: 330px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .notice {
    padding: 10px 12px;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 19px;
  }
  .notice p {
    font-size: 9px;
  }
  .notice > [data-icon] {
    margin-top: 3px;
  }
  .notice strong {
    display: block;
  }
  .welcome-banner {
    padding: 25px 22px;
    min-height: 270px;
    border-radius: 12px;
  }
  .welcome-banner h2 {
    font-size: 26px;
    line-height: 1.3;
    margin-top: 14px;
  }
  .welcome-banner p {
    font-size: 10px;
  }
  .welcome-tag {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .hero-art {
    position: absolute;
    right: -70px;
    top: 45px;
    opacity: 0.22;
    width: 170px;
    pointer-events: none;
  }
  .hero-cross {
    width: 100px;
    height: 110px;
  }
  .welcome-copy {
    max-width: 100%;
  }
  .welcome-banner .actions {
    gap: 16px;
  }
  .banner-link {
    font-size: 9px;
  }
  .button.light {
    font-size: 9px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 17px 0 26px;
  }
  .card {
    padding: 16px;
  }
  .card-top > span:first-child {
    font-size: 10px;
  }
  .card b {
    font-size: 26px;
  }
  .card small {
    font-size: 9px;
  }
  .stat-icon {
    width: 29px;
    height: 29px;
  }
  .section-title {
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .section-title .muted {
    font-size: 10px;
  }
  .section-title .quiet-badge {
    display: none;
  }
  .indicator-grid {
    gap: 12px;
  }
  .indicator-card {
    padding: 16px;
  }
  .indicator-top {
    margin-bottom: 14px;
  }
  .indicator-symbol {
    width: 37px;
    height: 37px;
    border-radius: 10px;
  }
  .indicator-symbol .icon {
    width: 23px;
    height: 23px;
  }
  .indicator-card h3 {
    font-size: 11px;
    min-height: 34px;
    line-height: 1.6;
  }
  .indicator-card p {
    font-size: 9px;
    min-height: 48px;
  }
  .indicator-meta {
    font-size: 8px;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
  }
  .indicator-meta strong {
    font-size: 12px;
  }
  .indicator-meta .icon {
    width: 12px;
    height: 12px;
  }
  .overview-footnote {
    align-items: flex-start;
    padding: 17px;
    gap: 12px;
  }
  .overview-footnote .text-button {
    display: none;
  }
  .overview-footnote b {
    font-size: 9px;
  }
  .overview-footnote p {
    font-size: 9px;
  }
  .indicator-tabs {
    gap: 5px;
    padding: 5px;
  }
  .indicator-tab {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 9px;
  }
  .indicator-tab .icon {
    width: 16px;
    height: 16px;
  }
  .indicator-heading {
    padding: 16px;
    gap: 11px;
  }
  .indicator-heading h2 {
    font-size: 14px;
  }
  .indicator-heading p {
    font-size: 9px;
  }
  .filters {
    padding: 14px;
    gap: 12px;
  }
  .filters label {
    min-width: 130px;
    font-size: 9px;
  }
  .filters .search {
    min-width: 100%;
    flex: 1;
  }
  .layout {
    gap: 17px;
  }
  .section-head {
    padding: 17px;
  }
  .section-head h2 {
    font-size: 12px;
  }
  .section-head p {
    font-size: 8px;
  }
  .section-head button {
    font-size: 8px;
    padding: 8px;
  }
  .empty {
    padding: 32px 17px;
  }
  .detail {
    padding: 18px;
  }
  .practicehead {
    flex-direction: column;
    gap: 6px;
  }
  .import-panel {
    padding: 22px 18px;
  }
  .import-panel h2 {
    font-size: 21px;
    line-height: 1.4;
  }
  .import-panel .muted {
    font-size: 10px;
  }
  .upload-zone {
    padding: 20px 15px;
    min-height: 215px;
  }
  .legacy-option {
    padding: 22px;
  }
  .data-session {
    padding: 20px;
  }
  .data-tips {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 7px;
  }
  .data-tips > div {
    display: grid;
    grid-template-columns: 25px 1fr;
    column-gap: 12px;
  }
  .data-tips > div > [data-icon] {
    grid-row: span 2;
    margin-top: 2px;
  }
  .data-tips h3 {
    margin: 0 0 5px;
  }
  .data-tips p {
    margin: 0;
  }
  .methodology {
    padding: 22px 18px;
  }
  .method-intro {
    flex-direction: column;
    gap: 16px;
  }
  .method-intro h2 {
    font-size: 21px;
    line-height: 1.4;
  }
  .method-intro p:not(.eyebrow) {
    font-size: 10px;
  }
  .method-legend {
    gap: 10px;
    margin: 20px 0;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-links {
    flex-direction: column;
    gap: 15px;
  }
  .source-links a {
    font-size: 8px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    font-size: 8px;
    margin-top: 26px;
    padding-top: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable supporting text across desktop and handheld screens. */
.card small,
.indicator-card p,
.indicator-meta,
.overview-footnote p,
.data-session p,
.data-tips p,
.legacy-option p,
.method-intro p:not(.eyebrow),
.method-legend p,
.method-grid p {
  color: #73839a;
}
.card-top > span:first-child {
  color: #687c96;
}
.indicator-card h3 {
  font-size: 14px;
}
.indicator-card p {
  font-size: 11px;
}
.indicator-meta {
  font-size: 10px;
}
.practice small {
  font-size: 11px;
  color: #71829a;
}
.practice b {
  font-size: 12px;
}
.detail > .muted {
  font-size: 11px;
}
.person-button {
  font-size: 12px;
}
td small {
  font-size: 10px;
  color: #7c8da5;
}
.filters label {
  font-size: 10px;
}
.filters input,
.filters select {
  font-size: 11px;
}
.method-intro p:not(.eyebrow) {
  font-size: 12px;
}
.method-legend b {
  font-size: 12px;
}
.method-legend p {
  font-size: 11px;
}
.method-grid b {
  font-size: 11px;
}
.method-grid p {
  font-size: 10px;
}
.import-panel .muted {
  font-size: 12px;
}
.data-session p,
.data-tips p,
.legacy-option p {
  font-size: 11px;
}
.data-tips h3 {
  font-size: 12px;
}
.legacy-option h3 {
  font-size: 14px;
}
@media (max-width: 700px) {
  .indicator-card h3 {
    font-size: 12px;
    min-height: 38px;
  }
  .indicator-card p {
    font-size: 10px;
    min-height: 51px;
  }
  .indicator-meta {
    font-size: 9px;
  }
  .method-intro p:not(.eyebrow) {
    font-size: 11px;
  }
  .method-legend p {
    font-size: 11px;
  }
  .practice b {
    font-size: 11px;
  }
  .practice small {
    font-size: 10px;
  }
}
.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: -10px 0 23px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #75869c;
}
.session-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8ad5a;
}
.session-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-actions button,
.session-actions label {
  font-size: 10px;
  padding: 9px 12px;
  white-space: nowrap;
}
.file-action {
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  color: white;
  min-width: auto;
}
.file-action.secondary {
  color: #4a5d75;
}
.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  bottom: 2px;
}
.file-action:focus-within {
  outline: 3px solid #8eb0ff;
  outline-offset: 3px;
}
.indicator-subtabs {
  display: flex;
  gap: 24px;
  margin: 19px 0 20px;
  border-bottom: 1px solid #dfe6f1;
}
.indicator-subtabs button {
  border-radius: 0;
  color: #8090a6;
  background: none;
  padding: 11px 1px 14px;
  border-bottom: 2px solid transparent;
  font-size: 11px;
}
.indicator-subtabs [aria-selected='true'] {
  color: #3a70bf;
  border-bottom-color: #477ee0;
}
.indicator-subtabs button:hover {
  box-shadow: none !important;
}
.care-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.5;
  padding: 7px 9px;
  border-radius: 7px;
  white-space: normal;
}
.care-state .icon {
  width: 16px;
  height: 16px;
}
.care-state.complete {
  background: #e9f7f0;
  color: #218461;
}
.care-state.missing {
  background: #fff5e4;
  color: #ad7c2b;
}
.care-state.unclear {
  background: #f0f3f8;
  color: #7f8fa5;
}
.practice.positive-practice {
  border-color: #cbe8db;
  border-left: 3px solid #65b692;
}
.practice.pending-practice {
  border-left: 3px solid #d4b070;
}
.practicehead {
  align-items: center;
}
.practice-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}
.practice .official-status {
  font-size: 9px;
  color: #8e9bb0;
}
.practice-evidence {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
}
.practice details {
  margin-top: 9px;
  color: #7a8aa0;
  font-size: 10px;
}
.practice summary {
  cursor: pointer;
  font-size: 10px;
  color: #6e86ab;
}
.practice-todo {
  border-radius: 6px;
  background: #fff9ed;
  padding: 9px 10px;
  margin-top: 8px;
  font-size: 10px;
  color: #9f7b38;
  line-height: 1.8;
}
.siaps-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 1.7;
}
.siaps-mark .icon {
  width: 14px;
  height: 14px;
}
.positive-mark {
  color: #278965;
}
.pending-mark {
  color: #b5873b;
}
.neutral-mark {
  color: #8291a7;
}
.individual-siaps {
  padding: 12px;
  margin: 13px 0;
  background: #f3f7fd;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  font-size: 10px;
  color: #7086a6;
  line-height: 1.8;
}
.individual-siaps b {
  font-size: 10px;
  color: #526d94;
}
.comparison-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 22px 0 10px;
}
.comparison-actions h2 {
  font-size: 17px;
}
.comparison-actions p {
  font-size: 10px;
  color: #8c9bb0;
}
.comparison-actions label {
  font-size: 10px;
}
.comparison-filters {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin: 15px 0 18px;
}
.comparison-filters label {
  flex: 1;
}
.comparison-filters button {
  font-size: 10px;
  min-height: 36px;
}
#siaps-msg {
  font-size: 11px;
  color: #6f829e;
}
.comparison-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 23px 13px;
  font-size: 12px;
}
.comparison-meta p {
  font-size: 10px;
  color: #8c9bb0;
  overflow-wrap: anywhere;
}
.period-warning {
  margin: 0 20px 18px;
}
.period-warning .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.comparison-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  padding: 0 23px;
}
.comparison-stats > div {
  background: #f5f8fc;
  border-radius: 8px;
  padding: 15px;
}
.comparison-stats b {
  display: block;
  font-size: 22px;
  color: #456384;
}
.comparison-stats span {
  display: block;
  font-size: 9px;
  color: #8a9db6;
  margin-top: 6px;
  line-height: 1.7;
}
.comparison-explanation {
  font-size: 10px;
  color: #8a98ab;
  padding: 16px 23px;
  margin: 0;
  line-height: 1.8;
}
.comparison-table {
  max-height: 650px;
}
.comparison-table td {
  min-width: 160px;
  vertical-align: top;
  max-width: 280px;
}
.practice-letter {
  display: inline-block;
  min-width: 31px;
  padding: 5px;
  margin: 2px;
  border-radius: 5px;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}
.letter-ok {
  background: #e7f6ee;
  color: #287e5e;
}
.letter-pending {
  background: #fff3de;
  color: #af863a;
}
.letter-neutral {
  background: #eef2f6;
  color: #8797ad;
}
.comparison-intro {
  padding: 40px;
  text-align: center;
  color: #7f92ac;
}
.comparison-intro h3 {
  font-size: 17px;
}
.comparison-intro p {
  font-size: 11px;
}
.comparison-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.siaps-import {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.siaps-import h2 {
  display: inline-block;
  font-size: 14px;
  margin-left: 8px;
}
.siaps-import p {
  font-size: 11px;
  color: #8798af;
}
.siaps-import label {
  font-size: 10px;
}
dialog {
  border: 1px solid #dfe8f3;
  border-radius: 15px;
  padding: 30px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 22px 80px #0f284b30;
  color: #314c70;
}
dialog::backdrop {
  background: #10253f80;
  backdrop-filter: blur(3px);
}
dialog p {
  font-size: 11px;
  color: #8294ae;
  line-height: 1.9;
}
dialog label {
  margin: 18px 0 0;
  font-size: 11px;
}
dialog input {
  font-size: 13px;
  padding: 12px;
}
dialog h2 {
  font-size: 20px;
  margin: 16px 0 10px;
}
.dialog-symbol {
  width: 46px;
  height: 46px;
  background: #edf3ff;
  color: #698fc7;
  border-radius: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions button {
  font-size: 11px;
}
.session-summary {
  margin-top: 8px;
  font-size: 10px;
  color: #7f92aa;
}
@media (max-width: 700px) {
  .session-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .session-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .session-actions button,
  .session-actions label {
    font-size: 9px;
  }
  .indicator-subtabs {
    gap: 18px;
  }
  .indicator-subtabs button {
    font-size: 10px;
  }
  .practicehead {
    align-items: flex-start;
  }
  .practice-state-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .comparison-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .comparison-filters {
    flex-wrap: wrap;
    gap: 12px;
  }
  .comparison-filters label {
    min-width: 130px;
  }
  .comparison-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    gap: 7px;
  }
  .comparison-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 18px;
    gap: 10px;
  }
  .comparison-stats > div {
    padding: 12px;
  }
  .comparison-explanation {
    padding: 15px 18px;
  }
  .comparison-table td {
    min-width: 145px;
  }
  .comparison-intro {
    padding: 30px 18px;
  }
  .siaps-import {
    align-items: flex-start;
    flex-direction: column;
  }
  .period-warning {
    margin: 0 15px 15px;
  }
}
.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison-filters {
  flex-wrap: wrap;
}
.comparison-filters label {
  min-width: 150px;
}
#print-area {
  display: none;
}
@media (max-width: 700px) {
  .list-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }
  .list-actions button {
    font-size: 8px;
    padding: 7px;
  }
  .section-head:has(.list-actions) {
    align-items: flex-start;
  }
  .comparison-filters button {
    font-size: 9px;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  body {
    background: #fff !important;
    color: #111 !important;
    font-family: Arial, sans-serif;
    font-size: 9pt;
  }
  body > :not(#print-area) {
    display: none !important;
  }
  #print-area {
    display: block !important;
  }
  #print-area .print-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #334b67;
    padding-bottom: 10px;
    margin-bottom: 10px;
    gap: 20px;
  }
  #print-area h1 {
    font-size: 17pt;
    margin: 7px 0;
    letter-spacing: 0;
  }
  #print-area p {
    font-size: 9pt;
    line-height: 1.5;
    margin: 4px 0;
    color: #222;
  }
  #print-area .print-heading > b,
  #print-area .print-heading b {
    font-size: 9pt;
    letter-spacing: 0.7px;
  }
  #print-area .print-heading > span {
    font-size: 9pt;
    white-space: nowrap;
  }
  #print-area .print-filters {
    margin: 10px 0 14px;
  }
  #print-area table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
    table-layout: auto;
  }
  #print-area thead {
    display: table-header-group;
  }
  #print-area tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print-area th,
  #print-area td {
    font-size: 8pt;
    text-align: left;
    vertical-align: top;
    border: 1px solid #bcc6d0;
    padding: 7px;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #111;
    min-width: 0;
  }
  #print-area th {
    background: #edf1f5 !important;
    font-weight: bold;
  }
  #print-area .print-footer {
    display: block;
    border-top: 1px solid #aab6c5;
    padding-top: 10px;
    margin-top: 14px;
    font-size: 8pt;
    line-height: 1.6;
    color: #333;
  }
}
.siaps-practice-filter {
  background: #fff;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  padding: 20px;
  margin: 17px 0;
}
.practice-filter-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.practice-filter-heading h3 {
  font-size: 14px;
  color: #3d587a;
}
.practice-filter-heading p {
  font-size: 10px;
  color: #8192aa;
  margin: 4px 0 0;
}
.practice-guide-button {
  font-size: 10px;
  white-space: nowrap;
}
.practice-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}
.practice-filter-button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  background: #f7f9fc;
  border: 1px solid #e4eaf3;
  color: #6c819e;
  font-size: 10px;
  font-weight: 500;
  border-radius: 8px;
}
.practice-filter-button b {
  font-size: 9px;
  border-radius: 5px;
  padding: 3px 6px;
  background: #eaf0f7;
  color: #8293ab;
  margin-left: 3px;
}
.filter-letter {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e8edf6;
  color: #7188a9;
  font-size: 11px;
  font-weight: 700;
}
.practice-filter-button.selected {
  color: #3266b5;
  background: #edf4ff;
  border-color: #9cbae9;
  box-shadow: 0 0 0 1px #dce9fb;
}
.practice-filter-button.selected .filter-letter {
  background: #477dcc;
  color: #fff;
}
.practice-filter-button.selected b {
  background: #dce9fd;
  color: #517cb4;
}
.practice-filter-help {
  font-size: 9px;
  color: #96a3b6;
  margin: 13px 0 0;
}
.practice-filter-active {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid #e9eef5;
  color: #6c85a7;
  font-size: 10px;
}
.practice-filter-active .icon {
  width: 15px;
  height: 15px;
}
.practice-filter-active strong {
  font-weight: 600;
  color: #426caa;
}
.practice-filter-active .text-button {
  margin-left: auto;
}
.practice-letter[data-practice-info] {
  cursor: help;
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.5;
}
.practice-letter[data-practice-info]:hover {
  border-color: currentColor;
  box-shadow: none !important;
}
.practice-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.practice-dialog-head h2 {
  line-height: 1.5;
  font-size: 19px;
}
.practice-dialog-head button {
  font-size: 10px;
  padding: 8px 12px;
}
#practice-dialog {
  max-width: 690px;
  max-height: 85vh;
  overflow: auto;
}
.practice-guide-item {
  display: flex;
  gap: 14px;
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  padding: 16px;
  margin: 11px 0;
}
.guide-letter {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #5b81ba;
  background: #edf3fc;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}
.practice-guide-item h3 {
  font-size: 12px;
  color: #506c92;
  line-height: 1.6;
  margin: 0 0 5px;
}
.practice-guide-item p {
  font-size: 11px;
  margin: 0;
  line-height: 1.8;
}
.practice-guide-item a {
  display: inline-block;
  font-size: 10px;
  margin-top: 9px;
  color: #7392bc;
}
.print-filter-panel,
.print-symbols {
  display: none;
}
@media (max-width: 700px) {
  .siaps-practice-filter {
    padding: 16px;
  }
  .practice-filter-heading {
    flex-direction: column;
    gap: 10px;
  }
  .practice-filter-heading h3 {
    font-size: 13px;
  }
  .practice-filter-button {
    font-size: 9px;
    padding: 8px;
    gap: 6px;
  }
  .practice-filter-bar {
    gap: 7px;
  }
  .practice-filter-button b {
    padding: 2px 5px;
  }
  .filter-letter {
    width: 20px;
    height: 20px;
  }
  .practice-filter-active {
    font-size: 9px;
  }
  .practice-filter-active .text-button {
    margin-left: 0;
  }
  #practice-dialog {
    padding: 22px 18px;
  }
  .practice-guide-item {
    padding: 13px;
    gap: 11px;
  }
}
@media print {
  #print-area .print-heading {
    margin-bottom: 10px;
    border-bottom: 2px solid #2d496a;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #print-area .print-heading p {
    white-space: pre-line;
    max-width: 220mm;
    font-size: 8pt;
    color: #4e5a6a;
  }
  #print-area .print-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 27mm;
    border: 1px solid #a9b9ce;
    border-radius: 5px;
    padding: 8px 12px;
  }
  #print-area .print-total strong {
    font-size: 22pt;
    color: #243e5c;
    line-height: 1.1;
  }
  #print-area .print-total span {
    font-size: 7.5pt;
    margin-top: 5px;
  }
  #print-area .print-filter-panel {
    display: block;
    border: 1px solid #c5d0df;
    border-radius: 5px;
    padding: 9px 11px;
    margin-bottom: 8px;
    break-inside: avoid;
  }
  #print-area .print-filter-panel > b {
    font-size: 7pt;
    letter-spacing: 0.7px;
    color: #60718a;
  }
  #print-area .print-filter-panel > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
  #print-area .print-filter-panel > div > span {
    border: 1px solid #b5c5db;
    border-radius: 4px;
    padding: 4px 7px;
    font-size: 8pt;
    background: #f2f6fb !important;
  }
  #print-area .print-focus {
    border-top: 1px solid #dce3ed;
    padding-top: 7px;
    margin-top: 7px;
    font-size: 8pt;
    line-height: 1.5;
  }
  #print-area .print-symbols {
    display: block;
    font-size: 7.5pt;
    color: #556175;
    margin: 8px 0 10px;
  }
  #print-area table {
    table-layout: fixed;
  }
  #print-area .print-guide-row td {
    padding: 8px 10px;
    border: 1px solid #bac8da;
    background: #f8fafc !important;
    white-space: normal;
  }
  #print-area .print-guide {
    display: block;
    break-inside: avoid;
  }
  #print-area .print-guide > strong {
    font-size: 6.8pt;
    letter-spacing: 0.7px;
    color: #61738b;
    display: block;
    margin-bottom: 6px;
  }
  #print-area .print-guide > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px 10px;
  }
  #print-area .print-guide > div > span {
    font-size: 7.5pt;
    line-height: 1.5;
    display: flex;
    gap: 5px;
    align-items: flex-start;
  }
  #print-area .print-guide b {
    display: inline-block;
    min-width: 15px;
    text-align: center;
    background: #e6edf6 !important;
    color: #254e82;
    border-radius: 3px;
    font-size: 7.5pt;
  }
  #print-area .print-practice-table th,
  #print-area .print-practice-table td {
    padding: 7px 8px;
    font-size: 8pt;
    line-height: 1.55;
  }
  #print-area .print-practice-table th {
    background: #eaf0f7 !important;
    color: #2e4764;
    border-color: #b5c3d5;
    font-size: 7.5pt;
  }
  #print-area .print-practice-table tbody tr:nth-child(even) {
    background: #f7f9fc !important;
  }
  #print-area .print-practice-table tbody td {
    border-color: #d2dbe6;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(1),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(1) {
    width: 4%;
    text-align: center;
    color: #6a7c94;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(2),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(2) {
    width: 25%;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(3),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(3) {
    width: 9%;
    text-align: center;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(4),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(4) {
    width: 16%;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(5),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(5) {
    width: 16%;
  }
  #print-area .print-practice-table:has(th:nth-child(6)) th:nth-child(6),
  #print-area .print-practice-table:has(th:nth-child(6)) tbody td:nth-child(6) {
    width: 30%;
  }
  #print-area .print-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    white-space: normal;
  }
  #print-area .print-mark {
    border: 1px solid #bccbdc;
    display: inline-block;
    min-width: 24px;
    text-align: center;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 7.5pt;
    color: #314e72;
    line-height: 1.35;
    white-space: nowrap;
  }
  #print-area .print-mark-yes {
    background: #edf6ef !important;
    border-color: #a8c6b1;
    color: #285f39;
  }
  #print-area .print-mark-no {
    background: #fff7e8 !important;
    border-color: #d9c59f;
    color: #896729;
  }
  #print-area .print-mark-outside,
  #print-area .print-mark-unknown {
    background: #f0f2f6 !important;
    color: #728098;
    border-color: #cdd5df;
  }
}
@media print {
  html,
  body {
    background: #fff !important;
  }
  #print-area col.print-col-index {
    width: 4%;
  }
  #print-area col.print-col-person {
    width: 25%;
  }
  #print-area col.print-col-micro {
    width: 9%;
  }
  #print-area col.print-col-local {
    width: 16%;
  }
  #print-area col.print-col-siaps {
    width: 16%;
  }
  #print-area col.print-col-pending {
    width: 30%;
  }
}
.shared-mode .environment {
  font-size: 0;
}
.shared-mode .environment:after {
  content: 'Base compartilhada';
  font-size: 10px;
}
.shared-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  margin-bottom: 20px;
  background: #edf5ff;
  border: 1px solid #ccdcf3;
  border-radius: 11px;
}
.shared-toolbar b {
  font-size: 11px;
  color: #4c719f;
}
.shared-toolbar p {
  font-size: 10px;
  color: #7991b1;
  margin: 5px 0 0;
}
.shared-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.shared-actions button {
  font-size: 10px;
  padding: 8px 10px;
}
.shared-login {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(130deg, #102b4d, #2466a9);
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}
.shared-login form {
  background: #fff;
  border: 1px solid #cfdcef;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 80px #08254b50;
}
.login-brand {
  display: block;
  color: #7092bd;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.shared-login h1 {
  font-size: 27px;
  margin: 20px 0 12px;
}
.shared-login p {
  font-size: 12px;
  color: #8496ae;
  line-height: 1.8;
}
.shared-login label {
  font-size: 11px;
  margin-top: 18px;
}
.shared-login input {
  font-size: 14px;
  padding: 12px;
}
.shared-login button {
  width: 100%;
  margin-top: 19px;
}
.shared-login small {
  display: block;
  margin-top: 20px;
  color: #8e9eb2;
  font-size: 10px;
  text-align: center;
}
.shared-locked > .main,
.shared-locked > .sidebar,
.shared-locked > .skip-link {
  visibility: hidden;
}
.shared-user-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px;
  align-items: end;
  margin: 20px 0;
}
.shared-user-form button {
  justify-self: start;
  font-size: 11px;
}
#users-dialog {
  max-width: 850px;
  max-height: 85vh;
  overflow: auto;
}
#users-dialog > p {
  font-size: 11px;
}
#users-dialog table {
  margin: 15px 0;
}
#users-dialog #server-backup {
  margin: 20px 0 12px;
}
#users-dialog details {
  font-size: 11px;
  color: #7c8fa9;
}
#shared-audit {
  white-space: pre-wrap;
  font-size: 10px;
  background: #f5f8fc;
  padding: 15px;
  max-height: 240px;
  overflow: auto;
}
#shared-users-list small {
  display: block;
}
#shared-users-list button {
  font-size: 9px;
  padding: 6px 8px;
}
@media (max-width: 700px) {
  .shared-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  .shared-login form {
    padding: 27px 22px;
  }
  .shared-actions button {
    font-size: 9px;
  }
  .shared-user-form {
    grid-template-columns: 1fr;
  }
  #users-dialog {
    padding: 22px 18px;
  }
}

#municipal-siaps-dialog {
  max-width: 950px;
  max-height: 85vh;
  overflow: auto;
}
#municipal-siaps-preview table {
  margin: 16px 0;
}
#municipal-siaps-preview td small {
  display: block;
}
#municipal-siaps-dialog > button {
  margin: 12px 6px 0 0;
}
/* Institutional presentation. Domain results and source states remain independent. */
@media screen {
  :root {
    --blue: #2563eb;
    --heading: #17365d;
    --surface: #fff;
    --canvas: #f4f7fb;
    --ink: #24364a;
    --muted: #596b80;
    --line: #dce4ef;
    --soft: #edf3fc;
    --positive: #168457;
    --positive-bg: #e9f6ef;
    --pending: #936017;
    --pending-bg: #fff5e3;
    --neutral: #596777;
    --neutral-bg: #edf0f4;
    --shadow: 0 3px 14px #17365d08;
    color: var(--ink);
    background: var(--canvas);
    font-size: 14px;
    color-scheme: light;
  }
  :root[data-theme='dark'] {
    --heading: #dceaff;
    --surface: #17283e;
    --canvas: #0d1929;
    --ink: #e0e8f3;
    --muted: #b1c0d4;
    --line: #354960;
    --soft: #203752;
    --positive: #7dd9af;
    --positive-bg: #163e32;
    --pending: #f2cc86;
    --pending-bg: #42351e;
    --neutral: #bdc9d8;
    --neutral-bg: #2b394c;
    --blue: #2563eb;
    color-scheme: dark;
  }
  body {
    background: var(--canvas);
    color: var(--ink);
  }
  h1,
  h2,
  h3,
  h4 {
    color: var(--heading);
  }
  main {
    padding: 24px;
    max-width: 1920px;
  }
  .sidebar {
    padding: 22px 14px;
    overflow-y: auto;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .sidebar .municipality {
    margin: 22px 0;
  }
  .nav {
    min-height: 44px;
    font-size: 12px;
    padding: 10px;
  }
  .nav-shortcuts {
    border-top: 1px solid #ffffff22;
    padding-top: 12px;
    margin-top: 10px;
  }
  .sidebar-note {
    margin-top: 12px;
  }
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
  }
  .topbar {
    background: var(--surface);
    height: auto;
    min-height: 64px;
    padding: 12px 24px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .topbar-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  .welcome-banner {
    min-height: 0;
    padding: 26px;
    background: #17365d;
    border-radius: 12px;
  }
  .welcome-banner h2 {
    color: #fff;
    font-size: 26px;
  }
  .welcome-copy {
    width: 100%;
  }
  .welcome-tag {
    color: #d7e7ff;
  }
  .welcome-banner p {
    color: #dbe6f7;
  }
  .heading {
    margin-bottom: 16px;
  }
  .heading h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
  .card,
  .panel,
  .indicator-card,
  .indicator-heading,
  .indicator-tab,
  .session-toolbar,
  .topbar,
  dialog,
  .shared-login form,
  .siaps-practice-filter {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .cards {
    gap: 14px;
  }
  .card {
    padding: 20px;
  }
  .card b {
    font-size: 34px;
    color: var(--heading);
  }
  .card-top,
  .card small,
  .indicator-heading p,
  .indicator-meta,
  .indicator-card p,
  .quiet-badge,
  .pill,
  .muted,
  label,
  td small,
  .session-summary,
  .practice .official-status,
  .practice details,
  .comparison-explanation,
  .comparison-meta p,
  .shared-login p,
  .shared-login small {
    color: var(--muted);
  }
  .card-top {
    font-size: 13px;
  }
  .card small {
    font-size: 12px;
    line-height: 1.6;
  }
  .stat-icon,
  .pill,
  .quiet-badge,
  .practice-evidence,
  .individual-siaps {
    background: var(--soft);
    border-color: var(--line);
    color: var(--muted);
  }
  .indicator-grid {
    gap: 14px;
  }
  .indicator-card {
    padding: 20px;
  }
  .indicator-card p {
    font-size: 13px;
  }
  .indicator-card h3 {
    font-size: 16px;
    min-height: 0;
  }
  .indicator-card:hover:not(:disabled) {
    transform: none;
  }
  .indicator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .indicator-tab {
    font-size: 12px;
    min-height: 44px;
    white-space: normal;
    flex: 1 1 170px;
  }
  .indicator-tab[aria-selected='true'] {
    background: var(--soft);
    border-color: var(--blue);
    color: var(--heading);
    box-shadow: inset 0 -2px var(--blue);
  }
  .indicator-heading p,
  .indicator-heading .quiet-badge {
    font-size: 12px;
  }
  .indicator-subtabs button {
    font-size: 13px;
    color: var(--muted);
  }
  .indicator-subtabs [aria-selected='true'] {
    color: var(--heading);
  }
  input,
  select {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    font-size: 13px;
    min-height: 42px;
  }
  label {
    font-size: 12px;
  }
  input::placeholder {
    color: var(--muted);
    opacity: 1;
  }
  .secondary {
    background: var(--surface);
    color: var(--heading);
    border-color: var(--line);
    font-size: 12px;
  }
  button:disabled {
    opacity: 0.6;
  }
  .filters {
    gap: 14px;
    padding: 18px;
    margin-bottom: 12px;
  }
  .quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .quick-filters label {
    flex: 1 1 210px;
  }
  .quick-filters p {
    width: 100%;
    margin: 0;
  }
  .layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
    align-items: start;
  }
  .layout > * {
    min-width: 0;
  }
  .section-head {
    flex-wrap: wrap;
    padding: 16px;
  }
  .section-head p {
    font-size: 12px;
  }
  .list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .table-wrap,
  .comparison-table {
    max-height: none;
    overflow: auto;
  }
  /* The list scrolls once; the adjacent detail uses document scrolling. */
  .list > .table-wrap {
    max-height: 70vh;
  }
  th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--soft);
    color: var(--heading);
    font-size: 12px;
    padding: 14px 12px;
  }
  td {
    border-color: var(--line);
    padding: 16px 12px;
    font-size: 13px;
    vertical-align: top;
  }
  td small {
    font-size: 12px;
    line-height: 1.5;
  }
  .person-button {
    color: var(--heading);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
  }
  .on,
  tbody tr:hover {
    background: var(--soft);
  }
  tr.on td:first-child {
    box-shadow: inset 3px 0 var(--blue);
  }
  .chip {
    font-size: 11px;
    line-height: 1.4;
    background: var(--neutral-bg);
    color: var(--neutral);
  }
  .yes,
  .care-state.complete,
  .positive-mark,
  .letter-ok {
    background: var(--positive-bg);
    color: var(--positive);
    border-color: var(--positive);
  }
  .no,
  .care-state.missing,
  .pending-mark,
  .letter-pending,
  .practice-todo,
  .notice {
    background: var(--pending-bg);
    color: var(--pending);
    border-color: var(--line);
  }
  .care-state.unclear,
  .neutral-mark,
  .letter-neutral {
    background: var(--neutral-bg);
    color: var(--neutral);
  }
  .care-state,
  .siaps-mark,
  .practice-letter {
    font-size: 12px;
  }
  .practice-letter {
    min-height: 36px;
  }
  .detail {
    max-height: none;
    overflow: visible;
    padding: 18px;
  }
  .detail h3 {
    font-size: 20px;
  }
  .detail h4 {
    font-size: 15px;
    margin-top: 24px;
  }
  .detail > .muted,
  .practice small,
  .practice summary,
  .practice details,
  .practice-todo {
    font-size: 12px;
    line-height: 1.7;
  }
  .practice {
    background: var(--surface);
    border-color: var(--line);
    padding: 14px;
  }
  .practicehead b {
    font-size: 13px;
  }
  .practice-state-row {
    flex-wrap: wrap;
    justify-content: start;
  }
  .practice-evidence {
    overflow-wrap: anywhere;
  }
  .evidence-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 10px 0;
    accent-color: var(--positive);
    border: 0;
    border-radius: 4px;
  }
  .evidence-progress::-webkit-progress-bar {
    background: var(--neutral-bg);
    border-radius: 4px;
  }
  .evidence-progress::-webkit-progress-value {
    background: var(--positive);
    border-radius: 4px;
  }
  .comparison-filters {
    gap: 14px;
  }
  .comparison-meta,
  .comparison-stats > div,
  .practice-filter-button,
  .practice-filter-active,
  .practice-guide-item {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
  }
  .comparison-stats b {
    color: var(--heading);
  }
  .comparison-stats span,
  .practice-filter-help,
  .practice-filter-heading p,
  .comparison-explanation {
    color: var(--muted);
    font-size: 12px;
  }
  .practice-filter-button.selected {
    background: var(--soft);
    color: var(--heading);
    border-color: var(--blue);
  }
  .practice-filter-button {
    font-size: 12px;
  }
  .comparison-practice-detail {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }
  .comparison-practice-detail summary {
    cursor: pointer;
    color: var(--heading);
    font-size: 12px;
  }
  .comparison-practice-detail p {
    font-size: 12px;
  }
  .comparison-practice-detail .practice-state-row {
    display: grid;
  }
  #reset-comparison {
    margin: 0 0 12px;
  }
  :root[data-theme='dark'] a,
  :root[data-theme='dark'] .text-button,
  :root[data-theme='dark'] .practice summary {
    color: #a8c9ff;
  }
  :root[data-theme='dark'] .teal,
  :root[data-theme='dark'] .violet,
  :root[data-theme='dark'] .blue,
  :root[data-theme='dark'] .rose,
  :root[data-theme='dark'] .amber,
  :root[data-theme='dark'] .pink {
    --tone: #bbd4ff;
    --tint: #263e5d;
  }
  :root[data-theme='dark'] .import-panel,
  :root[data-theme='dark'] .method-hero,
  :root[data-theme='dark'] .overview-footnote,
  :root[data-theme='dark'] .upload-zone,
  :root[data-theme='dark'] .method-grid > div,
  :root[data-theme='dark'] .empty,
  :root[data-theme='dark'] .session-toolbar,
  :root[data-theme='dark'] .session-toolbar span,
  :root[data-theme='dark'] .method-panel,
  :root[data-theme='dark'] .guide-letter {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }
  :root[data-theme='dark'] .error,
  :root[data-theme='dark'] .danger {
    color: #ffaaaa;
  }
  :focus-visible {
    outline: 3px solid #6198ff;
    outline-offset: 3px;
  }
  .sidebar-collapsed .sidebar {
    width: 76px;
    padding: 20px 10px;
  }
  .sidebar-collapsed .main {
    margin-left: 76px;
  }
  .sidebar-collapsed .sidebar .brand > span:last-child,
  .sidebar-collapsed .municipality,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-note,
  .sidebar-collapsed .sidebar-bottom,
  .sidebar-collapsed .nav-badge {
    display: none;
  }
  .sidebar-collapsed .sidebar .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .sidebar-collapsed .sidebar .nav {
    justify-content: center;
  }
  .sidebar-collapsed #sidebar-logout {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
}
@media screen and (max-width: 1200px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .list > .table-wrap {
    max-height: 65vh;
  }
  .heading-stamp {
    display: none;
  }
}
@media screen and (max-width: 700px) {
  main {
    padding: 16px;
  }
  .sidebar,
  .sidebar-collapsed .sidebar {
    width: auto;
    padding: 16px;
  }
  .sidebar-collapsed .main {
    margin-left: 0;
  }
  #main-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nav-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .nav-shortcuts .nav {
    flex: 1 1 95px;
    font-size: 11px;
  }
  #main-tabs .nav {
    font-size: 11px;
    padding: 9px 3px;
  }
  .sidebar-collapsed #main-tabs,
  .sidebar-collapsed .nav-shortcuts,
  .sidebar-collapsed #sidebar-logout {
    display: none !important;
  }
  .sidebar-collapsed .sidebar .brand > span:last-child {
    display: block;
  }
  .topbar {
    padding: 10px 16px;
  }
  .topbar-right {
    margin-left: auto;
  }
  .topbar-right .environment,
  .breadcrumb {
    display: none;
  }
  .welcome-banner {
    padding: 20px;
  }
  .welcome-banner h2 {
    font-size: 23px;
  }
  .card {
    padding: 15px;
  }
  .card b {
    font-size: 28px;
  }
  .indicator-tab {
    flex-basis: 140px;
  }
  .indicator-heading {
    flex-wrap: wrap;
  }
  .indicator-heading .quiet-badge {
    margin-left: 0;
    white-space: normal;
  }
  .filters label {
    flex: 1 1 135px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .comparison-filters label {
    flex-basis: 100%;
  }
  .list > .table-wrap {
    max-height: none;
  }
  .section-head,
  .detail {
    padding: 14px;
  }
  .practicehead {
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 23px;
  }
  .quiet-badge {
    white-space: normal;
  }
}
@media screen {
  .card-top > span:first-child {
    color: var(--muted);
    font-size: 13px;
  }
  .card:nth-child(2) .stat-icon {
    background: var(--positive-bg);
    color: var(--positive);
  }
  .card:nth-child(3) .stat-icon {
    background: var(--pending-bg);
    color: #b7791f;
  }
  .card:nth-child(4) .stat-icon {
    background: var(--soft);
    color: var(--heading);
  }
  .indicator-meta strong,
  .indicator-meta span,
  .overview-footnote b,
  .overview-footnote p,
  .card small,
  .practice small,
  .practice .official-status,
  .data-session p,
  .data-tips p,
  .legacy-option p,
  .method-intro p:not(.eyebrow),
  .method-legend p,
  .method-grid p {
    color: var(--muted);
  }
  .filters label,
  .filters input,
  .filters select {
    font-size: 13px;
  }
  .upload-zone b,
  .upload-zone > span:not([data-icon]),
  .upload-zone small,
  .practice-filter-heading p,
  .comparison-practice-detail .practice-state-row {
    color: var(--muted);
  }
  .neutral-practice {
    border-left: 3px solid var(--neutral);
  }
  .danger,
  .error {
    color: #c43d3d;
  }
  .shared-toolbar {
    background: var(--soft);
    border-color: var(--line);
  }
  .shared-toolbar b,
  .shared-toolbar p {
    color: var(--heading);
    font-size: 12px;
  }
  [aria-busy='true'] {
    cursor: progress;
  }
  [aria-busy='true'] .section-head::after {
    content: 'Processando…';
    color: var(--muted);
    font-size: 12px;
  }
  :root[data-theme='dark'] .legacy-option,
  :root[data-theme='dark'] .method-legend,
  :root[data-theme='dark'] .data-session,
  :root[data-theme='dark'] .data-tips {
    background: var(--surface);
    border-color: var(--line);
  }
}
@media screen {
  .source-summary {
    padding: 14px 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 24px;
  }
  .indicator-tabs {
    background: var(--soft);
    border-color: var(--line);
  }
  .neutral-practice .practice-todo {
    background: var(--neutral-bg);
    color: var(--neutral);
  }
  :root[data-theme='dark'] .teal {
    --tone: #7dd9cf;
    --tint: #193b3d;
  }
  :root[data-theme='dark'] .violet {
    --tone: #c6b0ff;
    --tint: #352e51;
  }
  :root[data-theme='dark'] .blue {
    --tone: #9ac3ff;
    --tint: #263e5d;
  }
  :root[data-theme='dark'] .rose {
    --tone: #ffb0c0;
    --tint: #482e3e;
  }
  :root[data-theme='dark'] .amber {
    --tone: #efcc90;
    --tint: #423b29;
  }
  :root[data-theme='dark'] .pink {
    --tone: #efb2df;
    --tint: #452e49;
  }
}
/* C1 uses aggregate attendance counts, independently of the nominal C2–C7 panels. */
.access-intro,
.access-toolbar {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.access-intro > div {
  flex: 1 1 400px;
}
.access-intro p {
  max-width: 950px;
}
.access-intro .file-action {
  flex: 0 1 auto;
}
.access-toolbar label {
  flex: 1 1 300px;
}
.access-result {
  padding: 20px;
}
.access-result .comparison-meta {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.access-result .comparison-meta p {
  overflow-wrap: anywhere;
}
.access-cards {
  margin: 18px 0;
}
.access-limitations {
  align-items: start;
  margin: 16px 0;
}
.access-limitations ul {
  padding-left: 20px;
  line-height: 1.8;
}
.access-result caption {
  text-align: left;
  font-weight: 600;
  padding: 14px 0;
}
.access-method {
  margin: 20px 0 0;
  line-height: 1.8;
}
.access-method summary {
  cursor: pointer;
  font-weight: 600;
}
.access-method p {
  max-width: 1000px;
}
@media screen and (max-width: 700px) {
  #main-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .access-result,
  .access-intro,
  .access-toolbar {
    padding: 14px;
  }
  .access-result .table-wrap {
    max-width: 100%;
  }
  .access-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Login branding stays scoped to the authentication screen. */
body.shared-locked {
  overflow: hidden;
}
.shared-login {
  --login-background-image: url('./login-background.jpeg');
  background-color: #102e4c;
  background-image:
    linear-gradient(100deg, #081e36d1 0%, #112f5199 52%, #112f5166 100%),
    var(--login-background-image);
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(28px, 5vw, 80px);
  align-content: center;
  align-items: center;
  isolation: isolate;
}
.login-presentation {
  color: #f4f8ff;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 76px);
  max-width: 680px;
  min-width: 0;
}
.login-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.login-monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #bcecff66;
  border-radius: 17px;
  background: #ffffff12;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  flex-shrink: 0;
}
.login-monogram > span {
  position: absolute;
  top: 3px;
  right: 5px;
  color: #88e1e9;
  font-size: 20px;
}
.login-identity b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.1;
  color: #fff;
}
.login-identity > div > span {
  display: block;
  margin-top: 5px;
  color: #d8e9f7;
  font-size: 13px;
  letter-spacing: 1px;
}
.login-location {
  display: inline-block;
  color: #b8d4eb;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.6px;
  line-height: 1.7;
}
.login-introduction h2 {
  color: #fff;
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -1.2px;
  margin: 18px 0 20px;
}
.login-introduction > p {
  color: #e1eaf4;
  font-size: 16px;
  max-width: 470px;
  line-height: 1.8;
}
.login-product {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid #cde7ff40;
  border-radius: 30px;
  background: #ffffff0c;
  font-size: 12px;
  color: #e0edfa;
}
.login-product .icon {
  width: 17px;
  height: 17px;
}
.login-presentation-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9dced;
  font-size: 12px;
}
.login-presentation-note .icon {
  width: 17px;
  height: 17px;
}
.shared-login form {
  background: var(--surface, #fff);
  color: var(--ink, #24364a);
  border: 1px solid var(--line, #dce4ef);
  border-radius: 22px;
  width: 100%;
  max-width: 450px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 24px 80px #04162945;
  margin: 0;
  min-width: 0;
}
.shared-login .login-brand {
  color: var(--muted, #596b80);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.8px;
}
.shared-login form h1 {
  color: var(--heading, #17365d);
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 15px 0 12px;
}
.shared-login .login-description {
  color: var(--muted, #596b80);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.shared-login form label {
  color: var(--heading, #17365d);
  font-size: 13px;
  font-weight: 600;
  margin-top: 19px;
}
.login-input {
  position: relative;
  margin-top: 9px;
}
.login-input > [data-icon] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted, #596b80);
}
.login-input .icon {
  width: 18px;
  height: 18px;
}
.shared-login .login-input input {
  background: var(--canvas, #f4f7fb);
  border: 1px solid var(--line, #dce4ef);
  border-radius: 10px;
  min-height: 49px;
  padding: 13px 14px 13px 43px;
  margin: 0;
  font-size: 16px;
  color: var(--ink, #24364a);
}
.shared-login .login-input input:focus {
  border-color: #2563eb;
}
.shared-login #login-error {
  color: #c43d3d;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.shared-login #login-error:empty {
  margin: 0;
}
.shared-login #login-submit {
  width: 100%;
  margin-top: 25px;
  border-radius: 10px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 5px 12px #2563eb1c;
}
.shared-login #login-submit:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 7px 16px #2563eb2a;
}
.shared-login #login-access-note {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 19px;
  color: var(--muted, #596b80);
  text-align: center;
}
.login-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--line, #dce4ef);
  margin-top: 25px;
  padding-top: 19px;
  text-align: center;
}
.login-signature > span {
  color: var(--muted, #596b80);
  font-size: 10px;
}
.login-signature > b {
  color: var(--heading, #17365d);
  font-size: 12px;
  letter-spacing: 0.1px;
}
@media (max-width: 900px) {
  .shared-login {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    padding: 30px;
  }
  .login-introduction h2 {
    font-size: 34px;
  }
  .login-introduction > p {
    font-size: 14px;
  }
  .login-presentation {
    gap: 36px;
  }
}
@media (max-width: 700px) {
  .shared-login {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 18px;
    gap: 24px;
    align-content: start;
    justify-items: center;
    background-position: 35% center;
  }
  .login-presentation {
    width: 100%;
    max-width: 420px;
    gap: 0;
  }
  .login-identity {
    gap: 12px;
  }
  .login-monogram {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 27px;
  }
  .login-monogram > span {
    font-size: 16px;
  }
  .login-identity b {
    font-size: 23px;
  }
  .login-identity > div > span {
    font-size: 11px;
  }
  .login-introduction {
    margin-top: 22px;
  }
  .login-location,
  .login-introduction > p,
  .login-product,
  .login-presentation-note {
    display: none;
  }
  .login-introduction h2 {
    font-size: 26px;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }
  .login-introduction h2 br {
    display: none;
  }
  .shared-login form {
    max-width: 420px;
    padding: 26px 24px;
    border-radius: 18px;
  }
  .shared-login form h1 {
    font-size: 26px;
  }
}
@media (max-height: 700px) and (min-width: 701px) {
  .shared-login {
    align-content: start;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .login-presentation {
    gap: 32px;
  }
}
.shared-locked > .main {
  display: none;
}
.shared-login .login-presentation-note {
  color: #c9dced;
}
.shared-login .login-input input {
  font-weight: 400;
}
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  align-items: end;
  margin-bottom: 16px;
}
.history-filters label {
  flex: 1 1 160px;
}
.history-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 18px 0;
}
.history-chart,
.history-table,
.history-sources {
  padding: 20px;
  margin-bottom: 18px;
}
.history-chart {
  min-width: 0;
}
.history-line-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}
.history-line-chart text {
  fill: var(--muted);
  font: 12px sans-serif;
}
.history-gridline {
  stroke: var(--line);
  stroke-width: 1;
}
.history-line-chart polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
}
.history-line-chart circle {
  fill: currentColor;
}
.history-series-0 {
  color: #2563eb;
  fill: #2563eb;
}
.history-series-1 {
  color: #168457;
  fill: #168457;
}
.history-series-2 {
  color: #b7791f;
  fill: #b7791f;
}
.history-series-3 {
  color: #8b5cc7;
  fill: #8b5cc7;
}
.history-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}
.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.history-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-bar-row > div {
  min-width: 0;
}
.history-bar-row svg {
  width: 100%;
  display: block;
}
.history-before {
  fill: #95a3b5;
}
.history-bar-row span {
  color: var(--muted);
  font-size: 11px;
}
.history-table h2 {
  margin-bottom: 12px;
}
.history-sources {
  overflow-wrap: anywhere;
}
.history-sources summary {
  cursor: pointer;
  font-weight: 600;
}
:root[data-theme='dark'] .history-series-0 {
  color: #91b9ff;
  fill: #91b9ff;
}
:root[data-theme='dark'] .history-series-1 {
  color: #79d2a9;
  fill: #79d2a9;
}
:root[data-theme='dark'] .history-series-2 {
  color: #efcc90;
  fill: #efcc90;
}
:root[data-theme='dark'] .history-series-3 {
  color: #d2b3ff;
  fill: #d2b3ff;
}
@media (max-width: 1100px) {
  .history-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .history-chart,
  .history-table,
  .history-sources {
    padding: 14px;
  }
  .history-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.history-series-4 {
  color: var(--muted);
  fill: var(--muted);
}
.history-matrix {
  table-layout: fixed;
  min-width: 960px;
}
.history-matrix caption {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0 16px;
}
.history-matrix td,
.history-matrix th {
  overflow-wrap: anywhere;
}
.history-matrix th:first-child {
  width: 160px;
}
.history-cell-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.history-cell-pair small {
  font-size: 11px;
}
.history-table > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  color: var(--heading);
}
.history-table[open] > summary {
  margin-bottom: 18px;
}
.history-matrix-single {
  min-width: 0;
}
@media (max-width: 700px) {
  .history-matrix-single th:first-child {
    width: 115px;
  }
  .history-matrix-single .history-cell-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quality-removal {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.quality-removal summary {
  cursor: pointer;
  font-weight: 600;
}
.quality-removal select {
  margin: 8px 0;
}

.municipal-summary-mode #view-overview,
.municipal-summary-mode #view-c1,
.municipal-summary-mode #view-indicators,
.municipal-summary-mode #view-data {
  display: none;
}
body:has(#view-history:not([hidden])) #municipal-summary,
body:has(#view-methodology:not([hidden])) #municipal-summary {
  display: none;
}
