/* Auto-split from _09_workflow_grid.css — DO NOT EDIT MANUALLY */
/* See _09_workflow_grid.css.bak for original */

.wf-grid-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wf-grid-layout {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.125rem;
    height: 100%;
    background: var(--border-primary);
}

.wf-grid-slot {
    position: relative;
    background: var(--bg-bunker);
    min-height: 10vh;
    overflow: hidden;
    transition: background var(--duration-pop) var(--ease-out), border-color var(--duration-pop) var(--ease-out), box-shadow var(--duration-pop) var(--ease-out);
}

.wf-grid-slot .wf-slot-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--tno-font-mono);
    font-size: var(--font-lg);
    color: var(--border-primary);
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.3;
}

.wf-grid-slot.wf-slot-droppable {
    background: rgba(0, 212, 255, 0.03);
    border: 2px dashed rgba(0, 212, 255, 0.3);
}

.wf-grid-slot.wf-slot-hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.wf-resize-handle {
    z-index: 30;
    position: relative;
    pointer-events: auto;
    transition: background 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    background: transparent;
}

.wf-resize-handle.wf-resize-v {
    width: 0.375rem;
    margin-left: -0.1875rem;
    cursor: col-resize;
    justify-self: start;
    max-height: 100%;
    overflow: hidden;
}

.wf-resize-handle.wf-resize-v::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.125rem;
    height: 4.5vh;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.15s, height 0.15s, box-shadow 0.15s;
}

.wf-resize-handle.wf-resize-h {
    height: 0.375rem;
    margin-top: -0.1875rem;
    cursor: row-resize;
    align-self: start;
    max-width: 100%;
    overflow: hidden;
}

.wf-resize-handle.wf-resize-h::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2.25rem;
    height: 0.125rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.15s, width 0.15s, box-shadow 0.15s;
}

.wf-resize-handle:active {
    background: rgba(74, 144, 217, 0.08);
}

.wf-resize-handle:active::after {
    background: var(--accent-color, var(--blue-info-dim));
    box-shadow: 0 0 6px var(--accent-color, var(--blue-info-dim));
}

.wf-resize-handle.wf-resize-v:active::after {
    height: 6.5vh;
}

.wf-resize-handle.wf-resize-h:active::after {
    width: 5.2vw;
}

.wf-grid-panel.wf-panel-highlight {
    background: var(--hl-bg, rgba(0, 212, 255, 0.15)) !important;
    box-shadow: 0 0 28px var(--hl-glow, rgba(0, 212, 255, 0.4)),
               inset 0 0 40px var(--hl-bg, rgba(0, 212, 255, 0.1));
    border-left-width: 0.3125rem;
    border-left-color: var(--hl-border, var(--accent-color));
    border-top: 2px solid var(--hl-border, var(--accent-color));
    border-bottom: 2px solid var(--hl-border, var(--accent-color));
    z-index: 2;
}

.wf-grid-panel.wf-panel-highlight .wf-panel-header {
    background: linear-gradient(90deg, var(--hl-bg, rgba(0,212,255,0.12)) 0%, transparent 80%) !important;
}

.wf-grid-panel.wf-panel-locked {
    background:/* 黑色斜纹: 0.625rem透明 + 6px半透明黑 = 清晰可见条纹 */
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 10px,
            rgba(0, 0, 0, 0.55) 10px,
            rgba(0, 0, 0, 0.55) 16px
        ),
        /* 彩色底: 使用模块自身颜色作为实际可见背景 */
        var(--panel-tint, rgba(0, 212, 255, 0.32)) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25),
               inset 0 0 20px rgba(0, 0, 0, 0.2);
    border-left-width: 0.3125rem;
    border-left-color: var(--accent-color);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    z-index: 3;
}

.wf-grid-panel.wf-panel-locked .wf-panel-header {
    background: linear-gradient(90deg, rgba(0, 20, 40, 0.85) 0%, rgba(0, 212, 255, 0.10) 100%) !important;
    border-bottom: 2px solid var(--accent-color);
}

.wf-grid-panel.wf-panel-highlight.wf-panel-locked {
    background:/* 更粗黑色斜纹: 强度提升、宽度加大 */
        repeating-linear-gradient(
            45deg,
            transparent 0rem,
            transparent 8px,
            rgba(0, 0, 0, 0.65) 8px,
            rgba(0, 0, 0, 0.65) 16px
        ),
        /* 高亮底色: 模块选择高亮色(比锁定而言更饱和、更亮) */
        var(--hl-bg, var(--panel-tint, rgba(0, 212, 255, 0.40))) !important;
    box-shadow: 0 0 30px var(--hl-glow, rgba(0, 212, 255, 0.5)),
               inset 0 0 20px rgba(0, 0, 0, 0.15);
    border-left: 6px solid var(--hl-border, var(--accent-color));
    border-top: 3px solid var(--hl-border, var(--accent-color));
    border-bottom: 3px solid var(--hl-border, var(--accent-color));
    border-right: 3px solid var(--hl-border, var(--accent-color));
    z-index: 4;
}

.wf-grid-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-panel);
    border-left: 3px solid var(--panel-accent, var(--accent-color));
    transition: box-shadow var(--duration-pop) var(--ease-out);
    container-type: inline-size; /* 启用容器查询，驱动内部自适应 */
    container-name: grid-panel;
}

.wf-grid-panel:hover {
    box-shadow: 0 0 12px var(--panel-glow, rgba(0, 212, 255, 0.15));
}

.wf-grid-panel.wf-panel-maximized {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    grid-area: 1/1/3/4 !important;
}

.wf-grid-panel.wf-panel-collapsed {
    height: auto !important;
    min-height: unset;
    max-height: fit-content;
}

.wf-grid-panel.wf-panel-collapsed .wf-panel-body {
    display: none;
}

.wf-grid-panel.wf-panel-collapsed .wf-panel-collapsed-info {
    display: block !important;
}
