workspaces 0.1.20 → 0.1.22

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.
@@ -1,29 +1,23 @@
1
1
  :root {
2
- /* Surfaces. Page, then card, then the hairlines that divide them. */
3
- --bg: #0b0f17;
4
- --bg-elevated: #141a26;
5
- --border: #2a3447;
6
- --divider: #252e41;
7
- --border-strong: #3f4b63;
8
- /* The edge of an input or outline button. WCAG asks 3:1 for a control's boundary against what is
9
- behind it; #3f4b63 is about 2:1 on the card. One token, so raising it is a one-line change. */
10
- --control-border: #3f4b63;
11
- /* Text. Every pairing with a surface is at least 4.5:1. */
12
- --text-strong: #f8fafc;
13
- --text: #e2e8f0;
14
- --text-cell: #cbd5e1;
15
- --muted: #a8b3c7;
16
- --placeholder: #8a97ad;
17
- --accent: #6fa8ff;
18
- --accent-hover: #8dbbff;
19
- --on-accent: #06101f;
20
- --success: #2fbf8f;
21
- --danger: #ff6f74;
22
- --warning: #f1bb53;
2
+ /* Colours come from the Arb palette (arb-palette.css), per theme, and only through these roles. Nothing
3
+ below this block names a colour: add a role here, never a literal. A role the palette lacks is a gap to
4
+ raise with the palette's owner, not something to approximate with a mix or an opacity. */
5
+ --bg: var(--arb-bg);
6
+ --bg-elevated: var(--arb-surface);
7
+ --border: var(--arb-border);
8
+ --text: var(--arb-text);
9
+ --muted: var(--arb-muted);
10
+ --accent: var(--arb-accent);
11
+ --accent-hover: var(--arb-action-hover);
12
+ --accent-pressed: var(--arb-action-pressed);
13
+ --on-accent: var(--arb-on-accent);
14
+ --success: var(--arb-success);
15
+ --danger: var(--arb-error);
16
+ --warning: var(--arb-warning);
17
+ --focus: var(--arb-focus);
23
18
  --radius: 12px;
24
19
  --radius-control: 8px;
25
20
  --control-height: 44px;
26
- --shadow: none;
27
21
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
28
22
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
29
23
  --space-1: 4px;
@@ -37,6 +31,12 @@
37
31
  --panel-padding: 28px;
38
32
  }
39
33
 
34
+ /* Focus: a 2px ring in the palette's focus colour, with a 2px gap. The gap is required: the ring is only approved
35
+ against surfaces, not directly against a button's fill. It is the outline's own offset, which is transparent, so
36
+ it shows whatever surface the control actually sits on (the page or a panel) and needs no colour of its own. The
37
+ ring takes no space and moves nothing. */
38
+ :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
39
+
40
40
  * {
41
41
  box-sizing: border-box;
42
42
  }
@@ -45,7 +45,7 @@
45
45
  which tag was used. Reset them once; every gap is declared by a stack rule below
46
46
  using the --space-* scale. */
47
47
  h1, h2, h3, h4, p, ul, ol, dl, dd, pre, fieldset, figure { margin: 0; }
48
- h2 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text-strong); }
48
+ h2 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text); }
49
49
  label { font-size: 14px; font-weight: 600; }
50
50
  ol, ul { padding-inline-start: var(--space-6); }
51
51
  legend { padding: 0; }
@@ -67,27 +67,27 @@ input:not([type='checkbox']):not([type='radio']), select {
67
67
  max-inline-size: 100%;
68
68
  block-size: var(--control-height);
69
69
  padding-inline: var(--space-3);
70
- color: var(--text-strong);
70
+ color: var(--text);
71
71
  background: var(--bg);
72
- border: 1px solid var(--control-border);
72
+ border: 1px solid var(--border);
73
73
  border-radius: var(--radius-control);
74
74
  font-family: var(--font-mono);
75
75
  font-size: 14px;
76
76
  }
77
77
  select { font-family: var(--font-sans); font-size: 15px; }
78
- ::placeholder { color: var(--placeholder); opacity: 1; }
79
- input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
78
+ ::placeholder { color: var(--muted); opacity: 1; }
80
79
  summary { cursor: pointer; color: var(--muted); }
81
- summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
82
80
  .workspace-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
83
81
  /* The server-rendered action forms live in a wrapper; let them flow with the sibling button. */
84
82
  #actions { display: contents; }
