.account-results-page {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(20, 72, 145, 0.12), transparent 34%),
        #020b1b;
    color: var(--neutral-02);
}

.account-results-page__glow {
    width: 520px;
    height: 520px;
    position: absolute;
    top: 420px;
    right: -260px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.12);
    filter: blur(110px);
    pointer-events: none;
}

.account-results-page__content {
    width: min(100%, 1360px);
    min-height: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 44px 32px 80px;
}

.account-results-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #7688a4;
    font-size: 13px;
    line-height: 18px;
}

.account-results-breadcrumbs a {
    color: #7688a4;
    transition: color 0.2s ease;
}

.account-results-breadcrumbs a:is(:hover, :focus-visible) {
    color: #b8c9e5;
}

.account-results-breadcrumbs strong {
    color: #c6d3e6;
    font-weight: var(--semiBold);
}

.account-results-state {
    margin: 48px 0;
    padding: 20px 24px;
    border: 1px solid rgba(133, 169, 224, 0.16);
    border-radius: 10px;
    background: rgba(12, 27, 51, 0.72);
    color: #b8c9e5;
}

.account-results-state.is-error {
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffb4ab;
}

.account-results-body[hidden],
.account-results-state[hidden] {
    display: none;
}

.account-results-hero {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.account-results-hero__identity {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.account-results-hero__icon-wrap {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(128, 166, 224, 0.1);
}

.account-results-hero__icon-wrap img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.account-results-hero h1 {
    margin: 0 0 8px;
    color: #a9bcda;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: var(--semiBold);
    line-height: 1.05;
}

.account-results-hero code {
    display: inline-flex;
    max-width: min(720px, 70vw);
    padding: 11px 18px;
    overflow-wrap: anywhere;
    border-radius: 7px;
    background: #07528e;
    color: #bce0ff;
    font-family: inherit;
    font-size: 15px;
    font-weight: var(--medium);
    line-height: 20px;
}

.account-results-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.account-results-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid rgba(119, 153, 204, 0.2);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: var(--semiBold);
    line-height: 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.account-results-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.account-results-button--danger {
    background: rgba(9, 27, 51, 0.72);
    color: #9eafc7;
}

.account-results-button--danger:is(:hover, :focus-visible) {
    border-color: rgba(255, 130, 130, 0.42);
    color: #ffb4ab;
}

.account-results-button--primary {
    border-color: #c0d4eb;
    background: #cbdff4;
    color: #142238;
}

.account-results-button--primary:is(:hover, :focus-visible) {
    background: #e0edfa;
}

.account-results-score {
    min-height: 60px;
    margin-top: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.account-results-score__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(46, 184, 117, 0.5);
    color: #e5fff2;
    font-size: 12px;
    font-weight: var(--semiBold);
    line-height: 14px;
}

.account-results-score__badge.is-review {
    background: rgba(217, 148, 34, 0.42);
    color: #ffe8ae;
}

.account-results-score__badge.is-risk,
.account-results-score__badge.is-failed {
    background: rgba(147, 0, 10, 0.38);
    color: #ffb4ab;
}

.account-results-score__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.account-results-score__copy small {
    color: #7f91aa;
    font-size: 12px;
    line-height: 14px;
}

.account-results-score__copy strong {
    color: #d5e1f0;
    font-size: 18px;
    line-height: 22px;
}

.account-results-sections {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.account-results-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-results-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.account-results-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-results-section h2,
.account-results-overall h2,
.account-results-history h2 {
    margin: 0;
    color: #a9bcda;
    font-size: 18px;
    font-weight: var(--semiBold);
    line-height: 24px;
}

.account-results-copy,
.account-results-toggle {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #a9bcda;
    cursor: pointer;
}

.account-results-copy__icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.account-results-copy__icon::before,
.account-results-copy__icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.account-results-copy__icon::before {
    left: 1px;
    bottom: 1px;
}

.account-results-copy__icon::after {
    top: 1px;
    right: 1px;
    background: #020b1b;
}

.account-results-toggle {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.account-results-section.is-collapsed .account-results-toggle {
    transform: rotate(180deg);
}

.account-results-section.is-collapsed .account-results-table,
.account-results-section.is-collapsed .account-results-technical {
    display: none;
}

.account-results-table {
    min-width: 680px;
    display: flex;
    flex-direction: column;
}

.account-results-table-shell {
    overflow-x: auto;
}

.account-results-table__head,
.account-results-table__row {
    display: grid;
    grid-template-columns: minmax(170px, 1.1fr) minmax(260px, 1.5fr) minmax(150px, 1fr) 32px;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
}

.account-results-table__head {
    border-radius: 9px;
    background: rgba(111, 151, 211, 0.2);
    color: #9aacc5;
    font-size: 13px;
    font-weight: var(--medium);
}

.account-results-table__row {
    min-height: 61px;
    border-bottom: 1px solid rgba(111, 151, 211, 0.16);
    color: #b7c5d8;
    font-size: 13px;
    line-height: 20px;
}

.account-results-table__row span,
.account-results-table__row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-results-table__row strong {
    color: #d7e1ed;
    font-weight: var(--medium);
}

.account-results-table__signal {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid #8fa2bc;
    border-radius: 50%;
    color: #8fa2bc;
    font-size: 11px;
    font-weight: 700;
}

.account-results-table__signal.is-warning {
    border-color: #ddb400;
    color: #ddb400;
}

.account-results-technical {
    margin-top: 8px;
    border: 1px solid rgba(111, 151, 211, 0.14);
    border-radius: 8px;
    background: rgba(7, 19, 39, 0.6);
}

.account-results-technical summary {
    padding: 14px 18px;
    color: #9fb9df;
    cursor: pointer;
    font-size: 13px;
    font-weight: var(--semiBold);
}

.account-results-technical pre {
    max-height: 360px;
    margin: 0;
    padding: 0 18px 18px;
    overflow: auto;
    color: #b6c7dd;
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.account-results-overall {
    margin-top: 40px;
}

.account-results-overall__row {
    min-height: 78px;
    margin-top: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(111, 151, 211, 0.16);
    color: #b7c5d8;
    font-size: 13px;
}

.account-results-overall__score {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d7e1ed;
}

.account-results-overall__download {
    width: fit-content;
    display: flex;
    margin: 38px auto 0;
}

.account-results-history {
    margin-top: 66px;
    padding-top: 44px;
    border-top: 1px solid rgba(111, 151, 211, 0.16);
}

.account-results-history__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-results-history__heading a {
    color: #91a9cf;
    font-size: 13px;
    font-weight: var(--medium);
}

.account-results-history__table {
    margin-top: 22px;
    overflow-x: auto;
    border: 1px solid rgba(111, 151, 211, 0.12);
    border-radius: 14px;
    background: rgba(9, 22, 43, 0.72);
}

.account-results-history__head,
.account-results-history__row {
    min-width: 720px;
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 1fr) minmax(150px, 0.8fr) 72px;
    align-items: center;
    gap: 24px;
    padding: 16px 28px;
}

.account-results-history__head {
    background: rgba(255, 255, 255, 0.02);
    color: #8090a8;
    font-size: 11px;
    font-weight: var(--semiBold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.account-results-history__row {
    min-height: 74px;
    border-top: 1px solid rgba(111, 151, 211, 0.1);
    color: #aebcd0;
    font-size: 13px;
}

.account-results-history__row code {
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(78, 114, 170, 0.12);
    color: #4c93ca;
    font-family: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-results-history__executed {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-results-history__executed small {
    color: #61738d;
}

.account-results-history__action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    justify-self: start;
    border: 0;
    background: transparent;
    color: #8ca2c2;
    font-size: 26px;
    cursor: pointer;
}

.account-results-history__empty {
    padding: 28px;
    color: #7f91aa;
}

.account-results-history__meta {
    margin-top: 22px;
    color: #7f91aa;
    font-size: 12px;
}

@media (max-width: 900px) {
    .account-results-page__content {
        padding: 36px 24px 64px;
    }

    .account-results-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-results-score {
        margin-top: 32px;
    }
}

@media (max-width: 640px) {
    .account-results-page__content {
        padding: 28px 16px 52px;
    }

    .account-results-hero__identity {
        align-items: flex-start;
        gap: 14px;
    }

    .account-results-hero__icon-wrap {
        width: 48px;
        height: 48px;
    }

    .account-results-hero__icon-wrap img {
        width: 26px;
        height: 26px;
    }

    .account-results-hero__actions,
    .account-results-button {
        width: 100%;
    }

    .account-results-hero__actions {
        flex-direction: column;
    }

    .account-results-score {
        justify-content: flex-start;
    }

    .account-results-table {
        min-width: 0;
    }

    .account-results-table__head {
        display: none;
    }

    .account-results-table__row {
        position: relative;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 18px 42px 18px 16px;
    }

    .account-results-table__row > span:first-child {
        color: #8295b0;
        font-size: 12px;
    }

    .account-results-table__row > span:nth-child(3)::before {
        content: "Source: ";
        color: #6d819e;
    }

    .account-results-table__signal {
        position: absolute;
        top: 18px;
        right: 14px;
    }

    .account-results-overall__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-results-overall__download {
        width: 100%;
    }

    .account-results-history__table {
        overflow: hidden;
    }

    .account-results-history__head {
        display: none;
    }

    .account-results-history__row {
        min-width: 0;
        position: relative;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 20px 52px 20px 20px;
    }

    .account-results-history__action {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }
}

@media print {
    .account-topbar,
    .navbar,
    .account-sidebar,
    footer,
    .account-results-breadcrumbs,
    .account-results-hero__actions,
    .account-results-overall__download,
    .account-results-history,
    .account-results-toggle,
    .account-results-copy {
        display: none !important;
    }

    .account-results-page,
    .account-results-page__content,
    .account-main-section,
    .account-main-container {
        min-height: 0;
        background: #fff !important;
        color: #111 !important;
    }

    .account-results-page__content {
        width: 100%;
        padding: 20px;
    }

    .account-results-hero h1,
    .account-results-section h2,
    .account-results-overall h2,
    .account-results-table__row,
    .account-results-table__row strong,
    .account-results-overall__row,
    .account-results-score__copy strong {
        color: #111 !important;
    }

    .account-results-table__head {
        background: #e8eef6 !important;
        color: #333 !important;
    }
}
