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

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

.quick-note {
    background: linear-gradient(135deg, #eef2ff, #f8f9ff);
    border: 1px solid #dfe5ff;
}

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

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

.margin-bar::before {
    background: rgba(13, 110, 253, 0.86);
}

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

.formula-box {
    min-height: 72px;
    white-space: pre-wrap;
    word-break: break-word;
    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;
}

.step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.14);
    color: #084298;
    font-weight: 700;
}

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