.hero-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px
}

.hero-tools .tax-home-link {
    margin-top: 0
}

.currency-home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    border: 1px solid #c59fe87a;
    border-radius: 12px;
    background: #ffffff10;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: background .25s, border-color .25s
}

.currency-home-link:hover {
    background: #ffffff20;
    color: #fff;
    border-color: #d6ffb0
}

.currency-home-link svg {
    width: 17px;
    height: 17px
}

.currency-home-link:focus-visible {
    outline: 3px solid #d6ffb0;
    outline-offset: 4px
}

.fx-section {
    background: #faf7ff;
    padding-top: 48px
}

.fx-hero p:not(.eyebrow) {
    max-width: 650px
}

.fx-workspace {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: stretch
}

.fx-input-card {
    background: #fff;
    border: 1px solid #e7ddf2;
    border-radius: 24px;
    padding: 34px;
    min-width: 0
}

.fx-input-card h2 {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.7px;
    color: #362344
}

.fx-muted {
    font-size: 13px;
    line-height: 1.9;
    color: #8c7b9a;
    margin: 16px 0 28px
}

.fx-input-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #59446c;
    margin: 0 0 9px
}

.fx-input-card .form-control,
.fx-input-card .form-select {
    border-radius: 12px;
    border-color: #e6daef;
    background-color: #faf7fe;
    min-height: 52px;
    color: #442954;
    font-size: 13px
}

.fx-input-card .form-control {
    font-size: 23px;
    font-weight: 700;
    padding: 13px 16px
}

.fx-input-card .form-control:focus,
.fx-input-card .form-select:focus {
    border-color: #9754cb;
    box-shadow: 0 0 0 3px #9754cb15
}

.fx-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    margin: 24px 0 30px
}

.fx-swap {
    border-radius: 50%;
    border: 1px solid #dfcfed;
    background: #f4ecfd;
    color: #8f50c0;
    height: 42px;
    margin-bottom: 5px;
    display: grid;
    place-items: center
}

.fx-swap:hover {
    background: #e5d4f6
}

.fx-swap svg {
    width: 18px
}

.fx-private {
    font-size: 11px;
    color: #96839f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0
}

.fx-private svg {
    width: 15px;
    height: 15px
}

.fx-result-card {
    border-radius: 24px;
    padding: 34px;
    background: radial-gradient(ellipse at 100% 0, #75479d, transparent 75%), #29183d;
    color: #fff;
    min-width: 0
}

.fx-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #d4bae9;
    font-size: 10px;
    letter-spacing: 1px
}

.fx-status {
    font-size: 9px;
    letter-spacing: 0;
    border: 1px solid #ffffff25;
    border-radius: 30px;
    padding: 6px 10px;
    color: #d7ffc9
}

.fx-status.is-stale {
    color: #ffd9a3
}

.fx-status.is-error {
    color: #ffc6d1
}

#fx-result {
    padding: 38px 0 28px;
    min-height: 220px
}

#fx-source-amount {
    font-size: 13px;
    color: #c9b3db;
    margin-bottom: 12px
}

.fx-total {
    display: block;
    font: 800 clamp(28px, 3.2vw, 43px)/1.35 Manrope, sans-serif;
    color: #d8ffc3;
    overflow-wrap: anywhere;
    letter-spacing: -1px
}

.fx-rate {
    font-size: 12px;
    color: #ebdcf7;
    margin-top: 20px
}

.fx-inverse {
    font-size: 11px;
    color: #bca0d0;
    margin: 8px 0 0
}

.fx-freshness {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #ffffff20;
    border-bottom: 1px solid #ffffff20;
    padding: 18px 0
}

.fx-freshness span {
    display: block;
    color: #b99dcd;
    font-size: 10px;
    margin-bottom: 7px
}

.fx-freshness time {
    display: block;
    font-size: 11px;
    line-height: 1.8;
    color: #eee1f8
}

.fx-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff10;
    border: 1px solid #ffffff25;
    border-radius: 10px;
    padding: 10px 13px;
    color: #ecdafc;
    font-size: 11px;
    margin-top: 20px
}

.fx-refresh svg {
    width: 15px;
    height: 15px
}

.fx-refresh:hover {
    background: #ffffff20
}

.fx-refresh:disabled {
    opacity: .55;
    cursor: wait
}

.fx-refresh:disabled svg {
    animation: fx-spin 1s linear infinite
}

.fx-network {
    font-size: 10px;
    line-height: 1.8;
    color: #c4aad7;
    margin: 12px 0
}

.fx-provider {
    font-size: 10px;
    color: #a88abb;
    margin: 18px 0 0
}

.fx-provider a {
    text-decoration: underline;
    color: #dec4f1
}

.fx-error {
    color: #9b3352;
    background: #fff0f4;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.8
}

.fx-error[hidden] {
    display: none
}

.fx-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px
}

.fx-notes article {
    padding: 26px;
    border: 1px solid #e9e0f2;
    border-radius: 20px;
    background: #fff
}

.fx-notes h3 {
    font-size: 16px;
    line-height: 1.5;
    color: #4b3261;
    margin: 15px 0 10px
}

.fx-notes p {
    font-size: 12px;
    color: #8a7798;
    line-height: 1.9;
    margin: 0
}

.fx-note-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: #f1e6fc;
    border-radius: 12px;
    color: #8f50c0
}

.fx-note-icon svg {
    width: 20px;
    height: 20px
}

@keyframes fx-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:991px) {

    .fx-input-card,
    .fx-result-card {
        padding: 25px
    }

    .fx-workspace {
        gap: 20px
    }

    .fx-pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px
    }

    .fx-swap {
        margin: 0;
        justify-self: center;
        transform: rotate(90deg)
    }

    .fx-notes {
        gap: 16px
    }

    .fx-notes article {
        padding: 20px
    }
}

@media(max-width:767px) {

    .fx-workspace,
    .fx-notes {
        grid-template-columns: 1fr
    }

    .fx-input-card h2 {
        font-size: 24px
    }

    .fx-total {
        font-size: 34px
    }

    .fx-freshness {
        gap: 12px
    }

    .fx-section {
        padding-top: 28px
    }

    .hero-tools {
        margin-top: 20px
    }

    .currency-home-link {
        font-size: 12px
    }

    .fx-result-top {
        letter-spacing: .5px
    }
}

@media(prefers-reduced-motion:reduce) {
    .currency-home-link {
        transition: none
    }

    .fx-refresh:disabled svg {
        animation: none
    }
}