/* Ingress stretches across the full calculator width, not just the left column */
.section-sub {
    max-width: none;
}

.savings-mode-card {
    overflow: visible;
}

.savings-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 20px 20px;
    background: var(--surface);
}

.savings-mode-btn {
    appearance: none;
    border: 1.5px solid var(--border);
    background: var(--surface-alt);
    color: var(--muted);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-align: left;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
}

.savings-mode-btn:hover {
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
}

.savings-mode-btn.is-active {
    border-color: var(--accent);
    background: var(--primary-light);
    color: var(--primary);
}

.savings-mode-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.savings-mode-panel[hidden] {
    display: none !important;
}

.savings-mode-panel.is-active {
    display: flex;
}

.save-chart-container {
    height: 320px;
    padding: 24px 24px 16px;
}

.split-bar-wrap {
    margin-top: 20px;
    padding: 0 24px 24px;
}

.split-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.split-bar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.split-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 999px;
    transition: width 0.45s ease;
}

.split-bar-legend {
    display: flex;
    gap: 18px;
    margin-top: 8px;
    font-size: 0.76rem;
    color: var(--muted);
}

.split-bar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .savings-mode-switch {
        grid-template-columns: 1fr;
    }

    .savings-mode-btn {
        text-align: center;
    }
}
