cornfield 0.30.0 → 0.32.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 CHANGED
@@ -41,9 +41,9 @@ ssh -L 3350:127.0.0.1:3350 you@the-machine
41
41
  - **The map.** WebGL2 (Canvas 2D fallback), 5,000 nodes and 15,000 edges at frame rate. Orbit, data-flow and House views, layers, search, focus, freeform drag. `/?fixture=5k&bench=1` measures it. All of it works by keyboard, and a screen reader is told where you are: [docs/accessibility.md](docs/accessibility.md).
42
42
  - **Derived, not drawn by hand.** `cornfield sync` runs the derivers named in your config and merges what they find into `topology.json`; hand-written parts (descriptions, flows, anything of a type no deriver owns) are kept. `cornfield validate` fails on drift, so CI keeps the map honest.
43
43
  - **Proposals.** `docs/specs/proposals/NNNN-slug.json` says what a change would add, change and remove, with scenarios. cornfield lists them from your checkout, from every git worktree in the configured worktrees folder and, with sign-in, from your open spec PRs, and shows Before / Diff / After, the scenario player, what-if edits, and Approve / Send back. Writing, reviewing and landing one in your repo: [docs/proposals.md](docs/proposals.md). The format and its validator: [core/proposal.js](core/proposal.js).
44
- - **Issues and pull requests.** With a forge in the config and sign-in, a panel of its pull requests and issues (GitHub; Forgejo behind the same interface), with filters. Select a pull request and the nodes its files are light up on the map, and a failing check lights the tests it names. A Deploys list reads the forge's workflow runs and lights what a selected deploy restarted, from a mapping in the config ([docs/deploys.md](docs/deploys.md)). A maintainer can land a green pull request, re-run a failed check, start a spec on an issue and open the build issue of an approved spec, each one button with a confirm step. A bottom sheet on a phone. A **Release notes** tab drafts the notes from the pull requests merged since the last tag, grouped by what they changed on the map, to copy or to post as a draft release (never published); `cornfield notes` prints the same Markdown. [docs/issues-and-prs.md](docs/issues-and-prs.md).
44
+ - **Issues and pull requests.** With a forge in the config and sign-in, a panel of its pull requests and issues (GitHub; Forgejo behind the same interface), with filters. Select a pull request and the nodes its files are light up on the map, and a failing check lights the tests it names. A Deploys list reads the forge's workflow runs and lights what a selected deploy restarted, from a mapping in the config ([docs/deploys.md](docs/deploys.md)). A maintainer can land a green pull request, re-run a failed check, start a spec on an issue and open the build issue of an approved spec, each one button with a confirm step. A bottom sheet on a phone. A **Release notes …** action on the PRs list drafts the notes from the pull requests merged since the last tag, grouped by what they changed on the map, to copy or to post as a draft release (never published); `cornfield notes` prints the same Markdown. [docs/issues-and-prs.md](docs/issues-and-prs.md).
45
45
  - **Threads.** The panel's Threads tab shows ideas (issues labelled `idea`) and spec PRs' conversations from the forge, read-only, and lights the nodes they mention with `[[node-id]]` or `[[repo/path]]`; a node's panel lists the threads that mention it. "New idea" opens an issue as you. Hooks tell outside code when a thread opens, gets a comment or is linked to the map. Nothing is kept in cornfield. [docs/threads.md](docs/threads.md).
46
- - **Agents, tracked.** The panel's Agents tab groups branches, spec PRs and PRs by the issue and the proposal they belong to, and marks the work agents made (by author, bot account, label or branch prefix, set in the config). Nothing is launched. [docs/agents.md](docs/agents.md).
46
+ - **Agents, tracked.** The panel's Runs tab groups branches, spec PRs and PRs by the issue and the proposal they belong to, and marks the work agents made (by author, bot account, label or branch prefix, set in the config). Nothing is launched. [docs/agents.md](docs/agents.md).
47
47
  - **Personas, not people.** `topology.personas.json` holds archetypes (Admin, Member, Guest); scenarios act as them, never as a real person.
48
48
  - **The cloud you do not control.** `topology.cloud.json` describes the outside services; the cloud deriver's detectors (hosts in code, Dockerfiles, container images, CI workflows, a Caddyfile) keep it complete in both directions. "Cloudflare is down" plays as an outage: what breaks now, at the next deploy, at the next certificate renewal. [docs/cloud.md](docs/cloud.md).
49
49
  - **The house, optional.** A House view of floors, rooms, devices, machines and people (as counts), read from a source: a JSON file in your repo, your own API, later Home Assistant. cornfield only displays it. [docs/house.md](docs/house.md).
