
.auth-nav-btn {
    height: 40px;
    min-width: 96px;
    padding: 0 14px;
    border-radius: 12px;
    border: 2px solid var(--control-border);
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 250ms ease, background-color 250ms ease;
}

.auth-nav-btn:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.04);
}

.auth-nav-btn:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}


.account-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: grayscale(1) blur(4px);
    -webkit-backdrop-filter: grayscale(1) blur(4px);
}


.account-modal-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

.account-modal-backdrop.hidden {
    display: none !important;
}


.account-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 40px));
    max-height: min(84vh, 740px);
}

.account-modal-subtitle {
    margin-top: 6px;
    color: #000000;
    opacity: 0.72;
    font-size: 13px;
    line-height: 1.35;
}

.account-modal-message {
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid #000000;
    color: #000000;
    background: #ffffff;
}

.account-modal-message--error {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
}

.account-modal-message--success {
    color: #000000;
    background: #ffffff;
    border-color: #000000;
}

.account-modal-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-text-link {
    border: none;
    background: transparent;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.account-text-link:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}


#accountForgotSubmitBtn {
    position: relative;
}

#accountForgotSubmitBtn.account-submit-btn--loading {
    color: transparent;
    pointer-events: none;
}

#accountForgotSubmitBtn.account-submit-btn--loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: account-btn-spin 0.75s linear infinite;
}

@keyframes account-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.account-user-info {
    border: 1px solid var(--control-border);
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
}

.account-user-label {
    font-size: 12px;
    color: #000000;
    opacity: 0.7;
    margin-bottom: 4px;
}

.account-user-email {
    font-size: 14px;
    color: #000000;
    font-weight: 700;
    word-break: break-word;
}

.account-section-title {
    font-size: 13px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.account-graph-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-graph-item {
    border: 1px solid var(--control-border);
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.account-graph-preview {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.account-graph-preview-canvas {
    height: 100%;
    width: auto;
    aspect-ratio: 4 / 3;
    min-width: 88px;
    max-width: 132px;
    border-radius: 10px;
    border: 1px solid var(--control-border);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-graph-preview-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
}

.account-graph-preview-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.account-graph-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-graph-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-graph-title {
    margin: 0;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

.account-graph-meta {
    margin: 0;
    color: #000000;
    opacity: 0.68;
    font-size: 12px;
}

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

.account-graph-action {
    height: 34px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12px;
    border-width: 1px;
}

.account-graph-action--danger {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.account-graph-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    border-radius: 9999px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    background: #000000;
    color: #ffffff;
}


#accountLogoutBtn {
    border-color: #E36583;
    color: #E36583;
    transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

#accountLogoutBtn:hover {
    background: rgba(227, 101, 131, 0.08);
    border-color: #e04d6f;
    color: #e04d6f;
}

body.account-modal-open {
    overflow: hidden;
}


.account-delete-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.account-delete-confirm-card {
    width: min(460px, calc(100vw - 40px));
    padding: 16px;
}

.account-delete-confirm-title {
    margin: 0;
    color: #000000;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.account-delete-confirm-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.account-delete-confirm-actions .secondary-btn,
.account-delete-confirm-actions .primary-btn {
    min-width: 96px;
}

.account-delete-confirm-delete-btn {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

@media (max-width: 767px) {
    
    .account-modal-backdrop {
        padding: 16px;
        align-items: center;
    }

    .account-modal-card {
        width: min(560px, calc(100vw - 32px));
    }

    .account-graph-preview-canvas {
        min-width: 76px;
        max-width: 112px;
    }
}
