.visual-chart {
  min-height: 190px;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 210px;
  padding: 12px 4px 0;
}

.trend-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 220px;
  padding: 12px 4px 0;
}

.trend-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 8px;
  min-width: 54px;
  flex: 1;
  height: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-column i {
  align-self: end;
  width: 100%;
  max-width: 44px;
  border-radius: 8px 8px 3px 3px;
  background: #2563eb;
}

.trend-column small {
  color: var(--ink);
  font-size: 12px;
}

.child-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.child-rhythm-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.child-rhythm-card.ok {
  border-left-color: var(--green);
}

.child-rhythm-card.warn {
  border-left-color: var(--amber);
  background: #fffaf2;
}

.child-rhythm-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.child-rhythm-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.child-rhythm-card small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.monthly-frequency-list {
  display: grid;
  gap: 10px;
}

.monthly-frequency-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.monthly-frequency-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.monthly-frequency-card header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.monthly-frequency-card strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.monthly-frequency-card span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.monthly-frequency-card em {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f4f7fb;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.monthly-frequency-stack {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.monthly-frequency-stack i {
  display: block;
  min-width: 8px;
}

.monthly-subject-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.monthly-subject-list p {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  min-width: 0;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 8px 8px 8px 20px;
  background: #fbfcfe;
}

.monthly-subject-list p::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.monthly-subject-list b {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.monthly-subject-list span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.slice-1,
.slice-1::before {
  background: #2563eb;
}

.slice-2,
.slice-2::before {
  background: #1f7a5f;
}

.slice-3,
.slice-3::before {
  background: #d97706;
}

.slice-4,
.slice-4::before {
  background: #9333ea;
}

.slice-5,
.slice-5::before {
  background: #dc2626;
}

.monthly-subject-list .slice-1,
.monthly-subject-list .slice-2,
.monthly-subject-list .slice-3,
.monthly-subject-list .slice-4,
.monthly-subject-list .slice-5 {
  background: #fbfcfe;
}

.bar-column {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 8px;
  min-width: 64px;
  flex: 1;
  height: 200px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bar-column i {
  align-self: end;
  width: 100%;
  max-width: 52px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2563eb, #1f7a5f);
}

.bar-column small {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dot-chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  min-height: 190px;
}

.dot-bubble {
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  text-align: center;
  box-shadow: 0 10px 24px rgba(31, 122, 95, 0.18);
}

.dot-bubble strong,
.dot-bubble span {
  display: block;
  max-width: 86%;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.donut-chart {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 200px;
}

.donut {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: #fff;
}

.donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
}

.donut-legend {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.donut-legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.stat-row {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-row header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.stat-row header span,
.stat-row header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebe8;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.chart-row.tone-blue .bar span {
  background: var(--blue);
}

.chart-row.tone-green .bar span {
  background: var(--green);
}

.chart-row.tone-amber .bar span {
  background: var(--amber);
}

.chart-row.tone-red .bar span {
  background: var(--red);
}

.explanation-row-list {
  display: grid;
  gap: 10px;
}

.explanation-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.explanation-row header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.explanation-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.explanation-row em {
  color: var(--ink);
  font-size: 18px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.explanation-row > i {
  display: block;
  height: 8px;
  min-width: 6px;
  max-width: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.explanation-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.explanation-row.tone-green {
  border-left-color: var(--green);
}

.explanation-row.tone-green > i {
  background: var(--green);
}

.explanation-row.tone-blue {
  border-left-color: var(--blue);
}

.explanation-row.tone-amber {
  border-left-color: var(--amber);
  background: #fffaf2;
}

.explanation-row.tone-amber > i {
  background: var(--amber);
}

.explanation-row.tone-red {
  border-left-color: var(--red);
  background: #fff7f7;
}

.explanation-row.tone-red > i {
  background: var(--red);
}

.explanation-row.tone-muted {
  border-left-color: #94a3b8;
}

.explanation-row.tone-muted > i {
  background: #94a3b8;
}
