.brushing-history {
  margin: 20px 0;
  padding: 18px;
  min-width: 0;
  border: 1px solid rgba(93, 246, 230, 0.24);
  border-radius: 20px;
  background: linear-gradient(150deg, #123346, #081c2c 70%);
  color: #edfaff;
  text-align: left;
}
.brushing-history h2,
.brushing-history h3,
.brushing-history p {
  margin: 0;
}
.brushing-history h2 {
  font-size: 22px;
}
.brushing-history h3 {
  font-size: 14px;
}
.brushing-history p,
.brushing-history small {
  line-height: 1.5;
}
.bh-heading,
.bh-calendar-heading,
.bh-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brushing-history .bh-kicker {
  color: #92d9d8;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.bh-goal-count {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #ffe2a1;
}
.bh-goals,
.bh-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.bh-goals > div {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #335263;
  background: #102737;
}
.bh-goals > div > span {
  font-size: 24px;
  color: #abc5d3;
}
.bh-goals strong,
.bh-goals small {
  display: block;
}
.bh-goals strong {
  font-size: 14px;
}
.bh-goals small {
  font-size: 11px;
  color: #b4cbd8;
}
.bh-goals .is-complete {
  border-color: #65dfc7;
  background: #123f40;
}
.bh-goals .is-complete > span,
.bh-goals .is-complete small {
  color: #98ffe4;
}
.brushing-history .bh-goal-note,
.brushing-history .bh-legend,
.brushing-history .bh-retention,
.brushing-history .bh-note {
  margin-top: 10px;
  color: #afc8d6;
  font-size: 11px;
}
.bh-periods article {
  padding: 12px 10px;
  border-radius: 12px;
  background: #071c2a;
}
.bh-periods h3 {
  font-size: 11px;
  color: #b5cbd8;
  font-weight: 500;
}
.bh-periods strong {
  display: block;
  margin: 6px 0;
  color: #ffe2a1;
  font-size: 19px;
}
.bh-periods p {
  font-size: 11px;
  color: #c2d7e1;
}
.bh-calendar-heading {
  margin-top: 22px;
}
.brushing-history button {
  min-height: 44px;
  border: 1px solid #335465;
  border-radius: 10px;
  color: #edfaff;
  background: #133446;
  cursor: pointer;
  font: inherit;
}
.brushing-history button:disabled {
  opacity: 0.35;
  cursor: default;
}
.brushing-history button:focus-visible,
.brushing-history summary:focus-visible {
  outline: 2px solid #ffe2a1;
  outline-offset: 3px;
}
.brushing-history .bh-today {
  padding: 0 12px;
  font-size: 12px;
}
.bh-month-nav {
  margin: 12px 0;
}
.bh-month-nav button {
  width: 44px;
  font-size: 24px;
}
.bh-month {
  font-size: 14px;
  text-transform: capitalize;
}
.bh-weekdays,
.bh-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.bh-weekdays {
  margin-bottom: 6px;
  text-align: center;
  color: #afc8d6;
  font-size: 11px;
}
.brushing-history .bh-calendar button {
  min-width: 0;
  min-height: 48px;
  padding: 4px 0;
  border-color: transparent;
  border-radius: 8px;
  background: #0a2333;
  font-size: 12px;
}
.bh-calendar button span,
.bh-calendar button small {
  display: block;
}
.bh-calendar button small {
  height: 16px;
  font-size: 11px;
  color: #8ee7d4;
}
.brushing-history .bh-calendar .bh-complete {
  background: #154540;
}
.brushing-history .bh-calendar [aria-current="date"] {
  border-color: #6edacb;
}
.brushing-history .bh-calendar [aria-pressed="true"] {
  background: #ffe2a1;
  color: #092332;
  border-color: #ffe2a1;
}
.bh-calendar [aria-pressed="true"] small {
  color: #19483c;
}
.bh-day {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #335263;
}
.bh-session {
  margin-top: 10px;
  border: 1px solid #335263;
  border-radius: 12px;
  background: #0a2333;
  padding: 0 12px 12px;
}
.bh-session:not([open]) {
  padding-bottom: 0;
}
.bh-session summary {
  min-height: 48px;
  align-content: center;
  font-size: 13px;
  cursor: pointer;
}
.bh-session summary strong {
  float: right;
  color: #98ffe4;
}
.bh-session > p {
  font-size: 12px;
  color: #c2d7e1;
}
.bh-positions {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.bh-positions li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px 0;
  border-top: 1px solid #284555;
  font-size: 11px;
}
.bh-positions small {
  grid-column: 1 / -1;
  color: #afc8d6;
}
.brushing-history .bh-empty {
  margin-top: 12px;
  font-size: 12px;
  color: #c2d7e1;
}
@media (max-width: 360px) {
  .brushing-history {
    padding: 12px;
  }
  .bh-heading {
    align-items: flex-start;
  }
  .bh-goals > div {
    gap: 6px;
    padding: 10px 8px;
  }
  .bh-periods strong {
    font-size: 17px;
  }
}
