.flow-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:40px}
.flow-empty .empty-nodes{display:flex;justify-content:center;align-items:center;gap:24px}
.flow-empty .empty-nodes .empty-node-item{display:flex;justify-content:center;align-items:center;gap:12px;width:152px;height:56px;border-radius:8px;background:var(--df-color-fill);cursor:pointer}
.flow-empty .empty-nodes .empty-node-item:hover{background:linear-gradient(0deg,var(--df-color-surface-active),var(--df-color-surface-active)),var(--df-color-fill)}
.flow-empty .empty-nodes .empty-node-item img{width:32px}
.flow-empty .empty-nodes .empty-node-item span{font-size:14px;line-height:20px;color:var(--df-color-text-strong)}
.flow-empty .empty-tips{display:flex;gap:8px;font-size:14px;line-height:18px;color:var(--df-color-text-secondary)}
.editor { height: 100vh; position: relative; background: var(--df-color-bg-console); }
.editor-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px 24px; }
.editor-header a { text-decoration: none; }
.editor-header input { border: 0; background: transparent; color: inherit; font: inherit; }
.empty-node-item { border: 0; }
.flow-empty[hidden] { display: none; }
.editor-nodes { position: absolute; inset: 0; pointer-events: none; }
.editor-node { position: absolute; pointer-events: auto; min-width: 180px; min-height: 110px; padding: 16px; border: 1px solid var(--df-color-border-input); border-radius: 8px; background: var(--df-color-surface-raised); }
.editor-node header { cursor: grab; touch-action: none; user-select: none; }
.editor-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.editor-edges path { fill: none; stroke: var(--df-color-node-edge); stroke-width: 2; }
.node-port { position: absolute; top: 50%; width: 12px; height: 12px; padding: 0; border: 2px solid var(--df-color-node-edge); border-radius: 50%; background: var(--df-color-bg-console); transform: translate(-50%, -50%); }
.node-port--in { left: 0; }
.node-port--out { left: 100%; }
.node-port[aria-pressed="true"] { background: var(--df-color-node-edge); }
.editor-node textarea { display: block; margin-top: 10px; color: inherit; background: var(--df-color-surface-sunken); border: 1px solid var(--df-color-border-input); }
.canvas-detail-page { min-height: 480px; overflow: hidden; border-radius: 8px; background-color: var(--df-color-bg-console); }
.empty-tips svg { flex-shrink: 0; fill: currentColor; }
.editor-node img, .editor-node video, .editor-node audio { display: block; max-width: 240px; max-height: 180px; margin-top: 10px; }
/* 画布右键菜单：线上 .context-menu（detail-DSSPKWXN.css / data-v-fac7bdb1）：156 宽、padding 8、圆角 8、底 #272a30、无描边 */
.drama-canvas-contextmenu { position: absolute; z-index: 2; width: 156px; padding: 8px; border: 0; border-radius: 8px; background: var(--df-color-surface-raised); }
.canvas-add-node { position: absolute; top: 72px; left: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: var(--df-color-surface-raised); }
.canvas-add-node svg { fill: currentColor; }
/* 菜单标题：线上 .menu-title{padding:8px;color:#86909c;font-size:12px} */
.canvas-menu-title { display: flex; align-items: center; justify-content: space-between; padding: 8px; color: var(--df-color-text-placeholder); font-size: var(--df-font-size-xs); }
#canvas-asset-picker { width: min(620px, 92vw); padding: 24px; border: 1px solid var(--df-color-border-input); border-radius: 8px; background: var(--df-color-surface-panel); color: var(--df-color-text); }
#canvas-asset-picker::backdrop { background: var(--df-color-mask); }
#canvas-asset-picker h2 { margin: 0 0 16px; font-size: 16px; }
.canvas-asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#canvas-asset-picker button { padding: 8px; border: 1px solid var(--df-color-border-input); border-radius: 6px; background: var(--df-color-surface-raised); }
.canvas-asset-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; }
.canvas-asset-grid button { cursor: grab; }
.canvas-asset-grid button:active { cursor: grabbing; }
.canvas-asset-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.canvas-asset-search { display: flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 16px; padding: 0 10px; border: 1px solid var(--df-color-border-input); border-radius: 6px; color: var(--df-color-text-muted); }
.canvas-asset-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--df-color-text); }
#canvas-asset-picker [aria-pressed="true"] { border-color: var(--df-color-primary-hover); color: var(--df-color-accent); }
.canvas-asset-grid[hidden] { display: none; }
.canvas-asset-empty { margin: 0; padding: 24px 0; text-align: center; color: var(--df-color-text-subtle); }
.canvas-asset-empty .df-empty--table { width: 100%; }
.canvas-asset-empty .df-empty--table img { display: block; width: 24px; height: 24px; margin: 0; }
#canvas-asset-picker form { margin-top: 16px; text-align: right; }
/* 行：线上 .menu-item{height:34px;padding:8px;border-radius:8px;font-size:12px;line-height:18px;color:#fff}，hover 为实色 #3b4048 */
.drama-canvas-contextmenu button { display: flex; width: 100%; height: 34px; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--df-color-text-strong); font-size: var(--df-font-size-xs); line-height: 18px; cursor: pointer; }
.drama-canvas-contextmenu button:is(:hover, :focus-visible) { background: var(--df-color-surface-active); }
.drama-canvas-contextmenu button[disabled] { color: var(--df-color-ratio-hover); cursor: not-allowed; }
.drama-canvas-contextmenu svg { flex: none; fill: currentColor; }

