@vitrinka/web 0.5.2 → 0.6.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/CHANGELOG.md +73 -3
- package/README.md +70 -18
- package/build/hud.iife.js +150 -28
- package/build/protocol/index.d.ts +10 -0
- package/build/recorder/capture/click.js +2 -2
- package/build/recorder/capture/nav.js +1 -1
- package/build/recorder/capture/redact.d.ts +10 -2
- package/build/recorder/capture/redact.js +53 -3
- package/build/recorder/config.d.ts +10 -0
- package/build/recorder/config.js +1 -0
- package/build/recorder/flight.d.ts +5 -0
- package/build/recorder/flight.js +5 -2
- package/build/recorder/hud/Hud.js +206 -31
- package/build/recorder/hud/NotesSheet.d.ts +24 -0
- package/build/recorder/hud/NotesSheet.js +147 -0
- package/build/recorder/hud/RecorderPill.d.ts +34 -12
- package/build/recorder/hud/RecorderPill.js +52 -14
- package/build/recorder/hud/Sheet.d.ts +18 -15
- package/build/recorder/hud/Sheet.js +13 -13
- package/build/recorder/hud/controller.d.ts +81 -4
- package/build/recorder/hud/drop.d.ts +26 -0
- package/build/recorder/hud/drop.js +35 -0
- package/build/recorder/hud/icons.d.ts +6 -0
- package/build/recorder/hud/icons.js +12 -0
- package/build/recorder/hud/notes-rows.d.ts +39 -0
- package/build/recorder/hud/notes-rows.js +49 -0
- package/build/recorder/hud/resize.d.ts +6 -3
- package/build/recorder/hud/resize.js +8 -4
- package/build/recorder/hud/styles.d.ts +1 -19
- package/build/recorder/hud/styles.js +62 -19
- package/build/recorder/index.d.ts +8 -0
- package/build/recorder/index.js +1 -0
- package/build/recorder/page-controller.js +13 -7
- package/build/recorder/queue.d.ts +22 -1
- package/build/recorder/queue.js +84 -5
- package/build/recorder/recents.d.ts +20 -4
- package/build/recorder/recents.js +41 -6
- package/build/recorder/report.js +3 -11
- package/build/recorder/session.d.ts +25 -6
- package/build/recorder/session.js +53 -11
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,11 @@ export interface HudPrefs {
|
|
|
21
21
|
verbose: boolean;
|
|
22
22
|
/** The note / annotate / report sheet's width, CSS px; 0 = the HUD's default. */
|
|
23
23
|
sheetW: number;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The height its text box was dragged to, CSS px: it never stands shorter
|
|
26
|
+
* and still grows with its draft (a minimum, HUD polish D8); 0 = the HUD's
|
|
27
|
+
* default (fit the draft, up to 20 rows).
|
|
28
|
+
*/
|
|
25
29
|
sheetH: number;
|
|
26
30
|
}
|
|
27
31
|
/** Who the recorder token belongs to (`GET /api/v1/recorder/me`). */
|
|
@@ -56,6 +60,32 @@ export interface HudSync {
|
|
|
56
60
|
events: number;
|
|
57
61
|
serverMaxSeq: number;
|
|
58
62
|
deadReason: string;
|
|
63
|
+
/** What the server acknowledged from this tab, by kind (the stats float). Absent = the host does not count. */
|
|
64
|
+
acked?: HudAcked;
|
|
65
|
+
/** Client ids of this tab's notes not yet acknowledged; the "Saved" flash waits for its note to leave. */
|
|
66
|
+
pendingNotes?: readonly string[];
|
|
67
|
+
}
|
|
68
|
+
/** Acknowledged deliveries, as a tester names them. */
|
|
69
|
+
export interface HudAcked {
|
|
70
|
+
/** Clicks. */
|
|
71
|
+
actions: number;
|
|
72
|
+
/** Navigations. */
|
|
73
|
+
pages: number;
|
|
74
|
+
/** DOM frames (rrweb events). */
|
|
75
|
+
frames: number;
|
|
76
|
+
/** Notes and annotations. */
|
|
77
|
+
notes: number;
|
|
78
|
+
}
|
|
79
|
+
/** The server's board build of a saved session (`GET /api/v1/sessions/{id}` → `projection`). */
|
|
80
|
+
export interface HudProjection {
|
|
81
|
+
state: 'idle' | 'queued' | 'running' | 'ready' | 'empty' | 'failed';
|
|
82
|
+
/** What the running pass is doing, in the server's words. */
|
|
83
|
+
step?: string;
|
|
84
|
+
done?: number;
|
|
85
|
+
total?: number;
|
|
86
|
+
error?: string;
|
|
87
|
+
/** A failed build another `POST …/project` may fix. */
|
|
88
|
+
retryable?: boolean;
|
|
59
89
|
}
|
|
60
90
|
export interface HudRecording {
|
|
61
91
|
sessionId: string;
|
|
@@ -80,6 +110,8 @@ export interface HudRecent {
|
|
|
80
110
|
durationMs?: number;
|
|
81
111
|
status: HudRecentStatus;
|
|
82
112
|
boardUrl?: string;
|
|
113
|
+
/** The board build while the HUD waits for it; absent once the link is known or nobody polls. */
|
|
114
|
+
projection?: HudProjection;
|
|
83
115
|
}
|
|
84
116
|
export interface HudSnapshot {
|
|
85
117
|
/** Something to authenticate with (an explicit key or a stored link). */
|
|
@@ -116,6 +148,13 @@ export interface HudSnapshot {
|
|
|
116
148
|
* stays) and binds no shortcut. Absent = this HUD's host leads or is idle.
|
|
117
149
|
*/
|
|
118
150
|
following?: 'page' | 'extension';
|
|
151
|
+
/**
|
|
152
|
+
* With `following`: the leader records in ANOTHER document (it holds no
|
|
153
|
+
* claim here), so this document shows no pill of its own — the HUD then
|
|
154
|
+
* shows a quiet "Recording in another tab" instead of hiding (HUD polish
|
|
155
|
+
* D11). False or absent: the leader's pill is in this document.
|
|
156
|
+
*/
|
|
157
|
+
followingElsewhere?: boolean;
|
|
119
158
|
}
|
|
120
159
|
/** The pill's inline flow face (`hud/flow.ts`), as `faceChanged` reports it. */
|
|
121
160
|
export type HudFace = 'none' | 'confirm' | 'saving' | 'saved' | 'failed';
|
|
@@ -149,14 +188,37 @@ export interface HudRect {
|
|
|
149
188
|
w: number;
|
|
150
189
|
h: number;
|
|
151
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* A note's identity (D6/D7): the HUD mints `cid`; `replaces` supersedes the
|
|
193
|
+
* named note (an edit), `refs` points at others. Client ids, never seqs.
|
|
194
|
+
*/
|
|
195
|
+
export interface HudNoteLink {
|
|
196
|
+
cid: string;
|
|
197
|
+
replaces?: string;
|
|
198
|
+
refs?: readonly string[];
|
|
199
|
+
}
|
|
152
200
|
export interface HudAnnotation {
|
|
153
201
|
text: string;
|
|
154
202
|
rect: HudRect;
|
|
155
203
|
/** '' for a free region. */
|
|
156
204
|
selector: string;
|
|
157
|
-
/** Also file it as an intake task. */
|
|
158
|
-
task: boolean;
|
|
159
205
|
attachments?: readonly HudAttachment[];
|
|
206
|
+
link?: HudNoteLink;
|
|
207
|
+
}
|
|
208
|
+
/** One note of the live recording, as `listNotes` keeps it. */
|
|
209
|
+
export interface HudNote {
|
|
210
|
+
cid: string;
|
|
211
|
+
text: string;
|
|
212
|
+
/** Epoch ms of capture. */
|
|
213
|
+
at: number;
|
|
214
|
+
route: string;
|
|
215
|
+
/** A region / element annotation, or a plain note. */
|
|
216
|
+
region: boolean;
|
|
217
|
+
/** CSS-pixel size of the region, when it is one. */
|
|
218
|
+
w?: number;
|
|
219
|
+
h?: number;
|
|
220
|
+
replaces?: string;
|
|
221
|
+
refs?: readonly string[];
|
|
160
222
|
}
|
|
161
223
|
/** What "Report a bug" sends from the sheet. */
|
|
162
224
|
export interface HudReport {
|
|
@@ -187,8 +249,23 @@ export interface HudController {
|
|
|
187
249
|
/** Drains, then closes the session; rejects (session kept) while unreachable. */
|
|
188
250
|
stop(): Promise<HudSaved>;
|
|
189
251
|
/** `attachments` only when `canAttach`; with them, `text` may be empty. */
|
|
190
|
-
note(text: string, attachments?: readonly HudAttachment[]): void;
|
|
252
|
+
note(text: string, attachments?: readonly HudAttachment[], link?: HudNoteLink): void;
|
|
191
253
|
annotate(a: HudAnnotation): void;
|
|
254
|
+
/**
|
|
255
|
+
* The live recording's notes, every tab's, oldest first — what the notes
|
|
256
|
+
* sheet lists (a recorder token reads nothing back from the server, so the
|
|
257
|
+
* host keeps them on the device for the recording's life). Optional; never
|
|
258
|
+
* rejects (null = no live recording).
|
|
259
|
+
*/
|
|
260
|
+
listNotes?(): Promise<HudNote[] | null>;
|
|
261
|
+
/**
|
|
262
|
+
* The picked region's pixels, for the composer's thumbnail (D15): a data
|
|
263
|
+
* URL, or null where the host cannot read pixels (the page recorder never
|
|
264
|
+
* can — it simply omits this). Never rejects.
|
|
265
|
+
*/
|
|
266
|
+
captureRegion?(rect: HudRect): Promise<string | null>;
|
|
267
|
+
/** Ask the server to build a saved session's board again (a retryable failure). Rejects with the reason. */
|
|
268
|
+
retryBuild?(sessionId: string): Promise<void>;
|
|
192
269
|
setAnnotating(active: boolean): void;
|
|
193
270
|
link(): Promise<HudLinkFlow>;
|
|
194
271
|
unlink(): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The draft drop (recorder HUD polish D10/D13/D14): a composer closed with
|
|
3
|
+
* words or images in it parks as a 16px glass bead fused to the pill's end
|
|
4
|
+
* that faces the screen's centre — a small liquid fillet joins them. At rest
|
|
5
|
+
* it is the bead and an amber dot; hovered or focused it stretches into a bar
|
|
6
|
+
* with the draft's crop (when the host had pixels) and first line; a click
|
|
7
|
+
* resumes the composer exactly as it was. No page chrome: the region is not
|
|
8
|
+
* drawn while the draft waits (D14).
|
|
9
|
+
*
|
|
10
|
+
* Not an SVG goo filter: a filter on the pill's ancestor would cut its
|
|
11
|
+
* backdrop blur, and `url(#…)` filter references are unreliable inside a
|
|
12
|
+
* shadow root. The fillet is drawn, the bead is the HUD's own glass.
|
|
13
|
+
*/
|
|
14
|
+
import type { ReactElement } from 'react';
|
|
15
|
+
export interface DraftDropProps {
|
|
16
|
+
/** The draft's first line ('' for an image-only draft). */
|
|
17
|
+
text: string;
|
|
18
|
+
/** The picked region's pixels, when the host could read them (D15). */
|
|
19
|
+
crop: string | null;
|
|
20
|
+
/** Which side of the pill it buds from: the one toward the screen's centre. */
|
|
21
|
+
side: 'start' | 'end';
|
|
22
|
+
onResume: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function DraftDrop({ text, crop, side, onResume }: DraftDropProps): ReactElement;
|
|
25
|
+
/** The drop's CSS (appended to HUD_CSS). */
|
|
26
|
+
export declare const DROP_CSS = "\n.draft { position:relative; display:flex; align-items:center; flex:none; }\n.draft[data-side=\"start\"] { order:-1; margin-right:-1px; }\n.draft[data-side=\"end\"] { order:1; margin-left:-1px; flex-direction:row-reverse; }\n.draft .fillet { width:8px; height:16px; flex:none; overflow:visible; }\n.draft .fillet .f-body { fill:var(--ink-pop); }\n.draft .fillet .f-rim { fill:none; stroke:rgba(255,255,255,.16); stroke-width:1; vector-effect:non-scaling-stroke; }\n.draft[data-side=\"start\"] .fillet { order:1; transform:scaleX(-1); }\n.hud .draft .bead { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; height:18px; min-width:18px;\n padding:0 5px; border-radius:999px; color:var(--fg); font-size:calc(var(--fs) - 1px); font-weight:600;\n background:var(--ink); -webkit-backdrop-filter:blur(16px) saturate(1.5); backdrop-filter:blur(16px) saturate(1.5);\n box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 6px 16px -8px rgba(0,0,0,.5);\n animation: drop-in var(--duration-medium) var(--ease-spring) both;\n transition: height var(--duration-fast) var(--ease-smooth-out); }\n.draft .d-dot { width:8px; height:8px; flex:none; border-radius:50%; background:var(--warn); }\n.draft .d-more { display:grid; grid-template-columns:0fr; opacity:0;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), opacity var(--duration-quick) var(--ease-out); }\n.draft .d-in { min-width:0; overflow:hidden; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding-left:6px; }\n.draft .d-in svg { color:var(--warn); }\n.draft .d-crop { width:28px; height:18px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px var(--rec); }\n.draft .d-text { max-width:calc(170px * var(--s)); overflow:hidden; text-overflow:ellipsis; color:var(--fg-2); font-weight:500; }\n.draft kbd { font:600 var(--fs-s)/1 ui-monospace, \"SF Mono\", Menlo, monospace; color:var(--fg-3); }\n.hud .draft .bead:hover, .hud .draft .bead:focus-visible { height:26px; }\n.draft .bead:hover .d-more, .draft .bead:focus-visible .d-more { grid-template-columns:1fr; opacity:1; }\n.draft .bead:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n@keyframes drop-in { from { transform:scale(.3); opacity:0; } }\n.dock.dragging .draft { display:none; }\n";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PencilIcon } from './icons';
|
|
3
|
+
export function DraftDrop({ text, crop, side, onResume }) {
|
|
4
|
+
const line = text.split('\n')[0]?.trim() || 'Image draft';
|
|
5
|
+
return (_jsxs("div", { className: "draft", "data-side": side, "data-e2e": "draft-drop", children: [_jsxs("svg", { className: "fillet", viewBox: "0 0 8 16", "aria-hidden": "true", children: [_jsx("path", { className: "f-body", d: "M0 0 C 3 4, 5 4, 8 3 L 8 13 C 5 12, 3 12, 0 16 Z" }), _jsx("path", { className: "f-rim", d: "M0 0.5 C 3 4.5, 5 4.5, 8 3.5 M0 15.5 C 3 11.5, 5 11.5, 8 12.5" })] }), _jsxs("button", { type: "button", className: "bead glass", "aria-label": `Resume the draft: ${line}`, onClick: onResume, children: [_jsx("span", { className: "d-dot" }), _jsx("span", { className: "d-more", children: _jsxs("span", { className: "d-in", children: [crop ? _jsx("img", { className: "d-crop", src: crop, alt: "" }) : _jsx(PencilIcon, {}), _jsx("span", { className: "d-text", children: line }), _jsx("kbd", { children: "\u21A9" })] }) })] })] }));
|
|
6
|
+
}
|
|
7
|
+
/** The drop's CSS (appended to HUD_CSS). */
|
|
8
|
+
export const DROP_CSS = `
|
|
9
|
+
.draft { position:relative; display:flex; align-items:center; flex:none; }
|
|
10
|
+
.draft[data-side="start"] { order:-1; margin-right:-1px; }
|
|
11
|
+
.draft[data-side="end"] { order:1; margin-left:-1px; flex-direction:row-reverse; }
|
|
12
|
+
.draft .fillet { width:8px; height:16px; flex:none; overflow:visible; }
|
|
13
|
+
.draft .fillet .f-body { fill:var(--ink-pop); }
|
|
14
|
+
.draft .fillet .f-rim { fill:none; stroke:rgba(255,255,255,.16); stroke-width:1; vector-effect:non-scaling-stroke; }
|
|
15
|
+
.draft[data-side="start"] .fillet { order:1; transform:scaleX(-1); }
|
|
16
|
+
.hud .draft .bead { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; height:18px; min-width:18px;
|
|
17
|
+
padding:0 5px; border-radius:999px; color:var(--fg); font-size:calc(var(--fs) - 1px); font-weight:600;
|
|
18
|
+
background:var(--ink); -webkit-backdrop-filter:blur(16px) saturate(1.5); backdrop-filter:blur(16px) saturate(1.5);
|
|
19
|
+
box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 6px 16px -8px rgba(0,0,0,.5);
|
|
20
|
+
animation: drop-in var(--duration-medium) var(--ease-spring) both;
|
|
21
|
+
transition: height var(--duration-fast) var(--ease-smooth-out); }
|
|
22
|
+
.draft .d-dot { width:8px; height:8px; flex:none; border-radius:50%; background:var(--warn); }
|
|
23
|
+
.draft .d-more { display:grid; grid-template-columns:0fr; opacity:0;
|
|
24
|
+
transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), opacity var(--duration-quick) var(--ease-out); }
|
|
25
|
+
.draft .d-in { min-width:0; overflow:hidden; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding-left:6px; }
|
|
26
|
+
.draft .d-in svg { color:var(--warn); }
|
|
27
|
+
.draft .d-crop { width:28px; height:18px; object-fit:cover; border-radius:3px; box-shadow:0 0 0 1px var(--rec); }
|
|
28
|
+
.draft .d-text { max-width:calc(170px * var(--s)); overflow:hidden; text-overflow:ellipsis; color:var(--fg-2); font-weight:500; }
|
|
29
|
+
.draft kbd { font:600 var(--fs-s)/1 ui-monospace, "SF Mono", Menlo, monospace; color:var(--fg-3); }
|
|
30
|
+
.hud .draft .bead:hover, .hud .draft .bead:focus-visible { height:26px; }
|
|
31
|
+
.draft .bead:hover .d-more, .draft .bead:focus-visible .d-more { grid-template-columns:1fr; opacity:1; }
|
|
32
|
+
.draft .bead:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }
|
|
33
|
+
@keyframes drop-in { from { transform:scale(.3); opacity:0; } }
|
|
34
|
+
.dock.dragging .draft { display:none; }
|
|
35
|
+
`;
|
|
@@ -15,6 +15,12 @@ export declare function PaperclipIcon(): ReactElement;
|
|
|
15
15
|
export declare function GripIcon(): ReactElement;
|
|
16
16
|
export declare function MoreIcon(): ReactElement;
|
|
17
17
|
export declare function NewTabIcon(): ReactElement;
|
|
18
|
+
/** ↳ — a reference to another note. */
|
|
19
|
+
export declare function ReplyIcon(): ReactElement;
|
|
20
|
+
/** The notes sheet's tray button. */
|
|
21
|
+
export declare function ListIcon(): ReactElement;
|
|
22
|
+
/** The board's build (the Building face). */
|
|
23
|
+
export declare function LayersIcon(): ReactElement;
|
|
18
24
|
export declare function StopIcon(): ReactElement;
|
|
19
25
|
export declare function CircleCheckIcon(): ReactElement;
|
|
20
26
|
export declare function CloudOffIcon(): ReactElement;
|
|
@@ -42,6 +42,18 @@ export function MoreIcon() {
|
|
|
42
42
|
export function NewTabIcon() {
|
|
43
43
|
return (_jsxs("svg", { ...base, children: [_jsx("path", { d: "M15 3h6v6" }), _jsx("path", { d: "M10 14 21 3" }), _jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })] }));
|
|
44
44
|
}
|
|
45
|
+
/** ↳ — a reference to another note. */
|
|
46
|
+
export function ReplyIcon() {
|
|
47
|
+
return (_jsxs("svg", { ...base, children: [_jsx("path", { d: "m15 10 5 5-5 5" }), _jsx("path", { d: "M4 4v7a4 4 0 0 0 4 4h12" })] }));
|
|
48
|
+
}
|
|
49
|
+
/** The notes sheet's tray button. */
|
|
50
|
+
export function ListIcon() {
|
|
51
|
+
return (_jsxs("svg", { ...base, children: [_jsx("path", { d: "M3 5h.01" }), _jsx("path", { d: "M3 12h.01" }), _jsx("path", { d: "M3 19h.01" }), _jsx("path", { d: "M8 5h13" }), _jsx("path", { d: "M8 12h13" }), _jsx("path", { d: "M8 19h13" })] }));
|
|
52
|
+
}
|
|
53
|
+
/** The board's build (the Building face). */
|
|
54
|
+
export function LayersIcon() {
|
|
55
|
+
return (_jsxs("svg", { ...base, children: [_jsx("path", { d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" }), _jsx("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }), _jsx("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })] }));
|
|
56
|
+
}
|
|
45
57
|
export function StopIcon() {
|
|
46
58
|
return (_jsx("svg", { ...base, children: _jsx("rect", { x: "5", y: "5", width: "14", height: "14", rx: "2" }) }));
|
|
47
59
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The notes sheet's rows (recorder HUD polish D5/D12), derived from the live
|
|
3
|
+
* recording's note log: ONE row per original note, its edits (`replaces`
|
|
4
|
+
* chains) folded in as versions — the board island's list grammar
|
|
5
|
+
* (№ · kind · age, text, a state dot). Pure, so it is tested without a DOM.
|
|
6
|
+
*/
|
|
7
|
+
import type { HudNote } from './controller';
|
|
8
|
+
export type NoteFilter = 'all' | 'regions' | 'notes';
|
|
9
|
+
/** One version of a note's text: the original, then each edit. */
|
|
10
|
+
export interface NoteVersion {
|
|
11
|
+
cid: string;
|
|
12
|
+
text: string;
|
|
13
|
+
at: number;
|
|
14
|
+
}
|
|
15
|
+
export interface NoteRow {
|
|
16
|
+
/** The original note's cid — what an edit's chain and a reference resolve to. */
|
|
17
|
+
cid: string;
|
|
18
|
+
/** The newest version's cid — what the next edit replaces. */
|
|
19
|
+
latestCid: string;
|
|
20
|
+
/** 1-based, in capture order, like the board's №. */
|
|
21
|
+
number: number;
|
|
22
|
+
region: boolean;
|
|
23
|
+
/** The newest version's text. */
|
|
24
|
+
text: string;
|
|
25
|
+
versions: readonly NoteVersion[];
|
|
26
|
+
/** When the original was captured (epoch ms). */
|
|
27
|
+
at: number;
|
|
28
|
+
route: string;
|
|
29
|
+
w?: number;
|
|
30
|
+
h?: number;
|
|
31
|
+
/** Not yet acknowledged by the server: its newest version is still queued. */
|
|
32
|
+
queued: boolean;
|
|
33
|
+
refs: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
/** Rows newest first; `pending` = the cids the queue still holds. */
|
|
36
|
+
export declare function noteRows(notes: readonly HudNote[], pending?: readonly string[]): NoteRow[];
|
|
37
|
+
export declare function filterRows(rows: readonly NoteRow[], filter: NoteFilter): NoteRow[];
|
|
38
|
+
/** The row `step` away from `cid` in `rows` (clamped); the first row when none is focused. */
|
|
39
|
+
export declare function walkRows(rows: readonly NoteRow[], cid: string | null, step: 1 | -1): string | null;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** Rows newest first; `pending` = the cids the queue still holds. */
|
|
2
|
+
export function noteRows(notes, pending = []) {
|
|
3
|
+
const root = new Map();
|
|
4
|
+
const rows = [];
|
|
5
|
+
for (const n of [...notes].sort((a, b) => a.at - b.at)) {
|
|
6
|
+
const original = n.replaces ? root.get(n.replaces) : undefined;
|
|
7
|
+
if (original) {
|
|
8
|
+
original.versions = [...original.versions, { cid: n.cid, text: n.text, at: n.at }];
|
|
9
|
+
original.latestCid = n.cid;
|
|
10
|
+
original.text = n.text;
|
|
11
|
+
root.set(n.cid, original);
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
const row = {
|
|
15
|
+
cid: n.cid,
|
|
16
|
+
latestCid: n.cid,
|
|
17
|
+
number: rows.length + 1,
|
|
18
|
+
region: n.region,
|
|
19
|
+
text: n.text,
|
|
20
|
+
versions: [{ cid: n.cid, text: n.text, at: n.at }],
|
|
21
|
+
at: n.at,
|
|
22
|
+
route: n.route,
|
|
23
|
+
...(n.w !== undefined ? { w: n.w } : {}),
|
|
24
|
+
...(n.h !== undefined ? { h: n.h } : {}),
|
|
25
|
+
queued: false,
|
|
26
|
+
refs: n.refs ?? [],
|
|
27
|
+
};
|
|
28
|
+
root.set(n.cid, row);
|
|
29
|
+
rows.push(row);
|
|
30
|
+
}
|
|
31
|
+
const waiting = new Set(pending);
|
|
32
|
+
for (const r of rows)
|
|
33
|
+
r.queued = waiting.has(r.latestCid);
|
|
34
|
+
return rows.reverse();
|
|
35
|
+
}
|
|
36
|
+
export function filterRows(rows, filter) {
|
|
37
|
+
if (filter === 'all')
|
|
38
|
+
return [...rows];
|
|
39
|
+
return rows.filter((r) => (filter === 'regions' ? r.region : !r.region));
|
|
40
|
+
}
|
|
41
|
+
/** The row `step` away from `cid` in `rows` (clamped); the first row when none is focused. */
|
|
42
|
+
export function walkRows(rows, cid, step) {
|
|
43
|
+
if (rows.length === 0)
|
|
44
|
+
return null;
|
|
45
|
+
const i = rows.findIndex((r) => r.cid === cid);
|
|
46
|
+
if (i < 0)
|
|
47
|
+
return rows[0].cid;
|
|
48
|
+
return rows[Math.min(rows.length - 1, Math.max(0, i + step))].cid;
|
|
49
|
+
}
|
|
@@ -42,9 +42,12 @@ export declare function gripFor(side: FloatSide, align: FloatAlign, axes?: Grip[
|
|
|
42
42
|
/** A width in [SHEET_MIN_W, SHEET_MAX_W] that leaves the viewport its sides (a narrow viewport wins). */
|
|
43
43
|
export declare function clampSheetW(w: number, viewW: number): number;
|
|
44
44
|
/**
|
|
45
|
-
* Size the text box to its draft
|
|
46
|
-
*
|
|
47
|
-
*
|
|
45
|
+
* Size the text box to its draft. `cap` is the height the tester dragged it
|
|
46
|
+
* to (HUD polish D8): the box never stands shorter than that and still grows
|
|
47
|
+
* with its draft up to the sheet's `room` — a dragged size is a MINIMUM, so a
|
|
48
|
+
* release never snaps it back. Undragged (`cap` 0) it grows from its CSS
|
|
49
|
+
* min-height to `SHEET_ROWS` rows. `floor` holds a resize in progress. Past
|
|
50
|
+
* the top it scrolls; its scroll position survives the measuring.
|
|
48
51
|
*/
|
|
49
52
|
export declare function fitText(el: HTMLTextAreaElement, sheet: HTMLElement, cap: number, floor: number, room: number): void;
|
|
50
53
|
export interface SheetSizeOptions {
|
|
@@ -69,13 +69,17 @@ function roomOr(room) {
|
|
|
69
69
|
return room > 0 ? room : (globalThis.visualViewport?.height ?? innerHeight) - VIEW_INSET;
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
|
-
* Size the text box to its draft
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* Size the text box to its draft. `cap` is the height the tester dragged it
|
|
73
|
+
* to (HUD polish D8): the box never stands shorter than that and still grows
|
|
74
|
+
* with its draft up to the sheet's `room` — a dragged size is a MINIMUM, so a
|
|
75
|
+
* release never snaps it back. Undragged (`cap` 0) it grows from its CSS
|
|
76
|
+
* min-height to `SHEET_ROWS` rows. `floor` holds a resize in progress. Past
|
|
77
|
+
* the top it scrolls; its scroll position survives the measuring.
|
|
75
78
|
*/
|
|
76
79
|
export function fitText(el, sheet, cap, floor, room) {
|
|
77
80
|
const b = textBounds(el, sheet, room);
|
|
78
|
-
const top =
|
|
81
|
+
const top = cap > 0 ? b.max : Math.min(b.rows, b.max);
|
|
82
|
+
floor = Math.max(floor, cap);
|
|
79
83
|
const scroll = el.scrollTop;
|
|
80
84
|
el.style.overflowY = 'hidden';
|
|
81
85
|
el.style.height = 'auto';
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The HUD's stylesheet. Lives inside the shadow root (a `<style>` element),
|
|
3
|
-
* so it never touches host CSS and host CSS never touches it.
|
|
4
|
-
*
|
|
5
|
-
* Shapes: ONE glass PILL whose faces are collapsible SEGMENTS — the idle puck
|
|
6
|
-
* (+ ⋯), the recording handle (dot + clock), the tool tray, and the inline
|
|
7
|
-
* flows (confirm · saving · saved · failed). A face change opens one segment
|
|
8
|
-
* while another closes, so the pill's width tweens by itself; an orientation
|
|
9
|
-
* change (the middle row stands the recording pill up) is a measured morph
|
|
10
|
-
* (see useMorph). The 6px edge TAB when tucked. The `.dock` rests on one of
|
|
11
|
-
* eight spots (`data-row` t|m|b × `data-col` l|c|r, no centre) by viewport
|
|
12
|
-
* insets; a drag moves it by `transform` only. Tooltip, menu and details card
|
|
13
|
-
* are fixed floats placed in JS (place.ts) so they never clip.
|
|
14
|
-
*
|
|
15
|
-
* Sizes: `data-size` sm|md|lg on `.hud` rescales every dimension through the
|
|
16
|
-
* size tokens (`--h`, `--b`, `--fs`, … and `--s` for the rest).
|
|
17
|
-
* Motion: the transitions.dev token scale; reduced motion stills it all.
|
|
18
|
-
*/
|
|
19
|
-
export declare const HUD_CSS_BASE = "\n* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif; }\nsvg { width:1em; height:1em; vertical-align:-.125em; flex:none; }\n.hud {\n --ink: rgba(26,22,23,.72); --ink-pop: rgba(26,22,23,.9); --ink-solid: #1d1a1b;\n --ink-2: rgba(255,255,255,.08); --ink-3: rgba(255,255,255,.14); --edge: rgba(255,255,255,.11); --rim: rgba(0,0,0,.30);\n --fg: #f4efea; --fg-2: rgba(244,239,234,.66); --fg-3: rgba(244,239,234,.44);\n --rec: #ff3b57; --rec-soft: rgba(255,59,87,.16); --warn: #f0a63a; --ok: #7fd6a4;\n --m: 16px;\n --s: 1; --h: 28px; --b: 24px; --vw: 36px; --fs: 12px; --fs-s: 10.5px; --ic: 13px;\n --duration-micro: 80ms; --duration-quick: 150ms; --duration-fast: 250ms; --duration-resize: 300ms;\n --duration-medium: 350ms; --duration-very-slow: 500ms; --duration-snap: 500ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out: ease-in-out; --ease-out: ease-out; --ease-linear: linear;\n --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);\n --ease-spring: var(--ease-smooth-out);\n --distance-micro: 4px; --scale-medium: .97; --scale-small: .98; --scale-tiny: .99; --blur-small: 2px; --rise: 16px;\n color: var(--fg); font-size: var(--fs);\n user-select:none; -webkit-user-select:none;\n}\n.hud[data-size=\"sm\"] { --s: .88; --h: 24px; --b: 20px; --vw: 30px; --fs: 11px; --fs-s: 10px; --ic: 12px; }\n.hud[data-size=\"lg\"] { --s: 1.18; --h: 34px; --b: 30px; --vw: 44px; --fs: 13.5px; --fs-s: 11.5px; --ic: 15px; }\n@supports (transition-timing-function: linear(0, 1)) {\n /* a damped spring, ~4% overshoot over 500ms \u2014 the settle after a throw */\n .hud { --ease-spring: linear(0, 0.042, 0.143, 0.274, 0.414, 0.549, 0.67, 0.773, 0.856, 0.921, 0.968, 1.001, 1.021, 1.033, 1.038, 1.038, 1.035, 1.031, 1.025, 1.02, 1.015, 1.011, 1.007, 1.004, 1); }\n}\n@media (pointer: coarse) {\n .hud { --m: 12px; }\n .hud[data-size=\"sm\"] { --h: 28px; --b: 26px; --vw: 34px; }\n .hud[data-size=\"md\"] { --h: 32px; --b: 30px; --vw: 40px; }\n .hud[data-size=\"lg\"] { --h: 38px; --b: 34px; --vw: 46px; }\n}\n/* scoped under .hud so a control's own `all:unset` reset cannot wipe the surface */\n.hud .glass, .hud .menu, .hud .pop, .hud .detail, .hud .hint, .hud .tip {\n background: var(--ink);\n -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);\n box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 10px 28px -10px rgba(0,0,0,.5), 0 2px 6px -2px rgba(0,0,0,.28);\n color: var(--fg);\n}\n.hud .menu, .hud .pop, .hud .tip { background: var(--ink-pop); }\n@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {\n .hud .glass, .hud .menu, .hud .pop, .hud .detail, .hud .hint, .hud .tip { background: var(--ink-solid); }\n}\n.sr { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }\ntextarea, .code { user-select:text; -webkit-user-select:text; }\n\n/* the dock: one of eight spots, or tucked into a side edge */\n.dock { position:fixed; z-index:4; display:flex; pointer-events:auto; }\n.dock[data-row=\"b\"] { bottom: calc(var(--m) + env(safe-area-inset-bottom, 0px)); }\n.dock[data-row=\"t\"] { top: calc(var(--m) + env(safe-area-inset-top, 0px)); }\n.dock[data-row=\"m\"] { top: calc(50% - var(--hh, 28px) / 2); }\n.dock[data-col=\"l\"] { left: calc(var(--m) + env(safe-area-inset-left, 0px)); }\n.dock[data-col=\"r\"] { right: calc(var(--m) + env(safe-area-inset-right, 0px)); }\n.dock[data-col=\"c\"] { left: calc(50% - var(--hw, 36px) / 2); }\n.dock[data-tuck] { top: clamp(8px, calc(var(--ty, .5) * 100% - 28px), calc(100% - 64px)); }\n.dock[data-tuck=\"left\"] { left:0; }\n.dock[data-tuck=\"right\"] { right:0; }\n.dock.settling { transition: transform var(--duration-snap) var(--ease-spring); }\n/* a throw carries the compact capsule: the tray folds at once, not on its tween */\n.dock.dragging .seg, .dock.dragging .seg-in { transition:none !important; }\n.dock.dragging .glass { box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 18px 40px -12px rgba(0,0,0,.55), 0 4px 10px -4px rgba(0,0,0,.3); }\n\n/* the pill and its segments */\n.pill { position:relative; display:inline-flex; align-items:center; height:var(--h); border-radius:999px; }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] { flex-direction:row-reverse; }\n.pill[data-orient=\"v\"] { flex-direction:column; height:auto; width:var(--vw); border-radius:calc(var(--vw) / 2); padding:2px 0 4px; }\n.pill.morphing, .pill.morphing * { transition:none !important; }\n.pill.morphing { overflow:hidden; }\n.seg { display:grid; grid-template-columns:0fr; visibility:hidden;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), visibility 0s linear var(--duration-resize); }\n.seg-in { min-width:0; overflow:hidden; display:flex; align-items:center; padding:5px 0; margin:-5px 0;\n opacity:0; filter:blur(var(--blur-small));\n transition: opacity var(--duration-quick) var(--ease-in-out), filter var(--duration-quick) var(--ease-in-out); }\n.seg.on { grid-template-columns:1fr; visibility:visible;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), visibility 0s; }\n.seg.on > .seg-in { opacity:1; filter:none; transition-duration: var(--duration-fast); transition-delay: var(--duration-micro); }\n.pill[data-orient=\"v\"] .seg { grid-template-columns:1fr; grid-template-rows:0fr;\n transition: grid-template-rows var(--duration-resize) var(--ease-smooth-out), visibility 0s linear var(--duration-resize); }\n.pill[data-orient=\"v\"] .seg.on { grid-template-rows:1fr; transition: grid-template-rows var(--duration-resize) var(--ease-smooth-out), visibility 0s; }\n.pill[data-orient=\"v\"] .seg-in { flex-direction:column; min-height:0; padding:0 5px; margin:0 -5px; }\n\n/* the recording dot: its ripple is a pseudo-element, outside layout */\n.dot { position:relative; width:8px; height:8px; flex:none; border-radius:50%; background:var(--rec); }\n.dot::after { content:\"\"; position:absolute; inset:0; border-radius:50%; background:var(--rec); opacity:0; pointer-events:none;\n animation:ripple 2s var(--ease-out) infinite; }\n@keyframes ripple { 0% { transform:scale(1); opacity:.45; } 70%, 100% { transform:scale(2.75); opacity:0; } }\n.pill[data-state=\"paused\"] .dot { background:var(--fg-3); }\n.pill[data-state=\"bad\"] .dot { background:var(--warn); }\n.pill[data-state=\"paused\"] .dot::after, .pill[data-state=\"bad\"] .dot::after { animation:none; }\n\n/* idle: the puck \u2014 ring = not linked, dot = ready; the label slides out on intent */\n.puck { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; height:var(--h); min-width:var(--h);\n padding:0 calc((var(--h) - 10px) / 2); border-radius:999px; cursor:pointer; touch-action:none;\n font-weight:600; font-size:var(--fs); color:var(--fg); }\n.dock[data-col=\"r\"] .puck { flex-direction:row-reverse; }\n.ring { width:10px; height:10px; flex:none; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--fg-2);\n transition: background-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out); }\n.puck[data-state=\"ready\"] .ring { background:var(--fg-2); box-shadow:none; }\n.puck[data-state=\"busy\"] .ring { background:var(--fg-3); box-shadow:none; animation:breathe 1.2s var(--ease-in-out) infinite; }\n@keyframes breathe { 50% { opacity:.35; } }\n.lab { display:grid; grid-template-columns:0fr; opacity:0;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), opacity var(--duration-quick) var(--ease-out); }\n/* the gap to the ring is a clipped pseudo-element: padding would keep a folded label 10px wide */\n.lab > span { min-width:0; overflow:hidden; white-space:nowrap; }\n.lab > span::before, .lab > span::after { content:\"\"; display:inline-block; }\n.lab > span::before { width:8px; }\n.lab > span::after { width:2px; }\n.dock[data-col=\"r\"] .lab > span::before { width:2px; }\n.dock[data-col=\"r\"] .lab > span::after { width:8px; }\n.pill[data-open] .lab, .puck:focus-visible .lab { grid-template-columns:1fr; opacity:1; }\n.puck:focus-visible, .handle:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n@media (hover: hover) {\n .puck[data-state=\"ready\"]:hover .ring { background:var(--rec); }\n .puck[data-state=\"unlinked\"]:hover .ring { box-shadow:inset 0 0 0 1.5px var(--fg); }\n}\n\n/* recording: the handle (dot + clock) \u2014 symmetric: the dot centres in the pill's round end */\n.handle { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; height:var(--h);\n padding:0 calc((var(--h) - 8px) / 2); border-radius:999px; cursor:grab; touch-action:none; }\n.dock.dragging .handle { cursor:grabbing; }\n.pill[data-orient=\"v\"] .handle { flex-direction:column; height:auto; width:var(--vw); gap:5px; padding:calc((var(--vw) - 8px) / 2 - 2px) 0 6px; }\n.clock { display:inline-flex; align-items:center; }\n.clock .seg-in { padding:0; margin:0; }\n.time { font-weight:600; font-size:var(--fs); line-height:1; font-variant-numeric:tabular-nums; letter-spacing:.01em; white-space:nowrap; }\n.pill[data-orient=\"v\"] .time { font-size:var(--fs-s); letter-spacing:-.01em; }\n.pill[data-orient=\"v\"] .clock { flex-direction:column; }\n.flash { display:inline-flex; align-items:center; gap:4px; color:var(--ok); font-weight:600; font-size:var(--fs); line-height:1; white-space:nowrap; }\n.flash svg { font-size:var(--ic); }\n.pill[data-orient=\"v\"] .flash span { display:none; }\n\n/* the tool tray */\n.tools { display:flex; align-items:center; gap:calc(2px * var(--s)); padding-right:3px; }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] .tools { flex-direction:row-reverse; padding-right:0; padding-left:3px; }\n.pill[data-orient=\"v\"] .tools { flex-direction:column; padding:0 0 2px; gap:calc(3px * var(--s)); }\n.sep { width:1px; height:14px; flex:none; margin:0 4px 0 0; background:var(--edge); }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] .sep { margin:0 0 0 4px; }\n.pill[data-orient=\"v\"] .sep { width:14px; height:1px; margin:2px 0 4px; }\nbutton.tb { all:unset; pointer-events:auto; box-sizing:border-box; position:relative; flex:none; display:inline-grid; place-items:center;\n width:var(--b); height:var(--b); border-radius:999px; color:var(--fg-2); cursor:pointer; font-size:var(--ic);\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\nbutton.tb.b-annotate { color:var(--rec); }\nbutton.tb.on { background:var(--rec); color:#fff; }\nbutton.tb.b-stop svg { fill:currentColor; stroke:none; font-size:calc(var(--ic) * .82); }\nbutton.tb:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n@media (hover: hover) {\n button.tb:hover { background:var(--ink-2); color:var(--fg); }\n button.tb.on:hover { background:var(--rec); color:#fff; }\n button.tb.b-stop:hover { background:var(--rec-soft); color:var(--rec); }\n}\n\n/* the sync chip: legible at a glance \u2014 icon + word, colour by state */\n.sync { display:inline-flex; align-items:center; gap:4px; height:var(--b); padding:0 7px 0 5px; margin-right:2px; border-radius:999px;\n font-size:var(--fs-s); font-weight:600; line-height:1; white-space:nowrap; color:var(--fg-3); background:transparent;\n transition: color var(--duration-quick) var(--ease-out), background-color var(--duration-quick) var(--ease-out); }\n.sync svg { font-size:calc(var(--ic) * .95); }\n.sync[data-kind=\"synced\"] svg { color:var(--ok); }\n.sync[data-kind=\"sending\"] { color:var(--fg-2); }\n.sync[data-kind=\"offline\"] { color:var(--warn); background:rgba(240,166,58,.12); }\n.sync[data-kind=\"error\"] { color:var(--rec); background:var(--rec-soft); }\n.sync .swap { display:inline-flex; animation:swap-in var(--duration-quick) var(--ease-in-out) both; }\n.pill[data-orient=\"v\"] .sync { width:var(--b); padding:0; margin:0 0 2px; justify-content:center; }\n.pill[data-orient=\"v\"] .sync .word { display:none; }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] .sync { margin:0 0 0 2px; }\n@keyframes swap-in { from { opacity:0; transform:translateY(var(--distance-micro)); filter:blur(var(--blur-small)); } }\n.spin { animation:spin .9s var(--ease-linear) infinite; transform-origin:50% 50%; }\n@keyframes spin { to { transform:rotate(360deg); } }\n\n/* inline flows: confirm \u00B7 saving \u00B7 saved \u00B7 failed */\n.flow { display:flex; align-items:center; gap:calc(6px * var(--s)); height:var(--h); padding:0 3px 0 calc(var(--h) * .42);\n white-space:nowrap; font-size:var(--fs); font-weight:600; line-height:1; color:var(--fg); }\n.pill[data-face=\"flow-rec\"] .flow { padding-left:2px; }\n.dock[data-col=\"r\"] .pill[data-face=\"flow-rec\"] .flow { padding-left:calc(var(--h) * .42); padding-right:0; }\n.flow .q { margin-right:calc(4px * var(--s)); }\n.flow .muted { color:var(--fg-3); font-weight:500; }\n.flow svg { font-size:var(--ic); }\n.fb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:5px; height:calc(var(--h) - 6px);\n padding:0 calc(10px * var(--s)); border-radius:999px; font-size:calc(var(--fs) - .5px); font-weight:600; line-height:1; color:var(--fg);\n background:var(--ink-2); text-decoration:none;\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.fb.primary { background:var(--rec); color:#fff; }\n.fb.icon { width:calc(var(--h) - 6px); padding:0; justify-content:center; background:transparent; color:var(--fg-3); }\n.fb:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }\n@media (hover: hover) {\n .fb:hover { background:var(--ink-3); }\n .fb.primary:hover { background:#ff5670; }\n .fb.icon:hover { color:var(--fg); background:var(--ink-2); }\n}\n.saving { position:relative; padding-right:calc(var(--h) * .42); }\n.saving .spinner { color:var(--fg-2); }\n.saving .spinner circle { stroke-dasharray:44 63; }\n.bar-track { position:absolute; left:calc(var(--h) * .42); right:calc(var(--h) * .42); bottom:3px; height:2px; border-radius:1px; background:var(--ink-2); overflow:hidden; }\n.bar-track > i { position:absolute; inset:0 auto 0 0; width:calc(var(--p, 0) * 100%); border-radius:1px; background:var(--fg-2);\n transition: width var(--duration-fast) var(--ease-smooth-out); }\n.bar-track[data-indeterminate] > i { width:35%; animation:slide 1.1s var(--ease-in-out) infinite; }\n@keyframes slide { from { transform:translateX(-100%); } to { transform:translateX(290%); } }\n.saved .ok { display:inline-flex; color:var(--ok); }\n.failed .warn { display:inline-flex; color:var(--warn); }\n.failed .msg { max-width:calc(220px * var(--s)); overflow:hidden; text-overflow:ellipsis; }\n\n/* the success check (transitions.dev 10, tuned to a 13px glyph) */\n.t-check { display:inline-block; transform-origin:center; opacity:0; will-change:transform, opacity, filter; }\n.t-check svg { display:block; overflow:visible; }\n.t-check svg path { stroke-dasharray:18; stroke-dashoffset:18; }\n.t-check[data-state=\"in\"] {\n animation: t-check-fade var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-rotate var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-blur var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-bob var(--duration-very-slow) cubic-bezier(0.34, 1.35, 0.64, 1) forwards; }\n.t-check[data-state=\"in\"] svg path { animation: t-check-draw var(--duration-very-slow) var(--ease-smooth-out) var(--duration-micro) forwards; }\n@keyframes t-check-fade { from { opacity:0; } to { opacity:1; } }\n@keyframes t-check-rotate { from { transform:rotate(80deg); } to { transform:rotate(0deg); } }\n@keyframes t-check-blur { from { filter:blur(8px); } to { filter:blur(0); } }\n@keyframes t-check-bob { from { translate:0 8px; } to { translate:0 0; } }\n@keyframes t-check-draw { to { stroke-dashoffset:0; } }\n\n/* the edge tab a tucked HUD becomes */\n.tab { all:unset; box-sizing:border-box; position:relative; display:block; width:22px; height:56px; cursor:pointer; touch-action:none; }\n.tab::before { content:\"\"; position:absolute; top:0; bottom:0; width:6px; background:var(--ink);\n -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);\n box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 6px 18px -6px rgba(0,0,0,.5);\n transition: width var(--duration-quick) var(--ease-out); }\n.tab::after { content:\"\"; position:absolute; top:16px; bottom:16px; width:2px; border-radius:1px; background:var(--fg-3); }\n.dock[data-tuck=\"left\"] .tab::before { left:0; border-radius:0 7px 7px 0; }\n.dock[data-tuck=\"right\"] .tab::before { right:0; border-radius:7px 0 0 7px; }\n.dock[data-tuck=\"left\"] .tab::after { left:2px; }\n.dock[data-tuck=\"right\"] .tab::after { right:2px; }\n.tab[data-state=\"rec\"]::after { background:var(--rec); }\n.tab[data-state=\"bad\"]::after { background:var(--warn); }\n.tab:focus-visible::before { width:10px; outline:2px solid var(--rec); outline-offset:1px; }\n@media (hover: hover) { .tab:hover::before { width:9px; } }\n\n/* floats: fixed, placed in JS beside the dock (place.ts) */\n.float { position:fixed; left:0; top:0; z-index:5; pointer-events:auto; }\n\n/* the tooltip (transitions.dev 17): one bubble that travels between triggers */\n.tip { display:inline-flex; align-items:center; gap:7px; padding:calc(5px * var(--s)) calc(8px * var(--s)); border-radius:7px; white-space:nowrap;\n font-size:calc(var(--fs) - 1px); font-weight:600; line-height:1; color:var(--fg); pointer-events:none;\n opacity:0; scale:var(--scale-small); z-index:7;\n transition: opacity 50ms var(--ease-out), scale 50ms var(--ease-out), translate 160ms var(--ease-smooth-out); }\n.tip[data-show=\"true\"] { opacity:1; scale:1;\n transition: opacity var(--duration-quick) var(--ease-out) var(--duration-micro), scale var(--duration-quick) var(--ease-out) var(--duration-micro),\n translate 160ms var(--ease-smooth-out); }\n.tip.snap { transition:none !important; }\n.tip kbd { font:600 calc(var(--fs-s) - .5px)/1 ui-monospace, \"SF Mono\", Menlo, monospace; color:var(--fg-3); letter-spacing:.02em; }\n\n/* the \u22EF menu */\n.menu { width:calc(252px * var(--s)); max-height:calc(100vh - 16px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;\n padding:calc(5px * var(--s)); border-radius:calc(13px * var(--s)); display:flex; flex-direction:column; gap:1px; font-size:var(--fs); }\n.m-head { display:flex; flex-direction:column; gap:3px; padding:calc(8px * var(--s)) calc(10px * var(--s)) calc(9px * var(--s)); }\n.m-who { display:flex; align-items:baseline; gap:5px; min-width:0; font-weight:600; color:var(--fg); line-height:1.2; }\n.m-who .email { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.m-who .ws { flex:none; color:var(--fg-2); font-weight:500; }\n.m-who.wraps .email { white-space:normal; overflow-wrap:anywhere; }\n.m-sub { font-size:var(--fs-s); color:var(--fg-3); line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.m-sub .live { color:var(--ok); }\n.m-rule { height:1px; margin:3px 4px; background:var(--edge); flex:none; }\n.m-label { padding:calc(7px * var(--s)) calc(10px * var(--s)) 3px; font-size:var(--fs-s); font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--fg-3); }\n.mi { all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:9px; min-height:calc(30px * var(--s));\n padding:calc(7px * var(--s)) calc(10px * var(--s)); border-radius:8px; color:var(--fg); line-height:1.2; text-decoration:none;\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.mi > svg { color:var(--fg-2); font-size:var(--ic); }\n.mi .end { margin-left:auto; color:var(--fg-3); font-size:var(--ic); }\n.mi:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n.mi.danger { color:var(--fg-2); }\n@media (hover: hover) {\n .mi:hover { background:var(--ink-2); }\n .mi.danger:hover, .mi.danger:hover svg { color:var(--rec); }\n}\n.recent { align-items:flex-start; }\n.recent .r-main { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }\n.recent .r-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.recent .r-meta { display:flex; align-items:center; gap:5px; font-size:var(--fs-s); color:var(--fg-3); white-space:nowrap; }\n.recent .r-meta i { width:5px; height:5px; border-radius:50%; flex:none; background:var(--fg-3); }\n.recent .r-meta i[data-status=\"saved\"] { background:var(--ok); }\n.recent .r-meta i[data-status=\"recording\"] { background:var(--rec); }\n.recent .r-meta i[data-status=\"unsaved\"] { background:var(--warn); }\n.recent[aria-disabled=\"true\"] { cursor:default; }\n.recent .end { margin-top:1px; }\n.m-empty { padding:4px 10px 8px; font-size:var(--fs-s); color:var(--fg-3); }\n.m-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:calc(32px * var(--s)); padding:2px calc(6px * var(--s)) 2px calc(10px * var(--s)); color:var(--fg-2); }\n.m-row > span:first-child { color:var(--fg); }\n.m-row.toggle { cursor:pointer; border-radius:8px; }\n@media (hover: hover) { .m-row.toggle:hover { background:var(--ink-2); } }\n.m-row.toggle:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n.m-foot { padding:6px 10px 4px; font:500 calc(var(--fs-s) - .5px)/1.3 ui-monospace, \"SF Mono\", Menlo, monospace; color:var(--fg-3); }\n\n/* size: a segmented control with a sliding pill (transitions.dev 16) */\n.sizes { position:relative; display:inline-grid; grid-template-columns:repeat(3, calc(30px * var(--s))); padding:2px; border-radius:999px;\n background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); --i:1; }\n.sizes::before { content:\"\"; position:absolute; top:2px; bottom:2px; left:2px; width:calc(30px * var(--s)); border-radius:999px; background:var(--ink-3);\n transform:translateX(calc(var(--i) * 100%)); transition: transform var(--duration-fast) var(--ease-smooth-out); }\n.sizes button { all:unset; box-sizing:border-box; position:relative; z-index:1; cursor:pointer; display:grid; place-items:center;\n height:calc(22px * var(--s)); border-radius:999px; font-size:var(--fs-s); font-weight:700; color:var(--fg-3);\n transition: color var(--duration-fast) var(--ease-smooth-out); }\n.sizes button[aria-checked=\"true\"] { color:var(--fg); }\n.sizes button:focus-visible { outline:2px solid var(--rec); outline-offset:-1px; }\n@media (hover: hover) { .sizes button:hover { color:var(--fg-2); } .sizes button[aria-checked=\"true\"]:hover { color:var(--fg); } }\n\n/* verbose: a switch (transitions.dev 27, travel only) */\n.switch { position:relative; width:calc(30px * var(--s)); height:calc(18px * var(--s)); flex:none; border-radius:999px; background:var(--ink-3);\n transition: background-color var(--duration-fast) var(--ease-smooth-out); }\n.switch::after { content:\"\"; position:absolute; top:2px; left:2px; width:calc(14px * var(--s)); height:calc(14px * var(--s)); border-radius:50%;\n background:var(--fg-2); box-shadow:0 1px 3px rgba(0,0,0,.35);\n transition: translate var(--duration-fast) var(--ease-bounce), background-color var(--duration-fast) var(--ease-smooth-out); }\n.switch[data-on=\"true\"] { background:var(--rec); }\n.switch[data-on=\"true\"]::after { translate:calc(12px * var(--s)) 0; background:#fff; }\n\n/* Move to: a miniature screen, eight spots (no centre); middle-row marks stand up like the pill does */\n.screen { position:relative; display:grid; grid-template-columns:repeat(3, calc(22px * var(--s))); grid-template-rows:repeat(3, calc(15px * var(--s)));\n padding:calc(3px * var(--s)); border-radius:7px; box-shadow:inset 0 0 0 1px var(--edge); background:rgba(0,0,0,.22); }\n.screen button { all:unset; box-sizing:border-box; position:relative; cursor:pointer; border-radius:4px; display:grid; place-items:center; }\n.screen button::before { content:\"\"; width:calc(11px * var(--s)); height:calc(4px * var(--s)); border-radius:2px; background:var(--fg-3); opacity:.55;\n transition: background-color var(--duration-quick) var(--ease-out), opacity var(--duration-quick) var(--ease-out), transform var(--duration-quick) var(--ease-out); }\n.screen button[data-v]::before { width:calc(4px * var(--s)); height:calc(10px * var(--s)); }\n.screen button[aria-checked=\"true\"]::before { background:var(--rec); opacity:1; }\n.screen button:focus-visible { outline:2px solid var(--rec); outline-offset:-1px; }\n.screen .mid { grid-column:2; grid-row:2; }\n@media (hover: hover) { .screen button:hover::before { opacity:1; background:var(--fg-2); transform:scale(1.12); } .screen button[aria-checked=\"true\"]:hover::before { background:var(--rec); } }\n\n/* the details card: the health line when something is wrong, the technical details in verbose mode */\n.detail { width:max-content; max-width:calc(260px * var(--s)); padding:calc(6px * var(--s)) calc(11px * var(--s)); border-radius:calc(10px * var(--s));\n color:var(--fg-2); font-size:calc(var(--fs) - 1px); line-height:1.4; pointer-events:none; }\n.detail.line { border-radius:999px; }\n/* the tooltip and the card open on the same side: the card steps back while a tooltip speaks */\n.hud .tip[data-show=\"true\"] ~ .detail.is-open { opacity:0; transition: opacity var(--duration-quick) var(--ease-out); }\n.detail.bad { color:var(--fg); box-shadow: inset 0 0 0 1px rgba(240,166,58,.55), 0 10px 28px -10px rgba(0,0,0,.5); }\n.detail dl { display:grid; grid-template-columns:auto auto; gap:2px 12px; margin:0; font:500 var(--fs-s)/1.35 ui-monospace, \"SF Mono\", Menlo, monospace; }\n.detail dt { color:var(--fg-3); }\n.detail dd { margin:0; color:var(--fg); font-variant-numeric:tabular-nums; }\n.detail .warnline { margin-top:5px; color:var(--warn); font-size:var(--fs-s); }\n\n/* presence: dropdown-style grow from the anchor on open, a softer shrink on close */\n.grow { transform:scale(var(--scale-medium)); opacity:0;\n transition: transform var(--duration-fast) var(--ease-smooth-out), opacity var(--duration-fast) var(--ease-smooth-out); }\n.grow.is-open { transform:scale(1); opacity:1; }\n.grow.is-closing { transform:scale(var(--scale-tiny)); opacity:0; pointer-events:none; transition-duration: var(--duration-quick); }\n/* phone: the sheet rises from the bottom edge (toast motion) */\n.rise { transform:translateY(var(--rise)) scale(var(--scale-medium)); opacity:0; filter:blur(var(--blur-small));\n transition: transform var(--duration-fast) var(--ease-smooth-out), opacity var(--duration-fast) var(--ease-smooth-out), filter var(--duration-fast) var(--ease-smooth-out); }\n.rise.is-open { transform:none; opacity:1; filter:none; transition-duration: var(--duration-medium); }\n.rise.is-closing { pointer-events:none; }\n\n/* pick chrome (annotate mode): dim, outline, hint \u2014 shadow-root children */\n.dim { position:fixed; inset:0; z-index:1; pointer-events:none; background:rgba(0,0,0,.18); }\n.outline { position:fixed; z-index:2; pointer-events:none; border:2px solid var(--rec); border-radius:6px;\n box-shadow:0 0 0 4px rgba(255,59,87,.15); }\n.hint { position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:3; padding:calc(8px * var(--s)) calc(14px * var(--s));\n border-radius:999px; font-size:var(--fs); font-weight:600; line-height:1; white-space:nowrap; display:flex; gap:8px; align-items:center; }\n.hint svg { color:var(--rec); }\n.hint .keys { color:var(--fg-3); font-weight:500; margin-left:-4px; }\n@media (pointer: coarse) { .hint .keys { display:none; } }\n.hud[data-spot=\"tc\"] .hint { top:auto; bottom:14px; }\n\n/* sheets: a popover anchored to the dock, or a phone bottom sheet */\n.anchor { position:fixed; z-index:6; pointer-events:none; }\n.anchor > * { pointer-events:auto; }\n.phone { position:fixed; z-index:6; display:flex; flex-direction:column; justify-content:flex-end;\n padding:0 8px calc(8px + env(safe-area-inset-bottom, 0px)); pointer-events:none; }\n.phone > * { pointer-events:auto; }\n.pop { width:min(calc(288px * var(--s)), calc(100vw - 24px)); padding:calc(12px * var(--s)); border-radius:calc(14px * var(--s)); font-size:var(--fs); }\n/* the composer: 440px at every HUD size, or the width the tester dragged (--sheet-w, resize.ts) */\n.pop.compose { position:relative; width:min(var(--sheet-w, 440px), calc(100vw - 24px)); }\n.phone .pop { width:100%; border-radius:18px; padding:14px; }\n.pop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }\n.title { display:flex; align-items:center; gap:7px; font-size:calc(var(--fs) + .5px); font-weight:600; color:var(--fg); }\n.title i { width:3px; height:11px; border-radius:1px; background:var(--rec); }\n.closeb { all:unset; box-sizing:border-box; cursor:pointer; width:24px; height:24px; border-radius:7px; color:var(--fg-3);\n display:inline-grid; place-items:center; font-size:12px; }\n.closeb:focus-visible, .sendb:focus-visible, .retry:focus-visible, .dest button:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n@media (hover: hover) { .closeb:hover { color:var(--fg); background:var(--ink-2); } }\ntextarea { width:100%; margin-top:10px; padding:9px 11px; min-height:calc(64px * var(--s)); resize:none; overflow-y:hidden; background:rgba(0,0,0,.28);\n border:0; box-shadow:inset 0 0 0 1px var(--edge); border-radius:9px; color:var(--fg);\n font:400 calc(14px * var(--s))/1.4 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif; }\n@media (pointer: coarse) { textarea { font-size:16px; } .hints { display:none; } }\ntextarea::placeholder { color:var(--fg-3); }\ntextarea:focus { outline:none; box-shadow:inset 0 0 0 1px var(--fg-3); }\n.row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; margin-top:10px; }\n.row.nodest { grid-template-columns:minmax(0,1fr) auto; }\n.ctx { font-size:var(--fs-s); line-height:1.35; color:var(--fg-3); text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.row.nodest .ctx { text-align:left; }\n.dest { display:inline-flex; padding:2px; border-radius:8px; background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); }\n.dest button { all:unset; box-sizing:border-box; cursor:pointer; padding:5px 8px; min-height:24px; border-radius:6px; color:var(--fg-3);\n font-size:calc(var(--fs) - .5px); font-weight:600; line-height:14px; transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.dest button[aria-pressed=\"true\"] { background:var(--ink-2); color:var(--fg); }\n.sendb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:6px; height:calc(28px * var(--s)); padding:0 12px;\n border-radius:8px; background:var(--rec); color:#fff; font-size:calc(var(--fs) + .5px); font-weight:600; line-height:1; text-decoration:none; }\n@media (hover: hover) { .sendb:hover { background:#ff5670; } }\n.sendb[aria-disabled=\"true\"] { opacity:.45; cursor:default; background:var(--rec); }\n.hints { margin-top:9px; font-size:var(--fs-s); line-height:1; color:var(--fg-3); }\n/* attachments: the paperclip beside Send, the thumbnail strip, the drop target; a refusal takes the ctx slot */\n.acts { display:inline-flex; align-items:center; gap:6px; }\n.clipb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-grid; place-items:center; width:calc(28px * var(--s)); height:calc(28px * var(--s));\n border-radius:8px; color:var(--fg-2); font-size:calc(var(--ic) + 1px); transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n@media (hover: hover) { .clipb:hover { color:var(--fg); background:var(--ink-2); } }\n.clipb[aria-disabled=\"true\"] { opacity:.45; cursor:default; }\n.clipb:focus-visible, .attx:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n.ctx.bad { color:var(--warn); }\n.atts { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; padding:0; list-style:none; }\n.att { position:relative; width:calc(52px * var(--s)); height:calc(52px * var(--s)); border-radius:8px; overflow:hidden;\n background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); display:grid; place-items:center; color:var(--fg-3); }\n.att img { width:100%; height:100%; object-fit:cover; display:block; }\n.attx { all:unset; box-sizing:border-box; cursor:pointer; position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%;\n display:grid; place-items:center; font-size:9px; color:#fff; background:rgba(0,0,0,.62); box-shadow:0 0 0 1px rgba(255,255,255,.18); }\n@media (hover: hover) { .attx:hover { background:rgba(0,0,0,.85); } }\n@media (pointer: coarse) { .attx { width:24px; height:24px; top:2px; right:2px; font-size:11px; } }\n.pop.dropping { outline:2px dashed var(--fg-2); outline-offset:-5px; }\n/* the resize grip on the composer's corner away from the dock (resize.ts); its hit area reaches outward, never over the \u2715 */\n.grip { all:unset; box-sizing:border-box; position:absolute; width:14px; height:14px; display:grid; place-items:center; border-radius:4px;\n font-size:12px; color:var(--fg-3); touch-action:none; --reach:-6px; transition: color var(--duration-quick) var(--ease-out); }\n.grip::after { content:\"\"; position:absolute; }\n.grip[data-corner=\"tl\"] { top:3px; left:3px; cursor:nwse-resize; }\n.grip[data-corner=\"tr\"] { top:3px; right:3px; cursor:nesw-resize; }\n.grip[data-corner=\"bl\"] { bottom:3px; left:3px; cursor:nesw-resize; }\n.grip[data-corner=\"br\"] { bottom:3px; right:3px; cursor:nwse-resize; }\n.grip[data-corner=\"tl\"]::after { inset:var(--reach) 0 0 var(--reach); }\n.grip[data-corner=\"tr\"]::after { inset:var(--reach) var(--reach) 0 0; }\n.grip[data-corner=\"bl\"]::after { inset:0 0 var(--reach) var(--reach); }\n.grip[data-corner=\"br\"]::after { inset:0 var(--reach) var(--reach) 0; }\n.grip[data-corner=\"tl\"] svg { transform:rotate(180deg); }\n.grip[data-corner=\"tr\"] svg { transform:rotate(-90deg); }\n.grip[data-corner=\"bl\"] svg { transform:rotate(90deg); }\n@media (hover: hover) { .grip:hover { color:var(--fg); } }\n@media (pointer: coarse) { .grip { --reach:-14px; } }\n.grip:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }\n";
|
|
1
|
+
export declare const HUD_CSS_BASE = "\n* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif; }\nsvg { width:1em; height:1em; vertical-align:-.125em; flex:none; }\n.hud {\n --ink: rgba(26,22,23,.72); --ink-pop: rgba(26,22,23,.9); --ink-solid: #1d1a1b;\n --ink-2: rgba(255,255,255,.08); --ink-3: rgba(255,255,255,.14); --edge: rgba(255,255,255,.11); --rim: rgba(0,0,0,.30);\n --fg: #f4efea; --fg-2: rgba(244,239,234,.66); --fg-3: rgba(244,239,234,.44);\n --rec: #ff3b57; --rec-soft: rgba(255,59,87,.16); --warn: #f0a63a; --ok: #7fd6a4;\n --m: 16px;\n --s: 1; --h: 28px; --b: 24px; --vw: 36px; --fs: 12px; --fs-s: 10.5px; --ic: 13px;\n --duration-micro: 80ms; --duration-quick: 150ms; --duration-fast: 250ms; --duration-resize: 300ms;\n --duration-medium: 350ms; --duration-very-slow: 500ms; --duration-snap: 500ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out: ease-in-out; --ease-out: ease-out; --ease-linear: linear;\n --ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);\n --ease-spring: var(--ease-smooth-out);\n --distance-micro: 4px; --scale-medium: .97; --scale-small: .98; --scale-tiny: .99; --blur-small: 2px; --rise: 16px;\n color: var(--fg); font-size: var(--fs);\n user-select:none; -webkit-user-select:none;\n}\n.hud[data-size=\"sm\"] { --s: .88; --h: 24px; --b: 20px; --vw: 30px; --fs: 11px; --fs-s: 10px; --ic: 12px; }\n.hud[data-size=\"lg\"] { --s: 1.18; --h: 34px; --b: 30px; --vw: 44px; --fs: 13.5px; --fs-s: 11.5px; --ic: 15px; }\n@supports (transition-timing-function: linear(0, 1)) {\n /* a damped spring, ~4% overshoot over 500ms \u2014 the settle after a throw */\n .hud { --ease-spring: linear(0, 0.042, 0.143, 0.274, 0.414, 0.549, 0.67, 0.773, 0.856, 0.921, 0.968, 1.001, 1.021, 1.033, 1.038, 1.038, 1.035, 1.031, 1.025, 1.02, 1.015, 1.011, 1.007, 1.004, 1); }\n}\n@media (pointer: coarse) {\n .hud { --m: 12px; }\n .hud[data-size=\"sm\"] { --h: 28px; --b: 26px; --vw: 34px; }\n .hud[data-size=\"md\"] { --h: 32px; --b: 30px; --vw: 40px; }\n .hud[data-size=\"lg\"] { --h: 38px; --b: 34px; --vw: 46px; }\n}\n/* scoped under .hud so a control's own `all:unset` reset cannot wipe the surface */\n.hud .glass, .hud .menu, .hud .pop, .hud .detail, .hud .hint, .hud .tip {\n background: var(--ink);\n -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);\n box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 10px 28px -10px rgba(0,0,0,.5), 0 2px 6px -2px rgba(0,0,0,.28);\n color: var(--fg);\n}\n.hud .menu, .hud .pop, .hud .tip { background: var(--ink-pop); }\n@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {\n .hud .glass, .hud .menu, .hud .pop, .hud .detail, .hud .hint, .hud .tip { background: var(--ink-solid); }\n}\n.sr { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }\ntextarea, .code { user-select:text; -webkit-user-select:text; }\n\n/* the dock: one of eight spots, or tucked into a side edge */\n.dock { position:fixed; z-index:4; display:flex; pointer-events:auto; }\n.dock[data-row=\"b\"] { bottom: calc(var(--m) + env(safe-area-inset-bottom, 0px)); }\n.dock[data-row=\"t\"] { top: calc(var(--m) + env(safe-area-inset-top, 0px)); }\n.dock[data-row=\"m\"] { top: calc(50% - var(--hh, 28px) / 2); }\n.dock[data-col=\"l\"] { left: calc(var(--m) + env(safe-area-inset-left, 0px)); }\n.dock[data-col=\"r\"] { right: calc(var(--m) + env(safe-area-inset-right, 0px)); }\n.dock[data-col=\"c\"] { left: calc(50% - var(--hw, 36px) / 2); }\n.dock[data-tuck] { top: clamp(8px, calc(var(--ty, .5) * 100% - 28px), calc(100% - 64px)); }\n.dock[data-tuck=\"left\"] { left:0; }\n.dock[data-tuck=\"right\"] { right:0; }\n.dock.settling { transition: transform var(--duration-snap) var(--ease-spring); }\n/* a throw carries the compact capsule: the tray folds at once, not on its tween */\n.dock.dragging .seg, .dock.dragging .seg-in { transition:none !important; }\n.dock.dragging .glass { box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 18px 40px -12px rgba(0,0,0,.55), 0 4px 10px -4px rgba(0,0,0,.3); }\n\n/* the pill and its segments */\n.pill { position:relative; display:inline-flex; align-items:center; height:var(--h); border-radius:999px; }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] { flex-direction:row-reverse; }\n.pill[data-orient=\"v\"] { flex-direction:column; height:auto; width:var(--vw); border-radius:calc(var(--vw) / 2); padding:2px 0 4px; }\n.pill.morphing, .pill.morphing * { transition:none !important; }\n.pill.morphing { overflow:hidden; }\n.seg { display:grid; grid-template-columns:0fr; visibility:hidden;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), visibility 0s linear var(--duration-resize); }\n.seg-in { min-width:0; overflow:hidden; display:flex; align-items:center; padding:5px 0; margin:-5px 0;\n opacity:0; filter:blur(var(--blur-small));\n transition: opacity var(--duration-quick) var(--ease-in-out), filter var(--duration-quick) var(--ease-in-out); }\n.seg.on { grid-template-columns:1fr; visibility:visible;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), visibility 0s; }\n.seg.on > .seg-in { opacity:1; filter:none; transition-duration: var(--duration-fast); transition-delay: var(--duration-micro); }\n.pill[data-orient=\"v\"] .seg { grid-template-columns:1fr; grid-template-rows:0fr;\n transition: grid-template-rows var(--duration-resize) var(--ease-smooth-out), visibility 0s linear var(--duration-resize); }\n.pill[data-orient=\"v\"] .seg.on { grid-template-rows:1fr; transition: grid-template-rows var(--duration-resize) var(--ease-smooth-out), visibility 0s; }\n.pill[data-orient=\"v\"] .seg-in { flex-direction:column; min-height:0; padding:0 5px; margin:0 -5px; }\n\n/* the recording dot: its ripple is a pseudo-element, outside layout */\n.dot { position:relative; width:8px; height:8px; flex:none; border-radius:50%; background:var(--rec); }\n.dot::after { content:\"\"; position:absolute; inset:0; border-radius:50%; background:var(--rec); opacity:0; pointer-events:none;\n animation:ripple 2s var(--ease-out) infinite; }\n@keyframes ripple { 0% { transform:scale(1); opacity:.45; } 70%, 100% { transform:scale(2.75); opacity:0; } }\n.pill[data-state=\"paused\"] .dot { background:var(--fg-3); }\n.pill[data-state=\"bad\"] .dot { background:var(--warn); }\n.pill[data-state=\"paused\"] .dot::after, .pill[data-state=\"bad\"] .dot::after { animation:none; }\n\n/* idle: the puck \u2014 ring = not linked, dot = ready; the label slides out on intent */\n.puck { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; height:var(--h); min-width:var(--h);\n padding:0 calc((var(--h) - 10px) / 2); border-radius:999px; cursor:pointer; touch-action:none;\n font-weight:600; font-size:var(--fs); color:var(--fg); }\n.dock[data-col=\"r\"] .puck { flex-direction:row-reverse; }\n.ring { width:10px; height:10px; flex:none; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--fg-2);\n transition: background-color var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out); }\n/* ready = a red record dot (HUD polish D3): the puck reads as the action that starts a recording */\n.puck[data-state=\"ready\"] .ring { background:var(--rec); box-shadow:none; }\n.puck[data-state=\"busy\"] .ring { background:var(--rec); box-shadow:none; animation:breathe 1.2s var(--ease-in-out) infinite; }\n/* the idle \u22EF keeps the tray's inset from the pill's round end */\n.s-more > .seg-in { padding-left:3px; padding-right:3px; }\n@keyframes breathe { 50% { opacity:.35; } }\n.lab { display:grid; grid-template-columns:0fr; opacity:0;\n transition: grid-template-columns var(--duration-resize) var(--ease-smooth-out), opacity var(--duration-quick) var(--ease-out); }\n/* the gap to the ring is a clipped pseudo-element: padding would keep a folded label 10px wide */\n.lab > span { min-width:0; overflow:hidden; white-space:nowrap; }\n.lab > span::before, .lab > span::after { content:\"\"; display:inline-block; }\n.lab > span::before { width:8px; }\n.lab > span::after { width:2px; }\n.dock[data-col=\"r\"] .lab > span::before { width:2px; }\n.dock[data-col=\"r\"] .lab > span::after { width:8px; }\n.pill[data-open] .lab, .puck:focus-visible .lab { grid-template-columns:1fr; opacity:1; }\n.puck:focus-visible, .handle:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n@media (hover: hover) {\n .puck[data-state=\"ready\"]:hover .ring { box-shadow:0 0 0 3px var(--rec-soft); }\n .puck[data-state=\"unlinked\"]:hover .ring { box-shadow:inset 0 0 0 1.5px var(--fg); }\n}\n\n/* recording: the handle (dot + clock) \u2014 symmetric: the dot centres in the pill's round end */\n.handle { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:6px; height:var(--h);\n padding:0 calc((var(--h) - 8px) / 2); border-radius:999px; cursor:grab; touch-action:none; }\n.dock.dragging .handle { cursor:grabbing; }\n.pill[data-orient=\"v\"] .handle { flex-direction:column; height:auto; width:var(--vw); gap:5px; padding:calc((var(--vw) - 8px) / 2 - 2px) 0 6px; }\n.clock { display:inline-flex; align-items:center; }\n.clock .seg-in { padding:0; margin:0; }\n.time { font-weight:600; font-size:var(--fs); line-height:1; font-variant-numeric:tabular-nums; letter-spacing:.01em; white-space:nowrap; }\n.pill[data-orient=\"v\"] .time { font-size:var(--fs-s); letter-spacing:-.01em; }\n.pill[data-orient=\"v\"] .clock { flex-direction:column; }\n.flash { display:inline-flex; align-items:center; gap:4px; color:var(--ok); font-weight:600; font-size:var(--fs); line-height:1; white-space:nowrap; }\n.flash svg { font-size:var(--ic); }\n.pill[data-orient=\"v\"] .flash span { display:none; }\n\n/* the tool tray */\n.tools { display:flex; align-items:center; gap:calc(2px * var(--s)); padding-right:3px; }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] .tools { flex-direction:row-reverse; padding-right:0; padding-left:3px; }\n.pill[data-orient=\"v\"] .tools { flex-direction:column; padding:0 0 2px; gap:calc(3px * var(--s)); }\n.sep { width:1px; height:14px; flex:none; margin:0 4px 0 0; background:var(--edge); }\n.dock[data-col=\"r\"] .pill[data-orient=\"h\"] .sep { margin:0 0 0 4px; }\n.pill[data-orient=\"v\"] .sep { width:14px; height:1px; margin:2px 0 4px; }\nbutton.tb { all:unset; pointer-events:auto; box-sizing:border-box; position:relative; flex:none; display:inline-grid; place-items:center;\n width:var(--b); height:var(--b); border-radius:999px; color:var(--fg-2); cursor:pointer; font-size:var(--ic);\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\nbutton.tb.b-annotate { color:var(--rec); }\nbutton.tb.on { background:var(--rec); color:#fff; }\nbutton.tb.b-stop svg { fill:currentColor; stroke:none; font-size:calc(var(--ic) * .82); }\n/* the notes button's count (D5) */\nbutton.tb .cnt { position:absolute; top:-2px; right:-3px; min-width:14px; height:14px; padding:0 3px; border-radius:7px; box-sizing:border-box;\n background:var(--ink-3); color:var(--fg); font-size:9px; font-weight:700; line-height:14px; text-align:center; box-shadow:0 0 0 1.5px var(--ink-solid); }\nbutton.tb:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n@media (hover: hover) {\n button.tb:hover { background:var(--ink-2); color:var(--fg); }\n button.tb.on:hover { background:var(--rec); color:#fff; }\n button.tb.b-stop:hover { background:var(--rec-soft); color:var(--rec); }\n}\n\n/* sync (HUD polish D4): a ring on the rec dot \u2014 green synced, amber sending, warn offline, red ended;\n the counts ride the details float (.stats) while the tray is open */\n.dot[data-sync] { box-shadow:0 0 0 2px var(--ink-solid), 0 0 0 3.5px var(--ok);\n transition: box-shadow var(--duration-quick) var(--ease-out); }\n.dot[data-sync=\"sending\"] { box-shadow:0 0 0 2px var(--ink-solid), 0 0 0 3.5px var(--fg-3); }\n.dot[data-sync=\"offline\"] { box-shadow:0 0 0 2px var(--ink-solid), 0 0 0 3.5px var(--warn); }\n.dot[data-sync=\"error\"] { box-shadow:0 0 0 2px var(--ink-solid), 0 0 0 3.5px var(--rec); }\n.detail.statsf { max-width:none; }\n.stats { display:inline-flex; align-items:center; gap:10px; white-space:nowrap; font-weight:600; color:var(--fg-3); }\n.stats .s-head { display:inline-flex; align-items:center; gap:5px; color:var(--ok); }\n.stats[data-kind=\"sending\"] .s-head { color:var(--fg-2); }\n.stats[data-kind=\"offline\"] .s-head { color:var(--warn); }\n.stats[data-kind=\"error\"] .s-head { color:var(--rec); }\n.stats > i { width:1px; height:12px; background:var(--edge); }\n.stats b { color:var(--fg); font-weight:600; font-variant-numeric:tabular-nums; }\n.spin { animation:spin .9s var(--ease-linear) infinite; transform-origin:50% 50%; }\n@keyframes spin { to { transform:rotate(360deg); } }\n\n/* inline flows: confirm \u00B7 saving \u00B7 saved \u00B7 failed */\n.flow { display:flex; align-items:center; gap:calc(6px * var(--s)); height:var(--h); padding:0 3px 0 calc(var(--h) * .42);\n white-space:nowrap; font-size:var(--fs); font-weight:600; line-height:1; color:var(--fg); }\n.pill[data-face=\"flow-rec\"] .flow { padding-left:2px; }\n.dock[data-col=\"r\"] .pill[data-face=\"flow-rec\"] .flow { padding-left:calc(var(--h) * .42); padding-right:0; }\n.flow .q { margin-right:calc(4px * var(--s)); }\n.flow .muted { color:var(--fg-3); font-weight:500; }\n.flow svg { font-size:var(--ic); }\n.fb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:5px; height:calc(var(--h) - 6px);\n padding:0 calc(10px * var(--s)); border-radius:999px; font-size:calc(var(--fs) - .5px); font-weight:600; line-height:1; color:var(--fg);\n background:var(--ink-2); text-decoration:none;\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.fb.primary { background:var(--rec); color:#fff; }\n.fb.icon { width:calc(var(--h) - 6px); padding:0; justify-content:center; background:transparent; color:var(--fg-3); }\n.fb:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }\n@media (hover: hover) {\n .fb:hover { background:var(--ink-3); }\n .fb.primary:hover { background:#ff5670; }\n .fb.icon:hover { color:var(--fg); background:var(--ink-2); }\n}\n.saving { position:relative; padding-right:calc(var(--h) * .42); }\n.saving .spinner { color:var(--fg-2); }\n.saving .spinner circle { stroke-dasharray:44 63; }\n.bar-track { position:absolute; left:calc(var(--h) * .42); right:calc(var(--h) * .42); bottom:3px; height:2px; border-radius:1px; background:var(--ink-2); overflow:hidden; }\n.bar-track > i { position:absolute; inset:0 auto 0 0; width:calc(var(--p, 0) * 100%); border-radius:1px; background:var(--fg-2);\n transition: width var(--duration-fast) var(--ease-smooth-out); }\n.bar-track[data-indeterminate] > i { width:35%; animation:slide 1.1s var(--ease-in-out) infinite; }\n@keyframes slide { from { transform:translateX(-100%); } to { transform:translateX(290%); } }\n.saved .ok { display:inline-flex; color:var(--ok); }\n.saved .warn, .failed .warn { display:inline-flex; color:var(--warn); }\n/* the board's build (D1): Building board \u00B7 step \u00B7 k/n over the save's bar */\n.saved[data-build=\"building\"] { position:relative; }\n.saved[data-build=\"building\"] > svg { color:var(--fg-2); }\n.flow .step { max-width:calc(150px * var(--s)); overflow:hidden; text-overflow:ellipsis; }\n.flow .frac { color:var(--fg-2); font-variant-numeric:tabular-nums; }\n.flash[data-word=\"queued\"] { color:var(--fg-2); }\n/* the first-run hint (D3): once, beside the idle puck */\n.firstrun { width:calc(240px * var(--s)); padding:calc(11px * var(--s)) calc(12px * var(--s)); font-size:calc(var(--fs) - .5px); line-height:1.4; color:var(--fg-2); }\n.firstrun b { display:block; margin-bottom:3px; color:var(--fg); font-size:var(--fs); }\n.firstrun p { margin:0; }\n.firstrun .row2 { display:flex; gap:6px; margin-top:9px; }\n/* a recording in another tab (D11): the dot and where it is, nothing to press */\n.flow.remote { padding-right:calc(var(--h) * .42); }\n.flow.remote .dot { margin-right:2px; }\n.failed .msg { max-width:calc(220px * var(--s)); overflow:hidden; text-overflow:ellipsis; }\n\n/* the success check (transitions.dev 10, tuned to a 13px glyph) */\n.t-check { display:inline-block; transform-origin:center; opacity:0; will-change:transform, opacity, filter; }\n.t-check svg { display:block; overflow:visible; }\n.t-check svg path { stroke-dasharray:18; stroke-dashoffset:18; }\n.t-check[data-state=\"in\"] {\n animation: t-check-fade var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-rotate var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-blur var(--duration-very-slow) var(--ease-smooth-out) forwards,\n t-check-bob var(--duration-very-slow) cubic-bezier(0.34, 1.35, 0.64, 1) forwards; }\n.t-check[data-state=\"in\"] svg path { animation: t-check-draw var(--duration-very-slow) var(--ease-smooth-out) var(--duration-micro) forwards; }\n@keyframes t-check-fade { from { opacity:0; } to { opacity:1; } }\n@keyframes t-check-rotate { from { transform:rotate(80deg); } to { transform:rotate(0deg); } }\n@keyframes t-check-blur { from { filter:blur(8px); } to { filter:blur(0); } }\n@keyframes t-check-bob { from { translate:0 8px; } to { translate:0 0; } }\n@keyframes t-check-draw { to { stroke-dashoffset:0; } }\n\n/* the edge tab a tucked HUD becomes */\n.tab { all:unset; box-sizing:border-box; position:relative; display:block; width:22px; height:56px; cursor:pointer; touch-action:none; }\n.tab::before { content:\"\"; position:absolute; top:0; bottom:0; width:6px; background:var(--ink);\n -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);\n box-shadow: inset 0 0 0 1px var(--edge), 0 0 0 .5px var(--rim), 0 6px 18px -6px rgba(0,0,0,.5);\n transition: width var(--duration-quick) var(--ease-out); }\n.tab::after { content:\"\"; position:absolute; top:16px; bottom:16px; width:2px; border-radius:1px; background:var(--fg-3); }\n.dock[data-tuck=\"left\"] .tab::before { left:0; border-radius:0 7px 7px 0; }\n.dock[data-tuck=\"right\"] .tab::before { right:0; border-radius:7px 0 0 7px; }\n.dock[data-tuck=\"left\"] .tab::after { left:2px; }\n.dock[data-tuck=\"right\"] .tab::after { right:2px; }\n.tab[data-state=\"rec\"]::after { background:var(--rec); }\n.tab[data-state=\"bad\"]::after { background:var(--warn); }\n.tab:focus-visible::before { width:10px; outline:2px solid var(--rec); outline-offset:1px; }\n@media (hover: hover) { .tab:hover::before { width:9px; } }\n\n/* floats: fixed, placed in JS beside the dock (place.ts) */\n.float { position:fixed; left:0; top:0; z-index:5; pointer-events:auto; }\n\n/* the tooltip (transitions.dev 17): one bubble that travels between triggers */\n.tip { display:inline-flex; align-items:center; gap:7px; padding:calc(5px * var(--s)) calc(8px * var(--s)); border-radius:7px; white-space:nowrap;\n font-size:calc(var(--fs) - 1px); font-weight:600; line-height:1; color:var(--fg); pointer-events:none;\n opacity:0; scale:var(--scale-small); z-index:7;\n transition: opacity 50ms var(--ease-out), scale 50ms var(--ease-out), translate 160ms var(--ease-smooth-out); }\n.tip[data-show=\"true\"] { opacity:1; scale:1;\n transition: opacity var(--duration-quick) var(--ease-out) var(--duration-micro), scale var(--duration-quick) var(--ease-out) var(--duration-micro),\n translate 160ms var(--ease-smooth-out); }\n.tip.snap { transition:none !important; }\n.tip kbd { font:600 calc(var(--fs-s) - .5px)/1 ui-monospace, \"SF Mono\", Menlo, monospace; color:var(--fg-3); letter-spacing:.02em; }\n\n/* the \u22EF menu */\n.menu { width:calc(252px * var(--s)); max-height:calc(100vh - 16px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;\n padding:calc(5px * var(--s)); border-radius:calc(13px * var(--s)); display:flex; flex-direction:column; gap:1px; font-size:var(--fs); }\n.m-head { display:flex; flex-direction:column; gap:3px; padding:calc(8px * var(--s)) calc(10px * var(--s)) calc(9px * var(--s)); }\n.m-who { display:flex; align-items:baseline; gap:5px; min-width:0; font-weight:600; color:var(--fg); line-height:1.2; }\n.m-who .email { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.m-who .ws { flex:none; color:var(--fg-2); font-weight:500; }\n.m-who.wraps .email { white-space:normal; overflow-wrap:anywhere; }\n.m-sub { font-size:var(--fs-s); color:var(--fg-3); line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.m-sub .live { color:var(--ok); }\n.m-rule { height:1px; margin:3px 4px; background:var(--edge); flex:none; }\n.m-label { padding:calc(7px * var(--s)) calc(10px * var(--s)) 3px; font-size:var(--fs-s); font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--fg-3); }\n.mi { all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:9px; min-height:calc(30px * var(--s));\n padding:calc(7px * var(--s)) calc(10px * var(--s)); border-radius:8px; color:var(--fg); line-height:1.2; text-decoration:none;\n transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.mi > svg { color:var(--fg-2); font-size:var(--ic); }\n.mi .end { margin-left:auto; color:var(--fg-3); font-size:var(--ic); }\n.mi:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n.mi.danger { color:var(--fg-2); }\n@media (hover: hover) {\n .mi:hover { background:var(--ink-2); }\n .mi.danger:hover, .mi.danger:hover svg { color:var(--rec); }\n}\n.recent { align-items:flex-start; }\n.recent .r-main { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }\n.recent .r-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.recent .r-meta { display:flex; align-items:center; gap:5px; font-size:var(--fs-s); color:var(--fg-3); white-space:nowrap; }\n.recent .r-meta i { width:5px; height:5px; border-radius:50%; flex:none; background:var(--fg-3); }\n.recent .r-meta i[data-status=\"saved\"] { background:var(--ok); }\n.recent .r-meta i[data-status=\"recording\"] { background:var(--rec); }\n.recent .r-meta i[data-status=\"unsaved\"] { background:var(--warn); }\n.recent[aria-disabled=\"true\"] { cursor:default; }\n.recent .end { margin-top:1px; }\n.m-empty { padding:4px 10px 8px; font-size:var(--fs-s); color:var(--fg-3); }\n.m-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:calc(32px * var(--s)); padding:2px calc(6px * var(--s)) 2px calc(10px * var(--s)); color:var(--fg-2); }\n.m-row > span:first-child { color:var(--fg); }\n.m-row.toggle { cursor:pointer; border-radius:8px; }\n@media (hover: hover) { .m-row.toggle:hover { background:var(--ink-2); } }\n.m-row.toggle:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }\n.m-foot { padding:6px 10px 4px; font:500 calc(var(--fs-s) - .5px)/1.3 ui-monospace, \"SF Mono\", Menlo, monospace; color:var(--fg-3); }\n\n/* size: a segmented control with a sliding pill (transitions.dev 16) */\n.sizes { position:relative; display:inline-grid; grid-template-columns:repeat(3, calc(30px * var(--s))); padding:2px; border-radius:999px;\n background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); --i:1; }\n.sizes::before { content:\"\"; position:absolute; top:2px; bottom:2px; left:2px; width:calc(30px * var(--s)); border-radius:999px; background:var(--ink-3);\n transform:translateX(calc(var(--i) * 100%)); transition: transform var(--duration-fast) var(--ease-smooth-out); }\n.sizes button { all:unset; box-sizing:border-box; position:relative; z-index:1; cursor:pointer; display:grid; place-items:center;\n height:calc(22px * var(--s)); border-radius:999px; font-size:var(--fs-s); font-weight:700; color:var(--fg-3);\n transition: color var(--duration-fast) var(--ease-smooth-out); }\n.sizes button[aria-checked=\"true\"] { color:var(--fg); }\n.sizes button:focus-visible { outline:2px solid var(--rec); outline-offset:-1px; }\n@media (hover: hover) { .sizes button:hover { color:var(--fg-2); } .sizes button[aria-checked=\"true\"]:hover { color:var(--fg); } }\n\n/* verbose: a switch (transitions.dev 27, travel only) */\n.switch { position:relative; width:calc(30px * var(--s)); height:calc(18px * var(--s)); flex:none; border-radius:999px; background:var(--ink-3);\n transition: background-color var(--duration-fast) var(--ease-smooth-out); }\n.switch::after { content:\"\"; position:absolute; top:2px; left:2px; width:calc(14px * var(--s)); height:calc(14px * var(--s)); border-radius:50%;\n background:var(--fg-2); box-shadow:0 1px 3px rgba(0,0,0,.35);\n transition: translate var(--duration-fast) var(--ease-bounce), background-color var(--duration-fast) var(--ease-smooth-out); }\n.switch[data-on=\"true\"] { background:var(--rec); }\n.switch[data-on=\"true\"]::after { translate:calc(12px * var(--s)) 0; background:#fff; }\n\n/* Move to: a miniature screen, eight spots (no centre); middle-row marks stand up like the pill does */\n.screen { position:relative; display:grid; grid-template-columns:repeat(3, calc(22px * var(--s))); grid-template-rows:repeat(3, calc(15px * var(--s)));\n padding:calc(3px * var(--s)); border-radius:7px; box-shadow:inset 0 0 0 1px var(--edge); background:rgba(0,0,0,.22); }\n.screen button { all:unset; box-sizing:border-box; position:relative; cursor:pointer; border-radius:4px; display:grid; place-items:center; }\n.screen button::before { content:\"\"; width:calc(11px * var(--s)); height:calc(4px * var(--s)); border-radius:2px; background:var(--fg-3); opacity:.55;\n transition: background-color var(--duration-quick) var(--ease-out), opacity var(--duration-quick) var(--ease-out), transform var(--duration-quick) var(--ease-out); }\n.screen button[data-v]::before { width:calc(4px * var(--s)); height:calc(10px * var(--s)); }\n.screen button[aria-checked=\"true\"]::before { background:var(--rec); opacity:1; }\n.screen button:focus-visible { outline:2px solid var(--rec); outline-offset:-1px; }\n.screen .mid { grid-column:2; grid-row:2; }\n@media (hover: hover) { .screen button:hover::before { opacity:1; background:var(--fg-2); transform:scale(1.12); } .screen button[aria-checked=\"true\"]:hover::before { background:var(--rec); } }\n\n/* the details card: the health line when something is wrong, the technical details in verbose mode */\n.detail { width:max-content; max-width:calc(260px * var(--s)); padding:calc(6px * var(--s)) calc(11px * var(--s)); border-radius:calc(10px * var(--s));\n color:var(--fg-2); font-size:calc(var(--fs) - 1px); line-height:1.4; pointer-events:none; }\n.detail.line { border-radius:999px; }\n/* the tooltip and the card open on the same side: the card steps back while a tooltip speaks */\n.hud .tip[data-show=\"true\"] ~ .detail.is-open { opacity:0; transition: opacity var(--duration-quick) var(--ease-out); }\n.detail.bad { color:var(--fg); box-shadow: inset 0 0 0 1px rgba(240,166,58,.55), 0 10px 28px -10px rgba(0,0,0,.5); }\n.detail dl { display:grid; grid-template-columns:auto auto; gap:2px 12px; margin:0; font:500 var(--fs-s)/1.35 ui-monospace, \"SF Mono\", Menlo, monospace; }\n.detail dt { color:var(--fg-3); }\n.detail dd { margin:0; color:var(--fg); font-variant-numeric:tabular-nums; }\n.detail .warnline { margin-top:5px; color:var(--warn); font-size:var(--fs-s); }\n\n/* presence: dropdown-style grow from the anchor on open, a softer shrink on close */\n.grow { transform:scale(var(--scale-medium)); opacity:0;\n transition: transform var(--duration-fast) var(--ease-smooth-out), opacity var(--duration-fast) var(--ease-smooth-out); }\n.grow.is-open { transform:scale(1); opacity:1; }\n.grow.is-closing { transform:scale(var(--scale-tiny)); opacity:0; pointer-events:none; transition-duration: var(--duration-quick); }\n/* phone: the sheet rises from the bottom edge (toast motion) */\n.rise { transform:translateY(var(--rise)) scale(var(--scale-medium)); opacity:0; filter:blur(var(--blur-small));\n transition: transform var(--duration-fast) var(--ease-smooth-out), opacity var(--duration-fast) var(--ease-smooth-out), filter var(--duration-fast) var(--ease-smooth-out); }\n.rise.is-open { transform:none; opacity:1; filter:none; transition-duration: var(--duration-medium); }\n.rise.is-closing { pointer-events:none; }\n\n/* pick chrome (annotate mode): dim, outline, hint \u2014 shadow-root children */\n.dim { position:fixed; inset:0; z-index:1; pointer-events:none; background:rgba(0,0,0,.18); }\n.outline { position:fixed; z-index:2; pointer-events:none; border:2px solid var(--rec); border-radius:6px;\n box-shadow:0 0 0 4px rgba(255,59,87,.15); }\n.hint { position:fixed; top:14px; left:50%; transform:translateX(-50%); z-index:3; padding:calc(8px * var(--s)) calc(14px * var(--s));\n border-radius:999px; font-size:var(--fs); font-weight:600; line-height:1; white-space:nowrap; display:flex; gap:8px; align-items:center; }\n.hint svg { color:var(--rec); }\n.hint .keys { color:var(--fg-3); font-weight:500; margin-left:-4px; }\n@media (pointer: coarse) { .hint .keys { display:none; } }\n.hud[data-spot=\"tc\"] .hint { top:auto; bottom:14px; }\n\n/* sheets: a popover anchored to the dock, or a phone bottom sheet */\n.anchor { position:fixed; z-index:6; pointer-events:none; }\n.anchor > * { pointer-events:auto; }\n.phone { position:fixed; z-index:6; display:flex; flex-direction:column; justify-content:flex-end;\n padding:0 8px calc(8px + env(safe-area-inset-bottom, 0px)); pointer-events:none; }\n.phone > * { pointer-events:auto; }\n.pop { width:min(calc(288px * var(--s)), calc(100vw - 24px)); padding:calc(12px * var(--s)); border-radius:calc(14px * var(--s)); font-size:var(--fs); }\n/* the composer: 440px at every HUD size, or the width the tester dragged (--sheet-w, resize.ts) */\n.pop.compose { position:relative; width:min(var(--sheet-w, 440px), calc(100vw - 24px)); }\n.phone .pop { width:100%; border-radius:18px; padding:14px; }\n.pop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }\n.title { display:flex; align-items:center; gap:7px; font-size:calc(var(--fs) + .5px); font-weight:600; color:var(--fg); }\n.title i { width:3px; height:11px; border-radius:1px; background:var(--rec); }\n.closeb { all:unset; box-sizing:border-box; cursor:pointer; width:24px; height:24px; border-radius:7px; color:var(--fg-3);\n display:inline-grid; place-items:center; font-size:12px; }\n.closeb:focus-visible, .sendb:focus-visible, .retry:focus-visible, .dest button:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n@media (hover: hover) { .closeb:hover { color:var(--fg); background:var(--ink-2); } }\ntextarea { width:100%; margin-top:10px; padding:9px 11px; min-height:calc(64px * var(--s)); resize:none; overflow-y:hidden; background:rgba(0,0,0,.28);\n border:0; box-shadow:inset 0 0 0 1px var(--edge); border-radius:9px; color:var(--fg);\n font:400 calc(14px * var(--s))/1.4 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif; }\n@media (pointer: coarse) { textarea { font-size:16px; } .hints { display:none; } }\ntextarea::placeholder { color:var(--fg-3); }\ntextarea:focus { outline:none; box-shadow:inset 0 0 0 1px var(--fg-3); }\n.row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; margin-top:10px; }\n.row.nodest { grid-template-columns:minmax(0,1fr) auto; }\n.ctx { font-size:var(--fs-s); line-height:1.35; color:var(--fg-3); text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.row.nodest .ctx { text-align:left; }\n/* what an annotation points at (D9/D15): its crop where the host has pixels, else a size \u00B7 route chip; Reselect either way */\n.selhead { display:flex; align-items:center; gap:10px; margin-top:10px; padding:6px 6px 6px 8px; border-radius:9px; background:rgba(0,0,0,.28);\n box-shadow:inset 0 0 0 1px var(--edge); font-size:var(--fs-s); line-height:1.35; color:var(--fg-3); }\n.selhead.has-crop { padding-left:6px; }\n.selhead > svg { color:var(--rec); font-size:var(--ic); }\n.selcrop { width:calc(92px * var(--s)); height:calc(56px * var(--s)); flex:none; object-fit:cover; border-radius:6px; box-shadow:0 0 0 1.5px var(--rec); }\n.selmeta { display:flex; flex-direction:column; min-width:0; flex:1; }\n.selmeta b { color:var(--fg); font-weight:600; }\n.selmeta span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.selhead .fb { height:calc(24px * var(--s)); flex:none; }\n/* the notes this one references (D7) */\n.refs { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; padding:0; list-style:none; }\n.ref { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:3px 4px 3px 8px; border-radius:7px; font-size:var(--fs-s);\n color:var(--fg-2); background:rgba(127,214,164,.08); box-shadow:inset 0 0 0 1px rgba(127,214,164,.3); }\n.ref svg { color:var(--ok); }\n.ref b { color:var(--ok); font-weight:600; }\n.ref .t { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }\n.ref button { all:unset; cursor:pointer; display:inline-grid; place-items:center; width:16px; height:16px; border-radius:4px; color:var(--fg-3); font-size:9px; }\n.ref button:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }\n@media (hover: hover) { .ref button:hover { color:var(--fg); background:var(--ink-2); } }\n.dest { display:inline-flex; padding:2px; border-radius:8px; background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); }\n.dest button { all:unset; box-sizing:border-box; cursor:pointer; padding:5px 8px; min-height:24px; border-radius:6px; color:var(--fg-3);\n font-size:calc(var(--fs) - .5px); font-weight:600; line-height:14px; transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n.dest button[aria-pressed=\"true\"] { background:var(--ink-2); color:var(--fg); }\n.sendb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:6px; height:calc(28px * var(--s)); padding:0 12px;\n border-radius:8px; background:var(--rec); color:#fff; font-size:calc(var(--fs) + .5px); font-weight:600; line-height:1; text-decoration:none; }\n@media (hover: hover) { .sendb:hover { background:#ff5670; } }\n.sendb[aria-disabled=\"true\"] { opacity:.45; cursor:default; background:var(--rec); }\n.hints { margin-top:9px; font-size:var(--fs-s); line-height:1; color:var(--fg-3); }\n/* attachments: the paperclip beside Send, the thumbnail strip, the drop target; a refusal takes the ctx slot */\n.acts { display:inline-flex; align-items:center; gap:6px; }\n.clipb { all:unset; box-sizing:border-box; cursor:pointer; display:inline-grid; place-items:center; width:calc(28px * var(--s)); height:calc(28px * var(--s));\n border-radius:8px; color:var(--fg-2); font-size:calc(var(--ic) + 1px); transition: background-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out); }\n@media (hover: hover) { .clipb:hover { color:var(--fg); background:var(--ink-2); } }\n.clipb[aria-disabled=\"true\"] { opacity:.45; cursor:default; }\n.clipb:focus-visible, .attx:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }\n.ctx.bad { color:var(--warn); }\n.atts { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; padding:0; list-style:none; }\n.att { position:relative; width:calc(52px * var(--s)); height:calc(52px * var(--s)); border-radius:8px; overflow:hidden;\n background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); display:grid; place-items:center; color:var(--fg-3); }\n.att img { width:100%; height:100%; object-fit:cover; display:block; }\n.attx { all:unset; box-sizing:border-box; cursor:pointer; position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%;\n display:grid; place-items:center; font-size:9px; color:#fff; background:rgba(0,0,0,.62); box-shadow:0 0 0 1px rgba(255,255,255,.18); }\n@media (hover: hover) { .attx:hover { background:rgba(0,0,0,.85); } }\n@media (pointer: coarse) { .attx { width:24px; height:24px; top:2px; right:2px; font-size:11px; } }\n.pop.dropping { outline:2px dashed var(--fg-2); outline-offset:-5px; }\n/* the resize grip on the composer's corner away from the dock (resize.ts); its hit area reaches outward, never over the \u2715 */\n.grip { all:unset; box-sizing:border-box; position:absolute; width:14px; height:14px; display:grid; place-items:center; border-radius:4px;\n font-size:12px; color:var(--fg-3); touch-action:none; --reach:-6px; transition: color var(--duration-quick) var(--ease-out); }\n.grip::after { content:\"\"; position:absolute; }\n.grip[data-corner=\"tl\"] { top:3px; left:3px; cursor:nwse-resize; }\n.grip[data-corner=\"tr\"] { top:3px; right:3px; cursor:nesw-resize; }\n.grip[data-corner=\"bl\"] { bottom:3px; left:3px; cursor:nesw-resize; }\n.grip[data-corner=\"br\"] { bottom:3px; right:3px; cursor:nwse-resize; }\n.grip[data-corner=\"tl\"]::after { inset:var(--reach) 0 0 var(--reach); }\n.grip[data-corner=\"tr\"]::after { inset:var(--reach) var(--reach) 0 0; }\n.grip[data-corner=\"bl\"]::after { inset:0 0 var(--reach) var(--reach); }\n.grip[data-corner=\"br\"]::after { inset:0 var(--reach) var(--reach) 0; }\n.grip[data-corner=\"tl\"] svg { transform:rotate(180deg); }\n.grip[data-corner=\"tr\"] svg { transform:rotate(-90deg); }\n.grip[data-corner=\"bl\"] svg { transform:rotate(90deg); }\n@media (hover: hover) { .grip:hover { color:var(--fg); } }\n@media (pointer: coarse) { .grip { --reach:-14px; } }\n.grip:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }\n";
|
|
20
2
|
/**
|
|
21
3
|
* Inline style of the HUD host: a 0×0 fixed box at the viewport origin (the
|
|
22
4
|
* dock and sheets are fixed children of its shadow root). Zero-size keeps
|