.calculator-sticky {
    position: sticky;
    top: 12px;
    z-index: 1;
}

.max-w-760 {
    max-width: 760px;
}

.quick-note {
    border-left: 4px solid rgba(25, 135, 84, 0.3);
}

.result-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
}

.result-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.85rem;
    background: rgba(25, 135, 84, 0.12);
    color: #146c43;
    font-size: 1.2rem;
}

.mini-metric {
    min-height: 76px;
}

.discount-bar {
    display: grid;
    grid-template-columns: minmax(0, var(--saved-share, 25%)) minmax(0, var(--remaining-share, 75%));
    min-height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.discount-bar::before,
.discount-bar::after {
    content: "";
    display: block;
    min-height: 18px;
}

.discount-bar::before {
    background: rgba(25, 135, 84, 0.9);
}

.discount-bar::after {
    background: rgba(23, 162, 184, 0.82);
}

.formula-box {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.14);
    color: #146c43;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .calculator-sticky {
        position: static;
        top: auto;
    }
}
