.chart-container { position: relative; height: 320px; width: 100%; }
[v-cloak] { display: none; }

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* SLS 日志表：可拖拽列宽（拖动表头右侧分隔条调整宽度，双击重置） */
.sls-log-table { table-layout: fixed; }
.sls-log-table th { position: sticky; top: 0; z-index: 3; background: #f8fafc; }
.sls-log-table .col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    z-index: 5;
}
.sls-log-table .col-resizer::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 4px;
    width: 2px;
    height: 60%;
    background-color: transparent;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}
.sls-log-table th:hover .col-resizer::after,
.sls-log-table .col-resizer:hover::after {
    background-color: #93c5fd;
}
.sls-log-table .col-resizer.active::after {
    background-color: #3b82f6;
    height: 100%;
    top: 0;
}
.sls-log-table.resizing,
.sls-log-table.resizing th,
.sls-log-table.resizing td { user-select: none; -webkit-user-select: none; }

/* 侧边栏过渡 */
.sidebar-transition { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.unfoldx-chart-tooltip { scrollbar-width: thin; scrollbar-color: #94a3b8 #f1f5f9; }
.unfoldx-chart-tooltip::-webkit-scrollbar { width: 8px; }
.unfoldx-chart-tooltip::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.unfoldx-chart-tooltip::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }

/* 任务产物全宽代码预览：行号 + 语法高亮 */
.artifact-code-viewer {
    display: grid;
    grid-template-columns: auto 1fr;
    max-height: min(70vh, 720px);
    overflow: auto;
    background: #0d1117;
    border-radius: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
}
.artifact-code-gutter {
    position: sticky;
    left: 0;
    z-index: 1;
    padding: 12px 0;
    background: #161b22;
    color: #6e7681;
    text-align: right;
    user-select: none;
    border-right: 1px solid #30363d;
    min-width: 3.25rem;
}
.artifact-code-gutter span {
    display: block;
    padding: 0 10px 0 12px;
}
.artifact-code-body {
    margin: 0;
    padding: 12px 14px;
    overflow-x: auto;
    background: transparent !important;
}
.artifact-code-body code {
    background: transparent !important;
    padding: 0 !important;
    white-space: pre;
    word-break: normal;
    display: block;
}
.artifact-code-body .hljs {
    background: transparent !important;
    padding: 0 !important;
}
.artifact-code-body .code-line {
    min-height: 1.55em;
    white-space: pre;
}
.artifact-code-gutter span {
    min-height: 1.55em;
    box-sizing: border-box;
}
.artifact-media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    max-height: min(70vh, 720px);
    overflow: auto;
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 12px;
}
.artifact-media-frame img,
.artifact-media-frame video {
    max-width: 100%;
    max-height: min(66vh, 680px);
    border-radius: 0.5rem;
}
.artifact-media-frame audio {
    width: min(100%, 640px);
}
