.analysis-controls {
  display: flex;
  align-items: end;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

/* Plain-language overview with readable controls and chart/table views. */
.analytics-page .analysis-controls {
  align-items: end;
  flex-wrap: wrap;
}
.analytics-page .analysis-controls label {
  font-size: 15px;
  flex: 1;
  max-width: 350px;
}
.analytics-page .analysis-controls input,
.analytics-page .analysis-controls select,
.analytics-page .analysis-controls button {
  font-size: 16px;
  min-height: 46px;
}
.analytics-page .analysis-controls input,
.analytics-page .analysis-controls select {
  width: 100%;
}
.analysis-reset {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: 15px;
}
.analysis-selection {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.analysis-selection > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--text);
}
.analytics-page .analysis-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 26px;
}
.analytics-page .analysis-totals span {
  font-size: 16px;
}
.analytics-page .analysis-totals small {
  font-size: 14px;
}
.analytics-page .analysis-totals strong {
  font-size: 36px;
}
.analysis-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.analysis-jump a {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d1daea;
  border-radius: 7px;
  background: #fff;
  font-size: 15px;
  color: #304e7b;
}
.analysis-jump a:hover {
  background: #eaf1fc;
  text-decoration: none;
  border-color: #8caddd;
}
.analytics-page .chart-panel {
  scroll-margin-top: 18px;
}
.analytics-page .chart-head {
  flex-wrap: wrap;
  align-items: start;
  gap: 12px;
}
.analytics-page .chart-head > div:first-child {
  flex: 1;
  min-width: 160px;
}
.analytics-page .chart-head h2 {
  font-size: 20px;
}
.analytics-page .chart-head p {
  font-size: 14px;
}
.analytics-page .chart-badge {
  font-size: 13px;
}
.chart-switch {
  display: inline-flex;
  border: 1px solid #cbd6e6;
  border-radius: 7px;
  padding: 3px;
  background: #f4f7fc;
  gap: 3px;
  margin-left: auto;
}
.chart-switch button {
  font-size: 14px;
  padding: 7px 12px;
  min-height: 44px;
  box-shadow: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}