package/core/strings.js CHANGED
@@ -14,10 +14,10 @@
14
14
  export const STRINGS = Object.freeze({
15
15
  // The header
16
16
  layers: 'Layers',
17
- dataFlow: 'Data flow',
17
+ dataFlow: 'Flow',
18
18
  house: 'House',
19
19
  proposals: 'Proposals',
20
- issuesAndPrs: 'Issues & PRs',
20
+ issuesAndPrs: 'Work',
21
21
  searchPlaceholder: 'Search...',
22
22
  signOut: 'Sign out',
23
23
  poweredBy: 'powered by cornfield',
@@ -31,13 +31,13 @@ export const STRINGS = Object.freeze({
31
31
  sendBackWithNote: 'Send back with this note',
32
32
  reviewNoteLabel: 'Note for the drafting agent',
33
33
  reviewNotePlaceholder: 'What should change?',
34
- // The issues and pull requests panel
35
- tabPulls: 'Pull requests',
34
+ // The Work panel: its tabs run in the order of the loop
35
+ tabSpecs: 'Specs',
36
+ tabPulls: 'PRs',
36
37
  tabIssues: 'Issues',
37
38
  tabThreads: 'Threads',
39
+ tabRuns: 'Runs',
38
40
  tabDeploys: 'Deploys',
39
- tabAgents: 'Agents',
40
- tabNotes: 'Release notes',
41
41
  newIdea: 'New idea',
42
42
  landIt: 'Land it',
43
43
  // Agent runs
@@ -0,0 +1,89 @@
1
+ /**
2
+ * @module explorer/account-menu
3
+ *
4
+ * The one menu at the right of the header (`#account-btn` and `#account-menu`): who is signed in, Theme, Freeform layout, Review tokens,
5
+ * Proposals, the links, Sign out, and what powers it. A disclosure: `aria-expanded` says whether it is open, Escape closes it with
6
+ * the focus back on the button, and a click outside it or a Tab out of it closes it too. What fills it is in plugins.js (the person, the links,
7
+ * the footer), theme.js (the Theme segment), main.js (Freeform), proposal.js (the list of proposals) and review-tokens.js.
8
+ */
9
+
10
+ const $ = (id) => document.getElementById(id);
11
+
12
+ /** Whether the menu is open */
13
+ export function accountMenuOpen() {
14
+ const menu = $('account-menu');
15
+ return !!menu && !menu.hidden;
16
+ }
17
+
18
+ function set(open) {
19
+ const menu = $('account-menu');
20
+ const btn = $('account-btn');
21
+ if (menu) menu.hidden = !open;
22
+ if (btn) btn.setAttribute('aria-expanded', String(open));
23
+ }
24
+
25
+ /** Opens the menu */
26
+ export function openAccountMenu() {
27
+ set(true);
28
+ }
29
+
30
+ /**
31
+ * Closes the menu
32
+ * @param {{ restoreFocus?: boolean }} [opts] the focus goes back to the button (the default), unless something else takes it (a dialog)
33
+ */
34
+ export function closeAccountMenu({ restoreFocus = true } = {}) {
35
+ if (!accountMenuOpen()) return;
36
+ const had = !!document.activeElement && !!$('account-menu') && $('account-menu').contains(document.activeElement);
37
+ set(false);
38
+ const btn = $('account-btn');
39
+ if (restoreFocus && btn && had) btn.focus();
40
+ }
41
+
42
+ function onClick(e) {
43
+ const btn = $('account-btn');
44
+ const menu = $('account-menu');
45
+ if (!btn || !menu) return;
46
+ const target = e.target;
47
+ if (btn.contains(target)) {
48
+ if (accountMenuOpen()) closeAccountMenu(); else openAccountMenu();
49
+ return;
50
+ }
51
+ if (!accountMenuOpen()) return;
52
+ if (!menu.contains(target)) { closeAccountMenu({ restoreFocus: false }); return; }
53
+ // What opens something of its own takes the focus there; a link or a proposal chosen ends the menu. Theme, Freeform and the list of proposals keep it open
54
+ const item = target.closest ? target.closest('#tokens-btn, [data-action="open-proposal"], a[href], [data-corn="sign-out"]') : null;
55
+ if (!item) return;
56
+ closeAccountMenu({ restoreFocus: !item.matches('#tokens-btn') });
57
+ }
58
+
59
+ function onKey(e) {
60
+ if (e.key !== 'Escape' || !accountMenuOpen()) return;
61
+ e.preventDefault();
62
+ closeAccountMenu();
63
+ }
64
+
65
+ /** Leaving the menu with Tab closes it (focus is not left on a hidden control) */
66
+ function onFocusOut(e) {
67
+ const menu = $('account-menu');
68
+ const btn = $('account-btn');
69
+ if (!accountMenuOpen() || !e.relatedTarget) return;
70
+ if (!menu.contains(e.relatedTarget) && !btn.contains(e.relatedTarget)) closeAccountMenu({ restoreFocus: false });
71
+ }
72
+
73
+ let wired = false;
74
+ /** Wires the button and the menu, once (main.js) */
75
+ export function initAccountMenu() {
76
+ if (wired) return;
77
+ wired = true;
78
+ document.addEventListener('click', onClick);
79
+ document.addEventListener('keydown', onKey);
80
+ const root = $('account-btn') && $('account-btn').parentElement;
81
+ if (root) root.addEventListener('focusout', onFocusOut);
82
+ }
83
+
84
+ /** For tests: wire again on a fresh page */
85
+ export function resetAccountMenuForTests() {
86
+ document.removeEventListener('click', onClick);
87
+ document.removeEventListener('keydown', onKey);
88
+ wired = false;
89
+ }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Links from chat that land in the right place (issue #103, docs/agents.md "Deep links"):
5
5
  *
6
- * ?run=<runId> the Agents tab, that run lit and in view
6
+ * ?run=<runId> the Runs tab, that run lit and in view
7
7
  * ?issue=<n> the Issues tab, that issue's Start an agent button focused
8
8
  * ?proposal=<slug>&start=1 the proposal opened (proposal.js) and the Start dialog on it
9
9
  *
@@ -42,13 +42,6 @@ h1, h2, h3, p { margin: 0; }
42
42
  -webkit-backdrop-filter: blur(var(--corn-blur));
43
43
  border-bottom: var(--corn-border) solid var(--corn-line);
44
44
  }
45
- .gradient-text {
46
- background: var(--corn-brand-gradient);
47
- -webkit-background-clip: text;
48
- background-clip: text;
49
- -webkit-text-fill-color: transparent;
50
- display: inline-block;
51
- }
52
45
 
53
46
  ::-webkit-scrollbar { width: 5px; height: 5px; }
54
47
  ::-webkit-scrollbar-track { background: transparent; }
@@ -75,32 +68,146 @@ h1, h2, h3, p { margin: 0; }
75
68
  /* Headings and titles take the display family (the same as the body unless a brand sets it) */
76
69
  .hx-title, .hx-drawer-title, .hx-block-title, .hx-menu-title, .hx-confirm-title, .hx-mockup-title { font-family: var(--corn-font-display); }
77
70
 
78
- /* ---- header ------------------------------------------------------------------------------ */
71
+ /* ==== the header (CF-41) ===============================================================================================
72
+ Left to right: the brand, the View switch (Map, Flow, House, Fit), the Layers chip, the live chip; at the right the search,
73
+ the Work toggle and the one account menu (account-menu.js). Everything reads the --corn-* tokens. From 768px it is a desktop
74
+ header; below it is a phone's: Map, Flow, House, a search icon and the account initial, with the Layers chip, the live chip
75
+ and Fit floating on the map (placed from the header's corner). The header has no backdrop-filter of its own: it sits above
76
+ the map, not over it, and one would keep its menus' .glass blur from working (they would show the map through). */
79
77
  .hx-header {
78
+ position: relative;
80
79
  flex: none;
81
80
  height: 56px;
82
81
  display: flex;
83
82
  align-items: center;
84
83
  justify-content: space-between;
85
84
  gap: var(--corn-space-3);
86
- padding: 0 var(--corn-space-3);
85
+ padding: 0 var(--corn-space-4);
87
86
  z-index: 20;
88
- background: color-mix(in srgb, var(--corn-ground) 88%, transparent);
89
- backdrop-filter: blur(var(--corn-blur));
90
- -webkit-backdrop-filter: blur(var(--corn-blur));
87
+ background: var(--corn-surface-1);
91
88
  border-bottom: var(--corn-border) solid var(--corn-line);
92
89
  }
93
90
  .hx-header-left, .hx-header-right { display: flex; align-items: center; gap: var(--corn-space-3); min-width: 0; }
94
- .hx-header-right { flex: none; gap: var(--corn-space-1); }
95
- @media (min-width: 640px) { .hx-header { padding: 0 var(--corn-space-5); } .hx-header-left { gap: var(--corn-space-4); } .hx-header-right { gap: var(--corn-space-3); } }
91
+ .hx-header-right { flex: none; }
92
+ .hx-only-wide { display: none; }
93
+ .hx-only-mobile { display: inline-flex; }
94
+
95
+ /* The brand: logo and wordmark; a click resets the view */
96
+ .hx-brand { display: flex; align-items: center; gap: var(--corn-space-3); flex: none; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; }
97
+ .hx-title { font-size: var(--corn-text-base); font-weight: 650; letter-spacing: -0.01em; color: var(--corn-text); }
98
+ .hx-mark { flex: none; }
99
+ .hx-mark-bg { fill: var(--corn-accent); }
100
+ .hx-mark-fg { fill: var(--corn-text-on-accent); }
101
+ .hx-mark-line { fill: none; stroke: var(--corn-text-on-accent); stroke-width: 1.5; }
102
+
103
+ /* The View switch: Map, Flow and House (aria-pressed says which is on), and Fit at its end */
104
+ .hx-view { display: inline-flex; align-items: center; flex: none; padding: var(--corn-space-1); border-radius: var(--corn-radius); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); }
105
+ .hx-view-btn, .hx-view-fit { display: inline-flex; align-items: center; justify-content: center; height: 28px; border: 0; border-radius: var(--corn-radius-sm); background: transparent; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 500; white-space: nowrap; }
106
+ .hx-view-btn { padding: 0 var(--corn-space-4); }
107
+ .hx-view-btn:hover, .hx-view-fit:hover { background: var(--corn-surface-3); color: var(--corn-text); }
108
+ .hx-view-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); font-weight: 600; }
109
+ .hx-view-fit { width: 28px; margin-left: var(--corn-space-1); border-left: var(--corn-border) solid var(--corn-line); border-radius: 0 var(--corn-radius-sm) var(--corn-radius-sm) 0; color: var(--corn-text-3); }
110
+
111
+ /* The Layers chip: "Layers · 13 of 20" */
112
+ .hx-layers-chip { display: inline-flex; align-items: center; gap: var(--corn-space-1); height: 30px; padding: 0 var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); white-space: nowrap; }
113
+ .hx-layers-chip:hover, .hx-layers-chip[aria-expanded="true"] { background: var(--corn-surface-3); color: var(--corn-text); }
114
+ .hx-layers-count { color: var(--corn-text-3); }
115
+ .hx-layers-chip--dim { border-color: var(--corn-line-soft); }
116
+ .hx-layers-chip--dim, .hx-layers-chip--dim .hx-layers-count { color: var(--corn-text-3); }
117
+
118
+ /* Search: the field with its key hint (a desktop's), an icon on a phone */
119
+ .hx-search { display: none; align-items: center; gap: var(--corn-space-3); width: 260px; min-width: 120px; height: 32px; padding: 0 var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-3); }
120
+ .hx-search:focus-within { border-color: var(--corn-focus); outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
121
+ .hx-search-icon { flex: none; }
122
+ .hx-search-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); outline: none; user-select: text; }
123
+ .hx-search-input::placeholder { color: var(--corn-text-3); }
124
+ .hx-kbd { flex: none; padding: 0 var(--corn-space-1); border-radius: var(--corn-radius-xs); border: var(--corn-border) solid var(--corn-line); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); color: var(--corn-text-3); }
125
+ .hx-search:focus-within .hx-kbd { display: none; }
126
+ .hx-hdr-icon { align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-2); }
127
+ .hx-hdr-icon:hover { background: var(--corn-surface-3); color: var(--corn-text); }
128
+
129
+ /* The Work toggle: opens the Work panel (forge-panel.js says in the tag which pull request is lit) */
130
+ .hx-work { display: inline-flex; align-items: center; gap: var(--corn-space-2); height: 32px; padding: 0 var(--corn-space-4); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 600; white-space: nowrap; }
131
+ .hx-work:hover { background: var(--corn-surface-3); color: var(--corn-text); }
132
+ .hx-work[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
133
+ .hx-forge-lit { padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: var(--corn-ground); color: var(--corn-warn); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
134
+
135
+ /* The account button: the initial of who is signed in (a menu glyph when nobody is) */
136
+ .hx-account-btn { display: inline-flex; align-items: center; gap: var(--corn-space-3); height: 32px; padding: 0 var(--corn-space-2) 0 var(--corn-space-1); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text-2); }
137
+ .hx-account-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
138
+ .hx-account-btn[aria-expanded="true"] { border-color: var(--corn-accent-text); }
139
+ .hx-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--corn-accent); color: var(--corn-text-on-accent); font-size: var(--corn-text-xs); font-weight: 700; }
140
+ .hx-avatar:empty::before { content: "\2630"; }
141
+
142
+ /* The account menu: a panel under the button */
143
+ .hx-menu.hx-account-menu { left: auto; right: 0; display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); width: 264px; padding: var(--corn-space-2); font-size: var(--corn-text-sm); user-select: none; }
144
+ .hx-account-who { padding: var(--corn-space-3) var(--corn-space-4) var(--corn-space-2); color: var(--corn-text-3); font-size: var(--corn-text-sm); overflow-wrap: anywhere; }
145
+ .hx-account-row { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); padding: var(--corn-space-1) var(--corn-space-4); }
146
+ .hx-account-label { color: var(--corn-text-2); }
147
+ .hx-account-seg { display: inline-flex; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); }
148
+ .hx-account-seg-btn { height: 24px; padding: 0 var(--corn-space-3); border: 0; border-radius: var(--corn-radius-xs); background: transparent; color: var(--corn-text-2); font-size: var(--corn-text-xs); font-weight: 500; }
149
+ .hx-account-seg-btn:hover { color: var(--corn-text); }
150
+ .hx-account-seg-btn[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); font-weight: 600; }
151
+ .hx-account-select { display: block; width: calc(100% - var(--corn-space-5)); height: 30px; margin: 0 var(--corn-space-3); padding: 0 var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); color: var(--corn-text); font: inherit; font-size: var(--corn-text-sm); }
152
+ .hx-account-item { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); width: 100%; min-height: 32px; padding: 0 var(--corn-space-4); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text); font-size: var(--corn-text-sm); text-align: left; text-decoration: none; }
153
+ .hx-account-item:hover { background: var(--corn-surface-3); }
154
+ .hx-account-item--sub { padding-left: var(--corn-space-6); color: var(--corn-text-2); }
155
+ .hx-account-item svg { flex: none; color: var(--corn-text-3); }
156
+ .hx-account-menu .cf-sign-out { margin: 0; }
157
+ .hx-account-menu .cf-sign-out .hx-account-item { color: var(--corn-text-2); }
158
+ .hx-account-menu .hx-links { display: flex; flex-direction: column; margin-top: var(--corn-space-2); padding-top: var(--corn-space-2); border-top: var(--corn-border) solid var(--corn-line); }
159
+ .hx-account-menu .hx-links:empty { display: none; }
160
+ .hx-account-foot { margin: var(--corn-space-1) 0 0; padding: var(--corn-space-2) var(--corn-space-4) var(--corn-space-1); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
161
+ .hx-account-foot a { color: inherit; text-decoration: none; }
162
+ .hx-account-foot a:hover { color: var(--corn-text-2); text-decoration: underline; }
163
+ .hx-account-foot:empty { display: none; }
164
+ /* Freeform layout is a switch */
165
+ .hx-switch { position: relative; flex: none; width: 28px; height: 16px; border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-3); }
166
+ .hx-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--corn-text-3); transition: transform 0.15s; }
167
+ [aria-checked="true"] > .hx-switch { background: var(--corn-accent); border-color: var(--corn-accent); }
168
+ [aria-checked="true"] > .hx-switch::after { background: var(--corn-text-on-accent); transform: translateX(12px); }
169
+ @media (prefers-reduced-motion: reduce) { .hx-switch::after { transition: none; } }
170
+ /* The Proposals list opens inside the menu, under its entry, until the Specs tab of the Work panel takes it over */
171
+ .hx-account-menu .hx-menu--proposals { position: static; width: auto; max-width: none; max-height: 40vh; margin: var(--corn-space-1) 0; padding: var(--corn-space-2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: var(--corn-surface-2); box-shadow: none; }
96
172
 
97
- .hx-brand { display: flex; align-items: center; gap: var(--corn-space-3); flex: none; padding: 0; border: 0; background: none; }
98
- .hx-title { font-size: var(--corn-text-base); font-weight: 900; letter-spacing: -0.025em; }
99
- .hx-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--corn-ok); box-shadow: 0 0 var(--corn-glow) color-mix(in srgb, var(--corn-ok) 50%, transparent); animation: hx-pulse 2s ease-in-out infinite; flex: none; }
100
- .hx-live-dot--ping { width: 8px; height: 8px; animation-name: hx-ping; }
101
- @keyframes hx-pulse { 50% { opacity: 0.5; } }
102
- @keyframes hx-ping { 0% { transform: scale(1); opacity: 1; } 75%, 100% { transform: scale(1.8); opacity: 0.2; } }
103
- @media (prefers-reduced-motion: reduce) { .hx-live-dot { animation: none; } }
173
+ @media (min-width: 768px) {
174
+ .hx-header { height: 52px; padding: 0 var(--corn-space-5); gap: var(--corn-space-5); }
175
+ .hx-header-left { gap: var(--corn-space-5); }
176
+ .hx-header-right { gap: var(--corn-space-3); }
177
+ .hx-brand { min-width: 0; min-height: 0; }
178
+ .hx-only-wide { display: inline; }
179
+ .hx-only-mobile { display: none; }
180
+ .hx-search { display: flex; }
181
+ }
182
+ /* Not for a desktop: the brand keeps its logo and shows its wordmark; with no wordmark the logo stands alone (the button keeps its name) */
183
+ @media (max-width: 767px) {
184
+ .hx-title:not(:has([data-corn="brand-wordmark"])) { display: none; }
185
+ .hx-header { padding: 0 var(--corn-space-3); }
186
+ /* Too narrow for the row (320px, or a repo's longer words): the left scrolls sideways rather than run under the right.
187
+ The padding keeps the focus rings inside the scrolled box; what sits on the map is placed from the header, so it is not clipped */
188
+ .hx-header-left { gap: var(--corn-space-1); margin-inline: calc(var(--corn-space-1) * -1); padding: var(--corn-space-1); overflow-x: auto; scrollbar-width: none; }
189
+ .hx-header-left::-webkit-scrollbar { display: none; }
190
+ .hx-header-right { gap: var(--corn-space-1); }
191
+ .hx-view { padding: 0; }
192
+ .hx-view-btn { min-width: 44px; height: 44px; padding: 0 var(--corn-space-2); }
193
+ .hx-view-fit { position: absolute; top: calc(100% + var(--corn-space-4)); right: var(--corn-space-4); width: 44px; height: 44px; margin: 0; border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); color: var(--corn-text-2); box-shadow: var(--corn-shadow); }
194
+ .hx-header .hx-layers { position: absolute; top: calc(100% + var(--corn-space-4)); left: var(--corn-space-4); }
195
+ .hx-layers-chip { height: 44px; padding: 0 var(--corn-space-5); border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); box-shadow: var(--corn-shadow); }
196
+ .hx-layers .hx-menu { width: min(288px, calc(100vw - 24px)); }
197
+ /* The live chip sits on the map too, left of Fit */
198
+ .hx-header .hx-live { position: absolute; top: calc(100% + var(--corn-space-4)); right: calc(var(--corn-space-4) + var(--corn-space-3) + 44px); }
199
+ .hx-work { height: 44px; min-width: 44px; justify-content: center; padding: 0 var(--corn-space-3); }
200
+ .hx-forge-lit { display: none; }
201
+ .hx-account-btn { width: 44px; height: 44px; justify-content: center; padding: 0; border: 0; background: none; }
202
+ .hx-account-caret { display: none; }
203
+ .hx-avatar { width: 28px; height: 28px; }
204
+ .hx-menu.hx-account-menu { width: min(300px, calc(100vw - 24px)); }
205
+ .hx-account-item, .hx-account-row { min-height: 44px; }
206
+ .hx-account-seg-btn { height: 44px; padding: 0 var(--corn-space-4); }
207
+ .hx-account-select { height: 44px; }
208
+ .hx-stage .hx-hint { top: 68px; }
209
+ }
210
+ /* ==== end of the header ============================================================================================ */
104
211
 
