.fasting-ring-wrap {
    position: relative;
    display: inline-block;
    width: 280px;
    max-width: 100%;
    aspect-ratio: 1/1;
}
.fasting-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.fasting-ring .ring-track {
    fill: none;
    stroke: var(--bs-secondary-bg);
    stroke-width: 14;
}
.fasting-ring .ring-fill {
    fill: none;
    stroke: var(--bs-primary);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 0 553;
    transition: stroke-dasharray .35s ease, stroke .35s ease;
}
.fasting-ring .ring-fill.complete {
    stroke: #198754;
}
.ring-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    padding: 1rem;
    text-align: center;
}
.ring-label {
    font-size: .85rem;
    margin-bottom: .25rem;
}
.ring-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--bs-body-color);
}
.ring-pct {
    margin-top: .25rem;
    font-variant-numeric: tabular-nums;
}

/* Stages list */
.stage-row {
    display: grid;
    grid-template-columns: 1rem 3rem 1fr auto;
    align-items: center;
    gap: .6rem;
    padding: .3rem .5rem;
    border-left: 3px solid transparent;
    border-radius: .25rem;
    transition: background .15s ease;
}
.stage-row.reached {
    background: var(--bs-success-bg-subtle);
    border-left-color: #198754;
}
.stage-row.pending {
    color: var(--bs-secondary-color);
}
.stage-bullet {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    border: 2px solid var(--bs-secondary-color);
    margin: 0 auto;
}
.stage-row.reached .stage-bullet {
    background: #198754;
    border-color: #198754;
}
.stage-hour {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}
.stage-row.reached .stage-hour {
    color: #198754;
}
.stage-name {
    font-size: .9rem;
}
.stage-eta {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .stage-row {
        grid-template-columns: 1rem 2.5rem 1fr;
    }
    .stage-eta {
        grid-column: 2 / -1;
        margin-left: 2.5rem;
        font-size: .75rem;
    }
}
