.life-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.life-chart {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
  overflow: visible;
}

.life-chart-grid line {
  stroke: #e5e7eb;
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.life-chart-labels {
  fill: #6b7280;
  font-size: 11px;
}

.life-chart-area {
  fill: #eff6ff;
  opacity: .88;
}

.life-chart-line {
  fill: none;
  stroke: #3b82f6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.life-chart-point {
  fill: #fff;
  stroke: #2563eb;
  stroke-width: 1.5;
  cursor: crosshair;
}

.life-chart-point:hover,
.life-chart-point:focus {
  fill: #2563eb;
  r: 5;
  outline: none;
}

.life-chart-tooltip rect {
  fill: #1f2937;
  opacity: .95;
}

.life-chart-tooltip {
  pointer-events: none;
}

.life-chart-tooltip text {
  fill: #fff;
  font-size: 10px;
}

.life-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: #3b82f6;
}

.life-table-hash {
  overflow-wrap: anywhere;
}

.life-country-options {
  position: absolute;
  z-index: 20;
  top: 3.9rem;
  left: 0;
  right: 0;
  max-height: 18rem;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 10px 24px rgb(15 23 42 / 14%);
}

.life-country-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: #fff;
  color: #1f2937;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
}

.life-country-option:hover,
.life-country-option:focus-visible {
  outline: none;
  background: #eff6ff;
  color: #1d4ed8;
}

.life-country-code {
  color: #6b7280;
  font-size: 0.75rem;
}

.life-country-empty {
  padding: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.life-age-control {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
}

.life-age-control input {
  min-width: 0;
  border-radius: 0;
  text-align: center;
  appearance: textfield;
}

.life-age-control input::-webkit-inner-spin-button,
.life-age-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.life-age-step {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #1d4ed8;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.life-age-step:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.life-age-step:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.life-age-step:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

fieldset .life-sex-option input:checked + span {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 0 0 2px rgb(29 78 216 / 20%);
}

.life-sex-option input:focus-visible + span {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
