html.mx-iag-active,
html.mx-iag-active body {
    overflow: hidden !important;
}

#mx-iag-root,
#mx-iag-root * {
    box-sizing: border-box;
}

#mx-iag-root {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: flex;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 14px;
    overflow: hidden;
    background: rgba(4, 7, 13, .78);
    color: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    opacity: 1;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.mx-iag-panel {
    width: min(520px, 100%);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    background: #10141c;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
    scrollbar-width: thin;
    scrollbar-color: #3a4252 transparent;
}

.mx-iag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mx-iag-title {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: .02em;
    line-height: 1.3;
}

.mx-iag-updated {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid #39d98a;
    border-radius: 999px;
    color: #58e59d;
    background: rgba(57, 217, 138, .05);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.mx-iag-list {
    display: grid;
    gap: 9px;
    padding: 13px 14px;
}

.mx-iag-site {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 13px;
    background: #191e28;
}

.mx-iag-icon-box {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: linear-gradient(135deg, #303849, #202632);
}

.mx-iag-icon-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9c2d3;
    font-size: 18px;
    font-weight: 800;
}

.mx-iag-icon {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.mx-iag-site-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mx-iag-site-name {
    overflow: hidden;
    color: #f7f8fb;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mx-iag-site-line {
    overflow: hidden;
    color: #929bad;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mx-iag-open,
.mx-iag-buy {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 750;
    transition: transform .14s ease, filter .14s ease, opacity .14s ease;
}

.mx-iag-open {
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(82, 150, 255, .5);
    border-radius: 9px;
    color: #eaf2ff;
    background: #276bd2;
    font-size: 13px;
    line-height: 34px;
}

.mx-iag-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0d1118;
}

.mx-iag-pitch {
    margin: 0 0 13px;
    color: #d9deea;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.mx-iag-pitch strong {
    margin: 0 3px;
    color: #ffce55;
    font-size: 20px;
    font-weight: 850;
}

.mx-iag-buy {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 0 18px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #ff476f, #e82155);
    box-shadow: none;
    font-size: 17px;
    line-height: 49px;
}

.mx-iag-open:hover,
.mx-iag-buy:hover {
    filter: brightness(1.08);
}

.mx-iag-open:active,
.mx-iag-buy:active {
    transform: scale(.98);
}

.mx-iag-open:focus-visible,
.mx-iag-buy:focus-visible {
    outline: 3px solid rgba(116, 177, 255, .75);
    outline-offset: 2px;
}

.mx-iag-open:disabled,
.mx-iag-buy:disabled {
    cursor: wait;
    filter: grayscale(.2);
    opacity: .62;
}

@media (max-width: 480px) {
    #mx-iag-root {
        padding: 10px;
    }

    .mx-iag-panel {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }

    .mx-iag-header {
        gap: 8px;
        padding: 16px 14px 13px;
    }

    .mx-iag-title {
        font-size: 20px;
    }

    .mx-iag-updated {
        padding: 4px 8px;
        font-size: 11px;
    }

    .mx-iag-list {
        gap: 7px;
        padding: 10px;
    }

    .mx-iag-site {
        gap: 9px;
        min-height: 61px;
        padding: 7px 8px;
        border-radius: 11px;
    }

    .mx-iag-icon-box {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .mx-iag-site-name {
        font-size: 15px;
    }

    .mx-iag-site-line {
        font-size: 11px;
    }

    .mx-iag-open {
        min-width: 70px;
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
        line-height: 32px;
    }

    .mx-iag-footer {
        padding: 13px 14px 15px;
    }

    .mx-iag-pitch {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .mx-iag-pitch strong {
        font-size: 18px;
    }

    .mx-iag-buy {
        min-height: 46px;
        font-size: 16px;
        line-height: 46px;
    }
}

@media (max-width: 350px) {
    .mx-iag-title {
        font-size: 18px;
    }

    .mx-iag-updated {
        font-size: 10px;
    }

    .mx-iag-open {
        min-width: 64px;
        padding: 0 7px;
    }
}
