.health-log-form input:not([type=checkbox]), .health-log-form select, .health-log-form textarea {
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #e4dadd;
  border-radius: 8px;
  padding: 10px;
}
.health-log-form textarea {
  width: 100%;
}
.health-log-form input[type=checkbox] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.health-log-form input[type=submit] {
  cursor: pointer;
}
.health-log-form label {
  display: block;
}

.health-log-tab:focus-visible {
  outline: 2px solid #7c2d4e;
  outline-offset: -2px;
}

.health-log-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #3b2130;
}

.health-log-title svg, .health-log-title i {
  width: 22px;
  height: 22px;
  color: #b8325a;
  flex-shrink: 0;
}

.health-log-form input[type=submit] {
  background: #b8325a;
  color: #fff;
  border-color: #b8325a;
}
.health-log-form input[type=submit]:hover {
  background: #7c2d4e;
  border-color: #7c2d4e;
}
.health-log-form input[type=checkbox] {
  accent-color: #7c2d4e;
}
.health-log-form button[type=button] {
  color: #7c2d4e;
  border-color: #d9abb9;
}
.health-log-form button[type=button]:hover {
  background: #fff5f7;
}

.health-log-tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
}

.health-log-tabs .health-log-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.health-log-tabs svg, .health-log-tabs i, .health-log-entry svg, .health-log-entry i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.health-log-section {
  border: 1px solid #eadfe3;
  border-radius: 12px;
  padding: 10px 12px;
}

.health-log-section legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  font-size: 0.875rem;
  font-weight: 650;
  color: #7c2d4e;
}

.health-log-entry {
  font-size: 0.875rem;
}
.health-log-entry input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .health-log-entry select, .health-log-entry textarea {
  min-height: 44px;
  padding: 7px 10px;
}
.health-log-entry input[type=radio] {
  min-height: 0;
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: #7c2d4e;
}
.health-log-entry .health-log-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.health-log-entry .health-log-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #eadfe3;
  border-radius: 10px;
  cursor: pointer;
}
.health-log-entry .health-log-choice:has(input:checked) {
  background: #fce8ee;
  border-color: #b8325a;
  color: #7c2d4e;
}
.health-log-entry .health-log-section > label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.health-log-inline-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.health-log-add-symptom {
  margin-top: 14px;
  margin-bottom: 6px;
}

.health-log-day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.health-log-day-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #7c2d4e;
  border-radius: 11px;
}

a.health-log-day-arrow:hover {
  background: #fce8ee;
}

.health-log-date-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.health-log-date-picker input {
  padding: 4px 8px;
  max-width: 160px;
}

.health-log-date-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #7c2d4e;
}

.health-log-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.health-log-settings-card {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.health-log-settings svg, .health-log-settings i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.health-log-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.health-log-card-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.health-log-card-heading p, .health-log-settings small {
  color: #765f6b;
  font-size: 0.8125rem;
}

.health-log-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fce8ee;
  color: #7c2d4e;
}

.health-log-settings h3 {
  font-size: 0.875rem;
  font-weight: 650;
}

.health-log-settings .health-log-form label {
  margin-bottom: 5px;
  font-size: 0.875rem;
}

.health-log-settings .health-log-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.health-log-check-label small {
  display: block;
  margin-top: 4px;
}

.health-log-settings-hint {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff5f7;
  color: #66515c;
  font-size: 0.875rem;
}

.health-log-settings-divider {
  border-top: 1px solid #eadfe3;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}

.health-log-symptom-list {
  display: grid;
  gap: 8px;
}

.health-log-symptom-item {
  border: 1px solid #eadfe3;
  border-radius: 12px;
  overflow: hidden;
}

.health-log-symptom-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.health-log-symptom-item summary::-webkit-details-marker {
  display: none;
}

.health-log-symptom-item summary:hover {
  background: #fff5f7;
}

.health-log-symptom-item[open] summary {
  background: #fff5f7;
  border-bottom: 1px solid #eadfe3;
}

.health-log-symptom-name, .health-log-symptom-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7c2d4e;
}

.health-log-symptom-name {
  min-width: 0;
}

.health-log-symptom-name strong {
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}

.health-log-symptom-name small {
  display: block;
}

.health-log-symptom-status {
  flex-shrink: 0;
}

.health-log-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  background: #fce8ee;
  color: #7c2d4e;
  font-size: 0.75rem;
  font-weight: 600;
}

.health-log-badge-muted {
  background: #f3eef0;
  color: #765f6b;
}

.health-log-symptom-edit {
  padding: 14px;
}

.health-log-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.health-log-add-form input {
  width: 100%;
  min-width: 0;
}

.health-log-grant-item {
  padding: 14px;
  border: 1px solid #eadfe3;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  font-size: 0.8125rem;
}

.health-log-grant-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.health-log-secondary-button {
  min-height: 44px;
  padding: 9px 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #d9abb9;
  border-radius: 12px;
  color: #7c2d4e;
  font-size: 0.875rem;
}

.health-log-secondary-button:hover {
  background: #fff5f7;
}

.health-log-settings-card > *, .health-log-settings-divider > *, .health-log-settings-card .health-log-form {
  min-width: 0;
}

.health-log-card-heading > div, .health-log-symptom-name > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.health-log-settings-divider {
  grid-template-columns: minmax(0, 1fr);
}

