.tabBar {
    display: flex;
    align-items: center;
    padding: 10px 14px 2px;
    gap: 4px;
    flex-shrink: 0;
}

.tabList {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
}

.tabList::-webkit-scrollbar {
    display: none;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    max-width: 160px;
    flex-shrink: 0;
    transition: color var(--duration-instant), background var(--duration-instant), border-color var(--duration-instant), box-shadow var(--duration-instant);
}

.tab:hover {
    color: var(--text);
    background: var(--overlay-subtle);
}

.tabActive {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--overlay-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tabTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.tabClose {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: -4px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.35;
    flex-shrink: 0;
    border-radius: calc(var(--radius-md) - 2px);
    transition: opacity var(--duration-instant), background var(--duration-instant), color var(--duration-instant);
}

.tabClose:hover {
    opacity: 1;
    color: #C0392B;
    background: rgba(192, 57, 43, 0.1);
}

.tabActive .tabClose {
    opacity: 0.5;
}

.closePanel {
    margin-left: auto;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity var(--duration-instant), background var(--duration-instant);
}

.closePanel:hover {
    opacity: 1;
    background: var(--overlay-light);
}