/* 画布头部胶囊：线上 .canvas-switch{padding:4px;gap:8px;background:#ffffff1a;backdrop-filter:blur(32px)} */
.editor-header { position: absolute; top: 20px; left: 20px; display: flex; gap: 12px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--df-color-surface-panel); border: 1px solid var(--df-color-border-subtle); }
.editor-header a { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; color: var(--df-color-text-strong); font-weight: 600; }
.editor-header a:hover { background: var(--df-color-fill); }
.editor-header a svg { width: 16px; height: 16px; fill: currentColor; }
.editor-header__divider { width: 1px; height: 16px; background: var(--df-color-border-strong); }
.editor-header input { width: 39px; padding: 0; font-size: 12px; }
.editor-membership { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--df-color-surface-raised); color: var(--df-color-accent); font-size: 12px; text-decoration: none; }
.editor-membership > svg { width: 12px; height: 12px; fill: currentColor; }
.canvas-left-tools { position: absolute; top: 394px; left: 20px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; width: 56px; height: 112px; padding: 8px 0; border-radius: 8px; background: var(--df-color-surface-raised); }
.canvas-left-tools .canvas-add-node { position: relative; top: auto; left: auto; display: grid; width: 56px; height: 48px; padding: 0; place-items: center; border-radius: 0; background: transparent; color: var(--df-color-bg-console); }
.canvas-left-tools .canvas-add-node::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--df-color-canvas-add-bg); }
.canvas-left-tools .canvas-add-node svg { position: relative; z-index: 1; }
.canvas-open-assets { display: grid; width: 56px; height: 40px; padding: 0; place-items: center; border: 0; background: transparent; color: var(--df-color-text-strong); font-size: 22px; }
.canvas-left-tools > button:hover { background: linear-gradient(0deg, var(--df-color-surface-active), var(--df-color-surface-active)), var(--df-color-fill); }
.canvas-reference-node { position: absolute; top: 330px; left: 340px; width: 420px; height: 202px; border-radius: 12px; background: var(--df-color-surface); }
.canvas-reference-node h2 { position: absolute; top: -22px; left: 0; margin: 0; color: var(--df-color-text-secondary); font-size: 12px; font-weight: 400; }
.reference-port { position: absolute; top: 82px; z-index: 1; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--df-color-text-secondary); border-radius: 50%; color: var(--df-color-text-secondary); font-size: 12px; }
.reference-port--in { left: -18px; }
.reference-port--out { right: -18px; }
.reference-node__image { display: grid; height: 156px; place-items: center; color: var(--df-color-border-strong); font-size: 32px; }
.canvas-reference-node footer { display: flex; align-items: center; justify-content: space-around; height: 46px; }
.canvas-reference-node footer button { border: 0; background: transparent; color: var(--df-color-text-strong); font-size: 12px; }
.canvas-bottom-tools { position: absolute; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 4px 16px; border-radius: 8px; background: var(--df-color-surface-raised); backdrop-filter: blur(32px); }
.canvas-bottom-tools button { display: grid; flex: none; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--df-color-text-strong); }
.canvas-bottom-tools button:hover { background: var(--df-color-surface-active); }
.canvas-bottom-tools #zoom-out, .canvas-bottom-tools #zoom-in { width: 24px; height: 24px; font-size: 16px; }
.canvas-bottom-tools #zoom-value { min-width: 40px; font-size: 12px; font-weight: 600; text-align: center; }

.canvas-reference-node h2 svg, .reference-node__image svg { fill: currentColor; vertical-align: -2px; }
.canvas-left-tools .canvas-add-node { background: transparent; color: var(--df-color-bg-console); }
.canvas-left-tools .canvas-add-node svg { color: var(--df-color-bg-console); }
html[data-theme="light"] .canvas-left-tools .canvas-add-node { color: var(--df-color-bg); }
html[data-theme="light"] .canvas-left-tools .canvas-add-node svg { color: var(--df-color-bg); }
