body {
    font-family: sans-serif;
    margin: 20px;
  }
  h1 {
    text-align: center;
    margin-bottom: 1rem;
  }
  #charts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .chart {
    border: 1px solid #ccc;
    padding: 5px;
  }
  .chart-title {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }
  
  .controls {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  #patient-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .patient-checkbox {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
  }
  
  .patient-checkbox input {
    margin-right: 5px;
  }
  
  #reset-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
  }
  
  #reset-button:hover {
    background-color: #e0e0e0;
  }
  
  .legend-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
  }
  
  .legend-item rect {
    margin-right: 6px;
  }
  
  .legend-item.selected {
    border: 1px solid #000;
  }
  
  .legend-item:hover text {
    font-weight: bold;
  }
  
  .gender-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 15px;
  }
  
  .filter-title {
    font-weight: bold;
  }
  
  .gender-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
  }
  
  .gender-checkbox:hover {
    background-color: #f0f0f0;
  }
  
  .gender-checkbox input {
    margin-right: 5px;
  }
  
  .project-notes {
    max-width: 900px;
    margin: 40px auto 30px auto;
    padding: 32px 28px 24px 28px;
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 1.08rem;
    color: #222;
  }
  .project-notes h2 {
    margin-top: 0;
    color: #1a4a7a;
    font-size: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
    margin-bottom: 12px;
  }
  .project-notes ul {
    margin: 0 0 16px 20px;
    padding: 0;
  }
  .project-notes li {
    margin-bottom: 7px;
    line-height: 1.5;
  }
  .project-notes p {
    margin: 10px 0 18px 0;
  }
  .project-notes strong, .project-notes b {
    color: #1a4a7a;
  }
  
  .instructions {
    max-width: 900px;
    margin: 40px auto 30px auto;
    padding: 0px 28px 10px 28px;
    font-size: 1.08rem;
    color: #222;
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    font-size: 1.08rem;
  }