.diamond-progress {
    --diamond-progress-fill: #c5a15a;
    --diamond-progress-emphasis: #694e1c;
    position: relative;
    margin: 1rem 0;
    padding: .875rem;
    border: 1px solid #e5dcc8;
    border-radius: 4px;
    background: #faf8f2;
    color: #303030;
    text-align: start;
    font-size: .9375rem;
    line-height: 1.45;
}

.diamond-progress[v-cloak] { display: none; }

.diamond-progress--complete {
    --diamond-progress-fill: #176b55;
    --diamond-progress-emphasis: #176b55;
}

.diamond-progress__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem .5rem;
    margin-bottom: .5rem;
    font-size: .875rem;
}

.diamond-progress__title {
    margin: 0;
    font-weight: 700;
}

.diamond-progress__amount {
    color: #625d52;
    white-space: nowrap;
    font-size: .8125rem;
}

.diamond-progress__bar {
    display: block;
    width: 100%;
    height: .5rem;
    appearance: none;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e8e2d5;
    color: var(--diamond-progress-fill);
}

.diamond-progress__bar::-webkit-progress-bar { background: #e8e2d5; }
.diamond-progress__bar::-webkit-progress-value { background: var(--diamond-progress-fill); border-radius: 999px; }
.diamond-progress__bar::-moz-progress-bar { background: var(--diamond-progress-fill); border-radius: 999px; }

.diamond-progress__range {
    display: flex;
    justify-content: space-between;
    margin-top: .25rem;
    color: #625d52;
    font-size: .8125rem;
}

.diamond-progress__message p { margin: .5rem 0 0; }
.diamond-progress__message strong { color: var(--diamond-progress-emphasis); }

.summaryPanel > .diamond-progress { margin-top: 0; }

.diamond-progress__confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.diamond-progress__particle {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 7px;
    border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .diamond-progress__confetti { display: none; }
}