105
212
  .hx-btn {
106
213
  display: inline-flex;
@@ -117,21 +224,13 @@ h1, h2, h3, p { margin: 0; }
117
224
  white-space: nowrap;
118
225
  }
119
226
  .hx-btn:hover { background: var(--corn-surface-3); color: var(--corn-text); }
120
- .hx-btn:focus-visible, .hx-toggle-row:focus-visible, .hx-zoom-btn:focus-visible, .hx-textbtn:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
227
+ .hx-btn:focus-visible, .hx-toggle-row:focus-visible, .hx-textbtn:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
121
228
  .hx-btn--active, .hx-btn--active:hover { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
122
- .hx-btn--dim { color: var(--corn-text-3); border-color: var(--corn-line-soft); } /* dimmed by its colours, not by opacity: opacity would take the text below AA */
123
- .hx-btn--dim:hover { color: var(--corn-text-2); }
124
229
  .hx-btn--quiet { font-weight: 500; color: var(--corn-text-3); }
125
230
  .hx-btn--icon { width: 28px; height: 28px; padding: 0; justify-content: center; font-size: var(--corn-text-base); }
126
- .hx-btn--preset { border-color: color-mix(in srgb, var(--corn-hue-orange) 35%, transparent); color: var(--corn-hue-orange); }
127
- .hx-btn--preset:hover { background: color-mix(in srgb, var(--corn-hue-orange) 15%, transparent); color: color-mix(in srgb, var(--corn-hue-orange) 60%, var(--corn-text)); }
128
- .hx-btn--preset.hx-btn--active { background: var(--corn-hue-orange); border-color: var(--corn-hue-orange); color: var(--corn-ground); }
129
231
  .hx-btn--rom { width: 100%; justify-content: center; margin-top: var(--corn-space-1); padding: var(--corn-space-2); background: color-mix(in srgb, var(--corn-hue-fuchsia) 20%, transparent); border-color: color-mix(in srgb, var(--corn-hue-fuchsia) 40%, transparent); color: color-mix(in srgb, var(--corn-hue-fuchsia) 60%, var(--corn-text)); font-weight: 700; }
130
232
  .hx-btn--rom:hover { background: color-mix(in srgb, var(--corn-hue-fuchsia) 30%, transparent); }
131
233
 
132
- .hx-dots { display: inline-flex; }
133
- .hx-dots span { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 var(--corn-border) var(--corn-ground); margin-left: calc(var(--corn-space-1) * -1); }
134
- .hx-dots span:first-child { margin-left: 0; }
135
234
 
136
235
  .hx-input {
137
236
  width: 128px;
@@ -150,27 +249,7 @@ h1, h2, h3, p { margin: 0; }
150
249
  .hx-input::placeholder { color: var(--corn-text-3); }
151
250
  .hx-input--wide, .hx-input--wide:focus { width: 100%; flex: 1; }
152
251
 
153
- .hx-zoom { display: none; align-items: center; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 80%, transparent); }
154
- .hx-zoom-btn { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font-weight: 700; font-size: var(--corn-text-sm); }
155
- .hx-zoom-btn:hover { background: var(--corn-surface-2); color: var(--corn-text); }
156
- .hx-zoom-btn--accent { color: var(--corn-accent-text); }
157
252
 
158
- .hx-chip-link { display: none; align-items: center; gap: var(--corn-space-1); padding: var(--corn-space-1) var(--corn-space-3); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid; font-size: var(--corn-text-sm); font-weight: 500; text-decoration: none; transition: background 0.15s; }
159
- .hx-dot-sm { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
160
- .hx-chip-link--indigo { color: var(--corn-accent-text); background: color-mix(in srgb, var(--corn-accent-hover) 10%, transparent); border-color: color-mix(in srgb, var(--corn-accent-hover) 20%, transparent); }
161
- .hx-chip-link--pink { color: var(--corn-hue-pink); background: color-mix(in srgb, var(--corn-hue-pink) 10%, transparent); border-color: color-mix(in srgb, var(--corn-hue-pink) 20%, transparent); }
162
- .hx-chip-link--purple { color: var(--corn-edit-text); background: color-mix(in srgb, var(--corn-edit) 10%, transparent); border-color: color-mix(in srgb, var(--corn-edit) 20%, transparent); }
163
- .hx-chip-link:hover { background: var(--corn-line); }
164
-
165
- .hx-search { display: none; }
166
- .hx-only-wide { display: none; }
167
- @media (min-width: 640px) {
168
- .hx-search { display: block; }
169
- .hx-zoom { display: flex; }
170
- .hx-only-mobile { display: none !important; }
171
- }
172
- @media (min-width: 768px) { .hx-only-wide { display: inline; } }
173
- @media (min-width: 1280px) { .hx-chip-link { display: inline-flex; } }
174
253
 
175
254
  /* ---- layers menu ------------------------------------------------------------------------- */
176
255
  .hx-menu-wrap { position: relative; flex: none; }
@@ -233,8 +312,6 @@ h1, h2, h3, p { margin: 0; }
233
312
  .hx-hint span:last-child { overflow: hidden; text-overflow: ellipsis; }
234
313
  @media (min-width: 640px) { .hx-hint { font-size: var(--corn-text-xs); } }
235
314
 
236
- .hx-mobile-zoom { position: absolute; bottom: 16px; right: 12px; display: flex; flex-direction: column; gap: var(--corn-space-1); padding: var(--corn-space-1); border-radius: var(--corn-radius); z-index: 20; }
237
- .hx-mobile-zoom .hx-zoom-btn { width: 32px; height: 32px; background: var(--corn-surface-2); color: var(--corn-text); border-radius: var(--corn-radius-sm); }
238
315
 
239
316
  .hx-mobile-search { position: absolute; top: 56px; left: 0; right: 0; display: flex; align-items: center; gap: var(--corn-space-3); padding: var(--corn-space-3); z-index: 30; }
240
317
 
@@ -310,9 +387,6 @@ h1, h2, h3, p { margin: 0; }
310
387
  .hx-open:hover { background: var(--corn-accent-hover); }
311
388
 
312
389
  /* ---- proposals (proposal.js): picker, bar, marks, panel rows ----------------------------------- */
313
- .hx-btn--proposal { border-color: color-mix(in srgb, var(--corn-added) 35%, transparent); color: var(--corn-added-text); }
314
- .hx-btn--proposal:hover { background: color-mix(in srgb, var(--corn-added) 14%, transparent); color: var(--corn-added-text); }
315
- .hx-btn--proposal[aria-expanded="true"] { background: color-mix(in srgb, var(--corn-added) 20%, transparent); border-color: var(--corn-added); color: var(--corn-added-text); }
316
390
 
317
391
  .hx-menu--proposals { width: 360px; }
318
392
  .hx-proposal-list { display: flex; flex-direction: column; gap: var(--corn-space-1); }
@@ -549,8 +623,6 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
549
623
  .hx-sheet-handle:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: -2px; border-radius: var(--corn-radius); }
550
624
  .hx-backdrop { display: none; }
551
625
  .hx-stage[data-sheet-open="drawer"] .hx-backdrop:not([hidden]) { display: block; }
552
- /* The zoom buttons ride above the sheets */
553
- .hx-mobile-zoom { bottom: calc(16px + var(--hx-covered, 0px)); }
554
626
 
555
627
  /* The proposal bar */
556
628
  .hx-proposal-bar { max-height: 50dvh; overflow-y: auto; padding: 0 var(--corn-space-4) var(--corn-space-3); }
@@ -600,11 +672,11 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
600
672
  .hx-live-help code { font-family: var(--corn-mono); font-size: var(--corn-text-2xs); color: var(--corn-text-2); overflow-wrap: anywhere; }
601
673
  .hx-live-second { font-size: var(--corn-text-xs); }
602
674
  .hx-live-buttons { display: inline-flex; gap: var(--corn-space-2); }
603
- @media (max-width: 639px) {
604
- .hx-menu--live { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
675
+ /* On a phone the chip is its dot on the map (its line is in the menu), and the menu spans the screen under it */
676
+ @media (max-width: 767px) {
677
+ .hx-live-chip { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--corn-radius-pill); background: var(--corn-surface-1); box-shadow: var(--corn-shadow); }
678
+ .hx-menu--live { position: fixed; top: calc(56px + var(--corn-space-4) + 44px); left: 12px; right: 12px; width: auto; max-width: none; }
605
679
  }
606
- /* On a phone the chip is its dot (its line is in the menu), and the header keeps one row */
607
- @media (max-width: 767px) { .hx-live-chip { width: 28px; height: 28px; padding: 0; justify-content: center; } }
608
680
 
609
681
  /* ── Checked scenarios (PHY-10, check.js): the step's state on the player bar and the phone's sheet ──
610
682
  The pill sits in the head, so the phone's peek shows it; the line and the As row are the expanded part. */
@@ -662,37 +734,9 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
662
734
  .hx-drawer-title:focus { outline: none; }
663
735
  .hx-drawer-title:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: 2px; }
664
736
 
665
- /* Sign out (when sign-in is on): a form in the header, inline with the links */
666
- .cf-sign-out { display: inline-flex; margin: 0; }
667
- .cf-sign-out-icon { display: none; }
668
- /* A narrow phone, signed in, with Issues & PRs: the header keeps one row by showing the brand's dot without its
669
- title (the button keeps its name) and Sign out as its icon (its words stay for a screen reader), so every control
670
- keeps at least a 24px target (WCAG 2.5.8) */
671
- @media (max-width: 479px) {
672
- .hx-brand .hx-title { display: none; }
673
- .hx-brand { min-width: 24px; min-height: 24px; justify-content: center; }
674
- .hx-header .hx-btn { min-width: 24px; }
675
- .cf-sign-out .hx-btn { width: 28px; height: 28px; padding: 0; justify-content: center; }
676
- .cf-sign-out-icon { display: inline; font-size: var(--corn-text-base); }
677
- .cf-sign-out-text { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
678
- }
679
- /* Narrower still (320px, the reflow width): the left of the header scrolls sideways rather than running under the
680
- right, so nothing overlaps; its menus open fixed under the header, as the Proposals and Live menus already do there,
681
- so the scroll cannot clip them. The padding keeps the focus rings inside the scrolled box. */
682
- @media (max-width: 639px) {
683
- .hx-header-left { overflow-x: auto; scrollbar-width: none; padding-block: var(--corn-space-1); }
684
- .hx-header-left::-webkit-scrollbar { display: none; }
685
- #legend-dropdown.hx-menu { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
686
- }
687
-
688
737
  /* ---- the issues and PRs panel (forge-panel.js, CF-07) -------------------------------------------
689
738
  A slide-over from the left from 768px (the node panel is the one from the right), a bottom sheet in #sheet-dock below.
690
739
  Closed, it is inert (forge-panel.js), and off screen or not displayed. Only the tokens above are used, so it follows the theme. */
691
- .hx-btn--forge { border-color: var(--corn-line); }
692
- .hx-btn--forge[aria-expanded="true"] { background: var(--corn-accent); border-color: var(--corn-accent-text); color: var(--corn-text-on-accent); }
693
- .hx-forge-lit { padding: 0 var(--corn-space-2); border-radius: var(--corn-radius-pill); border: var(--corn-border) solid var(--corn-warn); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); color: var(--corn-warn); font-family: var(--corn-mono); font-size: var(--corn-text-2xs); }
694
- @media (max-width: 767px) { .hx-btn--forge { width: 28px; height: 28px; padding: 0; justify-content: center; } .hx-forge-lit { display: none; } }
695
- /* A changed file's status column, and the nodes under it that line up past it */
696
740
  .hx-forge { --hx-forge-status-w: 56px; }
697
741
  .hx-forge { display: flex; flex-direction: column; z-index: 40; border-color: var(--corn-surface-2); pointer-events: none; touch-action: pan-y; transition: transform 0.2s ease-out; }
698
742
  .hx-forge * { touch-action: pan-y; }
@@ -704,14 +748,14 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
704
748
  .hx-forge { position: absolute; top: 0; left: 0; bottom: 0; width: var(--hx-forge-w); border-left: 0; transform: translateX(-100%); box-shadow: var(--corn-shadow-lg); }
705
749
  .hx-forge.forge-open { transform: translateX(0); }
706
750
  /* The proposal bar and the player make room for it: 12px past its edge, and the node panel's 480px (+24) when that is open too */
707
- .hx-stage:has(.forge-open) .hx-proposal-bar { left: calc(var(--hx-forge-w) + 12px); width: min(720px, calc(100% - var(--hx-forge-w) - 36px)); }
708
- .hx-stage:has(.forge-open):has(.drawer-open) .hx-proposal-bar { width: min(720px, calc(100% - var(--hx-forge-w) - 540px)); }
751
+ .hx-stage:has(.forge-open) .hx-proposal-bar { left: calc(var(--hx-forge-w) + 12px); width: min(960px, calc(100% - var(--hx-forge-w) - 36px)); }
752
+ .hx-stage:has(.forge-open):has(.drawer-open) .hx-proposal-bar { width: min(960px, calc(100% - var(--hx-forge-w) - 540px)); }
709
753
  }
