.interest-form-stack {
    display: grid;
    gap: 1.05rem;
    max-width: 760px;
}

.interest-form-block {
    min-width: 0;
}

.interest-form-block-narrow {
    max-width: 560px;
}

.interest-tool-form .interest-segmented-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    padding: .35rem;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 22px;
    background: rgba(37, 99, 235, .045);
}

.interest-tool-form .interest-segmented-option {
    cursor: pointer;
    margin: 0;
}

    .interest-tool-form .interest-segmented-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .interest-tool-form .interest-segmented-option span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        border: 1px solid transparent;
        border-radius: 17px;
        background: transparent;
        color: #334155;
        font-weight: 800;
        transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
    }

    .interest-tool-form .interest-segmented-option input:checked + span {
        border-color: rgba(37, 99, 235, .22);
        background: #fff;
        color: #1d4ed8;
        box-shadow: 0 12px 28px rgba(37, 99, 235, .13);
    }

.interest-money-input-wrap,
.interest-rate-input-wrap {
    position: relative;
    min-width: 0;
}

.interest-money-prefix,
.interest-rate-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 800;
    z-index: 2;
    pointer-events: none;
}

.interest-money-input {
    padding-left: 40px;
}

.interest-rate-input {
    padding-left: 42px;
}

.interest-combo-field,
.interest-select-panel {
    display: grid;
    min-width: 0;
    gap: .5rem;
    padding: .45rem;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 22px;
    background: rgba(37, 99, 235, .045);
}

.interest-combo-field {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .36fr);
    align-items: stretch;
}

    .interest-combo-field .interest-money-input-wrap,
    .interest-combo-field .interest-rate-input-wrap,
    .interest-combo-field .interest-rate-input,
    .interest-combo-field .field-input,
    .interest-combo-field .custom-select,
    .interest-combo-field .custom-select-trigger,
    .interest-combo-field select,
    .interest-select-panel .field-input,
    .interest-select-panel .custom-select,
    .interest-select-panel .custom-select-trigger,
    .interest-select-panel select {
        min-height: 56px;
        height: 56px;
        box-sizing: border-box;
    }

    .interest-combo-field .field-input,
    .interest-select-panel .field-input {
        min-width: 0;
        background-color: #fff;
    }

    .interest-combo-field .custom-select,
    .interest-select-panel .custom-select {
        width: 100%;
    }

    .interest-combo-field .custom-select-trigger,
    .interest-select-panel .custom-select-trigger {
        display: flex;
        align-items: center;
    }

.interest-submit-btn {
    justify-self: start;
    margin-top: .15rem;
}

.interest-result-shell {
    min-width: 0;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 28px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(37, 99, 235, .06), rgba(255, 255, 255, .95));
}

.interest-summary-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: stretch;
    min-width: 0;
    padding: 1rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

    .interest-summary-hero > div {
        min-width: 0;
    }

.interest-summary-hero-value {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0f172a;
}

.interest-rate-box {
    min-width: 220px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, .04);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .interest-rate-box small {
        color: #0f172a;
        font-weight: 400;
    }

    .interest-rate-box strong {
        display: block;
        min-width: 0;
        max-width: 100%;
        margin-top: .15rem;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 1.35rem;
        line-height: 1.08;
        color: #0f172a;
    }

.interest-result-shell .result-card {
    min-width: 0;
}

    .interest-result-shell .result-card strong {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.08;
    }

.interest-details-toggle {
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(15, 23, 42, .08);
    padding: .9rem 1rem;
}

    .interest-details-toggle > summary {
        cursor: pointer;
        font-weight: 800;
        color: #1e293b;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
    }

        .interest-details-toggle > summary::-webkit-details-marker {
            display: none;
        }

        .interest-details-toggle > summary::after {
            content: "+";
            font-size: 1.1rem;
            font-weight: 800;
            color: #1e293b;
        }

    .interest-details-toggle[open] > summary::after {
        content: "−";
    }

@media (max-width: 767.98px) {
    .interest-tool-form .interest-segmented-group,
    .interest-combo-field {
        grid-template-columns: 1fr;
    }

    .interest-form-stack,
    .interest-form-block-narrow {
        max-width: none;
    }

    .interest-summary-hero {
        flex-direction: column;
    }

    .interest-rate-box {
        min-width: 0;
    }
}
