@vitrinka/web 0.7.1 → 0.8.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 +128 -0
- package/README.md +117 -19
- package/build/hud.iife.js +11 -11
- package/build/recorder/config.d.ts +6 -2
- package/build/recorder/hud/Hud.d.ts +3 -1
- package/build/recorder/hud/Hud.js +2 -2
- package/build/recorder/hud/Menu.d.ts +7 -1
- package/build/recorder/hud/Menu.js +2 -2
- package/build/recorder/hud/host.d.ts +13 -0
- package/build/recorder/hud/host.js +96 -1
- package/build/recorder/hud/icons.d.ts +2 -0
- package/build/recorder/hud/icons.js +4 -0
- package/build/recorder/hud/mount.d.ts +2 -0
- package/build/recorder/hud/mount.js +1 -0
- package/build/recorder/index.d.ts +6 -0
- package/build/recorder/index.js +3 -0
- package/build/recorder/lead.js +12 -2
- package/build/recorder/link.js +1 -1
- package/build/recorder/version.d.ts +2 -2
- package/build/recorder/version.js +1 -1
- package/build/report/attachments.d.ts +56 -0
- package/build/report/attachments.js +91 -0
- package/build/report/drag.d.ts +18 -0
- package/build/report/drag.js +34 -0
- package/build/report/element.d.ts +11 -2
- package/build/report/element.js +106 -15
- package/build/report/engine.d.ts +5 -1
- package/build/report/engine.js +7 -1
- package/build/report/face.d.ts +23 -0
- package/build/report/face.js +92 -0
- package/build/report/i18n.d.ts +75 -3
- package/build/report/i18n.js +125 -6
- package/build/report/place.d.ts +26 -0
- package/build/report/place.js +33 -0
- package/build/report/reader.d.ts +42 -0
- package/build/report/reader.js +39 -0
- package/build/report/recorder-face.js +6 -2
- package/build/report/sent.d.ts +16 -0
- package/build/report/sent.js +39 -0
- package/build/report/settings.d.ts +32 -0
- package/build/report/settings.js +47 -0
- package/build/report/styles.d.ts +1 -1
- package/build/report/styles.js +216 -52
- package/build/report/widget.d.ts +109 -3
- package/build/report/widget.js +1063 -99
- package/build/report/wire.d.ts +20 -9
- package/build/report/wire.js +44 -9
- package/build/report-widget.mjs +223 -59
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const ORDER = ['br', 'bl', 'tr', 'tl'];
|
|
2
|
+
/** Breathing room around a mark: a card touching a mark's stroke still hides it. */
|
|
3
|
+
const PAD = 12;
|
|
4
|
+
export function cornerRect(c, f) {
|
|
5
|
+
const x = c === 'br' || c === 'tr' ? f.vw - f.w - f.edge : f.edge;
|
|
6
|
+
const y = c === 'br' || c === 'bl' ? f.vh - f.h - f.bottom : f.top;
|
|
7
|
+
return { x: Math.max(f.edge, x), y: Math.max(f.top, y), w: f.w, h: f.h };
|
|
8
|
+
}
|
|
9
|
+
function overlap(a, b) {
|
|
10
|
+
const w = Math.min(a.x + a.w, b.x + b.w + PAD) - Math.max(a.x, b.x - PAD);
|
|
11
|
+
const h = Math.min(a.y + a.h, b.y + b.h + PAD) - Math.max(a.y, b.y - PAD);
|
|
12
|
+
return w > 0 && h > 0 ? w * h : 0;
|
|
13
|
+
}
|
|
14
|
+
function covered(c, marks, f) {
|
|
15
|
+
const r = cornerRect(c, f);
|
|
16
|
+
return marks.reduce((sum, m) => sum + overlap(r, m), 0);
|
|
17
|
+
}
|
|
18
|
+
/** The corner the card should be in: `current` while it covers no mark, else the least-covering one. */
|
|
19
|
+
export function pickCorner(current, marks, f) {
|
|
20
|
+
const here = covered(current, marks, f);
|
|
21
|
+
if (here === 0)
|
|
22
|
+
return current;
|
|
23
|
+
let best = current;
|
|
24
|
+
let bestCover = here;
|
|
25
|
+
for (const c of ORDER) {
|
|
26
|
+
const cover = covered(c, marks, f);
|
|
27
|
+
if (cover < bestCover) {
|
|
28
|
+
best = c;
|
|
29
|
+
bestCover = cover;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return best;
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading back what the reporter sent (vt-8020 D4), on the widget's own
|
|
3
|
+
* publishable key: the host's signed token is traded once for a short-lived
|
|
4
|
+
* reporter session, which then lists the reporter's reports and their news.
|
|
5
|
+
* A `vkb_` key alone reads nothing — every list call carries the session.
|
|
6
|
+
*
|
|
7
|
+
* POST /api/v1/report/session {token} → {reporter, session, expiresAt, portalUrl?}
|
|
8
|
+
* GET /api/v1/report/mine?cursor= X-Vitrinka-Reporter → {reports, nextCursor}
|
|
9
|
+
* GET /api/v1/report/updates?cursor= X-Vitrinka-Reporter → {updates, nextCursor}
|
|
10
|
+
*/
|
|
11
|
+
import { type ApiTarget } from '../recorder/api';
|
|
12
|
+
export interface Reporter {
|
|
13
|
+
id: string;
|
|
14
|
+
email: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ReporterSession {
|
|
18
|
+
reporter: Reporter;
|
|
19
|
+
session: string;
|
|
20
|
+
/** ISO time the session stops being accepted. */
|
|
21
|
+
expiresAt: string;
|
|
22
|
+
/** The project's reporter portal, when one is bound. */
|
|
23
|
+
portalUrl?: string;
|
|
24
|
+
}
|
|
25
|
+
/** One of the reporter's reports, as the portal projects it. */
|
|
26
|
+
export interface MyReport {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
/** Received · Planned · In progress · Fixed · Done, as the server words the step key. */
|
|
30
|
+
step: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
url: string;
|
|
34
|
+
}
|
|
35
|
+
export interface MyReports {
|
|
36
|
+
reports: MyReport[];
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function openSession(target: ApiTarget, token: string): Promise<ReporterSession>;
|
|
40
|
+
/** Still good for at least a minute more. */
|
|
41
|
+
export declare function sessionLive(s: ReporterSession | null, now?: number): s is ReporterSession;
|
|
42
|
+
export declare function listMine(target: ApiTarget, session: string, cursor?: string): Promise<MyReports>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading back what the reporter sent (vt-8020 D4), on the widget's own
|
|
3
|
+
* publishable key: the host's signed token is traded once for a short-lived
|
|
4
|
+
* reporter session, which then lists the reporter's reports and their news.
|
|
5
|
+
* A `vkb_` key alone reads nothing — every list call carries the session.
|
|
6
|
+
*
|
|
7
|
+
* POST /api/v1/report/session {token} → {reporter, session, expiresAt, portalUrl?}
|
|
8
|
+
* GET /api/v1/report/mine?cursor= X-Vitrinka-Reporter → {reports, nextCursor}
|
|
9
|
+
* GET /api/v1/report/updates?cursor= X-Vitrinka-Reporter → {updates, nextCursor}
|
|
10
|
+
*/
|
|
11
|
+
import { VitrinkaApiError } from '../recorder/api';
|
|
12
|
+
async function call(method, path, target, body, session) {
|
|
13
|
+
const res = await fetch(target.url + path, {
|
|
14
|
+
method,
|
|
15
|
+
mode: 'cors',
|
|
16
|
+
credentials: 'omit',
|
|
17
|
+
headers: {
|
|
18
|
+
authorization: `Bearer ${target.key}`,
|
|
19
|
+
...(session ? { 'x-vitrinka-reporter': session } : {}),
|
|
20
|
+
...(body !== undefined ? { 'content-type': 'application/json' } : {}),
|
|
21
|
+
},
|
|
22
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
23
|
+
});
|
|
24
|
+
const text = await res.text();
|
|
25
|
+
if (!res.ok)
|
|
26
|
+
throw new VitrinkaApiError(`${method} ${path} → ${res.status}: ${text}`, res.status);
|
|
27
|
+
return (text ? JSON.parse(text) : {});
|
|
28
|
+
}
|
|
29
|
+
export function openSession(target, token) {
|
|
30
|
+
return call('POST', '/api/v1/report/session', target, { token });
|
|
31
|
+
}
|
|
32
|
+
/** Still good for at least a minute more. */
|
|
33
|
+
export function sessionLive(s, now = Date.now()) {
|
|
34
|
+
return s !== null && Date.parse(s.expiresAt) - now > 60_000;
|
|
35
|
+
}
|
|
36
|
+
export function listMine(target, session, cursor) {
|
|
37
|
+
const q = cursor ? `?cursor=${encodeURIComponent(cursor)}` : '';
|
|
38
|
+
return call('GET', `/api/v1/report/mine${q}`, target, undefined, session);
|
|
39
|
+
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* `face: 'recorder'` (QA Studio D6): the same engine with the recorder pill
|
|
3
3
|
* as its face — `VitrinkaRecorderRoot` + `VitrinkaRecorderPill` rendered
|
|
4
4
|
* into a detached root of their own. Loaded lazily by the npm entry only, so
|
|
5
|
-
* a report-only host never pays for React or the recorder.
|
|
5
|
+
* a report-only host never pays for React or the recorder. Mounted by a
|
|
6
|
+
* member's Record switch (vt-8020 D8) it gets no key — the device link
|
|
7
|
+
* authenticates — and `onReportFace`, the pill's way back.
|
|
6
8
|
*/
|
|
7
9
|
import { createElement } from 'react';
|
|
8
10
|
import { createRoot } from 'react-dom/client';
|
|
@@ -12,7 +14,9 @@ export function mountRecorderFace(opts) {
|
|
|
12
14
|
container.hidden = true;
|
|
13
15
|
document.body.append(container);
|
|
14
16
|
const root = createRoot(container);
|
|
15
|
-
root.render(createElement(VitrinkaRecorderRoot,
|
|
17
|
+
root.render(createElement(VitrinkaRecorderRoot,
|
|
18
|
+
// '' rather than undefined: an absent key would fall back to a baked NEXT_PUBLIC_VITRINKA_KEY.
|
|
19
|
+
{ url: opts.base, recorderKey: opts.key ?? '', appVersion: opts.appVersion, sanitizeUrl: opts.sanitizeUrl }, createElement(VitrinkaRecorderPill, { onReportFace: opts.onReportFace })));
|
|
16
20
|
return () => {
|
|
17
21
|
root.unmount();
|
|
18
22
|
container.remove();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What this browser sent (vt-8020 D4): an anonymous or unsigned reporter has
|
|
3
|
+
* no server list to read, so the widget keeps its own — title, time, filed or
|
|
4
|
+
* waiting, and the story link when the server minted one. Scoped to the
|
|
5
|
+
* vitrinka base and the page's host, newest first, capped.
|
|
6
|
+
*/
|
|
7
|
+
export interface SentReport {
|
|
8
|
+
title: string;
|
|
9
|
+
/** Epoch ms. */
|
|
10
|
+
at: number;
|
|
11
|
+
status: 'filed' | 'quarantined';
|
|
12
|
+
url?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const MAX_SENT = 20;
|
|
15
|
+
export declare function readSent(base: string, host: string): SentReport[];
|
|
16
|
+
export declare function noteSent(base: string, host: string, row: SentReport): void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export const MAX_SENT = 20;
|
|
2
|
+
const PREFIX = 'vitrinka.report.sent:';
|
|
3
|
+
function keyOf(base, host) {
|
|
4
|
+
return `${PREFIX}${base}|${host}`;
|
|
5
|
+
}
|
|
6
|
+
function store() {
|
|
7
|
+
try {
|
|
8
|
+
return globalThis.localStorage ?? null;
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return null; // storage blocked (sandboxed frame, privacy mode): the list just stays empty
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export function readSent(base, host) {
|
|
15
|
+
const raw = store()?.getItem(keyOf(base, host));
|
|
16
|
+
if (!raw)
|
|
17
|
+
return [];
|
|
18
|
+
try {
|
|
19
|
+
const rows = JSON.parse(raw);
|
|
20
|
+
if (!Array.isArray(rows))
|
|
21
|
+
return [];
|
|
22
|
+
return rows.filter((r) => typeof r?.title === 'string' && typeof r?.at === 'number' && (r.status === 'filed' || r.status === 'quarantined'));
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function noteSent(base, host, row) {
|
|
29
|
+
const s = store();
|
|
30
|
+
if (!s)
|
|
31
|
+
return;
|
|
32
|
+
const rows = [row, ...readSent(base, host)].slice(0, MAX_SENT);
|
|
33
|
+
try {
|
|
34
|
+
s.setItem(keyOf(base, host), JSON.stringify(rows));
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
console.warn('vitrinka: could not remember the sent report on this browser', e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The reporter's own settings beyond the shortcut (vt-8020 D9): the widget's
|
|
3
|
+
* size and the technical details a support conversation asks for. Each
|
|
4
|
+
* setting is one localStorage key of this origin — the reporter's, on this
|
|
5
|
+
* browser, never sent anywhere.
|
|
6
|
+
*
|
|
7
|
+
* Size is the pill's vocabulary (sm · md · lg, the same factors): ONE factor,
|
|
8
|
+
* `--vr-scale` on the widget's root, scales the button, the card and the
|
|
9
|
+
* marking bar — fonts and boxes together, so the card keeps its proportions.
|
|
10
|
+
*/
|
|
11
|
+
import type { ReportConfig } from './engine';
|
|
12
|
+
import type { Strings } from './i18n';
|
|
13
|
+
export type WidgetSize = 'sm' | 'md' | 'lg';
|
|
14
|
+
export declare const SIZES: readonly WidgetSize[];
|
|
15
|
+
export declare const SIZE_SCALE: Readonly<Record<WidgetSize, number>>;
|
|
16
|
+
export declare const SIZE_KEY = "vitrinka.report.size";
|
|
17
|
+
/** One stored preference; null when unset or unreadable. */
|
|
18
|
+
export declare function readPref(key: string): string | null;
|
|
19
|
+
export declare function writePref(key: string, value: string): void;
|
|
20
|
+
export declare function readSize(): WidgetSize;
|
|
21
|
+
export interface TechInput {
|
|
22
|
+
/** The package version (recorder/version.ts). */
|
|
23
|
+
version: string;
|
|
24
|
+
base: string;
|
|
25
|
+
/** null until the report config answered. */
|
|
26
|
+
config: ReportConfig | null;
|
|
27
|
+
/** False when another widget runs the page's one capture engine. */
|
|
28
|
+
engine: boolean;
|
|
29
|
+
locale: string;
|
|
30
|
+
}
|
|
31
|
+
/** The read-only technical details, label → value: version, capture window, capture, buffer, server. */
|
|
32
|
+
export declare function techDetails(t: TechInput, s: Strings): [string, string][];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { formatBytes } from './attachments';
|
|
2
|
+
export const SIZES = ['sm', 'md', 'lg'];
|
|
3
|
+
export const SIZE_SCALE = { sm: 0.88, md: 1, lg: 1.18 };
|
|
4
|
+
export const SIZE_KEY = 'vitrinka.report.size';
|
|
5
|
+
function store() {
|
|
6
|
+
try {
|
|
7
|
+
return globalThis.localStorage ?? null;
|
|
8
|
+
}
|
|
9
|
+
catch {
|
|
10
|
+
return null; // storage blocked (sandboxed frame, privacy mode): the defaults stand
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
/** One stored preference; null when unset or unreadable. */
|
|
14
|
+
export function readPref(key) {
|
|
15
|
+
return store()?.getItem(key) ?? null;
|
|
16
|
+
}
|
|
17
|
+
export function writePref(key, value) {
|
|
18
|
+
try {
|
|
19
|
+
store()?.setItem(key, value);
|
|
20
|
+
}
|
|
21
|
+
catch (e) {
|
|
22
|
+
console.warn(`vitrinka: could not remember ${key} on this browser`, e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export function readSize() {
|
|
26
|
+
const v = readPref(SIZE_KEY);
|
|
27
|
+
return SIZES.find((s) => s === v) ?? 'md';
|
|
28
|
+
}
|
|
29
|
+
/** The read-only technical details, label → value: version, capture window, capture, buffer, server. */
|
|
30
|
+
export function techDetails(t, s) {
|
|
31
|
+
const c = t.config;
|
|
32
|
+
const capture = !t.engine || c?.capturing === false ? s.captureOff : c ? s.captureOn : s.captureStarting;
|
|
33
|
+
let host = t.base;
|
|
34
|
+
try {
|
|
35
|
+
host = new URL(t.base).host;
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
// not a URL: show it as configured
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
[s.techVersion, `@vitrinka/web ${t.version}`],
|
|
42
|
+
[s.techWindow, c ? s.windowLength(c.profile.windowSec) : '—'],
|
|
43
|
+
[s.techCapture, capture],
|
|
44
|
+
[s.techBuffer, c ? `${c.profile.storage === 'browser' ? s.bufferBrowser : s.bufferMemory} · ${formatBytes(c.profile.maxBytes, t.locale)}` : '—'],
|
|
45
|
+
[s.techServer, host],
|
|
46
|
+
];
|
|
47
|
+
}
|
package/build/report/styles.d.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* of the page. A dark card on any page (the D12 / D21 mockups): one accent
|
|
5
5
|
* red for the act of sending and marking, everything else quiet.
|
|
6
6
|
*/
|
|
7
|
-
export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: 24px; bottom: 24px;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card --------------------------------------------------------------- */\n.card {\n position: fixed; right: 24px; bottom: 96px;\n width: min(420px, calc(100vw - 32px));\n max-height: calc(100vh - 120px); overflow: auto;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: 24px; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n display: flex; align-items: center; gap: 4px;\n padding: 16px 14px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.pane { padding: 18px 20px 20px; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 88px; resize: vertical;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n.marked { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--dim); }\n.chip {\n display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;\n border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;\n}\n.chip.hide { background: #3a3940; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.row .label { font-weight: 600; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n.pin { position: absolute; display: flex; align-items: center; gap: 6px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .note {\n width: 220px; padding: 6px 10px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .16); background: #151417; color: #fff;\n font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3;\n box-shadow: 0 6px 18px rgba(0, 0, 0, .3);\n}\n.pin .note::placeholder { color: rgba(255, 255, 255, .45); }\n.pin .note:focus { outline: none; border-color: var(--accent); }\n.pin .rm {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n}\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 12px; height: 12px; }\n.toolbar {\n position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);\n display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 15px;\n background: #151417; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n cursor: default;\n}\n.toolbar button {\n padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: #f2f1ef;\n font-size: 15px; font-weight: 600;\n}\n.toolbar button:hover { background: rgba(255, 255, 255, .08); }\n.toolbar button[aria-pressed=\"true\"] { background: #e6455f; color: #fff; }\n.toolbar .sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .14); }\n.toolbar .done { background: var(--accent); color: #fff; }\n.toolbar .done:hover { background: #e43a57; }\n.toolbar button:disabled { opacity: .4; cursor: default; background: transparent; }\n\n/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */\n.coach {\n position: fixed; width: 300px; padding: 14px 16px 15px;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n pointer-events: none;\n transition: opacity .12s ease;\n}\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }\n.coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }\n@keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }\n@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }\n\n@media (max-width: 520px) {\n .fab { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 16px; }\n .card { right: 16px; bottom: 84px; }\n .vr.nobutton .card { bottom: 16px; }\n .toolbar { bottom: 16px; max-width: calc(100vw - 24px); overflow-x: auto; }\n .toolbar button { padding: 8px 11px; font-size: 14px; }\n .coach { width: 260px; }\n}\n@media (prefers-reduced-motion: reduce) {\n .card { animation: none; }\n .fab { transition: none; }\n .coach .loop { animation: none; stroke-dashoffset: 0; }\n .coach .hold { animation: none; opacity: .9; }\n}\n";
|
|
7
|
+
export declare const REPORT_CSS = "\n:host { all: initial; }\n.vr {\n --ink: #f2f1ef;\n --dim: rgba(242, 241, 239, .62);\n --faint: rgba(242, 241, 239, .14);\n --bg: #1a191d;\n --bg-deep: #121115;\n --accent: #dc2f4c;\n --accent-soft: rgba(220, 47, 76, .28);\n /* Motion (transitions-dev tokens): a sliding indicator rides --dur-fast, the card's one glide --dur-slow. */\n --dur-quick: 150ms;\n --dur-fast: 250ms;\n --dur-slow: 400ms;\n --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);\n /* Size (vt-8020 D9, settings.ts): ONE factor, written by the widget, scales the button, the card and\n the marking bar \u2014 fonts and boxes together \u2014 each from its anchored corner. */\n --vr-scale: 1;\n /* The dock: the gap to the viewport edge, and where the card rests \u2014 clear of the button above or below it. */\n --edge: 24px;\n --lift: calc(var(--edge) + 72px * var(--vr-scale));\n font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Inter, Roboto, \"Helvetica Neue\", Arial, sans-serif;\n color: var(--ink);\n -webkit-font-smoothing: antialiased;\n letter-spacing: normal;\n text-align: left;\n}\n.vr *, .vr *::before, .vr *::after { box-sizing: border-box; }\n.vr [hidden] { display: none !important; }\n.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\nbutton { font: inherit; color: inherit; cursor: pointer; }\nbutton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {\n outline: 2px solid #fff; outline-offset: 2px;\n}\n\n/* -- the floating button -------------------------------------------------- */\n.fab {\n position: fixed; right: var(--edge); bottom: var(--edge);\n scale: var(--vr-scale); transform-origin: 100% 100%;\n /* A press can become a drag to another corner: the page never scrolls under it. */\n touch-action: none;\n display: inline-flex; align-items: center; gap: 12px;\n padding: 15px 22px; border: 0; border-radius: 999px;\n background: #131216; color: #fff;\n font-size: 17px; font-weight: 600; letter-spacing: -.005em;\n box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;\n pointer-events: auto;\n transition: transform .14s ease, box-shadow .14s ease;\n}\n.fab:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .12) inset; }\n.fab:active { transform: translateY(0); }\nkbd {\n font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n padding: 4px 7px; border-radius: 7px;\n border: 1px solid rgba(255, 255, 255, .26); color: rgba(255, 255, 255, .78);\n}\n\n/* -- the card: ONE size from drafting to thanks (vt-8020 D10) ---------------- */\n.card {\n position: fixed; right: var(--edge); bottom: var(--lift);\n display: flex; flex-direction: column;\n /* The box is divided by the scale so the painted card (scale \u00D7 box) still fits the viewport. */\n width: min(380px, calc((100vw - 32px) / var(--vr-scale)));\n height: min(460px, calc((100vh - var(--lift) - var(--edge)) / var(--vr-scale)));\n scale: var(--vr-scale); transform-origin: 100% 100%;\n background: var(--bg); color: var(--ink);\n border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;\n box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);\n pointer-events: auto;\n animation: vr-in .16s ease-out;\n}\n.vr.nobutton .card { bottom: var(--edge); }\n/* The dock (vt-8020 D9, drag.ts): the button in any corner; the card rests beside it \u2014 above it at the\n bottom, below it at the top \u2014 and both scale from that corner. */\n.vr[data-dock$=\"l\"] .fab, .vr[data-dock$=\"l\"] .card { right: auto; left: var(--edge); }\n.vr[data-dock^=\"t\"] .fab { bottom: auto; top: var(--edge); }\n.vr[data-dock^=\"t\"] .card { bottom: auto; top: var(--lift); }\n.vr.nobutton[data-dock^=\"t\"] .card { top: var(--edge); }\n.vr[data-dock=\"bl\"] .fab, .vr[data-dock=\"bl\"] .card { transform-origin: 0 100%; }\n.vr[data-dock=\"tr\"] .fab, .vr[data-dock=\"tr\"] .card { transform-origin: 100% 0; }\n.vr[data-dock=\"tl\"] .fab, .vr[data-dock=\"tl\"] .card { transform-origin: 0 0; }\n/* Dragged, the button rides the pointer by its left/top; dropped, it glides into its corner (FLIP on translate). */\n.vr .fab.dragging { transform-origin: 0 0; transition: none; cursor: grabbing; }\n.fab.gliding { transition: translate var(--dur-slow) var(--ease-smooth-out), transform .14s ease, box-shadow .14s ease; }\n/* Parked by marking: placed by left/top where it already is (place.ts, from its painted box) \u2014 the same size,\n so starting to mark never moves it; it glides once to a corner clear of the marks. */\n.card.parked { right: auto; bottom: auto; transition: left var(--dur-slow) var(--ease-smooth-out), top var(--dur-slow) var(--ease-smooth-out); }\n.vr .card.parked { transform-origin: 0 0; }\n@keyframes vr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n.head {\n position: relative; flex: none; display: flex; align-items: center; gap: 4px;\n padding: 12px 10px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);\n}\n/* Sending: a quiet sweep along the head's edge, the card's size untouched. */\n.card.busy .head::after {\n content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;\n background: linear-gradient(90deg, transparent, rgba(242, 241, 239, .6), transparent) no-repeat;\n background-size: 40% 100%; animation: vr-sweep 1.3s linear infinite;\n}\n@keyframes vr-sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }\n.body { flex: 1; min-height: 0; overflow: auto; }\n.head h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }\n.icon {\n display: inline-grid; place-items: center; width: 32px; height: 32px;\n border: 0; border-radius: 8px; background: transparent; color: var(--dim);\n}\n.icon:hover { background: var(--faint); color: var(--ink); }\n.icon svg { width: 16px; height: 16px; }\n.icon[aria-expanded=\"true\"] { background: var(--faint); color: var(--ink); }\n\n/* -- who you are and the menu (vt-8020 D5 A) -------------------------------- */\n.who {\n display: inline-flex; align-items: center; gap: 7px; max-width: 132px; height: 32px; padding: 0 11px 0 5px; margin-right: 2px;\n border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.who:hover, .who[aria-expanded=\"true\"] { background: var(--faint); }\n.who .av {\n display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;\n background: #3a3940; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;\n}\n.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.pop {\n position: absolute; top: 52px; right: 10px; z-index: 2; min-width: 240px; max-width: calc(100% - 20px); padding: 6px;\n background: #222126; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .42); animation: vr-in .14s ease-out;\n}\n.pop-item {\n display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px;\n background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 550; text-decoration: none; text-align: left;\n}\n.pop-item:hover, .pop-item:focus-visible { background: var(--faint); }\n.pop-item svg { width: 15px; height: 15px; flex: none; color: var(--dim); }\n.acc-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }\n.acc-who strong { font-size: 14px; }\n.acc-mail, .acc-via { color: var(--dim); font-size: 12.5px; margin: 0; }\n.acc-member { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; }\n.acc-member:has(.acc-linked:not([hidden])) { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.acc-linked { margin: 0; font-size: 12.5px; color: var(--ink); }\n\n/* -- the lists: My reports, recent recordings \u2014 in the card body ------------ */\n.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px -4px; padding: 4px; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 650; }\n.back svg { width: 14px; height: 14px; color: var(--dim); }\n.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }\n.row {\n display: grid; grid-template-columns: 1fr auto; grid-template-areas: \"t step\" \"age step\"; column-gap: 10px;\n padding: 9px 10px; border-radius: 10px; background: rgba(242, 241, 239, .045); color: var(--ink); text-decoration: none;\n}\na.row:hover { background: var(--faint); }\n.row-t { grid-area: t; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }\n.age { grid-area: age; color: var(--dim); font-size: 12px; }\n.step { grid-area: step; align-self: center; padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); color: var(--dim); font-size: 12px; font-weight: 600; }\n.step:empty { display: none; }\n.list-status, .list-note { margin: 8px 0; color: var(--dim); font-size: 13px; }\n\n/* -- the member link sheet (the pill's flow, vt-8020 D3) ------------------- */\n.code { margin: 6px 0 14px; font: 650 26px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }\n.link-go { display: flex; align-items: center; gap: 16px; }\n.qr { width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 6px; }\n.pane { padding: 14px 16px 16px; }\n/* The reporter's word for it (vt-8020 D11): chips above the input, like the board composer's intents. */\n.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }\n.kinds button {\n height: 28px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;\n background: transparent; color: rgba(242, 241, 239, .6); font-size: 13px; font-weight: 600;\n transition: background-color var(--dur-quick) ease-out, border-color var(--dur-quick) ease-out, color var(--dur-quick) ease-out;\n}\n.kinds button:hover:not(:disabled) { color: var(--ink); }\n.kinds button[aria-checked=\"true\"] { background: rgba(242, 241, 239, .12); border-color: rgba(242, 241, 239, .26); color: var(--ink); }\n.kinds button:disabled { opacity: .5; cursor: default; }\n.prompt { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }\n.desc {\n display: block; width: 100%; min-height: 76px; resize: none;\n padding: 12px 14px; border-radius: 10px;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep); color: var(--ink);\n font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45;\n}\n.desc::placeholder { color: rgba(242, 241, 239, .38); }\n.desc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }\n.attached { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--dim); font-size: 13px; }\n.attached svg { width: 14px; height: 14px; flex: none; }\n.link {\n display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none;\n color: rgba(242, 241, 239, .86); font-weight: 600; font-size: 13px;\n}\n.link:hover { color: #fff; text-decoration: underline; }\n.link svg { width: 12px; height: 12px; transition: transform .14s ease; }\n.link[aria-expanded=\"true\"] svg { transform: rotate(180deg); }\n.included { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--bg-deep); color: var(--dim); font-size: 13px; }\n.included li { margin: 2px 0; }\n/* One numbered line per mark: its note, typed in the card, never floating on the page. */\n.lines-wrap { margin-top: 10px; }\n.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }\n.ln {\n display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 4px 0 9px;\n border-radius: 10px; background: rgba(242, 241, 239, .045); border: 1px solid transparent;\n}\n.ln:focus-within { background: var(--bg-deep); border-color: rgba(242, 241, 239, .36); }\n.ln-n {\n display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;\n background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; box-shadow: 0 0 0 1.5px #fff;\n}\n.ln.hide .ln-n { background: #3a3940; }\n.ln-t {\n flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink);\n font-family: inherit; font-size: 13.5px;\n}\n.ln-t::placeholder { color: rgba(242, 241, 239, .4); }\n.ln-t:focus, .ln-t:focus-visible { outline: none; }\n.ln-x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: rgba(242, 241, 239, .5); }\n.ln-x:hover:not(:disabled) { background: var(--faint); color: var(--ink); }\n.ln-x svg { width: 11px; height: 11px; }\n.ln-empty { margin: 0; padding: 11px 13px; border: 1px dashed rgba(242, 241, 239, .14); border-radius: 10px; color: rgba(242, 241, 239, .46); font-size: 13px; }\n.notify { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }\n.notify input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }\n.error { margin: 12px 0 0; color: #ff9aa9; font-size: 13px; }\n/* The bottom actions: attachments and Show us where on the left, Send on the right. */\n.foot { flex: none; display: flex; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .07); }\n.foot .send { margin-left: auto; }\n.icon:disabled { opacity: .45; cursor: default; background: transparent; color: var(--dim); }\n/* Attached files (vt-8020 D9): chips in a tray above the foot \u2014 it scrolls, the card never grows. */\n.tray { flex: none; max-height: 84px; overflow: auto; padding: 9px 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }\n.tray:not([hidden]) + .foot { border-top: 0; }\n.file-note { margin: 0 0 7px; color: #ffc1ca; font-size: 12.5px; }\n.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }\n.file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 28px; padding: 0 2px 0 10px; border-radius: 8px; background: rgba(242, 241, 239, .07); font-size: 12.5px; }\n.file-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }\n.file-size { flex: none; color: var(--dim); }\n.file .ln-x { width: 22px; height: 22px; }\n/* A file dragged over the card: it will land here. */\n.card.dropping { outline: 2px dashed rgba(242, 241, 239, .5); outline-offset: -7px; }\n.where {\n display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px;\n border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);\n font-size: 13px; font-weight: 600;\n}\n.where:hover:not(:disabled) { background: var(--faint); }\n.where[aria-pressed=\"true\"] { border-color: var(--accent); background: var(--accent-soft); }\n.where svg { width: 14px; height: 14px; }\n.where:disabled { opacity: .45; cursor: default; }\n.send {\n padding: 10px 22px; border: 0; border-radius: 10px; background: var(--accent); color: #fff;\n font-size: 15px; font-weight: 650;\n}\n.send:hover:not(:disabled) { background: #e43a57; }\n.send:disabled { opacity: .45; cursor: default; }\n\n/* -- settings --------------------------------------------------------------- */\n/* Scoped to the pane: a bare .row would restyle the lists' rows (their grid) above. */\n.settings .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.settings .label { font-weight: 600; }\n.size-row { margin-top: 18px; }\n.size-row .seg button { padding: 0 12px; font-size: 13px; }\n.tech-wrap { margin-top: 18px; }\n.tech { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-deep); font-size: 12.5px; }\n.tech dt { color: var(--dim); }\n.tech dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }\n.bind {\n min-width: 120px; padding: 8px 12px; border-radius: 9px; text-align: center;\n border: 1px solid rgba(255, 255, 255, .2); background: var(--bg-deep);\n font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n.bind[aria-pressed=\"true\"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--dim); }\n.hint, .reason { margin: 10px 0 0; color: var(--dim); font-size: 13px; }\n.reason { color: #ffc1ca; }\n.settings-foot { display: flex; justify-content: space-between; margin-top: 16px; }\n\n/* -- sent ------------------------------------------------------------------- */\n.sent-head { display: flex; align-items: center; gap: 10px; }\n.sent-head h3 { margin: 0; font-size: 17px; font-weight: 650; }\n.sent-head svg { width: 22px; height: 22px; color: #4ade80; flex: none; }\n.sent-body { margin: 8px 0 0 32px; color: var(--dim); }\n.sent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0 32px; }\n.see {\n display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;\n background: #fff; color: #131216; font-weight: 650; font-size: 13px; text-decoration: none;\n}\n\n/* -- marking: the frozen page ---------------------------------------------- */\n.mark {\n position: fixed; inset: 0; pointer-events: auto;\n background: rgba(14, 13, 16, .16); cursor: crosshair;\n touch-action: none; user-select: none; -webkit-user-select: none;\n}\n.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }\n.ink .stroke { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }\n.ink .veil { fill: #1b1b1f; }\n.ink .veil-label { fill: rgba(255, 255, 255, .7); font: 600 12px -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n.ink .draft { opacity: .85; }\n/* A pin is the mark's number on the page; its \u2715 shows while the pin is hovered or focused. */\n.pin { position: absolute; display: flex; align-items: center; gap: 4px; cursor: default; }\n.pin .num {\n display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 12px;\n background: var(--accent); color: #fff; font-size: 12px; font-weight: 750;\n box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 0 0 2px #fff;\n}\n.pin .rm {\n display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 11px;\n background: #151417; color: rgba(255, 255, 255, .7); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);\n opacity: 0; transition: opacity var(--dur-quick) ease-out;\n}\n.pin:hover .rm, .pin:focus-within .rm { opacity: 1; }\n.pin .rm:hover { color: #fff; }\n.pin .rm svg { width: 11px; height: 11px; }\n\n/* The marking bar (vt-8020 D6): translucent glass at the top, the shape as a segmented control. */\n.tb {\n /* translate (not transform): it applies after the scale, so the scaled bar stays centred. */\n position: fixed; left: 50%; top: 14px; translate: -50% 0;\n scale: var(--vr-scale); transform-origin: 50% 0;\n display: flex; align-items: center; gap: 4px; padding: 5px;\n border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);\n background: rgba(30, 29, 34, .68);\n -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);\n box-shadow: 0 14px 36px rgba(0, 0, 0, .36), 0 2px 6px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .05) inset;\n color: var(--ink); cursor: default; white-space: nowrap;\n}\n.tb-lead { padding: 0 12px 0 11px; color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 500; }\n.seg { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }\n.seg button {\n position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;\n height: 30px; padding: 0 13px 0 11px; border: 0; border-radius: 8px; background: transparent;\n color: rgba(242, 241, 239, .56); font-size: 13.5px; font-weight: 600;\n transition: color var(--dur-fast) var(--ease-smooth-out);\n}\n.seg button svg { width: 15px; height: 15px; flex: none; }\n.seg button:hover { color: rgba(242, 241, 239, .86); }\n.seg button[aria-checked=\"true\"] { color: var(--ink); }\n.seg-ind {\n position: absolute; top: 3px; left: 0; z-index: 0; width: 0; height: 30px; border-radius: 8px;\n background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .115));\n box-shadow: 0 1px 0 rgba(255, 255, 255, .13) inset, 0 2px 7px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .22);\n transition: transform var(--dur-fast) var(--ease-smooth-out), width var(--dur-fast) var(--ease-smooth-out);\n pointer-events: none; opacity: 0;\n}\n.seg.measured .seg-ind { opacity: 1; }\n/* Before the indicator is measured, the picked segment carries the raised fill itself. */\n.seg:not(.measured) button[aria-checked=\"true\"] { background: rgba(255, 255, 255, .15); }\n.tb-sep { width: 1px; height: 20px; margin: 0 5px; background: rgba(255, 255, 255, .1); }\n.tb-quiet { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: rgba(242, 241, 239, .72); font-size: 13.5px; font-weight: 600; }\n.tb-quiet:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }\n.tb-confirm { display: inline-flex; align-items: center; gap: 4px; }\n.tb-ask { padding: 0 6px 0 4px; font-size: 13.5px; font-weight: 600; }\n.tb-discard { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 650; }\n.tb-discard:hover { background: #e43a57; }\n\n/* -- the coach card (D21): stays beside the pointer until mark 1 exists --- */\n.coach {\n position: fixed; width: 300px; padding: 14px 16px 15px;\n background: #151417; color: #f2f1ef; border-radius: 14px;\n box-shadow: 0 18px 44px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .1) inset;\n pointer-events: none;\n transition: opacity .12s ease;\n}\n.coach.pressing { opacity: .55; }\n.coach svg { display: block; width: 100%; height: 64px; border-radius: 9px; background: #222126; }\n.coach p { margin: 11px 0 0; font-size: 15px; line-height: 1.4; }\n.coach p + p { margin-top: 2px; color: rgba(242, 241, 239, .66); font-size: 13px; }\n.coach p.keys { margin-top: 8px; font-size: 12px; color: rgba(242, 241, 239, .5); }\n.mark:focus { outline: none; }\n.mark:focus-visible { outline: 3px solid rgba(230, 69, 95, .65); outline-offset: -3px; }\n.coach .bar { fill: #5b5a61; }\n.coach .loop { fill: none; stroke: #e6455f; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: vr-draw 2.8s ease-in-out infinite; }\n.coach .hold { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; animation: vr-hold 2.8s ease-in-out infinite; }\n@keyframes vr-draw { 0%, 18% { stroke-dashoffset: 200; } 72%, 100% { stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; } }\n@keyframes vr-hold { 0%, 8% { opacity: 0; } 14%, 72% { opacity: .9; } 80%, 100% { opacity: 0; } }\n\n@media (max-width: 520px) {\n .vr { --edge: 16px; --lift: calc(var(--edge) + 68px * var(--vr-scale)); }\n .fab { padding: 13px 18px; font-size: 16px; }\n .tb { max-width: calc((100vw - 16px) / var(--vr-scale)); overflow-x: auto; }\n .tb-lead { display: none; }\n .seg button { padding: 0 9px; }\n .coach { width: 260px; }\n}\n@media (prefers-reduced-motion: reduce) {\n .card { animation: none; }\n .card.parked, .seg-ind, .seg button, .kinds button, .pin .rm { transition: none; }\n .card.busy .head::after { animation: none; }\n .fab, .fab.gliding { transition: none; }\n .coach .loop { animation: none; stroke-dashoffset: 0; }\n .coach .hold { animation: none; opacity: .9; }\n}\n";
|