@crvouga/mockingbird-notifications 0.1.0 → 0.2.1

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.
@@ -1,202 +0,0 @@
1
- import {
2
- createNotificationHarness
3
- } from "./chunk-GRGR3QZM.js";
4
-
5
- // src/server.ts
6
- import { readFile } from "node:fs/promises";
7
-
8
- // ../adapters/node/dist/serve.js
9
- import { createServer } from "node:http";
10
- import { Readable } from "node:stream";
11
- var serve = async (api, options = {}) => {
12
- const maxBytes = options.maxBodyBytes ?? 16 * 1024 * 1024;
13
- const timeoutMs = options.requestTimeoutMs ?? 3e4;
14
- if (!Number.isSafeInteger(maxBytes) || maxBytes < 0 || !Number.isSafeInteger(timeoutMs) || timeoutMs < 1)
15
- throw new Error("invalid request limits");
16
- const server = createServer(async (req, res) => {
17
- const aborted = new AbortController();
18
- let reader;
19
- let timer;
20
- const abort = () => {
21
- aborted.abort();
22
- void reader?.cancel().catch(() => {
23
- });
24
- };
25
- const fail = (status, message) => {
26
- if (!res.headersSent && !res.destroyed) {
27
- res.writeHead(status, { "content-type": "application/json", connection: "close" });
28
- res.end(JSON.stringify({ error: { type: "mockingbird_transport", message } }));
29
- }
30
- abort();
31
- };
32
- req.once("aborted", abort);
33
- res.once("close", abort);
34
- res.once("error", abort);
35
- try {
36
- const address = server.address();
37
- const port = typeof address === "object" && address !== null ? address.port : 80;
38
- const url = new URL((req.url ?? "/").replace(/^\/+/, "/"), `http://${req.headers.host ?? `localhost:${port}`}`);
39
- const headers = new Headers();
40
- for (const [name, value] of Object.entries(req.headers)) {
41
- if (Array.isArray(value))
42
- for (const item of value)
43
- headers.append(name, item);
44
- else if (value !== void 0)
45
- headers.set(name, value);
46
- }
47
- const init = {
48
- method: req.method ?? "GET",
49
- headers,
50
- signal: aborted.signal
51
- };
52
- if (init.method !== "GET" && init.method !== "HEAD") {
53
- if (Number(req.headers["content-length"]) > maxBytes) {
54
- fail(413, "request body exceeds byte limit");
55
- return;
56
- }
57
- let bytes = 0;
58
- const source = Readable.toWeb(req);
59
- init.body = source.pipeThrough(new TransformStream({
60
- transform(chunk, controller) {
61
- bytes += chunk.byteLength;
62
- if (bytes > maxBytes) {
63
- fail(413, "request body exceeds byte limit");
64
- controller.error(new Error("request body exceeds byte limit"));
65
- } else
66
- controller.enqueue(chunk);
67
- }
68
- }));
69
- init.duplex = "half";
70
- timer = setTimeout(() => fail(408, "request body timed out"), timeoutMs);
71
- req.once("end", () => clearTimeout(timer));
72
- }
73
- const response = await api.fetch(new Request(url, init));
74
- if (aborted.signal.aborted || res.destroyed) {
75
- await response.body?.cancel();
76
- return;
77
- }
78
- const output = Object.fromEntries(response.headers);
79
- const cookies = response.headers.getSetCookie();
80
- if (cookies.length)
81
- output["set-cookie"] = cookies;
82
- res.writeHead(response.status, output);
83
- if (!response.body) {
84
- res.end();
85
- return;
86
- }
87
- res.flushHeaders();
88
- reader = response.body.getReader();
89
- for (; ; ) {
90
- const { done, value } = await reader.read();
91
- if (done || aborted.signal.aborted)
92
- break;
93
- if (!res.write(value)) {
94
- await new Promise((resolve) => {
95
- const finish = () => {
96
- res.off("drain", finish);
97
- res.off("close", finish);
98
- res.off("error", finish);
99
- resolve();
100
- };
101
- res.once("drain", finish);
102
- res.once("close", finish);
103
- res.once("error", finish);
104
- if (res.destroyed || aborted.signal.aborted)
105
- finish();
106
- });
107
- }
108
- }
109
- if (!aborted.signal.aborted)
110
- res.end();
111
- } catch (error) {
112
- if (error.code === "MOCKINGBIRD_DROP")
113
- req.socket.destroy();
114
- else if (!aborted.signal.aborted && !res.destroyed) {
115
- if (res.headersSent)
116
- res.destroy();
117
- else {
118
- res.writeHead(500, { "content-type": "application/json" });
119
- res.end(JSON.stringify({
120
- error: {
121
- type: "mockingbird_internal",
122
- message: error instanceof Error ? error.message : String(error)
123
- }
124
- }));
125
- }
126
- }
127
- } finally {
128
- clearTimeout(timer);
129
- reader?.releaseLock();
130
- req.off("aborted", abort);
131
- res.off("close", abort);
132
- res.off("error", abort);
133
- if (!req.complete)
134
- req.resume();
135
- }
136
- });
137
- server.requestTimeout = timeoutMs;
138
- await new Promise((resolve, reject) => {
139
- server.once("error", reject);
140
- server.listen(options.port ?? 0, options.host, resolve);
141
- });
142
- return server;
143
- };
144
-
145
- // ../adapters/node/dist/listen.js
146
- var listen = async (api, options = {}) => {
147
- const host = options.host ?? "127.0.0.1";
148
- const server = await serve(api, {
149
- port: options.port ?? 0,
150
- host,
151
- ...options.maxBodyBytes !== void 0 ? { maxBodyBytes: options.maxBodyBytes } : {}
152
- });
153
- const address = server.address();
154
- const port = typeof address === "object" && address !== null ? address.port : options.port ?? 0;
155
- const shown = host.includes(":") ? `[${host}]` : host;
156
- return {
157
- url: `http://${shown}:${port}`,
158
- port,
159
- host,
160
- server,
161
- close: () => new Promise((resolve, reject) => {
162
- server.close((error) => {
163
- if (error && error.code !== "ERR_SERVER_NOT_RUNNING")
164
- reject(error);
165
- else
166
- resolve();
167
- });
168
- server.closeAllConnections?.();
169
- })
170
- };
171
- };
172
-
173
- // src/server.ts
174
- var DEFAULT_PORT = 8790;
175
- var manifestFile = (path) => async () => JSON.parse(await readFile(path, "utf8"));
176
- var createServer2 = async (options = {}) => {
177
- const { port, host, manifest, ...rest } = options;
178
- const harness = createNotificationHarness({
179
- ...rest,
180
- ...manifest === void 0 ? {} : { manifest: typeof manifest === "string" ? manifestFile(manifest) : manifest }
181
- });
182
- const listening = await listen(harness, {
183
- port: port ?? 0,
184
- ...host !== void 0 ? { host } : {}
185
- });
186
- return {
187
- url: listening.url,
188
- port: listening.port,
189
- harness,
190
- close: async () => {
191
- harness.close();
192
- await listening.close();
193
- }
194
- };
195
- };
196
-
197
- export {
198
- DEFAULT_PORT,
199
- manifestFile,
200
- createServer2 as createServer
201
- };
202
- //# sourceMappingURL=chunk-JQ6KPT2C.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/server.ts", "../../adapters/node/src/serve.ts", "../../adapters/node/src/listen.ts"],
4
- "sourcesContent": ["/// <reference types=\"node\" />\nimport { readFile } from \"node:fs/promises\"\nimport { listen } from \"@crvouga/mockingbird-adapter-node\"\nimport type { FleetManifest } from \"./discovery.js\"\nimport {\n createNotificationHarness,\n type HarnessOptions,\n type NotificationHarness,\n} from \"./harness.js\"\n\n/** Port `mockingbird-notifications serve` listens on when none is given. */\nexport const DEFAULT_PORT = 8790\n\nexport type NotificationServerOptions = Omit<HarnessOptions, \"manifest\"> & {\n /** A fleet ready manifest object, or the path of the fleet's `--ready-file` (re-read every sync). */\n manifest?: HarnessOptions[\"manifest\"] | string\n /** Default `0`: the OS picks a free port. */\n port?: number\n /** Default `127.0.0.1`. */\n host?: string\n}\n\nexport type NotificationServer = {\n url: string\n port: number\n harness: NotificationHarness\n close(): Promise<void>\n}\n\n/** A manifest loader that re-reads the fleet's ready file, so a restarted fleet is picked up. */\nexport const manifestFile = (path: string) => async (): Promise<FleetManifest> =>\n JSON.parse(await readFile(path, \"utf8\")) as FleetManifest\n\nexport const createServer = async (\n options: NotificationServerOptions = {},\n): Promise<NotificationServer> => {\n const { port, host, manifest, ...rest } = options\n const harness = createNotificationHarness({\n ...rest,\n ...(manifest === undefined\n ? {}\n : { manifest: typeof manifest === \"string\" ? manifestFile(manifest) : manifest }),\n })\n const listening = await listen(harness, {\n port: port ?? 0,\n ...(host !== undefined ? { host } : {}),\n })\n return {\n url: listening.url,\n port: listening.port,\n harness,\n close: async () => {\n harness.close()\n await listening.close()\n },\n }\n}\n", "import { createServer, type Server } from \"node:http\"\nimport { Readable } from \"node:stream\"\nimport type { FetchAPI } from \"@crvouga/mockingbird-core\"\n\n/** Limits apply incrementally, including chunked uploads. Bodies reach fetch as a stream. */\nexport type NodeServeOptions = {\n port?: number\n host?: string\n maxBodyBytes?: number\n requestTimeoutMs?: number\n}\n\n/** Serve a FetchAPI with bounded streaming uploads and disconnect-aware response backpressure. */\nexport const serve = async (api: FetchAPI, options: NodeServeOptions = {}): Promise<Server> => {\n const maxBytes = options.maxBodyBytes ?? 16 * 1024 * 1024\n const timeoutMs = options.requestTimeoutMs ?? 30_000\n if (\n !Number.isSafeInteger(maxBytes) ||\n maxBytes < 0 ||\n !Number.isSafeInteger(timeoutMs) ||\n timeoutMs < 1\n )\n throw new Error(\"invalid request limits\")\n const server = createServer(async (req, res) => {\n const aborted = new AbortController()\n let reader: ReadableStreamDefaultReader<Uint8Array> | undefined\n let timer: ReturnType<typeof setTimeout> | undefined\n const abort = () => {\n aborted.abort()\n void reader?.cancel().catch(() => {})\n }\n const fail = (status: number, message: string) => {\n if (!res.headersSent && !res.destroyed) {\n res.writeHead(status, { \"content-type\": \"application/json\", connection: \"close\" })\n res.end(JSON.stringify({ error: { type: \"mockingbird_transport\", message } }))\n }\n abort()\n }\n req.once(\"aborted\", abort)\n res.once(\"close\", abort)\n res.once(\"error\", abort)\n try {\n const address = server.address()\n const port = typeof address === \"object\" && address !== null ? address.port : 80\n const url = new URL(\n (req.url ?? \"/\").replace(/^\\/+/, \"/\"),\n `http://${req.headers.host ?? `localhost:${port}`}`,\n )\n const headers = new Headers()\n for (const [name, value] of Object.entries(req.headers)) {\n if (Array.isArray(value)) for (const item of value) headers.append(name, item)\n else if (value !== undefined) headers.set(name, value)\n }\n const init: RequestInit & { duplex?: \"half\" } = {\n method: req.method ?? \"GET\",\n headers,\n signal: aborted.signal,\n }\n if (init.method !== \"GET\" && init.method !== \"HEAD\") {\n if (Number(req.headers[\"content-length\"]) > maxBytes) {\n fail(413, \"request body exceeds byte limit\")\n return\n }\n let bytes = 0\n const source = Readable.toWeb(req) as unknown as ReadableStream<Uint8Array>\n init.body = source.pipeThrough(\n new TransformStream<Uint8Array, Uint8Array>({\n transform(chunk, controller) {\n bytes += chunk.byteLength\n if (bytes > maxBytes) {\n fail(413, \"request body exceeds byte limit\")\n controller.error(new Error(\"request body exceeds byte limit\"))\n } else controller.enqueue(chunk)\n },\n }),\n )\n init.duplex = \"half\"\n timer = setTimeout(() => fail(408, \"request body timed out\"), timeoutMs)\n req.once(\"end\", () => clearTimeout(timer))\n }\n const response = await api.fetch(new Request(url, init))\n if (aborted.signal.aborted || res.destroyed) {\n await response.body?.cancel()\n return\n }\n const output: Record<string, string | string[]> = Object.fromEntries(response.headers)\n const cookies = response.headers.getSetCookie()\n if (cookies.length) output[\"set-cookie\"] = cookies\n res.writeHead(response.status, output)\n if (!response.body) {\n res.end()\n return\n }\n res.flushHeaders()\n reader = response.body.getReader()\n for (;;) {\n const { done, value } = await reader.read()\n if (done || aborted.signal.aborted) break\n if (!res.write(value)) {\n await new Promise<void>((resolve) => {\n const finish = () => {\n res.off(\"drain\", finish)\n res.off(\"close\", finish)\n res.off(\"error\", finish)\n resolve()\n }\n res.once(\"drain\", finish)\n res.once(\"close\", finish)\n res.once(\"error\", finish)\n if (res.destroyed || aborted.signal.aborted) finish()\n })\n }\n }\n if (!aborted.signal.aborted) res.end()\n } catch (error) {\n if ((error as { code?: string }).code === \"MOCKINGBIRD_DROP\") req.socket.destroy()\n else if (!aborted.signal.aborted && !res.destroyed) {\n if (res.headersSent) res.destroy()\n else {\n res.writeHead(500, { \"content-type\": \"application/json\" })\n res.end(\n JSON.stringify({\n error: {\n type: \"mockingbird_internal\",\n message: error instanceof Error ? error.message : String(error),\n },\n }),\n )\n }\n }\n } finally {\n clearTimeout(timer)\n reader?.releaseLock()\n req.off(\"aborted\", abort)\n res.off(\"close\", abort)\n res.off(\"error\", abort)\n if (!req.complete) req.resume()\n }\n })\n server.requestTimeout = timeoutMs\n await new Promise<void>((resolve, reject) => {\n server.once(\"error\", reject)\n server.listen(options.port ?? 0, options.host, resolve)\n })\n return server\n}\n", "import type { Server } from \"node:http\"\nimport type { FetchAPI } from \"@crvouga/mockingbird-core\"\nimport { serve } from \"./serve.js\"\n\nexport type ListenOptions = {\n /** Default `0`: the OS picks a free port. */\n port?: number\n /** Default `127.0.0.1`: a mock should not be reachable off the machine by accident. */\n host?: string\n /** Largest request body accepted. Default 16 MiB. */\n maxBodyBytes?: number\n}\n\n/** A running server, with the address it actually bound. */\nexport type Listening = {\n url: string\n port: number\n host: string\n server: Server\n close(): Promise<void>\n}\n\nexport const listen = async (api: FetchAPI, options: ListenOptions = {}): Promise<Listening> => {\n const host = options.host ?? \"127.0.0.1\"\n const server = await serve(api, {\n port: options.port ?? 0,\n host,\n ...(options.maxBodyBytes !== undefined ? { maxBodyBytes: options.maxBodyBytes } : {}),\n })\n const address = server.address()\n const port = typeof address === \"object\" && address !== null ? address.port : (options.port ?? 0)\n const shown = host.includes(\":\") ? `[${host}]` : host\n return {\n url: `http://${shown}:${port}`,\n port,\n host,\n server,\n close: () =>\n new Promise<void>((resolve, reject) => {\n // Stop accepting first, then drop keep-alive sockets so close() can finish.\n server.close((error) => {\n if (error && (error as { code?: string }).code !== \"ERR_SERVER_NOT_RUNNING\") reject(error)\n else resolve()\n })\n server.closeAllConnections?.()\n }),\n }\n}\n"],
5
- "mappings": ";;;;;AACA,SAAS,gBAAgB;;;ACDzB,SAAS,oBAAiC;AAC1C,SAAS,gBAAgB;AAYlB,IAAM,QAAQ,OAAO,KAAe,UAA4B,CAAA,MAAuB;AAC5F,QAAM,WAAW,QAAQ,gBAAgB,KAAK,OAAO;AACrD,QAAM,YAAY,QAAQ,oBAAoB;AAC9C,MACE,CAAC,OAAO,cAAc,QAAQ,KAC9B,WAAW,KACX,CAAC,OAAO,cAAc,SAAS,KAC/B,YAAY;AAEZ,UAAM,IAAI,MAAM,wBAAwB;AAC1C,QAAM,SAAS,aAAa,OAAO,KAAK,QAAO;AAC7C,UAAM,UAAU,IAAI,gBAAe;AACnC,QAAI;AACJ,QAAI;AACJ,UAAM,QAAQ,MAAK;AACjB,cAAQ,MAAK;AACb,WAAK,QAAQ,OAAM,EAAG,MAAM,MAAK;MAAE,CAAC;IACtC;AACA,UAAM,OAAO,CAAC,QAAgB,YAAmB;AAC/C,UAAI,CAAC,IAAI,eAAe,CAAC,IAAI,WAAW;AACtC,YAAI,UAAU,QAAQ,EAA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BrB,IAAM,eAAe,CAAC,SAAiB,YAC5C,KAAK,MAAM,MAAM,SAAS,MAAM,MAAM,CAAC;AAElC,IAAMA,gBAAe,OAC1B,UAAqC,CAAC,MACN;AAChC,QAAM,EAAE,MAAM,MAAM,UAAU,GAAG,KAAK,IAAI;AAC1C,QAAM,UAAU,0BAA0B;AAAA,IACxC,GAAG;AAAA,IACH,GAAI,aAAa,SACb,CAAC,IACD,EAAE,UAAU,OAAO,aAAa,WAAW,aAAa,QAAQ,IAAI,SAAS;AAAA,EACnF,CAAC;AACD,QAAM,YAAY,MAAM,OAAO,SAAS;AAAA,IACtC,MAAM,QAAQ;AAAA,IACd,GAAI,SAAS,SAAY,EAAE,KAAK,IAAI,CAAC;AAAA,EACvC,CAAC;AACD,SAAO;AAAA,IACL,KAAK,UAAU;AAAA,IACf,MAAM,UAAU;AAAA,IAChB;AAAA,IACA,OAAO,YAAY;AACjB,cAAQ,MAAM;AACd,YAAM,UAAU,MAAM;AAAA,IACxB;AAAA,EACF;AACF;",
6
- "names": ["createServer"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/testids.ts"],
4
- "sourcesContent": ["/**\n * Every `data-testid` the harness UI renders, and selector helpers for browser tests.\n *\n * Elements that show one notification also carry its fields as attributes, so a test can narrow by\n * what it knows instead of by position:\n *\n * data-notification-id data-channel data-service data-source data-to data-from\n * data-status data-created-at data-unread (\"true\" | \"false\")\n *\n * The UI root (`TEST_IDS.app`) reports its state the same way: `data-ready` (\"true\" once the first\n * read finished), `data-view`, `data-namespace`, `data-count`, `data-version`, `data-connected`,\n * `data-sound` and `data-motion`.\n *\n * This module has no dependencies, so Playwright, Cypress or WebdriverIO specs can import it.\n */\nexport const TEST_IDS = {\n /** The UI root. */\n app: \"notifications-app\",\n\n // \u2500\u2500 Top bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n topbar: \"topbar\",\n /** `<select>` of namespaces. */\n namespace: \"namespace\",\n /** Filter `<input>` (recipient, sender, text). */\n search: \"search\",\n /** View tabs; `aria-pressed=\"true\"` on the active one. */\n viewDevices: \"view-devices\",\n viewTimeline: \"view-timeline\",\n /** \"Follow new\" checkbox. */\n follow: \"follow\",\n /** Sound on/off button; `aria-pressed`. */\n sound: \"sound-toggle\",\n /** Live stream indicator; `data-state=\"live\" | \"reconnecting\"`. */\n connection: \"connection\",\n /** One pill per emulator; `data-name`, `data-service`, `data-ok`, `data-count`. */\n source: \"source\",\n /** Discovery or emulator errors, or the \"no emulators\" hint; `data-kind=\"error\" | \"empty\"`. */\n notice: \"notice\",\n /** Bottom-left message after an action, e.g. \"Conversation archived.\" */\n toast: \"toast\",\n toastUndo: \"toast-undo\",\n\n // \u2500\u2500 SMS: Messages \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** The phone; `data-screen=\"threads\" | \"conversation\"`, `data-recipient`, `data-thread`. */\n smsDevice: \"sms-device\",\n /** Phone number `<select>`; option values are E.164 numbers. */\n smsRecipient: \"sms-recipient\",\n /** Unread SMS badge next to the column title (absent when 0). */\n smsUnreadCount: \"sms-unread-count\",\n /** One conversation in the list; `data-from` (the sender address), `data-unread`, `data-pinned`, `data-muted`. */\n smsThread: \"sms-thread\",\n smsThreadName: \"sms-thread-name\",\n smsThreadPreview: \"sms-thread-preview\",\n smsThreadTime: \"sms-thread-time\",\n smsThreadUnread: \"sms-thread-unread\",\n /** Swipe actions behind a thread (also reachable with the keyboard: focus the thread, press Delete). */\n smsThreadDelete: \"sms-thread-delete\",\n smsThreadMute: \"sms-thread-mute\",\n smsThreadPin: \"sms-thread-pin\",\n smsThreadToggleUnread: \"sms-thread-toggle-unread\",\n /** Shown when the phone has no messages. */\n smsEmpty: \"sms-empty\",\n /** An open conversation; `data-from`. */\n smsConversation: \"sms-conversation\",\n smsConversationTitle: \"sms-conversation-title\",\n smsBack: \"sms-back\",\n /** One message; carries the notification attributes plus `data-code` when it holds a one-time code. */\n smsBubble: \"sms-bubble\",\n smsBubbleMedia: \"sms-bubble-media\",\n /** The time revealed by swiping the conversation left. */\n smsBubbleTime: \"sms-bubble-time\",\n /** A reaction added with the long-press menu; `data-tapback`. */\n smsTapback: \"sms-tapback\",\n /** Centered date stamp between messages. */\n smsTimestamp: \"sms-timestamp\",\n /** One-time code suggestion above the keyboard; `data-code`. */\n smsCode: \"sms-code\",\n /** Long-press menu on a bubble. */\n smsMenu: \"sms-menu\",\n smsMenuCopy: \"sms-menu-copy\",\n /** One tapback in the menu; `data-tapback=\"heart\" | \"like\" | \"dislike\" | \"laugh\" | \"emphasize\" | \"question\"`. */\n smsMenuTapback: \"sms-menu-tapback\",\n\n // \u2500\u2500 Push: lock screen (iOS) / shade (Android) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** The phone; `data-skin=\"ios\" | \"android\"`, `data-recipient`, `data-platform`. */\n pushDevice: \"push-device\",\n /** Device token `<select>`. */\n pushRecipient: \"push-recipient\",\n /** Skin buttons; `data-value`, `aria-pressed`. */\n pushSkin: \"push-skin\",\n pushUnreadCount: \"push-unread-count\",\n /** One notification; notification attributes plus `data-expanded`, `data-platform`, `data-app`, `data-stacked`. */\n pushNotification: \"push-notification\",\n pushNotificationApp: \"push-notification-app\",\n pushNotificationTitle: \"push-notification-title\",\n pushNotificationBody: \"push-notification-body\",\n pushNotificationTime: \"push-notification-time\",\n pushNotificationImage: \"push-notification-image\",\n /** The `data` payload, shown when expanded. */\n pushNotificationData: \"push-notification-data\",\n /** Service, status, badge and sound, shown when expanded. */\n pushNotificationMeta: \"push-notification-meta\",\n /** iOS: a group of notifications from one app; `data-app`, `data-count`, `data-open`. */\n pushGroup: \"push-group\",\n /** iOS: \"N more notifications\" under a collapsed group (click to open it); `data-count`. */\n pushGroupMore: \"push-group-more\",\n /** iOS: \"Show less\" on an open group. */\n pushGroupCollapse: \"push-group-collapse\",\n /** iOS: swipe-left actions. */\n pushClear: \"push-clear\",\n pushOptions: \"push-options\",\n /** iOS long-press preview; Android long-press settings. */\n pushPreview: \"push-preview\",\n pushSettings: \"push-settings\",\n /** Android \"Clear all\". */\n pushClearAll: \"push-clear-all\",\n pushEmpty: \"push-empty\",\n\n // \u2500\u2500 Email: web mail \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /** The browser window; `data-screen=\"inbox\" | \"message\"`, `data-recipient`. */\n emailDevice: \"email-device\",\n /** Mailbox `<select>`; option values are lower-case addresses. */\n emailRecipient: \"email-recipient\",\n emailUnreadCount: \"email-unread-count\",\n /** One inbox row; notification attributes plus `data-starred`. */\n emailRow: \"email-row\",\n emailRowFrom: \"email-row-from\",\n emailRowSubject: \"email-row-subject\",\n emailRowSnippet: \"email-row-snippet\",\n emailRowDate: \"email-row-date\",\n emailRowService: \"email-row-service\",\n emailRowAttachment: \"email-row-attachment\",\n emailRowStar: \"email-row-star\",\n /** Hover actions on a row. */\n emailRowArchive: \"email-row-archive\",\n emailRowDelete: \"email-row-delete\",\n emailRowToggleRead: \"email-row-toggle-read\",\n emailRefresh: \"email-refresh\",\n emailEmpty: \"email-empty\",\n /** The open message; notification attributes. */\n emailOpen: \"email-open\",\n emailBack: \"email-back\",\n emailArchive: \"email-archive\",\n emailDelete: \"email-delete\",\n emailMarkUnread: \"email-mark-unread\",\n emailSubject: \"email-subject\",\n emailFromName: \"email-from-name\",\n emailFromAddress: \"email-from-address\",\n /** \"to me, \u2026\" line; click to toggle the details. */\n emailTo: \"email-to\",\n emailDate: \"email-date\",\n emailDetails: \"email-details\",\n /** One row of the details; `data-field=\"from\" | \"to\" | \"cc\" | \"bcc\" | \"reply-to\" | \"date\" | \"subject\" | \"mailed-by\" | \"message-id\"`. */\n emailDetail: \"email-detail\",\n /** The HTML body `<iframe>` (same origin: use `frameLocator`). */\n emailBody: \"email-body\",\n /** The plain-text body when there is no HTML. */\n emailText: \"email-text\",\n emailAttachments: \"email-attachments\",\n /** One attachment; `data-filename`, `data-content-type`, `data-size`. */\n emailAttachment: \"email-attachment\",\n\n // \u2500\u2500 Timeline + inspector \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n timeline: \"timeline\",\n /** One row; notification attributes. Click it to inspect. */\n timelineRow: \"timeline-row\",\n timelineEmpty: \"timeline-empty\",\n /** The JSON inspector; notification attributes. Opened by clicking a timeline row or double-clicking any notification. */\n inspector: \"inspector\",\n inspectorTitle: \"inspector-title\",\n inspectorClose: \"inspector-close\",\n inspectorShowOnDevice: \"inspector-show-on-device\",\n /** One normalized field; `data-field`. */\n inspectorField: \"inspector-field\",\n /** The full record, normalized fields plus `raw`, as JSON text. */\n inspectorJson: \"inspector-json\",\n} as const\n\nexport type TestId = (typeof TEST_IDS)[keyof typeof TEST_IDS]\n\nconst attr = (value: string) => JSON.stringify(value)\n\n/** CSS selectors for the harness UI. Each one works with `page.locator()` or `querySelector`. */\nexport const selectors = {\n /** `[data-testid=\"\u2026\"]` */\n testId: (id: TestId) => `[data-testid=${attr(id)}]`,\n /** The ready UI root: wait for this before asserting. */\n ready: () => `[data-testid=${attr(TEST_IDS.app)}][data-ready=\"true\"]`,\n /** Any element showing this notification (bubble, thread, card, row, open email, timeline row). */\n notification: (id: string) => `[data-notification-id=${attr(id)}]`,\n /** A message bubble, optionally from one sender. */\n smsBubble: (filter: { from?: string; id?: string } = {}) =>\n `[data-testid=${attr(TEST_IDS.smsBubble)}]${filter.from ? `[data-from=${attr(filter.from)}]` : \"\"}${filter.id ? `[data-notification-id=${attr(filter.id)}]` : \"\"}`,\n /** A conversation in the Messages list. */\n smsThread: (from: string) => `[data-testid=${attr(TEST_IDS.smsThread)}][data-from=${attr(from)}]`,\n /** A push notification card, optionally by id. */\n pushNotification: (id?: string) =>\n `[data-testid=${attr(TEST_IDS.pushNotification)}]${id ? `[data-notification-id=${attr(id)}]` : \"\"}`,\n /** An inbox row, optionally by id. */\n emailRow: (id?: string) =>\n `[data-testid=${attr(TEST_IDS.emailRow)}]${id ? `[data-notification-id=${attr(id)}]` : \"\"}`,\n /** A timeline row, optionally by id. */\n timelineRow: (id?: string) =>\n `[data-testid=${attr(TEST_IDS.timelineRow)}]${id ? `[data-notification-id=${attr(id)}]` : \"\"}`,\n}\n"],
5
- "mappings": ";AAeO,IAAM,WAAW;AAAA;AAAA,EAEtB,KAAK;AAAA;AA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W,CAAC,SAAyC,CAAC,MACpD,gBAAgB,KAAK,SAAS,SAAS,CAAC,IAAI,OAAO,OAAO,cAAc,KAAK,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,KAAK,yBAAyB,KAAK,OAAO,EAAE,CAAC,MAAM,EAAE;AAAA;AAAA,EAElK,WAAW,CAAC,SAAiB,gBAAgB,KAAK,SAAS,SAAS,CAAC,eAAe,KAAK,IAAI,CAAC;AAAA;AAAA,EAE9F,kBAAkB,CAAC,OACjB,gBAAgB,KAAK,SAAS,gBAAgB,CAAC,IAAI,KAAK,yBAAyB,KAAK,EAAE,CAAC,MAAM,EAAE;AAAA;AAAA,EAEnG,UAAU,CAAC,OACT,gBAAgB,KAAK,SAAS,QAAQ,CAAC,IAAI,KAAK,yBAAyB,KAAK,EAAE,CAAC,MAAM,EAAE;AAAA;AAAA,EAE3F,aAAa,CAAC,OACZ,gBAAgB,KAAK,SAAS,WAAW,CAAC,IAAI,KAAK,yBAAyB,KAAK,EAAE,CAAC,MAAM,EAAE;AAChG;",
6
- "names": []
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/ui/scope-css.ts", "../src/ui/styles.ts"],
4
- "sourcesContent": ["/**\n * Prefix every selector in a stylesheet with `scope`, so the harness UI can sit inside another\n * application without its rules leaking out. `:root`, `html` and `body` become the scope element\n * itself; `@media`, `@container` and `@supports` blocks are scoped recursively; `@keyframes` and\n * other at-rules are left alone.\n */\nexport const scopeCss = (css: string, scope: string): string => {\n const source = css.replace(/\\/\\*[\\s\\S]*?\\*\\//g, \"\")\n let out = \"\"\n let i = 0\n while (i < source.length) {\n const open = source.indexOf(\"{\", i)\n if (open < 0) break\n const head = source.slice(i, open).trim()\n let depth = 1\n let j = open + 1\n while (j < source.length && depth > 0) {\n if (source[j] === \"{\") depth++\n else if (source[j] === \"}\") depth--\n j++\n }\n const body = source.slice(open + 1, j - 1)\n if (/^@(media|container|supports|layer)\\b/.test(head))\n out += `${head} {\\n${scopeCss(body, scope)}}\\n`\n else if (head.startsWith(\"@\")) out += `${head} {${body}}\\n`\n else out += `${scopeSelectors(head, scope)} {${body}}\\n`\n i = j\n }\n return out\n}\n\nconst scopeSelectors = (selectors: string, scope: string): string =>\n splitTopLevel(selectors)\n .map((raw) => {\n const sel = raw.trim()\n if (sel === \":root\" || sel === \"html\" || sel === \"body\") return scope\n if (sel.startsWith(\":root\")) return `${scope}${sel.slice(5)}`\n // `&` addresses the scope element itself: `&[data-motion=\"reduce\"] .x`.\n if (sel.startsWith(\"&\")) return `${scope}${sel.slice(1)}`\n return `${scope} ${sel}`\n })\n .join(\", \")\n\n/** Split on commas outside parentheses (`:is(a, b)` stays whole). */\nconst splitTopLevel = (value: string): string[] => {\n const parts: string[] = []\n let depth = 0\n let start = 0\n for (let k = 0; k < value.length; k++) {\n const c = value[k]\n if (c === \"(\") depth++\n else if (c === \")\") depth--\n else if (c === \",\" && depth === 0) {\n parts.push(value.slice(start, k))\n start = k + 1\n }\n }\n parts.push(value.slice(start))\n return parts\n}\n", "import { scopeCss } from \"./scope-css.js\"\n\n/** The class on the UI root. Every rule below is scoped to it. */\nexport const ROOT_CLASS = \"mb-notifications\"\n\n/** Harness chrome plus the three device skins. Device skins use their platform's own type and color. */\nconst RAW = `\n:root {\n --bg: #0e1015; --panel: #161920; --panel-2: #1d212a; --line: #2a2f3a; --text: #e8eaf0;\n --muted: #9aa1b1; --accent: #0a84ff; --ok: #30d158; --bad: #ff453a; --warn: #ffd60a;\n --ios: -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"SF Pro Display\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n --android: \"Google Sans Text\", \"Google Sans\", Roboto, \"Segoe UI\", system-ui, sans-serif;\n --mail: \"Google Sans\", Roboto, RobotoDraft, Helvetica, Arial, sans-serif;\n --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n}\n:root { display: block; position: relative; box-sizing: border-box; min-height: 100%; background: var(--bg); color: var(--text);\n font: 14px/1.4 system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }\n*, *::before, *::after { box-sizing: border-box; }\nbutton, input, select { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\n[hidden] { display: none !important; }\n&[data-motion=\"reduce\"] *, &[data-motion=\"reduce\"] *::before, &[data-motion=\"reduce\"] *::after { animation: none !important; transition: none !important; }\n&.embedded { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }\n&.embedded .mbn-scroll { flex: 1; min-height: 0; overflow: auto; }\n&.embedded .inspector { position: absolute; }\n[data-gesture]:focus-visible, [role=\"button\"]:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }\n.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n/* \u2500\u2500 Harness chrome \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;\n padding: 10px 18px; background: rgba(14,16,21,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }\n.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; margin-right: 6px; }\n.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg,#0a84ff,#5e5ce6); display: grid; place-items: center; }\n.brand small { color: var(--muted); font-weight: 500; }\n.field { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; height: 32px; }\n.field label { color: var(--muted); font-size: 12px; }\n.field select, .field input { background: transparent; border: 0; outline: 0; height: 30px; min-width: 0; }\n.field select option { background: var(--panel-2); }\n.field.search { flex: 1 1 220px; max-width: 360px; }\n.field.search input { width: 100%; }\n.tabs { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }\n.tabs button { background: none; border: 0; padding: 5px 12px; border-radius: 6px; color: var(--muted); font-weight: 550; }\n.tabs button[aria-pressed=\"true\"] { background: #2c3240; color: var(--text); }\n.toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; user-select: none; }\n.toggle input { accent-color: var(--accent); }\n.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }\n.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--muted); white-space: nowrap; }\n.pill b { color: var(--text); font-weight: 600; }\n.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }\n.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(48,209,88,.15); }\n.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(255,69,58,.15); }\n.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }\n.notice { margin: 14px 18px 0; padding: 10px 14px; border: 1px solid #5a2b2b; background: #2a1517; color: #ffb4ab; border-radius: 10px; font-size: 13px; }\n\n.devices { display: flex; flex-wrap: wrap; gap: 28px; padding: 22px 18px 40px; align-items: flex-start; justify-content: center; }\n.devices.solo .device-col.wide { max-width: 1280px; }\n.device-col { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 362px; flex: none; }\n.device-col.wide { flex: 1 1 720px; width: auto; min-width: 0; max-width: 1180px; align-items: stretch; }\n.device-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; justify-content: space-between; min-height: 32px; }\n.device-head .controls { display: flex; gap: 6px; align-items: center; min-width: 0; }\n.device-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 8px; }\n.device-head h2 .count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; letter-spacing: 0; line-height: 18px; }\n.device-head .field { height: 30px; max-width: 250px; min-width: 0; }\n.device-head .field select { max-width: 190px; text-overflow: ellipsis; }\n.seg { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }\n.seg button { border: 0; background: none; color: var(--muted); padding: 2px 9px; border-radius: 5px; font-size: 12px; }\n.seg button[aria-pressed=\"true\"] { background: #2c3240; color: var(--text); }\n\n/* \u2500\u2500 Phone hardware \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.iphone { position: relative; width: 362px; height: 760px; border-radius: 58px; padding: 12px; background: #0b0b0c;\n box-shadow: 0 0 0 2px #3a3a3c, 0 0 0 6px #1c1c1e, 0 0 0 7px #4a4a4e, 0 40px 80px rgba(0,0,0,.55); }\n.iphone::before, .iphone::after { content: \"\"; position: absolute; left: -9px; width: 4px; border-radius: 2px; background: #2c2c2e; }\n.iphone::before { top: 150px; height: 60px; }\n.iphone::after { top: 225px; height: 60px; }\n.iphone .screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: #fff; font-family: var(--ios); color: #000; -webkit-font-smoothing: antialiased; }\n.island { position: absolute; z-index: 30; top: 11px; left: 50%; transform: translateX(-50%); width: 112px; height: 33px; border-radius: 20px; background: #000; }\n.statusbar { position: absolute; z-index: 25; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 40px; font: 600 16px/1 var(--ios); letter-spacing: -.01em; }\n.statusbar .icons { display: flex; gap: 6px; align-items: center; }\n.statusbar.light { color: #fff; }\n.home-indicator { position: absolute; z-index: 30; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #000; }\n.home-indicator.light { background: rgba(255,255,255,.9); }\n\n.pixel { position: relative; width: 352px; height: 760px; border-radius: 44px; padding: 10px; background: #111;\n box-shadow: 0 0 0 2px #2b2b2f, 0 0 0 5px #3c3c41, 0 40px 80px rgba(0,0,0,.55); }\n.pixel::after { content: \"\"; position: absolute; right: -7px; top: 170px; width: 4px; height: 90px; border-radius: 2px; background: #2c2c2e; }\n.pixel .screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; font-family: var(--android); }\n.punch { position: absolute; z-index: 30; top: 12px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: #050505; box-shadow: inset 0 0 0 2px #1a1a1a; }\n\n/* \u2500\u2500 Messages (iOS) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.msgs { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }\n.msgs-nav { padding: 54px 16px 0; }\n.msgs-nav .row { display: flex; justify-content: space-between; align-items: center; height: 44px; color: #007aff; font-size: 17px; }\n.msgs-nav h1 { margin: 2px 0 8px; font: 700 34px/41px var(--ios); letter-spacing: .01em; }\n.ios-search { display: flex; align-items: center; gap: 6px; height: 36px; border-radius: 10px; background: rgba(118,118,128,.12); color: rgba(60,60,67,.6); padding: 0 8px; font-size: 17px; margin-bottom: 8px; }\n.ios-search span { flex: 1; }\n.threads { flex: 1; overflow-y: auto; }\n.thread { position: relative; display: flex; gap: 12px; padding: 10px 16px 0 26px; cursor: pointer; }\n.thread:active { background: #e5e5ea; }\n.thread .unread { position: absolute; left: 8px; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: #007aff; }\n.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 18px var(--ios); background: linear-gradient(180deg,#a5abb8,#858994); }\n.thread .text { flex: 1; min-width: 0; border-bottom: .5px solid #c6c6c8; padding-bottom: 10px; }\n.thread .top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }\n.thread .name { font: 600 17px/22px var(--ios); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.thread .when { flex: none; color: rgba(60,60,67,.6); font-size: 15px; display: flex; align-items: center; gap: 6px; }\n.thread .preview { color: rgba(60,60,67,.6); font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.01em; }\n.empty-ios { flex: 1; display: grid; place-items: center; color: rgba(60,60,67,.6); font-size: 17px; text-align: center; padding: 40px; }\n\n.convo { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }\n.convo-nav { position: relative; z-index: 5; padding-top: 50px; background: rgba(249,249,249,.94); backdrop-filter: blur(20px); border-bottom: .5px solid rgba(0,0,0,.18); }\n.convo-nav .bar { position: relative; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }\n.convo-nav .back { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; color: #007aff; font-size: 17px; background: none; border: 0; padding: 4px; }\n.convo-nav .back .badge { background: #007aff; color: #fff; border-radius: 10px; font-size: 13px; min-width: 20px; padding: 0 6px; line-height: 20px; margin-left: 2px; }\n.convo-nav .avatar { width: 54px; height: 54px; font-size: 22px; }\n.convo-nav .who { font-size: 12px; display: flex; align-items: center; gap: 2px; }\n.convo-body { flex: 1; overflow-y: auto; padding: 8px 0 12px; }\n.stamp { text-align: center; color: rgba(60,60,67,.6); font-size: 12px; margin: 14px 0 6px; }\n.stamp b { font-weight: 600; }\n.bubble-row { display: flex; padding: 0 14px; margin-top: 2px; }\n.bubble-row.gap { margin-top: 10px; }\n.bubble { position: relative; max-width: 74%; padding: 7px 12px 8px; border-radius: 18px; background: #e9e9eb; color: #000; font-size: 17px; line-height: 22px; letter-spacing: -.02em; white-space: pre-wrap; overflow-wrap: anywhere; }\n.bubble.tail::before { content: \"\"; position: absolute; bottom: 0; left: -7px; width: 20px; height: 20px; background: #e9e9eb; border-bottom-right-radius: 15px; }\n.bubble.tail::after { content: \"\"; position: absolute; bottom: 0; left: -10px; width: 10px; height: 20px; background: #fff; border-bottom-right-radius: 10px; }\n.bubble a, .bubble .code { color: inherit; text-decoration: underline; text-underline-offset: 2px; }\n.bubble .media { display: block; max-width: 100%; border-radius: 12px; margin: 2px 0 4px; }\n.bubble.arrive { animation: mbn-pop .35s cubic-bezier(.2,.9,.3,1.3); }\n.delivered-note { padding: 2px 16px 0 26px; color: rgba(60,60,67,.6); font-size: 11px; }\n.convo-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 32px; background: #fff; }\n.convo-input .plus { width: 34px; height: 34px; border-radius: 50%; background: #e9e9eb; display: grid; place-items: center; flex: none; }\n.convo-input .field-ios { flex: 1; height: 36px; border: 1px solid #c6c6c8; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; color: #c4c4c6; font-size: 17px; }\n.qt { margin: 0 10px 6px; padding: 8px 12px; border-radius: 10px; background: #d1d3d9; text-align: center; font-size: 15px; color: #000; }\n.qt small { display: block; font-size: 12px; color: #3c3c43; }\n\n/* \u2500\u2500 Lock screen (iOS) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.lock { position: absolute; inset: 0; color: #fff; overflow: hidden;\n background: radial-gradient(120% 70% at 20% 10%, #6f86ff 0%, transparent 55%), radial-gradient(90% 60% at 90% 30%, #ff7eb3 0%, transparent 60%), radial-gradient(120% 80% at 50% 100%, #1d1b4a 0%, transparent 70%), linear-gradient(180deg,#3a3f9f,#141433); }\n.lock .padlock { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); opacity: .95; }\n.lock .date { position: absolute; top: 84px; width: 100%; text-align: center; font: 600 19px var(--ios); letter-spacing: .01em; opacity: .92; }\n.lock .clock { position: absolute; top: 102px; width: 100%; text-align: center; font: 700 92px/1 \"SF Pro Rounded\", var(--ios); letter-spacing: -.02em; color: rgba(255,255,255,.93); }\n.lock-stack { position: absolute; left: 10px; right: 10px; top: 236px; bottom: 112px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }\n.lock-stack::-webkit-scrollbar { display: none; }\n.lock-stack .center-label { text-align: center; font: 600 15px var(--ios); opacity: .85; padding: 4px 0; }\n.ios-note { position: relative; display: flex; gap: 10px; padding: 11px 12px 12px 11px; border-radius: 22px; color: #000; background: rgba(246,246,246,.66); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }\n.ios-note.arrive { animation: mbn-drop .45s cubic-bezier(.2,.9,.3,1.15); }\n.ios-note .app-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 18px var(--ios); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }\n.ios-note .content { flex: 1; min-width: 0; }\n.ios-note .line1 { display: flex; justify-content: space-between; gap: 8px; }\n.ios-note .title { font: 600 15px/20px var(--ios); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ios-note .time { flex: none; font-size: 13px; color: rgba(60,60,67,.62); }\n.ios-note .body { font: 400 15px/20px var(--ios); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }\n.ios-note .thumb { flex: none; width: 38px; height: 38px; border-radius: 7px; object-fit: cover; align-self: center; }\n.ios-note.expanded .body { -webkit-line-clamp: unset; }\n.ios-note .hero { width: 100%; border-radius: 12px; margin-top: 8px; display: block; }\n.note-data { margin-top: 8px; font: 12px/1.45 var(--mono); background: rgba(255,255,255,.55); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: #1c1c1e; }\n.note-meta { margin-top: 6px; font-size: 12px; color: rgba(60,60,67,.7); }\n.ios-stack-more { position: relative; height: 18px; margin: -14px 14px 0; border-radius: 0 0 18px 18px; background: rgba(246,246,246,.42); backdrop-filter: blur(20px); }\n.ios-stack-more + .ios-stack-more { margin: -10px 26px 0; background: rgba(246,246,246,.28); }\n.lock-buttons { position: absolute; bottom: 46px; left: 46px; right: 46px; display: flex; justify-content: space-between; }\n.lock-buttons span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.28); backdrop-filter: blur(20px); }\n.lock-empty { text-align: center; font: 500 15px var(--ios); opacity: .7; margin-top: 30px; }\n\n/* \u2500\u2500 Notification shade (Android) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.shade { position: absolute; inset: 0; color: #e6e1e5; background: linear-gradient(180deg, rgba(20,18,24,.94), rgba(20,18,24,.98)), radial-gradient(100% 60% at 30% 0%, #4b3f72, #141218); overflow: hidden; }\n.shade .sb { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0; font: 500 14px var(--android); color: #e6e1e5; }\n.shade .sb .icons { display: flex; gap: 5px; align-items: center; }\n.shade .qs-head { position: absolute; top: 46px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; font: 400 15px var(--android); color: #cac4d0; }\n.qs { position: absolute; top: 80px; left: 14px; right: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }\n.qs .tile { height: 60px; border-radius: 20px; background: #36343b; display: flex; align-items: center; gap: 10px; padding: 0 14px; font: 500 14px var(--android); color: #e6e1e5; min-width: 0; }\n.qs .tile > div { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.qs .tile svg { flex: none; }\n.qs .tile.on { background: #d0bcff; color: #381e72; }\n.qs .tile small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }\n.qs-bright { position: absolute; top: 216px; left: 14px; right: 14px; height: 44px; border-radius: 22px; background: #36343b; overflow: hidden; }\n.qs-bright::before { content: \"\"; position: absolute; inset: 0 44% 0 0; background: #d0bcff; border-radius: 22px; }\n.shade-list { position: absolute; top: 276px; left: 10px; right: 10px; bottom: 92px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; }\n.shade-list::-webkit-scrollbar { display: none; }\n.a-note { background: #2b2930; border-radius: 6px; padding: 14px 16px 14px 14px; cursor: pointer; display: flex; gap: 12px; }\n.a-note:first-child { border-top-left-radius: 26px; border-top-right-radius: 26px; }\n.a-note:last-child { border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }\n.a-note.arrive { animation: mbn-headsup .5s cubic-bezier(.2,.9,.3,1.12); }\n.a-note .a-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 15px var(--android); }\n.a-note .a-main { flex: 1; min-width: 0; }\n.a-note .a-head { display: flex; align-items: center; gap: 6px; font: 400 12px var(--android); color: #cac4d0; }\n.a-note .a-head .chev { margin-left: auto; width: 26px; height: 20px; border-radius: 10px; background: #49454f; display: grid; place-items: center; }\n.a-note .a-title { font: 500 15px/20px var(--android); color: #e6e1e5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.a-note .a-body { font: 400 14px/20px var(--android); color: #cac4d0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }\n.a-note.expanded .a-body { -webkit-line-clamp: unset; }\n.a-note .large-icon { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; align-self: center; }\n.a-note .big-picture { display: block; width: 100%; border-radius: 14px; margin-top: 10px; }\n.a-note .note-data { background: #1d1b20; color: #e6e1e5; }\n.a-note .note-meta { color: #938f99; }\n.shade-actions { position: absolute; bottom: 44px; left: 14px; right: 14px; display: flex; justify-content: space-between; }\n.shade-actions span { padding: 8px 16px; border-radius: 18px; background: #36343b; font: 500 14px var(--android); color: #e6e1e5; }\n.shade-empty { text-align: center; color: #938f99; font: 400 14px var(--android); margin-top: 26px; }\n.gesture { position: absolute; bottom: 12px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 2px; background: rgba(255,255,255,.75); }\n\n/* \u2500\u2500 Mail (web client) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.window { position: relative; container-type: inline-size; border-radius: 12px; overflow: hidden; background: #f8fafd; box-shadow: 0 0 0 1px #2c313c, 0 30px 70px rgba(0,0,0,.5); height: 760px; display: flex; flex-direction: column; font-family: var(--mail); color: #1f1f1f; }\n.chrome { flex: none; height: 38px; background: #dfe3e9; display: flex; align-items: center; gap: 12px; padding: 0 12px; }\n.lights { display: flex; gap: 7px; }\n.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }\n.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }\n.omnibox { flex: 1; max-width: 560px; margin: 0 auto; height: 26px; border-radius: 13px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #5f6368; font: 13px system-ui; }\n.mail-top { flex: none; height: 64px; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; }\n.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #444746; border: 0; background: none; flex: none; }\n.icon-btn:hover { background: rgba(68,71,70,.08); }\n.mail-logo { display: flex; align-items: center; gap: 6px; width: 194px; font: 400 22px var(--mail); color: #444746; letter-spacing: -.01em; }\n.mail-search { flex: 1; min-width: 0; max-width: 720px; height: 48px; border-radius: 24px; background: #e9eef6; display: flex; align-items: center; gap: 4px; padding: 0 4px; color: #444746; font-size: 16px; }\n.mail-search .placeholder { flex: 1; padding-left: 4px; }\n.mail-top .right { margin-left: auto; display: flex; align-items: center; gap: 2px; }\n.mail-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 500 15px var(--mail); margin-left: 8px; }\n.mail-body { flex: 1; min-height: 0; display: flex; }\n.mail-nav { flex: none; width: 236px; padding: 8px 8px 0 0; overflow: hidden; }\n.compose { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 16px; margin: 0 0 16px 8px; border-radius: 16px; background: #c2e7ff; color: #001d35; font: 500 14px var(--mail); border: 0; box-shadow: none; }\n.nav-item { display: flex; align-items: center; gap: 18px; height: 32px; padding: 0 12px 0 26px; border-radius: 0 16px 16px 0; color: #202124; font: 400 14px var(--mail); }\n.nav-item.active { background: #d3e3fd; font-weight: 700; color: #001d35; }\n.nav-item .n { margin-left: auto; font-size: 12px; }\n.mail-main { flex: 1; min-width: 0; margin: 0 16px 16px 0; background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }\n.mail-toolbar { flex: none; height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 14px; color: #444746; }\n.mail-toolbar .range { margin-left: auto; font-size: 12px; color: #444746; }\n.cat-tabs { flex: none; display: flex; border-bottom: 1px solid #f1f3f4; }\n.cat-tabs div { flex: 0 1 250px; min-width: 0; height: 54px; display: flex; align-items: center; gap: 16px; padding: 0 16px; color: #444746; font: 500 14px var(--mail); position: relative; }\n.cat-tabs div.on { color: #0b57d0; }\n.cat-tabs div.on::after { content: \"\"; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #0b57d0; }\n.mail-list { flex: 1; overflow-y: auto; }\n.mrow { display: flex; align-items: center; height: 40px; padding: 0 16px 0 12px; border-bottom: 1px solid #f1f3f4; cursor: pointer; font-size: 14px; color: #202124; background: #f2f6fc; }\n.mrow.unread { background: #fff; font-weight: 700; }\n.mrow:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); position: relative; z-index: 1; }\n.mrow.arrive { animation: mbn-rowflash 1.6s ease-out; }\n.mrow .chk, .mrow .star { flex: none; width: 20px; height: 20px; margin-right: 10px; color: #c4c7c5; display: grid; place-items: center; }\n.mrow .from { flex: none; width: 168px; padding-right: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.mrow .subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.mrow .snippet { color: #5f6368; font-weight: 400; }\n.mrow .clip { color: #5f6368; margin-left: 8px; flex: none; }\n.mrow .date { flex: none; width: 78px; text-align: right; font-size: 12px; }\n.mrow .svc { flex: none; font: 500 10px var(--mail); color: #5f6368; border: 1px solid #dadce0; border-radius: 4px; padding: 0 4px; margin-left: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }\n.mail-empty { padding: 60px 20px; text-align: center; color: #5f6368; font: 400 14px var(--mail); }\n.mail-empty b { display: block; font: 400 22px var(--mail); color: #1f1f1f; margin: 12px 0 4px; }\n.reader { flex: 1; overflow-y: auto; padding: 0 0 24px; }\n.reader .subject-row { display: flex; align-items: center; gap: 10px; padding: 18px 16px 8px 72px; }\n.reader h1 { margin: 0; font: 400 22px/28px var(--mail); color: #1f1f1f; }\n.label-chip { font: 400 12px var(--mail); background: #ddd; border-radius: 4px; padding: 0 6px; color: #444746; display: inline-flex; gap: 4px; align-items: center; }\n.sender-row { display: flex; gap: 14px; padding: 12px 16px 0 16px; }\n.sender-row .mail-avatar { width: 40px; height: 40px; font-size: 18px; margin: 0; }\n.sender-row .who { flex: 1; min-width: 0; }\n.sender-row .who b { font: 700 14px var(--mail); color: #1f1f1f; }\n.sender-row .who .addr { font: 400 12px var(--mail); color: #5e5e5e; }\n.sender-row .who .to { font: 400 12px var(--mail); color: #5e5e5e; display: flex; align-items: center; gap: 2px; margin-top: 2px; }\n.sender-row .meta { display: flex; align-items: center; gap: 4px; color: #5e5e5e; font: 400 12px var(--mail); white-space: nowrap; }\n.details { margin: 8px 16px 0 70px; padding: 10px 14px; border: 1px solid #dadce0; border-radius: 8px; font: 12px/1.6 var(--mail); color: #5e5e5e; display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; }\n.details span:nth-child(odd) { text-align: right; }\n.details span:nth-child(even) { color: #1f1f1f; overflow-wrap: anywhere; }\n.mail-frame { display: block; width: calc(100% - 86px); margin: 16px 16px 0 70px; border: 0; min-height: 120px; background: #fff; }\n.mail-text { margin: 16px 16px 0 70px; white-space: pre-wrap; font: 400 14px/1.55 Arial, sans-serif; color: #222; overflow-wrap: anywhere; }\n.mail-text a { color: #1155cc; }\n.attachments { margin: 18px 16px 0 70px; border-top: 1px solid #e0e0e0; padding-top: 14px; }\n.attachments h3 { margin: 0 0 10px; font: 500 14px var(--mail); color: #1f1f1f; }\n.att-grid { display: flex; flex-wrap: wrap; gap: 12px; }\n.att { width: 180px; height: 104px; border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }\n.att .att-top { flex: 1; background: #f1f3f4; display: grid; place-items: center; color: #d93025; }\n.att .att-name { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 500 12px var(--mail); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.reply-row { display: flex; gap: 10px; margin: 24px 16px 0 70px; }\n.reply-row span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 16px; height: 36px; border: 1px solid #747775; border-radius: 18px; font: 500 14px var(--mail); color: #444746; }\n\n/* \u2500\u2500 Timeline + inspector \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.timeline { padding: 18px; overflow-x: auto; }\n.tl td.mono:first-child { white-space: nowrap; }\n.tl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }\n.tl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }\n.tl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }\n.tl tr:last-child td { border-bottom: 0; }\n.tl tbody tr { cursor: pointer; }\n.tl tbody tr:hover { background: #1b1f28; }\n.tl .content { max-width: 520px; color: var(--muted); }\n.tl .content b { color: var(--text); font-weight: 600; }\n.tl .mono { font-family: var(--mono); font-size: 12px; }\n.chan { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }\n.chan.sms { background: rgba(48,209,88,.14); color: #6ee38a; }\n.chan.email { background: rgba(10,132,255,.16); color: #69b0ff; }\n.chan.push { background: rgba(255,159,10,.15); color: #ffc15e; }\n.svc-tag { font-size: 12px; color: var(--muted); }\n.empty-tl { padding: 60px; text-align: center; color: var(--muted); }\n.inspector { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.4); display: flex; flex-direction: column; }\n.inspector header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }\n.inspector header h3 { margin: 0; font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.inspector .btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font-size: 13px; }\n.inspector pre { margin: 0; flex: 1; overflow: auto; padding: 14px 16px; font: 12px/1.55 var(--mono); color: #cdd3df; white-space: pre-wrap; overflow-wrap: anywhere; }\n.inspector .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }\n.inspector .kv span:nth-child(odd) { color: var(--muted); }\n.inspector .kv span:nth-child(even) { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }\n\n\n/* \u2500\u2500 Sound toggle \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.icon-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--muted); font-size: 13px; }\n.icon-toggle[aria-pressed=\"true\"] { color: var(--text); border-color: #3d4a66; }\n\n/* \u2500\u2500 Swipe gestures \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */\n.swipe { position: relative; touch-action: pan-y; }\n.swipe > .swipe-card { position: relative; z-index: 1; will-change: transform; }\n.swipe.settling > .swipe-card, .settling.a-note { transition: transform .32s cubic-bezier(.2,.9,.25,1), opacity .32s ease; }\n.swipe-actions { position: absolute; inset: 0; display: flex; justify-content: flex-end; align-items: stretch; visibility: hidden; }\n.swipe.swiping > .swipe-actions, .swipe.open > .swipe-actions { visibility: visible; }\n.collapsing { overflow: hidden; transition: height .26s ease, margin .26s ease, padding .26s ease, opacity .2s ease !important; }\n\n/* iOS lock screen: Options / Clear behind a card */\n.ios-swipe .swipe-actions { gap: 8px; }\n.ios-swipe .swipe-actions button { width: 72px; border: 0; border-radius: 20px; background: rgba(246,246,246,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: #000; font: 500 14px var(--ios); }\n.push-group { display: flex; flex-direction: column; gap: 8px; }\n.group-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; animation: mbn-fadein .25s ease; }\n.group-head h3 { flex: 1; margin: 0; font: 700 20px/1.2 var(--ios); color: #fff; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.group-head button { border: 0; border-radius: 15px; background: rgba(246,246,246,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: #000; font: 500 13px var(--ios); padding: 6px 12px; }\n.group-head button.x { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; }\n.push-group[data-open=\"true\"] .ios-swipe { animation: mbn-unstack .38s cubic-bezier(.2,.9,.3,1.1) backwards; }\n.push-group[data-open=\"true\"] .ios-swipe:nth-child(3) { animation-delay: .03s; } .push-group[data-open=\"true\"] .ios-swipe:nth-child(4) { animation-delay: .06s; }\n.stack-layers { cursor: pointer; border: 0; padding: 0; background: none; display: block; width: 100%; }\n.stack-layers .ios-stack-more:first-child { margin-top: -14px; }\n.lock.wake { animation: mbn-wake 1.1s ease-out; }\n.ios-overlay { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 14px; background: rgba(255,255,255,.28); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); animation: mbn-fadein .2s ease; }\n.ios-overlay.dark { background: rgba(0,0,0,.28); }\n.ios-overlay .ios-note { animation: mbn-lift .3s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 20px 40px rgba(0,0,0,.25); }\n.ios-menu { align-self: flex-start; width: 250px; border-radius: 14px; overflow: hidden; background: rgba(237,237,237,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 10px 40px rgba(0,0,0,.2); animation: mbn-lift .28s cubic-bezier(.2,.9,.3,1.2); }\n.ios-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 16px; border: 0; border-bottom: .5px solid rgba(60,60,67,.29); background: none; color: #000; font: 400 17px var(--ios); letter-spacing: -.02em; text-align: left; }\n.ios-menu button:last-child { border-bottom: 0; }\n.ios-menu button:active { background: rgba(0,0,0,.08); }\n.ios-overlay.dark .ios-menu { align-self: stretch; width: auto; }\n\n/* Android shade */\n.a-note { touch-action: pan-y; position: relative; }\n.a-settings { margin-top: 8px; display: grid; gap: 8px; animation: mbn-fadein .2s ease; }\n.a-settings .opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid #49454f; font: 500 14px var(--android); color: #e6e1e5; background: none; text-align: left; }\n.a-settings .opt[aria-pressed=\"true\"] { background: #4a4458; border-color: #d0bcff; }\n.a-settings .opt small { display: block; font-weight: 400; color: #cac4d0; font-size: 12px; }\n.a-settings .row { display: flex; justify-content: space-between; }\n.a-settings .row button { border: 0; background: none; color: #d0bcff; font: 500 14px var(--android); padding: 6px 4px; }\n.shade-actions button { padding: 8px 16px; border: 0; border-radius: 18px; background: #36343b; font: 500 14px var(--android); color: #e6e1e5; }\n\n/* Messages: thread swipe actions, page transitions, bubble times, tapbacks */\n.thread-swipe .swipe-actions { justify-content: space-between; }\n.thread-swipe .swipe-actions .side { display: flex; }\n.thread-swipe .swipe-actions button { width: 74px; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 400 13px var(--ios); }\n.act-unread { background: #007aff; } .act-pin { background: #ffcc00; } .act-mute { background: #5856d6; } .act-delete { background: #ff3b30; }\n.thread-swipe .thread { background: #fff; }\n.thread .name-line { display: flex; align-items: center; gap: 4px; min-width: 0; }\n.thread .flag { flex: none; color: rgba(60,60,67,.6); display: inline-flex; }\n.msgs.enter { animation: mbn-back .38s cubic-bezier(.2,.9,.25,1); }\n.convo.enter { animation: mbn-push .4s cubic-bezier(.2,.9,.25,1); box-shadow: -10px 0 30px rgba(0,0,0,.12); }\n.convo-body { --reveal: 0px; overflow-x: hidden; touch-action: pan-y; }\n.convo-body .bubble-row, .convo-body .stamp { transform: translateX(calc(-1 * var(--reveal))); }\n.convo-body.settling .bubble-row, .convo-body.settling .stamp { transition: transform .3s cubic-bezier(.2,.9,.25,1); }\n.bubble-row { position: relative; }\n.bubble-time { position: absolute; right: -66px; top: 50%; transform: translateY(-50%); width: 58px; color: rgba(60,60,67,.6); font-size: 12px; white-space: nowrap; }\n.bubble { touch-action: pan-y; -webkit-user-select: text; user-select: text; }\n.tapback { position: absolute; z-index: 2; top: -16px; right: -12px; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px; background: #007aff; color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--ios); box-shadow: 0 0 0 2.5px #fff; animation: mbn-pop .35s cubic-bezier(.2,.9,.3,1.4); }\n.tapback-bar { align-self: flex-start; display: flex; gap: 4px; padding: 6px 8px; border-radius: 26px; background: rgba(233,233,235,.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); animation: mbn-lift .28s cubic-bezier(.2,.9,.3,1.3); }\n.tapback-bar button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: #8e8e93; font: 700 16px/1 var(--ios); display: grid; place-items: center; }\n.tapback-bar button[aria-pressed=\"true\"] { background: #007aff; color: #fff; }\n.ios-overlay .bubble { align-self: flex-start; max-width: 80%; animation: mbn-lift .28s cubic-bezier(.2,.9,.3,1.2); }\n\n/* Mail: hover actions, row swipe, toast */\n.mrow .hover-actions { display: none; flex: none; align-items: center; gap: 2px; margin-left: 8px; }\n.mrow .hover-actions .icon-btn { width: 32px; height: 32px; }\n.mrow:hover .hover-actions, .mrow:focus-within .hover-actions { display: flex; }\n.mrow:hover .date, .mrow:focus-within .date { display: none; }\n.mrow .star { cursor: pointer; }\n.mrow .star[aria-pressed=\"true\"] { color: #f4b400; }\n.mrow-swipe { background: #188038; }\n.mrow-swipe .swipe-actions { justify-content: space-between; align-items: center; padding: 0 22px; color: #fff; }\n.toast { position: absolute; z-index: 20; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 24px; min-width: 288px; max-width: calc(100% - 48px); padding: 14px 16px 14px 24px; border-radius: 4px; background: #303030; color: #f2f2f2; font: 400 14px var(--mail); box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px rgba(0,0,0,.14); animation: mbn-toast .25s cubic-bezier(0,0,.2,1); }\n.toast button { margin-left: auto; border: 0; background: none; color: #a8c7fa; font: 500 14px var(--mail); padding: 4px 8px; }\n.reader.enter, .mail-list.enter { animation: mbn-fadein .18s ease; }\n\n@keyframes mbn-fadein { from { opacity: 0; } to { opacity: 1; } }\n@keyframes mbn-headsup { from { opacity: 0; transform: translateY(-70px) scale(.98); } to { opacity: 1; transform: none; } }\n@keyframes mbn-unstack { from { opacity: 0; transform: translateY(-40px) scale(.94); } to { opacity: 1; transform: none; } }\n@keyframes mbn-wake { from { filter: brightness(.25); } to { filter: none; } }\n@keyframes mbn-lift { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }\n@keyframes mbn-push { from { transform: translateX(100%); } to { transform: none; } }\n@keyframes mbn-back { from { transform: translateX(-28%); filter: brightness(.92); } to { transform: none; filter: none; } }\n@keyframes mbn-toast { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }\n@keyframes mbn-pop { from { transform: scale(.6) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }\n@keyframes mbn-drop { from { transform: translateY(-30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }\n@keyframes mbn-fade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }\n@keyframes mbn-rowflash { from { background: #fef7e0; } to { background: #fff; } }\n@container (max-width: 980px) { .mail-nav { width: 72px; } .mail-nav .lbl, .mail-nav .n, .compose .lbl { display: none; } .mail-logo { width: auto; } .compose { padding: 0 16px; } .mrow .svc { display: none; } }\n@container (max-width: 640px) { .mail-nav, .mail-search, .cat-tabs, .mail-logo .lbl, .mail-toolbar .range { display: none; } .mail-main { margin-left: 8px; } .mrow .from { width: 110px; } .reader .subject-row, .sender-row { padding-left: 16px; } .mail-frame, .mail-text, .attachments, .reply-row, .details { margin-left: 16px; } .mail-frame { width: calc(100% - 32px); } .sender-row { flex-wrap: wrap; } .sender-row .who { flex-basis: calc(100% - 54px); } .sender-row .meta { flex-basis: 100%; padding-left: 54px; white-space: normal; } .reader h1 { font-size: 19px; line-height: 24px; } }\n@media (max-width: 760px) { .devices { padding: 16px 8px; } .device-col.wide { flex-basis: 100%; } }\n`\n\n/** The stylesheet, every rule scoped to `.mb-notifications`. */\nexport const STYLES = scopeCss(RAW, `.${ROOT_CLASS}`)\n\n/** Page-level rules for a document that hosts only the harness (the standalone page, Storybook). */\nexport const PAGE_STYLES =\n \"html, body { margin: 0; min-height: 100%; background: #0e1015; color-scheme: dark; } #app { min-height: 100vh; } .boot { padding: 48px; color: #9aa1b1; font: 14px/1.4 system-ui, sans-serif; }\"\n"],
5
- "mappings": ";AAMO,IAAM,WAAW,CAAC,KAAa,UAA0B;AAC9D,QAAM,SAAS,IAAI,QAAQ,qBAAqB,EAAE;AAClD,MAAI,MAAM;AACV,MAAI,IAAI;AACR,SAAO,IAAI,OAAO,QAAQ;AACxB,UAAM,OAAO,OAAO,QAAQ,KAAK,CAAC;AAClC,QAAI,OAAO,EAAG;AACd,UAAM,OAAO,OAAO,MAAM,GAAG,IAAI,EAAE,KAAK;AACxC,QAAI,QAAQ;AACZ,QAAI,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