85
- .setup-error { --panel-padding: var(--space-4); padding: var(--panel-padding); border-color: var(--danger); box-shadow: none; }
86
- .setup-error h3 { color: var(--danger); margin-block-start: 0; }
83
+ /* Two classes, so it beats the shared panel rule further down, which would otherwise put the full outline back. */
84
+ .error-panel.setup-error { --panel-padding: var(--space-4); padding: var(--panel-padding); border: 0; border-inline-start: 4px solid var(--arb-error); border-radius: var(--radius-control); background: var(--arb-error-bg); }
85
+ .setup-error h3, .setup-error h2 { color: var(--arb-error); margin-block-start: 0; }
86
+ .setup-error pre { background: var(--bg); }
87
87
  .step-outcome { margin-inline-start: auto; font-size: 12px; }
88
- .activity-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: workspace-pulse 1.5s infinite; }
89
- @keyframes workspace-pulse { 50% { opacity: 0.3; } }
90
- @media (prefers-reduced-motion: reduce) { .activity-dot { animation: none; } }
88
+ /* The dot beside the current step is dropped: a pulse that never stops says "working" whether or not anything is
89
+ happening. The step's name, its number and the bar are what show progress. */
90
+ .activity-dot { display: none; }
91
91
  dd, h1, code { overflow-wrap: anywhere; }
92
92
  dt + dd { margin-block-start: var(--space-1); }
93
93
  dd + dt { margin-block-start: var(--space-3); }
@@ -115,6 +115,8 @@ a {
115
115
  gap: var(--space-6);
116
116
  }
117
117
 
