.runner-shell {
    display: grid;
    grid-template-columns: var(--vsc-sidebar-width) auto 1fr;
    grid-template-rows: var(--vsc-toolbar-height) 1fr auto auto;
    grid-template-areas:
        "toolbar    toolbar    toolbar"
        "sidebar    sidehandle main"
        "resize     resize     resize"
        "bottom     bottom     bottom";
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.runner-toolbar {
    grid-area: toolbar;
    background: var(--vsc-bg-secondary);
    border-bottom: 1px solid var(--vsc-border);
    display: flex;
    align-items: center;
}

.runner-sidebar {
    grid-area: sidebar;
    background: var(--vsc-bg-secondary);
    border-right: 1px solid var(--vsc-border);
    overflow-y: auto;
}

.sidebar-resize-handle {
    grid-area: sidehandle;
    width: 5px;
    cursor: col-resize;
    background: var(--vsc-border);
    transition: background 0.15s;
    touch-action: none;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle:active {
    background: var(--vsc-accent);
}

.runner-main {
    grid-area: main;
    background: var(--vsc-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-tabs {
    display: flex;
    background: var(--vsc-bg-secondary);
    border-bottom: 1px solid var(--vsc-border);
    flex-shrink: 0;
}

.main-tab {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--vsc-fg-dim);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.main-tab:hover {
    color: var(--vsc-fg);
}

.tab-active {
    color: var(--vsc-fg-bright);
    border-bottom-color: var(--vsc-accent);
}

.main-content {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.runner-resize-handle {
    grid-area: resize;
    height: 5px;
    cursor: row-resize;
    background: var(--vsc-border);
    transition: background 0.15s;
    touch-action: none;
}

.runner-resize-handle:hover,
.runner-resize-handle:active {
    background: var(--vsc-accent);
}

.runner-bottom {
    grid-area: bottom;
    background: var(--vsc-bg-secondary);
    min-height: 36px;
    max-height: 30vh;
    overflow: hidden;
}
