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

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

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

.markup-bar {
    display: grid;
    grid-template-columns: minmax(0, var(--cost-share, 70%)) minmax(0, var(--profit-share, 30%));
    min-height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

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

.markup-bar::before {
    background: rgba(76, 175, 80, 0.92);
}

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

.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(76, 175, 80, 0.14);
    color: #1b5e20;
    font-weight: 700;
}
