/* =====================================================
   学習統計
   Version: v0.013.0000
   ===================================================== */

.stats-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.stats-block {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: 0 1px 4px var(--color-shadow);
}
.stats-block .section-title {
    margin-bottom: var(--space-3);
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 280px;
}
.chart-wrap--small {
    height: 240px;
}

.stats-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.stats-grid-two .stats-block {
    margin-bottom: 0;
}

/* =====================================================
   単元別習熟度のリスト
   ===================================================== */
.unit-mastery__grade {
    font-size: var(--fs-base);
    color: var(--color-text-muted);
    margin: var(--space-4) 0 var(--space-2);
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--color-border);
}
.unit-mastery__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.unit-mastery {
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
}
.unit-mastery__head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
    flex-wrap: wrap;
}
.unit-mastery__chapter {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}
.unit-mastery__name {
    font-weight: 600;
}
.unit-mastery__pct {
    margin-left: auto;
    font-size: var(--fs-base);
}
.unit-mastery__bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.unit-mastery__bar-fill {
    height: 100%;
    transition: width var(--transition-base);
}
.unit-mastery__sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
