.account-main-section {
    width: 100%;
    margin-top: var(--account-header-offset, 0px);
    min-height: calc(100dvh - var(--account-header-offset, 0px));
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}



.account-sidebar {
    width: 80px;
    min-width: 80px;
    min-height: calc(100dvh - var(--account-header-offset, 0px));
    background: #010713;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 24px 4px;
    align-self: flex-start;
    flex-shrink: 0;
    position: sticky;
    top: var(--account-header-offset, 0px);
}

.account-main-container {
    flex: 1;
    min-width: 0;
    min-height: calc(100dvh - var(--account-header-offset, 0px));
}

.account-first-screen {
    width: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 54%, rgba(39, 94, 174, 0.88) 0%, rgba(17, 39, 99, 0.72) 26%, rgba(8, 15, 38, 0) 55%),
        radial-gradient(circle at 81% 76%, rgba(101, 39, 177, 0.84) 0%, rgba(58, 23, 110, 0.48) 28%, rgba(8, 15, 38, 0) 56%),
        linear-gradient(135deg, #071238 0%, #050b22 52%, #040919 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.account-first-screen__glow {
    width: 600px;
    height: 600px;
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.9;
    pointer-events: none;
}

.account-first-screen__glow--left {
    left: -120px;
    top: 120px;
    background: rgba(35, 94, 192, 0.34);
}

.account-first-screen__glow--right {
    right: -120px;
    bottom: -120px;
    background: rgba(91, 70, 185, 0.36);
}

.account-first-screen__card {
    width: 100%;
    width: 700px;
    min-height: 630px;
    padding: 80px 120px;
    border-radius: 32px;
    border: 1px solid rgba(6, 45, 121, 1);
    background: rgba(1, 7, 19, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(74, 114, 196, 0.12),
        0 28px 60px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.account-first-screen__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.account-first-screen__intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.account-first-screen__title {
    color: var(--white);
    text-align: center;
    font-size: 24px;
    font-weight: var(--semiBold);
    line-height: 24px;
}

.account-first-screen__subtitle {
    color: var(--neutral-06);
    text-align: center;
    font-size: 14px;
    font-weight: var(--medium);
    line-height: 22px;
}

.account-first-screen__benefits {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin-top: 8px;
}

.account-first-screen__benefit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--neutral-02);
    text-align: center;
    font-size: 14px;
    font-weight: var(--medium);
    line-height: 22px;
}

.account-first-screen__benefit-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: var(--filter-blue);
}

.account-first-screen__cta-block {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
}

.account-first-screen__cta-title {
    color: var(--light-blue-01);
    text-align: center;
    font-size: 16px;
    font-weight: var(--semiBold);
    line-height: 22px;
}

.account-first-screen__cta-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-first-screen__cta-button {
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--neutral-05);
    color: var(--neutral-03);
    font-size: 14px;
    font-weight: var(--medium);
    line-height: 14px;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.account-first-screen__cta-button:is(:hover, :focus-visible) {
    border-color: var(--blue-04);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.account-page-link {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}


.account-page-link:is(:hover, :focus-visible, :focus-within) .account-page-link-icon-container {
    background: #031230;
}

.account-page-link.active .account-page-link-icon-container {
    background: #031230;
}

.account-page-link.active .account-page-link-title {
    color: var(--white);
    font-weight: var(--semiBold);
}

.account-page-link-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
}

.account-page-link-icon {
    width: 24px;
    height: 24px;
}

.account-page-link-title {
    color: var(--light-blue-01);
    font-size: 14px;
    font-style: normal;
    font-weight: var(--medium);
    line-height: 14px;
}
.navbar-account-logout {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    opacity: 0.78;
}

.navbar-account-logout:hover,
.navbar-account-logout:focus-visible {
    opacity: 1;
}

.account-api-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 8px;
    color: #ffd0d0;
    background: rgba(142, 28, 28, 0.2);
}

.account-api-message.is-success {
    border-color: rgba(73, 209, 142, 0.5);
    color: #c9ffe3;
    background: rgba(27, 111, 71, 0.2);
}

.account-tool-runner[hidden] {
    display: none;
}

.account-tool-runner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.account-tool-runner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 18, 0.82);
    backdrop-filter: blur(10px);
}

.account-tool-runner__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(780px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(125, 166, 255, 0.24);
    border-radius: 18px;
    background: #091222;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    color: #fff;
}

.account-tool-runner__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.account-tool-runner__eyebrow {
    margin: 0 0 8px;
    color: #7da6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.account-tool-runner__title {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
}

.account-tool-runner__description {
    margin: 10px 0 26px;
    color: rgba(255, 255, 255, 0.68);
}

.account-tool-runner__form,
.account-tool-runner__field {
    display: grid;
    gap: 10px;
}

.account-tool-runner__field span {
    font-size: 14px;
    font-weight: 600;
}

.account-tool-runner__field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    outline: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
}

.account-tool-runner__field input:focus {
    border-color: #7da6ff;
}

.account-tool-runner__field input[readonly] {
    opacity: 0.72;
}

.account-tool-runner__message {
    margin: 4px 0;
    padding: 11px 13px;
    border-radius: 8px;
    background: rgba(125, 166, 255, 0.12);
    color: #cddbff;
    font-size: 14px;
}

.account-tool-runner__message[data-tone="error"] {
    background: rgba(255, 90, 90, 0.14);
    color: #ffd0d0;
}

.account-tool-runner__message[data-tone="success"] {
    background: rgba(73, 209, 142, 0.14);
    color: #c9ffe3;
}

.account-tool-runner__message[hidden],
.account-tool-runner__results[hidden] {
    display: none;
}

.account-tool-runner__submit {
    justify-self: start;
    margin-top: 8px;
}

.account-tool-runner__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.account-tool-runner__results {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.account-tool-result {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.account-tool-result__heading,
.account-tool-result__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.account-tool-result__heading h3 {
    margin: 0;
    font-size: 18px;
}

.account-tool-result__score {
    margin: 12px 0;
    color: #9fbcff;
}

.account-tool-result__row {
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.account-tool-result__row span {
    color: rgba(255, 255, 255, 0.62);
}

.account-tool-result__row strong {
    max-width: 60%;
    overflow-wrap: anywhere;
    text-align: right;
}

.account-tool-runner__history-link {
    color: #9fbcff;
    font-weight: 600;
}

.account-tool-result__raw {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-tool-result__raw summary {
    cursor: pointer;
    color: #9fbcff;
    font-weight: 600;
}

.account-tool-result__raw pre {
    max-height: 280px;
    overflow: auto;
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #dfe8ff;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

[data-history-run-id] {
    cursor: pointer;
}

@media (max-width: 600px) {
    .account-tool-runner {
        padding: 12px;
    }

    .account-tool-runner__dialog {
        max-height: calc(100vh - 24px);
        padding: 28px 20px;
    }

    .account-tool-result__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .account-tool-result__row strong {
        max-width: 100%;
        text-align: left;
    }
}
