.cc-tool-shell {
    overflow: hidden;
    border: 1px solid var(--cc-border-strong);
    border-radius: var(--cc-radius-md);
    color: var(--cc-text);
    background: var(--cc-bg);
    box-shadow: var(--cc-shadow-panel);
}

.cc-tool-shell__tabs {
    display: flex;
    min-height: 42px;
    align-items: stretch;
    border-bottom: 1px solid var(--cc-border);
    background: var(--cc-bg-deep);
}

.cc-tool-shell__tab {
    position: relative;
    display: inline-flex;
    min-width: 190px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border-right: 1px solid var(--cc-border);
    color: var(--cc-text-muted);
    background: #202020;
    font-size: 11px;
    user-select: none;
}

.cc-tool-shell__tab.is-active {
    color: var(--cc-text-bright);
    background: var(--cc-bg);
}

.cc-tool-shell__tab.is-active::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--cc-blue);
    content: "";
}

.cc-tool-shell__tab-icon {
    color: var(--cc-blue);
    font-weight: 700;
}

.cc-tool-shell__tab-close {
    margin-left: auto;
    color: var(--cc-text-muted);
    font-size: 15px;
}

.cc-tool-shell__new-tab {
    display: grid;
    width: 42px;
    place-items: center;
    color: var(--cc-text-muted);
    font-size: 17px;
}

.cc-tool-shell__workspace {
    min-width: 0;
    background: var(--cc-bg);
}

.cc-tool-shell__statusbar {
    display: flex;
    min-height: 27px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 11px;
    color: #ffffff;
    background: var(--cc-blue-strong);
    font-size: 9px;
    user-select: none;
}

.cc-tool-shell__status-left,
.cc-tool-shell__status-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cc-tool-shell__status-right {
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .cc-tool-shell__tab {
        min-width: 0;
        max-width: calc(100% - 42px);
        flex: 1;
    }

    .cc-tool-shell__status-left {
        display: none;
    }

    .cc-tool-shell__statusbar {
        justify-content: flex-end;
    }

    .cc-tool-shell__status-right {
        gap: 10px;
    }
}