/* ==========================================================================
   Flow Canvas (/flow-canvas) — free node canvas over the flow-video backend.
   LiteGraph supplies the canvas; this skins the shell to the house dark theme.
   ========================================================================== */

.flow-canvas-page {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.fc-editor {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fc-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.fc-title { font-weight: 600; font-size: 14px; white-space: nowrap; }

.fc-title i {
    font-style: normal;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 9px;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: 2px;
}

.fc-hint {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 10.5px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.fc-spacer { flex: 1; }

.fc-canvas-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
}

.fc-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

/* LiteGraph context/search boxes — nudge toward the house theme */
.litegraph.litecontextmenu {
    background: var(--bg-secondary, #131318) !important;
    border: 1px solid var(--border-strong, rgba(255,255,255,0.14)) !important;
    border-radius: 10px;
    font-family: inherit !important;
}

.litegraph.litecontextmenu .litemenu-entry {
    color: var(--text-primary, #f0f0f4) !important;
    background: transparent !important;
}

.litegraph.litecontextmenu .litemenu-entry:hover {
    background: var(--accent-light, rgba(109,112,245,0.14)) !important;
}

.litegraph.litesearchbox {
    background: var(--bg-secondary, #131318) !important;
    border: 1px solid var(--border-strong, rgba(255,255,255,0.14)) !important;
    border-radius: 10px;
}
