comfy-ts 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +1 -0
  2. package/dist/{LogsSt-qtFzOKpu.js → LogsSt-U1H0mP1m.js} +35 -5
  3. package/dist/LogsSt-U1H0mP1m.js.map +1 -0
  4. package/dist/cli.js +4 -4
  5. package/dist/index.cjs +473 -62
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +191 -31
  8. package/dist/index.d.ts +191 -31
  9. package/dist/index.js +469 -63
  10. package/dist/index.js.map +1 -1
  11. package/dist/{run-serve-BK7BA2dn.js → run-serve-BeAznay5.js} +461 -43
  12. package/dist/run-serve-BeAznay5.js.map +1 -0
  13. package/dist/{run-tui-CQyvMf0N.js → run-tui-BTGjvnKk.js} +43 -18
  14. package/dist/run-tui-BTGjvnKk.js.map +1 -0
  15. package/dist/{schemaDrift-DjjEtwfx.js → schemaDrift-Cg39vs53.js} +470 -60
  16. package/dist/schemaDrift-Cg39vs53.js.map +1 -0
  17. package/dist/serve-web.js +508 -134
  18. package/dist/{state--wrz0BQc.js → state-C7REnHan.js} +7 -3
  19. package/dist/{state--wrz0BQc.js.map → state-C7REnHan.js.map} +1 -1
  20. package/dist/web.d.ts +191 -31
  21. package/dist/web.js +469 -63
  22. package/dist/web.js.map +1 -1
  23. package/examples/rvion/06-qwen-image-edit.cflow.ts +3 -2
  24. package/examples/rvion/10-anima-t2i.cflow.ts +229 -0
  25. package/extra/README.md +4 -0
  26. package/extra/comfyui-fresh-model-lists/README.md +25 -0
  27. package/extra/comfyui-fresh-model-lists/__init__.py +36 -0
  28. package/extra/comfyui-fresh-model-lists/test_fresh_model_lists.py +97 -0
  29. package/package.json +15 -7
  30. package/src/cli/draftMeta.ts +39 -0
  31. package/src/cli/serve/ServeApp.ts +148 -12
  32. package/src/cli/serve/applyVarPayload.ts +50 -22
  33. package/src/cli/serve/describeVar.ts +42 -6
  34. package/src/cli/serve/llmConfigShape.ts +51 -0
  35. package/src/cli/serve/llmConfigs.ts +52 -0
  36. package/src/cli/serve/tagList.ts +92 -0
  37. package/src/cli/serve/tagSource.ts +69 -0
  38. package/src/cli/serve/web/api.ts +48 -0
  39. package/src/cli/serve/web/components/App.tsx +336 -44
  40. package/src/cli/serve/web/components/Gallery.tsx +105 -28
  41. package/src/cli/serve/web/components/HistoryPicker.tsx +149 -0
  42. package/src/cli/serve/web/components/Icon.tsx +18 -2
  43. package/src/cli/serve/web/components/MenuButton.tsx +53 -0
  44. package/src/cli/serve/web/components/Omnibox.tsx +85 -0
  45. package/src/cli/serve/web/components/PromptEnhancer.tsx +476 -180
  46. package/src/cli/serve/web/components/TooltipLayer.tsx +45 -0
  47. package/src/cli/serve/web/components/VarIcon.tsx +24 -0
  48. package/src/cli/serve/web/components/VarsForm.tsx +341 -188
  49. package/src/cli/serve/web/components/controls/BasicControls.tsx +57 -32
  50. package/src/cli/serve/web/components/controls/LorasControl.tsx +644 -317
  51. package/src/cli/serve/web/components/controls/PresetPicker.tsx +1 -1
  52. package/src/cli/serve/web/components/controls/PromptControl.tsx +279 -0
  53. package/src/cli/serve/web/components/controls/PromptEditor.tsx +113 -0
  54. package/src/cli/serve/web/components/controls/SeedControl.tsx +17 -10
  55. package/src/cli/serve/web/components/controls/SizeControl.tsx +111 -18
  56. package/src/cli/serve/web/components/modKey.ts +2 -0
  57. package/src/cli/serve/web/llm.ts +23 -12
  58. package/src/cli/serve/web/promptEditor/promptExtensions.ts +281 -0
  59. package/src/cli/serve/web/state/EnhancerSt.ts +415 -100
  60. package/src/cli/serve/web/state/FormSt.ts +193 -29
  61. package/src/cli/serve/web/state/OmniboxSt.ts +57 -0
  62. package/src/cli/serve/web/state/WebSt.ts +219 -74
  63. package/src/cli/serve/web/state/choiceButtons.ts +61 -0
  64. package/src/cli/serve/web/state/generateButton.ts +16 -0
  65. package/src/cli/serve/web/state/history.ts +54 -0
  66. package/src/cli/serve/web/state/host.ts +5 -2
  67. package/src/cli/serve/web/state/keptLines.ts +53 -0
  68. package/src/cli/serve/web/state/latentMode.ts +20 -0
  69. package/src/cli/serve/web/state/loraSort.ts +18 -0
  70. package/src/cli/serve/web/state/moduleTree.ts +2 -2
  71. package/src/cli/serve/web/state/omnibox.ts +69 -0
  72. package/src/cli/serve/web/state/payload.ts +38 -58
  73. package/src/cli/serve/web/state/shortcuts.ts +54 -0
  74. package/src/cli/serve/web/state/sizeStars.ts +31 -0
  75. package/src/cli/serve/web/state/stableSlots.ts +21 -0
  76. package/src/cli/serve/web/state/varGroups.ts +24 -0
  77. package/src/cli/serve/web/styles.ts +457 -118
  78. package/src/cli/serve/webBundle.ts +54 -10
  79. package/src/cli/tui/components/PickerOverlays.tsx +9 -2
  80. package/src/cli/tui/imagePicker/ImagePickerSt.ts +1 -1
  81. package/src/cli/tui/state/DraftsSt.ts +18 -2
  82. package/src/cli/tui/state/EditorSt.ts +1 -1
  83. package/src/cli/tui/state/LorasSt.ts +1 -1
  84. package/src/cli/tui/state/PickerSt.ts +25 -7
  85. package/src/cli/tui/state/SettingsSt.ts +1 -1
  86. package/src/cli/tui/state/TuiSt.ts +10 -0
  87. package/src/coreExports.ts +20 -0
  88. package/src/host/loraInfoCache.ts +6 -0
  89. package/src/state.ts +5 -0
  90. package/src/vars/ComfyVars.ts +337 -67
  91. package/src/vars/DefinedWorkflow.ts +40 -19
  92. package/src/vars/lanes.ts +238 -0
  93. package/src/vars/loraEntry.ts +101 -0
  94. package/src/vars/promptSyntax.ts +382 -0
  95. package/dist/LogsSt-qtFzOKpu.js.map +0 -1
  96. package/dist/run-serve-BK7BA2dn.js.map +0 -1
  97. package/dist/run-tui-CQyvMf0N.js.map +0 -1
  98. package/dist/schemaDrift-DjjEtwfx.js.map +0 -1
  99. package/src/cli/serve/web/components/Sidebar.tsx +0 -66
