@vitrinka/web 0.3.4 → 0.4.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 +60 -0
- package/README.md +59 -5
- package/build/hud.d.ts +1 -1
- package/build/hud.iife.js +46 -9
- package/build/protocol/index.d.ts +55 -4
- package/build/protocol/index.js +4 -2
- package/build/recorder/api.d.ts +25 -5
- package/build/recorder/api.js +21 -9
- package/build/recorder/attachments.d.ts +19 -0
- package/build/recorder/attachments.js +31 -0
- package/build/recorder/hud/Hud.d.ts +1 -1
- package/build/recorder/hud/Hud.js +43 -10
- package/build/recorder/hud/Sheet.d.ts +40 -5
- package/build/recorder/hud/Sheet.js +134 -8
- package/build/recorder/hud/attach.d.ts +26 -0
- package/build/recorder/hud/attach.js +136 -0
- package/build/recorder/hud/controller.d.ts +31 -3
- package/build/recorder/hud/controller.js +1 -1
- package/build/recorder/hud/host.js +2 -0
- package/build/recorder/hud/icons.d.ts +3 -0
- package/build/recorder/hud/icons.js +7 -0
- package/build/recorder/hud/layer.d.ts +4 -1
- package/build/recorder/hud/layer.js +11 -3
- package/build/recorder/hud/resize.d.ts +83 -0
- package/build/recorder/hud/resize.js +236 -0
- package/build/recorder/hud/styles.d.ts +1 -1
- package/build/recorder/hud/styles.js +38 -1
- package/build/recorder/link.d.ts +4 -1
- package/build/recorder/link.js +6 -2
- package/build/recorder/me.d.ts +7 -0
- package/build/recorder/me.js +62 -12
- package/build/recorder/page-controller.js +4 -3
- package/build/recorder/queue.d.ts +33 -3
- package/build/recorder/queue.js +404 -24
- package/build/recorder/report.d.ts +9 -0
- package/build/recorder/report.js +46 -4
- package/build/recorder/session.d.ts +13 -5
- package/build/recorder/session.js +42 -12
- package/build/recorder/storage/blobs.d.ts +32 -0
- package/build/recorder/storage/blobs.js +83 -0
- package/build/recorder/storage/index.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The composer sheet's size — HUD prefs `sheetW` (its width) and `sheetH`
|
|
3
|
+
* (the cap its text box grows to with the draft before it scrolls), CSS px,
|
|
4
|
+
* 0 = the HUD's default: `SHEET_W` at every HUD size, `SHEET_ROWS` rows.
|
|
5
|
+
*
|
|
6
|
+
* A grip on the corner facing away from the dock (`gripFor`) resizes both: a
|
|
7
|
+
* pointer drag (captured) live, reporting ONCE on release; arrow keys move
|
|
8
|
+
* that corner 16 px (⇧ 64) and report on key-up; Enter or a double-click
|
|
9
|
+
* resets both to the default. While a vertical resize is in progress the text
|
|
10
|
+
* box stands at the cap it sets, so the hand sees it; once it ends the text box
|
|
11
|
+
* fits its draft again, up to that cap. An axis a drag barely moved keeps its
|
|
12
|
+
* pref, so widening never pins the cap to today's draft. A phone's bottom
|
|
13
|
+
* sheet spans the viewport, so its grip sizes the cap alone. The sheet never
|
|
14
|
+
* outgrows the `room` it has beside the dock: past the cap, or past that
|
|
15
|
+
* room, the text box scrolls.
|
|
16
|
+
*/
|
|
17
|
+
import { useLayoutEffect, useRef, useState, } from 'react';
|
|
18
|
+
/** The default width, CSS px, at every HUD size (styles.ts `.pop.compose`). */
|
|
19
|
+
export const SHEET_W = 440;
|
|
20
|
+
export const SHEET_MIN_W = 320;
|
|
21
|
+
export const SHEET_MAX_W = 960;
|
|
22
|
+
/** The default cap: this many text rows. */
|
|
23
|
+
export const SHEET_ROWS = 20;
|
|
24
|
+
/** The largest size the server stores. */
|
|
25
|
+
const SHEET_PX_MAX = 1600;
|
|
26
|
+
const STEP = 16;
|
|
27
|
+
const STEP_BIG = 64;
|
|
28
|
+
/** A drag that moved less than this along an axis leaves that axis alone. */
|
|
29
|
+
const SLOP = 3;
|
|
30
|
+
/** What a sheet leaves free across the viewport (its CSS `100vw - 24px`). */
|
|
31
|
+
const SIDE_INSET = 24;
|
|
32
|
+
/** What a sheet leaves free down the viewport when no dock side was measured. */
|
|
33
|
+
const VIEW_INSET = 16;
|
|
34
|
+
/**
|
|
35
|
+
* The free corner of a sheet opened on `side` of the dock, aligned `align`
|
|
36
|
+
* (place.ts): away from the dock on both axes. Beside a vertical dock it is
|
|
37
|
+
* the bottom one; above or below a centred dock, the one clear of the ✕. A
|
|
38
|
+
* phone's bottom sheet opens on `top` with `axes` 'y': a top corner, away
|
|
39
|
+
* from the pill's column.
|
|
40
|
+
*/
|
|
41
|
+
export function gripFor(side, align, axes = 'xy') {
|
|
42
|
+
const centred = align === 'center' ? 2 : 1;
|
|
43
|
+
if (side === 'left')
|
|
44
|
+
return { corner: 'bl', spanX: 1, spanY: centred, axes };
|
|
45
|
+
if (side === 'right')
|
|
46
|
+
return { corner: 'br', spanX: 1, spanY: centred, axes };
|
|
47
|
+
if (side === 'top')
|
|
48
|
+
return { corner: align === 'start' ? 'tr' : 'tl', spanX: centred, spanY: 1, axes };
|
|
49
|
+
return { corner: align === 'end' ? 'bl' : 'br', spanX: centred, spanY: 1, axes };
|
|
50
|
+
}
|
|
51
|
+
/** A width in [SHEET_MIN_W, SHEET_MAX_W] that leaves the viewport its sides (a narrow viewport wins). */
|
|
52
|
+
export function clampSheetW(w, viewW) {
|
|
53
|
+
return Math.round(Math.min(Math.max(w, SHEET_MIN_W), SHEET_MAX_W, viewW - SIDE_INSET));
|
|
54
|
+
}
|
|
55
|
+
function textBounds(el, sheet, room) {
|
|
56
|
+
const cs = getComputedStyle(el);
|
|
57
|
+
const px = (v) => parseFloat(v) || 0;
|
|
58
|
+
const min = px(cs.minHeight);
|
|
59
|
+
const line = px(cs.lineHeight) || px(cs.fontSize) * 1.4;
|
|
60
|
+
const rest = sheet.offsetHeight - el.offsetHeight;
|
|
61
|
+
return {
|
|
62
|
+
min,
|
|
63
|
+
max: Math.max(min, Math.min(room - rest, SHEET_PX_MAX)),
|
|
64
|
+
rows: line * SHEET_ROWS + px(cs.paddingTop) + px(cs.paddingBottom),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** The room a sheet has when nothing measured it: the visual viewport. */
|
|
68
|
+
function roomOr(room) {
|
|
69
|
+
return room > 0 ? room : (globalThis.visualViewport?.height ?? innerHeight) - VIEW_INSET;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Size the text box to its draft: from its CSS min-height (at least `floor`)
|
|
73
|
+
* up to `cap` (0 = `SHEET_ROWS` rows) within the sheet's `room`; past that it
|
|
74
|
+
* scrolls. Its scroll position survives the measuring.
|
|
75
|
+
*/
|
|
76
|
+
export function fitText(el, sheet, cap, floor, room) {
|
|
77
|
+
const b = textBounds(el, sheet, room);
|
|
78
|
+
const top = Math.min(cap > 0 ? Math.max(cap, b.min) : b.rows, b.max);
|
|
79
|
+
const scroll = el.scrollTop;
|
|
80
|
+
el.style.overflowY = 'hidden';
|
|
81
|
+
el.style.height = 'auto';
|
|
82
|
+
const content = el.scrollHeight + el.offsetHeight - el.clientHeight;
|
|
83
|
+
const h = Math.min(Math.max(content, b.min, floor), top);
|
|
84
|
+
el.style.height = `${h}px`;
|
|
85
|
+
el.style.overflowY = content > h ? 'auto' : 'hidden';
|
|
86
|
+
el.scrollTop = scroll;
|
|
87
|
+
}
|
|
88
|
+
const signs = (corner) => ({ x: corner[1] === 'r' ? 1 : -1, y: corner[0] === 'b' ? 1 : -1 });
|
|
89
|
+
/** The sheet's width style, its text box fitted on every commit, and the grip's handlers. */
|
|
90
|
+
export function useSheetSize(o) {
|
|
91
|
+
const [held, setHeld] = useState({});
|
|
92
|
+
// The cap a vertical resize in progress is setting (0 = none): the text box
|
|
93
|
+
// stands at it so the hand sees it, and fits its draft again once it ends.
|
|
94
|
+
const [floor, setFloor] = useState(0);
|
|
95
|
+
const drag = useRef(null);
|
|
96
|
+
const keyed = useRef(null);
|
|
97
|
+
const reported = useRef('');
|
|
98
|
+
const onLayout = useRef(o.onLayout);
|
|
99
|
+
onLayout.current = o.onLayout;
|
|
100
|
+
const width = held.w ?? (o.width > 0 ? Math.min(Math.max(o.width, SHEET_MIN_W), SHEET_MAX_W) : 0);
|
|
101
|
+
const cap = held.h ?? o.cap;
|
|
102
|
+
// Every commit: the draft, the width or the room may have moved the text.
|
|
103
|
+
useLayoutEffect(() => {
|
|
104
|
+
const el = o.text.current;
|
|
105
|
+
const sheet = o.sheet.current;
|
|
106
|
+
if (!el || !sheet)
|
|
107
|
+
return;
|
|
108
|
+
fitText(el, sheet, cap, floor, roomOr(o.room));
|
|
109
|
+
const box = `${sheet.offsetWidth}x${sheet.offsetHeight}`;
|
|
110
|
+
if (box === reported.current)
|
|
111
|
+
return;
|
|
112
|
+
reported.current = box;
|
|
113
|
+
onLayout.current?.();
|
|
114
|
+
});
|
|
115
|
+
const bounds = () => {
|
|
116
|
+
const el = o.text.current;
|
|
117
|
+
const sheet = o.sheet.current;
|
|
118
|
+
return el && sheet ? { el, sheet, ...textBounds(el, sheet, roomOr(o.room)) } : null;
|
|
119
|
+
};
|
|
120
|
+
const clampH = (h, b) => Math.round(Math.min(Math.max(h, b.min), b.max));
|
|
121
|
+
const report = (next) => o.onResize?.(next.w ?? o.width, next.h ?? o.cap);
|
|
122
|
+
const reset = () => {
|
|
123
|
+
drag.current = null;
|
|
124
|
+
keyed.current = null;
|
|
125
|
+
setHeld({});
|
|
126
|
+
setFloor(0);
|
|
127
|
+
o.onResize?.(0, 0);
|
|
128
|
+
};
|
|
129
|
+
const onPointerDown = (e) => {
|
|
130
|
+
const b = bounds();
|
|
131
|
+
if (e.button !== 0 || !o.grip || !b)
|
|
132
|
+
return;
|
|
133
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
134
|
+
drag.current = {
|
|
135
|
+
id: e.pointerId,
|
|
136
|
+
x: e.clientX,
|
|
137
|
+
y: e.clientY,
|
|
138
|
+
w: b.sheet.offsetWidth,
|
|
139
|
+
h: b.el.offsetHeight,
|
|
140
|
+
min: b.min,
|
|
141
|
+
max: b.max,
|
|
142
|
+
grip: o.grip,
|
|
143
|
+
moved: { x: false, y: false },
|
|
144
|
+
now: held,
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
const onPointerMove = (e) => {
|
|
148
|
+
const d = drag.current;
|
|
149
|
+
if (!d || e.pointerId !== d.id)
|
|
150
|
+
return;
|
|
151
|
+
const dx = e.clientX - d.x;
|
|
152
|
+
const dy = e.clientY - d.y;
|
|
153
|
+
d.moved.x ||= d.grip.axes === 'xy' && Math.abs(dx) >= SLOP;
|
|
154
|
+
d.moved.y ||= Math.abs(dy) >= SLOP;
|
|
155
|
+
const s = signs(d.grip.corner);
|
|
156
|
+
const h = clampH(d.h + s.y * dy * d.grip.spanY, d);
|
|
157
|
+
d.now = {
|
|
158
|
+
...d.now,
|
|
159
|
+
...(d.moved.x ? { w: clampSheetW(d.w + s.x * dx * d.grip.spanX, innerWidth) } : {}),
|
|
160
|
+
...(d.moved.y ? { h } : {}),
|
|
161
|
+
};
|
|
162
|
+
setHeld(d.now);
|
|
163
|
+
setFloor(d.moved.y ? h : 0);
|
|
164
|
+
};
|
|
165
|
+
// Release, cancel or a lost capture: the size shown is the size kept, and
|
|
166
|
+
// the text box fits its draft again under that cap.
|
|
167
|
+
const onPointerEnd = (e) => {
|
|
168
|
+
const d = drag.current;
|
|
169
|
+
if (!d || e.pointerId !== d.id)
|
|
170
|
+
return;
|
|
171
|
+
drag.current = null;
|
|
172
|
+
setFloor(0);
|
|
173
|
+
if (d.moved.x || d.moved.y)
|
|
174
|
+
report(d.now);
|
|
175
|
+
};
|
|
176
|
+
const onKeyDown = (e) => {
|
|
177
|
+
if (e.key === 'Enter') {
|
|
178
|
+
e.preventDefault();
|
|
179
|
+
reset();
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const b = bounds();
|
|
183
|
+
if (!b || !o.grip)
|
|
184
|
+
return;
|
|
185
|
+
const step = e.shiftKey ? STEP_BIG : STEP;
|
|
186
|
+
const s = signs(o.grip.corner);
|
|
187
|
+
const base = keyed.current ?? held;
|
|
188
|
+
let next;
|
|
189
|
+
if ((e.key === 'ArrowLeft' || e.key === 'ArrowRight') && o.grip.axes === 'xy') {
|
|
190
|
+
next = { ...base, w: clampSheetW((base.w ?? b.sheet.offsetWidth) + (e.key === 'ArrowRight' ? step : -step) * s.x, innerWidth) };
|
|
191
|
+
}
|
|
192
|
+
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
193
|
+
next = { ...base, h: clampH((base.h ?? b.el.offsetHeight) + (e.key === 'ArrowDown' ? step : -step) * s.y, b) };
|
|
194
|
+
setFloor(next.h ?? 0);
|
|
195
|
+
}
|
|
196
|
+
else
|
|
197
|
+
return;
|
|
198
|
+
e.preventDefault();
|
|
199
|
+
keyed.current = next;
|
|
200
|
+
setHeld(next);
|
|
201
|
+
};
|
|
202
|
+
// A held arrow repeats: the size is reported once the key lets go (or focus
|
|
203
|
+
// leaves), and the text box fits its draft again under the new cap.
|
|
204
|
+
const flushKeys = () => {
|
|
205
|
+
const next = keyed.current;
|
|
206
|
+
keyed.current = null;
|
|
207
|
+
setFloor(0);
|
|
208
|
+
if (next)
|
|
209
|
+
report(next);
|
|
210
|
+
};
|
|
211
|
+
const style = width > 0 ? { '--sheet-w': `${width}px` } : undefined;
|
|
212
|
+
return {
|
|
213
|
+
style,
|
|
214
|
+
grip: o.grip
|
|
215
|
+
? {
|
|
216
|
+
corner: o.grip.corner,
|
|
217
|
+
handlers: {
|
|
218
|
+
onPointerDown,
|
|
219
|
+
onPointerMove,
|
|
220
|
+
onPointerUp: onPointerEnd,
|
|
221
|
+
onPointerCancel: onPointerEnd,
|
|
222
|
+
onLostPointerCapture: onPointerEnd,
|
|
223
|
+
// A press on the grip keeps the text box focused; Tab still reaches it.
|
|
224
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
225
|
+
onDoubleClick: reset,
|
|
226
|
+
onKeyDown,
|
|
227
|
+
onKeyUp: (e) => {
|
|
228
|
+
if (e.key.startsWith('Arrow'))
|
|
229
|
+
flushKeys();
|
|
230
|
+
},
|
|
231
|
+
onBlur: flushKeys,
|
|
232
|
+
},
|
|
233
|
+
}
|
|
234
|
+
: null,
|
|
235
|
+
};
|
|
236
|
+
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* size tokens (`--h`, `--b`, `--fs`, … and `--s` for the rest).
|
|
17
17
|
* Motion: the transitions.dev token scale; reduced motion stills it all.
|
|
18
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.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:vertical; 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";
|
|
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";
|
|
20
20
|
/**
|
|
21
21
|
* Inline style of the HUD host: a 0×0 fixed box at the viewport origin (the
|
|
22
22
|
* dock and sheets are fixed children of its shadow root). Zero-size keeps
|
|
@@ -375,6 +375,8 @@ button.tb:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }
|
|
|
375
375
|
padding:0 8px calc(8px + env(safe-area-inset-bottom, 0px)); pointer-events:none; }
|
|
376
376
|
.phone > * { pointer-events:auto; }
|
|
377
377
|
.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); }
|
|
378
|
+
/* the composer: 440px at every HUD size, or the width the tester dragged (--sheet-w, resize.ts) */
|
|
379
|
+
.pop.compose { position:relative; width:min(var(--sheet-w, 440px), calc(100vw - 24px)); }
|
|
378
380
|
.phone .pop { width:100%; border-radius:18px; padding:14px; }
|
|
379
381
|
.pop-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
|
|
380
382
|
.title { display:flex; align-items:center; gap:7px; font-size:calc(var(--fs) + .5px); font-weight:600; color:var(--fg); }
|
|
@@ -383,7 +385,7 @@ button.tb:focus-visible { outline:2px solid var(--rec); outline-offset:-2px; }
|
|
|
383
385
|
display:inline-grid; place-items:center; font-size:12px; }
|
|
384
386
|
.closeb:focus-visible, .sendb:focus-visible, .retry:focus-visible, .dest button:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }
|
|
385
387
|
@media (hover: hover) { .closeb:hover { color:var(--fg); background:var(--ink-2); } }
|
|
386
|
-
textarea { width:100%; margin-top:10px; padding:9px 11px; min-height:calc(64px * var(--s)); resize:
|
|
388
|
+
textarea { 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);
|
|
387
389
|
border:0; box-shadow:inset 0 0 0 1px var(--edge); border-radius:9px; color:var(--fg);
|
|
388
390
|
font:400 calc(14px * var(--s))/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
|
|
389
391
|
@media (pointer: coarse) { textarea { font-size:16px; } .hints { display:none; } }
|
|
@@ -402,6 +404,41 @@ textarea:focus { outline:none; box-shadow:inset 0 0 0 1px var(--fg-3); }
|
|
|
402
404
|
@media (hover: hover) { .sendb:hover { background:#ff5670; } }
|
|
403
405
|
.sendb[aria-disabled="true"] { opacity:.45; cursor:default; background:var(--rec); }
|
|
404
406
|
.hints { margin-top:9px; font-size:var(--fs-s); line-height:1; color:var(--fg-3); }
|
|
407
|
+
/* attachments: the paperclip beside Send, the thumbnail strip, the drop target; a refusal takes the ctx slot */
|
|
408
|
+
.acts { display:inline-flex; align-items:center; gap:6px; }
|
|
409
|
+
.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));
|
|
410
|
+
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); }
|
|
411
|
+
@media (hover: hover) { .clipb:hover { color:var(--fg); background:var(--ink-2); } }
|
|
412
|
+
.clipb[aria-disabled="true"] { opacity:.45; cursor:default; }
|
|
413
|
+
.clipb:focus-visible, .attx:focus-visible { outline:2px solid var(--rec); outline-offset:2px; }
|
|
414
|
+
.ctx.bad { color:var(--warn); }
|
|
415
|
+
.atts { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; padding:0; list-style:none; }
|
|
416
|
+
.att { position:relative; width:calc(52px * var(--s)); height:calc(52px * var(--s)); border-radius:8px; overflow:hidden;
|
|
417
|
+
background:rgba(0,0,0,.28); box-shadow:inset 0 0 0 1px var(--edge); display:grid; place-items:center; color:var(--fg-3); }
|
|
418
|
+
.att img { width:100%; height:100%; object-fit:cover; display:block; }
|
|
419
|
+
.attx { all:unset; box-sizing:border-box; cursor:pointer; position:absolute; top:3px; right:3px; width:18px; height:18px; border-radius:50%;
|
|
420
|
+
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); }
|
|
421
|
+
@media (hover: hover) { .attx:hover { background:rgba(0,0,0,.85); } }
|
|
422
|
+
@media (pointer: coarse) { .attx { width:24px; height:24px; top:2px; right:2px; font-size:11px; } }
|
|
423
|
+
.pop.dropping { outline:2px dashed var(--fg-2); outline-offset:-5px; }
|
|
424
|
+
/* the resize grip on the composer's corner away from the dock (resize.ts); its hit area reaches outward, never over the ✕ */
|
|
425
|
+
.grip { all:unset; box-sizing:border-box; position:absolute; width:14px; height:14px; display:grid; place-items:center; border-radius:4px;
|
|
426
|
+
font-size:12px; color:var(--fg-3); touch-action:none; --reach:-6px; transition: color var(--duration-quick) var(--ease-out); }
|
|
427
|
+
.grip::after { content:""; position:absolute; }
|
|
428
|
+
.grip[data-corner="tl"] { top:3px; left:3px; cursor:nwse-resize; }
|
|
429
|
+
.grip[data-corner="tr"] { top:3px; right:3px; cursor:nesw-resize; }
|
|
430
|
+
.grip[data-corner="bl"] { bottom:3px; left:3px; cursor:nesw-resize; }
|
|
431
|
+
.grip[data-corner="br"] { bottom:3px; right:3px; cursor:nwse-resize; }
|
|
432
|
+
.grip[data-corner="tl"]::after { inset:var(--reach) 0 0 var(--reach); }
|
|
433
|
+
.grip[data-corner="tr"]::after { inset:var(--reach) var(--reach) 0 0; }
|
|
434
|
+
.grip[data-corner="bl"]::after { inset:0 0 var(--reach) var(--reach); }
|
|
435
|
+
.grip[data-corner="br"]::after { inset:0 var(--reach) var(--reach) 0; }
|
|
436
|
+
.grip[data-corner="tl"] svg { transform:rotate(180deg); }
|
|
437
|
+
.grip[data-corner="tr"] svg { transform:rotate(-90deg); }
|
|
438
|
+
.grip[data-corner="bl"] svg { transform:rotate(90deg); }
|
|
439
|
+
@media (hover: hover) { .grip:hover { color:var(--fg); } }
|
|
440
|
+
@media (pointer: coarse) { .grip { --reach:-14px; } }
|
|
441
|
+
.grip:focus-visible { outline:2px solid var(--rec); outline-offset:1px; }
|
|
405
442
|
`;
|
|
406
443
|
/**
|
|
407
444
|
* Inline style of the HUD host: a 0×0 fixed box at the viewport origin (the
|
package/build/recorder/link.d.ts
CHANGED
|
@@ -16,7 +16,10 @@ export interface DeviceLink {
|
|
|
16
16
|
* page, and a token approved into any other one is discarded unstored.
|
|
17
17
|
*/
|
|
18
18
|
export declare function linkDevice(): Promise<DeviceLink>;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Forget the stored link and its account; a live session ends locally (its
|
|
21
|
+
* tail is dropped, its attached images' bytes leave the blob journal).
|
|
22
|
+
*/
|
|
20
23
|
export declare function forgetLink(): void;
|
|
21
24
|
/** Register the 401 → unlinked transition. Returns the uninstaller. */
|
|
22
25
|
export declare function installUnauthorizedHandler(): () => void;
|
package/build/recorder/link.js
CHANGED
|
@@ -6,7 +6,7 @@ import { linkWorkspace, pollLink, startLink } from '@vitrinka/link';
|
|
|
6
6
|
import { onUnauthorized } from './api';
|
|
7
7
|
import { clearLink, defaultLinkLabel, recorderConfig, storeLink } from './config';
|
|
8
8
|
import { clearAccount } from './me';
|
|
9
|
-
import { getState, resetQueues, setState } from './queue';
|
|
9
|
+
import { getState, pruneBlobJournal, resetQueues, setState } from './queue';
|
|
10
10
|
import { updateRecent } from './recents';
|
|
11
11
|
import { elapsedOf } from './session';
|
|
12
12
|
import { notify } from './state';
|
|
@@ -27,7 +27,10 @@ export async function linkDevice() {
|
|
|
27
27
|
});
|
|
28
28
|
return { start, linked, cancel: () => ac.abort() };
|
|
29
29
|
}
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Forget the stored link and its account; a live session ends locally (its
|
|
32
|
+
* tail is dropped, its attached images' bytes leave the blob journal).
|
|
33
|
+
*/
|
|
31
34
|
export function forgetLink() {
|
|
32
35
|
clearLink();
|
|
33
36
|
clearAccount();
|
|
@@ -36,6 +39,7 @@ export function forgetLink() {
|
|
|
36
39
|
updateRecent(rec.sessionId, { status: 'unsaved', durationMs: elapsedOf(rec) });
|
|
37
40
|
setState(null);
|
|
38
41
|
resetQueues();
|
|
42
|
+
void pruneBlobJournal(rec.sessionId);
|
|
39
43
|
}
|
|
40
44
|
notify();
|
|
41
45
|
}
|
package/build/recorder/me.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* GET /api/v1/recorder/me → {kind, workspace, user, project, label, prefs}
|
|
5
5
|
* PATCH /api/v1/recorder/me {prefs: {size?, verbose?}} → the same envelope
|
|
6
|
+
* PATCH /api/v1/recorder/me {prefs: {sheetW?, sheetH?}} → the same envelope
|
|
6
7
|
*
|
|
7
8
|
* Prefs live in the recorder storage first (`prefs`): the first paint, an
|
|
8
9
|
* offline page and a key build (`prefs: null`, PATCH answers 409) all read the
|
|
@@ -10,6 +11,12 @@
|
|
|
10
11
|
* or a network error means a server too old for the route or an offline one:
|
|
11
12
|
* the local copy stands, said once. A 401 keeps the session doors' semantics
|
|
12
13
|
* (api.ts forgets the link).
|
|
14
|
+
*
|
|
15
|
+
* The sheet size (`sheetW`/`sheetH`, CSS px 0..1600, 0 = the HUD's default)
|
|
16
|
+
* rides its OWN PATCH. A server that predates it answers that one 422: the
|
|
17
|
+
* size then stays on this device for the document's lifetime (never asked
|
|
18
|
+
* again, never an error to show), and an answer without the fields never
|
|
19
|
+
* resets the local size — size/verbose sync as before.
|
|
13
20
|
*/
|
|
14
21
|
import { type HudAccount, type HudPrefs } from './hud/controller';
|
|
15
22
|
/** The `/recorder/me` envelope. */
|