710
754
  @media (max-width: 767px) {
711
755
  .hx-forge:not(.forge-open) { display: none; }
712
756
  .hx-forge { max-height: 60dvh; }
713
757
  .hx-forge[data-sheet-state="peek"] .hx-forge-body { flex: none; padding: 0 var(--corn-space-5) var(--corn-space-3); gap: var(--corn-space-1); overflow: hidden; }
714
- .hx-forge[data-sheet-state="peek"] .hx-forge-body > :not(.hx-forge-head):not(#forge-status) { display: none; }
758
+ .hx-forge[data-sheet-state="peek"] .hx-forge-body > :not(.hx-forge-head):not(#forge-bar), .hx-forge[data-sheet-state="peek"] #forge-filter-chip { display: none; }
715
759
  .hx-forge[data-sheet-state="peek"] .hx-forge-head { padding-bottom: 0; border-bottom: 0; }
716
760
  .hx-forge[data-sheet-state="peek"] .hx-forge-head .hx-btn { display: none; }
717
761
  }
@@ -720,11 +764,25 @@ button.hx-proposal-item:focus-visible { outline: var(--corn-focus-width) solid v
720
764
  .hx-forge-head { display: flex; align-items: center; gap: var(--corn-space-3); padding-bottom: var(--corn-space-3); border-bottom: var(--corn-border) solid var(--corn-surface-2); }
721
765
  .hx-forge-head .hx-drawer-title { flex: 1; min-width: 0; }
722
766
  .hx-forge-status, .hx-forge-rate { font-size: var(--corn-text-xs); line-height: 1.5; }
723
- .hx-forge-controls { display: flex; flex-direction: column; gap: var(--corn-space-3); }
724
- .hx-forge-tabs { display: inline-flex; align-self: flex-start; padding: calc(var(--corn-space-1) / 2); border-radius: var(--corn-radius-sm); border: var(--corn-border) solid var(--corn-line); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
725
- .hx-forge-tab { padding: var(--corn-space-1) var(--corn-space-4); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-3); font-size: var(--corn-text-sm); font-weight: 500; }
767
+ .hx-forge-controls { display: flex; flex-direction: column; gap: var(--corn-space-3); padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius); background: var(--corn-surface-2); } /* the Filter chip's box */
768
+ /* The tabs, in the order of the loop: underlined here, pills that scroll sideways on a phone (below) */
769
+ .hx-forge-tabs { display: flex; gap: calc(var(--corn-space-1) / 2); margin: 0 calc(var(--corn-space-4) * -1); padding: 0 var(--corn-space-4); border-bottom: var(--corn-border) solid var(--corn-line); overflow-x: auto; scrollbar-width: none; }
770
+ .hx-forge-tabs::-webkit-scrollbar { display: none; }
771
+ .hx-forge-tab { flex: none; display: inline-flex; align-items: baseline; gap: var(--corn-space-1); padding: var(--corn-space-2) var(--corn-space-3) var(--corn-space-3); border: 0; border-bottom: var(--corn-border-strong) solid transparent; background: none; white-space: nowrap; color: var(--corn-text-2); font-size: var(--corn-text-sm); font-weight: 500; }
726
772
  .hx-forge-tab:hover { color: var(--corn-text); }
727
- .hx-forge-tab[aria-pressed="true"] { background: var(--corn-accent); color: var(--corn-text-on-accent); box-shadow: var(--corn-shadow-sm); }
773
+ .hx-forge-tab[aria-pressed="true"] { border-bottom-color: var(--corn-accent); color: var(--corn-text); font-weight: 600; }
774
+ .hx-forge-tab:focus-visible, .hx-forge-chip:focus-visible, .hx-forge-back:focus-visible { outline: var(--corn-focus-width) solid var(--corn-focus); outline-offset: -2px; }
775
+ .hx-forge-count { color: var(--corn-text-3); font-size: var(--corn-text-xs); font-weight: 500; }
776
+ .hx-forge-count[hidden] { display: none; }
777
+ /* The status line and the Filter chip; the focus is put on the title (a heading, tabindex -1) when the panel opens, so it shows no ring */
778
+ .hx-forge-body > * { flex-shrink: 0; } /* a tall detail scrolls the body; it must not squash the tabs */
779
+ .hx-forge .hx-drawer-title:focus-visible, .hx-forge-notes-title:focus-visible { outline: none; }
780
+ .hx-forge-bar { display: flex; align-items: center; gap: var(--corn-space-3); min-height: 28px; }
781
+ .hx-forge-bar .hx-forge-status { flex: 1; min-width: 0; }
782
+ .hx-forge-chip { flex: none; display: inline-flex; align-items: center; gap: var(--corn-space-1); min-height: 24px; padding: 0 var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); background: none; color: var(--corn-text-2); font-size: var(--corn-text-xs); }
783
+ .hx-forge-chip:hover { background: var(--corn-surface-3); color: var(--corn-text); }
784
+ .hx-forge-chip[aria-expanded="true"], .hx-forge-chip.is-on { border-color: var(--corn-accent); color: var(--corn-text); }
785
+ .hx-forge-bar[hidden], .hx-forge-chip[hidden], .hx-forge-controls[hidden], .hx-forge-foot[hidden], .hx-forge-detail[hidden], .hx-forge-notes[hidden] { display: none; }
728
786
  .hx-forge-filters { display: grid; grid-template-columns: 1fr 1fr; gap: var(--corn-space-2) var(--corn-space-3); }
729
787
  .hx-forge-field { display: flex; flex-direction: column; gap: calc(var(--corn-space-1) / 2); min-width: 0; font-size: var(--corn-text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-3); }
730
788
  .hx-forge-field--text { grid-column: 1 / -1; }
@@ -757,10 +815,11 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface
757
815
  .hx-forge-state--draft, .hx-forge-state--running, .hx-forge-state--queued { color: var(--corn-warn); }
758
816
  .hx-forge-state--neutral, .hx-forge-state--skipped, .hx-forge-state--cancelled { color: var(--corn-text-3); }
759
817
 
760
- .hx-forge-detail { display: flex; flex-direction: column; gap: var(--corn-space-2); padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-accent-text); border-radius: var(--corn-radius); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); }
761
- .hx-forge-detail-head { display: flex; align-items: center; justify-content: space-between; gap: var(--corn-space-3); }
762
- .hx-forge-detail-title { min-width: 0; font-size: var(--corn-text-md); font-weight: 700; color: var(--corn-text); overflow-wrap: anywhere; }
763
- .hx-forge-sub, .hx-forge-subact, .hx-forge-runs-title, .hx-forge-confirm-title { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-2); }
818
+ .hx-forge-detail { display: flex; flex-direction: column; gap: var(--corn-space-3); }
819
+ .hx-forge-detail-title, .hx-forge-notes-title { margin: 0; min-width: 0; font-size: var(--corn-text-lg); font-weight: 700; letter-spacing: -0.01em; color: var(--corn-text); overflow-wrap: anywhere; }
820
+ /* A section's label, in sentence case */
821
+ .hx-forge-sub, .hx-forge-subact, .hx-forge-runs-title { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-sm); font-weight: 600; color: var(--corn-text-3); }
822
+ .hx-forge-confirm-title { margin: var(--corn-space-1) 0 0; font-size: var(--corn-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn-text-2); }
764
823
  .hx-forge-check { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--corn-space-1) / 2) var(--corn-space-2); }