.health-log-settings-card button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .health-log-add-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .health-log-add-form button {
    justify-self: start;
  }
}
.health-log-entry-toggle > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7c2d4e;
}

.health-log-entry-toggle > summary::-webkit-details-marker {
  display: none;
}

.health-log-entry-toggle > summary:hover {
  background: #fff5f7;
}

.health-log-entry-toggle > summary svg, .health-log-entry-toggle > summary i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.health-log-entry-toggle[open] > summary svg:last-child {
  transform: rotate(180deg);
}

.health-log-entry-toggle-content {
  padding-top: 12px;
}

.health-log-statistics {
  min-width: 0;
}

.health-log-statistics-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-log-statistics svg:not(.health-log-chart):not(.health-log-frequency-bar), .health-log-statistics i[data-feather] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.health-log-stat-card {
  overflow: hidden;
}

.health-log-stat-card > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  list-style: none;
  cursor: pointer;
}

.health-log-stat-card > summary::-webkit-details-marker {
  display: none;
}

.health-log-stat-card > summary:hover {
  background: #fff5f7;
}

.health-log-stat-card[open] > summary {
  border-bottom: 1px solid #eadfe3;
}

.health-log-stat-card[open] > summary > svg:last-child {
  transform: rotate(180deg);
}

.health-log-stat-label {
  flex: 1;
  min-width: 0;
}

.health-log-stat-label strong {
  display: block;
  color: #3b2130;
  font-size: 0.9375rem;
}

.health-log-stat-card small {
  display: block;
  color: #765f6b;
  font-size: 0.75rem;
  font-weight: 400;
}

.health-log-stat-number {
  text-align: right;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7c2d4e;
}

.health-log-stat-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.health-log-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.health-log-chart text {
  fill: #765f6b;
  font-size: 12px;
  font-family: inherit;
}

.health-log-chart-grid {
  stroke: #eadfe3;
  stroke-width: 1;
}

.health-log-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.8125rem;
}

.health-log-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.health-log-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.health-log-frequency-row {
  display: grid;
  gap: 7px;
}

.health-log-frequency-row > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  font-size: 0.875rem;
}

.health-log-frequency-row span, .health-log-frequency-row p {
  color: #765f6b;
  font-size: 0.75rem;
}

.health-log-frequency-bar {
  width: 100%;
  height: 14px;
}

.health-log-chart-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.8125rem;
  color: #765f6b;
}

.health-log-chart-totals strong {
  color: #7c2d4e;
  font-size: 1.125rem;
}

@media (max-width: 480px) {
  .health-log-stat-card > summary {
    gap: 8px;
    padding: 12px;
  }
  .health-log-stat-card > summary .health-log-card-icon {
    width: 30px;
    height: 30px;
  }
  .health-log-stat-number {
    font-size: 1rem;
  }
  .health-log-stat-content {
    padding: 12px;
  }
}
.health-log-existing-symptom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 160px);
  gap: 12px;
  align-items: center;
}

.health-log-existing-symptom label {
  overflow-wrap: anywhere;
}

.health-log-existing-symptom select {
  width: 100%;
}

.health-log-plot-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.health-log-plot-scroll:focus-visible {
  outline: 2px solid #7c2d4e;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .nub-athlete-main .health-log {
    padding: 0;
    width: 100%;
  }
  .health-log.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 18px;
  }
  .health-log-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .health-log-tabs .health-log-tab {
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 8px 5px;
    gap: 5px;
    font-size: 0.75rem;
  }
  .health-log-tabs .health-log-tab span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .health-log #today {
    padding: 12px;
  }
  .health-log-settings-card {
    padding: 14px;
    gap: 14px;
  }
  .health-log-section {
    padding: 10px;
    min-width: 0;
  }
  .health-log-entry .health-log-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .health-log-entry .health-log-choice {
    min-height: 48px;
  }
  .health-log-entry input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .health-log-entry select {
    min-height: 48px;
  }
  .health-log-entry button[type=submit] {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .health-log-entry button[type=button] {
    min-height: 44px;
  }
  .health-log-entry-toggle > summary {
    min-height: 48px;
  }
  .health-log-calendar {
    gap: 4px;
    min-width: 0;
  }
  .health-log-calendar a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 4px 0;
    font-size: 0.8125rem;
  }
  .health-log-statistics-heading {
    align-items: stretch;
  }
  .health-log-statistics-heading > nav {
    width: 100%;
  }
  .health-log-stat-card > summary {
    flex-wrap: wrap;
  }
  .health-log-stat-label {
    flex-basis: calc(100% - 70px);
  }
  .health-log-stat-number {
    margin-left: 38px;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .health-log-stat-card > summary > svg:last-child {
    margin-left: auto;
  }
  .health-log-plot-scroll .health-log-chart {
    min-width: 640px;
  }
  .health-log-frequency-row > div {
    align-items: flex-start;
  }
  .health-log-chart-legend span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .health-log-symptom-item summary {
    padding: 10px;
  }
  .health-log-card-heading {
    gap: 9px;
  }
  .health-log-card-heading h2 {
    line-height: 1.4;
  }
}
@media (max-width: 380px) {
  .health-log-tabs .health-log-tab {
    flex-direction: column;
  }
  .health-log-existing-symptom {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .health-log-symptom-status {
    gap: 4px;
  }
  .health-log-settings-card {
    padding: 12px;
  }
}
