/* Team Mailboxes Plugin Styles */
#team-mailboxes-panel {
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
    margin-top: 6px;
    padding: 4px 0 8px;
}
.team-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted, #999);
}
.team-header-icon { display: flex; opacity: 0.5; }
.team-accounts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 380px;
    overflow-y: auto;
    padding: 0 6px;
}
.team-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    border-radius: 8px;
}
.team-account:hover {
    background: var(--hover-bg, rgba(0,0,0,0.04));
}
.team-account.team-current {
    background: var(--current-bg, rgba(229,62,48,0.07));
    cursor: default;
}
.team-account.team-current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #E53E30, #FF6B35);
}
.team-icon-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--icon-bg, rgba(0,0,0,0.05));
    color: var(--icon-color, #777);
}
.team-icon-wrap svg {
    width: 16px;
    height: 16px;
}
.team-current .team-icon-wrap {
    background: linear-gradient(135deg, #E53E30, #FF6B35);
    color: white;
}
.team-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.team-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}
.team-email-addr {
    font-size: 11px;
    color: var(--text-muted, #999);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, #E53E30, #FF6B35);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(229,62,48,0.25);
}
.team-badge-zero {
    background: var(--icon-bg, rgba(0,0,0,0.06));
    color: var(--text-muted, #aaa);
    box-shadow: none;
    font-weight: 500;
}
.has-unread .team-label {
    font-weight: 700;
}
.team-check {
    flex-shrink: 0;
    color: #E53E30;
    display: flex;
    margin-left: 2px;
}
.team-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    font-size: 12px;
    color: var(--text-muted, #999);
}
.team-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(229,62,48,0.15);
    border-top-color: #E53E30;
    border-radius: 50%;
    animation: team-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes team-spin { to { transform: rotate(360deg); } }
.team-switching {
    opacity: 0.7;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
}
.team-switching-text {
    font-size: 12px;
    color: var(--text-muted, #999);
}
.team-accounts::-webkit-scrollbar { width: 4px; }
.team-accounts::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
}

/* Dark mode variables */
.dark-mode #team-mailboxes-panel {
    --border-color: rgba(255,255,255,0.08);
    --hover-bg: rgba(255,255,255,0.05);
    --current-bg: rgba(229,62,48,0.12);
    --icon-bg: rgba(255,255,255,0.08);
    --icon-color: #bbb;
    --text-muted: #888;
}
.dark-mode .team-badge-zero {
    background: rgba(255,255,255,0.08);
    color: #777;
}