comfy-ts 2.11.0 → 2.13.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 (122) hide show
  1. package/README.md +1 -0
  2. package/dist/{LogsSt-qtFzOKpu.js → LogsSt-CUeo843w.js} +51 -7
  3. package/dist/LogsSt-CUeo843w.js.map +1 -0
  4. package/dist/cli.js +4 -4
  5. package/dist/index.cjs +595 -73
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +286 -46
  8. package/dist/index.d.ts +286 -46
  9. package/dist/index.js +591 -74
  10. package/dist/index.js.map +1 -1
  11. package/dist/{run-serve-BK7BA2dn.js → run-serve-DlRBv_Nk.js} +738 -58
  12. package/dist/run-serve-DlRBv_Nk.js.map +1 -0
  13. package/dist/{run-tui-CQyvMf0N.js → run-tui-B5uxm2_l.js} +43 -18
  14. package/dist/run-tui-B5uxm2_l.js.map +1 -0
  15. package/dist/{schemaDrift-DjjEtwfx.js → schemaDrift-E95iTF7E.js} +473 -60
  16. package/dist/schemaDrift-E95iTF7E.js.map +1 -0
  17. package/dist/serve-web.js +710 -174
  18. package/dist/{state--wrz0BQc.js → state-CUp2J1Zy.js} +126 -14
  19. package/dist/state-CUp2J1Zy.js.map +1 -0
  20. package/dist/web.d.ts +286 -46
  21. package/dist/web.js +591 -74
  22. package/dist/web.js.map +1 -1
  23. package/examples/comfy-cloud/sdk.d.ts +163 -163
  24. package/examples/rvion/06-qwen-image-edit.cflow.ts +3 -2
  25. package/examples/rvion/10-anima-t2i.cflow.ts +252 -0
  26. package/examples/rvion/11-yue2-t2a.cflow.ts +105 -0
  27. package/examples/rvion/12-stable-audio-3-t2a.cflow.ts +78 -0
  28. package/examples/rvion/13-ace-step-15-xl-t2a.cflow.ts +153 -0
  29. package/examples/rvion/stableAudio3Prompts.ts +19 -0
  30. package/extra/README.md +4 -0
  31. package/extra/comfyui-fresh-model-lists/README.md +25 -0
  32. package/extra/comfyui-fresh-model-lists/__init__.py +36 -0
  33. package/extra/comfyui-fresh-model-lists/test_fresh_model_lists.py +97 -0
  34. package/package.json +15 -7
  35. package/src/cli/draftMeta.ts +39 -0
  36. package/src/cli/serve/ServeApp.ts +305 -30
  37. package/src/cli/serve/applyVarPayload.ts +50 -22
  38. package/src/cli/serve/byteRange.ts +48 -0
  39. package/src/cli/serve/describeVar.ts +42 -6
  40. package/src/cli/serve/llmConfigShape.ts +51 -0
  41. package/src/cli/serve/llmConfigs.ts +52 -0
  42. package/src/cli/serve/run-serve.ts +12 -3
  43. package/src/cli/serve/tagList.ts +92 -0
  44. package/src/cli/serve/tagSource.ts +69 -0
  45. package/src/cli/serve/web/api.ts +72 -0
  46. package/src/cli/serve/web/components/App.tsx +485 -44
  47. package/src/cli/serve/web/components/DraftTabs.tsx +167 -0
  48. package/src/cli/serve/web/components/Gallery.tsx +133 -31
  49. package/src/cli/serve/web/components/HistoryPicker.tsx +149 -0
  50. package/src/cli/serve/web/components/Icon.tsx +58 -2
  51. package/src/cli/serve/web/components/MenuButton.tsx +53 -0
  52. package/src/cli/serve/web/components/Omnibox.tsx +135 -0
  53. package/src/cli/serve/web/components/PromptEnhancer.tsx +476 -180
  54. package/src/cli/serve/web/components/SideMenu.tsx +414 -0
  55. package/src/cli/serve/web/components/TooltipLayer.tsx +46 -0
  56. package/src/cli/serve/web/components/VarIcon.tsx +24 -0
  57. package/src/cli/serve/web/components/VarsForm.tsx +223 -351
  58. package/src/cli/serve/web/components/controls/BasicControls.tsx +57 -32
  59. package/src/cli/serve/web/components/controls/LorasControl.tsx +646 -317
  60. package/src/cli/serve/web/components/controls/PresetPicker.tsx +1 -1
  61. package/src/cli/serve/web/components/controls/PromptControl.tsx +279 -0
  62. package/src/cli/serve/web/components/controls/PromptEditor.tsx +113 -0
  63. package/src/cli/serve/web/components/controls/SeedControl.tsx +17 -10
  64. package/src/cli/serve/web/components/controls/SizeControl.tsx +111 -18
  65. package/src/cli/serve/web/components/modKey.ts +2 -0
  66. package/src/cli/serve/web/llm.ts +23 -12
  67. package/src/cli/serve/web/promptEditor/promptExtensions.ts +284 -0
  68. package/src/cli/serve/web/state/EnhancerSt.ts +431 -101
  69. package/src/cli/serve/web/state/FormSt.ts +214 -30
  70. package/src/cli/serve/web/state/OmniboxSt.ts +59 -0
  71. package/src/cli/serve/web/state/WebSt.ts +364 -80
  72. package/src/cli/serve/web/state/choiceButtons.ts +61 -0
  73. package/src/cli/serve/web/state/draftNames.ts +16 -0
  74. package/src/cli/serve/web/state/draftTabs.ts +75 -0
  75. package/src/cli/serve/web/state/generateButton.ts +16 -0
  76. package/src/cli/serve/web/state/history.ts +54 -0
  77. package/src/cli/serve/web/state/host.ts +5 -2
  78. package/src/cli/serve/web/state/keptLines.ts +53 -0
  79. package/src/cli/serve/web/state/latentMode.ts +20 -0
  80. package/src/cli/serve/web/state/loraSort.ts +18 -0
  81. package/src/cli/serve/web/state/moduleTree.ts +2 -2
  82. package/src/cli/serve/web/state/omnibox.ts +133 -0
  83. package/src/cli/serve/web/state/payload.ts +38 -58
  84. package/src/cli/serve/web/state/shortcuts.ts +103 -0
  85. package/src/cli/serve/web/state/sizeStars.ts +31 -0
  86. package/src/cli/serve/web/state/stableSlots.ts +21 -0
  87. package/src/cli/serve/web/state/varGroups.ts +24 -0
  88. package/src/cli/serve/web/styles.ts +653 -154
  89. package/src/cli/serve/webBundle.ts +54 -10
  90. package/src/cli/serve/workflowTags.ts +42 -0
  91. package/src/cli/serve/workspaceLabels.ts +23 -0
  92. package/src/cli/tui/components/PickerOverlays.tsx +9 -2
  93. package/src/cli/tui/imagePicker/ImagePickerSt.ts +1 -1
  94. package/src/cli/tui/state/DraftsSt.ts +28 -8
  95. package/src/cli/tui/state/EditorSt.ts +1 -1
  96. package/src/cli/tui/state/LorasSt.ts +1 -1
  97. package/src/cli/tui/state/PickerSt.ts +25 -7
  98. package/src/cli/tui/state/SettingsSt.ts +1 -1
  99. package/src/cli/tui/state/TuiSt.ts +10 -0
  100. package/src/coreExports.ts +21 -0
  101. package/src/host/ComfyHost.ts +17 -2
  102. package/src/host/ResilientWebsocket.ts +54 -4
  103. package/src/host/loraInfoCache.ts +6 -0
  104. package/src/runner/ComfyExecution.ts +60 -0
  105. package/src/runner/ComfyWorkflow.ts +4 -0
  106. package/src/runner/ComfyWsApi.ts +2 -0
  107. package/src/runner/MediaImage.ts +2 -2
  108. package/src/sdk-generator/ComfyUIObjectInfoTypes.ts +5 -5
  109. package/src/sdk-generator/comfyui-sdk-codegen.ts +1 -1
  110. package/src/state.ts +5 -0
  111. package/src/utils/copyName.ts +12 -0
  112. package/src/vars/ComfyVars.ts +337 -67
  113. package/src/vars/DefinedWorkflow.ts +47 -20
  114. package/src/vars/lanes.ts +238 -0
  115. package/src/vars/loraEntry.ts +101 -0
  116. package/src/vars/promptSyntax.ts +382 -0
  117. package/dist/LogsSt-qtFzOKpu.js.map +0 -1
  118. package/dist/run-serve-BK7BA2dn.js.map +0 -1
  119. package/dist/run-tui-CQyvMf0N.js.map +0 -1
  120. package/dist/schemaDrift-DjjEtwfx.js.map +0 -1
  121. package/dist/state--wrz0BQc.js.map +0 -1
  122. package/src/cli/serve/web/components/Sidebar.tsx +0 -66
