/* ==========================
   PROGRESS
========================== */

.progress-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 20px 80px;
}

.progress-card {
    padding: 38px;
}

.progress-card h1 {
    margin: 0 0 10px;
    font-size: 40px;
    line-height: 1.08;
    font-weight: 850;
    color: #222;
}

.progress-lead,
.progress-status {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(20, 20, 20, .68);
}

.progress-status[data-tone="error"] {
    color: #8a1f1f;
}

.progress-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #222;
}

.progress-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.progress-chart-section,
.progress-list-section {
    margin-top: 36px;
}

.progress-list-section h2 {
    margin-bottom: 16px;
}

.progress-empty {
    margin: 0;
    font-size: 15px;
    color: rgba(20, 20, 20, .55);
}

.progress-chart {
    width: 100%;
    min-height: 280px;
    padding: 12px 4px 8px;
}

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

.progress-axis {
    stroke: rgba(20, 20, 20, .18);
    stroke-width: 1.5;
}

.progress-line {
    fill: none;
    stroke: rgba(30, 30, 30, .72);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.progress-marker-hit {
    cursor: pointer;
}

.progress-marker-ring {
    fill: rgba(255, 255, 255, .92);
    stroke: rgba(20, 20, 20, .55);
    stroke-width: 2;
}

.progress-marker-img {
    pointer-events: none;
}

.progress-marker-label {
    fill: rgba(20, 20, 20, .78);
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
}

.progress-marker-date {
    fill: rgba(20, 20, 20, .5);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
}

.progress-photo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-photo-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .28);
    border: 1px solid rgba(255, 255, 255, .45);
}

.progress-photo-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.progress-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.progress-photo-meta strong {
    font-size: 15px;
    color: #222;
}

.progress-photo-meta span {
    font-size: 13px;
    color: rgba(20, 20, 20, .58);
}

.progress-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.progress-photo-actions input[type="date"] {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .42);
    font: inherit;
    font-size: 13px;
    color: #222;
}

.progress-photo-actions button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .36);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
}

.progress-photo-actions button:hover {
    background: rgba(255, 255, 255, .52);
}

.progress-photo-actions button:disabled {
    opacity: 0.55;
    cursor: default;
}

.progress-photo-row.is-focused {
    box-shadow: 0 0 0 2px rgba(20, 20, 20, .28);
}

@media (max-width: 700px) {
    .progress-page {
        padding: 70px 14px 60px;
    }

    .progress-card {
        padding: 24px 18px;
    }

    .progress-card h1 {
        font-size: 32px;
    }

    .progress-photo-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .progress-photo-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}
