/* =========================================================
   Progress Summary
   ========================================================= */

.progress-summary {
    width: 100%;
    margin-top: 8px;
}

.progress-summary__header {
    margin-bottom: 12px;
}

.progress-summary__header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

/* =========================================================
   Chart Card
   ========================================================= */

.progress-chart-card {
    background: #f3f5f7;
    border: 1px solid #d6dde5;
    border-radius: 14px;
    padding: 18px 16px;
    overflow: hidden;
}

.progress-chart-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.progress-chart-canvas {
    width: 100%;
    height: 320px;
}

.progress-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.progress-chart-center__percent {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 6px;
    white-space: nowrap;
}

.progress-chart-center__label {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    color: #5f6f82;
    white-space: nowrap;
}

.progress-chart-legend {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.progress-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.2;
}

.progress-chart-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-chart-legend__dot--completed {
    background: #16a34a;
}

.progress-chart-legend__dot--not-completed {
    background: #dc2626;
}

/* =========================================================
   Inline Stats
   ========================================================= */

.progress-summary-inline {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.progress-summary-inline__item {
    background: #eef2f5;
    border: 1px solid #d6dde5;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.progress-summary-inline__label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #5f6f82;
    margin-bottom: 6px;
}

.progress-summary-inline__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
}

.progress-summary-inline__item--completed .progress-summary-inline__value {
    color: #15803d;
}

.progress-summary-inline__item--not-completed .progress-summary-inline__value {
    color: #b91c1c;
}

.progress-summary-inline__item--percentage .progress-summary-inline__value {
    color: #334155;
}