/* Account - content styles only. Layout comes from dashboard.css (.dashboard.split-60). */

.account .dashboard-left {
    background: #fff;
}

.account .dashboard-left .content {
    overflow-y: auto;
}

.account .dashboard-left .header {
    display: flex;
    align-items: center;
    padding: 14px var(--tight-pad-x);
    min-height: 77.5px;
    box-sizing: border-box;
    flex-shrink: 0;
    gap: 10px;
    flex-wrap: wrap;

    .thumb {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        overflow: hidden;
        text-align: initial;

        svg, img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    h2 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
        cursor: pointer;
    }

    .action {
        flex-shrink: 0;
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        background-color: transparent;
        color: #999;
        border: 1px solid #ddd;

        &:hover {
            color: #333;
            border-color: #999;
        }

        &.danger {
            color: #dc3545;
            border-color: #dc3545;

            &:hover {
                background-color: #dc3545;
                color: #fff;
            }
        }
    }

    .settings-icon {
        width: 24px;
        height: 24px;
        cursor: pointer;
        color: #1C274C;
        margin-left: 7px;

        &:hover {
            color: #333;
        }
    }

    .action.danger {
        margin-left: auto;
    }

    &.gradient {
        background: linear-gradient(90deg, #fefefe 0%, #f7f7f7 50%, #fefefe 100%);
        border-bottom: 1px solid #f0f0f0;
    }
}

.account .dashboard-left .row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--tight-pad-x);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: -1px;

    &:hover {
        background-color: #f8f8f8;
    }

    .thumb {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        overflow: hidden;
        text-align: initial;

        svg, img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        &.icon {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f8f8;
            color: #999;

            svg {
                width: 20px;
                height: 20px;
                color: #b6b6b6;
            }
        }
    }

    .info {
        flex: 1;
        min-width: 0;
        min-height: 40px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .name {
        font-size: 1rem;
        font-weight: 600;
        color: #333;

        &.light { font-weight: 400; }
    }

    .arrow {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        color: #ccc;
    }

    &:hover .arrow { color: #999; }

    &.disabled {
        opacity: 0.45;
        cursor: default;

        &:hover { background-color: transparent; }
    }
}

.account .dashboard-left .other-account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px var(--tight-pad-x) 5px;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    min-height: 40px;

    .thumb {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        overflow: hidden;
        text-align: initial;

        svg, img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .name {
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
    }

    .action {
        flex-shrink: 0;
        padding: 6px 14px;
        border-radius: 6px;
        font-size: 0.8125rem;
        font-weight: 500;
        cursor: pointer;
        background-color: transparent;
        color: #505050;
        border: 1px solid #9b9b9b;
        margin-left: auto;

        &:hover {
            color: #333;
            border-color: #999;
        }
    }
}

.account .dashboard-left .section-gap { height: 60px; }

.account .dashboard-left .buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px var(--tight-pad-x);
}

.account .dashboard-left .button {
    display: block;
    padding: 12px;
    text-align: center;
    background-color: #404499;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;

    &:hover {
        background-color: #0056b3;
    }

    &.secondary {
        background-color: #f0f0f0;
        color: #333;

        &:hover {
            background-color: #e5e5e5;
        }
    }
}

/* Right panel - account art fills the whole pane, no scrolling */
.account .dashboard-right {
    overflow: hidden;
    background: #fafafa;
    border-left: 1px solid #f0f0f0;
}

.account .dashboard-right > [widget="account_right"] {
    position: absolute;
    inset: 0;
}