765
824
  .hx-forge-check .hx-link { display: inline-flex; align-items: center; min-height: 24px; }
766
825
  .hx-forge-lights { flex-basis: 100%; font-size: var(--corn-text-xs); line-height: 1.5; }
@@ -769,7 +828,6 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface
769
828
  .hx-forge-fstatus { flex: none; min-width: var(--hx-forge-status-w); color: var(--corn-text-3); font-size: var(--corn-text-xs); }
770
829
  .hx-forge-del { color: var(--corn-bad); }
771
830
  .hx-forge-act { align-self: flex-start; min-height: 24px; padding: calc(var(--corn-space-1) / 2) var(--corn-space-3); }
772
- .hx-forge-detail > .hx-forge-act { padding: var(--corn-space-2) var(--corn-space-4); }
773
831
  .hx-forge-why { margin: 0; font-size: var(--corn-text-xs); line-height: 1.5; }
774
832
  .hx-forge-step { display: flex; flex-direction: column; gap: var(--corn-space-1); }
775
833
  .hx-forge-startspec { flex: none; align-self: center; }
@@ -820,6 +878,35 @@ a.hx-forge-row:hover, button.hx-forge-row:hover { background: var(--corn-surface
820
878
  .hx-forge-confirm { padding: var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-left: calc(var(--corn-border-strong) * 2) solid var(--corn-added-text); border-radius: var(--corn-radius); background: color-mix(in srgb, var(--corn-ground) 55%, transparent); line-height: 1.5; }
821
879
  .hx-forge-runs { display: flex; flex-direction: column; gap: var(--corn-space-2); margin: var(--corn-space-1) 0 var(--corn-space-3); }
822
880
  .hx-forge-runs[hidden] { display: none; }
881
+ /* A Specs row: title and state on one line, a line of what it is, the facts */
882
+ .hx-forge-line { display: flex; align-items: center; gap: var(--corn-space-3); }
883
+ .hx-forge-line .hx-forge-title { flex: 1; min-width: 0; }
884
+ .hx-forge-sum { color: var(--corn-text-2); line-height: 1.4; overflow-wrap: anywhere; }
885
+ .hx-forge-facts { display: flex; flex-wrap: wrap; gap: 0 var(--corn-space-3); }
886
+ .hx-forge-add { color: var(--corn-added-text); }
887
+ .hx-forge-chg { color: var(--corn-warn); }
888
+ /* A selection replaces the list, with a back control named by the list; Land it is the one primary action */
889
+ .hx-forge-back { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--corn-space-2); min-height: 28px; margin-left: calc(var(--corn-space-2) * -1); padding: 0 var(--corn-space-3) 0 var(--corn-space-2); border: 0; border-radius: var(--corn-radius-sm); background: none; color: var(--corn-text-2); font-size: var(--corn-text-xs); }
890
+ .hx-forge-back:hover { background: var(--corn-surface-3); color: var(--corn-text); }
891
+ .hx-forge-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-1) var(--corn-space-3); }
892
+ .hx-forge-cta { display: flex; flex-wrap: wrap; gap: var(--corn-space-3); }
893
+ .hx-forge-cta .hx-btn { min-height: 32px; justify-content: center; }
894
+ .hx-forge-cta .hx-btn--approve { flex: 1; }
895
+ .hx-forge-cta .hx-btn[disabled] { background: var(--corn-surface-3); border-color: var(--corn-line); color: var(--corn-text-3); box-shadow: none; cursor: default; }
896
+ .hx-forge-open { text-decoration: none; color: var(--corn-text-2); }
897
+ .hx-forge-runline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--corn-space-2); padding: var(--corn-space-2) var(--corn-space-3); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-sm); background: var(--corn-surface-2); }
898
+ /* The foot of a list: Release notes … on PRs, New idea on Specs and Threads */
899
+ .hx-forge-foot { display: flex; flex-direction: column; gap: var(--corn-space-3); margin-top: auto; padding-top: var(--corn-space-3); border-top: var(--corn-border) solid var(--corn-line); }
900
+ .hx-forge-foot > .hx-btn { align-self: flex-start; }
901
+ /* A phone: the tabs are pills, and everything a thumb has to hit is 44px */
902
+ @media (max-width: 767px) {
903
+ .hx-forge-tabs { gap: var(--corn-space-2); padding-bottom: var(--corn-space-3); border-bottom: 0; }
904
+ .hx-forge-tab { align-items: center; min-height: 44px; padding: 0 var(--corn-space-4); border: var(--corn-border) solid var(--corn-line); border-radius: var(--corn-radius-pill); }
905
+ .hx-forge-tab[aria-pressed="true"] { background: var(--corn-accent); border-color: var(--corn-accent); color: var(--corn-text-on-accent); }
906
+ .hx-forge-tab[aria-pressed="true"] .hx-forge-count { color: inherit; }
907
+ .hx-forge .hx-btn, .hx-forge .hx-close, .hx-forge-chip, .hx-forge-back, .hx-forge-node, .hx-forge-toggle, .hx-forge-select, .hx-forge-input, .hx-forge-check .hx-link, .hx-forge-out { min-height: 44px; min-width: 44px; }
908
+ .hx-forge .hx-close { display: inline-flex; align-items: center; justify-content: center; }
909
+ }
823
910
 
824
911
  /* Threads (forge-panel.js, docs/threads.md): messages as written, read-only; a node's "Threads" opens one */
825
912
  .hx-thread-msgs { display: flex; flex-direction: column; gap: var(--corn-space-3); margin: 0; padding: 0; list-style: none; }
@@ -406,7 +406,7 @@ export function mergeBlock(detail) {
406
406
  if (!checks.length) return 'It has no checks, so nothing says it works.';
407
407
  const words = { queued: 'is waiting to run', running: 'is still running', failure: 'failed', cancelled: 'was cancelled' };
408
408
  const not = checks.filter((c) => !GREEN.includes(c.state));
409
- if (not.length) return `Not every check is green: ${not.map((c) => `${c.name} ${words[c.state] || c.state}`).join('; ')}.`;
409
+ if (not.length) return `Can't land yet: ${not.map((c) => `${c.name} ${words[c.state] || c.state}`).join(', ')}.`;
410
410
  if (detail.stale) return 'This is an older answer from the forge: refresh before landing it.';
411
411
  return null;
412
412
  }