.chart-switch button[aria-pressed="true"] {
  background: #fff;
  color: #174ba9;
  border-color: #c8d5eb;
  box-shadow: 0 1px 3px #24487812;
}
.chart-visual {
  display: flex;
  flex-direction: column;
  flex: 1;
}
[data-chart-panel][hidden] {
  display: none !important;
}
.analytics-page .chart-table {
  border-top: 0;
  margin: 0;
}
.analytics-page .chart-table .table-wrap {
  position: relative;
}
.analytics-page .chart-table table {
  width: 100%;
}
.analytics-page .chart-table th,
.analytics-page .chart-table td {
  font-size: 14px;
}
.analytics-page .chart-note {
  font-size: 14px;
  margin-top: 18px;
}
.analytics-page .chart-empty {
  font-size: 16px;
}
.analytics-page .bar-label {
  font-size: 15px;
}
.analytics-page .data-bar > strong {
  font-size: 16px;
}
.analytics-page .bar-percent {
  font-size: 14px;
}
.analytics-page .data-bar {
  grid-template-columns: minmax(0, 1fr) auto 65px;
}
.analytics-page .data-bars {
  gap: 20px;
  padding-top: 16px;
}
.analytics-page a.data-bar {
  padding: 6px;
  margin: -6px;
  border-radius: 6px;
  min-height: 44px;
}
.analytics-page a.data-bar:hover {
  background: #f0f5fc;
}
.analytics-page .data-bar progress {
  height: 9px;
}
.analytics-page .gender-legend > div {
  grid-template-columns: 9px minmax(0, 1fr) auto 63px;
  font-size: 15px;
}
.analytics-page .gender-legend small {
  font-size: 14px;
}
.analytics-page .gender-donut {
  width: 190px;
}
.analytics-page .age-reconciliation {
  font-size: 14px;
  margin-bottom: 12px;
}
.analytics-page .age-reconciliation b {
  font-size: 20px;
}
.analytics-page .phone-accounting {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.analytics-page .phone-accounting span {
  font-size: 14px;
}
.analytics-page .phone-accounting b {
  font-size: 23px;
}
.analytics-page .analysis-findings h2 {
  font-size: 20px;
}
.analytics-page .analysis-findings ul {
  font-size: 16px;
}
.analysis-footnotes {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.sikap-panel {
  grid-column: 1/-1;
}
.sikap-overview {
  padding: 12px 24px 6px;
}
.sikap-stack {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #7e8da1;
  background: #eef2f7;
}
.sikap-fill.sikap-P {
  fill: #fff;
}
.sikap-fill.sikap-K {
  fill: #85909f;
}
.sikap-fill.sikap-H {
  fill: #18283e;
}
.sikap-fill.sikap-blank {
  fill: #dae5f7;
}
.sikap-fill.sikap-other {
  fill: #b68b47;
}
.sikap-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.sikap-category {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding-right: 20px;
  min-width: 0;
}
.sikap-category:last-child {
  border-right: 0;
}
.sikap-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sikap-label h3 {
  font-size: 18px;
  margin: 0;
}
.sikap-code {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  flex: none;
  border: 1px solid #7e8da1;
}
.sikap-code.sikap-P {
  background: #fff;
  color: #17253a;
}
.sikap-code.sikap-K {
  background: #85909f;
  color: #101b2b;
}
.sikap-code.sikap-H {
  background: #18283e;
  color: #fff;
}
.sikap-code.sikap-blank {
  background: #dae5f7;
  color: #274576;
}
.sikap-category > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 46px;
}
.sikap-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}
.sikap-figure strong {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.sikap-figure > span {
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.sikap-other {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
@media (max-width: 1200px) {
  .sikap-categories {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .sikap-category:nth-child(2) {
    border-right: 0;
  }
  .sikap-category > p {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .analytics-page .analysis-controls label {
    max-width: none;
  }
  .analysis-reset {
    grid-column: 1/-1;
    justify-content: center;
  }
  .analytics-page .analysis-totals {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .analytics-page .analysis-totals span {
    font-size: 14px;
  }
  .analytics-page .analysis-totals strong {
    font-size: 30px;
  }
  .analytics-page .analysis-totals > div:nth-child(3) {
    grid-column: 1/-1;
  }
  .analysis-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .analysis-jump a {
    text-align: center;
    padding-inline: 8px;
    font-size: 14px;
  }
  .analytics-page .chart-head > div:first-child {
    flex-basis: 65%;
  }
  .analytics-page .chart-switch {
    margin-left: 0;
  }
  .sikap-overview {
    padding: 10px 18px 6px;
  }
  .sikap-categories {
    gap: 20px 12px;
  }
  .sikap-category {
    padding-right: 10px;
  }
  .sikap-label {
    gap: 7px;
  }
  .sikap-label h3 {
    font-size: 16px;
  }
  .sikap-figure {
    gap: 5px 10px;
  }
  .sikap-figure strong {
    font-size: 27px;
  }
  .analytics-page .age-reconciliation span {
    font-size: 14px;
  }
  .analytics-page .gender-legend > div {
    grid-template-columns: 8px minmax(0, 1fr) auto 60px;
    font-size: 14px;
  }
  .analytics-page .phone-accounting {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .analytics-page .phone-accounting > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .analytics-page .phone-accounting b {
    min-width: 50px;
  }
  .analytics-page .chart-table th,
  .analytics-page .chart-table td {
    padding: 12px;
  }
}
.analysis-scope {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: auto auto auto 0;
  min-width: 180px;
}
.analysis-scope-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--blue);
}
.analysis-scope strong {
  font-size: 14px;
}
.analysis-scope small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.analysis-controls label {
  font-size: 14px;
  min-width: 140px;
}
.analysis-controls select,
.analysis-controls input {
  font-size: 14px;
  min-height: 41px;
}
.analysis-controls button {
  font-size: 14px;
}
.analysis-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 24px;
  gap: 22px;
}
.analysis-totals > div {
  border-right: 1px solid #344258;
  padding-right: 20px;
}
.analysis-totals > div:last-child {
  border: 0;
  padding: 0;
}
.analysis-totals span {
  display: block;
  color: #c0cee3;
  font-size: 14px;
}
.analysis-totals strong {
  display: block;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.analysis-totals small {
  display: block;
  color: #aebfd9;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 5px;
}
.total-source-note p {
  font-size: 14px;
  margin-top: 9px;
  line-height: 1.65;
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}
.chart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow);
}
.age-panel {
  grid-column: span 7;
}
.gender-panel {
  grid-column: span 5;
}
.half-panel {
  grid-column: span 6;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  padding: 22px 24px 12px;
}
.chart-head h2 {
  font-size: 16px;
}
.chart-head p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 5px;
}
.chart-badge {
  color: #4d6487;
  background: #edf2fa;
  font-size: 14px;
  font-weight: 650;
  border-radius: 4px;
  padding: 4px 7px;
  white-space: nowrap;
}
.age-panel .chart-badge {
  background: var(--soft);
  color: var(--amber);
}
.age-reconciliation {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 6px 24px 0;
  font-size: 14px;
  color: var(--muted);
}
.age-reconciliation b {
  color: var(--text);
  font-size: 14px;
  display: inline-block;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.age-reconciliation span:last-child b {
  color: var(--amber);
}
.age-desktop {
  display: flex;
  flex: 1;
}
.age-mobile {
  display: none;
}
.age-chart {
  display: block;
  width: 100%;
  padding: 8px 16px 0;
  min-height: 190px;
  max-height: 275px;
  flex: 1;
}
.chart-grid {
  stroke: #e8edf4;
  stroke-width: 1;
}
.axis-label {
  fill: #5c697b;
  font:
    14px Manrope,
    sans-serif;
}
.age-bar {
  fill: #527bce;
}
.bar-count {
  fill: #25416b;
  font:
    700 14px Manrope,
    sans-serif;
}
.age-exclusions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 13px 0;
  margin: 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.age-exclusions > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.age-exclusions b {
  font-size: 14px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.chart-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 14px 24px 20px;
}
.chart-empty {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding: 34px 24px;
  margin: 0;
  flex: 1;
}
.chart-table {
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.chart-table summary {
  padding: 13px 24px;
  font-size: 14px;
  color: #3e6095;
  cursor: pointer;
  background: #fbfcfe;
}
.chart-table summary:hover {
  background: #f0f5fc;
}
.chart-table th,
.chart-table td {
  font-size: 14px;
  padding: 10px 22px;
}
.chart-table th:nth-child(n + 2),
.chart-table td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chart-table .table-wrap {
  border-top: 0;
}
.gender-visual {
  padding: 0 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.gender-donut {
  width: 175px;
  max-width: 100%;
  display: block;
}
.donut-track {
  stroke: #edf1f6;
}
.donut-segment.tint-0 {
  stroke: #3566c9;
}
.donut-segment.tint-1 {
  stroke: #4c908b;
}
.donut-segment.tint-2 {
  stroke: #a7b4c8;
}
.donut-segment.tint-3 {
  stroke: #b28a4a;
}
.donut-count {
  font:
    750 25px Manrope,
    sans-serif;
  fill: var(--text);
  letter-spacing: -0.7px;
}
.donut-caption {
  font:
    14px Manrope,
    sans-serif;
  fill: var(--muted);
}
.gender-legend {
  width: 100%;
  display: grid;
  gap: 7px;
}
.gender-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 46px;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}
.gender-legend strong {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.gender-legend small {
  text-align: right;
  color: var(--muted);
  font-size: 14px;
}
.legend-swatch {
  height: 7px;
  width: 7px;
  border-radius: 2px;
  background: #3566c9;
}
.legend-swatch.tint-1 {
  background: #4c908b;
}
.legend-swatch.tint-2 {
  background: #a7b4c8;
}
.legend-swatch.tint-3 {
  background: #b28a4a;
}
.data-bars {
  padding: 8px 24px 22px;
  display: grid;
  gap: 16px;
}
.data-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 54px;
  gap: 7px 10px;
  align-items: center;
  color: var(--text);
}
a.data-bar:hover {
  color: var(--blue);
  text-decoration: none;
}
.bar-label {
  font-size: 14px;
  line-height: 1.5;
}
.data-bar > strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.bar-percent {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-bar progress {
  grid-column: 1/-1;
  height: 7px;
  pointer-events: none;
}
.data-bar progress::-webkit-progress-value {
  background: #527bce;
}
.data-bar progress::-moz-progress-bar {
  background: #527bce;
}
.data-bar.tint-1 progress::-webkit-progress-value {
  background: #6f91d6;
}
.data-bar.tint-2 progress::-webkit-progress-value {
  background: #427e8a;
}
.data-bar.tint-3 progress::-webkit-progress-value {
  background: #7c8a9d;
}
.data-bar.tint-4 progress::-webkit-progress-value {
  background: #b59561;
}
.data-bar.tint-5 progress::-webkit-progress-value {
  background: #696e9d;
}
.phone-accounting {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin: 0 24px;
  padding-top: 18px;
}
.phone-accounting b {
  display: block;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}
.phone-accounting span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 4px;
}
.analysis-findings {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  border: 1px solid #d6e1f4;
  border-radius: 10px;
  background: #edf3fd;
  padding: 23px 26px;
  margin-top: 24px;
}
.analysis-findings > div {
  position: relative;
  padding-left: 31px;
}
.finding-symbol {
  position: absolute;
  left: 0;
  top: -4px;
  color: #5278b8;
  font-size: 22px;
}
.analysis-findings h2 {
  font-size: 14px;
}
.analysis-findings > div > span:last-child {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.analysis-findings ul {
  padding: 0 0 0 17px;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: #455c7e;
  line-height: 1.75;
}
.analysis-findings li::marker {
  color: #7b98c5;
}
.analysis-findings b {
  color: #24436e;
}
.analysis-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
  gap: 22px;
  margin-top: 24px;
}
.availability-body {
  padding: 10px 24px 26px;
}
.availability-mark {
  display: block;
  color: #9aabc2;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 13px;
}
.availability-body h3 {
  font-size: 15px;
  margin: 0;
}
.availability-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.method-body {
  padding: 3px 24px 23px;
}
.method-body dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px 18px;
  margin: 10px 0 20px;
  font-size: 14px;
  line-height: 1.8;
}
.method-body dt {
  font-weight: 750;
  color: #3c5273;
}
.method-body dd {
  margin: 0;
  color: var(--muted);
}
.method-body > a {
  font-size: 14px;
}
.method-body .chart-note {
  margin: 8px 0 0;
}
@media (min-width: 1650px) {
  .gender-visual {
    flex-direction: row;
    gap: 24px;
  }
  .gender-donut {
    width: 200px;
    flex: none;
  }
  .gender-legend {
    gap: 14px;
  }
  .age-chart {
    max-height: 300px;
  }
}
@media (max-width: 1200px) {
  .analysis-controls {
    flex-wrap: wrap;
    gap: 14px;
  }
  .analysis-scope {
    width: 100%;
  }
  .analysis-controls label {
    flex: 1;
  }
  .analysis-controls select,
  .analysis-controls input {
    width: 100%;
  }
  .analysis-totals {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }
  .total-source-note {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0 12px;
    border-top: 1px solid #344258 !important;
    padding-top: 13px !important;
  }
  .total-source-note p {
    margin: 0;
    font-size: 14px;
  }
  .total-source-note small {
    grid-column: 2;
  }
  .analysis-totals > div:nth-child(3) {
    border: 0;
  }
  .age-panel,
  .gender-panel {
    grid-column: span 12;
  }
  .gender-visual {
    flex-direction: row;
    justify-content: space-evenly;
    gap: 28px;
  }
  .gender-legend {
    max-width: 330px;
  }
  .gender-donut {
    flex: none;
  }
  .age-chart {
    max-height: 290px;
  }
  .analysis-findings {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .analysis-method-grid {
    grid-template-columns: 1fr;
  }
  .availability-body {
    padding-top: 0;
  }
  .availability-mark {
    display: none;
  }
  .chart-head {
    padding: 20px 20px 12px;
  }
  .chart-badge {
    font-size: 14px;
  }
  .half-panel .chart-head {
    display: block;
  }
  .half-panel .chart-badge {
    display: inline-block;
    margin-top: 7px;
  }
}
@media (max-width: 900px) {
  .half-panel {
    grid-column: span 12;
  }
  .half-panel .chart-head {
    display: flex;
  }
  .half-panel .chart-badge {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .age-desktop {
    display: none;
  }
  .age-mobile {
    display: block;
    margin-top: 18px;
  }
  .age-mobile .data-bar progress::-webkit-progress-value {
    background: #527bce;
  }
  .analysis-controls {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .analysis-scope {
    grid-column: 1/-1;
    min-width: 0;
  }
  .analysis-controls label {
    min-width: 0;
    grid-column: 1/-1;
    font-size: 14px;
  }
  .analysis-controls input,
  .analysis-controls select {
    font-size: 16px;
    min-height: 44px;
    min-width: 0;
  }
  .analysis-controls button {
    grid-column: 1/-1;
    min-height: 44px;
  }
  .analysis-totals {
    padding: 20px;
    gap: 17px;
    grid-template-columns: 1fr 1fr;
  }
  .analysis-totals > div {
    border: 0;
    padding: 0;
  }
  .analysis-totals span {
    font-size: 14px;
  }
  .analysis-totals strong {
    font-size: 27px;
  }
  .analysis-totals small {
    font-size: 14px;
  }
  .analysis-totals > div:nth-child(3) {
    grid-column: 1/-1;
    border-top: 1px solid #344258;
    padding-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .analysis-totals > div:nth-child(3) strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  .total-source-note {
    display: block;
  }
  .total-source-note p {
    margin-top: 7px;
  }
  .total-source-note small {
    font-size: 14px;
  }
  .chart-head {
    padding: 19px 18px 12px;
    gap: 10px;
  }
  .chart-head h2 {
    font-size: 15px;
  }
  .chart-head p {
    font-size: 14px;
  }
  .chart-badge {
    font-size: 14px;
  }
  .age-chart {
    padding-inline: 4px;
    min-height: 170px;
    max-height: 230px;
  }
  .age-reconciliation {
    margin: 5px 18px 2px;
    gap: 9px;
  }
  .age-reconciliation span {
    font-size: 14px;
  }
  .age-reconciliation b {
    font-size: 14px;
  }
  .age-exclusions {
    margin: 0 18px;
    gap: 10px;
  }
  .age-exclusions > span {
    font-size: 14px;
  }
  .chart-note {
    margin: 14px 18px 18px;
  }
  .chart-table summary {
    padding: 14px 18px;
    min-height: 44px;
  }
  .chart-table th,
  .chart-table td {
    padding: 10px 14px;
  }
  .gender-visual {
    padding: 0 18px 16px;
    gap: 10px;
    flex-direction: column;
  }
  .gender-donut {
    width: 170px;
  }
  .gender-legend {
    max-width: none;
  }
  .gender-legend > div {
    font-size: 14px;
  }
  .data-bars {
    padding: 8px 18px 20px;
  }
  .phone-accounting {
    margin: 0 18px;
    gap: 12px;
  }
  .phone-accounting b {
    font-size: 18px;
  }
  .phone-accounting span {
    font-size: 14px;
  }
  .analysis-findings {
    padding: 20px;
  }
  .analysis-findings ul {
    font-size: 14px;
  }
  .method-body {
    padding: 4px 18px 22px;
  }
  .method-body dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .method-body dd {
    margin-bottom: 10px;
  }
  .availability-body {
    padding: 0 18px 22px;
  }
}

/* Internal Data Desk refinement. Public-site styles are intentionally separate. */
:root {
  --bg: #f0f3f8;
  --line: #dce3ed;
  --muted: #53647a;
  --blue: #245bdb;
  --shadow: none;
}
body {
  background: var(--bg);
}
button,
.button,
input,
select,
textarea {
  border-radius: 10px;
}
button,
.button {
  font-weight: 700;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 2px 3px #193f8a18;
}
.primary:hover {
  background: #1949b8;
}
.rail {
  background: #101e32;
  border-right: 1px solid #23334b;
}
.workspace-label {
  background: #1a2b42;
  border-color: #34465f;
  border-radius: 12px;
  margin: 14px 0 7px;
  padding: 12px;
  gap: 8px;
}
.workspace-label small {
  font-size: 14px;
}
.workspace-label > .icon {
  flex-shrink: 0;
}
.rail nav a {
  margin-bottom: 0;
  border-radius: 9px;
}
.rail nav a.active {
  background: #2b60dc;
  box-shadow: none;
}
.rail nav a:not(.active):hover {
  background: #20334e;
}
.rail-label {
  color: #9eafc5;
  letter-spacing: .08em;
  font-size: 11px;
}
.nav-count {
  font-variant-numeric: tabular-nums;
}
.scope-note {
  color: #c1ccdc;
}
.topbar {
  gap: 22px;
  padding: 0 32px;
  background: #fdfefe;
  border-color: var(--line);
}
.top-search {
  max-width: 400px;
  border-radius: 10px;
  background: #f2f5fa;
  border-color: #e2e8f1;
}
.top-search:focus-within {
  background: #fdfefe;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #245bdb12;
}
.text-size-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 7px 12px;
  color: #354c6b;
  font-size: 14px;
  background: #fdfefe;
  border: 1px solid #cbd6e5;
}
.text-size-toggle[aria-pressed="true"] {
  color: #1949b8;
  border-color: #8aaaea;
  background: #eaf1ff;
}
.text-size-symbol {
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}
.main {
  padding: 32px;
  max-width: 1560px;
}
.heading {
  margin-bottom: 26px;
  gap: 20px;
}
.heading h1 {
  font-size: clamp(30px, 2.7vw, 38px);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.heading .subtitle {
  margin-top: 10px;
  color: var(--muted);
}
.heading-actions {
  gap: 10px;
}
.heading-actions .button {
  padding: 11px 17px;
}
.desk-overview {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #fdfefe;
}
.desk-totals {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  background: #172b48;
  color: #f3f7ff;
}
.desk-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 19px 24px;
  color: inherit;
  position: relative;
}
.desk-total + .desk-total {
  border-left: 1px solid #3b4e68;
}
.desk-total:first-child {
  background: #2052c4;
}
.desk-total > span {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 15px;
  font-weight: 650;
  color: #e3ecfa;
}
.desk-total > span > .icon:last-child:not(:first-child) {
  margin-left: auto;
  width: 17px;
}
.desk-total > strong {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.desk-total > small {
  font-size: 14px;
  color: #d5e1f5;
}
a.desk-total:hover {
  background: #223b60;
  text-decoration: none;
}
a.desk-total:focus-visible {
  outline-color: #a9c7ff;
  outline-offset: -5px;
}
.desk-areas {
  padding: 10px 24px 16px;
}
.desk-areas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 4px;
}
.desk-areas-heading h2 {
  font-size: 16px;
  margin: 0;
}
.desk-areas-heading a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 750;
  min-height: 44px;
}
.desk-area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 22px;
}
.desk-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  gap: 5px 8px;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: #30445f;
  font-size: 14px;
  font-weight: 650;
}
.desk-area > span {
  overflow-wrap: anywhere;
}
.desk-area > strong {
  font-size: 16px;
  color: #172b48;
  font-variant-numeric: tabular-nums;
}
.desk-area .icon {
  width: 16px;
  height: 16px;
  color: #607594;
}
.desk-area progress {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 3px;
  background: #edf1f7;
  color: #84a5e9;
}
.desk-area progress::-webkit-progress-bar {
  background: #edf1f7;
  border-radius: 3px;
}
.desk-area progress::-webkit-progress-value {
  background: #84a5e9;
  border-radius: 3px;
}
.desk-area progress::-moz-progress-bar {
  background: #84a5e9;
  border-radius: 3px;
}
.desk-area:hover {
  color: #164dbd;
  text-decoration: none;
}
.desk-area:hover progress::-webkit-progress-value {
  background: var(--blue);
}
.panel,
.analytics-page .chart-panel {
  border-radius: 14px;
  border-color: var(--line);
  box-shadow: none;
}
.records-heading {
  padding: 23px 24px 17px;
}
.records-heading h2 {
  font-size: 21px;
}
.records-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.result-count {
  font-variant-numeric: tabular-nums;
  background: #eef3fc;
  color: #254b8e;
  border: 1px solid #d6e2f5;
  font-size: 14px;
}
.columns summary {
  min-height: 44px;
  font-size: 14px;
}
.quick-views {
  padding: 0 24px;
  gap: 22px;
}
.quick-views a {
  font-size: 14px;
  font-weight: 750;
  padding: 13px 0;
  color: #53647a;
}
.quick-views a.selected {
  color: #164dbd;
  border-bottom-color: #245bdb;
}
.quick-views a b {
  background: #e9effa;
  color: #264e92;
  font-variant-numeric: tabular-nums;
}
.filters {
  background: #f7f9fc;
  padding: 18px 24px;
}
.filter-main {
  gap: 12px;
}
.filter-main .search-field {
  background: #fdfefe;
  border-color: #c6d1e1;
  border-radius: 10px;
}
.filter-main .search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #245bdb12;
}
.filters input,
.filters select {
  background: #fdfefe;
}
.records-table thead th {
  background: #f7f9fc;
  color: #53647a;
  font-size: 14px;
  font-weight: 750;
  padding-top: 13px;
  padding-bottom: 13px;
}
.records-table td {
  padding-top: 17px;
  padding-bottom: 17px;
  border-bottom-color: #e7ecf3;
}
.records-table .record-symbol {
  border-radius: 10px;
  color: #5c78a6;
  background: #eff4fc;
  border: 0;
}
.records-table tbody tr:hover td,
.records-table tbody tr.selected td {
  background: #f0f5ff;
}
.name-button {
  color: #193f7a;
  font-weight: 800;
  text-align: left;
}
.records-table .secondary {
  color: #5c6c82;
  font-size: 14px;
  margin-top: 5px;
}
.phone-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1e52b7;
  border: 0;
  background: transparent;
  padding: 4px 0;
  min-height: 44px;
}
.main .phone-more {
  font-size: 14px;
}
.phone-more .icon {
  width: 14px;
  height: 14px;
}
.phone-more:hover {
  color: #103c91;
  background: transparent;
  text-decoration: underline;
}
.review-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.review-shortcut .icon {
  width: 14px;
  height: 14px;
  color: #8b5600;
}
.review-shortcut:hover {
  background: #fff1d2;
}
.pagination {
  padding: 17px 24px;
  background: #fcfdff;
}
.pagination > span {
  font-size: 14px;
}
.row-action {
  border-radius: 50%;
  background: #f2f6fd;
  color: #395e9c;
}
.review-intro {
  border-radius: 14px;
}
.queue-tabs a {
  border-radius: 12px;
}
.queue-tabs a.selected {
  border-color: #9cb7e9;
  background: #eaf1ff;
  color: #19499e;
}
#record {
  width: min(560px, 100vw);
  max-width: 100vw;
}
.drawer-head {
  padding: 20px 28px;
  background: #101e32;
}
.record-hero {
  padding: 26px 28px;
  background: #172b48;
}
.drawer-name {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.drawer-tabs {
  padding: 0 24px;
}
.drawer-section {
  padding: 24px;
}
#record .drawer-section > h2 {
  font-size: 20px;
}
#record .drawer-head h2 {
  font-size: 16px;
}
.phone-card {
  padding: 18px 20px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #fcfdff;
  box-shadow: none;
}
.phone-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  color: #586a83;
  font-weight: 650;
  font-size: 14px;
}
#record .copy-phone,
.copy-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  min-height: 44px;
  border: 0;
  color: #2457b5;
  font-size: 14px;
  background: transparent;
}
.copy-phone:hover {
  background: #eaf1ff;
}
.phone-head strong {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 800;
}
.phone-head {
  margin: 5px 0 14px;
}
.phone-source {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.phone-source summary {
  min-height: 44px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #395b89;
}
.phone-source .evidence {
  margin: 4px 0 14px;
}
.phone-card .secondary {
  font-size: 14px;
  color: #617087;
}
.phone-card .tags {
  gap: 6px;
}
.phone-feedback {
  font-size: 14px;
  color: #254b8e;
  margin: 0;
}
.phone-feedback:not(:empty) {
  margin: 8px 0;
}
.analytics-page .analysis-controls {
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.analytics-page .analysis-totals {
  border: 0;
  border-radius: 14px;
  background: #172b48;
  padding: 28px;
  margin-bottom: 24px;
}
.analytics-page .analysis-totals strong {
  font-size: 42px;
  letter-spacing: -.035em;
}
.analytics-page .analysis-totals small {
  color: #d5e1f5;
}
.analysis-jump {
  gap: 0;
  padding: 0 4px;
  border-bottom: 1px solid #cbd7e8;
  margin-bottom: 26px;
}
.analysis-jump a {
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  font-weight: 750;
  color: #3c557a;
}
.analysis-jump a:hover,
.analysis-jump a:focus-visible {
  background: #e4edfc;
  color: #1949b8;
}
.analytics-page .chart-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf4;
  margin-bottom: 12px;
}
.analytics-page .chart-head h2 {
  font-size: 22px;
  letter-spacing: -.025em;
}
.chart-switch {
  border-color: #d4deec;
  background: #f0f4fa;
  border-radius: 9px;
}
.chart-switch button {
  border-radius: 6px;
}
.chart-switch button[aria-pressed="true"] {
  background: #245bdb;
  border-color: #245bdb;
  color: #f7faff;
  box-shadow: none;
}
.analytics-grid {
  gap: 24px;
}
.analytics-page .chart-panel {
  padding: 0;
}
.analysis-facts {
  border-radius: 14px;
}
.workspace-footer {
  color: #64758e;
}
/* Larger text changes the content itself, not a browser zoom or a scaled canvas. */
html[data-text-size="large"] body {
  font-size: 18px;
}
html[data-text-size="large"] :is(button, .button, input, select, textarea) {
  font-size: 18px;
}
html[data-text-size="large"] :is(.rail nav a, .subtitle, .heading .subtitle,
  .name-button, .phone-number, .records-table td, .pdm-cell,
  .filters label, .form-grid label, .phone-source summary,
  .analytics-page .analysis-controls label, .analytics-page .analysis-totals span) {
  font-size: 18px;
}
html[data-text-size="large"] :is(.records-table th, .secondary, .tag, .status-label,
  .main .phone-more, .records-table .secondary, .quick-views a, .columns summary,
  .desk-area, .desk-areas-heading a, .desk-total > span, .desk-total > small,
  .records-heading p, .phone-card-title, #record .copy-phone, .phone-card .secondary,
  .evidence, .analytics-page .chart-head p, .chart-badge, .chart-note,
  .bar-label, .bar-percent, .gender-legend, .gender-legend span, .gender-legend small,
  .sikap-category p, .sikap-figure span, .sikap-other, .age-reconciliation span,
  .phone-feedback, .analysis-selection, .analysis-totals small) {
  font-size: 16px;
}
html[data-text-size="large"] .text-size-toggle {
  font-size: 14px;
}
html[data-text-size="large"] .desk-area > strong {
  font-size: 18px;
}
@media (max-width: 1250px) {
  .topbar {
    gap: 16px;
    padding: 0 24px;
  }
  .breadcrumb > span,
  .breadcrumb > .icon {
    display: none;
  }
  .main {
    padding: 28px 24px;
  }
  .desk-total {
    padding: 19px 20px;
  }
  .desk-area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1020px) {
  .text-size-label {
    max-width: 100px;
    line-height: 1.3;
    text-align: left;
  }
  .top-search kbd {
    display: none;
  }
  .desk-total {
    padding: 20px 16px;
  }
  .desk-total > span > .icon:first-child {
    display: none;
  }
  .desk-total > strong {
    font-size: 35px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .top-search {
    order: 4;
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 0 100%;
    margin: 0;
  }
  .text-size-toggle {
    margin-left: auto;
    padding: 8px 10px;
  }
  .text-size-label {
    max-width: 100px;
    font-size: 14px;
  }
  .breadcrumb {
    display: none;
  }
  .main {
    padding: 24px 16px;
  }
  .heading {
    margin-bottom: 22px;
    gap: 16px;
  }
  .heading-actions .button {
    padding: 10px 12px;
    font-size: 14px;
  }
  .desk-totals {
    grid-template-columns: 1fr 1fr;
  }
  .desk-total:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 12px;
    padding: 20px;
  }
  .desk-total:first-child > strong {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 38px;
  }
  .desk-total:nth-child(2) {
    border-left: 0;
  }
  .desk-total {
    padding: 18px;
  }
  .desk-total > span {
    font-size: 14px;
    line-height: 1.5;
  }
  .desk-total > span > .icon {
    display: none;
  }
  .desk-total > strong {
    font-size: 31px;
  }
  .desk-total > small {
    font-size: 14px;
  }
  .desk-areas {
    padding: 14px 18px 18px;
  }
  .desk-area-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .desk-area {
    font-size: 14px;
  }
  .records-heading,
  .filters,
  .pagination {
    padding: 18px;
  }
  .records-heading {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .quick-views {
    padding: 0 18px;
    gap: 20px;
  }
  .quick-views a {
    white-space: nowrap;
  }
  .drawer-head,
  .record-hero {
    padding: 20px;
  }
  .drawer-section {
    padding: 18px;
  }
  .drawer-tabs {
    padding: 0 18px;
    gap: 8px;
    overflow-x: auto;
  }
  .drawer-tabs button {
    flex-shrink: 0;
  }
  .phone-card {
    padding: 15px;
  }
  .phone-head strong {
    font-size: 23px;
  }
  .analytics-page .analysis-controls {
    padding: 20px;
  }
  .analytics-page .analysis-totals {
    padding: 20px;
  }
  .analytics-page .analysis-totals strong {
    font-size: 32px;
  }
  .analytics-page .chart-head h2 {
    font-size: 21px;
  }
  .analysis-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .analysis-jump a {
    padding: 10px 12px;
    font-size: 14px;
  }
  html[data-text-size="large"] .desk-total {
    padding: 16px;
  }
  html[data-text-size="large"] .desk-total > span {
    font-size: 16px;
  }
  html[data-text-size="large"] .desk-total > small {
    font-size: 14px;
  }
  html[data-text-size="large"] .desk-total:first-child > strong {
    font-size: 34px;
  }
}
