@vibes.diy/base 14.3.452 → 14.3.454
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/components/HandleLookupView.d.ts +4 -1
- package/components/HandleLookupView.js +9 -2
- package/components/ImgGen.js +9 -14
- package/components/use-handle-lookup-items.js +3 -5
- package/components/vibe-menu/VibeMenu.js +3 -2
- package/components/vibe-menu/cards/ShareCard.js +8 -36
- package/components/vibe-menu/cards/share-card.styles.d.ts +1 -1
- package/components/vibe-menu/cards/share-card.styles.js +1 -8
- package/components/vibe-menu/copy.d.ts +2 -8
- package/components/vibe-menu/copy.js +1 -5
- package/components/vibe-menu/parts/Composer.d.ts +2 -1
- package/components/vibe-menu/parts/Composer.js +38 -13
- package/components/vibe-menu/parts/StatusChipRow.d.ts +6 -1
- package/components/vibe-menu/parts/StatusChipRow.js +7 -0
- package/components/vibe-menu/shell/shell.styles.js +15 -0
- package/components/vibe-menu/slices.d.ts +5 -2
- package/components/vibe-menu/vibe-menu.styles.d.ts +1 -1
- package/components/vibe-menu/vibe-menu.styles.js +6 -0
- package/hooks/img-gen/use-img-gen.js +27 -1
- package/package.json +5 -5
|
@@ -21,6 +21,9 @@ export interface HandleLookupViewProps {
|
|
|
21
21
|
readonly className?: string;
|
|
22
22
|
readonly invalid?: boolean;
|
|
23
23
|
readonly busy?: boolean;
|
|
24
|
+
readonly allowRawHandle?: boolean;
|
|
25
|
+
readonly notice?: string;
|
|
24
26
|
}
|
|
27
|
+
export declare const HANDLE_LOOKUP_PICK_HINT = "Pick someone from the list, or type their email to invite them.";
|
|
25
28
|
export declare function sanitizeTypedHandle(query: string): string;
|
|
26
|
-
export declare function HandleLookupView({ value, query, items, onQueryChange, onSelect, onClear, renderTag, placeholder, disabled, style, inputClassName, className, invalid, busy, }: HandleLookupViewProps): React.ReactElement;
|
|
29
|
+
export declare function HandleLookupView({ value, query, items, onQueryChange, onSelect, onClear, renderTag, placeholder, disabled, style, inputClassName, className, invalid, busy, allowRawHandle, notice, }: HandleLookupViewProps): React.ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
3
|
import { toRFC2822_32ByteLength } from "@vibes.diy/vibe-types";
|
|
4
|
+
export const HANDLE_LOOKUP_PICK_HINT = "Pick someone from the list, or type their email to invite them.";
|
|
4
5
|
const DEFAULT_INPUT_STYLE = {
|
|
5
6
|
width: "100%",
|
|
6
7
|
boxSizing: "border-box",
|
|
@@ -16,7 +17,7 @@ export function sanitizeTypedHandle(query) {
|
|
|
16
17
|
return toRFC2822_32ByteLength(query.trim().replace(/^@+/, ""));
|
|
17
18
|
}
|
|
18
19
|
const sanitize = sanitizeTypedHandle;
|
|
19
|
-
export function HandleLookupView({ value, query, items, onQueryChange, onSelect, onClear, renderTag, placeholder, disabled, style, inputClassName, className, invalid, busy, }) {
|
|
20
|
+
export function HandleLookupView({ value, query, items, onQueryChange, onSelect, onClear, renderTag, placeholder, disabled, style, inputClassName, className, invalid, busy, allowRawHandle = true, notice, }) {
|
|
20
21
|
const [open, setOpen] = useState(false);
|
|
21
22
|
const [highlight, setHighlight] = useState(-1);
|
|
22
23
|
const rootRef = useRef(null);
|
|
@@ -68,7 +69,10 @@ export function HandleLookupView({ value, query, items, onQueryChange, onSelect,
|
|
|
68
69
|
}
|
|
69
70
|
const sanitized = sanitize(query);
|
|
70
71
|
const emailItem = items.find((it) => it.kind === "email");
|
|
71
|
-
const canCommitRaw = sanitized.length > 0 && emailItem === undefined;
|
|
72
|
+
const canCommitRaw = allowRawHandle && sanitized.length > 0 && emailItem === undefined;
|
|
73
|
+
const exactItem = items.find((it) => it.kind !== "email" && it.slug === sanitized);
|
|
74
|
+
const showPickHint = !allowRawHandle && sanitized.length > 0 && emailItem === undefined && exactItem === undefined;
|
|
75
|
+
const statusLine = notice ?? (showPickHint ? HANDLE_LOOKUP_PICK_HINT : undefined);
|
|
72
76
|
const commit = (slug) => {
|
|
73
77
|
onSelect(slug);
|
|
74
78
|
setOpen(false);
|
|
@@ -93,6 +97,8 @@ export function HandleLookupView({ value, query, items, onQueryChange, onSelect,
|
|
|
93
97
|
commit(emailItem.slug);
|
|
94
98
|
else if (canCommitRaw)
|
|
95
99
|
commit(sanitized);
|
|
100
|
+
else if (exactItem)
|
|
101
|
+
commit(exactItem.slug);
|
|
96
102
|
}
|
|
97
103
|
else if (e.key === "Escape") {
|
|
98
104
|
e.preventDefault();
|
|
@@ -106,6 +112,7 @@ export function HandleLookupView({ value, query, items, onQueryChange, onSelect,
|
|
|
106
112
|
onQueryChange(e.target.value);
|
|
107
113
|
setOpen(true);
|
|
108
114
|
}, onFocus: () => setOpen(true), onKeyDown: onKeyDown, autoCapitalize: "off", autoComplete: "off", spellCheck: false, "aria-invalid": invalid === true ? true : undefined, "aria-busy": busy === true ? true : undefined, className: inputClassName, style: inputClassName === undefined ? DEFAULT_INPUT_STYLE : undefined }),
|
|
115
|
+
statusLine !== undefined && (React.createElement("div", { role: "status", style: { marginTop: 4, fontSize: 12, lineHeight: 1.35, color: "var(--text-secondary, var(--muted, #888))" } }, statusLine)),
|
|
109
116
|
open && (items.length > 0 || canCommitRaw) && (React.createElement("div", { role: "listbox", "aria-label": "Matching handles", style: {
|
|
110
117
|
position: "absolute",
|
|
111
118
|
top: "calc(100% + 6px)",
|
package/components/ImgGen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
3
|
import { getRegisteredVibeApi } from "@vibes.diy/vibe-runtime";
|
|
4
|
-
import { IMG_GEN_PAUSED_MESSAGE, IMG_GEN_WAITING_MESSAGE, isCaptureRefused } from "@vibes.diy/vibe-types";
|
|
4
|
+
import { IMG_GEN_LOST_MESSAGE, IMG_GEN_PAUSED_MESSAGE, IMG_GEN_WAITING_MESSAGE, isCaptureRefused } from "@vibes.diy/vibe-types";
|
|
5
5
|
import { useImgGen } from "../hooks/img-gen/use-img-gen.js";
|
|
6
6
|
import { usePictureSrc } from "../hooks/img-gen/use-picture-src.js";
|
|
7
7
|
import { registeredPictureStore } from "../hooks/img-gen/local-pictures.js";
|
|
@@ -92,8 +92,7 @@ export function ImgGen({ prompt, _id: propId, images, database, className, alt,
|
|
|
92
92
|
}
|
|
93
93
|
if (paused !== undefined && !hasExistingImage) {
|
|
94
94
|
return (React.createElement("div", { className: className, "data-imggen-paused": true, style: { padding: 20, textAlign: "center", color: "#888" } },
|
|
95
|
-
React.createElement("div", null, IMG_GEN_PAUSED_MESSAGE),
|
|
96
|
-
React.createElement("div", { style: { fontSize: 14, marginTop: 8 } }, prompt),
|
|
95
|
+
React.createElement("div", null, paused.lost === true ? IMG_GEN_LOST_MESSAGE : IMG_GEN_PAUSED_MESSAGE),
|
|
97
96
|
showControls && inCapture === false && (React.createElement("div", { style: { marginTop: 12 } },
|
|
98
97
|
React.createElement("button", { type: "button", onClick: handleTapGeneration, disabled: loading, style: btnStyle, title: "Regenerate" }, "\u21BB")))));
|
|
99
98
|
}
|
|
@@ -107,18 +106,14 @@ export function ImgGen({ prompt, _id: propId, images, database, className, alt,
|
|
|
107
106
|
}
|
|
108
107
|
if (!hasExistingImage) {
|
|
109
108
|
if (needsTap === true) {
|
|
110
|
-
return (React.createElement("div", { className: className, style: { padding: 20, textAlign: "center", color: "#888" } },
|
|
111
|
-
playgroundButton,
|
|
112
|
-
React.createElement("div", { style: { fontSize: 14, marginTop: 8 } }, prompt)));
|
|
109
|
+
return (React.createElement("div", { className: className, style: { padding: 20, textAlign: "center", color: "#888" } }, playgroundButton));
|
|
113
110
|
}
|
|
114
|
-
return (React.createElement("div", { className: className, style: { padding: 20, textAlign: "center", color: "#888" } },
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
: "Generating image...")),
|
|
121
|
-
React.createElement("div", { style: { fontSize: 14, marginTop: 8 } }, prompt)));
|
|
111
|
+
return (React.createElement("div", { className: className, style: { padding: 20, textAlign: "center", color: "#888" } }, photoGoingIn && picture.unavailable === false ? (React.createElement(PhotoSteps, { safetyPassed: safetyPassed })) : (React.createElement("div", null, pending === true || picture.unavailable
|
|
112
|
+
? "Loading image..."
|
|
113
|
+
:
|
|
114
|
+
waiting === true
|
|
115
|
+
? IMG_GEN_WAITING_MESSAGE
|
|
116
|
+
: "Generating image..."))));
|
|
122
117
|
}
|
|
123
118
|
return (React.createElement("div", { style: { position: "relative", display: "inline-block" } },
|
|
124
119
|
React.createElement("img", { src: picture.src, onError: onImageError, alt: alt ?? GENERATED_IMAGE_NAME, className: className, style: style ?? { maxWidth: "100%", height: "auto" } }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { findEmailContact } from "@vibes.diy/vibe-types";
|
|
3
3
|
import { sanitizeTypedHandle } from "./HandleLookupView.js";
|
|
4
4
|
import { mergeKnownCache } from "./handle-known-cache.js";
|
|
5
5
|
const DEBOUNCE_MS = 200;
|
|
@@ -55,10 +55,8 @@ export function useHandleLookupItems(query, lookup) {
|
|
|
55
55
|
const knownMatches = (known ?? []).filter((h) => prefix.length === 0 || h.startsWith(prefix)).sort();
|
|
56
56
|
const seen = new Set(knownMatches);
|
|
57
57
|
const globals = globalHandles.filter((h) => h.startsWith(prefix) && !seen.has(h));
|
|
58
|
-
const address = query
|
|
59
|
-
const email =
|
|
60
|
-
? [{ slug: address, known: false, kind: "email", label: "Invite by email" }]
|
|
61
|
-
: [];
|
|
58
|
+
const address = findEmailContact(query);
|
|
59
|
+
const email = address !== undefined ? [{ slug: address, known: false, kind: "email", label: "Invite by email" }] : [];
|
|
62
60
|
return [
|
|
63
61
|
...email,
|
|
64
62
|
...knownMatches.map((slug) => ({ slug, known: true, avatarUrl: avatarUrlFor(slug) })),
|
|
@@ -75,8 +75,9 @@ export function VibeMenu(props) {
|
|
|
75
75
|
if (foldSeen.open !== menuOpen || foldSeen.key !== props.openingKey) {
|
|
76
76
|
const opening = (foldSeen.open === false && menuOpen) || foldSeen.key !== props.openingKey;
|
|
77
77
|
setFoldSeen({ open: menuOpen, key: props.openingKey });
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
const rest = chatOnly || props.logOpenOnOpening === true ? "open" : "closed";
|
|
79
|
+
if (opening && fold !== rest)
|
|
80
|
+
setFold(rest);
|
|
80
81
|
}
|
|
81
82
|
const [chatOnlySeen, setChatOnlySeen] = useState(chatOnly);
|
|
82
83
|
if (chatOnlySeen !== chatOnly) {
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { useContext, useState } from "react";
|
|
3
3
|
import { exception2Result } from "@adviser/cement";
|
|
4
4
|
import { shareTaggedUrl } from "@vibes.diy/api-types";
|
|
5
|
-
import { GUEST_SHARE_ASK, GUEST_WAITING,
|
|
5
|
+
import { GUEST_SHARE_ASK, GUEST_WAITING, JOIN_OR_SIGN_IN, SHARE_AUDIENCE, SHARE_DEV_DRAFT_LINE, SHARE_HANDLE_ASK, } from "../copy.js";
|
|
6
6
|
import { ActionPill } from "../parts/ActionPill.js";
|
|
7
7
|
import { CARD_TAB_ROW_CSS, CardTabRow, MainAction, Stretch } from "../parts/CardTabRow.js";
|
|
8
8
|
import { SaveAskLine } from "../parts/SaveAskLine.js";
|
|
@@ -109,13 +109,6 @@ function ShareHero({ viewer, share, owner, audience = true, }) {
|
|
|
109
109
|
const [emailOpen, setEmailOpen] = useState(false);
|
|
110
110
|
const embed = owner ? share.embed : null;
|
|
111
111
|
const emailInvite = share.emailInvite ?? null;
|
|
112
|
-
const step = owner ? handleStepOf(share) : null;
|
|
113
|
-
if (step !== null) {
|
|
114
|
-
return (React.createElement("div", { className: "vm-share-hero", "data-share-hero": true },
|
|
115
|
-
React.createElement("span", { className: "vm-qr" },
|
|
116
|
-
React.createElement(QrCode, { value: share.qrValue, size: 160, title: `QR code to open ${share.link.display}` })),
|
|
117
|
-
React.createElement(HandleStep, { ask: step })));
|
|
118
|
-
}
|
|
119
112
|
return (React.createElement("div", { className: "vm-share-hero", "data-share-hero": true },
|
|
120
113
|
React.createElement("span", { className: "vm-qr" },
|
|
121
114
|
React.createElement(QrCode, { value: share.qrValue, size: 160, title: `QR code to open ${share.link.display}` })),
|
|
@@ -201,14 +194,14 @@ export function EmailInviteReveal({ invite, share, }) {
|
|
|
201
194
|
}
|
|
202
195
|
function HandleAskLine({ ask }) {
|
|
203
196
|
return (React.createElement("p", { className: "vm-handle-ask", "data-share-handle-ask": "" },
|
|
204
|
-
SHARE_HANDLE_ASK.
|
|
197
|
+
SHARE_HANDLE_ASK.sharingAs,
|
|
205
198
|
" ",
|
|
206
199
|
React.createElement("span", { className: "vm-handle-ask-name ph-no-capture" },
|
|
207
200
|
"@",
|
|
208
201
|
ask.handle),
|
|
209
202
|
React.createElement("span", { "aria-hidden": "true" }, " \u00B7 "),
|
|
210
203
|
React.createElement("button", { className: "vm-handle-ask-link", type: "button", onClick: ask.onChoose },
|
|
211
|
-
SHARE_HANDLE_ASK.
|
|
204
|
+
SHARE_HANDLE_ASK.rename,
|
|
212
205
|
" ",
|
|
213
206
|
React.createElement("span", { "aria-hidden": "true" }, "\u203A"))));
|
|
214
207
|
}
|
|
@@ -246,26 +239,6 @@ function AudienceLine({ share }) {
|
|
|
246
239
|
share.onPosture("public");
|
|
247
240
|
} }, pending ? SHARE_AUDIENCE.makingPublic : SHARE_AUDIENCE.makePublic))) : null));
|
|
248
241
|
}
|
|
249
|
-
function handleStepOf(share) {
|
|
250
|
-
const ask = share.handleAsk;
|
|
251
|
-
if (ask === undefined || ask === null || ask.lead !== true)
|
|
252
|
-
return null;
|
|
253
|
-
return ask;
|
|
254
|
-
}
|
|
255
|
-
function HandleStep({ ask }) {
|
|
256
|
-
return (React.createElement("div", { className: "vm-share-handle-step", "data-share-handle-step": "" },
|
|
257
|
-
React.createElement("h3", { className: "vm-handle-question" },
|
|
258
|
-
SHARE_HANDLE_STEP.shareAs,
|
|
259
|
-
" ",
|
|
260
|
-
React.createElement("span", { className: "ph-no-capture" },
|
|
261
|
-
"@",
|
|
262
|
-
ask.handle),
|
|
263
|
-
"?"),
|
|
264
|
-
React.createElement("p", { className: "vm-sub vm-handle-question-sub" }, HANDLE_TYPE_FIRST.shareAskSub),
|
|
265
|
-
React.createElement(ActionPill, { label: HANDLE_TYPE_FIRST.shareYes, glyph: "check", solo: true, onClick: ask.onShareAs }),
|
|
266
|
-
React.createElement("div", { className: "vm-handle-question-alt" },
|
|
267
|
-
React.createElement(Chip, { label: HANDLE_TYPE_FIRST.shareChange, ghost: true, onClick: ask.onChoose }))));
|
|
268
|
-
}
|
|
269
242
|
export const SHARE_TAB_CSS = `
|
|
270
243
|
[data-vibe-menu] .vm-xtab .vm-main > .vm-share-actions { justify-content: center; }
|
|
271
244
|
`;
|
|
@@ -300,7 +273,7 @@ function ShareTabHero({ share, owner, actions, }) {
|
|
|
300
273
|
React.createElement(QrCode, { value: share.qrValue, size: 160, title: `QR code to open ${share.link.display}` })),
|
|
301
274
|
embed !== null ? (React.createElement(Chip, { copy: true, ghost: embedOpen === false, label: "Embed", ariaLabel: "Embed", ariaExpanded: embedOpen, onClick: () => setEmbedOpen((v) => v === false) })) : null,
|
|
302
275
|
actions,
|
|
303
|
-
owner && share.handleAsk !== undefined && share.handleAsk !== null &&
|
|
276
|
+
owner && share.handleAsk !== undefined && share.handleAsk !== null && actions !== null ? (React.createElement(HandleAskLine, { ask: share.handleAsk })) : null,
|
|
304
277
|
embed !== null && embedOpen ? React.createElement(EmbedReveal, { share: share, embed: embed, owner: owner }) : null));
|
|
305
278
|
}
|
|
306
279
|
function PublishAsk({ publish }) {
|
|
@@ -346,20 +319,19 @@ function ShareTabBody({ viewer, share, nav, onSignIn, actions, }) {
|
|
|
346
319
|
}
|
|
347
320
|
const owner = share.canManage === true;
|
|
348
321
|
const unpublished = owner && share.publish !== null && share.publish.state !== "published";
|
|
349
|
-
const
|
|
350
|
-
const main = unpublished ? "publish" : step !== null ? "handle" : viewer.role === "signedOut" ? "signIn" : "link";
|
|
322
|
+
const main = unpublished ? "publish" : viewer.role === "signedOut" ? "signIn" : "link";
|
|
351
323
|
const linkActions = React.createElement(LinkActions, { viewer: viewer, share: share, owner: owner });
|
|
352
|
-
const heroActions = main === "link"
|
|
324
|
+
const heroActions = main === "link" ? null : linkActions;
|
|
353
325
|
return (React.createElement("div", { className: "vm-ctab vm-xtab", "data-card": "share", "data-tab-row": "" },
|
|
354
326
|
React.createElement(Stretch, null,
|
|
355
327
|
React.createElement(ShareTabHero, { share: share, owner: owner, actions: heroActions })),
|
|
356
328
|
React.createElement(MainAction, null,
|
|
357
329
|
main === "publish" && share.publish !== null ? React.createElement(PublishAsk, { publish: share.publish }) : null,
|
|
358
|
-
main === "handle" && step !== null ? React.createElement(HandleStep, { ask: step }) : null,
|
|
359
330
|
main === "signIn" ? (React.createElement(ActionPill, { label: JOIN_OR_SIGN_IN, onClick: onSignIn, caption: React.createElement(React.Fragment, null,
|
|
360
331
|
"to become a member of ",
|
|
361
332
|
React.createElement("span", { className: "vm-app-name" }, viewer.appTitle),
|
|
362
333
|
".") })) : null,
|
|
363
|
-
main === "link" ? linkActions : null
|
|
334
|
+
main === "link" ? linkActions : null,
|
|
335
|
+
main === "link" && owner && share.handleAsk !== undefined && share.handleAsk !== null ? (React.createElement(HandleAskLine, { ask: share.handleAsk })) : null),
|
|
364
336
|
row));
|
|
365
337
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SHARE_CARD_CSS = "\n[data-vibe-menu] .vm-sr {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n[data-vibe-menu] .vm-access-note {\n margin: calc(-1 * var(--space-4)) 0 var(--space-12);\n font-size: 13px;\n line-height: 1.3;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-who-block > .vm-textbtn {\n margin: calc(-1 * var(--space-6)) 0 var(--space-8);\n height: 32px;\n text-align: left;\n}\n/* #10634: the \"Allow remixing\" explanation under the switch; Read more is\n the first action, the Pro offer the quiet second. */\n[data-vibe-menu] .vm-remix-explainer .vm-sub { margin: var(--space-4) 0 var(--space-8); }\n[data-vibe-menu] .vm-remix-explainer a { color: var(--ink); font-weight: 700; text-decoration: underline; }\n[data-vibe-menu] .vm-remix-explainer .vm-textbtn {\n margin: 0 0 var(--space-8);\n height: 32px;\n text-align: left;\n}\n[data-vibe-menu] .vm-publish {\n margin-bottom: var(--space-12);\n}\n[data-vibe-menu] .vm-fail {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n margin: var(--space-6) 0;\n font-size: 13px;\n line-height: 1.3;\n}\n[data-vibe-menu] .vm-fail > span {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-share-empty {\n margin: 0;\n padding: var(--space-8) 0 var(--space-14);\n font: 400 16px/1.3 var(--font-display);\n}\n[data-vibe-menu] .vm-reveal {\n padding: var(--space-12) var(--space-16) var(--space-14);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* The Share hero: the QR code open, with Copy link / Share\u2026 / Embed under it. */\n[data-vibe-menu] .vm-share-hero {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--space-12);\n padding: var(--space-8) 0 var(--space-16);\n}\n[data-vibe-menu] .vm-share-hero .vm-share-actions {\n justify-content: center;\n}\n/* #
|
|
1
|
+
export declare const SHARE_CARD_CSS = "\n[data-vibe-menu] .vm-sr {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n[data-vibe-menu] .vm-access-note {\n margin: calc(-1 * var(--space-4)) 0 var(--space-12);\n font-size: 13px;\n line-height: 1.3;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-who-block > .vm-textbtn {\n margin: calc(-1 * var(--space-6)) 0 var(--space-8);\n height: 32px;\n text-align: left;\n}\n/* #10634: the \"Allow remixing\" explanation under the switch; Read more is\n the first action, the Pro offer the quiet second. */\n[data-vibe-menu] .vm-remix-explainer .vm-sub { margin: var(--space-4) 0 var(--space-8); }\n[data-vibe-menu] .vm-remix-explainer a { color: var(--ink); font-weight: 700; text-decoration: underline; }\n[data-vibe-menu] .vm-remix-explainer .vm-textbtn {\n margin: 0 0 var(--space-8);\n height: 32px;\n text-align: left;\n}\n[data-vibe-menu] .vm-publish {\n margin-bottom: var(--space-12);\n}\n[data-vibe-menu] .vm-fail {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n margin: var(--space-6) 0;\n font-size: 13px;\n line-height: 1.3;\n}\n[data-vibe-menu] .vm-fail > span {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-share-empty {\n margin: 0;\n padding: var(--space-8) 0 var(--space-14);\n font: 400 16px/1.3 var(--font-display);\n}\n[data-vibe-menu] .vm-reveal {\n padding: var(--space-12) var(--space-16) var(--space-14);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* The Share hero: the QR code open, with Copy link / Share\u2026 / Embed under it. */\n[data-vibe-menu] .vm-share-hero {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--space-12);\n padding: var(--space-8) 0 var(--space-16);\n}\n[data-vibe-menu] .vm-share-hero .vm-share-actions {\n justify-content: center;\n}\n/* #8641: the Handles drill's question, \"What should people call you?\", in the card's display face. */\n[data-vibe-menu] .vm-handle-question {\n margin: 0 0 var(--space-4);\n font: 700 18px/1.2 var(--font-display);\n color: var(--ink);\n overflow-wrap: anywhere;\n}\n[data-vibe-menu] .vm-handle-question-sub {\n margin: 0 0 var(--space-12);\n}\n[data-vibe-menu] .vm-handle-ask {\n margin: 0;\n max-width: 100%;\n text-align: center;\n font-size: 14px;\n line-height: 1.35;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-handle-ask-name {\n overflow-wrap: anywhere;\n}\n[data-vibe-menu] .vm-handle-ask-link {\n font: inherit;\n color: var(--ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n cursor: pointer;\n}\n/* #6658: who the link opens for, one quiet row under Copy link (29px at 390px in audition #9652). */\n[data-vibe-menu] p.vm-share-audience {\n margin-top: var(--space-10);\n}\n[data-vibe-menu] .vm-share-audience .vm-glyph {\n display: inline-block;\n width: 14px;\n height: 14px;\n vertical-align: -2px;\n margin-right: 4px;\n}\n/* Held at the line's height while who it opens for is still unknown, so the line lands without a jump. */\n[data-vibe-menu] .vm-share-audience[data-share-audience-pending] {\n visibility: hidden;\n}\n[data-vibe-menu] .vm-share-audience-act {\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-input.vm-note-input {\n height: auto;\n min-height: 72px;\n margin-bottom: var(--space-8);\n padding: var(--space-12) var(--space-18);\n resize: none;\n}\n[data-vibe-menu] .vm-note-count {\n margin: 0 0 var(--space-8);\n text-align: right;\n font-size: 12px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-share-hero .vm-reveal {\n width: 100%;\n padding: var(--space-12) 0 0;\n}\n/* Text is a real sms: link wearing the chip: no underline, centered label. */\n[data-vibe-menu] a.vm-chip {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n}\n/* Email a friend: the address field, Send under it, the line under that. */\n[data-vibe-menu] .vm-reveal[data-reveal=\"email-invite\"] {\n display: flex;\n flex-direction: column;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-chip.has-glyph {\n display: inline-flex;\n align-items: center;\n gap: var(--space-6);\n}\n[data-vibe-menu] .vm-chip.has-glyph > svg {\n width: 14px;\n height: 14px;\n flex: none;\n}\n[data-vibe-menu] .vm-reveal + .vm-row,\n[data-vibe-menu] .vm-reveal + a.vm-row {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] a.vm-row {\n color: var(--ink);\n text-decoration: none;\n}\n[data-vibe-menu] .vm-qr {\n display: inline-block;\n padding: var(--space-8);\n background: #ffffff;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-input);\n line-height: 0;\n}\n[data-vibe-menu] .vm-embed {\n display: block;\n width: 100%;\n height: calc(4.5em + 10px);\n margin-bottom: var(--space-8);\n padding: 8px 10px 0;\n resize: none;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-input);\n background: transparent;\n color: var(--ink);\n font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;\n}\n/* Share as app: the 4:5 share image, held at its shape while it draws. */\n[data-vibe-menu] .vm-share-image {\n width: min(100%, 240px);\n aspect-ratio: 4 / 5;\n margin: 0 auto var(--space-14);\n overflow: hidden;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-card);\n}\n[data-vibe-menu] .vm-share-image > img {\n display: block;\n width: 100%;\n height: 100%;\n}\n[data-vibe-menu] .vm-share-image-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n font-size: 12px;\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-share-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-card-status {\n margin: var(--space-12) 0 0;\n}\n/* Phone sizing is the named container query (T5 note 5). The @media arm keeps\n the iOS no-zoom-on-focus guarantee keyed on the device as well. */\n@container vibe-menu (max-width: 480px) {\n [data-vibe-menu] .vm-embed {\n font-size: 16px;\n }\n}\n@media (max-width: 480px) {\n [data-vibe-menu] .vm-embed {\n font-size: 16px;\n }\n}\n";
|
|
@@ -65,11 +65,7 @@ export const SHARE_CARD_CSS = `
|
|
|
65
65
|
[data-vibe-menu] .vm-share-hero .vm-share-actions {
|
|
66
66
|
justify-content: center;
|
|
67
67
|
}
|
|
68
|
-
/* #
|
|
69
|
-
[data-vibe-menu] .vm-share-handle-step {
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
/* #8641: the step asked as a question, "Share as @handle?", in the card's display face. */
|
|
68
|
+
/* #8641: the Handles drill's question, "What should people call you?", in the card's display face. */
|
|
73
69
|
[data-vibe-menu] .vm-handle-question {
|
|
74
70
|
margin: 0 0 var(--space-4);
|
|
75
71
|
font: 700 18px/1.2 var(--font-display);
|
|
@@ -79,9 +75,6 @@ export const SHARE_CARD_CSS = `
|
|
|
79
75
|
[data-vibe-menu] .vm-handle-question-sub {
|
|
80
76
|
margin: 0 0 var(--space-12);
|
|
81
77
|
}
|
|
82
|
-
[data-vibe-menu] .vm-handle-question-alt {
|
|
83
|
-
margin: var(--space-12) 0 var(--space-8);
|
|
84
|
-
}
|
|
85
78
|
[data-vibe-menu] .vm-handle-ask {
|
|
86
79
|
margin: 0;
|
|
87
80
|
max-width: 100%;
|
|
@@ -11,11 +11,8 @@ export declare const JOIN_OR_SIGN_IN = "Join or sign in";
|
|
|
11
11
|
export declare const SIGN_IN_TO_KEEP_APP = "Sign in to keep your app";
|
|
12
12
|
export declare const SHARE_DEV_DRAFT_LINE = "Sharing opens when your app is ready.";
|
|
13
13
|
export declare const SHARE_HANDLE_ASK: Readonly<{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}>;
|
|
17
|
-
export declare const SHARE_HANDLE_STEP: Readonly<{
|
|
18
|
-
shareAs: "Share as";
|
|
14
|
+
sharingAs: "Sharing as";
|
|
15
|
+
rename: "Rename your address";
|
|
19
16
|
}>;
|
|
20
17
|
export declare const SHARE_AUDIENCE: Readonly<{
|
|
21
18
|
public: "Anyone with the link can open it";
|
|
@@ -33,9 +30,6 @@ export declare const HANDLE_TYPE_FIRST: Readonly<{
|
|
|
33
30
|
needAnIdea: "Need an idea?";
|
|
34
31
|
youAre: "You're";
|
|
35
32
|
forNow: "for now.";
|
|
36
|
-
shareAskSub: "This is the name on the link people open.";
|
|
37
|
-
shareYes: "Yes, share it";
|
|
38
|
-
shareChange: "Pick a different handle";
|
|
39
33
|
}>;
|
|
40
34
|
export declare const CREATE_ACCOUNT_TO_KEEP_APPS = "Create a free account for all your devices";
|
|
41
35
|
export declare const KEEP_APP_LINE: Readonly<{
|
|
@@ -15,8 +15,7 @@ export const REMIX_HINTS = Object.freeze([
|
|
|
15
15
|
export const JOIN_OR_SIGN_IN = "Join or sign in";
|
|
16
16
|
export const SIGN_IN_TO_KEEP_APP = "Sign in to keep your app";
|
|
17
17
|
export const SHARE_DEV_DRAFT_LINE = "Sharing opens when your app is ready.";
|
|
18
|
-
export const SHARE_HANDLE_ASK = Object.freeze({
|
|
19
|
-
export const SHARE_HANDLE_STEP = Object.freeze({ shareAs: "Share as" });
|
|
18
|
+
export const SHARE_HANDLE_ASK = Object.freeze({ sharingAs: "Sharing as", rename: "Rename your address" });
|
|
20
19
|
export const SHARE_AUDIENCE = Object.freeze({
|
|
21
20
|
public: "Anyone with the link can open it",
|
|
22
21
|
justYou: "Opens just for you",
|
|
@@ -33,9 +32,6 @@ export const HANDLE_TYPE_FIRST = Object.freeze({
|
|
|
33
32
|
needAnIdea: "Need an idea?",
|
|
34
33
|
youAre: "You're",
|
|
35
34
|
forNow: "for now.",
|
|
36
|
-
shareAskSub: "This is the name on the link people open.",
|
|
37
|
-
shareYes: "Yes, share it",
|
|
38
|
-
shareChange: "Pick a different handle",
|
|
39
35
|
});
|
|
40
36
|
export const CREATE_ACCOUNT_TO_KEEP_APPS = "Create a free account for all your devices";
|
|
41
37
|
export const KEEP_APP_LINE = Object.freeze({
|
|
@@ -126,9 +126,10 @@ export interface ComposerProps {
|
|
|
126
126
|
readonly placeholder?: string;
|
|
127
127
|
readonly fieldRef?: React.Ref<HTMLTextAreaElement>;
|
|
128
128
|
readonly coarsePointer?: () => boolean;
|
|
129
|
+
readonly now?: () => number;
|
|
129
130
|
}
|
|
130
131
|
export declare const STOP_GUARD_MS = 4000;
|
|
131
132
|
export declare function stopGuardHolds(now: number, armedAt: number | undefined): boolean;
|
|
132
|
-
export declare function useStopGuardHolds(armedAt: number | undefined): boolean;
|
|
133
|
+
export declare function useStopGuardHolds(armedAt: number | undefined, now?: () => number): boolean;
|
|
133
134
|
export declare function latestStopArm(...armedAt: readonly (number | undefined)[]): number | undefined;
|
|
134
135
|
export declare function Composer(props: ComposerProps): React.ReactElement;
|
|
@@ -115,18 +115,18 @@ export const STOP_GUARD_MS = 4000;
|
|
|
115
115
|
export function stopGuardHolds(now, armedAt) {
|
|
116
116
|
return armedAt !== undefined && now - armedAt < STOP_GUARD_MS;
|
|
117
117
|
}
|
|
118
|
-
export function useStopGuardHolds(armedAt) {
|
|
118
|
+
export function useStopGuardHolds(armedAt, now = Date.now) {
|
|
119
119
|
const [, repaint] = React.useState(0);
|
|
120
|
-
const holds = stopGuardHolds(
|
|
120
|
+
const holds = stopGuardHolds(now(), armedAt);
|
|
121
121
|
React.useEffect(() => {
|
|
122
122
|
if (armedAt === undefined)
|
|
123
123
|
return;
|
|
124
|
-
const left = armedAt + STOP_GUARD_MS -
|
|
124
|
+
const left = armedAt + STOP_GUARD_MS - now();
|
|
125
125
|
if (left <= 0)
|
|
126
126
|
return;
|
|
127
127
|
const timer = setTimeout(() => repaint((n) => n + 1), left);
|
|
128
128
|
return () => clearTimeout(timer);
|
|
129
|
-
}, [armedAt]);
|
|
129
|
+
}, [armedAt, now]);
|
|
130
130
|
return holds;
|
|
131
131
|
}
|
|
132
132
|
export function latestStopArm(...armedAt) {
|
|
@@ -272,7 +272,8 @@ export function Composer(props) {
|
|
|
272
272
|
const fileInput = React.useRef(null);
|
|
273
273
|
const building = composer.cap === "Stop";
|
|
274
274
|
const [stopArmedAt, setStopArmedAt] = React.useState(undefined);
|
|
275
|
-
const
|
|
275
|
+
const now = props.now ?? Date.now;
|
|
276
|
+
const stopHeld = useStopGuardHolds(stopArmedAt, now);
|
|
276
277
|
const wasBuilding = React.useRef(building);
|
|
277
278
|
const queueSentAt = React.useRef(undefined);
|
|
278
279
|
const hadQueue = React.useRef(draft.queued.length > 0);
|
|
@@ -296,10 +297,20 @@ export function Composer(props) {
|
|
|
296
297
|
const queuedCount = draft.queued.length;
|
|
297
298
|
const draftRef = React.useRef(draft);
|
|
298
299
|
draftRef.current = draft;
|
|
300
|
+
const buildingRef = React.useRef(building);
|
|
301
|
+
buildingRef.current = building;
|
|
302
|
+
const dictationArmed = React.useRef(false);
|
|
303
|
+
const armStopIfBuilding = React.useCallback(() => {
|
|
304
|
+
if (buildingRef.current === false)
|
|
305
|
+
return;
|
|
306
|
+
dictationArmed.current = true;
|
|
307
|
+
setStopArmedAt(now());
|
|
308
|
+
}, [now]);
|
|
299
309
|
const dictation = useDictation({
|
|
300
310
|
surface: "change",
|
|
301
311
|
scope: draft.scope ?? null,
|
|
302
312
|
onText: (words) => {
|
|
313
|
+
armStopIfBuilding();
|
|
303
314
|
const latest = draftRef.current;
|
|
304
315
|
latest.setText(joinDictated(latest.text, words));
|
|
305
316
|
const field = box.current?.querySelector("textarea");
|
|
@@ -311,17 +322,26 @@ export function Composer(props) {
|
|
|
311
322
|
});
|
|
312
323
|
const dictating = dictation.phase === "recording" || dictation.phase === "opening";
|
|
313
324
|
const transcribing = dictation.phase === "transcribing";
|
|
325
|
+
const wasDictating = React.useRef(dictating);
|
|
326
|
+
React.useEffect(() => {
|
|
327
|
+
if (wasDictating.current === true && dictating === false)
|
|
328
|
+
armStopIfBuilding();
|
|
329
|
+
wasDictating.current = dictating;
|
|
330
|
+
}, [dictating, armStopIfBuilding]);
|
|
314
331
|
React.useEffect(() => {
|
|
315
332
|
if (hadQueue.current === true && queuedCount === 0 && wasBuilding.current === false)
|
|
316
|
-
queueSentAt.current =
|
|
333
|
+
queueSentAt.current = now();
|
|
317
334
|
hadQueue.current = queuedCount > 0;
|
|
318
335
|
}, [queuedCount, building]);
|
|
319
336
|
React.useEffect(() => {
|
|
320
337
|
if (building === true && wasBuilding.current === false) {
|
|
321
|
-
const fromThisBox = queuedCount > 0 || stopGuardHolds(
|
|
338
|
+
const fromThisBox = queuedCount > 0 || stopGuardHolds(now(), queueSentAt.current);
|
|
322
339
|
queueSentAt.current = undefined;
|
|
323
|
-
if (fromThisBox)
|
|
324
|
-
|
|
340
|
+
if (fromThisBox) {
|
|
341
|
+
if (stopGuardHolds(now(), stopArmedAt) === false)
|
|
342
|
+
dictationArmed.current = false;
|
|
343
|
+
setStopArmedAt((armed) => (stopGuardHolds(now(), armed) ? armed : now()));
|
|
344
|
+
}
|
|
325
345
|
}
|
|
326
346
|
if (building === false)
|
|
327
347
|
setStopping(false);
|
|
@@ -345,7 +365,8 @@ export function Composer(props) {
|
|
|
345
365
|
const sending = draft.text.trim();
|
|
346
366
|
if (draft.submit() === true) {
|
|
347
367
|
seedPrefill.sent(sending);
|
|
348
|
-
|
|
368
|
+
dictationArmed.current = false;
|
|
369
|
+
setStopArmedAt(now());
|
|
349
370
|
foldKeyboardAfterSend({ boxes: [box.current], coarsePointer: props.coarsePointer });
|
|
350
371
|
return;
|
|
351
372
|
}
|
|
@@ -375,7 +396,7 @@ export function Composer(props) {
|
|
|
375
396
|
focusField();
|
|
376
397
|
}
|
|
377
398
|
function stop() {
|
|
378
|
-
if (stopping === true || stopGuardHolds(
|
|
399
|
+
if (stopping === true || transcribing || stopGuardHolds(now(), stopArmedAt))
|
|
379
400
|
return;
|
|
380
401
|
setStopping(true);
|
|
381
402
|
draft.stop();
|
|
@@ -390,6 +411,7 @@ export function Composer(props) {
|
|
|
390
411
|
return;
|
|
391
412
|
submit("enter");
|
|
392
413
|
}
|
|
414
|
+
const stopHeldLabel = transcribing || dictationArmed.current ? "Adding your words…" : "Sending…";
|
|
393
415
|
const drop = composerFileDrop({ onFiles: attachments.add });
|
|
394
416
|
const leftOutNote = leftOutSentence(attachments.leftOut);
|
|
395
417
|
const next = composer.hold?.next;
|
|
@@ -416,10 +438,13 @@ export function Composer(props) {
|
|
|
416
438
|
React.createElement("button", { className: "vm-dictate-cancel", type: "button", "aria-label": "Stop recording and discard it", onClick: dictation.cancel },
|
|
417
439
|
React.createElement(DictationCancelIcon, null)),
|
|
418
440
|
React.createElement(DictationWave, { analyser: dictation.analyser, startedAt: dictation.startedAt }),
|
|
419
|
-
React.createElement("button", { className: "vm-dictate-done", type: "button", "aria-label": "Done speaking: add the words", autoFocus: true, onClick:
|
|
441
|
+
React.createElement("button", { className: "vm-dictate-done", type: "button", "aria-label": "Done speaking: add the words", autoFocus: true, onClick: () => {
|
|
442
|
+
armStopIfBuilding();
|
|
443
|
+
dictation.finish();
|
|
444
|
+
} },
|
|
420
445
|
React.createElement(DictationCheckIcon, null)))) : dictation.available && composer.disabled !== true ? (React.createElement("button", { className: "vm-mic", type: "button", "aria-label": transcribing ? "Writing down what you said" : "Speak instead of typing", title: transcribing ? undefined : "Speak instead of typing", "aria-busy": transcribing ? true : undefined, disabled: transcribing, "data-transcribing": transcribing ? "" : undefined, onClick: dictation.start }, transcribing ? React.createElement(DictationSpinner, null) : React.createElement(MicIcon, null))) : null,
|
|
421
446
|
building ? (React.createElement(React.Fragment, null,
|
|
422
|
-
React.createElement("button", { className: "vm-cap", type: "button", "data-stop": "", "data-stopping": stopping === true ? "" : undefined, "data-stop-held": stopHeld === true && stopping === false ? "" : undefined, "aria-busy": stopping === true || stopHeld === true ? true : undefined, disabled: composer.stopDisabled === true || stopping === true || stopHeld === true, onClick: stop }, stopping === true ? "Stopping…" : stopHeld === true ?
|
|
447
|
+
React.createElement("button", { className: "vm-cap", type: "button", "data-stop": "", "data-stopping": stopping === true ? "" : undefined, "data-stop-held": (stopHeld === true || transcribing) && stopping === false ? "" : undefined, "aria-busy": stopping === true || stopHeld === true || transcribing ? true : undefined, disabled: composer.stopDisabled === true || stopping === true || stopHeld === true || transcribing, onClick: stop }, stopping === true ? "Stopping…" : stopHeld === true || transcribing ? stopHeldLabel : "Stop"),
|
|
423
448
|
sendCap)) : (sendCap)),
|
|
424
449
|
dictation.note !== undefined ? (React.createElement("p", { className: "vm-queue-note", role: "status", "data-dictation-note": "" }, dictation.note)) : null,
|
|
425
450
|
composer.hold !== undefined ? (refused === "credits" || ideaHeld ? null : (React.createElement(HoldNote, { hold: composer.hold }))) : composer.queuedNote ? (React.createElement("p", { className: "vm-queue-note" }, "Sends when this finishes.")) : null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export type StatusChipId = "keepAsk" | "examplesCleared" | "nextStep" | "buildAsk" | "shareReach" | "pending" | "admin" | "draft" | "locked" | "editing";
|
|
2
|
+
export type StatusChipId = "keepAsk" | "examplesCleared" | "nextStep" | "buildAsk" | "howTo" | "shareReach" | "pending" | "admin" | "draft" | "locked" | "editing";
|
|
3
3
|
export declare const STATUS_CHIP_PRIORITY: Readonly<Record<StatusChipId, number>>;
|
|
4
4
|
export declare const ADMIN_BADGE_TEXT = "Admin";
|
|
5
5
|
export declare const ADMIN_BADGE_LABEL = "Admin mode is on for this page \u2014 you're seeing everyone's data.";
|
|
@@ -65,7 +65,12 @@ export interface StatusChipInputs {
|
|
|
65
65
|
readonly label: string;
|
|
66
66
|
onTap(): void;
|
|
67
67
|
} | null;
|
|
68
|
+
readonly howTo?: {
|
|
69
|
+
readonly line: string;
|
|
70
|
+
onTap(): void;
|
|
71
|
+
} | null;
|
|
68
72
|
}
|
|
73
|
+
export declare function howToNoteLabel(line: string): string;
|
|
69
74
|
export declare const BUILD_ASK_TEXT_MAX = 44;
|
|
70
75
|
export declare const BUILD_ASK_CHIP_TEXT = "A question for you";
|
|
71
76
|
export declare function buildAskChipText(question: string): string;
|
|
@@ -6,6 +6,7 @@ export const STATUS_CHIP_PRIORITY = Object.freeze({
|
|
|
6
6
|
examplesCleared: 0,
|
|
7
7
|
nextStep: 1,
|
|
8
8
|
buildAsk: 1,
|
|
9
|
+
howTo: 1,
|
|
9
10
|
shareReach: 1,
|
|
10
11
|
pending: 1,
|
|
11
12
|
admin: 2,
|
|
@@ -60,6 +61,9 @@ export function nextStepChipLabel(label) {
|
|
|
60
61
|
export function pendingChipText(n) {
|
|
61
62
|
return `${n} waiting`;
|
|
62
63
|
}
|
|
64
|
+
export function howToNoteLabel(line) {
|
|
65
|
+
return `How to use your app: ${line.trim()} Tap to open the Agent log.`;
|
|
66
|
+
}
|
|
63
67
|
export const BUILD_ASK_TEXT_MAX = 44;
|
|
64
68
|
export const BUILD_ASK_CHIP_TEXT = "A question for you";
|
|
65
69
|
export function buildAskChipText(question) {
|
|
@@ -84,6 +88,7 @@ export const FLOATING_ONLY_CHIPS = new Set([
|
|
|
84
88
|
"buildAsk",
|
|
85
89
|
"keepAsk",
|
|
86
90
|
"shareReach",
|
|
91
|
+
"howTo",
|
|
87
92
|
]);
|
|
88
93
|
export function statusChipsFor(b, handlers) {
|
|
89
94
|
const chips = [];
|
|
@@ -116,6 +121,8 @@ export function statusChipsFor(b, handlers) {
|
|
|
116
121
|
onTap: b.buildAsk.onTap,
|
|
117
122
|
});
|
|
118
123
|
}
|
|
124
|
+
if (b.howTo !== undefined && b.howTo !== null && b.howTo.line.trim().length > 0)
|
|
125
|
+
chips.push({ id: "howTo", text: b.howTo.line.trim(), label: howToNoteLabel(b.howTo.line), onTap: b.howTo.onTap });
|
|
119
126
|
if (b.shareReach !== undefined && b.shareReach !== null)
|
|
120
127
|
chips.push({ id: "shareReach", text: b.shareReach.text, label: b.shareReach.label, onTap: b.shareReach.onTap });
|
|
121
128
|
if (b.pendingRequests > 0) {
|
|
@@ -434,6 +434,21 @@ export const VIBE_MENU_SHELL_CSS = `
|
|
|
434
434
|
overflow: hidden;
|
|
435
435
|
text-overflow: ellipsis;
|
|
436
436
|
}
|
|
437
|
+
/* #7919 the how-to note: the agent's closing line reads whole, wrapped to
|
|
438
|
+
three lines at most, with Code's colour as a bar on its leading edge. */
|
|
439
|
+
.vm-layer .vm-chip-row[data-place="floating"] .vm-chip-pill[data-chip="howTo"] {
|
|
440
|
+
display: -webkit-box;
|
|
441
|
+
-webkit-box-orient: vertical;
|
|
442
|
+
-webkit-line-clamp: 3;
|
|
443
|
+
overflow: hidden;
|
|
444
|
+
height: auto;
|
|
445
|
+
/* The breathing room is a border, outside the clip, so a fourth line never shows in it. */
|
|
446
|
+
padding: 0 4px 0 12px;
|
|
447
|
+
border-block: 6px solid transparent;
|
|
448
|
+
white-space: normal;
|
|
449
|
+
box-shadow: inset 4px 0 0 var(--section-code);
|
|
450
|
+
font: 600 12px/18px var(--font-tab);
|
|
451
|
+
}
|
|
437
452
|
.vm-layer .vm-chip-row[data-place="floating"] .vm-chip-pill[data-chip="pending"] {
|
|
438
453
|
flex: none;
|
|
439
454
|
align-self: flex-start;
|
|
@@ -247,8 +247,6 @@ export interface ShareSlice {
|
|
|
247
247
|
handleAsk?: {
|
|
248
248
|
handle: string;
|
|
249
249
|
onChoose(): void;
|
|
250
|
-
lead?: boolean;
|
|
251
|
-
onShareAs?(): void;
|
|
252
250
|
} | null;
|
|
253
251
|
onShareEvent?: (e: ShareEvent) => void;
|
|
254
252
|
textInvite?: {
|
|
@@ -382,6 +380,10 @@ export interface VibeMenuProps {
|
|
|
382
380
|
readonly label: string;
|
|
383
381
|
onTap(): void;
|
|
384
382
|
} | null;
|
|
383
|
+
howTo?: {
|
|
384
|
+
readonly line: string;
|
|
385
|
+
onTap(): void;
|
|
386
|
+
} | null;
|
|
385
387
|
hidden?: readonly StatusChipId[];
|
|
386
388
|
onHide?(id: StatusChipId): void;
|
|
387
389
|
onShown?(ids: readonly StatusChipId[]): void;
|
|
@@ -415,6 +417,7 @@ export interface VibeMenuProps {
|
|
|
415
417
|
settledAtMount?: boolean;
|
|
416
418
|
switchHiddenAtMount?: boolean;
|
|
417
419
|
openingKey?: number;
|
|
420
|
+
logOpenOnOpening?: boolean;
|
|
418
421
|
labeledMenu?: LabeledMenuVariant;
|
|
419
422
|
onFirstBuildNote?: (action: FirstBuildNoteAction) => void;
|
|
420
423
|
firstBuildWaitClaim?: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export declare const VIBE_MENU_LIGHT_VARS = "\n color-scheme: light;\n --section-home: oklch(76.02% 0.1832 146.61);\n --section-account: oklch(57.46% 0.2126 29.55);\n --section-code: oklch(89.78% 0.1857 98.22);\n --section-share: oklch(64.39% 0.1304 231.41);\n --vibes-black: #000000;\n --vibes-cream: #fffff0;\n --menu-ink: #1a1a1a;\n --card-bg: var(--vibes-cream);\n --ink: #111111;\n --muted: #555555;\n --line: #111111;\n --line-card: #111111;\n --line-hairline: #1111112e;\n --placeholder: var(--muted);\n --suggest-border: #11111173;\n --share-tint: #009ace1f;\n --share-tint-strong: #009ace40;\n --on-home: var(--menu-ink);\n --on-account: var(--vibes-cream);\n --on-code: var(--menu-ink);\n --on-share: var(--menu-ink);\n --badge: var(--section-account);\n --on-badge: var(--vibes-cream);\n --cancel-cap: #f3d6d2;\n --on-cancel-cap: #9c2318;\n --obsidian-fill: rgba(6, 9, 10, 0.94);\n --obsidian-edge: rgba(255, 255, 255, 0.17);\n --obsidian-highlight: rgba(255, 255, 255, 0.32);\n --obsidian-rim: rgba(255, 255, 255, 0.1);\n --font-display: \"Alte Haas Grotesk\", Inter, sans-serif;\n --font-tab: Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif;\n --space-9: 9px;\n --space-2: 2px;\n --space-4: 4px;\n --space-6: 6px;\n --space-8: 8px;\n --space-10: 10px;\n --space-12: 12px;\n --space-14: 14px;\n --space-16: 16px;\n --space-18: 18px;\n --space-24: 24px;\n --radius-card: 16px;\n --radius-full: 999px;\n --radius-bar-end: 25px;\n --radius-access-line: 24px;\n --radius-input: 22px;\n --radius-done: 21px;\n --radius-copy: 18px;\n --radius-chip: 14px;\n --radius-moment: 12px;\n --radius-switch: 10px;\n --radius-meter: 7px;\n --obsidian-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 12px rgba(255, 255, 255, 0.02);\n --swatch-selected: 0 0 0 2px #fffff0, 0 0 0 4px #111111;\n --stroke-rule: 2px;\n --stroke-hairline: 1px;\n --stroke-mini: 1.5px;\n --stroke-focus: 3px;\n --stroke-glyph: 2.4px;\n --size-icon-circle: 28px;\n --size-icon-circle-phone: 22px;\n --size-glyph: 14px;\n --size-glyph-cta: 20px;\n --size-bar: 50px;\n --size-tab: 176px;\n --size-home-extra: 14px;\n --size-bar-end: 63px;\n --size-pill-w: 120px;\n --size-pill-h: 44px;\n --size-ring: 3px;\n --size-edge: 24px;\n --size-edge-phone: 16px;\n --size-pill-flat-inset: 19px;\n --size-band: 8px;\n --size-row: 46px;\n --size-row-compact: 42px;\n --size-chip: 28px;\n --size-copy: 36px;\n --size-input: 44px;\n --size-composer: 48px;\n --size-access-line: 48px;\n --size-segment: 32px;\n --size-segment-mini: 24px;\n --size-switch-w: 36px;\n --size-meter: 14px;\n --size-card-max: 480px;\n --size-card-max-phone: 560px;\n --size-log-max: 160px;\n --size-log-peek: 120px;\n --size-code-mode-max-w: 1200px;\n --opacity-tab-inactive: 0.73;\n --opacity-row-disabled: 0.35;\n --provider-disc: #ffffff;\n --provider-ink: #111111;";
|
|
3
3
|
export declare const VIBE_MENU_DARK_VARS = "\n color-scheme: dark;\n --card-bg: #1a1a1a;\n --ink: #e0e0e0;\n --muted: #a3a3a3;\n --line-card: #e0e0e0;\n --line-hairline: #e0e0e02e;\n --suggest-border: #e0e0e073;\n --cancel-cap: #4a2420;\n --on-cancel-cap: #f1b5ad;\n --swatch-selected: 0 0 0 2px #1a1a1a, 0 0 0 4px #e0e0e0;";
|
|
4
|
-
export declare const VIBE_MENU_CSS = "\n/* ---------- tokens (tokens.json), light, then both dark arms ----------\n Detached layers (portalled out of the menu root) carry\n data-vibe-menu-detached, so every token block lists them too. */\n[data-vibe-menu],\n[data-vibe-menu-detached] {\n color-scheme: light;\n --section-home: oklch(76.02% 0.1832 146.61);\n --section-account: oklch(57.46% 0.2126 29.55);\n --section-code: oklch(89.78% 0.1857 98.22);\n --section-share: oklch(64.39% 0.1304 231.41);\n --vibes-black: #000000;\n --vibes-cream: #fffff0;\n --menu-ink: #1a1a1a;\n --card-bg: var(--vibes-cream);\n --ink: #111111;\n --muted: #555555;\n --line: #111111;\n --line-card: #111111;\n --line-hairline: #1111112e;\n --placeholder: var(--muted);\n --suggest-border: #11111173;\n --share-tint: #009ace1f;\n --share-tint-strong: #009ace40;\n --on-home: var(--menu-ink);\n --on-account: var(--vibes-cream);\n --on-code: var(--menu-ink);\n --on-share: var(--menu-ink);\n --badge: var(--section-account);\n --on-badge: var(--vibes-cream);\n --cancel-cap: #f3d6d2;\n --on-cancel-cap: #9c2318;\n --obsidian-fill: rgba(6, 9, 10, 0.94);\n --obsidian-edge: rgba(255, 255, 255, 0.17);\n --obsidian-highlight: rgba(255, 255, 255, 0.32);\n --obsidian-rim: rgba(255, 255, 255, 0.1);\n --font-display: \"Alte Haas Grotesk\", Inter, sans-serif;\n --font-tab: Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif;\n --space-9: 9px;\n --space-2: 2px;\n --space-4: 4px;\n --space-6: 6px;\n --space-8: 8px;\n --space-10: 10px;\n --space-12: 12px;\n --space-14: 14px;\n --space-16: 16px;\n --space-18: 18px;\n --space-24: 24px;\n --radius-card: 16px;\n --radius-full: 999px;\n --radius-bar-end: 25px;\n --radius-access-line: 24px;\n --radius-input: 22px;\n --radius-done: 21px;\n --radius-copy: 18px;\n --radius-chip: 14px;\n --radius-moment: 12px;\n --radius-switch: 10px;\n --radius-meter: 7px;\n --obsidian-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 12px rgba(255, 255, 255, 0.02);\n --swatch-selected: 0 0 0 2px #fffff0, 0 0 0 4px #111111;\n --stroke-rule: 2px;\n --stroke-hairline: 1px;\n --stroke-mini: 1.5px;\n --stroke-focus: 3px;\n --stroke-glyph: 2.4px;\n --size-icon-circle: 28px;\n --size-icon-circle-phone: 22px;\n --size-glyph: 14px;\n --size-glyph-cta: 20px;\n --size-bar: 50px;\n --size-tab: 176px;\n --size-home-extra: 14px;\n --size-bar-end: 63px;\n --size-pill-w: 120px;\n --size-pill-h: 44px;\n --size-ring: 3px;\n --size-edge: 24px;\n --size-edge-phone: 16px;\n --size-pill-flat-inset: 19px;\n --size-band: 8px;\n --size-row: 46px;\n --size-row-compact: 42px;\n --size-chip: 28px;\n --size-copy: 36px;\n --size-input: 44px;\n --size-composer: 48px;\n --size-access-line: 48px;\n --size-segment: 32px;\n --size-segment-mini: 24px;\n --size-switch-w: 36px;\n --size-meter: 14px;\n --size-card-max: 480px;\n --size-card-max-phone: 560px;\n --size-log-max: 160px;\n --size-log-peek: 120px;\n --size-code-mode-max-w: 1200px;\n --opacity-tab-inactive: 0.73;\n --opacity-row-disabled: 0.35;\n --provider-disc: #ffffff;\n --provider-ink: #111111;\n}\n@media (prefers-color-scheme: dark) {\n [data-vibe-menu],\n [data-vibe-menu-detached] {\n color-scheme: dark;\n --card-bg: #1a1a1a;\n --ink: #e0e0e0;\n --muted: #a3a3a3;\n --line-card: #e0e0e0;\n --line-hairline: #e0e0e02e;\n --suggest-border: #e0e0e073;\n --cancel-cap: #4a2420;\n --on-cancel-cap: #f1b5ad;\n --swatch-selected: 0 0 0 2px #1a1a1a, 0 0 0 4px #e0e0e0;\n }\n}\n.dark [data-vibe-menu],\n.dark [data-vibe-menu-detached] {\n color-scheme: dark;\n --card-bg: #1a1a1a;\n --ink: #e0e0e0;\n --muted: #a3a3a3;\n --line-card: #e0e0e0;\n --line-hairline: #e0e0e02e;\n --suggest-border: #e0e0e073;\n --cancel-cap: #4a2420;\n --on-cancel-cap: #f1b5ad;\n --swatch-selected: 0 0 0 2px #1a1a1a, 0 0 0 4px #e0e0e0;\n}\n\n/* ---------- the root: the phone container ---------- */\n[data-vibe-menu] {\n container-name: vibe-menu;\n container-type: inline-size;\n color: var(--ink);\n font-family: var(--font-display);\n}\n\n/* Scrollbars (smoke F15): thin, in the menu's hairline, both themes, never the\n native dark bar inside the cream card. The colour is set on the root AND\n every descendant, for every scroller the menu hosts (drills, the Embed box,\n injected panels): the app's global sheet sets scrollbar-color on *, which\n beats a colour only inherited from the root. The width rule has zero\n specificity so a part that hides its bar (the Code mode tab strip) still\n wins. The webkit arm is for engines without the standard properties; Chrome\n ignores it once they are set. */\n[data-vibe-menu],\n[data-vibe-menu] *,\n[data-vibe-menu-detached],\n[data-vibe-menu-detached] * {\n scrollbar-color: var(--line-hairline) transparent;\n}\n:where([data-vibe-menu]),\n:where([data-vibe-menu]) :where(*) {\n scrollbar-width: thin;\n}\n:where([data-vibe-menu]) ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background: transparent;\n}\n:where([data-vibe-menu]) ::-webkit-scrollbar-thumb {\n border-radius: var(--radius-full);\n background: var(--line-hairline);\n}\n\n/* A section is set by data-section on any ancestor (or the root), using the\n code keys: home | settings (Account) | vibe (Code) | share. It sets --accent\n (the section colour) and --on-accent (its label colour). */\n[data-vibe-menu][data-section=\"home\"],\n[data-vibe-menu] [data-section=\"home\"] {\n --accent: var(--section-home);\n --on-accent: var(--on-home);\n}\n[data-vibe-menu][data-section=\"settings\"],\n[data-vibe-menu] [data-section=\"settings\"] {\n --accent: var(--section-account);\n --on-accent: var(--on-account);\n}\n[data-vibe-menu][data-section=\"vibe\"],\n[data-vibe-menu] [data-section=\"vibe\"] {\n --accent: var(--section-code);\n --on-accent: var(--on-code);\n}\n[data-vibe-menu][data-section=\"share\"],\n[data-vibe-menu] [data-section=\"share\"] {\n --accent: var(--section-share);\n --on-accent: var(--on-share);\n}\n\n[data-vibe-menu],\n[data-vibe-menu] * {\n box-sizing: border-box;\n}\n/* the card's surface and side padding, so rows can bleed edge to edge */\n[data-vibe-menu] .vm-card-body {\n position: relative;\n padding: var(--space-14) var(--space-16) var(--space-16);\n background: var(--card-bg);\n color: var(--ink);\n font: 400 14px/20px var(--font-display);\n}\n[data-vibe-menu] .vm-card-body.is-framed {\n border: var(--stroke-rule) solid var(--line);\n border-radius: var(--radius-card) var(--radius-card) 0 0;\n overflow: hidden;\n}\n\n/* ---------- shared ---------- */\n/* Zero specificity: every vm-* rule wins over it, and so does any utility\n class on content a host injects into the card (slots). */\n:where([data-vibe-menu]) :where(button) {\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n padding: 0;\n cursor: pointer;\n text-align: left;\n touch-action: manipulation;\n}\n[data-vibe-menu] .vm-glyph {\n width: var(--size-glyph);\n height: var(--size-glyph);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--stroke-glyph);\n stroke-linecap: round;\n stroke-linejoin: round;\n flex: none;\n}\n[data-vibe-menu] .vm-label,\n[data-vibe-menu] .vm-seg button,\n[data-vibe-menu] .vm-chip {\n font: 700 14px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n}\n[data-vibe-menu] .vm-label.is-plain {\n font: 700 16px/1.1 var(--font-display);\n letter-spacing: 0;\n text-transform: none;\n}\n[data-vibe-menu] .vm-kicker,\n[data-vibe-menu] .vm-subhead {\n margin: 0 0 var(--space-8);\n font: 700 10.5px/1.3 var(--font-tab);\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-subhead {\n margin: var(--space-16) 0 0;\n padding-bottom: var(--space-8);\n}\n[data-vibe-menu] .vm-sub {\n margin: var(--space-8) 0 var(--space-14);\n font-size: 13px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-app-name {\n white-space: nowrap;\n}\n/* ---------- SectionStrip: the bar ---------- */\n[data-vibe-menu] .vm-menu {\n position: relative;\n}\n[data-vibe-menu] .vm-strip {\n position: relative;\n width: calc(var(--size-tab) * 4 + var(--size-home-extra) + var(--size-bar-end) + 2px);\n height: var(--size-bar);\n}\n[data-vibe-menu] .vm-strip-slide {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: flex-end;\n border: var(--stroke-rule) solid var(--line);\n border-right: 0;\n border-radius: var(--bar-tl, var(--radius-bar-end)) 0 0 var(--radius-bar-end);\n overflow: hidden;\n background: var(--card-bg);\n /* #7329: the bar under the switch belongs to no tab's box. */\n padding-right: var(--size-bar-end);\n}\n[data-vibe-menu] .vm-tab {\n position: relative;\n width: var(--size-tab);\n flex: none;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border: 0;\n padding: 0 0 0 var(--space-9);\n cursor: pointer;\n background: var(--accent);\n}\n[data-vibe-menu] .vm-tab-circle {\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border-radius: 50%;\n background: var(--menu-ink);\n display: flex;\n align-items: center;\n justify-content: center;\n flex: none;\n}\n[data-vibe-menu] .vm-tab svg {\n width: calc(var(--size-icon-circle) / 2);\n height: calc(var(--size-icon-circle) / 2);\n fill: none;\n stroke: var(--vibes-cream);\n stroke-width: 2.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n flex: none;\n}\n[data-vibe-menu] .vm-tab-label {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 0 0 1.9px;\n font-family: var(--font-tab);\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 1.9px;\n text-transform: uppercase;\n white-space: nowrap;\n pointer-events: none;\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-tab[data-section=\"home\"] {\n width: calc(var(--size-tab) + var(--size-home-extra));\n padding-left: calc(var(--space-9) + var(--size-home-extra) / 2);\n}\n[data-vibe-menu] .vm-tab[data-section=\"home\"] .vm-tab-label {\n left: calc(var(--size-home-extra) / 2);\n}\n/* #7329: Share's box ends where the switch begins; its colour runs on under\n the pill as a child painted beyond the box. */\n[data-vibe-menu] .vm-tab-run {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 100%;\n width: var(--size-bar-end);\n background: inherit;\n}\n[data-vibe-menu] .vm-tab:focus-visible {\n outline: var(--stroke-focus) solid var(--line);\n outline-offset: -3px;\n}\n/* Port change (smoke F5): the DS inset line ring vanished on the black pill\n and drew square corners. The pill's ring is cream, sits in the obsidian\n glass's 3px rim (offset 0), and follows the stadium (the pill's radius). */\n[data-vibe-menu] .vm-pill:focus-visible {\n outline: var(--stroke-focus) solid var(--vibes-cream);\n outline-offset: 0;\n}\n[data-vibe-menu] .vm-menu.has-card .vm-tab:not(.is-active) {\n opacity: var(--opacity-tab-inactive);\n}\n[data-vibe-menu] .vm-badge {\n position: absolute;\n top: -4px;\n right: 6px;\n min-width: 18px;\n height: 18px;\n padding: 0 5px;\n border-radius: var(--radius-full);\n background: var(--badge);\n color: var(--on-badge);\n font: 700 11px/18px var(--font-display);\n text-align: center;\n}\n/* the bar sits against the pill: it runs half the glass under it */\n[data-vibe-menu] .vm-bar-anchor {\n position: relative;\n height: var(--size-bar);\n}\n[data-vibe-menu] .vm-bar-anchor .vm-strip {\n position: absolute;\n left: 0;\n bottom: 0;\n}\n[data-vibe-menu] .vm-bar-anchor .vm-glass {\n position: absolute;\n right: 0;\n bottom: 0;\n}\n/* phones: the bar spans the width; tabs sized to their content, icon above label */\n[data-vibe-menu] .vm-strip.is-phone {\n width: 100%;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab {\n width: auto;\n flex: 1 1 auto;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--space-2);\n min-width: 0;\n padding: 4px 2px;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab-circle {\n width: var(--size-icon-circle-phone);\n height: var(--size-icon-circle-phone);\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab svg {\n width: 12px;\n height: 12px;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab[data-section=\"home\"] {\n padding: 4px 2px 4px calc(2px + var(--size-home-extra) * 0.7);\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab[data-section=\"share\"] {\n flex-grow: 1;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab-label {\n position: static;\n display: block;\n font-size: 9.6px;\n letter-spacing: 1px;\n padding: 0 0 0 1px;\n}\n\n/* ---------- VibesSwitch: the pill in its obsidian glass ---------- */\n[data-vibe-menu] .vm-glass {\n position: relative;\n width: calc(var(--size-pill-w) + 2 * var(--size-ring));\n height: calc(var(--size-pill-h) + 2 * var(--size-ring));\n border-radius: var(--radius-full);\n flex: none;\n background:\n linear-gradient(to right, transparent, var(--obsidian-highlight), transparent) top / 100% 1px no-repeat,\n linear-gradient(to bottom, var(--obsidian-highlight), transparent, var(--obsidian-edge)) left / 1px 100% no-repeat,\n var(--obsidian-fill);\n box-shadow: var(--obsidian-shadow);\n}\n[data-vibe-menu] .vm-pill {\n position: absolute;\n left: var(--size-ring);\n top: var(--size-ring);\n width: var(--size-pill-w);\n height: var(--size-pill-h);\n padding: 0;\n border: 0;\n border-radius: var(--radius-full);\n background: none;\n cursor: pointer;\n}\n/* Touching, holding or dragging on the switch never selects text, raises the\n iOS callout and magnifier, or drags an image (owner 2026-10-16). The letters\n are paths drawn twice, the second copy clipped to the knob: both sit under\n .vm-pill, so the descendant rule covers them. */\n[data-vibe-menu] .vm-glass,\n[data-vibe-menu] .vm-pill,\n[data-vibe-menu] .vm-pill * {\n -webkit-user-select: none;\n user-select: none;\n -webkit-touch-callout: none;\n}\n/* A held press slides the knob 3/4 of the way and waits (owner 2026-10-16).\n An overshooting spring would carry it past 3/4, so the held leg eases out\n with no overshoot; the release finishes on the host's own curve. */\n[data-vibe-menu] .vm-pill[data-progress=\"0.75\"] {\n --vibes-switch-slide: 0.4s cubic-bezier(0.22, 1, 0.36, 1);\n}\n/* Reduced motion: the switch jumps between poses. Its paths carry inline\n transitions (the knob's d and 3px nudge, the letters' fills and on-knob clip), so\n only an !important rule here stops every leg, not just the d slide. */\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-pill {\n --vibes-switch-slide: 0s;\n }\n [data-vibe-menu] .vm-pill svg path {\n transition: none !important;\n }\n}\n[data-vibe-menu] .vm-switch-art {\n width: 100%;\n height: 100%;\n display: block;\n}\n[data-vibe-menu] .vm-pill .vm-badge {\n top: -6px;\n right: 4px;\n}\n/* #7079: the guest maker's save-time ask: a dot, not a count. */\n[data-vibe-menu] .vm-badge.is-dot {\n min-width: 10px;\n width: 10px;\n height: 10px;\n padding: 0;\n}\n[data-vibe-menu] .vm-chiclet {\n display: inline-block;\n padding: 2px 8px;\n border-radius: var(--radius-full);\n background: var(--section-code);\n /* Port change: bundle.css writes #111111 (ink); text on a section colour is\n menu-ink (Global Constraints), which --on-code resolves to in both themes. */\n color: var(--on-code);\n font: 700 11px/18px var(--font-display);\n letter-spacing: 0.06em;\n}\n/* #4291. The chiclet's shape, so the two read as one row \u2014 but in the badge\n colour (the identity lane) so elevation never looks like a publish state. */\n[data-vibe-menu] .vm-admin-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: var(--radius-full);\n background: var(--badge);\n color: var(--on-badge);\n font: 700 11px/18px var(--font-display);\n letter-spacing: 0.06em;\n}\n\n/* ---------- MenuCard: the card, its band and the folder-tab join, drawn once ---------- */\n[data-vibe-menu] .vm-frame {\n position: relative;\n}\n[data-vibe-menu] .vm-frame .vm-card {\n position: absolute;\n left: 0;\n top: 0;\n background: var(--card-bg);\n color: var(--ink);\n overflow: hidden;\n border-radius: var(--radius-card) var(--radius-card) 0 0;\n}\n[data-vibe-menu] .vm-frame .vm-card .vm-card-body {\n padding-bottom: calc(var(--space-16) + var(--size-band));\n}\n[data-vibe-menu] .vm-outline {\n position: absolute;\n left: 0;\n top: 0;\n overflow: visible;\n pointer-events: none;\n}\n[data-vibe-menu] .vm-outline .vm-band,\n[data-vibe-menu] .vm-outline .vm-cover {\n fill: var(--accent);\n}\n[data-vibe-menu] .vm-outline .vm-edge {\n fill: none;\n stroke: var(--line);\n stroke-width: 2;\n stroke-linejoin: miter;\n}\n\n/* ---------- ActionPill: the card's one main action ---------- */\n[data-vibe-menu] .vm-ask {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-12);\n width: 100%;\n padding: var(--space-14) var(--space-18);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n background: var(--accent);\n color: var(--on-accent);\n font: 700 21px/1 var(--font-display);\n letter-spacing: -0.02em;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-ask.is-solo {\n margin-bottom: var(--space-14);\n}\n[data-vibe-menu] .vm-ask .vm-glyph {\n width: var(--size-glyph-cta);\n height: var(--size-glyph-cta);\n transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n[data-vibe-menu] .vm-ask:hover .vm-glyph {\n transform: translateX(4px);\n}\n[data-vibe-menu] .vm-ask.is-phone {\n font-size: 18px;\n}\n[data-vibe-menu] .vm-sub:has(.vm-copy) {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-sub:has(.vm-copy) > span {\n flex: 1;\n}\n\n/* ---------- Chip ---------- */\n[data-vibe-menu] .vm-chip {\n height: var(--size-chip);\n padding: 0 var(--space-12);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-chip);\n background: var(--accent);\n color: var(--on-accent);\n font-size: 11px;\n flex: none;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-chip.is-ghost {\n background: transparent;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-chip.is-name {\n font: 700 14px/1 var(--font-display);\n letter-spacing: 0;\n text-transform: none;\n}\n[data-vibe-menu] .vm-chip.vm-copy {\n height: var(--size-copy);\n padding: 0 var(--space-14);\n border-radius: var(--radius-copy);\n flex-shrink: 0;\n align-self: center;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-suggestions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-6);\n}\n/* Port change (smoke F9): codegen writes long chips, so a chip wraps inside\n the card (DS \"text that can outgrow its track wraps\") instead of running\n past its edge; a one-line chip keeps the 28px chip height. */\n[data-vibe-menu] .vm-suggest {\n min-height: var(--size-chip);\n max-width: 100%;\n min-width: 0;\n padding: var(--space-2) var(--space-12);\n text-align: left;\n overflow-wrap: anywhere;\n border: var(--stroke-mini) solid var(--suggest-border);\n border-radius: var(--radius-chip);\n background: none;\n color: var(--ink);\n font: 400 13px/20px var(--font-display);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-suggest:hover,\n[data-vibe-menu] .vm-suggest.is-hover,\n[data-vibe-menu] .vm-suggest[aria-busy=\"true\"] {\n border-color: var(--line-card);\n background: color-mix(in srgb, var(--accent) 35%, transparent);\n}\n/* A pressed chip holds the row while its answer is on the way (a lookup, a\n fork): it stays lit, and the row takes no second press. */\n[data-vibe-menu] .vm-suggest:disabled {\n cursor: default;\n}\n[data-vibe-menu] .vm-suggest:disabled:not([aria-busy=\"true\"]) {\n opacity: 0.5;\n}\n/* The pressed one is disabled too (the row takes no second press), so it\n must outrank the app's global button:disabled dim (theme/global-styles.ts). */\n[data-vibe-menu] .vm-suggest[aria-busy=\"true\"] {\n opacity: 1;\n}\n/* The same hold on the inline links at the end of the chat: the pressed link\n keeps its lit underline, the others read as disabled (dimmed above). */\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest[aria-busy=\"true\"] {\n text-decoration-color: currentColor;\n}\n/* The gold option (#6768): the one capability the agent offered, a chip in the\n same row and the same order as the others. It wears the lit state the others\n take on hover, a full-ink outline and a filled star before the label, so it\n reads as the offer without a second colour on the card. */\n[data-vibe-menu] .vm-suggest.is-gold {\n display: inline-flex;\n align-items: center;\n gap: var(--space-6);\n border-color: var(--line-card);\n background: color-mix(in srgb, var(--accent) 35%, transparent);\n}\n[data-vibe-menu] .vm-suggest.is-gold .vm-glyph {\n flex: none;\n fill: currentColor;\n}\n[data-vibe-menu] .vm-picks {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6);\n}\n\n/* ---------- Composer: the logo pill's shape, 48px tall (owner pick B, 2026-10-26:\n near the switch's 44px curve with a full 44px cap) ---------- */\n[data-vibe-menu] .vm-composer {\n display: flex;\n align-items: stretch;\n min-height: var(--size-composer);\n margin-bottom: var(--space-16);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n background: var(--card-bg);\n}\n[data-vibe-menu] .vm-composer:focus-within,\n[data-vibe-menu] .vm-composer.is-focus {\n box-shadow: 0 0 0 3px var(--accent);\n}\n[data-vibe-menu] .vm-composer textarea {\n flex: 1;\n min-width: 0;\n align-self: center;\n margin: 0 var(--space-12) 0 2px;\n padding: 0;\n resize: none;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--ink);\n font: 700 16px/1.2 var(--font-display);\n letter-spacing: -0.02em;\n field-sizing: content;\n max-height: 2.4em;\n}\n[data-vibe-menu] .vm-composer textarea::placeholder {\n color: var(--placeholder);\n}\n[data-vibe-menu] .vm-composer .vm-attach {\n order: -1;\n width: var(--size-copy);\n height: var(--size-copy);\n margin-left: var(--space-10);\n align-self: center;\n border-radius: 50%;\n display: grid;\n place-items: center;\n flex: none;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-attach:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-glyph {\n width: 16px;\n height: 16px;\n}\n/* The record button (2026-11-26): a mic beside the cap; listening, the field\n gives way to a live line between a cross and a check. */\n[data-vibe-menu] .vm-composer .vm-mic {\n flex: none;\n align-self: center;\n width: var(--size-copy);\n height: var(--size-copy);\n margin-right: var(--space-8);\n border-radius: 50%;\n display: grid;\n place-items: center;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-mic:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-mic[data-transcribing] {\n color: var(--ink);\n cursor: progress;\n}\n[data-vibe-menu] .vm-composer.is-dictating textarea,\n[data-vibe-menu] .vm-composer.is-dictating .vm-attach,\n[data-vibe-menu] .vm-composer.is-dictating .vm-cap {\n display: none !important;\n}\n[data-vibe-menu] .vm-composer .vm-dictate {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: var(--space-8);\n padding-left: var(--space-6);\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-cancel {\n flex: none;\n width: var(--size-copy);\n height: var(--size-copy);\n border-radius: 50%;\n display: grid;\n place-items: center;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-cancel:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-done {\n flex: none;\n align-self: stretch;\n display: grid;\n place-items: center;\n padding: 0 var(--space-24) 0 20px;\n border-left: var(--stroke-rule) solid var(--line-card);\n background: var(--section-code);\n color: var(--on-code);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-composer .vm-dictate-done:hover {\n background: color-mix(in oklch, var(--section-code), var(--menu-ink) 10%);\n}\n[data-vibe-menu] .vm-cap {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 var(--space-24) 0 20px;\n border-left: var(--stroke-rule) solid var(--line-card);\n background: var(--section-code);\n color: var(--on-code);\n font: 700 13px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n white-space: nowrap;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-cap:hover {\n background: color-mix(in oklch, var(--section-code), var(--menu-ink) 10%);\n}\n[data-vibe-menu] .vm-composer.is-building .vm-cap[data-send],\n[data-vibe-menu] .vm-composer.is-building .vm-cap[data-next],\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-stop] {\n display: none;\n}\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-send],\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-next] {\n display: flex;\n}\n/* traction#688: the held Send reads its next step (\"Get Plus \u00B7 $5/mo\", a\n guest's sign-up). Sentence case, and it may wrap to two lines rather than\n squeeze the field on a phone. */\n[data-vibe-menu] .vm-cap[data-next] {\n max-width: 48%;\n padding: var(--space-8) var(--space-16);\n text-transform: none;\n letter-spacing: 0.01em;\n white-space: normal;\n text-align: center;\n line-height: 1.2;\n}\n/* Rewrite mode (the settings tab's sharing rewrite): no attach button, so the\n field takes the attach's inset; a dim red X cap sits left of the action cap. */\n[data-vibe-menu] .vm-composer.is-rewrite {\n position: relative;\n}\n[data-vibe-menu] .vm-composer.is-rewrite textarea {\n margin-left: var(--space-24);\n}\n[data-vibe-menu] .vm-cap[data-cancel] {\n padding: 0 var(--space-16);\n background: var(--cancel-cap);\n color: var(--on-cancel-cap);\n}\n[data-vibe-menu] .vm-cap[data-cancel]:hover {\n background: color-mix(in oklch, var(--cancel-cap), var(--on-cancel-cap) 12%);\n}\n[data-vibe-menu] .vm-rewrite-shimmer {\n position: absolute;\n left: var(--space-24);\n top: 50%;\n width: 28%;\n height: var(--space-12);\n margin-top: calc(var(--space-12) / -2);\n border-radius: var(--radius-full);\n background: var(--placeholder);\n opacity: 0.3;\n pointer-events: none;\n animation: vm-rewrite-shimmer 1.4s ease-in-out infinite;\n}\n@keyframes vm-rewrite-shimmer {\n 50% {\n opacity: 0.12;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-rewrite-shimmer {\n animation: none;\n }\n}\n[data-vibe-menu] .vm-queue-note {\n display: none;\n margin: -10px 0 12px 18px;\n font-size: 12px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer:has(textarea:not(:placeholder-shown)) + .vm-queue-note {\n display: block;\n}\n/* The change box's hint (#7803 #7878): one quiet line under the box while the\n person types, in the queue note's muted voice, whose button is the second door. */\n[data-vibe-menu] .vm-door-line {\n margin: -10px 0 12px 18px;\n font-size: 12px;\n line-height: 18px;\n color: var(--muted);\n}\n/* A refused empty Send's idea (#7916): one idea, one row, ellipsized. */\n[data-vibe-menu] .vm-door-line[data-refused-send-idea] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n[data-vibe-menu] .vm-door-line .vm-door {\n all: unset;\n cursor: pointer;\n color: var(--ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n text-decoration-color: var(--muted);\n}\n/* The idea's button is one unbreakable inline box, so on a phone the whole\n button overflowed the line and became its \"\u2026\" (#8646). Bounded to the room\n after \"Try:\", it ellipsizes its own tail and the idea stays readable. */\n[data-vibe-menu] .vm-door-line[data-refused-send-idea] .vm-door {\n display: inline-block;\n max-width: calc(100% - 3em);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: bottom;\n}\n/* #9548: each held Enter remounts the door line, which lights\n once, so a repeated press reads as answered too. */\n[data-vibe-menu] .vm-door-line[data-answer] {\n color: var(--ink);\n animation: vm-door-answer 0.6s ease-out;\n}\n@keyframes vm-door-answer {\n from {\n background: color-mix(in srgb, var(--accent) 30%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-door-line[data-answer] {\n animation: none;\n }\n}\n[data-vibe-menu] .vm-door-line .vm-door:focus-visible {\n outline: 2px solid var(--ink);\n outline-offset: 2px;\n border-radius: 2px;\n}\n[data-vibe-menu] .vm-composer.is-phone textarea {\n margin-right: var(--space-6);\n font-size: 16px;\n}\n[data-vibe-menu] .vm-composer.is-phone .vm-attach {\n margin-left: 4px;\n width: 28px;\n}\n[data-vibe-menu] .vm-composer.is-phone .vm-cap {\n padding: 0 var(--space-18) 0 var(--space-14);\n}\n\n/* ---------- Row: the bar's tab grammar inside the card ---------- */\n[data-vibe-menu] .vm-group {\n border-top: var(--stroke-rule) solid var(--line-card);\n margin: 0 calc(-1 * var(--space-16));\n}\n[data-vibe-menu] .vm-group.is-flush {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-row {\n display: flex;\n align-items: center;\n gap: var(--space-12);\n width: 100%;\n height: var(--size-row);\n padding: 0 var(--space-16);\n}\n[data-vibe-menu] .vm-row.is-compact {\n height: var(--size-row-compact);\n}\n[data-vibe-menu] .vm-row + .vm-row {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-row .vm-label {\n flex: 1;\n}\n[data-vibe-menu] .vm-row-tag {\n display: inline-block;\n margin-left: var(--space-8);\n padding: 2px 6px;\n border-radius: var(--radius-full);\n background: var(--ink);\n color: var(--card-bg);\n font: 700 10px/1.2 var(--font-tab);\n letter-spacing: 0.08em;\n vertical-align: middle;\n}\n[data-vibe-menu] .vm-dot {\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border-radius: 50%;\n background: var(--ink);\n color: var(--card-bg);\n display: grid;\n place-items: center;\n flex: none;\n}\n[data-vibe-menu] button.vm-row:hover .vm-dot:not(.vm-app),\n[data-vibe-menu] .vm-row.is-hover .vm-dot:not(.vm-app) {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-row.is-quiet .vm-dot {\n background: transparent;\n color: var(--ink);\n box-shadow: inset 0 0 0 2px var(--line-card);\n}\n[data-vibe-menu] .vm-row[aria-disabled=\"true\"] {\n opacity: 0.35;\n cursor: default;\n}\n[data-vibe-menu] .vm-row[aria-disabled=\"true\"] .vm-dot {\n background: var(--ink) !important;\n color: var(--card-bg) !important;\n}\n[data-vibe-menu] .vm-app,\n[data-vibe-menu] .vm-initial {\n font: 700 12px/1 var(--font-tab);\n box-shadow: inset 0 0 0 2px var(--line-card);\n}\n[data-vibe-menu] .vm-app {\n background: var(--app);\n color: var(--menu-ink);\n}\n[data-vibe-menu] .vm-initial {\n background: transparent;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-chev {\n display: grid;\n color: var(--muted);\n transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n[data-vibe-menu] .vm-chev.is-open {\n transform: rotate(90deg);\n}\n[data-vibe-menu] .vm-count {\n font: 700 12px/1 var(--font-tab);\n letter-spacing: 0.08em;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-count.is-handle {\n max-width: 45%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n letter-spacing: 0.02em;\n}\n[data-vibe-menu] .vm-switch {\n position: relative;\n width: var(--size-switch-w);\n height: 20px;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-switch);\n flex: none;\n}\n[data-vibe-menu] .vm-switch::after {\n content: \"\";\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--ink);\n}\n[data-vibe-menu] .vm-switch.is-on {\n background: var(--accent);\n}\n[data-vibe-menu] .vm-switch.is-on::after {\n left: 18px;\n}\n\n/* ---------- BackRow and DoneButton: a drill-in's frame ---------- */\n[data-vibe-menu] .vm-back {\n display: flex;\n align-items: center;\n gap: var(--space-12);\n width: calc(100% + 2 * var(--space-16));\n height: var(--size-row-compact);\n margin: 0 calc(-1 * var(--space-16));\n padding: 0 var(--space-16);\n border-top: var(--stroke-rule) solid var(--line-card);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* A drill that replaces the whole card body (Share, Account) sits on the card's\n top edge, which the outline already draws: no rule, and it takes the body's\n top padding so no empty band shows above it (cards-hero.css .card-title + .h-back). */\n[data-vibe-menu] .vm-back.is-top {\n margin-top: calc(-1 * var(--space-14));\n border-top: 0;\n}\n[data-vibe-menu] .vm-back .vm-label {\n flex: none;\n}\n[data-vibe-menu] .vm-back-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font: 400 16px/1.1 var(--font-display);\n color: var(--muted);\n}\n[data-vibe-menu] .vm-back:hover .vm-dot,\n[data-vibe-menu] .vm-back.is-hover .vm-dot {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-drill {\n padding-top: var(--space-14);\n}\n[data-vibe-menu] .vm-drill-sec + .vm-drill-sec {\n margin-top: var(--space-14);\n}\n[data-vibe-menu] .vm-drill-line {\n margin: 0 0 var(--space-14);\n font: 700 18px/1.25 var(--font-display);\n letter-spacing: -0.01em;\n}\n[data-vibe-menu] .vm-done {\n display: block;\n width: 100%;\n height: var(--size-row-compact);\n margin-top: var(--space-16);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-done);\n background: var(--accent);\n color: var(--on-accent);\n text-align: center;\n font: 700 14px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-textbtn {\n display: block;\n width: 100%;\n height: 40px;\n margin-top: var(--space-4);\n text-align: center;\n font: 700 12px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-textbtn:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-faq {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-12);\n width: 100%;\n padding: var(--space-12) 0;\n font: 400 16px/1.3 var(--font-display);\n}\n[data-vibe-menu] .vm-faq + .vm-faq {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n\n/* ---------- MomentLine: the current moment ---------- */\n[data-vibe-menu] .vm-moments {\n display: flex;\n flex-direction: column;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-moment {\n margin: 0;\n font: 400 16px/1.3 var(--font-display);\n color: var(--ink);\n}\n[data-vibe-menu] .vm-moment.is-pinned {\n padding: var(--space-10) var(--space-12) var(--space-12) var(--space-14);\n border: var(--stroke-rule) solid var(--line-card);\n border-left: var(--size-band) solid var(--accent);\n border-radius: var(--radius-moment);\n}\n/* A primary pinned item's main action (#7782): the full-width pill, then its quiet second ways. */\n[data-vibe-menu] .vm-moment.is-pinned > .vm-ask + .vm-moment-actions {\n margin-top: var(--space-10);\n}\n[data-vibe-menu] .vm-moment-actions:empty {\n display: none;\n}\n[data-vibe-menu] .vm-moment-text {\n margin: 0 0 var(--space-10);\n text-wrap: pretty;\n}\n/* The credits wall as a next step (#8721): eyebrow, headline, the money pill and\n its statement line, a member's Auto top-up, then the balance as quiet facts. */\n[data-vibe-menu] .vm-moment.is-next-step > .vm-kicker {\n margin: 0 0 var(--space-4);\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-pay-note {\n margin: var(--space-8) 0 0;\n font-size: 11px;\n}\n/* #9291: the held Send under the card is the pill, so the statement line follows the words. */\n[data-vibe-menu] .vm-moment.is-next-step[data-pay-in-composer] > .vm-pay-note {\n margin-top: 0;\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-next-notice {\n margin: var(--space-8) 0 0;\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-moment-actions {\n margin-top: var(--space-10);\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-next-facts {\n margin: var(--space-12) 0 0;\n}\n/* A pinned heads-up (#6816): the summary line's muted voice, its action a text link. */\n[data-vibe-menu] .vm-moment.is-quiet {\n padding: 0 var(--space-2);\n font-size: 14px;\n color: var(--muted);\n text-wrap: pretty;\n}\n[data-vibe-menu] button.vm-moment-link {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-moment-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6);\n}\n[data-vibe-menu] .vm-moment-hint {\n font-size: 12px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-moment.is-progress,\n[data-vibe-menu] .vm-moment.is-summary {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n padding: 0 var(--space-2);\n}\n[data-vibe-menu] .vm-moment.is-summary {\n color: var(--muted);\n}\n[data-vibe-menu] .vm-moment.is-expander {\n width: 100%;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-moment.is-expander:hover {\n color: var(--ink);\n}\n/* The live line's link (the first build's real address, #6451 S9c): pointer\n events back on, since the layer takes no hits of its own. */\n[data-vibe-menu] .vm-moment-link {\n display: inline-block;\n margin: 0 var(--space-2);\n font: 400 14px/1.3 var(--font-display);\n color: var(--ink);\n text-decoration: underline;\n text-underline-offset: 3px;\n overflow-wrap: anywhere;\n pointer-events: auto;\n}\n[data-vibe-menu] .vm-live .vm-chev {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-log-clip {\n overflow: hidden;\n}\n/* Port addition (RULINGS R1): the log clip is always rendered (RECONCILE \u00A75c),\n so the base stylesheet owns its shut and open states. The shell's per-frame\n tween (T11) writes an inline height, which overrides these during motion.\n C's VIBE_MENU_SHELL_CSS does not repeat them. */\n[data-vibe-menu] .vm-log-clip[data-open=\"false\"] {\n height: 0;\n overflow: hidden;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"] {\n height: auto;\n /* Known adjustment (plan header): room for .vm-log's own 160px cap plus its\n 8px margin-top and two hairline borders, so the clip never scrolls on top\n of the log. */\n max-height: calc(var(--size-log-max, 160px) + var(--space-8) + 2 * var(--stroke-hairline));\n overflow: auto;\n /* Smoke F15: the shell's height tween makes the clip overflow for a moment;\n .vm-log scrolls itself, so the clip never shows a bar. */\n scrollbar-width: none;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"]::-webkit-scrollbar {\n display: none;\n}\n/* The peek (owner 2026-10-16): a send opens the fold about two lines high, the\n person's own words its last visible line, before the composer has cleared.\n The triangle stays folded; the peek is an invite (a tap, a wheel or a swipe in\n it opens the full log, MomentLine). Its column is bottom-aligned so the\n overflow falls off the top, and its inner scrollers cap at the same height\n so their bottom pin shows the newest line. Never part of the open\n [data-history] flex chain below. */\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] {\n height: auto;\n max-height: var(--size-log-peek);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n cursor: pointer;\n -webkit-mask-image: linear-gradient(to bottom, transparent, var(--ink) 14px);\n mask-image: linear-gradient(to bottom, transparent, var(--ink) 14px);\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] > * {\n flex: none;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-log,\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-agent-history {\n max-height: var(--size-log-peek);\n overflow-y: hidden;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-suggestions {\n display: none;\n}\n/* The fold over the full chat (slots.agentLog): the history caps and scrolls\n itself (AgentLogHistory's compact box), so the clip drops the flat log's cap. */\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"][data-history] {\n max-height: none;\n overflow: hidden;\n}\n[data-vibe-menu] .vm-log-history {\n margin-top: var(--space-8);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* One scroller: the tab-row card with the full chat open. The history's own\n cap (AgentLogHistory's compact box) knows nothing of what else the card\n holds, and the first build's request headline can take a third of it: the\n card then overflowed and scrolled too, the composer slid under the row, and\n the chat's end was out of reach. Here the card is a column whose fold gives\n up exactly what the card lacks, so the history scrolls and the card never\n does. Everything else in the card keeps its own height. */\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history]) {\n display: flex;\n flex-direction: column;\n}\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history])::before {\n flex: none;\n}\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history]) .vm-card-body,\n[data-vibe-menu] .vm-ctab:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-moments:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-live:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history],\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history] .vm-log-history {\n display: flex;\n flex-direction: column;\n flex: 0 1 auto;\n min-height: 0;\n}\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history] .vm-log-history > * {\n min-height: 0;\n}\n[data-vibe-menu] .vm-ctab:has(.vm-log-clip[data-open=\"true\"][data-history]) > :not(.vm-moments),\n[data-vibe-menu] .vm-ctab .vm-live:has(.vm-log-clip[data-open=\"true\"][data-history]) > :not(.vm-log-clip) {\n flex-shrink: 0;\n}\n[data-vibe-menu] .vm-agent-history-tail {\n padding: var(--space-10) 4px var(--space-14) var(--space-24);\n}\n/* Suggestions at the end of the chat: wrapped inline links, not chips. */\n[data-vibe-menu] .vm-suggestions.is-inline {\n gap: var(--space-6) var(--space-14);\n margin-bottom: 0;\n}\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest {\n min-height: 0;\n padding: 0;\n border: none;\n border-radius: 0;\n background: none;\n text-decoration: underline;\n text-decoration-color: var(--suggest-border);\n text-decoration-thickness: 1px;\n text-underline-offset: 3px;\n}\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest:hover,\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest.is-hover,\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest.is-gold {\n background: none;\n text-decoration-color: currentColor;\n}\n[data-vibe-menu] .vm-log {\n max-height: var(--size-log-max);\n overflow-y: auto;\n overscroll-behavior: contain;\n display: flex;\n flex-direction: column;\n gap: var(--space-6);\n margin-top: var(--space-8);\n padding: var(--space-10) 4px var(--space-10) var(--space-24);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n font-size: 13.5px;\n line-height: 1.35;\n}\n[data-vibe-menu] .vm-log-line {\n margin: 0;\n}\n[data-vibe-menu] .vm-log-line:first-child {\n margin-top: auto;\n}\n[data-vibe-menu] .vm-log-line b {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--muted);\n margin-right: 4px;\n}\n\n/* ---------- AccessToggle: Restricted | Public and its line ---------- */\n[data-vibe-menu] .vm-access {\n display: flex;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n}\n[data-vibe-menu] .vm-access button {\n flex: 1;\n height: var(--size-bar);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--space-10);\n text-align: center;\n font: 700 24px/1 var(--font-display);\n letter-spacing: -0.02em;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-access button + button {\n border-left: var(--stroke-rule) solid var(--line-card);\n}\n[data-vibe-menu] .vm-access button.is-active {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-access button:not(.is-active):hover {\n background: color-mix(in srgb, var(--accent) 20%, transparent);\n}\n/* Settings still loading (preflight ruling P14): dimmed and inert. */\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] {\n opacity: var(--opacity-row-disabled);\n}\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] button {\n cursor: default;\n}\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] button:not(.is-active):hover {\n background: transparent;\n}\n[data-vibe-menu] .vm-access-line {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n min-height: var(--size-access-line);\n margin: var(--space-10) 0 var(--space-12);\n padding: var(--space-6) var(--space-6) var(--space-6) var(--space-14);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-access-line);\n background: var(--share-tint);\n font-size: 16.5px;\n line-height: 1.25;\n}\n[data-vibe-menu] .vm-access-line > span {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-access-line .vm-glyph {\n width: 16px;\n height: 16px;\n}\n[data-vibe-menu] .vm-publish {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n padding: 5px 5px 5px var(--space-10);\n border: var(--stroke-rule) solid var(--line-card);\n border-left: var(--size-band) solid var(--accent);\n border-radius: var(--radius-moment);\n}\n[data-vibe-menu] .vm-publish b {\n font: 700 11px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n[data-vibe-menu] .vm-publish span {\n flex: 1;\n min-width: 0;\n font-size: 13px;\n line-height: 1.25;\n color: var(--muted);\n}\n\n/* ---------- GrantControls ---------- */\n[data-vibe-menu] .vm-seg {\n display: flex;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n}\n[data-vibe-menu] .vm-seg button {\n flex: 1;\n height: var(--size-segment);\n text-align: center;\n font-size: 11px;\n}\n[data-vibe-menu] .vm-seg button + button {\n border-left: var(--stroke-rule) solid var(--line-card);\n}\n[data-vibe-menu] .vm-seg button.is-active {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-seg.is-mini {\n margin: 0;\n border-width: var(--stroke-mini);\n}\n[data-vibe-menu] .vm-seg.is-mini button {\n flex: none;\n height: var(--size-segment-mini);\n padding: 0 var(--space-8);\n font-size: 10px;\n}\n[data-vibe-menu] .vm-seg.is-mini button + button {\n border-left-width: var(--stroke-mini);\n}\n[data-vibe-menu] .vm-grants {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6) var(--space-12);\n}\n[data-vibe-menu] .vm-grant-ctl {\n display: flex;\n align-items: center;\n gap: 5px;\n}\n[data-vibe-menu] .vm-grant-name {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.12em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-grant-fixed {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--ink);\n}\n\n/* ---------- MemberRow ---------- */\n[data-vibe-menu] .vm-input {\n width: 100%;\n height: var(--size-input);\n margin-bottom: var(--space-14);\n padding: 0 var(--space-18);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-input);\n background: transparent;\n color: var(--ink);\n font: inherit;\n}\n[data-vibe-menu] .vm-members-head {\n margin-top: 0;\n padding: 2px 0 var(--space-8);\n}\n[data-vibe-menu] .vm-members-head + .vm-input,\n[data-vibe-menu] .vm-members-head + .vm-invite .vm-input {\n height: 40px;\n margin-bottom: var(--space-8);\n}\n/* The invite field's handle typeahead (HandleLookupView): its dropdown wears\n the menu's own tokens in both themes, over the view's inline defaults. */\n[data-vibe-menu] .vm-invite [role=\"listbox\"] {\n background: var(--card-bg) !important;\n border: var(--stroke-rule) solid var(--line-card) !important;\n color: var(--ink) !important;\n}\n[data-vibe-menu] .vm-invite [role=\"option\"] {\n color: var(--ink) !important;\n font: inherit;\n}\n[data-vibe-menu] .vm-invite [role=\"option\"][aria-selected=\"true\"] {\n background: color-mix(in srgb, var(--ink) 10%, transparent) !important;\n}\n[data-vibe-menu] .vm-person {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-8) var(--space-12);\n padding: var(--space-6) 0;\n}\n[data-vibe-menu] .vm-person + .vm-person {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-person .vm-label {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-request {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-8) var(--space-12);\n margin-bottom: 2px;\n padding: var(--space-10) var(--space-12);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-card);\n background: var(--share-tint-strong);\n}\n[data-vibe-menu] .vm-request-top {\n flex: 1 0 auto;\n}\n[data-vibe-menu] .vm-request-actions {\n display: flex;\n gap: var(--space-6);\n margin-left: auto;\n}\n[data-vibe-menu] .vm-who-block > .vm-row {\n width: calc(100% + 2 * var(--space-16));\n margin: 2px calc(-1 * var(--space-16)) 0;\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-narrow .vm-person .vm-grants,\n[data-vibe-menu] .vm-narrow .vm-request-top {\n flex-basis: 100%;\n}\n[data-vibe-menu] .vm-narrow .vm-person .vm-grants,\n[data-vibe-menu] .vm-narrow .vm-request .vm-grants {\n column-gap: var(--space-10);\n}\n/* stacking, as the prototype: card < bar < outline < glass and pill */\n[data-vibe-menu] .vm-frame .vm-card {\n z-index: 1;\n}\n[data-vibe-menu] .vm-frame .vm-strip {\n z-index: 2;\n}\n[data-vibe-menu] .vm-frame .vm-outline {\n z-index: 3;\n}\n[data-vibe-menu] .vm-frame .vm-glass {\n z-index: 4;\n}\n[data-vibe-menu] .vm-refresh {\n display: grid;\n place-items: center;\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: 50%;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-refresh:hover {\n background: var(--accent);\n color: var(--on-accent);\n}\n\n/* ---------- port additions: not in bundle.css ---------- */\n/* Sign-in providers (the inline sign-up drill): each brand's own mark on a\n white disc, so the logo reads the way its owner draws it on any card theme. */\n[data-vibe-menu] .vm-providers {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-14);\n margin-bottom: var(--space-4);\n}\n[data-vibe-menu] .vm-provider {\n position: relative;\n display: grid;\n place-items: center;\n width: 48px;\n height: 48px;\n padding: 0;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: 50%;\n background: var(--provider-disc);\n color: var(--provider-ink);\n cursor: pointer;\n flex: none;\n}\n[data-vibe-menu] .vm-provider svg {\n width: 22px;\n height: 22px;\n}\n[data-vibe-menu] .vm-provider[aria-disabled=\"true\"] {\n opacity: var(--opacity-row-disabled);\n cursor: default;\n}\n[data-vibe-menu] .vm-provider.is-pending {\n opacity: 1;\n animation: vm-provider-pulse 1.2s ease-in-out infinite;\n}\n[data-vibe-menu] .vm-provider-tag {\n position: absolute;\n top: -8px;\n left: 50%;\n transform: translateX(-50%);\n padding: 1px 6px;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n background: var(--accent);\n color: var(--on-accent);\n font-size: 8px;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-provider-status {\n display: flex;\n align-items: center;\n gap: var(--space-16);\n margin: var(--space-4) 0 var(--space-14) var(--space-4);\n}\n[data-vibe-menu] .vm-provider-status > div {\n min-width: 0;\n}\n/* The way back out of a provider that is opening: BackRow's dot and label,\n inline in the drill body rather than across the card's top edge. */\n[data-vibe-menu] .vm-back.is-inline {\n width: auto;\n height: var(--size-icon-circle);\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--ink);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-provider-status .vm-sub {\n margin: 0;\n}\n/* A switch the platform just flipped for the owner (a Pro checkout from the\n remix switch): lit for a moment so the change reads where it happened. */\n[data-vibe-menu] .vm-group.is-just-flipped {\n border-radius: var(--radius-card);\n animation: vm-just-flipped 1.2s ease-in-out 3;\n}\n@keyframes vm-just-flipped {\n 50% {\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-group.is-just-flipped {\n animation: none;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);\n }\n}\n@keyframes vm-provider-pulse {\n 50% {\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-provider.is-pending {\n animation: none;\n }\n}\n/* Rows and the action pill can be links (Home's rows, the credits action). */\n[data-vibe-menu] :where(a.vm-row, a.vm-ask) {\n color: inherit;\n text-decoration: none;\n}\n[data-vibe-menu] a.vm-row:hover .vm-dot:not(.vm-app) {\n background: var(--accent);\n color: var(--on-accent);\n}\n/* A member's name drills into that member (spec \u00A78). */\n[data-vibe-menu] .vm-person button.vm-label {\n text-align: left;\n}\n[data-vibe-menu] .vm-chip[aria-disabled=\"true\"],\n[data-vibe-menu] .vm-cap:disabled,\n[data-vibe-menu] .vm-composer .vm-attach:disabled {\n opacity: var(--opacity-row-disabled);\n cursor: default;\n}\n/* Staged attachments above the composer: name chips, no emoji. */\n[data-vibe-menu] .vm-attachments {\n margin-bottom: var(--space-8);\n}\n[data-vibe-menu] .vm-attachments .vm-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--space-6);\n max-width: 220px;\n}\n[data-vibe-menu] .vm-attachments .vm-chip > span:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-attachments .vm-chip[data-status=\"error\"] {\n border-color: var(--section-account);\n}\n/* The one left-out sentence after a pick past the cap (#7622): the queue\n note's voice, tucked under the chips it talks about. */\n[data-vibe-menu] .vm-attach-note {\n margin: -2px 0 10px 4px;\n font-size: 12px;\n line-height: 1.4;\n color: var(--muted);\n}\n/* A suggestion's fast-path marks (RULINGS O4, production #2917 decorateChip).\n Siblings of .vm-suggest, since a button can't nest a button. The owner's\n toggle (FastPathToggle) is outline when not blessed, filled when blessed\n (aria-pressed); the badges are the marks every viewer sees. */\n[data-vibe-menu] .vm-suggest-item {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n max-width: 100%;\n min-width: 0;\n}\n[data-vibe-menu] .vm-suggest-item > * {\n flex: none;\n}\n[data-vibe-menu] .vm-suggest-item > .vm-suggest {\n flex: 0 1 auto;\n}\n[data-vibe-menu] .vm-suggest-shield {\n width: var(--size-chip);\n height: var(--size-chip);\n display: inline-grid;\n place-items: center;\n border-radius: var(--radius-full);\n background: none;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-suggest-shield:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-shield[aria-pressed=\"true\"] {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-shield[aria-pressed=\"true\"] .vm-glyph {\n fill: currentColor;\n}\n/* The non-interactive marks every viewer sees (production ChipShieldBadge,\n ChipJumpBadge): a filled shield (\"stays in this app\", server-authoritative)\n or an arrow (\"opens another app\"). Never both on one chip. */\n[data-vibe-menu] .vm-suggest-badge {\n width: var(--size-chip);\n height: var(--size-chip);\n display: inline-grid;\n place-items: center;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-badge.is-shield .vm-glyph {\n fill: currentColor;\n}\n[data-vibe-menu] .vm-suggest-badge.is-jump {\n color: var(--muted);\n}\n\n/* ---------- phones (cards-hero.css): the menu's width, not the viewport ---------- */\n@container vibe-menu (max-width: 480px) {\n [data-vibe-menu] .vm-ask {\n font-size: 18px;\n }\n /* the field keeps 16px (iOS zooms smaller fields); attach slims instead */\n [data-vibe-menu] .vm-composer textarea {\n margin-right: var(--space-6);\n font-size: 16px;\n }\n [data-vibe-menu] .vm-composer .vm-attach {\n margin-left: 4px;\n width: 28px;\n }\n [data-vibe-menu] .vm-cap {\n padding: 0 var(--space-18) 0 var(--space-14);\n }\n [data-vibe-menu] .vm-access button {\n font-size: 21px;\n }\n /* the access line keeps its sentence to two lines beside the chip */\n [data-vibe-menu] .vm-access-line {\n padding-left: 12px;\n gap: 8px;\n font-size: 15.5px;\n }\n [data-vibe-menu] .vm-access-line .vm-chip.vm-copy {\n padding: 0 10px;\n }\n /* Data and Code drop under the handle on one line (two on the narrowest) */\n [data-vibe-menu] .vm-person .vm-grants {\n flex-basis: 100%;\n column-gap: var(--space-10);\n }\n [data-vibe-menu] .vm-request .vm-grants {\n column-gap: var(--space-10);\n }\n [data-vibe-menu] .vm-request-top {\n flex-basis: 100%;\n }\n [data-vibe-menu] .vm-input {\n font-size: 16px;\n }\n}\n@container vibe-menu (max-width: 359px) {\n [data-vibe-menu] .vm-access button {\n font-size: 19px;\n }\n /* the line drops its icon here: the enclosure already marks it */\n [data-vibe-menu] .vm-access-line > .vm-glyph {\n display: none;\n }\n [data-vibe-menu] .vm-access-line {\n margin: 8px 0 10px;\n font-size: 14.5px;\n }\n [data-vibe-menu] .vm-access-line .vm-chip.vm-copy {\n padding: 0 8px;\n }\n /* the cap and attach slim so the field keeps room (REMIX THIS stays one line) */\n [data-vibe-menu] .vm-cap {\n padding: 0 13px 0 10px;\n letter-spacing: 0.05em;\n }\n [data-vibe-menu] .vm-composer .vm-attach {\n margin-left: 3px;\n width: 24px;\n }\n /* 16px, not the prototype's 14px: no text field under 16px on phones (spec \u00A74.5) */\n [data-vibe-menu] .vm-composer textarea {\n margin: 0 4px 0 0;\n font-size: 16px;\n }\n [data-vibe-menu] .vm-chip.vm-copy {\n padding: 0 10px;\n letter-spacing: 0.06em;\n }\n}\n";
|
|
4
|
+
export declare const VIBE_MENU_CSS = "\n/* ---------- tokens (tokens.json), light, then both dark arms ----------\n Detached layers (portalled out of the menu root) carry\n data-vibe-menu-detached, so every token block lists them too. */\n[data-vibe-menu],\n[data-vibe-menu-detached] {\n color-scheme: light;\n --section-home: oklch(76.02% 0.1832 146.61);\n --section-account: oklch(57.46% 0.2126 29.55);\n --section-code: oklch(89.78% 0.1857 98.22);\n --section-share: oklch(64.39% 0.1304 231.41);\n --vibes-black: #000000;\n --vibes-cream: #fffff0;\n --menu-ink: #1a1a1a;\n --card-bg: var(--vibes-cream);\n --ink: #111111;\n --muted: #555555;\n --line: #111111;\n --line-card: #111111;\n --line-hairline: #1111112e;\n --placeholder: var(--muted);\n --suggest-border: #11111173;\n --share-tint: #009ace1f;\n --share-tint-strong: #009ace40;\n --on-home: var(--menu-ink);\n --on-account: var(--vibes-cream);\n --on-code: var(--menu-ink);\n --on-share: var(--menu-ink);\n --badge: var(--section-account);\n --on-badge: var(--vibes-cream);\n --cancel-cap: #f3d6d2;\n --on-cancel-cap: #9c2318;\n --obsidian-fill: rgba(6, 9, 10, 0.94);\n --obsidian-edge: rgba(255, 255, 255, 0.17);\n --obsidian-highlight: rgba(255, 255, 255, 0.32);\n --obsidian-rim: rgba(255, 255, 255, 0.1);\n --font-display: \"Alte Haas Grotesk\", Inter, sans-serif;\n --font-tab: Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif;\n --space-9: 9px;\n --space-2: 2px;\n --space-4: 4px;\n --space-6: 6px;\n --space-8: 8px;\n --space-10: 10px;\n --space-12: 12px;\n --space-14: 14px;\n --space-16: 16px;\n --space-18: 18px;\n --space-24: 24px;\n --radius-card: 16px;\n --radius-full: 999px;\n --radius-bar-end: 25px;\n --radius-access-line: 24px;\n --radius-input: 22px;\n --radius-done: 21px;\n --radius-copy: 18px;\n --radius-chip: 14px;\n --radius-moment: 12px;\n --radius-switch: 10px;\n --radius-meter: 7px;\n --obsidian-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 0 0 12px rgba(255, 255, 255, 0.02);\n --swatch-selected: 0 0 0 2px #fffff0, 0 0 0 4px #111111;\n --stroke-rule: 2px;\n --stroke-hairline: 1px;\n --stroke-mini: 1.5px;\n --stroke-focus: 3px;\n --stroke-glyph: 2.4px;\n --size-icon-circle: 28px;\n --size-icon-circle-phone: 22px;\n --size-glyph: 14px;\n --size-glyph-cta: 20px;\n --size-bar: 50px;\n --size-tab: 176px;\n --size-home-extra: 14px;\n --size-bar-end: 63px;\n --size-pill-w: 120px;\n --size-pill-h: 44px;\n --size-ring: 3px;\n --size-edge: 24px;\n --size-edge-phone: 16px;\n --size-pill-flat-inset: 19px;\n --size-band: 8px;\n --size-row: 46px;\n --size-row-compact: 42px;\n --size-chip: 28px;\n --size-copy: 36px;\n --size-input: 44px;\n --size-composer: 48px;\n --size-access-line: 48px;\n --size-segment: 32px;\n --size-segment-mini: 24px;\n --size-switch-w: 36px;\n --size-meter: 14px;\n --size-card-max: 480px;\n --size-card-max-phone: 560px;\n --size-log-max: 160px;\n --size-log-peek: 120px;\n --size-code-mode-max-w: 1200px;\n --opacity-tab-inactive: 0.73;\n --opacity-row-disabled: 0.35;\n --provider-disc: #ffffff;\n --provider-ink: #111111;\n}\n@media (prefers-color-scheme: dark) {\n [data-vibe-menu],\n [data-vibe-menu-detached] {\n color-scheme: dark;\n --card-bg: #1a1a1a;\n --ink: #e0e0e0;\n --muted: #a3a3a3;\n --line-card: #e0e0e0;\n --line-hairline: #e0e0e02e;\n --suggest-border: #e0e0e073;\n --cancel-cap: #4a2420;\n --on-cancel-cap: #f1b5ad;\n --swatch-selected: 0 0 0 2px #1a1a1a, 0 0 0 4px #e0e0e0;\n }\n}\n.dark [data-vibe-menu],\n.dark [data-vibe-menu-detached] {\n color-scheme: dark;\n --card-bg: #1a1a1a;\n --ink: #e0e0e0;\n --muted: #a3a3a3;\n --line-card: #e0e0e0;\n --line-hairline: #e0e0e02e;\n --suggest-border: #e0e0e073;\n --cancel-cap: #4a2420;\n --on-cancel-cap: #f1b5ad;\n --swatch-selected: 0 0 0 2px #1a1a1a, 0 0 0 4px #e0e0e0;\n}\n\n/* ---------- the root: the phone container ---------- */\n[data-vibe-menu] {\n container-name: vibe-menu;\n container-type: inline-size;\n color: var(--ink);\n font-family: var(--font-display);\n}\n\n/* Scrollbars (smoke F15): thin, in the menu's hairline, both themes, never the\n native dark bar inside the cream card. The colour is set on the root AND\n every descendant, for every scroller the menu hosts (drills, the Embed box,\n injected panels): the app's global sheet sets scrollbar-color on *, which\n beats a colour only inherited from the root. The width rule has zero\n specificity so a part that hides its bar (the Code mode tab strip) still\n wins. The webkit arm is for engines without the standard properties; Chrome\n ignores it once they are set. */\n[data-vibe-menu],\n[data-vibe-menu] *,\n[data-vibe-menu-detached],\n[data-vibe-menu-detached] * {\n scrollbar-color: var(--line-hairline) transparent;\n}\n:where([data-vibe-menu]),\n:where([data-vibe-menu]) :where(*) {\n scrollbar-width: thin;\n}\n:where([data-vibe-menu]) ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background: transparent;\n}\n:where([data-vibe-menu]) ::-webkit-scrollbar-thumb {\n border-radius: var(--radius-full);\n background: var(--line-hairline);\n}\n\n/* A section is set by data-section on any ancestor (or the root), using the\n code keys: home | settings (Account) | vibe (Code) | share. It sets --accent\n (the section colour) and --on-accent (its label colour). */\n[data-vibe-menu][data-section=\"home\"],\n[data-vibe-menu] [data-section=\"home\"] {\n --accent: var(--section-home);\n --on-accent: var(--on-home);\n}\n[data-vibe-menu][data-section=\"settings\"],\n[data-vibe-menu] [data-section=\"settings\"] {\n --accent: var(--section-account);\n --on-accent: var(--on-account);\n}\n[data-vibe-menu][data-section=\"vibe\"],\n[data-vibe-menu] [data-section=\"vibe\"] {\n --accent: var(--section-code);\n --on-accent: var(--on-code);\n}\n[data-vibe-menu][data-section=\"share\"],\n[data-vibe-menu] [data-section=\"share\"] {\n --accent: var(--section-share);\n --on-accent: var(--on-share);\n}\n\n[data-vibe-menu],\n[data-vibe-menu] * {\n box-sizing: border-box;\n}\n/* the card's surface and side padding, so rows can bleed edge to edge */\n[data-vibe-menu] .vm-card-body {\n position: relative;\n padding: var(--space-14) var(--space-16) var(--space-16);\n background: var(--card-bg);\n color: var(--ink);\n font: 400 14px/20px var(--font-display);\n}\n[data-vibe-menu] .vm-card-body.is-framed {\n border: var(--stroke-rule) solid var(--line);\n border-radius: var(--radius-card) var(--radius-card) 0 0;\n overflow: hidden;\n}\n\n/* ---------- shared ---------- */\n/* Zero specificity: every vm-* rule wins over it, and so does any utility\n class on content a host injects into the card (slots). */\n:where([data-vibe-menu]) :where(button) {\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n padding: 0;\n cursor: pointer;\n text-align: left;\n touch-action: manipulation;\n}\n[data-vibe-menu] .vm-glyph {\n width: var(--size-glyph);\n height: var(--size-glyph);\n fill: none;\n stroke: currentColor;\n stroke-width: var(--stroke-glyph);\n stroke-linecap: round;\n stroke-linejoin: round;\n flex: none;\n}\n[data-vibe-menu] .vm-label,\n[data-vibe-menu] .vm-seg button,\n[data-vibe-menu] .vm-chip {\n font: 700 14px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n}\n[data-vibe-menu] .vm-label.is-plain {\n font: 700 16px/1.1 var(--font-display);\n letter-spacing: 0;\n text-transform: none;\n}\n[data-vibe-menu] .vm-kicker,\n[data-vibe-menu] .vm-subhead {\n margin: 0 0 var(--space-8);\n font: 700 10.5px/1.3 var(--font-tab);\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-subhead {\n margin: var(--space-16) 0 0;\n padding-bottom: var(--space-8);\n}\n[data-vibe-menu] .vm-sub {\n margin: var(--space-8) 0 var(--space-14);\n font-size: 13px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-app-name {\n white-space: nowrap;\n}\n/* ---------- SectionStrip: the bar ---------- */\n[data-vibe-menu] .vm-menu {\n position: relative;\n}\n[data-vibe-menu] .vm-strip {\n position: relative;\n width: calc(var(--size-tab) * 4 + var(--size-home-extra) + var(--size-bar-end) + 2px);\n height: var(--size-bar);\n}\n[data-vibe-menu] .vm-strip-slide {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: flex-end;\n border: var(--stroke-rule) solid var(--line);\n border-right: 0;\n border-radius: var(--bar-tl, var(--radius-bar-end)) 0 0 var(--radius-bar-end);\n overflow: hidden;\n background: var(--card-bg);\n /* #7329: the bar under the switch belongs to no tab's box. */\n padding-right: var(--size-bar-end);\n}\n[data-vibe-menu] .vm-tab {\n position: relative;\n width: var(--size-tab);\n flex: none;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n border: 0;\n padding: 0 0 0 var(--space-9);\n cursor: pointer;\n background: var(--accent);\n}\n[data-vibe-menu] .vm-tab-circle {\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border-radius: 50%;\n background: var(--menu-ink);\n display: flex;\n align-items: center;\n justify-content: center;\n flex: none;\n}\n[data-vibe-menu] .vm-tab svg {\n width: calc(var(--size-icon-circle) / 2);\n height: calc(var(--size-icon-circle) / 2);\n fill: none;\n stroke: var(--vibes-cream);\n stroke-width: 2.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n flex: none;\n}\n[data-vibe-menu] .vm-tab-label {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 0 0 1.9px;\n font-family: var(--font-tab);\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 1.9px;\n text-transform: uppercase;\n white-space: nowrap;\n pointer-events: none;\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-tab[data-section=\"home\"] {\n width: calc(var(--size-tab) + var(--size-home-extra));\n padding-left: calc(var(--space-9) + var(--size-home-extra) / 2);\n}\n[data-vibe-menu] .vm-tab[data-section=\"home\"] .vm-tab-label {\n left: calc(var(--size-home-extra) / 2);\n}\n/* #7329: Share's box ends where the switch begins; its colour runs on under\n the pill as a child painted beyond the box. */\n[data-vibe-menu] .vm-tab-run {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 100%;\n width: var(--size-bar-end);\n background: inherit;\n}\n[data-vibe-menu] .vm-tab:focus-visible {\n outline: var(--stroke-focus) solid var(--line);\n outline-offset: -3px;\n}\n/* Port change (smoke F5): the DS inset line ring vanished on the black pill\n and drew square corners. The pill's ring is cream, sits in the obsidian\n glass's 3px rim (offset 0), and follows the stadium (the pill's radius). */\n[data-vibe-menu] .vm-pill:focus-visible {\n outline: var(--stroke-focus) solid var(--vibes-cream);\n outline-offset: 0;\n}\n[data-vibe-menu] .vm-menu.has-card .vm-tab:not(.is-active) {\n opacity: var(--opacity-tab-inactive);\n}\n[data-vibe-menu] .vm-badge {\n position: absolute;\n top: -4px;\n right: 6px;\n min-width: 18px;\n height: 18px;\n padding: 0 5px;\n border-radius: var(--radius-full);\n background: var(--badge);\n color: var(--on-badge);\n font: 700 11px/18px var(--font-display);\n text-align: center;\n}\n/* the bar sits against the pill: it runs half the glass under it */\n[data-vibe-menu] .vm-bar-anchor {\n position: relative;\n height: var(--size-bar);\n}\n[data-vibe-menu] .vm-bar-anchor .vm-strip {\n position: absolute;\n left: 0;\n bottom: 0;\n}\n[data-vibe-menu] .vm-bar-anchor .vm-glass {\n position: absolute;\n right: 0;\n bottom: 0;\n}\n/* phones: the bar spans the width; tabs sized to their content, icon above label */\n[data-vibe-menu] .vm-strip.is-phone {\n width: 100%;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab {\n width: auto;\n flex: 1 1 auto;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--space-2);\n min-width: 0;\n padding: 4px 2px;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab-circle {\n width: var(--size-icon-circle-phone);\n height: var(--size-icon-circle-phone);\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab svg {\n width: 12px;\n height: 12px;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab[data-section=\"home\"] {\n padding: 4px 2px 4px calc(2px + var(--size-home-extra) * 0.7);\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab[data-section=\"share\"] {\n flex-grow: 1;\n}\n[data-vibe-menu] .vm-strip.is-phone .vm-tab-label {\n position: static;\n display: block;\n font-size: 9.6px;\n letter-spacing: 1px;\n padding: 0 0 0 1px;\n}\n\n/* ---------- VibesSwitch: the pill in its obsidian glass ---------- */\n[data-vibe-menu] .vm-glass {\n position: relative;\n width: calc(var(--size-pill-w) + 2 * var(--size-ring));\n height: calc(var(--size-pill-h) + 2 * var(--size-ring));\n border-radius: var(--radius-full);\n flex: none;\n background:\n linear-gradient(to right, transparent, var(--obsidian-highlight), transparent) top / 100% 1px no-repeat,\n linear-gradient(to bottom, var(--obsidian-highlight), transparent, var(--obsidian-edge)) left / 1px 100% no-repeat,\n var(--obsidian-fill);\n box-shadow: var(--obsidian-shadow);\n}\n[data-vibe-menu] .vm-pill {\n position: absolute;\n left: var(--size-ring);\n top: var(--size-ring);\n width: var(--size-pill-w);\n height: var(--size-pill-h);\n padding: 0;\n border: 0;\n border-radius: var(--radius-full);\n background: none;\n cursor: pointer;\n}\n/* Touching, holding or dragging on the switch never selects text, raises the\n iOS callout and magnifier, or drags an image (owner 2026-10-16). The letters\n are paths drawn twice, the second copy clipped to the knob: both sit under\n .vm-pill, so the descendant rule covers them. */\n[data-vibe-menu] .vm-glass,\n[data-vibe-menu] .vm-pill,\n[data-vibe-menu] .vm-pill * {\n -webkit-user-select: none;\n user-select: none;\n -webkit-touch-callout: none;\n}\n/* A held press slides the knob 3/4 of the way and waits (owner 2026-10-16).\n An overshooting spring would carry it past 3/4, so the held leg eases out\n with no overshoot; the release finishes on the host's own curve. */\n[data-vibe-menu] .vm-pill[data-progress=\"0.75\"] {\n --vibes-switch-slide: 0.4s cubic-bezier(0.22, 1, 0.36, 1);\n}\n/* Reduced motion: the switch jumps between poses. Its paths carry inline\n transitions (the knob's d and 3px nudge, the letters' fills and on-knob clip), so\n only an !important rule here stops every leg, not just the d slide. */\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-pill {\n --vibes-switch-slide: 0s;\n }\n [data-vibe-menu] .vm-pill svg path {\n transition: none !important;\n }\n}\n[data-vibe-menu] .vm-switch-art {\n width: 100%;\n height: 100%;\n display: block;\n}\n[data-vibe-menu] .vm-pill .vm-badge {\n top: -6px;\n right: 4px;\n}\n/* #7079: the guest maker's save-time ask: a dot, not a count. */\n[data-vibe-menu] .vm-badge.is-dot {\n min-width: 10px;\n width: 10px;\n height: 10px;\n padding: 0;\n}\n[data-vibe-menu] .vm-chiclet {\n display: inline-block;\n padding: 2px 8px;\n border-radius: var(--radius-full);\n background: var(--section-code);\n /* Port change: bundle.css writes #111111 (ink); text on a section colour is\n menu-ink (Global Constraints), which --on-code resolves to in both themes. */\n color: var(--on-code);\n font: 700 11px/18px var(--font-display);\n letter-spacing: 0.06em;\n}\n/* #4291. The chiclet's shape, so the two read as one row \u2014 but in the badge\n colour (the identity lane) so elevation never looks like a publish state. */\n[data-vibe-menu] .vm-admin-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: var(--radius-full);\n background: var(--badge);\n color: var(--on-badge);\n font: 700 11px/18px var(--font-display);\n letter-spacing: 0.06em;\n}\n\n/* ---------- MenuCard: the card, its band and the folder-tab join, drawn once ---------- */\n[data-vibe-menu] .vm-frame {\n position: relative;\n}\n[data-vibe-menu] .vm-frame .vm-card {\n position: absolute;\n left: 0;\n top: 0;\n background: var(--card-bg);\n color: var(--ink);\n overflow: hidden;\n border-radius: var(--radius-card) var(--radius-card) 0 0;\n}\n[data-vibe-menu] .vm-frame .vm-card .vm-card-body {\n padding-bottom: calc(var(--space-16) + var(--size-band));\n}\n[data-vibe-menu] .vm-outline {\n position: absolute;\n left: 0;\n top: 0;\n overflow: visible;\n pointer-events: none;\n}\n[data-vibe-menu] .vm-outline .vm-band,\n[data-vibe-menu] .vm-outline .vm-cover {\n fill: var(--accent);\n}\n[data-vibe-menu] .vm-outline .vm-edge {\n fill: none;\n stroke: var(--line);\n stroke-width: 2;\n stroke-linejoin: miter;\n}\n\n/* ---------- ActionPill: the card's one main action ---------- */\n[data-vibe-menu] .vm-ask {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-12);\n width: 100%;\n padding: var(--space-14) var(--space-18);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n background: var(--accent);\n color: var(--on-accent);\n font: 700 21px/1 var(--font-display);\n letter-spacing: -0.02em;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-ask.is-solo {\n margin-bottom: var(--space-14);\n}\n[data-vibe-menu] .vm-ask .vm-glyph {\n width: var(--size-glyph-cta);\n height: var(--size-glyph-cta);\n transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n[data-vibe-menu] .vm-ask:hover .vm-glyph {\n transform: translateX(4px);\n}\n[data-vibe-menu] .vm-ask.is-phone {\n font-size: 18px;\n}\n[data-vibe-menu] .vm-sub:has(.vm-copy) {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-sub:has(.vm-copy) > span {\n flex: 1;\n}\n\n/* ---------- Chip ---------- */\n[data-vibe-menu] .vm-chip {\n height: var(--size-chip);\n padding: 0 var(--space-12);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-chip);\n background: var(--accent);\n color: var(--on-accent);\n font-size: 11px;\n flex: none;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-chip.is-ghost {\n background: transparent;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-chip.is-name {\n font: 700 14px/1 var(--font-display);\n letter-spacing: 0;\n text-transform: none;\n}\n[data-vibe-menu] .vm-chip.vm-copy {\n height: var(--size-copy);\n padding: 0 var(--space-14);\n border-radius: var(--radius-copy);\n flex-shrink: 0;\n align-self: center;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-suggestions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-6);\n}\n/* Port change (smoke F9): codegen writes long chips, so a chip wraps inside\n the card (DS \"text that can outgrow its track wraps\") instead of running\n past its edge; a one-line chip keeps the 28px chip height. */\n[data-vibe-menu] .vm-suggest {\n min-height: var(--size-chip);\n max-width: 100%;\n min-width: 0;\n padding: var(--space-2) var(--space-12);\n text-align: left;\n overflow-wrap: anywhere;\n border: var(--stroke-mini) solid var(--suggest-border);\n border-radius: var(--radius-chip);\n background: none;\n color: var(--ink);\n font: 400 13px/20px var(--font-display);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-suggest:hover,\n[data-vibe-menu] .vm-suggest.is-hover,\n[data-vibe-menu] .vm-suggest[aria-busy=\"true\"] {\n border-color: var(--line-card);\n background: color-mix(in srgb, var(--accent) 35%, transparent);\n}\n/* A pressed chip holds the row while its answer is on the way (a lookup, a\n fork): it stays lit, and the row takes no second press. */\n[data-vibe-menu] .vm-suggest:disabled {\n cursor: default;\n}\n[data-vibe-menu] .vm-suggest:disabled:not([aria-busy=\"true\"]) {\n opacity: 0.5;\n}\n/* The pressed one is disabled too (the row takes no second press), so it\n must outrank the app's global button:disabled dim (theme/global-styles.ts). */\n[data-vibe-menu] .vm-suggest[aria-busy=\"true\"] {\n opacity: 1;\n}\n/* The same hold on the inline links at the end of the chat: the pressed link\n keeps its lit underline, the others read as disabled (dimmed above). */\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest[aria-busy=\"true\"] {\n text-decoration-color: currentColor;\n}\n/* The gold option (#6768): the one capability the agent offered, a chip in the\n same row and the same order as the others. It wears the lit state the others\n take on hover, a full-ink outline and a filled star before the label, so it\n reads as the offer without a second colour on the card. */\n[data-vibe-menu] .vm-suggest.is-gold {\n display: inline-flex;\n align-items: center;\n gap: var(--space-6);\n border-color: var(--line-card);\n background: color-mix(in srgb, var(--accent) 35%, transparent);\n}\n[data-vibe-menu] .vm-suggest.is-gold .vm-glyph {\n flex: none;\n fill: currentColor;\n}\n[data-vibe-menu] .vm-picks {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6);\n}\n\n/* ---------- Composer: the logo pill's shape, 48px tall (owner pick B, 2026-10-26:\n near the switch's 44px curve with a full 44px cap) ---------- */\n[data-vibe-menu] .vm-composer {\n display: flex;\n align-items: stretch;\n min-height: var(--size-composer);\n margin-bottom: var(--space-16);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n background: var(--card-bg);\n}\n[data-vibe-menu] .vm-composer:focus-within,\n[data-vibe-menu] .vm-composer.is-focus {\n box-shadow: 0 0 0 3px var(--accent);\n}\n[data-vibe-menu] .vm-composer textarea {\n flex: 1;\n min-width: 0;\n align-self: center;\n margin: 0 var(--space-12) 0 2px;\n padding: 0;\n resize: none;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--ink);\n font: 700 16px/1.2 var(--font-display);\n letter-spacing: -0.02em;\n field-sizing: content;\n max-height: 2.4em;\n}\n[data-vibe-menu] .vm-composer textarea::placeholder {\n color: var(--placeholder);\n}\n[data-vibe-menu] .vm-composer .vm-attach {\n order: -1;\n width: var(--size-copy);\n height: var(--size-copy);\n margin-left: var(--space-10);\n align-self: center;\n border-radius: 50%;\n display: grid;\n place-items: center;\n flex: none;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-attach:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-glyph {\n width: 16px;\n height: 16px;\n}\n/* The record button (2026-11-26): a mic beside the cap; listening, the field\n gives way to a live line between a cross and a check. */\n[data-vibe-menu] .vm-composer .vm-mic {\n flex: none;\n align-self: center;\n width: var(--size-copy);\n height: var(--size-copy);\n margin-right: var(--space-8);\n border-radius: 50%;\n display: grid;\n place-items: center;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-mic:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-mic[data-transcribing] {\n color: var(--ink);\n cursor: progress;\n}\n[data-vibe-menu] .vm-composer.is-dictating textarea,\n[data-vibe-menu] .vm-composer.is-dictating .vm-attach,\n[data-vibe-menu] .vm-composer.is-dictating .vm-cap {\n display: none !important;\n}\n[data-vibe-menu] .vm-composer .vm-dictate {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: var(--space-8);\n padding-left: var(--space-6);\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-cancel {\n flex: none;\n width: var(--size-copy);\n height: var(--size-copy);\n border-radius: 50%;\n display: grid;\n place-items: center;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-cancel:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-composer .vm-dictate-done {\n flex: none;\n align-self: stretch;\n display: grid;\n place-items: center;\n padding: 0 var(--space-24) 0 20px;\n border-left: var(--stroke-rule) solid var(--line-card);\n background: var(--section-code);\n color: var(--on-code);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-composer .vm-dictate-done:hover {\n background: color-mix(in oklch, var(--section-code), var(--menu-ink) 10%);\n}\n[data-vibe-menu] .vm-cap {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 var(--space-24) 0 20px;\n border-left: var(--stroke-rule) solid var(--line-card);\n background: var(--section-code);\n color: var(--on-code);\n font: 700 13px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n white-space: nowrap;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-cap:hover {\n background: color-mix(in oklch, var(--section-code), var(--menu-ink) 10%);\n}\n[data-vibe-menu] .vm-composer.is-building .vm-cap[data-send],\n[data-vibe-menu] .vm-composer.is-building .vm-cap[data-next],\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-stop] {\n display: none;\n}\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-send],\n[data-vibe-menu] .vm-composer.is-building:has(textarea:not(:placeholder-shown)) .vm-cap[data-next] {\n display: flex;\n}\n/* traction#688: the held Send reads its next step (\"Get Plus \u00B7 $5/mo\", a\n guest's sign-up). Sentence case, and it may wrap to two lines rather than\n squeeze the field on a phone. */\n[data-vibe-menu] .vm-cap[data-next] {\n max-width: 48%;\n padding: var(--space-8) var(--space-16);\n text-transform: none;\n letter-spacing: 0.01em;\n white-space: normal;\n text-align: center;\n line-height: 1.2;\n}\n/* Rewrite mode (the settings tab's sharing rewrite): no attach button, so the\n field takes the attach's inset; a dim red X cap sits left of the action cap. */\n[data-vibe-menu] .vm-composer.is-rewrite {\n position: relative;\n}\n[data-vibe-menu] .vm-composer.is-rewrite textarea {\n margin-left: var(--space-24);\n}\n[data-vibe-menu] .vm-cap[data-cancel] {\n padding: 0 var(--space-16);\n background: var(--cancel-cap);\n color: var(--on-cancel-cap);\n}\n[data-vibe-menu] .vm-cap[data-cancel]:hover {\n background: color-mix(in oklch, var(--cancel-cap), var(--on-cancel-cap) 12%);\n}\n[data-vibe-menu] .vm-rewrite-shimmer {\n position: absolute;\n left: var(--space-24);\n top: 50%;\n width: 28%;\n height: var(--space-12);\n margin-top: calc(var(--space-12) / -2);\n border-radius: var(--radius-full);\n background: var(--placeholder);\n opacity: 0.3;\n pointer-events: none;\n animation: vm-rewrite-shimmer 1.4s ease-in-out infinite;\n}\n@keyframes vm-rewrite-shimmer {\n 50% {\n opacity: 0.12;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-rewrite-shimmer {\n animation: none;\n }\n}\n[data-vibe-menu] .vm-queue-note {\n display: none;\n margin: -10px 0 12px 18px;\n font-size: 12px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-composer:has(textarea:not(:placeholder-shown)) + .vm-queue-note {\n display: block;\n}\n/* The dictation line (#11269) answers a mic press, which works in an empty box\n too (\"Allow the microphone\u2026\", \"Writing down what you said\u2026\"), so it shows\n whatever the box holds. */\n[data-vibe-menu] .vm-queue-note[data-dictation-note] {\n display: block;\n}\n/* The change box's hint (#7803 #7878): one quiet line under the box while the\n person types, in the queue note's muted voice, whose button is the second door. */\n[data-vibe-menu] .vm-door-line {\n margin: -10px 0 12px 18px;\n font-size: 12px;\n line-height: 18px;\n color: var(--muted);\n}\n/* A refused empty Send's idea (#7916): one idea, one row, ellipsized. */\n[data-vibe-menu] .vm-door-line[data-refused-send-idea] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n[data-vibe-menu] .vm-door-line .vm-door {\n all: unset;\n cursor: pointer;\n color: var(--ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n text-decoration-color: var(--muted);\n}\n/* The idea's button is one unbreakable inline box, so on a phone the whole\n button overflowed the line and became its \"\u2026\" (#8646). Bounded to the room\n after \"Try:\", it ellipsizes its own tail and the idea stays readable. */\n[data-vibe-menu] .vm-door-line[data-refused-send-idea] .vm-door {\n display: inline-block;\n max-width: calc(100% - 3em);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n vertical-align: bottom;\n}\n/* #9548: each held Enter remounts the door line, which lights\n once, so a repeated press reads as answered too. */\n[data-vibe-menu] .vm-door-line[data-answer] {\n color: var(--ink);\n animation: vm-door-answer 0.6s ease-out;\n}\n@keyframes vm-door-answer {\n from {\n background: color-mix(in srgb, var(--accent) 30%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-door-line[data-answer] {\n animation: none;\n }\n}\n[data-vibe-menu] .vm-door-line .vm-door:focus-visible {\n outline: 2px solid var(--ink);\n outline-offset: 2px;\n border-radius: 2px;\n}\n[data-vibe-menu] .vm-composer.is-phone textarea {\n margin-right: var(--space-6);\n font-size: 16px;\n}\n[data-vibe-menu] .vm-composer.is-phone .vm-attach {\n margin-left: 4px;\n width: 28px;\n}\n[data-vibe-menu] .vm-composer.is-phone .vm-cap {\n padding: 0 var(--space-18) 0 var(--space-14);\n}\n\n/* ---------- Row: the bar's tab grammar inside the card ---------- */\n[data-vibe-menu] .vm-group {\n border-top: var(--stroke-rule) solid var(--line-card);\n margin: 0 calc(-1 * var(--space-16));\n}\n[data-vibe-menu] .vm-group.is-flush {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-row {\n display: flex;\n align-items: center;\n gap: var(--space-12);\n width: 100%;\n height: var(--size-row);\n padding: 0 var(--space-16);\n}\n[data-vibe-menu] .vm-row.is-compact {\n height: var(--size-row-compact);\n}\n[data-vibe-menu] .vm-row + .vm-row {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-row .vm-label {\n flex: 1;\n}\n[data-vibe-menu] .vm-row-tag {\n display: inline-block;\n margin-left: var(--space-8);\n padding: 2px 6px;\n border-radius: var(--radius-full);\n background: var(--ink);\n color: var(--card-bg);\n font: 700 10px/1.2 var(--font-tab);\n letter-spacing: 0.08em;\n vertical-align: middle;\n}\n[data-vibe-menu] .vm-dot {\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border-radius: 50%;\n background: var(--ink);\n color: var(--card-bg);\n display: grid;\n place-items: center;\n flex: none;\n}\n[data-vibe-menu] button.vm-row:hover .vm-dot:not(.vm-app),\n[data-vibe-menu] .vm-row.is-hover .vm-dot:not(.vm-app) {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-row.is-quiet .vm-dot {\n background: transparent;\n color: var(--ink);\n box-shadow: inset 0 0 0 2px var(--line-card);\n}\n[data-vibe-menu] .vm-row[aria-disabled=\"true\"] {\n opacity: 0.35;\n cursor: default;\n}\n[data-vibe-menu] .vm-row[aria-disabled=\"true\"] .vm-dot {\n background: var(--ink) !important;\n color: var(--card-bg) !important;\n}\n[data-vibe-menu] .vm-app,\n[data-vibe-menu] .vm-initial {\n font: 700 12px/1 var(--font-tab);\n box-shadow: inset 0 0 0 2px var(--line-card);\n}\n[data-vibe-menu] .vm-app {\n background: var(--app);\n color: var(--menu-ink);\n}\n[data-vibe-menu] .vm-initial {\n background: transparent;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-chev {\n display: grid;\n color: var(--muted);\n transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n[data-vibe-menu] .vm-chev.is-open {\n transform: rotate(90deg);\n}\n[data-vibe-menu] .vm-count {\n font: 700 12px/1 var(--font-tab);\n letter-spacing: 0.08em;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-count.is-handle {\n max-width: 45%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n letter-spacing: 0.02em;\n}\n[data-vibe-menu] .vm-switch {\n position: relative;\n width: var(--size-switch-w);\n height: 20px;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-switch);\n flex: none;\n}\n[data-vibe-menu] .vm-switch::after {\n content: \"\";\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: var(--ink);\n}\n[data-vibe-menu] .vm-switch.is-on {\n background: var(--accent);\n}\n[data-vibe-menu] .vm-switch.is-on::after {\n left: 18px;\n}\n\n/* ---------- BackRow and DoneButton: a drill-in's frame ---------- */\n[data-vibe-menu] .vm-back {\n display: flex;\n align-items: center;\n gap: var(--space-12);\n width: calc(100% + 2 * var(--space-16));\n height: var(--size-row-compact);\n margin: 0 calc(-1 * var(--space-16));\n padding: 0 var(--space-16);\n border-top: var(--stroke-rule) solid var(--line-card);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* A drill that replaces the whole card body (Share, Account) sits on the card's\n top edge, which the outline already draws: no rule, and it takes the body's\n top padding so no empty band shows above it (cards-hero.css .card-title + .h-back). */\n[data-vibe-menu] .vm-back.is-top {\n margin-top: calc(-1 * var(--space-14));\n border-top: 0;\n}\n[data-vibe-menu] .vm-back .vm-label {\n flex: none;\n}\n[data-vibe-menu] .vm-back-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font: 400 16px/1.1 var(--font-display);\n color: var(--muted);\n}\n[data-vibe-menu] .vm-back:hover .vm-dot,\n[data-vibe-menu] .vm-back.is-hover .vm-dot {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-drill {\n padding-top: var(--space-14);\n}\n[data-vibe-menu] .vm-drill-sec + .vm-drill-sec {\n margin-top: var(--space-14);\n}\n[data-vibe-menu] .vm-drill-line {\n margin: 0 0 var(--space-14);\n font: 700 18px/1.25 var(--font-display);\n letter-spacing: -0.01em;\n}\n[data-vibe-menu] .vm-done {\n display: block;\n width: 100%;\n height: var(--size-row-compact);\n margin-top: var(--space-16);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-done);\n background: var(--accent);\n color: var(--on-accent);\n text-align: center;\n font: 700 14px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-textbtn {\n display: block;\n width: 100%;\n height: 40px;\n margin-top: var(--space-4);\n text-align: center;\n font: 700 12px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-textbtn:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-faq {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-12);\n width: 100%;\n padding: var(--space-12) 0;\n font: 400 16px/1.3 var(--font-display);\n}\n[data-vibe-menu] .vm-faq + .vm-faq {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n\n/* ---------- MomentLine: the current moment ---------- */\n[data-vibe-menu] .vm-moments {\n display: flex;\n flex-direction: column;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-moment {\n margin: 0;\n font: 400 16px/1.3 var(--font-display);\n color: var(--ink);\n}\n[data-vibe-menu] .vm-moment.is-pinned {\n padding: var(--space-10) var(--space-12) var(--space-12) var(--space-14);\n border: var(--stroke-rule) solid var(--line-card);\n border-left: var(--size-band) solid var(--accent);\n border-radius: var(--radius-moment);\n}\n/* A primary pinned item's main action (#7782): the full-width pill, then its quiet second ways. */\n[data-vibe-menu] .vm-moment.is-pinned > .vm-ask + .vm-moment-actions {\n margin-top: var(--space-10);\n}\n[data-vibe-menu] .vm-moment-actions:empty {\n display: none;\n}\n[data-vibe-menu] .vm-moment-text {\n margin: 0 0 var(--space-10);\n text-wrap: pretty;\n}\n/* The credits wall as a next step (#8721): eyebrow, headline, the money pill and\n its statement line, a member's Auto top-up, then the balance as quiet facts. */\n[data-vibe-menu] .vm-moment.is-next-step > .vm-kicker {\n margin: 0 0 var(--space-4);\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-pay-note {\n margin: var(--space-8) 0 0;\n font-size: 11px;\n}\n/* #9291: the held Send under the card is the pill, so the statement line follows the words. */\n[data-vibe-menu] .vm-moment.is-next-step[data-pay-in-composer] > .vm-pay-note {\n margin-top: 0;\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-next-notice {\n margin: var(--space-8) 0 0;\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-moment-actions {\n margin-top: var(--space-10);\n}\n[data-vibe-menu] .vm-moment.is-next-step > .vm-next-facts {\n margin: var(--space-12) 0 0;\n}\n/* A pinned heads-up (#6816): the summary line's muted voice, its action a text link. */\n[data-vibe-menu] .vm-moment.is-quiet {\n padding: 0 var(--space-2);\n font-size: 14px;\n color: var(--muted);\n text-wrap: pretty;\n}\n[data-vibe-menu] button.vm-moment-link {\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n cursor: pointer;\n}\n[data-vibe-menu] .vm-moment-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6);\n}\n[data-vibe-menu] .vm-moment-hint {\n font-size: 12px;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-moment.is-progress,\n[data-vibe-menu] .vm-moment.is-summary {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n padding: 0 var(--space-2);\n}\n[data-vibe-menu] .vm-moment.is-summary {\n color: var(--muted);\n}\n[data-vibe-menu] .vm-moment.is-expander {\n width: 100%;\n gap: var(--space-8);\n}\n[data-vibe-menu] .vm-moment.is-expander:hover {\n color: var(--ink);\n}\n/* The live line's link (the first build's real address, #6451 S9c): pointer\n events back on, since the layer takes no hits of its own. */\n[data-vibe-menu] .vm-moment-link {\n display: inline-block;\n margin: 0 var(--space-2);\n font: 400 14px/1.3 var(--font-display);\n color: var(--ink);\n text-decoration: underline;\n text-underline-offset: 3px;\n overflow-wrap: anywhere;\n pointer-events: auto;\n}\n[data-vibe-menu] .vm-live .vm-chev {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-log-clip {\n overflow: hidden;\n}\n/* Port addition (RULINGS R1): the log clip is always rendered (RECONCILE \u00A75c),\n so the base stylesheet owns its shut and open states. The shell's per-frame\n tween (T11) writes an inline height, which overrides these during motion.\n C's VIBE_MENU_SHELL_CSS does not repeat them. */\n[data-vibe-menu] .vm-log-clip[data-open=\"false\"] {\n height: 0;\n overflow: hidden;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"] {\n height: auto;\n /* Known adjustment (plan header): room for .vm-log's own 160px cap plus its\n 8px margin-top and two hairline borders, so the clip never scrolls on top\n of the log. */\n max-height: calc(var(--size-log-max, 160px) + var(--space-8) + 2 * var(--stroke-hairline));\n overflow: auto;\n /* Smoke F15: the shell's height tween makes the clip overflow for a moment;\n .vm-log scrolls itself, so the clip never shows a bar. */\n scrollbar-width: none;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"]::-webkit-scrollbar {\n display: none;\n}\n/* The peek (owner 2026-10-16): a send opens the fold about two lines high, the\n person's own words its last visible line, before the composer has cleared.\n The triangle stays folded; the peek is an invite (a tap, a wheel or a swipe in\n it opens the full log, MomentLine). Its column is bottom-aligned so the\n overflow falls off the top, and its inner scrollers cap at the same height\n so their bottom pin shows the newest line. Never part of the open\n [data-history] flex chain below. */\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] {\n height: auto;\n max-height: var(--size-log-peek);\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n cursor: pointer;\n -webkit-mask-image: linear-gradient(to bottom, transparent, var(--ink) 14px);\n mask-image: linear-gradient(to bottom, transparent, var(--ink) 14px);\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] > * {\n flex: none;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-log,\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-agent-history {\n max-height: var(--size-log-peek);\n overflow-y: hidden;\n}\n[data-vibe-menu] .vm-log-clip[data-open=\"peek\"] .vm-suggestions {\n display: none;\n}\n/* The fold over the full chat (slots.agentLog): the history caps and scrolls\n itself (AgentLogHistory's compact box), so the clip drops the flat log's cap. */\n[data-vibe-menu] .vm-log-clip[data-open=\"true\"][data-history] {\n max-height: none;\n overflow: hidden;\n}\n[data-vibe-menu] .vm-log-history {\n margin-top: var(--space-8);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n}\n/* One scroller: the tab-row card with the full chat open. The history's own\n cap (AgentLogHistory's compact box) knows nothing of what else the card\n holds, and the first build's request headline can take a third of it: the\n card then overflowed and scrolled too, the composer slid under the row, and\n the chat's end was out of reach. Here the card is a column whose fold gives\n up exactly what the card lacks, so the history scrolls and the card never\n does. Everything else in the card keeps its own height. */\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history]) {\n display: flex;\n flex-direction: column;\n}\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history])::before {\n flex: none;\n}\n[data-vibe-menu] .vm-card:has(.vm-ctab .vm-log-clip[data-open=\"true\"][data-history]) .vm-card-body,\n[data-vibe-menu] .vm-ctab:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-moments:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-live:has(.vm-log-clip[data-open=\"true\"][data-history]),\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history],\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history] .vm-log-history {\n display: flex;\n flex-direction: column;\n flex: 0 1 auto;\n min-height: 0;\n}\n[data-vibe-menu] .vm-ctab .vm-log-clip[data-open=\"true\"][data-history] .vm-log-history > * {\n min-height: 0;\n}\n[data-vibe-menu] .vm-ctab:has(.vm-log-clip[data-open=\"true\"][data-history]) > :not(.vm-moments),\n[data-vibe-menu] .vm-ctab .vm-live:has(.vm-log-clip[data-open=\"true\"][data-history]) > :not(.vm-log-clip) {\n flex-shrink: 0;\n}\n[data-vibe-menu] .vm-agent-history-tail {\n padding: var(--space-10) 4px var(--space-14) var(--space-24);\n}\n/* Suggestions at the end of the chat: wrapped inline links, not chips. */\n[data-vibe-menu] .vm-suggestions.is-inline {\n gap: var(--space-6) var(--space-14);\n margin-bottom: 0;\n}\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest {\n min-height: 0;\n padding: 0;\n border: none;\n border-radius: 0;\n background: none;\n text-decoration: underline;\n text-decoration-color: var(--suggest-border);\n text-decoration-thickness: 1px;\n text-underline-offset: 3px;\n}\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest:hover,\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest.is-hover,\n[data-vibe-menu] .vm-suggestions.is-inline .vm-suggest.is-gold {\n background: none;\n text-decoration-color: currentColor;\n}\n[data-vibe-menu] .vm-log {\n max-height: var(--size-log-max);\n overflow-y: auto;\n overscroll-behavior: contain;\n display: flex;\n flex-direction: column;\n gap: var(--space-6);\n margin-top: var(--space-8);\n padding: var(--space-10) 4px var(--space-10) var(--space-24);\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n border-bottom: var(--stroke-hairline) solid var(--line-hairline);\n font-size: 13.5px;\n line-height: 1.35;\n}\n[data-vibe-menu] .vm-log-line {\n margin: 0;\n}\n[data-vibe-menu] .vm-log-line:first-child {\n margin-top: auto;\n}\n[data-vibe-menu] .vm-log-line b {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n color: var(--muted);\n margin-right: 4px;\n}\n\n/* ---------- AccessToggle: Restricted | Public and its line ---------- */\n[data-vibe-menu] .vm-access {\n display: flex;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n}\n[data-vibe-menu] .vm-access button {\n flex: 1;\n height: var(--size-bar);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--space-10);\n text-align: center;\n font: 700 24px/1 var(--font-display);\n letter-spacing: -0.02em;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-access button + button {\n border-left: var(--stroke-rule) solid var(--line-card);\n}\n[data-vibe-menu] .vm-access button.is-active {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-access button:not(.is-active):hover {\n background: color-mix(in srgb, var(--accent) 20%, transparent);\n}\n/* Settings still loading (preflight ruling P14): dimmed and inert. */\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] {\n opacity: var(--opacity-row-disabled);\n}\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] button {\n cursor: default;\n}\n[data-vibe-menu] .vm-access[aria-disabled=\"true\"] button:not(.is-active):hover {\n background: transparent;\n}\n[data-vibe-menu] .vm-access-line {\n display: flex;\n align-items: center;\n gap: var(--space-10);\n min-height: var(--size-access-line);\n margin: var(--space-10) 0 var(--space-12);\n padding: var(--space-6) var(--space-6) var(--space-6) var(--space-14);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-access-line);\n background: var(--share-tint);\n font-size: 16.5px;\n line-height: 1.25;\n}\n[data-vibe-menu] .vm-access-line > span {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-access-line .vm-glyph {\n width: 16px;\n height: 16px;\n}\n[data-vibe-menu] .vm-publish {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n padding: 5px 5px 5px var(--space-10);\n border: var(--stroke-rule) solid var(--line-card);\n border-left: var(--size-band) solid var(--accent);\n border-radius: var(--radius-moment);\n}\n[data-vibe-menu] .vm-publish b {\n font: 700 11px/1 var(--font-tab);\n letter-spacing: 0.1em;\n text-transform: uppercase;\n}\n[data-vibe-menu] .vm-publish span {\n flex: 1;\n min-width: 0;\n font-size: 13px;\n line-height: 1.25;\n color: var(--muted);\n}\n\n/* ---------- GrantControls ---------- */\n[data-vibe-menu] .vm-seg {\n display: flex;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n overflow: hidden;\n}\n[data-vibe-menu] .vm-seg button {\n flex: 1;\n height: var(--size-segment);\n text-align: center;\n font-size: 11px;\n}\n[data-vibe-menu] .vm-seg button + button {\n border-left: var(--stroke-rule) solid var(--line-card);\n}\n[data-vibe-menu] .vm-seg button.is-active {\n background: var(--accent);\n color: var(--on-accent);\n}\n[data-vibe-menu] .vm-seg.is-mini {\n margin: 0;\n border-width: var(--stroke-mini);\n}\n[data-vibe-menu] .vm-seg.is-mini button {\n flex: none;\n height: var(--size-segment-mini);\n padding: 0 var(--space-8);\n font-size: 10px;\n}\n[data-vibe-menu] .vm-seg.is-mini button + button {\n border-left-width: var(--stroke-mini);\n}\n[data-vibe-menu] .vm-grants {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-6) var(--space-12);\n}\n[data-vibe-menu] .vm-grant-ctl {\n display: flex;\n align-items: center;\n gap: 5px;\n}\n[data-vibe-menu] .vm-grant-name {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.12em;\n text-transform: uppercase;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-grant-fixed {\n font: 700 10px/1 var(--font-tab);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--ink);\n}\n\n/* ---------- MemberRow ---------- */\n[data-vibe-menu] .vm-input {\n width: 100%;\n height: var(--size-input);\n margin-bottom: var(--space-14);\n padding: 0 var(--space-18);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-input);\n background: transparent;\n color: var(--ink);\n font: inherit;\n}\n[data-vibe-menu] .vm-members-head {\n margin-top: 0;\n padding: 2px 0 var(--space-8);\n}\n[data-vibe-menu] .vm-members-head + .vm-input,\n[data-vibe-menu] .vm-members-head + .vm-invite .vm-input {\n height: 40px;\n margin-bottom: var(--space-8);\n}\n/* The invite field's handle typeahead (HandleLookupView): its dropdown wears\n the menu's own tokens in both themes, over the view's inline defaults. */\n[data-vibe-menu] .vm-invite [role=\"listbox\"] {\n background: var(--card-bg) !important;\n border: var(--stroke-rule) solid var(--line-card) !important;\n color: var(--ink) !important;\n}\n[data-vibe-menu] .vm-invite [role=\"option\"] {\n color: var(--ink) !important;\n font: inherit;\n}\n[data-vibe-menu] .vm-invite [role=\"option\"][aria-selected=\"true\"] {\n background: color-mix(in srgb, var(--ink) 10%, transparent) !important;\n}\n[data-vibe-menu] .vm-person {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-8) var(--space-12);\n padding: var(--space-6) 0;\n}\n[data-vibe-menu] .vm-person + .vm-person {\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-person .vm-label {\n flex: 1;\n min-width: 0;\n}\n[data-vibe-menu] .vm-request {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-8) var(--space-12);\n margin-bottom: 2px;\n padding: var(--space-10) var(--space-12);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-card);\n background: var(--share-tint-strong);\n}\n[data-vibe-menu] .vm-request-top {\n flex: 1 0 auto;\n}\n[data-vibe-menu] .vm-request-actions {\n display: flex;\n gap: var(--space-6);\n margin-left: auto;\n}\n[data-vibe-menu] .vm-who-block > .vm-row {\n width: calc(100% + 2 * var(--space-16));\n margin: 2px calc(-1 * var(--space-16)) 0;\n border-top: var(--stroke-hairline) solid var(--line-hairline);\n}\n[data-vibe-menu] .vm-narrow .vm-person .vm-grants,\n[data-vibe-menu] .vm-narrow .vm-request-top {\n flex-basis: 100%;\n}\n[data-vibe-menu] .vm-narrow .vm-person .vm-grants,\n[data-vibe-menu] .vm-narrow .vm-request .vm-grants {\n column-gap: var(--space-10);\n}\n/* stacking, as the prototype: card < bar < outline < glass and pill */\n[data-vibe-menu] .vm-frame .vm-card {\n z-index: 1;\n}\n[data-vibe-menu] .vm-frame .vm-strip {\n z-index: 2;\n}\n[data-vibe-menu] .vm-frame .vm-outline {\n z-index: 3;\n}\n[data-vibe-menu] .vm-frame .vm-glass {\n z-index: 4;\n}\n[data-vibe-menu] .vm-refresh {\n display: grid;\n place-items: center;\n width: var(--size-icon-circle);\n height: var(--size-icon-circle);\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: 50%;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-refresh:hover {\n background: var(--accent);\n color: var(--on-accent);\n}\n\n/* ---------- port additions: not in bundle.css ---------- */\n/* Sign-in providers (the inline sign-up drill): each brand's own mark on a\n white disc, so the logo reads the way its owner draws it on any card theme. */\n[data-vibe-menu] .vm-providers {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-14);\n margin-bottom: var(--space-4);\n}\n[data-vibe-menu] .vm-provider {\n position: relative;\n display: grid;\n place-items: center;\n width: 48px;\n height: 48px;\n padding: 0;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: 50%;\n background: var(--provider-disc);\n color: var(--provider-ink);\n cursor: pointer;\n flex: none;\n}\n[data-vibe-menu] .vm-provider svg {\n width: 22px;\n height: 22px;\n}\n[data-vibe-menu] .vm-provider[aria-disabled=\"true\"] {\n opacity: var(--opacity-row-disabled);\n cursor: default;\n}\n[data-vibe-menu] .vm-provider.is-pending {\n opacity: 1;\n animation: vm-provider-pulse 1.2s ease-in-out infinite;\n}\n[data-vibe-menu] .vm-provider-tag {\n position: absolute;\n top: -8px;\n left: 50%;\n transform: translateX(-50%);\n padding: 1px 6px;\n border: var(--stroke-rule) solid var(--line-card);\n border-radius: var(--radius-full);\n background: var(--accent);\n color: var(--on-accent);\n font-size: 8px;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-provider-status {\n display: flex;\n align-items: center;\n gap: var(--space-16);\n margin: var(--space-4) 0 var(--space-14) var(--space-4);\n}\n[data-vibe-menu] .vm-provider-status > div {\n min-width: 0;\n}\n/* The way back out of a provider that is opening: BackRow's dot and label,\n inline in the drill body rather than across the card's top edge. */\n[data-vibe-menu] .vm-back.is-inline {\n width: auto;\n height: var(--size-icon-circle);\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: var(--ink);\n cursor: pointer;\n}\n[data-vibe-menu] .vm-provider-status .vm-sub {\n margin: 0;\n}\n/* A switch the platform just flipped for the owner (a Pro checkout from the\n remix switch): lit for a moment so the change reads where it happened. */\n[data-vibe-menu] .vm-group.is-just-flipped {\n border-radius: var(--radius-card);\n animation: vm-just-flipped 1.2s ease-in-out 3;\n}\n@keyframes vm-just-flipped {\n 50% {\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-group.is-just-flipped {\n animation: none;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);\n }\n}\n@keyframes vm-provider-pulse {\n 50% {\n box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);\n }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-provider.is-pending {\n animation: none;\n }\n}\n/* Rows and the action pill can be links (Home's rows, the credits action). */\n[data-vibe-menu] :where(a.vm-row, a.vm-ask) {\n color: inherit;\n text-decoration: none;\n}\n[data-vibe-menu] a.vm-row:hover .vm-dot:not(.vm-app) {\n background: var(--accent);\n color: var(--on-accent);\n}\n/* A member's name drills into that member (spec \u00A78). */\n[data-vibe-menu] .vm-person button.vm-label {\n text-align: left;\n}\n[data-vibe-menu] .vm-chip[aria-disabled=\"true\"],\n[data-vibe-menu] .vm-cap:disabled,\n[data-vibe-menu] .vm-composer .vm-attach:disabled {\n opacity: var(--opacity-row-disabled);\n cursor: default;\n}\n/* Staged attachments above the composer: name chips, no emoji. */\n[data-vibe-menu] .vm-attachments {\n margin-bottom: var(--space-8);\n}\n[data-vibe-menu] .vm-attachments .vm-chip {\n display: inline-flex;\n align-items: center;\n gap: var(--space-6);\n max-width: 220px;\n}\n[data-vibe-menu] .vm-attachments .vm-chip > span:last-child {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n[data-vibe-menu] .vm-attachments .vm-chip[data-status=\"error\"] {\n border-color: var(--section-account);\n}\n/* The one left-out sentence after a pick past the cap (#7622): the queue\n note's voice, tucked under the chips it talks about. */\n[data-vibe-menu] .vm-attach-note {\n margin: -2px 0 10px 4px;\n font-size: 12px;\n line-height: 1.4;\n color: var(--muted);\n}\n/* A suggestion's fast-path marks (RULINGS O4, production #2917 decorateChip).\n Siblings of .vm-suggest, since a button can't nest a button. The owner's\n toggle (FastPathToggle) is outline when not blessed, filled when blessed\n (aria-pressed); the badges are the marks every viewer sees. */\n[data-vibe-menu] .vm-suggest-item {\n display: inline-flex;\n align-items: center;\n gap: var(--space-2);\n max-width: 100%;\n min-width: 0;\n}\n[data-vibe-menu] .vm-suggest-item > * {\n flex: none;\n}\n[data-vibe-menu] .vm-suggest-item > .vm-suggest {\n flex: 0 1 auto;\n}\n[data-vibe-menu] .vm-suggest-shield {\n width: var(--size-chip);\n height: var(--size-chip);\n display: inline-grid;\n place-items: center;\n border-radius: var(--radius-full);\n background: none;\n color: var(--muted);\n}\n[data-vibe-menu] .vm-suggest-shield:hover {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-shield[aria-pressed=\"true\"] {\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-shield[aria-pressed=\"true\"] .vm-glyph {\n fill: currentColor;\n}\n/* The non-interactive marks every viewer sees (production ChipShieldBadge,\n ChipJumpBadge): a filled shield (\"stays in this app\", server-authoritative)\n or an arrow (\"opens another app\"). Never both on one chip. */\n[data-vibe-menu] .vm-suggest-badge {\n width: var(--size-chip);\n height: var(--size-chip);\n display: inline-grid;\n place-items: center;\n color: var(--ink);\n}\n[data-vibe-menu] .vm-suggest-badge.is-shield .vm-glyph {\n fill: currentColor;\n}\n[data-vibe-menu] .vm-suggest-badge.is-jump {\n color: var(--muted);\n}\n\n/* ---------- phones (cards-hero.css): the menu's width, not the viewport ---------- */\n@container vibe-menu (max-width: 480px) {\n [data-vibe-menu] .vm-ask {\n font-size: 18px;\n }\n /* the field keeps 16px (iOS zooms smaller fields); attach slims instead */\n [data-vibe-menu] .vm-composer textarea {\n margin-right: var(--space-6);\n font-size: 16px;\n }\n [data-vibe-menu] .vm-composer .vm-attach {\n margin-left: 4px;\n width: 28px;\n }\n [data-vibe-menu] .vm-cap {\n padding: 0 var(--space-18) 0 var(--space-14);\n }\n [data-vibe-menu] .vm-access button {\n font-size: 21px;\n }\n /* the access line keeps its sentence to two lines beside the chip */\n [data-vibe-menu] .vm-access-line {\n padding-left: 12px;\n gap: 8px;\n font-size: 15.5px;\n }\n [data-vibe-menu] .vm-access-line .vm-chip.vm-copy {\n padding: 0 10px;\n }\n /* Data and Code drop under the handle on one line (two on the narrowest) */\n [data-vibe-menu] .vm-person .vm-grants {\n flex-basis: 100%;\n column-gap: var(--space-10);\n }\n [data-vibe-menu] .vm-request .vm-grants {\n column-gap: var(--space-10);\n }\n [data-vibe-menu] .vm-request-top {\n flex-basis: 100%;\n }\n [data-vibe-menu] .vm-input {\n font-size: 16px;\n }\n}\n@container vibe-menu (max-width: 359px) {\n [data-vibe-menu] .vm-access button {\n font-size: 19px;\n }\n /* the line drops its icon here: the enclosure already marks it */\n [data-vibe-menu] .vm-access-line > .vm-glyph {\n display: none;\n }\n [data-vibe-menu] .vm-access-line {\n margin: 8px 0 10px;\n font-size: 14.5px;\n }\n [data-vibe-menu] .vm-access-line .vm-chip.vm-copy {\n padding: 0 8px;\n }\n /* the cap and attach slim so the field keeps room (REMIX THIS stays one line) */\n [data-vibe-menu] .vm-cap {\n padding: 0 13px 0 10px;\n letter-spacing: 0.05em;\n }\n [data-vibe-menu] .vm-composer .vm-attach {\n margin-left: 3px;\n width: 24px;\n }\n /* 16px, not the prototype's 14px: no text field under 16px on phones (spec \u00A74.5) */\n [data-vibe-menu] .vm-composer textarea {\n margin: 0 4px 0 0;\n font-size: 16px;\n }\n [data-vibe-menu] .vm-chip.vm-copy {\n padding: 0 10px;\n letter-spacing: 0.06em;\n }\n}\n";
|
|
5
5
|
export declare function VibeMenuStyles(): React.ReactElement;
|
|
6
6
|
export declare function useLiveMenuSheet(): void;
|
|
7
7
|
export declare function DetachedVibeMenuStyles(): React.ReactElement | null;
|
|
@@ -886,6 +886,12 @@ export const VIBE_MENU_CSS = `
|
|
|
886
886
|
[data-vibe-menu] .vm-composer:has(textarea:not(:placeholder-shown)) + .vm-queue-note {
|
|
887
887
|
display: block;
|
|
888
888
|
}
|
|
889
|
+
/* The dictation line (#11269) answers a mic press, which works in an empty box
|
|
890
|
+
too ("Allow the microphone…", "Writing down what you said…"), so it shows
|
|
891
|
+
whatever the box holds. */
|
|
892
|
+
[data-vibe-menu] .vm-queue-note[data-dictation-note] {
|
|
893
|
+
display: block;
|
|
894
|
+
}
|
|
889
895
|
/* The change box's hint (#7803 #7878): one quiet line under the box while the
|
|
890
896
|
person types, in the queue note's muted voice, whose button is the second door. */
|
|
891
897
|
[data-vibe-menu] .vm-door-line {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect, useMemo, useRef, useCallback } from "react";
|
|
2
2
|
import { useFireproof, imgGen as defaultImgGen, confirmedMediaProbe as defaultConfirmedMediaProbe, useVibeContext, getRegisteredVibeApi, vibe, decorateFiles, IMG_GEN_SOURCE_UNUSABLE, } from "@vibes.diy/vibe-runtime";
|
|
3
|
-
import { IMG_GEN_CANCELLED, IMG_GEN_NEEDS_TAP, IMG_GEN_UNREACHABLE, IMG_GEN_UNREACHABLE_MESSAGE, isImgGenPaused, isImgGenMadeElsewhere, buildMediaPointerDoc, buildMediaVersionDoc, mediaDbName, mediaPointerDocId, mediaVersionDocId, } from "@vibes.diy/vibe-types";
|
|
3
|
+
import { IMG_GEN_CANCELLED, IMG_GEN_NEEDS_TAP, IMG_GEN_UNREACHABLE, IMG_GEN_UNREACHABLE_MESSAGE, isImgGenPaused, isImgGenMadeElsewhere, isImgGenLost, IMG_GEN_LOST_RETRY_MS, buildMediaPointerDoc, buildMediaVersionDoc, mediaDbName, mediaPointerDocId, mediaVersionDocId, } from "@vibes.diy/vibe-types";
|
|
4
4
|
import { exception2Result, Result } from "@adviser/cement";
|
|
5
5
|
import { type } from "arktype";
|
|
6
6
|
import { registeredLocalFileUrl, registeredPictureStore } from "./local-pictures.js";
|
|
@@ -283,6 +283,7 @@ export function useImgGen(opts) {
|
|
|
283
283
|
const playgroundModeRef = useRef(false);
|
|
284
284
|
const tapSpentRef = useRef(undefined);
|
|
285
285
|
const playgroundSpentKeyRef = useRef(undefined);
|
|
286
|
+
const lostKeyRef = useRef(undefined);
|
|
286
287
|
const currentGenRef = useRef(null);
|
|
287
288
|
const failedGenRef = useRef(null);
|
|
288
289
|
const probeInFlightRef = useRef(null);
|
|
@@ -618,6 +619,15 @@ export function useImgGen(opts) {
|
|
|
618
619
|
setDocument(existingDoc);
|
|
619
620
|
return;
|
|
620
621
|
}
|
|
622
|
+
if (lostKeyRef.current === failKey) {
|
|
623
|
+
if (existingDoc)
|
|
624
|
+
setDocument(existingDoc);
|
|
625
|
+
setPending(false);
|
|
626
|
+
setLoading(false);
|
|
627
|
+
setPaused({ retryAfterMs: IMG_GEN_LOST_RETRY_MS, lost: true });
|
|
628
|
+
currentGenRef.current = null;
|
|
629
|
+
return;
|
|
630
|
+
}
|
|
621
631
|
const leaseKey = `${mediaDbName(dbName)}\u0000${hostDocId}\u0000${myHandle}`;
|
|
622
632
|
if (unmountSignalRef.current.aborted)
|
|
623
633
|
return;
|
|
@@ -733,6 +743,22 @@ export function useImgGen(opts) {
|
|
|
733
743
|
releaseLease();
|
|
734
744
|
return decide(rRead.Ok(), legacyDoc, false);
|
|
735
745
|
}
|
|
746
|
+
if (isImgGenLost(pausedErr)) {
|
|
747
|
+
lostKeyRef.current = failKey;
|
|
748
|
+
setLoading(false);
|
|
749
|
+
setPending(true);
|
|
750
|
+
const rRead = await exception2Result(loadMediaDocs);
|
|
751
|
+
if (unmountSignalRef.current.aborted || currentGenRef.current !== genKey)
|
|
752
|
+
return;
|
|
753
|
+
releaseLease();
|
|
754
|
+
if (rRead.isErr()) {
|
|
755
|
+
setPending(false);
|
|
756
|
+
setPaused({ retryAfterMs: IMG_GEN_LOST_RETRY_MS, lost: true });
|
|
757
|
+
currentGenRef.current = null;
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
return decide(rRead.Ok(), legacyDoc, false);
|
|
761
|
+
}
|
|
736
762
|
if (isImgGenPaused(pausedErr)) {
|
|
737
763
|
setPaused({ retryAfterMs: pausedErr.retryAfterMs });
|
|
738
764
|
setLoading(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/base",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.454",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@adviser/cement": "~0.5.37",
|
|
12
12
|
"@emotion/css": "~11.13.5",
|
|
13
|
-
"@vibes.diy/api-types": "14.3.
|
|
14
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
15
|
-
"@vibes.diy/vibe-runtime": "14.3.
|
|
16
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
13
|
+
"@vibes.diy/api-types": "14.3.454",
|
|
14
|
+
"@vibes.diy/use-vibes-types": "14.3.454",
|
|
15
|
+
"@vibes.diy/vibe-runtime": "14.3.454",
|
|
16
|
+
"@vibes.diy/vibe-types": "14.3.454",
|
|
17
17
|
"arktype": "~2.2.10",
|
|
18
18
|
"officeparser": "~8.9.0",
|
|
19
19
|
"qrcode-generator": "~2.0.4",
|