/* ==================== 钉钉式账户面板（左下角） ==================== */
.kj-acct { position: relative; }
.kj-acct-trigger {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; padding: 8px 10px; border-radius: 12px;
    background: rgba(255,255,255,.06); color: #fff;
    transition: background .15s ease;
}
.kj-acct-trigger:hover { background: rgba(255,255,255,.10); }
.kj-acct-trigger-main {
    display: flex; align-items: center; gap: 10px;
    flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: #fff; cursor: pointer;
    text-align: left; font: inherit;
}
.kj-acct-trigger-main:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.kj-acct-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.kj-acct-name {
    flex: 1; min-width: 0; text-align: left;
    font-size: 14px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kj-acct-trigger-actions { display: flex; align-items: center; gap: 4px; }
.kj-acct-action {
    width: 30px; height: 30px; border-radius: 50%; border: 0;
    background: transparent; color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 15px;
    transition: background .15s, color .15s;
}
.kj-acct-action:hover { background: rgba(255,255,255,.12); color: #fff; }
.kj-acct-action:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 弹出菜单：白色气泡，向上展开，避免被侧边栏裁切 */
.kj-acct-menu {
    position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
    min-width: 240px; background: #fff; color: #1e293b;
    border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.28);
    padding: 8px; z-index: 1100; border: 1px solid rgba(15,23,42,.06);
}
.kj-acct-menu-head { padding: 6px 8px 8px; }
.kj-acct-menu-name {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 600; color: #1e293b; cursor: pointer; border-radius: 8px;
    padding: 4px 6px;
}
.kj-acct-menu-name:hover { background: #f1f5f9; }
.kj-acct-menu-name .kj-acct-link { color: var(--primary); font-size: 12px; font-weight: 500; }
.kj-acct-section {
    font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .04em;
    padding: 8px 8px 4px; text-transform: none;
}
.kj-acct-tenant {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.kj-acct-tenant:hover { background: #f1f5f9; }
.kj-acct-tenant .kj-acct-tenant-name {
    flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kj-acct-tenant .kj-acct-tenant-il {
    font-size: 11px; color: #64748b; background: #f1f5f9; border-radius: 6px; padding: 1px 6px;
}
.kj-acct-tenant.active { background: rgba(37,99,235,.10); color: var(--primary); font-weight: 600; }
.kj-acct-tenant.active .kj-acct-tenant-il { background: rgba(37,99,235,.15); color: var(--primary); }
.kj-acct-tenant .kj-acct-check { color: var(--primary); font-size: 14px; }
.kj-acct-divider { height: 1px; background: #eef2f7; margin: 6px 4px; }
.kj-acct-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
    cursor: pointer; font-size: 14px; color: #334155;
}
.kj-acct-item:hover { background: #f1f5f9; }
.kj-acct-item i { font-size: 15px; width: 18px; text-align: center; color: #64748b; }

/* 账户菜单内补充的「身份与权益 + 积分」块（来自个人中心） */
.kj-acct-identity { padding: 8px; border-bottom: 1px solid #eef2f7; }
.kj-acct-identity-loading { font-size: 12px; color: #94a3b8; }
.kj-acct-identity-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #334155; }
.kj-acct-tier { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #1e293b; }
.kj-acct-tier .bi-patch-check-fill { color: var(--primary); }
.kj-acct-credits { color: #64748b; font-size: 12px; }
.kj-acct-upgrade { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--primary); text-decoration: none; }
.kj-acct-upgrade:hover { text-decoration: underline; }

/* ==================== 个人中心页面 ==================== */
.kj-profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 34px; flex-shrink: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-shadow: 0 6px 16px rgba(37,99,235,.18);
}
.kj-profile-name { font-size: 18px; font-weight: 700; color: #1e293b; margin-top: 12px; }
.kj-profile-username { font-size: 13px; }
.kj-profile-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 4px; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.kj-profile-row:last-child { border-bottom: 0; }
.kj-profile-row span { color: #64748b; }
.kj-profile-row b { color: #1e293b; font-weight: 600; }

