@ponderdev/justfits 1.2.0 → 1.3.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.
@@ -0,0 +1,767 @@
1
+ /* PonderDev kit 1.0.0, built from kit/src. Do not edit: run bin/kit-sync. */
2
+ /* --- tokens.css --- */
3
+ /* kit tokens: every value a Just tool may use. A tool's own CSS uses these
4
+ * through var(--...) and never a colour, font or radius of its own; the kit
5
+ * check refuses one that does. --bg must equal backgroundColor in the tool's
6
+ * main process (the window test compares them). */
7
+ :root {
8
+ /* colour */
9
+ --bg: #12131a;
10
+ --panel: #191b24;
11
+ --panel-2: #21232f;
12
+ --line: #2c2f3d;
13
+ --text: #eceef5;
14
+ --muted: #9aa0b4;
15
+ --accent: #6c8cff;
16
+ --accent-hot: #8aa2ff;
17
+ --on-accent: #fff;
18
+ --good: #52d1a4;
19
+ --bad: #ff7a7a;
20
+ /* PonderDev's own purple, for the credit's "Dev" only (decided 2026-11-18).
21
+ The tools' accent stays blue everywhere else. Same value as the site. */
22
+ --brand: #b58cff;
23
+
24
+ /* type: the system's own faces, so each tool reads native on Mac, Windows
25
+ and Linux and ships no font files (decided 2026-11-18) */
26
+ --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
27
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
28
+ --size-xs: 11.5px; /* footer */
29
+ --size-sm: 12px; /* hints, notes, mono facts */
30
+ --size-md: 13px; /* small buttons, queue rows */
31
+ --size: 14px; /* body */
32
+ --size-lg: 17px; /* the drop zone's sentence */
33
+ --size-xl: 24px; /* the tool's name */
34
+ --weight: 400;
35
+ --weight-strong: 560;
36
+ --weight-title: 650;
37
+
38
+ /* space, on a 4px step */
39
+ --space-1: 4px;
40
+ --space-2: 8px;
41
+ --space-3: 12px;
42
+ --space-4: 16px;
43
+ --space-5: 20px;
44
+ --space-6: 24px;
45
+ --space-8: 32px;
46
+
47
+ /* shape */
48
+ --radius: 12px;
49
+ --radius-sm: 9px;
50
+ --radius-lg: 18px;
51
+ --radius-pill: 999px;
52
+ --edge: 3px; /* the done card's green edge */
53
+
54
+ /* sizes that make the family line up */
55
+ --titlebar: 28px; /* the macOS traffic lights sit over this */
56
+ --utility-width: 720px; /* every utility tool's window (decided 2026-11-18) */
57
+ --column: 620px; /* the utility column inside it */
58
+ --side: 304px; /* the studio's side column */
59
+ --icon: 20px;
60
+ --icon-stroke: 1.8; /* outline icons (decided 2026-11-18) */
61
+
62
+ /* motion */
63
+ --ease: cubic-bezier(.2, .7, .2, 1);
64
+ --quick: .12s;
65
+ --move: .25s;
66
+ --rise: .28s;
67
+ }
68
+
69
+ /* --- base.css --- */
70
+ /* kit base: the page every Just tool is, and the controls every one uses. */
71
+ * { box-sizing: border-box; }
72
+ /* Several parts set display, so hidden has to win over them. */
73
+ [hidden] { display: none !important; }
74
+
75
+ html, body {
76
+ margin: 0;
77
+ height: 100%;
78
+ background: var(--bg);
79
+ color: var(--text);
80
+ font: var(--weight) var(--size)/1.5 var(--font);
81
+ -webkit-font-smoothing: antialiased;
82
+ user-select: none;
83
+ cursor: default;
84
+ }
85
+ body { display: flex; flex-direction: column; }
86
+
87
+ /* The strip the title bar is: on a Mac the traffic lights sit over it; on
88
+ Windows and Linux the app draws its own dark title bar here, with the
89
+ system buttons over its right end (kit/src/main/window.cjs), and the
90
+ strip is their height. It drags the window. */
91
+ .titlebar { height: env(titlebar-area-height, var(--titlebar)); -webkit-app-region: drag; flex: none; }
92
+
93
+ #app {
94
+ flex: 1;
95
+ min-height: 0; /* the scroll happens here, not on the body */
96
+ padding: 0 var(--space-8) var(--space-5);
97
+ overflow: auto;
98
+ }
99
+
100
+ h1 { font-size: var(--size-xl); margin: var(--space-1) 0; font-weight: var(--weight-title); }
101
+ h3 { font-size: var(--size); margin: 0; font-weight: 600; }
102
+ .muted { color: var(--muted); }
103
+ .mono { font-family: var(--font-mono); font-size: var(--size-sm); }
104
+ .sub { color: var(--muted); margin: 0 0 var(--space-1); }
105
+ .hint { color: var(--muted); font-size: var(--size-sm); margin: var(--space-2) 0 0; }
106
+ .hint:empty { display: none; }
107
+ .row { display: flex; align-items: center; gap: var(--space-3); }
108
+ .row.wrap { flex-wrap: wrap; }
109
+ .grow { flex: 1; }
110
+ .pill { background: var(--panel-2); border-radius: 20px; padding: 1px 9px; font-size: var(--size-sm); color: var(--muted); flex: none; }
111
+
112
+ /* buttons: primary for the one main action, ghost for the rest, linky for words */
113
+ .btn {
114
+ font: inherit;
115
+ font-weight: var(--weight-strong);
116
+ padding: 9px 18px;
117
+ border-radius: var(--radius-sm);
118
+ border: 1px solid transparent;
119
+ cursor: pointer;
120
+ white-space: nowrap;
121
+ display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
122
+ transition: background var(--quick), border-color var(--quick), opacity var(--quick), transform var(--quick);
123
+ }
124
+ .btn-primary { background: var(--accent); color: var(--on-accent); }
125
+ .btn-primary:hover:not(:disabled) { background: var(--accent-hot); }
126
+ .btn-primary:active:not(:disabled) { transform: scale(.98); }
127
+ .btn-primary:disabled { opacity: .45; cursor: default; }
128
+ .btn-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
129
+ .btn-ghost:hover:not(:disabled) { background: var(--panel-2); border-color: var(--accent); }
130
+ .btn-ghost:disabled { opacity: .45; cursor: default; }
131
+ .btn-tight { padding: 6px 12px; font-size: var(--size-md); }
132
+ .btn-wide { display: flex; width: 100%; padding: 11px; }
133
+ .btn-icon { padding: 7px; min-width: 34px; }
134
+ /* small icon buttons for a timeline head: undo, redo, ? */
135
+ .btn-icon-sm { padding: 6px 8px; line-height: 0; min-width: 0; }
136
+ .btn-icon-sm .k-icon { width: 17px; height: 17px; }
137
+ .linky {
138
+ font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
139
+ text-decoration: underline; text-underline-offset: 3px;
140
+ }
141
+ .linky:hover { color: var(--accent-hot); }
142
+ .linky-plain { color: var(--text); font-weight: var(--weight-strong); text-decoration-color: var(--accent); }
143
+
144
+ /* focus that a keyboard can see, everywhere */
145
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
146
+
147
+ /* scrollbars in the palette */
148
+ ::-webkit-scrollbar { width: 10px; height: 10px; }
149
+ ::-webkit-scrollbar-track { background: transparent; }
150
+ ::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius-pill); border: 2px solid var(--panel); }
151
+ ::-webkit-scrollbar-thumb:hover { background: var(--muted); }
152
+ #app::-webkit-scrollbar-thumb { border-color: var(--bg); }
153
+
154
+ /* icons: outline, the colour of the text around them (kit icons, by name) */
155
+ .k-icon {
156
+ width: var(--icon); height: var(--icon); flex: none;
157
+ fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
158
+ stroke-linecap: round; stroke-linejoin: round;
159
+ vertical-align: middle;
160
+ }
161
+
162
+ /* a page meant to be read and copied (licences and credits), not an app window */
163
+ body.k-doc { display: block; height: auto; min-height: 100%; user-select: text; cursor: auto; }
164
+ body.k-doc a { color: var(--accent); }
165
+
166
+ /* --- parts/start.css --- */
167
+ /* kit part: the start screen every Just tool opens to (option A, decided
168
+ * 2026-11-18): the tool's name and line, one centred drop zone with the tool's
169
+ * icon, one sentence, one button, and one line of what it takes. Nothing else
170
+ * until a file is in; then the zone gives way to the file row and anything
171
+ * marked .after-file comes in. */
172
+ /* One fixed block, the same size, spacing and place in every tool, centred as
173
+ a whole in whatever window the tool has (decided 2026-11-19). The studio
174
+ layout only appears once a file is in. */
175
+ .k-start { display: flex; flex-direction: column; min-height: 100%; }
176
+ .k-start:not(.landed) { width: min(100%, var(--column)); margin: 0 auto; justify-content: center; padding: var(--space-6) 0; }
177
+ .k-start-head h1 { margin: var(--space-1) 0; }
178
+ .k-start-head .sub { margin: 0; }
179
+ .k-start-head .k-version { margin-left: var(--space-2); font-size: var(--size-xs); font-weight: 400; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; vertical-align: middle; }
180
+ .k-zone {
181
+ margin: var(--space-6) 0 0; padding: 56px 28px 44px; min-height: 300px;
182
+ display: flex; flex-direction: column; align-items: center; justify-content: center;
183
+ text-align: center;
184
+ border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--panel);
185
+ transition: border-color var(--quick), background var(--quick), transform var(--quick);
186
+ }
187
+ .k-zone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); transform: scale(1.01); }
188
+ .k-zone .k-icon { width: 64px; height: 64px; stroke-width: 1.4; color: var(--muted); margin-bottom: var(--space-3); }
189
+ .k-zone.over .k-icon { color: var(--accent); }
190
+ .k-zone-say { margin: 0; font-size: var(--size-lg); font-weight: 600; }
191
+ .k-zone-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); margin-top: 18px; }
192
+ .k-zone-takes { color: var(--muted); font-size: var(--size-sm); margin: 14px 0 0; }
193
+
194
+ .after-file { display: none; }
195
+ .k-start.landed { min-height: 0; }
196
+ .k-start.landed .k-zone { display: none; }
197
+ .k-start.landed .k-file { display: flex; animation: k-rise var(--rise) var(--ease) both; }
198
+ .k-start.landed ~ .after-file, .k-start.landed .after-file { display: block; margin-top: var(--space-4); animation: k-rise var(--rise) var(--ease) .06s both; }
199
+ @keyframes k-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
200
+
201
+ /* the file row: what is in, its facts, and a way to change it */
202
+ .k-file {
203
+ display: none; align-items: center; gap: var(--space-3);
204
+ margin-top: var(--space-6); padding: 14px 18px;
205
+ background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
206
+ }
207
+ .k-file.show { display: flex; }
208
+ .k-file > .k-icon { width: 28px; height: 28px; flex: none; color: var(--accent); }
209
+ .k-file-text { flex: 1; min-width: 0; }
210
+ .k-file-name { margin: 0; font-weight: var(--weight-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
211
+ .k-file-changes { display: flex; gap: var(--space-2); flex: none; }
212
+ .k-file-facts { margin: 2px 0 0; color: var(--muted); font-size: var(--size-sm); font-family: var(--font-mono); }
213
+ @media (prefers-reduced-motion: reduce) { .k-start.landed .k-file, .k-start.landed ~ .after-file, .k-start.landed .after-file { animation: none; } }
214
+ .k-zone .k-error { margin: 16px auto 0; max-width: 460px; text-align: left; }
215
+
216
+ /* Use it with your assistant: one quiet line under the zone, every tool (decided 2026-11-19) */
217
+ .k-skill { margin: var(--space-3) 0 0; text-align: center; font-size: var(--size-sm); color: var(--muted); }
218
+ .k-skill .linky { font-size: inherit; }
219
+ .k-skill-sep { margin: 0 6px; }
220
+ .k-skill-about { margin: 6px auto 0; max-width: 460px; }
221
+ .k-start.landed .k-skill, .k-start.landed .k-skill-about { display: none; }
222
+
223
+ /* --- parts/settings.css --- */
224
+ /* kit part: the settings section and its fields. A section may carry a small
225
+ * capitals header ("WHOLE VIDEO", "THIS CLIP"), as Just Cut has. Fields are
226
+ * divided by the panel's own line; the last loses its divider. */
227
+ .k-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px var(--space-5); margin-bottom: 18px; }
228
+ .k-cap { margin: 14px 0 -6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
229
+ .k-field { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
230
+ .k-field:last-child { border-bottom: none; }
231
+ .k-field > label, .k-label { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-strong); margin-bottom: 9px; }
232
+ /* a checkbox reads the same wherever it sits */
233
+ .k-field > label.k-check { font-weight: var(--weight); margin-bottom: 0; }
234
+ .k-field > .k-check:first-of-type, .k-field > label + .k-check { margin-top: 0; }
235
+
236
+ select, .k-input {
237
+ font: inherit; color: var(--text); background: var(--panel-2);
238
+ border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; width: 100%;
239
+ }
240
+ select:focus, .k-input:focus { outline: none; border-color: var(--accent); }
241
+ .k-input.k-number { width: 96px; font-variant-numeric: tabular-nums; }
242
+ .k-input.k-time { width: 96px; font-family: var(--font-mono); }
243
+ .k-unit { color: var(--muted); }
244
+
245
+ input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--panel-2); cursor: pointer; }
246
+ input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
247
+ input[type=range]:hover::-webkit-slider-thumb { background: var(--accent-hot); }
248
+ .k-range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--size-sm); margin-top: 6px; }
249
+
250
+ /* two thumbs on one track: a span of time, a band of levels */
251
+ .k-range2 { position: relative; height: 18px; }
252
+ .k-range2 input[type=range] { position: absolute; inset: 7px 0 auto 0; pointer-events: none; background: transparent; }
253
+ .k-range2 input[type=range]::-webkit-slider-thumb { pointer-events: auto; }
254
+ .k-range2-track { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: var(--radius-pill); background: var(--panel-2); }
255
+ .k-range2-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: var(--radius-pill); left: var(--from, 0%); right: calc(100% - var(--to, 100%)); }
256
+
257
+ /* checkbox and toggle */
258
+ .k-check { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; cursor: pointer; }
259
+ .k-check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
260
+ .k-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); cursor: pointer; }
261
+ .k-toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: var(--radius-pill); background: var(--panel-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background var(--quick); flex: none; margin: 0; }
262
+ .k-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform var(--move) var(--ease), background var(--quick); }
263
+ .k-toggle input:checked { background: var(--accent); border-color: var(--accent); }
264
+ .k-toggle input:checked::after { transform: translateX(16px); background: var(--on-accent); }
265
+
266
+ /* segmented: two to four choices, one on */
267
+ .k-seg { display: inline-flex; gap: var(--space-1); background: var(--panel-2); border-radius: 10px; padding: var(--space-1); }
268
+ .k-seg button { font: inherit; font-weight: 600; font-size: var(--size-md); padding: 6px 14px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
269
+ .k-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
270
+
271
+ /* swatches: picked colours, with a custom one last */
272
+ .k-swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); }
273
+ .k-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--swatch, var(--panel-2)); cursor: pointer; padding: 0; }
274
+ .k-swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--accent); }
275
+ .k-swatch-custom { position: relative; overflow: hidden; }
276
+ .k-swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
277
+
278
+ /* --- parts/controls.css --- */
279
+ /* kit part: the rest of the field types (kit/INVENTORY.md). */
280
+
281
+ /* chips: one choice of several, wrapping (Caption's presets and sources, Cut's speeds) */
282
+ .k-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
283
+ .k-chips button { font: inherit; font-size: var(--size-md); padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
284
+ .k-chips button:hover { border-color: var(--accent); }
285
+ .k-chips button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); border-color: var(--accent); color: var(--text); }
286
+
287
+ /* bipolar: a slider around zero, a signed pill, double-click puts it back (Color) */
288
+ .k-bipolar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3); }
289
+ .k-bipolar input[type=range] { background: linear-gradient(to right, var(--panel-2) 0 calc(50% - 1px), var(--muted) calc(50% - 1px) calc(50% + 1px), var(--panel-2) calc(50% + 1px)); }
290
+ .k-bipolar .pill { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
291
+
292
+ /* grouped numbers with their labels above (Sound's Comes in at, Fade in, Fade out) */
293
+ .k-numbers { display: flex; flex-wrap: wrap; gap: var(--space-4); }
294
+ .k-numbers label { display: flex; flex-direction: column; gap: 6px; font-size: var(--size-sm); color: var(--muted); }
295
+
296
+ /* a checkbox that shows its group (Sound's music, Caption's sources) */
297
+ .k-reveal > .k-reveal-body { display: none; margin: var(--space-3) 0 0 26px; padding-left: var(--space-3); border-left: 2px solid var(--line); }
298
+ .k-reveal.open > .k-reveal-body { display: block; animation: k-rise var(--rise) var(--ease) both; }
299
+
300
+ /* the 3x3 position grid (Caption's placement) */
301
+ .k-grid9 { display: grid; grid-template-columns: repeat(3, 36px); gap: 6px; }
302
+ .k-grid9 button { width: 36px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; padding: 0; }
303
+ .k-grid9 button:hover { border-color: var(--accent); }
304
+ .k-grid9 button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
305
+
306
+ /* where the result goes: a path and a way to change it */
307
+ .k-dest { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
308
+ .k-dest-path { flex: 1; min-width: 0; color: var(--muted); font-family: var(--font-mono); font-size: var(--size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; }
309
+
310
+ /* collapsed settings, opened with a word */
311
+ .k-more { margin-top: var(--space-3); font-size: var(--size-md); color: var(--muted); }
312
+ .k-more > summary { cursor: pointer; width: max-content; list-style: none; display: flex; align-items: center; gap: 6px; }
313
+ .k-more > summary::-webkit-details-marker { display: none; }
314
+ .k-more > summary:hover { color: var(--text); }
315
+ .k-more[open] > summary .k-icon { transform: rotate(90deg); }
316
+ .k-more > summary .k-icon { transition: transform var(--move) var(--ease); width: 14px; height: 14px; }
317
+
318
+ /* a question asked once, inline (the Tool Belt's first run) */
319
+ .k-ask { padding: var(--space-4) 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-left: var(--edge) solid var(--accent); }
320
+ .k-ask p { margin: 0 0 var(--space-3); }
321
+
322
+ /* --- parts/list.css --- */
323
+ /* kit part: the list every collection uses: a run's queue, Overlay's layers,
324
+ * Clipboard's history, the Tool Belt's chain, Zip's contents. One row style:
325
+ * an optional handle, a picture or icon, a name, a note, and actions at the end. */
326
+ .k-list { list-style: none; margin: 0; padding: var(--space-1) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
327
+ .k-list:empty { display: none; }
328
+ .k-row { display: flex; align-items: center; gap: 10px; padding: var(--space-2) 14px; min-height: 40px; }
329
+ .k-row + .k-row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
330
+ .k-row[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); }
331
+ .k-row .k-handle { color: var(--muted); cursor: grab; flex: none; }
332
+ .k-row .k-thumb { width: 40px; height: 28px; border-radius: 6px; object-fit: cover; background: var(--panel-2); flex: none; }
333
+ .k-row > .k-icon { color: var(--muted); flex: none; }
334
+ .k-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
335
+ .k-row-note { color: var(--muted); font-size: var(--size-sm); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
336
+ .k-row-actions { display: flex; gap: var(--space-1); flex: none; }
337
+ .k-row-actions .btn { padding: 4px 6px; min-width: 28px; }
338
+ /* the chain: rows joined by a line, for steps that follow one another */
339
+ .k-list.k-chain .k-row + .k-row { border-top: 0; }
340
+ .k-list.k-chain .k-row { position: relative; }
341
+ /* the line joins the rows' icons: 14px of padding plus half a 20px icon, or past a handle */
342
+ .k-list.k-chain .k-row { --chain-x: 23px; }
343
+ .k-list.k-chain .k-row:has(.k-handle) { --chain-x: 53px; }
344
+ .k-list.k-chain .k-row + .k-row::before { content: ""; position: absolute; left: var(--chain-x); top: -6px; height: 12px; border-left: 2px solid var(--line); }
345
+
346
+ /* --- parts/collections.css --- */
347
+ /* kit part: tiles, cards and notes (kit/INVENTORY.md). */
348
+
349
+ /* picture tiles: Cut's tray, Overlay's layers as tiles, the asset library */
350
+ .k-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
351
+ .k-tiles:empty { display: none; }
352
+ .k-tile { position: relative; min-width: 0; border-radius: var(--radius-sm); cursor: grab; }
353
+ .k-tile-pic { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
354
+ .k-tile-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
355
+ .k-tile-badge { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); }
356
+ .k-tile-name { margin: 6px 0 0; font-size: var(--size-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
357
+ .k-tile-sub { margin: 0; font-size: 11px; color: var(--muted); }
358
+ .k-tile-actions { position: absolute; top: 5px; right: 5px; display: none; gap: 4px; }
359
+ .k-tile:hover .k-tile-actions, .k-tile:focus-within .k-tile-actions { display: flex; }
360
+ .k-tile-actions .btn { padding: 3px; min-width: 24px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
361
+ .k-tile[aria-selected="true"] .k-tile-pic { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
362
+ .k-tile.pending .k-tile-pic::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: k-spin .9s linear infinite; }
363
+ @keyframes k-spin { to { transform: rotate(360deg); } }
364
+ @media (prefers-reduced-motion: reduce) { .k-tile.pending .k-tile-pic::after { animation-duration: 2.4s; } }
365
+
366
+ /* cards: a thing with a status and actions (the Tool Belt's tools and workflows) */
367
+ .k-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) 18px; margin-bottom: var(--space-3); }
368
+ .k-card.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
369
+ .k-card-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
370
+ .k-card-head h3 { margin-right: var(--space-1); }
371
+ .k-card-body { margin: 6px 0 0; color: var(--muted); font-size: var(--size-md); }
372
+ .k-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
373
+ .pill.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--panel-2)); }
374
+ .pill.hot { color: var(--accent-hot); background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); }
375
+ .pill.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--panel-2)); }
376
+
377
+ /* notes with levels: worth knowing, a warning, a problem */
378
+ .k-notes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 6px; }
379
+ .k-notes li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--size-md); color: var(--muted); }
380
+ .k-notes li .k-icon { width: 16px; height: 16px; margin-top: 2px; }
381
+ .k-notes li.warn { color: var(--text); }
382
+ .k-notes li.warn .k-icon { color: var(--accent-hot); }
383
+ .k-notes li.bad { color: var(--bad); }
384
+
385
+ /* --- parts/overlays.css --- */
386
+ /* kit part: dialogs, menus and tabs (kit/INVENTORY.md). */
387
+
388
+ /* dialogs on <dialog>, opened with showModal(): confirm, confirm with "don't ask again", keys */
389
+ .k-dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: var(--space-5) var(--space-6); max-width: 440px; box-shadow: 0 24px 60px color-mix(in srgb, var(--bg) 70%, black); }
390
+ .k-dialog::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); }
391
+ .k-dialog h2 { margin: 0 0 var(--space-2); font-size: var(--size-lg); }
392
+ .k-dialog p { margin: 0 0 var(--space-3); color: var(--muted); }
393
+ .k-dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-4); }
394
+ .k-keys { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: var(--space-4) 0 0; font-size: var(--size-md); }
395
+ .k-keys dt { font-weight: var(--weight-strong); }
396
+ .k-keys dd { margin: 0; color: var(--muted); }
397
+ kbd { font-family: var(--font-mono); font-size: var(--size-sm); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel-2); }
398
+
399
+ /* a popup menu anchored to a control (Cut's joins) */
400
+ .k-menu { position: fixed; z-index: 60; min-width: 180px; padding: var(--space-1); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px color-mix(in srgb, var(--bg) 70%, black); left: var(--x, 0); top: var(--y, 0); }
401
+ .k-menu[hidden] { display: none; }
402
+ .k-menu button { display: flex; align-items: center; gap: var(--space-2); width: 100%; font: inherit; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
403
+ .k-menu button:hover, .k-menu button:focus-visible { background: var(--panel-2); }
404
+ .k-menu button[aria-checked="true"] { color: var(--accent); }
405
+
406
+ /* tabs (the Tool Belt) */
407
+ .k-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); margin: var(--space-4) 0; }
408
+ .k-tabs button { font: inherit; font-weight: var(--weight-strong); padding: 8px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px; }
409
+ .k-tabs button:hover { color: var(--text); }
410
+ .k-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
411
+
412
+ /* --- parts/run.css --- */
413
+ /* kit part: what happens under the main button in every Just tool: working,
414
+ * the queue, done and failed (decided 2026-11-18). The utility layout puts it
415
+ * under the full-width button, the studio layout in its export spot. Before a
416
+ * run, the estimate sits above the button as .k-note; never in here. */
417
+
418
+ .k-note { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 8px; }
419
+ .k-note:empty { display: none; }
420
+
421
+ .k-run { margin-top: 14px; }
422
+ .k-run[data-state="idle"] { display: none; } /* takes no room until a run starts */
423
+ .k-run > section { display: none; }
424
+ .k-run[data-state="working"] .k-run-working,
425
+ .k-run[data-state="working"] .k-run-queue.has,
426
+ .k-run[data-state="done"] .k-run-done,
427
+ .k-run[data-state="done"] .k-run-queue.has,
428
+ .k-run[data-state="failed"] .k-run-failed,
429
+ .k-run[data-state="failed"] .k-run-queue.has { display: block; animation: k-run-in .22s ease-out both; }
430
+ @keyframes k-run-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
431
+ @media (prefers-reduced-motion: reduce) { .k-run > section { animation: none !important; } }
432
+
433
+ /* working: one bar, one line of what and how many, the time left, Cancel */
434
+ .k-run-bar { height: 8px; border-radius: var(--radius-pill); background: var(--panel-2); overflow: hidden; }
435
+ .k-run-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: var(--radius-pill); transition: width .25s linear; }
436
+ /* a step whose length can't be known: a third of the bar sweeps across and back
437
+ (decided 2026-11-20); with reduced motion it stays still and dims and brightens */
438
+ .k-run-bar.unknown .k-run-fill { width: 34%; transition: none; animation: k-run-sweep 1.4s ease-in-out infinite alternate; }
439
+ @keyframes k-run-sweep { from { transform: translateX(-10%); } to { transform: translateX(204%); } }
440
+ @keyframes k-run-throb { from { opacity: .45; } to { opacity: 1; } }
441
+ @media (prefers-reduced-motion: reduce) {
442
+ .k-run-bar.unknown .k-run-fill { width: 100%; animation: k-run-throb 1.6s ease-in-out infinite alternate; }
443
+ }
444
+ .k-run-line { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 13px; }
445
+ .k-run-what { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
446
+ .k-run-count { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
447
+ .k-run-sub { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
448
+ .k-run-file { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
449
+ .k-run-cancel { margin-top: 12px; }
450
+
451
+ /* the queue: one row per file, the same marks in every tool */
452
+ .k-run-queue { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); max-height: 196px; overflow: auto; }
453
+ .k-run-queue ol { list-style: none; margin: 0; padding: 4px 0; }
454
+ .k-run-queue li { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-size: 12px; }
455
+ .k-run-queue .k-q-name { flex: 1; min-width: 0; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
456
+ .k-run-queue .k-q-note { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
457
+ .k-q-mark { width: 16px; height: 16px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
458
+ li[data-q="waiting"] .k-q-mark { stroke: var(--muted); }
459
+ li[data-q="waiting"] .k-q-name { color: var(--muted); }
460
+ li[data-q="working"] .k-q-mark { stroke: var(--accent); }
461
+ li[data-q="done"] .k-q-mark { stroke: var(--good); }
462
+ li[data-q="failed"] .k-q-mark { stroke: var(--bad); }
463
+ li[data-q="failed"] .k-q-note { color: var(--bad); }
464
+
465
+ /* done: one card, Just Cut's green edge, what was made, where, two ways on */
466
+ .k-run-done {
467
+ padding: 14px 16px; border-radius: var(--radius);
468
+ background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--good);
469
+ }
470
+ .k-run-done-title { margin: 0; font-size: 16px; font-weight: 600; }
471
+ .k-run-done-detail { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
472
+ .k-run-done-where { margin: 6px 0 0; color: var(--muted); font-size: 12px; user-select: text; overflow-wrap: anywhere; }
473
+ .k-run-done-detail:empty, .k-run-done-where:empty { display: none; }
474
+ .k-run-done-detail { overflow-wrap: anywhere; }
475
+ /* a result that did not get all the way (still over a limit): the edge says so */
476
+ .k-run-done.over { border-left-color: var(--bad); }
477
+ .k-run-done-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
478
+
479
+ /* failed: the error line and one way to try again */
480
+ .k-run-failed .k-error { margin: 0; }
481
+ .k-run-failed .btn { margin-top: 12px; }
482
+
483
+ /* --- parts/error.css --- */
484
+ /* kit part: the error line. Says what went wrong and what to do, in the tool's
485
+ * words; selectable, so a person can copy it into a question. */
486
+ .k-error {
487
+ margin: var(--space-4) 0 0; padding: 14px 18px; border-radius: var(--radius);
488
+ background: color-mix(in srgb, var(--bad) 10%, transparent);
489
+ border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
490
+ color: var(--bad); white-space: pre-wrap; user-select: text; font-size: var(--size-md);
491
+ }
492
+ .k-error:empty { display: none; }
493
+
494
+ /* --- parts/veil.css --- */
495
+ /* kit part: the drag veil. A file held anywhere over the window shows where it
496
+ * will go, in one sentence; it never covers what it is about to change. */
497
+ .k-veil {
498
+ position: fixed; inset: 10px; z-index: 50; display: grid; place-items: center; pointer-events: none;
499
+ border: 2px dashed var(--accent); border-radius: var(--radius);
500
+ background: color-mix(in srgb, var(--bg) 55%, transparent);
501
+ }
502
+ .k-veil[hidden] { display: none; }
503
+ .k-veil p { margin: 0; padding: 10px 18px; border-radius: 10px; background: var(--panel); font-weight: var(--weight-strong); display: flex; align-items: center; gap: var(--space-2); }
504
+ .k-veil .k-icon { color: var(--accent); }
505
+
506
+ /* --- parts/footer.css --- */
507
+ /* kit part: the footer, the same in every Just tool: the licences on the left,
508
+ * the promise in the middle (word for word in every tool), the credit on the
509
+ * right (the two-tone wordmark, Ponder in ink and Dev in PonderDev's purple).
510
+ * The side columns share the room equally, so the promise sits at the true
511
+ * middle; in a narrow window it wraps rather than pushing into the sides. */
512
+ .k-footer {
513
+ flex: none; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
514
+ align-items: center; gap: var(--space-4);
515
+ padding: 10px var(--space-6); border-top: 1px solid var(--line); background: var(--panel);
516
+ font-size: var(--size-xs); color: var(--muted);
517
+ }
518
+ .k-footer-licences { justify-self: start; white-space: nowrap; }
519
+ .k-footer-promise { justify-self: center; text-align: center; }
520
+ .k-footer-credit { justify-self: end; white-space: nowrap; }
521
+ .k-footer button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
522
+ .k-footer button:hover { color: var(--accent); }
523
+ .k-mark { color: var(--text); }
524
+ .k-mark b { font-weight: 700; color: var(--brand); }
525
+
526
+ /* --- layouts/utility.css --- */
527
+ /* kit layout: utility, for the one-step tools (Fits, JPEG, Zip, Clipboard and
528
+ * the like). Every utility tool has the same window width and one column:
529
+ * the start screen, then the settings, then one full-width main button at the
530
+ * bottom, with the estimate just above it before a run and the progress, the
531
+ * queue and the done card just under it (decided 2026-11-18). */
532
+ .k-utility { max-width: var(--column); margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
533
+ .k-utility > .k-start { flex: 1; } /* the start block centres in the window */
534
+ .k-utility > .k-start.landed { flex: none; } /* once a file is in, what follows sits right under it */
535
+ .k-utility .k-section { margin-top: 0; }
536
+ .k-utility .k-action { margin-top: var(--space-1); }
537
+ /* In a short window (a 1366x768 laptop, an 800x600 screen) the settings run
538
+ past the fold, and the main button with them, so a first-time user sees no
539
+ way on. The button stays in view at the foot of the window while there is
540
+ more above it, on a band of the page's own background (decided 2026-11-20).
541
+ Once a run starts, the tool scrolls the run part into view under it. */
542
+ .k-utility .k-action {
543
+ position: sticky; bottom: var(--space-3); z-index: 2;
544
+ box-shadow: 0 var(--space-3) 0 var(--space-3) var(--bg), 0 calc(-1 * var(--space-4)) var(--space-4) var(--space-1) var(--bg);
545
+ }
546
+ .k-utility .k-note { margin: 14px 0 var(--space-2); }
547
+ /* the Tool Belt: a manager with cards and tabs takes a wider column, same layout */
548
+ .k-utility.k-wide { max-width: 860px; }
549
+
550
+ /* --- layouts/studio.css --- */
551
+ /* kit layout: studio, for the video tools that are each one piece of an
552
+ * editing studio (Cut, Color, Overlay, Caption, Review). Just Cut's editor is
553
+ * the reference: its preview, timeline, tray and side stay where they are and
554
+ * the others line up to it, so a file moving from one tool to the next stays
555
+ * in one studio. STUDIO.md is the map of which tool puts what in each region.
556
+ *
557
+ * .k-studio the grid: main column, then the side
558
+ * .k-studio-main preview, transport, timeline head, track, detail
559
+ * .k-preview the frame, shaped by --frame-ar (set by script)
560
+ * .k-transport play, scrub, time, and room for a compare button
561
+ * .k-timeline-head heading, undo and redo, tool actions, zoom
562
+ * .k-track the timeline, text track, layer list or waveform
563
+ * .k-detail the selected item ("This clip")
564
+ * .k-side the side column, var(--side) wide
565
+ * .k-tray "add more here", at the top
566
+ * .k-side-settings the .k-sections; scrolls on its own
567
+ * .k-export the main button and the run part, at the foot
568
+ *
569
+ * The studio fills the window: the main column ends where the side ends, and
570
+ * the export spot sits at the foot of the side. A tool lacking a region leaves
571
+ * it out and its neighbour grows; nothing above it moves. The track takes the
572
+ * height that is left; with no track, the detail strip takes it.
573
+ *
574
+ * Sizes a tool may tune with element.style.setProperty on .k-studio:
575
+ * --frame-ar the finished picture's width over height, a plain number
576
+ * --track-min the least the track box is ever given
577
+ */
578
+ .k-studio {
579
+ --frame-ar: 1.7778;
580
+ --frame-vh: 42vh;
581
+ --track-min: 142px; /* Just Cut's timeline: its blocks and the strip under them */
582
+ display: grid;
583
+ grid-template-columns: minmax(0, 1fr) var(--side);
584
+ grid-template-rows: minmax(0, 1fr);
585
+ gap: var(--space-6);
586
+ height: 100%;
587
+ max-width: 1180px;
588
+ margin: 0 auto;
589
+ }
590
+
591
+ /* ------------------------------------------------------------ main column */
592
+ .k-studio-main {
593
+ min-width: 0;
594
+ min-height: 0;
595
+ display: flex;
596
+ flex-direction: column;
597
+ overflow-y: auto; /* only on a window shorter than every region's least */
598
+ }
599
+
600
+ /* The preview is the shape of the finished video, at the same place and the
601
+ same height rule in every tool: Just Cut's. */
602
+ .k-preview {
603
+ position: relative;
604
+ flex: none;
605
+ aspect-ratio: var(--frame-ar);
606
+ width: min(100%, calc(var(--frame-vh) * var(--frame-ar)));
607
+ margin: 0 auto;
608
+ background: var(--bg);
609
+ border: 1px solid var(--line);
610
+ border-radius: var(--radius);
611
+ overflow: hidden;
612
+ }
613
+ /* What a tool draws in the frame (its video, a canvas, a layer stage) fills it. */
614
+ .k-preview > video,
615
+ .k-preview > canvas,
616
+ .k-preview > .k-preview-layer {
617
+ position: absolute;
618
+ inset: 0;
619
+ width: 100%;
620
+ height: 100%;
621
+ display: block;
622
+ object-fit: contain;
623
+ }
624
+
625
+ .k-transport {
626
+ flex: none;
627
+ display: flex;
628
+ align-items: center;
629
+ gap: 14px;
630
+ margin: 14px 0 22px;
631
+ }
632
+ .k-transport input[type=range] { flex: 1; min-width: 0; }
633
+ .k-transport .k-time { color: var(--muted); font-family: var(--font-mono); font-size: var(--size-sm); flex: none; font-variant-numeric: tabular-nums; }
634
+ /* The last region in the column keeps no margin under it. */
635
+ .k-transport:last-child { margin-bottom: 0; }
636
+
637
+ .k-timeline-head {
638
+ flex: none;
639
+ display: flex;
640
+ align-items: center;
641
+ justify-content: space-between;
642
+ gap: var(--space-4);
643
+ margin-bottom: 10px;
644
+ }
645
+ .k-timeline-head h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
646
+ .k-timeline-tools { display: flex; align-items: center; gap: 10px; flex: none; }
647
+ .k-history { display: flex; gap: var(--space-1); }
648
+ .k-zoom { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--size-sm); }
649
+ .k-zoom input[type=range] { width: 96px; flex: none; }
650
+
651
+ /* The track: one box for whatever runs along the video. It takes the height
652
+ left in the column and scrolls inside itself; contain keeps its contents
653
+ from stretching the studio past the window. */
654
+ .k-track {
655
+ flex: 1 1 auto;
656
+ min-height: var(--track-min);
657
+ contain: size;
658
+ background: var(--panel);
659
+ border: 1px solid var(--line);
660
+ border-radius: var(--radius);
661
+ padding: var(--space-3) var(--space-3) 6px;
662
+ overflow: auto;
663
+ }
664
+
665
+ /* The selected item, under the track: what it is on the left, its own
666
+ settings on the right, two rows at most. */
667
+ .k-detail {
668
+ flex: none;
669
+ display: grid;
670
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
671
+ gap: var(--space-2) var(--space-6);
672
+ align-items: start;
673
+ margin-top: 14px;
674
+ padding: var(--space-3) 18px;
675
+ background: var(--panel);
676
+ border: 1px solid var(--line);
677
+ border-radius: var(--radius);
678
+ }
679
+ .k-detail .k-cap { margin: 0 0 2px; }
680
+ /* With no track, the detail strip is the neighbour that grows. */
681
+ .k-studio-main:not(:has(> .k-track:not([hidden]))) > .k-detail { flex: 1 1 auto; align-content: start; }
682
+ .k-transport + .k-detail { margin-top: 0; }
683
+
684
+ /* ------------------------------------------------------------------- side */
685
+ .k-side {
686
+ min-width: 0;
687
+ min-height: 0;
688
+ display: flex;
689
+ flex-direction: column;
690
+ }
691
+ /* A little taller than its words, so an empty tray reads as a place to drop. */
692
+ .k-tray {
693
+ flex: none;
694
+ min-height: 150px;
695
+ max-height: 40%;
696
+ overflow-y: auto;
697
+ background: var(--panel);
698
+ border: 1px solid var(--line);
699
+ border-radius: var(--radius);
700
+ padding: 6px var(--space-5);
701
+ margin-bottom: 18px;
702
+ }
703
+ .k-tray.k-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
704
+
705
+ .k-side-settings {
706
+ flex: 1 1 0;
707
+ min-height: 0;
708
+ overflow-y: auto;
709
+ /* the scroll bar sits out in the window's margin, so the sections keep the
710
+ side's full width and line up with the tray and the button */
711
+ margin-right: -14px;
712
+ padding-right: 4px;
713
+ scrollbar-gutter: stable;
714
+ }
715
+ .k-side-settings > .k-section:last-child { margin-bottom: 0; }
716
+
717
+ /* The export spot, at the foot of the side in every tool: the estimate, the
718
+ main button, then the run part, then Start again. */
719
+ .k-export {
720
+ flex: none;
721
+ position: relative;
722
+ z-index: 1;
723
+ padding-top: 14px;
724
+ background: var(--bg);
725
+ /* settings that scroll under it fade out rather than stop at a hard edge */
726
+ box-shadow: 0 -14px 14px -14px var(--bg);
727
+ }
728
+ .k-export > .k-note { margin-top: 0; }
729
+ .k-export .k-run { margin-top: var(--space-3); }
730
+ .k-export .k-run[data-state="idle"] { margin-top: 0; }
731
+ .k-export-after { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) 18px; margin-top: var(--space-3); }
732
+
733
+ /* ----------------------------------------------------- short and narrow */
734
+ /* On a short window (a 1280x720 laptop) the preview gives up a little height
735
+ so the track and the detail strip fit under it without scrolling. */
736
+ @media (max-height: 800px) {
737
+ .k-studio { --frame-vh: 37vh; }
738
+ .k-transport { margin: 10px 0 16px; }
739
+ .k-detail { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; }
740
+ }
741
+
742
+ /* Under 900 wide: one column, the side under the main one, the page scrolls,
743
+ and the export spot stays in reach at the window's foot. */
744
+ @media (max-width: 900px) {
745
+ .k-studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; gap: 0; }
746
+ .k-studio-main { overflow: visible; margin-bottom: var(--space-6); }
747
+ /* The side's parts sit straight in the studio here, so the export spot can
748
+ stick to the window's foot from the top of the page down: inside the side
749
+ it could not rise above the side, which on a short window (an 800x600
750
+ screen) starts below the fold (decided 2026-11-20). */
751
+ .k-side { display: contents; }
752
+ .k-track { flex: none; contain: none; max-height: 40vh; }
753
+ .k-tray { max-height: none; }
754
+ .k-side-settings { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }
755
+ .k-export {
756
+ position: sticky;
757
+ bottom: calc(-1 * var(--space-5)); /* #app's bottom padding, so it sits on the edge */
758
+ padding-bottom: var(--space-5);
759
+ background: var(--bg);
760
+ }
761
+ }
762
+ @media (max-width: 760px) {
763
+ .k-detail { grid-template-columns: minmax(0, 1fr); }
764
+ }
765
+
766
+ /* Once a run is done, its card carries Start again; the export spot's own goes quiet. */
767
+ .k-export:has(.k-run[data-state="done"]) .k-export-after .k-again { display: none; }