@basaltkit/deploy-ui 0.4.0 → 0.5.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.
- package/README.md +6 -1
- package/dist/client/app.js +5 -3
- package/dist/client/i18n.js +21 -0
- package/dist/client/icons.js +1 -0
- package/dist/client/version.js +70 -0
- package/dist/client/view-status.js +2 -1
- package/dist/client/view-targets.js +5 -1
- package/dist/page.d.ts +1 -1
- package/dist/page.js +3 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ since then, nothing is sent, and the page shows the new values.
|
|
|
95
95
|
|
|
96
96
|
## What it does
|
|
97
97
|
|
|
98
|
-
Per target: **check the connection
|
|
98
|
+
Per target: **check the connection** (which also names the app and where its code comes from); **status** (current release, process,
|
|
99
99
|
lock, active and last run, a hold); **plan** (findings, what a run would do, the
|
|
100
100
|
questions it would ask, and the commits that will go out); the **`.env` form** (secrets in password fields, never
|
|
101
101
|
stored, emptied after sending); **deploy** — detached by default, so a closed
|
|
@@ -109,6 +109,11 @@ with its subject and, one click away, the commits it brought in), with the
|
|
|
109
109
|
commits that would leave production listed before you confirm; and
|
|
110
110
|
"Write .env only" for a first setup.
|
|
111
111
|
|
|
112
|
+
When the server's `@basaltkit/deploy` is older than a feature the page uses,
|
|
113
|
+
the version in the target bar turns amber. **Status** and **Check
|
|
114
|
+
connection** also list what is missing, give the exact `pnpm add -D` for the
|
|
115
|
+
app, and say that the first deploy still runs the old version.
|
|
116
|
+
|
|
112
117
|
The page speaks **English and Portuguese**: your browser's language until you
|
|
113
118
|
pick one in the sidebar, then the one kept in the targets file. Only its own
|
|
114
119
|
words are translated; what the server's deploy prints is shown as it came.
|
package/dist/client/app.js
CHANGED
|
@@ -9,6 +9,7 @@ import { renderPlan } from './view-plan.js';
|
|
|
9
9
|
import { RunView } from './view-run.js';
|
|
10
10
|
import { renderStatus } from './view-status.js';
|
|
11
11
|
import { renderTargets } from './view-targets.js';
|
|
12
|
+
import { behind, sourceText, validSource } from './version.js';
|
|
12
13
|
/** This tab's session (sessionStorage): the bearer token, and the key the server proves itself with. */
|
|
13
14
|
export const TOKEN_KEY = 'basalt-deploy-ui:token';
|
|
14
15
|
export const SERVER_KEY = 'basalt-deploy-ui:server-key';
|
|
@@ -200,11 +201,12 @@ export class App {
|
|
|
200
201
|
if (!target)
|
|
201
202
|
return this.clearBar();
|
|
202
203
|
const status = this.status;
|
|
204
|
+
const source = validSource(status?.source);
|
|
203
205
|
const sep = () => el('span', { class: 'ctx-sep', aria: { hidden: 'true' } }, ' · ');
|
|
204
|
-
const item = (name, value, label) => [sep(),
|
|
205
|
-
el('span', { class:
|
|
206
|
+
const item = (name, value, label, extra = '') => [sep(),
|
|
207
|
+
el('span', { class: `ctx-item${extra}` }, icon(name), label ? el('span', { class: 'ctx-label' }, label) : null, label ? ' ' : null, el('span', { class: 'ctx-val' }, value))];
|
|
206
208
|
this.shell.bar.classList.toggle('is-protected', target.protected === true);
|
|
207
|
-
replace(this.shell.bar, el('span', { class: 'ctx-target' }, el('strong', { class: 'ctx-name' }, target.name), target.protected ? el('span', { class: 'badge badge-protected', title: t('protected.title') }, icon('shield'), quiet(' '), t('protected.badge')) : null), ...item('terminal', `${target.ssh}${target.port ? `:${target.port}` : ''}`), ...item('folder', target.dir), ...(this.hello ? [...item('server', this.hello.host, t('ctx.host')), ...item('tag', this.hello.version, t('ctx.deploy'))] : []), ...(status ? item('app', status.app, t('ctx.app')) : []));
|
|
209
|
+
replace(this.shell.bar, el('span', { class: 'ctx-target' }, el('strong', { class: 'ctx-name' }, target.name), target.protected ? el('span', { class: 'badge badge-protected', title: t('protected.title') }, icon('shield'), quiet(' '), t('protected.badge')) : null), ...item('terminal', `${target.ssh}${target.port ? `:${target.port}` : ''}`), ...item('folder', target.dir), ...(this.hello ? [...item('server', this.hello.host, t('ctx.host')), ...item('tag', this.hello.version, t('ctx.deploy'), behind(this.hello.version) ? ' is-behind' : '')] : []), ...(status ? item('app', status.app, t('ctx.app')) : []), ...(source ? item('branch', sourceText(source), t('ctx.source')) : []));
|
|
208
210
|
}
|
|
209
211
|
clearBar() {
|
|
210
212
|
this.shell.bar.classList.remove('is-protected');
|
package/dist/client/i18n.js
CHANGED
|
@@ -28,6 +28,17 @@ const en = defineMessages({
|
|
|
28
28
|
'ctx.app': 'app',
|
|
29
29
|
'ctx.hostPart': 'host {host}',
|
|
30
30
|
'ctx.appPart': 'app {app}',
|
|
31
|
+
'ctx.source': 'source',
|
|
32
|
+
// ── the server's version ──
|
|
33
|
+
'drift.title': 'This server runs @basaltkit/deploy {version}; this page uses features up to {needed}',
|
|
34
|
+
'drift.missing': 'Not available until it is updated: {list}.',
|
|
35
|
+
'drift.how': 'To update, in the app\'s repository:',
|
|
36
|
+
'drift.howTail': ', then commit and push.',
|
|
37
|
+
'drift.twice': 'Then deploy once: that deploy still runs {version} and installs {needed}; the next one runs it. Check connection then shows the new version.',
|
|
38
|
+
'feature.commits': 'the commit lists in Plan, History and Rollback ({since})',
|
|
39
|
+
'feature.source': 'the app\'s git source in the target bar ({since})',
|
|
40
|
+
'targets.identity': 'app {app} · {source}',
|
|
41
|
+
'targets.app': 'app {app}',
|
|
31
42
|
// ── start and pairing ──
|
|
32
43
|
'start.failed': 'The UI could not start.',
|
|
33
44
|
'start.sessionTaken': 'This UI already has its browser session.',
|
|
@@ -359,6 +370,16 @@ const pt = {
|
|
|
359
370
|
'ctx.app': 'app',
|
|
360
371
|
'ctx.hostPart': 'host {host}',
|
|
361
372
|
'ctx.appPart': 'app {app}',
|
|
373
|
+
'ctx.source': 'origem',
|
|
374
|
+
'drift.title': 'Este servidor tem o @basaltkit/deploy {version}; esta página usa funcionalidades até à {needed}',
|
|
375
|
+
'drift.missing': 'Indisponível até ser actualizado: {list}.',
|
|
376
|
+
'drift.how': 'Para actualizar, no repositório da app:',
|
|
377
|
+
'drift.howTail': ', depois commit e push.',
|
|
378
|
+
'drift.twice': 'Depois faz um deploy: esse deploy ainda corre a {version} e instala a {needed}; o seguinte já a usa. O Testar a ligação passa então a mostrar a versão nova.',
|
|
379
|
+
'feature.commits': 'as listas de commits no Plano, Histórico e Rollback ({since})',
|
|
380
|
+
'feature.source': 'a origem git da app na barra do destino ({since})',
|
|
381
|
+
'targets.identity': 'app {app} · {source}',
|
|
382
|
+
'targets.app': 'app {app}',
|
|
362
383
|
'start.failed': 'A UI não conseguiu arrancar.',
|
|
363
384
|
'start.sessionTaken': 'Esta UI já tem a sua sessão no navegador.',
|
|
364
385
|
'start.codeRefused': 'O código foi recusado.',
|
package/dist/client/icons.js
CHANGED
|
@@ -28,6 +28,7 @@ const PATHS = {
|
|
|
28
28
|
chevron: 'M9 6l6 6-6 6',
|
|
29
29
|
arrow: 'M5 12h14M13 6l6 6-6 6',
|
|
30
30
|
commit: 'M12 8.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7zM3 12h5.5M15.5 12H21',
|
|
31
|
+
branch: 'M6 3v12M6 15a3 3 0 1 0 0 6 3 3 0 1 0 0-6zM18 3a3 3 0 1 0 0 6 3 3 0 1 0 0-6zM18 9c0 6-12 3-12 6',
|
|
31
32
|
globe: 'M12 3a9 9 0 1 1 0 18 9 9 0 1 1 0-18zM3 12h18M12 3c2.5 2.5 3.8 5.5 3.8 9s-1.3 6.5-3.8 9c-2.5-2.5-3.8-5.5-3.8-9s1.3-6.5 3.8-9z',
|
|
32
33
|
merge: 'M7 4v10M7 14a3 3 0 1 0 0 6 3 3 0 1 0 0-6zM17 4a3 3 0 1 0 0 6 3 3 0 1 0 0-6zM17 10c0 4-4 6-10 6',
|
|
33
34
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { el } from './dom.js';
|
|
2
|
+
import { t } from './i18n.js';
|
|
3
|
+
import { banner } from './reply.js';
|
|
4
|
+
import { clean } from './sanitize.js';
|
|
5
|
+
/**
|
|
6
|
+
* What this page uses from the server's @basaltkit/deploy, and from which
|
|
7
|
+
* version. A server behind is said plainly — what is missing, and the
|
|
8
|
+
* update — so an "unavailable" never has to be guessed at. The page imports
|
|
9
|
+
* no code from the deploy package: the versions are listed here.
|
|
10
|
+
*/
|
|
11
|
+
export const FEATURES = [
|
|
12
|
+
{ since: '0.8.0', key: 'feature.commits' },
|
|
13
|
+
{ since: '0.9.0', key: 'feature.source' },
|
|
14
|
+
];
|
|
15
|
+
const VERSION = /^(\d{1,6})\.(\d{1,6})\.(\d{1,6})(?:-[0-9A-Za-z.-]{1,64})?$/;
|
|
16
|
+
/** `x.y.z` compared numerically; a pre-release counts as before its release. Undefined when either is not a version. */
|
|
17
|
+
export function compareVersions(a, b) {
|
|
18
|
+
const x = VERSION.exec(a);
|
|
19
|
+
const y = VERSION.exec(b);
|
|
20
|
+
if (!x || !y)
|
|
21
|
+
return undefined;
|
|
22
|
+
for (let i = 1; i <= 3; i++) {
|
|
23
|
+
const d = Number(x[i]) - Number(y[i]);
|
|
24
|
+
if (d !== 0)
|
|
25
|
+
return Math.sign(d);
|
|
26
|
+
}
|
|
27
|
+
const pre = (v) => v.includes('-');
|
|
28
|
+
return pre(a) === pre(b) ? 0 : pre(a) ? -1 : 1;
|
|
29
|
+
}
|
|
30
|
+
/** The features a server's version lacks, and the version that has them all; undefined when it is current (or not a version). */
|
|
31
|
+
export function behind(version) {
|
|
32
|
+
if (typeof version !== 'string')
|
|
33
|
+
return undefined;
|
|
34
|
+
const missing = FEATURES.filter((f) => compareVersions(version, f.since) === -1);
|
|
35
|
+
if (missing.length === 0)
|
|
36
|
+
return undefined;
|
|
37
|
+
const needed = missing.reduce((top, f) => (compareVersions(f.since, top) === 1 ? f.since : top), missing[0]?.since);
|
|
38
|
+
return { needed, missing };
|
|
39
|
+
}
|
|
40
|
+
/** The notice: what is missing, and how to update — the second deploy included. Null when the server is current. */
|
|
41
|
+
export function driftBanner(version) {
|
|
42
|
+
const gap = behind(version);
|
|
43
|
+
if (!gap)
|
|
44
|
+
return null;
|
|
45
|
+
const current = clean(version);
|
|
46
|
+
const command = `pnpm add -D @basaltkit/deploy@^${gap.needed}`;
|
|
47
|
+
const lines = [
|
|
48
|
+
t('drift.missing', { list: gap.missing.map((f) => t(f.key, { since: f.since })).join(', ') }),
|
|
49
|
+
el('span', {}, t('drift.how'), ' ', el('code', {}, command), t('drift.howTail')),
|
|
50
|
+
t('drift.twice', { version: current, needed: gap.needed }),
|
|
51
|
+
];
|
|
52
|
+
const node = banner('warn', t('drift.title', { version: current, needed: gap.needed }), lines);
|
|
53
|
+
node.classList.add('drift');
|
|
54
|
+
return node;
|
|
55
|
+
}
|
|
56
|
+
/** A source from the server, checked: anything else is no source (an older deploy sends none). */
|
|
57
|
+
export function validSource(value) {
|
|
58
|
+
if (typeof value !== 'object' || value === null)
|
|
59
|
+
return undefined;
|
|
60
|
+
const s = value;
|
|
61
|
+
if (typeof s['remote'] !== 'string' || typeof s['branch'] !== 'string')
|
|
62
|
+
return undefined;
|
|
63
|
+
if (s['url'] !== undefined && typeof s['url'] !== 'string')
|
|
64
|
+
return undefined;
|
|
65
|
+
return { remote: clean(s['remote']), branch: clean(s['branch']), ...(typeof s['url'] === 'string' ? { url: clean(s['url']) } : {}) };
|
|
66
|
+
}
|
|
67
|
+
/** `github.com/acme/app (main)`, or `origin/main` when the address is not known. */
|
|
68
|
+
export function sourceText(source) {
|
|
69
|
+
return source.url ? `${source.url} (${source.branch})` : `${source.remote}/${source.branch}`;
|
|
70
|
+
}
|
|
@@ -3,11 +3,12 @@ import { t } from './i18n.js';
|
|
|
3
3
|
import { icon } from './icons.js';
|
|
4
4
|
import { banner, diagnosticsBlock, problem } from './reply.js';
|
|
5
5
|
import { short } from './sanitize.js';
|
|
6
|
+
import { driftBanner } from './version.js';
|
|
6
7
|
/** Status: from `StatusResult` — release, process, lock, active and last run, hold. Refresh is manual (and once after an action). */
|
|
7
8
|
export function renderStatus(app) {
|
|
8
9
|
const reply = app.statusReply;
|
|
9
10
|
const status = app.status;
|
|
10
|
-
return el('section', { aria: { labelledby: 'status-title' } }, pageHead('status-title', t('screen.status'), t('status.sub'), el('button', { type: 'button', disabled: app.statusBusy, on: { click: () => { void app.refreshStatus(); } } }, icon('refresh'), app.statusBusy ? t('refreshing') : t('refresh'))), !reply && !app.statusBusy ? emptyState('status', t('status.notLoaded'), t('status.notLoadedText')) : null, !reply && app.statusBusy ? emptyState('refresh', t('status.asking'), t('status.askingText')) : null, reply && !status ? problem(reply) : null, ...(status ? statusPanels(app, status) : []), status && reply?.error ? problem(reply) : null, reply && reply.diagnostics.length > 0 && status ? diagnosticsBlock(reply.diagnostics) : null);
|
|
11
|
+
return el('section', { aria: { labelledby: 'status-title' } }, pageHead('status-title', t('screen.status'), t('status.sub'), el('button', { type: 'button', disabled: app.statusBusy, on: { click: () => { void app.refreshStatus(); } } }, icon('refresh'), app.statusBusy ? t('refreshing') : t('refresh'))), !reply && !app.statusBusy ? emptyState('status', t('status.notLoaded'), t('status.notLoadedText')) : null, !reply && app.statusBusy ? emptyState('refresh', t('status.asking'), t('status.askingText')) : null, app.hello ? driftBanner(app.hello.version) : null, reply && !status ? problem(reply) : null, ...(status ? statusPanels(app, status) : []), status && reply?.error ? problem(reply) : null, reply && reply.diagnostics.length > 0 && status ? diagnosticsBlock(reply.diagnostics) : null);
|
|
11
12
|
}
|
|
12
13
|
function statusPanels(app, s) {
|
|
13
14
|
const current = s.releases.find((r) => r.status === 'ok');
|
|
@@ -4,6 +4,7 @@ import { button, card, el, emptyState, pageHead, replace } from './dom.js';
|
|
|
4
4
|
import { serverText, t } from './i18n.js';
|
|
5
5
|
import { icon } from './icons.js';
|
|
6
6
|
import { banner, describe, problem } from './reply.js';
|
|
7
|
+
import { driftBanner, sourceText, validSource } from './version.js';
|
|
7
8
|
const FIELDS = [
|
|
8
9
|
{ key: 'name', label: 'field.name', help: 'field.name.help' },
|
|
9
10
|
{ key: 'ssh', label: 'field.ssh', help: 'field.ssh.help' },
|
|
@@ -38,7 +39,10 @@ async function check(app, target, area) {
|
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
if (reply.hello?.protocol === 1 && !reply.failure) {
|
|
41
|
-
|
|
42
|
+
const result = reply.result;
|
|
43
|
+
const source = validSource(result?.source);
|
|
44
|
+
const identity = typeof result?.app !== 'string' ? '' : source ? t('targets.identity', { app: result.app, source: sourceText(source) }) : t('targets.app', { app: result.app });
|
|
45
|
+
replace(area, banner('ok', t('targets.answers', { name: target.name, version: reply.hello.version, host: reply.hello.host }), [identity]), driftBanner(reply.hello.version));
|
|
42
46
|
if (app.current?.name === target.name) {
|
|
43
47
|
app.statusReply = reply;
|
|
44
48
|
app.hello = reply.hello;
|
package/dist/page.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* one module script is `/client/main.js`, compiled by tsc from `src/client`.
|
|
5
5
|
*/
|
|
6
6
|
export declare const INDEX_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"referrer\" content=\"no-referrer\">\n<meta name=\"color-scheme\" content=\"light dark\">\n<title>Basalt deploy</title>\n<link rel=\"stylesheet\" href=\"/app.css\">\n<script type=\"module\" src=\"/client/main.js\"></script>\n</head>\n<body>\n<div class=\"shell\">\n<aside class=\"sidebar\">\n <h1 class=\"brand\">\n <svg class=\"brand-mark\" viewBox=\"40 40 120 120\" width=\"28\" height=\"28\" aria-hidden=\"true\" focusable=\"false\">\n <g stroke=\"#0B0E13\" stroke-width=\"3\" stroke-linejoin=\"round\">\n <polygon points=\"52.37,72.5 100,45 147.63,72.5 100,100\" fill=\"#8B9AA7\"/>\n <polygon points=\"52.37,72.5 100,100 100,155 52.37,127.5\" fill=\"#2C3843\"/>\n <polygon points=\"100,100 147.63,72.5 147.63,127.5 100,155\" fill=\"#FF5A1F\"/>\n </g>\n <line x1=\"100\" y1=\"100\" x2=\"100\" y2=\"155\" stroke=\"#FFB347\" stroke-width=\"4\" stroke-linecap=\"round\"/>\n </svg>\n <span class=\"brand-text\"><span class=\"brand-name\">Basalt</span> <span class=\"brand-sub\">Deploy</span></span>\n </h1>\n <nav id=\"nav\" class=\"nav\" aria-label=\"Screens\"></nav>\n <div class=\"sidebar-foot\">\n <p class=\"local-note\" title=\"Local only: this page talks to 127.0.0.1, which talks to your servers over your own ssh.\">\n <svg class=\"icon\" viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M6 11h12v10H6zM8 11V7a4 4 0 0 1 8 0v4\"/></svg>\n <span><span class=\"local-label\">Local only</span> <span aria-hidden=\"true\">\u00B7</span> <span class=\"mono\">127.0.0.1</span></span>\n </p>\n <div id=\"session\" class=\"session\"></div>\n </div>\n</aside>\n<div class=\"main-col\">\n <div id=\"target-bar\" class=\"target-bar\" aria-live=\"polite\"></div>\n <main id=\"app\" class=\"app\">\n <p class=\"muted\">Starting\u2026</p>\n <noscript><p>This UI needs JavaScript (its own module only; nothing is loaded from elsewhere).</p></noscript>\n </main>\n</div>\n</div>\n</body>\n</html>\n";
|
|
7
|
-
export declare const APP_CSS = "/* Basalt deploy: an operations console. Graphite neutrals, one molten accent used sparingly. */\n:root {\n color-scheme: light dark;\n --font-sans: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --font-mono: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px;\n --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;\n --radius: 8px; --radius-sm: 6px; --radius-xs: 4px;\n --control-h: 32px;\n --sidebar-w: 240px;\n\n --bg: #f5f6f8;\n --surface: #ffffff;\n --surface-2: #f9fafb;\n --surface-3: #f0f2f5;\n --border: #e2e6eb;\n --border-strong: #cdd3da;\n --text: #0f141a;\n --text-2: #2c3843;\n --muted: #5b6672;\n --faint: #8a949f;\n\n --molten: #ff5a1f;\n --accent-text: #b93a0a;\n --accent-soft: #fff1ea;\n --primary-bg: #c93f0b;\n --primary-bg-hover: #b23708;\n --primary-fg: #ffffff;\n\n --ok: #157f3b; --ok-soft: #e8f5ec; --ok-line: #b7dfc4;\n --warn: #9a6200; --warn-soft: #fdf4e1; --warn-line: #f0d39a;\n --err: #c4271d; --err-soft: #fdecea; --err-line: #f3bdb8;\n --info: #44546a; --info-soft: #eef1f5; --info-line: #cfd7e1;\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #0d1117; --term-border: #0d1117; --term-fg: #c9d1d9; --term-muted: #8b949e; --term-ts: #7d8590;\n --term-warn: #e3b341; --term-err: #ff7b72; --term-ok: #56d364; --term-warn-bg: rgb(227 179 65 / 0.08); --term-err-bg: rgb(255 123 114 / 0.10);\n\n --shadow-sm: 0 1px 2px rgb(15 20 26 / 0.05);\n --shadow-md: 0 1px 2px rgb(15 20 26 / 0.06), 0 4px 12px rgb(15 20 26 / 0.06);\n --shadow-lg: 0 2px 6px rgb(15 20 26 / 0.08), 0 24px 48px rgb(15 20 26 / 0.18);\n --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--molten);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --bg: #0b0e13;\n --surface: #121820;\n --surface-2: #0f141b;\n --surface-3: #18202a;\n --border: #232c36;\n --border-strong: #2f3a46;\n --text: #e6eaef;\n --text-2: #c3cad3;\n --muted: #95a1ae;\n --faint: #6b7784;\n\n --accent-text: #ff8a5c;\n --accent-soft: rgb(255 90 31 / 0.12);\n --primary-bg: #ff5a1f;\n --primary-bg-hover: #ff7340;\n --primary-fg: #0b0e13;\n\n --ok: #3fcf79; --ok-soft: rgb(63 207 121 / 0.10); --ok-line: rgb(63 207 121 / 0.32);\n --warn: #f2b13d; --warn-soft: rgb(242 177 61 / 0.10); --warn-line: rgb(242 177 61 / 0.32);\n --err: #ff6b5e; --err-soft: rgb(255 107 94 / 0.10); --err-line: rgb(255 107 94 / 0.34);\n --info: #9aa8b8; --info-soft: rgb(154 168 184 / 0.10); --info-line: rgb(154 168 184 / 0.28);\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #07090c; --term-border: #232c36;\n\n --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);\n --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);\n --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 48px rgb(0 0 0 / 0.55);\n }\n}\n\n/* Base */\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body { margin: 0; background: var(--bg); color: var(--text); }\nbody { font: var(--fs-base)/20px var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: \"cv11\", \"ss01\"; text-rendering: optimizeLegibility; }\nh1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }\nh2 { font-size: var(--fs-xl); line-height: 28px; letter-spacing: -0.015em; }\nh3 { font-size: var(--fs-base); line-height: 20px; }\np { margin: 0; }\np + p { margin-top: var(--sp-2); }\na { color: var(--accent-text); }\n.muted { color: var(--muted); }\n.mono, code, kbd, pre { font-family: var(--font-mono); font-size: 12.5px; }\ncode { background: var(--surface-3); border: 1px solid var(--border); padding: 0 5px; border-radius: var(--radius-xs); overflow-wrap: anywhere; color: var(--text-2); line-height: 18px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.num, time { font-variant-numeric: tabular-nums; }\n.section-label { display: block; font-size: var(--fs-xs); line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.hidden { display: none !important; }\n.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n::selection { background: rgb(255 90 31 / 0.22); }\n\n/* Shell */\n.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px) var(--sidebar-w), transparent var(--sidebar-w)); }\n.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-4) var(--sp-3); background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }\n.brand { display: flex; align-items: center; gap: 10px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-base); }\n.brand-mark { flex: none; }\n.brand-text { display: flex; flex-direction: column; line-height: 1.15; }\n.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }\n.brand-sub { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }\n.nav { display: flex; flex-direction: column; gap: var(--sp-5); }\n.nav-target { display: grid; gap: 6px; padding: 0 var(--sp-2); }\n.nav-target .section-label { padding: 0; }\n.nav-list { display: flex; flex-direction: column; gap: 2px; }\n.nav .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 500; text-align: left; justify-content: flex-start; position: relative; box-shadow: none; }\n.nav .nav-item .icon { color: var(--faint); }\n.nav .nav-item:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }\n.nav .nav-item:hover .icon { color: var(--text-2); }\n.nav .nav-item[aria-current=\"page\"] { background: var(--surface-3); color: var(--text); font-weight: 600; }\n.nav .nav-item[aria-current=\"page\"] .icon { color: var(--molten); }\n.nav .nav-item[aria-current=\"page\"]::before { content: \"\"; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--molten); }\n.sidebar-foot { margin-top: auto; display: grid; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--border); }\n.local-note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }\n.local-note .mono { font-size: var(--fs-sm); }\n.session:empty { display: none; }\n.session { display: grid; gap: var(--sp-2); }\n.session button { width: 100%; justify-content: flex-start; }\n.locale { position: relative; display: flex; align-items: center; }\n.locale .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }\n.locale select { height: 30px; padding-left: 32px; font-size: var(--fs-md); max-width: none; background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px; }\n\n.main-col { min-width: 0; display: flex; flex-direction: column; }\n.app { width: 100%; max-width: 1200px; padding: var(--sp-5) var(--sp-6) var(--sp-7); }\n.app > section > * + * { margin-top: var(--sp-4); }\n\n/* Context strip: which target every screen acts on */\n.target-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-3); min-height: 52px; padding: 10px var(--sp-6); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); font-size: var(--fs-md); }\n.target-bar:empty { display: none; }\n.target-bar.is-protected { box-shadow: inset 0 3px 0 var(--protected-bg); }\n.ctx-target { display: inline-flex; align-items: center; gap: var(--sp-2); }\n.ctx-name { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }\n.ctx-sep { display: inline-block; width: 1px; height: 16px; background: var(--border-strong); font-size: 0; line-height: 0; overflow: hidden; color: transparent; }\n.ctx-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }\n.ctx-item .icon { color: var(--faint); flex: none; }\n.ctx-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.ctx-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }\n.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }\n.badge .icon { width: 12px; height: 12px; }\n.badge-protected { background: var(--protected-bg); color: var(--protected-fg); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }\n.badge-neutral { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }\n\n/* Page header */\n.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-4); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }\n.app > section > .page-head + * { margin-top: 0; }\n.page-title { min-width: 0; display: grid; gap: var(--sp-1); }\n.page-title h2 { overflow-wrap: anywhere; }\n.page-title h2.mono-title { font-family: var(--font-mono); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }\n.page-sub { color: var(--muted); max-width: 72ch; }\n.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n\n/* Buttons */\nbutton, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h); padding: 0 12px; font: 500 var(--fs-base)/1 var(--font-sans); white-space: nowrap; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }\nbutton:hover { background: var(--surface-3); border-color: var(--border-strong); }\nbutton:active { transform: translateY(0.5px); }\nbutton:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }\nbutton .icon { flex: none; }\nbutton.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.12); }\nbutton.primary:hover { background: var(--primary-bg-hover); border-color: var(--primary-bg-hover); }\nbutton.danger { color: var(--err); border-color: var(--err-line); background: var(--surface); }\nbutton.danger:hover { background: var(--err-soft); border-color: var(--err); }\ndialog.is-danger button.danger, button.danger.solid { background: var(--err); border-color: var(--err); color: #ffffff; font-weight: 600; }\ndialog.is-danger button.danger:hover, button.danger.solid:hover { filter: brightness(0.94); }\n@media (prefers-color-scheme: dark) { dialog.is-danger button.danger, button.danger.solid { background: #d92d20; border-color: #d92d20; } }\nbutton.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }\nbutton.ghost:hover { background: var(--surface-3); color: var(--text); }\nbutton.ghost.danger { color: var(--err); }\nbutton.ghost.danger:hover { background: var(--err-soft); }\nbutton.sm { height: 28px; padding: 0 10px; font-size: var(--fs-md); }\nbutton:disabled, button:disabled:hover { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }\n.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n.actions-end { justify-content: flex-end; }\n\n/* Cards */\n.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }\n.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); }\n.card-head h3 { font-size: var(--fs-base); }\n.card-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }\n.card-body { padding: var(--sp-4); min-width: 0; }\n.card-body > * + * { margin-top: var(--sp-3); }\n.card-body.flush { padding: 0; }\n.card-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; align-items: center; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }\n.card.accent { border-color: var(--accent-line, var(--border)); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--molten); }\n.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }\n.lead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }\n.lead .mono { font-size: 13px; color: var(--text); }\n\n/* Key/value */\n.kv { display: grid; gap: 0; }\ndl { margin: 0; }\n.kv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--sp-3); padding: 7px 0; border-top: 1px solid var(--border); align-items: baseline; }\n.kv-row:first-child { border-top: 0; padding-top: 0; }\n.kv-row:last-child { padding-bottom: 0; }\n.kv dt { color: var(--muted); font-size: var(--fs-md); }\n.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }\n\n/* Pills and badges */\n.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid; vertical-align: middle; }\n.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }\n.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.pill-err { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.pill-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }\n.pill-skip { color: var(--muted); background: var(--surface-3); border-color: var(--border); }\n.pill-run { color: var(--accent-text); background: var(--accent-soft); border-color: rgb(255 90 31 / 0.35); }\n.pill-run .dot { animation: pulse 1.4s ease-in-out infinite; }\n.status-ok { color: var(--ok); }\n.status-warn { color: var(--warn); }\n.status-err { color: var(--err); }\n\n/* Tables */\n.table-wrap { overflow-x: auto; max-width: 100%; }\n.card > .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }\ntable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-base); }\nth, td { text-align: left; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: middle; }\nthead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }\ntbody tr:last-child > * { border-bottom: 0; }\ntbody tr:hover > * { background: var(--surface-2); }\ntd.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }\ntd.nowrap, th.nowrap { white-space: nowrap; }\ntd.wrap { overflow-wrap: anywhere; min-width: 20ch; }\ntd.mono { color: var(--text-2); }\ntd .row { flex-wrap: nowrap; justify-content: flex-end; }\n.plan-lines th { width: 1%; white-space: nowrap; font-weight: 500; }\n.plan-lines tbody th { background: transparent; }\n.step-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }\n.plan-lines td { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }\n\n/* Commits (plan, history, rollback): a timeline per side, author text as plain text */\n.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.commits { display: grid; gap: var(--sp-4); }\n.commits-note { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 10px var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-md); }\n.commits-note .icon { flex: none; margin-top: 2px; color: var(--faint); }\n.commits-note strong { color: var(--text-2); font-weight: 600; }\n.commits-note.is-ok { border-style: solid; border-color: var(--ok-line); background: var(--ok-soft); color: var(--text-2); }\n.commits-note.is-ok .icon { color: var(--ok); }\n.commit-group { --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); min-width: 0; }\n.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }\n.commit-group-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.commit-sign { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--radius-xs); background: var(--tone-soft); border: 1px solid var(--tone-line); color: var(--tone); font: 600 13px/1 var(--font-mono); flex: none; }\n.commit-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }\n.commit-list { list-style: none; margin: 0; padding: 0; position: relative; }\n.commit-list::before { content: \"\"; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--tone-line); }\n.commit { position: relative; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: 6px var(--sp-2) 6px 0; border-radius: var(--radius-sm); }\n.commit:hover { background: var(--surface-2); }\n.commit-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; }\n.commit.is-merge .commit-dot { background: var(--surface); border: 2px solid var(--tone); }\n.commit-sha { padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }\n.commit-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }\n.commit.is-merge .commit-subject { color: var(--muted); }\n.commit-merge { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--faint); }\n.commit-meta { display: flex; gap: var(--sp-2); align-items: baseline; justify-content: flex-end; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }\n.commit-author { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }\n.commit-more { margin: var(--sp-1) 0 0 30px; color: var(--muted); font-size: var(--fs-sm); }\n.commit-span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }\n.commit-span code { color: var(--text-2); }\n.commit-span .icon { width: 14px; height: 14px; }\n.card-actions .muted { font-size: var(--fs-md); }\n@media (max-width: 720px) {\n .commit { grid-template-columns: 18px auto minmax(0, 1fr); row-gap: 2px; align-items: start; }\n .commit-dot { margin-top: 5px; }\n .commit-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }\n .commit-meta { grid-column: 3; justify-content: flex-start; }\n .release-changes > td { padding-left: var(--sp-4); }\n .release-changes-cell > * { max-width: calc(100vw - 64px); }\n}\n/* History: a chevron opens a release's commits under its row */\n.releases td.disclosure, .releases th.disclosure { width: 1%; padding-right: 0; }\n.disclosure-button { width: 26px; height: 26px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }\n.disclosure-button:hover { background: var(--surface-3); color: var(--text); }\n.disclosure-button .icon { transition: transform 150ms ease; }\n.disclosure-button[aria-expanded=\"true\"] .icon { transform: rotate(90deg); color: var(--molten); }\n.releases td.release-commit { min-width: 28ch; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.release-commit code { margin-right: var(--sp-2); }\n.release-subject { color: var(--text); }\n.release-row.is-open > * { background: var(--surface-2); border-bottom-color: transparent; }\n.release-changes > td { padding: var(--sp-2) var(--sp-4) var(--sp-4) 52px; background: var(--surface-2); }\n.release-changes:hover > * { background: var(--surface-2); }\n/* The cell spans a table wider than the card: the list stays within what is on screen. */\n.release-changes-cell > * { max-width: min(52rem, calc(100vw - var(--sidebar-w) - 160px)); }\n.rollback-preview:empty { display: none; }\n/* The confirmation dialog's compact list */\n.commit-summary { display: grid; gap: 4px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--tone-line); border-left: 3px solid var(--tone); border-radius: var(--radius-sm); background: var(--tone-soft); --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); }\n.commit-summary.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-summary-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--text); margin-bottom: 2px; }\n.commit-summary-row { display: flex; gap: var(--sp-2); min-width: 0; font-size: var(--fs-md); }\n.commit-summary-row .commit-subject { color: var(--text-2); }\n.commit-summary .commit-sha { background: var(--surface); }\n.commit-summary .commit-more { margin: 0; }\n\n/* Forms */\n.field { display: grid; gap: 6px; }\n.field + .field { margin-top: var(--sp-4); }\n.field > label { font-size: var(--fs-md); font-weight: 600; color: var(--text); }\n.field-key { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }\n.field-help, .field > .muted { font-size: var(--fs-sm); color: var(--muted); }\n.field-error { color: var(--err); font-size: var(--fs-sm); }\n.field-error:empty { display: none; }\n.required { color: var(--err); }\ninput[type=\"text\"], input[type=\"password\"], input[type=\"number\"], select { font: var(--fs-base)/1 var(--font-sans); height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%; max-width: 32rem; box-shadow: var(--shadow-sm); transition: border-color 120ms ease, box-shadow 120ms ease; }\ninput[type=\"password\"], input#confirm-name, .field input[spellcheck=\"false\"][type=\"text\"] { font-family: var(--font-mono); font-size: 13px; }\ninput:hover, select:hover { border-color: var(--faint); }\ninput:focus-visible, select:focus-visible { border-color: var(--molten); }\ninput[aria-invalid=\"true\"] { border-color: var(--err); }\nselect { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }\ninput[type=\"checkbox\"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-bg); flex: none; }\n.check > label, label.check { display: flex; align-items: flex-start; gap: var(--sp-2); font-weight: 500; font-size: var(--fs-base); line-height: 20px; cursor: pointer; }\n.check input[type=\"checkbox\"] { margin-top: 2px; }\n.form-section + .form-section { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }\n.form-note { font-size: var(--fs-md); color: var(--muted); display: flex; gap: var(--sp-2); align-items: flex-start; }\n.form-note .icon { margin-top: 2px; color: var(--faint); flex: none; }\n\n.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }\n.form-grid > .field + .field { margin-top: 0; }\n.form-grid input[type=\"text\"], .form-grid input[type=\"number\"] { max-width: none; }\n.span-2 { grid-column: 1 / -1; }\n.target-name { font-weight: 600; }\n.card-body > [aria-live]:empty { display: none; }\n\n/* Disclosures */\ndetails > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-md); font-weight: 500; width: fit-content; border-radius: var(--radius-xs); list-style-position: inside; }\ndetails > summary:hover { color: var(--text); }\ndetails[open] > summary { margin-bottom: var(--sp-2); }\n.advanced { margin-top: var(--sp-3); }\n.form-section > .advanced:first-child { margin-top: 0; }\n.form-section + .form-section:has(> .advanced:first-child) { padding-top: var(--sp-4); margin-top: var(--sp-4); }\n.advanced[open] { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }\n.diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 18px; margin: 0; padding: 10px var(--sp-3); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); max-height: 40vh; overflow-y: auto; }\n\n/* Banners */\n.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--info-line); border-left-width: 3px; border-radius: var(--radius); background: var(--info-soft); color: var(--text); }\n.banner-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }\n.banner-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }\n.banner-body > p { margin-top: 4px; color: var(--text-2); }\n.banner-body > details { margin-top: var(--sp-2); }\n.banner-title { font-weight: 600; }\n.banner-code { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }\n.banner.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-soft); }\n.banner.ok .banner-icon { color: var(--ok); }\n.banner.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); }\n.banner.warn .banner-icon { color: var(--warn); }\n.banner.err { border-color: var(--err-line); border-left-color: var(--err); background: var(--err-soft); }\n.banner.err .banner-icon { color: var(--err); }\n.banner + .banner { margin-top: var(--sp-2); }\n\n/* Findings */\n.findings { list-style: none; margin: 0; padding: 0; }\n.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-3); row-gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); align-items: baseline; }\n.finding:first-child { border-top: 0; }\n.finding-msg { min-width: 0; overflow-wrap: anywhere; }\n.finding-id { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); margin-right: 6px; }\n.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 20px; padding: 0 7px; border-radius: var(--radius-xs); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid; }\n.sev-error { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.sev-warning { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.fix { grid-column: 2; display: flex; align-items: baseline; gap: var(--sp-2); padding: 6px 10px; background: var(--surface-3); border: 1px solid var(--border); border-left: 2px solid var(--faint); border-radius: var(--radius-xs); min-width: 0; }\n.fix-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: none; }\n.fix code { background: none; border: 0; padding: 0; user-select: all; }\n\n/* Empty states */\n.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--sp-7) var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }\n.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); color: var(--muted); margin-bottom: var(--sp-2); }\n.empty-icon .icon { width: 20px; height: 20px; }\n.empty-title { font-weight: 600; font-size: var(--fs-lg); line-height: 24px; }\n.empty-text { color: var(--muted); max-width: 52ch; }\n.empty .row { margin-top: var(--sp-3); justify-content: center; }\n.stopped { max-width: 560px; margin: var(--sp-7) 0 0; }\n.stopped .banner { margin-top: var(--sp-4); text-align: left; }\n\n/* Dialogs */\ndialog { padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); width: min(32rem, calc(100vw - 32px)); max-width: none; box-shadow: var(--shadow-lg); }\ndialog::backdrop { background: rgb(11 14 19 / 0.55); backdrop-filter: blur(2px); }\ndialog[open] { animation: rise 160ms ease-out; }\n.dialog-head { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 20px 20px 0; }\n.dialog-head h2 { font-size: var(--fs-lg); line-height: 24px; overflow-wrap: anywhere; }\n.dialog-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent-text); }\n.dialog-icon .icon { width: 18px; height: 18px; }\ndialog.is-danger { border-top: 3px solid var(--err); }\ndialog.is-danger .dialog-icon { background: var(--err-soft); color: var(--err); }\n.dialog-body { padding: var(--sp-3) 20px 20px 64px; color: var(--text-2); overflow-wrap: anywhere; }\n.dialog-body > p + p { margin-top: var(--sp-2); }\n.dialog-context { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 10px; }\n.dialog-protected { display: flex; align-items: center; gap: var(--sp-2); color: var(--err); font-weight: 500; }\n.dialog-body .field { margin-top: var(--sp-4); }\n.dialog-body .field > label { font-weight: 500; color: var(--text-2); }\n.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; }\n\n/* Run: the step timeline */\n.run-state { display: flex; align-items: center; gap: var(--sp-2); width: fit-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-md); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }\n.run-state::before { content: \"\"; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }\n.run-state.is-live::before { background: var(--molten); animation: pulse 1.4s ease-in-out infinite; }\n.run-state.is-ok::before { background: var(--ok); }\n.run-state.is-err::before { background: var(--err); }\n.run-state:empty { display: none; }\n.run-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }\n.run-outcome:empty, .run-findings:empty { display: none; }\n.steps { list-style: none; padding: 0; margin: 0; }\n.steps:empty::before { content: \"Waiting for the first step\u2026\"; display: block; color: var(--muted); font-size: var(--fs-md); }\n.step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 32px; padding: 6px 0; }\n.step:not(:last-child)::after { content: \"\"; position: absolute; left: 9.5px; top: 28px; bottom: -6px; width: 1px; background: var(--border-strong); }\n.step.is-ok:not(:last-child)::after { background: var(--ok); opacity: 0.45; }\n.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted); }\n.step.is-ok .step-icon { background: var(--ok); border-color: var(--ok); color: var(--surface); }\n.step.is-failed .step-icon { background: var(--err); border-color: var(--err); color: var(--surface); }\n.step.is-skipped .step-icon { background: var(--surface-3); border-color: var(--border-strong); color: var(--muted); }\n.step.is-running .step-icon { color: transparent; border-color: var(--molten); border-right-color: transparent; animation: spin 0.9s linear infinite; }\n.step.is-aborted .step-icon { color: transparent; border-style: dashed; border-color: var(--warn); }\n.step.is-aborted .step-icon::after { content: \"\"; position: absolute; inset: 5px; border-radius: 2px; background: var(--warn); }\n.step-title { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }\n.step.is-running .step-title { font-weight: 600; }\n.step.is-skipped .step-title { color: var(--muted); }\n.step-meta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }\n.step-status { text-transform: lowercase; }\n.step.is-failed .step-status { color: var(--err); font-weight: 600; }\n.step.is-running .step-status { color: var(--accent-text); font-weight: 600; }\n.step.is-aborted .step-status { color: var(--warn); font-weight: 600; }\n.step-dur { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; color: var(--text-2); }\n\n/* Run: the log console (a terminal in both themes) */\n.console { background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 0; }\n.console-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-4); border-bottom: 1px solid rgb(255 255 255 / 0.08); color: var(--term-muted); }\n.console-head h3 { color: #e6edf3; font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }\n.console-head .icon { color: var(--term-muted); }\n.console-meta { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--term-muted); }\n.log { list-style: none; margin: 0; padding: 10px 0; max-height: 60vh; min-height: 120px; overflow-y: auto; color: var(--term-fg); font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #30363d transparent; }\n.log li { position: relative; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 10ch); }\n.log li::before { content: attr(data-ts); position: absolute; left: var(--sp-4); width: 9ch; color: var(--term-ts); font-variant-numeric: tabular-nums; }\n.log li:hover { background: rgb(255 255 255 / 0.03); }\n.log .src { color: var(--term-muted); }\n.log li.src { font-style: italic; }\n.log li.warn { color: var(--term-warn); background: var(--term-warn-bg); box-shadow: inset 2px 0 0 var(--term-warn); }\n.log li.error { color: var(--term-err); background: var(--term-err-bg); box-shadow: inset 2px 0 0 var(--term-err); }\n.log li.ok { color: var(--term-ok); }\n.log:empty::after { content: \"No output yet.\"; display: block; padding: 0 var(--sp-4); color: var(--term-muted); }\n\n@keyframes spin { to { transform: rotate(360deg); } }\n@keyframes pulse { 50% { opacity: 0.35; } }\n@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(0.99); } }\n\n/* Responsive: below 900px the sidebar becomes a top bar */\n@media (max-width: 900px) {\n .shell { grid-template-columns: minmax(0, 1fr); background: none; }\n .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }\n .brand { padding: 0; order: 1; }\n .sidebar-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: var(--sp-3); }\n .session button { width: auto; }\n .session { display: flex; align-items: center; }\n .locale select { width: 8.5rem; }\n .nav { order: 3; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-3); min-width: 0; }\n .nav-target { padding: 0; display: flex; align-items: center; gap: var(--sp-2); flex: none; }\n .nav-target select { width: 10.5rem; }\n .nav-list { flex-direction: row; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }\n .nav .nav-item { width: auto; flex: none; }\n .nav .nav-item[aria-current=\"page\"]::before { left: 10px; right: 10px; top: auto; bottom: -12px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }\n .target-bar { position: static; padding: 10px var(--sp-4); }\n .app { padding: var(--sp-5) var(--sp-4) var(--sp-7); }\n .run-grid { grid-template-columns: minmax(0, 1fr); }\n}\n@media (max-width: 640px) {\n .form-grid { grid-template-columns: minmax(0, 1fr); }\n .local-note > span { display: none; }\n .nav { flex-wrap: wrap; }\n .nav-target { width: 100%; }\n .nav-target select { width: 100%; max-width: none; }\n .nav-list { width: 100%; margin: 0 -4px; }\n .nav .nav-item[aria-current=\"page\"]::before { display: none; }\n .nav-list { gap: 0; justify-content: space-between; }\n .nav .nav-item { padding: 0 8px; font-size: var(--fs-md); height: 32px; }\n .nav .nav-item .icon { display: none; }\n .grid-2 { grid-template-columns: minmax(0, 1fr); }\n .kv-row { grid-template-columns: 96px minmax(0, 1fr); }\n .page-head { margin-bottom: var(--sp-4); }\n h2 { font-size: 18px; line-height: 24px; }\n th, td { padding: 8px var(--sp-3); }\n .card-head, .card-body { padding-left: var(--sp-3); padding-right: var(--sp-3); }\n .finding { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); }\n .fix { grid-column: 1; }\n .dialog-body { padding-left: 20px; }\n .log li { padding-left: var(--sp-3); }\n .log li::before { display: none; }\n .target-bar .ctx-sep { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }\n .step.is-running .step-icon { border-right-color: var(--molten); border-style: dotted; }\n}\n";
|
|
7
|
+
export declare const APP_CSS = "/* Basalt deploy: an operations console. Graphite neutrals, one molten accent used sparingly. */\n:root {\n color-scheme: light dark;\n --font-sans: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --font-mono: ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 20px;\n --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;\n --radius: 8px; --radius-sm: 6px; --radius-xs: 4px;\n --control-h: 32px;\n --sidebar-w: 240px;\n\n --bg: #f5f6f8;\n --surface: #ffffff;\n --surface-2: #f9fafb;\n --surface-3: #f0f2f5;\n --border: #e2e6eb;\n --border-strong: #cdd3da;\n --text: #0f141a;\n --text-2: #2c3843;\n --muted: #5b6672;\n --faint: #8a949f;\n\n --molten: #ff5a1f;\n --accent-text: #b93a0a;\n --accent-soft: #fff1ea;\n --primary-bg: #c93f0b;\n --primary-bg-hover: #b23708;\n --primary-fg: #ffffff;\n\n --ok: #157f3b; --ok-soft: #e8f5ec; --ok-line: #b7dfc4;\n --warn: #9a6200; --warn-soft: #fdf4e1; --warn-line: #f0d39a;\n --err: #c4271d; --err-soft: #fdecea; --err-line: #f3bdb8;\n --info: #44546a; --info-soft: #eef1f5; --info-line: #cfd7e1;\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #0d1117; --term-border: #0d1117; --term-fg: #c9d1d9; --term-muted: #8b949e; --term-ts: #7d8590;\n --term-warn: #e3b341; --term-err: #ff7b72; --term-ok: #56d364; --term-warn-bg: rgb(227 179 65 / 0.08); --term-err-bg: rgb(255 123 114 / 0.10);\n\n --shadow-sm: 0 1px 2px rgb(15 20 26 / 0.05);\n --shadow-md: 0 1px 2px rgb(15 20 26 / 0.06), 0 4px 12px rgb(15 20 26 / 0.06);\n --shadow-lg: 0 2px 6px rgb(15 20 26 / 0.08), 0 24px 48px rgb(15 20 26 / 0.18);\n --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--molten);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --bg: #0b0e13;\n --surface: #121820;\n --surface-2: #0f141b;\n --surface-3: #18202a;\n --border: #232c36;\n --border-strong: #2f3a46;\n --text: #e6eaef;\n --text-2: #c3cad3;\n --muted: #95a1ae;\n --faint: #6b7784;\n\n --accent-text: #ff8a5c;\n --accent-soft: rgb(255 90 31 / 0.12);\n --primary-bg: #ff5a1f;\n --primary-bg-hover: #ff7340;\n --primary-fg: #0b0e13;\n\n --ok: #3fcf79; --ok-soft: rgb(63 207 121 / 0.10); --ok-line: rgb(63 207 121 / 0.32);\n --warn: #f2b13d; --warn-soft: rgb(242 177 61 / 0.10); --warn-line: rgb(242 177 61 / 0.32);\n --err: #ff6b5e; --err-soft: rgb(255 107 94 / 0.10); --err-line: rgb(255 107 94 / 0.34);\n --info: #9aa8b8; --info-soft: rgb(154 168 184 / 0.10); --info-line: rgb(154 168 184 / 0.28);\n --protected-bg: #b42318; --protected-fg: #ffffff;\n\n --term-bg: #07090c; --term-border: #232c36;\n\n --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);\n --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px rgb(0 0 0 / 0.3);\n --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.5), 0 24px 48px rgb(0 0 0 / 0.55);\n }\n}\n\n/* Base */\n*, *::before, *::after { box-sizing: border-box; }\nhtml, body { margin: 0; background: var(--bg); color: var(--text); }\nbody { font: var(--fs-base)/20px var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: \"cv11\", \"ss01\"; text-rendering: optimizeLegibility; }\nh1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }\nh2 { font-size: var(--fs-xl); line-height: 28px; letter-spacing: -0.015em; }\nh3 { font-size: var(--fs-base); line-height: 20px; }\np { margin: 0; }\np + p { margin-top: var(--sp-2); }\na { color: var(--accent-text); }\n.muted { color: var(--muted); }\n.mono, code, kbd, pre { font-family: var(--font-mono); font-size: 12.5px; }\ncode { background: var(--surface-3); border: 1px solid var(--border); padding: 0 5px; border-radius: var(--radius-xs); overflow-wrap: anywhere; color: var(--text-2); line-height: 18px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.num, time { font-variant-numeric: tabular-nums; }\n.section-label { display: block; font-size: var(--fs-xs); line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.hidden { display: none !important; }\n.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n::selection { background: rgb(255 90 31 / 0.22); }\n\n/* Shell */\n.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--surface) calc(var(--sidebar-w) - 1px), var(--border) calc(var(--sidebar-w) - 1px) var(--sidebar-w), transparent var(--sidebar-w)); }\n.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-4) var(--sp-3); background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }\n.brand { display: flex; align-items: center; gap: 10px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-base); }\n.brand-mark { flex: none; }\n.brand-text { display: flex; flex-direction: column; line-height: 1.15; }\n.brand-name { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }\n.brand-sub { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }\n.nav { display: flex; flex-direction: column; gap: var(--sp-5); }\n.nav-target { display: grid; gap: 6px; padding: 0 var(--sp-2); }\n.nav-target .section-label { padding: 0; }\n.nav-list { display: flex; flex-direction: column; gap: 2px; }\n.nav .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 500; text-align: left; justify-content: flex-start; position: relative; box-shadow: none; }\n.nav .nav-item .icon { color: var(--faint); }\n.nav .nav-item:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }\n.nav .nav-item:hover .icon { color: var(--text-2); }\n.nav .nav-item[aria-current=\"page\"] { background: var(--surface-3); color: var(--text); font-weight: 600; }\n.nav .nav-item[aria-current=\"page\"] .icon { color: var(--molten); }\n.nav .nav-item[aria-current=\"page\"]::before { content: \"\"; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--molten); }\n.sidebar-foot { margin-top: auto; display: grid; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2) 0; border-top: 1px solid var(--border); }\n.local-note { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }\n.local-note .mono { font-size: var(--fs-sm); }\n.session:empty { display: none; }\n.session { display: grid; gap: var(--sp-2); }\n.session button { width: 100%; justify-content: flex-start; }\n.locale { position: relative; display: flex; align-items: center; }\n.locale .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }\n.locale select { height: 30px; padding-left: 32px; font-size: var(--fs-md); max-width: none; background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px; }\n\n.main-col { min-width: 0; display: flex; flex-direction: column; }\n.app { width: 100%; max-width: 1200px; padding: var(--sp-5) var(--sp-6) var(--sp-7); }\n.app > section > * + * { margin-top: var(--sp-4); }\n\n/* Context strip: which target every screen acts on */\n.target-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-3); min-height: 52px; padding: 10px var(--sp-6); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); font-size: var(--fs-md); }\n.target-bar:empty { display: none; }\n.target-bar.is-protected { box-shadow: inset 0 3px 0 var(--protected-bg); }\n.ctx-target { display: inline-flex; align-items: center; gap: var(--sp-2); }\n.ctx-name { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }\n.ctx-sep { display: inline-block; width: 1px; height: 16px; background: var(--border-strong); font-size: 0; line-height: 0; overflow: hidden; color: transparent; }\n.ctx-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; }\n.ctx-item .icon { color: var(--faint); flex: none; }\n.ctx-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.ctx-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }\n.ctx-item.is-behind .ctx-val { color: var(--warn); font-weight: 600; }\n.ctx-item.is-behind .icon { color: var(--warn); }\n.banner.drift code { font-size: 12px; }\n.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }\n.badge .icon { width: 12px; height: 12px; }\n.badge-protected { background: var(--protected-bg); color: var(--protected-fg); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }\n.badge-neutral { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }\n\n/* Page header */\n.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-4); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }\n.app > section > .page-head + * { margin-top: 0; }\n.page-title { min-width: 0; display: grid; gap: var(--sp-1); }\n.page-title h2 { overflow-wrap: anywhere; }\n.page-title h2.mono-title { font-family: var(--font-mono); font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }\n.page-sub { color: var(--muted); max-width: 72ch; }\n.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n\n/* Buttons */\nbutton, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h); padding: 0 12px; font: 500 var(--fs-base)/1 var(--font-sans); white-space: nowrap; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }\nbutton:hover { background: var(--surface-3); border-color: var(--border-strong); }\nbutton:active { transform: translateY(0.5px); }\nbutton:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }\nbutton .icon { flex: none; }\nbutton.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); font-weight: 600; box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.12); }\nbutton.primary:hover { background: var(--primary-bg-hover); border-color: var(--primary-bg-hover); }\nbutton.danger { color: var(--err); border-color: var(--err-line); background: var(--surface); }\nbutton.danger:hover { background: var(--err-soft); border-color: var(--err); }\ndialog.is-danger button.danger, button.danger.solid { background: var(--err); border-color: var(--err); color: #ffffff; font-weight: 600; }\ndialog.is-danger button.danger:hover, button.danger.solid:hover { filter: brightness(0.94); }\n@media (prefers-color-scheme: dark) { dialog.is-danger button.danger, button.danger.solid { background: #d92d20; border-color: #d92d20; } }\nbutton.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }\nbutton.ghost:hover { background: var(--surface-3); color: var(--text); }\nbutton.ghost.danger { color: var(--err); }\nbutton.ghost.danger:hover { background: var(--err-soft); }\nbutton.sm { height: 28px; padding: 0 10px; font-size: var(--fs-md); }\nbutton:disabled, button:disabled:hover { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }\n.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }\n.actions-end { justify-content: flex-end; }\n\n/* Cards */\n.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }\n.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 48px; padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); }\n.card-head h3 { font-size: var(--fs-base); }\n.card-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }\n.card-body { padding: var(--sp-4); min-width: 0; }\n.card-body > * + * { margin-top: var(--sp-3); }\n.card-body.flush { padding: 0; }\n.card-foot { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; align-items: center; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }\n.card.accent { border-color: var(--accent-line, var(--border)); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--molten); }\n.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }\n.lead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }\n.lead .mono { font-size: 13px; color: var(--text); }\n\n/* Key/value */\n.kv { display: grid; gap: 0; }\ndl { margin: 0; }\n.kv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--sp-3); padding: 7px 0; border-top: 1px solid var(--border); align-items: baseline; }\n.kv-row:first-child { border-top: 0; padding-top: 0; }\n.kv-row:last-child { padding-bottom: 0; }\n.kv dt { color: var(--muted); font-size: var(--fs-md); }\n.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }\n\n/* Pills and badges */\n.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid; vertical-align: middle; }\n.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }\n.pill-warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.pill-err { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.pill-info { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }\n.pill-skip { color: var(--muted); background: var(--surface-3); border-color: var(--border); }\n.pill-run { color: var(--accent-text); background: var(--accent-soft); border-color: rgb(255 90 31 / 0.35); }\n.pill-run .dot { animation: pulse 1.4s ease-in-out infinite; }\n.status-ok { color: var(--ok); }\n.status-warn { color: var(--warn); }\n.status-err { color: var(--err); }\n\n/* Tables */\n.table-wrap { overflow-x: auto; max-width: 100%; }\n.card > .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }\ntable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-base); }\nth, td { text-align: left; padding: 10px var(--sp-4); border-bottom: 1px solid var(--border); vertical-align: middle; }\nthead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 8px; white-space: nowrap; }\ntbody tr:last-child > * { border-bottom: 0; }\ntbody tr:hover > * { background: var(--surface-2); }\ntd.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }\ntd.nowrap, th.nowrap { white-space: nowrap; }\ntd.wrap { overflow-wrap: anywhere; min-width: 20ch; }\ntd.mono { color: var(--text-2); }\ntd .row { flex-wrap: nowrap; justify-content: flex-end; }\n.plan-lines th { width: 1%; white-space: nowrap; font-weight: 500; }\n.plan-lines tbody th { background: transparent; }\n.step-chip { display: inline-block; padding: 1px 7px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }\n.plan-lines td { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }\n\n/* Commits (plan, history, rollback): a timeline per side, author text as plain text */\n.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.commits { display: grid; gap: var(--sp-4); }\n.commits-note { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 10px var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--fs-md); }\n.commits-note .icon { flex: none; margin-top: 2px; color: var(--faint); }\n.commits-note strong { color: var(--text-2); font-weight: 600; }\n.commits-note.is-ok { border-style: solid; border-color: var(--ok-line); background: var(--ok-soft); color: var(--text-2); }\n.commits-note.is-ok .icon { color: var(--ok); }\n.commit-group { --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); min-width: 0; }\n.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }\n.commit-group-title { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }\n.commit-sign { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--radius-xs); background: var(--tone-soft); border: 1px solid var(--tone-line); color: var(--tone); font: 600 13px/1 var(--font-mono); flex: none; }\n.commit-count { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }\n.commit-list { list-style: none; margin: 0; padding: 0; position: relative; }\n.commit-list::before { content: \"\"; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--tone-line); }\n.commit { position: relative; display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: 6px var(--sp-2) 6px 0; border-radius: var(--radius-sm); }\n.commit:hover { background: var(--surface-2); }\n.commit-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; }\n.commit.is-merge .commit-dot { background: var(--surface); border: 2px solid var(--tone); }\n.commit-sha { padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }\n.commit-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }\n.commit.is-merge .commit-subject { color: var(--muted); }\n.commit-merge { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--faint); }\n.commit-meta { display: flex; gap: var(--sp-2); align-items: baseline; justify-content: flex-end; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }\n.commit-author { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }\n.commit-more { margin: var(--sp-1) 0 0 30px; color: var(--muted); font-size: var(--fs-sm); }\n.commit-span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }\n.commit-span code { color: var(--text-2); }\n.commit-span .icon { width: 14px; height: 14px; }\n.card-actions .muted { font-size: var(--fs-md); }\n@media (max-width: 720px) {\n .commit { grid-template-columns: 18px auto minmax(0, 1fr); row-gap: 2px; align-items: start; }\n .commit-dot { margin-top: 5px; }\n .commit-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }\n .commit-meta { grid-column: 3; justify-content: flex-start; }\n .release-changes > td { padding-left: var(--sp-4); }\n .release-changes-cell > * { max-width: calc(100vw - 64px); }\n}\n/* History: a chevron opens a release's commits under its row */\n.releases td.disclosure, .releases th.disclosure { width: 1%; padding-right: 0; }\n.disclosure-button { width: 26px; height: 26px; padding: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }\n.disclosure-button:hover { background: var(--surface-3); color: var(--text); }\n.disclosure-button .icon { transition: transform 150ms ease; }\n.disclosure-button[aria-expanded=\"true\"] .icon { transform: rotate(90deg); color: var(--molten); }\n.releases td.release-commit { min-width: 28ch; max-width: 40ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.release-commit code { margin-right: var(--sp-2); }\n.release-subject { color: var(--text); }\n.release-row.is-open > * { background: var(--surface-2); border-bottom-color: transparent; }\n.release-changes > td { padding: var(--sp-2) var(--sp-4) var(--sp-4) 52px; background: var(--surface-2); }\n.release-changes:hover > * { background: var(--surface-2); }\n/* The cell spans a table wider than the card: the list stays within what is on screen. */\n.release-changes-cell > * { max-width: min(52rem, calc(100vw - var(--sidebar-w) - 160px)); }\n.rollback-preview:empty { display: none; }\n/* The confirmation dialog's compact list */\n.commit-summary { display: grid; gap: 4px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--tone-line); border-left: 3px solid var(--tone); border-radius: var(--radius-sm); background: var(--tone-soft); --tone: var(--ok); --tone-soft: var(--ok-soft); --tone-line: var(--ok-line); }\n.commit-summary.commit-group-removed { --tone: var(--err); --tone-soft: var(--err-soft); --tone-line: var(--err-line); }\n.commit-summary-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--text); margin-bottom: 2px; }\n.commit-summary-row { display: flex; gap: var(--sp-2); min-width: 0; font-size: var(--fs-md); }\n.commit-summary-row .commit-subject { color: var(--text-2); }\n.commit-summary .commit-sha { background: var(--surface); }\n.commit-summary .commit-more { margin: 0; }\n\n/* Forms */\n.field { display: grid; gap: 6px; }\n.field + .field { margin-top: var(--sp-4); }\n.field > label { font-size: var(--fs-md); font-weight: 600; color: var(--text); }\n.field-key { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }\n.field-help, .field > .muted { font-size: var(--fs-sm); color: var(--muted); }\n.field-error { color: var(--err); font-size: var(--fs-sm); }\n.field-error:empty { display: none; }\n.required { color: var(--err); }\ninput[type=\"text\"], input[type=\"password\"], input[type=\"number\"], select { font: var(--fs-base)/1 var(--font-sans); height: var(--control-h); padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); width: 100%; max-width: 32rem; box-shadow: var(--shadow-sm); transition: border-color 120ms ease, box-shadow 120ms ease; }\ninput[type=\"password\"], input#confirm-name, .field input[spellcheck=\"false\"][type=\"text\"] { font-family: var(--font-mono); font-size: 13px; }\ninput:hover, select:hover { border-color: var(--faint); }\ninput:focus-visible, select:focus-visible { border-color: var(--molten); }\ninput[aria-invalid=\"true\"] { border-color: var(--err); }\nselect { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }\ninput[type=\"checkbox\"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary-bg); flex: none; }\n.check > label, label.check { display: flex; align-items: flex-start; gap: var(--sp-2); font-weight: 500; font-size: var(--fs-base); line-height: 20px; cursor: pointer; }\n.check input[type=\"checkbox\"] { margin-top: 2px; }\n.form-section + .form-section { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }\n.form-note { font-size: var(--fs-md); color: var(--muted); display: flex; gap: var(--sp-2); align-items: flex-start; }\n.form-note .icon { margin-top: 2px; color: var(--faint); flex: none; }\n\n.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }\n.form-grid > .field + .field { margin-top: 0; }\n.form-grid input[type=\"text\"], .form-grid input[type=\"number\"] { max-width: none; }\n.span-2 { grid-column: 1 / -1; }\n.target-name { font-weight: 600; }\n.card-body > [aria-live]:empty { display: none; }\n\n/* Disclosures */\ndetails > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-md); font-weight: 500; width: fit-content; border-radius: var(--radius-xs); list-style-position: inside; }\ndetails > summary:hover { color: var(--text); }\ndetails[open] > summary { margin-bottom: var(--sp-2); }\n.advanced { margin-top: var(--sp-3); }\n.form-section > .advanced:first-child { margin-top: 0; }\n.form-section + .form-section:has(> .advanced:first-child) { padding-top: var(--sp-4); margin-top: var(--sp-4); }\n.advanced[open] { padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }\n.diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 18px; margin: 0; padding: 10px var(--sp-3); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); max-height: 40vh; overflow-y: auto; }\n\n/* Banners */\n.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--info-line); border-left-width: 3px; border-radius: var(--radius); background: var(--info-soft); color: var(--text); }\n.banner-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }\n.banner-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }\n.banner-body > p { margin-top: 4px; color: var(--text-2); }\n.banner-body > details { margin-top: var(--sp-2); }\n.banner-title { font-weight: 600; }\n.banner-code { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }\n.banner.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-soft); }\n.banner.ok .banner-icon { color: var(--ok); }\n.banner.warn { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); }\n.banner.warn .banner-icon { color: var(--warn); }\n.banner.err { border-color: var(--err-line); border-left-color: var(--err); background: var(--err-soft); }\n.banner.err .banner-icon { color: var(--err); }\n.banner + .banner { margin-top: var(--sp-2); }\n\n/* Findings */\n.findings { list-style: none; margin: 0; padding: 0; }\n.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-3); row-gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); align-items: baseline; }\n.finding:first-child { border-top: 0; }\n.finding-msg { min-width: 0; overflow-wrap: anywhere; }\n.finding-id { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); margin-right: 6px; }\n.sev { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 20px; padding: 0 7px; border-radius: var(--radius-xs); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid; }\n.sev-error { color: var(--err); background: var(--err-soft); border-color: var(--err-line); }\n.sev-warning { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }\n.fix { grid-column: 2; display: flex; align-items: baseline; gap: var(--sp-2); padding: 6px 10px; background: var(--surface-3); border: 1px solid var(--border); border-left: 2px solid var(--faint); border-radius: var(--radius-xs); min-width: 0; }\n.fix-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); flex: none; }\n.fix code { background: none; border: 0; padding: 0; user-select: all; }\n\n/* Empty states */\n.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: var(--sp-7) var(--sp-4); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }\n.empty-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); color: var(--muted); margin-bottom: var(--sp-2); }\n.empty-icon .icon { width: 20px; height: 20px; }\n.empty-title { font-weight: 600; font-size: var(--fs-lg); line-height: 24px; }\n.empty-text { color: var(--muted); max-width: 52ch; }\n.empty .row { margin-top: var(--sp-3); justify-content: center; }\n.stopped { max-width: 560px; margin: var(--sp-7) 0 0; }\n.stopped .banner { margin-top: var(--sp-4); text-align: left; }\n\n/* Dialogs */\ndialog { padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); width: min(32rem, calc(100vw - 32px)); max-width: none; box-shadow: var(--shadow-lg); }\ndialog::backdrop { background: rgb(11 14 19 / 0.55); backdrop-filter: blur(2px); }\ndialog[open] { animation: rise 160ms ease-out; }\n.dialog-head { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 20px 20px 0; }\n.dialog-head h2 { font-size: var(--fs-lg); line-height: 24px; overflow-wrap: anywhere; }\n.dialog-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--accent-soft); color: var(--accent-text); }\n.dialog-icon .icon { width: 18px; height: 18px; }\ndialog.is-danger { border-top: 3px solid var(--err); }\ndialog.is-danger .dialog-icon { background: var(--err-soft); color: var(--err); }\n.dialog-body { padding: var(--sp-3) 20px 20px 64px; color: var(--text-2); overflow-wrap: anywhere; }\n.dialog-body > p + p { margin-top: var(--sp-2); }\n.dialog-context { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 10px; }\n.dialog-protected { display: flex; align-items: center; gap: var(--sp-2); color: var(--err); font-weight: 500; }\n.dialog-body .field { margin-top: var(--sp-4); }\n.dialog-body .field > label { font-weight: 500; color: var(--text-2); }\n.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; }\n\n/* Run: the step timeline */\n.run-state { display: flex; align-items: center; gap: var(--sp-2); width: fit-content; max-width: 100%; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--fs-md); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }\n.run-state::before { content: \"\"; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }\n.run-state.is-live::before { background: var(--molten); animation: pulse 1.4s ease-in-out infinite; }\n.run-state.is-ok::before { background: var(--ok); }\n.run-state.is-err::before { background: var(--err); }\n.run-state:empty { display: none; }\n.run-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }\n.run-outcome:empty, .run-findings:empty { display: none; }\n.steps { list-style: none; padding: 0; margin: 0; }\n.steps:empty::before { content: \"Waiting for the first step\u2026\"; display: block; color: var(--muted); font-size: var(--fs-md); }\n.step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; min-height: 32px; padding: 6px 0; }\n.step:not(:last-child)::after { content: \"\"; position: absolute; left: 9.5px; top: 28px; bottom: -6px; width: 1px; background: var(--border-strong); }\n.step.is-ok:not(:last-child)::after { background: var(--ok); opacity: 0.45; }\n.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--muted); }\n.step.is-ok .step-icon { background: var(--ok); border-color: var(--ok); color: var(--surface); }\n.step.is-failed .step-icon { background: var(--err); border-color: var(--err); color: var(--surface); }\n.step.is-skipped .step-icon { background: var(--surface-3); border-color: var(--border-strong); color: var(--muted); }\n.step.is-running .step-icon { color: transparent; border-color: var(--molten); border-right-color: transparent; animation: spin 0.9s linear infinite; }\n.step.is-aborted .step-icon { color: transparent; border-style: dashed; border-color: var(--warn); }\n.step.is-aborted .step-icon::after { content: \"\"; position: absolute; inset: 5px; border-radius: 2px; background: var(--warn); }\n.step-title { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }\n.step.is-running .step-title { font-weight: 600; }\n.step.is-skipped .step-title { color: var(--muted); }\n.step-meta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }\n.step-status { text-transform: lowercase; }\n.step.is-failed .step-status { color: var(--err); font-weight: 600; }\n.step.is-running .step-status { color: var(--accent-text); font-weight: 600; }\n.step.is-aborted .step-status { color: var(--warn); font-weight: 600; }\n.step-dur { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; color: var(--text-2); }\n\n/* Run: the log console (a terminal in both themes) */\n.console { background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-width: 0; }\n.console-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 40px; padding: 0 var(--sp-4); border-bottom: 1px solid rgb(255 255 255 / 0.08); color: var(--term-muted); }\n.console-head h3 { color: #e6edf3; font-size: var(--fs-md); display: flex; align-items: center; gap: var(--sp-2); }\n.console-head .icon { color: var(--term-muted); }\n.console-meta { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--term-muted); }\n.log { list-style: none; margin: 0; padding: 10px 0; max-height: 60vh; min-height: 120px; overflow-y: auto; color: var(--term-fg); font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #30363d transparent; }\n.log li { position: relative; padding: 0 var(--sp-4) 0 calc(var(--sp-4) + 10ch); }\n.log li::before { content: attr(data-ts); position: absolute; left: var(--sp-4); width: 9ch; color: var(--term-ts); font-variant-numeric: tabular-nums; }\n.log li:hover { background: rgb(255 255 255 / 0.03); }\n.log .src { color: var(--term-muted); }\n.log li.src { font-style: italic; }\n.log li.warn { color: var(--term-warn); background: var(--term-warn-bg); box-shadow: inset 2px 0 0 var(--term-warn); }\n.log li.error { color: var(--term-err); background: var(--term-err-bg); box-shadow: inset 2px 0 0 var(--term-err); }\n.log li.ok { color: var(--term-ok); }\n.log:empty::after { content: \"No output yet.\"; display: block; padding: 0 var(--sp-4); color: var(--term-muted); }\n\n@keyframes spin { to { transform: rotate(360deg); } }\n@keyframes pulse { 50% { opacity: 0.35; } }\n@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(0.99); } }\n\n/* Responsive: below 900px the sidebar becomes a top bar */\n@media (max-width: 900px) {\n .shell { grid-template-columns: minmax(0, 1fr); background: none; }\n .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }\n .brand { padding: 0; order: 1; }\n .sidebar-foot { order: 2; margin: 0 0 0 auto; padding: 0; border: 0; display: flex; align-items: center; gap: var(--sp-3); }\n .session button { width: auto; }\n .session { display: flex; align-items: center; }\n .locale select { width: 8.5rem; }\n .nav { order: 3; width: 100%; flex-direction: row; align-items: center; gap: var(--sp-3); min-width: 0; }\n .nav-target { padding: 0; display: flex; align-items: center; gap: var(--sp-2); flex: none; }\n .nav-target select { width: 10.5rem; }\n .nav-list { flex-direction: row; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }\n .nav .nav-item { width: auto; flex: none; }\n .nav .nav-item[aria-current=\"page\"]::before { left: 10px; right: 10px; top: auto; bottom: -12px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }\n .target-bar { position: static; padding: 10px var(--sp-4); }\n .app { padding: var(--sp-5) var(--sp-4) var(--sp-7); }\n .run-grid { grid-template-columns: minmax(0, 1fr); }\n}\n@media (max-width: 640px) {\n .form-grid { grid-template-columns: minmax(0, 1fr); }\n .local-note > span { display: none; }\n .nav { flex-wrap: wrap; }\n .nav-target { width: 100%; }\n .nav-target select { width: 100%; max-width: none; }\n .nav-list { width: 100%; margin: 0 -4px; }\n .nav .nav-item[aria-current=\"page\"]::before { display: none; }\n .nav-list { gap: 0; justify-content: space-between; }\n .nav .nav-item { padding: 0 8px; font-size: var(--fs-md); height: 32px; }\n .nav .nav-item .icon { display: none; }\n .grid-2 { grid-template-columns: minmax(0, 1fr); }\n .kv-row { grid-template-columns: 96px minmax(0, 1fr); }\n .page-head { margin-bottom: var(--sp-4); }\n h2 { font-size: 18px; line-height: 24px; }\n th, td { padding: 8px var(--sp-3); }\n .card-head, .card-body { padding-left: var(--sp-3); padding-right: var(--sp-3); }\n .finding { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); }\n .fix { grid-column: 1; }\n .dialog-body { padding-left: 20px; }\n .log li { padding-left: var(--sp-3); }\n .log li::before { display: none; }\n .target-bar .ctx-sep { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }\n .step.is-running .step-icon { border-right-color: var(--molten); border-style: dotted; }\n}\n";
|
package/dist/page.js
CHANGED
|
@@ -187,6 +187,9 @@ code { background: var(--surface-3); border: 1px solid var(--border); padding: 0
|
|
|
187
187
|
.ctx-item .icon { color: var(--faint); flex: none; }
|
|
188
188
|
.ctx-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
|
|
189
189
|
.ctx-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
|
|
190
|
+
.ctx-item.is-behind .ctx-val { color: var(--warn); font-weight: 600; }
|
|
191
|
+
.ctx-item.is-behind .icon { color: var(--warn); }
|
|
192
|
+
.banner.drift code { font-size: 12px; }
|
|
190
193
|
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }
|
|
191
194
|
.badge .icon { width: 12px; height: 12px; }
|
|
192
195
|
.badge-protected { background: var(--protected-bg); color: var(--protected-fg); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basaltkit/deploy-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.5.0"
|
|
6
6
|
},
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@basaltkit/deploy": "^0.
|
|
24
|
+
"@basaltkit/deploy": "^0.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^26.6.5",
|
|
28
|
-
"jsdom": "^30.1.
|
|
28
|
+
"jsdom": "^30.1.3",
|
|
29
29
|
"typescript": "^7.0.2",
|
|
30
|
-
"vitest": "^5.0.
|
|
31
|
-
"@basaltkit/
|
|
32
|
-
"@basaltkit/
|
|
30
|
+
"vitest": "^5.0.5",
|
|
31
|
+
"@basaltkit/tsconfig": "^0.24.0",
|
|
32
|
+
"@basaltkit/i18n": "^1.1.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|