@celljs/ta-web 4.13.1 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/esm/browser/assistant/assistant-extension.js +3 -2
- package/esm/browser/assistant/assistant-state.js +2 -2
- package/esm/browser/components/app-view.js +4 -0
- package/esm/browser/components/chat-asks.d.ts +8 -0
- package/esm/browser/components/chat-asks.js +10 -0
- package/esm/browser/components/chat-list.js +11 -1
- package/esm/browser/components/composer-box.d.ts +2 -0
- package/esm/browser/components/composer-box.js +2 -1
- package/esm/browser/components/composer.d.ts +3 -1
- package/esm/browser/components/composer.js +16 -4
- package/esm/browser/components/face.d.ts +13 -1
- package/esm/browser/components/face.js +16 -1
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/message-list.js +20 -1
- package/esm/browser/components/people.d.ts +32 -0
- package/esm/browser/components/people.js +71 -0
- package/esm/browser/components/session-view.d.ts +1 -1
- package/esm/browser/components/session-view.js +56 -36
- package/esm/browser/components/settings-parts.js +14 -3
- package/esm/browser/components/sign-in-setup.d.ts +16 -0
- package/esm/browser/components/sign-in-setup.js +116 -0
- package/esm/browser/components/use-seen-chats.d.ts +2 -0
- package/esm/browser/components/use-seen-chats.js +2 -2
- package/esm/browser/extension/web-api-components.d.ts +12 -0
- package/esm/browser/extension/web-extension-api.d.ts +2 -2
- package/esm/browser/i18n/locales.d.ts +35 -1
- package/esm/browser/i18n/messages.d.ts +34 -0
- package/esm/browser/i18n/messages.js +69 -0
- package/esm/browser/presence/presence-reporter.d.ts +32 -0
- package/esm/browser/presence/presence-reporter.js +71 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +24 -0
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +8 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +8 -0
- package/esm/browser/workbench-protocol.d.ts +9 -0
- package/esm/browser/workbench-util.d.ts +2 -0
- package/esm/browser/workbench-util.js +18 -0
- package/esm/browser/workbench.d.ts +3 -0
- package/esm/browser/workbench.js +14 -4
- package/lib/browser/assistant/assistant-extension.js +3 -2
- package/lib/browser/assistant/assistant-state.js +1 -1
- package/lib/browser/components/app-view.js +4 -0
- package/lib/browser/components/chat-asks.d.ts +8 -0
- package/lib/browser/components/chat-asks.js +10 -0
- package/lib/browser/components/chat-list.js +11 -1
- package/lib/browser/components/composer-box.d.ts +2 -0
- package/lib/browser/components/composer-box.js +2 -1
- package/lib/browser/components/composer.d.ts +3 -1
- package/lib/browser/components/composer.js +16 -4
- package/lib/browser/components/face.d.ts +13 -1
- package/lib/browser/components/face.js +16 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/message-list.js +19 -0
- package/lib/browser/components/people.d.ts +33 -0
- package/lib/browser/components/people.js +109 -0
- package/lib/browser/components/session-view.d.ts +1 -1
- package/lib/browser/components/session-view.js +56 -36
- package/lib/browser/components/settings-parts.js +14 -3
- package/lib/browser/components/sign-in-setup.d.ts +17 -0
- package/lib/browser/components/sign-in-setup.js +153 -0
- package/lib/browser/components/use-seen-chats.d.ts +2 -0
- package/lib/browser/components/use-seen-chats.js +3 -2
- package/lib/browser/extension/web-api-components.d.ts +12 -0
- package/lib/browser/extension/web-extension-api.d.ts +2 -2
- package/lib/browser/i18n/locales.d.ts +35 -1
- package/lib/browser/i18n/messages.d.ts +34 -0
- package/lib/browser/i18n/messages.js +69 -0
- package/lib/browser/presence/presence-reporter.d.ts +33 -0
- package/lib/browser/presence/presence-reporter.js +75 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +24 -0
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +8 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +8 -0
- package/lib/browser/workbench-protocol.d.ts +9 -0
- package/lib/browser/workbench-util.d.ts +2 -0
- package/lib/browser/workbench-util.js +18 -0
- package/lib/browser/workbench.d.ts +3 -0
- package/lib/browser/workbench.js +14 -4
- package/package.json +10 -10
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresenceReporter = exports.TYPING_MS = void 0;
|
|
4
|
+
const ta_protocol_1 = require("@celljs/ta-protocol");
|
|
5
|
+
/** How long typing lasts after the last key, while nothing more is typed nor sent. */
|
|
6
|
+
exports.TYPING_MS = 6000;
|
|
7
|
+
/**
|
|
8
|
+
* What this page tells the others in the same Ta (TaPresenceServer, docs/design/ta-team.md 7): the conversation in front
|
|
9
|
+
* of the user while the page is seen, and whether they type in it. It says so as it changes, at most once a frame, again
|
|
10
|
+
* every heartbeat while it looks at one, and again on each new connection; never while nothing changed and it looks at
|
|
11
|
+
* none. `send` goes on the connection of the time, and fails quietly without one.
|
|
12
|
+
*/
|
|
13
|
+
class PresenceReporter {
|
|
14
|
+
constructor(send, heartbeatMs = ta_protocol_1.TA_PRESENCE_HEARTBEAT_MS, typingMs = exports.TYPING_MS) {
|
|
15
|
+
this.send = send;
|
|
16
|
+
this.heartbeatMs = heartbeatMs;
|
|
17
|
+
this.typingMs = typingMs;
|
|
18
|
+
}
|
|
19
|
+
/** The conversation in front of the user, the page seen; none otherwise. */
|
|
20
|
+
look(sessionId) {
|
|
21
|
+
this.looking = sessionId || undefined;
|
|
22
|
+
this.schedule();
|
|
23
|
+
}
|
|
24
|
+
/** What the box of a conversation holds now: typing while it holds something and keys come. */
|
|
25
|
+
type(sessionId, typing) {
|
|
26
|
+
clearTimeout(this.typingTimer);
|
|
27
|
+
this.typingIn = typing ? sessionId : undefined;
|
|
28
|
+
if (typing) {
|
|
29
|
+
this.typingTimer = setTimeout(() => {
|
|
30
|
+
this.typingIn = undefined;
|
|
31
|
+
this.schedule();
|
|
32
|
+
}, this.typingMs);
|
|
33
|
+
}
|
|
34
|
+
this.schedule();
|
|
35
|
+
}
|
|
36
|
+
/** A new connection knows nothing of this page: what it is at goes again. */
|
|
37
|
+
resend() {
|
|
38
|
+
this.sent = undefined;
|
|
39
|
+
this.schedule();
|
|
40
|
+
}
|
|
41
|
+
dispose() {
|
|
42
|
+
clearTimeout(this.flushTimer);
|
|
43
|
+
clearTimeout(this.typingTimer);
|
|
44
|
+
clearInterval(this.heartbeat);
|
|
45
|
+
}
|
|
46
|
+
/** What it is at now. */
|
|
47
|
+
get state() {
|
|
48
|
+
return this.looking ? { sessionId: this.looking, ...(this.typingIn === this.looking ? { typing: true } : {}) } : {};
|
|
49
|
+
}
|
|
50
|
+
schedule() {
|
|
51
|
+
var _a;
|
|
52
|
+
(_a = this.flushTimer) !== null && _a !== void 0 ? _a : (this.flushTimer = setTimeout(() => {
|
|
53
|
+
this.flushTimer = undefined;
|
|
54
|
+
this.flush();
|
|
55
|
+
}, 0));
|
|
56
|
+
}
|
|
57
|
+
flush() {
|
|
58
|
+
const state = this.state;
|
|
59
|
+
const json = JSON.stringify(state);
|
|
60
|
+
// Nothing to say of a page that was never at a conversation.
|
|
61
|
+
if (json !== this.sent && (this.sent !== undefined || state.sessionId)) {
|
|
62
|
+
this.sent = json;
|
|
63
|
+
this.send(state);
|
|
64
|
+
}
|
|
65
|
+
if (state.sessionId && !this.heartbeat) {
|
|
66
|
+
this.heartbeat = setInterval(() => this.send(this.state), this.heartbeatMs);
|
|
67
|
+
}
|
|
68
|
+
else if (!state.sessionId && this.heartbeat) {
|
|
69
|
+
clearInterval(this.heartbeat);
|
|
70
|
+
this.heartbeat = undefined;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.PresenceReporter = PresenceReporter;
|
|
75
|
+
//# sourceMappingURL=presence-reporter.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** A conversation: the console session, Markdown, tools, dialogs. */
|
|
2
|
-
export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* A row of its own, not above a reply. */\n.ta-resume-break { margin-bottom: 0; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (layout.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; animation: ta-busy-in 160ms 160ms both; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-viewer.tsx): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
|
|
2
|
+
export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* A row of its own, not above a reply. */\n.ta-resume-break { margin-bottom: 0; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */\n.ta-user.ta-user-other { align-items: flex-start; }\n.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }\n.ta-user-by > .ta-face { flex: none; margin-top: 1px; }\n.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }\n.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }\n.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }\n.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }\n.ta-user-other .ta-user-images { justify-content: flex-start; }\n.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }\n/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */\n.ta-people { display: inline-flex; align-items: center; flex: none; }\n.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }\n.ta-people-face + .ta-people-face { margin-left: -6px; }\n.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-session-header > .ta-people { margin-left: -8px; }\n.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }\n.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }\n.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }\n.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }\n@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (layout.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; animation: ta-busy-in 160ms 160ms both; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-viewer.tsx): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
|
|
3
3
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -60,6 +60,30 @@ exports.CONVERSATION_STYLE = `
|
|
|
60
60
|
.ta-resume-break { margin-bottom: 0; }
|
|
61
61
|
/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */
|
|
62
62
|
.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }
|
|
63
|
+
/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */
|
|
64
|
+
.ta-user.ta-user-other { align-items: flex-start; }
|
|
65
|
+
.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }
|
|
66
|
+
.ta-user-by > .ta-face { flex: none; margin-top: 1px; }
|
|
67
|
+
.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
|
|
68
|
+
.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }
|
|
69
|
+
.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }
|
|
70
|
+
.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }
|
|
71
|
+
.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }
|
|
72
|
+
.ta-user-other .ta-user-images { justify-content: flex-start; }
|
|
73
|
+
.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }
|
|
74
|
+
/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */
|
|
75
|
+
.ta-people { display: inline-flex; align-items: center; flex: none; }
|
|
76
|
+
.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }
|
|
77
|
+
.ta-people-face + .ta-people-face { margin-left: -6px; }
|
|
78
|
+
.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
79
|
+
.ta-session-header > .ta-people { margin-left: -8px; }
|
|
80
|
+
.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }
|
|
81
|
+
.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
|
|
82
|
+
.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }
|
|
83
|
+
.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
|
|
84
|
+
.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }
|
|
85
|
+
@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
|
|
86
|
+
@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }
|
|
63
87
|
.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }
|
|
64
88
|
.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }
|
|
65
89
|
.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }
|