@@ -15,6 +15,9 @@ export const STYLES = /* css */ `
15
15
  --amber: #e0af68;
16
16
  }
17
17
  * { box-sizing: border-box; }
18
+ /* every scroller: a thin thumb in the theme, no track. The system scrollbar is a 15px dark band
19
+ under always-visible scrollbars, beside each panel's own padding and the split handle */
20
+ * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--dim) 40%, transparent) transparent; }
18
21
  html, body { margin: 0; height: 100%; }
19
22
  body {
20
23
  background: var(--bg);
@@ -24,32 +27,54 @@ body {
24
27
  #root { height: 100%; }
25
28
  .app { display: flex; flex-direction: column; height: 100%; }
26
29
  .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); }
30
+
31
+ /* ⌘K / ⌘J: every workflow and draft, fuzzy matched. Above the other modals, so it opens from
32
+ inside the loras popup too */
33
+ .omni-overlay { z-index: 60; align-items: flex-start; padding-top: 12vh; }
34
+ .modal.omni { width: min(560px, 100%); max-height: min(70vh, 100%); }
35
+ .omni-list { padding: 4px; }
36
+ .omni-row {
37
+ display: flex; width: 100%; gap: 8px; align-items: center;
38
+ text-align: left; border: 0; background: none; color: var(--text); padding: 5px 10px;
39
+ border-radius: 6px; cursor: pointer; font: inherit;
40
+ }
41
+ .omni-row:hover { background: var(--panel-2); }
42
+ .omni-row.sel { background: var(--accent-dim); color: #fff; }
43
+ .omni-row.workflow { margin-top: 6px; padding-top: 7px; padding-bottom: 7px; }
44
+ .omni-row.workflow:first-child { margin-top: 0; }
45
+ .omni-row.draft { padding-left: 38px; color: var(--dim); }
46
+ .omni-row.draft .icon { opacity: 0.6; flex-shrink: 0; }
47
+ .omni-row.draft.sel, .omni-row.draft:hover { color: var(--text); }
48
+ .omni-row.draft.open .omni-draft { color: var(--text); font-weight: 600; }
49
+ .omni-draft { overflow-wrap: anywhere; }
50
+ .omni-open { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
51
+ .omni-icon {
52
+ display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
53
+ width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2);
54
+ }
55
+ .omni-path { min-width: 0; overflow-wrap: anywhere; }
56
+ .omni-folder { color: var(--dim); font-size: 12px; }
57
+ .omni-name { font-weight: 600; }
58
+ .omni-tags { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
59
+ .omni-tag {
60
+ font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 999px;
61
+ color: var(--dim); border: 1px solid var(--border);
62
+ }
63
+ .omni-host { color: var(--dim); font-size: 11px; white-space: nowrap; margin-left: 4px; opacity: 0.7; }
64
+ .tint-image { color: var(--accent); }
65
+ .tint-audio { color: var(--green); }
66
+ .tint-video { color: var(--amber); }
67
+ .tint-text, .tint-llm { color: #bb9af7; }
68
+ .tint-edit { color: var(--red); }
69
+ .tint-workflow { color: var(--dim); }
70
+ .omni-tag[class*='tint-'] { background: color-mix(in srgb, currentColor 12%, transparent); border-color: color-mix(in srgb, currentColor 35%, transparent); }
71
+ /* a chip the query named: the filter that is on */
72
+ .omni-tag.hit { border-color: currentColor; background: color-mix(in srgb, currentColor 24%, transparent); font-weight: 600; }
73
+ .omni-errors { margin: 10px 6px 4px; padding: 8px; border: 1px solid var(--red); border-radius: 6px; font-size: 12px; }
74
+ .omni-errors .section-title { margin-top: 0; color: var(--red); }
75
+ .omni-errors .file { color: var(--dim); word-break: break-all; }
76
+ .omni-errors .msg { color: var(--red); margin-bottom: 6px; white-space: pre-wrap; }
77
+ button.link.load-errors { color: var(--red); font-size: 11px; }
53
78
 
54
79
  /* the ONE scrolling element. --main-pad-y is its own top+bottom padding, published so the
55
80
  sticky results column can subtract exactly that: a column sized to the full VIEWPORT inside
@@ -61,75 +86,201 @@ body {
61
86
  .main h2 { font-size: 14px; margin: 0; color: var(--dim); font-weight: 500; }
62
87
  .main h2 b { color: var(--text); }
63
88
 
64
- /* the TUI header on the web: one labelled box per thing you are editing, actions below */
65
- /* the boxes measure the FORM COLUMN, not the window: a results panel on the side halves the
66
- 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 */
69
- .head-shell { container-type: inline-size; }
70
- .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)); }
76
- }
77
- /* no container-query support: fall back to the old wrapping row rather than a stack of four */
78
- @supports not (container-type: inline-size) {
79
- .head-boxes { display: flex; flex-wrap: wrap; }
80
- .head-boxes > .head-box { flex: 1 1 auto; min-width: 150px; }
81
- }
82
- .head-box {
83
- position: relative; border: 1px solid var(--border); border-radius: 8px;
84
- padding: 5px 9px; background: var(--panel); min-width: 0;
85
- }
86
- .head-label {
87
- position: absolute; top: -7px; left: 9px; padding: 0 5px; background: var(--bg);
88
- color: var(--dim); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
89
- }
90
- .head-value { font-weight: 600; overflow-wrap: anywhere; }
91
- .head-value.app { color: var(--amber); }
92
- .head-value.draft { color: var(--accent); }
93
- .head-value.host { color: var(--green); }
94
- .head-select { padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--green); max-width: 220px; }
95
- .head-select.draft { color: var(--accent); }
96
- /* a head value that acts: reads like the text beside it, behaves like a button */
97
- .head-value.as-link {
98
- border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer;
99
- color: var(--amber); display: inline-flex; align-items: center; gap: 5px;
100
- }
101
- .head-value.as-link:hover { color: var(--accent); text-decoration: underline; }
89
+ /* the menu column: the TUI header on the web, one labelled card per scope, stacked */
90
+ .menu-layout { flex: 1; min-width: 0; height: 100%; }
91
+ .menu-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border-right: 1px solid var(--border); }
92
+ .menu-main { height: 100%; display: flex; min-width: 0; }
93
+ .menu-main > .main { height: 100%; }
94
+ /* the open drafts as tabs over the work area. The body below takes the rest: the panel group
95
+ inside it sets its own height to 100%, which must mean the room under the bar */
96
+ .tabs-col { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }
97
+ .tabs-body { flex: 1; min-height: 0; display: flex; }
98
+ .tabs-body > .main { height: 100%; }
99
+ .draft-tabs {
100
+ display: flex; gap: 0; padding: 4px 8px 0; overflow-x: auto; flex-shrink: 0;
101
+ background: var(--panel); border-bottom: 1px solid var(--border);
102
+ }
103
+ .draft-tab {
104
+ display: inline-flex; align-items: center; gap: 3px; max-width: 220px; padding: 3px 4px 3px 9px;
105
+ font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; white-space: nowrap;
106
+ border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; margin-bottom: -1px;
107
+ position: relative;
108
+ }
109
+ /* neighbours share one border line, the open tab draws its own on top */
110
+ .draft-tab + .draft-tab { margin-left: -1px; }
111
+ .draft-tab.on { z-index: 1; }
112
+ .draft-tab:hover { color: var(--text); background: var(--panel-2); }
113
+ .draft-tab.on { color: var(--text); background: var(--bg); border-color: var(--border); }
114
+ .draft-tab-name { overflow: hidden; text-overflow: ellipsis; }
115
+ .draft-tab-wf { color: var(--dim); font-size: 11px; }
116
+ .draft-tab button.draft-tab-close {
117
+ border: 0; background: none; padding: 1px; border-radius: 4px; color: inherit; opacity: 0;
118
+ display: inline-flex; align-items: center;
119
+ }
120
+ .draft-tab:hover button.draft-tab-close, .draft-tab.on button.draft-tab-close { opacity: 0.7; }
121
+ .draft-tab button.draft-tab-close:hover { opacity: 1; background: var(--border); }
122
+ /* the open tab's actions: its name to edit, then the menu's own draft rows */
123
+ .tab-menu {
124
+ z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 6px;
125
+ background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
126
+ }
127
+ .tab-menu input.head-input { width: 100%; margin-bottom: 4px; }
128
+ .tab-menu .menu-action.danger:hover { color: var(--red); }
129
+ .menu-col { padding: 0 0 14px; }
130
+ /* ☰ + the name: the same height as the rail's first icon, so folding never moves it */
131
+ .menu-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; border-bottom: 1px solid var(--border); }
132
+ .menu-brand { font-weight: 700; letter-spacing: 0.01em; }
133
+ .menu-head-key { margin-left: auto; }
134
+ /* a full-row action (duplicate, new): reads as an entry of the list, its key at the end */
135
+ .menu-action { color: var(--dim); font-size: 13px; }
136
+ .menu-action:hover { color: var(--text); }
137
+ .menu-action .kbd-hint { margin-left: auto; }
138
+ /* the preview placements: equal tiles, icon over its word, wrapping when the menu is narrow */
139
+ .layout-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); gap: 4px; padding: 2px 4px; }
140
+ .layout-tile {
141
+ display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; min-width: 0;
142
+ border: 1px solid var(--border); border-radius: 7px; background: none; color: var(--dim); font-size: 11px; cursor: pointer;
143
+ }
144
+ .layout-tile .icon + * { margin-left: 0; }
145
+ .layout-tile:hover { color: var(--text); background: var(--panel-2); }
146
+ .layout-tile.sel { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); font-weight: 600; }
147
+ .menu-sections { display: flex; flex-direction: column; }
148
+ .menu-section { padding: 10px 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
149
+ .menu-title {
150
+ display: flex; align-items: center; justify-content: space-between; min-height: 24px; padding: 0 4px;
151
+ color: var(--dim); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
152
+ }
153
+ .menu-title-actions { display: flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; }
154
+ .menu-title-actions .kbd-hint { font-size: 10px; }
155
+ /* a row is a line of the list: icon, value, and its own actions at the end */
156
+ .menu-row {
157
+ display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 4px; border-radius: 6px;
158
+ width: 100%; border: 0; background: none; color: var(--text); font: inherit; text-align: left; min-width: 0;
159
+ }
160
+ .menu-row > .icon { color: var(--dim); flex-shrink: 0; }
161
+ button.menu-row { cursor: pointer; }
162
+ button.menu-row:hover { background: var(--panel-2); }
163
+ .menu-value { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
164
+ .workflow-row .menu-value { color: var(--amber); }
165
+ .menu-value.host { color: var(--green); }
166
+ .menu-select {
167
+ flex: 1; min-width: 0; padding: 2px 4px; font: inherit; font-weight: 600;
168
+ background: transparent; border: 1px solid transparent; border-radius: 5px;
169
+ }
170
+ .menu-select:hover, .menu-select:focus { border-color: var(--border); background: var(--bg); }
171
+ .menu-select.draft { color: var(--accent); }
172
+ .menu-select.host { color: var(--green); }
173
+ .menu-row-actions { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
174
+ /* quiet word buttons under a row: borderless until hovered */
175
+ .menu-buttons { flex-wrap: wrap; gap: 2px; padding-left: 26px; }
176
+ .menu-buttons > button {
177
+ display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px;
178
+ border: 1px solid transparent; border-radius: 6px; background: none; color: var(--dim); font-size: 12.5px; cursor: pointer;
179
+ }
180
+ .menu-buttons > button:hover { color: var(--text); background: var(--panel-2); border-color: var(--border); }
181
+ .menu-buttons > button.sel { color: var(--accent); background: var(--accent-dim); }
182
+ .menu-buttons > button.quiet-danger:hover { color: var(--red); border-color: var(--red); }
183
+ /* the draft file state in the draft title: a grey check, or a small ring turning while unsaved */
184
+ .save-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--dim); }
185
+ .save-mark .spinner {
186
+ width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dim); border-top-color: transparent;
187
+ animation: spin 0.7s linear infinite;
188
+ }
189
+ @keyframes spin { to { transform: rotate(360deg); } }
190
+ .menu-title-actions .head-icon.dirty { color: var(--amber); }
191
+ .menu-note { margin-left: auto; font-size: 11px; color: var(--dim); }
192
+ .menu-note.error { color: var(--red); font-weight: 600; }
193
+ .menu-error { font-size: 12px; padding: 4px; }
194
+ .path-row .path-text { color: var(--text); }
195
+ .menu-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 10px; }
196
+ .menu-rail > button:first-child { height: 44px; }
197
+ .path-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
198
+ /* phones: the menu is a drawer, a slim bar names where you are */
199
+ .mobile-bar {
200
+ display: flex; align-items: center; gap: 8px; padding: 6px 10px;
201
+ border-bottom: 1px solid var(--border); background: var(--panel);
202
+ }
203
+ .mobile-where { border: 0; background: none; font: inherit; color: var(--text); padding: 0; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
204
+ .mobile-draft { color: var(--accent); }
205
+ .mobile-workflow { color: var(--amber); }
206
+ .drawer-overlay { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.5); }
207
+ .drawer {
208
+ position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); overflow-y: auto;
209
+ background: var(--panel); border-right: 1px solid var(--border); padding: 0 0 16px;
210
+ }
102
211
  button.danger { color: var(--dim); }
103
212
  /* a button that asks to be pressed: the host changed under the panel */
104
213
  button.attention { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); font-size: 11px; white-space: nowrap; }
105
214
  button.danger:hover { color: var(--red); border-color: var(--red); }
106
215
 
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
216
  /* the label column is fit-content CAPPED, not a fixed slab: with short labels the controls
113
217
  start right after them. Rows are subgrids of .vars so the column still lines up across
114
218
  rows — a per-row grid would give every row its own width. The 150px track is the
115
219
  pre-subgrid fallback, kept first so an old engine still gets aligned columns */
116
220
  /* 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; }
221
+ .vars { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-top: 14px; position: relative; padding-left: 22px; }
222
+ /* each row's reset, in the form's left gutter (the padding above): borderless until
223
+ hovered, out of the flow so it never moves a label */
224
+ .var-row { position: relative; }
225
+ button.var-reset {
226
+ position: absolute; left: -20px; top: 6px; width: 20px; height: 20px; padding: 0;
227
+ display: inline-flex; align-items: center; justify-content: center;
228
+ border: 1px solid transparent; border-radius: 5px; background: none; color: var(--dim); cursor: pointer;
229
+ }
230
+ button.var-reset:hover:not(:disabled) { border-color: var(--border); color: var(--text); background: var(--panel-2); }
231
+ button.var-reset:disabled { opacity: 0.25; cursor: default; }
232
+ /* the label column's edge: a thin strip you drag, lit on hover */
233
+ .label-resizer {
234
+ position: absolute; top: 0; bottom: 0; width: 6px; margin-left: -3px; z-index: 5;
235
+ cursor: col-resize; border-radius: 3px;
236
+ }
237
+ .label-resizer:hover, .label-resizer:active { background: var(--accent-dim); }
118
238
  .var-row {
119
239
  display: grid; grid-template-columns: 150px 1fr; grid-column: 1 / -1;
120
240
  grid-template-columns: subgrid; gap: 8px; align-items: start;
121
- padding: 3px 0; border-bottom: 1px solid var(--border);
241
+ /* no rule between rows: the label column and the spacing already separate them. Every
242
+ row has the same side padding, so a tinted group block has room and its labels still line
243
+ up with the plain rows */
244
+ padding: 4px 8px;
122
245
  }
246
+ /* vars that go together (VarUi.group): one tinted block, rounded at its ends */
247
+ .var-row.in-group { background: rgba(122, 162, 247, 0.06); }
248
+ .var-row.group-start { border-radius: 8px 8px 0 0; margin-top: 6px; }
249
+ .var-row.group-end { border-radius: 0 0 8px 8px; margin-bottom: 6px; }
250
+ .var-row.group-solo { border-radius: 8px; margin: 6px 0; }
123
251
  /* 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; }
252
+ /* labels never wrap: one line at the height of a control, cut with an ellipsis, whole on hover.
253
+ The icon and the (?) keep their size, only the name gives way */
254
+ .var-label { display: flex; align-items: center; justify-content: flex-end; min-height: 28px; min-width: 0; cursor: grab; }
255
+ .var-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
256
+ /* the ⌘ key that jumps to this var, on its own line under the name */
257
+ .var-label.has-kbd { flex-wrap: wrap; align-content: center; row-gap: 3px; }
258
+ .var-kbd-line { flex-basis: 100%; display: flex; justify-content: flex-end; color: var(--dim); }
259
+ .var-row.inactive .var-control { opacity: 0.18; filter: grayscale(1); }
260
+ .var-row.inactive .var-label { opacity: 0.45; }
125
261
  .var-label:active { cursor: grabbing; }
126
262
  .lora-chip[draggable='true'] { cursor: grab; }
127
263
  /* the card drags from anywhere, so its own controls must keep their cursor */
128
264
  .lora-chip input, .lora-chip label, .lora-chip button { cursor: pointer; }
129
265
  .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); }
266
+ /* the modified mark: a small dot pinned to the cell's left edge, OUT of the flow, so a field
267
+ that changes never moves its label */
268
+ .var-label { position: relative; }
269
+ .var-label .dirty-dot {
270
+ position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
271
+ width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
272
+ background: var(--amber); font-size: 0; cursor: pointer;
273
+ }
274
+ .var-label .dirty-dot:hover { background: var(--red); }
132
275
  .var-control { min-width: 0; }
276
+ /* a workflow's own icons: beside a label, or inside a choice button */
277
+ .var-icon { width: 15px; height: 15px; margin-right: 5px; flex-shrink: 0; }
278
+ .btn-group button .var-icon { margin-right: 3px; }
279
+ .var-help {
280
+ flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-right: 5px;
281
+ width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--dim);
282
+ color: var(--dim); font-size: 10px; line-height: 1; cursor: help; vertical-align: 1px;
283
+ }
133
284
  .hint { color: var(--dim); font-size: 11px; margin-top: 2px; }
134
285
 
135
286
  input[type='text'], input[type='number'], textarea, select {
@@ -141,8 +292,62 @@ input[type='number'] { width: 110px; }
141
292
  textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
142
293
  input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
143
294
  input[type='range'] { width: 100%; accent-color: var(--accent); }
295
+ /* a steps or cfg slider across a whole wide row is a long drag for a small number: 320px is
296
+ still a fine grain for 1..60, and the number box keeps its place right after it */
297
+ .var-control input[type='range'] { max-width: 320px; }
144
298
  input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; }
145
299
  .row-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
300
+ /* lanes (src/vars/lanes.ts): named groups merged top to bottom. Each lane is a BAND: a tinted
301
+ strip, its name as plain small text on the left (clickable, not dressed as a button: click
302
+ switches it, drag reorders, double-click renames), its content on the right. An inactive lane
303
+ is dimmed, never hidden */
304
+ .lora-lanes { display: flex; flex-direction: column; gap: 4px; }
305
+ .lanes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
306
+ .lane-box, .lora-section.laned {
307
+ display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start;
308
+ background: var(--panel); border-radius: 8px; padding: 5px 6px 5px 8px;
309
+ }
310
+ .lane-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding-top: 4px; }
311
+ .lane-pill {
312
+ background: none; border: 0; padding: 0; max-width: 100%; cursor: grab;
313
+ font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
314
+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
315
+ }
316
+ .lane-pill:hover { text-decoration: underline dotted; }
317
+ .lane-pill.off { color: var(--dim); font-weight: 400; text-decoration: line-through; }
318
+ .lane-bar input.lane-name { width: 100%; padding: 1px 6px; font-size: 12px; height: 22px; }
319
+ /* the tools of a lane only show under the pointer: a calm list of lanes at rest */
320
+ .lane-tools { display: inline-flex; gap: 4px; align-items: center; opacity: 0; transition: opacity 0.12s; }
321
+ .lane-box:hover .lane-tools, .lora-section:hover .lane-tools, .lane-tools:focus-within { opacity: 1; }
322
+ .lane-box.off textarea, .lane-box.off .prompt-editor, .lora-section.off .lora-lane { opacity: 0.4; }
323
+ /* the prompt editor's own colors live in its CodeMirror theme (web/promptEditor/); here only the footer */
324
+ .prompt-editor { position: relative; }
325
+ .pe-foot {
326
+ position: absolute; right: 6px; bottom: 3px; display: flex; gap: 10px; font-size: 10px; color: var(--dim);
327
+ background: var(--panel-2); padding: 0 4px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.12s;
328
+ }
329
+ .prompt-editor:focus-within .pe-foot, .pe-foot.has-error { opacity: 1; pointer-events: auto; }
330
+ .pe-keys, .pe-tokens { cursor: help; }
331
+ .pe-error { color: var(--red); margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
332
+ .lane-foot { gap: 14px; }
333
+ .lora-add-card {
334
+ align-self: stretch; min-width: 56px; min-height: 56px; border: 1px dashed var(--border);
335
+ background: none; color: var(--dim); border-radius: 8px; display: inline-flex;
336
+ align-items: center; justify-content: center; font-size: 18px;
337
+ }
338
+ .lora-add-card:hover { border-color: var(--accent); color: var(--accent); }
339
+ /* ⋯ menus (components/MenuButton.tsx) */
340
+ .menu-box { display: inline-flex; }
341
+ 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); }
342
+ button.menu-btn:hover, button.menu-btn[aria-expanded='true'] { color: var(--text); border-color: var(--border); background: var(--panel-2); }
343
+ .menu-list { min-width: 210px; left: auto; right: 0; }
344
+ .menu-item {
345
+ display: flex; gap: 6px; align-items: center; width: 100%; text-align: left;
346
+ background: none; border: 0; border-radius: 6px; padding: 5px 8px;
347
+ }
348
+ .menu-item:hover:not(:disabled) { background: var(--accent-dim); }
349
+ .menu-check { width: 12px; color: var(--accent); flex-shrink: 0; }
350
+ .menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
146
351
 
147
352
  /* presets menu (text + prompt vars). The backdrop sits UNDER the menu and over everything
148
353
  else, so any outside click closes it without a document listener */
@@ -163,6 +368,21 @@ input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px;
163
368
  .preset-item:hover { background: var(--accent-dim); border-color: transparent; }
164
369
  .preset-item.on .preset-name { color: var(--accent); }
165
370
  .preset-name { white-space: pre; }
371
+ /* size: starred aspect icons, the starrable list, fitted W × H */
372
+ .aspect-icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
373
+ .size-row input.size-num { min-width: 0; padding-left: 5px; padding-right: 2px; }
374
+ .size-pick { display: inline-flex; gap: 6px; align-items: center; }
375
+ .size-menu { min-width: 300px; overflow-x: hidden; }
376
+ .size-item { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
377
+ .size-item:hover { background: var(--accent-dim); }
378
+ .size-item.on .size-item-label { color: var(--accent); }
379
+ .size-item-pick {
380
+ flex: 1; display: flex; gap: 8px; align-items: center; text-align: left;
381
+ background: none; border: 0; padding: 4px 7px;
382
+ }
383
+ .size-item-label { flex: 1; white-space: nowrap; }
384
+ .size-star { background: none; border: 0; color: var(--dim); padding: 2px 8px; font-size: 14px; }
385
+ .size-star.on { color: var(--amber); }
166
386
  .preset-peek {
167
387
  color: var(--dim); font-size: 11px; max-width: 100%;
168
388
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
@@ -179,6 +399,9 @@ button.primary {
179
399
  background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600;
180
400
  padding: 5px 14px; display: inline-flex; align-items: center; gap: 6px;
181
401
  }
402
+ /* running: the fill sweeps across a dim track, the text stays, so nothing beside it moves */
403
+ button.primary.running { color: #fff; border-color: var(--accent); }
404
+ /* the run button: one short word, so a compact button */
182
405
  .kbd-hint {
183
406
  font-size: 10px; opacity: 0.65; border: 1px solid currentColor; border-radius: 4px;
184
407
  padding: 0 4px; line-height: 1.4;
@@ -187,16 +410,39 @@ button.link { border: 0; background: none; color: var(--accent); padding: 0; }
187
410
  button.link.danger { color: var(--dim); }
188
411
  button.link.danger:hover { color: var(--red); }
189
412
  button.mode { padding: 2px 7px; font-size: 12px; }
190
- button.mode.sel { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
413
+ button.mode.sel { background: var(--accent); border-color: var(--accent); color: #0d1117; }
414
+ /* the actions that START something (new draft, add loras): accent outline, so the eye finds
415
+ them before the neutral ones. The lit segment of a group is a solid accent fill */
416
+ button.accent { color: var(--accent); border-color: var(--accent-dim); }
417
+ /* small secondary actions under a field (presets, enhance, lanes): one size, each its own box */
418
+ button.mini { height: 24px; padding: 0 8px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; color: var(--dim); }
419
+ button.mini:hover { color: var(--text); }
420
+ .prompt-actions { gap: 6px; margin-top: 4px; }
421
+ button.accent:hover { background: var(--accent-dim); color: #fff; }
191
422
 
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; }
195
- .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;
423
+ /* two rows, three columns: Run / queue / images on top, the three buttons that end something
424
+ underneath, one per column, all the same size */
425
+ .run-bar { display: inline-flex; align-items: stretch; gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }
426
+ /* inside the group, .btn-group's segment colors come later and would repaint Run: restate it */
427
+ .run-split button.primary, .run-split button.primary:hover {
428
+ padding: 5px 14px; font-size: 13px; background: var(--accent); border-color: var(--accent); color: #0d1117;
198
429
  }
199
- .run-chip .link { font-size: 12px; }
430
+ .run-split button.primary.running { color: #fff; }
431
+ .run-split button.primary + button { border-left-color: var(--accent); }
432
+ /* the stop square: grey and inert when nothing runs, red while a run can be stopped */
433
+ .run-split button.run-stop { padding: 5px 9px; color: var(--dim); display: inline-flex; align-items: center; }
434
+ .run-split button.run-stop:disabled { opacity: 0.45; }
435
+ .run-split button.run-stop.live { color: var(--red); }
436
+ .run-split button.run-stop.live:hover { color: #fff; background: var(--red); border-color: var(--red); }
437
+ /* the count a clear button acts on: tabular and at a fixed width, so 9 → 10 never moves the row */
438
+ .run-num { display: inline-block; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
439
+ button.run-end { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; }
440
+ button.run-end:not(:disabled):hover { color: #fff; background: var(--red); border-color: var(--red); }
441
+ button.run-end:disabled { opacity: 0.45; cursor: default; }
442
+ .run-error { flex: 1; min-width: 0; height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); font-size: 12px; }
443
+ input[type='range'].setting-range:disabled { opacity: 0.3; }
444
+ .live-preview-error { margin-left: 4px; }
445
+ .live-preview-line { min-height: 1.35em; }
200
446
  .runbar {
201
447
  position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center;
202
448
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
@@ -204,9 +450,6 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
204
450
  }
205
451
  /* the changed-vars broom: FAR RIGHT of the draft box line and outside the button group, so
206
452
  appearing and disappearing with the dirty count never shifts the buttons beside it */
207
- .head-box .head-right { margin-left: auto; padding: 2px 5px; }
208
- .head-box button.dirty { color: var(--amber); }
209
- .head-box button.dirty:hover { color: var(--red); border-color: var(--red); }
210
453
  .runbar .error { color: var(--red); font-size: 12px; white-space: pre-wrap; }
211
454
  .pulse { animation: pulse 1.2s ease-in-out infinite; }
212
455
  @keyframes pulse { 50% { opacity: 0.45; } }
@@ -225,11 +468,20 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
225
468
  .host-action.danger:hover { color: var(--red); border-color: var(--red); }
226
469
  .lightbox-bar .host-action { padding: 4px 10px; }
227
470
  .run-card img { max-width: min(320px, 100%); max-height: 320px; border-radius: 6px; display: block; }
471
+ /* columns: equal shares of the panel width (the count is inline), every image as wide as its
472
+ column. A result without an image, and the run card of a graph without one, take a full row */
473
+ .gallery.by-cols { display: grid; align-items: start; }
474
+ .gallery.by-cols > .run-card { grid-column: 1 / -1; min-width: 0; }
475
+ .gallery.by-cols > .run-card.has-image, .gallery.by-cols > .run-card.cell { grid-column: auto; }
476
+ .gallery.by-cols .imgs { flex-direction: column; }
477
+ .gallery.by-cols .img-cell, .gallery.by-cols .img-button { width: 100%; }
478
+ .gallery.by-cols .run-card img { width: 100%; height: auto; max-width: 100%; max-height: none; }
228
479
  .run-card .noimg { color: var(--dim); font-style: italic; }
480
+ .audio-cell { display: flex; flex-direction: column; gap: 4px; width: min(100%, 480px); }
481
+ .audio-cell audio { width: 100%; }
229
482
  .run-card.running { border-color: var(--accent-dim); }
230
483
  /* what the host is on, in the node's own unit — the live signal of a text run, which has
231
484
  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
485
 
234
486
  /* a STRING output: the answer is prose, so it wraps and selects like prose. Monospace because
235
487
  an expanded prompt is copied into another field verbatim */
@@ -253,6 +505,33 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
253
505
  }
254
506
  .run-live-body.dim { color: var(--dim); }
255
507
  .progress-track { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
508
+ /* live previews under generate: compact, the name inline, each line cut to one; a click opens
509
+ the full text. A negative line is dim red, as the prompt box would read it */
510
+ .live-previews { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
511
+ .live-preview {
512
+ display: flex; gap: 8px; align-items: baseline; width: 100%; min-width: 0; text-align: left;
513
+ background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
514
+ font-size: 11px; line-height: 1.4; cursor: pointer;
515
+ }
516
+ .live-preview:hover { border-color: var(--accent-dim); }
517
+ .live-preview-row { display: flex; gap: 4px; align-items: stretch; min-width: 0; }
518
+ button.live-preview-copy {
519
+ flex-shrink: 0; display: inline-flex; align-items: center; padding: 0 8px; color: var(--dim);
520
+ background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
521
+ }
522
+ button.live-preview-copy:not(:disabled):hover { color: var(--text); border-color: var(--accent-dim); }
523
+ .live-preview-name { flex-shrink: 0; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }
524
+ .live-preview-lines { display: flex; flex-direction: column; min-width: 0; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
525
+ .live-preview-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
526
+ .live-preview-line.negative { color: #c9848f; }
527
+ .live-preview.expanded .live-preview-line { white-space: pre-wrap; overflow-wrap: anywhere; }
528
+ /* the running image's frame, reserved at its final ratio: the latent fills it, the bar rides its
529
+ foot, so a run never changes the page's height */
530
+ .run-frame { position: relative; max-width: 100%; background: var(--bg); border-radius: 6px; overflow: hidden; }
531
+ .run-frame .img-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
532
+ .run-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
533
+ .progress-track.over { position: absolute; left: 6px; right: 6px; bottom: 6px; margin: 0; background: rgba(0, 0, 0, 0.45); }
534
+ .run-meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
256
535
  .progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s ease; }
257
536
 
258
537
  .lora-chip {
@@ -337,15 +616,21 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
337
616
  The selector carries TWO classes on purpose: the .lora-chip button rule above is 0-1-1 and would
338
617
  otherwise win, stripping the padding and the backdrop off this one.
339
618
  width:auto because a stretch parent would otherwise pull it across the whole card */
340
- .chip-media .chip-remove, .lora-active-row .chip-remove {
619
+ .chip-media .chip-remove, .lora-active-row .chip-remove, .lora-card .chip-remove {
341
620
  position: absolute; top: 4px; right: 4px; z-index: 1; width: auto; height: auto;
342
621
  display: inline-flex; align-items: center; justify-content: center;
343
- border: 0; border-radius: 6px; padding: 4px; line-height: 0; color: #fff; cursor: pointer;
622
+ border: 0; border-radius: 8px; padding: 7px; line-height: 0; color: #fff; cursor: pointer;
344
623
  background: rgba(16, 18, 23, 0.72); opacity: 0.85; transition: opacity 0.12s, color 0.12s;
345
624
  }
346
- .chip-media .chip-remove:hover, .lora-active-row .chip-remove:hover { opacity: 1; color: var(--red); }
625
+ .chip-media .chip-remove:hover, .lora-active-row .chip-remove:hover, .lora-card .chip-remove:hover { opacity: 1; color: var(--red); }
347
626
 
348
627
  /* PAUSED: still in the palette, visibly not contributing to the graph */
628
+ .lora-toggle, .thumb-box { position: relative; display: block; }
629
+ .paused-mark {
630
+ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
631
+ pointer-events: none; color: #fff; opacity: 0.8;
632
+ }
633
+ .paused-mark svg { background: rgba(16, 18, 23, 0.55); border-radius: 50%; padding: 10px; box-sizing: content-box; stroke-width: 3; }
349
634
  .lora-chip.off, .lora-active-row.off { opacity: 0.55; }
350
635
  .lora-chip.off { border-style: dashed; }
351
636
  .lora-chip.off .lora-thumb, .lora-active-row.off .lora-thumb { filter: grayscale(1); }
@@ -361,6 +646,33 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
361
646
  }
362
647
  .modal-head { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
363
648
  .modal-head input { flex: 1; }
649
+ /* a popup whose content grows and shrinks (the loras picker): pinned near the top, one fixed
650
+ height, so typing a filter or hiding images never moves it */
651
+ .modal-overlay.top { align-items: flex-start; padding-top: 5vh; }
652
+ .modal.loras-modal { height: min(86vh, 100%); max-height: none; }
653
+ .modal.loras-modal { width: min(1180px, 100%); }
654
+ /* the palette sits BESIDE the gallery, each scrolling alone: picking a lora grows the palette
655
+ and never moves a card under the pointer. Narrow: a fixed-height strip above, same reason */
656
+ .loras-split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
657
+ .loras-split .modal-body { min-height: 0; }
658
+ .loras-palette { order: 2; border-left: 1px solid var(--border); }
659
+ .loras-palette .lora-active-row { flex-wrap: wrap; }
660
+ .lora-card.picked { border-color: var(--green); }
661
+ .lora-card.picked .lora-label { color: var(--green); }
662
+ .lora-card.picked.off { border-color: var(--border); border-style: dashed; opacity: 0.55; }
663
+ .lora-card.picked.off .lora-label { color: var(--dim); }
664
+ .lora-card.picked.off .lora-thumb { filter: grayscale(1); }
665
+ @media (max-width: 800px) {
666
+ .loras-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px minmax(0, 1fr); }
667
+ .loras-palette { order: 0; border-left: 0; border-bottom: 1px solid var(--border); }
668
+ }
669
+ .modal-head .modal-close { margin-left: 6px; }
670
+ /* a display setting's slider (lora image size, result size): grey and small, never the accent
671
+ blue of the controls that change what runs */
672
+ input[type='range'].setting-range { width: 72px; flex: 0 0 72px; accent-color: var(--dim); opacity: 0.8; }
673
+ .menu-range { cursor: default; }
674
+ .menu-range input[type='range'].setting-range { margin-left: auto; width: 96px; flex-basis: 96px; }
675
+ .modal-foot { padding: 5px 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--dim); margin: 0; }
364
676
  .modal-body { overflow-y: auto; padding: 10px; }
365
677
  .section-title { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin: 8px 0 6px; }
366
678
 
@@ -374,8 +686,12 @@ button.mode.sel { background: var(--accent-dim); border-color: var(--accent); co
374
686
  .lora-sort { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
375
687
  .lora-sort .mode { font-size: 11px; padding: 2px 8px; }
376
688
  .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;
689
+ position: relative; min-width: 0;
690
+ background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
691
+ }
692
+ .lora-card-hit {
693
+ display: flex; flex-direction: column; gap: 6px; padding: 6px; width: 100%; text-align: left;
694
+ background: none; border: 0; cursor: pointer; color: inherit;
379
695
  }
380
696
  .lora-card:hover { border-color: var(--accent); }
381
697
  /* CONTAIN, never cover: a cropped preview hides exactly what the lora looks like */
@@ -414,14 +730,76 @@ div.lora-thumb.none {
414
730
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
415
731
  padding: 10px; border-top: 1px solid var(--border);
416
732
  }
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;
733
+ /* one fixed size, pinned near the top: switching a tab or streaming a rewrite never moves it */
734
+ .modal.enh-modal { width: min(1180px, 100%); height: min(88vh, 100%); max-height: none; }
735
+ .enh-title { flex: 1; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
736
+ .enh-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
737
+ .enh-main { min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 14px 16px; font-size: 14px; }
738
+ .enh-side {
739
+ min-height: 0; overflow-y: auto; padding: 12px 10px; border-right: 1px solid var(--border);
740
+ background: var(--bg); display: flex; flex-direction: column; gap: 18px;
741
+ }
742
+ .enh-tabs-title {
743
+ display: flex; align-items: center; gap: 6px; margin: 0 4px 6px;
744
+ color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
424
745
  }
746
+ .enh-save { margin-left: auto; color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
747
+ .enh-save.error { color: var(--red); }
748
+ .enh-tab-select { display: none; width: 100%; }
749
+ .enh-tab-list { display: flex; flex-direction: column; gap: 2px; }
750
+ .enh-tab { position: relative; display: flex; align-items: center; border-radius: 6px; border-left: 3px solid transparent; }
751
+ .enh-tab > button:first-child {
752
+ flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left;
753
+ background: none; border: 0; padding: 7px 8px; font-size: 14px; color: var(--text); cursor: pointer;
754
+ }
755
+ .enh-tab:hover { background: var(--panel-2); }
756
+ .enh-tab.sel { background: var(--accent-dim); border-left-color: var(--accent); }
757
+ .enh-tab.sel > button:first-child { font-weight: 600; }
758
+ .enh-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
759
+ .enh-tab-new {
760
+ margin-top: 4px; display: flex; align-items: center; gap: 6px; background: none; border: 1px dashed var(--border);
761
+ color: var(--dim); padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; text-align: left;
762
+ }
763
+ .enh-tab-new:hover { color: var(--accent); border-color: var(--accent); }
764
+ .enh-tab-edit { background: none; border: 0; color: var(--dim); padding: 4px 8px; cursor: pointer; }
765
+ .enh-tab-edit:hover, .enh-tab-edit.sel { color: var(--accent); }
766
+ .enh-right { position: relative; min-height: 0; display: flex; flex-direction: column; }
767
+ .enh-right > .enh-main { flex: 1; overflow: hidden; }
768
+ .enh-job { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
769
+ .enh-job .enh-actions { margin-bottom: 8px; }
770
+ .enh-box { flex: 1; min-height: 60px; resize: none; }
771
+ .enh-box.enh-result { flex: 1.3; }
772
+ button.enh-go { min-width: 130px; justify-content: center; }
773
+ .enh-think-tip { margin-left: 6px; cursor: help; }
774
+ /* the editor covers the job, inside the modal: nothing clips it, nothing beside it moves */
775
+ .enh-edit {
776
+ position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
777
+ background: var(--panel); border-left: 3px solid var(--accent);
778
+ }
779
+ .enh-edit-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
780
+ .enh-edit-head .enh-h { flex: 1; min-width: 0; }
781
+ button.enh-edit-close { background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600; padding: 5px 16px; }
782
+ .enh-edit-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
783
+ .enh-master { flex: 1; min-height: 240px; resize: none; }
784
+ .enh-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--dim); }
785
+ .enh-dot.up { background: var(--green); }
786
+ .enh-dot.down { background: var(--red); }
787
+ .enh-dot.checking { background: var(--amber); }
788
+ .enh-empty { color: var(--dim); font-size: 13px; padding: 4px; }
789
+ .enh-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
790
+ .enh-h-name { color: var(--accent); font-weight: 600; }
791
+ .enh-label { font-size: 13px; color: var(--dim); margin-bottom: 4px; }
792
+ .enh-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
793
+ .enh-text { width: 100%; font-size: 14px; line-height: 1.5; }
794
+ .enh-result { border-color: var(--accent-dim); }
795
+ .enh-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
796
+ button.enh-big { font-size: 14px; padding: 8px 18px; }
797
+ .enh-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
798
+ .enh-grid > label { color: var(--dim); font-size: 13px; text-align: right; }
799
+ .enh-grid input[type='text'], .enh-grid input[type='password'], .enh-grid > select { width: 100%; }
800
+ .enh-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
801
+ .enh-inline > select, .enh-inline > input[type='text'] { flex: 1; min-width: 160px; }
802
+ .enh-inline .row-inline { font-size: 13px; color: var(--dim); }
425
803
 
426
804
  .img-preview { margin-top: 8px; }
427
805
  .img-preview img { max-width: 220px; max-height: 220px; border-radius: 6px; border: 1px solid var(--border); }
@@ -429,6 +807,119 @@ div.lora-thumb.none {
429
807
  .center { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--dim); }
430
808
  .center .error { color: var(--red); max-width: 640px; white-space: pre-wrap; }
431
809
 
810
+ /* history picker: one fixed size, matches left, the highlighted one in full on the right */
811
+ .modal-overlay.hist-overlay { z-index: 60; }
812
+ .modal.hist-modal { width: min(1100px, 100%); height: min(76vh, 100%); max-height: none; }
813
+ .hist-modal .modal-head { align-items: center; }
814
+ .hist-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
815
+ .hist-list { min-height: 0; overflow-y: auto; border-right: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
816
+ .hist-row {
817
+ display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0;
818
+ border-left: 3px solid transparent; border-radius: 6px; padding: 6px 8px; cursor: pointer; color: var(--text); min-width: 0;
819
+ }
820
+ .hist-row.sel { background: var(--accent-dim); border-left-color: var(--accent); }
821
+ .hist-first { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
822
+ .hist-meta { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
823
+ .hist-empty { color: var(--dim); padding: 8px; font-size: 13px; }
824
+ .hist-preview { min-height: 0; display: flex; flex-direction: column; }
825
+ .hist-text {
826
+ flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere;
827
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5;
828
+ }
829
+ .hist-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--border); }
830
+ @media (max-width: 700px) {
831
+ .hist-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
832
+ .hist-list { border-right: 0; border-bottom: 1px solid var(--border); }
833
+ }
834
+ /* the corner latent: a zero-height sticky anchor, so the card floats over the gallery without
835
+ taking a pixel of it; the card itself is one fixed size */
836
+ .corner-run-anchor { position: sticky; top: 6px; height: 0; z-index: 4; flex-basis: 100%; width: 100%; margin-bottom: -10px; }
837
+ .work.layout-pinned .corner-run-anchor { margin-bottom: -6px; }
838
+ .corner-run {
839
+ position: absolute; top: 0; right: 6px; width: 168px; display: flex; flex-direction: column; gap: 4px;
840
+ background: var(--panel); border: 1px solid var(--accent-dim); border-radius: 8px; padding: 6px;
841
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
842
+ }
843
+ .corner-run img { width: 100%; height: 120px; object-fit: contain; display: block; border-radius: 5px; background: var(--bg); }
844
+ .gallery.blur .corner-run img { filter: blur(14px); }
845
+ .corner-run-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--dim); white-space: nowrap; }
846
+ .corner-run-meta .run-meta-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
847
+ /* blur mode: every result, the latent frame included, stays blurred until the pointer is on it */
848
+ .gallery.blur img { filter: blur(22px); transition: filter 0.12s, transform 0.12s; }
849
+ .gallery.blur img:hover, .gallery.blur .img-cell:hover img, .gallery.blur button:hover img { filter: none; }
850
+ /* the blur stays inside the image: clipped by its button, and the image scaled up a little while
851
+ blurred, else the clip shows the blur fading to transparent along every edge */
852
+ .gallery.blur .img-button { position: relative; overflow: hidden; border-radius: 6px; }
853
+ .gallery.blur .img-button img { transform: scale(1.12); }
854
+ .gallery.blur .img-button:hover img { transform: none; }
855
+ .blur-hint {
856
+ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
857
+ font-size: 13px; padding: 2px 8px; color: #fff; opacity: 0.85; background: rgba(0, 0, 0, 0.35);
858
+ }
859
+ .img-button:hover .blur-hint { display: none; }
860
+ /* bigger control buttons: the preview head and the menu column, one size with the form rows */
861
+ .results-head .btn-group > button, .menu-section .btn-group > button, .menu-panel button.head-icon, .drawer button.head-icon {
862
+ height: 28px; min-width: 28px; font-size: 13px;
863
+ display: inline-flex; align-items: center; justify-content: center; gap: 4px;
864
+ }
865
+ /* the preview is its OWN surface: panel background and a border, so the editor and the
866
+ results never read as one page. Placement rules below refine it (the corner card is tighter) */
867
+ .results-col { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; }
868
+ .results-col .gallery { margin-top: 0; }
869
+ /* on the preview surface a result is its image, title and buttons, with no frame of its own */
870
+ .results-col .run-card { background: none; border: 0; border-radius: 0; padding: 0; }
871
+ /* a result with an image is only its image: the title and delete show over its top edge on
872
+ hover. Out of the flow, the title no longer sizes the card, so grid cards wrap at the image
873
+ width. A screen with no hover keeps the line visible */
874
+ .gallery.by-cols .run-card.has-image { position: relative; }
875
+ .gallery.by-cols .run-card.has-image > .meta {
876
+ position: absolute; top: 0; left: 0; right: 0; z-index: 2; margin: 0; padding: 6px 8px 14px;
877
+ align-items: flex-start; color: #fff; border-radius: 6px 6px 0 0;
878
+ background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
879
+ opacity: 0; pointer-events: none; transition: opacity 0.12s;
880
+ }
881
+ .gallery .run-card.has-image > .meta .meta-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
882
+ .gallery .run-card.has-image:hover > .meta { opacity: 1; pointer-events: auto; }
883
+ .gallery .run-card.has-image > .meta button.link { color: #fff; }
884
+ @media (hover: none) {
885
+ .gallery .run-card.has-image > .meta { opacity: 1; pointer-events: auto; }
886
+ }
887
+ .work.layout-bottom .results-col { margin-top: 16px; }
888
+ /* the panel's own controls sit on top of it */
889
+ .head-group-labeled { display: flex; flex-direction: column; gap: 2px; }
890
+ /* the columns count: one button tall, the word inside, like the blur toggle beside it */
891
+ .cols-field {
892
+ display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font-size: 13px;
893
+ border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--dim);
894
+ }
895
+ .cols-field input { width: 3.2em; padding: 1px 4px; font-size: 13px; text-align: center; }
896
+ .head-row { gap: 6px; flex-wrap: nowrap; }
897
+ .group-caption { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding-left: 2px; }
898
+ .results-head {
899
+ display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
900
+ padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
901
+ }
902
+ .work.layout-pinned .results-head { justify-content: flex-end; padding-bottom: 4px; margin-bottom: 6px; }
903
+ /* placement off hides the panel and its buttons: this tab on the right edge brings it back */
904
+ .show-preview {
905
+ position: fixed; right: 0; top: 30%; z-index: 20; padding: 6px 8px;
906
+ border-radius: 8px 0 0 8px; border-right: 0; background: var(--panel); color: var(--dim);
907
+ }
908
+ .show-preview:hover { color: var(--text); }
909
+
910
+ /* LEFT / RIGHT on a wide screen: two full-height panels (react-resizable-panels), each
911
+ scrolling on its own, split by a handle. The preview side is its own surface, full height */
912
+ .work.split { flex: 1; min-width: 0; height: 100%; gap: 0; align-items: stretch; }
913
+ .split-panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
914
+ .split-form { padding: 12px 14px 14px; }
915
+ .split-results { background: var(--panel); padding: 10px 12px; }
916
+ .work.split .results-col {
917
+ position: static; width: auto; max-height: none; overflow: visible;
918
+ background: none; border: 0; border-radius: 0; padding: 0;
919
+ }
920
+ .split-handle { width: 5px; background: var(--border); cursor: col-resize; transition: background 0.1s; }
921
+ .split-handle:hover, .split-handle[data-separator-state='drag'] { background: var(--accent); }
922
+
432
923
  /* the placements. Each one is a BUTTON and nothing else: there is no width rule that quietly
433
924
  moves the panel somewhere no button is showing */
434
925
  .work.layout-side { display: flex; gap: 18px; align-items: flex-start; }
@@ -482,53 +973,65 @@ div.lora-thumb.none {
482
973
  .work.layout-pinned .run-card { padding: 0; border: 0; background: none; }
483
974
  .work.layout-pinned .run-card .meta { margin-bottom: 2px; font-size: 11px; }
484
975
  .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; }
976
+ .results-run { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; margin-bottom: 8px; min-width: 0; }
486
977
  .work.layout-pinned .results-run { margin-bottom: 6px; justify-content: flex-end; }
487
978
  /* segmented control: ONE group, no gaps, only the outer corners rounded */
488
979
  .btn-group { display: inline-flex; }
980
+ /* a many-choice with more options than a line holds wraps instead of pushing the row wide */
981
+ .btn-group.wrap { flex-wrap: wrap; row-gap: 4px; }
489
982
  .btn-group button {
490
983
  padding: 2px 6px; font-size: 13px; line-height: 1.3; border-radius: 0; margin: 0;
491
984
  border-right-width: 0; background: var(--panel-2);
492
985
  }
493
986
  .btn-group button:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
494
987
  .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; }
988
+ .btn-group button.sel { background: var(--accent); border-color: var(--accent); color: #0d1117; font-weight: 600; }
496
989
  /* the selected segment owns the divider on both sides, else its highlight looks clipped */
497
990
  .btn-group button.sel + button { border-left-color: var(--accent); }
498
991
  .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 */
992
+ .btn-group button.sel:hover { background: var(--accent); }
993
+ /* ONE height for every button a var row shows in a group or an action line: a choice, the
994
+ lora toggles, a lane header, the seed modes. Before, each kind had its own padding and a
995
+ choice sat visibly smaller than the toggles beside it */
996
+ .var-control .btn-group > button, .var-control .row-inline > button:not(.link):not(.lora-add-card):not(.mini),
997
+ .var-control .lora-actions > button {
998
+ height: 28px; min-width: 28px; font-size: 13px;
999
+ display: inline-flex; align-items: center; justify-content: center; gap: 4px;
1000
+ }
504
1001
  /* everything on a var row is the SAME height as the input beside it, or the row steps.
505
1002
  28px is what the slimmed input measures (14px text, 3px padding, 1px border) */
506
1003
  .field-height, .field-height button { height: 28px; }
507
1004
  .field-height button { display: inline-flex; align-items: center; justify-content: center; }
508
1005
  /* a one-character mode button still needs a target: = + ? are narrow glyphs */
509
1006
  .btn-group.field-height button { min-width: 28px; }
510
- .head-input { padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--accent); max-width: 180px; }
511
- .head-label .save-state { color: var(--dim); font-weight: 400; margin-left: 4px; }
512
- .head-label .save-state.error { color: var(--red); }
513
- /* every head box is two lines: what you are on, then what you can do to it */
514
- .head-box { display: flex; flex-direction: column; gap: 5px; }
515
- .head-line { display: flex; gap: 8px; align-items: center; min-height: 24px; }
516
- .head-line .head-group { margin-left: 0; }
1007
+ button.head-icon { padding: 2px 5px; background: none; border-color: transparent; color: var(--dim); }
1008
+ button.head-icon:hover { border-color: var(--border); color: var(--text); }
1009
+ button.head-icon.danger:hover { color: var(--red); border-color: var(--red); }
1010
+ .head-input { flex: 1; min-width: 0; padding: 2px 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
517
1011
 
518
1012
  /* the lora controls sit above the palette, left aligned */
519
1013
  .lora-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
520
1014
  .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;
1015
+ /* the words the loras prepend to the prompt: shown, not guessed. One quiet LINE per lora (its
1016
+ name, the words it adds, how many are disabled), cut with an ellipsis. Clickable without
1017
+ shouting: dim text, a dotted underline on hover. A lora that is not running keeps its line,
1018
+ fainter, so switching a lane never moves the form */
1019
+ .kw-prefix { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
1020
+ .kw-box { max-width: 100%; }
1021
+ .kw-line {
1022
+ display: flex; gap: 6px; align-items: baseline; max-width: 100%; min-width: 0;
1023
+ background: none; border: 0; padding: 1px 0; font-size: 11px; color: var(--dim); text-align: left; cursor: pointer;
531
1024
  }
1025
+ .kw-line:hover .kw-words, .kw-line[aria-expanded='true'] .kw-words { color: var(--text); text-decoration: underline dotted; }
1026
+ .kw-line.stopped { opacity: 0.45; }
1027
+ .kw-lora { font-weight: 600; white-space: nowrap; flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
1028
+ .kw-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b4bccf; }
1029
+ .kw-off { flex-shrink: 0; white-space: nowrap; font-style: italic; }
1030
+ .kw-menu { min-width: 240px; }
1031
+ .kw-menu-head { padding: 2px 6px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
1032
+ .kw-menu-head .kw-lora { color: var(--text); margin-right: auto; }
1033
+ .kw-item { display: flex; gap: 8px; align-items: center; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
1034
+ .kw-item:hover { background: var(--accent-dim); }
532
1035
  /* a real switch, not a word: the state is readable at a glance and hittable on a phone */
533
1036
  .switch { position: relative; display: inline-flex; width: 28px; height: 16px; flex-shrink: 0; cursor: pointer; }
534
1037
  .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
@@ -546,7 +1049,12 @@ div.lora-thumb.none {
546
1049
 
547
1050
  /* the lora details sheet */
548
1051
  .lora-details { display: flex; gap: 14px; flex-wrap: wrap; }
549
- .detail-thumb { width: 220px; max-width: 100%; border-radius: 8px; }
1052
+ /* its own ratio, always: the sheet is a flex row, and a stretched child is drawn as tall as the
1053
+ text beside it */
1054
+ .detail-thumb {
1055
+ width: 220px; max-width: 100%; height: auto; max-height: 70vh; align-self: flex-start;
1056
+ object-fit: contain; border-radius: 8px;
1057
+ }
550
1058
  .detail-list { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
551
1059
  .detail-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 12px; }
552
1060
  .detail-key { color: var(--dim); }
@@ -562,8 +1070,9 @@ div.lora-thumb.none {
562
1070
  .detail-examples { display: flex; gap: 8px; flex-wrap: wrap; }
563
1071
  .detail-examples img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
564
1072
 
565
- button.warn-action { color: var(--amber); border-color: var(--amber); }
566
- button.warn-action:hover { background: var(--panel); }
1073
+ /* destructive but routine (clear queue): neutral at rest, it only turns red under the pointer */
1074
+ button.quiet-danger:hover { color: var(--red); border-color: var(--red); }
1075
+ /* a lora the manager knows and comfy does not: flagged, never hidden */
567
1076
  .lora-warn { color: var(--amber); display: inline-flex; margin-left: 4px; vertical-align: -0.1em; }
568
1077
  /* an anchor that must read as a button (it opens the host's own page, so it IS a link) */
569
1078
  .button-link {
@@ -585,44 +1094,28 @@ button.warn-action:hover { background: var(--panel); }
585
1094
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
586
1095
  }
587
1096
 
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 */
1097
+ /* tooltips: ONE floating layer (components/TooltipLayer.tsx) reads every data-tip. Instant,
1098
+ because the native title waits about a second and cannot be styled. position: relative stays
1099
+ on the anchors, some of them position their own children against it */
590
1100
  [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);
1101
+ .tooltip {
1102
+ z-index: 100; pointer-events: none; white-space: pre-line; max-width: 320px; width: max-content;
1103
+ /* light on a dark page: a tip must not be mistaken for part of the panel */
1104
+ background: #e8eaf0; color: #15181f; border: 0;
1105
+ border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 450; line-height: 1.4;
1106
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
601
1107
  }
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
1108
 
605
1109
  /* icons inherit the text they sit in, so a button never jumps when one is swapped in */
606
1110
  .icon { display: inline-block; vertical-align: -0.16em; flex-shrink: 0; }
607
1111
  button .icon + * { margin-left: 4px; }
608
1112
 
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
1113
  /* phone: label over control, 16px inputs (below that iOS zooms the page on focus) */
620
1114
  @media (max-width: 640px) {
621
1115
  .main { --main-pad-y: 22px; padding: 10px 10px 12px; }
622
1116
  /* 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; }
1117
+ every row and read as a wall. The column is the width you dragged. A row that needs the
1118
+ whole width (loras) opts out with .wide */
626
1119
  .var-row { gap: 6px; }
627
1120
  .var-row.wide { grid-template-columns: 1fr; gap: 3px; }
628
1121
  .var-label { padding-top: 3px; font-size: 12px; }
@@ -635,7 +1128,13 @@ button .icon + * { margin-left: 4px; }
635
1128
  .modal { max-height: 100%; height: 100%; width: 100%; border-radius: 0; }
636
1129
  .lora-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
637
1130
  .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; }
1131
+ /* the two tab lists become two dropdowns above the job */
1132
+ .enh-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
1133
+ .enh-side { flex-direction: row; gap: 10px; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 10px; }
1134
+ .enh-side .enh-tabs { flex: 1; min-width: 0; }
1135
+ .enh-tab-list { display: none; }
1136
+ .enh-tab-select { display: block; }
1137
+ .enh-grid { grid-template-columns: minmax(0, 1fr); }
1138
+ .enh-grid > label { text-align: left; }
640
1139
  }
641
1140
  `