@@ -24,32 +24,27 @@ body {
24
24
  #root { height: 100%; }
25
25
  .app { display: flex; flex-direction: column; height: 100%; }
26
26
  .cols { display: flex; flex: 1; min-height: 0; position: relative; }
27
- .backdrop { display: none; }
28
-
29
- .sidebar {
30
- width: 240px; flex-shrink: 0; overflow-y: auto;
31
- border-right: 1px solid var(--border); background: var(--panel); padding: 6px 0;
32
- }
33
- /* the way OUT, from inside: the drawer opens from the workflow head box, which nothing
34
- advertises, so a visible close is what teaches where it lives */
35
- .side-head {
36
- display: flex; align-items: center; justify-content: space-between; gap: 8px;
37
- padding: 2px 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
38
- color: var(--dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
39
- }
40
- .side-head button { padding: 2px 6px; }
41
- .side-module { padding: 6px 12px 2px; }
42
- .side-module .name { font-weight: 600; }
43
- .side-module .host { color: var(--dim); font-size: 11px; margin-left: 6px; }
44
- .side-draft {
45
- display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text);
46
- padding: 4px 12px 4px 26px; cursor: pointer; font: inherit; border-radius: 4px;
47
- }
48
- .side-draft:hover { background: var(--panel-2); }
49
- .side-draft.sel { background: var(--accent-dim); color: #fff; }
50
- .side-errors { margin: 12px; padding: 8px; border: 1px solid var(--red); border-radius: 6px; font-size: 12px; }
51
- .side-errors .file { color: var(--dim); word-break: break-all; }
52
- .side-errors .msg { color: var(--red); }
27
+
28
+ /* ⌘K / ⌘J: every workflow and draft, fuzzy matched. Above the other modals, so it opens from
29
+ inside the loras popup too */
30
+ .omni-overlay { z-index: 60; align-items: flex-start; padding-top: 12vh; }
31
+ .modal.omni { width: min(560px, 100%); max-height: min(70vh, 100%); }
32
+ .omni-list { padding: 4px; }
33
+ .omni-row {
34
+ display: flex; width: 100%; gap: 10px; align-items: baseline; justify-content: space-between;
35
+ text-align: left; border: 0; background: none; color: var(--text); padding: 6px 10px;
36
+ border-radius: 6px; cursor: pointer; font: inherit;
37
+ }
38
+ .omni-row:hover { background: var(--panel-2); }
39
+ .omni-row.sel { background: var(--accent-dim); color: #fff; }
40
+ .omni-row.open .omni-label { font-weight: 600; }
41
+ .omni-label { overflow-wrap: anywhere; }
42
+ .omni-host { color: var(--dim); font-size: 11px; white-space: nowrap; }
43
+ .omni-errors { margin: 10px 6px 4px; padding: 8px; border: 1px solid var(--red); border-radius: 6px; font-size: 12px; }
44
+ .omni-errors .section-title { margin-top: 0; color: var(--red); }
45
+ .omni-errors .file { color: var(--dim); word-break: break-all; }
46
+ .omni-errors .msg { color: var(--red); margin-bottom: 6px; white-space: pre-wrap; }
47
+ button.link.load-errors { color: var(--red); font-size: 11px; }
53
48
 
54
49
  /* the ONE scrolling element. --main-pad-y is its own top+bottom padding, published so the
55
50
  sticky results column can subtract exactly that: a column sized to the full VIEWPORT inside
@@ -64,17 +59,14 @@ body {
64
59
  /* the TUI header on the web: one labelled box per thing you are editing, actions below */
65
60
  /* the boxes measure the FORM COLUMN, not the window: a results panel on the side halves the
66
61
  space they have while the viewport is unchanged, so a media query would answer the wrong
67
- question. Three variants, and EVEN ones: flex-wrap could leave 3 boxes on one line and 1
68
- alone on the next, which reads as a bug rather than as a layout */
62
+ question. Two variants, and EVEN ones: three boxes in a row or stacked. Two columns would
63
+ leave one box alone on the second line, which reads as a bug rather than as a layout */
69
64
  .head-shell { container-type: inline-size; }
70
65
  .head-boxes { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 4px 0 0; align-items: stretch; }
71
- @container (min-width: 380px) {
72
- .head-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
73
- }
74
- @container (min-width: 780px) {
75
- .head-boxes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
66
+ @container (min-width: 540px) {
67
+ .head-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
76
68
  }
77
- /* no container-query support: fall back to the old wrapping row rather than a stack of four */
69
+ /* no container-query support: fall back to the old wrapping row rather than a stack of three */
78
70
  @supports not (container-type: inline-size) {
79
71
  .head-boxes { display: flex; flex-wrap: wrap; }
80
72
  .head-boxes > .head-box { flex: 1 1 auto; min-width: 150px; }
@@ -104,32 +96,64 @@ button.danger { color: var(--dim); }
104
96
  button.attention { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); font-size: 11px; white-space: nowrap; }
105
97
  button.danger:hover { color: var(--red); border-color: var(--red); }
106
98
 
107
- /* the sidebar is a tree: folder → workflows → drafts, the branch line makes the nesting readable */
108
- .side-group { margin-bottom: 7px; }
109
- .side-folder { padding: 4px 12px 2px; color: var(--dim); font-size: 11px; overflow-wrap: anywhere; }
110
- .side-branch { margin-left: 10px; border-left: 1px solid var(--border); }
111
-
112
99
  /* the label column is fit-content CAPPED, not a fixed slab: with short labels the controls
113
100
  start right after them. Rows are subgrids of .vars so the column still lines up across
114
101
  rows — a per-row grid would give every row its own width. The 150px track is the
115
102
  pre-subgrid fallback, kept first so an old engine still gets aligned columns */
116
103
  /* the form needs air under the head boxes: the first var sat flush against them */
117
- .vars { display: grid; grid-template-columns: fit-content(150px) 1fr; margin-top: 14px; }
104
+ .vars { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 14px; position: relative; }
105
+ /* the label column's edge: a thin strip you drag, lit on hover */
106
+ .label-resizer {
107
+ position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; z-index: 5;
108
+ cursor: col-resize; border-radius: 3px;
109
+ }
110
+ .label-resizer:hover, .label-resizer:active { background: var(--accent-dim); }
118
111
  .var-row {
119
112
  display: grid; grid-template-columns: 150px 1fr; grid-column: 1 / -1;
120
113
  grid-template-columns: subgrid; gap: 8px; align-items: start;
121
- padding: 3px 0; border-bottom: 1px solid var(--border);
122
- }
114
+ /* no rule between rows: the label column and the spacing already separate them. Every
115
+ row has the same side padding, so a tinted group block has room and its labels still line
116
+ up with the plain rows */
117
+ padding: 4px 8px;
118
+ }
119
+ /* vars that go together (VarUi.group): one tinted block, rounded at its ends */
120
+ .var-row.in-group { background: rgba(122, 162, 247, 0.06); }
121
+ .var-row.group-start { border-radius: 8px 8px 0 0; margin-top: 6px; }
122
+ .var-row.group-end { border-radius: 0 0 8px 8px; margin-bottom: 6px; }
123
+ .var-row.group-solo { border-radius: 8px; margin: 6px 0; }
123
124
  /* the label IS the drag handle for its row: no separate grip to reveal or aim at */
124
- .var-label { padding-top: 3px; overflow-wrap: break-word; cursor: grab; }
125
+ /* labels never wrap: one line at the height of a control, cut with an ellipsis, whole on hover.
126
+ The icon and the (?) keep their size, only the name gives way */
127
+ .var-label { display: flex; align-items: center; justify-content: flex-end; min-height: 28px; min-width: 0; cursor: grab; }
128
+ .var-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
129
+ /* the ⌘ key that jumps to this var, on its own line under the name */
130
+ .var-label.has-kbd { flex-wrap: wrap; align-content: center; row-gap: 3px; }
131
+ .var-kbd-line { flex-basis: 100%; display: flex; justify-content: flex-end; color: var(--dim); }
132
+ .var-row.inactive .var-control { opacity: 0.18; filter: grayscale(1); }
133
+ .var-row.inactive .var-label { opacity: 0.45; }
125
134
  .var-label:active { cursor: grabbing; }
126
135
  .lora-chip[draggable='true'] { cursor: grab; }
127
136
  /* the card drags from anywhere, so its own controls must keep their cursor */
128
137
  .lora-chip input, .lora-chip label, .lora-chip button { cursor: pointer; }
129
138
  .lora-chip input[type='number'] { cursor: text; }
130
- .var-label .dirty-dot { color: var(--amber); margin-left: 4px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
131
- .var-label .dirty-dot:hover { color: var(--red); }
139
+ /* the modified mark: a small dot pinned to the cell's left edge, OUT of the flow, so a field
140
+ that changes never moves its label */
141
+ .var-label { position: relative; }
142
+ .var-label .dirty-dot {
143
+ position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
144
+ width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
145
+ background: var(--amber); font-size: 0; cursor: pointer;
146
+ }
147
+ .var-label .dirty-dot:hover { background: var(--red); }
132
148
  .var-control { min-width: 0; }
149
+ /* a workflow's own icons: beside a label, or inside a choice button */
150
+ .var-icon { width: 15px; height: 15px; margin-right: 5px; flex-shrink: 0; }
151
+ .btn-group button .var-icon { margin-right: 3px; }
152
+ .var-help {
153
+ flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-right: 5px;
154
+ width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--dim);
155
+ color: var(--dim); font-size: 10px; line-height: 1; cursor: help; vertical-align: 1px;
156
+ }
133
157
  .hint { color: var(--dim); font-size: 11px; margin-top: 2px; }
134
158
 
135
159
  input[type='text'], input[type='number'], textarea, select {
@@ -141,8 +165,62 @@ input[type='number'] { width: 110px; }
141
165
  textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
142
166
  input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
143
167
  input[type='range'] { width: 100%; accent-color: var(--accent); }
168
+ /* a steps or cfg slider across a whole wide row is a long drag for a small number: 320px is
169
+ still a fine grain for 1..60, and the number box keeps its place right after it */
170
+ .var-control input[type='range'] { max-width: 320px; }
144
171
  input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; }
145
172
  .row-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
173
+ /* lanes (src/vars/lanes.ts): named groups merged top to bottom. Each lane is a BAND: a tinted
174
+ strip, its name as plain small text on the left (clickable, not dressed as a button: click
175
+ switches it, drag reorders, double-click renames), its content on the right. An inactive lane
176
+ is dimmed, never hidden */
177
+ .lora-lanes { display: flex; flex-direction: column; gap: 4px; }
178
+ .lanes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
179
+ .lane-box, .lora-section.laned {
180
+ display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start;
181
+ background: var(--panel); border-radius: 8px; padding: 5px 6px 5px 8px;
182
+ }
183
+ .lane-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding-top: 4px; }
184
+ .lane-pill {
185
+ background: none; border: 0; padding: 0; max-width: 100%; cursor: grab;
186
+ font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
187
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
188
+ }
189
+ .lane-pill:hover { text-decoration: underline dotted; }
190
+ .lane-pill.off { color: var(--dim); font-weight: 400; text-decoration: line-through; }
191
+ .lane-bar input.lane-name { width: 100%; padding: 1px 6px; font-size: 12px; height: 22px; }
192
+ /* the tools of a lane only show under the pointer: a calm list of lanes at rest */
193
+ .lane-tools { display: inline-flex; gap: 4px; align-items: center; opacity: 0; transition: opacity 0.12s; }
194
+ .lane-box:hover .lane-tools, .lora-section:hover .lane-tools, .lane-tools:focus-within { opacity: 1; }
195
+ .lane-box.off textarea, .lane-box.off .prompt-editor, .lora-section.off .lora-lane { opacity: 0.4; }
196
+ /* the prompt editor's own colors live in its CodeMirror theme (web/promptEditor/); here only the footer */
197
+ .prompt-editor { position: relative; }
198
+ .pe-foot {
199
+ position: absolute; right: 6px; bottom: 3px; display: flex; gap: 10px; font-size: 10px; color: var(--dim);
200
+ background: var(--panel-2); padding: 0 4px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.12s;
201
+ }
202
+ .prompt-editor:focus-within .pe-foot, .pe-foot.has-error { opacity: 1; pointer-events: auto; }
203
+ .pe-keys, .pe-tokens { cursor: help; }
204
+ .pe-error { color: var(--red); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
205
+ .lane-foot { gap: 14px; }
206
+ .lora-add-card {
207
+ align-self: stretch; min-width: 56px; min-height: 56px; border: 1px dashed var(--border);
208
+ background: none; color: var(--dim); border-radius: 8px; display: inline-flex;
209
+ align-items: center; justify-content: center; font-size: 18px;
210
+ }
211
+ .lora-add-card:hover { border-color: var(--accent); color: var(--accent); }
212
+ /* ⋯ menus (components/MenuButton.tsx) */
213
+ .menu-box { display: inline-flex; }
214
+ button.menu-btn { height: 26px; width: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: none; border-color: transparent; color: var(--dim); }
215
+ button.menu-btn:hover, button.menu-btn[aria-expanded='true'] { color: var(--text); border-color: var(--border); background: var(--panel-2); }
216
+ .menu-list { min-width: 210px; left: auto; right: 0; }
217
+ .menu-item {
218
+ display: flex; gap: 6px; align-items: center; width: 100%; text-align: left;
219
+ background: none; border: 0; border-radius: 6px; padding: 5px 8px;
220
+ }
221
+ .menu-item:hover:not(:disabled) { background: var(--accent-dim); }
222
+ .menu-check { width: 12px; color: var(--accent); flex-shrink: 0; }
223
+ .menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
146
224
 
147
225
  /* presets menu (text + prompt vars). The backdrop sits UNDER the menu and over everything
148
226
  else, so any outside click closes it without a document listener */
@@ -163,6 +241,21 @@ input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px;
163
241
  .preset-item:hover { background: var(--accent-dim); border-color: transparent; }
164
242
  .preset-item.on .preset-name { color: var(--accent); }
165
243
  .preset-name { white-space: pre; }
244
+ /* size: starred aspect icons, the starrable list, fitted W × H */
245
+ .aspect-icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
246
+ .size-row input.size-num { min-width: 0; padding-left: 5px; padding-right: 2px; }
247
+ .size-pick { display: inline-flex; gap: 6px; align-items: center; }
248
+ .size-menu { min-width: 300px; overflow-x: hidden; }
249
+ .size-item { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
250
+ .size-item:hover { background: var(--accent-dim); }
251
+ .size-item.on .size-item-label { color: var(--accent); }
252
+ .size-item-pick {
253
+ flex: 1; display: flex; gap: 8px; align-items: center; text-align: left;
254
+ background: none; border: 0; padding: 4px 7px;
255
+ }
256
+ .size-item-label { flex: 1; white-space: nowrap; }
257
+ .size-star { background: none; border: 0; color: var(--dim); padding: 2px 8px; font-size: 14px; }
258
+ .size-star.on { color: var(--amber); }
166
259
  .preset-peek {
167
260
  color: var(--dim); font-size: 11px; max-width: 100%;
168
261
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
@@ -179,6 +272,8 @@ button.primary {
179
272
  background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600;
180
273
  padding: 5px 14px; display: inline-flex; align-items: center; gap: 6px;
181
274
  }
275
+ /* running: the fill sweeps across a dim track, the text stays, so nothing beside it moves */
276
+ button.primary.running { color: #fff; border-color: var(--accent); }
182
277
  .kbd-hint {
183
278
  font-size: 10px; opacity: 0.65; border: 1px solid currentColor; border-radius: 4px;
184
279
  padding: 0 4px; line-height: 1.4;
@@ -187,16 +282,36 @@ button.link { border: 0; background: none; color: var(--accent); padding: 0; }
187
282
  button.link.danger { color: var(--dim); }
188
283
  button.link.danger:hover { color: var(--red); }
189
284
  button.mode { padding: 2px 7px; font-size: 12px; }
190
- button.mode.sel { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
191
-
192
- /* the run line: button, queue count, result count — one row, each part appearing only when
193
- it has something to say */
194
- .run-line { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
285
+ button.mode.sel { background: var(--accent); border-color: var(--accent); color: #0d1117; }
286
+ /* the actions that START something (new draft, add loras): accent outline, so the eye finds
287
+ them before the neutral ones. The lit segment of a group is a solid accent fill */
288
+ button.accent { color: var(--accent); border-color: var(--accent-dim); }
289
+ /* small secondary actions under a field (presets, enhance, lanes): one size, each its own box */
290
+ button.mini { height: 24px; padding: 0 8px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; color: var(--dim); }
291
+ button.mini:hover { color: var(--text); }
292
+ .prompt-actions { gap: 6px; margin-top: 4px; }
293
+ button.accent:hover { background: var(--accent-dim); color: #fff; }
294
+
295
+ /* the run line: button, queue count, result count. Every part is ALWAYS there at one size, so
296
+ nothing beside it moves when a run starts, a queue empties or a count grows a digit */
297
+ .run-line { display: inline-flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
298
+ .run-chip-count { display: inline-block; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
299
+ .run-chip.empty { opacity: 0.5; }
300
+ .run-chip.empty .run-chip-count { color: var(--dim); }
301
+ .run-chip-clear {
302
+ display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
303
+ padding: 0; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer;
304
+ }
305
+ .run-chip-clear:hover:not(:disabled) { color: var(--red); background: var(--panel-2); }
306
+ .run-chip-clear:disabled { cursor: default; opacity: 0.4; }
307
+ .run-error { flex: 1; min-width: 0; height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); font-size: 12px; }
308
+ input[type='range'].setting-range:disabled { opacity: 0.3; }
309
+ .live-preview-error { margin-left: 4px; }
310
+ .live-preview-line { min-height: 1.35em; }
195
311
  .run-chip {
196
- display: inline-flex; gap: 6px; align-items: center; color: var(--dim); font-size: 12px;
197
- border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
312
+ display: inline-flex; gap: 3px; align-items: center; color: var(--dim); font-size: 12px;
313
+ border: 1px solid var(--border); border-radius: 999px; padding: 1px 3px 1px 8px; flex-shrink: 0;
198
314
  }
199
- .run-chip .link { font-size: 12px; }
200
315
  .runbar {
201
316
  position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center;
202
317
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
@@ -225,11 +340,17 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
225
340
  .host-action.danger:hover { color: var(--red); border-color: var(--red); }
226
341
  .lightbox-bar .host-action { padding: 4px 10px; }
227
342
  .run-card img { max-width: min(320px, 100%); max-height: 320px; border-radius: 6px; display: block; }
343
+ /* fit: every image as wide as the panel, one per row. grid: the slider sets the size (inline),
344
+ run cards wrap several per row */
345
+ .gallery.view-fit .imgs { flex-direction: column; }
346
+ .gallery.view-fit .img-cell, .gallery.view-fit .img-button { width: 100%; }
347
+ .gallery.view-fit .run-card img { width: 100%; height: auto; max-width: 100%; max-height: none; }
348
+ .gallery.view-grid { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
349
+ .gallery.view-grid .run-card { max-width: 100%; }
228
350
  .run-card .noimg { color: var(--dim); font-style: italic; }
229
351
  .run-card.running { border-color: var(--accent-dim); }
230
352
  /* what the host is on, in the node's own unit — the live signal of a text run, which has
231
353
  neither a latent frame nor an image to show */
232
- .run-node { color: var(--accent); font-size: 12px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
233
354
 
234
355
  /* a STRING output: the answer is prose, so it wraps and selects like prose. Monospace because
235
356
  an expanded prompt is copied into another field verbatim */
@@ -253,6 +374,27 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
253
374
  }
254
375
  .run-live-body.dim { color: var(--dim); }
255
376
  .progress-track { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
377
+ /* live previews under generate: compact, the name inline, each line cut to one; a click opens
378
+ the full text. A negative line is dim red, as the prompt box would read it */
379
+ .live-previews { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
380
+ .live-preview {
381
+ display: flex; gap: 8px; align-items: baseline; width: 100%; min-width: 0; text-align: left;
382
+ background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
383
+ font-size: 11px; line-height: 1.4; cursor: pointer;
384
+ }
385
+ .live-preview:hover { border-color: var(--accent-dim); }
386
+ .live-preview-name { flex-shrink: 0; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
387
+ .live-preview-lines { display: flex; flex-direction: column; min-width: 0; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
388
+ .live-preview-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
389
+ .live-preview-line.negative { color: #c9848f; }
390
+ .live-preview.expanded .live-preview-line { white-space: pre-wrap; overflow-wrap: anywhere; }
391
+ /* the running image's frame, reserved at its final ratio: the latent fills it, the bar rides its
392
+ foot, so a run never changes the page's height */
393
+ .run-frame { position: relative; max-width: 100%; background: var(--bg); border-radius: 6px; overflow: hidden; }
394
+ .run-frame .img-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
395
+ .run-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
396
+ .progress-track.over { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; background: rgba(0, 0, 0, 0.45); }
397
+ .run-meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
256
398
  .progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
257
399
 
258
400
  .lora-chip {
@@ -337,15 +479,21 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
337
479
  The selector carries TWO classes on purpose: the .lora-chip button rule above is 0-1-1 and would
338
480
  otherwise win, stripping the padding and the backdrop off this one.
339
481
  width:auto because a stretch parent would otherwise pull it across the whole card */
340
- .chip-media .chip-remove, .lora-active-row .chip-remove {
482
+ .chip-media .chip-remove, .lora-active-row .chip-remove, .lora-card .chip-remove {
341
483
  position: absolute; top: 4px; right: 4px; z-index: 1; width: auto; height: auto;
342
484
  display: inline-flex; align-items: center; justify-content: center;
343
- border: 0; border-radius: 6px; padding: 4px; line-height: 0; color: #fff; cursor: pointer;
485
+ border: 0; border-radius: 8px; padding: 7px; line-height: 0; color: #fff; cursor: pointer;
344
486
  background: rgba(16, 18, 23, 0.72); opacity: 0.85; transition: opacity 0.12s, color 0.12s;
345
487
  }
346
- .chip-media .chip-remove:hover, .lora-active-row .chip-remove:hover { opacity: 1; color: var(--red); }
488
+ .chip-media .chip-remove:hover, .lora-active-row .chip-remove:hover, .lora-card .chip-remove:hover { opacity: 1; color: var(--red); }
347
489
 
348
490
  /* PAUSED: still in the palette, visibly not contributing to the graph */
491
+ .lora-toggle, .thumb-box { position: relative; display: block; }
492
+ .paused-mark {
493
+ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
494
+ pointer-events: none; color: #fff; opacity: 0.8;
495
+ }
496
+ .paused-mark svg { background: rgba(16, 18, 23, 0.55); border-radius: 50%; padding: 10px; box-sizing: content-box; stroke-width: 3; }
349
497
  .lora-chip.off, .lora-active-row.off { opacity: 0.55; }
350
498
  .lora-chip.off { border-style: dashed; }
351
499
  .lora-chip.off .lora-thumb, .lora-active-row.off .lora-thumb { filter: grayscale(1); }
@@ -361,6 +509,33 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
361
509
  }
362
510
  .modal-head { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
363
511
  .modal-head input { flex: 1; }
512
+ /* a popup whose content grows and shrinks (the loras picker): pinned near the top, one fixed
513
+ height, so typing a filter or hiding images never moves it */
514
+ .modal-overlay.top { align-items: flex-start; padding-top: 5vh; }
515
+ .modal.loras-modal { height: min(86vh, 100%); max-height: none; }
516
+ .modal.loras-modal { width: min(1180px, 100%); }
517
+ /* the palette sits BESIDE the gallery, each scrolling alone: picking a lora grows the palette
518
+ and never moves a card under the pointer. Narrow: a fixed-height strip above, same reason */
519
+ .loras-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
520
+ .loras-split .modal-body { min-height: 0; }
521
+ .loras-palette { order: 2; border-left: 1px solid var(--border); }
522
+ .loras-palette .lora-active-row { flex-wrap: wrap; }
523
+ .lora-card.picked { border-color: var(--green); }
524
+ .lora-card.picked .lora-label { color: var(--green); }
525
+ .lora-card.picked.off { border-color: var(--border); border-style: dashed; opacity: 0.55; }
526
+ .lora-card.picked.off .lora-label { color: var(--dim); }
527
+ .lora-card.picked.off .lora-thumb { filter: grayscale(1); }
528
+ @media (max-width: 800px) {
529
+ .loras-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px minmax(0, 1fr); }
530
+ .loras-palette { order: 0; border-left: 0; border-bottom: 1px solid var(--border); }
531
+ }
532
+ .modal-head .modal-close { margin-left: 6px; }
533
+ /* a display setting's slider (lora image size, result size): grey and small, never the accent
534
+ blue of the controls that change what runs */
535
+ input[type='range'].setting-range { width: 72px; flex: 0 0 72px; accent-color: var(--dim); opacity: 0.8; }
536
+ .menu-range { cursor: default; }
537
+ .menu-range input[type='range'].setting-range { margin-left: auto; width: 96px; flex-basis: 96px; }
538
+ .modal-foot { padding: 5px 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--dim); margin: 0; }
364
539
  .modal-body { overflow-y: auto; padding: 10px; }
365
540
  .section-title { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin: 8px 0 6px; }
366
541
 
@@ -374,8 +549,12 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
374
549
  .lora-sort { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
375
550
  .lora-sort .mode { font-size: 11px; padding: 2px 8px; }
376
551
  .lora-card {
377
- display: flex; flex-direction: column; gap: 6px; padding: 6px; text-align: left;
378
- background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; min-width: 0;
552
+ position: relative; min-width: 0;
553
+ background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
554
+ }
555
+ .lora-card-hit {
556
+ display: flex; flex-direction: column; gap: 6px; padding: 6px; width: 100%; text-align: left;
557
+ background: none; border: 0; cursor: pointer; color: inherit;
379
558
  }
380
559
  .lora-card:hover { border-color: var(--accent); }
381
560
  /* CONTAIN, never cover: a cropped preview hides exactly what the lora looks like */
@@ -414,14 +593,76 @@ div.lora-thumb.none {
414
593
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
415
594
  padding: 10px; border-top: 1px solid var(--border);
416
595
  }
417
- .enh-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
418
- .enh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
419
- .enh-cols textarea { width: 100%; }
420
- .enh-cols textarea[readonly] { color: var(--dim); }
421
- .enh-think {
422
- max-height: 160px; overflow-y: auto; white-space: pre-wrap; font-size: 12px;
423
- color: var(--dim); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 8px;
424
- }
596
+ /* one fixed size, pinned near the top: switching a tab or streaming a rewrite never moves it */
597
+ .modal.enh-modal { width: min(1180px, 100%); height: min(88vh, 100%); max-height: none; }
598
+ .enh-title { flex: 1; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
599
+ .enh-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
600
+ .enh-main { min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 14px 16px; font-size: 14px; }
601
+ .enh-side {
602
+ min-height: 0; overflow-y: auto; padding: 12px 10px; border-right: 1px solid var(--border);
603
+ background: var(--bg); display: flex; flex-direction: column; gap: 18px;
604
+ }
605
+ .enh-tabs-title {
606
+ display: flex; align-items: center; gap: 6px; margin: 0 4px 6px;
607
+ color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
608
+ }
609
+ .enh-save { margin-left: auto; color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
610
+ .enh-save.error { color: var(--red); }
611
+ .enh-tab-select { display: none; width: 100%; }
612
+ .enh-tab-list { display: flex; flex-direction: column; gap: 2px; }
613
+ .enh-tab { position: relative; display: flex; align-items: center; border-radius: 6px; border-left: 3px solid transparent; }
614
+ .enh-tab > button:first-child {
615
+ flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left;
616
+ background: none; border: 0; padding: 7px 8px; font-size: 14px; color: var(--text); cursor: pointer;
617
+ }
618
+ .enh-tab:hover { background: var(--panel-2); }
619
+ .enh-tab.sel { background: var(--accent-dim); border-left-color: var(--accent); }
620
+ .enh-tab.sel > button:first-child { font-weight: 600; }
621
+ .enh-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
622
+ .enh-tab-new {
623
+ margin-top: 4px; display: flex; align-items: center; gap: 6px; background: none; border: 1px dashed var(--border);
624
+ color: var(--dim); padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; text-align: left;
625
+ }
626
+ .enh-tab-new:hover { color: var(--accent); border-color: var(--accent); }
627
+ .enh-tab-edit { background: none; border: 0; color: var(--dim); padding: 4px 8px; cursor: pointer; }
628
+ .enh-tab-edit:hover, .enh-tab-edit.sel { color: var(--accent); }
629
+ .enh-right { position: relative; min-height: 0; display: flex; flex-direction: column; }
630
+ .enh-right > .enh-main { flex: 1; overflow: hidden; }
631
+ .enh-job { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
632
+ .enh-job .enh-actions { margin-bottom: 8px; }
633
+ .enh-box { flex: 1; min-height: 60px; resize: none; }
634
+ .enh-box.enh-result { flex: 1.3; }
635
+ button.enh-go { min-width: 130px; justify-content: center; }
636
+ .enh-think-tip { margin-left: 6px; cursor: help; }
637
+ /* the editor covers the job, inside the modal: nothing clips it, nothing beside it moves */
638
+ .enh-edit {
639
+ position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
640
+ background: var(--panel); border-left: 3px solid var(--accent);
641
+ }
642
+ .enh-edit-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
643
+ .enh-edit-head .enh-h { flex: 1; min-width: 0; }
644
+ button.enh-edit-close { background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600; padding: 5px 16px; }
645
+ .enh-edit-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
646
+ .enh-master { flex: 1; min-height: 240px; resize: none; }
647
+ .enh-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--dim); }
648
+ .enh-dot.up { background: var(--green); }
649
+ .enh-dot.down { background: var(--red); }
650
+ .enh-dot.checking { background: var(--amber); }
651
+ .enh-empty { color: var(--dim); font-size: 13px; padding: 4px; }
652
+ .enh-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
653
+ .enh-h-name { color: var(--accent); font-weight: 600; }
654
+ .enh-label { font-size: 13px; color: var(--dim); margin-bottom: 4px; }
655
+ .enh-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
656
+ .enh-text { width: 100%; font-size: 14px; line-height: 1.5; }
657
+ .enh-result { border-color: var(--accent-dim); }
658
+ .enh-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
659
+ button.enh-big { font-size: 14px; padding: 8px 18px; }
660
+ .enh-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
661
+ .enh-grid > label { color: var(--dim); font-size: 13px; text-align: right; }
662
+ .enh-grid input[type='text'], .enh-grid input[type='password'], .enh-grid > select { width: 100%; }
663
+ .enh-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
664
+ .enh-inline > select, .enh-inline > input[type='text'] { flex: 1; min-width: 160px; }
665
+ .enh-inline .row-inline { font-size: 13px; color: var(--dim); }
425
666
 
426
667
  .img-preview { margin-top: 8px; }
427
668
  .img-preview img { max-width: 220px; max-height: 220px; border-radius: 6px; border: 1px solid var(--border); }
@@ -429,6 +670,88 @@ div.lora-thumb.none {
429
670
  .center { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--dim); }
430
671
  .center .error { color: var(--red); max-width: 640px; white-space: pre-wrap; }
431
672
 
673
+ /* history picker: one fixed size, matches left, the highlighted one in full on the right */
674
+ .modal-overlay.hist-overlay { z-index: 60; }
675
+ .modal.hist-modal { width: min(1100px, 100%); height: min(76vh, 100%); max-height: none; }
676
+ .hist-modal .modal-head { align-items: center; }
677
+ .hist-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
678
+ .hist-list { min-height: 0; overflow-y: auto; border-right: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
679
+ .hist-row {
680
+ display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0;
681
+ border-left: 3px solid transparent; border-radius: 6px; padding: 6px 8px; cursor: pointer; color: var(--text); min-width: 0;
682
+ }
683
+ .hist-row.sel { background: var(--accent-dim); border-left-color: var(--accent); }
684
+ .hist-first { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
685
+ .hist-meta { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
686
+ .hist-empty { color: var(--dim); padding: 8px; font-size: 13px; }
687
+ .hist-preview { min-height: 0; display: flex; flex-direction: column; }
688
+ .hist-text {
689
+ flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere;
690
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5;
691
+ }
692
+ .hist-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--border); }
693
+ @media (max-width: 700px) {
694
+ .hist-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
695
+ .hist-list { border-right: 0; border-bottom: 1px solid var(--border); }
696
+ }
697
+ /* the corner latent: a zero-height sticky anchor, so the card floats over the gallery without
698
+ taking a pixel of it; the card itself is one fixed size */
699
+ .corner-run-anchor { position: sticky; top: 6px; height: 0; z-index: 4; flex-basis: 100%; width: 100%; margin-bottom: -10px; }
700
+ .work.layout-pinned .corner-run-anchor { margin-bottom: -6px; }
701
+ .corner-run {
702
+ position: absolute; top: 0; right: 6px; width: 168px; display: flex; flex-direction: column; gap: 4px;
703
+ background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 8px; padding: 6px;
704
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
705
+ }
706
+ .corner-run img { width: 100%; height: 120px; object-fit: contain; display: block; border-radius: 5px; background: var(--bg); }
707
+ .gallery.blur .corner-run img { filter: blur(14px); }
708
+ .corner-run-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--dim); white-space: nowrap; }
709
+ .corner-run-meta .run-meta-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
710
+ /* blur mode: every result, the latent frame included, stays blurred until the pointer is on it */
711
+ .gallery.blur img { filter: blur(22px); transition: filter 0.12s; }
712
+ .gallery.blur img:hover, .gallery.blur .img-cell:hover img, .gallery.blur button:hover img { filter: none; }
713
+ /* bigger control buttons: the preview head and the three cards at the top, one size with the
714
+ rows below them */
715
+ .results-head .btn-group > button, .head-box .btn-group > button, .head-box button.head-icon {
716
+ height: 28px; min-width: 28px; font-size: 13px;
717
+ display: inline-flex; align-items: center; justify-content: center; gap: 4px;
718
+ }
719
+ /* the preview is its OWN surface: panel background and a border, so the editor and the
720
+ results never read as one page. Placement rules below refine it (the corner card is tighter) */
721
+ .results-col { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; }
722
+ .results-col .gallery { margin-top: 0; }
723
+ .results-col .run-card { background: var(--bg); }
724
+ .work.layout-bottom .results-col { margin-top: 16px; }
725
+ /* the panel's own controls sit on top of it */
726
+ .head-group-labeled { display: flex; flex-direction: column; gap: 2px; }
727
+ .results-view { gap: 6px; flex-wrap: nowrap; }
728
+ .head-row { gap: 6px; flex-wrap: nowrap; }
729
+ .group-caption { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding-left: 2px; }
730
+ .results-head {
731
+ display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
732
+ padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
733
+ }
734
+ .work.layout-pinned .results-head { justify-content: flex-end; padding-bottom: 4px; margin-bottom: 6px; }
735
+ /* placement off hides the panel and its buttons: this tab on the right edge brings it back */
736
+ .show-preview {
737
+ position: fixed; right: 0; top: 30%; z-index: 20; padding: 6px 8px;
738
+ border-radius: 8px 0 0 8px; border-right: 0; background: var(--panel); color: var(--dim);
739
+ }
740
+ .show-preview:hover { color: var(--text); }
741
+
742
+ /* LEFT / RIGHT on a wide screen: two full-height panels (react-resizable-panels), each
743
+ scrolling on its own, split by a handle. The preview side is its own surface, full height */
744
+ .work.split { flex: 1; min-width: 0; height: 100%; gap: 0; align-items: stretch; }
745
+ .split-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
746
+ .split-form { padding: 12px 14px 14px; }
747
+ .split-results { background: var(--panel); padding: 10px 12px; }
748
+ .work.split .results-col {
749
+ position: static; width: auto; max-height: none; overflow: visible;
750
+ background: none; border: 0; border-radius: 0; padding: 0;
751
+ }
752
+ .split-handle { width: 5px; background: var(--border); cursor: col-resize; transition: background 0.1s; }
753
+ .split-handle:hover, .split-handle[data-separator-state='drag'] { background: var(--accent); }
754
+
432
755
  /* the placements. Each one is a BUTTON and nothing else: there is no width rule that quietly
433
756
  moves the panel somewhere no button is showing */
434
757
  .work.layout-side { display: flex; gap: 18px; align-items: flex-start; }
@@ -482,53 +805,73 @@ div.lora-thumb.none {
482
805
  .work.layout-pinned .run-card { padding: 0; border: 0; background: none; }
483
806
  .work.layout-pinned .run-card .meta { margin-bottom: 2px; font-size: 11px; }
484
807
  .work.layout-pinned .run-card img { max-height: 34vh; width: auto; }
485
- .results-run { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
808
+ .results-run { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; margin-bottom: 8px; min-width: 0; }
486
809
  .work.layout-pinned .results-run { margin-bottom: 6px; justify-content: flex-end; }
487
810
  /* segmented control: ONE group, no gaps, only the outer corners rounded */
488
811
  .btn-group { display: inline-flex; }
812
+ /* a many-choice with more options than a line holds wraps instead of pushing the row wide */
813
+ .btn-group.wrap { flex-wrap: wrap; row-gap: 4px; }
489
814
  .btn-group button {
490
815
  padding: 2px 6px; font-size: 13px; line-height: 1.3; border-radius: 0; margin: 0;
491
816
  border-right-width: 0; background: var(--panel-2);
492
817
  }
493
818
  .btn-group button:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
494
819
  .btn-group button:last-child { border-right-width: 1px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
495
- .btn-group button.sel { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
820
+ .btn-group button.sel { background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600; }
496
821
  /* the selected segment owns the divider on both sides, else its highlight looks clipped */
497
822
  .btn-group button.sel + button { border-left-color: var(--accent); }
498
823
  .btn-group button:hover { background: var(--panel); }
499
- /* a group living inside a header box sits beside the value, not under it */
500
- .head-group { margin-left: 8px; vertical-align: middle; }
501
- .head-group button { padding: 2px 5px; }
502
- /* rows that mix buttons and inputs: one height for both, so nothing steps over the line.
503
- 32px is what an input with 6px padding and a 1px border measures at this font size */
824
+ .btn-group button.sel:hover { background: var(--accent); }
825
+ /* ONE height for every button a var row shows in a group or an action line: a choice, the
826
+ lora toggles, a lane header, the seed modes. Before, each kind had its own padding and a
827
+ choice sat visibly smaller than the toggles beside it */
828
+ .var-control .btn-group > button, .var-control .row-inline > button:not(.link):not(.lora-add-card):not(.mini),
829
+ .var-control .lora-actions > button {
830
+ height: 28px; min-width: 28px; font-size: 13px;
831
+ display: inline-flex; align-items: center; justify-content: center; gap: 4px;
832
+ }
504
833
  /* everything on a var row is the SAME height as the input beside it, or the row steps.
505
834
  28px is what the slimmed input measures (14px text, 3px padding, 1px border) */
506
835
  .field-height, .field-height button { height: 28px; }
507
836
  .field-height button { display: inline-flex; align-items: center; justify-content: center; }
508
837
  /* a one-character mode button still needs a target: = + ? are narrow glyphs */
509
838
  .btn-group.field-height button { min-width: 28px; }
839
+ /* the draft line: rename, the name, delete, on one line around the name they act on */
840
+ .draft-line { display: flex; gap: 4px; align-items: center; min-width: 0; }
841
+ .draft-line select { flex: 1; min-width: 0; }
842
+ button.head-icon { padding: 2px 5px; background: none; border-color: transparent; color: var(--dim); }
843
+ button.head-icon:hover { border-color: var(--border); color: var(--text); }
844
+ button.head-icon.danger:hover { color: var(--red); border-color: var(--red); }
510
845
  .head-input { padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--accent); max-width: 180px; }
511
846
  .head-label .save-state { color: var(--dim); font-weight: 400; margin-left: 4px; }
512
847
  .head-label .save-state.error { color: var(--red); }
513
848
  /* every head box is two lines: what you are on, then what you can do to it */
514
849
  .head-box { display: flex; flex-direction: column; gap: 5px; }
515
850
  .head-line { display: flex; gap: 8px; align-items: center; min-height: 24px; }
516
- .head-line .head-group { margin-left: 0; }
517
851
 
518
852
  /* the lora controls sit above the palette, left aligned */
519
853
  .lora-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
520
854
  .lora-actions button { font-size: 12px; }
521
- /* a lora the manager knows and comfy does not: flagged, never hidden */
522
- .host-note {
523
- margin: 8px 0; padding: 6px 10px; font-size: 12px; color: var(--text);
524
- background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 6px;
525
- }
526
- /* the keywords the active loras prepend to the prompt: shown, not guessed */
527
- .kw-prefix { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
528
- .kw-chip {
529
- font-size: 11px; padding: 2px 8px; border-radius: 10px;
530
- background: var(--accent-dim); color: #fff;
531
- }
855
+ /* the words the loras prepend to the prompt: shown, not guessed. One quiet LINE per lora (its
856
+ name, the words it adds, how many are disabled), cut with an ellipsis. Clickable without
857
+ shouting: dim text, a dotted underline on hover. A lora that is not running keeps its line,
858
+ fainter, so switching a lane never moves the form */
859
+ .kw-prefix { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
860
+ .kw-box { max-width: 100%; }
861
+ .kw-line {
862
+ display: flex; gap: 6px; align-items: baseline; max-width: 100%; min-width: 0;
863
+ background: none; border: 0; padding: 1px 0; font-size: 11px; color: var(--dim); text-align: left; cursor: pointer;
864
+ }
865
+ .kw-line:hover .kw-words, .kw-line[aria-expanded='true'] .kw-words { color: var(--text); text-decoration: underline dotted; }
866
+ .kw-line.stopped { opacity: 0.45; }
867
+ .kw-lora { font-weight: 600; white-space: nowrap; flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
868
+ .kw-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b4bccf; }
869
+ .kw-off { flex-shrink: 0; white-space: nowrap; font-style: italic; }
870
+ .kw-menu { min-width: 240px; }
871
+ .kw-menu-head { padding: 2px 6px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
872
+ .kw-menu-head .kw-lora { color: var(--text); margin-right: auto; }
873
+ .kw-item { display: flex; gap: 8px; align-items: center; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
874
+ .kw-item:hover { background: var(--accent-dim); }
532
875
  /* a real switch, not a word: the state is readable at a glance and hittable on a phone */
533
876
  .switch { position: relative; display: inline-flex; width: 28px; height: 16px; flex-shrink: 0; cursor: pointer; }
534
877
  .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
@@ -546,7 +889,12 @@ div.lora-thumb.none {
546
889
 
547
890
  /* the lora details sheet */
548
891
  .lora-details { display: flex; gap: 14px; flex-wrap: wrap; }
549
- .detail-thumb { width: 220px; max-width: 100%; border-radius: 8px; }
892
+ /* its own ratio, always: the sheet is a flex row, and a stretched child is drawn as tall as the
893
+ text beside it */
894
+ .detail-thumb {
895
+ width: 220px; max-width: 100%; height: auto; max-height: 70vh; align-self: flex-start;
896
+ object-fit: contain; border-radius: 8px;
897
+ }
550
898
  .detail-list { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
551
899
  .detail-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 12px; }
552
900
  .detail-key { color: var(--dim); }
@@ -562,8 +910,9 @@ div.lora-thumb.none {
562
910
  .detail-examples { display: flex; gap: 8px; flex-wrap: wrap; }
563
911
  .detail-examples img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
564
912
 
565
- button.warn-action { color: var(--amber); border-color: var(--amber); }
566
- button.warn-action:hover { background: var(--panel); }
913
+ /* destructive but routine (clear queue): neutral at rest, it only turns red under the pointer */
914
+ button.quiet-danger:hover { color: var(--red); border-color: var(--red); }
915
+ /* a lora the manager knows and comfy does not: flagged, never hidden */
567
916
  .lora-warn { color: var(--amber); display: inline-flex; margin-left: 4px; vertical-align: -0.1em; }
568
917
  /* an anchor that must read as a button (it opens the host's own page, so it IS a link) */
569
918
  .button-link {
@@ -585,44 +934,28 @@ button.warn-action:hover { background: var(--panel); }
585
934
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
586
935
  }
587
936
 
588
- /* INSTANT tooltips: the native title attribute waits about a second and cannot be styled, so
589
- every affordance carries data-tip instead. No js, no library, and no delay, which is the point */
937
+ /* tooltips: ONE floating layer (components/TooltipLayer.tsx) reads every data-tip. Instant,
938
+ because the native title waits about a second and cannot be styled. position: relative stays
939
+ on the anchors, some of them position their own children against it */
590
940
  [data-tip] { position: relative; }
591
- [data-tip]:hover::after, [data-tip]:focus-visible::after {
592
- content: attr(data-tip);
593
- /* anchored to the button's bottom LEFT, never centred: a centred tip on the leftmost
594
- button hangs off the screen, and one below never covers the row you are reading */
595
- position: absolute; top: calc(100% + 5px); left: 0;
596
- z-index: 60; pointer-events: none; white-space: normal; max-width: 220px; width: max-content;
597
- opacity: 0.8;
598
- background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
599
- border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 400; line-height: 1.3;
600
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
941
+ .tooltip {
942
+ z-index: 100; pointer-events: none; white-space: pre-line; max-width: 320px; width: max-content;
943
+ /* light on a dark page: a tip must not be mistaken for part of the panel */
944
+ background: #e8eaf0; color: #15181f; border: 0;
945
+ border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 450; line-height: 1.4;
946
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
601
947
  }
602
- /* the pointer never crosses a tooltip, so hover cannot flicker between the two */
603
- @media (hover: none) { [data-tip]:hover::after { display: none; } }
604
948
 
605
949
  /* icons inherit the text they sit in, so a button never jumps when one is swapped in */
606
950
  .icon { display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
607
951
  button .icon + * { margin-left: 4px; }
608
952
 
609
- /* the sidebar becomes a fixed drawer over a backdrop */
610
- @media (max-width: 800px) {
611
- .sidebar {
612
- position: fixed; top: 0; left: 0; bottom: 0; width: 264px; z-index: 30;
613
- box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5); padding-top: 12px;
614
- }
615
- .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 25; }
616
- .side-draft { padding: 9px 12px 9px 26px; }
617
- }
618
-
619
953
  /* phone: label over control, 16px inputs (below that iOS zooms the page on focus) */
620
954
  @media (max-width: 640px) {
621
955
  .main { --main-pad-y: 22px; padding: 10px 10px 12px; }
622
956
  /* labels stay BESIDE their control on a phone too: stacking them doubled the height of
623
- every row and read as a wall. The column just gets narrower. A row that needs the whole
624
- width (loras) opts out with .wide */
625
- .vars { grid-template-columns: fit-content(96px) 1fr; }
957
+ every row and read as a wall. The column is the width you dragged. A row that needs the
958
+ whole width (loras) opts out with .wide */
626
959
  .var-row { gap: 6px; }
627
960
  .var-row.wide { grid-template-columns: 1fr; gap: 3px; }
628
961
  .var-label { padding-top: 3px; font-size: 12px; }
@@ -635,7 +968,13 @@ button .icon + * { margin-left: 4px; }
635
968
  .modal { max-height: 100%; height: 100%; width: 100%; border-radius: 0; }
636
969
  .lora-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
637
970
  .runbar { flex-wrap: wrap; }
638
- /* side by side prompts do not fit a phone: stack yours over the rewrite */
639
- .enh-cols { grid-template-columns: 1fr; }
971
+ /* the two tab lists become two dropdowns above the job */
972
+ .enh-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
973
+ .enh-side { flex-direction: row; gap: 10px; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
974
+ .enh-side .enh-tabs { flex: 1; min-width: 0; }
975
+ .enh-tab-list { display: none; }
976
+ .enh-tab-select { display: block; }
977
+ .enh-grid { grid-template-columns: minmax(0, 1fr); }
978
+ .enh-grid > label { text-align: left; }
640
979
  }
641
980
  `