Files
image-workbench-desktop/style.css
T
qiqi d2b1a15878
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 39s
feat(tokens): 色彩模型重建 D1–D9 —— 暗色从「中灰底+深字」改为真正的深色
这是设计 token 计划里唯一一批用户能看出变化的改动(M2/3.26.44)。

## 派生模型(src/theme-tokens.js)
- 对比度目标收成单一常量 RATIO:text 7(AAA) / text2 4.5(AA) / dim 3 / canvas 6 / onBrand 4.5
- 新增 clampAgainst(fg, surfaces, min):文字对 13 个承载表面取最差者夹紧。
  旧实现只对 bg 夹紧,于是 --iwb-text 在暗色 layer(3.94)/nodeBg(4.38)/pluginCard(3.94) 全不达标,
  而它在 style.css 里出现 200+ 次
- 新增 canvasText(画布上的节点标题,抵消 opacity .8)/ brandText(品牌色的文字版)/ menuBg(浮层底)

## 九条缺陷
- D1 三写入者::root 与 .theme-dark 改为 derive 的静态快照;chrome/homeBg/dockBg/dockHeadBg
  统一成一套 color-mix 公式(此前 CSS 用 chrome、derive 用 surface3、apply 用 layer,三套)
- D2 同名两套值:.theme-dark 从 #757575/#a5a5a5/#111 改为近黑 + 浅字
- D3/D4/D5 对比度:暗色 text 3.94→7.11(最低),text2 3.34→4.68,textDim 2.25→3.14
- D6 layer 语义:layer 固定为「内嵌」,两套主题都比 panel 暗;hover 5 处→--iwb-hover、
  浮层 3 处→--iwb-bg-menu(暗色 #3c3c3c)
- D7 品牌色:恢复 #6b7280;另拆 --iwb-brand-text(34 处文字/图标引用切换)
- D8 焦点环:新增 --iwb-focus-ring,统一 3 处各自发明 + :where() 低权重兜底
- D9 暗色硬编码:24 条删 8 组、改 3 组,剩 16 条是节点预设底色的暗色对位

## 计划外发现的三处层次反转
- nodeBg 暗色 #242424 比画布 #313131 还暗(卡片凹进去)→ 改为相对 canvas 派生
- 改完 nodeBg 与 border 撞成 #3d3d3d(边框消失)→ 暗色 border 系数 .52→.60
- 首页 homeBg 暗色 #1d1d1d 比 panel 还亮(卡片混完等于背景而隐身)→ 卡片改用浮起层

## 守卫
- tests/theme-static-snapshot-test.js:CSS 静态快照必须等于 derive() 输出(58 色值 × 亮暗)
  它在本次改动里当场抓到两处漏同步,已注册进 test:unit
- token-audit.js 修自身缺陷:对比表硬编码旧的 #757575(脚本成了过时信息源)→ 实时解析;
  textDim 被按 4.5 标记 → 按 RATIO 分级

12 张视觉基线已重建(暗色明显变亮变清晰);verify:ci 全绿。
2026-11-23 13:56:40 +08:00

2567 lines
208 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* 生图工作台 Image Workbench — 独立版样式(亮/暗主题手动切换,设置 → 通用 → 主题)
* 亮色配色:节点背景灰、内容区(输入框/标题栏/参数区)白,保证文字清晰阅读 */
/* ⚠ 本段是设计 token 的「静态快照」:颜色值必须等于 IWBThemeTokens.derive(DEFAULTS, false)
* 的输出。JS 未执行的那一帧用它顶住,跑完由 derive() 写内联同名变量 —— 两者一致才不会
* 首屏跳一下。改派生公式后请同步这里,tests/theme-tokens-test.js 会比对并报错。
* 结构层(chrome/home/dock)刻意用 color-mix 表达:公式与 derive 一致,换主题时
* :root 的声明会在 html 元素上按新的 --iwb-bg/--iwb-canvas-bg 重新求值,自动跟随。 */
:root {
/* —— 表面阶(亮色往白里 mix) —— */
--iwb-bg: #f7f7f7;
--iwb-canvas-bg: #c6c6c6;
/* --iwb-layer 是「内嵌层」:面板里的凹槽(任务条/引用块/输入框)。
两个主题里都必须比 --iwb-panel 暗 —— 旧实现暗色是「更亮」,同一个 token 表达相反层次(D6)。 */
--iwb-layer: #f5f5f5;
--iwb-layer2: #ffffff;
--iwb-panel: #fefefe;
--iwb-node-bg: #efefef;
/* 顶部 chrome 色:页面底与画布之间的过渡层(标签条用)。
比 --iwb-bg 深一号、比画布浅 → 顶部亮带贴画布的对比减弱(v3.1.0 顶栏配色);
调深浅改下面 60/40 两个百分比即可(越往画布色靠,对比越弱) */
--iwb-chrome: color-mix(in srgb, var(--iwb-bg) 60%, var(--iwb-canvas-bg) 40%);
/* 首页底色:左栏与右主区同色(v3.1.0 首页配色)→ v3.1.0-pre.26 提亮一档。
在画布色与顶栏色之间取 35/65 混色:比画布浅一点点、仍明显暗于顶栏 chrome(保持层次),
白卡片/白搜索框在上面依旧突出。想再调深浅改下面 35/65 两个百分比即可 */
--iwb-home-bg: color-mix(in srgb, var(--iwb-bg) 35%, var(--iwb-canvas-bg) 65%);
/* 首页(暗一档底)上的细分隔线:border 与 border2 混色,
在 --iwb-home-bg 上保持与旧版(亮底+--iwb-border)相近的可见度,不隐形也不过重 */
--iwb-hr: color-mix(in srgb, var(--iwb-border) 50%, var(--iwb-border2) 50%);
/* 左右停靠栏底色(v3.25.58):栏是「结构层」不是「浮层」,之前直接用 --iwb-panel(纯白),
比页面底还亮 ⇒ 亮色下与画布 1.39:1、暗色下 2.04:1,两侧像亮度泄漏。
这里把它排进既有灰阶 ramp(bg → chrome → home → canvas):取 chrome 与画布的中段,
与标签条同级、只比画布亮一点点;两主题都用同一公式(chrome/canvas 本身随主题变)。 */
--iwb-dock-bg: color-mix(in srgb, var(--iwb-chrome) 55%, var(--iwb-canvas-bg) 45%);
/* v3.26.19:顶栏底色比停靠栏更浅一档(原来是压暗 6%,现在向面板色靠 55%) */
--iwb-dock-head-bg: color-mix(in srgb, var(--iwb-panel) 55%, var(--iwb-dock-bg));
--iwb-border: #c2c2c2;
--iwb-border2: #ababab;
/* 品牌色 v3.26.44:从「等于次要文字色」恢复为真正的强调色种子(D7)。
主按钮用它做底,--iwb-on-brand 按对比度自动取黑/白。 */
--iwb-brand: #6b7280;
/* 品牌色的文字版:按对比度夹紧(暗色会明显亮于填充色) */
--iwb-brand-text: #575d69;
--iwb-on-brand: #ffffff;
/* v3.25.85 插件主题契约:插件只能用这组别名(宿主负责让它们跟随主题/自动配色) */
--iwb-plugin-bg: var(--iwb-bg);
--iwb-plugin-panel: var(--iwb-panel);
--iwb-plugin-layer: var(--iwb-layer);
--iwb-plugin-border: var(--iwb-border);
--iwb-plugin-text: var(--iwb-text);
--iwb-plugin-text2: var(--iwb-text2);
/* 插件面板四层(v3.25.96):只提供取值,不做任何变量重指(3.25.89 的事故不再重演) */
--iwb-plugin-surface: #f5f5f5;
--iwb-plugin-card: #fefefe;
--iwb-plugin-inset: #ebebeb;
--iwb-plugin-hover: #e2e2e2;
--iwb-plugin-brand: var(--iwb-brand);
--iwb-plugin-on-brand: var(--iwb-on-brand);
--iwb-plugin-err: var(--iwb-err);
--iwb-plugin-ok: var(--iwb-ok);
--iwb-plugin-warn: var(--iwb-warn);
/* 连线默认色:跟随边框灰(亮/暗自适应)。主题色只用于选中/悬停/上下游高亮(v3.25.18 用户裁定) */
--iwb-edge: var(--iwb-border2);
/* 外观自定义(v3.25.22):以下变量都由 src/ui-appearance.js 按配置写入,这里只给兜底默认值 */
--iwb-edge-w: 1.8px;
--iwb-edge-dash: 4 3;
--iwb-edge-hot: var(--iwb-brand);
--iwb-node-radius: 14px;
--iwb-node-sel-w: 1px;
--iwb-grid-dot: #a6a6a6;
--iwb-grid-size: 1.4px;
--iwb-grid-gap: 22px;
--iwb-grid-on: 1;
/* 一级导航宽度:左停靠栏/工具栏让位都以它为基准(v3.25.59) */
--iwb-nav-w: 52px;
/* —— 文字三级(v3.26.44 重定):目标对比度见 IWBThemeTokens.RATIO
text 7:1(AAA 正文)/ text2 4.5:1(AA 次要)/ text-dim 3:1(辅助、占位)
旧值只对 --iwb-bg 夹紧,暗色下正文在 layer/nodeBg/pluginCard 上只有 3.9–4.4(D3/D4/D5) */
--iwb-text: #404040;
--iwb-text2: #5c5c5c;
--iwb-text-dim: #767676;
/* 画布上的文字专用色:节点标题画在画布上(透明底)再叠 opacity .8,
复用 text2 实测只有 1.9:1。它只对 --iwb-canvas-bg 负责,不参与界面文字的灰阶 */
--iwb-color-text-on-canvas: #404040;
/* v3.26.42 外观 v2:节点文字与界面文字分家;tint 是「半透明文字底色」的基色(不随调字变化) */
--iwb-node-text: #404040;
--iwb-node-text2: #6b6b6b;
--iwb-tint: #404040;
/* 插件历史变量补洞:此前未定义,插件只能吃硬编码兜底(暗色下会突然白底)
@deprecated --iwb-surface:全仓零引用。要用「卡片底」请用 --iwb-plugin-card / --iwb-layer;
M3 起用 --iwb-bg-inset。保留仅为不打断未来引用。 */
--iwb-surface: #fefefe;
--iwb-hover: #e9e9e9;
/* 浮层底:亮色=面板色,暗色会比面板亮一档(见 theme-tokens 的 menuBg) */
--iwb-bg-menu: #fefefe;
/* 键盘焦点环(v3.26.44 / D8):此前只有三处各自发明(brand 60% / tint 35% / tint 30%),
其余可聚焦元素完全没有焦点反馈。统一成一个 token,颜色走 brand-text ——
暗色下 brand 是填充色偏暗,画不出环。 */
--iwb-focus-ring: 2px solid color-mix(in srgb, var(--iwb-brand-text) 70%, transparent);
--iwb-err: #ef4444;
--iwb-ok: #22c55e;
--iwb-warn: #d97706;
/* —— 设计 token 第一代(v3.1.0-stability2 起):间距 / 圆角 / 字号 / 阴影 / 过渡 ——
2026-11-23 审计结论:这套尺度 token **采用率约 0.5%**(`--sp-*` 被引用 0 次,而间距写死 644 处)。
下面标 @deprecated 的 15 个名字当前无任何 `var()` 消费者,保留只为不打断外部引用;
由 docs/plans/design-tokens-rollout.md 的 M3(`design-tokens.css` 的 L1/L2)取代,
**新代码不得再引用带 @deprecated 的名字**,M4 迁移结束后统一删除。
(`--sp-*` / `--rd-sm|md|lg` / `--fs-xs|md|lg|xl` / `--sh-sm` / `--tr-base|tr-slow`)
仍在使用的 `--rd`(8px) / `--fs-sm`(11px) / `--sh-md|lg` / `--tr-fast` 不在此列。 */
--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; /* @deprecated 全部 5 个 → M3 的 --iwb-space-4/8/12/16/24 */
--rd-sm: 6px; --rd: 8px; --rd-md: 10px; --rd-lg: 12px; /* @deprecated rd-sm/rd-md/rd-lg → M3 的 --iwb-radius-chip/control/popover */
--fs-xs: 10px; --fs-sm: 11px; --fs-md: 12px; --fs-lg: 13px; --fs-xl: 14px; /* @deprecated fs-xs/fs-md/fs-lg/fs-xl → M3 的 --iwb-font-*(fs-sm 仍被引用) */
--sh-sm: 0 2px 8px rgba(0, 0, 0, 0.12); /* @deprecated → M3 的 --iwb-elevation-1 */
--sh-md: 0 6px 20px rgba(0, 0, 0, 0.16);
--sh-lg: 0 12px 32px rgba(0, 0, 0, 0.24);
--tr-fast: 0.1s ease-out; --tr-base: 0.2s ease-out; --tr-slow: 0.3s ease-out; /* @deprecated tr-base/tr-slow → M3 的 --iwb-motion-*(tr-fast 仍被引用) */
}
/* 暗色主题:html.theme-dark(设置 → 通用 → 主题 切换;不再跟随系统)
* ⚠ 同样是静态快照:这些值必须等于 IWBThemeTokens.derive(DEFAULTS, true) 的输出。
* 旧版这里是「中灰底(#757575)+ 深字(#111)」的独立设计,与 derive 的「近黑底 + 浅字」
* 同名不同值 —— 切主题等于换了个产品(D2)。现在两者统一为同一套派生结果。
* 结构层(chrome/home/dock)不在这里重复定义::root 的 color-mix 公式会在本元素上
* 按新的 --iwb-bg/--iwb-canvas-bg 重新求值,天然跟随。 */
.theme-dark {
/* 生图动效在暗色下必须"发亮":--iwb-brand 是中性灰,直接用它会让进度线/旋转环/流动渐变
都糊在深底里。这里统一用「亮色元素 + 深色轨道」靠明暗反差获得清晰度。 */
--iwb-anim: #ffffff;
--iwb-anim-track: color-mix(in srgb, #ffffff 18%, transparent);
--iwb-anim-glow: rgba(255, 255, 255, 0.72);
--iwb-anim-tint: color-mix(in srgb, #ffffff 16%, transparent);
/* 旧值是「往 layer 里混 26% 近黑」,layer 从 #9c9c9c 变成 #161616 后,混出来几乎等于底色
⇒ 流动渐变左端不可见。改成从「比层亮 26%」到「比层亮 76%」,保持深→浅的流动方向。 */
--iwb-anim-flow-a: color-mix(in srgb, #ffffff 26%, var(--iwb-layer));
--iwb-anim-flow-b: color-mix(in srgb, #ffffff 76%, var(--iwb-layer));
--iwb-bg: #121212;
--iwb-canvas-bg: #313131;
--iwb-layer: #161616;
--iwb-layer2: #1c1c1c;
--iwb-panel: #1c1c1c;
--iwb-node-bg: #3d3d3d;
--iwb-border: #333333;
--iwb-border2: #4d4d4d;
--iwb-brand: #6b7280;
--iwb-brand-text: #a6aab2;
--iwb-text: #d1d1d1;
--iwb-text2: #aaaaaa;
--iwb-text-dim: #8a8a8a;
--iwb-color-text-on-canvas: #b2b2b2;
--iwb-node-text: #d1d1d1;
--iwb-node-text2: #aaaaaa;
--iwb-tint: #d1d1d1;
--iwb-surface: #1c1c1c;
--iwb-hover: #2a2a2a;
--iwb-bg-menu: #3c3c3c;
--iwb-grid-dot: #525252;
--iwb-plugin-surface: #232323;
--iwb-plugin-card: #2c2c2c;
--iwb-plugin-inset: #101010;
--iwb-plugin-hover: #383838;
--iwb-err: #f26666;
--iwb-ok: #4acf7b;
--iwb-warn: #e1953d;
--iwb-on-brand: #ffffff;
--sh-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
--sh-md: 0 6px 20px rgba(0, 0, 0, 0.45);
--sh-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
background: var(--iwb-bg);
color: var(--iwb-text);
font-size: 14px;
}
/* 表单控件不继承 body 字体:Windows 下 textarea/input 默认回落宋体(SimSun)→ 强制继承黑体栈 */
input, textarea, select, button { font-family: inherit; }
button { font-family: inherit; }
.iwb-overlay { position: fixed; inset: 0; z-index: 100; background: var(--iwb-bg); }
/* Tab 循环界面模式:0=纯画布(隐藏左右栏 + 底部工具栏) */
.iwb-canvas { position: absolute; inset: 0; overflow: hidden; cursor: default; user-select: none; background: var(--iwb-canvas-bg); }
/* 抓手工具(H):整块画布给「可抓」光标,按下拖动时变抓紧 */
.iwb-canvas.iwb-tool-pan { cursor: grab; }
.iwb-canvas.iwb-tool-pan:active { cursor: grabbing; }
.iwb-grid { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; will-change: transform; background-repeat: repeat; background-image: radial-gradient(circle, var(--iwb-grid-dot) var(--iwb-grid-size), transparent calc(var(--iwb-grid-size) + 0.4px)); background-size: var(--iwb-grid-gap) var(--iwb-grid-gap); background-repeat: repeat; opacity: calc(0.85 * var(--iwb-grid-on)); }
/* 亮色主题:网格点更浅,降低与背景对比度(暗色主题不受影响) */
/* 亮色主题的生图动效 token:与改动前逐值一致,保证亮色观感零变化 */
:root:not(.theme-dark) {
--iwb-anim: var(--iwb-brand);
--iwb-anim-track: color-mix(in srgb, var(--iwb-brand) 16%, transparent);
--iwb-anim-glow: color-mix(in srgb, var(--iwb-brand) 75%, transparent);
--iwb-anim-tint: color-mix(in srgb, var(--iwb-brand) 7%, transparent);
--iwb-anim-flow-a: color-mix(in srgb, var(--iwb-brand) 16%, var(--iwb-layer));
--iwb-anim-flow-b: color-mix(in srgb, var(--iwb-brand) 46%, var(--iwb-layer));
}
.iwb-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.iwb-edges { position: absolute; left: 0; top: 0; pointer-events: none; }
.iwb-edge-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.iwb-edge-hit:hover { stroke: color-mix(in srgb, var(--iwb-brand) 16%, transparent); }
.iwb-edge-hit:hover + .iwb-edge { stroke-width: calc(var(--iwb-edge-w) + 0.6px); stroke: var(--iwb-edge-hot); }
.iwb-edge { fill: none; stroke: var(--iwb-edge); stroke-width: var(--iwb-edge-w); stroke-dasharray: var(--iwb-edge-dash); pointer-events: stroke; cursor: pointer; }
.iwb-edge:hover { stroke: var(--iwb-edge-hot); stroke-dasharray: none; }
.iwb-edge-sel { stroke: var(--iwb-warn); stroke-width: 2.4; stroke-dasharray: none; }
.iwb-edge-hot { stroke: var(--iwb-edge-hot); stroke-width: 2.4; stroke-dasharray: none; }
.iwb-edge-upstream { stroke: var(--iwb-edge-hot); stroke-width: 1.2; opacity: 1; stroke-dasharray: none; }
.iwb-edge-downstream { stroke: var(--iwb-edge-hot); stroke-width: 1.2; opacity: 1; stroke-dasharray: none; }
.iwb-edge-detach { stroke: var(--iwb-err); stroke-width: 2.4; stroke-dasharray: 6 4; }
.iwb-edge-temp { stroke: var(--iwb-edge-hot); stroke-dasharray: 6 4; pointer-events: none; }
.iwb-node { position: absolute; --iwb-text: var(--iwb-node-text); --iwb-text2: var(--iwb-node-text2); background: var(--iwb-node-bg); border: 1px solid var(--iwb-border); border-top: 1px solid var(--iwb-border); border-radius: var(--iwb-node-radius); box-shadow: none; font-size: 12px; color: var(--iwb-text); display: flex; flex-direction: column; cursor: move; contain: layout style; }
.iwb-node-selected { border-color: var(--iwb-brand); box-shadow: 0 0 0 var(--iwb-node-sel-w) var(--iwb-brand), 0 6px 20px rgba(0,0,0,0.25); }
.iwb-node:hover { z-index: 4; }
.iwb-node input, .iwb-node select, .iwb-node button { cursor: auto; }
.iwb-node .iwb-textarea:read-only { cursor: move; }
.iwb-node .iwb-textarea:not(:read-only) { cursor: text; }
.iwb-dragging .iwb-node:hover { z-index: auto; }
.iwb-dragging .iwb-node-dragging { z-index: 20 !important; }
.iwb-dragging .iwb-node:not(.iwb-node-dragging) .iwb-port:hover { box-shadow: none; }
/* 节点标题带:节点外框上方、左对齐节点左边(参考设计稿:小图标 + 标题文字,无重边框)。
bottom:100% 相对节点 padding box 顶部(上边框 2px),margin-bottom:8px → 净间隙 6px,标题带总高 28px(世界坐标)。
高度恒定是气泡抬升公式 NODE_HEAD_H/NODE_HEAD_FB_GAP 成立的前提,故 .iwb-node-title 必须单行省略。 */
.iwb-node-head { display: flex; position: absolute; left: 0; bottom: 100%; align-items: center; gap: 5px; height: 22px; max-width: 190px; margin-bottom: 8px; padding: 0 7px; cursor: move; background: transparent; border-radius: 7px; font-weight: 600; }
.iwb-node-head:hover { background: var(--iwb-layer2); }
/* 标题带画在画布上(透明底),所以不能吃节点/界面的文字色 —— 用画布专用色。
专用色对 --iwb-canvas-bg 按 6:1 派生,抵消 opacity .8 合成后的衰减;实测合成后 ≥4.5。 */
.iwb-node-headicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--iwb-color-text-on-canvas, var(--iwb-text2)); opacity: .75; }
.iwb-node-headicon .iwb-ic { width: 13px; height: 13px; }
/* 标题统一灰色(不再按节点类型着色;类型由左侧图标区分) */
.iwb-node-title { font-size: 12px; color: var(--iwb-color-text-on-canvas, var(--iwb-text2)); opacity: 0.8; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .15s, font-weight .15s; }
.iwb-node-selected .iwb-node-title { opacity: 1; font-weight: 600; }
/* 头部操作按钮继续隐藏:其功能在气泡 / 右键菜单中已有,显示后会与气泡重复。 */
.iwb-node-head .iwb-node-headbtns { display: none; }
/* 选中时顶部浮动气泡操作条(复刻 infinite-canvas/opentu) */
/* --iwb-fb-k:气泡尺寸随视口缩放(见 app.js floatbarScale)。transform-origin 取贴边中点,
保证缩放后 bottom-center 仍精确落在 left/top 锚点上 → 位置公式无需随 k 改变。 */
.iwb-node-floatbar { position: absolute; z-index: 70; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: 0 8px 28px rgba(15,23,42,.12); transform: translate(-50%, -100%) scale(var(--iwb-fb-k, 1)); transform-origin: 50% 100%; pointer-events: auto; left: 50%; top: -6px; }
/* 上方放不下时改挂节点下方(避免被 .iwb-canvas 的 overflow:hidden 裁掉):origin 改为上边中点 */
.iwb-node-floatbar.iwb-node-floatbar-below { transform: translate(-50%, 0) scale(var(--iwb-fb-k, 1)); transform-origin: 50% 0; }
.iwb-node-floatbar button { width: 30px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-node-floatbar label { width: 30px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-node-floatbar button:hover, .iwb-node-floatbar label:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-node-floatbar button:disabled, .iwb-node-floatbar label:disabled { opacity: 0.4; cursor: default; background: transparent; }
.iwb-node-floatbar-title { font-size: 12px; font-weight: 600; color: var(--iwb-text); padding: 4px 10px; border-radius: 8px; cursor: default; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.iwb-node-floatbar-title:hover { background: var(--iwb-layer2); }
/* 气泡删除按钮(2026-11-09 恢复;用户 2026-10-30 曾以「防误删」为由移除)。
方案 B:静态态与其它气泡按钮完全一致(灰图标、透明底),只有 hover 才亮红 ——
不做红底常驻,避免把删除变成常驻视觉焦点;误删由 Ctrl+Z(deleteNodes 会 pushHistory)兜底。
红色复用既有 token --iwb-err(与右键菜单「删除」同语义),不新增变量。 */
.iwb-node-floatbar button.iwb-fb-del:hover { color: var(--iwb-err); background: color-mix(in srgb, var(--iwb-err) 12%, transparent); }
.iwb-node-headbtns { display: flex; gap: 2px; }
.iwb-node-del { background: none; border: none; color: var(--iwb-text2); cursor: pointer; font-size: 12px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center; }
.iwb-node-del:hover { color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-node-body { padding: 8px 10px; overflow: visible; flex: 1 1 auto; min-height: 0; }
/* 插件自定义节点体容器(2026-11-14):宿主只提供一块稳定画布(防 React 重建导致输入框失焦),
内部排版(缩略图 / 变量行 / 开关)全由插件自己的 CSS 决定,这里不给内边距也不预设布局。 */
.iwb-plugin-node-body { padding: 0; display: flex; flex-direction: column; overflow: visible; }
/* LOD 低细节占位体(v3.24.77 起):节点在屏幕上宽 < 64px 时**不渲染** body 内容。
不给暗示的话,缩小后整块画布会变成一堆空心框,看起来像「图丢了」。 */
.iwb-node-body-lod { padding: 9px 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.iwb-lod-img { padding: 0; margin: 8px; border-radius: 8px; flex: 1 1 auto; min-height: 20px; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); }
.iwb-lod-text::before, .iwb-lod-text::after { content: ''; display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--iwb-border) 55%, transparent); }
.iwb-lod-text::after { width: 58%; }
/* LOD lite 档(v3.24.78):灰块认不出是哪个节点 —— 图片节点画一张代表图,文本节点画首行文字。
仍然不建 textarea / 图片网格 / 按钮 / 事件,成本只比纯占位多一个 <img>。 */
.iwb-lod-lite.iwb-lod-img { overflow: hidden; }
.iwb-lod-thumb { display: block; width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; border-radius: 8px; }
.iwb-lod-has-text { justify-content: flex-start; }
.iwb-lod-has-text::before, .iwb-lod-has-text::after { display: none; }
.iwb-lod-line { font-size: 11px; line-height: 1.3; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 提示词节点:文本内容与外框再留大一点边距(参考截图) */
.iwb-node:has(.iwb-textarea-plain) .iwb-node-body { padding: 14px 18px; }
.iwb-node-relay { width: 72px !important; min-height: 72px !important; border-radius: 50%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.iwb-node-relay .iwb-node-body { padding: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.iwb-relay-ring { position: absolute; inset: 0; border-radius: 50%; border: 10px solid var(--iwb-node-bg); background: transparent; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
/* 中继节点设了背景色时:**圆环**取色、中间保持透明(2026-11-01 用户要求,避免整块实心圆) */
.iwb-node.iwb-node-relay[data-bg] { background: transparent; border-color: transparent; }
.iwb-node.iwb-node-relay[data-bg] .iwb-relay-ring { border-color: var(--iwb-node-color); }
.iwb-ref-actions { display: flex; gap: 6px; padding: 2px 0 0; }
.iwb-ref-actions .iwb-ref-change { white-space: nowrap; }
.iwb-textarea { min-height: 56px; overflow-y: auto; }
.iwb-resize { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; cursor: nwse-resize; z-index: 6; }
.iwb-resize::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-right: 2px solid var(--iwb-border2); border-bottom: 2px solid var(--iwb-border2); }
.iwb-label { font-size: 11px; color: var(--iwb-text2); margin: 6px 0 3px; }
.iwb-grow { flex: 1; }
.iwb-row { display: flex; gap: 6px; align-items: center; }
.iwb-actions { margin-top: 8px; }
.iwb-port { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--iwb-layer); border: 1.5px solid var(--iwb-border2); transform: translate(-50%, -50%); z-index: 7; }
.iwb-node:hover .iwb-port { border-color: var(--iwb-brand); background: var(--iwb-panel); }
.iwb-port:hover { border-color: var(--iwb-brand) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--iwb-brand) 25%, transparent); }
.iwb-port::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
/* 端口「+」提示(2026-11-01 用户要求,参照参考图):hover 靠近、或选中节点且该端口未连线时显示加号。
已连线的端口(.iwb-port-linked)不显示,避免误以为还能再加一条。
纯 CSS 伪元素 ⇒ 不改色/不 hover 时零开销。 */
.iwb-port::before {
content: ''; position: absolute; inset: 2px; opacity: 0; transition: opacity .12s;
background:
linear-gradient(currentColor, currentColor) center / 1.4px 100% no-repeat,
linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat;
color: var(--iwb-text); pointer-events: none;
}
/* 选中且未连线:加号放大(约 2 倍视觉,2026-11-01 用户要求) */
.iwb-node-selected .iwb-port:not(.iwb-port-linked) { width: 22px; height: 22px; }
.iwb-node-selected .iwb-port:not(.iwb-port-linked)::before { opacity: 1; inset: 4px; }
/* 已连线:选中(未 hover)不显示加号,避免误以为还能加 */
.iwb-node-selected .iwb-port-linked::before { opacity: 0; }
/* 鼠标靠近端点:**再放大一档**,且**已连线的端口也显示**(节点可多连)。
选择器带上 .iwb-node-selected 前缀,保证优先级压过上面的选中规则。 */
.iwb-port:hover, .iwb-node-selected .iwb-port:hover { width: 24px; height: 24px; transition: width .1s, height .1s; }
.iwb-port:hover::before,
.iwb-node-selected .iwb-port:hover::before,
.iwb-node-selected .iwb-port-linked:hover::before { opacity: 1; inset: 5px; }
.iwb-port:hover { border-color: var(--iwb-brand); background: var(--iwb-layer2); }
.iwb-node-selected .iwb-port:not(.iwb-port-linked) { background: var(--iwb-layer2); }
.iwb-connecting .iwb-port-in { border-color: var(--iwb-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iwb-brand) 30%, transparent); }
.iwb-port-in { left: 0; cursor: crosshair; }
.iwb-port-out { left: 100%; cursor: crosshair; }
.iwb-ref-thumb { width: 100%; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--iwb-border); }
.iwb-ref-empty { height: 84px; display: flex; align-items: center; justify-content: center; color: var(--iwb-text2); border: 1px dashed var(--iwb-border2); border-radius: 6px; font-size: 12px; }
.iwb-ref-images { display: flex; flex-direction: column; gap: 6px; }
.iwb-ref-imgrow { display: flex; align-items: center; gap: 6px; }
.iwb-ref-idx { flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--iwb-brand); color: var(--iwb-on-brand); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.iwb-ref-img { flex: 1; max-height: 90px; object-fit: contain; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: move; min-width: 0; }
.iwb-ref-imgactions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; }
.iwb-file { display: inline-block; margin-top: 6px; padding: 4px 10px; border: 1px dashed var(--iwb-border2); border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--iwb-text2); }
.iwb-file:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-hint { font-size: 10px; color: var(--iwb-text2); margin-top: 4px; }
.iwb-results { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.iwb-rgroup { width: 100%; }
.iwb-rlabel { font-size: 10px; color: var(--iwb-text2); margin: 4px 0 3px; }
.iwb-result-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--iwb-border); }
.iwb-rimg { position: relative; }
.iwb-rimg-actions { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; gap: 4px; justify-content: center; }
.iwb-rimg-actions .iwb-btn { font-size: 10px; padding: 1px 5px; background: var(--iwb-panel); }
.iwb-err { font-size: 11px; color: var(--iwb-err); margin-top: 4px; word-break: break-all; }
.iwb-out-item { margin-bottom: 8px; }
.iwb-out-block { border-top: 1px dashed var(--iwb-border2); padding-top: 6px; margin-top: 6px; }
.iwb-out-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.iwb-out-imgwrap { margin-top: 4px; }
.iwb-out-img { width: 100%; border-radius: 8px; border: 1px solid var(--iwb-border); }
.iwb-out-meta { font-size: 10px; color: var(--iwb-text2); margin-top: 3px; }
.iwb-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.iwb-toolbar { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; flex-wrap: wrap; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; padding: 8px 10px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.iwb-toolbar-title { font-weight: 700; font-size: 13px; margin-right: 2px; }
.iwb-toolbar-sep { width: 1px; height: 18px; background: var(--iwb-border2); margin: 0 2px; }
.iwb-statusbar { position: absolute; top: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 60px); justify-content: flex-end; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 12px; z-index: 10; font-size: 11px; color: var(--iwb-text2); box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: right 0.15s; }
.iwb-status-err { color: var(--iwb-err); }
.iwb-status-ok { color: var(--iwb-ok); }
/* 生成中状态:直接附着在顶部计时/状态背景,确保不依赖画布节点可见性 */
/* 保存状态:固定宽度占位(空时不收缩),避免保存/空闲切换导致状态栏伸缩跳动 */
.iwb-status-save { min-width: 56px; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
/* 保存中:小圆环旋转动画 + 文案脉冲 */
.iwb-save-spinner { width: 10px; height: 10px; border: 2px solid color-mix(in srgb, var(--iwb-text2) 30%, transparent); border-top-color: var(--iwb-brand); border-radius: 50%; display: inline-block; animation: iwb-spin 0.8s linear infinite; flex: 0 0 auto; }
.iwb-save-saving { animation: iwb-pulse 1.2s ease-in-out infinite; }
@keyframes iwb-spin { to { transform: rotate(360deg); } }
@keyframes iwb-pulse { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.iwb-hint-bottom { position: absolute; bottom: 10px; transform: translateX(-50%); font-size: 10px; color: var(--iwb-text2); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 8px; padding: 3px 10px; z-index: 9; opacity: 0.8; white-space: nowrap; }
.iwb-boxsel { position: absolute; border: 1px dashed var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); z-index: 3; pointer-events: none; }
/* v3.26.18:右栏挤压到工具栏时自动隐藏(避免两者重叠) */
.iwb-minimap.iwb-minimap-tight { opacity: 0; transform: translateY(6px); pointer-events: none; }
.iwb-mini-node { position: absolute; border-radius: 2px; opacity: 0.85; }
.iwb-mini-view { position: absolute; border: 1px solid var(--iwb-brand); border-radius: 2px; pointer-events: none; }
.iwb-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 300; display: flex; align-items: center; justify-content: center; }
.iwb-modal { width: 680px; max-width: calc(100vw - 60px); max-height: 82vh; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.iwb-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--iwb-border); }
.iwb-modal-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; }
.iwb-modal-foot { padding: 12px 16px; border-top: 1px solid var(--iwb-border); display: flex; justify-content: flex-end; }
.iwb-provider-card { border: 1px solid var(--iwb-border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.iwb-keyrow { display: flex; gap: 6px; align-items: center; }
.iwb-lib { position: absolute; top: 0; right: 0; bottom: 0; background: var(--iwb-panel); border-left: 1px solid var(--iwb-border2); z-index: 20; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0,0,0,0.15); }
.iwb-lib-handle { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 3; }
.iwb-lib-handle:hover { background: color-mix(in srgb, var(--iwb-tint) 14%, transparent); }
.iwb-lib-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); }
.iwb-lib-body { flex: 1; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.iwb-lib-fixed { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.iwb-lib-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
/* 提示词库:分类胶囊行 + 分组管理 */
.iwb-lib-chips { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; padding-bottom: 4px; min-width: 0; }
/* 分类胶囊行(2026-10-20):分组多了不再换行挤矮卡片区 ⇒ 单行横向滚动 + 右侧渐隐提示 */
.iwb-lib-chips-scroll { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.iwb-lib-chips-scroll::-webkit-scrollbar { display: none; }
.iwb-lib-chips-scroll > .iwb-chip:last-child { margin-right: 18px; }
/* 右侧渐隐:提示「右边还有内容,可横向滚动」 */
.iwb-lib-chips-scroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent 100%); }
/* 搜索范围提示(2026-10-20):搜索是全局的,明确告诉用户当前在搜什么范围 */
.iwb-lib-searchscope { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 11px; color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--iwb-brand) 28%, transparent); border-radius: 999px; padding: 2px 4px 2px 9px; white-space: nowrap; }
.iwb-lib-searchscope-back { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; padding: 0; border: none; border-radius: 999px; background: transparent; color: var(--iwb-text2); font-size: 13px; line-height: 1; cursor: pointer; }
.iwb-lib-searchscope-back:hover { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent); color: var(--iwb-text); }
.iwb-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--iwb-text2); cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.iwb-chip:hover { color: var(--iwb-text); border-color: var(--iwb-border2); }
.iwb-chip-active { background: var(--iwb-panel); border-color: var(--iwb-border2); color: var(--iwb-text); font-weight: 600; }
.iwb-chip-active:hover { color: var(--iwb-text); }
.iwb-chip-count { font-size: 10px; opacity: 0.8; }
.iwb-chip-add { font-weight: 700; }
.iwb-gmgr-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dashed var(--iwb-border); }
.iwb-gmgr-name { flex: 1 1 auto; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-gmgr-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
/* 提示词库:全屏管理视图(面板占满视口,内部区域各自滚动,适配小分辨率) */
/* 提示词库活动窗口(可拖动标题栏移动、右下角缩放;尺寸/位置由 fsWin 控制) */
.iwb-fullmask { position: fixed; z-index: 260; display: flex; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 14px; box-shadow: var(--sh-lg); overflow: hidden; padding: 0; }
.iwb-fullpanel { width: 100%; height: 100%; max-width: none; max-height: none; background: var(--iwb-panel); border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.iwb-full-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; cursor: move; user-select: none; }
.iwb-full-head .iwb-toolbar-title { white-space: nowrap; }
/* 资源中心面板的缩放手柄(2026-10-20 重做)
*
* 背景:此前 CSS 里有**三套互相冲突**的规则(基类三角 / 四边条 / 4 角 L 形括号),
* 后写的 `background: transparent` 把前两套的斜角三角**全部覆盖失效**,
* 实际显示的是「L 形括号 + 圆角边框」套在**方形面板**上(面板 border-radius: 0)
* ⇒ 视觉上是几截半截的线头(用户反馈"样式不好看")。
*
* 现在的设计(4 角 + 4 边全部**不可见**,功能保留):
* - 静止时面板边缘完全干净,没有任何装饰性角标;
* - 「能缩放」的信息改由 ① 标题栏的尺寸文字 + ② 边缘 hover 时的淡入提示 传递;
* - 拖动热区尺寸不变(20px 角 / 7px 边)⇒ 既有交互手感不受影响。
*
* 注:手柄元素仍保留在 DOM 里(src/ui-lib-sidebar.js),`cursor` 与拖动逻辑照旧 ——
* 只是**不可见**(transparent 而非 display:none,否则就没有热区了)。
*/
.iwb-full-resize { position: absolute; z-index: 6; background: transparent; }
.iwb-full-resize:hover { background: transparent; }
/* 4 角:20×20 热区,方向光标提示可缩放 */
.iwb-full-resize-tl, .iwb-full-resize-tr, .iwb-full-resize-bl, .iwb-full-resize-br { width: 20px; height: 20px; }
.iwb-full-resize-tl { left: 0; top: 0; right: auto; bottom: auto; cursor: nwse-resize; }
.iwb-full-resize-tr { right: 0; top: 0; left: auto; bottom: auto; cursor: nesw-resize; }
.iwb-full-resize-bl { left: 0; bottom: 0; right: auto; top: auto; cursor: nesw-resize; }
.iwb-full-resize-br { right: 0; bottom: 0; left: auto; top: auto; cursor: nwse-resize; }
/* 4 边:7px 细条热区 */
.iwb-full-resize-r { right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.iwb-full-resize-l { left: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.iwb-full-resize-t { top: 0; left: 0; right: 0; height: 7px; cursor: ns-resize; }
.iwb-full-resize-b { bottom: 0; left: 0; right: 0; height: 7px; cursor: ns-resize; }
/* 边缘 hover 的淡入提示:只在「主动去找」时出现,静止时完全干净 */
.iwb-full-resize-r:hover, .iwb-full-resize-l:hover, .iwb-full-resize-t:hover, .iwb-full-resize-b:hover { background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); }
.iwb-fullpanel .iwb-lib-chips { flex: 0 0 auto; padding: 8px 14px 6px; border-bottom: 1px solid var(--iwb-border); }
.iwb-full-batch { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: color-mix(in srgb, var(--iwb-tint) 5%, transparent); border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
.iwb-full-batch-info { font-size: 12px; font-weight: 600; color: var(--iwb-text2); white-space: nowrap; }
.iwb-full-batch-move { width: 170px; }
.iwb-full-main { flex: 1 1 auto; min-height: 0; display: flex; }
.iwb-full-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; overflow: hidden; }
.iwb-full-left .iwb-full-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-content: start; padding-right: 2px; }
.iwb-full-collapsed { flex: 0 0 26px; border-left: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--iwb-text2); font-size: 12px; writing-mode: vertical-rl; }
.iwb-full-collapsed:hover { color: var(--iwb-text); }
.iwb-pcard-full { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.iwb-pcard-full:hover { border-color: var(--iwb-border2); }
.iwb-pcard-selected { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2); }
.iwb-pcard-check { accent-color: var(--iwb-text); margin-right: 4px; }
.iwb-full-split { flex: 0 0 4px; cursor: col-resize; background: var(--iwb-border); transition: background 0.15s; }
.iwb-full-split:hover { background: var(--iwb-text2); }
.iwb-full-edit { flex: 0 0 auto; border-left: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; flex-direction: column; min-height: 0; }
.iwb-full-edit-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
.iwb-full-editor { overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.iwb-full-editor { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.iwb-full-editor-title { font-size: 13px; font-weight: 700; color: var(--iwb-text); }
.iwb-full-editor-text { min-height: 220px; resize: vertical; }
.iwb-full-editor-empty { color: var(--iwb-text2); font-size: 12px; justify-content: center; align-items: center; height: 100%; text-align: center; }
.iwb-btn-starred { color: var(--iwb-text); }
/* 提示词卡片按钮:无底色、浅灰图标 */
.iwb-pcard .iwb-btn { background: transparent; border: none; padding: 2px 4px; color: var(--iwb-text2); opacity: 0.7; box-shadow: none; }
.iwb-pcard .iwb-btn:hover { opacity: 1; color: var(--iwb-text); background: transparent; }
.iwb-pcard .iwb-btn-starred { color: var(--iwb-text); opacity: 1; }
/* 搜索高亮 */
.iwb-hl { background: color-mix(in srgb, var(--iwb-tint) 14%, transparent); color: var(--iwb-text); border-radius: 2px; font-weight: 700; }
/* 面板卡片:窄面板单列,加宽自动多列 */
.iwb-lib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; align-content: start; }
.iwb-ptext-clickable { cursor: pointer; }
.iwb-ptext-clickable:hover { color: var(--iwb-text); }
.iwb-ptext-open { -webkit-line-clamp: unset; overflow: visible; }
.iwb-pcard-foot { margin-top: 6px; align-items: center; }
.iwb-pcard { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 8px 10px; background: var(--iwb-panel); }
.iwb-pname { font-weight: 600; font-size: 12px; }
.iwb-pbtns { margin-left: auto; display: flex; gap: 4px; }
.iwb-ptext { font-size: 11px; color: var(--iwb-text2); margin-top: 4px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iwb-tag { display: inline-block; background: color-mix(in srgb, var(--iwb-tint) 7%, transparent); color: var(--iwb-text2); border-radius: 4px; font-size: 10px; padding: 1px 6px; margin: 3px 4px 0 0; }
.iwb-pedit { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.iwb-tasks { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.iwb-gen-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.iwb-gen-title { font-weight: 600; }
/* 2026-10-30:参数区**不再叠一层灰底卡片**(用户反馈「三层边缘、左边间距不统一」)。
现在只有两层:节点卡 + 选择框;左右内边距统一由 .iwb-node-body(10px) 提供,
按钮/信息行/任务行/标题全部左对齐。 */
.iwb-gen-settings { margin-top: 8px; border: none; border-bottom: 1px solid var(--iwb-border); border-radius: 0; padding: 4px 0 8px; margin-bottom: 4px; background: transparent; display: flex; flex-direction: column; gap: 4px; }
.iwb-task { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; background: var(--iwb-layer); }
.iwb-task-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.iwb-task-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text); }
.iwb-task-title-text { font-size: 11px; font-weight: 400; color: var(--iwb-text2); margin-left: 3px; }
.iwb-task-refs { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.iwb-task-ref { object-fit: cover; border-radius: 5px; border: 1px solid var(--iwb-border); cursor: zoom-in; }
.iwb-ref-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.iwb-ref-single { width: 100%; min-height: 60px; max-height: 340px; object-fit: contain; object-position: center; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: move; }
.iwb-history { position: absolute; left: 12px; right: 12px; bottom: 46px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; z-index: 30; box-shadow: 0 8px 30px rgba(0,0,0,0.25); padding: 8px 12px; max-height: 180px; display: flex; flex-direction: column; }
.iwb-history-grid { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px; flex: 1; }
.iwb-history-item { position: relative; flex: 0 0 110px; }
.iwb-history-item img { width: 110px; height: 82px; object-fit: contain; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: pointer; }
.iwb-history-actions { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; gap: 4px; justify-content: center; opacity: 0; transition: opacity 0.15s; }
.iwb-history-item:hover .iwb-history-actions { opacity: 1; }
.iwb-history-actions .iwb-btn { font-size: 10px; padding: 1px 5px; background: var(--iwb-panel); text-decoration: none; }
.iwb-modal-sm { width: 460px; }
.iwb-pickrow { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; font-size: 12px; }
.iwb-picktext { color: var(--iwb-text); line-height: 1.4; word-break: break-all; }
.iwb-ref-upload { flex: 1 1 auto; min-height: 110px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--iwb-border2); border-radius: 8px; color: var(--iwb-text2); font-size: 13px; cursor: move; }
.iwb-ref-upload:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-ref-emptybox { flex: 1 1 auto; min-height: 110px; display: flex; flex-direction: column; gap: 6px; }
.iwb-ref-url-row { display: flex; gap: 5px; align-items: center; }
.iwb-ref-url-row .iwb-ref-upload-link { background: var(--iwb-layer); border-color: var(--iwb-border); color: var(--iwb-text2); }
.iwb-ref-upload-link:hover { background: color-mix(in srgb, var(--iwb-brand) 10%, var(--iwb-layer)); border-color: var(--iwb-border2); color: var(--iwb-text); }
.iwb-ref-url-input { min-width: 0; flex: 1 1 auto; font-size: 11px; }
.iwb-ref-url-current { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text2); font-size: 10px; }
.iwb-ref-show { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.iwb-ref-miniactions .iwb-btn { font-size: 10px; padding: 1px 6px; text-decoration: none; }
.iwb-task-ref { width: 28px; height: 28px; }
.iwb-refmini { position: relative; }
.iwb-refmini-empty { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--iwb-border); background: var(--iwb-layer); display: flex; align-items: center; justify-content: center; color: #9aa1ad; }
.iwb-refmini-empty .iwb-refmini-warn { display: inline-flex; }
.iwb-refmini .iwb-refmini-idx { position: absolute; left: -3px; top: -3px; background: var(--iwb-brand); color: var(--iwb-on-brand); font-size: 8px; min-width: 12px; height: 12px; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 0 2px; z-index: 2; }
/* ---- v2 P2:图片传输设置 + 出图清理 ---- */
.iwb-section { border-top: 1px solid var(--iwb-border); margin-top: 16px; padding-top: 12px; }
.iwb-section-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.iwb-section-sub { font-weight: 600; font-size: 12px; margin: 10px 0 6px; color: var(--iwb-text2); }
.iwb-mode-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.iwb-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--iwb-text); }
.iwb-hdrbox { min-height: 54px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; resize: vertical; }
/* ---- v2 P3:4-Tab 设置 ---- */
.iwb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--iwb-border); padding: 8px 12px 0; }
.iwb-tab { border-bottom: none; }
.iwb-tab-active { border-color: var(--iwb-border); }
.iwb-addrrow { gap: 6px; margin-bottom: 6px; }
.iwb-speed { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; margin: 6px 0; background: var(--iwb-layer); }
.iwb-speed-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 11px; }
.iwb-speed-ms { flex: 0 0 74px; font-weight: 600; }
.iwb-speed-fast { color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-speed-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--iwb-text2); }
.iwb-modellist { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0; }
.iwb-modelrow { padding: 2px 8px; border: 1px solid var(--iwb-border); border-radius: 6px; background: var(--iwb-layer); }
/* ---- v2 P4:提示词库分组/管理/拖拽 ---- */
.iwb-tag-group { background: color-mix(in srgb, var(--iwb-tint) 4%, transparent); color: var(--iwb-text2); }
.iwb-pcard { cursor: grab; }
.iwb-pcard:active { cursor: grabbing; }
/* ---- v2 P6:节点编组 ---- */
/* 节点组外框:pointer-events 改为 auto —— 框内空白处即可整组拖动(节点在框之上,点中节点仍是节点自己的交互) */
/* 节点组外框:5% 透明底色 + 1px 实线描边(v3.24.25 曾去掉边框,但纯 5% 底在画布上几乎看不出组范围;
v3.24.27 补回**实线**细边,颜色跟 --iwb-text 混出 32% —— 亮色下是浅灰线、暗色下是深灰线,两主题都可见,
且比虚线安静,不与节点边框/连线抢视线)。hover/整组选中时逐步加深,表达层级。 */
.iwb-group { position: absolute; border: 1px solid color-mix(in srgb, var(--iwb-tint) 50%, transparent); border-radius: 18px; pointer-events: auto; cursor: move; z-index: 0; background: color-mix(in srgb, var(--iwb-brand) 5%, transparent); }
.iwb-group:hover { border-color: color-mix(in srgb, var(--iwb-tint) 64%, transparent); background: color-mix(in srgb, var(--iwb-brand) 6%, transparent); }
.iwb-group-sel { border-color: color-mix(in srgb, var(--iwb-tint) 78%, transparent); background: color-mix(in srgb, var(--iwb-brand) 7%, transparent); }
/* 缩放手柄:默认隐藏,hover 或整组选中时显示(触屏靠"点一下框 = 选中整组"进入选中态) */
.iwb-group-handle { position: absolute; width: 9px; height: 9px; background: var(--iwb-panel); border: 2px solid var(--iwb-brand); border-radius: 2px; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 6; }
.iwb-group:hover .iwb-group-handle, .iwb-group-sel .iwb-group-handle { pointer-events: auto; opacity: 1; }
.iwb-gh-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.iwb-gh-n { left: 50%; top: -6px; margin-left: -4.5px; cursor: ns-resize; }
.iwb-gh-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.iwb-gh-e { right: -6px; top: 50%; margin-top: -4.5px; cursor: ew-resize; }
.iwb-gh-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.iwb-gh-s { left: 50%; bottom: -6px; margin-left: -4.5px; cursor: ns-resize; }
.iwb-gh-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.iwb-gh-w { left: -6px; top: 50%; margin-top: -4.5px; cursor: ew-resize; }
/* 操作栏:高度固定 40px(与 app.js 的 GROUP_BAR_H 同步);整条栏(含图标周围留白)都是整组拖拽热区。
v3.24.25 改白底黑字(原 --iwb-brand 深灰底白字在浅色画布上一块深色很跳);
v3.24.26 整体再放大一档(36→40 / 组名 14→16)+ 描边提到 --iwb-border2:
原来 1px --iwb-border(var(--iwb-border)) 与画布底色(var(--iwb-canvas-bg))几乎同色,白药丸等于没有边。 */
.iwb-group-bar { position: absolute; top: -10px; left: 10px; display: flex; align-items: center; gap: 8px; height: 40px; box-sizing: border-box; background: var(--iwb-panel); color: var(--iwb-text); border: 1px solid var(--iwb-border2); border-radius: 11px; padding: 0 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); pointer-events: auto; cursor: move; z-index: 5; }
/* 组名:图标 18px + 名称 16px/600 + 节点数 14px 灰(主次分明,原来全塞在一串 12px 加粗里) */
.iwb-group-name { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--iwb-text); white-space: nowrap; user-select: none; }
.iwb-group-name .iwb-ic { width: 18px; height: 18px; flex: 0 0 auto; color: var(--iwb-text2); }
/* 节点数:比组名小两档并偏灰,且与组名之间多留 2px(总 10px)—— 否则 16px 名字 + 14px 数字会读成「分组 1 2 节点」一整串 */
.iwb-group-count { font-size: 13px; font-weight: 400; color: var(--iwb-text2); margin-left: 2px; }
/* 组名就地编辑框(双击组名进入) */
.iwb-group-bar .iwb-group-name-input { width: 148px; height: 28px; padding: 0 9px; font-size: 14px; font-weight: 600; color: var(--iwb-text); background: var(--iwb-layer); border: 1px solid var(--iwb-border2); border-radius: 8px; outline: none; }
.iwb-group-bar .iwb-group-name-input::placeholder { color: var(--iwb-text2); }
/* v3.24.28:收藏 / 复制 / 解组三个按钮已移除 —— 它们与多选「节点组」气泡完全重复,
统一由气泡提供(气泡在整组选中时本来就出现)。操作栏只留「组图标 + 组名 + 节点数」,
整条栏仍是整组拖拽热区。原先为分隔标题区/操作区画的 .iwb-group-sep 与按钮样式一并删除。 */
/* 选中态:去掉虚线框后,唯一的强提示落在操作栏描边(底色 7% 同时在) */
.iwb-group-sel .iwb-group-bar { border-color: color-mix(in srgb, var(--iwb-tint) 34%, transparent); box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.iwb-lib-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--iwb-border); padding: 6px 12px 0; }
.iwb-lib-tab { background: transparent; border: 1px solid transparent; border-bottom: none; padding: 6px 12px; border-radius: 8px 8px 0 0; font-size: 12px; color: var(--iwb-text2); cursor: pointer; }
.iwb-lib .iwb-pcard { margin-bottom: 8px; }
/* ---- v2 P8:增强 ---- */
.iwb-history-more { text-align: center; padding: 6px 0; }
.iwb-help { gap: 10px; }
.iwb-help-row { font-size: 14px; line-height: 1.6; }
.iwb-help-row b { color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; margin-right: 6px; }
/* 设置面板:字号 +2、间距加大,方便阅读 */
.iwb-settings-modal .iwb-modal-head { padding: 14px 20px; }
.iwb-settings-modal .iwb-modal-body { font-size: 14px; gap: 16px; padding: 18px 22px; }
.iwb-settings-modal .iwb-toolbar-title { font-size: 16px; }
.iwb-settings-modal .iwb-tabs { padding: 8px 20px 0; }
.iwb-settings-modal .iwb-tab { padding: 8px 16px; font-size: 13px; }
.iwb-settings-modal .iwb-input { font-size: 14px; padding: 7px 11px; background: var(--iwb-panel); border-color: var(--iwb-border); }
/* 设置弹窗固定高度:切换 Tab 不改变窗口大小;内容区内部滚动 */
.iwb-help-modal { width: 640px; }
.iwb-settings-modal .iwb-label { font-size: 13.5px; margin: 8px 0 4px; }
/* 数据备份与恢复弹窗 */
.iwb-backup-modal { width: 560px; }
/* 嵌入设置面板时:不要外框、不要固定宽度(用户反馈「不要框住了」) */
.iwb-backup-embedded { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 760px; }
.iwb-backup-embedded .iwb-modal-body { display: flex; flex-direction: column; gap: 14px; padding: 0; }
.iwb-backup-modal .iwb-modal-body { font-size: 14px; gap: 14px; }
.iwb-backup-sec { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border: 1px solid var(--iwb-border); border-radius: 10px; background: color-mix(in srgb, var(--iwb-layer) 30%, transparent); }
.iwb-backup-sec-title { font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 13px; }
.iwb-backup-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; padding: 2px 0; }
.iwb-backup-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--iwb-brand); cursor: pointer; }
.iwb-backup-item-name { flex: 0 0 auto; }
.iwb-backup-item-count { margin-left: auto; color: var(--iwb-text2); font-size: 12px; }
.iwb-backup-all .iwb-backup-item-name { font-weight: 700; }
.iwb-backup-keys { padding-left: 22px; }
.iwb-backup-keys .iwb-backup-item-name { color: var(--iwb-err); }
.iwb-warn { color: var(--iwb-err); }
.iwb-backup-actions { display: flex; gap: 8px; margin-top: 4px; }
.iwb-backup-actions .iwb-btn { font-size: 13px; }
.iwb-backup-file { font-size: 12.5px; color: var(--iwb-text2); padding: 2px 0 4px; }
.iwb-backup-note { font-size: 12px; color: var(--iwb-text2); line-height: 1.6; }
.iwb-settings-modal .iwb-hint { font-size: 13.5px; }
.iwb-settings-modal .iwb-btn { font-size: 13.5px; }
.iwb-settings-modal .iwb-section-title { font-size: 15px; margin: 6px 0 8px; }
.iwb-settings-modal .iwb-section-sub { font-size: 13.5px; }
.iwb-settings-modal .iwb-provider-card { padding: 12px 14px; gap: 8px; }
.iwb-settings-modal .iwb-row { gap: 8px; }
.iwb-settings-modal .iwb-keyrow, .iwb-settings-modal .iwb-speed-row, .iwb-settings-modal .iwb-mode-row { padding: 5px 0; gap: 8px; }
.iwb-settings-modal .iwb-modellist .iwb-check { font-size: 13.5px; }
.iwb-toolbar { overflow: visible; }
.iwb-node-fixed .iwb-node-body { display: flex; flex-direction: column; overflow: visible; min-height: 0; }
.iwb-node-fixed .iwb-textarea { flex: 1 1 auto; max-height: none; min-height: 56px; height: auto !important; }
/* ---- v3:toast 提示 ---- */
.iwb-toast { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); z-index: 200; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 10px; padding: 10px 18px; box-shadow: 0 8px 30px rgba(0,0,0,0.3); font-size: 13px; font-weight: 600; animation: iwb-fadein 0.18s ease; }
.iwb-toast-ok { border-left: 3px solid var(--iwb-brand); }
.iwb-toast-err { border-left: 3px solid var(--iwb-err); }
@keyframes iwb-fadein { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* ---- v3:左侧多工作台 ---- */
.iwb-wsrail { position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; background: var(--iwb-panel); border-right: 1px solid var(--iwb-border); z-index: 25; display: flex; flex-direction: column; align-items: stretch; transition: width 0.15s; }
.iwb-wsrail-title { align-items: center; gap: 4px; padding: 14px 12px; font-weight: 800; font-size: 18px; color: var(--iwb-text); border-bottom: 1px solid var(--iwb-border); cursor: default; user-select: none; white-space: nowrap; flex: 0 0 auto; justify-content: center; }
.iwb-wsrail-title:hover { background: var(--iwb-hover); }
/* 展开态标题行右侧 ⋯ 三点菜单(Portal 挂 body + fixed 定位:右侧展开不切割、层级高于画布) */
.iwb-wsrail-title-more-wrap { position: relative; margin-left: auto; display: inline-flex; align-items: center; }
.iwb-ws-title-more { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; }
.iwb-ws-more { position: fixed; z-index: 310; min-width: 210px; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 2px; }
.iwb-ws-more .iwb-ctx-item { white-space: nowrap; }
.iwb-ws-more-ver { font-size: 11px; color: var(--iwb-text2); padding: 4px 10px 2px; user-select: none; }
.iwb-wsrail-title-more .iwb-ws-title-more { color: var(--iwb-brand-text, var(--iwb-brand)); }
/* 展开状态下顶部标题字号翻倍(含内部文字 span,覆盖 .iwb-btn-text 固定 12px) */
.ws-expanded .iwb-wsrail-title { font-size: 18px; }
.ws-expanded .iwb-wsrail-title .iwb-btn-text { font-size: inherit; }
.iwb-wsrail-label { font-size: 10px; color: var(--iwb-text2); font-weight: 700; letter-spacing: 1px; margin: 2px 2px 4px; user-select: none; }
.iwb-wsrail-foot { flex: 0 0 auto; border-top: 1px solid var(--iwb-border); padding: 10px; flex-direction: column; gap: 8px; }
.iwb-wsrail-footrow { display: flex; gap: 6px; }
.iwb-wsrail-footrow .iwb-btn { flex: 1 1 auto; justify-content: center; font-size: 11px; }
/* 组合来源停用标记 */
.iwb-combine-src-off { color: var(--iwb-text2); opacity: 0.55; text-decoration: line-through; }
/* 页面加载动画:logo 弹跳 + 进度条光斑 + 淡出 */
.iwb-splash { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--iwb-bg); transition: opacity 0.5s ease; }
.iwb-splash-fade { opacity: 0; pointer-events: none; }
.iwb-splash-logo { width: 54px; height: 54px; color: var(--iwb-brand-text, var(--iwb-brand)); animation: iwb-splash-bounce 1.2s ease-in-out infinite; }
.iwb-splash-title { font-size: 18px; font-weight: 700; color: var(--iwb-text); letter-spacing: 1px; }
.iwb-splash-sub { font-size: 12px; color: var(--iwb-text2); }
.iwb-splash-bar { width: 240px; height: 5px; border-radius: 3px; background: var(--iwb-layer); overflow: hidden; position: relative; border: 1px solid var(--iwb-border); }
.iwb-splash-bar-fill { position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 3px; background: linear-gradient(90deg, var(--iwb-brand), color-mix(in srgb, var(--iwb-brand) 55%, #ffffff)); animation: iwb-splash-load 1.1s ease-in-out infinite; }
@keyframes iwb-splash-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }
@keyframes iwb-splash-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* 节点停用(M 键):不参与执行,半透明 + 灰色虚线边 */
.iwb-node-disabled { opacity: 0.55; filter: grayscale(0.35); }
.iwb-node-disabled .iwb-node-head { background: color-mix(in srgb, var(--iwb-layer2) 60%, transparent); }
.iwb-node-disabled .iwb-port { opacity: 0.45; }
.iwb-canvas { transition: left 0.15s; }
.iwb-toolbar-wrap { position: absolute; left: 0; right: 60px; bottom: 14px; display: flex; justify-content: center; pointer-events: none; z-index: 10; }
.iwb-overlay.has-minimap .iwb-toolbar-wrap { right: 244px; }
/* ---- v3:工具栏分组 ---- */
.iwb-tgroup { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 8px; background: var(--iwb-layer); font-size: 10px; color: var(--iwb-text2); }
.iwb-tgroup:empty { display: none; }
.iwb-task-count { display: inline-flex; align-items: center; }
.iwb-toolbar { gap: 6px; }
.iwb-toolbar .iwb-btn { padding: 4px 7px; }
/* ---- v3.1:参数行压缩 / 全屏编辑弹窗 / 面板互斥 ---- */
.iwb-paramrow { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.iwb-plabel { flex: 0 0 64px; font-size: 11px; color: var(--iwb-text2); }
.iwb-paramrow .iwb-input { flex: 1 1 auto; min-width: 0; }
.iwb-modal-lg { width: min(900px, 94vw); height: min(84vh, 760px); }
.iwb-modal-lg .iwb-modal-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.iwb-modal-lg .iwb-textarea { flex: 1 1 auto; min-height: 200px; }
/* ---- 参考图节点:图片随框自适应 / 底部操作栏 / 固定高度填满 ---- */
.iwb-ref-body { display: flex; flex-direction: column; gap: 6px; min-height: 0; position: relative; }
.iwb-ref-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.iwb-node-fixed .iwb-ref-single { flex: 1 1 auto; min-height: 0; max-height: none; height: auto; }
.iwb-node-fixed .iwb-ref-show { flex: 1 1 auto; min-height: 0; }
/* ---- 右侧统一面板抽屉(提示词库 / 节点组 / 图片历史) ---- */
.iwb-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; background: var(--iwb-panel); border-left: 1px solid var(--iwb-border); z-index: 22; display: flex; flex-direction: column; }
.iwb-drawer-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
.iwb-drawer-tab { background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--iwb-text2); cursor: pointer; white-space: nowrap; }
.iwb-drawer-tab:hover { color: var(--iwb-text); }
.iwb-drawer-tab-active { background: var(--iwb-layer); border-color: var(--iwb-border); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
.iwb-drawer-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.iwb-drawer-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 21; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-right: none; border-radius: 8px 0 0 8px; padding: 12px 5px; cursor: pointer; font-size: 12px; color: var(--iwb-text2); box-shadow: -4px 0 12px rgba(0,0,0,0.1); letter-spacing: 2px; }
.iwb-drawer-toggle:hover { color: var(--iwb-brand-text, var(--iwb-brand)); }
/* 嵌入抽屉时面板填满 */
.iwb-lib-embedded, .iwb-groups-embedded { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* 节点组卡片:删除按钮默认隐藏,悬停卡片时显示 */
.iwb-groups-embedded .iwb-pcard .iwb-pbtns { visibility: hidden; }
.iwb-groups-embedded .iwb-pcard:hover .iwb-pbtns { visibility: visible; }
.iwb-groups-embedded .iwb-pcard:focus-within .iwb-pbtns { visibility: visible; }
/* 节点组卡片删除按钮:红色醒目(不受浅灰卡片按钮规则影响) */
.iwb-groups-embedded .iwb-pcard .iwb-btn-danger { color: var(--iwb-err); opacity: 1; }
.iwb-groups-embedded .iwb-pcard .iwb-btn-danger:hover { color: var(--iwb-err); opacity: 1; background: transparent; }
/* 节点组卡片:双击标题原位置改名(编辑态高亮、禁拖拽光标) */
.iwb-pcard-editing { border-color: var(--iwb-brand); box-shadow: 0 0 0 1px var(--iwb-brand); cursor: text; }
.iwb-pcard-editing:active { cursor: text; }
.iwb-pname-input { font-size: 12px; font-weight: 600; padding: 2px 6px; min-width: 0; }
.iwb-history-embedded { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px; gap: 8px; overflow: hidden; }
.iwb-history-embedded .iwb-history-grid { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; display: flex; align-items: flex-start; gap: 8px; padding: 2px 2px 8px; }
.iwb-history-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.iwb-history-embedded .iwb-history-item { position: relative; flex: none; width: 100%; }
.iwb-history-embedded .iwb-history-item img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); cursor: pointer; }
/* ---- SVG 图标 / 底部工具栏 ---- */
.iwb-ic { width: 16px; height: 16px; flex: 0 0 auto; }
.iwb-btn-primary .iwb-ic { width: 15px; height: 15px; }
.iwb-btn-text { font-size: 12px; }
.iwb-wsrail-foot .iwb-btn .iwb-ic { width: 14px; height: 14px; }
/* ---- 图库管理操作(点选后出现) ---- */
.iwb-history-manage-tools { display: inline-flex; align-items: center; gap: 4px; }
/* 工具栏放大 */
.iwb-toolbar-bottom { position: static; padding: 10px 14px; gap: 8px; width: auto; max-width: 100%; pointer-events: auto; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.iwb-toolbar-bottom .iwb-btn { padding: 7px 10px; background: transparent !important; border: none !important; color: var(--iwb-text2); opacity: 0.75; transition: opacity 0.12s, color 0.12s; }
.iwb-toolbar-bottom .iwb-btn:hover { opacity: 1; color: var(--iwb-text); }
.iwb-toolbar-bottom .iwb-btn:active { opacity: 1; color: var(--iwb-text); }
.iwb-toolbar-bottom .iwb-btn:disabled { opacity: 0.32; }
/* 2026-11-23 清账:这里原有两条规则引用 `--iwb-accent`(全仓从未定义),已删除。
复核结论比原判断更彻底 —— `.iwb-btn-active` 与 `.iwb-layout-lock-state` 这两个类
**从 fork 快照起就没有任何 JS 生产者**(git log -S 可查),是上游遗留的死选择器,
所以不是「按钮高亮失效的 bug」,而是「永不生效的规则」。要真做工具栏选中态请显式加类并走 token。 */
.iwb-toolbar-bottom .iwb-ic { width: 18px; height: 18px; }
.iwb-toolbar-bottom .iwb-tgroup { padding: 4px 8px; font-size: 11px; background: transparent !important; color: var(--iwb-text2); }
/* ---- 统一悬停说明(data-tip 自定义 tooltip) ---- */
[data-tip] { position: relative; }
[data-tip]::after {
content: attr(data-tip);
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: var(--iwb-text);
color: var(--iwb-bg);
padding: 4px 9px;
border-radius: 6px;
font-size: 11px;
font-weight: 500;
line-height: 1.3;
white-space: nowrap;
z-index: 80;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: opacity 0.12s, visibility 0.12s;
box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
[data-tip]:hover::after { opacity: 1; visibility: visible; }
.iwb-node [data-tip]::after { bottom: auto; top: calc(100% + 6px); }
.iwb-toolbar-bottom [data-tip]::after { bottom: calc(100% + 8px); }
/* 节点气泡操作栏(2026-10-30):气泡在节点上方 ⇒ 提示朝上;气泡翻到节点下方 ⇒ 提示朝下。
禁用按钮默认收不到鼠标事件,但「编组/解组/下载」常态就是禁用的 —— 恰恰最需要提示解释原因,
所以给禁用态放开 pointer-events(点击仍是禁用的,只恢复 hover 命中)。 */
.iwb-node-floatbar [data-tip]::after { bottom: calc(100% + 8px); }
.iwb-node-floatbar.iwb-node-floatbar-below [data-tip]::after { bottom: auto; top: calc(100% + 8px); }
.iwb-node-floatbar button:disabled { pointer-events: auto; }
/* ---- 滚动条(全站):白底 → 浅灰底;thumb 中灰,亮暗主题自适应(v3.1.0 首页协调) ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--iwb-bg) 70%, var(--iwb-canvas-bg) 30%); }
::-webkit-scrollbar-thumb { background: var(--iwb-border2); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--iwb-text2) 70%, transparent); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in srgb, var(--iwb-bg) 70%, var(--iwb-canvas-bg) 30%); }
/* ---- 统一按钮 / 输入框设计 ---- */
.iwb-btn {
display: inline-flex;
align-items: center;
gap: 5px;
background: var(--iwb-layer2);
border: 1px solid var(--iwb-border);
color: var(--iwb-text);
border-radius: var(--rd);
padding: 5px 10px;
font-size: 12px;
cursor: pointer;
transition: border-color var(--tr-fast), background var(--tr-fast), color var(--tr-fast), box-shadow var(--tr-fast);
}
.iwb-btn:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-btn:active { transform: translateY(1px); }
.iwb-btn:focus-visible { outline: var(--iwb-focus-ring); outline-offset: 2px; }
/* D8 补齐:菜单项 / 右键菜单项 / 停靠栏按钮 / 下拉,此前用鼠标没问题、纯键盘走查全靠猜 */
.iwb-ctx-item:focus-visible,
.iwb-home-menu-item:focus-visible,
.iwb-dock-btn:focus-visible,
.iwb-nav-item:focus-visible,
.iwb-wsrail-title:focus-visible { outline: var(--iwb-focus-ring); outline-offset: -2px; }
.iwb-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.iwb-btn-primary { background: var(--iwb-brand); border-color: var(--iwb-brand); color: var(--iwb-on-brand); }
.iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-brand) 85%, #000); border-color: var(--iwb-brand); color: var(--iwb-on-brand); }
/* 常驻选中态(画布工具组的「当前工具」):底栏按钮本身是「无边框 + 透明底」,所以这里用淡填充药丸表示
「当前工具」,与 :hover 的瞬时反馈区分开。!important 是必须的——上面 .iwb-btn 的 background/border 就是 !important。 */
.iwb-toolbar-bottom .iwb-btn-on { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent) !important; border-radius: 8px; color: var(--iwb-text) !important; opacity: 1 !important; }
.iwb-btn-sm { padding: 3px 7px; font-size: 11px; }
.iwb-btn-danger { color: var(--iwb-err); }
.iwb-btn-danger:hover { border-color: var(--iwb-err); color: var(--iwb-err); }
.iwb-input, .iwb-textarea {
width: 100%;
box-sizing: border-box;
outline: none;
background: var(--iwb-layer2);
border: 1px solid var(--iwb-border);
border-radius: var(--rd);
color: var(--iwb-text);
font-size: 12px;
padding: 6px 9px;
transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.iwb-textarea { resize: none; line-height: 1.5; }
.iwb-textarea-plain { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.iwb-textarea-plain:focus { border-color: transparent; box-shadow: none; }
.iwb-input:focus, .iwb-textarea:focus { border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 20%, transparent); }
/* 输入框提示文字统一淡色(层级:placeholder < 输入值 < 标签) */
.iwb-input::placeholder, .iwb-textarea::placeholder { color: color-mix(in srgb, var(--iwb-text) 34%, transparent); opacity: 1; }
/* 设置面板:单行输入框/选择框限宽,不横向布满(表单化);行内组合(grow/num/keyname)与多行文本保持弹性 */
.iwb-settings-modal .iwb-input:not(.iwb-grow):not(.iwb-num):not(.iwb-keyname):not(.iwb-llm-keyname):not(.iwb-hdrbox) { max-width: 460px; }
/* 宽度/弹性覆盖(必须在 .iwb-input 定义之后,否则 width:100% 覆盖固定宽度类导致排版错位) */
.iwb-grow { flex: 1 1 0%; min-width: 0; }
.iwb-num { width: 76px; min-width: 76px; flex: none; }
.iwb-keyname { flex: 0 0 110px; min-width: 110px; }
.iwb-addr-tag { flex: 0 0 26px; text-align: right; }
.iwb-drawer-tab { display: inline-flex; align-items: center; gap: 5px; }
.iwb-wsrail-title-text { display: inline-flex; align-items: center; gap: 6px; }
.iwb-wsrail-title .iwb-ic { width: 20px; height: 20px; }
.iwb-wsrail-label { display: flex; align-items: center; gap: 5px; }
.iwb-wsrail-foot .iwb-btn { border-radius: 8px; background: color-mix(in srgb, var(--iwb-layer) 42%, transparent); border-color: color-mix(in srgb, var(--iwb-border2) 40%, transparent); }
.iwb-drawer-toggle { align-items: center; gap: 4px; writing-mode: initial; }
/* 窄屏时压缩工具栏避免换行 */
@media (max-width: 760px) {
.iwb-toolbar-bottom { padding: 6px 8px; gap: 4px; }
.iwb-toolbar-bottom .iwb-btn { padding: 4px 6px; }
.iwb-toolbar-bottom .iwb-ic { width: 15px; height: 15px; }
.iwb-toolbar-bottom .iwb-tgroup { padding: 2px 4px; font-size: 10px; }
}
/* ---- 右侧竖向面板栏(与左侧栏统一:无阴影) ---- */
.iwb-rightrail { position: absolute; right: 0; top: 0; bottom: 0; width: 48px; background: transparent; z-index: 24; display: flex; flex-direction: column; align-items: center; padding: 12px 4px; gap: 8px; }
.iwb-rail-tab { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 40px; padding: 9px 2px; border-radius: 8px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); color: var(--iwb-text2); font-size: 12px; cursor: pointer; }
.iwb-rail-tab:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-rail-tab-active { border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 14%, transparent); color: var(--iwb-text); font-weight: 700; }
.iwb-rail-tab .iwb-ic { width: 16px; height: 16px; }
.iwb-rail-tab .iwb-btn-text { writing-mode: vertical-rl; font-size: 11px; letter-spacing: 2px; }
.iwb-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); flex: 0 0 auto; }
.iwb-drawer-toggle { display: none; }
.iwb-ws-headicon { flex: 0 0 26px; width: 26px; height: 24px; padding: 0; justify-content: center; background: transparent !important; border: none !important; color: var(--iwb-text2); opacity: 0.75; transition: opacity 0.12s, color 0.12s; }
.iwb-ws-headicon:hover { opacity: 1; color: var(--iwb-text); }
.iwb-ws-headicon:active { opacity: 1; color: var(--iwb-text); }
.iwb-ws-headicon.iwb-btn-primary { background: transparent !important; border: none !important; color: var(--iwb-brand-text, var(--iwb-brand)); opacity: 1; }
.iwb-ws-headicon .iwb-ic { width: 14px; height: 14px; }
.iwb-toolbar-bottom .iwb-btn-fit .iwb-ic { width: 15px; height: 15px; }
.iwb-toolbar-bottom .iwb-btn-fit { padding: 7px 7px; }
/* ---- 连线拖拽反馈:可连接绿框 / 不可连接红框 ---- */
.iwb-node.iwb-conn-ok { border-color: var(--iwb-ok) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-ok) 45%, transparent), 0 6px 20px rgba(0,0,0,0.25) !important; }
.iwb-node.iwb-conn-bad { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-err) 55%, transparent), 0 6px 20px rgba(0,0,0,0.25) !important; }
.iwb-conn-hint { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 6; padding: 4px 6px; border-radius: 5px; color: var(--iwb-err); background: rgba(254, 226, 226, 0.96); border: 1px solid rgba(239, 68, 68, 0.35); font-size: 11px; line-height: 1.25; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwb-command-mask { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding-top: 13vh; background: rgba(10, 12, 18, 0.32); }
.iwb-command { width: min(560px, calc(100vw - 32px)); max-height: min(560px, 72vh); overflow: hidden; background: var(--iwb-panel); border: 1px solid var(--iwb-border2); border-radius: 12px; box-shadow: 0 18px 60px rgba(0,0,0,.32); display: flex; flex-direction: column; }
.iwb-command-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--iwb-border); }
.iwb-command-icon { color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 11px; font-weight: 800; }
.iwb-command-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--iwb-text); font-size: 14px; }
.iwb-command-list { overflow-y: auto; padding: 6px; }
.iwb-command-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text); text-align: left; cursor: pointer; font-size: 13px; }
.iwb-command-item:hover, .iwb-command-item:focus { outline: 0; background: var(--iwb-layer2); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-command-item-active { outline: 0; background: var(--iwb-layer2); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-command-item .iwb-ic { width: 16px; height: 16px; flex: 0 0 auto; }
.iwb-command-empty { padding: 22px 12px; text-align: center; color: var(--iwb-text2); font-size: 12px; }
.iwb-command-foot { padding: 8px 14px; border-top: 1px solid var(--iwb-border); color: var(--iwb-text2); font-size: 11px; }
.iwb-edge-temp.iwb-edge-ok { stroke: var(--iwb-ok) !important; }
.iwb-edge-temp.iwb-edge-bad { stroke: var(--iwb-err) !important; }
/* 任务失败详情 */
.iwb-task-err-toggle { display: block; width: 100%; text-align: left; margin-top: 6px; font-size: 11px; color: var(--iwb-err); background: color-mix(in srgb, var(--iwb-err) 8%, transparent); border: 1px solid color-mix(in srgb, var(--iwb-err) 35%, transparent); border-radius: 5px; cursor: pointer; padding: 4px 6px; }
.iwb-task-err-toggle:hover { background: color-mix(in srgb, var(--iwb-err) 14%, transparent); }
.iwb-task-err { margin-top: 6px; border: 1px solid color-mix(in srgb, var(--iwb-err) 40%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--iwb-err) 6%, transparent); padding: 6px 8px; }
.iwb-task-errline { font-size: 11px; color: var(--iwb-err); word-break: break-all; line-height: 1.6; padding: 1px 0; }
/* 失败分类颜色:连接=红、资源/额度=橙、密钥=紫、服务商=红棕、其他=灰 */
.iwb-err-conn { color: var(--iwb-err); }
.iwb-err-quota { color: var(--iwb-warn); }
.iwb-err-auth { color: var(--iwb-err); } /* 鉴权失败=错误语义,紫改红 */
.iwb-err-srv { color: var(--iwb-err); }
.iwb-err-other { color: var(--iwb-text2); }
.iwb-err-unknown { color: var(--iwb-warn); font-weight: 600; }
.iwb-err-cancelled { color: var(--iwb-text2); font-weight: 600; }
/* ---- 窄屏适配(轻量) ---- */
@media (max-width: 860px) {
.iwb-drawer { width: 300px; }
/* 全屏提示词库:窄屏限制编辑区宽度、批量行可换行 */
.iwb-full-edit { max-width: 80vw; }
.iwb-full-batch { flex-wrap: wrap; }
.iwb-full-batch-move { width: 130px; }
}
@media (max-width: 720px) {
.iwb-statusbar .iwb-status-item:nth-child(3), .iwb-statusbar .iwb-status-item:nth-child(4) { display: none; }
.iwb-minimap { display: none; }
.iwb-overlay.has-minimap .iwb-toolbar-wrap { right: 24px; }
.iwb-toolbar-bottom { max-width: calc(100vw - 40px); }
/* 全屏提示词库:小屏缩小编辑区/编辑器输入高度,内容区滚动 */
.iwb-full-left { padding: 8px 10px; }
.iwb-full-editor-text { min-height: 120px; }
.iwb-full-edit { max-width: 72vw; }
.iwb-full-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
/* ---- 自定义右键菜单 ---- */
.iwb-ctxmask { position: fixed; inset: 0; background: transparent; z-index: 90; }
.iwb-ctxmenu { position: fixed; min-width: 196px; max-width: 240px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 6px; background: var(--iwb-bg-menu); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16); z-index: 91; display: flex; flex-direction: column; gap: 2px; }
/* 提示词/节点组的右键「移动到分组」菜单已 portal 到 body:需高于 .iwb-overlay(z-index:100),否则被应用层盖住 */
.iwb-ctxmenu.iwb-lib-group-menu { z-index: 270; /* 高于资源中心全窗口(.iwb-fullmask 260)、低于弹窗(300):修复提示词/节点组右键菜单被资源库窗口盖住 */ }
.iwb-ctx-title { font-size: 10px; font-weight: 700; color: var(--iwb-text2); letter-spacing: 1px; padding: 6px 10px 2px; text-transform: uppercase; }
.iwb-ctx-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: none; border-radius: 8px; background: transparent; color: var(--iwb-text); font-size: 12.5px; cursor: pointer; text-align: left; }
.iwb-ctx-item .iwb-ic { width: 14px; height: 14px; flex: 0 0 auto; color: var(--iwb-text2); }
.iwb-ctx-item:hover:not(:disabled) { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); color: var(--iwb-text); }
.iwb-ctx-item:hover:not(:disabled) .iwb-ic { color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-ctx-item:disabled { opacity: 0.38; cursor: default; }
.iwb-ctx-item.iwb-ctx-danger { color: var(--iwb-err); }
.iwb-ctx-item.iwb-ctx-danger .iwb-ic { color: var(--iwb-err); }
.iwb-ctx-item.iwb-ctx-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--iwb-err) 10%, transparent); color: var(--iwb-err); }
.iwb-ctx-sep { height: 1px; margin: 4px 6px; background: var(--iwb-border); flex: 0 0 auto; }
/* ---- 二级菜单(2026-11-19 用户要求:一级太长了)----
* 「选中操作」「该节点」两组收进子菜单,一级只留入口。纯 CSS 展开(:hover + :focus-within),
* 不占 React 状态:鼠标悬停或键盘 Tab 到入口都会展开,点击入口也会(button 获得焦点)。
* 定位:默认贴父项右侧(一级菜单永远离视口右边 ≥210px,见 app.js 的 left 夹取,放得下 200px 子菜单);
* 最后一项「该节点」用 .iwb-ctx-sub-up 改为底对齐,避免向下溢出视口。 */
.iwb-ctx-subwrap { position: relative; display: flex; flex-direction: column; }
.iwb-ctx-arrow { margin-left: auto; padding-left: 10px; font-style: normal; font-size: 10px; line-height: 1; color: var(--iwb-text2); opacity: 0.7; }
.iwb-ctx-sub { position: absolute; left: calc(100% + 6px); bottom: -6px; display: none; min-width: 200px; overflow: visible; max-height: none; }
/* 6px 缝隙也要能滑过去,否则鼠标一移就收起来了。注意子菜单必须 overflow:visible,
* 否则这条桥接用的伪元素会被 .iwb-ctxmenu 继承来的 overflow-y:auto 裁掉,等于没加。 */
.iwb-ctx-sub::before { content: ''; position: absolute; left: -8px; top: 0; width: 8px; height: 100%; }
/* 兜底:入口本身就在菜单最顶上时改用向下展开 */
.iwb-ctx-sub-down { top: -6px; bottom: auto; }
.iwb-ctx-subwrap:hover > .iwb-ctx-sub, .iwb-ctx-subwrap:focus-within > .iwb-ctx-sub { display: flex; }
/* 一级菜单开了这个类就不再裁剪:overflow-y:auto 的祖先会把绝对定位的子菜单切掉 */
.iwb-ctxmenu.iwb-ctx-noclip { overflow: visible; max-height: none; }
/* ---- 历史图片:常量可选(单击选择 / 双击放大)+ 单图操作 ---- */
/* 选中有值(iwb-history-managed)时未选图片微暗,突出已选;基础 cursor 已统一为 pointer */
.iwb-history-managed img { opacity: 0.82; }
.iwb-history-managed:hover img { opacity: 0.92; }
.iwb-history-selected img { opacity: 1; border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 55%, transparent); }
.iwb-history-check { position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.45); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.iwb-history-selected .iwb-history-check { background: var(--iwb-brand); }
.iwb-history-check .iwb-ic { width: 12px; height: 12px; }
/* ---- 生图节点:参数设置(横向一行,无标题无分类) ---- */
.iwb-gen-row { display: flex; gap: 4px; align-items: center; }
.iwb-gen-cell { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.iwb-gen-cell .iwb-input { width: auto; max-width: 100%; font-size: 15px; background-color: var(--iwb-panel); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 5px center; border: none; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.iwb-gen-cell .iwb-input:focus { outline: none; background-color: color-mix(in srgb, var(--iwb-brand) 6%, var(--iwb-panel)); }
/* ---- 任务卡:张数下拉移到右下角(状态在左) ---- */
.iwb-task-btns { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
/* 任务卡左侧有 1px 描边 + 8px 内边距,批量管理行没有 ⇒ 补 9px 让两处复选框落在同一条竖线上(2026-11-01) */
.iwb-task-bulkbar { padding-left: 9px; }
.iwb-task-check { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 auto; cursor: pointer; border-radius: 7px; margin-right: 2px; transition: background 0.12s; }
.iwb-task-check:hover { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); }
.iwb-task-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--iwb-text); }
.iwb-task-title { flex: 1 1 auto; min-width: 0; }
.iwb-task-inactive { opacity: 0.55; border-left-color: var(--iwb-border2); }
.iwb-task-inactive .iwb-task-title { text-decoration: line-through; }
.iwb-task { position: relative; overflow: hidden; }
.iwb-task-refinfo { font-size: 10px; font-weight: 400; color: var(--iwb-text-dim); margin-left: 3px; white-space: nowrap; }
.iwb-generation-spinner { position: relative; z-index: 2; display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid var(--iwb-anim-track); border-top-color: var(--iwb-anim); border-right-color: var(--iwb-anim); border-radius: 50%; animation: iwb-generation-spinner-spin 0.9s linear infinite; }
.iwb-task-count-sel { min-width: 56px; border: none; background-color: transparent; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23c8cdd6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 3px center; appearance: none; -webkit-appearance: none; -moz-appearance: none; }
@keyframes iwb-generation-spinner-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
.iwb-generation-spinner, .iwb-out-prog::before { animation: none; transition: none; }
.iwb-out-prog::before { transform: none; }
}
.iwb-gen-head .iwb-gen-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- 标注文字节点 ---- */
.iwb-label-body { padding: 10px 12px; display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 40px; }
.iwb-label-input { flex: 1 1 auto; width: 100%; min-width: 0; background: transparent; border: none; outline: none; resize: none; color: var(--iwb-text); font-weight: 700; text-align: center; }
.iwb-label-input::placeholder { color: var(--iwb-text2); opacity: 0.55; font-weight: 400; }
.iwb-node-fixed .iwb-label-body { height: calc(100% - 30px); }
.iwb-node-fixed .iwb-label-input { height: 100%; }
/* 左侧栏底部:收起态图标列 + 链接按钮 */
.iwb-wsrail-foot-collapsed { padding-top: 6px; border-top: 1px solid var(--iwb-border); }
.iwb-wsrail-iconcol { display: flex; flex-direction: column; align-items: center; }
.iwb-wsrail-iconcol .iwb-ws-headicon { width: 32px; height: 30px; }
.iwb-wsrail-foot a.iwb-btn, a.iwb-btn { text-decoration: none; }
.iwb-wsrail-foot .iwb-ws-headicon .iwb-ic { width: 15px; height: 15px; }
.iwb-wsrail-iconcol { gap: 4px; }
.iwb-wsrail-foot-collapsed { padding: 8px 6px; }
/* 节点标题编辑 */
.iwb-node-title-input { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600; padding: 1px 4px; height: 22px; }
/* 任务卡结果图(与提示词一一对应) */
.iwb-task-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.iwb-task-result { position: relative; }
.iwb-task-result-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--iwb-border); cursor: zoom-in; background: var(--iwb-layer2); display: block; transition: border-color 0.12s; }
.iwb-task-result-img:hover { border-color: var(--iwb-brand); }
.iwb-task-result-meta { font-size: 10px; color: var(--iwb-text2); text-align: center; margin-top: 2px; }
.iwb-task-result-dl { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-radius: 0 0 8px 8px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.15s; }
.iwb-task-result:hover .iwb-task-result-dl { opacity: 1; }
.iwb-task-result-dl .iwb-ic { width: 16px; height: 16px; color: var(--iwb-on-brand); }
/* 文案组合节点 */
.iwb-combine-srcs { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.iwb-combine-src { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 6px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 组合来源行里的「样式名」标签(2026-11-14):只给插件提示词类节点打标,帮用户认出这一行来自哪条风格 */
.iwb-combine-src-tag { display: inline-block; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; margin-right: 4px; padding: 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--iwb-brand) 16%, transparent); color: var(--iwb-brand-text, var(--iwb-brand)); font-size: 10px; line-height: 15px; }
.iwb-batch-srcs { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.iwb-batch-src { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 6px; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-combine-row { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.iwb-combine-row .iwb-plabel { flex: 0 0 48px; font-size: 11px; color: var(--iwb-text2); }
.iwb-combine-row .iwb-input { flex: 1 1 auto; font-size: 11px; padding: 3px 5px; }
.iwb-combine-out { margin-top: 6px; border: 1px solid color-mix(in srgb, var(--iwb-brand) 35%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--iwb-brand) 8%, transparent); padding: 6px 8px; }
.iwb-combine-out-label { font-size: 10px; font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); margin-bottom: 3px; }
.iwb-combine-out-text { font-size: 11px; color: var(--iwb-text); white-space: pre-wrap; word-break: break-all; max-height: 90px; overflow-y: auto; }
/* 输出节点:田字格/瀑布流 + 批量下载 */
.iwb-out-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.iwb-out-run { width: 100%; justify-content: center; margin-bottom: 8px; }
/* 画布节点内的主操作按钮统一「近黑底 + 白字」(用户要求;--iwb-text 亮色 #1c2333、暗色 #111) */
.iwb-node .iwb-btn-primary { background: var(--iwb-text); border-color: var(--iwb-text); color: var(--iwb-on-brand); }
.iwb-node .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-tint) 86%, var(--iwb-panel)); border-color: var(--iwb-text); color: var(--iwb-on-brand); }
.iwb-node .iwb-btn-primary:disabled { opacity: .45; }
.iwb-out-head .iwb-label { flex: 0 0 auto; }
.iwb-out-tools { flex: 1 1 auto; display: flex; gap: 4px; justify-content: flex-end; }
.iwb-out-tools .iwb-btn { padding: 2px 8px; font-size: 11px; }
.iwb-out-cell-img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--iwb-border); cursor: zoom-in; background: var(--iwb-layer2); transition: border-color 0.12s; }
.iwb-out-cell-img:hover { border-color: var(--iwb-brand); }
.iwb-out-cell-meta { font-size: 10px; color: var(--iwb-text2); text-align: center; margin-top: 2px; }
.iwb-out-cell-actions { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.15s; border-radius: 0 0 8px 8px; background: rgba(0,0,0,0.45); }
.iwb-out-cell:hover .iwb-out-cell-actions { opacity: 1; }
.iwb-out-cell-actions .iwb-btn { width: 18px; height: 18px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.9); color: #333; border: none; cursor: pointer; }
.iwb-out-cell-actions .iwb-btn:hover { background: var(--iwb-panel); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-out-cell-actions .iwb-ic { width: 11px; height: 11px; }
/* 输出节点:原比例自适应流式(组内横向排列,随节点宽度自动换行) */
.iwb-out-groups { display: flex; flex-direction: column; gap: 10px; }
.iwb-out-group-card { flex: none; width: 100%; border: 1px solid var(--iwb-border); border-radius: 10px; padding: 6px 8px 8px; background: var(--iwb-layer); }
.iwb-out-group-title { font-size: 11px; font-weight: 700; margin-bottom: 5px; color: var(--iwb-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 旧任务残留说明(v3.24.44):只在「当前任务之外还有旧图」时出现,一行小字,不与任务组争视觉权重 */
.iwb-out-stale { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--iwb-border); font-size: 11px; color: var(--iwb-text2); cursor: default; }
.iwb-out-grouplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.iwb-out-cell { position: relative; min-width: 0; }
/* 大图预览:左右切换 + 下载条 */
.iwb-imgpreview { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.92); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
/* 预览图自适应宽+高:同时约束横向与纵向,保持宽高比居中显示,不溢出(图库预览已取完整原图,可能很大/超高/超宽) */
.iwb-imgpreview img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); cursor: default; }
.iwb-prev-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: none; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 30px; cursor: pointer; z-index: 101; }
.iwb-prev-nav:hover { background: rgba(255, 255, 255, 0.22); }
.iwb-prev-left { left: 18px; }
.iwb-prev-right { right: 18px; }
.iwb-prev-bar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 6px 14px; z-index: 101; }
.iwb-prev-count { color: #fff; font-size: 13px; }
.iwb-prev-bar .iwb-btn { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.iwb-prev-bar .iwb-btn:hover { background: rgba(255, 255, 255, 0.3); }
.iwb-prev-bar .iwb-ic { width: 13px; height: 13px; }
/* 生成中断恢复横幅 */
.iwb-resume-bar {
position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%);
display: flex; align-items: center; gap: 10px;
background: var(--iwb-panel); border: 1px solid var(--iwb-border);
border-radius: var(--rd-lg); padding: 8px 14px; z-index: 120;
box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.iwb-resume-text { font-size: var(--fs-lg); color: var(--iwb-text); }
.iwb-resume-bar .iwb-btn { white-space: nowrap; }
/* 刷新中断提示:居中展示(区别于底部的保存/更新横幅),必须醒目到让用户注意「再次计费」警示 */
.iwb-resume-bar.iwb-resume-center {
flex-direction: column; align-items: stretch; gap: 6px;
top: 50%; bottom: auto; transform: translate(-50%, -50%);
width: min(460px, calc(100vw - 48px)); padding: 18px 22px; text-align: left;
}
.iwb-resume-warning { font-size: var(--fs-md); line-height: 1.6; color: var(--iwb-err); }
.iwb-resume-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
/* 版本更新提示(v3.24.42):原来和「保存失败」等低频异常挤在底部 34px 处,存在感弱到错过。
现在贴在编辑器顶栏(标签条 36 + 顶栏 56)正下方居中 —— 一进画布就在视线内,又完全不挡画布内容。
只做一次 180ms 的淡入下滑(含 translateX(-50%) 保住水平居中),不做循环动效。 */
.iwb-update-bar {
top: 100px; bottom: auto; z-index: 130;
max-width: calc(100vw - 32px); justify-content: center;
animation: iwb-update-in .18s ease-out 1 both;
}
@keyframes iwb-update-in {
from { opacity: 0; transform: translate(-50%, -6px); }
to { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .iwb-update-bar { animation: none; } }
/* 待润色标记(文本节点为空但有 LLM 上游) */
.iwb-task-pending { color: var(--iwb-warn); font-weight: 600; }
/* 生图/LLM 服务设置:模型列表 + 行内删除操作 */
.iwb-modelrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; margin-bottom: 4px; background: var(--iwb-layer); }
.iwb-modelrow-main { display: flex; align-items: center; gap: 4px; }
.iwb-modelrow-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-modelrow .iwb-btn-danger { color: var(--iwb-err); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.iwb-modelrow:hover .iwb-btn-danger, .iwb-modelrow:focus-within .iwb-btn-danger { opacity: 1; pointer-events: auto; }
.iwb-modelrow-main { cursor: default; }
.iwb-modelrow-main span { cursor: default; }
.iwb-modelrow-active { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-tint) 6%, transparent); }
.iwb-modelrow-name { flex: 1 1 auto; cursor: pointer; font-size: 12px; }
.iwb-input-err { border-color: var(--iwb-err) !important; box-shadow: 0 0 0 1px rgba(239,68,68,0.35); }
/* LLM 多渠道设置卡片 */
.iwb-llm-card { border: 1px solid var(--iwb-border); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: var(--iwb-layer); }
.iwb-llm-card-def { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2); }
.iwb-llm-cardhead { margin-bottom: 6px; }
.iwb-llm-keyname { flex: 0 0 96px; min-width: 96px; max-width: 96px; }
.iwb-llm-testrow { margin-top: 8px; align-items: center; }
.iwb-llm-main { flex: 0 0 auto; color: var(--iwb-text2); font-weight: 700; margin: 0 4px; }
.iwb-llm-addrres { margin: 4px 0 2px; }
/* 左侧工作台栏:整栏统一默认鼠标指针(按钮也不显示手型);仅输入类保留文本光标 */
.iwb-wsrail, .iwb-wsrail * { cursor: default !important; }
.iwb-wsrail input, .iwb-wsrail textarea { cursor: text !important; }
/* LLM 节点模型下拉(润色按钮右侧) */
.iwb-llm-model-sel { flex: 0 0 auto; max-width: 150px; font-size: 11px; }
/* 全屏提示词库编辑器:文本区可拖动调整高度(覆盖 .iwb-textarea 的 resize:none) */
.iwb-full-editor textarea.iwb-full-editor-text { resize: vertical; min-height: 160px; max-height: 60vh; }
/* 最近操作日志 */
.iwb-oplogs { max-height: 180px; overflow-y: auto; border: 1px solid var(--iwb-border); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; background: var(--iwb-layer); }
.iwb-oplog { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.iwb-oplog-time { flex: 0 0 auto; color: var(--iwb-text2); font-variant-numeric: tabular-nums; }
.iwb-oplog-kind { flex: 0 0 44px; color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
.iwb-oplog-msg { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-gen-cell .iwb-input { min-height: 32px; padding: 5px 24px 5px 8px; cursor: pointer; }
.iwb-gen-row { gap: 6px; min-height: 36px; }
.iwb-size-preset-grid { display: grid; grid-template-columns: 110px repeat(3, minmax(108px, 1fr)); gap: 6px; align-items: center; margin: 8px 0; }
.iwb-size-preset-head { color: var(--iwb-text2); font-size: 12px; font-weight: 700; }
.iwb-size-preset-name { font-size: 12px; font-weight: 700; }
.iwb-size-preset-grid .iwb-input { min-width: 0; min-height: 34px; }
.iwb-size-preset-grid-edit { grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(108px, 1fr)) 38px; }
.iwb-size-preset-grid-edit .iwb-btn { width: 34px; min-width: 34px; padding: 0; justify-content: center; justify-self: center; }
.iwb-shell-nav { left: 12px; top: 12px; z-index: 30; align-items: center; }
.iwb-shell-nav-item { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-shell-nav-item:hover, .iwb-shell-nav-active { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-shell-nav-caption { padding: 0 8px; font-size: 11px; color: var(--iwb-text2); }
.iwb-home-panel { position: absolute; inset: 0; z-index: 20; overflow: auto; background: var(--iwb-home-bg); }
.iwb-home-title { font-weight: 700; color: var(--iwb-text); }
.iwb-home-subtitle { margin-top: 8px; color: var(--iwb-text2); }
.iwb-home-sec-head { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--iwb-text2); letter-spacing: .5px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px solid var(--iwb-hr); }
.iwb-home-sec-head:first-child { border-top: none; padding-top: 0; }
.iwb-home-card span { color: var(--iwb-text2); font-size: 12px; }
.iwb-home-new { align-items: center; justify-content: center; color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-canvas-hidden { visibility: hidden; pointer-events: none; }
.iwb-shell-nav { position: static; flex-direction: column; gap: 3px; padding: 8px; border: 0; border-bottom: 1px solid var(--iwb-border); border-radius: 0; background: transparent; box-shadow: none; }
.iwb-shell-nav-item { width: 100%; justify-content: flex-start; min-height: 34px; }
.iwb-wsrail-current { flex: 1 1 auto; min-height: 0; padding: 14px 10px; color: var(--iwb-text); }
.iwb-wsrail-current .iwb-wsrail-label { margin: 0 0 8px; }
.iwb-wsrail-current-name { padding: 10px; border: 1px solid var(--iwb-border); border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.iwb-wsrail-current .iwb-btn { margin-top: 8px; width: 100%; justify-content: center; }
/* 顶部应用导航:不覆盖左栏,统一承载页面级入口与当前工作台 */
.iwb-top-nav { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: color-mix(in srgb, var(--iwb-panel) 94%, transparent); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.iwb-top-nav-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--iwb-text); white-space: nowrap; }
.iwb-top-nav-item, .iwb-top-nav-workspace, .iwb-top-nav-icon { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; padding: 0 10px; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-top-nav-item:hover, .iwb-top-nav-active, .iwb-top-nav-workspace:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); border-color: var(--iwb-border); }
.iwb-top-nav-workspace { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-top-nav-workspace .iwb-ic { width: 13px; height: 13px; }
.iwb-top-nav-sep { width: 1px; height: 22px; margin: 0 6px; background: var(--iwb-border); }
.iwb-top-nav-spacer { flex: 1 1 auto; }
.iwb-top-nav-icon .iwb-ic { width: 16px; height: 16px; }
.iwb-wsrail-title, .iwb-wsrail-current, .iwb-wsrail-foot { display: none; }
.iwb-shell-nav { display: none; }
.ws-expanded .iwb-wsrail { width: 52px; }
.iwb-home-panel { padding-top: 90px; }
.iwb-home-head { display: flex; justify-content: space-between; gap: 20px; }
.iwb-home-kicker { color: var(--iwb-text2); font-size: 12px; }
.iwb-home-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* 仅首页用「深底浅字」;画布内的主按钮(生成 / 批量出图)保持品牌底 + 白字,避免暗色下发灰看不清 */
.iwb-home-panel .iwb-btn-primary { background: var(--iwb-text); color: var(--iwb-bg); }
.iwb-home-card > input { position: absolute; left: 18px; top: 20px; width: 17px; height: 17px; accent-color: var(--iwb-text); z-index: 2; }
.iwb-home-card-main { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; width: 100%; min-height: 105px; padding: 26px 0 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.iwb-home-card-main strong { padding-left: 30px; font-size: 18px; }
.iwb-home-card-main span, .iwb-home-card-main small { color: var(--iwb-text2); }
/* 资源工具栏移至左侧:窄 rail + 可展开面板 */
.iwb-canvas { left: 48px; top: 54px; }
/* v4 参考布局:顶部产品导航、左侧资源区、中央画布三层分离 */
.iwb-overlay { background: var(--iwb-bg); }
.iwb-top-nav { height: 64px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); gap: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--iwb-border); box-shadow: 0 1px 8px rgba(20,20,20,.05); }
.iwb-top-nav-brand { font-size: 17px; margin-right: 22px; }
.iwb-top-nav-brand .iwb-ic { width: 20px; height: 20px; }
.iwb-top-nav-item { min-height: 64px; border-radius: 0; padding: 0 13px; position: relative; }
.iwb-top-nav-item:hover, .iwb-top-nav-active { background: transparent; border-color: transparent; color: var(--iwb-text); }
.iwb-top-nav-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--iwb-text); }
.iwb-top-nav-workspace { min-height: 38px; border-color: var(--iwb-border); margin-left: 8px; }
.iwb-top-nav-icon:first-of-type { margin-left: auto; }
.iwb-wsrail { top: 64px; }
.iwb-home-panel { padding: 116px max(30px, calc((100vw - 1580px) / 2)) 60px; }
.iwb-home-head { align-items: center; }
.iwb-home-title { font-size: 34px; letter-spacing: -.03em; }
@media (max-width: 900px) { .iwb-top-nav-brand { margin-right: 4px; } .iwb-top-nav-item span, .iwb-top-nav-workspace { display: none; } .iwb-top-nav { padding: 0 8px; } .iwb-home-head { align-items: flex-start; flex-direction: column; } }
/* v5:三页面语义与编辑器 chrome */
.iwb-product-nav, .iwb-canvas-topbar { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 35; display: flex; align-items: center; gap: 6px; padding: 0 max(18px, calc((100vw - 1760px) / 2)); background: var(--iwb-bg); border-bottom: 1px solid var(--iwb-border); }
.iwb-product-brand { font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; }
.iwb-product-item { height: 64px; border: 0; border-bottom: 2px solid transparent; padding: 0 14px; background: transparent; color: var(--iwb-text2); font-size: 14px; cursor: pointer; }
.iwb-product-item:hover, .iwb-product-item.active { color: var(--iwb-text); border-bottom-color: var(--iwb-text); }
.iwb-product-spacer { flex: 1; }
.iwb-product-icon, .iwb-canvas-menu, .iwb-top-nav-icon { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-product-icon:hover, .iwb-canvas-menu:hover, .iwb-top-nav-icon:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-landing-panel { position: absolute; inset: 0; z-index: 20; padding: 64px 8vw 80px; overflow: auto; text-align: center; background-color: var(--iwb-bg); background-image: radial-gradient(circle, color-mix(in srgb, var(--iwb-border) 70%, transparent) 1px, transparent 1.5px); background-size: 28px 28px; }
.iwb-landing-panel h1 { max-width: 850px; color: var(--iwb-text); }
.iwb-landing-panel p { max-width: 760px; margin: 0 auto; line-height: 1.8; }
.iwb-landing-actions { display: flex; justify-content: center; }
.iwb-landing-divider { max-width: 1200px; border-top: 1px solid var(--iwb-border); }
/* v6:无白色占位条,三页铺满视口;编辑器左侧只保留顶部展开把手 */
.iwb-overlay { left: 0 !important; right: 0 !important; width: 100% !important; }
.iwb-wsrail { display: none !important; width: 0 !important; border: 0 !important; }
.iwb-canvas, .ws-expanded .iwb-canvas { left: 0 !important; }
.iwb-product-nav { background: var(--iwb-bg); }
.iwb-home-panel, .iwb-landing-panel { left: 0 !important; right: 0 !important; padding-left: max(24px, calc((100vw - 1580px) / 2)); padding-right: max(24px, calc((100vw - 1580px) / 2)); }
/* v7:画布卡片(参考图1)、编辑器顶栏(参考图3)、左侧展开按钮(参考图2) */
.iwb-home-card-top { display: flex; align-items: center; gap: 12px; }
.iwb-home-card-top > input { position: static; width: 18px; height: 18px; accent-color: var(--iwb-text); z-index: 2; }
.iwb-home-card-title { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; display: flex; align-items: center; }
.iwb-home-card-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-home-card-actions button { border: 0; background: transparent; color: var(--iwb-text2); cursor: pointer; }
.iwb-home-card-actions button:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
/* 进入画布加载动画 */
.iwb-enter-loading { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: color-mix(in srgb, var(--iwb-bg) 92%, transparent); backdrop-filter: blur(2px); }
.iwb-enter-spinner { width: 42px; height: 42px; border: 4px solid var(--iwb-border); border-top-color: var(--iwb-brand); border-radius: 50%; animation: iwb-spin 0.9s linear infinite; }
.iwb-enter-text { color: var(--iwb-text2); font-size: 14px; }
@keyframes iwb-spin { to { transform: rotate(360deg); } }
/* 编辑器顶栏:紧凑胶囊式,参考图3 */
.iwb-canvas-menu { width: 34px; height: 34px; }
.iwb-canvas-title { margin: 0 6px 0 2px; }
.iwb-canvas-status { color: var(--iwb-text2); font-size: 12px; }
.iwb-top-nav-icon {
padding: 0;
min-height: 38px;
width: 32px;
height: 32px;
}
/* 资源展开按钮:顶部贴左(参考图2),带 panel 图标 */
/* 左侧资源面板:贴左边展开(参考图2) */
/* v9:首页不留左栏按钮;优化首页文字与按钮大小;卡片重命名输入框 */
.iwb-view-landing .iwb-wsrail, .iwb-view-home .iwb-wsrail { display: none !important; }
.iwb-landing-panel { background: var(--iwb-bg); }
.iwb-landing-panel h1 { margin: 96px auto 24px; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; letter-spacing: -.04em; }
.iwb-landing-panel p { font-size: 16px; color: var(--iwb-text2); }
.iwb-landing-kicker { padding-top: 120px; font-size: 13px; letter-spacing: .1em; color: var(--iwb-text2); }
.iwb-landing-actions { margin-top: 30px; gap: 12px; }
.iwb-landing-actions .iwb-btn { min-height: 42px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.iwb-landing-actions .iwb-btn-primary { background: #111; color: #fff; }
.iwb-landing-divider { margin: 90px auto 54px; }
.iwb-landing-panel h2 { font-size: 28px; color: var(--iwb-text); margin-bottom: 10px; }
/* v10:我的画布卡片交互——默认隐藏复选框与操作图标,hover 显示;批量管理模式显示复选框 */
.iwb-home-card-check { display: none; }
.iwb-home-card-check-placeholder { flex: 0 0 18px; width: 18px; height: 18px; }
.iwb-home-card.iwb-manage .iwb-home-card-check { display: inline-block; }
.iwb-home-card.iwb-manage .iwb-home-card-check-placeholder { display: none; }
.iwb-home-card:hover .iwb-home-card-actions,
.iwb-home-card:focus-within .iwb-home-card-actions { opacity: 1; }
.iwb-home-card-rename { flex: 1 1 auto; min-width: 0; height: 34px; font-size: 15px; color: var(--iwb-text); background: var(--iwb-bg); border: 1px solid var(--iwb-border2); border-radius: 8px; padding: 0 10px; }
.iwb-home-actions .iwb-btn { min-height: 36px; }
/* v11:统一画布卡片对齐与排版 */
.iwb-home-card:hover { border-color: var(--iwb-border2); background: color-mix(in srgb, var(--iwb-panel) 76%, var(--iwb-home-bg) 24%); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.iwb-home-card-top { padding: 24px 22px 0 22px; }
.iwb-home-card-title strong { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--iwb-text); }
.iwb-home-card-foot small { color: var(--iwb-text2); font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; flex: 1 1 auto; }
.iwb-home-card-actions button { width: 32px; height: 32px; border-radius: 8px; }
/* v12:世界容器提升为合成层(节点随世界一起 transform,不单独建层) */
.iwb-world { will-change: transform; }
/* v15:左侧资源面板展开时浮在画布上层,不移动画布位置 */
.iwb-overlay.drawer-open .iwb-canvas { left: 0 !important; }
/* 停靠栏时代:工具栏/小地图按 --iwb-dock-* 让位(画布仍不动) */
.iwb-overlay.drawer-open .iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px) !important; }
.iwb-overlay.drawer-open .iwb-minimap { margin-left: 0 !important; }
/* 画布顶栏:标题 + 实时通知 + 右侧图标组(padding-left 14px = 标签条 padding,标题左缘与房子图标对齐;52px 是左侧栏时代的遗留已废弃) */
.iwb-canvas-meta { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.iwb-canvas-meta .iwb-status-item { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-canvas-meta .iwb-status-ok { color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-canvas-meta .iwb-status-err { color: var(--iwb-err); }
.iwb-canvas-topbar .iwb-top-nav-icon { width: 30px; height: 30px; }
/* S12:顶部标签条(浏览器式多画布标签)——UX_SPEC §4 单框扁平 token(容器透明、active 品牌色扁平高亮、只用 CSS 变量) */
.iwb-tabstrip { position: absolute; left: 0; right: 0; top: 0; height: 36px; z-index: 36; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--iwb-chrome); box-sizing: border-box; border-bottom: 1px solid var(--iwb-border); overflow-x: auto; scrollbar-width: none; pointer-events: none; }
.iwb-tabstrip .iwb-tab { pointer-events: auto; }
.iwb-tabstrip::-webkit-scrollbar { display: none; }
.iwb-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; white-space: nowrap; max-width: 190px; transition: background .15s ease, color .15s ease; }
.iwb-tab:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-tab-active { background: color-mix(in srgb, var(--iwb-tint) 9%, transparent); color: var(--iwb-text); font-weight: 600; }
/* 暗色下标签条本身是中灰:用「近黑 9%」叠上去几乎看不出选中 ⇒ 改为**提亮**一档(2026-11-01 用户反馈) */
.theme-dark .iwb-tabstrip .iwb-tab-active { background: var(--iwb-hover); }
.iwb-tab:focus-visible { outline: var(--iwb-focus-ring); outline-offset: 1px; }
/* 首页激活胶囊走灰阶(首页整体灰色系;画布标签仍用品牌色) */
.iwb-tab-home.iwb-tab-active { background: transparent; color: var(--iwb-text); }
/* 首页图标与画布标签之间的细分隔线 */
.iwb-tab-sep { flex: 0 0 auto; width: 1px; height: 16px; background: var(--iwb-border); }
.iwb-tab-label { overflow: hidden; text-overflow: ellipsis; }
.iwb-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--iwb-brand); flex: 0 0 auto; }
/* 标签条完成态圆点:生成完成=绿、失败/中断=红(运行中为默认品牌色) */
.iwb-tab-dot-ok { background: var(--iwb-ok); }
.iwb-tab-dot-err { background: var(--iwb-err); }
.iwb-tab-new { color: var(--iwb-text2); font-weight: 700; padding: 0 10px; font-size: 15px; line-height: 1; }
.iwb-tab-new:hover { background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-tab-close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 31px; /* 与标签名留约 3 个字的间距(gap 5px + 31px ≈ 36px) */ border: 0; border-radius: 4px; background: transparent; color: var(--iwb-text2); cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
.iwb-tab:hover .iwb-tab-close { opacity: 1; }
.iwb-tab-close:hover { background: color-mix(in srgb, var(--iwb-text2) 16%, transparent); color: var(--iwb-text); }
.iwb-tab-close .iwb-ic { width: 12px; height: 12px; }
.iwb-tab-home { padding: 0 9px; }
.iwb-tab-home .iwb-ic { width: 16px; height: 16px; }
/* 标签条出现时顶栏下移(仅画布视图;覆盖共享 top:0 规则) */
/* 标签条始终顶左对齐(不随左侧栏展开缩进——标签条在最顶层、横跨全宽) */
/* 资源中心浮动窗口:自由拖动、统一白色圆角样式 */
.iwb-resource-float { position: fixed; z-index: 46; width: 360px; max-height: 76vh; display: flex; flex-direction: column; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.24), 0 2px 10px rgba(0,0,0,.12); overflow: hidden; }
.iwb-resource-float-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--iwb-layer2); border-bottom: 1px solid var(--iwb-border); cursor: move; user-select: none; flex: 0 0 auto; }
.iwb-resource-float-head:hover { background: var(--iwb-hover); }
.iwb-resource-float-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--iwb-text); }
.iwb-resource-float-title .iwb-ic { width: 15px; height: 15px; }
.iwb-resource-float-spacer { flex: 1 1 auto; }
.iwb-resource-float-head .iwb-btn { width: 26px; height: 22px; padding: 0; justify-content: center; }
.iwb-resource-float .iwb-drawer-body { min-height: 0; }
/* 顶栏资源按钮激活态 */
.iwb-top-nav-icon-active { background: var(--iwb-layer2); color: var(--iwb-text); }
/* 资源中心(全屏版三 tab)—— 单框扁平设计:容器透明无边框,active 用品牌色扁平高亮(统一设计语言) */
.iwb-res-tabs { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; flex: 0 0 auto; }
.iwb-res-tab { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); cursor: pointer; font-size: 12px; white-space: nowrap; transition: background .15s, color .15s; }
.iwb-res-tab:hover { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-text2) 10%, transparent); }
.iwb-res-tab-active { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-panel) 55%, transparent); font-weight: 600; }
.iwb-res-tab .iwb-ic { width: 14px; height: 14px; }
.iwb-fullpanel .iwb-res-tabs { margin-left: 12px; }
/* 资源中心非提示词库 tab 内容撑满容器 */
.iwb-full-main > .iwb-groups-embedded, .iwb-full-main > .iwb-history-embedded { width: 100%; flex: 1 1 auto; }
/* 我的画布卡片:文本左对齐、底部图标右对齐、批量选中高亮、重命名放大、分类 */
.iwb-home-card-title { text-align: left; justify-content: flex-start; width: 100%; }
.iwb-home-card-title strong { text-align: left; width: 100%; }
.iwb-home-card-meta-text { color: var(--iwb-text2); font-size: 13px; }
.iwb-home-card-cat { border: 1px solid var(--iwb-border); border-radius: 999px; padding: 2px 10px; font-size: 11px; color: var(--iwb-text2); background: color-mix(in srgb, var(--iwb-tint) 6%, transparent); cursor: pointer; white-space: nowrap; }
.iwb-home-card-cat-empty { color: var(--iwb-text2); background: transparent; border-color: var(--iwb-border2); }
.iwb-home-card-cat:hover { border-color: var(--iwb-border2); color: var(--iwb-text); }
.iwb-home-card-actions button { display: inline-flex; align-items: center; justify-content: center; }
.iwb-home-card-selected { border-color: var(--iwb-border2); box-shadow: 0 0 0 1px var(--iwb-border2), 0 6px 18px rgba(0,0,0,.10); background: color-mix(in srgb, var(--iwb-panel) 72%, var(--iwb-layer) 28%); }
.iwb-home-card-top .iwb-home-card-rename { height: 42px; font-size: 16px; flex: 1 1 auto; min-width: 0; box-sizing: border-box; }
.iwb-home-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.iwb-home-cats .iwb-chip { cursor: pointer; }
/* 画布库:卡片撑满、去右侧留白、卡片更紧凑 */
.iwb-home-panel { padding-left: 24px; padding-right: 24px; }
.iwb-home-card-top { padding-top: 18px; padding-left: 20px; padding-right: 20px; }
/* 资源中心窗口四向缩放手柄 */
/* 画布编辑页:返回按钮 + 标题双击重命名 */
.iwb-canvas-back { width: 30px; height: 30px; padding: 0; border-radius: 8px; font-size: 16px; flex: 0 0 auto; }
.iwb-canvas-title { border: 0; background: transparent; color: var(--iwb-text); cursor: pointer; font-weight: 700; font-size: 15px; padding: 4px 8px; border-radius: 8px; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.iwb-canvas-title:hover { background: var(--iwb-layer2); }
.iwb-canvas-title-input { width: 220px; height: 30px; font-size: 15px; flex: 0 0 auto; }
/* 画布库布局统一:紧贴导航、内容撑满、头部/分类/卡片左对齐 */
.iwb-home-panel { padding-top: 72px; padding-left: 24px; padding-right: 24px; }
.iwb-home-head { min-height: 0; padding-top: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--iwb-hr); }
.iwb-home-kicker { margin-bottom: 6px; }
.iwb-home-cats { margin-top: 16px; margin-bottom: 4px; }
/* 画布卡片:底部三个图标在卡片内右对齐 */
.iwb-home-card-actions { display: flex; gap: 6px; opacity: 0; transition: opacity .15s ease; flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; }
.iwb-home-card-foot .iwb-home-card-actions { width: auto; }
/* 画布库:顶部导航与内容水平对齐(统一左 24px,撑满) */
.iwb-product-nav { padding-left: 24px; padding-right: 24px; }
/* ===== 画布库:左右分栏(覆盖所有旧版 iwb-home 样式) ===== */
.iwb-overlay.iwb-view-home .iwb-wsrail,
.iwb-overlay.iwb-view-home .iwb-product-nav { display: none; }
.iwb-overlay.iwb-view-home { background: var(--iwb-bg); }
.iwb-overlay .iwb-home-panel { position: absolute; inset: 0; padding: 0; margin: 0; display: flex; flex-direction: row; background: var(--iwb-home-bg); overflow: hidden; }
.iwb-home-side { width: 280px; flex: 0 0 280px; height: 100%; display: flex; flex-direction: column; padding: 18px 14px; gap: 8px; border-right: 1px solid var(--iwb-hr); background: var(--iwb-home-bg); overflow: hidden; }
.iwb-home-side-head { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--iwb-text); padding: 6px 8px 14px; }
.iwb-home-side-head .iwb-ic { color: var(--iwb-text); }
.iwb-home-search { padding: 0 4px 8px; }
.iwb-home-search .iwb-input { width: 100%; height: 36px; box-sizing: border-box; background: color-mix(in srgb, var(--iwb-panel) 50%, var(--iwb-home-bg) 50%); }
.iwb-home-search .iwb-input:focus { border-color: var(--iwb-border2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-tint) 15%, transparent); }
.iwb-home-side-nav, .iwb-home-side-cats, .iwb-home-side-trash { display: flex; flex-direction: column; gap: 2px; }
.iwb-home-side-cats { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.iwb-home-side-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--iwb-text2); font-size: 14px; cursor: pointer; text-align: left; box-sizing: border-box; }
.iwb-home-side-item .iwb-ic { color: var(--iwb-text2); }
.iwb-home-side-item:hover { background: color-mix(in srgb, var(--iwb-panel) 45%, transparent); color: var(--iwb-text); }
.iwb-home-side-item:focus-visible { outline: var(--iwb-focus-ring); outline-offset: -2px; }
.iwb-home-side-item.active { background: color-mix(in srgb, var(--iwb-panel) 32%, transparent); color: var(--iwb-text); font-weight: 600; }
.iwb-home-side-item.active .iwb-ic { color: var(--iwb-text); }
.iwb-home-side-item.iwb-home-side-add { color: var(--iwb-text); font-size: 13px; }
.iwb-home-side-trash { padding-top: 6px; }
.iwb-home-side-foot { padding-top: 8px; border-top: 1px solid var(--iwb-hr); display: flex; flex-direction: column; gap: 2px; }
.iwb-home-main { flex: 1 1 auto; height: 100%; padding: 26px 32px; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
.iwb-home-main-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--iwb-hr); flex-wrap: wrap; }
.iwb-home-main-title { font-size: 26px; font-weight: 700; color: var(--iwb-text); }
.iwb-drawer-spacer { flex: 1 1 auto; }
.iwb-home-main-head .iwb-btn { min-height: 36px; background: color-mix(in srgb, var(--iwb-panel) 40%, var(--iwb-home-bg) 60%); }
.iwb-home-main-head .iwb-btn-sm { background: transparent; border-color: transparent; }
.iwb-home-main-head .iwb-btn-sm:hover { background: color-mix(in srgb, var(--iwb-panel) 45%, transparent); border-color: transparent; }
.iwb-home-main-head .iwb-btn:hover { background: color-mix(in srgb, var(--iwb-panel) 65%, var(--iwb-home-bg) 35%); }
.iwb-home-main-head .iwb-btn-primary { background: var(--iwb-text2); border-color: var(--iwb-text2); color: #fff; }
.iwb-home-main-head .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-text2) 80%, #000); border-color: color-mix(in srgb, var(--iwb-text2) 80%, #000); color: #fff; }
.iwb-home-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-width: none; margin-top: 22px; width: 100%; }
.iwb-home-empty { margin-top: 40px; color: var(--iwb-text2); font-size: 15px; text-align: center; padding: 40px 0; }
.iwb-home-card .iwb-home-card-top { padding: 20px 20px 0 20px; }
.iwb-home-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; padding: 0 20px 18px 20px; }
.iwb-home-card-star { border: 0; background: transparent; color: var(--iwb-text2); font-size: 18px; cursor: pointer; line-height: 1; padding: 0; }
.iwb-home-card-star.on { color: var(--iwb-text); }
.iwb-home-card-star:hover { color: var(--iwb-text); }
@media (max-width: 760px) {
.iwb-home-side { width: 220px; flex-basis: 220px; }
.iwb-home-main { padding: 20px 18px; }
.iwb-home-main-head { flex-direction: column; align-items: flex-start; }
}
/* 画布加载遮罩为纯视觉提示,不拦截指针(避免拖拽/平移被吃事件) */
.iwb-overlay .iwb-enter-loading { pointer-events: none; }
/* 左侧栏计数徽标 */
.iwb-home-side-count { margin-left: auto; font-size: 12px; line-height: 1; color: var(--iwb-text2); padding: 0; min-width: 16px; text-align: center; box-sizing: border-box; }
.iwb-home-side-item.active .iwb-home-side-count { color: var(--iwb-text); background: transparent; }
/* 画布编辑顶栏返回箭头居中(SVG) */
.iwb-canvas-back { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.iwb-canvas-back .iwb-ic { width: 18px; height: 18px; }
/* 画布卡片按压反馈:点击立即响应 */
.iwb-home-card:active { transform: scale(.985); }
/* 卡片操作区收藏按钮(SVG 星标) */
.iwb-home-card-actions .iwb-home-card-star { color: var(--iwb-text2); }
.iwb-home-card-actions .iwb-home-card-star:hover { color: var(--iwb-text); }
.iwb-home-card-actions .iwb-home-card-star.on { color: var(--iwb-text); }
/* 分类选择器(下拉) */
.iwb-home-cat-select { border: 1px solid var(--iwb-border2); border-radius: 8px; padding: 3px 8px; font-size: 12px; color: var(--iwb-text); background: var(--iwb-panel); cursor: pointer; }
/* 加载遮罩更明显,避免“打不开”的静止感 */
.iwb-overlay .iwb-enter-loading { background: color-mix(in srgb, var(--iwb-bg) 97%, transparent); backdrop-filter: blur(4px); }
/* 卡片按参考排版:名字 / 统计 / 底部行(分类chip左+图标右) */
.iwb-home-card {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
gap: 0;
color: var(--iwb-text);
text-align: left;
cursor: pointer;
position: relative;
padding: 0;
min-width: 0;
min-height: 138px;
overflow: hidden;
/* 卡片用「浮起层」底色(与右键菜单同一档):亮色=面板色,暗色比面板亮一档。
任何基于 panel/homeBg 的百分比混合在暗色下都拉不开 —— 两者只差 6,
52/48 算出 #191919、80/20 算出 #1b1b1b,都跟首页底 #161616 几乎同色,卡片等于隐形。 */
background: var(--iwb-bg-menu);
border: 1px solid var(--iwb-border);
border-radius: 16px;
box-shadow: 0 1px 4px rgba(0,0,0,.05);
box-sizing: border-box;
}
.iwb-home-card-meta { color: var(--iwb-text2); font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px; text-align: left; padding-top: 10px; padding-left: 20px; padding-right: 20px; width: 100%; padding: 12px 20px 0 20px; min-height: 18px; }
.iwb-home-card .iwb-home-card-foot { justify-content: space-between; gap: 10px; align-items: center; }
.iwb-home-card .iwb-home-card-foot .iwb-home-card-cat { flex: 0 0 auto; }
/* 画布标题后的版本小字 */
.iwb-canvas-version { font-size: 11px; font-weight: 400; color: var(--iwb-text2); margin-left: 2px; white-space: nowrap; flex: 0 0 auto; }
/* 画布重命名弹窗 */
.iwb-rename-modal { width: 380px; max-width: 92vw; }
.iwb-rename-input { width: 100%; box-sizing: border-box; height: 40px; font-size: 15px; }
/* 画布库侧栏 ≡ 菜单(图2样式:白卡片+图标+分隔线) */
.iwb-home-menu-btn { width: 30px; height: 30px; margin-left: auto; flex: 0 0 auto; border: 1px solid var(--iwb-hr); border-radius: 8px; background: transparent; color: var(--iwb-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iwb-home-menu-btn:hover { background: var(--iwb-layer2); border-color: var(--iwb-border2); color: var(--iwb-text); }
.iwb-home-menu-btn .iwb-ic { width: 18px; height: 18px; }
.iwb-home-menu-mask { position: fixed; inset: 0; z-index: 200; }
.iwb-home-menu { position: fixed; width: 220px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
.iwb-home-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: transparent; color: var(--iwb-text); font-size: 14px; cursor: pointer; border-radius: 8px; text-align: left; width: 100%; box-sizing: border-box; }
.iwb-home-menu-item:hover { background: var(--iwb-layer2); }
.iwb-home-menu-item .iwb-ic { color: var(--iwb-text2); }
.iwb-home-menu-item:hover .iwb-ic { color: var(--iwb-text); }
.iwb-home-menu-sep { height: 1px; background: var(--iwb-border); margin: 4px 6px; }
/* 顶层弹层层级:菜单 & 放大图必须盖过画布/资源中心/遮罩 */
.iwb-home-menu-mask { z-index: 1000; }
.iwb-home-menu { z-index: 1001; }
.iwb-imgpreview { z-index: 800; }
.iwb-home-menu-ver { display: block; padding: 8px 12px; font-size: 11px; color: var(--iwb-text2); text-align: left; border-top: 1px solid var(--iwb-border); margin-top: 4px; }
/* 资源面板 4 角缩放手柄 */
/* 图库历史项:图片数据丢失时的占位 */
.iwb-history-missing { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--iwb-text2); font-size: 12px; background: var(--iwb-layer2); border-radius: 8px; }
/* 资源面板 4 角缩放手柄(简洁“角括号”样式) */
/* 图库历史项图片:完整展示 + 上限尺寸(放大量大面板也不无限变大) */
.iwb-history-embedded .iwb-history-item img { max-width: 100%; max-height: none; object-fit: contain; margin: 0 auto; }
/* 编辑器顶栏:透明悬浮(对齐参考图样式),画布铺满视口让点阵/网格透过顶栏 */
.iwb-canvas-topbar button:not(.iwb-canvas-title), .iwb-canvas-topbar input, .iwb-canvas-topbar label { pointer-events: auto; }
.iwb-canvas-title { pointer-events: auto; }
.iwb-canvas, .ws-expanded .iwb-canvas { top: 0 !important; }
/* 顶栏是 transparent 悬浮在画布上(见 .iwb-canvas-topbar 的 background: transparent !important),
文字直接吃 --iwb-text —— 它对 --iwb-canvas-bg 已按 7:1 派生,亮暗两套都不需要专门补丁。
v3.26.44 之前这里有 6 组「#e0e0e0 / #1a1a1a / rgba(255,255,255,.5)」硬编码,
全部针对旧的「中灰底 + 深字」暗色设计,在新派生色下只会让 hover 变成刺眼白块。 */
.iwb-canvas-topbar .iwb-top-nav-icon:hover,
.iwb-canvas-topbar .iwb-top-nav-icon-active,
.iwb-canvas-topbar .iwb-canvas-title:hover,
.iwb-product-nav .iwb-product-icon:hover,
.iwb-product-nav .iwb-product-item:hover,
.iwb-product-nav .iwb-product-item.active { background: color-mix(in srgb, var(--iwb-text) 12%, transparent); }
/* 任务级计时(等宽数字避免抖动) */
.iwb-task-timer { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--iwb-text2); white-space: nowrap; font-variant-numeric: tabular-nums; margin-right: 2px; }
.iwb-task-timer-run { color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-task-timer-done { color: var(--iwb-text2); }
/* 运行中的任务(v3.24.42 重做):去掉左侧竖条与底部进度线,改为两层克制的动效——
* ① 一次性扫光(::before,1.05s 掠过):任务「刚开始」时的一道淡白光,只跑一次,不循环打扰;
* ② 持续呼吸描边(::after,2.6s):1px 内描边淡入淡出,让「还在跑」有存在感又不抢注意力。
* 两层都只动 transform / opacity(合成层),不重排、不重绘;1 张任务也能看出"活着"。 */
.iwb-task-running { background: var(--iwb-anim-tint); border-radius: 8px; }
/* ① 扫光:窄条高光从左掠到右,skew 一点更像反光而不是进度条 */
.iwb-task-running::before {
content: ''; position: absolute; top: 0; bottom: 0; left: -34%; width: 34%;
pointer-events: none; z-index: 1;
background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.85), rgba(255,255,255,0));
animation: iwb-task-sheen 1.05s cubic-bezier(.4, 0, .2, 1) 1 both;
will-change: transform, opacity;
}
@keyframes iwb-task-sheen {
0% { transform: translateX(0) skewX(-14deg); opacity: 0; }
18% { opacity: 1; }
100% { transform: translateX(420%) skewX(-14deg); opacity: 0; }
}
/* ② 呼吸描边:整行一圈细边随呼吸淡入淡出 */
.iwb-task-running::after {
content: ''; position: absolute; inset: 0; border-radius: 8px;
pointer-events: none; z-index: 2;
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iwb-tint) 26%, transparent);
animation: iwb-task-breathe 2.6s ease-in-out infinite;
will-change: opacity;
}
@keyframes iwb-task-breathe { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.85; } }
/* 降级动效:必须写在上面基础规则**之后**,否则同选择器后者优先会把 animation 又加回来 */
@media (prefers-reduced-motion: reduce) {
.iwb-task-running::before { animation: none; display: none; }
.iwb-task-running::after { animation: none; opacity: 1; }
}
/* 输出节点紧凑进度行:一行内自适应,完整信息走 title 悬停;容器查询按自身宽度分档 */
.iwb-out-prog { container-type: inline-size; position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; padding: 4px 8px; margin-bottom: 4px; border-radius: 8px; border: 1px solid var(--iwb-border); border-left: 3px solid var(--iwb-brand); background: var(--iwb-layer); }
/* 背景动效:整行双色渐变持续流动。用 200% 宽的伪元素 + transform(合成层,不重绘),
5 段对称渐变保证位移半宽后图案完全重合 → 无缝循环 */
.iwb-out-prog::before { content: ''; position: absolute; inset: 0; width: 200%; z-index: 0; pointer-events: none; will-change: transform;
background: linear-gradient(90deg,
var(--iwb-anim-flow-a) 0%,
var(--iwb-anim-flow-b) 25%,
var(--iwb-anim-flow-a) 50%,
var(--iwb-anim-flow-b) 75%,
var(--iwb-anim-flow-a) 100%);
animation: iwb-out-prog-flow 2.8s linear infinite; }
@keyframes iwb-out-prog-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.iwb-out-prog > * { position: relative; z-index: 1; }
.iwb-out-prog-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--iwb-text); font-variant-numeric: tabular-nums; }
.iwb-out-prog-time { flex: 0 1 auto; min-width: 0; font-size: 11px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@container (max-width: 240px) { .iwb-out-prog-time { display: none; } }
@container (max-width: 120px) { .iwb-out-prog { padding: 3px 5px; gap: 4px; } .iwb-out-prog-count { font-size: 11px; } }
/* 任务条三态按钮的「等待」态:中性色 + 12px 小环(可点,但点击只弹确认 → 防误触) */
.iwb-task-btn-wait { color: var(--iwb-text2); background: var(--iwb-layer2); border-color: var(--iwb-border); }
.iwb-task-btn-wait:hover { color: var(--iwb-text); border-color: var(--iwb-brand); background: var(--iwb-layer2); }
.iwb-task-btn-ring { display: inline-block; width: 11px; height: 11px; margin-right: 4px; flex: 0 0 11px; border: 2px solid var(--iwb-anim-track); border-top-color: var(--iwb-anim); border-right-color: var(--iwb-anim); border-radius: 50%; animation: iwb-generation-spinner-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .iwb-task-btn-ring { animation: none; } }
/* 暗色主题专用:给旋转环与等待小环加一圈白光晕,让"正在跑"的信号更明确(亮色主题不加,保持零变化) */
.theme-dark .iwb-generation-spinner { box-shadow: 0 0 6px var(--iwb-anim-glow); }
.theme-dark .iwb-task-btn-ring { box-shadow: 0 0 5px var(--iwb-anim-glow); }
/* 暗色主题:描边用较弱的白(暗色主题的行底是中灰,纯亮白描边会偏刺眼) */
.theme-dark .iwb-task-running::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 32%, transparent); }
/* ===== v3.86.4 gen 节点「尺寸」与「质量」两行 ===== */
.iwb-gen-sizerow, .iwb-gen-qualityrow { gap: 6px; flex-wrap: wrap; align-items: center; }
.iwb-gen-tag { flex: 0 0 auto; color: var(--iwb-text2); font-size: 12px; font-weight: 700; }
.iwb-size-num { flex: 0 0 auto; width: 60px; min-width: 0; min-height: 30px; padding: 4px 6px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.iwb-size-num::-webkit-outer-spin-button, .iwb-size-num::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.iwb-size-x { flex: 0 0 auto; margin: 0; }
.iwb-size-align { flex: 0 0 auto; white-space: nowrap; }
.iwb-size-align input { margin: 0; }
.iwb-size-badge { flex: 0 0 auto; margin: 0; padding: 1px 7px; border-radius: 999px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); white-space: nowrap; }
.iwb-gen-qualityrow .iwb-chip { font-size: 12px; padding: 2px 10px; }
/* ===== v3.86.5 图像设置浮层(质量 / 尺寸 / 分辨率 / 宽高比网格) ===== */
.iwb-image-settings { width: 380px; max-width: calc(100vw - 32px); }
.iwb-image-settings .iwb-modal-body { display: flex; flex-direction: column; gap: 12px; }
.iwb-setgroup { display: flex; flex-direction: column; gap: 6px; }
/* v3.87.5:质量档位一行放 6 个 chip(自动/快速/标准/高清/极高/最高)→ 只在这个浮层里收紧内边距;
.iwb-setrow 本来就有 flex-wrap,字体差异导致放不下时自然换行,不存在溢出。 */
.iwb-image-settings .iwb-chip-line { padding: 5px 10px; }
.iwb-chip[disabled] { opacity: 0.45; cursor: not-allowed; }
.iwb-chip[disabled]:hover { color: var(--iwb-text2); border-color: var(--iwb-border); }
/* 设置里模型行的「质量」勾选:紧跟名字,不参与右侧按钮的挤压 */
.iwb-modelrow-q { flex: 0 0 auto; font-size: 12px; }
.iwb-modelrow-q input { margin: 0; }
.iwb-setlabel { color: var(--iwb-text2); font-size: 12px; font-weight: 700; }
.iwb-sethd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iwb-setalign { font-size: 12px; white-space: nowrap; }
.iwb-setrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.iwb-setx { color: var(--iwb-text2); flex: 0 0 auto; }
.iwb-set-num { flex: 0 0 auto; width: 74px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.iwb-set-num::-webkit-outer-spin-button, .iwb-set-num::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.iwb-sethint { margin: 0; padding: 1px 7px; border-radius: 999px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); white-space: nowrap; }
.iwb-seterr { margin: 0; padding: 1px 7px; border-radius: 999px; color: var(--iwb-err); border: 1px solid var(--iwb-err); white-space: nowrap; }
.iwb-setgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.iwb-setcell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px; padding: 0; cursor: pointer; background: transparent; border: 1px solid var(--iwb-border); border-radius: 12px; color: var(--iwb-text); transition: border-color .15s, opacity .15s; }
.iwb-setcell:hover { opacity: .8; }
.iwb-setcell-on { border-color: var(--iwb-brand); }
.iwb-setcell-label { font-size: 12px; line-height: 1; }
.iwb-ratio-mini { display: grid; place-items: center; width: 36px; height: 26px; }
.iwb-ratio-mini-auto { border-bottom: 1px dashed var(--iwb-border); }
.iwb-ratio-box { border: 2px solid currentColor; border-radius: 2px; }
.iwb-setopen { flex: 0 0 auto; }
/* ===== v3.86.5 图像设置:贴节点浮层(popover)形态 ===== */
.iwb-pop-anchor { position: fixed; z-index: 3200; }
.iwb-pop { width: 380px; max-width: calc(100vw - 16px); background: var(--iwb-panel); border: 1px solid var(--iwb-border); border-radius: 18px; box-shadow: 0 18px 54px rgba(28,25,23,.16); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.iwb-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iwb-pop-title { font-weight: 700; color: var(--iwb-text); }
.iwb-pop-body { display: flex; flex-direction: column; gap: 12px; }
/* 纯描边胶囊:与截图一致(选中只加重描边与文字色,不填充) */
.iwb-chip-line { background: transparent; border: 1px solid var(--iwb-border); color: var(--iwb-text); border-radius: 999px; padding: 5px 14px; }
.iwb-chip-line:hover { border-color: var(--iwb-brand); color: var(--iwb-text); }
.iwb-chip-line-on, .iwb-chip-line-on:hover { background: transparent; border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
.iwb-pop-anchor .iwb-setcell { background: var(--iwb-panel); }
/* 节点内图像设置汇总条(唯一入口,点击弹出面板) */
.iwb-gen-summary { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* ===== v3.86.6 节点参数:一行排布 + 服务商/分组/模型 自绘气泡 + 字号统一 15px ===== */
.iwb-gen-settings .iwb-input { font-size: 15px; }
/* 强制单行:不换行 + 允许收缩省略,保证「设置排成一行」 */
.iwb-gen-settings .iwb-gen-row { flex-wrap: nowrap; min-height: 40px; }
/* v3.24.24 参数行宽度分配:模型框吃满剩余宽度、图像设置框定宽 200px,两者 + gap 恰好铺满节点内容宽。
原来两者都是 flex: 0 1 auto(按内容宽)= 134 + 6 + 177 = 317 < 458,右侧空出 ~141px。
模型名超长时仍由 .iwb-pick-genmodel 的省略号兜底,不会把「图像设置」挤出去。 */
.iwb-gen-settings .iwb-gen-cell { min-width: 0; flex: 1 1 auto; }
.iwb-gen-settings .iwb-gen-cell .iwb-input { min-width: 0; text-overflow: ellipsis; }
.iwb-gen-settings .iwb-gen-cell .iwb-pick { flex: 1 1 auto; width: 100%; }
/* 图像设置框:定宽 200px(原内容宽 177,加宽 23 让三段信息不挤);内容更长(如「9:21 超宽竖版」)
时按内容宽自然变宽,**不压缩**——否则会裁掉末尾的箭头与质量档位。由模型框承担全部收缩。 */
.iwb-gen-settings .iwb-gen-summary { width: max-content; min-width: min(200px, 100%); max-width: 100%; flex: 0 0 auto; }
/* 四个设置统一为同一种样式:1px 描边 + 10px 圆角 + 38px 最小高 + 15px 字号 */
.iwb-gen-settings .iwb-gen-cell .iwb-input,
.iwb-gen-settings .iwb-pick,
.iwb-gen-summary {
border: 1px solid var(--iwb-border);
border-radius: 10px;
background: var(--iwb-panel);
min-height: 38px;
padding: 6px 26px 6px 12px;
font-size: 15px;
}
/* 触发器(服务商 / 分组 / 模型):与汇总条同款胶囊,只是左侧内边距收窄、文本可省略 */
.iwb-gen-settings .iwb-pick {
display: inline-flex; align-items: center; justify-content: flex-start;
max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
/* 与「尺寸」汇总条保持同一左右内边距(实测原来 12 vs 14 不统一) */
padding: 6px 14px; line-height: 1.2;
}
.iwb-gen-settings .iwb-pick:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-gen-settings .iwb-pick:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.iwb-gen-summary { font-size: 15px; padding: 6px 14px; }
/* ===== v3.86.7 通用选择气泡(PickerBubble):与图像设置面板同一套 popover 外观 ===== */
/* v3.87.3:面板宽度按内容自适应(原来写死 240px,长模型名被硬切且连省略号都没有)。
max-content + 上限:常见模型名(约 30 字符 / 15px ≈ 290px)可整行显示;极端长名/窄屏退到上限并用省略号 + title。 */
/* 文本必须包在块级子元素里,省略号才生效(flex 容器上的 text-overflow 对裸文本无效 → 原来长名是硬切) */
/* 选中项 = 品牌色描边 + 品牌色文字(与 .iwb-chip-line-on 同一套选中语言,只加重不填充) */
/* 弹窗内四组控件的形状统一:跟随「尺寸」那组(圆角矩形,非胶囊);字号统一 15px */
.iwb-pop .iwb-chip-line { border-radius: 10px; min-height: 38px; padding: 6px 14px; font-size: 15px; }
.iwb-pop .iwb-set-num { font-size: 15px; }
.iwb-pop-title { font-size: 15px; }
/* ---------- 分层节点(layer)----------
节点内字号跟随现有节点(11–12px),与「图像设置」面板的 15px 规范区分:
面板是弹层(可放大字号),节点卡片是画布内高密度界面。 */
.iwb-layer-body { display: flex; flex-direction: column; gap: 6px; }
.iwb-layer-prefix { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px dashed var(--iwb-border); border-radius: 6px; padding: 3px 6px; word-break: break-all; }
.iwb-layer-rows { display: flex; flex-direction: column; gap: 4px; }
.iwb-layer-row { display: flex; align-items: center; gap: 4px; }
.iwb-layer-idx { flex: 0 0 auto; width: 16px; text-align: center; font-size: 10px; color: var(--iwb-text2); background: var(--iwb-layer); border-radius: 4px; padding: 1px 0; }
.iwb-layer-name { flex: 1 1 46%; min-width: 0; height: 24px; font-size: 11px; }
.iwb-layer-bbox { flex: 1 1 40%; min-width: 0; height: 24px; font-size: 11px; }
.iwb-layer-del { flex: 0 0 auto; padding: 2px 6px; line-height: 1; }
.iwb-layer-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.iwb-layer-tier { display: flex; align-items: center; gap: 6px; }
.iwb-layer-tier .iwb-chip-line { border-radius: 8px; padding: 2px 8px; font-size: 11px; min-height: 22px; }
.iwb-layer-cost { font-size: 11px; color: var(--iwb-text2); }
.iwb-layer-prompt { font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer); border-radius: 6px; padding: 4px 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.iwb-layer-warn { font-size: 11px; color: var(--iwb-warn); word-break: break-all; }
.iwb-layer-run { font-weight: 600; }
.iwb-layer-results { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--iwb-border2); padding-top: 6px; }
.iwb-layer-resulttitle { font-size: 11px; color: var(--iwb-text2); }
.iwb-layer-item { display: flex; align-items: center; gap: 6px; }
.iwb-layer-thumb { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; border: 1px solid var(--iwb-border); border-radius: 4px; background: repeating-conic-gradient(#e9ebef 0% 25%, #fff 0% 50%) 50% / 8px 8px; cursor: zoom-in; }
.iwb-layer-meta { flex: 1 1 auto; min-width: 0; }
.iwb-layer-itemname { font-size: 11px; color: var(--iwb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwb-layer-sub { font-size: 10px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwb-layer-itemsub { font-size: 10px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── v3.87.6 崩溃可观测性:错误边界兜底 UI + 设置里的「诊断」页 ── */
.iwb-crash-retry { margin-top: 6px; }
.iwb-crash-screen { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--iwb-bg); }
.iwb-crash-card { max-width: 620px; width: 100%; padding: 20px 22px; border: 1px solid var(--iwb-border); border-radius: 14px; background: var(--iwb-panel); display: flex; flex-direction: column; gap: 10px; }
.iwb-crash-title { font-size: 16px; font-weight: 700; }
.iwb-crash-msg { font-size: 13px; color: var(--iwb-text2); word-break: break-word; max-height: 30vh; overflow: auto; }
.iwb-crash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.iwb-diag-kv { font-size: 12px; color: var(--iwb-text2); background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 8px; padding: 3px 8px; }
.iwb-diag-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.iwb-diag-item { padding: 5px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; background: var(--iwb-layer); }
.iwb-diag-head { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.iwb-diag-msg { font-size: 12px; color: var(--iwb-text2); word-break: break-word; }
.iwb-diag-extra { font-size: 11px; color: var(--iwb-text2); opacity: 0.85; word-break: break-word; }
/* v3.87.26 顶部栏"内存/规模"实时信息(可点击 → 打开诊断) */
.iwb-status-mem { cursor: pointer; border: 1px solid var(--iwb-border, rgba(0,0,0,.14)); border-radius: 999px; padding: 1px 8px; background: transparent; font: inherit; color: inherit; }
.iwb-status-mem:hover { background: var(--iwb-hover, rgba(0,0,0,.06)); }
/* v3.87.29 厂商分类(决定请求体怎么发尺寸) */
.iwb-shape-box { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.iwb-shape-box .iwb-textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
/* v3.87.30 修复设置弹窗内的挤压/换行(新增厂商分类控件后暴露) */
.iwb-addr-tag { flex: 0 0 auto; min-width: 44px; white-space: nowrap; text-align: right; }
.iwb-modelrow { flex: 1 1 340px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.iwb-modelrow-main { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-modelrow-kind { flex: 0 0 96px; max-width: 96px; }
.iwb-shape-box .iwb-textarea { width: 100%; box-sizing: border-box; min-height: 68px; }
.iwb-modal .iwb-section-sub { margin-top: 2px; }
/* v3.87.30 设置弹窗放大(内容多:厂商分类 / 模型清单 / 请求体模板 / 规则) */
.iwb-settings-modal { width: min(1180px, 96vw); max-width: 96vw; height: min(92vh, 1040px); max-height: 92vh; }
.iwb-settings-modal .iwb-modal-body { max-height: none; flex: 1 1 auto; min-height: 0; }
/* v3.87.31 模型清单:名称占位更宽 + 「质量」胶囊开关(与"启用"复选框区分) */
.iwb-modelrow { flex: 1 1 460px; }
.iwb-modelrow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 120px; }
.iwb-quality-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--iwb-border); background: transparent; color: var(--iwb-text-dim); border-radius: 999px; padding: 1px 9px; font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; }
.iwb-quality-toggle input { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 3px; margin: 0; position: relative; }
.iwb-quality-toggle input:checked::after { content: ''; position: absolute; inset: 2px; background: currentColor; border-radius: 1px; }
.iwb-quality-toggle:hover { border-color: var(--iwb-brand); }
.iwb-quality-toggle.on { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 600; background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); }
.iwb-shape-hint { flex: 1 1 100%; margin-top: 2px; }
/* v3.87.39 顶部状态栏:加半透明白底 + 背景模糊,避免叠在图片/内容上时文字看不清 */
.iwb-statusbar {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.28);
-webkit-backdrop-filter: blur(10px) saturate(1.1);
backdrop-filter: blur(10px) saturate(1.1);
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
/* 深色主题下白底太亮:改用中性半透明 + 轻微模糊 */
.iwb-theme-dark .iwb-statusbar,
[data-theme="dark"] .iwb-statusbar {
background: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.14);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
/* S13:统一标签栏——首页/landing 面板下移 36px 让出常驻标签条 */
.iwb-overlay .iwb-home-panel { top: 36px; }
.iwb-overlay .iwb-landing-panel { top: 36px; }
.iwb-plugin-row { padding: 8px 0; border-bottom: 1px solid var(--iwb-border); }
.iwb-plugin-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--iwb-border); border-radius: 999px; font-size: 11px; color: var(--iwb-text2); background: var(--iwb-layer2); }
.iwb-plugin-tag-warn { color: var(--iwb-err); border-color: var(--iwb-err); }
.iwb-set-main { display: flex; flex: 1 1 auto; min-height: 0; }
.iwb-set-nav { width: 232px; flex: 0 0 232px; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow: auto; border-right: 1px solid var(--iwb-border); background: var(--iwb-layer); }
.iwb-set-nav-group { font-size: 12px; font-weight: 600; color: var(--iwb-text2); margin: 10px 8px 4px; }
.iwb-set-nav-item { width: 100%; height: auto; padding: 7px 9px; justify-content: flex-start; text-align: left; gap: 8px; }
.iwb-set-nav-item.iwb-tab-active { background: color-mix(in srgb, var(--iwb-brand) 16%, transparent); color: var(--iwb-text); font-weight: 600; }
.iwb-set-page-title { font-size: 16px; font-weight: 700; margin: 2px 0 4px; }
.iwb-set-page-head { display: flex; align-items: flex-start; gap: 10px; }
.iwb-set-page-headtext { min-width: 0; flex: 1 1 auto; }
.iwb-set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--iwb-border); border-radius: 10px; background: var(--iwb-layer); margin-top: 10px; }
.iwb-set-row > input { justify-self: end; }
.iwb-set-row-text { min-width: 0; }
.iwb-set-row-desc { font-size: 12.5px; color: var(--iwb-text2); margin-top: 2px; line-height: 1.5; }
/* ── 「模型设置」面板(2026-10-30):服务商 / 分组 / 模型 ─────────────────────
模型列表用「标签流式排列」:每个按内容宽度,排满一行自动折行(2026-10-31 用户指定样式);
超长名字靠 min-width: max-content 撑开 ⇒ 面板内横向滚动,仍不省略。
文字 nowrap + 不设 text-overflow ⇒ 永不省略(省略会导致无法识别具体模型)。 */
.iwb-gen-config { width: min(92vw, 320px); max-height: min(78vh, calc(100vh - 24px)); display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; }
.iwb-gc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.iwb-gc-field { display: flex; align-items: center; gap: 6px; min-width: 0; }
.iwb-gc-label { font-size: 12px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-gc-select { font-size: 13px; padding: 5px 8px; border: 1px solid var(--iwb-border); border-radius: 8px; background: var(--iwb-panel); color: var(--iwb-text); max-width: 220px; }
.iwb-gc-select:disabled { opacity: 0.5; }
.iwb-gc-sub { font-size: 12px; font-weight: 700; color: var(--iwb-text2); letter-spacing: 0.5px; }
/* ── 节点背景色(2026-11-01 第二轮)──────────────────────────────────────────
数据侧:`data.bg` 存**令牌**(white/cyan/purple/pink/orange/yellow/green),
颜色值由本文件按主题映射 ⇒ 暗色主题是**独立的一套深色**,不是把浅色压暗。
亮色:低饱和莫兰迪浅色(用户要求「再灰一些、亮一些」)。
性能:纯静态 CSS + color-mix(解析期计算),无动画/合成层 ⇒ 不改色时开销为 0。 */
.iwb-node[data-bg] { background: var(--iwb-node-color); }
.iwb-node[data-bg="white"] { --iwb-node-color: #fdfdfd; }
.iwb-node[data-bg="cyan"] { --iwb-node-color: #e1eef0; }
.iwb-node[data-bg="purple"] { --iwb-node-color: #e7e6f4; }
.iwb-node[data-bg="pink"] { --iwb-node-color: #f7e5eb; }
.iwb-node[data-bg="orange"] { --iwb-node-color: #f8eadd; }
.iwb-node[data-bg="yellow"] { --iwb-node-color: #f7f1d9; }
.iwb-node[data-bg="green"] { --iwb-node-color: #e5efe3; }
/* 暗色主题:本项目的暗色是「中灰底 + 近黑文字」(--iwb-node-bg #b3b3b3 / --iwb-text #111)
⇒ 令牌必须给**中灰调**(亮度接近 #b3),否则黑字看不清(第一版给了 #26~#3a 太深,已修)。 */
.theme-dark .iwb-node[data-bg="white"] { --iwb-node-color: #b6b6b8; }
.theme-dark .iwb-node[data-bg="cyan"] { --iwb-node-color: #a9c3c6; }
.theme-dark .iwb-node[data-bg="purple"] { --iwb-node-color: #b4b2cb; }
.theme-dark .iwb-node[data-bg="pink"] { --iwb-node-color: #c9b2ba; }
.theme-dark .iwb-node[data-bg="orange"] { --iwb-node-color: #c9b8a6; }
.theme-dark .iwb-node[data-bg="yellow"] { --iwb-node-color: #c7bf9a; }
.theme-dark .iwb-node[data-bg="green"] { --iwb-node-color: #abc3ac; }
/* 内层元素改用「比节点底亮一档」的同色系派生色(亮色:混白;暗色:混白但比例更高 ⇒ 仍是 raised) */
.iwb-node-bg-custom {
/* 只比节点底色**亮一点点**(82% 节点色 + 18% 白)。
⚠️ 之前写成 14% 节点色(≈ 近白)⇒ 与底色对比过强、看着不统一(2026-11-01 用户反馈)。 */
--iwb-bg-surface: color-mix(in srgb, var(--iwb-node-color, #fff) 82%, #fff);
--iwb-bg-line: color-mix(in srgb, var(--iwb-node-color, #fff) 58%, var(--iwb-border));
}
.theme-dark .iwb-node-bg-custom {
--iwb-bg-surface: color-mix(in srgb, var(--iwb-node-color, #fff) 78%, #fff);
--iwb-bg-line: color-mix(in srgb, var(--iwb-node-color, #fff) 45%, #000);
}
/* 旧数据兼容:第一版把 hex 直接写进 data.bg ⇒ 暗色下压暗一档,避免浅色上出现浅色文字 */
.theme-dark .iwb-node-bg-custom:not([data-bg]) { background: color-mix(in srgb, var(--iwb-node-color, #fff) 58%, #0f0f0f) !important; }
.iwb-node-bg-custom .iwb-task,
.iwb-node-bg-custom .iwb-combine-src,
.iwb-node-bg-custom .iwb-batch-src { background: var(--iwb-bg-surface); border-color: var(--iwb-bg-line); }
/* 下拉框 / 输入框:**透明**,与节点背景同色(用户要求,避免一块块白底) */
.iwb-node-bg-custom .iwb-gen-settings .iwb-pick,
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-summary,
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-cell .iwb-input,
.iwb-node-bg-custom .iwb-input,
.iwb-node-bg-custom .iwb-combine-sep,
.iwb-node-bg-custom .iwb-ref-url-input,
.iwb-node-bg-custom .iwb-select { background: transparent; border-color: var(--iwb-bg-line); }
/* 下拉类控件**不要描边**(用户反馈:多一圈框不好看)——输入框仍保留边界以便识别可输入 */
.iwb-node-bg-custom .iwb-gen-settings .iwb-pick,
.iwb-node-bg-custom .iwb-gen-settings .iwb-gen-summary,
.iwb-node-bg-custom .iwb-combine-sep { border-color: transparent; }
.iwb-node-bg-custom .iwb-pick:hover,
.iwb-node-bg-custom .iwb-gen-summary:hover { border-color: var(--iwb-brand); }
/* 提示词 / 文本节点的正文输入区:与节点背景同色,不再单独区分(2026-11-01 用户要求) */
.iwb-node-bg-custom .iwb-textarea,
.iwb-node-bg-custom .iwb-textarea-plain { background: transparent; border-color: transparent; }
/* 暗色下:中灰底上再叠深色描边会显得"多了一圈框"(用户反馈)⇒ 引用行/任务卡描边透明,只留任务卡左侧状态色条 */
/* 暗色:中灰底上再叠深色描边会显得"到处是框"(用户要求简化视觉)⇒ 自定义底色节点内一律去描边 */
.theme-dark .iwb-node-bg-custom { border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; }
.theme-dark .iwb-node-bg-custom .iwb-task,
.theme-dark .iwb-node-bg-custom .iwb-combine-src,
.theme-dark .iwb-node-bg-custom .iwb-batch-src,
.theme-dark .iwb-node-bg-custom .iwb-input,
.theme-dark .iwb-node-bg-custom .iwb-ref-url-input,
.theme-dark .iwb-node-bg-custom .iwb-ref-single { border-color: transparent; }
.iwb-node-bg-custom .iwb-task .iwb-task-count-sel { background-color: transparent; }
.iwb-node-bg-custom .iwb-ref-upload-link { background: var(--iwb-bg-surface); border-color: var(--iwb-bg-line); }
/* 提示词「放大编辑」:节点右上角小按钮(hover / 选中时出现)+ 大号编辑浮层(2026-11-01) */
/* 提示词「放大编辑」浮层(2026-11-01):无标题、无边框的大编辑卡 + 顶部标记插入工具条 */
.iwb-prompt-mask { display: flex; align-items: center; justify-content: center; }
.iwb-prompt-modal { width: min(1180px, 94vw); height: 86vh; background: var(--iwb-panel); border: 0; border-radius: 22px;
box-shadow: 0 24px 70px rgba(0, 0, 0, .28); display: flex; flex-direction: column; overflow: hidden; }
.iwb-prompt-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 10px 14px; overflow-x: auto; }
.iwb-prompt-tool { height: 30px; min-width: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--iwb-text2);
border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; flex: 0 0 auto; white-space: nowrap; }
.iwb-prompt-tool:hover { background: var(--iwb-hover); color: var(--iwb-text); }
.iwb-prompt-bar-sp { flex: 1 1 auto; }
/* 组间分隔:格式按钮分组(标题 / 块级 / 行内 / 清除)+ 复制,视觉上不再糊成一排 */
.iwb-prompt-sep { flex: 0 0 auto; width: 1px; height: 16px; margin: 0 6px; background: var(--iwb-border); }
/* 加粗/斜体/删除线的**标签本身**套对应字形(2026-11-03):这三个类名此前只写在 JS 里、CSS 从未实现,
所以按钮只是一串字母,看不出功能。 */
.iwb-prompt-tool.iwb-md-b { font-weight: 700; }
.iwb-prompt-tool.iwb-md-i { font-style: italic; }
.iwb-prompt-tool.iwb-md-s { text-decoration: line-through; }
.iwb-prompt-copy { display: inline-flex; align-items: center; justify-content: center; }
.iwb-prompt-copy .iwb-ic { width: 15px; height: 15px; }
.iwb-prompt-copied { font-size: 12px; color: var(--iwb-text2); margin-right: 2px; }
/* 单栏所见即所得编辑区:直接在编辑器里渲染标题/列表/粗斜体/删除线/分割线 */
.iwb-md-editor { overflow: auto; word-break: break-word; outline: none; }
.iwb-md-editor:empty::before { content: attr(data-placeholder); color: var(--iwb-text2); opacity: .7; }
.iwb-md-editor h1 { font-size: 22px; font-weight: 700; margin: 10px 0 6px; line-height: 1.4; }
.iwb-md-editor h2 { font-size: 18px; font-weight: 700; margin: 9px 0 5px; line-height: 1.45; }
.iwb-md-editor h3 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; line-height: 1.5; }
.iwb-md-editor ul, .iwb-md-editor ol { margin: 4px 0; padding-left: 22px; }
.iwb-md-editor ul { list-style: disc; }
.iwb-md-editor ol { list-style: decimal; }
/* 多级列表:每深一层缩进略减、圆点换样式,层级一眼能分(2026-11-03) */
.iwb-md-editor li > ul, .iwb-md-editor li > ol { margin: 2px 0 0; padding-left: 20px; }
.iwb-md-editor li > ul { list-style: circle; }
.iwb-md-editor li > ul > li > ul { list-style: square; }
.iwb-md-editor li { margin: 2px 0; }
.iwb-md-editor hr { border: 0; border-top: 1px solid var(--iwb-border); margin: 12px 0; }
.iwb-md-editor div { min-height: 1.75em; }
.iwb-prompt-x { width: 34px; height: 34px; margin-left: 4px; border: 0; background: var(--iwb-layer); color: var(--iwb-text2);
border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1; }
.iwb-prompt-x:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-prompt-area { flex: 1 1 auto; width: 100%; border: 0; outline: none; resize: none; background: transparent; overflow: auto;
color: var(--iwb-text); padding: 4px 22px 22px; font: inherit; font-size: 15px; line-height: 1.75; box-sizing: border-box; }
.iwb-pick-caret { display: inline-flex; align-items: center; }
.iwb-pick-caret .iwb-ic { width: 14px; height: 14px; opacity: .75; }
/* 节点背景色色板(2026-11-01):6 个预设色块 + 「无」。
纯静态 CSS,无动画/滤镜 ⇒ 不改色时开销为 0;改色只重绘该节点区域。 */
.iwb-pop.iwb-bg-palette { display: flex; flex-direction: row; align-items: center; gap: 8px; width: auto; max-width: none; padding: 8px 10px; border-radius: 12px; }
.iwb-bg-swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--iwb-border); cursor: pointer; padding: 0; flex: 0 0 auto; transition: transform .12s, box-shadow .12s; }
.iwb-bg-swatch[data-bg="white"] { background: #fdfdfd; }
.iwb-bg-swatch[data-bg="cyan"] { background: #e1eef0; }
.iwb-bg-swatch[data-bg="purple"] { background: #e7e6f4; }
.iwb-bg-swatch[data-bg="pink"] { background: #f7e5eb; }
.iwb-bg-swatch[data-bg="orange"] { background: #f8eadd; }
.iwb-bg-swatch[data-bg="yellow"] { background: #f7f1d9; }
.iwb-bg-swatch[data-bg="green"] { background: #e5efe3; }
.theme-dark .iwb-bg-swatch[data-bg="white"] { background: #b6b6b8; }
.theme-dark .iwb-bg-swatch[data-bg="cyan"] { background: #a9c3c6; }
.theme-dark .iwb-bg-swatch[data-bg="purple"] { background: #b4b2cb; }
.theme-dark .iwb-bg-swatch[data-bg="pink"] { background: #c9b2ba; }
.theme-dark .iwb-bg-swatch[data-bg="orange"] { background: #c9b8a6; }
.theme-dark .iwb-bg-swatch[data-bg="yellow"] { background: #c7bf9a; }
.theme-dark .iwb-bg-swatch[data-bg="green"] { background: #abc3ac; }
.iwb-bg-swatch:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 30%, transparent); }
.iwb-bg-swatch-on { box-shadow: inset 0 0 0 2px var(--iwb-brand); }
.iwb-bg-swatch-none { position: relative; background: transparent !important; }
.iwb-bg-swatch-none::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--iwb-text2); opacity: .5; transform: rotate(-45deg); }
/* 气泡上的「背景色」按钮:直接显示**当前背景色**的小色块(不再用调色板图标) */
.iwb-bg-dot { width: 16px; height: 16px; border-radius: 5px; padding: 0; pointer-events: none; flex: 0 0 auto; }
.iwb-bg-dot.iwb-bg-swatch:hover { transform: none; }
.iwb-bg-palette-host { position: fixed; inset: 0; pointer-events: none; z-index: 3300; }
.iwb-bg-palette-host .iwb-pop-anchor { pointer-events: auto; }
.iwb-gc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; overflow: auto; max-height: 48vh; padding-right: 2px; }
.iwb-gc-item { flex: 0 0 auto; width: auto; min-width: max-content; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--iwb-border); border-radius: 10px; background: var(--iwb-panel); color: var(--iwb-text); font-size: 13px; cursor: pointer; white-space: nowrap; text-align: left; }
.iwb-gc-name { white-space: nowrap; }
.iwb-gc-tick { margin-left: auto; color: var(--iwb-brand-text, var(--iwb-brand)); font-weight: 700; }
.iwb-gc-item:hover { border-color: var(--iwb-brand); color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-gc-item-on { border-color: var(--iwb-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 18%, transparent); }
.iwb-gc-item-err { border-color: var(--iwb-err); color: var(--iwb-err); }
.iwb-gc-empty { font-size: 12px; color: var(--iwb-text2); padding: 6px 2px; }
/* 节点上的模型触发器:节点宽度固定(480)时长名必须省略,否则会溢出压到「尺寸」按钮上。
(面板里的模型名永远完整显示:nowrap 且不设省略) */
.iwb-gen-settings .iwb-pick-genmodel { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 模型触发器内部拆成「名字 + 箭头」两段(v3.24.24):按钮被拉宽后箭头必须贴右,
否则长空白会让它看着不像下拉框。名字段承担省略号,箭头固定不压缩。 */
.iwb-gen-settings .iwb-pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-gen-settings .iwb-pick-caret { flex: 0 0 auto; margin-left: auto; padding-left: 8px; opacity: 0.8; }
/* 组合节点:分隔符下拉挪到「组合(N)」同一行右侧(2026-10-30) */
.iwb-gen-head .iwb-combine-sep { width: auto; min-width: 64px; max-width: 46%; flex: 0 1 auto; font-size: 12px; padding: 2px 22px 2px 6px; height: 26px;
/* 与配置节点下拉统一:去掉系统三角,改用同款 chevron(向下) */
appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
background-repeat: no-repeat; background-position: right 7px center; }
/* 提示词 / 文本节点:「继承自上游」状态条(2026-11-14)
* 起因:样式节点连进这两个节点后,节点体只显示空的 placeholder,用户以为没接上。
* 现在自己没写字时直接把上游文本显示出来(.is-inherited 只改字色,零布局位移),
* 状态条说明「继承 / 已固定」并给出「恢复跟随」。 */
.iwb-inherit-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 10.5px; line-height: 16px; color: var(--iwb-text2); min-width: 0; }
.iwb-inherit-tag { flex: 0 0 auto; padding: 0 5px; border-radius: 999px; font-size: 10px; color: var(--iwb-brand-text, var(--iwb-brand)); background: color-mix(in srgb, var(--iwb-brand) 12%, transparent); }
.iwb-inherit-tag.is-taken { color: var(--iwb-text); background: color-mix(in srgb, var(--iwb-tint) 10%, transparent); }
.iwb-inherit-src { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-inherit-more { flex: 0 0 auto; opacity: .78; }
.iwb-inherit-reset { flex: 0 0 auto; border: 0; background: transparent; padding: 0; font: inherit; color: var(--iwb-brand-text, var(--iwb-brand)); cursor: pointer; }
.iwb-inherit-reset:hover { color: var(--iwb-text); text-decoration: underline; }
.iwb-textarea.is-inherited { color: color-mix(in srgb, var(--iwb-text) 74%, transparent); }
/* ── 设置面板整理(桌面版):少框线、多留白、分层靠标题而不是边框 ───────── */
.iwb-settings-modal .iwb-section { border-top: none; margin-top: 4px; padding-top: 0; }
.iwb-settings-modal .iwb-section + .iwb-section { margin-top: 26px; }
.iwb-settings-modal .iwb-section-sub { margin: 20px 0 6px; }
.iwb-settings-modal .iwb-section-sub:first-of-type { margin-top: 10px; }
.iwb-settings-modal .iwb-row { margin: 6px 0; }
.iwb-settings-modal .iwb-hint { margin: 4px 0 0; line-height: 1.6; }
.iwb-settings-modal .iwb-set-nav { border-right: none; }
.iwb-settings-modal .iwb-set-nav-group { margin: 16px 8px 6px; }
/* 桌面端插件列表:标题行 + 右侧操作(对齐 Obsidian,省纵向空间) */
.iwb-plugin-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--iwb-border); }
.iwb-plugin-main { flex: 1 1 auto; min-width: 0; }
.iwb-plugin-title { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.iwb-plugin-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.iwb-plugin-desc { color: var(--iwb-text2); font-size: 13px; line-height: 1.5; margin-top: 2px; }
/* 页内确认框(替代原生 confirm,避免 WKWebView 主线程阻塞) */
.iwb-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.38); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.iwb-confirm-box { width: min(460px, calc(100vw - 48px)); background: var(--iwb-bg-menu); color: var(--iwb-text); border-radius: 12px; padding: 18px 20px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.iwb-confirm-title { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.iwb-confirm-text { font-size: 13.5px; line-height: 1.65; color: var(--iwb-text2); white-space: pre-wrap; word-break: break-word; }
.iwb-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* 插件市场卡片(设置 → 插件 / 与 market.maqiart.eu.org 同一套视觉) */
.iwb-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 4px 0 6px; }
.iwb-mk-head { display: flex; }
.iwb-mk-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.iwb-mk-name { display: flex; align-items: center; flex-wrap: wrap; }
.iwb-mk-desc { flex: 1 1 auto; }
.iwb-mk-tags { display: flex; flex-wrap: wrap; }
.iwb-mk-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
/* 设置行(Obsidian 风格:标题 + 说明 + 右侧控件) */
.iwb-set-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--iwb-border); }
.iwb-set-row-main { flex: 1 1 auto; min-width: 0; }
.iwb-set-row-title { font-weight: 600; font-size: 14px; }
/* 开关 */
.iwb-switch { display: inline-flex; align-items: center; cursor: pointer; flex: 0 0 auto; }
.iwb-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.iwb-switch-track { width: 38px; height: 22px; border-radius: 999px; background: var(--iwb-border); position: relative; transition: background .15s; }
.iwb-switch-dot { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--iwb-panel); transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.iwb-switch input:checked + .iwb-switch-track { background: var(--iwb-brand); }
.iwb-switch input:checked + .iwb-switch-track .iwb-switch-dot { transform: translateX(16px); }
.iwb-switch input:disabled + .iwb-switch-track { opacity: .45; }
/* 已安装插件:横向列表 */
.iwb-mk-list { display: flex; flex-direction: column; }
.iwb-mk-row-main { flex: 1 1 auto; min-width: 0; }
.iwb-mk-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iwb-mk-row-name { font-weight: 600; font-size: 14px; }
.iwb-mk-row-ver { color: var(--iwb-text2); font-size: 12px; }
.iwb-mk-row-author { color: var(--iwb-text2); font-size: 12px; }
.iwb-mk-row-desc { color: var(--iwb-text2); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-mk-row-actions { display: flex; align-items: center; flex: 0 0 auto; }
.iwb-mk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.iwb-mk-chip.on { border-color: var(--iwb-text); }
/* 插件设置:行(无边框盒子,只有细分隔线) */
.iwb-mk-setrow { display: flex; align-items: center; gap: 16px; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--iwb-border); background: transparent; border-radius: 0; margin: 0; }
.iwb-mk-setrow:last-of-type { border-bottom: 0; }
.iwb-mk-setrow-main { flex: 1 1 auto; min-width: 0; }
.iwb-mk-setrow-title { font-weight: 600; font-size: 14px; line-height: 1.4; }
.iwb-mk-setrow .iwb-hint { margin-top: 3px; line-height: 1.55; }
/* 插件设置项:说明在上、控件在下(左对齐,2026-11-19)。
* 原来 label 在左、输入框挤在右边 260px,地址/书签这类内容既看不全也改不动;
* 布尔开关仍留在行末 —— 那是「开/关」,不是要填写的内容。 */
.iwb-mk-setrow-col { display: block; }
.iwb-mk-setrow-col > .iwb-mk-setrow-main { width: 100%; }
.iwb-mk-setrow-col > .iwb-input, .iwb-mk-setrow-col > .iwb-plugin-setting-custom { margin-top: 10px; }
.iwb-plugin-setting-custom { display: block; min-width: 0; max-width: 100%; }
/* 市场页筛选条 */
.iwb-mk-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; align-items: center; }
.iwb-mk-filters .iwb-mk-sep { width: 1px; height: 16px; background: var(--iwb-border); margin: 0 4px; }
/* 市场卡片:等高、底部按钮对齐 */
.iwb-mk-grid { align-items: stretch; }
.iwb-mk-card .iwb-mk-desc { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iwb-mk-card .iwb-mk-tags { align-items: center; }
.iwb-mk-card .iwb-mk-actions { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; min-height: 30px; }
.iwb-mk-card .iwb-mk-name { line-height: 1.35; }
.iwb-mk-card .iwb-plugin-tag { font-size: 11px; padding: 0 6px; line-height: 16px; }
/* 市场卡片:紧凑版(按钮在右上角,去掉底部空档) */
.iwb-mk-head { align-items: flex-start; gap: 8px; }
.iwb-mk-titles { flex: 1 1 auto; min-width: 0; }
.iwb-mk-head .iwb-mk-actions { flex: 0 0 auto; margin: 0; padding: 0; min-height: 0; }
.iwb-mk-card .iwb-mk-avatar { width: 32px; height: 32px; flex: 0 0 32px; font-size: 17px; border-radius: 9px; }
.iwb-mk-card .iwb-mk-name { font-size: 13.5px; }
.iwb-mk-card .iwb-mk-sub { font-size: 11.5px; margin-top: 1px; }
.iwb-mk-card .iwb-mk-desc { font-size: 12px; line-height: 1.45; min-height: 0; margin-top: 2px; }
.iwb-mk-card .iwb-mk-tags { min-height: 0; margin-top: 2px; gap: 5px; }
.iwb-mk-card .iwb-mk-tag { font-size: 10.5px; padding: 0 7px; line-height: 16px; }
.iwb-mk-card .iwb-btn-sm { padding: 3px 10px; font-size: 12px; }
/* LLM 渠道:去掉外框,改成分区 + 细分隔线;默认渠道用左侧色条标记 */
.iwb-settings-modal .iwb-llm-card { border: 0; border-top: 1px solid var(--iwb-border); border-radius: 0; background: transparent; padding: 12px 0 8px; margin: 0; }
.iwb-settings-modal .iwb-llm-card:first-of-type { border-top: 0; }
.iwb-settings-modal .iwb-llm-card-def { border-left: 2px solid var(--iwb-brand); padding-left: 12px; }
.iwb-settings-modal .iwb-llm-card .iwb-label { font-size: 12px; color: var(--iwb-text2); font-weight: 600; margin: 10px 0 4px; }
.iwb-settings-modal .iwb-llm-card .iwb-row { margin: 4px 0; gap: 8px; }
.iwb-settings-modal .iwb-llm-card .iwb-input { padding: 6px 10px; font-size: 13px; }
.iwb-settings-modal .iwb-modellist { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.iwb-settings-modal .iwb-modelrow { padding: 2px 8px; border-radius: 999px; background: var(--iwb-layer2); border: 1px solid transparent; margin: 0; font-size: 12.5px; }
.iwb-settings-modal .iwb-modelrow-active { border-color: var(--iwb-brand); background: color-mix(in srgb, var(--iwb-brand) 8%, transparent); }
.iwb-settings-modal .iwb-llm-card .iwb-btn-xs { opacity: .5; }
.iwb-settings-modal .iwb-llm-card .iwb-btn-xs:hover { opacity: 1; }
/* ── 外观:取色器(v3.25.14,仿 Obsidian 的取色面板) ───────────────── */
.iwb-cpick { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.iwb-cpick-swatch { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--iwb-border); cursor: pointer; font-size: 11px; letter-spacing: .04em; }
.iwb-cpick-swatch:hover { border-color: var(--iwb-border2); }
.iwb-cpick-hex { font-variant-numeric: tabular-nums; } /* v3.25.75:去掉 mix-blend-mode(浅色底上文字糊成一团) */
.iwb-cpick-swatch::after { content: '▾'; margin-left: 6px; opacity: .7; font-size: 10px; } /* 提示可点开取色 */
.iwb-cpick-swatch { min-width: 104px; }
.iwb-cpick-pop { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: 236px; padding: 10px; border-radius: 10px; background: var(--iwb-panel); border: 1px solid var(--iwb-border); box-shadow: var(--sh-md); }
.iwb-cpick-box { position: relative; height: 132px; border-radius: 6px; cursor: crosshair; }
.iwb-cpick-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.iwb-cpick-hue { width: 100%; height: 12px; margin: 10px 0 8px; border-radius: 6px; -webkit-appearance: none; appearance: none; }
.iwb-cpick-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--iwb-panel); border: 2px solid rgba(0,0,0,.45); cursor: pointer; }
.iwb-cpick-rgb { display: flex; gap: 6px; }
.iwb-cpick-chan { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--iwb-text2); }
.iwb-cpick-chan input { width: 100%; height: 26px; padding: 0 4px; text-align: center; border-radius: 5px; border: 1px solid var(--iwb-border); background: var(--iwb-layer2); color: var(--iwb-text); font-size: 11px; }
.iwb-cpick-foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
/* 十六进制输入框可缩到 0(min-width:0 才能被 flex 压窄),「完成」按钮固定不换行 */
.iwb-cpick-input { flex: 1 1 0; min-width: 0; width: auto; height: 26px; font-size: 11px; }
.iwb-cpick-foot .iwb-btn { flex: 0 0 auto; white-space: nowrap; padding: 0 10px; }
.iwb-hint-warn { color: var(--iwb-warn); }
/* 紧凑下拉(v3.25.19):图库顶部的时间/插入尺寸选择器,省横向空间 */
.iwb-select-compact {
width: auto;
min-width: 62px;
max-width: 84px;
padding-left: 6px;
padding-right: 4px;
font-size: var(--fs-sm);
background-position: right 2px center;
}
/* ===== 图库头部(v3.25.39):标题独占一行 → 操作行 → 设定行 =====
* 窄面板下操作行/设定行各自换行,按钮与下拉都保持自然宽度,不被挤压。
*/
.iwb-gal-head { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--iwb-border); }
.iwb-gal-title { display: flex; align-items: baseline; gap: 8px; }
.iwb-gal-sel { font-size: 11px; color: var(--iwb-brand-text, var(--iwb-brand)); }
.iwb-gal-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.iwb-gal-actions .iwb-btn { flex: 0 0 auto; }
.iwb-gal-actions .iwb-btn.iwb-gal-off { opacity: .45; }
/* v1.1.0:底部横栏(左张数 / 右设定),下拉再窄一档 */
.iwb-gal-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--iwb-border); }
.iwb-gal-foot-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.iwb-gal-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-gal-status { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.iwb-gal-opts { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin-left: auto; }
/* 图库视觉(浮层/图标按钮/紧凑间距)已迁到插件自带 gallery/styles.css(v1.5.0):
* 宿主 CSS 只在客户端发版时更新,插件样式随市场更新即生效,避免两处改、两处不一致。
* 这里只留最小兜底:浮层需要相对定位容器。 */
.iwb-history-embedded { position: relative; }
.iwb-gal-opt { display: inline-flex; align-items: center; gap: 3px; }
/* 三个下拉尽量窄:只留内容 + 箭头的最小宽度(0.5K / 特大 / 全部 都放得下) */
.iwb-gal-opt select, .iwb-gal-opts select { width: auto; min-width: 34px; max-width: 44px; height: 20px; padding: 0 0 0 3px; font-size: 10px; }
.iwb-history-grid { overscroll-behavior: contain; }
.iwb-history-head .iwb-btn-sm { padding-left: 6px; padding-right: 6px; }
/* 外观自定义(v3.25.22):数值滑杆与预设按钮 */
.iwb-appear-range { flex: 1 1 0; min-width: 90px; max-width: 220px; }
.iwb-appear-val { min-width: 52px; text-align: right; font-size: var(--fs-sm); color: var(--iwb-text2); }
.iwb-appear-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
/* ===== 左右停靠栏(v3.25.35,Obsidian 式) =====
* 画布始终 inset:0 不动;只有工具栏/小地图/提示条按 --iwb-dock-l/--iwb-dock-r 让位。
*/
.iwb-dockarea { position: absolute; left: 0; right: 0; bottom: 0; top: 36px; z-index: 24; pointer-events: none; }
/* 左右栏只在画布视图出现:首页/落地页必须整块隐藏(网页面板是原生子 webview,盖在 DOM 之上,
只有让它 rect 归零被 park,才不会把首页糊住) */
.iwb-overlay.iwb-view-home .iwb-dockarea,
.iwb-overlay.iwb-view-landing .iwb-dockarea { display: none; }
.iwb-overlay.iwb-view-home,
.iwb-overlay.iwb-view-landing { --iwb-dock-l: 0px; --iwb-dock-r: 0px; }
.iwb-dock {
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
background: var(--iwb-dock-bg); pointer-events: auto; min-width: 100px;
}
.iwb-dock.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border2); }
.iwb-dock.right { right: 0; border-left: 1px solid var(--iwb-border2); }
.iwb-dock-head {
height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
padding: 0 6px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-dock-head-bg);
}
.iwb-dock.right .iwb-dock-head { justify-content: flex-start; }
.iwb-dock-btn {
width: 30px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
border: 0; border-radius: 7px; background: transparent; color: var(--iwb-text2); cursor: pointer;
position: relative; padding: 0;
}
.iwb-dock-btn:hover { background: color-mix(in srgb, var(--iwb-tint) 4%, transparent); color: var(--iwb-text); }
/* v3.26.15:选中态更克制 —— 只提亮图标 + 极淡底,不再用实心白块和下划线 */
.iwb-dock-btn.on { background: color-mix(in srgb, var(--iwb-tint) 11%, transparent); color: var(--iwb-text); }
.iwb-dock-btn.on:hover { background: color-mix(in srgb, var(--iwb-tint) 14%, transparent); }
.iwb-dock-toggle { color: var(--iwb-text2); }
.iwb-dock-body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; overscroll-behavior: contain; }
.iwb-dock-body > * { min-height: 0; }
.iwb-dock-plugin { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.iwb-dock-empty { padding: 16px; font-size: 12px; color: var(--iwb-text2); }
.iwb-dock-resize { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 3; }
.iwb-dock.left .iwb-dock-resize { right: -4px; }
.iwb-dock.right .iwb-dock-resize { left: -4px; }
.iwb-dock-resize:hover { background: color-mix(in srgb, var(--iwb-tint) 12%, transparent); }
.iwb-dock-strip {
position: absolute; top: 0; bottom: 0; width: 14px; pointer-events: auto; cursor: pointer;
display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
background: var(--iwb-panel); color: var(--iwb-text2);
}
.iwb-dock-strip.left { left: var(--iwb-nav-w, 52px); border-right: 1px solid var(--iwb-border); }
.iwb-dock-strip.right { right: 0; border-left: 1px solid var(--iwb-border); }
.iwb-dock-strip:hover { color: var(--iwb-text); background: var(--iwb-hover); }
.iwb-dock-drop { position: absolute; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--iwb-brand); pointer-events: none; }
.iwb-dock-ghost {
position: fixed; z-index: 1000; pointer-events: none; display: inline-flex; align-items: center; gap: 6px;
height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px;
background: var(--iwb-panel); color: var(--iwb-text); border: 1px solid var(--iwb-border2);
box-shadow: 0 8px 24px rgba(0,0,0,.18); white-space: nowrap;
}
/* 顶栏与标签条随左右栏内缩(标题跟着缩进;画布仍不动) */
.iwb-canvas-topbar { padding-left: 10px; padding-right: 14px; box-shadow: none !important; background: transparent !important; height: 56px; border-bottom: 0 !important; padding: 0 14px; gap: 8px; top: 36px; pointer-events: none; left: var(--iwb-dock-l, 0px) !important; right: var(--iwb-dock-r, 0px) !important; }
.iwb-tabstrip { left: 0 !important; right: 0 !important; }
.iwb-tab-spacer { flex: 1 1 auto; }
.iwb-tab-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; pointer-events: auto; }
.iwb-tab-actions .iwb-top-nav-icon { width: 28px; height: 28px; min-height: 28px; }
/* 其它浮层让位(画布不动) */
.iwb-toolbar-wrap { left: var(--iwb-dock-l, 0px); right: calc(60px + var(--iwb-dock-r, 0px)); }
.iwb-minimap {
transition: opacity .16s ease, transform .16s ease;
position: absolute;
width: 132px;
height: 88px;
background: var(--iwb-panel);
border: 1px solid var(--iwb-border);
border-radius: 8px;
z-index: 11;
cursor: crosshair;
overflow: hidden;
touch-action: none;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
right: calc(62px + var(--iwb-dock-r, 0px));
bottom: 14px;
}
.iwb-statusbar { right: calc(62px + var(--iwb-dock-r, 0px)); }
.iwb-hint-bottom { left: calc(var(--iwb-dock-l, 0px) + (100% - var(--iwb-dock-l, 0px) - var(--iwb-dock-r, 0px)) / 2); }
/* ── 一级导航(v3.25.59):最左 52px 纯图标栏 ─────────────────────────── */
.iwb-navrail {
position: absolute; left: 0; top: 36px; bottom: 0; width: 52px; z-index: 27;
display: flex; flex-direction: column; align-items: center; gap: 6px;
padding: 10px 0 12px; background: var(--iwb-home-bg);
border-right: 1px solid var(--iwb-border); box-sizing: border-box;
}
.iwb-navrail-logo {
width: 26px; height: 26px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
border-radius: 10px; color: #fff; background: var(--iwb-brand); margin-bottom: 6px;
}
.iwb-navrail-logo .iwb-ic { width: 20px; height: 20px; }
.iwb-navrail-group { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.iwb-navrail-spacer { flex: 1 1 auto; }
.iwb-nav-item {
width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
border: 0; border-radius: 50%; background: transparent; color: var(--iwb-text2);
cursor: pointer; padding: 0; transition: background var(--tr-fast), color var(--tr-fast);
}
.iwb-nav-item .iwb-ic { width: 19px; height: 19px; }
.iwb-nav-item:hover { background: var(--iwb-hover); color: var(--iwb-text); }
/* 选中态用「反色」:底=文字色、字=页面底色 —— 两套主题都成立,不需要各写一条。
旧暗色是 #e0e0e0 底 + var(--iwb-text) 字,实测 1.3:1(白底白字)。 */
.iwb-nav-item.on { background: var(--iwb-text); color: var(--iwb-bg); }
.iwb-nav-item.on:hover { background: color-mix(in srgb, var(--iwb-text) 88%, var(--iwb-bg)); }
.ws-expanded .iwb-navrail { width: 52px; }
/* ── 插件整页(v3.25.59)──────────────────────────────────────────────── */
/* 用「整屏 + 内边距」而不是 top:36/left:52:
标签条高度或导航宽度以后若有变化,页头也不会被压在标签条下面(v3.25.60 修重叠) */
.iwb-plugin-page {
position: absolute; inset: 0; z-index: 25; box-sizing: border-box;
padding: 42px 0 0 52px;
display: flex; flex-direction: column; background: var(--iwb-bg);
}
.iwb-plugin-page-head {
flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
height: 52px; padding: 0 18px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-panel);
}
.iwb-plugin-page-title { font-weight: 800; font-size: 16px; color: var(--iwb-text); }
.iwb-plugin-page-sub { font-size: 12px; color: var(--iwb-text2); }
.iwb-plugin-page-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; }
/* ── 快捷键弹窗(v3.25.59 分区罗列)──────────────────────────────────── */
.iwb-hotkey-help { display: flex; flex-direction: column; gap: 12px; }
.iwb-hotkey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.iwb-hotkey-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.iwb-hotkey-gname { margin: 2px 0 4px; font-size: 12px; font-weight: 700; color: var(--iwb-brand-text, var(--iwb-brand)); letter-spacing: .04em; }
.iwb-hotkey-row { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.iwb-hotkey-name { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--iwb-text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iwb-hotkey-key {
flex: 0 0 auto; display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
padding: 2px 8px; border-radius: 5px; border: 1px solid var(--iwb-border);
background: var(--iwb-layer); color: var(--iwb-text); font-size: 11px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.iwb-hotkey-more { border-top: 1px dashed var(--iwb-border); padding-top: 10px; }
.iwb-hotkey-toggle { border: 0; background: transparent; color: var(--iwb-text2); font-size: 12px; cursor: pointer; padding: 2px 0; }
.iwb-hotkey-toggle:hover { color: var(--iwb-text); }
.iwb-hotkey-details { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.iwb-hotkey-detail-row { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--iwb-text2); }
.iwb-hotkey-detail-row b { flex: 0 0 108px; color: var(--iwb-text); font-weight: 700; }
.iwb-hotkey-note { font-size: 11px; color: var(--iwb-text2); }
.iwb-help-modal { width: min(720px, 92vw); }
@media (max-width: 720px) { .iwb-hotkey-grid { grid-template-columns: 1fr; } }
/* 一级导航(v3.25.59):首页/落地页也要为 52px 导航让位,否则导航会压在首页侧栏上 */
.iwb-overlay.iwb-view-landing .iwb-landing-panel { padding-left: max(52px, 8vw); }
.iwb-overlay.iwb-view-home .iwb-home-side { margin-left: 52px; }
.iwb-overlay.iwb-view-plugins .iwb-navrail { border-right-color: var(--iwb-border2); }
/* 插件整页保留画布标签条(v3.25.63 用户裁定:与首页/画布页一致);
页头靠 padding-top 让位,不会被标签条压住 */
/* 品牌标记:标签条最左的浅色「IW」(v3.25.66 去掉黑底图标) */
.iwb-tab-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px 0 2px; }
.iwb-tab-logotext {
font-size: 15px; font-weight: 800; letter-spacing: .06em; line-height: 1;
color: color-mix(in srgb, var(--iwb-text) 42%, transparent);
user-select: none;
}
.theme-dark .iwb-tab-logotext { color: var(--iwb-text-dim); }
/* 画布内大图:paint 隔离 + 不让图片溢出重绘(v3.25.67 性能) */
.iwb-ref-single, .iwb-out-cell-img, .iwb-lod-thumb { contain: paint; }
/* v3.25.69:低缩放 LOD 已移除(用户反馈跨阈值时卡顿;改由 content-visibility 缩小绘制面) */
/* v3.25.69:屏幕外节点不参与绘制(配合已有视口裁剪,进一步缩小每次重绘的像素面) */
/* ── 外观面板(v3.25.75 重构):4 组 + 两栏网格 ─────────────────────────── */
.iwb-appear { display: flex; flex-direction: column; gap: 22px; }
.iwb-appear-group { display: flex; flex-direction: column; gap: 4px; }
.iwb-appear-ghead { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px; border-bottom: 1px solid var(--iwb-border); margin-bottom: 6px; }
.iwb-appear-gtitle { font-size: 13px; font-weight: 700; color: var(--iwb-text); }
.iwb-appear-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; }
.iwb-appear-label { font-size: 12px; color: var(--iwb-text2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwb-appear-ctrl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.iwb-appear-ctrl > .iwb-input, .iwb-appear-ctrl > select { max-width: 360px; }
.iwb-appear-note { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-appear-select { max-width: 360px; }
.iwb-appear-range { flex: 0 1 260px; }
.iwb-appear-btns { display: flex; gap: 6px; flex-wrap: wrap; }
/* 分段控件(网格样式:点 / 线 / 空白) */
.iwb-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--iwb-layer); border: 1px solid var(--iwb-border); }
.iwb-seg-item { border: 0; background: transparent; color: var(--iwb-text2); font-size: 12px; padding: 5px 14px; border-radius: 7px; cursor: pointer; }
.iwb-seg-item:hover { color: var(--iwb-text); }
.iwb-seg-item.on { background: var(--iwb-panel); color: var(--iwb-text); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 700; }
@media (max-width: 720px) { .iwb-appear-row { grid-template-columns: 92px minmax(0, 1fr); } .iwb-appear-note { display: none; } }
/* 设置窗口可拖动(v3.25.76):拖标题栏移动,位置不受居中约束 */
.iwb-modal-draghead { cursor: move; user-select: none; }
.iwb-modal-draghead:active { cursor: grabbing; }
.iwb-modal-floating { box-shadow: 0 24px 60px rgba(0,0,0,.32); }
/* 设置面板专用透明遮罩(v3.25.77):去掉灰蒙层,调外观时能直接看到画布变化。
仍保留点击空白处关闭面板的行为。 */
.iwb-modal-mask.iwb-mask-ghost { background: transparent; }
.iwb-modal-mask.iwb-mask-ghost .iwb-settings-modal { box-shadow: 0 24px 60px rgba(0,0,0,.32); }
/* 自动配色开启时的提示行(v3.25.81) */
.iwb-appear-note-only { font-size: 12px; color: var(--iwb-text2); padding: 4px 0 0 2px; }
/* 外观 v2(v3.26.42):模式切换 / 派生摘要 / 跟随·自定义 / 对比度徽标 */
.iwb-appear-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.iwb-appear-modehint { font-size: 11px; color: var(--iwb-text2); }
.iwb-appear-gnote { font-size: 11px; color: var(--iwb-text2); font-weight: 400; white-space: nowrap; }
.iwb-appear-swaches { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0 4px 130px; }
.iwb-appear-sw { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--iwb-text2); }
.iwb-appear-sw i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--iwb-border); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--iwb-text) 28%, transparent); }
.iwb-appear-revert { border: 1px solid var(--iwb-border); background: var(--iwb-layer); color: var(--iwb-text2); font-size: 11px; border-radius: 999px; padding: 1px 7px; cursor: pointer; }
.iwb-appear-revert:hover { color: var(--iwb-text); border-color: var(--iwb-border2); }
.iwb-ratio { margin-left: 6px; font-size: 10px; padding: 1px 5px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.iwb-ratio.ok { color: var(--iwb-ok); background: color-mix(in srgb, var(--iwb-ok) 14%, transparent); }
.iwb-ratio.warn { color: var(--iwb-warn); background: color-mix(in srgb, var(--iwb-warn) 16%, transparent); }
.iwb-ratio.bad { color: var(--iwb-err); background: color-mix(in srgb, var(--iwb-err) 16%, transparent); }
.iwb-appear-preset { display: inline-flex; align-items: center; gap: 2px; }
.iwb-appear-del { border: none; background: transparent; color: var(--iwb-text2); cursor: pointer; font-size: 11px; padding: 2px 4px; border-radius: 4px; }
.iwb-appear-del:hover { color: var(--iwb-err); background: color-mix(in srgb, var(--iwb-err) 12%, transparent); }
@media (max-width: 720px) { .iwb-appear-swaches { padding-left: 92px; } }
/* v3.25.87:插件整页/首页不显示停靠栏(含 iframe 残影,直接 display:none 而不是等淡出) */
.iwb-overlay.iwb-view-plugins .iwb-dockarea,
.iwb-overlay.iwb-view-home .iwb-dockarea,
.iwb-overlay.iwb-view-landing .iwb-dockarea { display: none !important; }
/* ── 库面板(提示词库 / 节点组)视觉层(v3.25.96)────────────────────────────
只作用于这两个面板容器(.iwb-dock-body[data-panel=...]),其他插件零影响:
面板浅灰底;提示词库白卡、节点组灰卡(用户裁定:节点组不要白卡)。 */
/* v3.26.14:提示词库 / 节点组 与图库一致 —— 不额外铺底色(透明,直接显示停靠栏底) */
.iwb-dock-body[data-panel="prompts"],
.iwb-dock-body[data-panel="groups"] { background: transparent; }
.iwb-dock-body[data-panel="prompts"] .iwb-pcard,
.iwb-dock-body[data-panel="groups"] .iwb-pcard { border-radius: 10px; transition: background .12s ease, border-color .12s ease; }
.iwb-dock-body[data-panel="prompts"] .iwb-pcard { background: var(--iwb-plugin-card); }
.iwb-dock-body[data-panel="groups"] .iwb-pcard { background: var(--iwb-plugin-inset); border-color: var(--iwb-border); }
.iwb-dock-body[data-panel="prompts"] .iwb-pcard:hover,
.iwb-dock-body[data-panel="groups"] .iwb-pcard:hover { background: var(--iwb-plugin-hover); border-color: var(--iwb-border2); }
.iwb-dock-body[data-panel="groups"] .iwb-pcard-selected { border-color: var(--iwb-brand); box-shadow: 0 0 0 1px var(--iwb-brand); }
/* ── v3.26.24 插件市场重设计:去线框、块面分区、按钮收敛 ───────────────── */
.iwb-set-page { max-width: 1180px; }
.iwb-mk-toolbar {
display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
background: var(--iwb-layer); border-radius: 12px; padding: 8px 10px; margin: 6px 0 12px;
}
.iwb-mk-toolbar .iwb-input { border: 0; background: var(--iwb-layer2); box-shadow: none; }
.iwb-mk-toolbar .iwb-input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-brand) 22%, transparent); }
.iwb-mk-filters { margin: 0; gap: 6px; }
.iwb-mk-chip:hover { background: var(--iwb-layer2); color: var(--iwb-text); }
.iwb-mk-chip.on { background: var(--iwb-text); color: var(--iwb-layer); }
.iwb-mk-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.iwb-mk-name { font-weight: 600; font-size: 13.5px; }
.iwb-mk-sub { font-size: 11.5px; color: var(--iwb-text2); margin-top: 1px; }
.iwb-mk-desc { font-size: 12px; line-height: 1.55; color: var(--iwb-text2); }
.iwb-mk-dot {
width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; flex: 0 0 auto;
background: var(--iwb-ok, #1d9e75); box-shadow: 0 0 0 2px color-mix(in srgb, var(--iwb-ok, #1d9e75) 22%, transparent);
}
.iwb-mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.iwb-mk-tags { gap: 4px; }
.iwb-mk-tag { border-radius: 999px; background: var(--iwb-layer2); color: var(--iwb-text2); font-size: 10.5px; padding: 1px 7px; }
.iwb-mk-actions { gap: 6px; }
.iwb-mk-actions .iwb-btn { border: 0; background: var(--iwb-layer2); box-shadow: none; }
.iwb-mk-subtitle { font-size: 11.5px; color: var(--iwb-text2); margin: 2px 0 10px; }
.iwb-set-page-title { margin-bottom: 2px; }
/* ── v3.26.25 插件市场二次优化:自适应全宽 + 淡描边 + 已安装徽标(去绿色底) ── */
.iwb-set-page { max-width: none; }
.iwb-mk-card.is-installed { background: var(--iwb-panel); }
.iwb-mk-badge {
margin-left: 7px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; line-height: 17px;
background: color-mix(in srgb, var(--iwb-ok, #1d9e75) 14%, transparent);
color: color-mix(in srgb, var(--iwb-ok, #1d9e75) 82%, var(--iwb-text));
border: 1px solid color-mix(in srgb, var(--iwb-ok, #1d9e75) 32%, transparent);
}
.iwb-mk-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.iwb-mk-toolbar { border: 1px solid color-mix(in srgb, var(--iwb-border) 45%, transparent); }
/* 管理页:行块面化、宽度自适应、操作列右对齐 */
.iwb-mk-list { display: flex; flex-direction: column; gap: 8px; }
.iwb-mk-row-actions { gap: 6px; }
/* ── v3.26.26 插件市场:补回按钮/卡片的“浮动”触感 ───────────────── */
.iwb-mk-actions .iwb-btn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.iwb-mk-chip {
cursor: pointer;
border: 0;
background: var(--iwb-layer);
color: var(--iwb-text2);
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
line-height: 18px;
transition: transform .12s ease, background .12s ease, color .12s ease;
}
/* ── v3.26.27 插件市场/管理:去掉浮动,只保留颜色反馈;移除按钮给浅底;管理页回到横线分隔 ── */
.iwb-mk-card, .iwb-mk-card:hover, .iwb-mk-card:active { transform: none; }
.iwb-mk-card {
display: flex;
flex-direction: column;
border-radius: 14px;
padding: 14px;
gap: 10px;
min-height: 168px;
background: var(--iwb-panel);
border: 1px solid color-mix(in srgb, var(--iwb-border) 55%, transparent);
transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
box-shadow: none;
}
.iwb-mk-card:hover {
background: color-mix(in srgb, var(--iwb-layer) 55%, var(--iwb-panel));
border-color: color-mix(in srgb, var(--iwb-border2) 62%, transparent);
box-shadow: none;
}
/* 操作按钮:默认给浅底,看起来像按钮 */
.iwb-mk-actions .iwb-btn {
transform: none; box-shadow: none;
background: color-mix(in srgb, var(--iwb-tint) 6%, var(--iwb-panel));
transition: background .12s ease, color .12s ease;
}
.iwb-mk-actions .iwb-btn:hover {
transform: none; box-shadow: none;
background: color-mix(in srgb, var(--iwb-tint) 11%, var(--iwb-panel));
}
.iwb-mk-actions .iwb-btn:active { transform: none; box-shadow: none; background: color-mix(in srgb, var(--iwb-tint) 16%, var(--iwb-panel)); }
.iwb-mk-actions .iwb-btn-primary {
background: var(--iwb-text); color: var(--iwb-layer);
}
.iwb-mk-actions .iwb-btn-primary:hover { background: color-mix(in srgb, var(--iwb-tint) 86%, var(--iwb-layer)); box-shadow: none; }
.iwb-mk-chip, .iwb-mk-chip:hover, .iwb-mk-chip:active { transform: none; }
/* 管理页:横线分隔 + 悬停变色,不浮动 */
.iwb-mk-list { gap: 0; }
.iwb-mk-row { display: flex; align-items: center; gap: 12px; background: transparent; border-radius: 0; padding: 12px 6px; border-bottom: 1px solid color-mix(in srgb, var(--iwb-border) 62%, transparent); transform: none; box-shadow: none; transition: background .12s ease; }
.iwb-mk-row:last-child { border-bottom: 0; }
.iwb-mk-row:hover { background: color-mix(in srgb, var(--iwb-tint) 3%, transparent); transform: none; box-shadow: none; }
.iwb-mk-row-actions .iwb-btn { transform: none; box-shadow: none; transition: background .12s ease; }
.iwb-mk-row-actions .iwb-btn:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--iwb-tint) 10%, var(--iwb-panel)); }
/* v3.26.38:未进入编辑态的节点正文不参与指针/文本选择 —— 单击=选中节点,双击=编辑 */
.iwb-node textarea[readonly], .iwb-node input[readonly] { pointer-events: none; }
/* ── 键盘焦点环兜底(v3.26.44 / D8)────────────────────────────────────
此前只有 .iwb-btn / .iwb-tab / .iwb-home-side-item 三处有焦点反馈,其余元素 Tab 过去
全靠 Chromium 默认蓝环(#005fcc)——与项目「全灰阶、无蓝」的配色约束冲突。
这里用 :where() 把权重压到 0,不抢任何已有的具体规则,只补没写的那部分。
放在文件末尾:同权重时靠后的生效,正好盖住 `.iwb-input { outline: none }` 这类重置。 */
:where(button, a[href], input, textarea, select, [tabindex]):focus-visible {
outline: var(--iwb-focus-ring);
outline-offset: 2px;
}