118
+ .dashboard--narrow { inline-size: min(100% - var(--space-6), 60rem); }
119
+
118
120
  .dashboard__header {
119
121
  display: flex;
120
122
  flex-wrap: wrap;
@@ -134,7 +136,7 @@ a {
134
136
 
135
137
  h1 {
136
138
  margin: 0;
137
- color: var(--text-strong);
139
+ color: var(--text);
138
140
  font-size: 32px;
139
141
  font-weight: 700;
140
142
  line-height: 1.2;
@@ -163,10 +165,9 @@ h1 {
163
165
  .log-panel,
164
166
  .noscript-note {
165
167
  background: var(--bg-elevated);
166
- border: 1px solid var(--border);
168
+ border: 1px solid var(--arb-elevated);
167
169
  border-radius: var(--radius);
168
170
  padding: var(--panel-padding);
169
- box-shadow: var(--shadow);
170
171
  }
171
172
 
172
173
  /* Disclosure panels keep their native layout; only the open state adds spacing below. */
@@ -189,13 +190,36 @@ h1 {
189
190
  .lead { gap: var(--space-4); padding-block: var(--space-8); }
190
191
  .lead__text { display: grid; gap: var(--space-2); }
191
192
  .lead h2 { font-size: 24px; line-height: 1.25; }
192
- .lead__summary { max-inline-size: 38rem; color: var(--muted); font-size: 15px; line-height: 1.5; }
193
+ .lead__summary { max-inline-size: 38rem; color: var(--text); font-size: 16px; line-height: 1.5; }
194
+ /* A run that failed or was cut off says so three ways: the words, a glyph beside the headline, and an accent
195
+ bar on the panel. The colour is the accent, never the only signal. Interrupted is a warning, not an error. */
196
+ .lead[data-state='error'], .lead[data-state='interrupted'] { border-inline-start: 4px solid var(--arb-error); }
197
+ .lead[data-state='interrupted'] { border-inline-start-color: var(--arb-warning); }
198
+ .lead[data-state='error'] h2::before, .lead[data-state='interrupted'] h2::before {
199
+ content: '!';
200
+ content: '!' / '';
201
+ display: inline-grid;
202
+ place-items: center;
203
+ inline-size: 1.2em;
204
+ block-size: 1.2em;
205
+ margin-inline-end: var(--space-3);
206
+ border: 2px solid currentColor;
207
+ border-radius: 999px;
208
+ color: var(--arb-error);
209
+ font-size: 0.8em;
210
+ font-weight: 800;
211
+ line-height: 1;
212
+ vertical-align: 0.08em;
213
+ }
214
+ .lead[data-state='interrupted'] h2::before { color: var(--arb-warning); }
215
+ .lead[data-state='interrupted'] .error-panel.setup-error { border-inline-start-color: var(--arb-warning); background: var(--arb-warning-bg); }
216
+ .lead[data-state='interrupted'] .setup-error h3, .lead[data-state='interrupted'] .setup-error h2 { color: var(--arb-warning); }
193
217
  .lead__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
194
218
  .lead__actions:empty { display: none; }
195
219
 
196
220
  /* The build progress bar: a plain track and fill, then one line saying which step and how long. */
197
221
  .build-progress { display: grid; gap: var(--space-3); }
198
- .progress-bar { block-size: 10px; border-radius: 999px; background: color-mix(in oklab, var(--muted) 22%, transparent); overflow: hidden; }
222
+ .progress-bar { block-size: 10px; border-radius: 999px; background: var(--arb-elevated); border: 1px solid var(--border); overflow: hidden; }
199
223
  .progress-bar__fill { display: block; block-size: 100%; border-radius: inherit; background: var(--accent); transition: inline-size 600ms ease; }
200
224
  .progress-bar[data-slow='true'] .progress-bar__fill { background: var(--warning); }
201
225
  .progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-4); }
@@ -214,31 +238,31 @@ h1 {
214
238
  align-items: baseline;
215
239
  gap: var(--space-1) var(--space-3);
216
240
  padding-block-end: var(--space-4);
217
- border-block-end: 1px solid var(--border);
241
+ border-block-end: 1px solid var(--arb-elevated);
218
242
  }
219
- .section-heading h2 { margin: 0; font-size: 1.125rem; }
220
- .section-heading p { margin: 0; font-size: 13px; }
243
+ .section-heading h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
244
+ .section-heading p { margin: 0; font-size: 14px; }
221
245
  /* Which preset is active, readable at a glance. Same tint as a pressed preset button. */
222
246
  .badge {
223
247
  display: inline-flex;
224
248
  align-items: center;
225
249
  gap: var(--space-2);
226
250
  padding: var(--space-1) var(--space-3);
227
- border: 1px solid color-mix(in oklab, var(--success) 55%, var(--border));
251
+ border: 1px solid var(--arb-selected-border);
228
252
  border-radius: 999px;
229
- background: color-mix(in oklab, var(--success) 22%, transparent);
253
+ background: var(--arb-selected-bg);
230
254
  color: var(--text);
231
255
  font-size: 12px;
232
256
  font-weight: 600;
233
257
  line-height: 1.4;
234
258
  white-space: nowrap;
235
259
  }
236
- .badge::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 999px; background: var(--success); }
260
+ .badge::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 999px; background: var(--arb-selected-border); }
237
261
  #technical-section .technical > section:not(.danger-zone) { padding: 0; border: 0; box-shadow: none; background: none; }
238
- #technical-section .danger-zone { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--danger); border-radius: var(--radius); }
262
+ #technical-section .danger-zone { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--arb-error); background: var(--arb-error-bg); border-radius: var(--radius); }
239
263
  #technical-section .log-panel { padding: 0; }
240
264
  .log-panel > #log { margin-block-start: 0; }
241
- #technical-section .danger-zone h3 { color: var(--danger); font-size: 1rem; }
265
+ #technical-section .danger-zone h3 { color: var(--arb-error); font-size: 1rem; }
242
266
  #technical-section h3 { font-size: 1rem; }
243
267
 
244
268
  .status-row {
@@ -265,8 +289,10 @@ h1 {
265
289
 
266
290
  /* Step logs, in the style of GitHub Actions: one row per recipe step with a status icon,
267
291
  its name, how long it took, and a chevron. Open a row to read just that step's output. */
268
- .step-logs { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
269
- .step-log + .step-log { border-block-start: 1px solid var(--border); }
292
+ .step-logs { display: grid; border: 1px solid var(--arb-elevated); border-radius: 10px; overflow: hidden; }
293
+ .step-log { border-inline-start: 4px solid transparent; }
294
+ .step-log + .step-log { border-block-start: 1px solid var(--arb-elevated); }
295
+ .step-log[data-step-state='failed'] { border-inline-start-color: var(--arb-error); background: var(--arb-error-bg); }
270
296
  .step-log > summary {
271
297
  display: flex;
272
298
  align-items: center;
@@ -280,8 +306,8 @@ h1 {
280
306
  transition: background-color 120ms ease;
281
307
  }
282
308
  .step-log > summary::-webkit-details-marker { display: none; }
283
- .step-log > summary:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
284
- .step-log > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
309
+ .step-log > summary:hover { background: var(--arb-surface-hover); }
310
+ .step-log > summary:focus-visible { outline-offset: -4px; }
285
311
  .step-log > summary::after {
286
312
  content: '';
287
313
  flex: none;
@@ -295,7 +321,7 @@ h1 {
295
321
  transition: transform 160ms ease;
296
322
  }
297
323
  .step-log[open] > summary::after { margin-block-start: -3px; transform: rotate(45deg); }
298
- .step-log[open] > summary { border-block-end: 1px solid var(--border); }
324
+ .step-log[open] > summary { border-block-end: 1px solid var(--arb-elevated); }
299
325
  .step-log__name { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; font-weight: 600; }
300
326
  .step-log__outcome { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
301
327
  .step-log--full > summary { color: var(--muted); }
@@ -310,17 +336,17 @@ h1 {
310
336
 
311
337
  /* The status icon: a ring for waiting, a pulsing ring while running, a check, a cross. */
312
338
  .step-log__status { flex: none; inline-size: 16px; block-size: 16px; border: 2px solid var(--muted); border-radius: 999px; position: relative; }
313
- .step-log[data-step-state='active'] .step-log__status { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 25%, transparent); animation: workspace-pulse 1.5s infinite; }
339
+ .step-log[data-step-state='active'] .step-log__status { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px); }
314
340
  .step-log[data-step-state='complete'] .step-log__status { border-color: var(--success); background: var(--success); }
315
341
  .step-log[data-step-state='complete'] .step-log__status::after { content: ''; position: absolute; inset-inline-start: 4px; inset-block-start: 1px; inline-size: 4px; block-size: 8px; border-inline-end: 2px solid var(--bg); border-block-end: 2px solid var(--bg); transform: rotate(40deg); }
316
- .step-log[data-step-state='failed'] .step-log__status { border-color: var(--danger); background: var(--danger); }
342
+ .step-log[data-step-state='failed'] .step-log__status { border-color: var(--arb-error); background: var(--arb-error); }
317
343
  .step-log[data-step-state='failed'] .step-log__status::before,
318
344
  .step-log[data-step-state='failed'] .step-log__status::after { content: ''; position: absolute; inset-inline-start: 5px; inset-block-start: 2px; inline-size: 2px; block-size: 8px; background: var(--bg); transform: rotate(45deg); }
319
345
  .step-log[data-step-state='failed'] .step-log__status::after { transform: rotate(-45deg); }
320
- .step-log[data-step-state='failed'] > summary .step-log__name { color: color-mix(in oklab, var(--danger) 70%, var(--text)); }
346
+ .step-log[data-step-state='failed'] > summary .step-log__name { color: var(--arb-error); }
321
347
  .step-log[data-step-state='pending'] > summary .step-log__name { color: var(--muted); font-weight: 400; }
322
348
  .step-log[data-step-state='unknown'] .step-log__status { border-style: dashed; }
323
- @media (prefers-reduced-motion: reduce) { .step-log > summary, .step-log > summary::after, .step-log[data-step-state='active'] .step-log__status { transition: none; animation: none; } }
349
+ @media (prefers-reduced-motion: reduce) { .step-log > summary, .step-log > summary::after { transition: none; } }
324
350
 
325
351
  .env-panel {
326
352
  display: grid;
@@ -328,23 +354,25 @@ h1 {
328
354
  }
329
355
 
330
356
  .env-fieldset {
331
- border: 1px solid var(--border);
332
- border-radius: 10px;
357
+ border: 0;
333
358
  margin: 0;
334
- padding: var(--space-4);
359
+ padding: 0;
335
360
  display: grid;
336
- gap: var(--space-4);
361
+ gap: var(--space-5);
337
362
  }
338
363
 
339
364
  .env-legend {
340
- color: var(--muted);
341
- font-size: 13px;
342
- padding-inline: var(--space-2);
365
+ color: var(--text);
366
+ font-size: 1rem;
367
+ font-weight: 700;
368
+ padding: 0;
369
+ margin-block-end: var(--space-1);
343
370
  }
344
371
 
345
372
  .env-input-label {
346
373
  display: block;
347
374
  font-size: 14px;
375
+ font-weight: 600;
348
376
  }
349
377
 
350
378
  .env-fieldset textarea {
@@ -353,9 +381,9 @@ h1 {
353
381
  min-block-size: 12rem;
354
382
  resize: vertical;
355
383
  padding: var(--space-3);
356
- color: var(--text-strong);
384
+ color: var(--text);
357
385
  background: var(--bg);
358
- border: 1px solid var(--control-border);
386
+ border: 1px solid var(--border);
359
387
  border-radius: var(--radius-control);
360
388
  font-family: var(--font-mono);
361
389
  line-height: 1.5;
@@ -378,9 +406,9 @@ h1 {
378
406
  min-inline-size: 0;
379
407
  block-size: var(--control-height);
380
408
  padding: 0 var(--space-3);
381
- color: var(--text-strong);
409
+ color: var(--text);
382
410
  background: var(--bg);
383
- border: 1px solid var(--control-border);
411
+ border: 1px solid var(--border);
384
412
  border-radius: var(--radius-control);
385
413
  font-family: var(--font-mono);
386
414
  font-size: 14px;
@@ -388,9 +416,40 @@ h1 {
388
416
 
389
417
  .env-row[data-secret] .env-row__value { border-style: dashed; }
390
418
  .env-row__stored { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; }
391
- .env-row__secret { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; white-space: nowrap; }
419
+ .env-row__secret { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: var(--space-6); font-size: 14px; white-space: nowrap; }
420
+ /* A checkbox drawn from the palette, so every state is one we measured and none depends on the browser's own look
421
+ (a disabled native one ignores the palette and fades to about 1.5:1 on a light panel). Unchecked: the control
422
+ edge on the field colour. Checked: the action fill with its label colour for the tick. Disabled: the disabled
423
+ tokens, tick included, so a stored secret still reads as checked. */
424
+ input[type='checkbox'] {
425
+ appearance: none;
426
+ flex: none;
427
+ display: inline-grid;
428
+ place-content: center;
429
+ inline-size: 18px;
430
+ block-size: 18px;
431
+ margin: 0;
432
+ border: 2px solid var(--border);
433
+ border-radius: 4px;
434
+ background: var(--bg);
435
+ }
436
+ input[type='checkbox']:checked { background: var(--accent); border-color: var(--accent); }
437
+ input[type='checkbox']:checked::after {
438
+ content: '';
439
+ inline-size: 4px;
440
+ block-size: 9px;
441
+ margin-block-start: -2px;
442
+ border-inline-end: 2px solid var(--on-accent);
443
+ border-block-end: 2px solid var(--on-accent);
444
+ transform: rotate(40deg);
445
+ }
446
+ input[type='checkbox']:disabled, input[type='checkbox']:disabled:checked { background: var(--arb-disabled-bg); border-color: var(--arb-disabled-border); }
447
+ input[type='checkbox']:disabled:checked::after { border-color: var(--arb-disabled-fg); }
392
448
  .env-row-actions { display: flex; gap: var(--space-2); }
393
449
  .env-vault-note { color: var(--warning); }
450
+ /* Instructions are body copy, so they take the primary text colour; muted stays for metadata and hints. */
451
+ .muted.env-secret-help, .muted#environment-preset-help { color: var(--text); }
452
+ .muted.env-vault-note { color: var(--text); border-inline-start: 3px solid var(--arb-warning); padding-inline-start: var(--space-3); }
394
453
 
395
454
  @media (max-width: 560px) {
396
455
  .env-row { grid-template-columns: 1fr 1fr; }
@@ -403,8 +462,9 @@ h1 {
403
462
  gap: var(--space-3);
404
463
  }
405
464
 
406
- fieldset:disabled {
407
- opacity: 0.7;
465
+ fieldset:disabled { color: var(--arb-disabled-fg); }
466
+ fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select {
467
+ background: var(--arb-disabled-bg); color: var(--arb-disabled-fg); border-color: var(--arb-disabled-border);
408
468
  }
409
469
 
410
470
  .controls-panel {
@@ -439,10 +499,15 @@ fieldset:disabled {
439
499
  padding-inline: var(--space-3);
440
500
  }
441
501
 
442
- .env-preset-button[aria-pressed='true'] {
443
- border-color: color-mix(in oklab, var(--success) 55%, var(--border));
444
- background: color-mix(in oklab, var(--success) 22%, transparent);
502
+ .env-preset-button[aria-pressed='true'],
503
+ .button--selected {
504
+ border-color: var(--arb-selected-border);
505
+ background: var(--arb-selected-bg);
506
+ color: var(--text);
445
507
  }
508
+ /* The light theme's selected and pressed surfaces are the same colour, so a selected control needs its own
509
+ persistent marker rather than relying on the fill: a check, beside the label. */
510
+ .env-preset-button[aria-pressed='true']::before { content: '\2713'; margin-inline-end: var(--space-2); font-weight: 700; }
446
511
 
447
512
  .button {
448
513
  justify-self: start;
@@ -459,33 +524,21 @@ fieldset:disabled {
459
524
  background: transparent;
460
525
  color: var(--text);
461
526
  cursor: pointer;
462
- transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
527
+ transition: border-color 120ms ease, background-color 120ms ease;
463
528
  }
529
+ .button:hover:not(:disabled) { background: var(--arb-surface-hover); }
530
+ .button:active:not(:disabled) { background: var(--arb-surface-pressed); }
464
531
 
465
- .button:hover,
466
- .button:focus-visible {
467
- transform: translateY(-1px);
468
- }
469
-
470
- .button:focus-visible {
471
- outline: 2px solid var(--accent);
472
- outline-offset: 1px;
473
- }
474
532
 
475
533
  .button--primary {
476
534
  background: var(--accent);
477
535
  color: var(--on-accent);
478
536
  }
479
537
  .button--primary:hover:not(:disabled) { background: var(--accent-hover); }
480
-
481
- .button--primary:disabled {
482
- opacity: 0.55;
483
- cursor: not-allowed;
484
- transform: none;
485
- }
538
+ .button--primary:active:not(:disabled) { background: var(--accent-pressed); }
486
539
 
487
540
  .button--subtle {
488
- border-color: var(--control-border);
541
+ border-color: var(--border);
489
542
  }
490
543
 
491
544
  .button--small { min-block-size: 32px; padding: 4px 10px; font-size: 12px; }
@@ -495,43 +548,62 @@ fieldset:disabled {
495
548
  .step-log__actions form { margin: 0; }
496
549
 
497
550
  .button--danger {
498
- background: var(--danger);
499
- color: var(--bg);
551
+ background: var(--arb-error);
552
+ color: var(--arb-on-error);
500
553
  }
554
+ .button--danger:hover:not(:disabled) { background: var(--arb-error-hover); }
555
+ .button--danger:active:not(:disabled) { background: var(--arb-error-pressed); }
501
556
 
502
- .button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
557
+ /* Disabled is its own set of colours at full opacity, never a faded version of the enabled button. */
558
+ .button:disabled {
559
+ background: var(--arb-disabled-bg);
560
+ color: var(--arb-disabled-fg);
561
+ border-color: var(--arb-disabled-border);
562
+ cursor: not-allowed;
563
+ }
503
564
 
504
- .danger-zone { border-color: var(--danger); }
505
- .danger-zone h2 { color: var(--danger); }
565
+ .danger-zone { border-color: var(--arb-error); }
566
+ .danger-zone h2 { color: var(--arb-error); }
506
567
  .danger-zone form { display: grid; justify-items: start; gap: var(--space-3); }
507
568
 
508
569
  .table-scroll { overflow-x: auto; }
509
570
  .workspace-table { inline-size: 100%; min-inline-size: 820px; border-collapse: collapse; }
510
571
  .workspace-table th,
511
- .workspace-table td { padding: 16px var(--space-4); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--divider); overflow-wrap: anywhere; }
572
+ .workspace-table td { padding: 16px var(--space-4); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--border); overflow-wrap: anywhere; }
512
573
  .workspace-table th:first-child,
513
574
  .workspace-table td:first-child { padding-inline-start: 0; }
514
575
  .workspace-table th:last-child,
515
576
  .workspace-table td:last-child { padding-inline-end: 0; }
516
- .workspace-table thead th { padding-block: 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-block-end-color: var(--border-strong); }
577
+ .workspace-table thead th { padding-block: 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-block-end-color: var(--border); }
517
578
  .workspace-table tbody tr:last-child > * { border-block-end: 0; }
518
579
  .workspace-table tbody th { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
519
- .workspace-table tbody th a { color: var(--text-strong); text-decoration: none; }
580
+ .workspace-table tbody th a { color: var(--text); text-decoration: none; }
520
581
  .workspace-table tbody th a:hover { color: var(--accent-hover); text-decoration: underline; }
521
- .workspace-table tbody th a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
522
- .workspace-table td { color: var(--text-cell); }
582
+ .workspace-table td { color: var(--text); }
523
583
  .workspace-table__date { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
524
584
  .workspace-table__date .never { color: var(--muted); }
525
585
 
526
- /* A status is a dot and a word, never colour alone. The colours come from three custom properties so a
527
- new status is one rule. Unlisted statuses fall back to the neutral pair. */
586
+ /* A status is a glyph and a word, never colour alone. One rule per status the product reports (the words
587
+ come from the server and are unchanged); the colours come from the palette's status roles.
588
+
589
+ ready success on success_bg check
590
+ error error on error_bg cross
591
+ interrupted warning on warning_bg exclamation (a run that was cut off, not one that failed)
592
+ preparing accent on a surface ring with a dot
593
+ idle steel on a surface empty ring
594
+ stopped steel on a surface filled square
595
+ sleeping steel on a surface half-filled ring
596
+ anything else neutral, empty ring
597
+
598
+ idle, stopped and sleeping are told apart by their shape and their word, not by a colour the palette has no
599
+ role for. Where there is a tinted background it is the matching *_bg; elsewhere the pill sits on a general surface. */
528
600
  .status-pill {
529
- --pill-bg: #252e41; --pill-text: #cbd5e1; --pill-dot: #94a3b8;
601
+ --pill-bg: var(--arb-elevated); --pill-text: var(--text); --pill-glyph: var(--arb-steel);
530
602
  display: inline-flex;
531
603
  align-items: center;
532
- gap: 7px;
604
+ gap: var(--space-2);
533
605
  margin: 0;
534
- padding: 3px 10px;
606
+ padding: 3px 10px 3px 8px;
535
607
  border-radius: 999px;
536
608
  background: var(--pill-bg);
537
609
  color: var(--pill-text);
@@ -540,16 +612,33 @@ fieldset:disabled {
540
612
  line-height: 1.5;
541
613
  white-space: nowrap;
542
614
  }
543
- .status-dot { inline-size: 7px; block-size: 7px; border-radius: 999px; background: var(--pill-dot); }
544
- .status-pill[data-status='sleeping'] { --pill-bg: #232c4a; --pill-text: #c7d2fe; --pill-dot: #a5b4fc; }
545
- .status-pill[data-status='idle'] { --pill-bg: #3a2e10; --pill-text: #fcd34d; --pill-dot: #fbbf24; }
546
- .status-pill[data-status='stopped'] { --pill-bg: #43191f; --pill-text: #fca5a5; --pill-dot: #f87171; }
547
- .status-pill[data-status='ready'] { --pill-bg: #12301f; --pill-text: #86efac; --pill-dot: #4ade80; }
548
- .status-pill[data-status='preparing'] { --pill-bg: #0f2f3d; --pill-text: #a5f3fc; --pill-dot: #22d3ee; }
549
- .status-pill[data-status='error'] { --pill-bg: #5a1a22; --pill-text: #fecaca; --pill-dot: #f87171; }
550
- .status-pill[data-status='interrupted'] { --pill-bg: #43250f; --pill-text: #fdba74; --pill-dot: #fb923c; }
551
- .status-pill[data-busy='true'] .status-dot { animation: workspace-pulse 1.5s infinite; }
552
- @media (prefers-reduced-motion: reduce) { .status-pill[data-busy='true'] .status-dot { animation: none; } }
615
+ .status-dot {
616
+ flex: none;
617
+ display: inline-grid;
618
+ place-items: center;
619
+ inline-size: 14px;
620
+ block-size: 14px;
621
+ box-sizing: border-box;
622
+ border-radius: 999px;
623
+ border: 2px solid var(--pill-glyph);
624
+ color: var(--pill-glyph);
625
+ font-size: 11px;
626
+ font-weight: 800;
627
+ line-height: 1;
628
+ }
629
+ .status-pill[data-status='ready'] { --pill-bg: var(--arb-success-bg); --pill-text: var(--arb-success); --pill-glyph: var(--arb-success); }
630
+ .status-pill[data-status='ready'] .status-dot { border-color: transparent; }
631
+ .status-pill[data-status='ready'] .status-dot::before { content: '\2713'; }
632
+ .status-pill[data-status='error'] { --pill-bg: var(--arb-error-bg); --pill-text: var(--arb-error); --pill-glyph: var(--arb-error); }
633
+ .status-pill[data-status='error'] .status-dot { border-color: transparent; }
634
+ .status-pill[data-status='error'] .status-dot::before { content: '\2715'; }
635
+ .status-pill[data-status='interrupted'] { --pill-bg: var(--arb-warning-bg); --pill-text: var(--arb-warning); --pill-glyph: var(--arb-warning); }
636
+ .status-pill[data-status='interrupted'] .status-dot { border-color: transparent; }
637
+ .status-pill[data-status='interrupted'] .status-dot::before { content: '!'; }
638
+ .status-pill[data-status='preparing'] { --pill-glyph: var(--arb-accent); }
639
+ .status-pill[data-status='preparing'] .status-dot { background: radial-gradient(circle, var(--pill-glyph) 0 2px, transparent 2.5px); }
640
+ .status-pill[data-status='stopped'] .status-dot { border-radius: 2px; background: var(--pill-glyph); }
641
+ .status-pill[data-status='sleeping'] .status-dot { background: linear-gradient(90deg, var(--pill-glyph) 50%, transparent 50%); }
553
642
 
554
643
  /* The create form: four fields in one wrapping row, the button on its own line below. */
555
644
  .create-fields { display: flex; flex-wrap: wrap; gap: var(--space-4); }
@@ -560,10 +649,6 @@ fieldset:disabled {
560
649
 
561
650
  ol > li + li { margin-block-start: var(--space-2); }
562
651
 
563
- .button--success {
564
- background: color-mix(in oklab, var(--success) 22%, transparent);
565
- border-color: color-mix(in oklab, var(--success) 55%, var(--border));
566
- }
567
652
 
568
653
  .muted {
569
654
  margin: 0;
@@ -583,9 +668,9 @@ ol > li + li { margin-block-start: var(--space-2); }
583
668
  margin: 0;
584
669
  padding: var(--space-3);
585
670
  border-radius: 10px;
586
- border: 1px solid var(--border);
671
+ border: 0;
587
672
  background: var(--bg);
588
- color: var(--text-cell);
673
+ color: var(--text);
589
674
  font-family: var(--font-mono);
590
675
  font-size: 12px;
591
676
  line-height: 1.4;
@@ -614,21 +699,22 @@ ol > li + li { margin-block-start: var(--space-2); }
614
699
  .log-switch a {
615
700
  color: var(--muted);
616
701
  padding: var(--space-2) var(--space-3);
617
- border: 1px solid var(--control-border);
702
+ border: 1px solid var(--border);
618
703
  border-radius: var(--radius-control);
619
704
  text-decoration: none;
620
705
  }
706
+ .log-switch a:hover:not([aria-current='page']) { background: var(--arb-surface-hover); color: var(--text); }
621
707
 
622
708
  .log-switch a[aria-current='page'] {
623
709
  color: var(--text);
624
- border-color: var(--accent);
710
+ background: var(--arb-selected-bg);
711
+ border-color: var(--arb-selected-border);
712
+ font-weight: 600;
625
713
  }
714
+ /* The tab you are on says so in words for assistive technology (aria-current) and in a marker for everyone,
715
+ because the light theme's selected fill is the same colour as its pressed fill. */
716
+ .log-switch a[aria-current='page']::before { content: '\2713'; margin-inline-end: var(--space-2); }
626
717
 
627
- .log-switch a:focus-visible,
628
- .detail-link:focus-visible {
629
- outline: 2px solid var(--accent);
630
- outline-offset: 2px;
631
- }
632
718
 
633
719
  .detail-link {
634
720
  color: var(--muted);
@@ -681,13 +767,14 @@ p:empty:not([role]):not([aria-live]) { display: none; }
681
767
 
682
768
  /* The card: the default page for a workspace. One small square in the middle of the screen. */
683
769
  .card-page { min-block-size: 100dvb; display: grid; place-items: center; padding: var(--space-6) var(--space-3); }
684
- .card { inline-size: min(100%, 26rem); display: grid; gap: var(--space-5); align-content: start; padding: var(--panel-padding); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
770
+ .card { inline-size: min(100%, 26rem); display: grid; gap: var(--space-5); align-content: start; padding: var(--panel-padding); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
685
771
  .card__header { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
772
+ .card__links { display: flex; align-items: center; gap: var(--space-1); flex: none; }
686
773
  .card__name { display: grid; gap: var(--space-1); min-inline-size: 0; }
687
- .card__id { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-strong); }
774
+ .card__id { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); }
688
775
  .card__text { display: grid; gap: var(--space-2); }
689
776
  .card h1 { font-size: 24px; line-height: 1.25; }
690
- .card__summary { color: var(--muted); line-height: 1.5; }
777
+ .card__summary { color: var(--text); line-height: 1.5; }
691
778
  .card__actions { display: grid; gap: var(--space-3); }
692
779
  .card__actions:not(:has(*:not([hidden]))) { display: none; }
693
780
  .card__actions .button, .card__actions form, .card__start .button { inline-size: 100%; text-align: center; }
@@ -696,5 +783,23 @@ p:empty:not([role]):not([aria-live]) { display: none; }
696
783
  .card .setup-error pre { max-block-size: 8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
697
784
  .card select { inline-size: 100%; }
698
785
  .icon-link { display: inline-flex; padding: var(--space-2); border-radius: var(--radius-control); color: var(--muted); }
699
- .icon-link:hover { color: var(--text); background: color-mix(in oklab, var(--accent) 12%, transparent); }
700
- .icon-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
786
+ .icon-link:hover { color: var(--text); background: var(--arb-surface-hover); }
787
+
788
+ /* A selected control keeps its fill while hovered or pressed; only an unselected one takes the hover surface. */
789
+ .env-preset-button[aria-pressed='true']:hover:not(:disabled),
790
+ .env-preset-button[aria-pressed='true']:active:not(:disabled),
791
+ .button--selected:hover:not(:disabled),
792
+ .button--selected:active:not(:disabled) { background: var(--arb-selected-bg); }
793
+
794
+ /* High-contrast and forced-colors modes replace our colours with the system's. Anything drawn only with a
795
+ background colour would then vanish, so the shapes that carry meaning get a real border. Text and focus
796
+ rings keep working because they were never colour-only. */
797
+ @media (forced-colors: active) {
798
+ .button, .badge, .status-pill, .progress-bar, .env-preset-button { border: 1px solid ButtonText; }
799
+ .progress-bar__fill { background: Highlight; }
800
+ .step-log__status, .status-dot { forced-color-adjust: none; border-color: ButtonText; color: ButtonText; }
801
+ .env-preset-button[aria-pressed='true'], .button--selected { border-width: 2px; }
802
+ :focus-visible { outline-color: Highlight; }
803
+ .lead[data-state='error'], .lead[data-state='interrupted'], .setup-error, .step-log[data-step-state='failed'] { border-inline-start-color: ButtonText; }
804
+ .lead h2::before { forced-color-adjust: none; color: ButtonText; }
805
+ }