/* artifact-dock.css
 * Artifact Dock layout — keeps the results workspace inline in the page.
 *
 * Overrides relevant sections of korum.css.
 * Load AFTER korum.css.
 */

/* ── DOCK SHELL ─────────────────────────────────────────────────────────── */

.results-container {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Tab pane wrapper: normal document flow; the page owns vertical scrolling. */
.results-content {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
}

/* ── WORKSPACE PANE ─────────────────────────────────────────────────────── */

/*
 * The workspace is an inline result area. Avoid trapped inner scroll panes.
 */
.dock-pane.workspace-pane {
    padding: 0;
    overflow: visible;
    scrollbar-gutter: auto;
}

/* Workspace grid: inline shell with independently scrollable sections. */
.dock-workspace {
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
}

.dock-reader,
.dock-inspector {
    padding-bottom: 20px;
}

.dock-roster {
    padding-bottom: 12px;
}

/* ── INLINE EXPORT TOOLBAR SLOT ─────────────────────────────────────────── */

/*
 * The Deploy Intelligence bar lives in normal flow below the result body.
 */
#exportToolbarSlot {
    flex-shrink: 0;
    padding: 0 10px 10px;
}

#exportToolbarSlot .export-command-center {
    margin-bottom: 0;
    border-radius: 8px;
    border-top: 1px solid rgba(255, 176, 32, 0.18);
}

/* ── ANALYSIS / INTERROGATION PANES ─────────────────────────────────────── */

.dock-pane:not(.workspace-pane) {
    overflow: visible;
}

.dock-pane:not(.workspace-pane).active {
    min-height: 0;
}

.results-content::-webkit-scrollbar {
    width: 8px;
}

.results-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.results-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}
